@vlrc-fe/components 3.0.6 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -0
- package/README.md +38 -23
- package/dist/ConfirmModal.cjs +29 -4
- package/dist/ConfirmModal.d.ts.map +1 -1
- package/dist/ConfirmModal.js +29 -4
- package/dist/DataTable/DataTable.cjs +8 -4
- package/dist/DataTable/DataTable.d.ts +1 -1
- package/dist/DataTable/DataTable.d.ts.map +1 -1
- package/dist/DataTable/DataTable.js +8 -4
- package/dist/DataTable/components/DataTableFacetedFilter.cjs +0 -2
- package/dist/DataTable/components/DataTableFacetedFilter.js +0 -2
- package/dist/DataTable/components/DataTablePagination.cjs +48 -175
- package/dist/DataTable/components/DataTablePagination.d.ts +2 -1
- package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
- package/dist/DataTable/components/DataTablePagination.js +48 -175
- package/dist/DataTable/components/DataTableRowActions.cjs +1 -1
- package/dist/DataTable/components/DataTableRowActions.js +1 -1
- package/dist/DataTable/components/DataTableTable.cjs +43 -78
- package/dist/DataTable/components/DataTableTable.d.ts +2 -1
- package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableTable.js +43 -78
- package/dist/DataTable/components/DataTableToolbar.cjs +25 -29
- package/dist/DataTable/components/DataTableToolbar.d.ts +2 -1
- package/dist/DataTable/components/DataTableToolbar.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableToolbar.js +25 -29
- package/dist/DataTable/render/createColumns.cjs +1 -1
- package/dist/DataTable/render/createColumns.js +1 -1
- package/dist/DataTable/types.d.ts +3 -0
- package/dist/DataTable/types.d.ts.map +1 -1
- package/dist/Dropdown/Dropdown.cjs +14 -12
- package/dist/Dropdown/Dropdown.js +14 -12
- package/dist/FilterPopup/FilterPopup.cjs +289 -0
- package/dist/FilterPopup/FilterPopup.d.ts +21 -0
- package/dist/FilterPopup/FilterPopup.d.ts.map +1 -0
- package/dist/FilterPopup/FilterPopup.js +287 -0
- package/dist/FilterPopup/assets/Divider.svg.cjs +3 -0
- package/dist/FilterPopup/assets/Divider.svg.js +3 -0
- package/dist/FilterPopup/assets/IconCheck.svg.cjs +3 -0
- package/dist/FilterPopup/assets/IconCheck.svg.js +3 -0
- package/dist/FilterPopup/assets/IconClose.svg.cjs +3 -0
- package/dist/FilterPopup/assets/IconClose.svg.js +3 -0
- package/dist/FilterPopup/assets/IconSearch.svg.cjs +3 -0
- package/dist/FilterPopup/assets/IconSearch.svg.js +3 -0
- package/dist/FilterPopup/index.d.ts +3 -0
- package/dist/FilterPopup/index.d.ts.map +1 -0
- package/dist/FilterPopup/styles.cjs +151 -0
- package/dist/FilterPopup/styles.d.ts +134 -0
- package/dist/FilterPopup/styles.d.ts.map +1 -0
- package/dist/FilterPopup/styles.js +149 -0
- package/dist/FilterPopup/types.d.ts +13 -0
- package/dist/FilterPopup/types.d.ts.map +1 -0
- package/dist/Form/Form.cjs +7 -6
- package/dist/Form/Form.d.ts.map +1 -1
- package/dist/Form/Form.js +6 -5
- package/dist/Form/FormDatePicker/DatePickerTrigger.cjs +263 -0
- package/dist/Form/FormDatePicker/DatePickerTrigger.d.ts +111 -0
- package/dist/Form/FormDatePicker/DatePickerTrigger.d.ts.map +1 -0
- package/dist/Form/FormDatePicker/DatePickerTrigger.js +259 -0
- package/dist/Form/FormDatePicker/FormDatePicker.cjs +65 -66
- package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/FormDatePicker.js +66 -65
- package/dist/Form/FormDatePicker/RangeDatePicker.cjs +25 -68
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +5 -2
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.js +26 -69
- package/dist/Form/FormDatePicker/SingleDatePicker.cjs +43 -66
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +5 -2
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.js +44 -67
- package/dist/Form/FormDatePicker/TimeInput.cjs +44 -59
- package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimeInput.js +44 -59
- package/dist/Form/FormDatePicker/TimePicker.cjs +39 -17
- package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimePicker.js +39 -17
- package/dist/Form/FormDatePicker/types.d.ts +5 -0
- package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/useFormDatePicker.cjs +3 -4
- package/dist/Form/FormDatePicker/useFormDatePicker.js +1 -2
- package/dist/Form/FormFileUpload/FileUpload.cjs +24 -29
- package/dist/Form/FormFileUpload/FileUpload.js +24 -29
- package/dist/Form/FormFileUpload/index.cjs +2 -2
- package/dist/Form/FormFileUpload/index.js +1 -1
- package/dist/Form/FormMultiSelect/FormMultiSelect.d.ts +6 -1
- package/dist/Form/FormMultiSelect/FormMultiSelect.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/FormNumberInput.cjs +21 -11
- package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/FormNumberInput.js +20 -10
- package/dist/Form/FormSelect/FormSelect.cjs +45 -18
- package/dist/Form/FormSelect/FormSelect.js +45 -18
- package/dist/Form/FormSelect/types.d.ts +2 -0
- package/dist/Form/FormSelect/types.d.ts.map +1 -1
- package/dist/Icons/Icons.cjs +51 -0
- package/dist/Icons/Icons.d.ts +50 -0
- package/dist/Icons/Icons.d.ts.map +1 -1
- package/dist/Icons/Icons.js +52 -1
- package/dist/Icons/JiraIcons.cjs +350 -0
- package/dist/Icons/JiraIcons.d.ts +25 -0
- package/dist/Icons/JiraIcons.d.ts.map +1 -0
- package/dist/Icons/JiraIcons.js +346 -0
- package/dist/Icons/index.cjs +11 -0
- package/dist/Icons/index.d.ts +1 -0
- package/dist/Icons/index.d.ts.map +1 -1
- package/dist/Icons/index.js +3 -0
- package/dist/MultiSelect/MultiSelect.cjs +20 -9
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.js +20 -9
- package/dist/MultiSelect/renderers.cjs +95 -52
- package/dist/MultiSelect/renderers.d.ts.map +1 -1
- package/dist/MultiSelect/renderers.js +95 -52
- package/dist/Select/BaseSelect.cjs +75 -24
- package/dist/Select/BaseSelect.d.ts.map +1 -1
- package/dist/Select/BaseSelect.js +76 -25
- package/dist/Select/MultiSelectTags.cjs +0 -1
- package/dist/Select/MultiSelectTags.d.ts.map +1 -1
- package/dist/Select/MultiSelectTags.js +0 -1
- package/dist/Select/type.d.ts +1 -0
- package/dist/Select/type.d.ts.map +1 -1
- package/dist/Tag/Tag.cjs +154 -0
- package/dist/Tag/Tag.d.ts +19 -0
- package/dist/Tag/Tag.d.ts.map +1 -0
- package/dist/Tag/Tag.js +151 -0
- package/dist/Tag/index.d.ts +3 -0
- package/dist/Tag/index.d.ts.map +1 -0
- package/dist/Typography/Blockquote.cjs +2 -1
- package/dist/Typography/Blockquote.d.ts +1 -1
- package/dist/Typography/Blockquote.d.ts.map +1 -1
- package/dist/Typography/Blockquote.js +2 -1
- package/dist/Typography/Code.cjs +2 -2
- package/dist/Typography/Code.d.ts +1 -1
- package/dist/Typography/Code.d.ts.map +1 -1
- package/dist/Typography/Code.js +2 -2
- package/dist/Typography/Link.cjs +2 -1
- package/dist/Typography/Link.d.ts +1 -1
- package/dist/Typography/Link.d.ts.map +1 -1
- package/dist/Typography/Link.js +2 -1
- package/dist/Typography/Paragraph.cjs +2 -1
- package/dist/Typography/Paragraph.d.ts +1 -1
- package/dist/Typography/Paragraph.d.ts.map +1 -1
- package/dist/Typography/Paragraph.js +2 -1
- package/dist/Typography/Text.cjs +2 -1
- package/dist/Typography/Text.d.ts +1 -1
- package/dist/Typography/Text.d.ts.map +1 -1
- package/dist/Typography/Text.js +2 -1
- package/dist/Typography/types.d.ts +2 -0
- package/dist/Typography/types.d.ts.map +1 -1
- package/dist/assets/stylex.css +313 -43
- package/dist/index.cjs +29 -7
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -12
- package/dist/layout/index.js +2 -2
- package/dist/stylex-config.cjs +56 -0
- package/dist/stylex-config.d.ts +14 -0
- package/dist/stylex-config.d.ts.map +1 -0
- package/dist/stylex-config.js +55 -0
- package/dist/theme/index.cjs +4 -0
- package/dist/theme/index.js +4 -2
- package/dist/theme/tokens.stylex.cjs +34 -0
- package/dist/theme/tokens.stylex.d.ts +53 -0
- package/dist/theme/tokens.stylex.d.ts.map +1 -1
- package/dist/theme/tokens.stylex.js +33 -1
- package/dist/theme.css +339 -50
- package/dist/ui/accordion.cjs +0 -1
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +0 -1
- package/dist/ui/alert-dialog.cjs +11 -11
- package/dist/ui/alert-dialog.js +9 -9
- package/dist/ui/aspect-ratio.cjs +2 -2
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/avatar.cjs +110 -41
- package/dist/ui/avatar.d.ts +7 -1
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +110 -41
- package/dist/ui/badge-overflow.cjs +33 -8
- package/dist/ui/badge-overflow.d.ts.map +1 -1
- package/dist/ui/badge-overflow.js +33 -8
- package/dist/ui/breadcrumb.cjs +18 -8
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +18 -8
- package/dist/ui/button.cjs +3 -3
- package/dist/ui/button.js +3 -3
- package/dist/ui/card.cjs +23 -88
- package/dist/ui/card.d.ts +11 -4
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +23 -88
- package/dist/ui/carousel.cjs +27 -8
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +25 -7
- package/dist/ui/checkbox.cjs +2 -2
- package/dist/ui/checkbox.d.ts +3 -2
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +2 -2
- package/dist/ui/code-block.cjs +6 -12
- package/dist/ui/code-block.js +6 -12
- package/dist/ui/collapsible.cjs +4 -4
- package/dist/ui/collapsible.js +6 -6
- package/dist/ui/command.cjs +1 -2
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +1 -2
- package/dist/ui/context-menu.cjs +42 -48
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +41 -47
- package/dist/ui/copy-button.cjs +0 -1
- package/dist/ui/copy-button.js +0 -1
- package/dist/ui/dialog.cjs +3 -3
- package/dist/ui/dialog.js +3 -3
- package/dist/ui/drawer.cjs +9 -9
- package/dist/ui/drawer.js +11 -11
- package/dist/ui/dropdown-menu.cjs +4 -4
- package/dist/ui/dropdown-menu.d.ts +3 -1
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +4 -4
- package/dist/ui/editable.cjs +0 -1
- package/dist/ui/editable.d.ts.map +1 -1
- package/dist/ui/editable.js +0 -1
- package/dist/ui/empty.cjs +6 -5
- package/dist/ui/empty.d.ts +2 -0
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +6 -6
- package/dist/ui/field.cjs +0 -2
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +0 -2
- package/dist/ui/file-upload.cjs +88 -85
- package/dist/ui/file-upload.d.ts +1 -0
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +88 -86
- package/dist/ui/form.cjs +54 -66
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +50 -62
- package/dist/ui/hover-card.cjs +5 -5
- package/dist/ui/hover-card.js +3 -3
- package/dist/ui/input-group.cjs +0 -1
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +0 -1
- package/dist/ui/input-otp.cjs +3 -3
- package/dist/ui/input-otp.js +3 -3
- package/dist/ui/input.cjs +69 -7
- package/dist/ui/input.d.ts +3 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +69 -7
- package/dist/ui/kbd.cjs +22 -16
- package/dist/ui/kbd.d.ts.map +1 -1
- package/dist/ui/kbd.js +22 -16
- package/dist/ui/menubar.cjs +42 -48
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +40 -46
- package/dist/ui/navigation-menu.cjs +9 -9
- package/dist/ui/navigation-menu.js +4 -4
- package/dist/ui/pagination.cjs +7 -7
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +7 -7
- package/dist/ui/popover.cjs +6 -1
- package/dist/ui/popover.d.ts +3 -1
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +6 -1
- package/dist/ui/progress.cjs +27 -12
- package/dist/ui/progress.d.ts +3 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +27 -12
- package/dist/ui/resizable.cjs +4 -4
- package/dist/ui/resizable.js +1 -1
- package/dist/ui/responsive-dialog.cjs +1 -1
- package/dist/ui/responsive-dialog.js +1 -1
- package/dist/ui/scroll-area.cjs +4 -2
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +4 -2
- package/dist/ui/segmented.cjs +19 -10
- package/dist/ui/segmented.d.ts.map +1 -1
- package/dist/ui/segmented.js +20 -11
- package/dist/ui/sheet.cjs +1 -1
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/sidebar.cjs +9 -5
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +9 -5
- package/dist/ui/signature-pad.cjs +3 -0
- package/dist/ui/signature-pad.d.ts.map +1 -1
- package/dist/ui/signature-pad.js +3 -0
- package/dist/ui/slider.cjs +7 -8
- package/dist/ui/slider.js +7 -8
- package/dist/ui/sonner.cjs +6 -0
- package/dist/ui/sonner.d.ts +1 -0
- package/dist/ui/sonner.d.ts.map +1 -1
- package/dist/ui/sonner.js +2 -2
- package/dist/ui/stat.cjs +2 -3
- package/dist/ui/stat.d.ts.map +1 -1
- package/dist/ui/stat.js +2 -3
- package/dist/ui/stepper.cjs +107 -70
- package/dist/ui/stepper.d.ts +2 -2
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +108 -71
- package/dist/ui/switch.cjs +3 -3
- package/dist/ui/switch.js +3 -3
- package/dist/ui/tabs.cjs +150 -64
- package/dist/ui/tabs.d.ts +34 -5
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +148 -62
- package/dist/ui/timeline.cjs +2 -3
- package/dist/ui/timeline.d.ts.map +1 -1
- package/dist/ui/timeline.js +2 -3
- package/dist/ui/toggle-group.cjs +3 -3
- package/dist/ui/toggle-group.js +3 -3
- package/dist/ui/toggle.cjs +2 -2
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/tooltip.cjs +61 -11
- package/dist/ui/tooltip.d.ts +10 -2
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +61 -11
- package/dist/utils.cjs +72 -0
- package/dist/utils.d.ts +63 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +68 -1
- package/dist/vlrc-theme.css +21 -1
- package/package.json +22 -4
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +0 -551
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -542
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +0 -546
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -537
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +0 -330
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -319
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +0 -150
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +0 -132
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -113
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.cjs +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.cjs +0 -48
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js +0 -43
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +0 -145
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -125
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs +0 -38
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +0 -34
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.cjs +0 -126
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.js +0 -118
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.cjs +0 -134
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -128
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.cjs +0 -541
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.js +0 -537
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -39
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -35
- package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.cjs +0 -304
- package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -272
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.cjs +0 -108
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.js +0 -104
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.cjs +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +0 -275
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -271
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +0 -53
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -48
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +0 -215
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -212
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.cjs +0 -219
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -209
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.cjs +0 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.cjs +0 -802
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.js +0 -769
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.cjs +0 -410
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.js +0 -376
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +0 -741
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.js +0 -722
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.cjs +0 -246
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.js +0 -237
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.cjs +0 -27
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.js +0 -23
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.cjs +0 -148
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.js +0 -145
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -55
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.js +0 -50
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +0 -223
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -216
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.cjs +0 -576
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.js +0 -560
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.cjs +0 -202
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.js +0 -190
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.cjs +0 -159
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.js +0 -149
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +0 -158
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.js +0 -152
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.cjs +0 -39
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.js +0 -35
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +0 -109
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -105
- package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs +0 -28
- package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.js +0 -25
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +0 -33
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -30
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +0 -7
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.cjs +0 -25
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.cjs +0 -47
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.js +0 -44
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +0 -38
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -33
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +0 -106
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -106
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.cjs +0 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js +0 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.cjs +0 -6
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js +0 -6
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.cjs +0 -423
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js +0 -423
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.cjs +0 -45
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js +0 -45
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.cjs +0 -42
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js +0 -42
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +0 -20
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -20
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.cjs +0 -7
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js +0 -7
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.cjs +0 -27
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js +0 -25
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.cjs +0 -45
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js +0 -42
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.cjs +0 -45
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js +0 -44
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.cjs +0 -49
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js +0 -48
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.cjs +0 -358
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js +0 -354
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.cjs +0 -31
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js +0 -30
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.cjs +0 -35
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js +0 -34
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.cjs +0 -44
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js +0 -43
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.cjs +0 -49
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js +0 -48
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.cjs +0 -61
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js +0 -60
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.cjs +0 -38
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js +0 -37
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.cjs +0 -39
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js +0 -38
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +0 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +0 -27
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -27
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +0 -18
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +0 -77
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -77
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +0 -31
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -31
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +0 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +0 -210
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -210
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +0 -122
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +0 -123
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.cjs +0 -28
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +0 -27
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.cjs +0 -34
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.cjs +0 -37
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js +0 -36
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.cjs +0 -41
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js +0 -40
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.cjs +0 -45
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js +0 -44
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.cjs +0 -56
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js +0 -55
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.cjs +0 -35
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js +0 -34
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.cjs +0 -45
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js +0 -44
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +0 -34
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -34
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +0 -39
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -36
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +0 -1391
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1391
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +0 -7
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -4
- package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.cjs +0 -387
- package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.js +0 -383
- package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.cjs +0 -625
- package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.js +0 -616
- package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.cjs +0 -1033
- package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.js +0 -1026
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +0 -47
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -43
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +0 -13
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/index.cjs +0 -4
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +0 -36
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -35
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +0 -15
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -13
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +0 -167
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -163
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.cjs +0 -63
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -61
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +0 -14
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -14
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +0 -84
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -83
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.cjs +0 -3
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -4
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +0 -6
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -6
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.cjs +0 -1617
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js +0 -1600
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.cjs +0 -18
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.js +0 -18
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.cjs +0 -26
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.js +0 -24
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/index.cjs +0 -4
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.cjs +0 -40
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -40
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +0 -36
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -29
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +0 -20
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -20
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +0 -46
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -44
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.cjs +0 -39
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -39
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.cjs +0 -18
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.js +0 -16
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.cjs +0 -81
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.js +0 -81
- package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.cjs +0 -1252
- package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.js +0 -1243
|
@@ -2,6 +2,7 @@ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
|
2
2
|
const require_Icons = require("../Icons/Icons.cjs");
|
|
3
3
|
const require_Text = require("../Typography/Text.cjs");
|
|
4
4
|
const require_width = require("../theme/width.cjs");
|
|
5
|
+
const require_utils = require("../utils.cjs");
|
|
5
6
|
const require_popover = require("../ui/popover.cjs");
|
|
6
7
|
const require_MultiSelectTags = require("./MultiSelectTags.cjs");
|
|
7
8
|
let _stylexjs_stylex = require("@stylexjs/stylex");
|
|
@@ -47,17 +48,26 @@ var styles = {
|
|
|
47
48
|
$$css: true
|
|
48
49
|
}
|
|
49
50
|
};
|
|
51
|
+
var EMPTY_INJECT_OPTIONS = [];
|
|
50
52
|
function isMultiProps(props) {
|
|
51
53
|
return props.isMulti === true;
|
|
52
54
|
}
|
|
53
55
|
function BaseSelect(props) {
|
|
54
|
-
const { options, injectOptions =
|
|
56
|
+
const { options, injectOptions = EMPTY_INJECT_OPTIONS, placeholder = "Select...", isClearable = true, isSearchable = true, isLoading = false, className = "", disabled = false, onSearchTextChange, hasNextPage = false, isFetchingNextPage = false, fetchNextPage, maxTagCount = "responsive", tagRender, showSelectAll = false, suffixIcon, width } = props;
|
|
55
57
|
const isMulti = isMultiProps(props);
|
|
56
58
|
const { value } = props;
|
|
57
59
|
const resolvedWidth = require_width.resolveWidth(width);
|
|
58
60
|
const [open, setOpen] = (0, react.useState)(false);
|
|
59
61
|
const [search, setSearch] = (0, react.useState)("");
|
|
62
|
+
const [focusedIndex, setFocusedIndex] = (0, react.useState)(0);
|
|
60
63
|
const inputRef = (0, react.useRef)(null);
|
|
64
|
+
const optionsListRef = (0, react.useRef)(null);
|
|
65
|
+
(0, react.useEffect)(() => {
|
|
66
|
+
if (!open) {
|
|
67
|
+
setSearch("");
|
|
68
|
+
onSearchTextChange?.("");
|
|
69
|
+
}
|
|
70
|
+
}, [open, onSearchTextChange]);
|
|
61
71
|
const allOptions = (0, react.useMemo)(() => {
|
|
62
72
|
const map = /* @__PURE__ */ new Map();
|
|
63
73
|
for (const opt of injectOptions) map.set(opt.value, opt);
|
|
@@ -73,8 +83,14 @@ function BaseSelect(props) {
|
|
|
73
83
|
if (isMulti) return Array.isArray(value) ? value : [];
|
|
74
84
|
return [value];
|
|
75
85
|
}, [value, isMulti]);
|
|
86
|
+
(0, react.useEffect)(() => {
|
|
87
|
+
if (open) {
|
|
88
|
+
const selectedIdx = filteredOptions.findIndex((opt_2) => selectedValues.includes(opt_2.value));
|
|
89
|
+
setFocusedIndex(selectedIdx >= 0 ? selectedIdx : 0);
|
|
90
|
+
}
|
|
91
|
+
}, [open, search]);
|
|
76
92
|
const selectedOptions = (0, react.useMemo)(() => {
|
|
77
|
-
return allOptions.filter((
|
|
93
|
+
return allOptions.filter((opt_3) => selectedValues.includes(opt_3.value));
|
|
78
94
|
}, [allOptions, selectedValues]);
|
|
79
95
|
const handleSelect = (val) => {
|
|
80
96
|
if (disabled) return;
|
|
@@ -104,7 +120,7 @@ function BaseSelect(props) {
|
|
|
104
120
|
};
|
|
105
121
|
const displayLabel = (0, react.useMemo)(() => {
|
|
106
122
|
if (isMulti) return "";
|
|
107
|
-
return allOptions.find((
|
|
123
|
+
return allOptions.find((opt_4) => opt_4.value === selectedValues[0])?.label || "";
|
|
108
124
|
}, [
|
|
109
125
|
selectedValues,
|
|
110
126
|
allOptions,
|
|
@@ -120,15 +136,39 @@ function BaseSelect(props) {
|
|
|
120
136
|
if (selectedValues.length === filteredOptions.length) {
|
|
121
137
|
if (props.onChange) props.onChange([]);
|
|
122
138
|
} else {
|
|
123
|
-
const allValues = filteredOptions.map((
|
|
139
|
+
const allValues = filteredOptions.map((opt_5) => opt_5.value);
|
|
124
140
|
if (props.onChange) props.onChange(allValues);
|
|
125
141
|
}
|
|
126
142
|
};
|
|
143
|
+
const handleSearchKeyDown = (e_2) => {
|
|
144
|
+
if (e_2.key === "ArrowDown") {
|
|
145
|
+
e_2.preventDefault();
|
|
146
|
+
const targetIdx = focusedIndex >= 0 && focusedIndex < filteredOptions.length ? focusedIndex : 0;
|
|
147
|
+
setFocusedIndex(targetIdx);
|
|
148
|
+
(optionsListRef.current?.querySelectorAll("[role=\"option\"]"))?.[targetIdx]?.focus();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const handleOptionKeyDown = (e_3, index, optValue) => {
|
|
152
|
+
if (e_3.key === "Enter" || e_3.key === " ") {
|
|
153
|
+
e_3.preventDefault();
|
|
154
|
+
handleSelect(optValue);
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const nextIdx = require_utils.getNextRovingIndex(e_3.key, index, filteredOptions.length, {
|
|
158
|
+
orientation: "vertical",
|
|
159
|
+
loop: true
|
|
160
|
+
});
|
|
161
|
+
if (nextIdx !== null) {
|
|
162
|
+
e_3.preventDefault();
|
|
163
|
+
setFocusedIndex(nextIdx);
|
|
164
|
+
(optionsListRef.current?.querySelectorAll("[role=\"option\"]"))?.[nextIdx]?.focus();
|
|
165
|
+
}
|
|
166
|
+
};
|
|
127
167
|
const triggerProps = {
|
|
128
|
-
0: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 xsyin8q x1ryrjj2 x1bilvtl xboafo0 x1mlyrtw x84br7x x1ypdohk x1a2a7pz xfk7h2l x16mfhj0 xx6bhzk" },
|
|
129
|
-
2: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 x1ryrjj2 x1bilvtl xboafo0 x1mlyrtw x84br7x x1ypdohk x1a2a7pz x16mfhj0 xx6bhzk x1puiyjm xf0oo4t" },
|
|
130
|
-
1: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 xsyin8q x1ryrjj2 x1bilvtl xboafo0 x84br7x x1a2a7pz xfk7h2l x16mfhj0 xx6bhzk x1qry0bl x1h6gzvc x197sbye" },
|
|
131
|
-
3: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 x1ryrjj2 x1bilvtl xboafo0 x84br7x x1a2a7pz x16mfhj0 xx6bhzk x1puiyjm xf0oo4t x1qry0bl x1h6gzvc x197sbye" }
|
|
168
|
+
0: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 xsyin8q x1ryrjj2 x1bilvtl xboafo0 x1mlyrtw x84br7x x1ypdohk x1a2a7pz xfk7h2l x16mfhj0 xx6bhzk x156qtes xik21o4" },
|
|
169
|
+
2: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 x1ryrjj2 x1bilvtl xboafo0 x1mlyrtw x84br7x x1ypdohk x1a2a7pz x16mfhj0 xx6bhzk x156qtes xik21o4 x1puiyjm xf0oo4t" },
|
|
170
|
+
1: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 xsyin8q x1ryrjj2 x1bilvtl xboafo0 x84br7x x1a2a7pz xfk7h2l x16mfhj0 xx6bhzk x156qtes xik21o4 x1qry0bl x1h6gzvc x197sbye" },
|
|
171
|
+
3: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 x1ryrjj2 x1bilvtl xboafo0 x84br7x x1a2a7pz x16mfhj0 xx6bhzk x156qtes xik21o4 x1puiyjm xf0oo4t x1qry0bl x1h6gzvc x197sbye" }
|
|
132
172
|
}[!!open << 1 | !!disabled << 0];
|
|
133
173
|
const mergedTriggerClassName = className ? `${triggerProps.className || ""} ${className}`.trim() : triggerProps.className;
|
|
134
174
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_popover.Popover, {
|
|
@@ -158,12 +198,16 @@ function BaseSelect(props) {
|
|
|
158
198
|
onRemove: handleRemoveTag,
|
|
159
199
|
disabled,
|
|
160
200
|
tagRender
|
|
161
|
-
}) : displayLabel ? /* @__PURE__ */ (0, react_jsx_runtime.
|
|
201
|
+
}) : displayLabel ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [selectedOptions[0]?.icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
202
|
+
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
203
|
+
"aria-hidden": "true",
|
|
204
|
+
children: selectedOptions[0].icon
|
|
205
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
162
206
|
ellipsis: true,
|
|
163
207
|
tooltip: true,
|
|
164
208
|
sx: styles.labelArea,
|
|
165
209
|
children: displayLabel
|
|
166
|
-
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
210
|
+
})] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
167
211
|
sx: [styles.labelArea, styles.placeholder],
|
|
168
212
|
children: placeholder
|
|
169
213
|
}),
|
|
@@ -171,7 +215,7 @@ function BaseSelect(props) {
|
|
|
171
215
|
className: "x1xvt488 xf08kfj x13zjp5t xw3nh4a x2lah0s x1ypdohk x1mqvv6a",
|
|
172
216
|
onClick: handleClear
|
|
173
217
|
}),
|
|
174
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icons.Icons.ChevronDownIcon, { className: "x1xvt488 xf08kfj x13zjp5t xw3nh4a x2lah0s" })
|
|
218
|
+
suffixIcon ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icons.Icons.ChevronDownIcon, { className: "x1xvt488 xf08kfj x13zjp5t xw3nh4a x2lah0s" })
|
|
175
219
|
]
|
|
176
220
|
})
|
|
177
221
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_popover.PopoverContent, {
|
|
@@ -186,6 +230,7 @@ function BaseSelect(props) {
|
|
|
186
230
|
placeholder: "Search...",
|
|
187
231
|
value: search,
|
|
188
232
|
onChange: handleSearchChange,
|
|
233
|
+
onKeyDown: handleSearchKeyDown,
|
|
189
234
|
autoFocus: true,
|
|
190
235
|
disabled
|
|
191
236
|
})]
|
|
@@ -194,12 +239,10 @@ function BaseSelect(props) {
|
|
|
194
239
|
className: "x78zum5 x6s0dn4 x1ryrjj2 x18g2hj5 xso031l x1q0q8m5 x1c03eaz x1ypdohk xboafo0 xk50ysn x9p52ec",
|
|
195
240
|
onClick: handleSelectAll,
|
|
196
241
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
197
|
-
as: "span",
|
|
198
242
|
size: "sm",
|
|
199
243
|
sx: styles.selectAllText,
|
|
200
244
|
children: selectedValues.length === filteredOptions.length ? "Deselect all" : "Select all"
|
|
201
245
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Text.Text, {
|
|
202
|
-
as: "span",
|
|
203
246
|
size: "sm",
|
|
204
247
|
type: "secondary",
|
|
205
248
|
sx: styles.placeholder,
|
|
@@ -213,6 +256,9 @@ function BaseSelect(props) {
|
|
|
213
256
|
})]
|
|
214
257
|
}),
|
|
215
258
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
259
|
+
ref: optionsListRef,
|
|
260
|
+
role: "listbox",
|
|
261
|
+
"aria-multiselectable": isMulti,
|
|
216
262
|
className: "x17l2srq x1odjw0f x6ikm8r",
|
|
217
263
|
onScroll: handleScroll,
|
|
218
264
|
children: isLoading && allOptions.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -221,26 +267,31 @@ function BaseSelect(props) {
|
|
|
221
267
|
}) : filteredOptions.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
222
268
|
className: "x79iv2k x2b8uid xw3nh4a xboafo0",
|
|
223
269
|
children: "No data"
|
|
224
|
-
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [filteredOptions.map((
|
|
225
|
-
const isSelected = selectedValues.includes(
|
|
270
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [filteredOptions.map((opt_6, index_0) => {
|
|
271
|
+
const isSelected = selectedValues.includes(opt_6.value);
|
|
226
272
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
273
|
+
role: "option",
|
|
274
|
+
"aria-selected": isSelected,
|
|
275
|
+
tabIndex: !disabled && (index_0 === focusedIndex || focusedIndex < 0 && index_0 === 0) ? 0 : -1,
|
|
227
276
|
...{
|
|
228
|
-
0: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x9p52ec" },
|
|
229
|
-
2: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x9p52ec x1xke173" },
|
|
230
|
-
1: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x9p52ec x47corl x197sbye" },
|
|
231
|
-
3: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x9p52ec x1xke173 x47corl x197sbye" }
|
|
277
|
+
0: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x1a2a7pz x9p52ec x16yrc4t x13nj1q9" },
|
|
278
|
+
2: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x1a2a7pz x9p52ec x16yrc4t x13nj1q9 x1xke173" },
|
|
279
|
+
1: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x1a2a7pz x9p52ec x16yrc4t x13nj1q9 x47corl x197sbye" },
|
|
280
|
+
3: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x1a2a7pz x9p52ec x16yrc4t x13nj1q9 x1xke173 x47corl x197sbye" }
|
|
232
281
|
}[!!isSelected << 1 | !!disabled << 0],
|
|
233
|
-
onClick: () => handleSelect(
|
|
282
|
+
onClick: () => handleSelect(opt_6.value),
|
|
283
|
+
onFocus: () => setFocusedIndex(index_0),
|
|
284
|
+
onKeyDown: (e_4) => handleOptionKeyDown(e_4, index_0, opt_6.value),
|
|
234
285
|
children: [
|
|
235
|
-
|
|
286
|
+
opt_6.icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
236
287
|
className: "xpoiemb x2lah0s",
|
|
237
|
-
children:
|
|
288
|
+
children: opt_6.icon
|
|
238
289
|
}),
|
|
239
290
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
240
291
|
ellipsis: true,
|
|
241
292
|
tooltip: true,
|
|
242
293
|
sx: styles.optionLabel,
|
|
243
|
-
children:
|
|
294
|
+
children: opt_6.label
|
|
244
295
|
}),
|
|
245
296
|
isMulti && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
246
297
|
...{
|
|
@@ -251,7 +302,7 @@ function BaseSelect(props) {
|
|
|
251
302
|
}),
|
|
252
303
|
!isMulti && isSelected && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icons.Icons.CheckIcon, { className: "x1jw3ynk xvle69y x6gpbkk" })
|
|
253
304
|
]
|
|
254
|
-
}, String(
|
|
305
|
+
}, String(opt_6.value));
|
|
255
306
|
}), (isFetchingNextPage || hasNextPage && filteredOptions.length > 0) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
256
307
|
className: "x79iv2k x2b8uid xw3nh4a xboafo0",
|
|
257
308
|
children: isFetchingNextPage ? "Loading more..." : ""
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSelect.d.ts","sourceRoot":"","sources":["../../src/Select/BaseSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"BaseSelect.d.ts","sourceRoot":"","sources":["../../src/Select/BaseSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAWpE,OAAO,KAAK,EACV,oBAAoB,EAGpB,qBAAqB,EACrB,WAAW,EACZ,MAAM,QAAQ,CAAC;AAsMhB,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAC5D,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAC7B,KAAK,CAAC,YAAY,CAAC;AACtB,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAC5D,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAC9B,KAAK,CAAC,YAAY,CAAC;eAsUP,UAAU"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Icons } from "../Icons/Icons.js";
|
|
2
2
|
import { Text } from "../Typography/Text.js";
|
|
3
3
|
import { resolveWidth } from "../theme/width.js";
|
|
4
|
+
import { getNextRovingIndex } from "../utils.js";
|
|
4
5
|
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover.js";
|
|
5
6
|
import { MultiSelectTags } from "./MultiSelectTags.js";
|
|
6
7
|
import "@stylexjs/stylex";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { useMemo, useRef, useState } from "react";
|
|
9
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
9
10
|
import { isNil } from "lodash-es";
|
|
10
11
|
// src/Select/BaseSelect.tsx
|
|
11
12
|
var styles = {
|
|
@@ -44,17 +45,26 @@ var styles = {
|
|
|
44
45
|
$$css: true
|
|
45
46
|
}
|
|
46
47
|
};
|
|
48
|
+
var EMPTY_INJECT_OPTIONS = [];
|
|
47
49
|
function isMultiProps(props) {
|
|
48
50
|
return props.isMulti === true;
|
|
49
51
|
}
|
|
50
52
|
function BaseSelect(props) {
|
|
51
|
-
const { options, injectOptions =
|
|
53
|
+
const { options, injectOptions = EMPTY_INJECT_OPTIONS, placeholder = "Select...", isClearable = true, isSearchable = true, isLoading = false, className = "", disabled = false, onSearchTextChange, hasNextPage = false, isFetchingNextPage = false, fetchNextPage, maxTagCount = "responsive", tagRender, showSelectAll = false, suffixIcon, width } = props;
|
|
52
54
|
const isMulti = isMultiProps(props);
|
|
53
55
|
const { value } = props;
|
|
54
56
|
const resolvedWidth = resolveWidth(width);
|
|
55
57
|
const [open, setOpen] = useState(false);
|
|
56
58
|
const [search, setSearch] = useState("");
|
|
59
|
+
const [focusedIndex, setFocusedIndex] = useState(0);
|
|
57
60
|
const inputRef = useRef(null);
|
|
61
|
+
const optionsListRef = useRef(null);
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
if (!open) {
|
|
64
|
+
setSearch("");
|
|
65
|
+
onSearchTextChange?.("");
|
|
66
|
+
}
|
|
67
|
+
}, [open, onSearchTextChange]);
|
|
58
68
|
const allOptions = useMemo(() => {
|
|
59
69
|
const map = /* @__PURE__ */ new Map();
|
|
60
70
|
for (const opt of injectOptions) map.set(opt.value, opt);
|
|
@@ -70,8 +80,14 @@ function BaseSelect(props) {
|
|
|
70
80
|
if (isMulti) return Array.isArray(value) ? value : [];
|
|
71
81
|
return [value];
|
|
72
82
|
}, [value, isMulti]);
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
if (open) {
|
|
85
|
+
const selectedIdx = filteredOptions.findIndex((opt_2) => selectedValues.includes(opt_2.value));
|
|
86
|
+
setFocusedIndex(selectedIdx >= 0 ? selectedIdx : 0);
|
|
87
|
+
}
|
|
88
|
+
}, [open, search]);
|
|
73
89
|
const selectedOptions = useMemo(() => {
|
|
74
|
-
return allOptions.filter((
|
|
90
|
+
return allOptions.filter((opt_3) => selectedValues.includes(opt_3.value));
|
|
75
91
|
}, [allOptions, selectedValues]);
|
|
76
92
|
const handleSelect = (val) => {
|
|
77
93
|
if (disabled) return;
|
|
@@ -101,7 +117,7 @@ function BaseSelect(props) {
|
|
|
101
117
|
};
|
|
102
118
|
const displayLabel = useMemo(() => {
|
|
103
119
|
if (isMulti) return "";
|
|
104
|
-
return allOptions.find((
|
|
120
|
+
return allOptions.find((opt_4) => opt_4.value === selectedValues[0])?.label || "";
|
|
105
121
|
}, [
|
|
106
122
|
selectedValues,
|
|
107
123
|
allOptions,
|
|
@@ -117,15 +133,39 @@ function BaseSelect(props) {
|
|
|
117
133
|
if (selectedValues.length === filteredOptions.length) {
|
|
118
134
|
if (props.onChange) props.onChange([]);
|
|
119
135
|
} else {
|
|
120
|
-
const allValues = filteredOptions.map((
|
|
136
|
+
const allValues = filteredOptions.map((opt_5) => opt_5.value);
|
|
121
137
|
if (props.onChange) props.onChange(allValues);
|
|
122
138
|
}
|
|
123
139
|
};
|
|
140
|
+
const handleSearchKeyDown = (e_2) => {
|
|
141
|
+
if (e_2.key === "ArrowDown") {
|
|
142
|
+
e_2.preventDefault();
|
|
143
|
+
const targetIdx = focusedIndex >= 0 && focusedIndex < filteredOptions.length ? focusedIndex : 0;
|
|
144
|
+
setFocusedIndex(targetIdx);
|
|
145
|
+
(optionsListRef.current?.querySelectorAll("[role=\"option\"]"))?.[targetIdx]?.focus();
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
const handleOptionKeyDown = (e_3, index, optValue) => {
|
|
149
|
+
if (e_3.key === "Enter" || e_3.key === " ") {
|
|
150
|
+
e_3.preventDefault();
|
|
151
|
+
handleSelect(optValue);
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const nextIdx = getNextRovingIndex(e_3.key, index, filteredOptions.length, {
|
|
155
|
+
orientation: "vertical",
|
|
156
|
+
loop: true
|
|
157
|
+
});
|
|
158
|
+
if (nextIdx !== null) {
|
|
159
|
+
e_3.preventDefault();
|
|
160
|
+
setFocusedIndex(nextIdx);
|
|
161
|
+
(optionsListRef.current?.querySelectorAll("[role=\"option\"]"))?.[nextIdx]?.focus();
|
|
162
|
+
}
|
|
163
|
+
};
|
|
124
164
|
const triggerProps = {
|
|
125
|
-
0: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 xsyin8q x1ryrjj2 x1bilvtl xboafo0 x1mlyrtw x84br7x x1ypdohk x1a2a7pz xfk7h2l x16mfhj0 xx6bhzk" },
|
|
126
|
-
2: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 x1ryrjj2 x1bilvtl xboafo0 x1mlyrtw x84br7x x1ypdohk x1a2a7pz x16mfhj0 xx6bhzk x1puiyjm xf0oo4t" },
|
|
127
|
-
1: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 xsyin8q x1ryrjj2 x1bilvtl xboafo0 x84br7x x1a2a7pz xfk7h2l x16mfhj0 xx6bhzk x1qry0bl x1h6gzvc x197sbye" },
|
|
128
|
-
3: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 x1ryrjj2 x1bilvtl xboafo0 x84br7x x1a2a7pz x16mfhj0 xx6bhzk x1puiyjm xf0oo4t x1qry0bl x1h6gzvc x197sbye" }
|
|
165
|
+
0: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 xsyin8q x1ryrjj2 x1bilvtl xboafo0 x1mlyrtw x84br7x x1ypdohk x1a2a7pz xfk7h2l x16mfhj0 xx6bhzk x156qtes xik21o4" },
|
|
166
|
+
2: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 x1ryrjj2 x1bilvtl xboafo0 x1mlyrtw x84br7x x1ypdohk x1a2a7pz x16mfhj0 xx6bhzk x156qtes xik21o4 x1puiyjm xf0oo4t" },
|
|
167
|
+
1: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 xsyin8q x1ryrjj2 x1bilvtl xboafo0 x84br7x x1a2a7pz xfk7h2l x16mfhj0 xx6bhzk x156qtes xik21o4 x1qry0bl x1h6gzvc x197sbye" },
|
|
168
|
+
3: { className: "x78zum5 x6s0dn4 xh8yej3 x1nedpf2 xrijj7p xmkeg23 x1y0btm7 x1ryrjj2 x1bilvtl xboafo0 x84br7x x1a2a7pz x16mfhj0 xx6bhzk x156qtes xik21o4 x1puiyjm xf0oo4t x1qry0bl x1h6gzvc x197sbye" }
|
|
129
169
|
}[!!open << 1 | !!disabled << 0];
|
|
130
170
|
const mergedTriggerClassName = className ? `${triggerProps.className || ""} ${className}`.trim() : triggerProps.className;
|
|
131
171
|
return /* @__PURE__ */ jsxs(Popover, {
|
|
@@ -155,12 +195,16 @@ function BaseSelect(props) {
|
|
|
155
195
|
onRemove: handleRemoveTag,
|
|
156
196
|
disabled,
|
|
157
197
|
tagRender
|
|
158
|
-
}) : displayLabel ? /* @__PURE__ */ jsx(
|
|
198
|
+
}) : displayLabel ? /* @__PURE__ */ jsxs(Fragment, { children: [selectedOptions[0]?.icon && /* @__PURE__ */ jsx("span", {
|
|
199
|
+
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
200
|
+
"aria-hidden": "true",
|
|
201
|
+
children: selectedOptions[0].icon
|
|
202
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
159
203
|
ellipsis: true,
|
|
160
204
|
tooltip: true,
|
|
161
205
|
sx: styles.labelArea,
|
|
162
206
|
children: displayLabel
|
|
163
|
-
}) : /* @__PURE__ */ jsx(Text, {
|
|
207
|
+
})] }) : /* @__PURE__ */ jsx(Text, {
|
|
164
208
|
sx: [styles.labelArea, styles.placeholder],
|
|
165
209
|
children: placeholder
|
|
166
210
|
}),
|
|
@@ -168,7 +212,7 @@ function BaseSelect(props) {
|
|
|
168
212
|
className: "x1xvt488 xf08kfj x13zjp5t xw3nh4a x2lah0s x1ypdohk x1mqvv6a",
|
|
169
213
|
onClick: handleClear
|
|
170
214
|
}),
|
|
171
|
-
/* @__PURE__ */ jsx(Icons.ChevronDownIcon, { className: "x1xvt488 xf08kfj x13zjp5t xw3nh4a x2lah0s" })
|
|
215
|
+
suffixIcon ?? /* @__PURE__ */ jsx(Icons.ChevronDownIcon, { className: "x1xvt488 xf08kfj x13zjp5t xw3nh4a x2lah0s" })
|
|
172
216
|
]
|
|
173
217
|
})
|
|
174
218
|
}), /* @__PURE__ */ jsxs(PopoverContent, {
|
|
@@ -183,6 +227,7 @@ function BaseSelect(props) {
|
|
|
183
227
|
placeholder: "Search...",
|
|
184
228
|
value: search,
|
|
185
229
|
onChange: handleSearchChange,
|
|
230
|
+
onKeyDown: handleSearchKeyDown,
|
|
186
231
|
autoFocus: true,
|
|
187
232
|
disabled
|
|
188
233
|
})]
|
|
@@ -191,12 +236,10 @@ function BaseSelect(props) {
|
|
|
191
236
|
className: "x78zum5 x6s0dn4 x1ryrjj2 x18g2hj5 xso031l x1q0q8m5 x1c03eaz x1ypdohk xboafo0 xk50ysn x9p52ec",
|
|
192
237
|
onClick: handleSelectAll,
|
|
193
238
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
194
|
-
as: "span",
|
|
195
239
|
size: "sm",
|
|
196
240
|
sx: styles.selectAllText,
|
|
197
241
|
children: selectedValues.length === filteredOptions.length ? "Deselect all" : "Select all"
|
|
198
242
|
}), /* @__PURE__ */ jsxs(Text, {
|
|
199
|
-
as: "span",
|
|
200
243
|
size: "sm",
|
|
201
244
|
type: "secondary",
|
|
202
245
|
sx: styles.placeholder,
|
|
@@ -210,6 +253,9 @@ function BaseSelect(props) {
|
|
|
210
253
|
})]
|
|
211
254
|
}),
|
|
212
255
|
/* @__PURE__ */ jsx("div", {
|
|
256
|
+
ref: optionsListRef,
|
|
257
|
+
role: "listbox",
|
|
258
|
+
"aria-multiselectable": isMulti,
|
|
213
259
|
className: "x17l2srq x1odjw0f x6ikm8r",
|
|
214
260
|
onScroll: handleScroll,
|
|
215
261
|
children: isLoading && allOptions.length === 0 ? /* @__PURE__ */ jsx("div", {
|
|
@@ -218,26 +264,31 @@ function BaseSelect(props) {
|
|
|
218
264
|
}) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx("div", {
|
|
219
265
|
className: "x79iv2k x2b8uid xw3nh4a xboafo0",
|
|
220
266
|
children: "No data"
|
|
221
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [filteredOptions.map((
|
|
222
|
-
const isSelected = selectedValues.includes(
|
|
267
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [filteredOptions.map((opt_6, index_0) => {
|
|
268
|
+
const isSelected = selectedValues.includes(opt_6.value);
|
|
223
269
|
return /* @__PURE__ */ jsxs("div", {
|
|
270
|
+
role: "option",
|
|
271
|
+
"aria-selected": isSelected,
|
|
272
|
+
tabIndex: !disabled && (index_0 === focusedIndex || focusedIndex < 0 && index_0 === 0) ? 0 : -1,
|
|
224
273
|
...{
|
|
225
|
-
0: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x9p52ec" },
|
|
226
|
-
2: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x9p52ec x1xke173" },
|
|
227
|
-
1: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x9p52ec x47corl x197sbye" },
|
|
228
|
-
3: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x9p52ec x1xke173 x47corl x197sbye" }
|
|
274
|
+
0: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x1a2a7pz x9p52ec x16yrc4t x13nj1q9" },
|
|
275
|
+
2: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x1a2a7pz x9p52ec x16yrc4t x13nj1q9 x1xke173" },
|
|
276
|
+
1: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x1a2a7pz x9p52ec x16yrc4t x13nj1q9 x47corl x197sbye" },
|
|
277
|
+
3: { className: "x78zum5 x6s0dn4 x1ryrjj2 x1bilvtl x1ypdohk xboafo0 x84br7x xeuugli x193iq5w x1a2a7pz x9p52ec x16yrc4t x13nj1q9 x1xke173 x47corl x197sbye" }
|
|
229
278
|
}[!!isSelected << 1 | !!disabled << 0],
|
|
230
|
-
onClick: () => handleSelect(
|
|
279
|
+
onClick: () => handleSelect(opt_6.value),
|
|
280
|
+
onFocus: () => setFocusedIndex(index_0),
|
|
281
|
+
onKeyDown: (e_4) => handleOptionKeyDown(e_4, index_0, opt_6.value),
|
|
231
282
|
children: [
|
|
232
|
-
|
|
283
|
+
opt_6.icon && /* @__PURE__ */ jsx("span", {
|
|
233
284
|
className: "xpoiemb x2lah0s",
|
|
234
|
-
children:
|
|
285
|
+
children: opt_6.icon
|
|
235
286
|
}),
|
|
236
287
|
/* @__PURE__ */ jsx(Text, {
|
|
237
288
|
ellipsis: true,
|
|
238
289
|
tooltip: true,
|
|
239
290
|
sx: styles.optionLabel,
|
|
240
|
-
children:
|
|
291
|
+
children: opt_6.label
|
|
241
292
|
}),
|
|
242
293
|
isMulti && /* @__PURE__ */ jsx("span", {
|
|
243
294
|
...{
|
|
@@ -248,7 +299,7 @@ function BaseSelect(props) {
|
|
|
248
299
|
}),
|
|
249
300
|
!isMulti && isSelected && /* @__PURE__ */ jsx(Icons.CheckIcon, { className: "x1jw3ynk xvle69y x6gpbkk" })
|
|
250
301
|
]
|
|
251
|
-
}, String(
|
|
302
|
+
}, String(opt_6.value));
|
|
252
303
|
}), (isFetchingNextPage || hasNextPage && filteredOptions.length > 0) && /* @__PURE__ */ jsx("div", {
|
|
253
304
|
className: "x79iv2k x2b8uid xw3nh4a xboafo0",
|
|
254
305
|
children: isFetchingNextPage ? "Loading more..." : ""
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectTags.d.ts","sourceRoot":"","sources":["../../src/Select/MultiSelectTags.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAiD5D;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAAE,EACnE,eAAe,EACf,WAA0B,EAC1B,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE;IACD,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;CAC9E,+
|
|
1
|
+
{"version":3,"file":"MultiSelectTags.d.ts","sourceRoot":"","sources":["../../src/Select/MultiSelectTags.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAiD5D;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAAE,EACnE,eAAe,EACf,WAA0B,EAC1B,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE;IACD,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;CAC9E,+BAoGA"}
|
package/dist/Select/type.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface BaseSelectCommonProps<T extends SelectValue = SelectValue> {
|
|
|
32
32
|
tagRender?: (option: BaseSelectOption<T>, onRemove: () => void) => ReactNode;
|
|
33
33
|
showSelectAll?: boolean;
|
|
34
34
|
allowClear?: boolean;
|
|
35
|
+
suffixIcon?: ReactNode;
|
|
35
36
|
/** Configurable component width (presets: 'full', 'auto', 'md', px number, or custom CSS string) */
|
|
36
37
|
width?: ComponentWidth;
|
|
37
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/Select/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IACnE,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IACxE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACpC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IAC7E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oGAAoG;IACpG,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB,CACnC,CAAC,SAAS,WAAW,GAAG,WAAW,CACnC,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB,CACpC,CAAC,SAAS,WAAW,GAAG,WAAW,CACnC,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAC3D,oBAAoB,CAAC,CAAC,CAAC,GACvB,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,IAAI,CAChF,qBAAqB,CAAC,CAAC,CAAC,EACtB,SAAS,GACT,eAAe,GACf,aAAa,GACb,aAAa,GACb,cAAc,GACd,WAAW,GACX,WAAW,GACX,UAAU,GACV,oBAAoB,GACpB,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,aAAa,GACb,WAAW,GACX,eAAe,GACf,YAAY,GACZ,OAAO,CACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/Select/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IACnE,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IACxE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACpC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IAC7E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,oGAAoG;IACpG,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB,CACnC,CAAC,SAAS,WAAW,GAAG,WAAW,CACnC,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB,CACpC,CAAC,SAAS,WAAW,GAAG,WAAW,CACnC,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAC3D,oBAAoB,CAAC,CAAC,CAAC,GACvB,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,IAAI,CAChF,qBAAqB,CAAC,CAAC,CAAC,EACtB,SAAS,GACT,eAAe,GACf,aAAa,GACb,aAAa,GACb,cAAc,GACd,WAAW,GACX,WAAW,GACX,UAAU,GACV,oBAAoB,GACpB,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,aAAa,GACb,WAAW,GACX,eAAe,GACf,YAAY,GACZ,OAAO,CACV,CAAC"}
|
package/dist/Tag/Tag.cjs
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_Icons = require("../Icons/Icons.cjs");
|
|
3
|
+
const require_Text = require("../Typography/Text.cjs");
|
|
4
|
+
const require_button = require("../ui/button.cjs");
|
|
5
|
+
const require_utils = require("../utils.cjs");
|
|
6
|
+
let _stylexjs_stylex = require("@stylexjs/stylex");
|
|
7
|
+
_stylexjs_stylex = require_runtime.__toESM(_stylexjs_stylex, 1);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let _astryxdesign_core = require("@astryxdesign/core");
|
|
10
|
+
// src/Tag/Tag.tsx
|
|
11
|
+
var styles = {
|
|
12
|
+
customTag: {
|
|
13
|
+
k1xSpc: "x3nfvp2",
|
|
14
|
+
kGNEyG: "x6s0dn4",
|
|
15
|
+
kOIVth: "xvh977a",
|
|
16
|
+
kaIpWk: "xqfady0",
|
|
17
|
+
kMzoRj: "xmkeg23",
|
|
18
|
+
ksu8eU: "x1y0btm7",
|
|
19
|
+
kg3NbH: "x97vtpp",
|
|
20
|
+
k8WAf4: "x1dus959",
|
|
21
|
+
kGuDYH: "xboafo0",
|
|
22
|
+
k63SB2: "xk50ysn",
|
|
23
|
+
kLWn49: "x132q4wb",
|
|
24
|
+
kzqmXN: "xeq5yr9",
|
|
25
|
+
khDVqt: "xuxw1ft",
|
|
26
|
+
k1ekBW: "x1eaenvl",
|
|
27
|
+
kIyJzY: "xx6bhzk",
|
|
28
|
+
$$css: true
|
|
29
|
+
},
|
|
30
|
+
clickable: {
|
|
31
|
+
kkrTdU: "x1ypdohk",
|
|
32
|
+
kEtg5x: "x13nj1q9",
|
|
33
|
+
k3Woio: "xk2swo9",
|
|
34
|
+
$$css: true
|
|
35
|
+
},
|
|
36
|
+
contentButton: {
|
|
37
|
+
k1xSpc: "x3nfvp2",
|
|
38
|
+
kGNEyG: "x6s0dn4",
|
|
39
|
+
kOIVth: "xvh977a",
|
|
40
|
+
kMwMTN: "x1heor9g",
|
|
41
|
+
kGuDYH: "x1qlqyl8",
|
|
42
|
+
k63SB2: "x1pd3egz",
|
|
43
|
+
$$css: true
|
|
44
|
+
},
|
|
45
|
+
closeButton: {
|
|
46
|
+
kg3NbH: "xnjsko4",
|
|
47
|
+
k8WAf4: "xt970qd",
|
|
48
|
+
kZKoxP: "x1l36t39",
|
|
49
|
+
kzqmXN: "xcdlrvm",
|
|
50
|
+
k7Eaqz: "xgomdpo",
|
|
51
|
+
kaIpWk: "x9psvww",
|
|
52
|
+
kSiTet: "x1ks1olk",
|
|
53
|
+
k1xSpc: "x3nfvp2",
|
|
54
|
+
kGNEyG: "x6s0dn4",
|
|
55
|
+
kjj79g: "xl56j7k",
|
|
56
|
+
kkrTdU: "x1ypdohk",
|
|
57
|
+
kMwMTN: "x1heor9g",
|
|
58
|
+
kKhh5M: "x1o7uuvo",
|
|
59
|
+
kGzVvX: "x1n5bzlp",
|
|
60
|
+
kEtg5x: "x13nj1q9",
|
|
61
|
+
k3Woio: "xk2swo9",
|
|
62
|
+
$$css: true
|
|
63
|
+
},
|
|
64
|
+
categoryDefault: {
|
|
65
|
+
kWkggS: "xv314u5",
|
|
66
|
+
kVAM5u: "xk901yq",
|
|
67
|
+
kMwMTN: "x1jrtr9o",
|
|
68
|
+
$$css: true
|
|
69
|
+
},
|
|
70
|
+
categoryGeekblue: {
|
|
71
|
+
kWkggS: "xm79r22",
|
|
72
|
+
kVAM5u: "x9i6qr",
|
|
73
|
+
kMwMTN: "x14nva5f",
|
|
74
|
+
$$css: true
|
|
75
|
+
},
|
|
76
|
+
categorySuccess: {
|
|
77
|
+
kWkggS: "xxioz0s",
|
|
78
|
+
kVAM5u: "x1e96xcz",
|
|
79
|
+
kMwMTN: "xxcw719",
|
|
80
|
+
$$css: true
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
function Tag({ label, children, closable = false, onClose, categoryColor, color = "default", size = "sm", icon, onClick, sx, className }) {
|
|
84
|
+
const content = label ?? children;
|
|
85
|
+
const XIcon = require_Icons.Icons.X;
|
|
86
|
+
if (!categoryColor && typeof content === "string") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.Token, {
|
|
87
|
+
label: content,
|
|
88
|
+
color,
|
|
89
|
+
size,
|
|
90
|
+
icon,
|
|
91
|
+
onRemove: closable ? (event) => {
|
|
92
|
+
event.stopPropagation();
|
|
93
|
+
onClose?.(event);
|
|
94
|
+
} : void 0,
|
|
95
|
+
onClick
|
|
96
|
+
});
|
|
97
|
+
const categoryStyle = categoryColor === "success" ? styles.categorySuccess : categoryColor === "geekblue" ? styles.categoryGeekblue : styles.categoryDefault;
|
|
98
|
+
const closeButton = closable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_button.Button, {
|
|
99
|
+
type: "button",
|
|
100
|
+
variant: "ghost",
|
|
101
|
+
size: "icon-xs",
|
|
102
|
+
"aria-label": "Remove tag",
|
|
103
|
+
sx: [require_utils.unstyledButtonStyles.reset, styles.closeButton],
|
|
104
|
+
onClick: (event_0) => {
|
|
105
|
+
event_0.stopPropagation();
|
|
106
|
+
onClose?.(event_0);
|
|
107
|
+
},
|
|
108
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(XIcon, { size: 12 })
|
|
109
|
+
}) : null;
|
|
110
|
+
if (onClick && !closable) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_button.Button, {
|
|
111
|
+
type: "button",
|
|
112
|
+
variant: "ghost",
|
|
113
|
+
sx: [
|
|
114
|
+
require_utils.unstyledButtonStyles.reset,
|
|
115
|
+
styles.customTag,
|
|
116
|
+
categoryStyle,
|
|
117
|
+
styles.clickable,
|
|
118
|
+
sx
|
|
119
|
+
],
|
|
120
|
+
className,
|
|
121
|
+
onClick,
|
|
122
|
+
children: [icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: icon }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: content })]
|
|
123
|
+
});
|
|
124
|
+
if (onClick && closable) {
|
|
125
|
+
const sxProps = _stylexjs_stylex.props(styles.customTag, categoryStyle, sx);
|
|
126
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
127
|
+
...sxProps,
|
|
128
|
+
className: className ? `${sxProps.className || ""} ${className}`.trim() : sxProps.className,
|
|
129
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_button.Button, {
|
|
130
|
+
type: "button",
|
|
131
|
+
variant: "ghost",
|
|
132
|
+
sx: [
|
|
133
|
+
require_utils.unstyledButtonStyles.reset,
|
|
134
|
+
styles.contentButton,
|
|
135
|
+
styles.clickable
|
|
136
|
+
],
|
|
137
|
+
onClick,
|
|
138
|
+
children: [icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: icon }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: content })]
|
|
139
|
+
}), closeButton]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
const sxProps_0 = _stylexjs_stylex.props(styles.customTag, categoryStyle, sx);
|
|
143
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
144
|
+
...sxProps_0,
|
|
145
|
+
className: className ? `${sxProps_0.className || ""} ${className}`.trim() : sxProps_0.className,
|
|
146
|
+
children: [
|
|
147
|
+
icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: icon }),
|
|
148
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: content }),
|
|
149
|
+
closeButton
|
|
150
|
+
]
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
exports.Tag = Tag;
|
|
154
|
+
exports.default = Tag;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MouseEvent as ReactMouseEvent, ReactNode } from 'react';
|
|
2
|
+
import * as stylex from '@stylexjs/stylex';
|
|
3
|
+
export type TagCategoryColor = 'default' | 'geekblue' | 'success';
|
|
4
|
+
export interface TagProps {
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
onClose?: (event: ReactMouseEvent) => void;
|
|
9
|
+
categoryColor?: TagCategoryColor;
|
|
10
|
+
color?: 'default' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'cyan' | 'blue' | 'purple' | 'pink' | 'gray';
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
onClick?: (event: ReactMouseEvent) => void;
|
|
14
|
+
sx?: stylex.StyleXStyles;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function Tag({ label, children, closable, onClose, categoryColor, color, size, icon, onClick, sx, className, }: TagProps): import("react").JSX.Element;
|
|
18
|
+
export default Tag;
|
|
19
|
+
//# sourceMappingURL=Tag.d.ts.map
|