@konstructio/ui 0.0.9 → 0.0.11

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 (100) hide show
  1. package/dist/{Modal-Ca3bkvvt.js → Modal-L73dmnHv.js} +240 -235
  2. package/dist/components/AlertDialog/AlertDialog.js +37 -30
  3. package/dist/components/AlertDialog/AlertDialog.types.d.ts +7 -2
  4. package/dist/components/Autocomplete/Autocomplete.js +42 -37
  5. package/dist/components/Autocomplete/components/List/List.js +60 -0
  6. package/dist/components/Autocomplete/components/{List.types.d.ts → List/List.types.d.ts} +3 -3
  7. package/dist/components/Autocomplete/components/{List.variants.js → List/List.variants.js} +1 -1
  8. package/dist/components/Autocomplete/components/index.d.ts +1 -0
  9. package/dist/components/Autocomplete/components/index.js +4 -0
  10. package/dist/components/Breadcrumb/Breadcrumb.js +44 -39
  11. package/dist/components/Button/Button.variants.d.ts +2 -2
  12. package/dist/components/Button/Button.variants.js +142 -8
  13. package/dist/components/Card/Card.js +30 -25
  14. package/dist/components/Checkbox/Checkbox.js +56 -51
  15. package/dist/components/Dropdown/components/ListItem/ListItem.js +18 -17
  16. package/dist/components/Dropdown/components/Wrapper.js +15 -15
  17. package/dist/components/Input/Input.js +4 -4
  18. package/dist/components/Modal/Modal.js +1 -1
  19. package/dist/components/Modal/components/Footer/Footer.js +5 -4
  20. package/dist/components/Modal/components/Header/Header.js +4 -3
  21. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
  22. package/dist/components/Modal/components/index.js +1 -1
  23. package/dist/components/NumberInput/NumberInput.js +78 -69
  24. package/dist/components/ProgressBar/ProgressBar.js +6 -6
  25. package/dist/components/Radio/Radio.js +21 -18
  26. package/dist/components/RadioGroup/RadioGroup.js +26 -22
  27. package/dist/components/RadioGroup/RadioGroup.types.d.ts +4 -3
  28. package/dist/components/Range/Range.js +40 -40
  29. package/dist/components/Sidebar/Sidebar.d.ts +5 -0
  30. package/dist/components/Sidebar/Sidebar.js +27 -0
  31. package/dist/components/Sidebar/Sidebar.types.d.ts +17 -0
  32. package/dist/components/Sidebar/Sidebar.types.js +1 -0
  33. package/dist/components/Sidebar/Sidebar.variants.d.ts +6 -0
  34. package/dist/components/Sidebar/Sidebar.variants.js +56 -0
  35. package/dist/components/Sidebar/components/Footer/Footer.d.ts +3 -0
  36. package/dist/components/Sidebar/components/Footer/Footer.js +22 -0
  37. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +6 -0
  38. package/dist/components/Sidebar/components/Footer/Footer.types.js +1 -0
  39. package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +3 -0
  40. package/dist/components/Sidebar/components/Footer/Footer.variants.js +19 -0
  41. package/dist/components/Sidebar/components/Logo/Logo.d.ts +3 -0
  42. package/dist/components/Sidebar/components/Logo/Logo.js +20 -0
  43. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +6 -0
  44. package/dist/components/Sidebar/components/Logo/Logo.types.js +1 -0
  45. package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -0
  46. package/dist/components/Sidebar/components/Logo/Logo.variants.js +45 -0
  47. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +4 -0
  48. package/dist/components/Sidebar/components/Navigation/Navigation.js +34 -0
  49. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +16 -0
  50. package/dist/components/Sidebar/components/Navigation/Navigation.types.js +1 -0
  51. package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +3 -0
  52. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +19 -0
  53. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +3 -0
  54. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +40 -0
  55. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +7 -0
  56. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +1 -0
  57. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +3 -0
  58. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +16 -0
  59. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +3 -0
  60. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +29 -0
  61. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +15 -0
  62. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +1 -0
  63. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +3 -0
  64. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +39 -0
  65. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +3 -0
  66. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +24 -0
  67. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +5 -0
  68. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +1 -0
  69. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +3 -0
  70. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +19 -0
  71. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +3 -0
  72. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +26 -0
  73. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +7 -0
  74. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +1 -0
  75. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +3 -0
  76. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +23 -0
  77. package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +3 -0
  78. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +84 -0
  79. package/dist/components/Sidebar/components/index.d.ts +15 -0
  80. package/dist/components/Sidebar/components/index.js +18 -0
  81. package/dist/components/Slider/Slider.js +25 -25
  82. package/dist/components/Switch/Switch.js +30 -30
  83. package/dist/components/Tag/Tag.js +5 -4
  84. package/dist/components/TagSelect/TagSelect.js +24 -24
  85. package/dist/components/TextArea/TextArea.js +17 -16
  86. package/dist/components/Toast/Toast.js +103 -97
  87. package/dist/components/Tooltip/Tooltip.js +12 -12
  88. package/dist/components/index.d.ts +1 -0
  89. package/dist/components/index.js +44 -30
  90. package/dist/index.js +47 -33
  91. package/dist/package.json +31 -16
  92. package/dist/plugins/utils/colors.d.ts +5 -0
  93. package/dist/plugins/utils/colors.js +6 -1
  94. package/dist/styles.css +1 -1
  95. package/dist/utils/index.js +747 -530
  96. package/package.json +31 -16
  97. package/dist/components/Autocomplete/components/List.js +0 -57
  98. /package/dist/components/Autocomplete/components/{List.d.ts → List/List.d.ts} +0 -0
  99. /package/dist/components/Autocomplete/components/{List.types.js → List/List.types.js} +0 -0
  100. /package/dist/components/Autocomplete/components/{List.variants.d.ts → List/List.variants.d.ts} +0 -0
@@ -1,47 +1,54 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { R as h, A as f, P as x, O as g, C as u, T as C, D as b, a as y, b as O } from "../../AlertDialogTrigger-D4Tm_9M0.js";
2
+ import { R as C, A as b, P as y, O as N, C as O, T as A, D, a as T, b as v } from "../../AlertDialogTrigger-D4Tm_9M0.js";
3
3
  import "../../contexts/theme.context.js";
4
- import { useTheme as A } from "../../contexts/theme.hook.js";
4
+ import { useTheme as j } from "../../contexts/theme.hook.js";
5
5
  import "react";
6
6
  import "../../js.cookie-OLEfuq_g.js";
7
- import { Button as a } from "../Button/Button.js";
8
- import { useAlertDialog as D } from "./hooks/useAlertDialog.js";
9
- const B = ({
10
- buttonText: l,
11
- theme: n,
12
- title: o,
13
- description: i,
14
- onConfirm: s
7
+ import { cn as r } from "../../utils/index.js";
8
+ import { Button as l } from "../Button/Button.js";
9
+ import { useAlertDialog as k } from "./hooks/useAlertDialog.js";
10
+ const G = ({
11
+ buttonCancelClassName: o,
12
+ buttonCancelText: i = "Cancel",
13
+ buttonConfirmClassName: s,
14
+ buttonConfirmText: c = "OK",
15
+ buttonText: m,
16
+ description: d,
17
+ theme: a,
18
+ title: p,
19
+ onConfirm: h
15
20
  }) => {
16
- const { theme: r } = A(), { isOpen: c, handleCancel: d, handleConfirm: m, handleOpen: p } = D({
17
- onConfirm: s
21
+ const { theme: n } = j(), { isOpen: f, handleCancel: x, handleConfirm: g, handleOpen: u } = k({
22
+ onConfirm: h
18
23
  });
19
- return /* @__PURE__ */ t(h, { open: c, children: [
20
- /* @__PURE__ */ e(f, { text: l, theme: n, onOpen: p }),
21
- /* @__PURE__ */ t(x, { children: [
22
- /* @__PURE__ */ e(g, { className: "bg-black opacity-75 inset-0 fixed" }),
23
- /* @__PURE__ */ t(u, { className: "bg-white rounded-md fixed top-1/2 left-1/2 -translate-y-2/4 -translate-x-2/4 flex flex-col gap-8 p-6", children: [
24
- /* @__PURE__ */ e(C, { className: "font-bold text-center text-2xl", children: o }),
25
- /* @__PURE__ */ e(b, { children: i }),
24
+ return /* @__PURE__ */ t(C, { open: f, children: [
25
+ /* @__PURE__ */ e(b, { text: m, theme: a, onOpen: u }),
26
+ /* @__PURE__ */ t(y, { children: [
27
+ /* @__PURE__ */ e(N, { className: "bg-black opacity-75 inset-0 fixed" }),
28
+ /* @__PURE__ */ t(O, { className: "bg-white rounded-md fixed top-1/2 left-1/2 -translate-y-2/4 -translate-x-2/4 flex flex-col gap-8 p-6", children: [
29
+ /* @__PURE__ */ e(A, { className: "font-bold text-center text-2xl", children: p }),
30
+ /* @__PURE__ */ e(D, { children: d }),
26
31
  /* @__PURE__ */ t("div", { className: "flex flex-row gap-5 justify-end", children: [
27
- /* @__PURE__ */ e(y, { asChild: !0, children: /* @__PURE__ */ e(
28
- a,
32
+ /* @__PURE__ */ e(T, { asChild: !0, children: /* @__PURE__ */ e(
33
+ l,
29
34
  {
30
35
  type: "button",
31
- theme: n ?? r,
36
+ theme: a ?? n,
32
37
  variant: "secondary",
33
- onClick: d,
34
- children: "Cancel"
38
+ className: r(o),
39
+ onClick: x,
40
+ children: i
35
41
  }
36
42
  ) }),
37
- /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ e(
38
- a,
43
+ /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
44
+ l,
39
45
  {
40
46
  type: "button",
41
- theme: n ?? r,
47
+ theme: a ?? n,
42
48
  variant: "danger",
43
- onClick: m,
44
- children: "OK"
49
+ className: r(s),
50
+ onClick: g,
51
+ children: c
45
52
  }
46
53
  ) })
47
54
  ] })
@@ -50,5 +57,5 @@ const B = ({
50
57
  ] });
51
58
  };
52
59
  export {
53
- B as AlertDialog
60
+ G as AlertDialog
54
61
  };
@@ -2,10 +2,15 @@ import { PropsWithChildren } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { buttonAlertDialogVariants } from './AlertDialog.variants';
4
4
  export interface AlertDialogProps extends PropsWithChildren, VariantProps<typeof buttonAlertDialogVariants> {
5
- className?: string;
5
+ buttonCancelClassName?: string;
6
+ buttonCancelText?: string;
7
+ buttonConfirmClassName?: string;
8
+ buttonConfirmText?: string;
6
9
  buttonText?: string;
7
- title?: string;
10
+ className?: string;
8
11
  description?: string;
12
+ o?: string;
13
+ title?: string;
9
14
  onConfirm?: () => void;
10
15
  }
11
16
  export type UseAlertiDialogProps = {
@@ -1,44 +1,47 @@
1
- import { jsxs as C, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as R, useRef as p, useId as A, useImperativeHandle as O } from "react";
1
+ import { jsxs as R, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as A, useRef as p, useId as O, useImperativeHandle as T } from "react";
3
3
  import "../../contexts/theme.context.js";
4
- import { useTheme as T } from "../../contexts/theme.hook.js";
4
+ import { useTheme as V } from "../../contexts/theme.hook.js";
5
5
  import "../../js.cookie-OLEfuq_g.js";
6
- import { useAutocomplete as V } from "./hooks/useAutocomplete.js";
7
- import { List as g } from "./components/List.js";
8
- import { labelVariants as j, autocompleteVariants as y } from "./Autocomplete.variants.js";
9
- const I = R(
6
+ import { cn as c } from "../../utils/index.js";
7
+ import { useAutocomplete as g } from "./hooks/useAutocomplete.js";
8
+ import { List as j } from "./components/List/List.js";
9
+ import { labelVariants as y, autocompleteVariants as I } from "./Autocomplete.variants.js";
10
+ const k = A(
10
11
  ({
11
- autoComplete: c = "off",
12
+ autoComplete: u = "off",
12
13
  className: a,
13
14
  label: n,
14
- labelClassName: u,
15
+ labelClassName: d,
15
16
  name: l,
16
- options: d,
17
+ options: f,
17
18
  placeHolderEmptyValues: h = "No values...",
18
- placeHolderEmptyValuesClassName: f,
19
- placeholder: x,
20
- theme: w,
19
+ placeHolderEmptyValuesClassName: x,
20
+ placeholder: w,
21
+ theme: N,
21
22
  variant: r,
22
- onChange: N
23
- }, b) => {
24
- const s = p(null), o = p(null), i = A(), { theme: v } = T(), m = w ?? v;
25
- O(b, () => o.current, [o]);
26
- const e = V({
27
- options: d,
23
+ onChange: b
24
+ }, v) => {
25
+ const s = p(null), o = p(null), i = O(), { theme: C } = V(), m = N ?? C;
26
+ T(v, () => o.current, [o]);
27
+ const e = g({
28
+ options: f,
28
29
  inputRef: o,
29
30
  wrapperRef: s,
30
- onChange: N
31
+ onChange: b
31
32
  });
32
- return /* @__PURE__ */ C("div", { ref: s, className: "relative flex flex-col", children: [
33
+ return /* @__PURE__ */ R("div", { ref: s, className: "relative flex flex-col", children: [
33
34
  n ? /* @__PURE__ */ t(
34
35
  "label",
35
36
  {
36
37
  htmlFor: l ?? i,
37
- className: j({
38
- theme: m,
39
- variant: r,
40
- className: u
41
- }),
38
+ className: c(
39
+ y({
40
+ theme: m,
41
+ variant: r,
42
+ className: d
43
+ })
44
+ ),
42
45
  children: n
43
46
  }
44
47
  ) : null,
@@ -50,27 +53,29 @@ const I = R(
50
53
  type: "text",
51
54
  name: l,
52
55
  role: "combobox",
53
- autoComplete: c,
54
- className: y({
55
- theme: m,
56
- variant: r,
57
- className: a
58
- }),
56
+ autoComplete: u,
57
+ className: c(
58
+ I({
59
+ theme: m,
60
+ variant: r,
61
+ className: a
62
+ })
63
+ ),
59
64
  onChange: e.handleChange,
60
65
  value: e.value,
61
- placeholder: x,
66
+ placeholder: w,
62
67
  "aria-expanded": e.showOptions ? "true" : "false"
63
68
  }
64
69
  ),
65
70
  e.showOptions && /* @__PURE__ */ t("div", { className: "absolute z-10 top-full w-full rounded-md mt-1 border shadow-sm", children: /* @__PURE__ */ t(
66
- g,
71
+ j,
67
72
  {
68
73
  className: a,
69
74
  inputRef: o,
70
75
  wrapperRef: s,
71
76
  options: e.newOptions,
72
77
  placeholder: h,
73
- placeholderClassName: f,
78
+ placeholderClassName: x,
74
79
  variant: r,
75
80
  theme: m,
76
81
  onClick: e.handleSelectValue
@@ -79,7 +84,7 @@ const I = R(
79
84
  ] });
80
85
  }
81
86
  );
82
- I.displayName = "Autocomplete";
87
+ k.displayName = "Autocomplete";
83
88
  export {
84
- I as Autocomplete
89
+ k as Autocomplete
85
90
  };
@@ -0,0 +1,60 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useRef as u } from "react";
3
+ import { cn as l } from "../../../../utils/index.js";
4
+ import { useNavigationUlList as b } from "../../hooks/useNavigationList.js";
5
+ import { emptyListVariants as N, listVariants as d, listItemVariants as x, buttonVariants as V } from "./List.variants.js";
6
+ const R = ({
7
+ className: e,
8
+ inputRef: a,
9
+ options: o,
10
+ placeholder: m,
11
+ placeholderClassName: c,
12
+ variant: t,
13
+ theme: r,
14
+ wrapperRef: f,
15
+ onClick: p
16
+ }) => {
17
+ const n = u(null);
18
+ return b({ ulRef: n, inputRef: a, wrapperRef: f, options: o }), o.length === 0 ? /* @__PURE__ */ s(
19
+ "span",
20
+ {
21
+ className: l(
22
+ N({
23
+ theme: r,
24
+ variant: t,
25
+ className: c
26
+ })
27
+ ),
28
+ children: m
29
+ }
30
+ ) : /* @__PURE__ */ s(
31
+ "ul",
32
+ {
33
+ ref: n,
34
+ role: "listbox",
35
+ className: l(d({ variant: t, theme: r, className: e })),
36
+ children: o.map(({ value: i }) => /* @__PURE__ */ s(
37
+ "li",
38
+ {
39
+ role: "option",
40
+ tabIndex: 0,
41
+ className: l(x({ theme: r, variant: t })),
42
+ children: /* @__PURE__ */ s(
43
+ "button",
44
+ {
45
+ type: "button",
46
+ role: "button",
47
+ className: l(V({ theme: r, variant: t })),
48
+ onClick: () => p(i),
49
+ children: i
50
+ }
51
+ )
52
+ },
53
+ i
54
+ ))
55
+ }
56
+ );
57
+ };
58
+ export {
59
+ R as List
60
+ };
@@ -1,7 +1,7 @@
1
- import { ComponentRef, ReactNode, RefObject } from 'react';
2
1
  import { VariantProps } from 'class-variance-authority';
3
- import { Option } from '../Autocomplete.types';
4
- import { autocompleteVariants } from '../Autocomplete.variants';
2
+ import { ComponentRef, ReactNode, RefObject } from 'react';
3
+ import { Option } from '../../Autocomplete.types';
4
+ import { autocompleteVariants } from '../../Autocomplete.variants';
5
5
  export interface Props extends VariantProps<typeof autocompleteVariants> {
6
6
  className?: string;
7
7
  inputRef: RefObject<ComponentRef<'input'> | null>;
@@ -1,4 +1,4 @@
1
- import { c as t } from "../../../index-BNmRGtA6.js";
1
+ import { c as t } from "../../../../index-BNmRGtA6.js";
2
2
  const a = t(["max-h-[250px]", "overflow-y-auto"], {
3
3
  variants: {
4
4
  variant: {
@@ -0,0 +1 @@
1
+ export * from './List/List';
@@ -0,0 +1,4 @@
1
+ import { List as t } from "./List/List.js";
2
+ export {
3
+ t as List
4
+ };
@@ -1,24 +1,25 @@
1
- import { jsx as a, jsxs as v, Fragment as g } from "react/jsx-runtime";
2
- import u, { forwardRef as b, Fragment as y } from "react";
1
+ import { jsx as a, jsxs as g, Fragment as b } from "react/jsx-runtime";
2
+ import d, { forwardRef as y, Fragment as O } from "react";
3
3
  import "../../contexts/theme.context.js";
4
- import { useTheme as O } from "../../contexts/theme.hook.js";
4
+ import { useTheme as j } from "../../contexts/theme.hook.js";
5
5
  import "../../js.cookie-OLEfuq_g.js";
6
- import { breadcrumbVariants as j, breadcrumbItemVariants as w, chevronVariants as x } from "./Breadcrumb.variants.js";
7
- import { u as P, L as k } from "../../useBreadcrumb-DxYsZvj_.js";
8
- import { P as m } from "../../index-D68N8v8R.js";
9
- function h() {
10
- return h = Object.assign || function(e) {
6
+ import { cn as h } from "../../utils/index.js";
7
+ import { breadcrumbVariants as w, breadcrumbItemVariants as x, chevronVariants as P } from "./Breadcrumb.variants.js";
8
+ import { u as k, L as N } from "../../useBreadcrumb-DxYsZvj_.js";
9
+ import { P as c } from "../../index-D68N8v8R.js";
10
+ function f() {
11
+ return f = Object.assign || function(e) {
11
12
  for (var n = 1; n < arguments.length; n++) {
12
13
  var t = arguments[n];
13
14
  for (var r in t)
14
15
  Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
15
16
  }
16
17
  return e;
17
- }, h.apply(this, arguments);
18
+ }, f.apply(this, arguments);
18
19
  }
19
- function N(e, n) {
20
+ function T(e, n) {
20
21
  if (e == null) return {};
21
- var t = T(e, n), r, o;
22
+ var t = L(e, n), r, o;
22
23
  if (Object.getOwnPropertySymbols) {
23
24
  var i = Object.getOwnPropertySymbols(e);
24
25
  for (o = 0; o < i.length; o++)
@@ -26,16 +27,16 @@ function N(e, n) {
26
27
  }
27
28
  return t;
28
29
  }
29
- function T(e, n) {
30
+ function L(e, n) {
30
31
  if (e == null) return {};
31
32
  var t = {}, r = Object.keys(e), o, i;
32
33
  for (i = 0; i < r.length; i++)
33
34
  o = r[i], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
34
35
  return t;
35
36
  }
36
- var f = b(function(e, n) {
37
- var t = e.color, r = t === void 0 ? "currentColor" : t, o = e.size, i = o === void 0 ? 24 : o, s = N(e, ["color", "size"]);
38
- return /* @__PURE__ */ u.createElement("svg", h({
37
+ var p = y(function(e, n) {
38
+ var t = e.color, r = t === void 0 ? "currentColor" : t, o = e.size, i = o === void 0 ? 24 : o, s = T(e, ["color", "size"]);
39
+ return /* @__PURE__ */ d.createElement("svg", f({
39
40
  ref: n,
40
41
  xmlns: "http://www.w3.org/2000/svg",
41
42
  width: i,
@@ -46,60 +47,64 @@ var f = b(function(e, n) {
46
47
  strokeWidth: "2",
47
48
  strokeLinecap: "round",
48
49
  strokeLinejoin: "round"
49
- }, s), /* @__PURE__ */ u.createElement("polyline", {
50
+ }, s), /* @__PURE__ */ d.createElement("polyline", {
50
51
  points: "9 18 15 12 9 6"
51
52
  }));
52
53
  });
53
- f.propTypes = {
54
- color: m.string,
55
- size: m.oneOfType([m.string, m.number])
54
+ p.propTypes = {
55
+ color: c.string,
56
+ size: c.oneOfType([c.string, c.number])
56
57
  };
57
- f.displayName = "ChevronRight";
58
- const I = ({
58
+ p.displayName = "ChevronRight";
59
+ const W = ({
59
60
  className: e,
60
61
  size: n,
61
62
  steps: t,
62
63
  theme: r
63
64
  }) => {
64
- const { theme: o } = O(), { isInsideRouter: i } = P(), s = r ?? o;
65
+ const { theme: o } = j(), { isInsideRouter: i } = k(), s = r ?? o;
65
66
  return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", children: /* @__PURE__ */ a(
66
67
  "ol",
67
68
  {
68
- className: j({ theme: s, className: e, size: n }),
69
- children: t.map(({ label: l, to: c, target: p }, d) => /* @__PURE__ */ v(y, { children: [
69
+ className: h(
70
+ w({ theme: s, className: e, size: n })
71
+ ),
72
+ children: t.map(({ label: m, to: l, target: u }, v) => /* @__PURE__ */ g(O, { children: [
70
73
  /* @__PURE__ */ a(
71
74
  "li",
72
75
  {
73
- className: w({ theme: s, size: n }),
74
- children: c ? /* @__PURE__ */ a(g, { children: i ? /* @__PURE__ */ a(
75
- k,
76
+ className: h(
77
+ x({ theme: s, size: n })
78
+ ),
79
+ children: l ? /* @__PURE__ */ a(b, { children: i ? /* @__PURE__ */ a(
80
+ N,
76
81
  {
77
- to: c,
78
- target: p,
82
+ to: l,
83
+ target: u,
79
84
  className: "hover:underline hover:underline-offset-2",
80
- children: l
85
+ children: m
81
86
  }
82
87
  ) : /* @__PURE__ */ a(
83
88
  "a",
84
89
  {
85
- href: c,
86
- target: p,
90
+ href: l,
91
+ target: u,
87
92
  className: "hover:underline hover:underline-offset-2",
88
- children: l
93
+ children: m
89
94
  }
90
- ) }) : /* @__PURE__ */ a("span", { "aria-current": "page", children: l })
95
+ ) }) : /* @__PURE__ */ a("span", { "aria-current": "page", children: m })
91
96
  }
92
97
  ),
93
- d !== t.length - 1 && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
94
- f,
98
+ v !== t.length - 1 && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
99
+ p,
95
100
  {
96
- className: x({ size: n, theme: s })
101
+ className: h(P({ size: n, theme: s }))
97
102
  }
98
103
  ) })
99
- ] }, l))
104
+ ] }, m))
100
105
  }
101
106
  ) });
102
107
  };
103
108
  export {
104
- I as Breadcrumb
109
+ W as Breadcrumb
105
110
  };
@@ -1,7 +1,7 @@
1
1
  export declare const buttonVariants: (props?: ({
2
- variant?: "primary" | "secondary" | "danger" | "text" | null | undefined;
2
+ variant?: "primary" | "secondary" | "danger" | "text" | "circle" | null | undefined;
3
3
  version?: "default" | "alternate" | null | undefined;
4
4
  theme?: "kubefirst" | "colony" | "civo" | null | undefined;
5
- size?: "default" | null | undefined;
6
5
  disabled?: boolean | null | undefined;
6
+ size?: "medium" | "large" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,5 +1,5 @@
1
1
  import { c as e } from "../../index-BNmRGtA6.js";
2
- const t = e(
2
+ const a = e(
3
3
  [
4
4
  "border",
5
5
  "cursor-pointer",
@@ -15,7 +15,10 @@ const t = e(
15
15
  "justify-center",
16
16
  "rounded",
17
17
  "transition-colors",
18
- "whitespace-nowrap"
18
+ "whitespace-nowrap",
19
+ "h-10",
20
+ "p-4",
21
+ "text-sm"
19
22
  ],
20
23
  {
21
24
  variants: {
@@ -29,7 +32,8 @@ const t = e(
29
32
  "hover:bg-red-700",
30
33
  "hover:border-red-700"
31
34
  ],
32
- text: ["bg-transparent", "border-transparent", "text-slate-500"]
35
+ text: ["bg-transparent", "border-transparent", "text-slate-500"],
36
+ circle: ["rounded-full", "p-1"]
33
37
  },
34
38
  version: {
35
39
  default: "",
@@ -40,12 +44,13 @@ const t = e(
40
44
  colony: "",
41
45
  kubefirst: ""
42
46
  },
43
- size: {
44
- default: "h-10 p-4 text-sm"
45
- },
46
47
  disabled: {
47
48
  true: ["text-zinc-500", "border-zinc-200", "bg-zinc-200"],
48
49
  false: ""
50
+ },
51
+ size: {
52
+ medium: "",
53
+ large: ""
49
54
  }
50
55
  },
51
56
  compoundVariants: [
@@ -185,17 +190,146 @@ const t = e(
185
190
  variant: "text",
186
191
  disabled: !0,
187
192
  class: ["bg-transparent", "border-transparent", "text-zinc-400"]
193
+ },
194
+ {
195
+ variant: "circle",
196
+ size: "medium",
197
+ theme: "kubefirst",
198
+ disabled: !1,
199
+ class: [
200
+ "text-slate-400",
201
+ "bg-transparent",
202
+ "border-transparent",
203
+ "hover:bg-kubefirst-primary/5",
204
+ "hover:text-kubefirst-primary",
205
+ "w-8",
206
+ "h-8",
207
+ "[&>svg]:w-5",
208
+ "[&>svg]:h-5"
209
+ ]
210
+ },
211
+ {
212
+ variant: "circle",
213
+ size: "large",
214
+ theme: "kubefirst",
215
+ disabled: !1,
216
+ class: [
217
+ "text-slate-400",
218
+ "bg-transparent",
219
+ "border-transparent",
220
+ "hover:bg-kubefirst-primary/5",
221
+ "hover:text-kubefirst-primary",
222
+ "w-11",
223
+ "h-11",
224
+ "[&>svg]:w-6",
225
+ "[&>svg]:h-6"
226
+ ]
227
+ },
228
+ {
229
+ variant: "circle",
230
+ size: "medium",
231
+ theme: "colony",
232
+ disabled: !1,
233
+ class: [
234
+ "text-slate-400",
235
+ "bg-transparent",
236
+ "border-transparent",
237
+ "hover:bg-colony-primary/5",
238
+ "hover:text-colony-primary",
239
+ "w-8",
240
+ "h-8",
241
+ "[&>svg]:w-5",
242
+ "[&>svg]:h-5"
243
+ ]
244
+ },
245
+ {
246
+ variant: "circle",
247
+ size: "large",
248
+ theme: "colony",
249
+ disabled: !1,
250
+ class: [
251
+ "text-slate-400",
252
+ "bg-transparent",
253
+ "border-transparent",
254
+ "hover:bg-colony-primary/5",
255
+ "hover:text-colony-primary",
256
+ "w-11",
257
+ "h-11",
258
+ "[&>svg]:w-6",
259
+ "[&>svg]:h-6"
260
+ ]
261
+ },
262
+ {
263
+ variant: "circle",
264
+ size: "medium",
265
+ theme: "civo",
266
+ disabled: !1,
267
+ class: [
268
+ "text-slate-400",
269
+ "bg-transparent",
270
+ "border-transparent",
271
+ "hover:bg-civo-primary/5",
272
+ "hover:text-civo-primary",
273
+ "w-8",
274
+ "h-8",
275
+ "[&>svg]:w-5",
276
+ "[&>svg]:h-5"
277
+ ]
278
+ },
279
+ {
280
+ variant: "circle",
281
+ size: "large",
282
+ theme: "civo",
283
+ disabled: !1,
284
+ class: [
285
+ "text-slate-400",
286
+ "bg-transparent",
287
+ "border-transparent",
288
+ "hover:bg-civo-primary/5",
289
+ "hover:text-civo-primary",
290
+ "w-11",
291
+ "h-11",
292
+ "[&>svg]:w-6",
293
+ "[&>svg]:h-6"
294
+ ]
295
+ },
296
+ {
297
+ variant: "circle",
298
+ size: "medium",
299
+ disabled: !0,
300
+ class: [
301
+ "text-slate-300",
302
+ "bg-transparent",
303
+ "border-transparent",
304
+ "w-8",
305
+ "h-8",
306
+ "[&>svg]:w-5",
307
+ "[&>svg]:h-5"
308
+ ]
309
+ },
310
+ {
311
+ variant: "circle",
312
+ size: "large",
313
+ disabled: !0,
314
+ class: [
315
+ "text-slate-300",
316
+ "bg-transparent",
317
+ "border-transparent",
318
+ "w-11",
319
+ "h-11",
320
+ "[&>svg]:w-6",
321
+ "[&>svg]:h-6"
322
+ ]
188
323
  }
189
324
  ],
190
325
  defaultVariants: {
191
326
  variant: "primary",
192
327
  theme: "kubefirst",
193
328
  version: "default",
194
- size: "default",
195
329
  disabled: !1
196
330
  }
197
331
  }
198
332
  );
199
333
  export {
200
- t as buttonVariants
334
+ a as buttonVariants
201
335
  };