@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,74 +1,45 @@
|
|
|
1
1
|
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"max-w-[100vw]",
|
|
42
|
-
"m-0",
|
|
43
|
-
"z-50",
|
|
44
|
-
"outline-none"
|
|
45
|
-
],
|
|
46
|
-
{
|
|
47
|
-
variants: {
|
|
48
|
-
theme: {
|
|
49
|
-
kubefirst: "",
|
|
50
|
-
colony: "",
|
|
51
|
-
civo: ""
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
defaultVariants: {
|
|
55
|
-
theme: "kubefirst"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
), i = e(["top-2", "right-2", "w-4", "h-4"], {
|
|
59
|
-
variants: {
|
|
60
|
-
theme: {
|
|
61
|
-
kubefirst: ["text-kubefirst-primary"],
|
|
62
|
-
colony: ["text-red-400"],
|
|
63
|
-
civo: ""
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
defaultVariants: {
|
|
67
|
-
theme: "kubefirst"
|
|
68
|
-
}
|
|
69
|
-
});
|
|
2
|
+
const t = e([
|
|
3
|
+
"rounded-md",
|
|
4
|
+
"shadow-md",
|
|
5
|
+
"p-4",
|
|
6
|
+
"flex",
|
|
7
|
+
"flex-col",
|
|
8
|
+
"relative",
|
|
9
|
+
"border",
|
|
10
|
+
"overflow-hidden",
|
|
11
|
+
"data-[state=open]:animate-slide-in",
|
|
12
|
+
"data-[state=closed]:animate-hide",
|
|
13
|
+
"data-[swipe=move]:translate-x-4",
|
|
14
|
+
"data-[swipe=cancel]:translate-x-0",
|
|
15
|
+
"data-[swipe=end]:animate-swipe-out",
|
|
16
|
+
"shadow-purple-200",
|
|
17
|
+
"border-purple-100",
|
|
18
|
+
"colony:shadow-red-200",
|
|
19
|
+
"colony:border-red-100"
|
|
20
|
+
]), o = e([
|
|
21
|
+
"fixed",
|
|
22
|
+
"bottom-0",
|
|
23
|
+
"right-0",
|
|
24
|
+
"flex",
|
|
25
|
+
"flex-col",
|
|
26
|
+
"p-[var(--viewport-padding)]",
|
|
27
|
+
"gap-8",
|
|
28
|
+
"w-[390px]",
|
|
29
|
+
"max-w-[100vw]",
|
|
30
|
+
"m-0",
|
|
31
|
+
"z-50",
|
|
32
|
+
"outline-none"
|
|
33
|
+
]), r = e([
|
|
34
|
+
"top-2",
|
|
35
|
+
"right-2",
|
|
36
|
+
"w-4",
|
|
37
|
+
"h-4",
|
|
38
|
+
"text-kubefirst-primary",
|
|
39
|
+
"colony:text-red-400"
|
|
40
|
+
]);
|
|
70
41
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
42
|
+
r as closeToastVariants,
|
|
43
|
+
t as toastVariants,
|
|
44
|
+
o as viewportToastVariants
|
|
74
45
|
};
|
|
@@ -1,36 +1,28 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "../../contexts/theme.context.js";
|
|
5
|
-
import { useTheme as V } from "../../contexts/theme.hook.js";
|
|
6
|
-
import "../../js.cookie-OLEfuq_g.js";
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { S as i } from "../../index-Bk324h27.js";
|
|
3
|
+
import { forwardRef as v, useRef as N, useImperativeHandle as w, useMemo as h, isValidElement as x } from "react";
|
|
7
4
|
import { cn as o } from "../../utils/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import { useTooltip as
|
|
10
|
-
const
|
|
11
|
-
({ children:
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
() =>
|
|
16
|
-
[
|
|
5
|
+
import { arrowVariants as R, tooltipVariants as V } from "./Tooltip.variants.js";
|
|
6
|
+
import { useTooltip as b } from "./hooks/useTooltip.js";
|
|
7
|
+
const I = v(
|
|
8
|
+
({ children: r, content: l, className: m, theme: n, position: a, wrapperClassName: c }, p) => {
|
|
9
|
+
const f = N(null), { isVisible: d, componentRef: s } = b();
|
|
10
|
+
w(p, () => s.current, [s]);
|
|
11
|
+
const u = h(
|
|
12
|
+
() => x(r) ? r : /* @__PURE__ */ e("p", { className: "p-2", children: r }),
|
|
13
|
+
[r]
|
|
17
14
|
);
|
|
18
|
-
return /* @__PURE__ */ e("div", { className: o("w-full", c), children: /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */ e(
|
|
20
|
-
/* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ e("div", { className: o("w-full", c), "data-theme": n, children: /* @__PURE__ */ t("div", { className: "relative w-max", children: [
|
|
16
|
+
/* @__PURE__ */ e(i, { ref: s, className: o("cursor-pointer ", m), children: u }),
|
|
17
|
+
/* @__PURE__ */ t(
|
|
21
18
|
"div",
|
|
22
19
|
{
|
|
23
|
-
ref:
|
|
24
|
-
className: o(
|
|
25
|
-
"data-visible":
|
|
20
|
+
ref: f,
|
|
21
|
+
className: o(V({ position: a })),
|
|
22
|
+
"data-visible": d,
|
|
26
23
|
children: [
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
|
|
29
|
-
{
|
|
30
|
-
className: o(j({ theme: m, position: s }))
|
|
31
|
-
}
|
|
32
|
-
),
|
|
33
|
-
/* @__PURE__ */ e(a, { children: l })
|
|
24
|
+
/* @__PURE__ */ e("span", { className: o(R({ position: a })) }),
|
|
25
|
+
/* @__PURE__ */ e(i, { children: l })
|
|
34
26
|
]
|
|
35
27
|
}
|
|
36
28
|
)
|
|
@@ -38,5 +30,5 @@ const z = N(
|
|
|
38
30
|
}
|
|
39
31
|
);
|
|
40
32
|
export {
|
|
41
|
-
|
|
33
|
+
I as Tooltip
|
|
42
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as r } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
2
|
+
const o = r(
|
|
3
3
|
[
|
|
4
4
|
"absolute",
|
|
5
5
|
"w-max",
|
|
@@ -11,15 +11,12 @@ const e = r(
|
|
|
11
11
|
"opacity-0",
|
|
12
12
|
"duration-250",
|
|
13
13
|
"[&[data-visible='true']]:opacity-100",
|
|
14
|
-
"delay-100"
|
|
14
|
+
"delay-100",
|
|
15
|
+
"bg-kubefirst-primary",
|
|
16
|
+
"colony:bg-red-700"
|
|
15
17
|
],
|
|
16
18
|
{
|
|
17
19
|
variants: {
|
|
18
|
-
theme: {
|
|
19
|
-
kubefirst: "bg-kubefirst-primary",
|
|
20
|
-
colony: "bg-red-700",
|
|
21
|
-
civo: ""
|
|
22
|
-
},
|
|
23
20
|
position: {
|
|
24
21
|
top: ["-top-[120%]", "left-[50%]", "-translate-x-1/2"],
|
|
25
22
|
bottom: ["-bottom-[120%]", "right-[50%]", "translate-x-1/2"],
|
|
@@ -28,66 +25,68 @@ const e = r(
|
|
|
28
25
|
}
|
|
29
26
|
},
|
|
30
27
|
defaultVariants: {
|
|
31
|
-
theme: "kubefirst",
|
|
32
28
|
position: "right"
|
|
33
29
|
}
|
|
34
30
|
}
|
|
35
|
-
),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
), a = r(
|
|
32
|
+
[
|
|
33
|
+
"absolute",
|
|
34
|
+
"w-0",
|
|
35
|
+
"h-0",
|
|
36
|
+
"border-kubefirst-primary",
|
|
37
|
+
"colony:border-red-700"
|
|
38
|
+
],
|
|
39
|
+
{
|
|
40
|
+
variants: {
|
|
41
|
+
position: {
|
|
42
|
+
top: [
|
|
43
|
+
"top-full",
|
|
44
|
+
"right-1/2",
|
|
45
|
+
"translate-x-2/4",
|
|
46
|
+
"border-l-4",
|
|
47
|
+
"border-l-transparent",
|
|
48
|
+
"border-r-4",
|
|
49
|
+
"border-r-transparent",
|
|
50
|
+
"border-t-4"
|
|
51
|
+
],
|
|
52
|
+
bottom: [
|
|
53
|
+
"bottom-full",
|
|
54
|
+
"right-1/2",
|
|
55
|
+
"translate-x-2/4",
|
|
56
|
+
"border-l-4",
|
|
57
|
+
"border-l-transparent",
|
|
58
|
+
"border-r-4",
|
|
59
|
+
"border-r-transparent",
|
|
60
|
+
"border-b-4"
|
|
61
|
+
],
|
|
62
|
+
right: [
|
|
63
|
+
"right-full",
|
|
64
|
+
"top-1/2",
|
|
65
|
+
"-translate-y-2/4",
|
|
66
|
+
"border-t-4",
|
|
67
|
+
"border-t-transparent",
|
|
68
|
+
"border-b-4",
|
|
69
|
+
"border-b-transparent",
|
|
70
|
+
"border-r-4"
|
|
71
|
+
],
|
|
72
|
+
left: [
|
|
73
|
+
"left-full",
|
|
74
|
+
"top-1/2",
|
|
75
|
+
"-translate-y-2/4",
|
|
76
|
+
"border-t-4",
|
|
77
|
+
"border-t-transparent",
|
|
78
|
+
"border-b-4",
|
|
79
|
+
"border-b-transparent",
|
|
80
|
+
"border-l-4"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
41
83
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"top-full",
|
|
45
|
-
"right-1/2",
|
|
46
|
-
"translate-x-2/4",
|
|
47
|
-
"border-l-4",
|
|
48
|
-
"border-l-transparent",
|
|
49
|
-
"border-r-4",
|
|
50
|
-
"border-r-transparent",
|
|
51
|
-
"border-t-4"
|
|
52
|
-
],
|
|
53
|
-
bottom: [
|
|
54
|
-
"bottom-full",
|
|
55
|
-
"right-1/2",
|
|
56
|
-
"translate-x-2/4",
|
|
57
|
-
"border-l-4",
|
|
58
|
-
"border-l-transparent",
|
|
59
|
-
"border-r-4",
|
|
60
|
-
"border-r-transparent",
|
|
61
|
-
"border-b-4"
|
|
62
|
-
],
|
|
63
|
-
right: [
|
|
64
|
-
"right-full",
|
|
65
|
-
"top-1/2",
|
|
66
|
-
"-translate-y-2/4",
|
|
67
|
-
"border-t-4",
|
|
68
|
-
"border-t-transparent",
|
|
69
|
-
"border-b-4",
|
|
70
|
-
"border-b-transparent",
|
|
71
|
-
"border-r-4"
|
|
72
|
-
],
|
|
73
|
-
left: [
|
|
74
|
-
"left-full",
|
|
75
|
-
"top-1/2",
|
|
76
|
-
"-translate-y-2/4",
|
|
77
|
-
"border-t-4",
|
|
78
|
-
"border-t-transparent",
|
|
79
|
-
"border-b-4",
|
|
80
|
-
"border-b-transparent",
|
|
81
|
-
"border-l-4"
|
|
82
|
-
]
|
|
84
|
+
defaultVariants: {
|
|
85
|
+
position: "right"
|
|
83
86
|
}
|
|
84
|
-
},
|
|
85
|
-
defaultVariants: {
|
|
86
|
-
theme: "kubefirst",
|
|
87
|
-
position: "right"
|
|
88
87
|
}
|
|
89
|
-
|
|
88
|
+
);
|
|
90
89
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
a as arrowVariants,
|
|
91
|
+
o as tooltipVariants
|
|
93
92
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useId as d } from "react";
|
|
3
|
+
import { cn as h } from "../../utils/index.js";
|
|
4
|
+
import { typographyVariants as l } from "./Typography.variants.js";
|
|
5
|
+
import { S as g } from "../../index-Bk324h27.js";
|
|
6
|
+
const i = ({
|
|
7
|
+
className: p,
|
|
8
|
+
theme: m,
|
|
9
|
+
children: s,
|
|
10
|
+
variant: o,
|
|
11
|
+
component: r,
|
|
12
|
+
asChild: e = !1,
|
|
13
|
+
...t
|
|
14
|
+
}) => {
|
|
15
|
+
const y = d(), c = e ? g : r ?? (o != null && o.includes("h") ? o : "p");
|
|
16
|
+
return /* @__PURE__ */ f(
|
|
17
|
+
c,
|
|
18
|
+
{
|
|
19
|
+
id: y,
|
|
20
|
+
"data-theme": m,
|
|
21
|
+
className: h(
|
|
22
|
+
l({
|
|
23
|
+
className: p,
|
|
24
|
+
variant: o
|
|
25
|
+
})
|
|
26
|
+
),
|
|
27
|
+
...t,
|
|
28
|
+
children: s
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
i.displayName = "Typography";
|
|
33
|
+
export {
|
|
34
|
+
i as Typography
|
|
35
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { c as t } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const e = t([], {
|
|
3
|
+
variants: {
|
|
4
|
+
variant: {
|
|
5
|
+
h1: ["text-[57px]", "leading-[64px]"],
|
|
6
|
+
h2: ["text-[45px]", "leading-[52px]"],
|
|
7
|
+
h3: ["text-[36px]", "leading-[44px]"],
|
|
8
|
+
h4: ["text-[32px]", "leading-[40px]"],
|
|
9
|
+
h5: ["text-[28px]", "leading-[36px]"],
|
|
10
|
+
h6: ["text-[24px]", "font-medium", "leading-[32px]", "tracking-[0.15px]"],
|
|
11
|
+
subtitle1: ["text-[22px]", "leading-[28px]"],
|
|
12
|
+
subtitle2: [
|
|
13
|
+
"text-[16px]",
|
|
14
|
+
"font-medium",
|
|
15
|
+
"leading-[24px]",
|
|
16
|
+
"tracking-[0.15px]"
|
|
17
|
+
],
|
|
18
|
+
subtitle3: [
|
|
19
|
+
"text-[14px]",
|
|
20
|
+
"font-medium",
|
|
21
|
+
"leading-[20px]",
|
|
22
|
+
"tracking-[0.1px]"
|
|
23
|
+
],
|
|
24
|
+
labelLarge: ["text-[14px]", "leading-[20px]", "tracking-[0.1px]"],
|
|
25
|
+
labelMedium: [
|
|
26
|
+
"text-[12px]",
|
|
27
|
+
"font-medium",
|
|
28
|
+
"leading-[16px]",
|
|
29
|
+
"tracking-[0.5px]",
|
|
30
|
+
"uppercase"
|
|
31
|
+
],
|
|
32
|
+
labelSmall: [
|
|
33
|
+
"text-[11px]",
|
|
34
|
+
"font-medium",
|
|
35
|
+
"leading-[16px]",
|
|
36
|
+
"tracking-[0.5px]",
|
|
37
|
+
"uppercase"
|
|
38
|
+
],
|
|
39
|
+
buttonSmall: [
|
|
40
|
+
"text-[14px]",
|
|
41
|
+
"font-semibold",
|
|
42
|
+
"leading-[20px]",
|
|
43
|
+
"tracking-[0.25px]"
|
|
44
|
+
],
|
|
45
|
+
body1: ["text-[16px]", "leading-[24px]", "tracking-[0.5px]"],
|
|
46
|
+
body2: ["text-[14px]", "leading-[20px]", "tracking-[0.25px]"],
|
|
47
|
+
body3: ["text-[12px]", "leading-[16px]", "tracking-[0.4px]"],
|
|
48
|
+
tooltip: ["text-[14px]", "leading-[22px]"]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
defaultVariants: {
|
|
52
|
+
variant: "body1"
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
e as typographyVariants
|
|
57
|
+
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,56 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { Alert as t } from "./Alert/Alert.js";
|
|
2
|
+
import { AlertDialog as p } from "./AlertDialog/AlertDialog.js";
|
|
3
|
+
import { Autocomplete as x } from "./Autocomplete/Autocomplete.js";
|
|
4
|
+
import { Breadcrumb as a } from "./Breadcrumb/Breadcrumb.js";
|
|
5
|
+
import { Button as d } from "./Button/Button.js";
|
|
6
|
+
import { Card as n } from "./Card/Card.js";
|
|
7
|
+
import { Checkbox as u } from "./Checkbox/Checkbox.js";
|
|
8
|
+
import { Dropdown as b } from "./Dropdown/Dropdown.js";
|
|
9
|
+
import { Input as v } from "./Input/Input.js";
|
|
10
|
+
import { M as R } from "../Modal-i7eolhYH.js";
|
|
10
11
|
import { NumberInput as s } from "./NumberInput/NumberInput.js";
|
|
11
|
-
import { ProgressBar as
|
|
12
|
-
import { Radio as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
12
|
+
import { ProgressBar as C } from "./ProgressBar/ProgressBar.js";
|
|
13
|
+
import { Radio as B } from "./Radio/Radio.js";
|
|
14
|
+
import { RadioCard as G } from "./RadioCard/RadioCard.js";
|
|
15
|
+
import { RadioCardGroup as y } from "./RadioCardGroup/RadioCardGroup.js";
|
|
16
|
+
import { RadioGroup as L } from "./RadioGroup/RadioGroup.js";
|
|
17
|
+
import { Range as k } from "./Range/Range.js";
|
|
18
|
+
import { Sidebar as O } from "./Sidebar/Sidebar.js";
|
|
19
|
+
import { Slider as j } from "./Slider/Slider.js";
|
|
20
|
+
import { Switch as z } from "./Switch/Switch.js";
|
|
21
|
+
import { Tag as H } from "./Tag/Tag.js";
|
|
22
|
+
import { TagSelect as K } from "./TagSelect/TagSelect.js";
|
|
23
|
+
import { TextArea as U } from "./TextArea/TextArea.js";
|
|
24
|
+
import { Toast as W } from "./Toast/Toast.js";
|
|
25
|
+
import { Tooltip as Y } from "./Tooltip/Tooltip.js";
|
|
26
|
+
import { Loading as _ } from "./Loading/Loading.js";
|
|
27
|
+
import { Typography as oo } from "./Typography/Typography.js";
|
|
28
|
+
import { Divider as to } from "./Divider/Divider.js";
|
|
29
|
+
import { Table as po } from "./Table/Table.js";
|
|
30
|
+
import { Footer as xo } from "./Sidebar/components/Footer/Footer.js";
|
|
31
|
+
import { Logo as ao } from "./Sidebar/components/Logo/Logo.js";
|
|
32
|
+
import { Navigation as go } from "./Sidebar/components/Navigation/Navigation.js";
|
|
33
|
+
import { NavigationGroup as lo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
34
|
+
import { NavigationOption as To } from "./Sidebar/components/NavigationOption/NavigationOption.js";
|
|
35
|
+
import { NavigationSeparator as co } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
28
36
|
export {
|
|
29
|
-
t as
|
|
30
|
-
p as
|
|
31
|
-
x as
|
|
32
|
-
a as
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
u as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
t as Alert,
|
|
38
|
+
p as AlertDialog,
|
|
39
|
+
x as Autocomplete,
|
|
40
|
+
a as Breadcrumb,
|
|
41
|
+
d as Button,
|
|
42
|
+
n as Card,
|
|
43
|
+
u as Checkbox,
|
|
44
|
+
to as Divider,
|
|
45
|
+
b as Dropdown,
|
|
46
|
+
xo as Footer,
|
|
47
|
+
v as Input,
|
|
48
|
+
_ as Loading,
|
|
49
|
+
ao as Logo,
|
|
50
|
+
R as Modal,
|
|
51
|
+
go as Navigation,
|
|
52
|
+
lo as NavigationGroup,
|
|
53
|
+
To as NavigationOption,
|
|
54
|
+
co as NavigationSeparator,
|
|
44
55
|
s as NumberInput,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
H as
|
|
56
|
+
C as ProgressBar,
|
|
57
|
+
B as Radio,
|
|
58
|
+
G as RadioCard,
|
|
59
|
+
y as RadioCardGroup,
|
|
60
|
+
L as RadioGroup,
|
|
61
|
+
k as Range,
|
|
62
|
+
O as Sidebar,
|
|
63
|
+
j as Slider,
|
|
64
|
+
z as Switch,
|
|
65
|
+
po as Table,
|
|
66
|
+
H as Tag,
|
|
67
|
+
K as TagSelect,
|
|
68
|
+
U as TextArea,
|
|
69
|
+
W as Toast,
|
|
70
|
+
Y as Tooltip,
|
|
71
|
+
oo as Typography
|
|
56
72
|
};
|
|
@@ -1,20 +1,88 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useEffect as g } from "react";
|
|
3
|
+
import { isClient as l } from "../utils/index.js";
|
|
4
|
+
import { ThemeContext as C } from "./theme.context.js";
|
|
5
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
6
|
+
function p(n) {
|
|
7
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
8
|
+
var t = arguments[o];
|
|
9
|
+
for (var f in t)
|
|
10
|
+
n[f] = t[f];
|
|
11
|
+
}
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
var a = {
|
|
15
|
+
read: function(n) {
|
|
16
|
+
return n[0] === '"' && (n = n.slice(1, -1)), n.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
17
|
+
},
|
|
18
|
+
write: function(n) {
|
|
19
|
+
return encodeURIComponent(n).replace(
|
|
20
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
21
|
+
decodeURIComponent
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function s(n, o) {
|
|
26
|
+
function t(e, u, r) {
|
|
27
|
+
if (!(typeof document > "u")) {
|
|
28
|
+
r = p({}, o, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), e = encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
29
|
+
var i = "";
|
|
30
|
+
for (var c in r)
|
|
31
|
+
r[c] && (i += "; " + c, r[c] !== !0 && (i += "=" + r[c].split(";")[0]));
|
|
32
|
+
return document.cookie = e + "=" + n.write(u, e) + i;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function f(e) {
|
|
36
|
+
if (!(typeof document > "u" || arguments.length && !e)) {
|
|
37
|
+
for (var u = document.cookie ? document.cookie.split("; ") : [], r = {}, i = 0; i < u.length; i++) {
|
|
38
|
+
var c = u[i].split("="), m = c.slice(1).join("=");
|
|
39
|
+
try {
|
|
40
|
+
var d = decodeURIComponent(c[0]);
|
|
41
|
+
if (r[d] = n.read(m, d), e === d)
|
|
42
|
+
break;
|
|
43
|
+
} catch {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return e ? r[e] : r;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return Object.create(
|
|
50
|
+
{
|
|
51
|
+
set: t,
|
|
52
|
+
get: f,
|
|
53
|
+
remove: function(e, u) {
|
|
54
|
+
t(
|
|
55
|
+
e,
|
|
56
|
+
"",
|
|
57
|
+
p({}, u, {
|
|
58
|
+
expires: -1
|
|
59
|
+
})
|
|
60
|
+
);
|
|
61
|
+
},
|
|
62
|
+
withAttributes: function(e) {
|
|
63
|
+
return s(this.converter, p({}, this.attributes, e));
|
|
64
|
+
},
|
|
65
|
+
withConverter: function(e) {
|
|
66
|
+
return s(p({}, this.converter, e), this.attributes);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
attributes: { value: Object.freeze(o) },
|
|
71
|
+
converter: { value: Object.freeze(n) }
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
var x = s(a, { path: "/" });
|
|
76
|
+
const R = ({
|
|
77
|
+
children: n,
|
|
78
|
+
theme: o
|
|
9
79
|
}) => {
|
|
10
|
-
const [t,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
16
|
-
return /* @__PURE__ */ m(f.Provider, { value: { theme: t, setTheme: o }, children: r });
|
|
80
|
+
const [t, f] = h(() => o || (l ? x.get("konstruct-theme") : "kubefirst"));
|
|
81
|
+
return g(() => {
|
|
82
|
+
var e;
|
|
83
|
+
(e = document.querySelector("body")) == null || e.setAttribute("data-theme", t);
|
|
84
|
+
}, [t]), /* @__PURE__ */ v(C.Provider, { value: { theme: t, setTheme: f }, children: n });
|
|
17
85
|
};
|
|
18
86
|
export {
|
|
19
|
-
|
|
87
|
+
R as ThemeProvider
|
|
20
88
|
};
|