@konstructio/ui 0.0.12 → 0.0.13-alpha.2
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/dist/{Combination-Cmu9JRkv.js → Combination-b348x__d.js} +89 -89
- package/dist/Modal-i7eolhYH.js +926 -0
- package/dist/{chevron-up-CvquEaNg.js → chevron-up-DgLBQCKD.js} +1 -1
- package/dist/components/Alert/Alert.js +53 -0
- package/dist/components/Alert/Alert.variants.js +71 -0
- package/dist/components/AlertDialog/AlertDialog.js +60 -50
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -6
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +74 -72
- package/dist/components/Autocomplete/Autocomplete.variants.js +11 -21
- package/dist/components/Autocomplete/components/List/List.js +28 -30
- package/dist/components/Autocomplete/components/List/List.variants.js +34 -40
- package/dist/components/Breadcrumb/Breadcrumb.js +67 -77
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +22 -40
- package/dist/components/Breadcrumb/components/Item/Item.js +49 -0
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +72 -0
- package/dist/components/Breadcrumb/components/index.js +4 -0
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -3
- package/dist/components/Button/Button.js +34 -40
- package/dist/components/Button/Button.variants.js +138 -195
- package/dist/components/Card/Card.js +30 -37
- package/dist/components/Card/Card.variants.js +18 -53
- package/dist/components/Checkbox/Checkbox.js +70 -75
- package/dist/components/Checkbox/Checkbox.variants.js +11 -35
- package/dist/components/Command/Command.js +40 -0
- package/dist/components/Command/Command.variants.js +50 -0
- package/dist/components/Command/components/Command.js +8 -0
- package/dist/components/Command/components/CommandEmpty.js +15 -0
- package/dist/components/Command/components/CommandGroup.js +19 -0
- package/dist/components/Command/components/CommandInput.js +84 -0
- package/dist/components/Command/components/CommandItem.js +29 -0
- package/dist/components/Command/components/CommandList.js +16 -0
- package/dist/components/Command/components/CommandSeparator.js +16 -0
- package/dist/components/Command/components/CommandShortcut.js +19 -0
- package/dist/components/Command/components/DialogContent.js +31 -0
- package/dist/components/Command/components/DialogOverlay.js +19 -0
- package/dist/components/Command/components/index.js +20 -0
- package/dist/components/Command/contexts/Command.context.js +13 -0
- package/dist/components/Command/contexts/Command.provider.js +24 -0
- package/dist/components/Command/contexts/index.js +6 -0
- package/dist/components/Divider/Divider.js +11 -0
- package/dist/components/Divider/Divider.variants.js +17 -0
- package/dist/components/Dropdown/Dropdown.js +6 -8
- package/dist/components/Dropdown/Dropdown.variants.js +31 -38
- package/dist/components/Dropdown/components/List/List.js +18 -17
- package/dist/components/Dropdown/components/List/List.variants.js +22 -32
- package/dist/components/Dropdown/components/ListItem/ListItem.js +19 -19
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +18 -28
- package/dist/components/Dropdown/components/Wrapper.js +128 -94
- package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.js +12 -12
- package/dist/components/Dropdown/hooks/useDropdown.js +12 -14
- package/dist/components/Dropdown/hooks/useNavigationList.js +8 -10
- package/dist/components/Input/Input.js +112 -69
- package/dist/components/Input/Input.variants.js +10 -16
- package/dist/components/Loading/Loading.js +111 -0
- package/dist/components/Loading/Loading.variants.js +13 -0
- package/dist/components/Modal/Modal.js +4 -4
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +2 -2
- package/dist/components/Modal/components/Header/Header.js +3 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.js +5 -9
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +32 -46
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +4 -4
- package/dist/components/NumberInput/NumberInput.js +93 -113
- package/dist/components/NumberInput/NumberInput.variants.js +30 -51
- package/dist/components/ProgressBar/ProgressBar.js +25 -32
- package/dist/components/ProgressBar/ProgressBar.variants.js +10 -31
- package/dist/components/Radio/Radio.js +47 -30
- package/dist/components/Radio/Radio.variants.js +61 -17
- package/dist/components/RadioCard/RadioCard.js +35 -0
- package/dist/components/RadioCard/RadioCard.variants.js +10 -0
- package/dist/components/RadioCardGroup/RadioCardGroup.js +46 -0
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +15 -0
- package/dist/components/RadioGroup/RadioGroup.js +40 -31
- package/dist/components/RadioGroup/RadioGroup.variants.js +15 -0
- package/dist/components/Range/Range.js +31 -39
- package/dist/components/Range/Range.variants.js +21 -53
- package/dist/components/Sidebar/Sidebar.js +15 -18
- package/dist/components/Sidebar/Sidebar.variants.js +30 -55
- package/dist/components/Sidebar/components/Footer/Footer.js +5 -20
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +9 -16
- package/dist/components/Sidebar/components/Logo/Logo.js +5 -18
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +21 -43
- package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -31
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +3 -17
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +23 -38
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +3 -14
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +24 -33
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +13 -22
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +7 -22
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +6 -16
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -25
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +11 -20
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +41 -42
- package/dist/components/Slider/Slider.js +26 -29
- package/dist/components/Slider/Slider.variants.js +22 -34
- package/dist/components/Switch/Switch.js +100 -105
- package/dist/components/Switch/Switch.variants.js +28 -53
- package/dist/components/Table/Table.js +27 -0
- package/dist/components/Table/Table.variants.js +39 -0
- package/dist/components/Table/components/Body.js +18 -0
- package/dist/components/Table/components/Filter.js +9 -0
- package/dist/components/Table/components/Head.js +18 -0
- package/dist/components/Table/components/Row.js +28 -0
- package/dist/components/Table/components/index.js +10 -0
- package/dist/components/Tag/Tag.js +17 -5
- package/dist/components/Tag/Tag.variants.js +11 -1
- package/dist/components/TagSelect/TagSelect.js +6 -73
- package/dist/components/TagSelect/TagSelect.variants.js +24 -77
- package/dist/components/TagSelect/components/Item/Item.js +21 -0
- package/dist/components/TagSelect/components/Item/Item.variants.js +32 -0
- package/dist/components/TagSelect/components/List/List.js +12 -0
- package/dist/components/TagSelect/components/List/List.variants.js +23 -0
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +86 -0
- package/dist/components/TagSelect/components/index.js +8 -0
- package/dist/components/TagSelect/contexts/TagSelect.context.js +19 -0
- package/dist/components/TagSelect/contexts/TagSelect.hook.js +11 -0
- package/dist/components/TagSelect/contexts/TagSelect.provider.js +69 -0
- package/dist/components/TagSelect/contexts/index.js +6 -0
- package/dist/components/TagSelect/hooks/useTagSelect.js +22 -27
- package/dist/components/TextArea/TextArea.js +26 -25
- package/dist/components/TextArea/TextArea.variants.js +19 -32
- package/dist/components/Toast/Toast.js +177 -172
- package/dist/components/Toast/Toast.variants.js +42 -71
- package/dist/components/Tooltip/Tooltip.js +21 -29
- package/dist/components/Tooltip/Tooltip.variants.js +61 -62
- package/dist/components/Typography/Typography.js +35 -0
- package/dist/components/Typography/Typography.variants.js +57 -0
- package/dist/components/index.js +68 -52
- package/dist/contexts/theme.provider.js +84 -16
- package/dist/index-AM3avohj.js +133 -0
- package/dist/{index-z-AJyzdv.js → index-BOx5P4tS.js} +11 -11
- package/dist/index-Bk324h27.js +82 -0
- package/dist/{index-BxeV34ij.js → index-Bry5AFQ2.js} +1 -1
- package/dist/{index-D68N8v8R.js → index-C5psggHV.js} +17 -17
- package/dist/{index-BtibbG81.js → index-CWKdynYu.js} +1 -1
- package/dist/index-D9BbbgUq.js +47 -0
- package/dist/index-DvFiic6N.js +446 -0
- package/dist/{index-D4Q2rMby.js → index-G_6jG4Qc.js} +2 -2
- package/dist/{index-BedjZUuB.js → index-YaQrdkGE.js} +3 -3
- package/dist/{index-8vgf-x5i.js → index-bYyfdsls.js} +11 -11
- package/dist/index-dRxIWVBr.js +313 -0
- package/dist/index-g-TFwd6Y.js +422 -0
- package/dist/index.d.ts +591 -4
- package/dist/index.js +72 -58
- package/dist/package.json +44 -42
- package/dist/styles.css +1 -1
- package/dist/styles.js +1 -1
- package/dist/ui/kubefirst-theme.css +296 -0
- package/dist/ui/theme.css +6 -0
- package/dist/ui/utilities.css +165 -0
- package/dist/useBreadcrumb-BsIeMoR1.js +1279 -0
- package/dist/utils/index.js +671 -422
- package/dist/{x-CRBgmX1Q.js → x-DU-Zw-L_.js} +1 -1
- package/package.json +44 -42
- package/dist/AlertDialogTrigger-D4Tm_9M0.js +0 -553
- package/dist/Modal-L73dmnHv.js +0 -914
- package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -18
- package/dist/components/AlertDialog/AlertDialog.types.js +0 -1
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +0 -3
- package/dist/components/AlertDialog/AlertDialog.variants.js +0 -15
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +0 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +0 -6
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +0 -1
- package/dist/components/AlertDialog/components/index.d.ts +0 -1
- package/dist/components/AlertDialog/hooks/index.d.ts +0 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +0 -7
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -3
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +0 -18
- package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +0 -8
- package/dist/components/Autocomplete/components/List/List.d.ts +0 -3
- package/dist/components/Autocomplete/components/List/List.types.d.ts +0 -13
- package/dist/components/Autocomplete/components/List/List.types.js +0 -1
- package/dist/components/Autocomplete/components/List/List.variants.d.ts +0 -16
- package/dist/components/Autocomplete/components/index.d.ts +0 -1
- package/dist/components/Autocomplete/hooks/index.d.ts +0 -2
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +0 -17
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +0 -10
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -3
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -11
- package/dist/components/Breadcrumb/Breadcrumb.types.js +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +0 -12
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +0 -3
- package/dist/components/Button/Button.d.ts +0 -4
- package/dist/components/Button/Button.types.d.ts +0 -7
- package/dist/components/Button/Button.types.js +0 -1
- package/dist/components/Button/Button.variants.d.ts +0 -7
- package/dist/components/Card/Card.d.ts +0 -4
- package/dist/components/Card/Card.types.d.ts +0 -8
- package/dist/components/Card/Card.types.js +0 -1
- package/dist/components/Card/Card.variants.d.ts +0 -10
- package/dist/components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -14
- package/dist/components/Checkbox/Checkbox.types.js +0 -1
- package/dist/components/Checkbox/Checkbox.variants.d.ts +0 -9
- package/dist/components/Dropdown/Dropdown.d.ts +0 -3
- package/dist/components/Dropdown/Dropdown.types.d.ts +0 -16
- package/dist/components/Dropdown/Dropdown.types.js +0 -1
- package/dist/components/Dropdown/Dropdown.variants.d.ts +0 -3
- package/dist/components/Dropdown/components/EmptyList.d.ts +0 -2
- package/dist/components/Dropdown/components/List/List.d.ts +0 -3
- package/dist/components/Dropdown/components/List/List.types.d.ts +0 -6
- package/dist/components/Dropdown/components/List/List.types.js +0 -1
- package/dist/components/Dropdown/components/List/List.variants.d.ts +0 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +0 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +0 -4
- package/dist/components/Dropdown/components/ListItem/ListItem.types.js +0 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +0 -3
- package/dist/components/Dropdown/components/Wrapper.d.ts +0 -3
- package/dist/components/Dropdown/components/index.d.ts +0 -3
- package/dist/components/Dropdown/contexts/dropdown.context.d.ts +0 -8
- package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +0 -2
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +0 -5
- package/dist/components/Dropdown/contexts/index.d.ts +0 -2
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +0 -11
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +0 -8
- package/dist/components/Input/Input.d.ts +0 -3
- package/dist/components/Input/Input.types.d.ts +0 -9
- package/dist/components/Input/Input.types.js +0 -1
- package/dist/components/Input/Input.variants.d.ts +0 -4
- package/dist/components/Modal/Modal.d.ts +0 -8
- package/dist/components/Modal/Modal.types.d.ts +0 -12
- package/dist/components/Modal/Modal.types.js +0 -1
- package/dist/components/Modal/components/Body/Body.d.ts +0 -3
- package/dist/components/Modal/components/Body/Body.types.d.ts +0 -5
- package/dist/components/Modal/components/Body/Body.types.js +0 -1
- package/dist/components/Modal/components/Footer/Footer.d.ts +0 -3
- package/dist/components/Modal/components/Footer/Footer.types.d.ts +0 -5
- package/dist/components/Modal/components/Footer/Footer.types.js +0 -1
- package/dist/components/Modal/components/Header/Header.d.ts +0 -3
- package/dist/components/Modal/components/Header/Header.types.d.ts +0 -5
- package/dist/components/Modal/components/Header/Header.types.js +0 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +0 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +0 -7
- package/dist/components/Modal/components/Wrapper/Wrapper.types.js +0 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +0 -6
- package/dist/components/Modal/components/index.d.ts +0 -4
- package/dist/components/Modal/contexts/Modal.context.d.ts +0 -2
- package/dist/components/Modal/contexts/Modal.provider.d.ts +0 -4
- package/dist/components/Modal/contexts/Modal.types.d.ts +0 -9
- package/dist/components/Modal/contexts/Modal.types.js +0 -1
- package/dist/components/Modal/contexts/index.d.ts +0 -1
- package/dist/components/Modal/hooks/index.d.ts +0 -1
- package/dist/components/Modal/hooks/useModal.d.ts +0 -9
- package/dist/components/NumberInput/NumberInput.d.ts +0 -3
- package/dist/components/NumberInput/NumberInput.types.d.ts +0 -11
- package/dist/components/NumberInput/NumberInput.types.js +0 -1
- package/dist/components/NumberInput/NumberInput.variants.d.ts +0 -11
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -8
- package/dist/components/ProgressBar/ProgressBar.types.js +0 -1
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +0 -7
- package/dist/components/Radio/Radio.d.ts +0 -3
- package/dist/components/Radio/Radio.types.d.ts +0 -12
- package/dist/components/Radio/Radio.types.js +0 -1
- package/dist/components/Radio/Radio.variants.d.ts +0 -3
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -12
- package/dist/components/RadioGroup/RadioGroup.types.js +0 -1
- package/dist/components/Range/Range.d.ts +0 -3
- package/dist/components/Range/Range.types.d.ts +0 -13
- package/dist/components/Range/Range.types.js +0 -1
- package/dist/components/Range/Range.variants.d.ts +0 -14
- package/dist/components/Sidebar/Sidebar.d.ts +0 -5
- package/dist/components/Sidebar/Sidebar.types.d.ts +0 -18
- package/dist/components/Sidebar/Sidebar.types.js +0 -1
- package/dist/components/Sidebar/Sidebar.variants.d.ts +0 -6
- package/dist/components/Sidebar/components/Footer/Footer.d.ts +0 -3
- package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +0 -6
- package/dist/components/Sidebar/components/Footer/Footer.types.js +0 -1
- package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/Logo/Logo.d.ts +0 -3
- package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +0 -6
- package/dist/components/Sidebar/components/Logo/Logo.types.js +0 -1
- package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +0 -4
- package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +0 -16
- package/dist/components/Sidebar/components/Navigation/Navigation.types.js +0 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +0 -7
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +0 -17
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +0 -4
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +0 -5
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +0 -8
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +0 -3
- package/dist/components/Sidebar/components/index.d.ts +0 -15
- package/dist/components/Slider/Slider.d.ts +0 -3
- package/dist/components/Slider/Slider.types.d.ts +0 -13
- package/dist/components/Slider/Slider.types.js +0 -1
- package/dist/components/Slider/Slider.variants.d.ts +0 -11
- package/dist/components/Switch/Switch.d.ts +0 -3
- package/dist/components/Switch/Switch.types.d.ts +0 -10
- package/dist/components/Switch/Switch.types.js +0 -1
- package/dist/components/Switch/Switch.variants.d.ts +0 -6
- package/dist/components/Tag/Tag.d.ts +0 -3
- package/dist/components/Tag/Tag.types.d.ts +0 -4
- package/dist/components/Tag/Tag.types.js +0 -1
- package/dist/components/Tag/Tag.variants.d.ts +0 -3
- package/dist/components/TagSelect/TagSelect.d.ts +0 -3
- package/dist/components/TagSelect/TagSelect.types.d.ts +0 -9
- package/dist/components/TagSelect/TagSelect.types.js +0 -1
- package/dist/components/TagSelect/TagSelect.variants.d.ts +0 -9
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +0 -9
- package/dist/components/TextArea/TextArea.d.ts +0 -3
- package/dist/components/TextArea/TextArea.types.d.ts +0 -10
- package/dist/components/TextArea/TextArea.types.js +0 -1
- package/dist/components/TextArea/TextArea.variants.d.ts +0 -3
- package/dist/components/Toast/Toast.d.ts +0 -3
- package/dist/components/Toast/Toast.types.d.ts +0 -12
- package/dist/components/Toast/Toast.types.js +0 -1
- package/dist/components/Toast/Toast.variants.d.ts +0 -9
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.types.d.ts +0 -8
- package/dist/components/Tooltip/Tooltip.types.js +0 -1
- package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -8
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
- package/dist/components/index.d.ts +0 -21
- package/dist/contexts/index.d.ts +0 -3
- package/dist/contexts/theme.context.d.ts +0 -6
- package/dist/contexts/theme.hook.d.ts +0 -7
- package/dist/contexts/theme.provider.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useToggle.d.ts +0 -1
- package/dist/index-BBjak_0p.js +0 -47
- package/dist/index-BaNV0qac.js +0 -19164
- package/dist/index-DoOsnuB6.js +0 -72
- package/dist/js.cookie-OLEfuq_g.js +0 -74
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/index.js +0 -4
- package/dist/plugins/konstruct.d.ts +0 -4
- package/dist/plugins/konstruct.js +0 -115
- package/dist/plugins/utils/colors.d.ts +0 -328
- package/dist/plugins/utils/colors.js +0 -331
- package/dist/useBreadcrumb-DxYsZvj_.js +0 -1398
- package/dist/utils/index.d.ts +0 -4
- /package/dist/{styles.d.ts → domain/theme.js} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as l, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as b, useState as C, useMemo as V, isValidElement as v, useCallback as k, useEffect as w } from "react";
|
|
3
|
+
import { V as x } from "../../index-CWKdynYu.js";
|
|
4
|
+
import { cn as m } from "../../utils/index.js";
|
|
5
|
+
import { closeButtonVariants as y, alertVariants as A } from "./Alert.variants.js";
|
|
6
|
+
import { X as E } from "../../x-DU-Zw-L_.js";
|
|
7
|
+
const B = ({
|
|
8
|
+
theme: c,
|
|
9
|
+
type: o,
|
|
10
|
+
content: t,
|
|
11
|
+
isVisible: n = !0,
|
|
12
|
+
showCloseButton: d = !1
|
|
13
|
+
}) => {
|
|
14
|
+
const r = b(null), [u, p] = C(n), f = V(
|
|
15
|
+
() => v(t) ? t : /* @__PURE__ */ l("p", { children: t }),
|
|
16
|
+
[t]
|
|
17
|
+
), h = k(() => {
|
|
18
|
+
const e = r.current;
|
|
19
|
+
e && e.setAttribute("data-state", "hidden");
|
|
20
|
+
}, []);
|
|
21
|
+
return w(() => {
|
|
22
|
+
var s;
|
|
23
|
+
const e = new AbortController();
|
|
24
|
+
return (s = r.current) == null || s.addEventListener(
|
|
25
|
+
"animationend",
|
|
26
|
+
() => {
|
|
27
|
+
var a;
|
|
28
|
+
(a = r.current) == null || a.style.setProperty("display", "none"), p(!1);
|
|
29
|
+
},
|
|
30
|
+
{ signal: e.signal }
|
|
31
|
+
), () => e.abort();
|
|
32
|
+
}, []), u ? /* @__PURE__ */ i(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
ref: r,
|
|
36
|
+
className: m(A({ type: o, isVisible: n })),
|
|
37
|
+
"data-state": n ? "visible" : "hidden",
|
|
38
|
+
"data-theme": c,
|
|
39
|
+
role: "alert",
|
|
40
|
+
"aria-live": "polite",
|
|
41
|
+
children: [
|
|
42
|
+
f,
|
|
43
|
+
d ? /* @__PURE__ */ i("button", { role: "button", onClick: h, children: [
|
|
44
|
+
/* @__PURE__ */ l(E, { className: m(y({ type: o })) }),
|
|
45
|
+
/* @__PURE__ */ l(x, { children: "Dismiss alert" })
|
|
46
|
+
] }) : null
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
) : null;
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
B as Alert
|
|
53
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { c as t } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const a = t(
|
|
3
|
+
[
|
|
4
|
+
"relative",
|
|
5
|
+
"border",
|
|
6
|
+
"py-4",
|
|
7
|
+
"px-5",
|
|
8
|
+
"rounded",
|
|
9
|
+
"flex",
|
|
10
|
+
"gap-2",
|
|
11
|
+
"items-center",
|
|
12
|
+
"justify-start",
|
|
13
|
+
"[&>*]:flex",
|
|
14
|
+
"[&>*]:gap-2",
|
|
15
|
+
"[&>*]:items-center",
|
|
16
|
+
"[&>*]:justify-start",
|
|
17
|
+
"text-sm",
|
|
18
|
+
"shadow-sm",
|
|
19
|
+
"duration-300",
|
|
20
|
+
"data-[state=hidden]:animate-out",
|
|
21
|
+
"data-[state=hidden]:fade-out-0",
|
|
22
|
+
"data-[state=hidden]:zoom-out-95"
|
|
23
|
+
],
|
|
24
|
+
{
|
|
25
|
+
variants: {
|
|
26
|
+
type: {
|
|
27
|
+
sucess: "",
|
|
28
|
+
info: [
|
|
29
|
+
"border-blue-100",
|
|
30
|
+
"bg-blue-50",
|
|
31
|
+
"text-zinc-700",
|
|
32
|
+
"[&>*>svg]:text-blue-600",
|
|
33
|
+
"shadow-blue-50/40"
|
|
34
|
+
],
|
|
35
|
+
warning: "",
|
|
36
|
+
danger: ""
|
|
37
|
+
},
|
|
38
|
+
isVisible: {
|
|
39
|
+
true: "",
|
|
40
|
+
false: "hidden"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
defaultVariants: {
|
|
44
|
+
isVisible: !0
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
), s = t(
|
|
48
|
+
[
|
|
49
|
+
"w-4",
|
|
50
|
+
"h-4",
|
|
51
|
+
"absolute",
|
|
52
|
+
"right-2",
|
|
53
|
+
"top-2",
|
|
54
|
+
"text-inherit",
|
|
55
|
+
"cursor-pointer"
|
|
56
|
+
],
|
|
57
|
+
{
|
|
58
|
+
variants: {
|
|
59
|
+
type: {
|
|
60
|
+
sucess: "",
|
|
61
|
+
info: ["text-blue-600"],
|
|
62
|
+
warning: "",
|
|
63
|
+
danger: ""
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
export {
|
|
69
|
+
a as alertVariants,
|
|
70
|
+
s as closeButtonVariants
|
|
71
|
+
};
|
|
@@ -1,61 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { R as
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "react";
|
|
6
|
-
import "../../js.cookie-OLEfuq_g.js";
|
|
7
|
-
import { cn as r } from "../../utils/index.js";
|
|
8
|
-
import { Button as l } from "../Button/Button.js";
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { R as u, A as b, P as y, O as N, C as O, T as A, D, a as v, b as j } from "../../index-AM3avohj.js";
|
|
3
|
+
import { Button as n } from "../Button/Button.js";
|
|
4
|
+
import { cn as l } from "../../utils/index.js";
|
|
9
5
|
import { useAlertDialog as k } from "./hooks/useAlertDialog.js";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
const B = ({
|
|
7
|
+
buttonTriggerClassName: i,
|
|
8
|
+
buttonCancelClassName: r,
|
|
9
|
+
buttonCancelText: o = "Cancel",
|
|
13
10
|
buttonConfirmClassName: s,
|
|
14
11
|
buttonConfirmText: c = "OK",
|
|
15
|
-
buttonText:
|
|
16
|
-
description:
|
|
17
|
-
theme:
|
|
12
|
+
buttonText: d,
|
|
13
|
+
description: m,
|
|
14
|
+
theme: t,
|
|
18
15
|
title: p,
|
|
19
|
-
onConfirm:
|
|
16
|
+
onConfirm: f
|
|
20
17
|
}) => {
|
|
21
|
-
const {
|
|
22
|
-
onConfirm:
|
|
18
|
+
const { isOpen: h, handleCancel: x, handleConfirm: g, handleOpen: C } = k({
|
|
19
|
+
onConfirm: f
|
|
23
20
|
});
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */ e(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
21
|
+
return /* @__PURE__ */ a(u, { open: h, children: [
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
|
+
b,
|
|
24
|
+
{
|
|
25
|
+
className: i,
|
|
26
|
+
text: d,
|
|
27
|
+
"data-theme": t,
|
|
28
|
+
onOpen: C
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ a(y, { children: [
|
|
32
|
+
/* @__PURE__ */ e(N, { className: "bg-black opacity-75 inset-0 fixed animate-in fade-in-0" }),
|
|
33
|
+
/* @__PURE__ */ a(
|
|
34
|
+
O,
|
|
35
|
+
{
|
|
36
|
+
"data-theme": t,
|
|
37
|
+
className: "bg-white rounded-md fixed top-1/2 left-1/2 -translate-y-2/4 -translate-x-2/4 flex flex-col gap-8 p-6 animate-in fade-in-0 zoom-in-85",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ e(A, { className: "font-bold text-center text-2xl", children: p }),
|
|
40
|
+
/* @__PURE__ */ e(D, { children: m }),
|
|
41
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row gap-5 justify-end", children: [
|
|
42
|
+
/* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
|
|
43
|
+
n,
|
|
44
|
+
{
|
|
45
|
+
type: "button",
|
|
46
|
+
variant: "secondary",
|
|
47
|
+
className: l(r),
|
|
48
|
+
onClick: x,
|
|
49
|
+
children: o
|
|
50
|
+
}
|
|
51
|
+
) }),
|
|
52
|
+
/* @__PURE__ */ e(j, { asChild: !0, children: /* @__PURE__ */ e(
|
|
53
|
+
n,
|
|
54
|
+
{
|
|
55
|
+
type: "button",
|
|
56
|
+
variant: "danger",
|
|
57
|
+
className: l(s),
|
|
58
|
+
onClick: g,
|
|
59
|
+
children: c
|
|
60
|
+
}
|
|
61
|
+
) })
|
|
62
|
+
] })
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
)
|
|
56
66
|
] })
|
|
57
67
|
] });
|
|
58
68
|
};
|
|
59
69
|
export {
|
|
60
|
-
|
|
70
|
+
B as AlertDialog
|
|
61
71
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { A as
|
|
3
|
-
import "../../../contexts/theme.context.js";
|
|
4
|
-
import "../../../contexts/theme.hook.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "../../../js.cookie-OLEfuq_g.js";
|
|
2
|
+
import { A as p } from "../../../index-AM3avohj.js";
|
|
7
3
|
import "../../Button/Button.js";
|
|
4
|
+
import "../../../utils/index.js";
|
|
8
5
|
export {
|
|
9
|
-
|
|
6
|
+
p as AlertDialogTrigger
|
|
10
7
|
};
|
|
@@ -1,90 +1,92 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import "../../
|
|
4
|
-
import {
|
|
5
|
-
import "../../js.cookie-OLEfuq_g.js";
|
|
6
|
-
import { cn as c } from "../../utils/index.js";
|
|
1
|
+
import { jsxs as v, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C, useRef as i, useId as R, useImperativeHandle as A } from "react";
|
|
3
|
+
import { cn as p } from "../../utils/index.js";
|
|
4
|
+
import { labelVariants as O, autocompleteVariants as V } from "./Autocomplete.variants.js";
|
|
7
5
|
import { useAutocomplete as g } from "./hooks/useAutocomplete.js";
|
|
8
6
|
import { List as j } from "./components/List/List.js";
|
|
9
|
-
|
|
10
|
-
const k = A(
|
|
7
|
+
const y = C(
|
|
11
8
|
({
|
|
12
|
-
autoComplete:
|
|
9
|
+
autoComplete: c = "off",
|
|
13
10
|
className: a,
|
|
14
11
|
label: n,
|
|
15
12
|
labelClassName: d,
|
|
16
|
-
name:
|
|
17
|
-
options:
|
|
13
|
+
name: t,
|
|
14
|
+
options: u,
|
|
15
|
+
placeholder: f,
|
|
18
16
|
placeHolderEmptyValues: h = "No values...",
|
|
19
|
-
placeHolderEmptyValuesClassName:
|
|
20
|
-
|
|
21
|
-
theme: N,
|
|
17
|
+
placeHolderEmptyValuesClassName: w,
|
|
18
|
+
theme: x,
|
|
22
19
|
variant: r,
|
|
23
|
-
onChange:
|
|
24
|
-
},
|
|
25
|
-
const s =
|
|
26
|
-
|
|
20
|
+
onChange: N
|
|
21
|
+
}, b) => {
|
|
22
|
+
const s = i(null), o = i(null), m = R();
|
|
23
|
+
A(b, () => o.current, [o]);
|
|
27
24
|
const e = g({
|
|
28
|
-
options:
|
|
25
|
+
options: u,
|
|
29
26
|
inputRef: o,
|
|
30
27
|
wrapperRef: s,
|
|
31
|
-
onChange:
|
|
28
|
+
onChange: N
|
|
32
29
|
});
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
return /* @__PURE__ */ v(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
ref: s,
|
|
34
|
+
className: "relative flex flex-col",
|
|
35
|
+
"data-theme": x,
|
|
36
|
+
children: [
|
|
37
|
+
n ? /* @__PURE__ */ l(
|
|
38
|
+
"label",
|
|
39
|
+
{
|
|
40
|
+
htmlFor: t ?? m,
|
|
41
|
+
className: p(
|
|
42
|
+
O({
|
|
43
|
+
variant: r,
|
|
44
|
+
className: d
|
|
45
|
+
})
|
|
46
|
+
),
|
|
47
|
+
children: n
|
|
48
|
+
}
|
|
49
|
+
) : null,
|
|
50
|
+
/* @__PURE__ */ l(
|
|
51
|
+
"input",
|
|
52
|
+
{
|
|
53
|
+
ref: o,
|
|
54
|
+
id: t ?? m,
|
|
55
|
+
type: "text",
|
|
56
|
+
name: t,
|
|
57
|
+
role: "combobox",
|
|
58
|
+
autoComplete: c,
|
|
59
|
+
className: p(
|
|
60
|
+
V({
|
|
61
|
+
variant: r,
|
|
62
|
+
className: a
|
|
63
|
+
})
|
|
64
|
+
),
|
|
65
|
+
onChange: e.handleChange,
|
|
66
|
+
value: e.value,
|
|
67
|
+
placeholder: f,
|
|
68
|
+
"aria-expanded": e.showOptions ? "true" : "false"
|
|
69
|
+
}
|
|
44
70
|
),
|
|
45
|
-
children:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
name: l,
|
|
55
|
-
role: "combobox",
|
|
56
|
-
autoComplete: u,
|
|
57
|
-
className: c(
|
|
58
|
-
I({
|
|
59
|
-
theme: m,
|
|
71
|
+
e.showOptions && /* @__PURE__ */ l("div", { className: "absolute z-10 top-full w-full rounded-md mt-1 border shadow-sm border-zinc-200 overflow-hidden", children: /* @__PURE__ */ l(
|
|
72
|
+
j,
|
|
73
|
+
{
|
|
74
|
+
className: a,
|
|
75
|
+
inputRef: o,
|
|
76
|
+
wrapperRef: s,
|
|
77
|
+
options: e.newOptions,
|
|
78
|
+
placeholder: h,
|
|
79
|
+
placeholderClassName: w,
|
|
60
80
|
variant: r,
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"aria-expanded": e.showOptions ? "true" : "false"
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
e.showOptions && /* @__PURE__ */ t("div", { className: "absolute z-10 top-full w-full rounded-md mt-1 border shadow-sm", children: /* @__PURE__ */ t(
|
|
71
|
-
j,
|
|
72
|
-
{
|
|
73
|
-
className: a,
|
|
74
|
-
inputRef: o,
|
|
75
|
-
wrapperRef: s,
|
|
76
|
-
options: e.newOptions,
|
|
77
|
-
placeholder: h,
|
|
78
|
-
placeholderClassName: x,
|
|
79
|
-
variant: r,
|
|
80
|
-
theme: m,
|
|
81
|
-
onClick: e.handleSelectValue
|
|
82
|
-
}
|
|
83
|
-
) })
|
|
84
|
-
] });
|
|
81
|
+
onClick: e.handleSelectValue
|
|
82
|
+
}
|
|
83
|
+
) })
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
);
|
|
85
87
|
}
|
|
86
88
|
);
|
|
87
|
-
|
|
89
|
+
y.displayName = "Autocomplete";
|
|
88
90
|
export {
|
|
89
|
-
|
|
91
|
+
y as Autocomplete
|
|
90
92
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as a } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const t = a(
|
|
3
3
|
[
|
|
4
4
|
"flex",
|
|
5
5
|
"w-full",
|
|
@@ -7,7 +7,6 @@ const r = e(
|
|
|
7
7
|
"border",
|
|
8
8
|
"border-zinc-200",
|
|
9
9
|
"bg-transparent",
|
|
10
|
-
"text-base",
|
|
11
10
|
"text-zinc-700",
|
|
12
11
|
"transition-colors",
|
|
13
12
|
"placeholder:text-muted-foreground",
|
|
@@ -16,46 +15,37 @@ const r = e(
|
|
|
16
15
|
"focus-visible:ring-ring",
|
|
17
16
|
"disabled:cursor-not-allowed",
|
|
18
17
|
"disabled:opacity-50",
|
|
19
|
-
"shadow-
|
|
18
|
+
"shadow-2xs",
|
|
20
19
|
"py-1",
|
|
21
|
-
"px-2"
|
|
20
|
+
"px-2",
|
|
21
|
+
"focus:ring-kubefirst-primary",
|
|
22
|
+
"colony:focus:focus:ring-red-400",
|
|
23
|
+
"civo:focus:focus:ring-blue-400"
|
|
22
24
|
],
|
|
23
25
|
{
|
|
24
26
|
variants: {
|
|
25
27
|
variant: {
|
|
26
28
|
default: ""
|
|
27
|
-
},
|
|
28
|
-
theme: {
|
|
29
|
-
kubefirst: ["focus:ring-kubefirst-primary"],
|
|
30
|
-
colony: ["focus:focus:ring-red-400"],
|
|
31
|
-
civo: ""
|
|
32
29
|
}
|
|
33
30
|
},
|
|
34
31
|
defaultVariants: {
|
|
35
|
-
theme: "kubefirst",
|
|
36
32
|
variant: "default"
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
|
-
),
|
|
35
|
+
), o = a(
|
|
40
36
|
["pl-1", "mb-2", "text-base", "cursor-pointer"],
|
|
41
37
|
{
|
|
42
38
|
variants: {
|
|
43
39
|
variant: {
|
|
44
40
|
default: ""
|
|
45
|
-
},
|
|
46
|
-
theme: {
|
|
47
|
-
kubefirst: "",
|
|
48
|
-
colony: "",
|
|
49
|
-
civo: ""
|
|
50
41
|
}
|
|
51
42
|
},
|
|
52
43
|
defaultVariants: {
|
|
53
|
-
variant: "default"
|
|
54
|
-
theme: "kubefirst"
|
|
44
|
+
variant: "default"
|
|
55
45
|
}
|
|
56
46
|
}
|
|
57
47
|
);
|
|
58
48
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
t as autocompleteVariants,
|
|
50
|
+
o as labelVariants
|
|
61
51
|
};
|
|
@@ -1,60 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
className:
|
|
8
|
-
inputRef:
|
|
9
|
-
options:
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as p } from "react";
|
|
3
|
+
import { cn as s } from "../../../../utils/index.js";
|
|
4
|
+
import { emptyListVariants as u, buttonVariants as b, listItemVariants as N, listVariants as d } from "./List.variants.js";
|
|
5
|
+
import { useNavigationUlList as h } from "../../hooks/useNavigationList.js";
|
|
6
|
+
const I = ({
|
|
7
|
+
className: i,
|
|
8
|
+
inputRef: n,
|
|
9
|
+
options: e,
|
|
10
10
|
placeholder: m,
|
|
11
|
-
placeholderClassName:
|
|
11
|
+
placeholderClassName: a,
|
|
12
12
|
variant: t,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
onClick: p
|
|
13
|
+
wrapperRef: c,
|
|
14
|
+
onClick: f
|
|
16
15
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
return
|
|
16
|
+
const o = p(null);
|
|
17
|
+
return h({ ulRef: o, inputRef: n, wrapperRef: c, options: e }), e.length === 0 ? /* @__PURE__ */ r(
|
|
19
18
|
"span",
|
|
20
19
|
{
|
|
21
|
-
className:
|
|
22
|
-
|
|
23
|
-
theme: r,
|
|
20
|
+
className: s(
|
|
21
|
+
u({
|
|
24
22
|
variant: t,
|
|
25
|
-
className:
|
|
23
|
+
className: a
|
|
26
24
|
})
|
|
27
25
|
),
|
|
28
26
|
children: m
|
|
29
27
|
}
|
|
30
|
-
) : /* @__PURE__ */
|
|
28
|
+
) : /* @__PURE__ */ r(
|
|
31
29
|
"ul",
|
|
32
30
|
{
|
|
33
|
-
ref:
|
|
31
|
+
ref: o,
|
|
34
32
|
role: "listbox",
|
|
35
|
-
className:
|
|
36
|
-
children:
|
|
33
|
+
className: s(d({ variant: t, className: i })),
|
|
34
|
+
children: e.map(({ value: l }) => /* @__PURE__ */ r(
|
|
37
35
|
"li",
|
|
38
36
|
{
|
|
39
37
|
role: "option",
|
|
40
38
|
tabIndex: 0,
|
|
41
|
-
className:
|
|
42
|
-
children: /* @__PURE__ */
|
|
39
|
+
className: s(N({ variant: t })),
|
|
40
|
+
children: /* @__PURE__ */ r(
|
|
43
41
|
"button",
|
|
44
42
|
{
|
|
45
43
|
type: "button",
|
|
46
44
|
role: "button",
|
|
47
|
-
className:
|
|
48
|
-
onClick: () =>
|
|
49
|
-
children:
|
|
45
|
+
className: s(b({ variant: t })),
|
|
46
|
+
onClick: () => f(l),
|
|
47
|
+
children: l
|
|
50
48
|
}
|
|
51
49
|
)
|
|
52
50
|
},
|
|
53
|
-
|
|
51
|
+
l
|
|
54
52
|
))
|
|
55
53
|
}
|
|
56
54
|
);
|
|
57
55
|
};
|
|
58
56
|
export {
|
|
59
|
-
|
|
57
|
+
I as List
|
|
60
58
|
};
|