Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add multiple select #44

Merged
merged 2 commits into from
Aug 16, 2024
Merged

feat: add multiple select #44

merged 2 commits into from
Aug 16, 2024

Conversation

lawvs
Copy link
Owner

@lawvs lawvs commented Aug 16, 2024

Add MultipleSelect component to ThemeSpec and split Select into SingleSelectView and MultiSelectView components.

  • packages/filter/src/views/components.tsx

    • Export SingleSelectView and MultiSelectView components.
    • Remove SelectView component.
    • Ensure correct types for SingleSelectView and MultiSelectView.
  • packages/filter/src/theme/preset.ts

    • Use SingleSelectView for Select component in ThemeSpec.
    • Use MultiSelectView for MultipleSelect component in ThemeSpec.
  • packages/filter/src/theme/types.ts

    • Define SingleSelectProps and MultiSelectProps types.
    • Update ThemeSpec to include MultipleSelect component.
  • packages/filter/src/views/data-input-views.tsx

    • Use MultipleSelectView for literal array data input view.

For more details, open the Copilot Workspace session.

Add `MultipleSelect` component to `ThemeSpec` and split `Select` into `SingleSelectView` and `MultiSelectView` components.

* **packages/filter/src/views/components.tsx**
  - Export `SingleSelectView` and `MultiSelectView` components.
  - Remove `SelectView` component.
  - Ensure correct types for `SingleSelectView` and `MultiSelectView`.

* **packages/filter/src/theme/preset.ts**
  - Use `SingleSelectView` for `Select` component in `ThemeSpec`.
  - Use `MultiSelectView` for `MultipleSelect` component in `ThemeSpec`.

* **packages/filter/src/theme/types.ts**
  - Define `SingleSelectProps` and `MultiSelectProps` types.
  - Update `ThemeSpec` to include `MultipleSelect` component.

* **packages/filter/src/views/data-input-views.tsx**
  - Use `MultipleSelectView` for `literal array` data input view.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/lawvs/fn-sphere?shareId=XXXX-XXXX-XXXX-XXXX).
@lawvs
Copy link
Owner Author

lawvs commented Aug 16, 2024

chore: add changeset

@lawvs lawvs merged commit 03624b8 into main Aug 16, 2024
1 check passed
@lawvs lawvs deleted the add-multiple-select branch August 16, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant