@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
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { Footer as N } from "../Footer/Footer.js";
|
|
2
|
+
import { Logo as C } from "../Logo/Logo.js";
|
|
3
|
+
import { Navigation as D } from "../Navigation/Navigation.js";
|
|
4
|
+
import "../NavigationGroup/NavigationGroup.js";
|
|
5
|
+
import "../NavigationOption/NavigationOption.js";
|
|
6
|
+
import "../NavigationSeparator/NavigationSeparator.js";
|
|
7
|
+
import "../NavigationTitle/NavigationTitle.js";
|
|
8
|
+
import { jsxs as V, jsx as b } from "react/jsx-runtime";
|
|
9
|
+
import { useRef as d, useCallback as f, useMemo as s, Children as a, isValidElement as l } from "react";
|
|
10
|
+
import { cn as y } from "../../../../utils/index.js";
|
|
11
|
+
import { dragVariants as j, wrapperSiderbarVariants as x } from "../../Sidebar.variants.js";
|
|
12
|
+
const G = ({
|
|
13
|
+
canResize: g = !0,
|
|
14
|
+
children: v,
|
|
14
15
|
maxWith: i = 300,
|
|
15
16
|
minWith: m = 240,
|
|
16
|
-
theme:
|
|
17
|
-
wrapperClassName:
|
|
17
|
+
theme: L,
|
|
18
|
+
wrapperClassName: M
|
|
18
19
|
}) => {
|
|
19
|
-
const r = d(null), u = d(null),
|
|
20
|
+
const r = d(null), u = d(null), c = d(!1), n = f(
|
|
20
21
|
(e) => {
|
|
21
|
-
if (!
|
|
22
|
+
if (!c.current) {
|
|
22
23
|
r.current && (r.current.style.opacity = "0");
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
@@ -26,54 +27,52 @@ const I = ({
|
|
|
26
27
|
o < m && (o = m), o > i && (o = i), u.current && r.current && (u.current.style.width = `${o}px`, r.current.classList.add("opacity-100"));
|
|
27
28
|
},
|
|
28
29
|
[i, m]
|
|
29
|
-
), p =
|
|
30
|
-
|
|
31
|
-
}, [n]),
|
|
30
|
+
), p = f(() => {
|
|
31
|
+
c.current = !1, r.current && r.current.classList.remove("opacity-100"), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", p);
|
|
32
|
+
}, [n]), w = f(
|
|
32
33
|
(e) => {
|
|
33
|
-
e.preventDefault(), e.stopPropagation(),
|
|
34
|
+
e.preventDefault(), e.stopPropagation(), c.current = !0, document.addEventListener("mousemove", n), document.addEventListener("mouseup", p);
|
|
34
35
|
},
|
|
35
36
|
[n, p]
|
|
36
37
|
), t = s(
|
|
37
|
-
() => a.toArray(
|
|
38
|
-
[
|
|
39
|
-
),
|
|
38
|
+
() => a.toArray(v),
|
|
39
|
+
[v]
|
|
40
|
+
), E = s(
|
|
40
41
|
() => a.toArray(t).find(
|
|
41
|
-
(e) =>
|
|
42
|
+
(e) => l(e) && e.type === C
|
|
42
43
|
),
|
|
43
44
|
[t]
|
|
44
|
-
),
|
|
45
|
+
), R = s(
|
|
45
46
|
() => a.toArray(t).find(
|
|
46
|
-
(e) =>
|
|
47
|
+
(e) => l(e) && e.type === D
|
|
47
48
|
),
|
|
48
49
|
[t]
|
|
49
|
-
),
|
|
50
|
+
), A = s(
|
|
50
51
|
() => a.toArray(t).find(
|
|
51
|
-
(e) =>
|
|
52
|
+
(e) => l(e) && e.type === N
|
|
52
53
|
),
|
|
53
54
|
[t]
|
|
54
55
|
);
|
|
55
|
-
return
|
|
56
|
-
c && L(c);
|
|
57
|
-
}, [L, c]), /* @__PURE__ */ x(
|
|
56
|
+
return /* @__PURE__ */ V(
|
|
58
57
|
"aside",
|
|
59
58
|
{
|
|
60
59
|
ref: u,
|
|
61
|
-
className:
|
|
62
|
-
|
|
63
|
-
className:
|
|
64
|
-
theme: g
|
|
60
|
+
className: y(
|
|
61
|
+
x({
|
|
62
|
+
className: M
|
|
65
63
|
})
|
|
66
64
|
),
|
|
65
|
+
"data-theme": L,
|
|
67
66
|
children: [
|
|
68
|
-
|
|
67
|
+
E,
|
|
68
|
+
R,
|
|
69
69
|
A,
|
|
70
|
-
|
|
71
|
-
M && /* @__PURE__ */ C(
|
|
70
|
+
g && /* @__PURE__ */ b(
|
|
72
71
|
"div",
|
|
73
72
|
{
|
|
74
73
|
ref: r,
|
|
75
|
-
className:
|
|
76
|
-
onMouseDown:
|
|
74
|
+
className: y(j()),
|
|
75
|
+
onMouseDown: w
|
|
77
76
|
}
|
|
78
77
|
)
|
|
79
78
|
]
|
|
@@ -81,5 +80,5 @@ const I = ({
|
|
|
81
80
|
);
|
|
82
81
|
};
|
|
83
82
|
export {
|
|
84
|
-
|
|
83
|
+
G as Wrapper
|
|
85
84
|
};
|
|
@@ -1,46 +1,43 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
2
|
-
import { R as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import "../../
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, [r]);
|
|
15
|
-
const x = w(
|
|
16
|
-
(N) => d(N),
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { R as x, T as N, b as v } from "../../index-BOx5P4tS.js";
|
|
3
|
+
import { forwardRef as V, useRef as b, useState as R, useImperativeHandle as g, useEffect as j, useCallback as k } from "react";
|
|
4
|
+
import { cn as r } from "../../utils/index.js";
|
|
5
|
+
import { trackVariants as w, thumbVariants as y, sliderVariants as C } from "./Slider.variants.js";
|
|
6
|
+
const q = V(
|
|
7
|
+
({ label: s, defaultValue: c = [0], name: i, theme: u, size: n, showValue: m, ...o }, f) => {
|
|
8
|
+
const e = b(null), [t, d] = R(c);
|
|
9
|
+
g(f, () => e.current, [e]), j(() => {
|
|
10
|
+
e.current && (e.current.value = t.toString());
|
|
11
|
+
}, [t]);
|
|
12
|
+
const h = k(
|
|
13
|
+
(p) => d(p),
|
|
17
14
|
[]
|
|
18
15
|
);
|
|
19
|
-
return /* @__PURE__ */ l("div", { className: "w-full relative flex flex-col gap-3", children: [
|
|
16
|
+
return /* @__PURE__ */ l("div", { className: "w-full relative flex flex-col gap-3", "data-theme": u, children: [
|
|
20
17
|
/* @__PURE__ */ l(
|
|
21
18
|
"div",
|
|
22
19
|
{
|
|
23
|
-
className:
|
|
20
|
+
className: r(
|
|
24
21
|
"flex items-center",
|
|
25
22
|
s ? "justify-between" : "justify-end"
|
|
26
23
|
),
|
|
27
24
|
children: [
|
|
28
|
-
s ? /* @__PURE__ */
|
|
29
|
-
|
|
25
|
+
s ? /* @__PURE__ */ a("label", { children: s }) : null,
|
|
26
|
+
m ? /* @__PURE__ */ a("span", { className: "text-xs", children: t }) : null
|
|
30
27
|
]
|
|
31
28
|
}
|
|
32
29
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ a("input", { ref: e, name: i, className: "hidden", type: "number" }),
|
|
34
31
|
/* @__PURE__ */ l(
|
|
35
|
-
|
|
32
|
+
x,
|
|
36
33
|
{
|
|
37
|
-
value:
|
|
38
|
-
className:
|
|
39
|
-
onValueChange:
|
|
40
|
-
...
|
|
34
|
+
value: t,
|
|
35
|
+
className: r(C()),
|
|
36
|
+
onValueChange: h,
|
|
37
|
+
...o,
|
|
41
38
|
children: [
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ a(N, { className: r(w({ size: n })) }),
|
|
40
|
+
/* @__PURE__ */ a(v, { className: r(y({ size: n })) })
|
|
44
41
|
]
|
|
45
42
|
}
|
|
46
43
|
)
|
|
@@ -48,5 +45,5 @@ const J = b(
|
|
|
48
45
|
}
|
|
49
46
|
);
|
|
50
47
|
export {
|
|
51
|
-
|
|
48
|
+
q as Slider
|
|
52
49
|
};
|
|
@@ -1,36 +1,30 @@
|
|
|
1
1
|
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
3
|
-
|
|
2
|
+
const s = e([
|
|
3
|
+
"relative",
|
|
4
|
+
"flex",
|
|
5
|
+
"items-center",
|
|
6
|
+
"w-full"
|
|
7
|
+
]), a = e(
|
|
8
|
+
[
|
|
9
|
+
"relative",
|
|
10
|
+
"flex-grow",
|
|
11
|
+
"rounded-full",
|
|
12
|
+
"bg-kubefirst-secondary",
|
|
13
|
+
"colony:bg-red-500"
|
|
14
|
+
],
|
|
4
15
|
{
|
|
5
16
|
variants: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
17
|
+
size: {
|
|
18
|
+
sm: ["h-1"],
|
|
19
|
+
md: ["h-2"],
|
|
20
|
+
lg: ["h-3"]
|
|
10
21
|
}
|
|
11
22
|
},
|
|
12
23
|
defaultVariants: {
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
), i = e(["relative", "flex-grow", "rounded-full"], {
|
|
17
|
-
variants: {
|
|
18
|
-
theme: {
|
|
19
|
-
kubefirst: ["bg-kubefirst-secondary"],
|
|
20
|
-
colony: ["bg-red-500"],
|
|
21
|
-
civo: ""
|
|
22
|
-
},
|
|
23
|
-
size: {
|
|
24
|
-
sm: ["h-1"],
|
|
25
|
-
md: ["h-2"],
|
|
26
|
-
lg: ["h-3"]
|
|
24
|
+
size: "md"
|
|
27
25
|
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
theme: "kubefirst",
|
|
31
|
-
size: "md"
|
|
32
26
|
}
|
|
33
|
-
|
|
27
|
+
), t = e(
|
|
34
28
|
[
|
|
35
29
|
"block",
|
|
36
30
|
"w-5",
|
|
@@ -45,11 +39,6 @@ const r = e(
|
|
|
45
39
|
],
|
|
46
40
|
{
|
|
47
41
|
variants: {
|
|
48
|
-
theme: {
|
|
49
|
-
kubefirst: "",
|
|
50
|
-
colony: "",
|
|
51
|
-
civo: ""
|
|
52
|
-
},
|
|
53
42
|
size: {
|
|
54
43
|
sm: ["w-5", "h-5"],
|
|
55
44
|
md: ["w-6", "h-6"],
|
|
@@ -57,13 +46,12 @@ const r = e(
|
|
|
57
46
|
}
|
|
58
47
|
},
|
|
59
48
|
defaultVariants: {
|
|
60
|
-
theme: "kubefirst",
|
|
61
49
|
size: "md"
|
|
62
50
|
}
|
|
63
51
|
}
|
|
64
52
|
);
|
|
65
53
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
54
|
+
s as sliderVariants,
|
|
55
|
+
t as thumbVariants,
|
|
56
|
+
a as trackVariants
|
|
69
57
|
};
|
|
@@ -1,63 +1,60 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as x, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import * as h from "react";
|
|
3
|
-
import { forwardRef as _,
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { P
|
|
8
|
-
import "../../
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import { switchVariants as U, thumbVariants as W } from "./Switch.variants.js";
|
|
13
|
-
var k = "Switch", [X, de] = B(k), [G, J] = X(k), R = h.forwardRef(
|
|
14
|
-
(e, s) => {
|
|
3
|
+
import { forwardRef as _, useRef as H, useId as M, useImperativeHandle as $, useEffect as j } from "react";
|
|
4
|
+
import { a as z, c as B, b as q } from "../../index-bYyfdsls.js";
|
|
5
|
+
import { u as A } from "../../index-Bk324h27.js";
|
|
6
|
+
import { u as F, a as O } from "../../index-Bry5AFQ2.js";
|
|
7
|
+
import { P } from "../../index-g-TFwd6Y.js";
|
|
8
|
+
import { cn as C } from "../../utils/index.js";
|
|
9
|
+
import { thumbVariants as V, switchVariants as D } from "./Switch.variants.js";
|
|
10
|
+
var k = "Switch", [L, ce] = B(k), [U, W] = L(k), R = h.forwardRef(
|
|
11
|
+
(e, u) => {
|
|
15
12
|
const {
|
|
16
13
|
__scopeSwitch: t,
|
|
17
|
-
name:
|
|
18
|
-
checked:
|
|
19
|
-
defaultChecked:
|
|
20
|
-
required:
|
|
21
|
-
disabled:
|
|
22
|
-
value:
|
|
23
|
-
onCheckedChange:
|
|
24
|
-
form:
|
|
25
|
-
...
|
|
26
|
-
} = e, [
|
|
27
|
-
prop:
|
|
28
|
-
defaultProp:
|
|
29
|
-
onChange:
|
|
14
|
+
name: s,
|
|
15
|
+
checked: a,
|
|
16
|
+
defaultChecked: n,
|
|
17
|
+
required: l,
|
|
18
|
+
disabled: r,
|
|
19
|
+
value: o = "on",
|
|
20
|
+
onCheckedChange: f,
|
|
21
|
+
form: c,
|
|
22
|
+
...p
|
|
23
|
+
} = e, [i, w] = h.useState(null), g = A(u, (b) => w(b)), v = h.useRef(!1), S = i ? c || !!i.closest("form") : !0, [m = !1, I] = z({
|
|
24
|
+
prop: a,
|
|
25
|
+
defaultProp: n,
|
|
26
|
+
onChange: f
|
|
30
27
|
});
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
28
|
+
return /* @__PURE__ */ x(U, { scope: t, checked: m, disabled: r, children: [
|
|
29
|
+
/* @__PURE__ */ d(
|
|
30
|
+
P.button,
|
|
34
31
|
{
|
|
35
32
|
type: "button",
|
|
36
33
|
role: "switch",
|
|
37
|
-
"aria-checked":
|
|
38
|
-
"aria-required":
|
|
39
|
-
"data-state": E(
|
|
40
|
-
"data-disabled":
|
|
41
|
-
disabled:
|
|
42
|
-
value:
|
|
43
|
-
...
|
|
44
|
-
ref:
|
|
45
|
-
onClick:
|
|
46
|
-
|
|
34
|
+
"aria-checked": m,
|
|
35
|
+
"aria-required": l,
|
|
36
|
+
"data-state": E(m),
|
|
37
|
+
"data-disabled": r ? "" : void 0,
|
|
38
|
+
disabled: r,
|
|
39
|
+
value: o,
|
|
40
|
+
...p,
|
|
41
|
+
ref: g,
|
|
42
|
+
onClick: q(e.onClick, (b) => {
|
|
43
|
+
I((T) => !T), S && (v.current = b.isPropagationStopped(), v.current || b.stopPropagation());
|
|
47
44
|
})
|
|
48
45
|
}
|
|
49
46
|
),
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
S && /* @__PURE__ */ d(
|
|
48
|
+
X,
|
|
52
49
|
{
|
|
53
|
-
control:
|
|
54
|
-
bubbles: !
|
|
55
|
-
name:
|
|
56
|
-
value:
|
|
57
|
-
checked:
|
|
58
|
-
required:
|
|
59
|
-
disabled:
|
|
60
|
-
form:
|
|
50
|
+
control: i,
|
|
51
|
+
bubbles: !v.current,
|
|
52
|
+
name: s,
|
|
53
|
+
value: o,
|
|
54
|
+
checked: m,
|
|
55
|
+
required: l,
|
|
56
|
+
disabled: r,
|
|
57
|
+
form: c,
|
|
61
58
|
style: { transform: "translateX(-100%)" }
|
|
62
59
|
}
|
|
63
60
|
)
|
|
@@ -66,40 +63,40 @@ var k = "Switch", [X, de] = B(k), [G, J] = X(k), R = h.forwardRef(
|
|
|
66
63
|
);
|
|
67
64
|
R.displayName = k;
|
|
68
65
|
var y = "SwitchThumb", N = h.forwardRef(
|
|
69
|
-
(e,
|
|
70
|
-
const { __scopeSwitch: t, ...
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
-
|
|
66
|
+
(e, u) => {
|
|
67
|
+
const { __scopeSwitch: t, ...s } = e, a = W(y, t);
|
|
68
|
+
return /* @__PURE__ */ d(
|
|
69
|
+
P.span,
|
|
73
70
|
{
|
|
74
|
-
"data-state": E(
|
|
75
|
-
"data-disabled":
|
|
76
|
-
...
|
|
77
|
-
ref:
|
|
71
|
+
"data-state": E(a.checked),
|
|
72
|
+
"data-disabled": a.disabled ? "" : void 0,
|
|
73
|
+
...s,
|
|
74
|
+
ref: u
|
|
78
75
|
}
|
|
79
76
|
);
|
|
80
77
|
}
|
|
81
78
|
);
|
|
82
79
|
N.displayName = y;
|
|
83
|
-
var
|
|
84
|
-
const { control:
|
|
80
|
+
var X = (e) => {
|
|
81
|
+
const { control: u, checked: t, bubbles: s = !0, ...a } = e, n = h.useRef(null), l = F(t), r = O(u);
|
|
85
82
|
return h.useEffect(() => {
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
88
|
-
const
|
|
89
|
-
|
|
83
|
+
const o = n.current, f = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(f, "checked").set;
|
|
84
|
+
if (l !== t && p) {
|
|
85
|
+
const i = new Event("click", { bubbles: s });
|
|
86
|
+
p.call(o, t), o.dispatchEvent(i);
|
|
90
87
|
}
|
|
91
|
-
}, [
|
|
88
|
+
}, [l, t, s]), /* @__PURE__ */ d(
|
|
92
89
|
"input",
|
|
93
90
|
{
|
|
94
91
|
type: "checkbox",
|
|
95
92
|
"aria-hidden": !0,
|
|
96
93
|
defaultChecked: t,
|
|
97
|
-
...
|
|
94
|
+
...a,
|
|
98
95
|
tabIndex: -1,
|
|
99
|
-
ref:
|
|
96
|
+
ref: n,
|
|
100
97
|
style: {
|
|
101
98
|
...e.style,
|
|
102
|
-
...
|
|
99
|
+
...r,
|
|
103
100
|
position: "absolute",
|
|
104
101
|
pointerEvents: "none",
|
|
105
102
|
opacity: 0,
|
|
@@ -111,65 +108,63 @@ var K = (e) => {
|
|
|
111
108
|
function E(e) {
|
|
112
109
|
return e ? "checked" : "unchecked";
|
|
113
110
|
}
|
|
114
|
-
var
|
|
115
|
-
const
|
|
111
|
+
var G = R, J = N;
|
|
112
|
+
const se = _(
|
|
116
113
|
({
|
|
117
114
|
name: e,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
[]
|
|
132
|
-
);
|
|
133
|
-
return /* @__PURE__ */ P(
|
|
115
|
+
alignment: u = "horizontal",
|
|
116
|
+
theme: t,
|
|
117
|
+
thumbClassName: s,
|
|
118
|
+
className: a,
|
|
119
|
+
label: n,
|
|
120
|
+
defaultChecked: l,
|
|
121
|
+
onChange: r,
|
|
122
|
+
value: o
|
|
123
|
+
}, f) => {
|
|
124
|
+
const c = H(null), p = M(), i = e ? `${p}-${e}` : p;
|
|
125
|
+
return $(f, () => c.current, [c]), j(() => {
|
|
126
|
+
c.current && (c.current.value = `${o}`);
|
|
127
|
+
}, [o]), /* @__PURE__ */ x(
|
|
134
128
|
"div",
|
|
135
129
|
{
|
|
136
|
-
className:
|
|
130
|
+
className: C(
|
|
137
131
|
"w-full flex gap-3",
|
|
138
|
-
|
|
132
|
+
u === "vertical" ? "flex-col" : "flex-row"
|
|
139
133
|
),
|
|
134
|
+
"data-theme": t,
|
|
140
135
|
children: [
|
|
141
|
-
|
|
136
|
+
n ? /* @__PURE__ */ d(
|
|
142
137
|
"label",
|
|
143
138
|
{
|
|
144
139
|
className: "text-base",
|
|
145
|
-
htmlFor:
|
|
140
|
+
htmlFor: i,
|
|
146
141
|
style: { paddingRight: 15 },
|
|
147
|
-
children:
|
|
142
|
+
children: n
|
|
148
143
|
}
|
|
149
144
|
) : null,
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
|
|
145
|
+
/* @__PURE__ */ d(
|
|
146
|
+
G,
|
|
152
147
|
{
|
|
153
|
-
id:
|
|
154
|
-
defaultChecked:
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
148
|
+
id: i,
|
|
149
|
+
defaultChecked: l,
|
|
150
|
+
checked: o,
|
|
151
|
+
onCheckedChange: (w) => r == null ? void 0 : r(w),
|
|
152
|
+
className: C(D({ className: a })),
|
|
153
|
+
"aria-label": n,
|
|
154
|
+
children: /* @__PURE__ */ d(
|
|
155
|
+
J,
|
|
160
156
|
{
|
|
161
|
-
className:
|
|
162
|
-
|
|
163
|
-
className: n
|
|
157
|
+
className: V({
|
|
158
|
+
className: s
|
|
164
159
|
})
|
|
165
160
|
}
|
|
166
161
|
)
|
|
167
162
|
}
|
|
168
163
|
),
|
|
169
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ d(
|
|
170
165
|
"input",
|
|
171
166
|
{
|
|
172
|
-
ref:
|
|
167
|
+
ref: c,
|
|
173
168
|
name: e,
|
|
174
169
|
type: "text",
|
|
175
170
|
className: "hidden",
|
|
@@ -182,5 +177,5 @@ const le = _(
|
|
|
182
177
|
}
|
|
183
178
|
);
|
|
184
179
|
export {
|
|
185
|
-
|
|
180
|
+
se as Switch
|
|
186
181
|
};
|
|
@@ -1,57 +1,32 @@
|
|
|
1
1
|
import { c as t } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const e = t(
|
|
3
|
-
[
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"block",
|
|
31
|
-
"w-6",
|
|
32
|
-
"h-6",
|
|
33
|
-
"bg-white",
|
|
34
|
-
"rounded-full",
|
|
35
|
-
"shadow-md",
|
|
36
|
-
"transition-all",
|
|
37
|
-
"translate-x-1",
|
|
38
|
-
"data-[state=checked]:translate-x-5",
|
|
39
|
-
"delay-10",
|
|
40
|
-
"duration-300"
|
|
41
|
-
],
|
|
42
|
-
{
|
|
43
|
-
variants: {
|
|
44
|
-
theme: {
|
|
45
|
-
kubefirst: "",
|
|
46
|
-
colony: "",
|
|
47
|
-
civo: ""
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
defaultVariants: {
|
|
51
|
-
theme: "kubefirst"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
);
|
|
2
|
+
const e = t([
|
|
3
|
+
"w-[44px]",
|
|
4
|
+
"h-[22px]",
|
|
5
|
+
"flex",
|
|
6
|
+
"items-center",
|
|
7
|
+
"rounded-full",
|
|
8
|
+
"shadow",
|
|
9
|
+
"focus:shadow-md",
|
|
10
|
+
"data-[state=unchecked]:bg-zinc-200",
|
|
11
|
+
"transition-all",
|
|
12
|
+
"delay-10",
|
|
13
|
+
"duration-250",
|
|
14
|
+
"cursor-pointer",
|
|
15
|
+
"bg-kubefirst-primary",
|
|
16
|
+
"colony:bg-red-600"
|
|
17
|
+
]), r = t([
|
|
18
|
+
"block",
|
|
19
|
+
"w-[18px]",
|
|
20
|
+
"h-[18px]",
|
|
21
|
+
"bg-white",
|
|
22
|
+
"rounded-full",
|
|
23
|
+
"shadow-md",
|
|
24
|
+
"transition-all",
|
|
25
|
+
"translate-x-1",
|
|
26
|
+
"data-[state=checked]:translate-x-5.5",
|
|
27
|
+
"delay-10",
|
|
28
|
+
"duration-300"
|
|
29
|
+
]);
|
|
55
30
|
export {
|
|
56
31
|
e as switchVariants,
|
|
57
32
|
r as thumbVariants
|