@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,18 +1,15 @@
|
|
|
1
1
|
import { jsxs as S, jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import j, { forwardRef as _, useId as A, useCallback as H } from "react";
|
|
4
|
-
import { u as K } from "../../index-
|
|
5
|
-
import {
|
|
6
|
-
import { u as q, a as F } from "../../index-
|
|
7
|
-
import { P as V } from "../../index-
|
|
8
|
-
import { P as
|
|
9
|
-
import "../../contexts/theme.context.js";
|
|
10
|
-
import { useTheme as X } from "../../contexts/theme.hook.js";
|
|
11
|
-
import "../../js.cookie-OLEfuq_g.js";
|
|
4
|
+
import { u as K } from "../../index-Bk324h27.js";
|
|
5
|
+
import { a as W, c as $, b as I } from "../../index-bYyfdsls.js";
|
|
6
|
+
import { u as q, a as F } from "../../index-Bry5AFQ2.js";
|
|
7
|
+
import { P as V } from "../../index-G_6jG4Qc.js";
|
|
8
|
+
import { P as z } from "../../index-g-TFwd6Y.js";
|
|
12
9
|
import { cn as N } from "../../utils/index.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { P } from "../../index-
|
|
10
|
+
import { checkboxVariants as X, labelVariants as G } from "./Checkbox.variants.js";
|
|
11
|
+
import { useToggle as J } from "../../hooks/useToggle.js";
|
|
12
|
+
import { P } from "../../index-C5psggHV.js";
|
|
16
13
|
function E() {
|
|
17
14
|
return E = Object.assign || function(e) {
|
|
18
15
|
for (var s = 1; s < arguments.length; s++) {
|
|
@@ -23,9 +20,9 @@ function E() {
|
|
|
23
20
|
return e;
|
|
24
21
|
}, E.apply(this, arguments);
|
|
25
22
|
}
|
|
26
|
-
function
|
|
23
|
+
function Q(e, s) {
|
|
27
24
|
if (e == null) return {};
|
|
28
|
-
var t =
|
|
25
|
+
var t = U(e, s), o, n;
|
|
29
26
|
if (Object.getOwnPropertySymbols) {
|
|
30
27
|
var r = Object.getOwnPropertySymbols(e);
|
|
31
28
|
for (n = 0; n < r.length; n++)
|
|
@@ -33,7 +30,7 @@ function U(e, s) {
|
|
|
33
30
|
}
|
|
34
31
|
return t;
|
|
35
32
|
}
|
|
36
|
-
function
|
|
33
|
+
function U(e, s) {
|
|
37
34
|
if (e == null) return {};
|
|
38
35
|
var t = {}, o = Object.keys(e), n, r;
|
|
39
36
|
for (r = 0; r < o.length; r++)
|
|
@@ -41,7 +38,7 @@ function Y(e, s) {
|
|
|
41
38
|
return t;
|
|
42
39
|
}
|
|
43
40
|
var O = _(function(e, s) {
|
|
44
|
-
var t = e.color, o = t === void 0 ? "currentColor" : t, n = e.size, r = n === void 0 ? 24 : n, l =
|
|
41
|
+
var t = e.color, o = t === void 0 ? "currentColor" : t, n = e.size, r = n === void 0 ? 24 : n, l = Q(e, ["color", "size"]);
|
|
45
42
|
return /* @__PURE__ */ j.createElement("svg", E({
|
|
46
43
|
ref: s,
|
|
47
44
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -62,7 +59,7 @@ O.propTypes = {
|
|
|
62
59
|
size: P.oneOfType([P.string, P.number])
|
|
63
60
|
};
|
|
64
61
|
O.displayName = "Check";
|
|
65
|
-
var R = "Checkbox", [
|
|
62
|
+
var R = "Checkbox", [Y, he] = $(R), [Z, ee] = Y(R), L = u.forwardRef(
|
|
66
63
|
(e, s) => {
|
|
67
64
|
const {
|
|
68
65
|
__scopeCheckbox: t,
|
|
@@ -70,68 +67,68 @@ var R = "Checkbox", [Z, Ce] = W(R), [ee, te] = Z(R), z = u.forwardRef(
|
|
|
70
67
|
checked: n,
|
|
71
68
|
defaultChecked: r,
|
|
72
69
|
required: l,
|
|
73
|
-
disabled:
|
|
70
|
+
disabled: c,
|
|
74
71
|
value: b = "on",
|
|
75
72
|
onCheckedChange: C,
|
|
76
73
|
form: d,
|
|
77
74
|
...p
|
|
78
|
-
} = e, [i,
|
|
75
|
+
} = e, [i, h] = u.useState(null), k = K(s, (a) => h(a)), y = u.useRef(!1), g = i ? d || !!i.closest("form") : !0, [v = !1, w] = W({
|
|
79
76
|
prop: n,
|
|
80
77
|
defaultProp: r,
|
|
81
78
|
onChange: C
|
|
82
|
-
}), M = u.useRef(
|
|
79
|
+
}), M = u.useRef(v);
|
|
83
80
|
return u.useEffect(() => {
|
|
84
|
-
const
|
|
85
|
-
if (
|
|
86
|
-
const
|
|
87
|
-
return
|
|
81
|
+
const a = i == null ? void 0 : i.form;
|
|
82
|
+
if (a) {
|
|
83
|
+
const x = () => w(M.current);
|
|
84
|
+
return a.addEventListener("reset", x), () => a.removeEventListener("reset", x);
|
|
88
85
|
}
|
|
89
|
-
}, [i, w]), /* @__PURE__ */ S(
|
|
86
|
+
}, [i, w]), /* @__PURE__ */ S(Z, { scope: t, state: v, disabled: c, children: [
|
|
90
87
|
/* @__PURE__ */ f(
|
|
91
|
-
|
|
88
|
+
z.button,
|
|
92
89
|
{
|
|
93
90
|
type: "button",
|
|
94
91
|
role: "checkbox",
|
|
95
|
-
"aria-checked":
|
|
92
|
+
"aria-checked": m(v) ? "mixed" : v,
|
|
96
93
|
"aria-required": l,
|
|
97
|
-
"data-state": B(
|
|
98
|
-
"data-disabled":
|
|
99
|
-
disabled:
|
|
94
|
+
"data-state": B(v),
|
|
95
|
+
"data-disabled": c ? "" : void 0,
|
|
96
|
+
disabled: c,
|
|
100
97
|
value: b,
|
|
101
98
|
...p,
|
|
102
|
-
ref:
|
|
103
|
-
onKeyDown: I(e.onKeyDown, (
|
|
104
|
-
|
|
99
|
+
ref: k,
|
|
100
|
+
onKeyDown: I(e.onKeyDown, (a) => {
|
|
101
|
+
a.key === "Enter" && a.preventDefault();
|
|
105
102
|
}),
|
|
106
|
-
onClick: I(e.onClick, (
|
|
107
|
-
w((
|
|
103
|
+
onClick: I(e.onClick, (a) => {
|
|
104
|
+
w((x) => m(x) ? !0 : !x), g && (y.current = a.isPropagationStopped(), y.current || a.stopPropagation());
|
|
108
105
|
})
|
|
109
106
|
}
|
|
110
107
|
),
|
|
111
108
|
g && /* @__PURE__ */ f(
|
|
112
|
-
|
|
109
|
+
te,
|
|
113
110
|
{
|
|
114
111
|
control: i,
|
|
115
|
-
bubbles: !
|
|
112
|
+
bubbles: !y.current,
|
|
116
113
|
name: o,
|
|
117
114
|
value: b,
|
|
118
|
-
checked:
|
|
115
|
+
checked: v,
|
|
119
116
|
required: l,
|
|
120
|
-
disabled:
|
|
117
|
+
disabled: c,
|
|
121
118
|
form: d,
|
|
122
119
|
style: { transform: "translateX(-100%)" },
|
|
123
|
-
defaultChecked:
|
|
120
|
+
defaultChecked: m(r) ? !1 : r
|
|
124
121
|
}
|
|
125
122
|
)
|
|
126
123
|
] });
|
|
127
124
|
}
|
|
128
125
|
);
|
|
129
|
-
|
|
130
|
-
var
|
|
126
|
+
L.displayName = R;
|
|
127
|
+
var T = "CheckboxIndicator", D = u.forwardRef(
|
|
131
128
|
(e, s) => {
|
|
132
|
-
const { __scopeCheckbox: t, forceMount: o, ...n } = e, r =
|
|
133
|
-
return /* @__PURE__ */ f(V, { present: o ||
|
|
134
|
-
|
|
129
|
+
const { __scopeCheckbox: t, forceMount: o, ...n } = e, r = ee(T, t);
|
|
130
|
+
return /* @__PURE__ */ f(V, { present: o || m(r.state) || r.state === !0, children: /* @__PURE__ */ f(
|
|
131
|
+
z.span,
|
|
135
132
|
{
|
|
136
133
|
"data-state": B(r.state),
|
|
137
134
|
"data-disabled": r.disabled ? "" : void 0,
|
|
@@ -142,17 +139,17 @@ var L = "CheckboxIndicator", D = u.forwardRef(
|
|
|
142
139
|
) });
|
|
143
140
|
}
|
|
144
141
|
);
|
|
145
|
-
D.displayName =
|
|
146
|
-
var
|
|
147
|
-
const { control: s, checked: t, bubbles: o = !0, defaultChecked: n, ...r } = e, l = u.useRef(null),
|
|
142
|
+
D.displayName = T;
|
|
143
|
+
var te = (e) => {
|
|
144
|
+
const { control: s, checked: t, bubbles: o = !0, defaultChecked: n, ...r } = e, l = u.useRef(null), c = q(t), b = F(s);
|
|
148
145
|
u.useEffect(() => {
|
|
149
|
-
const d = l.current, p = window.HTMLInputElement.prototype,
|
|
150
|
-
if (
|
|
151
|
-
const
|
|
152
|
-
d.indeterminate =
|
|
146
|
+
const d = l.current, p = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(p, "checked").set;
|
|
147
|
+
if (c !== t && h) {
|
|
148
|
+
const k = new Event("click", { bubbles: o });
|
|
149
|
+
d.indeterminate = m(t), h.call(d, m(t) ? !1 : t), d.dispatchEvent(k);
|
|
153
150
|
}
|
|
154
|
-
}, [
|
|
155
|
-
const C = u.useRef(
|
|
151
|
+
}, [c, t, o]);
|
|
152
|
+
const C = u.useRef(m(t) ? !1 : t);
|
|
156
153
|
return /* @__PURE__ */ f(
|
|
157
154
|
"input",
|
|
158
155
|
{
|
|
@@ -173,14 +170,14 @@ var re = (e) => {
|
|
|
173
170
|
}
|
|
174
171
|
);
|
|
175
172
|
};
|
|
176
|
-
function
|
|
173
|
+
function m(e) {
|
|
177
174
|
return e === "indeterminate";
|
|
178
175
|
}
|
|
179
176
|
function B(e) {
|
|
180
|
-
return
|
|
177
|
+
return m(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
181
178
|
}
|
|
182
|
-
var
|
|
183
|
-
const
|
|
179
|
+
var re = L, oe = D;
|
|
180
|
+
const be = _(
|
|
184
181
|
({
|
|
185
182
|
ariaLabelledBy: e,
|
|
186
183
|
className: s,
|
|
@@ -189,46 +186,44 @@ const xe = _(
|
|
|
189
186
|
id: n,
|
|
190
187
|
label: r,
|
|
191
188
|
labelClassName: l,
|
|
192
|
-
name:
|
|
189
|
+
name: c,
|
|
193
190
|
theme: b,
|
|
194
191
|
title: C,
|
|
195
192
|
variant: d,
|
|
196
193
|
onChange: p
|
|
197
194
|
}, i) => {
|
|
198
|
-
const [
|
|
199
|
-
|
|
200
|
-
}, [p,
|
|
201
|
-
return /* @__PURE__ */ S("div", { className: "flex items-center gap-2", children: [
|
|
195
|
+
const [h, k] = J(t), y = A(), g = H(() => {
|
|
196
|
+
k(), p == null || p();
|
|
197
|
+
}, [p, k]);
|
|
198
|
+
return /* @__PURE__ */ S("div", { className: "flex items-center gap-2", "data-theme": b, children: [
|
|
202
199
|
/* @__PURE__ */ f(
|
|
203
|
-
|
|
200
|
+
re,
|
|
204
201
|
{
|
|
205
|
-
id: n ??
|
|
206
|
-
checked:
|
|
202
|
+
id: n ?? y,
|
|
203
|
+
checked: h,
|
|
207
204
|
ref: i,
|
|
208
|
-
name:
|
|
205
|
+
name: c,
|
|
209
206
|
disabled: o,
|
|
210
207
|
"aria-labelledby": e,
|
|
211
208
|
title: C,
|
|
212
209
|
className: N(
|
|
213
|
-
|
|
210
|
+
X({
|
|
214
211
|
className: s,
|
|
215
|
-
theme: b ?? g,
|
|
216
212
|
variant: d,
|
|
217
|
-
checked:
|
|
213
|
+
checked: h
|
|
218
214
|
})
|
|
219
215
|
),
|
|
220
|
-
onCheckedChange:
|
|
221
|
-
children: /* @__PURE__ */ f(
|
|
216
|
+
onCheckedChange: g,
|
|
217
|
+
children: /* @__PURE__ */ f(oe, { children: /* @__PURE__ */ f(O, { className: "w-4 h-4 stroke-2" }) })
|
|
222
218
|
}
|
|
223
219
|
),
|
|
224
220
|
r ? /* @__PURE__ */ f(
|
|
225
221
|
"label",
|
|
226
222
|
{
|
|
227
|
-
htmlFor:
|
|
223
|
+
htmlFor: c ?? n,
|
|
228
224
|
className: N(
|
|
229
|
-
|
|
225
|
+
G({
|
|
230
226
|
variant: d,
|
|
231
|
-
theme: b,
|
|
232
227
|
className: l
|
|
233
228
|
})
|
|
234
229
|
),
|
|
@@ -239,5 +234,5 @@ const xe = _(
|
|
|
239
234
|
}
|
|
240
235
|
);
|
|
241
236
|
export {
|
|
242
|
-
|
|
237
|
+
be as Checkbox
|
|
243
238
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as r } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const e = r(
|
|
3
3
|
[
|
|
4
4
|
"cursor-pointer",
|
|
5
5
|
"border",
|
|
@@ -9,18 +9,15 @@ const r = e(
|
|
|
9
9
|
"flex",
|
|
10
10
|
"justify-center",
|
|
11
11
|
"items-center",
|
|
12
|
-
"text-white"
|
|
12
|
+
"text-white",
|
|
13
|
+
"border-kubefirst-primary",
|
|
14
|
+
"colony:border-red-700"
|
|
13
15
|
],
|
|
14
16
|
{
|
|
15
17
|
variants: {
|
|
16
18
|
variant: {
|
|
17
19
|
default: ""
|
|
18
20
|
},
|
|
19
|
-
theme: {
|
|
20
|
-
colony: "",
|
|
21
|
-
kubefirst: "",
|
|
22
|
-
civo: ""
|
|
23
|
-
},
|
|
24
21
|
checked: {
|
|
25
22
|
true: "",
|
|
26
23
|
false: ""
|
|
@@ -28,46 +25,25 @@ const r = e(
|
|
|
28
25
|
},
|
|
29
26
|
compoundVariants: [
|
|
30
27
|
{
|
|
31
|
-
theme: "kubefirst",
|
|
32
|
-
class: ["border-kubefirst-primary"]
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
theme: "kubefirst",
|
|
36
28
|
checked: !0,
|
|
37
|
-
class: ["bg-kubefirst-primary"]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
theme: "colony",
|
|
41
|
-
class: ["border-red-700"]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
theme: "colony",
|
|
45
|
-
checked: !0,
|
|
46
|
-
class: ["bg-red-700"]
|
|
29
|
+
class: ["bg-kubefirst-primary", "colony:bg-red-700"]
|
|
47
30
|
}
|
|
48
31
|
],
|
|
49
32
|
defaultVariants: {
|
|
50
|
-
variant: "default"
|
|
51
|
-
theme: "kubefirst"
|
|
33
|
+
variant: "default"
|
|
52
34
|
}
|
|
53
35
|
}
|
|
54
|
-
),
|
|
36
|
+
), t = r(["cursor-pointer"], {
|
|
55
37
|
variants: {
|
|
56
38
|
variant: {
|
|
57
39
|
default: ""
|
|
58
|
-
},
|
|
59
|
-
theme: {
|
|
60
|
-
colony: "",
|
|
61
|
-
kubefirst: "",
|
|
62
|
-
civo: ""
|
|
63
40
|
}
|
|
64
41
|
},
|
|
65
42
|
defaultVariants: {
|
|
66
|
-
variant: "default"
|
|
67
|
-
theme: "kubefirst"
|
|
43
|
+
variant: "default"
|
|
68
44
|
}
|
|
69
45
|
});
|
|
70
46
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
47
|
+
e as checkboxVariants,
|
|
48
|
+
t as labelVariants
|
|
73
49
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { R as s, D as p } from "../../index-DvFiic6N.js";
|
|
3
|
+
import { V as l } from "../../index-CWKdynYu.js";
|
|
4
|
+
import { cn as m } from "../../utils/index.js";
|
|
5
|
+
import { wrapperVariants as f } from "./Command.variants.js";
|
|
6
|
+
import { DialogContent as c } from "./components/DialogContent.js";
|
|
7
|
+
import { Command as h } from "./components/Command.js";
|
|
8
|
+
import { CommandGroup as b } from "./components/CommandGroup.js";
|
|
9
|
+
import { CommandItem as y } from "./components/CommandItem.js";
|
|
10
|
+
import { CommandSeparator as H } from "./components/CommandSeparator.js";
|
|
11
|
+
const j = ({
|
|
12
|
+
children: r,
|
|
13
|
+
title: a,
|
|
14
|
+
titleClassName: e,
|
|
15
|
+
wrapperClassName: n,
|
|
16
|
+
theme: t,
|
|
17
|
+
...d
|
|
18
|
+
}) => /* @__PURE__ */ o(s, { ...d, children: /* @__PURE__ */ i(
|
|
19
|
+
c,
|
|
20
|
+
{
|
|
21
|
+
className: "overflow-hidden p-0 border-0 !rounded-none",
|
|
22
|
+
"data-theme": t,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ o(p, { className: m("hidden", e), children: /* @__PURE__ */ o(l, { children: a }) }),
|
|
25
|
+
/* @__PURE__ */ o(
|
|
26
|
+
h,
|
|
27
|
+
{
|
|
28
|
+
className: m(f({ className: n })),
|
|
29
|
+
children: r
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
35
|
+
export {
|
|
36
|
+
j as Command,
|
|
37
|
+
b as CommandGroup,
|
|
38
|
+
y as CommandItem,
|
|
39
|
+
H as CommandSeparator
|
|
40
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const r = e([
|
|
3
|
+
"[&_[cmdk-group-heading]]:font-medium",
|
|
4
|
+
"[&_[cmdk-group-heading]]:px-2",
|
|
5
|
+
"[&_[cmdk-group-heading]]:text-muted-foreground",
|
|
6
|
+
"[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0",
|
|
7
|
+
"[&_[cmdk-group]]:px-2",
|
|
8
|
+
"[&_[cmdk-input-wrapper]_svg]:h-5",
|
|
9
|
+
"[&_[cmdk-input-wrapper]_svg]:w-5",
|
|
10
|
+
"[&_[cmdk-input]]:h-12",
|
|
11
|
+
"[&_[cmdk-item]]:px-2",
|
|
12
|
+
"[&_[cmdk-item]]:py-3",
|
|
13
|
+
"[&_[cmdk-item]_svg]:h-5",
|
|
14
|
+
"[&_[cmdk-item]_svg]:w-5",
|
|
15
|
+
"bg-popover",
|
|
16
|
+
"flex",
|
|
17
|
+
"items-center",
|
|
18
|
+
"justify-center",
|
|
19
|
+
"overflow-hidden",
|
|
20
|
+
"text-popover-foreground",
|
|
21
|
+
"border",
|
|
22
|
+
"rounded-md",
|
|
23
|
+
"border-neutral-900/35",
|
|
24
|
+
"bg-neutral-900/30"
|
|
25
|
+
]), d = e([
|
|
26
|
+
"bg-transparent",
|
|
27
|
+
"disabled:cursor-not-allowed",
|
|
28
|
+
"disabled:opacity-50",
|
|
29
|
+
"flex",
|
|
30
|
+
"h-10",
|
|
31
|
+
"outline-none",
|
|
32
|
+
"placeholder:text-muted-foreground",
|
|
33
|
+
"py-3",
|
|
34
|
+
"rounded-md",
|
|
35
|
+
"text-sm",
|
|
36
|
+
"w-full",
|
|
37
|
+
"text-white/80"
|
|
38
|
+
]), o = e([
|
|
39
|
+
"mr-2",
|
|
40
|
+
"h-4",
|
|
41
|
+
"w-4",
|
|
42
|
+
"shrink-0",
|
|
43
|
+
"opacity-80",
|
|
44
|
+
"text-white"
|
|
45
|
+
]);
|
|
46
|
+
export {
|
|
47
|
+
d as inputVariants,
|
|
48
|
+
o as searchInconInputVariants,
|
|
49
|
+
r as wrapperVariants
|
|
50
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { _ as o } from "../../../index-dRxIWVBr.js";
|
|
4
|
+
const s = p(({ className: r, children: a, ...e }, i) => /* @__PURE__ */ m(o, { ref: i, className: r, ...e, children: /* @__PURE__ */ m("div", { className: "w-[500px]", children: a }) }));
|
|
5
|
+
s.displayName = o.displayName;
|
|
6
|
+
export {
|
|
7
|
+
s as Command
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { _ as m } from "../../../index-dRxIWVBr.js";
|
|
4
|
+
const r = p((t, e) => /* @__PURE__ */ o(
|
|
5
|
+
m.Empty,
|
|
6
|
+
{
|
|
7
|
+
ref: e,
|
|
8
|
+
className: "py-6 text-center text-sm",
|
|
9
|
+
...t
|
|
10
|
+
}
|
|
11
|
+
));
|
|
12
|
+
r.displayName = m.Empty.displayName;
|
|
13
|
+
export {
|
|
14
|
+
r as CommandEmpty
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { _ as o } from "../../../index-dRxIWVBr.js";
|
|
4
|
+
import { cn as a } from "../../../utils/index.js";
|
|
5
|
+
const t = p(({ className: r, ...m }, d) => /* @__PURE__ */ e(
|
|
6
|
+
o.Group,
|
|
7
|
+
{
|
|
8
|
+
ref: d,
|
|
9
|
+
className: a(
|
|
10
|
+
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
11
|
+
r
|
|
12
|
+
),
|
|
13
|
+
...m
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
t.displayName = o.Group.displayName;
|
|
17
|
+
export {
|
|
18
|
+
t as CommandGroup
|
|
19
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsxs as y, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { _ as m } from "../../../index-dRxIWVBr.js";
|
|
3
|
+
import s, { forwardRef as u } from "react";
|
|
4
|
+
import { cn as f } from "../../../utils/index.js";
|
|
5
|
+
import { searchInconInputVariants as v, inputVariants as g } from "../Command.variants.js";
|
|
6
|
+
import { P as a } from "../../../index-C5psggHV.js";
|
|
7
|
+
function p() {
|
|
8
|
+
return p = Object.assign || function(r) {
|
|
9
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
10
|
+
var e = arguments[n];
|
|
11
|
+
for (var t in e)
|
|
12
|
+
Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
|
|
13
|
+
}
|
|
14
|
+
return r;
|
|
15
|
+
}, p.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
function h(r, n) {
|
|
18
|
+
if (r == null) return {};
|
|
19
|
+
var e = b(r, n), t, o;
|
|
20
|
+
if (Object.getOwnPropertySymbols) {
|
|
21
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
22
|
+
for (o = 0; o < i.length; o++)
|
|
23
|
+
t = i[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (e[t] = r[t]);
|
|
24
|
+
}
|
|
25
|
+
return e;
|
|
26
|
+
}
|
|
27
|
+
function b(r, n) {
|
|
28
|
+
if (r == null) return {};
|
|
29
|
+
var e = {}, t = Object.keys(r), o, i;
|
|
30
|
+
for (i = 0; i < t.length; i++)
|
|
31
|
+
o = t[i], !(n.indexOf(o) >= 0) && (e[o] = r[o]);
|
|
32
|
+
return e;
|
|
33
|
+
}
|
|
34
|
+
var l = u(function(r, n) {
|
|
35
|
+
var e = r.color, t = e === void 0 ? "currentColor" : e, o = r.size, i = o === void 0 ? 24 : o, d = h(r, ["color", "size"]);
|
|
36
|
+
return /* @__PURE__ */ s.createElement("svg", p({
|
|
37
|
+
ref: n,
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
width: i,
|
|
40
|
+
height: i,
|
|
41
|
+
viewBox: "0 0 24 24",
|
|
42
|
+
fill: "none",
|
|
43
|
+
stroke: t,
|
|
44
|
+
strokeWidth: "2",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeLinejoin: "round"
|
|
47
|
+
}, d), /* @__PURE__ */ s.createElement("circle", {
|
|
48
|
+
cx: "11",
|
|
49
|
+
cy: "11",
|
|
50
|
+
r: "8"
|
|
51
|
+
}), /* @__PURE__ */ s.createElement("line", {
|
|
52
|
+
x1: "21",
|
|
53
|
+
y1: "21",
|
|
54
|
+
x2: "16.65",
|
|
55
|
+
y2: "16.65"
|
|
56
|
+
}));
|
|
57
|
+
});
|
|
58
|
+
l.propTypes = {
|
|
59
|
+
color: a.string,
|
|
60
|
+
size: a.oneOfType([a.string, a.number])
|
|
61
|
+
};
|
|
62
|
+
l.displayName = "Search";
|
|
63
|
+
const x = u(({ className: r, ...n }, e) => /* @__PURE__ */ y(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
className: "flex items-center px-3 border-b border-neutral-900/35",
|
|
67
|
+
"cmdk-input-wrapper": "",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ c(l, { className: f(v({ className: r })) }),
|
|
70
|
+
/* @__PURE__ */ c(
|
|
71
|
+
m.Input,
|
|
72
|
+
{
|
|
73
|
+
ref: e,
|
|
74
|
+
className: f(g({ className: r })),
|
|
75
|
+
...n
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
));
|
|
81
|
+
x.displayName = m.Input.displayName;
|
|
82
|
+
export {
|
|
83
|
+
x as CommandInput
|
|
84
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i, useContext as p, useCallback as c } from "react";
|
|
3
|
+
import { _ as r } from "../../../index-dRxIWVBr.js";
|
|
4
|
+
import { cn as l } from "../../../utils/index.js";
|
|
5
|
+
import { CommandContext as u } from "../contexts/Command.context.js";
|
|
6
|
+
const f = i(({ className: a, onSelect: e, ...s }, o) => {
|
|
7
|
+
const { setOpen: t } = p(u), n = c(
|
|
8
|
+
(m) => {
|
|
9
|
+
e == null || e(m), t(!1);
|
|
10
|
+
},
|
|
11
|
+
[t, e]
|
|
12
|
+
);
|
|
13
|
+
return /* @__PURE__ */ d(
|
|
14
|
+
r.Item,
|
|
15
|
+
{
|
|
16
|
+
ref: o,
|
|
17
|
+
className: l(
|
|
18
|
+
"relative flex cursor-pointer gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
19
|
+
a
|
|
20
|
+
),
|
|
21
|
+
onSelect: n,
|
|
22
|
+
...s
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
});
|
|
26
|
+
f.displayName = r.Item.displayName;
|
|
27
|
+
export {
|
|
28
|
+
f as CommandItem
|
|
29
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
import { _ as o } from "../../../index-dRxIWVBr.js";
|
|
4
|
+
import { cn as t } from "../../../utils/index.js";
|
|
5
|
+
const e = s(({ className: m, ...r }, a) => /* @__PURE__ */ i(
|
|
6
|
+
o.List,
|
|
7
|
+
{
|
|
8
|
+
ref: a,
|
|
9
|
+
className: t("max-h-[300px] overflow-y-auto overflow-x-hidden", m),
|
|
10
|
+
...r
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
e.displayName = o.List.displayName;
|
|
14
|
+
export {
|
|
15
|
+
e as CommandList
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { _ as r } from "../../../index-dRxIWVBr.js";
|
|
4
|
+
import { cn as t } from "../../../utils/index.js";
|
|
5
|
+
const s = p(({ className: o, ...a }, m) => /* @__PURE__ */ e(
|
|
6
|
+
r.Separator,
|
|
7
|
+
{
|
|
8
|
+
ref: m,
|
|
9
|
+
className: t("-mx-1 h-px border-t border-neutral-900/45 mb-2", o),
|
|
10
|
+
...a
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
s.displayName = r.Separator.displayName;
|
|
14
|
+
export {
|
|
15
|
+
s as CommandSeparator
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "../../../utils/index.js";
|
|
3
|
+
const a = ({
|
|
4
|
+
className: t,
|
|
5
|
+
...o
|
|
6
|
+
}) => /* @__PURE__ */ m(
|
|
7
|
+
"span",
|
|
8
|
+
{
|
|
9
|
+
className: r(
|
|
10
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
11
|
+
t
|
|
12
|
+
),
|
|
13
|
+
...o
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
a.displayName = "CommandShortcut";
|
|
17
|
+
export {
|
|
18
|
+
a as CommandShortcut
|
|
19
|
+
};
|