@konstructio/ui 0.1.2-alpha.105 → 0.1.2-alpha.107
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/README.md +118 -31
- package/dist/{AdditionalOptions-D0BAS2HG.js → AdditionalOptions-Crcnz0_g.js} +1 -1
- package/dist/{AlertDialogTrigger-BGo_acd5.js → AlertDialogTrigger-ouMGAlJW.js} +39 -39
- package/dist/{Breadcrumb-Cp3abB2w.js → Breadcrumb-MrF1Z6w2.js} +3 -3
- package/dist/{Checkbox-B_ngk9Dj.js → Checkbox-8KnRLpQG.js} +60 -61
- package/dist/{CommandInput-BLq69pOT.js → CommandInput-CGnqfudl.js} +4 -4
- package/dist/{Counter-BV680M5r.js → Counter-CDXdP1Af.js} +3 -3
- package/dist/{DayPicker-kweJz134.js → DayPicker-C22j0Y-u.js} +539 -518
- package/dist/{DropdownButton-DfNojmCW.js → DropdownButton-D4QlKGg7.js} +7 -7
- package/dist/{FlagSelectorList-CkTR3j6O.js → FlagSelectorList-tYZNl-tz.js} +31 -24
- package/dist/{HamburgerTrigger-DRylBL2d.js → HamburgerTrigger-B_NGSZ2r.js} +20 -20
- package/dist/{ImageUpload-DiwymQcU.js → ImageUpload-D7HKSXK8.js} +71 -66
- package/dist/Input-is8n7emP.js +195 -0
- package/dist/{Loading-DUh9PMJN.js → Loading-DO8JOWBV.js} +1 -1
- package/dist/{Modal-Dyn088X7.js → Modal-Dq9BHD_9.js} +4 -4
- package/dist/{Spinner-CUwE2bLm.js → Spinner-BJE79VTl.js} +1 -1
- package/dist/{StepIndicatorContent-CjbjVjS1.js → StepIndicatorContent-BGDvxLzV.js} +1 -1
- package/dist/Switch-C7286Bcu.js +199 -0
- package/dist/{Toast-3NEz7LLa.js → Toast-jSx3Lao8.js} +8 -7
- package/dist/Wrapper-2AUlYAHQ.js +195 -0
- package/dist/{Wrapper-CVJSuYWx.js → Wrapper-CyHxGs4E.js} +4 -4
- package/dist/{Wrapper-DP6Sxngx.js → Wrapper-a7RVCcrn.js} +248 -242
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +27 -25
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -3
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +65 -60
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +10 -9
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +8 -6
- package/dist/components/Card/Card.js +25 -22
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +2 -2
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +2 -2
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +2 -2
- package/dist/components/Command/components/CommandShortcut.js +1 -1
- package/dist/components/Command/components/DialogContent.js +3 -3
- package/dist/components/Command/components/DialogOverlay.js +2 -2
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +30 -28
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +23 -21
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +48 -41
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +48 -41
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +2 -2
- package/dist/components/Divider/Divider.js +7 -7
- package/dist/components/Drawer/Drawer.js +28 -26
- package/dist/components/Drawer/components/Body/Body.js +1 -1
- package/dist/components/Drawer/components/Footer/Footer.js +1 -1
- package/dist/components/Drawer/components/Header/Header.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +51 -36
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +40 -38
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +1 -1
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +43 -41
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +1 -1
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +2 -2
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -3
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +17 -16
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +11 -11
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +3 -3
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +31 -28
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +2 -2
- package/dist/components/Select/Select.js +43 -36
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
- package/dist/components/Select/components/List/List.js +78 -67
- package/dist/components/Select/components/ListItem/ListItem.js +1 -1
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useNavigationList.js +2 -3
- package/dist/components/Select/hooks/useSelect.js +8 -8
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Label/Label.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +25 -24
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.variants.js +15 -7
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/components/Body.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Table/components/Head.js +1 -1
- package/dist/components/Table/components/Row.js +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/components/Content.js +2 -2
- package/dist/components/Tabs/components/List.js +2 -2
- package/dist/components/Tabs/components/Trigger.js +2 -2
- package/dist/components/Tag/Tag.js +8 -8
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.js +1 -1
- package/dist/components/TagSelect/components/List/List.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +11 -11
- package/dist/components/TextArea/TextArea.js +71 -26
- package/dist/components/TextArea/TextArea.variants.js +49 -13
- package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +114 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +19 -18
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Typography/Typography.js +19 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +2 -2
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +4 -4
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +3 -3
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +12 -12
- package/dist/{components-Cf345jTv.js → components-CaEW5ge4.js} +32 -32
- package/dist/{constants-CxJJRVK3.js → constants-HQIXhj2t.js} +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/{debounce-C5Ycjilj.js → debounce-BdyZeJQk.js} +2 -2
- package/dist/{dist-DFCz63oC2.js → dist-9WbMf_jT.js} +158 -159
- package/dist/{dist-tGUUcv8n.js → dist-AxOGvL82.js} +114 -115
- package/dist/{dist-DDck_2lb.js → dist-BIBFLVt1.js} +117 -116
- package/dist/{dist-BZNE2Tnx.js → dist-BbX4Nrk2.js} +1 -1
- package/dist/{dist-BaPW7qXd2.js → dist-BnCbAI-c.js} +1 -1
- package/dist/{dist-BdobXn93.js → dist-CszFjHAP.js} +2 -2
- package/dist/{dist-C3YVLapk.js → dist-DO3apbIh.js} +24 -24
- package/dist/{dist-CzKqHuqJ2.js → dist-DwxO2RoR.js} +38 -38
- package/dist/{dist-AihTpWdF.js → dist-iUAHw-3y.js} +272 -272
- package/dist/{dist-BlPTJNIm.js → dist-pxvIAJzo.js} +2 -2
- package/dist/es2015-B_07N-UL.js +796 -0
- package/dist/hooks/useMediaQuery.js +1 -1
- package/dist/index.js +14 -14
- package/dist/{isObject-BeFFiVJK.js → isObject-pLoSfdr0.js} +1 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +2 -0
- package/dist/lib/components/Card/Card.types.d.ts +1 -0
- package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +2 -1
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +1 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +1 -0
- package/dist/lib/components/Divider/Divider.d.ts +3 -2
- package/dist/lib/components/Divider/Divider.types.d.ts +4 -0
- package/dist/lib/components/Input/Input.types.d.ts +4 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +2 -0
- package/dist/lib/components/Select/Select.types.d.ts +2 -0
- package/dist/lib/components/Select/components/List/List.types.d.ts +3 -0
- package/dist/lib/components/Select/components/Wrapper.d.ts +2 -0
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +2 -0
- package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
- package/dist/lib/components/Tag/Tag.types.d.ts +1 -0
- package/dist/lib/components/TextArea/TextArea.d.ts +6 -0
- package/dist/lib/components/TextArea/TextArea.types.d.ts +13 -2
- package/dist/lib/components/TextArea/TextArea.variants.d.ts +4 -1
- package/dist/lib/components/TimePicker/TimePicker.types.d.ts +4 -0
- package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -0
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/{libphonenumber-hGupNnJu.js → libphonenumber-BMq3Thej.js} +356 -347
- package/dist/package.json +27 -27
- package/dist/{phone-number.provider-BxQCTxp8.js → phone-number.provider-Dkq_p1Gi.js} +2 -2
- package/dist/{prop-types-CfEYxTbR.js → prop-types-BCUW56rg.js} +1 -1
- package/dist/{react-CvUtBTMg.js → react-7zQ6bvbE.js} +837 -828
- package/dist/{rolldown-runtime-Ck3dxwZt.js → rolldown-runtime-Dw9YIBcH.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table.provider-B0BafHuU.js → table.provider-CWzODR1t.js} +96 -96
- package/dist/{theme.provider-Dw4O3ocC.js → theme.provider-CSL1WCYG.js} +1 -1
- package/dist/{useBreadcrumb-DYfZL_2p.js → useBreadcrumb-Ds_9BeFz.js} +7 -6
- package/dist/utils/index.js +6 -5
- package/dist/{utils-Cx-WzRZF.js → utils-B-6R7kNE.js} +8 -4
- package/dist/{utils-B-BTGYA5.js → utils-DVYdP0CJ.js} +2 -3
- package/dist/{x-BI9jmc7e.js → x-Ierxf0uI.js} +2 -2
- package/package.json +27 -27
- package/dist/Input-Cf44DzfE.js +0 -188
- package/dist/Switch-aPhL5rNG.js +0 -196
- package/dist/Wrapper-R8fik3ah.js +0 -182
- package/dist/es2015-DigR3dar.js +0 -795
- /package/dist/{dist-DGOjiAnB2.js → dist-DGOjiAnB.js} +0 -0
- /package/dist/{dist-pWlMx4Fi2.js → dist-pWlMx4Fi.js} +0 -0
- /package/dist/{x-a_LpoXzG2.js → x-a_LpoXzG.js} +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.2-alpha.
|
|
5
|
+
"version": "0.1.2-alpha.107",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -92,19 +92,19 @@
|
|
|
92
92
|
"@radix-ui/react-visually-hidden": "^1.2.11",
|
|
93
93
|
"@react-input/mask": "^2.0.4",
|
|
94
94
|
"@tanstack/react-table": "^8.21.3",
|
|
95
|
-
"@tanstack/react-virtual": "^3.14.
|
|
95
|
+
"@tanstack/react-virtual": "^3.14.10",
|
|
96
96
|
"chart.js": "^4.5.1",
|
|
97
97
|
"class-variance-authority": "^0.7.1",
|
|
98
98
|
"clsx": "^2.1.1",
|
|
99
99
|
"cmdk": "^1.1.1",
|
|
100
|
-
"countries-and-timezones": "^3.
|
|
100
|
+
"countries-and-timezones": "^3.10.0",
|
|
101
101
|
"country-flag-icons": "^1.6.20",
|
|
102
102
|
"country-locale-map": "^1.9.13",
|
|
103
|
-
"google-libphonenumber": "^3.2.
|
|
103
|
+
"google-libphonenumber": "^3.2.46",
|
|
104
104
|
"i18n-iso-countries": "^7.14.0",
|
|
105
105
|
"js-cookie": "^3.0.8",
|
|
106
|
-
"lucide-react": "^1.
|
|
107
|
-
"motion": "^
|
|
106
|
+
"lucide-react": "^1.34.0",
|
|
107
|
+
"motion": "^13.1.1",
|
|
108
108
|
"react-chartjs-2": "^5.3.1",
|
|
109
109
|
"react-day-picker": "^10.0.1",
|
|
110
110
|
"react-feather": "^2.0.10",
|
|
@@ -145,50 +145,50 @@
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
|
-
"@faker-js/faker": "^10.
|
|
148
|
+
"@faker-js/faker": "^10.6.0",
|
|
149
149
|
"@rollup/plugin-alias": "^6.0.0",
|
|
150
|
-
"@storybook/addon-docs": "^10.5.
|
|
151
|
-
"@storybook/addon-links": "^10.5.
|
|
152
|
-
"@storybook/react-vite": "^10.5.
|
|
150
|
+
"@storybook/addon-docs": "^10.5.10",
|
|
151
|
+
"@storybook/addon-links": "^10.5.10",
|
|
152
|
+
"@storybook/react-vite": "^10.5.10",
|
|
153
153
|
"@tailwindcss/vite": "^4.3.3",
|
|
154
|
-
"@tanstack/react-query": "^5.
|
|
155
|
-
"@testing-library/jest-dom": "^7.0.
|
|
154
|
+
"@tanstack/react-query": "^5.102.2",
|
|
155
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
156
156
|
"@testing-library/react": "^16.3.2",
|
|
157
|
-
"@testing-library/user-event": "^14.6.
|
|
158
|
-
"@types/google-libphonenumber": "^7.4.
|
|
157
|
+
"@testing-library/user-event": "^14.6.6",
|
|
158
|
+
"@types/google-libphonenumber": "^7.4.31",
|
|
159
159
|
"@types/jest-axe": "^3.5.9",
|
|
160
160
|
"@types/js-cookie": "^3.0.6",
|
|
161
|
-
"@types/lodash": "^4.17.
|
|
162
|
-
"@types/react": "^19.2.
|
|
163
|
-
"@types/react-dom": "^19.2.
|
|
164
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
165
|
-
"@typescript-eslint/parser": "^8.
|
|
161
|
+
"@types/lodash": "^4.17.25",
|
|
162
|
+
"@types/react": "^19.2.18",
|
|
163
|
+
"@types/react-dom": "^19.2.5",
|
|
164
|
+
"@typescript-eslint/eslint-plugin": "^8.67.0",
|
|
165
|
+
"@typescript-eslint/parser": "^8.67.0",
|
|
166
166
|
"@vitejs/plugin-react": "^6.0.3",
|
|
167
|
-
"@vitest/coverage-v8": "^4.1.
|
|
167
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
168
168
|
"autoprefixer": "^10.5.4",
|
|
169
169
|
"eslint": "^9.39.5",
|
|
170
170
|
"eslint-plugin-react": "^7.37.5",
|
|
171
171
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
172
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
173
|
-
"eslint-plugin-storybook": "^10.5.
|
|
172
|
+
"eslint-plugin-react-refresh": "^0.5.4",
|
|
173
|
+
"eslint-plugin-storybook": "^10.5.10",
|
|
174
174
|
"eslint-plugin-vitest": "^0.5.4",
|
|
175
175
|
"glob": "^13.0.6",
|
|
176
176
|
"husky": "^9.1.7",
|
|
177
177
|
"jest-axe": "^11.0.0",
|
|
178
|
-
"jsdom": "^30.0.
|
|
178
|
+
"jsdom": "^30.0.1",
|
|
179
179
|
"lodash": "^4.18.1",
|
|
180
|
-
"postcss": "^8.5.
|
|
180
|
+
"postcss": "^8.5.26",
|
|
181
181
|
"prettier": "^3.9.6",
|
|
182
182
|
"rimraf": "^6.1.3",
|
|
183
|
-
"storybook": "^10.5.
|
|
183
|
+
"storybook": "^10.5.10",
|
|
184
184
|
"tailwindcss": "^4.3.3",
|
|
185
185
|
"ts-node": "^10.9.2",
|
|
186
186
|
"typescript": "^6.0.3",
|
|
187
|
-
"vite": "^8.
|
|
187
|
+
"vite": "^8.2.2",
|
|
188
188
|
"vite-plugin-dts": "^5.0.3",
|
|
189
189
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
190
190
|
"vite-plugin-svgr": "^5.2.0",
|
|
191
|
-
"vitest": "^4.1.
|
|
191
|
+
"vitest": "^4.1.11"
|
|
192
192
|
},
|
|
193
193
|
"overrides": {
|
|
194
194
|
"storybook": "$storybook",
|
package/dist/Input-Cf44DzfE.js
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { o as W } from "./rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
-
import { t as $ } from "./prop-types-CfEYxTbR.js";
|
|
3
|
-
import { t as i } from "./utils-Cx-WzRZF.js";
|
|
4
|
-
import { SearchIcon as S } from "./assets/icons/components/Search.js";
|
|
5
|
-
import { WarningIcon as T } from "./assets/icons/components/Warning.js";
|
|
6
|
-
import { Typography as m } from "./components/Typography/Typography.js";
|
|
7
|
-
import { inputVariants as M } from "./components/Input/Input.variants.js";
|
|
8
|
-
import p, { forwardRef as y, useId as C, useRef as R, useState as A } from "react";
|
|
9
|
-
import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
10
|
-
var l = /* @__PURE__ */ W($());
|
|
11
|
-
function g() {
|
|
12
|
-
return g = Object.assign || function(t) {
|
|
13
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
14
|
-
var n = arguments[r];
|
|
15
|
-
for (var e in n) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
}, g.apply(this, arguments);
|
|
19
|
-
}
|
|
20
|
-
function B(t, r) {
|
|
21
|
-
if (t == null) return {};
|
|
22
|
-
var n = q(t, r), e, a;
|
|
23
|
-
if (Object.getOwnPropertySymbols) {
|
|
24
|
-
var o = Object.getOwnPropertySymbols(t);
|
|
25
|
-
for (a = 0; a < o.length; a++)
|
|
26
|
-
e = o[a], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
|
|
27
|
-
}
|
|
28
|
-
return n;
|
|
29
|
-
}
|
|
30
|
-
function q(t, r) {
|
|
31
|
-
if (t == null) return {};
|
|
32
|
-
var n = {}, e = Object.keys(t), a, o;
|
|
33
|
-
for (o = 0; o < e.length; o++)
|
|
34
|
-
a = e[o], !(r.indexOf(a) >= 0) && (n[a] = t[a]);
|
|
35
|
-
return n;
|
|
36
|
-
}
|
|
37
|
-
var x = y(function(t, r) {
|
|
38
|
-
var n = t.color, e = n === void 0 ? "currentColor" : n, a = t.size, o = a === void 0 ? 24 : a, c = B(t, ["color", "size"]);
|
|
39
|
-
return /* @__PURE__ */ p.createElement("svg", g({
|
|
40
|
-
ref: r,
|
|
41
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
-
width: o,
|
|
43
|
-
height: o,
|
|
44
|
-
viewBox: "0 0 24 24",
|
|
45
|
-
fill: "none",
|
|
46
|
-
stroke: e,
|
|
47
|
-
strokeWidth: "2",
|
|
48
|
-
strokeLinecap: "round",
|
|
49
|
-
strokeLinejoin: "round"
|
|
50
|
-
}, c), /* @__PURE__ */ p.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ p.createElement("line", {
|
|
51
|
-
x1: "1",
|
|
52
|
-
y1: "1",
|
|
53
|
-
x2: "23",
|
|
54
|
-
y2: "23"
|
|
55
|
-
}));
|
|
56
|
-
});
|
|
57
|
-
x.propTypes = {
|
|
58
|
-
color: l.default.string,
|
|
59
|
-
size: l.default.oneOfType([l.default.string, l.default.number])
|
|
60
|
-
};
|
|
61
|
-
x.displayName = "EyeOff";
|
|
62
|
-
function v() {
|
|
63
|
-
return v = Object.assign || function(t) {
|
|
64
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
65
|
-
var n = arguments[r];
|
|
66
|
-
for (var e in n) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
67
|
-
}
|
|
68
|
-
return t;
|
|
69
|
-
}, v.apply(this, arguments);
|
|
70
|
-
}
|
|
71
|
-
function D(t, r) {
|
|
72
|
-
if (t == null) return {};
|
|
73
|
-
var n = F(t, r), e, a;
|
|
74
|
-
if (Object.getOwnPropertySymbols) {
|
|
75
|
-
var o = Object.getOwnPropertySymbols(t);
|
|
76
|
-
for (a = 0; a < o.length; a++)
|
|
77
|
-
e = o[a], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
|
|
78
|
-
}
|
|
79
|
-
return n;
|
|
80
|
-
}
|
|
81
|
-
function F(t, r) {
|
|
82
|
-
if (t == null) return {};
|
|
83
|
-
var n = {}, e = Object.keys(t), a, o;
|
|
84
|
-
for (o = 0; o < e.length; o++)
|
|
85
|
-
a = e[o], !(r.indexOf(a) >= 0) && (n[a] = t[a]);
|
|
86
|
-
return n;
|
|
87
|
-
}
|
|
88
|
-
var w = y(function(t, r) {
|
|
89
|
-
var n = t.color, e = n === void 0 ? "currentColor" : n, a = t.size, o = a === void 0 ? 24 : a, c = D(t, ["color", "size"]);
|
|
90
|
-
return /* @__PURE__ */ p.createElement("svg", v({
|
|
91
|
-
ref: r,
|
|
92
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
93
|
-
width: o,
|
|
94
|
-
height: o,
|
|
95
|
-
viewBox: "0 0 24 24",
|
|
96
|
-
fill: "none",
|
|
97
|
-
stroke: e,
|
|
98
|
-
strokeWidth: "2",
|
|
99
|
-
strokeLinecap: "round",
|
|
100
|
-
strokeLinejoin: "round"
|
|
101
|
-
}, c), /* @__PURE__ */ p.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ p.createElement("circle", {
|
|
102
|
-
cx: "12",
|
|
103
|
-
cy: "12",
|
|
104
|
-
r: "3"
|
|
105
|
-
}));
|
|
106
|
-
});
|
|
107
|
-
w.propTypes = {
|
|
108
|
-
color: l.default.string,
|
|
109
|
-
size: l.default.oneOfType([l.default.string, l.default.number])
|
|
110
|
-
};
|
|
111
|
-
w.displayName = "Eye";
|
|
112
|
-
var H = y(({ className: t, error: r, helperText: n, helperTextClassName: e, isRequired: a = !1, isSearch: o = !1, label: c, labelAction: O, labelClassName: j, labelWrapperClassName: k, name: N, theme: E, type: f = "text", ...P }, _) => {
|
|
113
|
-
const b = C(), z = R(f === "password"), [d, I] = A(() => f !== "password"), u = typeof r == "string" && r.length >= 0, L = d ? w : x;
|
|
114
|
-
return /* @__PURE__ */ h("div", {
|
|
115
|
-
className: "flex flex-col gap-2 w-full relative",
|
|
116
|
-
"data-theme": E,
|
|
117
|
-
children: [
|
|
118
|
-
c ? /* @__PURE__ */ h("div", {
|
|
119
|
-
className: i("flex items-center justify-between", k),
|
|
120
|
-
children: [/* @__PURE__ */ h(m, {
|
|
121
|
-
component: "label",
|
|
122
|
-
variant: "labelLarge",
|
|
123
|
-
htmlFor: b,
|
|
124
|
-
className: i("cursor-pointer", "flex", "gap-1", "text-sm", "font-medium", j),
|
|
125
|
-
children: [
|
|
126
|
-
c,
|
|
127
|
-
" ",
|
|
128
|
-
a && /* @__PURE__ */ s(m, {
|
|
129
|
-
component: "span",
|
|
130
|
-
className: i("text-red-600", "dark:text-red-500", "text-xs", "mt-0.5"),
|
|
131
|
-
children: "*"
|
|
132
|
-
})
|
|
133
|
-
]
|
|
134
|
-
}), O]
|
|
135
|
-
}) : null,
|
|
136
|
-
/* @__PURE__ */ h("div", {
|
|
137
|
-
className: "relative",
|
|
138
|
-
children: [
|
|
139
|
-
o ? /* @__PURE__ */ s("i", {
|
|
140
|
-
className: i("absolute", "left-2.5", "top-1/2", "-translate-y-1/2", "text-slate-400", "dark:text-metal-400", { "text-red-700": u }),
|
|
141
|
-
children: /* @__PURE__ */ s(S, { className: "w-5 h-5" })
|
|
142
|
-
}) : null,
|
|
143
|
-
/* @__PURE__ */ s("input", {
|
|
144
|
-
id: c ? b : void 0,
|
|
145
|
-
ref: _,
|
|
146
|
-
name: N,
|
|
147
|
-
type: d ? z.current ? "text" : f : "password",
|
|
148
|
-
"data-error": u,
|
|
149
|
-
className: i(M({
|
|
150
|
-
className: t,
|
|
151
|
-
variant: u ? "error" : "default"
|
|
152
|
-
}), {
|
|
153
|
-
"pr-10": f === "password" || u,
|
|
154
|
-
"pl-8": o
|
|
155
|
-
}),
|
|
156
|
-
...P
|
|
157
|
-
}),
|
|
158
|
-
u ? /* @__PURE__ */ s("i", {
|
|
159
|
-
className: i("-translate-y-1/2", "absolute", "right-3", "text-red-700", "top-1/2", "dark:text-red-500"),
|
|
160
|
-
children: /* @__PURE__ */ s(T, { className: "w-5 h-5" })
|
|
161
|
-
}) : null,
|
|
162
|
-
f === "password" && !r ? /* @__PURE__ */ s("button", {
|
|
163
|
-
type: "button",
|
|
164
|
-
"aria-label": d ? "Hide password" : "Show password",
|
|
165
|
-
className: i("-translate-y-1/2", "absolute", "cursor-pointer", "right-3", "text-slate-400", "top-1/2"),
|
|
166
|
-
onClick: () => I(!d),
|
|
167
|
-
children: /* @__PURE__ */ s(L, { className: "w-5 h-5" })
|
|
168
|
-
}) : null
|
|
169
|
-
]
|
|
170
|
-
}),
|
|
171
|
-
r ? /* @__PURE__ */ s(m, {
|
|
172
|
-
component: "span",
|
|
173
|
-
className: i("text-xs", "tracking-normal", "text-red-700", "dark:text-red-400"),
|
|
174
|
-
children: r
|
|
175
|
-
}) : null,
|
|
176
|
-
!r && n ? /* @__PURE__ */ s(m, {
|
|
177
|
-
component: "span",
|
|
178
|
-
variant: "body1",
|
|
179
|
-
className: i("text-xs", "text-slate-600", "dark:text-slate-200", "select-none", "tracking-normal", e),
|
|
180
|
-
children: n
|
|
181
|
-
}) : null
|
|
182
|
-
]
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
H.displayName = "KonstructInput";
|
|
186
|
-
export {
|
|
187
|
-
H as t
|
|
188
|
-
};
|
package/dist/Switch-aPhL5rNG.js
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { a as H } from "./dist-xCbHbMLA.js";
|
|
2
|
-
import { t as y } from "./dist-CCdbu9GU.js";
|
|
3
|
-
import { t as x } from "./utils-Cx-WzRZF.js";
|
|
4
|
-
import { i as D, r as $, t as G } from "./dist-D-yS0HN8.js";
|
|
5
|
-
import { Typography as U } from "./components/Typography/Typography.js";
|
|
6
|
-
import { t as V } from "./dist-pWlMx4Fi2.js";
|
|
7
|
-
import { switchVariants as W, thumbVariants as X } from "./components/Switch/Switch.variants.js";
|
|
8
|
-
import * as r from "react";
|
|
9
|
-
import { forwardRef as J, useEffect as K, useId as Q, useImperativeHandle as Y, useRef as Z } from "react";
|
|
10
|
-
import { Fragment as ee, jsx as p, jsxs as E } from "react/jsx-runtime";
|
|
11
|
-
var te = Object.defineProperty, g = (c, s) => te(c, "name", {
|
|
12
|
-
value: s,
|
|
13
|
-
configurable: !0
|
|
14
|
-
}), T = "Switch", [re, ve] = D(T), [ne, N] = re(T);
|
|
15
|
-
function q(c) {
|
|
16
|
-
const { __scopeSwitch: s, checked: h, children: n, defaultChecked: a, disabled: o, form: e, name: d, onCheckedChange: t, required: i, value: w = "on", internal_do_not_use_render: m } = c, [u, b] = G({
|
|
17
|
-
prop: h,
|
|
18
|
-
defaultProp: a ?? !1,
|
|
19
|
-
onChange: t,
|
|
20
|
-
caller: T
|
|
21
|
-
}), [S, l] = r.useState(null), [v, k] = r.useState(null), R = r.useRef(!1), [f, C] = r.useReducer((P) => P + 1, 0), I = {
|
|
22
|
-
checked: u,
|
|
23
|
-
setChecked: b,
|
|
24
|
-
disabled: o,
|
|
25
|
-
control: S,
|
|
26
|
-
setControl: l,
|
|
27
|
-
name: d,
|
|
28
|
-
form: e,
|
|
29
|
-
value: w,
|
|
30
|
-
hasConsumerStoppedPropagationRef: R,
|
|
31
|
-
userInteractionCount: f,
|
|
32
|
-
onUserInteraction: C,
|
|
33
|
-
required: i,
|
|
34
|
-
defaultChecked: a,
|
|
35
|
-
isFormControl: S ? !!e || !!S.closest("form") : !0,
|
|
36
|
-
bubbleInput: v,
|
|
37
|
-
setBubbleInput: k
|
|
38
|
-
};
|
|
39
|
-
return /* @__PURE__ */ p(ne, {
|
|
40
|
-
scope: s,
|
|
41
|
-
...I,
|
|
42
|
-
children: L(m) ? m(I) : n
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
g(q, "SwitchProvider");
|
|
46
|
-
var oe = "SwitchTrigger", ce = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ g(function({ __scopeSwitch: s, onClick: h, ...n }, a) {
|
|
47
|
-
const { control: o, form: e, value: d, disabled: t, checked: i, required: w, setControl: m, setChecked: u, hasConsumerStoppedPropagationRef: b, onUserInteraction: S, isFormControl: l, bubbleInput: v } = N(oe, s), k = H(a, m), R = r.useRef(i);
|
|
48
|
-
return r.useEffect(() => {
|
|
49
|
-
const f = e ? o?.ownerDocument.getElementById(e) : o?.form;
|
|
50
|
-
if (f instanceof HTMLFormElement) {
|
|
51
|
-
const C = /* @__PURE__ */ g(() => u(R.current), "reset");
|
|
52
|
-
return f.addEventListener("reset", C), () => f.removeEventListener("reset", C);
|
|
53
|
-
}
|
|
54
|
-
}, [
|
|
55
|
-
o,
|
|
56
|
-
e,
|
|
57
|
-
u
|
|
58
|
-
]), /* @__PURE__ */ p(y.button, {
|
|
59
|
-
type: "button",
|
|
60
|
-
role: "switch",
|
|
61
|
-
"aria-checked": i,
|
|
62
|
-
"aria-required": w,
|
|
63
|
-
"data-state": B(i),
|
|
64
|
-
"data-disabled": t ? "" : void 0,
|
|
65
|
-
disabled: t,
|
|
66
|
-
value: d,
|
|
67
|
-
...n,
|
|
68
|
-
ref: k,
|
|
69
|
-
onClick: $(h, (f) => {
|
|
70
|
-
S(), u((C) => !C), v && l && (b.current = f.isPropagationStopped(), b.current || f.stopPropagation());
|
|
71
|
-
})
|
|
72
|
-
});
|
|
73
|
-
}, "SwitchTrigger")), se = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ g(function(s, h) {
|
|
74
|
-
const { __scopeSwitch: n, name: a, checked: o, defaultChecked: e, required: d, disabled: t, value: i, onCheckedChange: w, form: m, ...u } = s;
|
|
75
|
-
return /* @__PURE__ */ p(q, {
|
|
76
|
-
__scopeSwitch: n,
|
|
77
|
-
checked: o,
|
|
78
|
-
defaultChecked: e,
|
|
79
|
-
disabled: t,
|
|
80
|
-
required: d,
|
|
81
|
-
onCheckedChange: w,
|
|
82
|
-
name: a,
|
|
83
|
-
form: m,
|
|
84
|
-
value: i,
|
|
85
|
-
internal_do_not_use_render: ({ isFormControl: b }) => /* @__PURE__ */ E(ee, { children: [/* @__PURE__ */ p(ce, {
|
|
86
|
-
...u,
|
|
87
|
-
ref: h,
|
|
88
|
-
__scopeSwitch: n
|
|
89
|
-
}), b && /* @__PURE__ */ p(de, { __scopeSwitch: n })] })
|
|
90
|
-
});
|
|
91
|
-
}, "Switch")), ae = "SwitchThumb", ie = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ g(function(s, h) {
|
|
92
|
-
const { __scopeSwitch: n, ...a } = s, o = N(ae, n);
|
|
93
|
-
return /* @__PURE__ */ p(y.span, {
|
|
94
|
-
"data-state": B(o.checked),
|
|
95
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
96
|
-
...a,
|
|
97
|
-
ref: h
|
|
98
|
-
});
|
|
99
|
-
}, "SwitchThumb")), ue = "SwitchBubbleInput", de = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ g(function({ __scopeSwitch: s, onClick: h, ...n }, a) {
|
|
100
|
-
const { control: o, hasConsumerStoppedPropagationRef: e, userInteractionCount: d, checked: t, defaultChecked: i, required: w, disabled: m, name: u, value: b, form: S, bubbleInput: l, setBubbleInput: v } = N(ue, s), k = H(a, v), R = V(o), f = r.useRef(!1), C = r.useRef(t), I = r.useRef(d);
|
|
101
|
-
r.useEffect(() => {
|
|
102
|
-
const _ = l;
|
|
103
|
-
if (!_) return;
|
|
104
|
-
const j = window.HTMLInputElement.prototype, F = Object.getOwnPropertyDescriptor(j, "checked").set, M = d !== I.current;
|
|
105
|
-
I.current = d;
|
|
106
|
-
const A = C.current !== t;
|
|
107
|
-
C.current = t;
|
|
108
|
-
const z = !(M && e.current);
|
|
109
|
-
if (A && F) {
|
|
110
|
-
f.current = !M;
|
|
111
|
-
const O = new Event("click", { bubbles: z });
|
|
112
|
-
F.call(_, t), _.dispatchEvent(O), f.current = !1;
|
|
113
|
-
}
|
|
114
|
-
}, [
|
|
115
|
-
l,
|
|
116
|
-
t,
|
|
117
|
-
e,
|
|
118
|
-
d
|
|
119
|
-
]);
|
|
120
|
-
const P = r.useRef(t);
|
|
121
|
-
return /* @__PURE__ */ p(y.input, {
|
|
122
|
-
type: "checkbox",
|
|
123
|
-
"aria-hidden": !0,
|
|
124
|
-
defaultChecked: i ?? P.current,
|
|
125
|
-
required: w,
|
|
126
|
-
disabled: m,
|
|
127
|
-
name: u,
|
|
128
|
-
value: b,
|
|
129
|
-
form: S,
|
|
130
|
-
...n,
|
|
131
|
-
tabIndex: -1,
|
|
132
|
-
ref: k,
|
|
133
|
-
onClick: $(h, (_) => {
|
|
134
|
-
f.current && _.stopPropagation();
|
|
135
|
-
}),
|
|
136
|
-
style: {
|
|
137
|
-
...n.style,
|
|
138
|
-
...R,
|
|
139
|
-
position: "absolute",
|
|
140
|
-
pointerEvents: "none",
|
|
141
|
-
opacity: 0,
|
|
142
|
-
margin: 0,
|
|
143
|
-
transform: "translateX(-100%)"
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}, "SwitchBubbleInput"));
|
|
147
|
-
function L(c) {
|
|
148
|
-
return typeof c == "function";
|
|
149
|
-
}
|
|
150
|
-
g(L, "isFunction");
|
|
151
|
-
function B(c) {
|
|
152
|
-
return c ? "checked" : "unchecked";
|
|
153
|
-
}
|
|
154
|
-
g(B, "getState");
|
|
155
|
-
var ke = J(({ alignment: c = "horizontal", className: s, defaultChecked: h, disabled: n = !1, helperText: a, helperTextClassName: o, label: e, labelClassName: d, labelWrapperClassName: t, name: i, theme: w, thumbClassName: m, value: u, onChange: b }, S) => {
|
|
156
|
-
const l = Z(null), v = Q(), k = i ? `${v}-${i}` : v;
|
|
157
|
-
return Y(S, () => l.current, [l]), K(() => {
|
|
158
|
-
l.current && (l.current.value = `${u}`);
|
|
159
|
-
}, [u]), /* @__PURE__ */ E("div", {
|
|
160
|
-
className: x("w-full", "flex", "gap-3", c === "vertical" ? "flex-col" : "flex-row", t),
|
|
161
|
-
"data-theme": w,
|
|
162
|
-
children: [
|
|
163
|
-
/* @__PURE__ */ p(se, {
|
|
164
|
-
id: k,
|
|
165
|
-
defaultChecked: h,
|
|
166
|
-
checked: u,
|
|
167
|
-
onCheckedChange: (R) => b?.(R),
|
|
168
|
-
className: x(W({ className: s })),
|
|
169
|
-
"aria-label": e,
|
|
170
|
-
disabled: n,
|
|
171
|
-
children: /* @__PURE__ */ p(ie, { className: X({ className: m }) })
|
|
172
|
-
}),
|
|
173
|
-
e ? /* @__PURE__ */ E(U, {
|
|
174
|
-
component: "label",
|
|
175
|
-
className: x("flex", "flex-col", "text-sm", "dark:text-white", "select-none", d),
|
|
176
|
-
htmlFor: k,
|
|
177
|
-
style: { paddingRight: 15 },
|
|
178
|
-
children: [e, a ? /* @__PURE__ */ p(U, {
|
|
179
|
-
component: "span",
|
|
180
|
-
className: x("text-xs", "select-none", "text-slate-600", "dark:text-metal-400", o),
|
|
181
|
-
children: a
|
|
182
|
-
}) : null]
|
|
183
|
-
}) : null,
|
|
184
|
-
/* @__PURE__ */ p("input", {
|
|
185
|
-
ref: l,
|
|
186
|
-
name: i,
|
|
187
|
-
type: "text",
|
|
188
|
-
className: "hidden",
|
|
189
|
-
"aria-hidden": "true"
|
|
190
|
-
})
|
|
191
|
-
]
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
export {
|
|
195
|
-
ke as t
|
|
196
|
-
};
|
package/dist/Wrapper-R8fik3ah.js
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { t as r } from "./utils-Cx-WzRZF.js";
|
|
2
|
-
import { LoaderIcon as oe } from "./assets/icons/components/Loader.js";
|
|
3
|
-
import { t as se } from "./createLucideIcon-MbzNWCaI.js";
|
|
4
|
-
import { t as ie } from "./chevron-up-Bjpvg6ui.js";
|
|
5
|
-
import { Typography as ce } from "./components/Typography/Typography.js";
|
|
6
|
-
import { useSelectContext as ue } from "./components/Select/contexts/select.hook.js";
|
|
7
|
-
import { List as me } from "./components/Select/components/List/List.js";
|
|
8
|
-
import { inputVariants as fe, labelVariants as pe, selectVariants as de } from "./components/Select/Select.variants.js";
|
|
9
|
-
import { useSelect as xe } from "./components/Select/hooks/useSelect.js";
|
|
10
|
-
import { forwardRef as he, useEffect as we, useId as Ne, useImperativeHandle as ge, useMemo as ve, useRef as h } from "react";
|
|
11
|
-
import { jsx as n, jsxs as i } from "react/jsx-runtime";
|
|
12
|
-
var ye = [["path", {
|
|
13
|
-
d: "m21 21-4.34-4.34",
|
|
14
|
-
key: "14j7rj"
|
|
15
|
-
}], ["circle", {
|
|
16
|
-
cx: "11",
|
|
17
|
-
cy: "11",
|
|
18
|
-
r: "8",
|
|
19
|
-
key: "4ej97u"
|
|
20
|
-
}]], ke = se("search", ye), Se = he(({ additionalOptions: R, className: D, defaultValue: w, disabled: a = !1, error: p, groupedOptions: T, iconClassName: S, inputClassName: E, isInfiniteScrollEnabled: F = !1, isLoading: k, isRequired: N, label: g, labelAction: K, labelClassName: M, labelWrapperClassName: W, listClassName: _, listItemClassName: $, listItemSecondRowClassName: q, name: d, noOptionsText: A, placeholder: v, searchable: C = !1, showSearchIcon: y, theme: H, visibleItems: P, wrapperClassName: U, onFetchMoreOptions: B, onBlur: G, onSearchChange: J, ...I }, Q) => {
|
|
21
|
-
const j = Ne(), c = h(null), L = h(null), O = h(null), X = h(0), { isOpen: o, options: l, searchTerm: Y, value: s, setCanFilter: Z, setSearchTerm: ee, setValue: u, toggleOpen: te } = ue(), t = ve(() => l.find(({ value: e }) => e === s), [l, s]), { wrapperRef: ae, wrapperInputRef: V, handleOpen: x } = xe({
|
|
22
|
-
inputRef: c,
|
|
23
|
-
searchInputRef: L,
|
|
24
|
-
internalValue: t,
|
|
25
|
-
onBlur: G
|
|
26
|
-
}), b = () => {
|
|
27
|
-
if (!a) {
|
|
28
|
-
if (o) {
|
|
29
|
-
te(!1);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
x();
|
|
33
|
-
}
|
|
34
|
-
}, re = (e) => {
|
|
35
|
-
if (!a) {
|
|
36
|
-
if (e.key === "ArrowDown") {
|
|
37
|
-
if (e.preventDefault(), !o) {
|
|
38
|
-
x();
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
O.current?.querySelector("li")?.focus();
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), b());
|
|
45
|
-
}
|
|
46
|
-
}, m = d ? `${j}-${d}` : j;
|
|
47
|
-
ge(Q, () => c.current, [c]), we(() => {
|
|
48
|
-
if (w && !s) {
|
|
49
|
-
const e = l && l.find((f) => f.value === w);
|
|
50
|
-
e && u(e.value);
|
|
51
|
-
}
|
|
52
|
-
}, [
|
|
53
|
-
w,
|
|
54
|
-
l,
|
|
55
|
-
u,
|
|
56
|
-
s
|
|
57
|
-
]);
|
|
58
|
-
const ne = (e) => {
|
|
59
|
-
const f = e.target.value;
|
|
60
|
-
Z(!0), u(""), ee(f ?? ""), J?.(f);
|
|
61
|
-
const z = l.find((le) => le.value.toLocaleLowerCase() === f.toLocaleLowerCase());
|
|
62
|
-
u(z ? z.value : t?.value ?? "");
|
|
63
|
-
};
|
|
64
|
-
return /* @__PURE__ */ i("div", {
|
|
65
|
-
ref: ae,
|
|
66
|
-
className: r("flex flex-col gap-2 w-full relative", U),
|
|
67
|
-
"data-theme": H,
|
|
68
|
-
children: [
|
|
69
|
-
g ? /* @__PURE__ */ i("div", {
|
|
70
|
-
className: r("flex items-center justify-between", W),
|
|
71
|
-
children: [/* @__PURE__ */ i("label", {
|
|
72
|
-
id: m,
|
|
73
|
-
className: r(pe({ className: M })),
|
|
74
|
-
htmlFor: m,
|
|
75
|
-
onClick: () => !a && x(),
|
|
76
|
-
children: [g, N && /* @__PURE__ */ n("span", {
|
|
77
|
-
className: "text-red-600 dark:text-red-500 ml-1",
|
|
78
|
-
children: "*"
|
|
79
|
-
})]
|
|
80
|
-
}), K]
|
|
81
|
-
}) : null,
|
|
82
|
-
/* @__PURE__ */ i("div", {
|
|
83
|
-
ref: V,
|
|
84
|
-
id: m,
|
|
85
|
-
className: r(de({
|
|
86
|
-
className: D,
|
|
87
|
-
hasError: !!p,
|
|
88
|
-
disabled: a
|
|
89
|
-
})),
|
|
90
|
-
role: "combobox",
|
|
91
|
-
onClick: b,
|
|
92
|
-
onKeyDown: re,
|
|
93
|
-
"aria-expanded": o,
|
|
94
|
-
tabIndex: X.current,
|
|
95
|
-
"aria-labelledby": m,
|
|
96
|
-
children: [/* @__PURE__ */ i("div", {
|
|
97
|
-
className: "flex gap-2.5 items-center flex-1",
|
|
98
|
-
children: [
|
|
99
|
-
t?.leftIcon && !y && /* @__PURE__ */ n("span", {
|
|
100
|
-
className: "w-4 h-4 flex justify-center items-center dark:text-metal-50",
|
|
101
|
-
children: t.leftIcon
|
|
102
|
-
}),
|
|
103
|
-
y && /* @__PURE__ */ n(ke, { className: r("w-4", "h-4", "text-zinc-500", "select-none", "transition-colors", "duration-300", "dark:text-metal-300", "dark:group-focus-within:text-metal-50") }),
|
|
104
|
-
C ? /* @__PURE__ */ n("input", {
|
|
105
|
-
ref: L,
|
|
106
|
-
type: "text",
|
|
107
|
-
value: o ? Y : t?.label ?? s ?? "",
|
|
108
|
-
onChange: ne,
|
|
109
|
-
placeholder: v,
|
|
110
|
-
className: r(fe({ className: E }), { "text-red-700 placeholder:text-red-700": !!p }),
|
|
111
|
-
onClick: (e) => {
|
|
112
|
-
e.stopPropagation(), a || x();
|
|
113
|
-
},
|
|
114
|
-
"aria-label": g || v,
|
|
115
|
-
"aria-labelledby": m,
|
|
116
|
-
required: N,
|
|
117
|
-
autoComplete: "off",
|
|
118
|
-
autoCapitalize: "words",
|
|
119
|
-
disabled: a,
|
|
120
|
-
tabIndex: -1,
|
|
121
|
-
...I
|
|
122
|
-
}) : /* @__PURE__ */ i(ce, {
|
|
123
|
-
variant: "body2",
|
|
124
|
-
className: r("flex-1 text-zinc-400 text-sm dark:text-metal-400 flex gap-2 items-center", {
|
|
125
|
-
"text-red-700": !!p,
|
|
126
|
-
"select-none": !t,
|
|
127
|
-
"text-metal-800 dark:text-metal-50": t,
|
|
128
|
-
"text-metal-400/50 dark:text-metal-50/50": a
|
|
129
|
-
}, t?.wrapperClassNameOnSelectedValue),
|
|
130
|
-
children: [
|
|
131
|
-
t?.label || v,
|
|
132
|
-
" ",
|
|
133
|
-
t?.showRightComponentOnselectedValue ? t?.rightComponent : null
|
|
134
|
-
]
|
|
135
|
-
})
|
|
136
|
-
]
|
|
137
|
-
}), k ? /* @__PURE__ */ n(oe, {
|
|
138
|
-
size: 16,
|
|
139
|
-
className: "text-metal-400 animate-spin select-none"
|
|
140
|
-
}) : !y && /* @__PURE__ */ n(ie, {
|
|
141
|
-
"data-state": o ? "open" : "closed",
|
|
142
|
-
className: r("w-4 h-4 text-zinc-500 transition-all duration-100 data-[state=open]:rotate-0 data-[state=closed]:rotate-180 select-none dark:group-focus-within:text-metal-50", S, {
|
|
143
|
-
"text-red-700": !!p,
|
|
144
|
-
"text-metal-400/50 dark:group-focus-within:text-zinc-500": a
|
|
145
|
-
})
|
|
146
|
-
})]
|
|
147
|
-
}),
|
|
148
|
-
/* @__PURE__ */ n("input", {
|
|
149
|
-
ref: c,
|
|
150
|
-
type: "text",
|
|
151
|
-
name: d,
|
|
152
|
-
className: "hidden",
|
|
153
|
-
"aria-hidden": "true",
|
|
154
|
-
required: N,
|
|
155
|
-
inert: !0,
|
|
156
|
-
defaultValue: t?.value ?? s ?? void 0,
|
|
157
|
-
...I
|
|
158
|
-
}),
|
|
159
|
-
o && /* @__PURE__ */ n(me, {
|
|
160
|
-
ref: O,
|
|
161
|
-
additionalOptions: R,
|
|
162
|
-
className: _,
|
|
163
|
-
groupedOptions: T,
|
|
164
|
-
itemClassName: $,
|
|
165
|
-
name: d,
|
|
166
|
-
wrapperInputRef: V,
|
|
167
|
-
inputRef: c,
|
|
168
|
-
options: l,
|
|
169
|
-
isLoading: !!k,
|
|
170
|
-
searchable: C,
|
|
171
|
-
listItemSecondRowClassName: q,
|
|
172
|
-
isInfiniteScrollEnabled: F,
|
|
173
|
-
onFetchMoreOptions: B,
|
|
174
|
-
noOptionsText: A,
|
|
175
|
-
visibleItems: P
|
|
176
|
-
})
|
|
177
|
-
]
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
export {
|
|
181
|
-
Se as t
|
|
182
|
-
};
|