@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,49 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { R as
|
|
3
|
-
import p, { forwardRef as d, useId as
|
|
4
|
-
import "../../
|
|
5
|
-
import {
|
|
6
|
-
import "../../
|
|
7
|
-
import { cn as h } from "../../utils/index.js";
|
|
8
|
-
import { labelVariants as L, buttonVariants as P, numberInputVariants as W } from "./NumberInput.variants.js";
|
|
9
|
-
import { P as a } from "../../index-D68N8v8R.js";
|
|
1
|
+
import { jsxs as m, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { R as O } from "../../index-CWKdynYu.js";
|
|
3
|
+
import p, { forwardRef as d, useId as N, useCallback as w } from "react";
|
|
4
|
+
import { cn as y } from "../../utils/index.js";
|
|
5
|
+
import { labelVariants as z, buttonVariants as j, numberInputVariants as _ } from "./NumberInput.variants.js";
|
|
6
|
+
import { P as s } from "../../index-C5psggHV.js";
|
|
10
7
|
function v() {
|
|
11
|
-
return v = Object.assign || function(
|
|
12
|
-
for (var
|
|
13
|
-
var r = arguments[
|
|
14
|
-
for (var
|
|
15
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
8
|
+
return v = Object.assign || function(t) {
|
|
9
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
10
|
+
var r = arguments[i];
|
|
11
|
+
for (var e in r)
|
|
12
|
+
Object.prototype.hasOwnProperty.call(r, e) && (t[e] = r[e]);
|
|
16
13
|
}
|
|
17
|
-
return
|
|
14
|
+
return t;
|
|
18
15
|
}, v.apply(this, arguments);
|
|
19
16
|
}
|
|
20
|
-
function
|
|
21
|
-
if (
|
|
22
|
-
var r =
|
|
17
|
+
function E(t, i) {
|
|
18
|
+
if (t == null) return {};
|
|
19
|
+
var r = $(t, i), e, n;
|
|
23
20
|
if (Object.getOwnPropertySymbols) {
|
|
24
|
-
var
|
|
25
|
-
for (n = 0; n <
|
|
26
|
-
|
|
21
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
22
|
+
for (n = 0; n < o.length; n++)
|
|
23
|
+
e = o[n], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (r[e] = t[e]);
|
|
27
24
|
}
|
|
28
25
|
return r;
|
|
29
26
|
}
|
|
30
|
-
function
|
|
31
|
-
if (
|
|
32
|
-
var r = {},
|
|
33
|
-
for (
|
|
34
|
-
n =
|
|
27
|
+
function $(t, i) {
|
|
28
|
+
if (t == null) return {};
|
|
29
|
+
var r = {}, e = Object.keys(t), n, o;
|
|
30
|
+
for (o = 0; o < e.length; o++)
|
|
31
|
+
n = e[o], !(i.indexOf(n) >= 0) && (r[n] = t[n]);
|
|
35
32
|
return r;
|
|
36
33
|
}
|
|
37
|
-
var
|
|
38
|
-
var r =
|
|
34
|
+
var h = d(function(t, i) {
|
|
35
|
+
var r = t.color, e = r === void 0 ? "currentColor" : r, n = t.size, o = n === void 0 ? 24 : n, f = E(t, ["color", "size"]);
|
|
39
36
|
return /* @__PURE__ */ p.createElement("svg", v({
|
|
40
|
-
ref:
|
|
37
|
+
ref: i,
|
|
41
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
-
width:
|
|
43
|
-
height:
|
|
39
|
+
width: o,
|
|
40
|
+
height: o,
|
|
44
41
|
viewBox: "0 0 24 24",
|
|
45
42
|
fill: "none",
|
|
46
|
-
stroke:
|
|
43
|
+
stroke: e,
|
|
47
44
|
strokeWidth: "2",
|
|
48
45
|
strokeLinecap: "round",
|
|
49
46
|
strokeLinejoin: "round"
|
|
@@ -54,48 +51,48 @@ var O = d(function(e, o) {
|
|
|
54
51
|
y2: "12"
|
|
55
52
|
}));
|
|
56
53
|
});
|
|
57
|
-
|
|
58
|
-
color:
|
|
59
|
-
size:
|
|
54
|
+
h.propTypes = {
|
|
55
|
+
color: s.string,
|
|
56
|
+
size: s.oneOfType([s.string, s.number])
|
|
60
57
|
};
|
|
61
|
-
|
|
58
|
+
h.displayName = "Minus";
|
|
62
59
|
function b() {
|
|
63
|
-
return b = Object.assign || function(
|
|
64
|
-
for (var
|
|
65
|
-
var r = arguments[
|
|
66
|
-
for (var
|
|
67
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
60
|
+
return b = Object.assign || function(t) {
|
|
61
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
62
|
+
var r = arguments[i];
|
|
63
|
+
for (var e in r)
|
|
64
|
+
Object.prototype.hasOwnProperty.call(r, e) && (t[e] = r[e]);
|
|
68
65
|
}
|
|
69
|
-
return
|
|
66
|
+
return t;
|
|
70
67
|
}, b.apply(this, arguments);
|
|
71
68
|
}
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
74
|
-
var r =
|
|
69
|
+
function L(t, i) {
|
|
70
|
+
if (t == null) return {};
|
|
71
|
+
var r = W(t, i), e, n;
|
|
75
72
|
if (Object.getOwnPropertySymbols) {
|
|
76
|
-
var
|
|
77
|
-
for (n = 0; n <
|
|
78
|
-
|
|
73
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
74
|
+
for (n = 0; n < o.length; n++)
|
|
75
|
+
e = o[n], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (r[e] = t[e]);
|
|
79
76
|
}
|
|
80
77
|
return r;
|
|
81
78
|
}
|
|
82
|
-
function
|
|
83
|
-
if (
|
|
84
|
-
var r = {},
|
|
85
|
-
for (
|
|
86
|
-
n =
|
|
79
|
+
function W(t, i) {
|
|
80
|
+
if (t == null) return {};
|
|
81
|
+
var r = {}, e = Object.keys(t), n, o;
|
|
82
|
+
for (o = 0; o < e.length; o++)
|
|
83
|
+
n = e[o], !(i.indexOf(n) >= 0) && (r[n] = t[n]);
|
|
87
84
|
return r;
|
|
88
85
|
}
|
|
89
|
-
var g = d(function(
|
|
90
|
-
var r =
|
|
86
|
+
var g = d(function(t, i) {
|
|
87
|
+
var r = t.color, e = r === void 0 ? "currentColor" : r, n = t.size, o = n === void 0 ? 24 : n, f = L(t, ["color", "size"]);
|
|
91
88
|
return /* @__PURE__ */ p.createElement("svg", b({
|
|
92
|
-
ref:
|
|
89
|
+
ref: i,
|
|
93
90
|
xmlns: "http://www.w3.org/2000/svg",
|
|
94
|
-
width:
|
|
95
|
-
height:
|
|
91
|
+
width: o,
|
|
92
|
+
height: o,
|
|
96
93
|
viewBox: "0 0 24 24",
|
|
97
94
|
fill: "none",
|
|
98
|
-
stroke:
|
|
95
|
+
stroke: e,
|
|
99
96
|
strokeWidth: "2",
|
|
100
97
|
strokeLinecap: "round",
|
|
101
98
|
strokeLinejoin: "round"
|
|
@@ -112,81 +109,64 @@ var g = d(function(e, o) {
|
|
|
112
109
|
}));
|
|
113
110
|
});
|
|
114
111
|
g.propTypes = {
|
|
115
|
-
color:
|
|
116
|
-
size:
|
|
112
|
+
color: s.string,
|
|
113
|
+
size: s.oneOfType([s.string, s.number])
|
|
117
114
|
};
|
|
118
115
|
g.displayName = "Plus";
|
|
119
|
-
const
|
|
116
|
+
const S = d(
|
|
120
117
|
({
|
|
121
|
-
className:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
onChange:
|
|
129
|
-
},
|
|
130
|
-
const
|
|
131
|
-
let
|
|
132
|
-
|
|
133
|
-
}, [
|
|
134
|
-
let
|
|
135
|
-
|
|
136
|
-
}, [
|
|
137
|
-
return /* @__PURE__ */
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
htmlFor: i ?? N,
|
|
142
|
-
className: h(
|
|
143
|
-
L({
|
|
144
|
-
theme: m
|
|
145
|
-
})
|
|
146
|
-
),
|
|
147
|
-
children: r
|
|
148
|
-
}
|
|
149
|
-
) : null,
|
|
150
|
-
/* @__PURE__ */ y("div", { className: "flex items-center", role: "presentation", children: [
|
|
151
|
-
/* @__PURE__ */ y(
|
|
118
|
+
className: t,
|
|
119
|
+
label: i,
|
|
120
|
+
max: r = -1 / 0,
|
|
121
|
+
min: e = 1 / 0,
|
|
122
|
+
name: n,
|
|
123
|
+
theme: o,
|
|
124
|
+
value: f,
|
|
125
|
+
onChange: l
|
|
126
|
+
}, x) => {
|
|
127
|
+
const P = N(), a = f ?? 0, k = w(() => {
|
|
128
|
+
let c = 0;
|
|
129
|
+
e === 1 / 0 ? c = a - 1 : c = Math.max(e, a - 1), l == null || l({ target: { value: c } });
|
|
130
|
+
}, [a, e, l]), I = w(() => {
|
|
131
|
+
let c = 0;
|
|
132
|
+
r === -1 / 0 ? c = a + 1 : c = Math.min(r, a + 1), l == null || l({ target: { value: c } });
|
|
133
|
+
}, [a, r, l]);
|
|
134
|
+
return /* @__PURE__ */ m("div", { className: "flex flex-col gap-1", "data-theme": o, children: [
|
|
135
|
+
i ? /* @__PURE__ */ u("label", { htmlFor: n ?? P, className: y(z()), children: i }) : null,
|
|
136
|
+
/* @__PURE__ */ m("div", { className: "flex items-center", role: "presentation", children: [
|
|
137
|
+
/* @__PURE__ */ m(
|
|
152
138
|
"button",
|
|
153
139
|
{
|
|
154
140
|
type: "button",
|
|
155
|
-
onClick:
|
|
156
|
-
className:
|
|
157
|
-
P({ theme: m, button: "rigth" })
|
|
158
|
-
),
|
|
141
|
+
onClick: k,
|
|
142
|
+
className: y(j({ button: "rigth" })),
|
|
159
143
|
children: [
|
|
160
|
-
/* @__PURE__ */ u(
|
|
161
|
-
/* @__PURE__ */ u(
|
|
144
|
+
/* @__PURE__ */ u(h, { className: "w-4 h-4" }),
|
|
145
|
+
/* @__PURE__ */ u(O, { children: "Decrement" })
|
|
162
146
|
]
|
|
163
147
|
}
|
|
164
148
|
),
|
|
165
149
|
/* @__PURE__ */ u(
|
|
166
150
|
"input",
|
|
167
151
|
{
|
|
168
|
-
ref:
|
|
152
|
+
ref: x,
|
|
169
153
|
type: "number",
|
|
170
|
-
value:
|
|
171
|
-
name:
|
|
172
|
-
className:
|
|
173
|
-
W({ className: e, theme: m })
|
|
174
|
-
),
|
|
154
|
+
value: a,
|
|
155
|
+
name: n,
|
|
156
|
+
className: y(_({ className: t })),
|
|
175
157
|
readOnly: !0,
|
|
176
|
-
"aria-label":
|
|
158
|
+
"aria-label": typeof i == "string" ? i : "number input"
|
|
177
159
|
}
|
|
178
160
|
),
|
|
179
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ m(
|
|
180
162
|
"button",
|
|
181
163
|
{
|
|
182
164
|
type: "button",
|
|
183
|
-
onClick:
|
|
184
|
-
className:
|
|
185
|
-
P({ theme: m, button: "left" })
|
|
186
|
-
),
|
|
165
|
+
onClick: I,
|
|
166
|
+
className: y(j({ button: "left" })),
|
|
187
167
|
children: [
|
|
188
168
|
/* @__PURE__ */ u(g, { className: "w-4 h-4" }),
|
|
189
|
-
/* @__PURE__ */ u(
|
|
169
|
+
/* @__PURE__ */ u(O, { children: "Increment" })
|
|
190
170
|
]
|
|
191
171
|
}
|
|
192
172
|
)
|
|
@@ -195,5 +175,5 @@ const Q = d(
|
|
|
195
175
|
}
|
|
196
176
|
);
|
|
197
177
|
export {
|
|
198
|
-
|
|
178
|
+
S as NumberInput
|
|
199
179
|
};
|
|
@@ -1,71 +1,50 @@
|
|
|
1
1
|
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
2
|
+
const r = e([
|
|
3
|
+
"[&::-webkit-inner-spin-button]:appearance-none",
|
|
4
|
+
"[&::-webkit-outer-spin-button]:appearance-none",
|
|
5
|
+
"[-moz-appearance:textfield]",
|
|
6
|
+
"appearance-none",
|
|
7
|
+
"border",
|
|
8
|
+
"border-x-0",
|
|
9
|
+
"focus-visible:outline-none",
|
|
10
|
+
"focus-visible:ring-transparent",
|
|
11
|
+
"h-9",
|
|
12
|
+
"max-w-16",
|
|
13
|
+
"text-right",
|
|
14
|
+
"px-3",
|
|
15
|
+
"border-gray-200"
|
|
16
|
+
]), n = e(
|
|
3
17
|
[
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
18
|
+
"h-9",
|
|
19
|
+
"w-9",
|
|
20
|
+
"flex",
|
|
21
|
+
"items-center",
|
|
22
|
+
"justify-center",
|
|
8
23
|
"border",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"p-1",
|
|
13
|
-
"text-center"
|
|
24
|
+
"text-slate-400",
|
|
25
|
+
"border-gray-200",
|
|
26
|
+
"cursor-pointer"
|
|
14
27
|
],
|
|
15
28
|
{
|
|
16
29
|
variants: {
|
|
17
|
-
theme: {
|
|
18
|
-
colony: ["border-red-700", "text-red-700"],
|
|
19
|
-
kubefirst: ["border-kubefirst-primary", "text-kubefirst-primary"],
|
|
20
|
-
civo: ""
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
theme: "kubefirst"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
), a = e(
|
|
28
|
-
["p-2", "items-center", "justify-center", "border"],
|
|
29
|
-
{
|
|
30
|
-
variants: {
|
|
31
|
-
theme: {
|
|
32
|
-
colony: ["border-red-700", "text-red-700", "hover:bg-red-50"],
|
|
33
|
-
kubefirst: [
|
|
34
|
-
"border-kubefirst-primary",
|
|
35
|
-
"text-kubefirst-primary",
|
|
36
|
-
"hover:text-kubefirst-secondary",
|
|
37
|
-
"hover:border-kubefirst-secondary",
|
|
38
|
-
"hover:bg-purple-100"
|
|
39
|
-
],
|
|
40
|
-
civo: ""
|
|
41
|
-
},
|
|
42
30
|
button: {
|
|
43
|
-
left: ["rounded-e
|
|
44
|
-
rigth: ["rounded-s
|
|
31
|
+
left: ["rounded-e"],
|
|
32
|
+
rigth: ["rounded-s"]
|
|
45
33
|
}
|
|
46
|
-
},
|
|
47
|
-
defaultVariants: {
|
|
48
|
-
theme: "kubefirst"
|
|
49
34
|
}
|
|
50
35
|
}
|
|
51
|
-
),
|
|
36
|
+
), a = e(["cursor-pointer"], {
|
|
52
37
|
variants: {
|
|
53
38
|
variant: {
|
|
54
39
|
default: ""
|
|
55
|
-
},
|
|
56
|
-
theme: {
|
|
57
|
-
kubefirst: "",
|
|
58
|
-
colony: "",
|
|
59
|
-
civo: ""
|
|
60
40
|
}
|
|
61
41
|
},
|
|
62
42
|
defaultVariants: {
|
|
63
|
-
variant: "default"
|
|
64
|
-
theme: "kubefirst"
|
|
43
|
+
variant: "default"
|
|
65
44
|
}
|
|
66
45
|
});
|
|
67
46
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
47
|
+
n as buttonVariants,
|
|
48
|
+
a as labelVariants,
|
|
49
|
+
r as numberInputVariants
|
|
71
50
|
};
|
|
@@ -1,37 +1,30 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "../../contexts/theme.context.js";
|
|
3
|
-
import { useTheme as l } from "../../contexts/theme.hook.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "../../js.cookie-OLEfuq_g.js";
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
6
2
|
import { cn as o } from "../../utils/index.js";
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
3
|
+
import { progressBarProgress as l, progressBarVariants as d } from "./ProgressBar.variants.js";
|
|
4
|
+
const f = ({
|
|
9
5
|
label: r,
|
|
10
|
-
theme:
|
|
6
|
+
theme: e,
|
|
11
7
|
percent: s,
|
|
12
|
-
status:
|
|
13
|
-
}) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
) })
|
|
33
|
-
] });
|
|
34
|
-
};
|
|
8
|
+
status: t
|
|
9
|
+
}) => /* @__PURE__ */ i("div", { className: "w-full", "data-theme": e, children: [
|
|
10
|
+
/* @__PURE__ */ i("div", { className: o("flex", r ? "justify-between" : "justify-end"), children: [
|
|
11
|
+
r ? /* @__PURE__ */ a("label", { className: "font-semibold", children: r }) : null,
|
|
12
|
+
/* @__PURE__ */ i("span", { className: "font-semibold", children: [
|
|
13
|
+
s,
|
|
14
|
+
"%"
|
|
15
|
+
] })
|
|
16
|
+
] }),
|
|
17
|
+
/* @__PURE__ */ a("div", { className: o(d()), children: /* @__PURE__ */ a(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: o(
|
|
21
|
+
l({ status: t }),
|
|
22
|
+
s > 0 && s < 99 ? "transition-width duration-500" : "transition-colors duration-0"
|
|
23
|
+
),
|
|
24
|
+
style: { width: `${s}%` }
|
|
25
|
+
}
|
|
26
|
+
) })
|
|
27
|
+
] });
|
|
35
28
|
export {
|
|
36
|
-
|
|
29
|
+
f as ProgressBar
|
|
37
30
|
};
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
import { c as s } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
civo: ""
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
defaultVariants: {
|
|
13
|
-
theme: "kubefirst"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
), r = s(
|
|
2
|
+
const a = s([
|
|
3
|
+
"h-2",
|
|
4
|
+
"rounded-full",
|
|
5
|
+
"overflow-hidden",
|
|
6
|
+
"mt-4",
|
|
7
|
+
"bg-zinc-200"
|
|
8
|
+
]), t = s(
|
|
17
9
|
["h-full", "bg-[length:100%_100%]", "animate-gradient-move"],
|
|
18
10
|
{
|
|
19
11
|
variants: {
|
|
20
|
-
theme: {
|
|
21
|
-
kubefirst: "",
|
|
22
|
-
colony: "",
|
|
23
|
-
civo: ""
|
|
24
|
-
},
|
|
25
12
|
status: {
|
|
26
13
|
success: "",
|
|
27
14
|
progress: "",
|
|
@@ -31,27 +18,19 @@ const t = s(
|
|
|
31
18
|
compoundVariants: [
|
|
32
19
|
{
|
|
33
20
|
status: "progress",
|
|
34
|
-
|
|
35
|
-
class: ["bg-kubefirst-gradient"]
|
|
21
|
+
class: ["bg-linear-to-r from-[#81e2b4] to-kubefirst-primary"]
|
|
36
22
|
},
|
|
37
23
|
{
|
|
38
24
|
status: "success",
|
|
39
|
-
theme: "kubefirst",
|
|
40
25
|
class: ["bg-[#81E2B4]"]
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
status: "progress",
|
|
44
|
-
theme: "colony",
|
|
45
|
-
class: ["bg-kubefirst-gradient"]
|
|
46
26
|
}
|
|
47
27
|
],
|
|
48
28
|
defaultVariants: {
|
|
49
|
-
theme: "kubefirst",
|
|
50
29
|
status: "success"
|
|
51
30
|
}
|
|
52
31
|
}
|
|
53
32
|
);
|
|
54
33
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
34
|
+
t as progressBarProgress,
|
|
35
|
+
a as progressBarVariants
|
|
57
36
|
};
|
|
@@ -1,61 +1,78 @@
|
|
|
1
1
|
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as x, useId as
|
|
3
|
-
import "../../
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { cn as F } from "../../utils/index.js";
|
|
7
|
-
import { radioVariants as R } from "./Radio.variants.js";
|
|
8
|
-
const q = x(
|
|
2
|
+
import { forwardRef as x, useId as V, useCallback as h } from "react";
|
|
3
|
+
import { cn as e } from "../../utils/index.js";
|
|
4
|
+
import { radioVariants as j, labelRadioVariants as w, wrapperRadioVariants as F } from "./Radio.variants.js";
|
|
5
|
+
const z = x(
|
|
9
6
|
({
|
|
10
|
-
checked:
|
|
11
|
-
className:
|
|
12
|
-
defaultChecked:
|
|
7
|
+
checked: i = !1,
|
|
8
|
+
className: m,
|
|
9
|
+
defaultChecked: l,
|
|
10
|
+
disabled: s,
|
|
13
11
|
label: c,
|
|
12
|
+
labelTextClassName: p,
|
|
14
13
|
name: t,
|
|
15
|
-
theme:
|
|
16
|
-
value:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
theme: f,
|
|
15
|
+
value: o,
|
|
16
|
+
wrapperClassName: n,
|
|
17
|
+
onChange: a
|
|
18
|
+
}, N) => {
|
|
19
|
+
const d = `${V()}-${t}`, R = h(
|
|
20
|
+
(b) => {
|
|
21
|
+
a == null || a(b);
|
|
22
22
|
},
|
|
23
|
-
[
|
|
23
|
+
[a]
|
|
24
24
|
);
|
|
25
25
|
return /* @__PURE__ */ u(
|
|
26
26
|
"label",
|
|
27
27
|
{
|
|
28
|
-
htmlFor:
|
|
29
|
-
className:
|
|
28
|
+
htmlFor: d,
|
|
29
|
+
className: e(
|
|
30
|
+
F({
|
|
31
|
+
className: n,
|
|
32
|
+
disabled: s || !1
|
|
33
|
+
})
|
|
34
|
+
),
|
|
35
|
+
"data-theme": f,
|
|
30
36
|
children: [
|
|
31
37
|
/* @__PURE__ */ r(
|
|
32
38
|
"input",
|
|
33
39
|
{
|
|
34
|
-
ref:
|
|
35
|
-
id:
|
|
40
|
+
ref: N,
|
|
41
|
+
id: d,
|
|
36
42
|
type: "radio",
|
|
37
43
|
name: t,
|
|
38
|
-
value:
|
|
39
|
-
checked:
|
|
40
|
-
defaultChecked:
|
|
44
|
+
value: o,
|
|
45
|
+
checked: i,
|
|
46
|
+
defaultChecked: l,
|
|
41
47
|
className: "hidden peer",
|
|
42
|
-
onChange: () =>
|
|
48
|
+
onChange: () => R(o),
|
|
49
|
+
disabled: s
|
|
43
50
|
}
|
|
44
51
|
),
|
|
45
52
|
/* @__PURE__ */ r(
|
|
46
53
|
"span",
|
|
47
54
|
{
|
|
48
|
-
className:
|
|
49
|
-
|
|
55
|
+
className: e(
|
|
56
|
+
j({
|
|
57
|
+
className: m,
|
|
58
|
+
disabled: s || !1,
|
|
59
|
+
checked: i || l || !1
|
|
60
|
+
})
|
|
50
61
|
)
|
|
51
62
|
}
|
|
52
63
|
),
|
|
53
|
-
/* @__PURE__ */ r(
|
|
64
|
+
/* @__PURE__ */ r(
|
|
65
|
+
"span",
|
|
66
|
+
{
|
|
67
|
+
className: e(w({ className: p })),
|
|
68
|
+
children: c
|
|
69
|
+
}
|
|
70
|
+
)
|
|
54
71
|
]
|
|
55
72
|
}
|
|
56
73
|
);
|
|
57
74
|
}
|
|
58
75
|
);
|
|
59
76
|
export {
|
|
60
|
-
|
|
77
|
+
z as Radio
|
|
61
78
|
};
|