@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
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,591 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { Context } from 'react';
|
|
4
|
+
import { FC } from 'react';
|
|
5
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
6
|
+
import { HTMLAttributes } from 'react';
|
|
7
|
+
import { HtmlHTMLAttributes } from 'react';
|
|
8
|
+
import { InputHTMLAttributes } from 'react';
|
|
9
|
+
import { PropsWithChildren } from 'react';
|
|
10
|
+
import { ReactNode } from 'react';
|
|
11
|
+
import { RefAttributes } from 'react';
|
|
12
|
+
import { SliderProps } from '@radix-ui/react-slider';
|
|
13
|
+
import { VariantProps } from 'class-variance-authority';
|
|
14
|
+
|
|
15
|
+
export declare const Alert: FC<AlertProps>;
|
|
16
|
+
|
|
17
|
+
export declare const AlertDialog: FC<AlertDialogProps>;
|
|
18
|
+
|
|
19
|
+
declare interface AlertDialogProps extends PropsWithChildren {
|
|
20
|
+
buttonCancelClassName?: string;
|
|
21
|
+
buttonCancelText?: string;
|
|
22
|
+
buttonConfirmClassName?: string;
|
|
23
|
+
buttonConfirmText?: string;
|
|
24
|
+
buttonText?: string;
|
|
25
|
+
buttonTriggerClassName?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
theme?: Theme;
|
|
29
|
+
title?: string;
|
|
30
|
+
onConfirm?: () => void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare interface AlertProps extends VariantProps<typeof alertVariants> {
|
|
34
|
+
dismissible?: boolean;
|
|
35
|
+
content: string | ReactNode;
|
|
36
|
+
isVisible?: boolean;
|
|
37
|
+
showCloseButton?: boolean;
|
|
38
|
+
theme?: Theme;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare const alertVariants: (props?: ({
|
|
42
|
+
type?: "sucess" | "info" | "warning" | "danger" | null | undefined;
|
|
43
|
+
isVisible?: boolean | null | undefined;
|
|
44
|
+
} & ClassProp) | undefined) => string;
|
|
45
|
+
|
|
46
|
+
export declare const Autocomplete: ForwardRefExoticComponent<AutocompleteProps & RefAttributes<HTMLInputElement>>;
|
|
47
|
+
|
|
48
|
+
declare interface AutocompleteProps extends VariantProps<typeof autocompleteVariants> {
|
|
49
|
+
autoComplete?: 'off';
|
|
50
|
+
className?: string;
|
|
51
|
+
label?: string;
|
|
52
|
+
labelClassName?: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
options: Option_2[];
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
placeHolderEmptyValues?: string | ReactNode;
|
|
57
|
+
placeHolderEmptyValuesClassName?: string;
|
|
58
|
+
theme?: Theme;
|
|
59
|
+
onChange(value: string): void;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare const autocompleteVariants: (props?: ({
|
|
63
|
+
variant?: "default" | null | undefined;
|
|
64
|
+
} & ClassProp) | undefined) => string;
|
|
65
|
+
|
|
66
|
+
declare interface BodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, PropsWithChildren, VariantProps<typeof bodyVariants> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare const bodyVariants: (props?: ClassProp | undefined) => string;
|
|
70
|
+
|
|
71
|
+
export declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
72
|
+
|
|
73
|
+
declare interface BreadcrumbProps extends VariantProps<typeof breadcrumbVariants>, HTMLAttributes<HTMLOListElement> {
|
|
74
|
+
steps: Step[];
|
|
75
|
+
wrapperClassName?: string;
|
|
76
|
+
theme?: Theme;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare const breadcrumbVariants: (props?: ({
|
|
80
|
+
size?: "base" | "sm" | "lg" | "xl" | null | undefined;
|
|
81
|
+
} & ClassProp) | undefined) => string;
|
|
82
|
+
|
|
83
|
+
export declare const Button: FC<ButtonProps>;
|
|
84
|
+
|
|
85
|
+
declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'>, VariantProps<typeof buttonVariants> {
|
|
86
|
+
asChild?: boolean;
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
theme?: Theme;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare const buttonVariants: (props?: ({
|
|
92
|
+
variant?: "danger" | "circle" | "text" | "primary" | "secondary" | null | undefined;
|
|
93
|
+
version?: "default" | "alternate" | null | undefined;
|
|
94
|
+
disabled?: boolean | null | undefined;
|
|
95
|
+
size?: "medium" | "large" | null | undefined;
|
|
96
|
+
} & ClassProp) | undefined) => string;
|
|
97
|
+
|
|
98
|
+
export declare const Card: FC<CardProps>;
|
|
99
|
+
|
|
100
|
+
declare interface CardProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants>, PropsWithChildren {
|
|
101
|
+
canHover?: boolean;
|
|
102
|
+
isActive?: boolean;
|
|
103
|
+
theme?: Theme;
|
|
104
|
+
wrapperClassName?: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare const cardVariants: (props?: ({
|
|
108
|
+
isActive?: boolean | null | undefined;
|
|
109
|
+
canHover?: boolean | null | undefined;
|
|
110
|
+
} & ClassProp) | undefined) => string;
|
|
111
|
+
|
|
112
|
+
export declare const Checkbox: FC<CheckboxProps>;
|
|
113
|
+
|
|
114
|
+
declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'checked'>, VariantProps<typeof checkboxVariants> {
|
|
115
|
+
ariaLabelledBy?: string;
|
|
116
|
+
className?: string;
|
|
117
|
+
defaultChecked?: boolean;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
id?: string;
|
|
120
|
+
label?: string;
|
|
121
|
+
labelClassName?: string;
|
|
122
|
+
name?: string;
|
|
123
|
+
theme?: Theme;
|
|
124
|
+
onChange?: () => void;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare const checkboxVariants: (props?: ({
|
|
128
|
+
variant?: "default" | null | undefined;
|
|
129
|
+
checked?: boolean | null | undefined;
|
|
130
|
+
} & ClassProp) | undefined) => string;
|
|
131
|
+
|
|
132
|
+
export declare const Divider: FC<HTMLAttributes<HTMLDivElement>>;
|
|
133
|
+
|
|
134
|
+
export declare const Dropdown: FC<DropdownProps>;
|
|
135
|
+
|
|
136
|
+
declare interface DropdownProps extends VariantProps<typeof dropdownVariants>, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
|
|
137
|
+
isLoading?: boolean;
|
|
138
|
+
label?: string;
|
|
139
|
+
labelClassName?: string;
|
|
140
|
+
options: Option_3[];
|
|
141
|
+
theme?: Theme;
|
|
142
|
+
value?: string;
|
|
143
|
+
onChange?: OnChangeFn;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare const dropdownVariants: (props?: ClassProp | undefined) => string;
|
|
147
|
+
|
|
148
|
+
declare interface FilterProps extends React.InputHTMLAttributes<HTMLInputElement>, PropsWithChildren {
|
|
149
|
+
placeholder?: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export declare const Footer: FC<FooterProps>;
|
|
153
|
+
|
|
154
|
+
declare interface FooterProps extends PropsWithChildren, VariantProps<typeof footerVariants> {
|
|
155
|
+
className?: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare const footerVariants: (props?: ClassProp | undefined) => string;
|
|
159
|
+
|
|
160
|
+
declare type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
161
|
+
|
|
162
|
+
declare interface HeadProps extends React.HTMLAttributes<HTMLTableSectionElement>, PropsWithChildren, VariantProps<typeof headVariants> {
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare const headVariants: (props?: ClassProp | undefined) => string;
|
|
166
|
+
|
|
167
|
+
export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
|
|
168
|
+
|
|
169
|
+
declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
170
|
+
error?: string;
|
|
171
|
+
label?: string | ReactNode;
|
|
172
|
+
labelClassName?: string;
|
|
173
|
+
theme?: Theme;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare const inputVariants: (props?: ({
|
|
177
|
+
variant?: "error" | "default" | null | undefined;
|
|
178
|
+
} & ClassProp) | undefined) => string;
|
|
179
|
+
|
|
180
|
+
export declare const Loading: FC<LoadingProps>;
|
|
181
|
+
|
|
182
|
+
declare type LoadingProps = InputHTMLAttributes<SVGSVGElement> & VariantProps<typeof loadingVariants> & {
|
|
183
|
+
theme?: Theme;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
declare const loadingVariants: (props?: ClassProp | undefined) => string;
|
|
187
|
+
|
|
188
|
+
export declare const Logo: FC<LogoProps>;
|
|
189
|
+
|
|
190
|
+
declare interface LogoProps extends PropsWithChildren, VariantProps<typeof logoVariants> {
|
|
191
|
+
className?: string;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
declare const logoVariants: (props?: ClassProp | undefined) => string;
|
|
195
|
+
|
|
196
|
+
export declare const Modal: FC<ModalProps> & {
|
|
197
|
+
Header: FC<ModalChildProps>;
|
|
198
|
+
Body: FC<ModalChildProps>;
|
|
199
|
+
Footer: FC<ModalChildProps>;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
declare type ModalChildProps = {
|
|
203
|
+
children: ReactNode;
|
|
204
|
+
className?: string;
|
|
205
|
+
asChild?: boolean;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
declare interface ModalProps extends PropsWithChildren, VariantProps<typeof modalVariants> {
|
|
209
|
+
buttonCloseClassName?: string;
|
|
210
|
+
className?: string;
|
|
211
|
+
isOpen?: boolean;
|
|
212
|
+
theme?: Theme;
|
|
213
|
+
onClose?: () => void;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
declare const modalVariants: (props?: ClassProp | undefined) => string;
|
|
217
|
+
|
|
218
|
+
export declare const Navigation: FC<NavigationProps> & NavigationChildrenProps;
|
|
219
|
+
|
|
220
|
+
declare type NavigationChildrenProps = {
|
|
221
|
+
NavigationGroup: FC<NavigationGroupProps>;
|
|
222
|
+
NavigationOption: FC<NavigationOptionProps>;
|
|
223
|
+
NavigationSeparator: FC<NavigationSeparatorProps>;
|
|
224
|
+
NavigationTitle: FC<NavigationTitleProps>;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export declare const NavigationGroup: FC<NavigationGroupProps>;
|
|
228
|
+
|
|
229
|
+
declare interface NavigationGroupProps extends PropsWithChildren, VariantProps<typeof navigationGroupsVariants>, Pick<HtmlHTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
230
|
+
title?: string;
|
|
231
|
+
titleClassName?: string;
|
|
232
|
+
isVisible?: boolean;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare const navigationGroupsVariants: (props?: ClassProp | undefined) => string;
|
|
236
|
+
|
|
237
|
+
export declare const NavigationOption: FC<NavigationOptionProps>;
|
|
238
|
+
|
|
239
|
+
declare type NavigationOption_2 = VariantProps<typeof navigationOptionVariants> & {
|
|
240
|
+
className?: string;
|
|
241
|
+
isVisible?: boolean;
|
|
242
|
+
isActive?: boolean;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
declare type NavigationOptionProps = NavigationOption_2 & ({
|
|
246
|
+
role: 'button';
|
|
247
|
+
children: ReactNode;
|
|
248
|
+
onClick: VoidFunction;
|
|
249
|
+
} | {
|
|
250
|
+
role?: never;
|
|
251
|
+
children: ReactNode;
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
declare const navigationOptionVariants: (props?: ({
|
|
255
|
+
isActive?: boolean | null | undefined;
|
|
256
|
+
} & ClassProp) | undefined) => string;
|
|
257
|
+
|
|
258
|
+
declare interface NavigationProps extends PropsWithChildren, VariantProps<typeof navigationVariants> {
|
|
259
|
+
className?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export declare const NavigationSeparator: FC<NavigationSeparatorProps>;
|
|
263
|
+
|
|
264
|
+
declare interface NavigationSeparatorProps extends Pick<HTMLAttributes<HTMLDivElement>, 'className' | 'style'>, VariantProps<typeof navigationSeparatorVariant> {
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
declare const navigationSeparatorVariant: (props?: ClassProp | undefined) => string;
|
|
268
|
+
|
|
269
|
+
declare interface NavigationTitleProps extends VariantProps<typeof navigationTitleVariants>, Pick<HtmlHTMLAttributes<HTMLHeadingElement>, 'className'> {
|
|
270
|
+
title: string;
|
|
271
|
+
className?: string;
|
|
272
|
+
isVisible?: boolean;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
declare const navigationTitleVariants: (props?: ClassProp | undefined) => string;
|
|
276
|
+
|
|
277
|
+
declare const navigationVariants: (props?: ClassProp | undefined) => string;
|
|
278
|
+
|
|
279
|
+
export declare const NumberInput: FC<NumberInputProps>;
|
|
280
|
+
|
|
281
|
+
declare interface NumberInputProps extends VariantProps<typeof numberInputVariants> {
|
|
282
|
+
className?: string;
|
|
283
|
+
init?: number;
|
|
284
|
+
label?: string | ReactNode;
|
|
285
|
+
max?: number;
|
|
286
|
+
min?: number;
|
|
287
|
+
name?: string;
|
|
288
|
+
value?: number;
|
|
289
|
+
theme?: Theme;
|
|
290
|
+
onChange?: ({ target: { value } }: {
|
|
291
|
+
target: {
|
|
292
|
+
value: number;
|
|
293
|
+
};
|
|
294
|
+
}) => void;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare const numberInputVariants: (props?: ClassProp | undefined) => string;
|
|
298
|
+
|
|
299
|
+
declare type OnChangeFn = (params: {
|
|
300
|
+
target: {
|
|
301
|
+
value: string;
|
|
302
|
+
name: string;
|
|
303
|
+
};
|
|
304
|
+
}) => void;
|
|
305
|
+
|
|
306
|
+
declare type Option_2 = {
|
|
307
|
+
value: string;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
declare type Option_3 = {
|
|
311
|
+
label: string | ReactNode;
|
|
312
|
+
leftIcon?: ReactNode | string;
|
|
313
|
+
value: string;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
export declare const ProgressBar: FC<ProgressBarProps>;
|
|
317
|
+
|
|
318
|
+
declare interface ProgressBarProps extends VariantProps<typeof progressBarVariants> {
|
|
319
|
+
className?: string;
|
|
320
|
+
label?: string;
|
|
321
|
+
percent: number;
|
|
322
|
+
theme?: Theme;
|
|
323
|
+
status?: 'success' | 'progress';
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
declare const progressBarVariants: (props?: ClassProp | undefined) => string;
|
|
327
|
+
|
|
328
|
+
export declare const Radio: FC<RadioProps>;
|
|
329
|
+
|
|
330
|
+
export declare const RadioCard: FC<RadioCardProps>;
|
|
331
|
+
|
|
332
|
+
export declare const RadioCardGroup: FC<RadioCardGroupProps>;
|
|
333
|
+
|
|
334
|
+
declare type RadioCardGroupProps = {
|
|
335
|
+
asChild?: boolean;
|
|
336
|
+
className?: string;
|
|
337
|
+
defaultChecked?: string;
|
|
338
|
+
direction?: 'row' | 'col';
|
|
339
|
+
name: string;
|
|
340
|
+
options: Omit<RadioCardProps, 'name' | 'checked' | 'defaultChecked'>[];
|
|
341
|
+
theme?: Theme;
|
|
342
|
+
wrapperClassName?: string;
|
|
343
|
+
onValueChange?: (value: string) => void;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
declare type RadioCardProps = Omit<CardProps, 'canHover' | 'isActive'> & Pick<RadioProps, 'name' | 'value' | 'checked' | 'onChange' | 'label' | 'disabled' | 'defaultChecked' | 'labelTextClassName'> & {
|
|
347
|
+
labelWrapperClassName?: string;
|
|
348
|
+
theme?: Theme;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
export declare const RadioGroup: FC<RadioGroupProps>;
|
|
352
|
+
|
|
353
|
+
declare interface RadioGroupProps {
|
|
354
|
+
asChild?: boolean;
|
|
355
|
+
className?: RadioProps['className'];
|
|
356
|
+
defaultChecked?: string;
|
|
357
|
+
direction?: 'row' | 'col';
|
|
358
|
+
label?: string | ReactNode;
|
|
359
|
+
name: string;
|
|
360
|
+
options: Omit<RadioProps, 'name' | 'checked' | 'defaultChecked'>[];
|
|
361
|
+
theme?: Theme;
|
|
362
|
+
wrapperClassName?: string;
|
|
363
|
+
onValueChange?: (value: string) => void;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'disabled'>, VariantProps<typeof radioVariants> {
|
|
367
|
+
checked?: boolean;
|
|
368
|
+
defaultChecked?: boolean;
|
|
369
|
+
disabled?: boolean;
|
|
370
|
+
label?: string | ReactNode;
|
|
371
|
+
labelTextClassName?: string;
|
|
372
|
+
name: string;
|
|
373
|
+
value: string;
|
|
374
|
+
wrapperClassName?: string;
|
|
375
|
+
theme?: Theme;
|
|
376
|
+
onChange?: (value: string) => void;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
declare const radioVariants: (props?: ({
|
|
380
|
+
disabled?: boolean | null | undefined;
|
|
381
|
+
checked?: boolean | null | undefined;
|
|
382
|
+
} & ClassProp) | undefined) => string;
|
|
383
|
+
|
|
384
|
+
declare const Range_2: FC<RangeProps>;
|
|
385
|
+
export { Range_2 as Range }
|
|
386
|
+
|
|
387
|
+
declare interface RangeProps extends VariantProps<typeof rangeVariants> {
|
|
388
|
+
className?: string;
|
|
389
|
+
defaultValue?: SliderProps['defaultValue'];
|
|
390
|
+
label?: string;
|
|
391
|
+
max?: SliderProps['max'];
|
|
392
|
+
min?: SliderProps['min'];
|
|
393
|
+
name?: string;
|
|
394
|
+
showValue?: boolean;
|
|
395
|
+
size?: 'sm' | 'md' | 'lg';
|
|
396
|
+
theme?: Theme;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare const rangeVariants: (props?: ClassProp | undefined) => string;
|
|
400
|
+
|
|
401
|
+
declare interface RowProps extends React.HTMLAttributes<HTMLTableRowElement>, PropsWithChildren, VariantProps<typeof rowVariants> {
|
|
402
|
+
width?: string;
|
|
403
|
+
isSelected?: boolean;
|
|
404
|
+
onSelect?: () => void;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
declare const rowVariants: (props?: ({
|
|
408
|
+
isSelected?: boolean | null | undefined;
|
|
409
|
+
} & ClassProp) | undefined) => string;
|
|
410
|
+
|
|
411
|
+
export declare const Sidebar: FC<SidebarProps> & SidebarChildrenProps;
|
|
412
|
+
|
|
413
|
+
declare type SidebarChildrenProps = {
|
|
414
|
+
Footer: FC<FooterProps>;
|
|
415
|
+
Logo: FC<LogoProps>;
|
|
416
|
+
Navigation: FC<NavigationProps>;
|
|
417
|
+
NavigationGroup: FC<NavigationGroupProps>;
|
|
418
|
+
NavigationOption: FC<NavigationOptionProps>;
|
|
419
|
+
NavigationSeparator: FC<NavigationSeparatorProps>;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
declare interface SidebarProps extends VariantProps<typeof wrapperSiderbarVariants>, PropsWithChildren {
|
|
423
|
+
wrapperClassName?: string;
|
|
424
|
+
minWith?: number;
|
|
425
|
+
maxWith?: number;
|
|
426
|
+
canResize?: boolean;
|
|
427
|
+
theme?: Theme;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export declare const Slider: FC<SliderProps_2>;
|
|
431
|
+
|
|
432
|
+
declare interface SliderProps_2 extends VariantProps<typeof sliderVariants> {
|
|
433
|
+
className?: string;
|
|
434
|
+
defaultValue?: SliderProps['defaultValue'];
|
|
435
|
+
label?: string;
|
|
436
|
+
max?: SliderProps['max'];
|
|
437
|
+
min?: SliderProps['min'];
|
|
438
|
+
name?: string;
|
|
439
|
+
showValue?: boolean;
|
|
440
|
+
size?: 'sm' | 'md' | 'lg';
|
|
441
|
+
theme?: Theme;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
declare const sliderVariants: (props?: ClassProp | undefined) => string;
|
|
445
|
+
|
|
446
|
+
declare type Step = {
|
|
447
|
+
label: string;
|
|
448
|
+
to?: string;
|
|
449
|
+
target?: '_self' | '_blank';
|
|
450
|
+
isActive?: boolean;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
export declare const Switch: FC<SwitchProps>;
|
|
454
|
+
|
|
455
|
+
declare interface SwitchProps extends VariantProps<typeof switchVariants> {
|
|
456
|
+
alignment?: 'horizontal' | 'vertical';
|
|
457
|
+
className?: string;
|
|
458
|
+
defaultChecked?: boolean;
|
|
459
|
+
label?: string;
|
|
460
|
+
name?: string;
|
|
461
|
+
theme?: Theme;
|
|
462
|
+
thumbClassName?: string;
|
|
463
|
+
value?: boolean;
|
|
464
|
+
onChange?: (e: boolean) => void;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
declare const switchVariants: (props?: ClassProp | undefined) => string;
|
|
468
|
+
|
|
469
|
+
export declare const Table: FC<TableProps> & {
|
|
470
|
+
Head: FC<HeadProps>;
|
|
471
|
+
Row: FC<RowProps>;
|
|
472
|
+
Filter: FC<FilterProps>;
|
|
473
|
+
Body: FC<BodyProps>;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
declare interface TableProps extends React.HTMLAttributes<HTMLTableElement>, PropsWithChildren, VariantProps<typeof tableVariants> {
|
|
477
|
+
theme?: Theme;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
declare const tableVariants: (props?: ClassProp | undefined) => string;
|
|
481
|
+
|
|
482
|
+
export declare const Tag: FC<TagProps>;
|
|
483
|
+
|
|
484
|
+
declare type TagProps = {
|
|
485
|
+
color?: 'gray' | 'cyan' | 'gold' | 'green' | 'light blue' | 'lime' | 'pink' | 'purple' | 'emerald' | 'fuscia' | 'indigo' | 'light-orange' | 'dark-sky-blue' | 'mistery';
|
|
486
|
+
id: string | number;
|
|
487
|
+
label: string;
|
|
488
|
+
rightIcon?: ReactNode;
|
|
489
|
+
leftIcon?: ReactNode;
|
|
490
|
+
className?: string;
|
|
491
|
+
'data-value'?: string;
|
|
492
|
+
isSelected?: boolean;
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
export declare const TagSelect: FC<TagSelectProps>;
|
|
496
|
+
|
|
497
|
+
declare interface TagSelectProps extends VariantProps<typeof tagSelectVariants> {
|
|
498
|
+
label?: string;
|
|
499
|
+
options: TagProps[];
|
|
500
|
+
name?: string;
|
|
501
|
+
placeholder?: string;
|
|
502
|
+
labelClassName?: string;
|
|
503
|
+
wrapperClassName?: string;
|
|
504
|
+
multiselect?: boolean;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
declare const tagSelectVariants: (props?: ClassProp | undefined) => string;
|
|
508
|
+
|
|
509
|
+
export declare const TextArea: FC<TextAreaProps>;
|
|
510
|
+
|
|
511
|
+
declare interface TextAreaProps extends InputHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
|
|
512
|
+
rows?: number;
|
|
513
|
+
label?: string | ReactNode;
|
|
514
|
+
name?: string;
|
|
515
|
+
initialValue?: string;
|
|
516
|
+
theme?: Theme;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
declare const textAreaVariants: (props?: ClassProp | undefined) => string;
|
|
520
|
+
|
|
521
|
+
declare type Theme = 'kubefirst' | 'colony' | 'civo' | 'kubefirst-dark' | 'colony-dark' | 'civo-dark' | undefined;
|
|
522
|
+
|
|
523
|
+
export declare const ThemeContext: Context<ThemeContextType>;
|
|
524
|
+
|
|
525
|
+
export declare type ThemeContextProps = PropsWithChildren & {
|
|
526
|
+
theme?: ThemeContextType['theme'];
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
export declare type ThemeContextType = {
|
|
530
|
+
theme: Theme;
|
|
531
|
+
setTheme: (theme: Theme) => void;
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
declare type ThemeProps = {
|
|
535
|
+
theme?: Theme;
|
|
536
|
+
setTheme?: (theme: Theme) => void;
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
export declare const ThemeProvider: FC<ThemeContextProps>;
|
|
540
|
+
|
|
541
|
+
export declare const Toast: FC<ToastProps>;
|
|
542
|
+
|
|
543
|
+
declare interface ToastProps extends PropsWithChildren, VariantProps<typeof toastVariants> {
|
|
544
|
+
className?: string;
|
|
545
|
+
closeButtonClassName?: string;
|
|
546
|
+
description: string | ReactNode;
|
|
547
|
+
descriptionClassName?: string;
|
|
548
|
+
duration?: number;
|
|
549
|
+
open: boolean;
|
|
550
|
+
showCloseButton?: boolean;
|
|
551
|
+
theme?: Theme;
|
|
552
|
+
title: string | ReactNode;
|
|
553
|
+
titleClassName?: string;
|
|
554
|
+
setOpen: (open: boolean) => void;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
declare const toastVariants: (props?: ClassProp | undefined) => string;
|
|
558
|
+
|
|
559
|
+
export declare const Tooltip: FC<TooltipProps>;
|
|
560
|
+
|
|
561
|
+
declare interface TooltipProps extends PropsWithChildren, VariantProps<typeof tooltipVariants> {
|
|
562
|
+
content: ReactNode | string;
|
|
563
|
+
className?: string;
|
|
564
|
+
wrapperClassName?: string;
|
|
565
|
+
theme?: Theme;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
declare const tooltipVariants: (props?: ({
|
|
569
|
+
position?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
570
|
+
} & ClassProp) | undefined) => string;
|
|
571
|
+
|
|
572
|
+
export declare const Typography: FC<TypographyProps>;
|
|
573
|
+
|
|
574
|
+
declare interface TypographyProps extends InputHTMLAttributes<HTMLParagraphElement>, VariantProps<typeof typographyVariants> {
|
|
575
|
+
asChild?: boolean;
|
|
576
|
+
children: ReactNode;
|
|
577
|
+
component?: HeadingTag | 'p' | 'span';
|
|
578
|
+
theme?: Theme;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
declare const typographyVariants: (props?: ({
|
|
582
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "tooltip" | "subtitle1" | "subtitle2" | "subtitle3" | "labelLarge" | "labelMedium" | "labelSmall" | "buttonSmall" | "body1" | "body2" | "body3" | null | undefined;
|
|
583
|
+
} & ClassProp) | undefined) => string;
|
|
584
|
+
|
|
585
|
+
export declare const useTheme: () => ThemeProps;
|
|
586
|
+
|
|
587
|
+
export declare const useToggle: (initialState?: boolean) => [boolean, (value?: boolean) => void];
|
|
588
|
+
|
|
589
|
+
declare const wrapperSiderbarVariants: (props?: ClassProp | undefined) => string;
|
|
590
|
+
|
|
591
|
+
export { }
|