@konstructio/ui 0.0.12-alpha.1 → 0.0.12-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.
Files changed (58) hide show
  1. package/dist/{Combination-BQYb0Gw7.js → Combination-b348x__d.js} +24 -24
  2. package/dist/{Modal-W2GbkC_F.js → Modal-DZUwNzSW.js} +315 -307
  3. package/dist/components/Alert/Alert.js +58 -0
  4. package/dist/components/Alert/Alert.variants.js +77 -0
  5. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  6. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  7. package/dist/components/AlertDialog/components/index.js +1 -1
  8. package/dist/components/Autocomplete/components/List/List.js +3 -3
  9. package/dist/components/Breadcrumb/Breadcrumb.js +3 -3
  10. package/dist/components/Breadcrumb/components/Item/Item.js +4 -4
  11. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  12. package/dist/components/Button/Button.js +1 -1
  13. package/dist/components/Card/Card.js +3 -3
  14. package/dist/components/Checkbox/Checkbox.js +5 -5
  15. package/dist/components/Divider/Divider.js +10 -0
  16. package/dist/components/Divider/Divider.variants.js +14 -0
  17. package/dist/components/Loading/Loading.js +28 -0
  18. package/dist/components/Loading/Loading.variants.js +20 -0
  19. package/dist/components/Modal/Modal.js +2 -2
  20. package/dist/components/Modal/components/Body/Body.js +1 -1
  21. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  22. package/dist/components/Modal/components/Header/Header.js +1 -1
  23. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  24. package/dist/components/Modal/components/index.js +1 -1
  25. package/dist/components/NumberInput/NumberInput.js +1 -1
  26. package/dist/components/ProgressBar/ProgressBar.js +3 -3
  27. package/dist/components/Radio/Radio.js +4 -4
  28. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  29. package/dist/components/Range/Range.js +4 -4
  30. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +3 -3
  31. package/dist/components/Slider/Slider.js +14 -14
  32. package/dist/components/Switch/Switch.js +17 -17
  33. package/dist/components/TagSelect/TagSelect.js +3 -3
  34. package/dist/components/Toast/Toast.js +11 -11
  35. package/dist/components/Tooltip/Tooltip.js +4 -4
  36. package/dist/components/Typography/Typography.js +30 -0
  37. package/dist/components/Typography/Typography.variants.js +36 -0
  38. package/dist/components/index.js +61 -53
  39. package/dist/{index-BVppSRDQ.js → index-3jTPaVvh.js} +9 -9
  40. package/dist/{index-BxeV34ij.js → index-4ecjw_Aj.js} +1 -1
  41. package/dist/{index-CoqDsznq.js → index-B33at13_.js} +3 -3
  42. package/dist/{index-1GLoikpT.js → index-BTeAm7mx.js} +6808 -6809
  43. package/dist/index-B_6_jmOO.js +68 -0
  44. package/dist/{index-BBjak_0p.js → index-BbsJ0VIJ.js} +2 -2
  45. package/dist/{index-CJsYodgi.js → index-C6WtlN_F.js} +9 -9
  46. package/dist/{index-8vgf-x5i.js → index-Cva-e5M4.js} +2 -2
  47. package/dist/{index-D4Q2rMby.js → index-Dj1pom3_.js} +2 -2
  48. package/dist/{index-KEdwcThH.js → index-Z1voPZOH.js} +1 -1
  49. package/dist/index.d.ts +41 -2
  50. package/dist/index.js +76 -68
  51. package/dist/package.json +27 -28
  52. package/dist/plugins/konstruct.js +34 -31
  53. package/dist/plugins/utils/animation.styles.js +162 -0
  54. package/dist/plugins/utils/index.js +7 -0
  55. package/dist/styles.css +1 -1
  56. package/dist/{useBreadcrumb-CojbXFVD.js → useBreadcrumb-BsIeMoR1.js} +47 -47
  57. package/package.json +27 -28
  58. package/dist/index-DoOsnuB6.js +0 -72
@@ -0,0 +1,68 @@
1
+ import * as i from "react";
2
+ import { jsx as c, Fragment as m } from "react/jsx-runtime";
3
+ function p(e, r) {
4
+ if (typeof e == "function")
5
+ return e(r);
6
+ e != null && (e.current = r);
7
+ }
8
+ function d(...e) {
9
+ return (r) => {
10
+ let n = !1;
11
+ const o = e.map((t) => {
12
+ const l = p(t, r);
13
+ return !n && typeof l == "function" && (n = !0), l;
14
+ });
15
+ if (n)
16
+ return () => {
17
+ for (let t = 0; t < o.length; t++) {
18
+ const l = o[t];
19
+ typeof l == "function" ? l() : p(e[t], null);
20
+ }
21
+ };
22
+ };
23
+ }
24
+ function S(...e) {
25
+ return i.useCallback(d(...e), e);
26
+ }
27
+ var y = i.forwardRef((e, r) => {
28
+ const { children: n, ...o } = e, t = i.Children.toArray(n), l = t.find(h);
29
+ if (l) {
30
+ const s = l.props.children, a = t.map((f) => f === l ? i.Children.count(s) > 1 ? i.Children.only(null) : i.isValidElement(s) ? s.props.children : null : f);
31
+ return /* @__PURE__ */ c(u, { ...o, ref: r, children: i.isValidElement(s) ? i.cloneElement(s, void 0, a) : null });
32
+ }
33
+ return /* @__PURE__ */ c(u, { ...o, ref: r, children: n });
34
+ });
35
+ y.displayName = "Slot";
36
+ var u = i.forwardRef((e, r) => {
37
+ const { children: n, ...o } = e;
38
+ if (i.isValidElement(n)) {
39
+ const t = R(n), l = C(o, n.props);
40
+ return n.type !== i.Fragment && (l.ref = r ? d(r, t) : t), i.cloneElement(n, l);
41
+ }
42
+ return i.Children.count(n) > 1 ? i.Children.only(null) : null;
43
+ });
44
+ u.displayName = "SlotClone";
45
+ var g = ({ children: e }) => /* @__PURE__ */ c(m, { children: e });
46
+ function h(e) {
47
+ return i.isValidElement(e) && e.type === g;
48
+ }
49
+ function C(e, r) {
50
+ const n = { ...r };
51
+ for (const o in r) {
52
+ const t = e[o], l = r[o];
53
+ /^on[A-Z]/.test(o) ? t && l ? n[o] = (...a) => {
54
+ l(...a), t(...a);
55
+ } : t && (n[o] = t) : o === "style" ? n[o] = { ...t, ...l } : o === "className" && (n[o] = [t, l].filter(Boolean).join(" "));
56
+ }
57
+ return { ...e, ...n };
58
+ }
59
+ function R(e) {
60
+ var o, t;
61
+ let r = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = r && "isReactWarning" in r && r.isReactWarning;
62
+ return n ? e.ref : (r = (t = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : t.get, n = r && "isReactWarning" in r && r.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
63
+ }
64
+ export {
65
+ y as S,
66
+ g as a,
67
+ S as u
68
+ };
@@ -1,6 +1,6 @@
1
1
  import n from "react";
2
- import { c as O } from "./index-8vgf-x5i.js";
3
- import { u as I, S as x } from "./index-DoOsnuB6.js";
2
+ import { c as O } from "./index-Cva-e5M4.js";
3
+ import { u as I, S as x } from "./index-B_6_jmOO.js";
4
4
  import { jsx as m } from "react/jsx-runtime";
5
5
  function L(s) {
6
6
  const f = s + "CollectionProvider", [A, N] = O(f), [_, a] = A(
@@ -1,9 +1,9 @@
1
1
  import * as d from "react";
2
- import { c as ae, a as ce, d as _ } from "./index-8vgf-x5i.js";
3
- import { u as K } from "./index-DoOsnuB6.js";
4
- import { a as le, u as de } from "./index-BxeV34ij.js";
5
- import { P as T } from "./index-1GLoikpT.js";
6
- import { c as ue } from "./index-BBjak_0p.js";
2
+ import { a as ae, c as ce, b as _ } from "./index-Cva-e5M4.js";
3
+ import { u as K } from "./index-B_6_jmOO.js";
4
+ import { a as le, u as de } from "./index-4ecjw_Aj.js";
5
+ import { P as T } from "./index-BTeAm7mx.js";
6
+ import { c as ue } from "./index-BbsJ0VIJ.js";
7
7
  import { jsx as g, jsxs as fe } from "react/jsx-runtime";
8
8
  function $(e, [t, n]) {
9
9
  return Math.min(n, Math.max(t, e));
@@ -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] = ue(M), [W, ke] = ae(M, [
21
+ }, M = "Slider", [N, he, Se] = ue(M), [W, ke] = ce(M, [
22
22
  Se
23
23
  ]), [ge, B] = W(M), q = d.forwardRef(
24
24
  (e, t) => {
@@ -39,7 +39,7 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
39
39
  inverted: v = !1,
40
40
  form: P,
41
41
  ...S
42
- } = e, p = d.useRef(/* @__PURE__ */ new Set()), f = d.useRef(0), w = r === "horizontal" ? ve : we, [h = [], A] = ce({
42
+ } = e, p = d.useRef(/* @__PURE__ */ new Set()), f = d.useRef(0), w = r === "horizontal" ? ve : we, [h = [], A] = ae({
43
43
  prop: x,
44
44
  defaultProp: m,
45
45
  onChange: (b) => {
@@ -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
- Oe as a,
422
- Ne as b
421
+ Ne as a,
422
+ Oe as b
423
423
  };
@@ -110,9 +110,9 @@ function $({
110
110
  }
111
111
  export {
112
112
  j as a,
113
- P as b,
113
+ M as b,
114
114
  y as c,
115
- M as d,
115
+ P as d,
116
116
  _ as e,
117
117
  R as u
118
118
  };
@@ -1,6 +1,6 @@
1
1
  import * as a from "react";
2
- import { u as T } from "./index-DoOsnuB6.js";
3
- import { u as A } from "./index-8vgf-x5i.js";
2
+ import { u as T } from "./index-B_6_jmOO.js";
3
+ import { u as A } from "./index-Cva-e5M4.js";
4
4
  function E(n, e) {
5
5
  return a.useReducer((r, t) => e[r][t] ?? r, n);
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import * as e from "react";
2
- import { P as o } from "./index-1GLoikpT.js";
2
+ import { P as o } from "./index-BTeAm7mx.js";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  var d = "VisuallyHidden", a = e.forwardRef(
5
5
  (r, i) => /* @__PURE__ */ t(
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { Config } from 'tailwindcss/types/config';
4
4
  import { Context } from 'react';
5
5
  import { FC } from 'react';
6
6
  import { ForwardRefExoticComponent } from 'react';
7
+ import { FunctionComponent } from 'react';
7
8
  import { HTMLAttributes } from 'react';
8
9
  import { HtmlHTMLAttributes } from 'react';
9
10
  import { InputHTMLAttributes } from 'react';
@@ -14,6 +15,8 @@ import { RefAttributes } from 'react';
14
15
  import { SliderProps } from '@radix-ui/react-slider';
15
16
  import { VariantProps } from 'class-variance-authority';
16
17
 
18
+ export declare const Alert: FC<AlertProps>;
19
+
17
20
  export declare const AlertDialog: FC<AlertDialogProps>;
18
21
 
19
22
  declare interface AlertDialogProps extends PropsWithChildren, VariantProps<typeof buttonAlertDialogVariants> {
@@ -29,6 +32,19 @@ declare interface AlertDialogProps extends PropsWithChildren, VariantProps<typeo
29
32
  onConfirm?: () => void;
30
33
  }
31
34
 
35
+ declare interface AlertProps extends VariantProps<typeof alertVariants> {
36
+ dismissible?: boolean;
37
+ content: string | ReactNode;
38
+ isVisible?: boolean;
39
+ showCloseButton?: boolean;
40
+ }
41
+
42
+ declare const alertVariants: (props?: ({
43
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
44
+ type?: "sucess" | "info" | "warning" | "danger" | null | undefined;
45
+ isVisible?: boolean | null | undefined;
46
+ } & ClassProp) | undefined) => string;
47
+
32
48
  export declare const Autocomplete: ForwardRefExoticComponent<AutocompleteProps & RefAttributes<HTMLInputElement>>;
33
49
 
34
50
  declare interface AutocompleteProps extends VariantProps<typeof autocompleteVariants> {
@@ -73,7 +89,7 @@ declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
73
89
  }
74
90
 
75
91
  declare const buttonVariants: (props?: ({
76
- variant?: "primary" | "secondary" | "danger" | "text" | "circle" | null | undefined;
92
+ variant?: "danger" | "circle" | "text" | "primary" | "secondary" | null | undefined;
77
93
  version?: "default" | "alternate" | null | undefined;
78
94
  theme?: "kubefirst" | "colony" | "civo" | null | undefined;
79
95
  disabled?: boolean | null | undefined;
@@ -114,6 +130,8 @@ declare const checkboxVariants: (props?: ({
114
130
  checked?: boolean | null | undefined;
115
131
  } & ClassProp) | undefined) => string;
116
132
 
133
+ export declare const Divider: FunctionComponent<HTMLAttributes<HTMLDivElement>>;
134
+
117
135
  export declare const Dropdown: FC<DropdownProps>;
118
136
 
119
137
  declare interface DropdownProps extends VariantProps<typeof dropdownVariants> {
@@ -149,7 +167,7 @@ declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, Vari
149
167
  }
150
168
 
151
169
  declare const inputVariants: (props?: ({
152
- variant?: "default" | "error" | null | undefined;
170
+ variant?: "error" | "default" | null | undefined;
153
171
  theme?: "kubefirst" | "colony" | "civo" | null | undefined;
154
172
  } & ClassProp) | undefined) => string;
155
173
 
@@ -158,6 +176,16 @@ export declare const konstructPlugin: {
158
176
  config?: Partial<Config>;
159
177
  };
160
178
 
179
+ export declare const Loading: FunctionComponent<LoadingProps>;
180
+
181
+ declare interface LoadingProps extends InputHTMLAttributes<SVGSVGElement>, VariantProps<typeof loadingVariants> {
182
+ }
183
+
184
+ declare const loadingVariants: (props?: ({
185
+ variant?: "default" | null | undefined;
186
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
187
+ } & ClassProp) | undefined) => string;
188
+
161
189
  export declare const Logo: FC<LogoProps>;
162
190
 
163
191
  declare interface LogoProps extends PropsWithChildren, VariantProps<typeof logoVariants> {
@@ -511,6 +539,17 @@ declare const tooltipVariants: (props?: ({
511
539
  position?: "left" | "right" | "top" | "bottom" | null | undefined;
512
540
  } & ClassProp) | undefined) => string;
513
541
 
542
+ export declare const Typography: FunctionComponent<TypographyProps>;
543
+
544
+ declare interface TypographyProps extends InputHTMLAttributes<HTMLParagraphElement>, VariantProps<typeof typographyVariants> {
545
+ children: React.ReactNode;
546
+ }
547
+
548
+ declare const typographyVariants: (props?: ({
549
+ variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "tooltip" | "subtitle1" | "subtitle2" | "subtitle3" | "labelLarge" | "labelMedium" | "labelSmall" | "buttonSmall" | "body1" | "body2" | "body3" | null | undefined;
550
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
551
+ } & ClassProp) | undefined) => string;
552
+
514
553
  export declare const useTheme: () => ThemeProps;
515
554
 
516
555
  export declare const useToggle: (initialState?: boolean) => [boolean, (value?: boolean) => void];
package/dist/index.js CHANGED
@@ -1,72 +1,80 @@
1
- import { AlertDialog as e } from "./components/AlertDialog/AlertDialog.js";
2
- import { Autocomplete as p } from "./components/Autocomplete/Autocomplete.js";
3
- import { Breadcrumb as x } from "./components/Breadcrumb/Breadcrumb.js";
4
- import { Button as a } from "./components/Button/Button.js";
5
- import { Card as d } from "./components/Card/Card.js";
6
- import { Checkbox as n } from "./components/Checkbox/Checkbox.js";
7
- import { Dropdown as l } from "./components/Dropdown/Dropdown.js";
8
- import { Input as s } from "./components/Input/Input.js";
9
- import { M as h } from "./Modal-W2GbkC_F.js";
10
- import { NumberInput as C } from "./components/NumberInput/NumberInput.js";
11
- import { ProgressBar as R } from "./components/ProgressBar/ProgressBar.js";
12
- import { Radio as b } from "./components/Radio/Radio.js";
13
- import { RadioCard as B } from "./components/RadioCard/RadioCard.js";
14
- import { RadioCardGroup as P } from "./components/RadioCardGroup/RadioCardGroup.js";
15
- import { RadioGroup as w } from "./components/RadioGroup/RadioGroup.js";
16
- import { Range as I } from "./components/Range/Range.js";
1
+ import { Alert as e } from "./components/Alert/Alert.js";
2
+ import { AlertDialog as p } from "./components/AlertDialog/AlertDialog.js";
3
+ import { Autocomplete as x } from "./components/Autocomplete/Autocomplete.js";
4
+ import { Breadcrumb as a } from "./components/Breadcrumb/Breadcrumb.js";
5
+ import { Button as d } from "./components/Button/Button.js";
6
+ import { Card as n } from "./components/Card/Card.js";
7
+ import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
8
+ import { Dropdown as s } from "./components/Dropdown/Dropdown.js";
9
+ import { Input as h } from "./components/Input/Input.js";
10
+ import { M as C } from "./Modal-DZUwNzSW.js";
11
+ import { NumberInput as R } from "./components/NumberInput/NumberInput.js";
12
+ import { ProgressBar as b } from "./components/ProgressBar/ProgressBar.js";
13
+ import { Radio as B } from "./components/Radio/Radio.js";
14
+ import { RadioCard as G } from "./components/RadioCard/RadioCard.js";
15
+ import { RadioCardGroup as k } from "./components/RadioCardGroup/RadioCardGroup.js";
16
+ import { RadioGroup as y } from "./components/RadioGroup/RadioGroup.js";
17
+ import { Range as L } from "./components/Range/Range.js";
17
18
  import { Footer as F } from "./components/Sidebar/components/Footer/Footer.js";
18
- import { Logo as O } from "./components/Sidebar/components/Logo/Logo.js";
19
- import { Navigation as q } from "./components/Sidebar/components/Navigation/Navigation.js";
20
- import { NavigationGroup as z } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
21
- import { NavigationOption as H } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
22
- import { NavigationSeparator as K } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
23
- import { Sidebar as U } from "./components/Sidebar/Sidebar.js";
24
- import { Slider as W } from "./components/Slider/Slider.js";
25
- import { Switch as Y } from "./components/Switch/Switch.js";
26
- import { Tag as _ } from "./components/Tag/Tag.js";
27
- import { TagSelect as oo } from "./components/TagSelect/TagSelect.js";
28
- import { TextArea as eo } from "./components/TextArea/TextArea.js";
29
- import { Toast as po } from "./components/Toast/Toast.js";
30
- import { Tooltip as xo } from "./components/Tooltip/Tooltip.js";
31
- import { ThemeContext as ao } from "./contexts/theme.context.js";
32
- import { useTheme as go } from "./contexts/theme.hook.js";
33
- import { ThemeProvider as uo } from "./contexts/theme.provider.js";
34
- import { useToggle as To } from "./hooks/useToggle.js";
35
- import { konstructPlugin as co } from "./plugins/konstruct.js";
19
+ import { Logo as j } from "./components/Sidebar/components/Logo/Logo.js";
20
+ import { Navigation as z } from "./components/Sidebar/components/Navigation/Navigation.js";
21
+ import { NavigationGroup as H } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
22
+ import { NavigationOption as K } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
23
+ import { NavigationSeparator as U } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
24
+ import { Sidebar as W } from "./components/Sidebar/Sidebar.js";
25
+ import { Slider as Y } from "./components/Slider/Slider.js";
26
+ import { Switch as _ } from "./components/Switch/Switch.js";
27
+ import { Tag as oo } from "./components/Tag/Tag.js";
28
+ import { TagSelect as eo } from "./components/TagSelect/TagSelect.js";
29
+ import { TextArea as po } from "./components/TextArea/TextArea.js";
30
+ import { Toast as xo } from "./components/Toast/Toast.js";
31
+ import { Tooltip as ao } from "./components/Tooltip/Tooltip.js";
32
+ import { Loading as go } from "./components/Loading/Loading.js";
33
+ import { Typography as uo } from "./components/Typography/Typography.js";
34
+ import { Divider as To } from "./components/Divider/Divider.js";
35
+ import { ThemeContext as co } from "./contexts/theme.context.js";
36
+ import { useTheme as vo } from "./contexts/theme.hook.js";
37
+ import { ThemeProvider as No } from "./contexts/theme.provider.js";
38
+ import { useToggle as So } from "./hooks/useToggle.js";
39
+ import { konstructPlugin as Ao } from "./plugins/konstruct.js";
36
40
  export {
37
- e as AlertDialog,
38
- p as Autocomplete,
39
- x as Breadcrumb,
40
- a as Button,
41
- d as Card,
42
- n as Checkbox,
43
- l as Dropdown,
41
+ e as Alert,
42
+ p as AlertDialog,
43
+ x as Autocomplete,
44
+ a as Breadcrumb,
45
+ d as Button,
46
+ n as Card,
47
+ l as Checkbox,
48
+ To as Divider,
49
+ s as Dropdown,
44
50
  F as Footer,
45
- s as Input,
46
- O as Logo,
47
- h as Modal,
48
- q as Navigation,
49
- z as NavigationGroup,
50
- H as NavigationOption,
51
- K as NavigationSeparator,
52
- C as NumberInput,
53
- R as ProgressBar,
54
- b as Radio,
55
- B as RadioCard,
56
- P as RadioCardGroup,
57
- w as RadioGroup,
58
- I as Range,
59
- U as Sidebar,
60
- W as Slider,
61
- Y as Switch,
62
- _ as Tag,
63
- oo as TagSelect,
64
- eo as TextArea,
65
- ao as ThemeContext,
66
- uo as ThemeProvider,
67
- po as Toast,
68
- xo as Tooltip,
69
- co as konstructPlugin,
70
- go as useTheme,
71
- To as useToggle
51
+ h as Input,
52
+ go as Loading,
53
+ j as Logo,
54
+ C as Modal,
55
+ z as Navigation,
56
+ H as NavigationGroup,
57
+ K as NavigationOption,
58
+ U as NavigationSeparator,
59
+ R as NumberInput,
60
+ b as ProgressBar,
61
+ B as Radio,
62
+ G as RadioCard,
63
+ k as RadioCardGroup,
64
+ y as RadioGroup,
65
+ L as Range,
66
+ W as Sidebar,
67
+ Y as Slider,
68
+ _ as Switch,
69
+ oo as Tag,
70
+ eo as TagSelect,
71
+ po as TextArea,
72
+ co as ThemeContext,
73
+ No as ThemeProvider,
74
+ xo as Toast,
75
+ ao as Tooltip,
76
+ uo as Typography,
77
+ Ao as konstructPlugin,
78
+ vo as useTheme,
79
+ So as useToggle
72
80
  };
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.0.12-alpha.0",
5
+ "version": "0.0.12-alpha.1",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -45,7 +45,6 @@
45
45
  "check:types": "tsc -p tsconfig.json",
46
46
  "ci": "npm run build && npm run check:prettier && vitest run",
47
47
  "deps:update": "npx npm-check-updates --interactive --format group",
48
- "dev": "vite",
49
48
  "format:prettier": "prettier lib --write './**/*.{js,jsx,ts,tsx}' --config ./.prettierrc",
50
49
  "lint": "eslint lib --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
51
50
  "prepare": "husky",
@@ -56,18 +55,18 @@
56
55
  "test:watch": "vitest dev"
57
56
  },
58
57
  "dependencies": {
59
- "@radix-ui/react-alert-dialog": "^1.1.5",
60
- "@radix-ui/react-checkbox": "^1.1.3",
61
- "@radix-ui/react-slider": "^1.2.2",
62
- "@radix-ui/react-slot": "^1.1.1",
63
- "@radix-ui/react-switch": "^1.1.2",
64
- "@radix-ui/react-toast": "^1.2.5",
65
- "@radix-ui/react-visually-hidden": "^1.1.1",
58
+ "@radix-ui/react-alert-dialog": "^1.1.6",
59
+ "@radix-ui/react-checkbox": "^1.1.4",
60
+ "@radix-ui/react-slider": "^1.2.3",
61
+ "@radix-ui/react-slot": "^1.1.2",
62
+ "@radix-ui/react-switch": "^1.1.3",
63
+ "@radix-ui/react-toast": "^1.2.6",
64
+ "@radix-ui/react-visually-hidden": "^1.1.2",
66
65
  "class-variance-authority": "^0.7.1",
67
66
  "clsx": "^2.1.1",
68
67
  "js-cookie": "^3.0.5",
69
68
  "react-feather": "^2.0.10",
70
- "react-focus-lock": "^2.13.5",
69
+ "react-focus-lock": "^2.13.6",
71
70
  "react-remove-scroll": "^2.6.3",
72
71
  "tailwind-merge": "^3.0.1"
73
72
  },
@@ -101,27 +100,27 @@
101
100
  },
102
101
  "devDependencies": {
103
102
  "@rollup/plugin-alias": "^5.1.1",
104
- "@storybook/addon-docs": "^8.5.3",
105
- "@storybook/addon-essentials": "^8.5.3",
106
- "@storybook/addon-interactions": "^8.5.3",
107
- "@storybook/addon-links": "^8.5.3",
103
+ "@storybook/addon-docs": "^8.5.6",
104
+ "@storybook/addon-essentials": "^8.5.6",
105
+ "@storybook/addon-interactions": "^8.5.6",
106
+ "@storybook/addon-links": "^8.5.6",
108
107
  "@storybook/addon-styling-webpack": "^1.0.1",
109
- "@storybook/blocks": "^8.5.3",
110
- "@storybook/react": "^8.5.3",
111
- "@storybook/react-vite": "^8.5.3",
112
- "@storybook/test": "^8.5.3",
108
+ "@storybook/blocks": "^8.5.6",
109
+ "@storybook/react": "^8.5.6",
110
+ "@storybook/react-vite": "^8.5.6",
111
+ "@storybook/test": "^8.5.6",
113
112
  "@testing-library/jest-dom": "^6.6.3",
114
113
  "@testing-library/react": "^16.2.0",
115
114
  "@testing-library/user-event": "^14.6.1",
116
115
  "@types/jest-axe": "^3.5.9",
117
116
  "@types/js-cookie": "^3.0.6",
118
117
  "@types/lodash": "^4.17.15",
119
- "@types/react": "^19.0.8",
120
- "@types/react-dom": "^19.0.3",
121
- "@typescript-eslint/eslint-plugin": "^8.23.0",
122
- "@typescript-eslint/parser": "^8.23.0",
118
+ "@types/react": "^19.0.10",
119
+ "@types/react-dom": "^19.0.4",
120
+ "@typescript-eslint/eslint-plugin": "^8.24.1",
121
+ "@typescript-eslint/parser": "^8.24.1",
123
122
  "@vitejs/plugin-react": "^4.3.4",
124
- "@vitest/coverage-v8": "^3.0.5",
123
+ "@vitest/coverage-v8": "^3.0.6",
125
124
  "autoprefixer": "^10.4.20",
126
125
  "eslint": "^8.57.0",
127
126
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -133,18 +132,18 @@
133
132
  "jest-axe": "^9.0.0",
134
133
  "jsdom": "^26.0.0",
135
134
  "lodash": "^4.17.21",
136
- "postcss": "^8.5.1",
137
- "prettier": "^3.4.2",
135
+ "postcss": "^8.5.2",
136
+ "prettier": "^3.5.1",
138
137
  "rimraf": "^6.0.1",
139
- "storybook": "^8.5.3",
138
+ "storybook": "^8.5.6",
140
139
  "tailwindcss": "^3.4.17",
141
140
  "ts-node": "^10.9.2",
142
141
  "typescript": "^5.7.3",
143
- "vite": "^6.0.11",
142
+ "vite": "^6.1.0",
144
143
  "vite-plugin-dts": "^4.5.0",
145
144
  "vite-plugin-lib-inject-css": "^2.2.1",
146
145
  "vite-plugin-svgr": "^4.3.0",
147
146
  "vite-tsconfig-paths": "^5.1.4",
148
- "vitest": "^3.0.5"
147
+ "vitest": "^3.0.6"
149
148
  }
150
149
  }
@@ -1,14 +1,15 @@
1
- import { g } from "../_commonjsHelpers-C6fGbg64.js";
2
- import { konstructColors as p } from "./utils/colors.js";
3
- var a = {}, l = {}, d;
4
- function m() {
5
- return d || (d = 1, function(e) {
1
+ import { g as m } from "../_commonjsHelpers-C6fGbg64.js";
2
+ import { addAnimationStyles as p, defaultAnimationThemeValues as c } from "./utils/animation.styles.js";
3
+ import { konstructColors as _ } from "./utils/colors.js";
4
+ var o = {}, l = {}, s;
5
+ function P() {
6
+ return s || (s = 1, function(e) {
6
7
  Object.defineProperty(e, "__esModule", {
7
8
  value: !0
8
9
  }), Object.defineProperty(e, "default", {
9
10
  enumerable: !0,
10
11
  get: function() {
11
- return u;
12
+ return i;
12
13
  }
13
14
  });
14
15
  function n(r, t) {
@@ -18,21 +19,21 @@ function m() {
18
19
  };
19
20
  }
20
21
  n.withOptions = function(r, t = () => ({})) {
21
- const i = function(o) {
22
+ const u = function(a) {
22
23
  return {
23
- __options: o,
24
- handler: r(o),
25
- config: t(o)
24
+ __options: a,
25
+ handler: r(a),
26
+ config: t(a)
26
27
  };
27
28
  };
28
- return i.__isOptionsFunction = !0, i.__pluginFunction = r, i.__configFunction = t, i;
29
+ return u.__isOptionsFunction = !0, u.__pluginFunction = r, u.__configFunction = t, u;
29
30
  };
30
- const u = n;
31
+ const i = n;
31
32
  }(l)), l;
32
33
  }
33
- var s;
34
- function _() {
35
- return s || (s = 1, function(e) {
34
+ var f;
35
+ function v() {
36
+ return f || (f = 1, function(e) {
36
37
  Object.defineProperty(e, "__esModule", {
37
38
  value: !0
38
39
  }), Object.defineProperty(e, "default", {
@@ -41,36 +42,37 @@ function _() {
41
42
  return r;
42
43
  }
43
44
  });
44
- const n = /* @__PURE__ */ u(/* @__PURE__ */ m());
45
- function u(t) {
45
+ const n = /* @__PURE__ */ i(/* @__PURE__ */ P());
46
+ function i(t) {
46
47
  return t && t.__esModule ? t : {
47
48
  default: t
48
49
  };
49
50
  }
50
51
  const r = n.default;
51
- }(a)), a;
52
+ }(o)), o;
52
53
  }
53
- var c, f;
54
- function P() {
55
- if (f) return c;
56
- f = 1;
57
- let e = /* @__PURE__ */ _();
58
- return c = (e.__esModule ? e : { default: e }).default, c;
54
+ var d, g;
55
+ function b() {
56
+ if (g) return d;
57
+ g = 1;
58
+ let e = /* @__PURE__ */ v();
59
+ return d = (e.__esModule ? e : { default: e }).default, d;
59
60
  }
60
- var v = /* @__PURE__ */ P();
61
- const b = /* @__PURE__ */ g(v), w = b(
62
- function({ addBase: e }) {
61
+ var h = /* @__PURE__ */ b();
62
+ const k = /* @__PURE__ */ m(h), q = k(
63
+ function({ addBase: e, addUtilities: n, matchUtilities: i, theme: r }) {
63
64
  e({
64
65
  ":root": {
65
66
  "--viewport-padding": "25px"
66
67
  }
67
- });
68
+ }), p({ addUtilities: n, matchUtilities: i, theme: r });
68
69
  },
69
70
  {
70
71
  theme: {
71
72
  extend: {
72
- colors: { ...p },
73
+ colors: { ..._ },
73
74
  viewportPadding: "",
75
+ ...c,
74
76
  backgroundImage: {
75
77
  "kubefirst-gradient": "linear-gradient(90deg, #81E2B4, #8851C8)"
76
78
  },
@@ -104,12 +106,13 @@ const b = /* @__PURE__ */ g(v), w = b(
104
106
  to: {
105
107
  transform: "translateX(calc(100% + var(--viewport-padding)))"
106
108
  }
107
- }
109
+ },
110
+ ...c.keyframes
108
111
  }
109
112
  }
110
113
  }
111
114
  }
112
115
  );
113
116
  export {
114
- w as konstructPlugin
117
+ q as konstructPlugin
115
118
  };