@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as s } from "../../utils-
|
|
2
|
-
import { r as e } from "../../dist-
|
|
1
|
+
import { t as s } from "../../utils-B-6R7kNE.js";
|
|
2
|
+
import { r as e } from "../../dist-pxvIAJzo.js";
|
|
3
3
|
import { rootVariants as p } from "./Tabs.variants.js";
|
|
4
4
|
import { Content as n } from "./components/Content.js";
|
|
5
5
|
import { List as f } from "./components/List.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as r } from "../../../utils-
|
|
2
|
-
import { t as n } from "../../../dist-
|
|
1
|
+
import { t as r } from "../../../utils-B-6R7kNE.js";
|
|
2
|
+
import { t as n } from "../../../dist-pxvIAJzo.js";
|
|
3
3
|
import { contentVariants as m } from "../Tabs.variants.js";
|
|
4
4
|
import { jsx as s } from "react/jsx-runtime";
|
|
5
5
|
var e = ({ children: t, className: o, ...a }) => /* @__PURE__ */ s(n, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as a } from "../../../utils-
|
|
2
|
-
import { n } from "../../../dist-
|
|
1
|
+
import { t as a } from "../../../utils-B-6R7kNE.js";
|
|
2
|
+
import { n } from "../../../dist-pxvIAJzo.js";
|
|
3
3
|
import { listVariants as t } from "../Tabs.variants.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
var e = ({ children: s, className: i, orientation: m, ...o }) => /* @__PURE__ */ r("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../../utils-
|
|
1
|
+
import { t as e } from "../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { Typography as m } from "../../Typography/Typography.js";
|
|
3
|
-
import { i as n } from "../../../dist-
|
|
3
|
+
import { i as n } from "../../../dist-pxvIAJzo.js";
|
|
4
4
|
import { triggerVariants as p } from "../Tabs.variants.js";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
6
|
var s = ({ tab: a, label: i, isActive: o, className: t }) => /* @__PURE__ */ r(n, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "../../dist-xCbHbMLA.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import { tagVariants as
|
|
4
|
-
import { jsx as a, jsxs as
|
|
5
|
-
var
|
|
6
|
-
className:
|
|
2
|
+
import { t as o } from "../../utils-B-6R7kNE.js";
|
|
3
|
+
import { tagVariants as c } from "./Tag.variants.js";
|
|
4
|
+
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
5
|
+
var v = ({ label: i, color: s, component: l = "div", rightIcon: t, leftIcon: r, className: m, "data-value": n }) => /* @__PURE__ */ d(l, {
|
|
6
|
+
className: o(c({
|
|
7
7
|
color: s,
|
|
8
|
-
className:
|
|
8
|
+
className: m
|
|
9
9
|
})),
|
|
10
|
-
"data-value":
|
|
10
|
+
"data-value": n,
|
|
11
11
|
children: [
|
|
12
12
|
r ? /* @__PURE__ */ a(e, {
|
|
13
13
|
className: "text-inherit",
|
|
@@ -24,5 +24,5 @@ var u = ({ label: i, color: s, rightIcon: t, leftIcon: r, className: l, "data-va
|
|
|
24
24
|
]
|
|
25
25
|
});
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
v as Tag
|
|
28
28
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as m } from "../../Wrapper-
|
|
2
|
+
import { t as m } from "../../Wrapper-CyHxGs4E.js";
|
|
3
3
|
import { TagSelectProvider as p } from "./contexts/TagSelect.provider.js";
|
|
4
4
|
import { forwardRef as a } from "react";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as o } from "../../../../utils-
|
|
1
|
+
import { t as o } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { Tag as a } from "../../../Tag/Tag.js";
|
|
3
3
|
import { useTagSelect as i } from "../../contexts/TagSelect.hook.js";
|
|
4
4
|
import { wrapperVariants as c } from "./Item.variants.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as a } from "../../../../utils-
|
|
1
|
+
import { t as a } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { useTagSelect as m } from "../../contexts/TagSelect.hook.js";
|
|
3
3
|
import { Item as s } from "../Item/Item.js";
|
|
4
4
|
import { wrapperVariants as i } from "./List.variants.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useClickOutside as
|
|
2
|
-
import { useTagSelect as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
var
|
|
5
|
-
const n =
|
|
6
|
-
return o(n, l(() => {
|
|
1
|
+
import { useClickOutside as s } from "../../../hooks/useClickOutside.js";
|
|
2
|
+
import { useTagSelect as l } from "../contexts/TagSelect.hook.js";
|
|
3
|
+
import { useCallback as c, useEffect as u, useRef as d } from "react";
|
|
4
|
+
var g = () => {
|
|
5
|
+
const n = d(null), { onOpen: e } = l(), a = c(() => {
|
|
7
6
|
e(!1);
|
|
8
|
-
}, [e])
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
}, [e]);
|
|
8
|
+
return s(n, a), u(() => {
|
|
9
|
+
const t = new AbortController(), o = (r) => {
|
|
10
|
+
r.key === "Escape" && e(!1);
|
|
11
11
|
};
|
|
12
|
-
return document.addEventListener("keydown",
|
|
12
|
+
return document.addEventListener("keydown", o, { signal: t.signal }), () => {
|
|
13
13
|
t.abort();
|
|
14
14
|
};
|
|
15
15
|
}, [e]), {
|
|
@@ -20,5 +20,5 @@ var m = () => {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
g as useTagSelect
|
|
24
24
|
};
|
|
@@ -1,30 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
className: "
|
|
15
|
-
children:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { n as E, t } from "../../utils-B-6R7kNE.js";
|
|
2
|
+
import { WarningIcon as F } from "../../assets/icons/components/Warning.js";
|
|
3
|
+
import { Typography as n } from "../Typography/Typography.js";
|
|
4
|
+
import { textAreaVariants as H } from "./TextArea.variants.js";
|
|
5
|
+
import { forwardRef as L, useId as W } from "react";
|
|
6
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
var M = L(({ className: f, defaultValue: h, error: s, helperText: l, helperTextClassName: u, id: v, initialValue: g, isExpandable: N = !1, isRequired: d = !1, label: i, labelClassName: b, labelWrapperClassName: y, name: I, placeholder: k, rows: w = 3, theme: j, value: c, variant: T, ...A }, V) => {
|
|
8
|
+
const $ = W(), a = v ?? $, m = `${a}-error`, x = `${a}-helper-text`, B = c !== void 0, e = typeof s == "string" && s.length > 0, p = !e && !!l, C = E(e && m, p && x);
|
|
9
|
+
return /* @__PURE__ */ o("div", {
|
|
10
|
+
className: "flex flex-col gap-2 w-full relative",
|
|
11
|
+
"data-theme": j,
|
|
12
|
+
children: [
|
|
13
|
+
i ? /* @__PURE__ */ r("div", {
|
|
14
|
+
className: t("flex items-center justify-between", y),
|
|
15
|
+
children: /* @__PURE__ */ o(n, {
|
|
16
|
+
component: "label",
|
|
17
|
+
variant: "labelLarge",
|
|
18
|
+
htmlFor: a,
|
|
19
|
+
className: t("cursor-pointer", "flex", "gap-1", "text-sm", "font-medium", b),
|
|
20
|
+
children: [
|
|
21
|
+
i,
|
|
22
|
+
" ",
|
|
23
|
+
d && /* @__PURE__ */ r(n, {
|
|
24
|
+
component: "span",
|
|
25
|
+
"aria-hidden": "true",
|
|
26
|
+
className: t("text-red-600", "dark:text-red-500", "text-xs", "mt-0.5"),
|
|
27
|
+
children: "*"
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
})
|
|
31
|
+
}) : null,
|
|
32
|
+
/* @__PURE__ */ o("div", {
|
|
33
|
+
className: "relative",
|
|
34
|
+
children: [/* @__PURE__ */ r("textarea", {
|
|
35
|
+
...A,
|
|
36
|
+
id: a,
|
|
37
|
+
ref: V,
|
|
38
|
+
name: I,
|
|
39
|
+
"data-error": e,
|
|
40
|
+
"aria-invalid": e || void 0,
|
|
41
|
+
"aria-describedby": C,
|
|
42
|
+
"aria-required": d || void 0,
|
|
43
|
+
className: t(H({
|
|
44
|
+
className: f,
|
|
45
|
+
isExpandable: N,
|
|
46
|
+
variant: e ? "error" : T ?? "default"
|
|
47
|
+
})),
|
|
48
|
+
rows: w,
|
|
49
|
+
placeholder: k,
|
|
50
|
+
value: c,
|
|
51
|
+
defaultValue: B ? void 0 : h ?? g
|
|
52
|
+
}), e ? /* @__PURE__ */ r("i", {
|
|
53
|
+
className: t("absolute", "right-3", "top-2.5", "text-red-700", "dark:text-red-500"),
|
|
54
|
+
children: /* @__PURE__ */ r(F, { className: "w-5 h-5" })
|
|
55
|
+
}) : null]
|
|
56
|
+
}),
|
|
57
|
+
e ? /* @__PURE__ */ r(n, {
|
|
58
|
+
component: "span",
|
|
59
|
+
id: m,
|
|
60
|
+
className: t("text-xs", "tracking-normal", "text-red-700", "dark:text-red-400"),
|
|
61
|
+
children: s
|
|
62
|
+
}) : null,
|
|
63
|
+
p ? /* @__PURE__ */ r(n, {
|
|
64
|
+
component: "span",
|
|
65
|
+
id: x,
|
|
66
|
+
variant: "body1",
|
|
67
|
+
className: t("text-xs", "text-slate-600", "dark:text-slate-200", "select-none", "tracking-normal", u),
|
|
68
|
+
children: l
|
|
69
|
+
}) : null
|
|
70
|
+
]
|
|
26
71
|
});
|
|
27
72
|
});
|
|
28
73
|
export {
|
|
29
|
-
|
|
74
|
+
M as TextArea
|
|
30
75
|
};
|
|
@@ -1,20 +1,56 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
var
|
|
1
|
+
import { t as e } from "../../dist-B9GE4SXf.js";
|
|
2
|
+
var r = e([
|
|
3
|
+
"bg-white",
|
|
3
4
|
"border",
|
|
4
|
-
"border-gray-
|
|
5
|
+
"border-gray-300",
|
|
6
|
+
"caret-text-slate-800",
|
|
5
7
|
"disabled:cursor-not-allowed",
|
|
6
|
-
"disabled:
|
|
8
|
+
"disabled:text-slate-500",
|
|
9
|
+
"flex",
|
|
10
|
+
"focus-visible:border-transparent",
|
|
7
11
|
"focus-visible:outline-none",
|
|
8
12
|
"focus-visible:ring-1",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"px-2.5",
|
|
14
|
+
"py-2",
|
|
15
|
+
"rounded",
|
|
16
|
+
"text-slate-800",
|
|
17
|
+
"text-sm",
|
|
18
|
+
"transition-all",
|
|
15
19
|
"w-full",
|
|
16
|
-
"
|
|
17
|
-
|
|
20
|
+
"disabled:bg-gray-50",
|
|
21
|
+
"placeholder:text-slate-400",
|
|
22
|
+
"data-[error=false]:dark:focus:ring-aurora-500",
|
|
23
|
+
"data-[error=false]:focus:ring-aurora-500",
|
|
24
|
+
"dark:bg-metal-800",
|
|
25
|
+
"dark:border-metal-700",
|
|
26
|
+
"dark:caret-text-metal-50",
|
|
27
|
+
"dark:disabled:bg-metal-900",
|
|
28
|
+
"dark:disabled:placeholder:text-metal-400",
|
|
29
|
+
"dark:disabled:text-metal-400",
|
|
30
|
+
"dark:placeholder:text-metal-300",
|
|
31
|
+
"dark:text-slate-50"
|
|
32
|
+
], {
|
|
33
|
+
variants: {
|
|
34
|
+
variant: {
|
|
35
|
+
default: "",
|
|
36
|
+
error: [
|
|
37
|
+
"pr-8",
|
|
38
|
+
"border-red-600",
|
|
39
|
+
"focus-visible:border-red-600",
|
|
40
|
+
"focus-visible:ring-transparent",
|
|
41
|
+
"dark:border-red-500"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
isExpandable: {
|
|
45
|
+
true: "resize-y",
|
|
46
|
+
false: "resize-none"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
defaultVariants: {
|
|
50
|
+
variant: "default",
|
|
51
|
+
isExpandable: !1
|
|
52
|
+
}
|
|
53
|
+
});
|
|
18
54
|
export {
|
|
19
|
-
|
|
55
|
+
r as textAreaVariants
|
|
20
56
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as s } from "../../../../utils-
|
|
1
|
+
import { t as s } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { useTimePickerContext as S } from "../../contexts/time-picker.hook.js";
|
|
3
3
|
import { buttonVariants as d, liVariants as k, ulVariants as H } from "../../TimePicker.variants.js";
|
|
4
4
|
import { useEffect as A, useRef as D } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t } from "../../../../utils-
|
|
1
|
+
import { t } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { useTimePickerContext as w } from "../../contexts/time-picker.hook.js";
|
|
3
3
|
import { buttonVariants as d, liVariants as p } from "../../TimePicker.variants.js";
|
|
4
4
|
import { useRef as N } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as l } from "../../../../utils-
|
|
1
|
+
import { t as l } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { useTimePickerContext as h } from "../../contexts/time-picker.hook.js";
|
|
3
3
|
import { buttonVariants as k, liVariants as d, ulVariants as M } from "../../TimePicker.variants.js";
|
|
4
4
|
import { useEffect as p, useRef as m } from "react";
|
|
@@ -1,138 +1,153 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { useClickOutside as
|
|
3
|
-
import { t as
|
|
4
|
-
import { Typography as
|
|
5
|
-
import { parseTimeString as
|
|
6
|
-
import { useTimePickerContext as
|
|
7
|
-
import { timePickerVariants as
|
|
8
|
-
import { WrapperList as
|
|
9
|
-
import { useCallback as
|
|
10
|
-
import { jsx as
|
|
11
|
-
var
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, [
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
!
|
|
20
|
-
},
|
|
21
|
-
t.target !==
|
|
22
|
-
},
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
-
|
|
1
|
+
import { t as T } from "../../../../utils-B-6R7kNE.js";
|
|
2
|
+
import { useClickOutside as te } from "../../../../hooks/useClickOutside.js";
|
|
3
|
+
import { t as re } from "../../../../chevron-down-DNP-OOAQ.js";
|
|
4
|
+
import { Typography as M } from "../../../Typography/Typography.js";
|
|
5
|
+
import { parseTimeString as V } from "../../utils/index.js";
|
|
6
|
+
import { useTimePickerContext as ae } from "../../contexts/time-picker.hook.js";
|
|
7
|
+
import { timePickerVariants as oe } from "../../TimePicker.variants.js";
|
|
8
|
+
import { WrapperList as ne } from "../WrapperList/WrapperList.js";
|
|
9
|
+
import { useCallback as ie, useEffect as F, useId as le, useRef as E, useState as P } from "react";
|
|
10
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
|
+
var xe = ({ ariaLabel: g, id: W, name: j, label: v, isRequired: y, scrollBehavior: B, className: H, listClassName: R, listItemClassName: K, listItemButtonClassName: U, disabled: c, mode: S = "select", showList: k = !0, error: q, placeholder: z }) => {
|
|
12
|
+
const G = le(), [o, n] = P(!1), h = E(!1), I = E(null), A = E(null), { format: x, formattedTime: p, setTimeDirectly: D, setIsTyping: w } = ae(), i = W ?? `time-${G}`, $ = `${i}-label`, O = `${i}-listbox`, C = `${i}-error`, [N, b] = P(p), [J, l] = P(), r = q || J;
|
|
13
|
+
F(() => {
|
|
14
|
+
h.current || (b(p), l(void 0));
|
|
15
|
+
}, [p]);
|
|
16
|
+
const Q = () => {
|
|
17
|
+
c || n((t) => !t);
|
|
18
|
+
}, X = () => {
|
|
19
|
+
!c && k && n(!0), l(void 0);
|
|
20
|
+
}, Y = (t) => {
|
|
21
|
+
t.target !== A.current && (h.current = !1, w(!1));
|
|
22
|
+
}, Z = (t) => {
|
|
23
|
+
if (I.current?.contains(t.relatedTarget)) return;
|
|
24
|
+
h.current = !1, w(!1), n(!1);
|
|
25
|
+
const a = t.currentTarget.value.trim();
|
|
26
|
+
if (a === "") {
|
|
27
|
+
l(void 0);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
const e =
|
|
30
|
+
const e = V(a, x);
|
|
31
31
|
if (e) {
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
32
|
+
l(void 0), D(e);
|
|
33
|
+
const s = e.getHours(), u = e.getMinutes().toString().padStart(2, "0");
|
|
34
|
+
if (x === "24") b(`${s.toString().padStart(2, "0")}:${u}`);
|
|
35
35
|
else {
|
|
36
|
-
const
|
|
37
|
-
|
|
36
|
+
const m = s % 12 || 12;
|
|
37
|
+
b(`${m}:${u} ${s >= 12 ? "PM" : "AM"}`);
|
|
38
38
|
}
|
|
39
|
-
} else
|
|
40
|
-
},
|
|
41
|
-
const
|
|
39
|
+
} else l("Invalid time");
|
|
40
|
+
}, _ = (t) => {
|
|
41
|
+
const a = t.target.value;
|
|
42
42
|
let e = "";
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
46
|
-
const
|
|
47
|
-
|
|
43
|
+
h.current = !0, w(!0);
|
|
44
|
+
const s = a.length < N.length;
|
|
45
|
+
if (x === "12") {
|
|
46
|
+
const m = a.replace(/[^0-9:apmAPM\s]/g, "").replace(/[apm]/gi, (ee) => ee.toUpperCase());
|
|
47
|
+
m.match(/^(\d{0,2}):?(\d{0,2})\s?(A|AM|P|PM)?$/i) || m === "" ? (e = m.slice(0, 8), !s && /^\d{2}$/.test(e) && (e = e + ":")) : e = N;
|
|
48
48
|
} else
|
|
49
|
-
e =
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const t = new AbortController(),
|
|
58
|
-
e.key === "Escape" &&
|
|
49
|
+
e = a.replace(/[^0-9:]/g, "").replace(/:+/g, ":").slice(0, 5), !s && /^\d{2}$/.test(e) && (e = e + ":");
|
|
50
|
+
b(e), l(void 0);
|
|
51
|
+
const u = V(e, x);
|
|
52
|
+
u && D(u);
|
|
53
|
+
}, L = ie(() => {
|
|
54
|
+
n(!1);
|
|
55
|
+
}, []);
|
|
56
|
+
return te(I, L), F(() => {
|
|
57
|
+
const t = new AbortController(), a = (e) => {
|
|
58
|
+
e.key === "Escape" && n(!1);
|
|
59
59
|
};
|
|
60
|
-
return document.addEventListener("keydown",
|
|
60
|
+
return document.addEventListener("keydown", a, { signal: t.signal }), () => {
|
|
61
61
|
t.abort();
|
|
62
62
|
};
|
|
63
|
-
}, []), /* @__PURE__ */
|
|
64
|
-
ref:
|
|
65
|
-
onMouseDown:
|
|
66
|
-
className:
|
|
63
|
+
}, []), /* @__PURE__ */ f("div", {
|
|
64
|
+
ref: I,
|
|
65
|
+
onMouseDown: S === "input" ? Y : void 0,
|
|
66
|
+
className: T("w-full", "text-slate-800", "text-sm", "flex", "flex-col", "gap-2"),
|
|
67
67
|
children: [
|
|
68
|
-
|
|
68
|
+
v ? /* @__PURE__ */ f(M, {
|
|
69
69
|
component: "label",
|
|
70
70
|
variant: "labelLarge",
|
|
71
|
-
|
|
71
|
+
id: $,
|
|
72
|
+
htmlFor: i,
|
|
72
73
|
className: "font-medium",
|
|
73
74
|
children: [
|
|
74
|
-
|
|
75
|
+
v,
|
|
75
76
|
" ",
|
|
76
|
-
|
|
77
|
+
y && /* @__PURE__ */ d(M, {
|
|
77
78
|
component: "span",
|
|
79
|
+
"aria-hidden": "true",
|
|
78
80
|
className: "text-red-600 dark:text-red-500 text-sm font-normal",
|
|
79
81
|
children: "*"
|
|
80
82
|
})
|
|
81
83
|
]
|
|
82
84
|
}) : null,
|
|
83
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ f("div", {
|
|
84
86
|
className: "relative",
|
|
85
|
-
children: [
|
|
86
|
-
"aria-label": g,
|
|
87
|
-
"aria-haspopup": "listbox",
|
|
88
|
-
"aria-expanded": "true",
|
|
89
|
-
"aria-controls": "time-options",
|
|
90
|
-
className: y(Z({ className: R }), l && "opacity-50 cursor-not-allowed"),
|
|
91
|
-
"data-open": u,
|
|
92
|
-
onClick: K,
|
|
93
|
-
disabled: l,
|
|
94
|
-
children: [i, /* @__PURE__ */ s(X, {
|
|
95
|
-
className: "w-4 h-4 transition-all text-gray-400 data-[open=true]:rotate-180",
|
|
96
|
-
"data-open": u
|
|
97
|
-
})]
|
|
98
|
-
}) : /* @__PURE__ */ p("div", {
|
|
87
|
+
children: [/* @__PURE__ */ f("div", {
|
|
99
88
|
className: "flex flex-col gap-1",
|
|
100
|
-
children: [/* @__PURE__ */
|
|
101
|
-
|
|
89
|
+
children: [S === "select" ? /* @__PURE__ */ f("button", {
|
|
90
|
+
type: "button",
|
|
91
|
+
id: i,
|
|
92
|
+
"aria-label": g,
|
|
93
|
+
"aria-labelledby": !g && v ? $ : void 0,
|
|
94
|
+
"aria-haspopup": "listbox",
|
|
95
|
+
"aria-expanded": o,
|
|
96
|
+
"aria-controls": o && k ? O : void 0,
|
|
97
|
+
"aria-invalid": !!r || void 0,
|
|
98
|
+
"aria-describedby": r ? C : void 0,
|
|
99
|
+
"aria-required": y || void 0,
|
|
100
|
+
className: T(oe({ className: H }), c && "opacity-50 cursor-not-allowed"),
|
|
101
|
+
"data-open": o,
|
|
102
|
+
onClick: Q,
|
|
103
|
+
disabled: c,
|
|
104
|
+
children: [p, /* @__PURE__ */ d(re, {
|
|
105
|
+
className: "w-4 h-4 transition-all text-gray-400 data-[open=true]:rotate-180",
|
|
106
|
+
"data-open": o
|
|
107
|
+
})]
|
|
108
|
+
}) : /* @__PURE__ */ d("input", {
|
|
109
|
+
ref: A,
|
|
102
110
|
type: "text",
|
|
111
|
+
id: i,
|
|
103
112
|
"aria-label": g,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
"aria-labelledby": !g && v ? $ : void 0,
|
|
114
|
+
"aria-invalid": !!r || void 0,
|
|
115
|
+
"aria-describedby": r ? C : void 0,
|
|
116
|
+
"aria-required": y || void 0,
|
|
117
|
+
value: N,
|
|
118
|
+
onChange: _,
|
|
119
|
+
onFocus: X,
|
|
120
|
+
onBlur: Z,
|
|
121
|
+
disabled: c,
|
|
122
|
+
"data-error": !!r,
|
|
123
|
+
"data-open": o,
|
|
124
|
+
placeholder: z,
|
|
125
|
+
className: T("w-full", "h-10", "px-2.5", "text-sm", "rounded", "border", "border-gray-300", "bg-white", "text-slate-800", "transition-all", "placeholder:text-slate-400", "focus-visible:outline-none", "data-[open=true]:ring-1", "data-[open=true]:ring-aurora-500", "dark:bg-metal-800", "dark:border-metal-700", "dark:text-white", "dark:placeholder:text-metal-300", "dark:data-[open=true]:ring-aurora-500", "disabled:cursor-not-allowed", "disabled:bg-gray-50", "disabled:text-slate-500", "dark:disabled:bg-metal-900", "dark:disabled:text-metal-400", { "border-red-600 data-[open=true]:border-red-600 data-[open=true]:ring-transparent dark:border-red-500": r })
|
|
126
|
+
}), r && /* @__PURE__ */ d(M, {
|
|
114
127
|
component: "span",
|
|
128
|
+
id: C,
|
|
115
129
|
className: "text-red-600 dark:text-red-500 text-xs",
|
|
116
|
-
children:
|
|
130
|
+
children: r
|
|
117
131
|
})]
|
|
118
|
-
}),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
132
|
+
}), k && /* @__PURE__ */ d(ne, {
|
|
133
|
+
id: O,
|
|
134
|
+
isOpen: o,
|
|
135
|
+
scrollBehavior: B,
|
|
136
|
+
listClassName: R,
|
|
137
|
+
listItemClassName: K,
|
|
138
|
+
listItemButtonClassName: U,
|
|
139
|
+
onClose: () => n(!1)
|
|
125
140
|
})]
|
|
126
141
|
}),
|
|
127
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ d("input", {
|
|
128
143
|
type: "hidden",
|
|
129
|
-
name:
|
|
130
|
-
value:
|
|
144
|
+
name: j,
|
|
145
|
+
value: p,
|
|
131
146
|
className: "hidden"
|
|
132
147
|
})
|
|
133
148
|
]
|
|
134
149
|
});
|
|
135
150
|
};
|
|
136
151
|
export {
|
|
137
|
-
|
|
152
|
+
xe as Wrapper
|
|
138
153
|
};
|