@konstructio/ui 0.0.12-alpha.1 → 0.0.12
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/{index-BVppSRDQ.js → AlertDialogTrigger-D4Tm_9M0.js} +21 -19
- package/dist/{Combination-BQYb0Gw7.js → Combination-Cmu9JRkv.js} +72 -72
- package/dist/{Modal-W2GbkC_F.js → Modal-L73dmnHv.js} +246 -238
- package/dist/{chevron-up-DgLBQCKD.js → chevron-up-CvquEaNg.js} +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +3 -0
- package/dist/components/AlertDialog/AlertDialog.js +23 -20
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +18 -0
- package/dist/components/AlertDialog/AlertDialog.types.js +1 -0
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +3 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +3 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +6 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +6 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +1 -0
- package/dist/components/AlertDialog/components/index.d.ts +1 -0
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/index.d.ts +1 -0
- package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +7 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +3 -0
- package/dist/components/Autocomplete/Autocomplete.js +17 -15
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +18 -0
- package/dist/components/Autocomplete/Autocomplete.types.js +1 -0
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +8 -0
- package/dist/components/Autocomplete/components/List/List.d.ts +3 -0
- package/dist/components/Autocomplete/components/List/List.js +7 -7
- package/dist/components/Autocomplete/components/List/List.types.d.ts +13 -0
- package/dist/components/Autocomplete/components/List/List.types.js +1 -0
- package/dist/components/Autocomplete/components/List/List.variants.d.ts +16 -0
- package/dist/components/Autocomplete/components/index.d.ts +1 -0
- package/dist/components/Autocomplete/hooks/index.d.ts +2 -0
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +17 -0
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +10 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +69 -68
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +11 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +12 -0
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +17 -16
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +3 -2
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.js +16 -14
- package/dist/components/Button/Button.types.d.ts +7 -0
- package/dist/components/Button/Button.types.js +1 -0
- package/dist/components/Button/Button.variants.d.ts +7 -0
- package/dist/components/Card/Card.d.ts +4 -0
- package/dist/components/Card/Card.js +12 -10
- package/dist/components/Card/Card.types.d.ts +8 -0
- package/dist/components/Card/Card.types.js +1 -0
- package/dist/components/Card/Card.variants.d.ts +10 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +15 -13
- package/dist/components/Checkbox/Checkbox.types.d.ts +14 -0
- package/dist/components/Checkbox/Checkbox.types.js +1 -0
- package/dist/components/Checkbox/Checkbox.variants.d.ts +9 -0
- package/dist/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.js +6 -4
- package/dist/components/Dropdown/Dropdown.types.d.ts +16 -0
- package/dist/components/Dropdown/Dropdown.types.js +1 -0
- package/dist/components/Dropdown/Dropdown.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/EmptyList.d.ts +2 -0
- package/dist/components/Dropdown/components/List/List.d.ts +3 -0
- package/dist/components/Dropdown/components/List/List.js +10 -9
- package/dist/components/Dropdown/components/List/List.types.d.ts +6 -0
- package/dist/components/Dropdown/components/List/List.types.js +1 -0
- package/dist/components/Dropdown/components/List/List.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +3 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.js +21 -20
- package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +4 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.types.js +1 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/Wrapper.d.ts +3 -0
- package/dist/components/Dropdown/components/Wrapper.js +34 -31
- package/dist/components/Dropdown/components/index.d.ts +3 -0
- package/dist/components/Dropdown/contexts/dropdown.context.d.ts +8 -0
- package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +2 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +5 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.js +4 -4
- package/dist/components/Dropdown/contexts/index.d.ts +2 -0
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +11 -0
- package/dist/components/Dropdown/hooks/useDropdown.js +14 -12
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +8 -0
- package/dist/components/Dropdown/hooks/useNavigationList.js +10 -8
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.js +14 -12
- package/dist/components/Input/Input.types.d.ts +9 -0
- package/dist/components/Input/Input.types.js +1 -0
- package/dist/components/Input/Input.variants.d.ts +4 -0
- package/dist/components/Modal/Modal.d.ts +8 -0
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/Modal.types.d.ts +12 -0
- package/dist/components/Modal/Modal.types.js +1 -0
- package/dist/components/Modal/components/Body/Body.d.ts +3 -0
- package/dist/components/Modal/components/Body/Body.types.d.ts +5 -0
- package/dist/components/Modal/components/Body/Body.types.js +1 -0
- package/dist/components/Modal/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Modal/components/Footer/Footer.types.d.ts +5 -0
- package/dist/components/Modal/components/Footer/Footer.types.js +1 -0
- package/dist/components/Modal/components/Header/Header.d.ts +3 -0
- package/dist/components/Modal/components/Header/Header.types.d.ts +5 -0
- package/dist/components/Modal/components/Header/Header.types.js +1 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.js +9 -7
- package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +7 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.types.js +1 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +6 -0
- package/dist/components/Modal/components/index.d.ts +4 -0
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.context.d.ts +2 -0
- package/dist/components/Modal/contexts/Modal.provider.d.ts +4 -0
- package/dist/components/Modal/contexts/Modal.provider.js +4 -4
- package/dist/components/Modal/contexts/Modal.types.d.ts +9 -0
- package/dist/components/Modal/contexts/Modal.types.js +1 -0
- package/dist/components/Modal/contexts/index.d.ts +1 -0
- package/dist/components/Modal/hooks/index.d.ts +1 -0
- package/dist/components/Modal/hooks/useModal.d.ts +9 -0
- package/dist/components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/components/NumberInput/NumberInput.js +11 -9
- package/dist/components/NumberInput/NumberInput.types.d.ts +11 -0
- package/dist/components/NumberInput/NumberInput.types.js +1 -0
- package/dist/components/NumberInput/NumberInput.variants.d.ts +11 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.js +16 -13
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +8 -0
- package/dist/components/ProgressBar/ProgressBar.types.js +1 -0
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +7 -0
- package/dist/components/Radio/Radio.d.ts +3 -0
- package/dist/components/Radio/Radio.js +37 -55
- package/dist/components/Radio/Radio.types.d.ts +12 -0
- package/dist/components/Radio/Radio.types.js +1 -0
- package/dist/components/Radio/Radio.variants.d.ts +3 -0
- package/dist/components/Radio/Radio.variants.js +16 -69
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroup.js +27 -37
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +12 -0
- package/dist/components/RadioGroup/RadioGroup.types.js +1 -0
- package/dist/components/Range/Range.d.ts +3 -0
- package/dist/components/Range/Range.js +22 -20
- package/dist/components/Range/Range.types.d.ts +13 -0
- package/dist/components/Range/Range.types.js +1 -0
- package/dist/components/Range/Range.variants.d.ts +14 -0
- package/dist/components/Sidebar/Sidebar.d.ts +5 -0
- package/dist/components/Sidebar/Sidebar.js +22 -20
- package/dist/components/Sidebar/Sidebar.types.d.ts +18 -0
- package/dist/components/Sidebar/Sidebar.types.js +1 -0
- package/dist/components/Sidebar/Sidebar.variants.d.ts +6 -0
- package/dist/components/Sidebar/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Sidebar/components/Footer/Footer.js +12 -9
- package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +6 -0
- package/dist/components/Sidebar/components/Footer/Footer.types.js +1 -0
- package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/Logo/Logo.d.ts +3 -0
- package/dist/components/Sidebar/components/Logo/Logo.js +12 -9
- package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +6 -0
- package/dist/components/Sidebar/components/Logo/Logo.types.js +1 -0
- package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +4 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -12
- package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +16 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.types.js +1 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +26 -24
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +7 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +20 -17
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +17 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +4 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +11 -8
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +5 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +13 -10
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +8 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +27 -29
- package/dist/components/Sidebar/components/index.d.ts +15 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.js +20 -18
- package/dist/components/Slider/Slider.types.d.ts +13 -0
- package/dist/components/Slider/Slider.types.js +1 -0
- package/dist/components/Slider/Slider.variants.d.ts +11 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/Switch.js +21 -19
- package/dist/components/Switch/Switch.types.d.ts +10 -0
- package/dist/components/Switch/Switch.types.js +1 -0
- package/dist/components/Switch/Switch.variants.d.ts +6 -0
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/Tag.types.d.ts +4 -0
- package/dist/components/Tag/Tag.types.js +1 -0
- package/dist/components/Tag/Tag.variants.d.ts +3 -0
- package/dist/components/TagSelect/TagSelect.d.ts +3 -0
- package/dist/components/TagSelect/TagSelect.js +21 -19
- package/dist/components/TagSelect/TagSelect.types.d.ts +9 -0
- package/dist/components/TagSelect/TagSelect.types.js +1 -0
- package/dist/components/TagSelect/TagSelect.variants.d.ts +9 -0
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +9 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -0
- package/dist/components/TextArea/TextArea.js +19 -17
- package/dist/components/TextArea/TextArea.types.d.ts +10 -0
- package/dist/components/TextArea/TextArea.types.js +1 -0
- package/dist/components/TextArea/TextArea.variants.d.ts +3 -0
- package/dist/components/Toast/Toast.d.ts +3 -0
- package/dist/components/Toast/Toast.js +54 -52
- package/dist/components/Toast/Toast.types.d.ts +12 -0
- package/dist/components/Toast/Toast.types.js +1 -0
- package/dist/components/Toast/Toast.variants.d.ts +9 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.js +12 -10
- package/dist/components/Tooltip/Tooltip.types.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.types.js +1 -0
- package/dist/components/Tooltip/Tooltip.variants.d.ts +8 -0
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +4 -0
- package/dist/components/index.d.ts +21 -0
- package/dist/components/index.js +44 -50
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts/theme.context.d.ts +6 -0
- package/dist/contexts/theme.hook.d.ts +7 -0
- package/dist/contexts/theme.provider.d.ts +6 -0
- package/dist/contexts/theme.provider.js +14 -84
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useToggle.d.ts +1 -0
- package/dist/{index-1GLoikpT.js → index-BaNV0qac.js} +6585 -6555
- package/dist/{index-CoqDsznq.js → index-BedjZUuB.js} +1 -1
- package/dist/{index-KEdwcThH.js → index-BtibbG81.js} +1 -1
- package/dist/{index-C5psggHV.js → index-D68N8v8R.js} +17 -17
- package/dist/{index-CJsYodgi.js → index-z-AJyzdv.js} +10 -10
- package/dist/index.d.ts +4 -522
- package/dist/index.js +53 -59
- package/dist/js.cookie-OLEfuq_g.js +74 -0
- package/dist/package.json +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/konstruct.d.ts +4 -0
- package/dist/plugins/konstruct.js +3 -3
- package/dist/plugins/utils/colors.d.ts +328 -0
- package/dist/styles.css +1 -1
- package/dist/styles.d.ts +0 -0
- package/dist/styles.js +1 -1
- package/dist/useBreadcrumb-DxYsZvj_.js +1398 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/{x-DU-Zw-L_.js → x-CRBgmX1Q.js} +1 -1
- package/package.json +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +0 -61
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +0 -90
- package/dist/components/Breadcrumb/components/index.js +0 -4
- package/dist/components/RadioCard/RadioCard.js +0 -41
- package/dist/components/RadioCard/RadioCard.variants.js +0 -19
- package/dist/components/RadioCardGroup/RadioCardGroup.js +0 -47
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +0 -21
- package/dist/components/RadioGroup/RadioGroup.variants.js +0 -21
- package/dist/useBreadcrumb-CojbXFVD.js +0 -1279
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
2
|
import { b, d as h, u as U } from "./index-8vgf-x5i.js";
|
|
3
|
-
import { P as m, d as z, R as H } from "./index-
|
|
3
|
+
import { P as m, d as z, R as H } from "./index-BaNV0qac.js";
|
|
4
4
|
import { u as T } from "./index-DoOsnuB6.js";
|
|
5
5
|
import { jsx as P } from "react/jsx-runtime";
|
|
6
6
|
function K(r, e = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { g as ge } from "./_commonjsHelpers-C6fGbg64.js";
|
|
2
2
|
var V = { exports: {} }, N = { exports: {} }, T = {};
|
|
3
3
|
/** @license React v16.13.1
|
|
4
|
-
* react-is.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
4
|
+
* react-is.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
11
|
var ue;
|
|
12
12
|
function Se() {
|
|
13
13
|
if (ue) return T;
|
|
@@ -76,13 +76,13 @@ function Se() {
|
|
|
76
76
|
}
|
|
77
77
|
var m = {};
|
|
78
78
|
/** @license React v16.13.1
|
|
79
|
-
* react-is.development.js
|
|
80
|
-
*
|
|
81
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the MIT license found in the
|
|
84
|
-
* LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/
|
|
79
|
+
* react-is.development.js
|
|
80
|
+
*
|
|
81
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the MIT license found in the
|
|
84
|
+
* LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/
|
|
86
86
|
var fe;
|
|
87
87
|
function Pe() {
|
|
88
88
|
return fe || (fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
@@ -168,7 +168,7 @@ function Pe() {
|
|
|
168
168
|
}
|
|
169
169
|
var le;
|
|
170
170
|
function he() {
|
|
171
|
-
return le || (le = 1, process.env.NODE_ENV === "production" ? N.exports =
|
|
171
|
+
return le || (le = 1, process.env.NODE_ENV === "production" ? N.exports = Se() : N.exports = Pe()), N.exports;
|
|
172
172
|
}
|
|
173
173
|
/*
|
|
174
174
|
object-assign
|
|
@@ -285,7 +285,7 @@ var ie, be;
|
|
|
285
285
|
function Re() {
|
|
286
286
|
if (be) return ie;
|
|
287
287
|
be = 1;
|
|
288
|
-
var o =
|
|
288
|
+
var o = he(), C = Oe(), O = /* @__PURE__ */ ce(), p = /* @__PURE__ */ Ee(), S = /* @__PURE__ */ _e(), a = function() {
|
|
289
289
|
};
|
|
290
290
|
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
291
291
|
var _ = "Warning: " + l;
|
|
@@ -654,7 +654,7 @@ var me;
|
|
|
654
654
|
function Ce() {
|
|
655
655
|
if (me) return V.exports;
|
|
656
656
|
if (me = 1, process.env.NODE_ENV !== "production") {
|
|
657
|
-
var o =
|
|
657
|
+
var o = he(), C = !0;
|
|
658
658
|
V.exports = /* @__PURE__ */ Re()(o.isElement, C);
|
|
659
659
|
} else
|
|
660
660
|
V.exports = /* @__PURE__ */ xe()();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as d from "react";
|
|
2
2
|
import { c as ae, a as ce, d as _ } from "./index-8vgf-x5i.js";
|
|
3
3
|
import { u as K } from "./index-DoOsnuB6.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { jsx as g, jsxs as le } from "react/jsx-runtime";
|
|
5
|
+
import { a as de, u as ue } from "./index-BxeV34ij.js";
|
|
6
|
+
import { P as T } from "./index-BaNV0qac.js";
|
|
7
|
+
import { c as fe } from "./index-BBjak_0p.js";
|
|
8
8
|
function $(e, [t, n]) {
|
|
9
9
|
return Math.min(n, Math.max(t, e));
|
|
10
10
|
}
|
|
@@ -18,7 +18,7 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
|
|
|
18
18
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
19
19
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
20
20
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
21
|
-
}, M = "Slider", [N, he, Se] =
|
|
21
|
+
}, M = "Slider", [N, he, Se] = fe(M), [W, ke] = ae(M, [
|
|
22
22
|
Se
|
|
23
23
|
]), [ge, B] = W(M), q = d.forwardRef(
|
|
24
24
|
(e, t) => {
|
|
@@ -310,13 +310,13 @@ var L = "SliderThumb", oe = d.forwardRef(
|
|
|
310
310
|
}
|
|
311
311
|
), be = d.forwardRef(
|
|
312
312
|
(e, t) => {
|
|
313
|
-
const { __scopeSlider: n, index: o, name: i, ...c } = e, r = B(L, n), a = Q(L, n), [l, m] = d.useState(null), x = K(t, (D) => m(D)), s = l ? r.form || !!l.closest("form") : !0, u =
|
|
313
|
+
const { __scopeSlider: n, index: o, name: i, ...c } = e, r = B(L, n), a = Q(L, n), [l, m] = d.useState(null), x = K(t, (D) => m(D)), s = l ? r.form || !!l.closest("form") : !0, u = de(l), v = r.values[o], P = v === void 0 ? 0 : re(v, r.min, r.max), S = Re(o, r.values.length), p = u == null ? void 0 : u[a.size], f = p ? De(p, P, a.direction) : 0;
|
|
314
314
|
return d.useEffect(() => {
|
|
315
315
|
if (l)
|
|
316
316
|
return r.thumbs.add(l), () => {
|
|
317
317
|
r.thumbs.delete(l);
|
|
318
318
|
};
|
|
319
|
-
}, [l, r.thumbs]), /* @__PURE__ */
|
|
319
|
+
}, [l, r.thumbs]), /* @__PURE__ */ le(
|
|
320
320
|
"span",
|
|
321
321
|
{
|
|
322
322
|
style: {
|
|
@@ -361,7 +361,7 @@ var L = "SliderThumb", oe = d.forwardRef(
|
|
|
361
361
|
);
|
|
362
362
|
oe.displayName = L;
|
|
363
363
|
var xe = (e) => {
|
|
364
|
-
const { value: t, ...n } = e, o = d.useRef(null), i =
|
|
364
|
+
const { value: t, ...n } = e, o = d.useRef(null), i = ue(t);
|
|
365
365
|
return d.useEffect(() => {
|
|
366
366
|
const c = o.current, r = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(r, "value").set;
|
|
367
367
|
if (i !== t && l) {
|
|
@@ -418,6 +418,6 @@ var He = q, ze = te, Ne = ne, Oe = oe;
|
|
|
418
418
|
export {
|
|
419
419
|
He as R,
|
|
420
420
|
ze as T,
|
|
421
|
-
|
|
422
|
-
|
|
421
|
+
Ne as a,
|
|
422
|
+
Oe as b
|
|
423
423
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,522 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { FC } from 'react';
|
|
6
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
7
|
-
import { HTMLAttributes } from 'react';
|
|
8
|
-
import { HtmlHTMLAttributes } from 'react';
|
|
9
|
-
import { InputHTMLAttributes } from 'react';
|
|
10
|
-
import { PluginCreator } from 'tailwindcss/types/config';
|
|
11
|
-
import { PropsWithChildren } from 'react';
|
|
12
|
-
import { ReactNode } from 'react';
|
|
13
|
-
import { RefAttributes } from 'react';
|
|
14
|
-
import { SliderProps } from '@radix-ui/react-slider';
|
|
15
|
-
import { VariantProps } from 'class-variance-authority';
|
|
16
|
-
|
|
17
|
-
export declare const AlertDialog: FC<AlertDialogProps>;
|
|
18
|
-
|
|
19
|
-
declare interface AlertDialogProps extends PropsWithChildren, VariantProps<typeof buttonAlertDialogVariants> {
|
|
20
|
-
buttonCancelClassName?: string;
|
|
21
|
-
buttonCancelText?: string;
|
|
22
|
-
buttonConfirmClassName?: string;
|
|
23
|
-
buttonConfirmText?: string;
|
|
24
|
-
buttonText?: string;
|
|
25
|
-
className?: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
o?: string;
|
|
28
|
-
title?: string;
|
|
29
|
-
onConfirm?: () => void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export declare const Autocomplete: ForwardRefExoticComponent<AutocompleteProps & RefAttributes<HTMLInputElement>>;
|
|
33
|
-
|
|
34
|
-
declare interface AutocompleteProps extends VariantProps<typeof autocompleteVariants> {
|
|
35
|
-
autoComplete?: 'off';
|
|
36
|
-
className?: string;
|
|
37
|
-
label?: string;
|
|
38
|
-
labelClassName?: string;
|
|
39
|
-
name?: string;
|
|
40
|
-
options: Option_2[];
|
|
41
|
-
placeHolderEmptyValues?: string | ReactNode;
|
|
42
|
-
placeHolderEmptyValuesClassName?: string;
|
|
43
|
-
placeholder?: string;
|
|
44
|
-
onChange(value: string): void;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare const autocompleteVariants: (props?: ({
|
|
48
|
-
variant?: "default" | null | undefined;
|
|
49
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
50
|
-
} & ClassProp) | undefined) => string;
|
|
51
|
-
|
|
52
|
-
export declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
53
|
-
|
|
54
|
-
declare interface BreadcrumbProps extends VariantProps<typeof breadcrumbVariants>, HTMLAttributes<HTMLOListElement> {
|
|
55
|
-
steps: Step[];
|
|
56
|
-
wrapperClassName?: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare const breadcrumbVariants: (props?: ({
|
|
60
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
61
|
-
size?: "base" | "sm" | "lg" | "xl" | null | undefined;
|
|
62
|
-
} & ClassProp) | undefined) => string;
|
|
63
|
-
|
|
64
|
-
export declare const Button: FC<ButtonProps>;
|
|
65
|
-
|
|
66
|
-
declare const buttonAlertDialogVariants: (props?: ({
|
|
67
|
-
theme?: "kubefirst" | "colony" | null | undefined;
|
|
68
|
-
} & ClassProp) | undefined) => string;
|
|
69
|
-
|
|
70
|
-
declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'>, VariantProps<typeof buttonVariants> {
|
|
71
|
-
asChild?: boolean;
|
|
72
|
-
disabled?: boolean;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
declare const buttonVariants: (props?: ({
|
|
76
|
-
variant?: "primary" | "secondary" | "danger" | "text" | "circle" | null | undefined;
|
|
77
|
-
version?: "default" | "alternate" | null | undefined;
|
|
78
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
79
|
-
disabled?: boolean | null | undefined;
|
|
80
|
-
size?: "medium" | "large" | null | undefined;
|
|
81
|
-
} & ClassProp) | undefined) => string;
|
|
82
|
-
|
|
83
|
-
export declare const Card: FC<CardProps>;
|
|
84
|
-
|
|
85
|
-
declare interface CardProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants>, PropsWithChildren {
|
|
86
|
-
isActive?: boolean;
|
|
87
|
-
canHover?: boolean;
|
|
88
|
-
wrapperClassName?: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
declare const cardVariants: (props?: ({
|
|
92
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
93
|
-
isActive?: boolean | null | undefined;
|
|
94
|
-
canHover?: boolean | null | undefined;
|
|
95
|
-
} & ClassProp) | undefined) => string;
|
|
96
|
-
|
|
97
|
-
export declare const Checkbox: FC<CheckboxProps>;
|
|
98
|
-
|
|
99
|
-
declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'checked'>, VariantProps<typeof checkboxVariants> {
|
|
100
|
-
ariaLabelledBy?: string;
|
|
101
|
-
className?: string;
|
|
102
|
-
defaultChecked?: boolean;
|
|
103
|
-
disabled?: boolean;
|
|
104
|
-
id?: string;
|
|
105
|
-
label?: string;
|
|
106
|
-
labelClassName?: string;
|
|
107
|
-
name?: string;
|
|
108
|
-
onChange?: () => void;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
declare const checkboxVariants: (props?: ({
|
|
112
|
-
variant?: "default" | null | undefined;
|
|
113
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
114
|
-
checked?: boolean | null | undefined;
|
|
115
|
-
} & ClassProp) | undefined) => string;
|
|
116
|
-
|
|
117
|
-
export declare const Dropdown: FC<DropdownProps>;
|
|
118
|
-
|
|
119
|
-
declare interface DropdownProps extends VariantProps<typeof dropdownVariants> {
|
|
120
|
-
defaultValue?: string;
|
|
121
|
-
label?: string;
|
|
122
|
-
name?: string;
|
|
123
|
-
options: Option_3[];
|
|
124
|
-
placeholder?: string;
|
|
125
|
-
onChange?: (value: Option_3) => void;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
declare const dropdownVariants: (props?: ({
|
|
129
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
130
|
-
} & ClassProp) | undefined) => string;
|
|
131
|
-
|
|
132
|
-
export declare const Footer: FC<FooterProps>;
|
|
133
|
-
|
|
134
|
-
declare interface FooterProps extends PropsWithChildren, VariantProps<typeof footerVariants> {
|
|
135
|
-
className?: string;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
declare const footerVariants: (props?: ({
|
|
139
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
140
|
-
} & ClassProp) | undefined) => string;
|
|
141
|
-
|
|
142
|
-
export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
|
|
143
|
-
|
|
144
|
-
declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
145
|
-
label?: string;
|
|
146
|
-
labelClassName?: string;
|
|
147
|
-
error?: string;
|
|
148
|
-
onClickIcon?: () => void;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
declare const inputVariants: (props?: ({
|
|
152
|
-
variant?: "default" | "error" | null | undefined;
|
|
153
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
154
|
-
} & ClassProp) | undefined) => string;
|
|
155
|
-
|
|
156
|
-
export declare const konstructPlugin: {
|
|
157
|
-
handler: PluginCreator;
|
|
158
|
-
config?: Partial<Config>;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
export declare const Logo: FC<LogoProps>;
|
|
162
|
-
|
|
163
|
-
declare interface LogoProps extends PropsWithChildren, VariantProps<typeof logoVariants> {
|
|
164
|
-
className?: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
declare const logoVariants: (props?: ({
|
|
168
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
169
|
-
} & ClassProp) | undefined) => string;
|
|
170
|
-
|
|
171
|
-
export declare const Modal: FC<ModalProps> & {
|
|
172
|
-
Header: FC<ModalChildProps>;
|
|
173
|
-
Body: FC<ModalChildProps>;
|
|
174
|
-
Footer: FC<ModalChildProps>;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
declare type ModalChildProps = {
|
|
178
|
-
children: ReactNode;
|
|
179
|
-
className?: string;
|
|
180
|
-
asChild?: boolean;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
declare interface ModalProps extends PropsWithChildren, VariantProps<typeof modalVariants> {
|
|
184
|
-
className?: string;
|
|
185
|
-
buttonCloseClassName?: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
declare const modalVariants: (props?: ({
|
|
189
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
190
|
-
} & ClassProp) | undefined) => string;
|
|
191
|
-
|
|
192
|
-
export declare const Navigation: FC<NavigationProps> & NavigationChildrenProps;
|
|
193
|
-
|
|
194
|
-
declare type NavigationChildrenProps = {
|
|
195
|
-
NavigationGroup: FC<NavigationGroupProps>;
|
|
196
|
-
NavigationOption: FC<NavigationOptionProps>;
|
|
197
|
-
NavigationSeparator: FC<NavigationSeparatorProps>;
|
|
198
|
-
NavigationTitle: FC<NavigationTitleProps>;
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
export declare const NavigationGroup: FC<NavigationGroupProps>;
|
|
202
|
-
|
|
203
|
-
declare interface NavigationGroupProps extends PropsWithChildren, VariantProps<typeof navigationGroupsVariants>, Pick<HtmlHTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
204
|
-
title?: string;
|
|
205
|
-
titleClassName?: string;
|
|
206
|
-
isVisible?: boolean;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
declare const navigationGroupsVariants: (props?: ({
|
|
210
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
211
|
-
} & ClassProp) | undefined) => string;
|
|
212
|
-
|
|
213
|
-
export declare const NavigationOption: FC<NavigationOptionProps>;
|
|
214
|
-
|
|
215
|
-
declare type NavigationOption_2 = VariantProps<typeof navigationOptionVariants> & {
|
|
216
|
-
className?: string;
|
|
217
|
-
isVisible?: boolean;
|
|
218
|
-
isActive?: boolean;
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
declare type NavigationOptionProps = NavigationOption_2 & ({
|
|
222
|
-
role: 'button';
|
|
223
|
-
children: ReactNode;
|
|
224
|
-
onClick: VoidFunction;
|
|
225
|
-
} | {
|
|
226
|
-
role?: never;
|
|
227
|
-
children: ReactNode;
|
|
228
|
-
});
|
|
229
|
-
|
|
230
|
-
declare const navigationOptionVariants: (props?: ({
|
|
231
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
232
|
-
isActive?: boolean | null | undefined;
|
|
233
|
-
} & ClassProp) | undefined) => string;
|
|
234
|
-
|
|
235
|
-
declare interface NavigationProps extends PropsWithChildren, VariantProps<typeof navigationVariants> {
|
|
236
|
-
className?: string;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export declare const NavigationSeparator: FC<NavigationSeparatorProps>;
|
|
240
|
-
|
|
241
|
-
declare interface NavigationSeparatorProps extends Pick<HTMLAttributes<HTMLDivElement>, 'className' | 'style'>, VariantProps<typeof navigationSeparatorVariant> {
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
declare const navigationSeparatorVariant: (props?: ({
|
|
245
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
246
|
-
} & ClassProp) | undefined) => string;
|
|
247
|
-
|
|
248
|
-
declare interface NavigationTitleProps extends VariantProps<typeof navigationTitleVariants>, Pick<HtmlHTMLAttributes<HTMLHeadingElement>, 'className'> {
|
|
249
|
-
title: string;
|
|
250
|
-
className?: string;
|
|
251
|
-
isVisible?: boolean;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
declare const navigationTitleVariants: (props?: ({
|
|
255
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
256
|
-
} & ClassProp) | undefined) => string;
|
|
257
|
-
|
|
258
|
-
declare const navigationVariants: (props?: ({
|
|
259
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
260
|
-
} & ClassProp) | undefined) => string;
|
|
261
|
-
|
|
262
|
-
export declare const NumberInput: FC<NumberInputProps>;
|
|
263
|
-
|
|
264
|
-
declare interface NumberInputProps extends VariantProps<typeof numberInputVariants> {
|
|
265
|
-
className?: string;
|
|
266
|
-
init?: number;
|
|
267
|
-
label?: string;
|
|
268
|
-
max?: number;
|
|
269
|
-
min?: number;
|
|
270
|
-
name?: string;
|
|
271
|
-
onChange?: (value: number) => void;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
declare const numberInputVariants: (props?: ({
|
|
275
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
276
|
-
} & ClassProp) | undefined) => string;
|
|
277
|
-
|
|
278
|
-
declare type Option_2 = {
|
|
279
|
-
value: string;
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
declare type Option_3 = {
|
|
283
|
-
label: string | ReactNode;
|
|
284
|
-
leftIcon?: ReactNode | string;
|
|
285
|
-
value: string;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
export declare const ProgressBar: FC<ProgressBarProps>;
|
|
289
|
-
|
|
290
|
-
declare interface ProgressBarProps extends VariantProps<typeof progressBarVariants> {
|
|
291
|
-
className?: string;
|
|
292
|
-
label?: string;
|
|
293
|
-
percent: number;
|
|
294
|
-
status?: 'success' | 'progress';
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
declare const progressBarVariants: (props?: ({
|
|
298
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
299
|
-
} & ClassProp) | undefined) => string;
|
|
300
|
-
|
|
301
|
-
export declare const Radio: FC<RadioProps>;
|
|
302
|
-
|
|
303
|
-
export declare const RadioCard: FC<RadioCardProps>;
|
|
304
|
-
|
|
305
|
-
export declare const RadioCardGroup: FC<RadioCardGroupProps>;
|
|
306
|
-
|
|
307
|
-
declare type RadioCardGroupProps = {
|
|
308
|
-
asChild?: boolean;
|
|
309
|
-
className?: string;
|
|
310
|
-
defaultChecked?: string;
|
|
311
|
-
direction?: 'row' | 'col';
|
|
312
|
-
name: string;
|
|
313
|
-
options: Omit<RadioCardProps, 'name' | 'checked' | 'defaultChecked'>[];
|
|
314
|
-
theme?: RadioCardProps['theme'];
|
|
315
|
-
wrapperClassName?: string;
|
|
316
|
-
onValueChange?: (value: string) => void;
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
declare type RadioCardProps = Omit<CardProps, 'canHover' | 'isActive'> & Pick<RadioProps, 'name' | 'value' | 'checked' | 'onChange' | 'label' | 'disabled' | 'defaultChecked' | 'labelTextClassName'> & {
|
|
320
|
-
labelWrapperClassName?: string;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
export declare const RadioGroup: FC<RadioGroupProps>;
|
|
324
|
-
|
|
325
|
-
declare interface RadioGroupProps {
|
|
326
|
-
asChild?: boolean;
|
|
327
|
-
className?: RadioProps['className'];
|
|
328
|
-
defaultChecked?: string;
|
|
329
|
-
direction?: 'row' | 'col';
|
|
330
|
-
label?: string | ReactNode;
|
|
331
|
-
name: string;
|
|
332
|
-
options: Omit<RadioProps, 'name' | 'checked' | 'defaultChecked'>[];
|
|
333
|
-
theme?: RadioProps['theme'];
|
|
334
|
-
wrapperClassName?: string;
|
|
335
|
-
onValueChange?: (value: string) => void;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'disabled'>, VariantProps<typeof radioVariants> {
|
|
339
|
-
checked?: boolean;
|
|
340
|
-
defaultChecked?: boolean;
|
|
341
|
-
disabled?: boolean;
|
|
342
|
-
label?: string | ReactNode;
|
|
343
|
-
labelTextClassName?: string;
|
|
344
|
-
name: string;
|
|
345
|
-
value: string;
|
|
346
|
-
wrapperClassName?: string;
|
|
347
|
-
onChange?: (value: string) => void;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
declare const radioVariants: (props?: ({
|
|
351
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
352
|
-
disabled?: boolean | null | undefined;
|
|
353
|
-
checked?: boolean | null | undefined;
|
|
354
|
-
} & ClassProp) | undefined) => string;
|
|
355
|
-
|
|
356
|
-
declare const Range_2: FC<RangeProps>;
|
|
357
|
-
export { Range_2 as Range }
|
|
358
|
-
|
|
359
|
-
declare interface RangeProps extends VariantProps<typeof rangeVariants> {
|
|
360
|
-
className?: string;
|
|
361
|
-
defaultValue?: SliderProps['defaultValue'];
|
|
362
|
-
label?: string;
|
|
363
|
-
max?: SliderProps['max'];
|
|
364
|
-
min?: SliderProps['min'];
|
|
365
|
-
name?: string;
|
|
366
|
-
showValue?: boolean;
|
|
367
|
-
size?: 'sm' | 'md' | 'lg';
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
declare const rangeVariants: (props?: ({
|
|
371
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
372
|
-
} & ClassProp) | undefined) => string;
|
|
373
|
-
|
|
374
|
-
export declare const Sidebar: FC<SidebarProps> & SidebarChildrenProps;
|
|
375
|
-
|
|
376
|
-
declare type SidebarChildrenProps = {
|
|
377
|
-
Footer: FC<FooterProps>;
|
|
378
|
-
Logo: FC<LogoProps>;
|
|
379
|
-
Navigation: FC<NavigationProps>;
|
|
380
|
-
NavigationGroup: FC<NavigationGroupProps>;
|
|
381
|
-
NavigationOption: FC<NavigationOptionProps>;
|
|
382
|
-
NavigationSeparator: FC<NavigationSeparatorProps>;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
declare interface SidebarProps extends VariantProps<typeof wrapperSiderbarVariants>, PropsWithChildren {
|
|
386
|
-
wrapperClassName?: string;
|
|
387
|
-
minWith?: number;
|
|
388
|
-
maxWith?: number;
|
|
389
|
-
canResize?: boolean;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
export declare const Slider: FC<SliderProps_2>;
|
|
393
|
-
|
|
394
|
-
declare interface SliderProps_2 extends VariantProps<typeof sliderVariants> {
|
|
395
|
-
className?: string;
|
|
396
|
-
defaultValue?: SliderProps['defaultValue'];
|
|
397
|
-
label?: string;
|
|
398
|
-
max?: SliderProps['max'];
|
|
399
|
-
min?: SliderProps['min'];
|
|
400
|
-
name?: string;
|
|
401
|
-
showValue?: boolean;
|
|
402
|
-
size?: 'sm' | 'md' | 'lg';
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
declare const sliderVariants: (props?: ({
|
|
406
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
407
|
-
} & ClassProp) | undefined) => string;
|
|
408
|
-
|
|
409
|
-
declare type Step = {
|
|
410
|
-
label: string;
|
|
411
|
-
to?: string;
|
|
412
|
-
target?: '_self' | '_blank';
|
|
413
|
-
isActive?: boolean;
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
export declare const Switch: FC<SwitchProps>;
|
|
417
|
-
|
|
418
|
-
declare interface SwitchProps extends VariantProps<typeof switchVariants> {
|
|
419
|
-
alignment?: 'horizontal' | 'vertical';
|
|
420
|
-
className?: string;
|
|
421
|
-
defaultChecked?: boolean;
|
|
422
|
-
label?: string;
|
|
423
|
-
name?: string;
|
|
424
|
-
thumbClassName?: string;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
declare const switchVariants: (props?: ({
|
|
428
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
429
|
-
} & ClassProp) | undefined) => string;
|
|
430
|
-
|
|
431
|
-
export declare const Tag: FC<TagProps>;
|
|
432
|
-
|
|
433
|
-
declare type TagProps = {
|
|
434
|
-
label: string;
|
|
435
|
-
color?: 'gray' | 'cyan' | 'gold' | 'green' | 'light blue' | 'lime' | 'pink' | 'purple' | 'emerald' | 'fuscia' | 'indigo' | 'light-orange' | 'dark-sky-blue' | 'mistery';
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
export declare const TagSelect: FC<TagSelectProps>;
|
|
439
|
-
|
|
440
|
-
declare interface TagSelectProps extends VariantProps<typeof tagSelectVariants> {
|
|
441
|
-
label?: string;
|
|
442
|
-
options: TagProps[];
|
|
443
|
-
name?: string;
|
|
444
|
-
placeholder?: string;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
declare const tagSelectVariants: (props?: ({
|
|
448
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
449
|
-
} & ClassProp) | undefined) => string;
|
|
450
|
-
|
|
451
|
-
export declare const TextArea: FC<TextAreaProps>;
|
|
452
|
-
|
|
453
|
-
declare interface TextAreaProps extends InputHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
|
|
454
|
-
rows?: number;
|
|
455
|
-
label?: string;
|
|
456
|
-
name?: string;
|
|
457
|
-
initialValue?: string;
|
|
458
|
-
onChange?: () => void;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
declare const textAreaVariants: (props?: ({
|
|
462
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
463
|
-
} & ClassProp) | undefined) => string;
|
|
464
|
-
|
|
465
|
-
export declare type Theme = 'kubefirst' | 'colony' | 'civo' | undefined;
|
|
466
|
-
|
|
467
|
-
export declare const ThemeContext: Context<ThemeContextType>;
|
|
468
|
-
|
|
469
|
-
export declare type ThemeContextProps = PropsWithChildren & {
|
|
470
|
-
theme?: ThemeContextType['theme'];
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
export declare type ThemeContextType = {
|
|
474
|
-
theme: Theme;
|
|
475
|
-
setTheme: (theme: Theme) => void;
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
declare type ThemeProps = {
|
|
479
|
-
theme?: Theme;
|
|
480
|
-
setTheme?: (theme: Theme) => void;
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
export declare const ThemeProvider: FC<ThemeContextProps>;
|
|
484
|
-
|
|
485
|
-
export declare const Toast: FC<ToastProps>;
|
|
486
|
-
|
|
487
|
-
declare interface ToastProps extends PropsWithChildren, VariantProps<typeof toastVariants> {
|
|
488
|
-
className?: string;
|
|
489
|
-
description: string | ReactNode;
|
|
490
|
-
descriptionClassName?: string;
|
|
491
|
-
duration?: number;
|
|
492
|
-
showCloseButton?: boolean;
|
|
493
|
-
title: string | ReactNode;
|
|
494
|
-
titleClassName?: string;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
declare const toastVariants: (props?: ({
|
|
498
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
499
|
-
} & ClassProp) | undefined) => string;
|
|
500
|
-
|
|
501
|
-
export declare const Tooltip: FC<TooltipProps>;
|
|
502
|
-
|
|
503
|
-
declare interface TooltipProps extends PropsWithChildren, VariantProps<typeof tooltipVariants> {
|
|
504
|
-
content: ReactNode | string;
|
|
505
|
-
className?: string;
|
|
506
|
-
wrapperClassName?: string;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
declare const tooltipVariants: (props?: ({
|
|
510
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
511
|
-
position?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
512
|
-
} & ClassProp) | undefined) => string;
|
|
513
|
-
|
|
514
|
-
export declare const useTheme: () => ThemeProps;
|
|
515
|
-
|
|
516
|
-
export declare const useToggle: (initialState?: boolean) => [boolean, (value?: boolean) => void];
|
|
517
|
-
|
|
518
|
-
declare const wrapperSiderbarVariants: (props?: ({
|
|
519
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
520
|
-
} & ClassProp) | undefined) => string;
|
|
521
|
-
|
|
522
|
-
export { }
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './contexts';
|
|
3
|
+
export * from './hooks';
|
|
4
|
+
export * from './plugins';
|