@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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as l from "react";
|
|
2
2
|
import { useState as ee } from "react";
|
|
3
3
|
var S = function() {
|
|
4
4
|
return S = Object.assign || function(t) {
|
|
@@ -22,8 +22,8 @@ function te(e, t, n) {
|
|
|
22
22
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
23
23
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
24
24
|
}
|
|
25
|
-
var N = "right-scroll-bar-position",
|
|
26
|
-
function
|
|
25
|
+
var N = "right-scroll-bar-position", O = "width-before-scroll-bar", re = "with-scroll-bars-hidden", ne = "--removed-body-scroll-bar-size";
|
|
26
|
+
function I(e, t) {
|
|
27
27
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
28
28
|
}
|
|
29
29
|
function ae(e, t) {
|
|
@@ -47,21 +47,21 @@ function ae(e, t) {
|
|
|
47
47
|
})[0];
|
|
48
48
|
return n.callback = t, n.facade;
|
|
49
49
|
}
|
|
50
|
-
var oe = typeof window < "u" ?
|
|
50
|
+
var oe = typeof window < "u" ? l.useLayoutEffect : l.useEffect, D = /* @__PURE__ */ new WeakMap();
|
|
51
51
|
function ce(e, t) {
|
|
52
52
|
var n = ae(null, function(r) {
|
|
53
53
|
return e.forEach(function(a) {
|
|
54
|
-
return
|
|
54
|
+
return I(a, r);
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
return oe(function() {
|
|
58
58
|
var r = D.get(n);
|
|
59
59
|
if (r) {
|
|
60
|
-
var a = new Set(r), i = new Set(e),
|
|
60
|
+
var a = new Set(r), i = new Set(e), u = n.current;
|
|
61
61
|
a.forEach(function(o) {
|
|
62
|
-
i.has(o) ||
|
|
62
|
+
i.has(o) || I(o, null);
|
|
63
63
|
}), i.forEach(function(o) {
|
|
64
|
-
a.has(o) ||
|
|
64
|
+
a.has(o) || I(o, u);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
D.set(n, e);
|
|
@@ -79,17 +79,17 @@ function Q(e, t) {
|
|
|
79
79
|
return n.length ? n[n.length - 1] : e;
|
|
80
80
|
},
|
|
81
81
|
useMedium: function(i) {
|
|
82
|
-
var
|
|
83
|
-
return n.push(
|
|
82
|
+
var u = t(i, r);
|
|
83
|
+
return n.push(u), function() {
|
|
84
84
|
n = n.filter(function(o) {
|
|
85
|
-
return o !==
|
|
85
|
+
return o !== u;
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
},
|
|
89
89
|
assignSyncMedium: function(i) {
|
|
90
90
|
for (r = !0; n.length; ) {
|
|
91
|
-
var
|
|
92
|
-
n = [],
|
|
91
|
+
var u = n;
|
|
92
|
+
n = [], u.forEach(i);
|
|
93
93
|
}
|
|
94
94
|
n = {
|
|
95
95
|
push: function(o) {
|
|
@@ -102,23 +102,23 @@ function Q(e, t) {
|
|
|
102
102
|
},
|
|
103
103
|
assignMedium: function(i) {
|
|
104
104
|
r = !0;
|
|
105
|
-
var
|
|
105
|
+
var u = [];
|
|
106
106
|
if (n.length) {
|
|
107
107
|
var o = n;
|
|
108
|
-
n = [], o.forEach(i),
|
|
108
|
+
n = [], o.forEach(i), u = n;
|
|
109
109
|
}
|
|
110
110
|
var h = function() {
|
|
111
|
-
var d =
|
|
112
|
-
|
|
111
|
+
var d = u;
|
|
112
|
+
u = [], d.forEach(i);
|
|
113
113
|
}, m = function() {
|
|
114
114
|
return Promise.resolve().then(h);
|
|
115
115
|
};
|
|
116
116
|
m(), n = {
|
|
117
117
|
push: function(d) {
|
|
118
|
-
|
|
118
|
+
u.push(d), m();
|
|
119
119
|
},
|
|
120
120
|
filter: function(d) {
|
|
121
|
-
return
|
|
121
|
+
return u = u.filter(d), n;
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
}
|
|
@@ -140,36 +140,36 @@ var G = function(e) {
|
|
|
140
140
|
var r = t.read();
|
|
141
141
|
if (!r)
|
|
142
142
|
throw new Error("Sidecar medium not found");
|
|
143
|
-
return
|
|
143
|
+
return l.createElement(r, S({}, n));
|
|
144
144
|
};
|
|
145
145
|
G.isSideCarExport = !0;
|
|
146
|
-
function
|
|
146
|
+
function le(e, t) {
|
|
147
147
|
return e.useMedium(t), G;
|
|
148
148
|
}
|
|
149
|
-
var K = ie(),
|
|
150
|
-
},
|
|
151
|
-
var n =
|
|
152
|
-
onScrollCapture:
|
|
153
|
-
onWheelCapture:
|
|
154
|
-
onTouchMoveCapture:
|
|
155
|
-
}), a = r[0], i = r[1],
|
|
156
|
-
return
|
|
157
|
-
|
|
149
|
+
var K = ie(), W = function() {
|
|
150
|
+
}, A = l.forwardRef(function(e, t) {
|
|
151
|
+
var n = l.useRef(null), r = l.useState({
|
|
152
|
+
onScrollCapture: W,
|
|
153
|
+
onWheelCapture: W,
|
|
154
|
+
onTouchMoveCapture: W
|
|
155
|
+
}), a = r[0], i = r[1], u = e.forwardProps, o = e.children, h = e.className, m = e.removeScrollBar, d = e.enabled, w = e.shards, E = e.sideCar, p = e.noIsolation, C = e.inert, c = e.allowPinchZoom, f = e.as, v = f === void 0 ? "div" : f, y = e.gapMode, g = Z(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = E, s = ce([n, t]), R = S(S({}, g), a);
|
|
156
|
+
return l.createElement(
|
|
157
|
+
l.Fragment,
|
|
158
158
|
null,
|
|
159
|
-
d &&
|
|
160
|
-
|
|
159
|
+
d && l.createElement(b, { sideCar: K, removeScrollBar: m, shards: w, noIsolation: p, inert: C, setCallbacks: i, allowPinchZoom: !!c, lockRef: n, gapMode: y }),
|
|
160
|
+
u ? l.cloneElement(l.Children.only(o), S(S({}, R), { ref: s })) : l.createElement(v, S({}, R, { className: h, ref: s }), o)
|
|
161
161
|
);
|
|
162
162
|
});
|
|
163
|
-
|
|
163
|
+
A.defaultProps = {
|
|
164
164
|
enabled: !0,
|
|
165
165
|
removeScrollBar: !0,
|
|
166
166
|
inert: !1
|
|
167
167
|
};
|
|
168
|
-
|
|
169
|
-
fullWidth:
|
|
168
|
+
A.classNames = {
|
|
169
|
+
fullWidth: O,
|
|
170
170
|
zeroRight: N
|
|
171
171
|
};
|
|
172
|
-
var
|
|
172
|
+
var ue = function() {
|
|
173
173
|
if (typeof __webpack_nonce__ < "u")
|
|
174
174
|
return __webpack_nonce__;
|
|
175
175
|
};
|
|
@@ -178,7 +178,7 @@ function fe() {
|
|
|
178
178
|
return null;
|
|
179
179
|
var e = document.createElement("style");
|
|
180
180
|
e.type = "text/css";
|
|
181
|
-
var t =
|
|
181
|
+
var t = ue();
|
|
182
182
|
return t && e.setAttribute("nonce", t), e;
|
|
183
183
|
}
|
|
184
184
|
function se(e, t) {
|
|
@@ -201,7 +201,7 @@ var ve = function() {
|
|
|
201
201
|
}, he = function() {
|
|
202
202
|
var e = ve();
|
|
203
203
|
return function(t, n) {
|
|
204
|
-
|
|
204
|
+
l.useEffect(function() {
|
|
205
205
|
return e.add(t), function() {
|
|
206
206
|
e.remove();
|
|
207
207
|
};
|
|
@@ -233,8 +233,8 @@ var ve = function() {
|
|
|
233
233
|
right: t[2],
|
|
234
234
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
235
235
|
};
|
|
236
|
-
}, Se = U(), M = "data-scroll-locked",
|
|
237
|
-
var a = e.left, i = e.top,
|
|
236
|
+
}, Se = U(), M = "data-scroll-locked", be = function(e, t, n, r) {
|
|
237
|
+
var a = e.left, i = e.top, u = e.right, o = e.gap;
|
|
238
238
|
return n === void 0 && (n = "margin"), `
|
|
239
239
|
.`.concat(re, ` {
|
|
240
240
|
overflow: hidden `).concat(r, `;
|
|
@@ -248,7 +248,7 @@ var ve = function() {
|
|
|
248
248
|
n === "margin" && `
|
|
249
249
|
padding-left: `.concat(a, `px;
|
|
250
250
|
padding-top: `).concat(i, `px;
|
|
251
|
-
padding-right: `).concat(
|
|
251
|
+
padding-right: `).concat(u, `px;
|
|
252
252
|
margin-left:0;
|
|
253
253
|
margin-top:0;
|
|
254
254
|
margin-right: `).concat(o, "px ").concat(r, `;
|
|
@@ -261,7 +261,7 @@ var ve = function() {
|
|
|
261
261
|
right: `).concat(o, "px ").concat(r, `;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
.`).concat(
|
|
264
|
+
.`).concat(O, ` {
|
|
265
265
|
margin-right: `).concat(o, "px ").concat(r, `;
|
|
266
266
|
}
|
|
267
267
|
|
|
@@ -269,7 +269,7 @@ var ve = function() {
|
|
|
269
269
|
right: 0 `).concat(r, `;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
.`).concat(
|
|
272
|
+
.`).concat(O, " .").concat(O, ` {
|
|
273
273
|
margin-right: 0 `).concat(r, `;
|
|
274
274
|
}
|
|
275
275
|
|
|
@@ -280,20 +280,20 @@ var ve = function() {
|
|
|
280
280
|
}, V = function() {
|
|
281
281
|
var e = parseInt(document.body.getAttribute(M) || "0", 10);
|
|
282
282
|
return isFinite(e) ? e : 0;
|
|
283
|
-
},
|
|
284
|
-
|
|
283
|
+
}, we = function() {
|
|
284
|
+
l.useEffect(function() {
|
|
285
285
|
return document.body.setAttribute(M, (V() + 1).toString()), function() {
|
|
286
286
|
var e = V() - 1;
|
|
287
287
|
e <= 0 ? document.body.removeAttribute(M) : document.body.setAttribute(M, e.toString());
|
|
288
288
|
};
|
|
289
289
|
}, []);
|
|
290
|
-
},
|
|
290
|
+
}, pe = function(e) {
|
|
291
291
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, a = r === void 0 ? "margin" : r;
|
|
292
|
-
|
|
293
|
-
var i =
|
|
292
|
+
we();
|
|
293
|
+
var i = l.useMemo(function() {
|
|
294
294
|
return ye(a);
|
|
295
295
|
}, [a]);
|
|
296
|
-
return
|
|
296
|
+
return l.createElement(Se, { styles: be(i, !t, a, n ? "" : "!important") });
|
|
297
297
|
}, Y = !1;
|
|
298
298
|
if (typeof window < "u")
|
|
299
299
|
try {
|
|
@@ -327,8 +327,8 @@ var k = Y ? { passive: !1 } : !1, Ce = function(e) {
|
|
|
327
327
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
328
328
|
var a = q(e, r);
|
|
329
329
|
if (a) {
|
|
330
|
-
var i = J(e, r),
|
|
331
|
-
if (
|
|
330
|
+
var i = J(e, r), u = i[1], o = i[2];
|
|
331
|
+
if (u > o)
|
|
332
332
|
return !0;
|
|
333
333
|
}
|
|
334
334
|
r = r.parentNode;
|
|
@@ -355,16 +355,16 @@ var k = Y ? { passive: !1 } : !1, Ce = function(e) {
|
|
|
355
355
|
}, Me = function(e, t) {
|
|
356
356
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
357
357
|
}, Le = function(e, t, n, r, a) {
|
|
358
|
-
var i = Me(e, window.getComputedStyle(t).direction),
|
|
358
|
+
var i = Me(e, window.getComputedStyle(t).direction), u = i * r, o = n.target, h = t.contains(o), m = !1, d = u > 0, w = 0, E = 0;
|
|
359
359
|
do {
|
|
360
|
-
var
|
|
361
|
-
(C || v) && q(e, o) && (
|
|
360
|
+
var p = J(e, o), C = p[0], c = p[1], f = p[2], v = c - f - i * C;
|
|
361
|
+
(C || v) && q(e, o) && (w += v, E += C), o instanceof ShadowRoot ? o = o.host : o = o.parentNode;
|
|
362
362
|
} while (
|
|
363
363
|
// portaled content
|
|
364
364
|
!h && o !== document.body || // self content
|
|
365
365
|
h && (t.contains(o) || t === o)
|
|
366
366
|
);
|
|
367
|
-
return (d &&
|
|
367
|
+
return (d && Math.abs(w) < 1 || !d && Math.abs(E) < 1) && (m = !0), m;
|
|
368
368
|
}, x = function(e) {
|
|
369
369
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
370
370
|
}, z = function(e) {
|
|
@@ -380,10 +380,10 @@ var k = Y ? { passive: !1 } : !1, Ce = function(e) {
|
|
|
380
380
|
`);
|
|
381
381
|
}, xe = 0, P = [];
|
|
382
382
|
function Ne(e) {
|
|
383
|
-
var t =
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}, [e]),
|
|
383
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), a = l.useState(xe++)[0], i = l.useState(U)[0], u = l.useRef(e);
|
|
384
|
+
l.useEffect(function() {
|
|
385
|
+
u.current = e;
|
|
386
|
+
}, [e]), l.useEffect(function() {
|
|
387
387
|
if (e.inert) {
|
|
388
388
|
document.body.classList.add("block-interactivity-".concat(a));
|
|
389
389
|
var c = te([e.lockRef.current], (e.shards || []).map(F), !0).filter(Boolean);
|
|
@@ -396,10 +396,10 @@ function Ne(e) {
|
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
398
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
399
|
-
var o =
|
|
399
|
+
var o = l.useCallback(function(c, f) {
|
|
400
400
|
if ("touches" in c && c.touches.length === 2 || c.type === "wheel" && c.ctrlKey)
|
|
401
|
-
return !
|
|
402
|
-
var v = x(c), y = n.current, g = "deltaX" in c ? c.deltaX : y[0] - v[0],
|
|
401
|
+
return !u.current.allowPinchZoom;
|
|
402
|
+
var v = x(c), y = n.current, g = "deltaX" in c ? c.deltaX : y[0] - v[0], b = "deltaY" in c ? c.deltaY : y[1] - v[1], s, R = c.target, L = Math.abs(g) > Math.abs(b) ? "h" : "v";
|
|
403
403
|
if ("touches" in c && L === "h" && R.type === "range")
|
|
404
404
|
return !1;
|
|
405
405
|
var T = H(L, R);
|
|
@@ -407,11 +407,11 @@ function Ne(e) {
|
|
|
407
407
|
return !0;
|
|
408
408
|
if (T ? s = L : (s = L === "v" ? "h" : "v", T = H(L, R)), !T)
|
|
409
409
|
return !1;
|
|
410
|
-
if (!r.current && "changedTouches" in c && (g ||
|
|
410
|
+
if (!r.current && "changedTouches" in c && (g || b) && (r.current = s), !s)
|
|
411
411
|
return !0;
|
|
412
412
|
var j = r.current || s;
|
|
413
|
-
return Le(j, f, c, j === "h" ? g :
|
|
414
|
-
}, []), h =
|
|
413
|
+
return Le(j, f, c, j === "h" ? g : b);
|
|
414
|
+
}, []), h = l.useCallback(function(c) {
|
|
415
415
|
var f = c;
|
|
416
416
|
if (!(!P.length || P[P.length - 1] !== i)) {
|
|
417
417
|
var v = "deltaY" in f ? z(f) : x(f), y = t.current.filter(function(s) {
|
|
@@ -422,30 +422,30 @@ function Ne(e) {
|
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
424
|
if (!y) {
|
|
425
|
-
var g = (
|
|
425
|
+
var g = (u.current.shards || []).map(F).filter(Boolean).filter(function(s) {
|
|
426
426
|
return s.contains(f.target);
|
|
427
|
-
}),
|
|
428
|
-
|
|
427
|
+
}), b = g.length > 0 ? o(f, g[0]) : !u.current.noIsolation;
|
|
428
|
+
b && f.cancelable && f.preventDefault();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
}, []), m =
|
|
432
|
-
var g = { name: c, delta: f, target: v, should: y, shadowParent:
|
|
431
|
+
}, []), m = l.useCallback(function(c, f, v, y) {
|
|
432
|
+
var g = { name: c, delta: f, target: v, should: y, shadowParent: Oe(v) };
|
|
433
433
|
t.current.push(g), setTimeout(function() {
|
|
434
|
-
t.current = t.current.filter(function(
|
|
435
|
-
return
|
|
434
|
+
t.current = t.current.filter(function(b) {
|
|
435
|
+
return b !== g;
|
|
436
436
|
});
|
|
437
437
|
}, 1);
|
|
438
|
-
}, []), d =
|
|
438
|
+
}, []), d = l.useCallback(function(c) {
|
|
439
439
|
n.current = x(c), r.current = void 0;
|
|
440
|
-
}, []),
|
|
440
|
+
}, []), w = l.useCallback(function(c) {
|
|
441
441
|
m(c.type, z(c), c.target, o(c, e.lockRef.current));
|
|
442
|
-
}, []), E =
|
|
442
|
+
}, []), E = l.useCallback(function(c) {
|
|
443
443
|
m(c.type, x(c), c.target, o(c, e.lockRef.current));
|
|
444
444
|
}, []);
|
|
445
|
-
|
|
445
|
+
l.useEffect(function() {
|
|
446
446
|
return P.push(i), e.setCallbacks({
|
|
447
|
-
onScrollCapture:
|
|
448
|
-
onWheelCapture:
|
|
447
|
+
onScrollCapture: w,
|
|
448
|
+
onWheelCapture: w,
|
|
449
449
|
onTouchMoveCapture: E
|
|
450
450
|
}), document.addEventListener("wheel", h, k), document.addEventListener("touchmove", h, k), document.addEventListener("touchstart", d, k), function() {
|
|
451
451
|
P = P.filter(function(c) {
|
|
@@ -453,26 +453,26 @@ function Ne(e) {
|
|
|
453
453
|
}), document.removeEventListener("wheel", h, k), document.removeEventListener("touchmove", h, k), document.removeEventListener("touchstart", d, k);
|
|
454
454
|
};
|
|
455
455
|
}, []);
|
|
456
|
-
var
|
|
457
|
-
return
|
|
458
|
-
|
|
456
|
+
var p = e.removeScrollBar, C = e.inert;
|
|
457
|
+
return l.createElement(
|
|
458
|
+
l.Fragment,
|
|
459
459
|
null,
|
|
460
|
-
C ?
|
|
461
|
-
|
|
460
|
+
C ? l.createElement(i, { styles: Be(a) }) : null,
|
|
461
|
+
p ? l.createElement(pe, { gapMode: e.gapMode }) : null
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Oe(e) {
|
|
465
465
|
for (var t = null; e !== null; )
|
|
466
466
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
467
467
|
return t;
|
|
468
468
|
}
|
|
469
|
-
const
|
|
470
|
-
var
|
|
471
|
-
return
|
|
469
|
+
const Ae = le(K, Ne);
|
|
470
|
+
var Ie = l.forwardRef(function(e, t) {
|
|
471
|
+
return l.createElement(A, S({}, e, { ref: t, sideCar: Ae }));
|
|
472
472
|
});
|
|
473
|
-
|
|
473
|
+
Ie.classNames = A.classNames;
|
|
474
474
|
export {
|
|
475
|
-
|
|
475
|
+
Ie as R,
|
|
476
476
|
ie as a,
|
|
477
477
|
Xe as c,
|
|
478
478
|
ce as u
|