@konstructio/ui 0.1.0-alpha.2 → 0.1.0-alpha.3

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 (99) hide show
  1. package/dist/DatePicker.css +1 -0
  2. package/dist/{Modal-i7eolhYH.js → Modal-B2ujmsSW.js} +2 -2
  3. package/dist/components/Alert/Alert.js +1 -1
  4. package/dist/components/AlertDialog/AlertDialog.js +55 -41
  5. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  6. package/dist/components/AlertDialog/components/index.js +1 -1
  7. package/dist/components/Badge/Badge.js +14 -14
  8. package/dist/components/Badge/Badge.variants.js +18 -17
  9. package/dist/components/Breadcrumb/Breadcrumb.js +43 -52
  10. package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
  11. package/dist/components/Breadcrumb/components/Item/Item.js +22 -23
  12. package/dist/components/Breadcrumb/components/Item/Item.variants.js +43 -56
  13. package/dist/components/Button/Button.js +30 -26
  14. package/dist/components/Button/Button.variants.js +115 -28
  15. package/dist/components/Checkbox/Checkbox.js +297 -187
  16. package/dist/components/Checkbox/Checkbox.variants.js +12 -15
  17. package/dist/components/Command/Command.js +2 -2
  18. package/dist/components/Command/components/Command.js +1 -1
  19. package/dist/components/Command/components/CommandEmpty.js +1 -1
  20. package/dist/components/Command/components/CommandGroup.js +1 -1
  21. package/dist/components/Command/components/CommandInput.js +1 -1
  22. package/dist/components/Command/components/CommandItem.js +1 -1
  23. package/dist/components/Command/components/CommandList.js +1 -1
  24. package/dist/components/Command/components/CommandSeparator.js +1 -1
  25. package/dist/components/Command/components/DialogContent.js +1 -1
  26. package/dist/components/Command/components/DialogOverlay.js +1 -1
  27. package/dist/components/Datepicker/DatePicker.js +2711 -0
  28. package/dist/components/Datepicker/DatePicker.variants.js +5 -0
  29. package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
  30. package/dist/components/Input/Input.js +106 -137
  31. package/dist/components/Input/Input.variants.js +15 -13
  32. package/dist/components/Loading/Loading.js +2 -2
  33. package/dist/components/Modal/Modal.js +2 -2
  34. package/dist/components/Modal/components/Body/Body.js +1 -1
  35. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  36. package/dist/components/Modal/components/Header/Header.js +1 -1
  37. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
  38. package/dist/components/Modal/components/index.js +1 -1
  39. package/dist/components/NumberInput/NumberInput.js +1 -1
  40. package/dist/components/Radio/Radio.variants.js +14 -12
  41. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  42. package/dist/components/Range/Range.js +1 -1
  43. package/dist/components/Slider/Slider.js +1 -1
  44. package/dist/components/Switch/Switch.js +141 -126
  45. package/dist/components/Tabs/Tabs.js +24 -0
  46. package/dist/components/Tabs/Tabs.variants.js +58 -0
  47. package/dist/components/Tabs/components/Content.js +19 -0
  48. package/dist/components/Tabs/components/List.js +20 -0
  49. package/dist/components/Tabs/components/Trigger.js +26 -0
  50. package/dist/components/Tag/Tag.js +1 -1
  51. package/dist/components/TimePicker/TimePicker.js +8 -0
  52. package/dist/components/TimePicker/TimePicker.variants.js +62 -0
  53. package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
  54. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
  55. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
  56. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +102 -0
  57. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
  58. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
  59. package/dist/components/TimePicker/components/index.js +4 -0
  60. package/dist/components/TimePicker/contexts/index.js +8 -0
  61. package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
  62. package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
  63. package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
  64. package/dist/components/TimePicker/utils/index.js +6 -0
  65. package/dist/components/Toast/Toast.js +37 -35
  66. package/dist/components/Tooltip/Tooltip.js +1 -1
  67. package/dist/components/Typography/Typography.js +1 -1
  68. package/dist/components/index.js +72 -66
  69. package/dist/createLucideIcon-BA2PlKw1.js +94 -0
  70. package/dist/index-55GVbfLI.js +432 -0
  71. package/dist/{index-D9BbbgUq.js → index-B-qIIQlg.js} +2 -2
  72. package/dist/index-BRcC_VTj.js +31 -0
  73. package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
  74. package/dist/index-BdMNhZnh.js +9 -0
  75. package/dist/index-C2xwUZXm.js +323 -0
  76. package/dist/{index-YaQrdkGE.js → index-CQ6ORxI_.js} +31 -30
  77. package/dist/index-Cq1I1cG9.js +129 -0
  78. package/dist/index-Cs8Lv8Wj.js +13 -0
  79. package/dist/{index-dRxIWVBr.js → index-DmCJ8fIR.js} +6 -5
  80. package/dist/index-DwYXX2sM.js +13 -0
  81. package/dist/{index-g-TFwd6Y.js → index-ObZsP5Eh.js} +2 -1
  82. package/dist/{index-DvFiic6N.js → index-Ud3-A7-K.js} +95 -101
  83. package/dist/{index-G_6jG4Qc.js → index-Y44iCJcQ.js} +18 -18
  84. package/dist/index-tIydFizp.js +83 -0
  85. package/dist/{index-AM3avohj.js → index-xPmNHv1y.js} +3 -3
  86. package/dist/index.d.ts +72 -13
  87. package/dist/index.js +78 -72
  88. package/dist/package.json +25 -22
  89. package/dist/styles.css +1 -1
  90. package/dist/ui/civo-theme.css +263 -0
  91. package/dist/ui/kubefirst-theme.css +1 -1
  92. package/dist/ui/theme.css +11 -0
  93. package/dist/utils/index.js +3 -3
  94. package/package.json +25 -22
  95. package/dist/createLucideIcon-CoF3ywd5.js +0 -89
  96. package/dist/index-BOx5P4tS.js +0 -423
  97. package/dist/index-Bk324h27.js +0 -82
  98. package/dist/index-CWKdynYu.js +0 -32
  99. package/dist/index-bYyfdsls.js +0 -118
@@ -0,0 +1 @@
1
+ .rdp-root{--rdp-accent-color: blue;--rdp-accent-background-color: #f0f0ff;--rdp-day-height: 44px;--rdp-day-width: 44px;--rdp-day_button-border-radius: 100%;--rdp-day_button-border: 2px solid transparent;--rdp-day_button-height: 42px;--rdp-day_button-width: 42px;--rdp-selected-border: 2px solid var(--rdp-accent-color);--rdp-disabled-opacity: .5;--rdp-outside-opacity: .75;--rdp-today-color: var(--rdp-accent-color);--rdp-dropdown-gap: .5rem;--rdp-months-gap: 2rem;--rdp-nav_button-disabled-opacity: .5;--rdp-nav_button-height: 2.25rem;--rdp-nav_button-width: 2.25rem;--rdp-nav-height: 2.75rem;--rdp-range_middle-background-color: var(--rdp-accent-background-color);--rdp-range_middle-color: inherit;--rdp-range_start-color: white;--rdp-range_start-background: linear-gradient(var(--rdp-gradient-direction), transparent 50%, var(--rdp-range_middle-background-color) 50%);--rdp-range_start-date-background-color: var(--rdp-accent-color);--rdp-range_end-background: linear-gradient(var(--rdp-gradient-direction), var(--rdp-range_middle-background-color) 50%, transparent 50%);--rdp-range_end-color: white;--rdp-range_end-date-background-color: var(--rdp-accent-color);--rdp-week_number-border-radius: 100%;--rdp-week_number-border: 2px solid transparent;--rdp-week_number-height: var(--rdp-day-height);--rdp-week_number-opacity: .75;--rdp-week_number-width: var(--rdp-day-width);--rdp-weeknumber-text-align: center;--rdp-weekday-opacity: .75;--rdp-weekday-padding: .5rem 0rem;--rdp-weekday-text-align: center;--rdp-gradient-direction: 90deg;--rdp-animation_duration: .3s;--rdp-animation_timing: cubic-bezier(.4, 0, .2, 1)}.rdp-root[dir=rtl]{--rdp-gradient-direction: -90deg}.rdp-root[data-broadcast-calendar=true]{--rdp-outside-opacity: unset}.rdp-root{position:relative;box-sizing:border-box}.rdp-root *{box-sizing:border-box}.rdp-day{width:var(--rdp-day-width);height:var(--rdp-day-height);text-align:center}.rdp-day_button{background:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;justify-content:center;align-items:center;display:flex;width:var(--rdp-day_button-width);height:var(--rdp-day_button-height);border:var(--rdp-day_button-border);border-radius:var(--rdp-day_button-border-radius)}.rdp-day_button:disabled{cursor:revert}.rdp-caption_label{z-index:1;position:relative;display:inline-flex;align-items:center;white-space:nowrap;border:0}.rdp-dropdown:focus-visible~.rdp-caption_label{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color}.rdp-button_next,.rdp-button_previous{border:none;background:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;-moz-appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;position:relative;appearance:none;width:var(--rdp-nav_button-width);height:var(--rdp-nav_button-height)}.rdp-button_next:disabled,.rdp-button_next[aria-disabled=true],.rdp-button_previous:disabled,.rdp-button_previous[aria-disabled=true]{cursor:revert;opacity:var(--rdp-nav_button-disabled-opacity)}.rdp-chevron{display:inline-block;fill:var(--rdp-accent-color)}.rdp-root[dir=rtl] .rdp-nav .rdp-chevron{transform:rotate(180deg);transform-origin:50%}.rdp-dropdowns{position:relative;display:inline-flex;align-items:center;gap:var(--rdp-dropdown-gap)}.rdp-dropdown{z-index:2;opacity:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:0;width:100%;margin:0;padding:0;cursor:inherit;border:none;line-height:inherit}.rdp-dropdown_root{position:relative;display:inline-flex;align-items:center}.rdp-dropdown_root[data-disabled=true] .rdp-chevron{opacity:var(--rdp-disabled-opacity)}.rdp-month_caption{display:flex;align-content:center;height:var(--rdp-nav-height);font-weight:700;font-size:large}.rdp-root[data-nav-layout=around] .rdp-month,.rdp-root[data-nav-layout=after] .rdp-month{position:relative}.rdp-root[data-nav-layout=around] .rdp-month_caption{justify-content:center;margin-inline-start:var(--rdp-nav_button-width);margin-inline-end:var(--rdp-nav_button-width);position:relative}.rdp-root[data-nav-layout=around] .rdp-button_previous{position:absolute;inset-inline-start:0;top:0;height:var(--rdp-nav-height);display:inline-flex}.rdp-root[data-nav-layout=around] .rdp-button_next{position:absolute;inset-inline-end:0;top:0;height:var(--rdp-nav-height);display:inline-flex;justify-content:center}.rdp-months{position:relative;display:flex;flex-wrap:wrap;gap:var(--rdp-months-gap);max-width:fit-content}.rdp-month_grid{border-collapse:collapse}.rdp-nav{position:absolute;inset-block-start:0;inset-inline-end:0;display:flex;align-items:center;height:var(--rdp-nav-height)}.rdp-weekday{opacity:var(--rdp-weekday-opacity);padding:var(--rdp-weekday-padding);font-weight:500;font-size:smaller;text-align:var(--rdp-weekday-text-align);text-transform:var(--rdp-weekday-text-transform)}.rdp-week_number{opacity:var(--rdp-week_number-opacity);font-weight:400;font-size:small;height:var(--rdp-week_number-height);width:var(--rdp-week_number-width);border:var(--rdp-week_number-border);border-radius:var(--rdp-week_number-border-radius);text-align:var(--rdp-weeknumber-text-align)}.rdp-today:not(.rdp-outside){color:var(--rdp-today-color)}.rdp-selected{font-weight:700;font-size:large}.rdp-selected .rdp-day_button{border:var(--rdp-selected-border)}.rdp-outside{opacity:var(--rdp-outside-opacity)}.rdp-disabled{opacity:var(--rdp-disabled-opacity)}.rdp-hidden{visibility:hidden;color:var(--rdp-range_start-color)}.rdp-range_start{background:var(--rdp-range_start-background)}.rdp-range_start .rdp-day_button{background-color:var(--rdp-range_start-date-background-color);color:var(--rdp-range_start-color)}.rdp-range_middle{background-color:var(--rdp-range_middle-background-color)}.rdp-range_middle .rdp-day_button{border-color:transparent;border:unset;border-radius:unset;color:var(--rdp-range_middle-color)}.rdp-range_end{background:var(--rdp-range_end-background);color:var(--rdp-range_end-color)}.rdp-range_end .rdp-day_button{color:var(--rdp-range_start-color);background-color:var(--rdp-range_end-date-background-color)}.rdp-range_start.rdp-range_end{background:revert}.rdp-focusable{cursor:pointer}@keyframes rdp-slide_in_left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes rdp-slide_in_right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes rdp-slide_out_left{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes rdp-slide_out_right{0%{transform:translate(0)}to{transform:translate(100%)}}.rdp-weeks_before_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_before_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}@keyframes rdp-fade_in{0%{opacity:0}to{opacity:1}}@keyframes rdp-fade_out{0%{opacity:1}to{opacity:0}}.rdp-caption_after_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_after_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}
@@ -3,8 +3,8 @@ import { Footer as _r } from "./components/Modal/components/Footer/Footer.js";
3
3
  import { Header as kr } from "./components/Modal/components/Header/Header.js";
4
4
  import { jsx as k, jsxs as ee } from "react/jsx-runtime";
5
5
  import S, { createContext as Lr, forwardRef as Ue, useState as re, useRef as ne, useCallback as W, useEffect as Ge, useMemo as Rr, Fragment as Cr, PureComponent as Wr, Children as K, isValidElement as X } from "react";
6
- import { r as Br } from "./index-g-TFwd6Y.js";
7
- import { R as Ur } from "./index-CWKdynYu.js";
6
+ import { r as Br } from "./index-ObZsP5Eh.js";
7
+ import { R as Ur } from "./index-BRcC_VTj.js";
8
8
  import { p as l } from "./index-C5psggHV.js";
9
9
  import { c as le, a as Gr, u as Hr, R as jr } from "./Combination-b348x__d.js";
10
10
  import { cn as Me } from "./utils/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as l, jsxs as i } from "react/jsx-runtime";
2
2
  import { useRef as b, useState as C, useMemo as V, isValidElement as v, useCallback as k, useEffect as w } from "react";
3
- import { V as x } from "../../index-CWKdynYu.js";
3
+ import { V as x } from "../../index-BRcC_VTj.js";
4
4
  import { cn as m } from "../../utils/index.js";
5
5
  import { closeButtonVariants as y, alertVariants as A } from "./Alert.variants.js";
6
6
  import { X as E } from "../../x-DU-Zw-L_.js";
@@ -1,61 +1,75 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { R as u, A as b, P as y, O as N, C as O, T as A, D, a as v, b as j } from "../../index-AM3avohj.js";
3
- import { Button as n } from "../Button/Button.js";
4
- import { cn as l } from "../../utils/index.js";
5
- import { useAlertDialog as k } from "./hooks/useAlertDialog.js";
6
- const B = ({
7
- buttonTriggerClassName: i,
8
- buttonCancelClassName: r,
9
- buttonCancelText: o = "Cancel",
10
- buttonConfirmClassName: s,
11
- buttonConfirmText: c = "OK",
12
- buttonText: d,
13
- description: m,
14
- theme: t,
15
- title: p,
16
- onConfirm: f
2
+ import { R as A, A as D, P as v, O as j, C as k, T, D as w, a as P, b as R } from "../../index-xPmNHv1y.js";
3
+ import { Button as l } from "../Button/Button.js";
4
+ import { cn as t } from "../../utils/index.js";
5
+ import { useAlertDialog as z } from "./hooks/useAlertDialog.js";
6
+ const G = ({
7
+ buttonCancel: {
8
+ className: s,
9
+ text: i = "Cancel",
10
+ ...r
11
+ } = {},
12
+ buttonConfirm: {
13
+ className: o,
14
+ text: c = "OK",
15
+ ...m
16
+ } = {},
17
+ buttonTriggerClassName: d,
18
+ buttonTriggerText: p,
19
+ description: f,
20
+ showCancelButton: h = !0,
21
+ theme: n,
22
+ title: x,
23
+ wrapperClassName: u,
24
+ onConfirm: C,
25
+ ...b
17
26
  }) => {
18
- const { isOpen: h, handleCancel: x, handleConfirm: g, handleOpen: C } = k({
19
- onConfirm: f
27
+ const { isOpen: N, handleCancel: g, handleConfirm: y, handleOpen: O } = z({
28
+ onConfirm: C
20
29
  });
21
- return /* @__PURE__ */ a(u, { open: h, children: [
30
+ return /* @__PURE__ */ a(A, { open: N, ...b, children: [
22
31
  /* @__PURE__ */ e(
23
- b,
32
+ D,
24
33
  {
25
- className: i,
26
- text: d,
27
- "data-theme": t,
28
- onOpen: C
34
+ className: d,
35
+ text: p,
36
+ "data-theme": n,
37
+ onOpen: O
29
38
  }
30
39
  ),
31
- /* @__PURE__ */ a(y, { children: [
32
- /* @__PURE__ */ e(N, { className: "bg-black opacity-75 inset-0 fixed animate-in fade-in-0" }),
40
+ /* @__PURE__ */ a(v, { children: [
41
+ /* @__PURE__ */ e(j, { className: "bg-black opacity-70 inset-0 fixed animate-in fade-in-0" }),
33
42
  /* @__PURE__ */ a(
34
- O,
43
+ k,
35
44
  {
36
- "data-theme": t,
37
- 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 animate-in fade-in-0 zoom-in-85",
45
+ "data-theme": n,
46
+ className: t(
47
+ "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-8 animate-in fade-in-0 zoom-in-85",
48
+ u
49
+ ),
38
50
  children: [
39
- /* @__PURE__ */ e(A, { className: "font-bold text-center text-2xl", children: p }),
40
- /* @__PURE__ */ e(D, { children: m }),
51
+ /* @__PURE__ */ e(T, { className: "text-base text-slate-700 font-semibold", children: x }),
52
+ /* @__PURE__ */ e(w, { className: "text-sm text-slate-800", children: f }),
41
53
  /* @__PURE__ */ a("div", { className: "flex flex-row gap-5 justify-end", children: [
42
- /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
43
- n,
54
+ h && /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e(
55
+ l,
44
56
  {
45
57
  type: "button",
46
58
  variant: "secondary",
47
- className: l(r),
48
- onClick: x,
49
- children: o
59
+ className: t(s),
60
+ onClick: g,
61
+ ...r,
62
+ children: i
50
63
  }
51
64
  ) }),
52
- /* @__PURE__ */ e(j, { asChild: !0, children: /* @__PURE__ */ e(
53
- n,
65
+ /* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ e(
66
+ l,
54
67
  {
55
68
  type: "button",
56
- variant: "danger",
57
- className: l(s),
58
- onClick: g,
69
+ variant: "primary",
70
+ className: t(o),
71
+ onClick: y,
72
+ ...m,
59
73
  children: c
60
74
  }
61
75
  ) })
@@ -67,5 +81,5 @@ const B = ({
67
81
  ] });
68
82
  };
69
83
  export {
70
- B as AlertDialog
84
+ G as AlertDialog
71
85
  };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { A as p } from "../../../index-AM3avohj.js";
2
+ import { A as p } from "../../../index-xPmNHv1y.js";
3
3
  import "../../Button/Button.js";
4
4
  import "../../../utils/index.js";
5
5
  export {
@@ -1,4 +1,4 @@
1
- import { A as g } from "../../../index-AM3avohj.js";
1
+ import { A as g } from "../../../index-xPmNHv1y.js";
2
2
  export {
3
3
  g as AlertDialogTrigger
4
4
  };
@@ -1,10 +1,10 @@
1
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as v, useState as w, useCallback as x, useEffect as y } from "react";
3
- import { cn as m } from "../../utils/index.js";
3
+ import { cn as u } from "../../utils/index.js";
4
4
  import { buttonDismissVariants as M, badgeVariants as Z } from "./Badge.variants.js";
5
- import { c as N } from "../../createLucideIcon-CoF3ywd5.js";
5
+ import { c as N } from "../../createLucideIcon-BA2PlKw1.js";
6
6
  /**
7
- * @license lucide-react v0.488.0 - ISC
7
+ * @license lucide-react v0.510.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
@@ -13,12 +13,12 @@ const V = [
13
13
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
14
14
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
15
15
  ], I = N("x", V), L = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M7.05002%201.45002C7.05002%201.17155%206.9394%200.904476%206.74249%200.707562C6.54557%200.510649%206.2785%200.400024%206.00002%200.400024C5.72155%200.400024%205.45448%200.510649%205.25756%200.707562C5.06065%200.904476%204.95002%201.17155%204.95002%201.45002C4.95002%201.7285%205.06065%201.99557%205.25756%202.19249C5.45448%202.3894%205.72155%202.50002%206.00002%202.50002C6.2785%202.50002%206.54557%202.3894%206.74249%202.19249C6.9394%201.99557%207.05002%201.7285%207.05002%201.45002ZM7.05002%2010.55C7.05002%2010.2715%206.9394%2010.0045%206.74249%209.80756C6.54557%209.61065%206.2785%209.50002%206.00002%209.50002C5.72155%209.50002%205.45448%209.61065%205.25756%209.80756C5.06065%2010.0045%204.95002%2010.2715%204.95002%2010.55C4.95002%2010.8285%205.06065%2011.0956%205.25756%2011.2925C5.45448%2011.4894%205.72155%2011.6%206.00002%2011.6C6.2785%2011.6%206.54557%2011.4894%206.74249%2011.2925C6.9394%2011.0956%207.05002%2010.8285%207.05002%2010.55ZM1.45002%207.05002C1.7285%207.05002%201.99557%206.9394%202.19249%206.74249C2.3894%206.54557%202.50002%206.2785%202.50002%206.00002C2.50002%205.72155%202.3894%205.45448%202.19249%205.25756C1.99557%205.06065%201.7285%204.95002%201.45002%204.95002C1.17155%204.95002%200.904476%205.06065%200.707562%205.25756C0.510649%205.45448%200.400024%205.72155%200.400024%206.00002C0.400024%206.2785%200.510649%206.54557%200.707562%206.74249C0.904476%206.9394%201.17155%207.05002%201.45002%207.05002ZM11.6%206.00002C11.6%205.72155%2011.4894%205.45448%2011.2925%205.25756C11.0956%205.06065%2010.8285%204.95002%2010.55%204.95002C10.2715%204.95002%2010.0045%205.06065%209.80756%205.25756C9.61065%205.45448%209.50002%205.72155%209.50002%206.00002C9.50002%206.2785%209.61065%206.54557%209.80756%206.74249C10.0045%206.9394%2010.2715%207.05002%2010.55%207.05002C10.8285%207.05002%2011.0956%206.9394%2011.2925%206.74249C11.4894%206.54557%2011.6%206.2785%2011.6%206.00002ZM3.52596%209.9594C3.62349%209.86187%203.70085%209.74609%203.75363%209.61867C3.80641%209.49124%203.83358%209.35467%203.83358%209.21674C3.83358%209.07882%203.80641%208.94225%203.75363%208.81482C3.70085%208.6874%203.62349%208.57161%203.52596%208.47409C3.42844%208.37656%203.31265%208.2992%203.18523%208.24642C3.0578%208.19364%202.92123%208.16647%202.78331%208.16647C2.50476%208.16647%202.23761%208.27712%202.04065%208.47409C1.84368%208.67105%201.73303%208.93819%201.73303%209.21674C1.73303%209.49529%201.84368%209.76243%202.04065%209.9594C2.23761%2010.1564%202.50476%2010.267%202.78331%2010.267C3.06186%2010.267%203.329%2010.1564%203.52596%209.9594ZM3.52596%203.52377C3.62833%203.42738%203.7103%203.31141%203.76701%203.18274C3.82371%203.05407%203.85399%202.91532%203.85605%202.77472C3.85812%202.63413%203.83192%202.49455%203.77902%202.36427C3.72611%202.23399%203.64758%202.11566%203.54808%202.01631C3.44858%201.91695%203.33014%201.8386%203.19978%201.78589C3.06942%201.73318%202.92981%201.70718%202.78921%201.70945C2.64862%201.71172%202.50992%201.74221%202.38133%201.7991C2.25274%201.85599%202.13689%201.93814%202.04065%202.04065C1.84368%202.23761%201.73303%202.50476%201.73303%202.78331C1.73303%203.06186%201.84368%203.329%202.04065%203.52596C2.23761%203.72293%202.50476%203.83358%202.78331%203.83358C3.06186%203.83358%203.329%203.72293%203.52596%203.52596V3.52377ZM8.47409%209.9594C8.57161%2010.0569%208.6874%2010.1343%208.81482%2010.1871C8.94225%2010.2399%209.07882%2010.267%209.21674%2010.267C9.35467%2010.267%209.49124%2010.2399%209.61867%2010.1871C9.74609%2010.1343%209.86187%2010.0569%209.9594%209.9594C10.0569%209.86187%2010.1343%209.74609%2010.1871%209.61867C10.2399%209.49124%2010.267%209.35467%2010.267%209.21674C10.267%209.07882%2010.2399%208.94225%2010.1871%208.81482C10.1343%208.6874%2010.0569%208.57161%209.9594%208.47409C9.86187%208.37656%209.74609%208.2992%209.61867%208.24642C9.49124%208.19364%209.35467%208.16647%209.21674%208.16647C9.07882%208.16647%208.94225%208.19364%208.81482%208.24642C8.6874%208.2992%208.57161%208.37656%208.47409%208.47409C8.37656%208.57161%208.2992%208.6874%208.24642%208.81482C8.19364%208.94225%208.16647%209.07882%208.16647%209.21674C8.16647%209.35467%208.19364%209.49124%208.24642%209.61867C8.2992%209.74609%208.37656%209.86187%208.47409%209.9594Z'%20fill='currentColor'%20/%3e%3c/svg%3e", _ = ({
16
- className: u,
17
- dismissible: p = !1,
16
+ className: p,
17
+ dismissible: b = !1,
18
18
  label: s,
19
19
  loading: o = !1,
20
20
  size: n,
21
- variant: b,
21
+ variant: l,
22
22
  onClick: e,
23
23
  onDismiss: C
24
24
  }) => {
@@ -34,17 +34,17 @@ const V = [
34
34
  return (i = t.current) == null || i.addEventListener(
35
35
  "animationend",
36
36
  () => {
37
- var l, c;
38
- (l = t.current) == null || l.style.setProperty("display", "none"), (c = t.current) == null || c.remove();
37
+ var c, d;
38
+ (c = t.current) == null || c.style.setProperty("display", "none"), (d = t.current) == null || d.remove();
39
39
  },
40
40
  { signal: a.signal }
41
41
  ), () => a.abort();
42
- }, []), /* @__PURE__ */ d(
42
+ }, []), /* @__PURE__ */ m(
43
43
  "span",
44
44
  {
45
45
  ref: t,
46
- className: m(
47
- Z({ variant: b, size: n, className: u }),
46
+ className: u(
47
+ Z({ variant: l, size: n, className: p }),
48
48
  e && "cursor-pointer"
49
49
  ),
50
50
  role: e ? "button" : void 0,
@@ -57,11 +57,11 @@ const V = [
57
57
  children: [
58
58
  o && /* @__PURE__ */ r(L, { className: "h-3 w-3 animate-spin animate-duration-time-2" }),
59
59
  s,
60
- p && /* @__PURE__ */ d(
60
+ b && /* @__PURE__ */ m(
61
61
  "button",
62
62
  {
63
63
  type: "button",
64
- className: m(M({ size: n })),
64
+ className: u(M({ size: n, variant: l })),
65
65
  onClick: g,
66
66
  "aria-label": "Dismiss",
67
67
  children: [
@@ -4,8 +4,8 @@ const a = e(
4
4
  "flex",
5
5
  "items-center",
6
6
  "justify-center",
7
- "gap-1.5",
8
- "rounded-md",
7
+ "gap-2",
8
+ "rounded",
9
9
  "px-2",
10
10
  "py-1",
11
11
  "w-max",
@@ -24,19 +24,15 @@ const a = e(
24
24
  warning: ["bg-yellow-100", "text-yellow-800"]
25
25
  },
26
26
  size: {
27
- small: "text-sm",
28
- medium: "text-base",
29
- large: "text-lg",
30
- xlarge: "text-xl",
31
- xxlarge: "text-2xl"
27
+ default: "text-sm leading-[16px]"
32
28
  }
33
29
  },
34
30
  defaultVariants: {
35
31
  variant: "default",
36
- size: "medium"
32
+ size: "default"
37
33
  }
38
34
  }
39
- ), i = e(
35
+ ), n = e(
40
36
  [
41
37
  "rounded-full",
42
38
  "inline-flex",
@@ -44,24 +40,29 @@ const a = e(
44
40
  "justify-center",
45
41
  "focus:outline-none",
46
42
  "text-inherit",
47
- "cursor-pointer"
43
+ "cursor-pointer",
44
+ "text-gray-700"
48
45
  ],
49
46
  {
50
47
  variants: {
48
+ variant: {
49
+ default: ["text-gray-700"],
50
+ danger: ["text-red-700"],
51
+ info: ["text-blue-700"],
52
+ success: ["text-green-700"],
53
+ warning: ["text-yellow-700"]
54
+ },
51
55
  size: {
52
- small: ["h-3", "w-3"],
53
- medium: ["h-3.5", "w-3.5"],
54
- large: ["h-4", "w-4"],
55
- xlarge: ["h-5", "w-5"],
56
- xxlarge: ["h-6", "w-6"]
56
+ default: ["h-3.5", "w-3.5"]
57
57
  }
58
58
  },
59
59
  defaultVariants: {
60
- size: "medium"
60
+ variant: "default",
61
+ size: "default"
61
62
  }
62
63
  }
63
64
  );
64
65
  export {
65
66
  a as badgeVariants,
66
- i as buttonDismissVariants
67
+ n as buttonDismissVariants
67
68
  };
@@ -1,40 +1,40 @@
1
- import { jsx as a, jsxs as v } from "react/jsx-runtime";
2
- import h, { forwardRef as b, useId as y, Fragment as O } from "react";
3
- import { cn as c } from "../../utils/index.js";
4
- import { chevronVariants as j, breadcrumbVariants as w, breadcrumbWrapperVariants as P } from "./Breadcrumb.variants.js";
5
- import { Item as x } from "./components/Item/Item.js";
1
+ import { jsx as a, jsxs as g } from "react/jsx-runtime";
2
+ import u, { forwardRef as b, useId as v, Fragment as y } from "react";
3
+ import { cn as h } from "../../utils/index.js";
4
+ import { breadcrumbVariants as O, breadcrumbWrapperVariants as j } from "./Breadcrumb.variants.js";
5
+ import { Item as w } from "./components/Item/Item.js";
6
6
  import { P as l } from "../../index-C5psggHV.js";
7
7
  function m() {
8
8
  return m = Object.assign || function(r) {
9
- for (var n = 1; n < arguments.length; n++) {
10
- var e = arguments[n];
9
+ for (var o = 1; o < arguments.length; o++) {
10
+ var e = arguments[o];
11
11
  for (var t in e)
12
12
  Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
13
13
  }
14
14
  return r;
15
15
  }, m.apply(this, arguments);
16
16
  }
17
- function k(r, n) {
17
+ function x(r, o) {
18
18
  if (r == null) return {};
19
- var e = N(r, n), t, o;
19
+ var e = P(r, o), t, n;
20
20
  if (Object.getOwnPropertySymbols) {
21
21
  var i = Object.getOwnPropertySymbols(r);
22
- for (o = 0; o < i.length; o++)
23
- t = i[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (e[t] = r[t]);
22
+ for (n = 0; n < i.length; n++)
23
+ t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (e[t] = r[t]);
24
24
  }
25
25
  return e;
26
26
  }
27
- function N(r, n) {
27
+ function P(r, o) {
28
28
  if (r == null) return {};
29
- var e = {}, t = Object.keys(r), o, i;
29
+ var e = {}, t = Object.keys(r), n, i;
30
30
  for (i = 0; i < t.length; i++)
31
- o = t[i], !(n.indexOf(o) >= 0) && (e[o] = r[o]);
31
+ n = t[i], !(o.indexOf(n) >= 0) && (e[n] = r[n]);
32
32
  return e;
33
33
  }
34
- var p = b(function(r, n) {
35
- var e = r.color, t = e === void 0 ? "currentColor" : e, o = r.size, i = o === void 0 ? 24 : o, s = k(r, ["color", "size"]);
36
- return /* @__PURE__ */ h.createElement("svg", m({
37
- ref: n,
34
+ var c = b(function(r, o) {
35
+ var e = r.color, t = e === void 0 ? "currentColor" : e, n = r.size, i = n === void 0 ? 24 : n, s = x(r, ["color", "size"]);
36
+ return /* @__PURE__ */ u.createElement("svg", m({
37
+ ref: o,
38
38
  xmlns: "http://www.w3.org/2000/svg",
39
39
  width: i,
40
40
  height: i,
@@ -44,57 +44,48 @@ var p = b(function(r, n) {
44
44
  strokeWidth: "2",
45
45
  strokeLinecap: "round",
46
46
  strokeLinejoin: "round"
47
- }, s), /* @__PURE__ */ h.createElement("polyline", {
47
+ }, s), /* @__PURE__ */ u.createElement("polyline", {
48
48
  points: "9 18 15 12 9 6"
49
49
  }));
50
50
  });
51
- p.propTypes = {
51
+ c.propTypes = {
52
52
  color: l.string,
53
53
  size: l.oneOfType([l.string, l.number])
54
54
  };
55
- p.displayName = "ChevronRight";
56
- const C = ({
57
- className: r,
58
- size: n,
55
+ c.displayName = "ChevronRight";
56
+ const W = ({
57
+ "aria-label": r = "breadcrumb",
58
+ className: o,
59
59
  steps: e,
60
60
  theme: t,
61
- "aria-label": o = "breadcrumb",
62
- wrapperClassName: i,
63
- ...s
61
+ wrapperClassName: n,
62
+ ...i
64
63
  }) => {
65
- const d = y();
64
+ const s = v();
66
65
  return /* @__PURE__ */ a(
67
66
  "nav",
68
67
  {
69
- "aria-label": o,
68
+ "aria-label": r,
70
69
  "data-theme": t,
71
- className: c(
72
- P({
73
- className: i
70
+ className: h(
71
+ j({
72
+ className: n
74
73
  })
75
74
  ),
76
- children: /* @__PURE__ */ a(
77
- "ol",
78
- {
79
- className: c(w({ className: r, size: n })),
80
- ...s,
81
- children: e.map(({ label: f, ...g }, u) => /* @__PURE__ */ v(O, { children: [
82
- /* @__PURE__ */ a(
83
- x,
84
- {
85
- ...g,
86
- label: f,
87
- isLast: u === e.length - 1,
88
- size: n
89
- }
90
- ),
91
- u !== e.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(p, { className: c(j({ size: n })) }) })
92
- ] }, `${d}-${f}`))
93
- }
94
- )
75
+ children: /* @__PURE__ */ a("ol", { className: h(O({ className: o })), ...i, children: e.map(({ label: p, ...d }, f) => /* @__PURE__ */ g(y, { children: [
76
+ /* @__PURE__ */ a(
77
+ w,
78
+ {
79
+ ...d,
80
+ label: p,
81
+ isLast: f === e.length - 1
82
+ }
83
+ ),
84
+ f !== e.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(c, { className: "text-gray-400 w-5 h-5 mt-0.5" }) })
85
+ ] }, `${s}-${p}`)) })
95
86
  }
96
87
  );
97
88
  };
98
89
  export {
99
- C as Breadcrumb
90
+ W as Breadcrumb
100
91
  };
@@ -1,43 +1,12 @@
1
- import { c as a } from "../../index-BNmRGtA6.js";
2
- const e = a(
3
- ["text-slate-500", "cursor-pointer"],
4
- {
5
- variants: {
6
- size: {
7
- sm: "",
8
- base: "",
9
- lg: "",
10
- xl: ""
11
- }
12
- }
13
- }
14
- ), t = a(["flex", "gap-1", "items-center"], {
15
- variants: {
16
- size: {
17
- sm: "",
18
- base: "",
19
- lg: "",
20
- xl: ""
21
- }
22
- },
23
- defaultVariants: {
24
- size: "base"
25
- }
26
- }), r = a("text-[#abadc6]", {
27
- variants: {
28
- size: {
29
- sm: ["w-3", "h-3"],
30
- base: ["w-4", "h-4"],
31
- lg: ["w-5", "h-5"],
32
- xl: ["w-6", "h-6"]
33
- }
34
- },
35
- defaultVariants: {
36
- size: "base"
37
- }
38
- });
1
+ import { c as e } from "../../index-BNmRGtA6.js";
2
+ const r = e([
3
+ "text-slate-500",
4
+ "text-md",
5
+ "flex",
6
+ "gap-2",
7
+ "items-center"
8
+ ]), a = e(["flex", "gap-1", "items-center"]);
39
9
  export {
40
- t as breadcrumbVariants,
41
- e as breadcrumbWrapperVariants,
42
- r as chevronVariants
10
+ a as breadcrumbVariants,
11
+ r as breadcrumbWrapperVariants
43
12
  };
@@ -1,49 +1,48 @@
1
- import { jsx as a, Fragment as f } from "react/jsx-runtime";
2
- import { cn as n } from "../../../../utils/index.js";
3
- import { u as b, L as h } from "../../../../useBreadcrumb-BsIeMoR1.js";
4
- import { breadcrumbLinkVariants as c, breadcrumbLabelVariants as p, breadcrumbItemVariants as k } from "./Item.variants.js";
5
- const V = ({
1
+ import { jsx as a, Fragment as u } from "react/jsx-runtime";
2
+ import { cn as i } from "../../../../utils/index.js";
3
+ import { u as f, L as h } from "../../../../useBreadcrumb-BsIeMoR1.js";
4
+ import { breadcrumbLinkVariants as d, breadcrumbLabelVariants as p } from "./Item.variants.js";
5
+ const x = ({
6
6
  isActive: r,
7
- isLast: d,
8
- label: s,
9
- size: l,
7
+ isLast: c,
8
+ label: n,
10
9
  target: m,
11
- theme: t,
10
+ theme: l,
12
11
  to: e
13
12
  }) => {
14
- const { isInsideRouter: o } = b(), i = (u) => {
15
- e === "#" && u.preventDefault();
13
+ const { isInsideRouter: t } = f(), s = (o) => {
14
+ e === "#" && o.preventDefault();
16
15
  };
17
16
  return /* @__PURE__ */ a(
18
17
  "li",
19
18
  {
20
- "aria-current": d ? "page" : void 0,
21
- className: n(k({ size: l })),
22
- "data-theme": t,
23
- children: e ? /* @__PURE__ */ a(f, { children: o ? /* @__PURE__ */ a(
19
+ "aria-current": c ? "page" : void 0,
20
+ className: "group font-medium text-inherit",
21
+ "data-theme": l,
22
+ children: e ? /* @__PURE__ */ a(u, { children: t ? /* @__PURE__ */ a(
24
23
  h,
25
24
  {
26
25
  to: e,
27
26
  target: m,
28
- className: n(c({ isActive: r })),
27
+ className: i(d({ isActive: r })),
29
28
  "aria-disabled": r ? "true" : "false",
30
- onClick: i,
31
- children: s
29
+ onClick: s,
30
+ children: n
32
31
  }
33
32
  ) : /* @__PURE__ */ a(
34
33
  "a",
35
34
  {
36
35
  href: e,
37
36
  target: m,
38
- className: n(c({ isActive: r })),
37
+ className: i(d({ isActive: r })),
39
38
  "aria-disabled": r ? "true" : "false",
40
- onClick: i,
41
- children: s
39
+ onClick: s,
40
+ children: n
42
41
  }
43
- ) }) : /* @__PURE__ */ a("span", { className: n(p({ isActive: r })), children: s })
42
+ ) }) : /* @__PURE__ */ a("span", { className: i(p({ isActive: r })), children: n })
44
43
  }
45
44
  );
46
45
  };
47
46
  export {
48
- V as Item
47
+ x as Item
49
48
  };