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

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 (105) hide show
  1. package/dist/{Combination-b348x__d.js → Combination-Cvr3uETz.js} +102 -102
  2. package/dist/DatePicker.css +1 -0
  3. package/dist/{Modal-i7eolhYH.js → Modal-DXYBiafI.js} +3 -3
  4. package/dist/components/Alert/Alert.js +1 -1
  5. package/dist/components/AlertDialog/AlertDialog.js +55 -41
  6. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  7. package/dist/components/AlertDialog/components/index.js +1 -1
  8. package/dist/components/Badge/Badge.js +14 -14
  9. package/dist/components/Badge/Badge.variants.js +18 -17
  10. package/dist/components/Breadcrumb/Breadcrumb.js +43 -52
  11. package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
  12. package/dist/components/Breadcrumb/components/Item/Item.js +22 -23
  13. package/dist/components/Breadcrumb/components/Item/Item.variants.js +43 -56
  14. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  15. package/dist/components/Button/Button.js +30 -26
  16. package/dist/components/Button/Button.variants.js +115 -28
  17. package/dist/components/Checkbox/Checkbox.js +297 -187
  18. package/dist/components/Checkbox/Checkbox.variants.js +12 -15
  19. package/dist/components/Command/Command.js +2 -2
  20. package/dist/components/Command/components/Command.js +1 -1
  21. package/dist/components/Command/components/CommandEmpty.js +1 -1
  22. package/dist/components/Command/components/CommandGroup.js +1 -1
  23. package/dist/components/Command/components/CommandInput.js +1 -1
  24. package/dist/components/Command/components/CommandItem.js +1 -1
  25. package/dist/components/Command/components/CommandList.js +1 -1
  26. package/dist/components/Command/components/CommandSeparator.js +1 -1
  27. package/dist/components/Command/components/DialogContent.js +1 -1
  28. package/dist/components/Command/components/DialogOverlay.js +1 -1
  29. package/dist/components/Datepicker/DatePicker.js +2711 -0
  30. package/dist/components/Datepicker/DatePicker.variants.js +5 -0
  31. package/dist/components/Dropdown/components/List/List.js +49 -17
  32. package/dist/components/Dropdown/components/ListItem/ListItem.js +21 -17
  33. package/dist/components/Dropdown/components/Wrapper.js +64 -59
  34. package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
  35. package/dist/components/Input/Input.js +106 -137
  36. package/dist/components/Input/Input.variants.js +15 -13
  37. package/dist/components/Loading/Loading.js +2 -2
  38. package/dist/components/Modal/Modal.js +2 -2
  39. package/dist/components/Modal/components/Body/Body.js +1 -1
  40. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  41. package/dist/components/Modal/components/Header/Header.js +1 -1
  42. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  43. package/dist/components/Modal/components/index.js +1 -1
  44. package/dist/components/NumberInput/NumberInput.js +1 -1
  45. package/dist/components/Radio/Radio.variants.js +14 -12
  46. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  47. package/dist/components/Range/Range.js +1 -1
  48. package/dist/components/Slider/Slider.js +1 -1
  49. package/dist/components/Switch/Switch.js +141 -126
  50. package/dist/components/Tabs/Tabs.js +24 -0
  51. package/dist/components/Tabs/Tabs.variants.js +58 -0
  52. package/dist/components/Tabs/components/Content.js +19 -0
  53. package/dist/components/Tabs/components/List.js +20 -0
  54. package/dist/components/Tabs/components/Trigger.js +26 -0
  55. package/dist/components/Tag/Tag.js +1 -1
  56. package/dist/components/TimePicker/TimePicker.js +8 -0
  57. package/dist/components/TimePicker/TimePicker.variants.js +62 -0
  58. package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
  59. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
  60. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
  61. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +102 -0
  62. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
  63. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
  64. package/dist/components/TimePicker/components/index.js +4 -0
  65. package/dist/components/TimePicker/contexts/index.js +8 -0
  66. package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
  67. package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
  68. package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
  69. package/dist/components/TimePicker/utils/index.js +6 -0
  70. package/dist/components/Toast/Toast.js +37 -35
  71. package/dist/components/Tooltip/Tooltip.js +1 -1
  72. package/dist/components/Typography/Typography.js +14 -16
  73. package/dist/components/index.js +72 -66
  74. package/dist/createLucideIcon-vyksFS6P.js +94 -0
  75. package/dist/index--EmNlyHx.js +31 -0
  76. package/dist/{index-DvFiic6N.js → index-1RDo-S_f.js} +96 -102
  77. package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
  78. package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
  79. package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
  80. package/dist/index-BdMNhZnh.js +9 -0
  81. package/dist/{index-AM3avohj.js → index-BuxebbOg.js} +3 -3
  82. package/dist/index-BvCZBMfr.js +432 -0
  83. package/dist/index-Cq1I1cG9.js +129 -0
  84. package/dist/index-Cs8Lv8Wj.js +13 -0
  85. package/dist/index-CvfCCTEO.js +323 -0
  86. package/dist/{index-dRxIWVBr.js → index-Cz09twLl.js} +6 -5
  87. package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
  88. package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
  89. package/dist/index-DwYXX2sM.js +13 -0
  90. package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
  91. package/dist/index.d.ts +75 -13
  92. package/dist/index.js +78 -72
  93. package/dist/package.json +37 -34
  94. package/dist/styles.css +1 -1
  95. package/dist/ui/civo-theme.css +263 -0
  96. package/dist/ui/kubefirst-theme.css +1 -1
  97. package/dist/ui/theme.css +11 -0
  98. package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
  99. package/dist/utils/index.js +3 -3
  100. package/package.json +37 -34
  101. package/dist/createLucideIcon-CoF3ywd5.js +0 -89
  102. package/dist/index-BOx5P4tS.js +0 -423
  103. package/dist/index-CWKdynYu.js +0 -32
  104. package/dist/index-bYyfdsls.js +0 -118
  105. package/dist/useBreadcrumb-BsIeMoR1.js +0 -1279
@@ -1,13 +1,13 @@
1
1
  import * as l from "react";
2
2
  import { useState as ee } from "react";
3
- var S = function() {
4
- return S = Object.assign || function(t) {
3
+ var b = function() {
4
+ return b = Object.assign || function(t) {
5
5
  for (var n, r = 1, a = arguments.length; r < a; r++) {
6
6
  n = arguments[r];
7
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
7
+ for (var c in n) Object.prototype.hasOwnProperty.call(n, c) && (t[c] = n[c]);
8
8
  }
9
9
  return t;
10
- }, S.apply(this, arguments);
10
+ }, b.apply(this, arguments);
11
11
  };
12
12
  function Z(e, t) {
13
13
  var n = {};
@@ -18,11 +18,11 @@ function Z(e, t) {
18
18
  return n;
19
19
  }
20
20
  function te(e, t, n) {
21
- if (n || arguments.length === 2) for (var r = 0, a = t.length, i; r < a; r++)
22
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
23
- return e.concat(i || Array.prototype.slice.call(t));
21
+ if (n || arguments.length === 2) for (var r = 0, a = t.length, c; r < a; r++)
22
+ (c || !(r in t)) && (c || (c = Array.prototype.slice.call(t, 0, r)), c[r] = t[r]);
23
+ return e.concat(c || Array.prototype.slice.call(t));
24
24
  }
25
- var N = "right-scroll-bar-position", O = "width-before-scroll-bar", re = "with-scroll-bars-hidden", ne = "--removed-body-scroll-bar-size";
25
+ var x = "right-scroll-bar-position", O = "width-before-scroll-bar", re = "with-scroll-bars-hidden", ne = "--removed-body-scroll-bar-size";
26
26
  function I(e, t) {
27
27
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
28
28
  }
@@ -57,11 +57,11 @@ function ce(e, t) {
57
57
  return oe(function() {
58
58
  var r = D.get(n);
59
59
  if (r) {
60
- var a = new Set(r), i = new Set(e), u = n.current;
61
- a.forEach(function(o) {
62
- i.has(o) || I(o, null);
63
- }), i.forEach(function(o) {
64
- a.has(o) || I(o, u);
60
+ var a = new Set(r), c = new Set(e), u = n.current;
61
+ a.forEach(function(i) {
62
+ c.has(i) || I(i, null);
63
+ }), c.forEach(function(i) {
64
+ a.has(i) || I(i, u);
65
65
  });
66
66
  }
67
67
  D.set(n, e);
@@ -78,38 +78,38 @@ function Q(e, t) {
78
78
  throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
79
79
  return n.length ? n[n.length - 1] : e;
80
80
  },
81
- useMedium: function(i) {
82
- var u = t(i, r);
81
+ useMedium: function(c) {
82
+ var u = t(c, r);
83
83
  return n.push(u), function() {
84
- n = n.filter(function(o) {
85
- return o !== u;
84
+ n = n.filter(function(i) {
85
+ return i !== u;
86
86
  });
87
87
  };
88
88
  },
89
- assignSyncMedium: function(i) {
89
+ assignSyncMedium: function(c) {
90
90
  for (r = !0; n.length; ) {
91
91
  var u = n;
92
- n = [], u.forEach(i);
92
+ n = [], u.forEach(c);
93
93
  }
94
94
  n = {
95
- push: function(o) {
96
- return i(o);
95
+ push: function(i) {
96
+ return c(i);
97
97
  },
98
98
  filter: function() {
99
99
  return n;
100
100
  }
101
101
  };
102
102
  },
103
- assignMedium: function(i) {
103
+ assignMedium: function(c) {
104
104
  r = !0;
105
105
  var u = [];
106
106
  if (n.length) {
107
- var o = n;
108
- n = [], o.forEach(i), u = n;
107
+ var i = n;
108
+ n = [], i.forEach(c), u = n;
109
109
  }
110
110
  var h = function() {
111
111
  var d = u;
112
- u = [], d.forEach(i);
112
+ u = [], d.forEach(c);
113
113
  }, m = function() {
114
114
  return Promise.resolve().then(h);
115
115
  };
@@ -131,7 +131,7 @@ function Xe(e, t) {
131
131
  function ie(e) {
132
132
  e === void 0 && (e = {});
133
133
  var t = Q(null);
134
- return t.options = S({ async: !0, ssr: !1 }, e), t;
134
+ return t.options = b({ async: !0, ssr: !1 }, e), t;
135
135
  }
136
136
  var G = function(e) {
137
137
  var t = e.sideCar, n = Z(e, ["sideCar"]);
@@ -140,7 +140,7 @@ var G = function(e) {
140
140
  var r = t.read();
141
141
  if (!r)
142
142
  throw new Error("Sidecar medium not found");
143
- return l.createElement(r, S({}, n));
143
+ return l.createElement(r, b({}, n));
144
144
  };
145
145
  G.isSideCarExport = !0;
146
146
  function le(e, t) {
@@ -152,12 +152,12 @@ var K = ie(), W = function() {
152
152
  onScrollCapture: W,
153
153
  onWheelCapture: W,
154
154
  onTouchMoveCapture: W
155
- }), a = r[0], i = r[1], u = e.forwardProps, o = e.children, h = e.className, m = e.removeScrollBar, d = e.enabled, w = e.shards, E = e.sideCar, p = e.noIsolation, C = e.inert, c = e.allowPinchZoom, f = e.as, v = f === void 0 ? "div" : f, y = e.gapMode, g = Z(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = E, s = ce([n, t]), R = S(S({}, g), a);
155
+ }), a = r[0], c = r[1], u = e.forwardProps, i = e.children, h = e.className, m = e.removeScrollBar, d = e.enabled, p = e.shards, R = e.sideCar, C = e.noRelative, E = e.noIsolation, o = e.inert, f = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, g = e.gapMode, S = Z(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), s = R, k = ce([n, t]), w = b(b({}, S), a);
156
156
  return l.createElement(
157
157
  l.Fragment,
158
158
  null,
159
- d && l.createElement(b, { sideCar: K, removeScrollBar: m, shards: w, noIsolation: p, inert: C, setCallbacks: i, allowPinchZoom: !!c, lockRef: n, gapMode: y }),
160
- u ? l.cloneElement(l.Children.only(o), S(S({}, R), { ref: s })) : l.createElement(v, S({}, R, { className: h, ref: s }), o)
159
+ d && l.createElement(s, { sideCar: K, removeScrollBar: m, shards: p, noRelative: C, noIsolation: E, inert: o, setCallbacks: c, allowPinchZoom: !!f, lockRef: n, gapMode: g }),
160
+ u ? l.cloneElement(l.Children.only(i), b(b({}, w), { ref: k })) : l.createElement(y, b({}, w, { className: h, ref: k }), i)
161
161
  );
162
162
  });
163
163
  A.defaultProps = {
@@ -167,7 +167,7 @@ A.defaultProps = {
167
167
  };
168
168
  A.classNames = {
169
169
  fullWidth: O,
170
- zeroRight: N
170
+ zeroRight: x
171
171
  };
172
172
  var ue = function() {
173
173
  if (typeof __webpack_nonce__ < "u")
@@ -233,39 +233,39 @@ var ve = function() {
233
233
  right: t[2],
234
234
  gap: Math.max(0, r - n + t[2] - t[0])
235
235
  };
236
- }, Se = U(), M = "data-scroll-locked", be = function(e, t, n, r) {
237
- var a = e.left, i = e.top, u = e.right, o = e.gap;
236
+ }, be = U(), L = "data-scroll-locked", Se = function(e, t, n, r) {
237
+ var a = e.left, c = e.top, u = e.right, i = e.gap;
238
238
  return n === void 0 && (n = "margin"), `
239
239
  .`.concat(re, ` {
240
240
  overflow: hidden `).concat(r, `;
241
- padding-right: `).concat(o, "px ").concat(r, `;
241
+ padding-right: `).concat(i, "px ").concat(r, `;
242
242
  }
243
- body[`).concat(M, `] {
243
+ body[`).concat(L, `] {
244
244
  overflow: hidden `).concat(r, `;
245
245
  overscroll-behavior: contain;
246
246
  `).concat([
247
247
  t && "position: relative ".concat(r, ";"),
248
248
  n === "margin" && `
249
249
  padding-left: `.concat(a, `px;
250
- padding-top: `).concat(i, `px;
250
+ padding-top: `).concat(c, `px;
251
251
  padding-right: `).concat(u, `px;
252
252
  margin-left:0;
253
253
  margin-top:0;
254
- margin-right: `).concat(o, "px ").concat(r, `;
254
+ margin-right: `).concat(i, "px ").concat(r, `;
255
255
  `),
256
- n === "padding" && "padding-right: ".concat(o, "px ").concat(r, ";")
256
+ n === "padding" && "padding-right: ".concat(i, "px ").concat(r, ";")
257
257
  ].filter(Boolean).join(""), `
258
258
  }
259
259
 
260
- .`).concat(N, ` {
261
- right: `).concat(o, "px ").concat(r, `;
260
+ .`).concat(x, ` {
261
+ right: `).concat(i, "px ").concat(r, `;
262
262
  }
263
263
 
264
264
  .`).concat(O, ` {
265
- margin-right: `).concat(o, "px ").concat(r, `;
265
+ margin-right: `).concat(i, "px ").concat(r, `;
266
266
  }
267
267
 
268
- .`).concat(N, " .").concat(N, ` {
268
+ .`).concat(x, " .").concat(x, ` {
269
269
  right: 0 `).concat(r, `;
270
270
  }
271
271
 
@@ -273,27 +273,27 @@ var ve = function() {
273
273
  margin-right: 0 `).concat(r, `;
274
274
  }
275
275
 
276
- body[`).concat(M, `] {
277
- `).concat(ne, ": ").concat(o, `px;
276
+ body[`).concat(L, `] {
277
+ `).concat(ne, ": ").concat(i, `px;
278
278
  }
279
279
  `);
280
280
  }, V = function() {
281
- var e = parseInt(document.body.getAttribute(M) || "0", 10);
281
+ var e = parseInt(document.body.getAttribute(L) || "0", 10);
282
282
  return isFinite(e) ? e : 0;
283
283
  }, we = function() {
284
284
  l.useEffect(function() {
285
- return document.body.setAttribute(M, (V() + 1).toString()), function() {
285
+ return document.body.setAttribute(L, (V() + 1).toString()), function() {
286
286
  var e = V() - 1;
287
- e <= 0 ? document.body.removeAttribute(M) : document.body.setAttribute(M, e.toString());
287
+ e <= 0 ? document.body.removeAttribute(L) : document.body.setAttribute(L, e.toString());
288
288
  };
289
289
  }, []);
290
290
  }, pe = function(e) {
291
291
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, a = r === void 0 ? "margin" : r;
292
292
  we();
293
- var i = l.useMemo(function() {
293
+ var c = l.useMemo(function() {
294
294
  return ye(a);
295
295
  }, [a]);
296
- return l.createElement(Se, { styles: be(i, !t, a, n ? "" : "!important") });
296
+ return l.createElement(be, { styles: Se(c, !t, a, n ? "" : "!important") });
297
297
  }, Y = !1;
298
298
  if (typeof window < "u")
299
299
  try {
@@ -306,7 +306,7 @@ if (typeof window < "u")
306
306
  } catch {
307
307
  Y = !1;
308
308
  }
309
- var k = Y ? { passive: !1 } : !1, Ce = function(e) {
309
+ var P = Y ? { passive: !1 } : !1, Ce = function(e) {
310
310
  return e.tagName === "TEXTAREA";
311
311
  }, $ = function(e, t) {
312
312
  if (!(e instanceof Element))
@@ -327,8 +327,8 @@ var k = Y ? { passive: !1 } : !1, Ce = function(e) {
327
327
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
328
328
  var a = q(e, r);
329
329
  if (a) {
330
- var i = J(e, r), u = i[1], o = i[2];
331
- if (u > o)
330
+ var c = J(e, r), u = c[1], i = c[2];
331
+ if (u > i)
332
332
  return !0;
333
333
  }
334
334
  r = r.parentNode;
@@ -355,17 +355,17 @@ var k = Y ? { passive: !1 } : !1, Ce = function(e) {
355
355
  }, Me = function(e, t) {
356
356
  return e === "h" && t === "rtl" ? -1 : 1;
357
357
  }, Le = function(e, t, n, r, a) {
358
- var i = Me(e, window.getComputedStyle(t).direction), u = i * r, o = n.target, h = t.contains(o), m = !1, d = u > 0, w = 0, E = 0;
358
+ var c = Me(e, window.getComputedStyle(t).direction), u = c * r, i = n.target, h = t.contains(i), m = !1, d = u > 0, p = 0, R = 0;
359
359
  do {
360
- var p = J(e, o), C = p[0], c = p[1], f = p[2], v = c - f - i * C;
361
- (C || v) && q(e, o) && (w += v, E += C), o instanceof ShadowRoot ? o = o.host : o = o.parentNode;
360
+ var C = J(e, i), E = C[0], o = C[1], f = C[2], v = o - f - c * E;
361
+ (E || v) && q(e, i) && (p += v, R += E), i = i.parentNode.host || i.parentNode;
362
362
  } while (
363
363
  // portaled content
364
- !h && o !== document.body || // self content
365
- h && (t.contains(o) || t === o)
364
+ !h && i !== document.body || // self content
365
+ h && (t.contains(i) || t === i)
366
366
  );
367
- return (d && Math.abs(w) < 1 || !d && Math.abs(E) < 1) && (m = !0), m;
368
- }, x = function(e) {
367
+ return (d && Math.abs(p) < 1 || !d && Math.abs(R) < 1) && (m = !0), m;
368
+ }, N = function(e) {
369
369
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
370
370
  }, z = function(e) {
371
371
  return [e.deltaX, e.deltaY];
@@ -378,43 +378,43 @@ var k = Y ? { passive: !1 } : !1, Ce = function(e) {
378
378
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
379
379
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
380
380
  `);
381
- }, xe = 0, P = [];
382
- function Ne(e) {
383
- var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), a = l.useState(xe++)[0], i = l.useState(U)[0], u = l.useRef(e);
381
+ }, Ne = 0, M = [];
382
+ function xe(e) {
383
+ var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), a = l.useState(Ne++)[0], c = l.useState(U)[0], u = l.useRef(e);
384
384
  l.useEffect(function() {
385
385
  u.current = e;
386
386
  }, [e]), l.useEffect(function() {
387
387
  if (e.inert) {
388
388
  document.body.classList.add("block-interactivity-".concat(a));
389
- var c = te([e.lockRef.current], (e.shards || []).map(F), !0).filter(Boolean);
390
- return c.forEach(function(f) {
389
+ var o = te([e.lockRef.current], (e.shards || []).map(F), !0).filter(Boolean);
390
+ return o.forEach(function(f) {
391
391
  return f.classList.add("allow-interactivity-".concat(a));
392
392
  }), function() {
393
- document.body.classList.remove("block-interactivity-".concat(a)), c.forEach(function(f) {
393
+ document.body.classList.remove("block-interactivity-".concat(a)), o.forEach(function(f) {
394
394
  return f.classList.remove("allow-interactivity-".concat(a));
395
395
  });
396
396
  };
397
397
  }
398
398
  }, [e.inert, e.lockRef.current, e.shards]);
399
- var o = l.useCallback(function(c, f) {
400
- if ("touches" in c && c.touches.length === 2 || c.type === "wheel" && c.ctrlKey)
399
+ var i = l.useCallback(function(o, f) {
400
+ if ("touches" in o && o.touches.length === 2 || o.type === "wheel" && o.ctrlKey)
401
401
  return !u.current.allowPinchZoom;
402
- var v = x(c), y = n.current, g = "deltaX" in c ? c.deltaX : y[0] - v[0], b = "deltaY" in c ? c.deltaY : y[1] - v[1], s, R = c.target, L = Math.abs(g) > Math.abs(b) ? "h" : "v";
403
- if ("touches" in c && L === "h" && R.type === "range")
402
+ var v = N(o), y = n.current, g = "deltaX" in o ? o.deltaX : y[0] - v[0], S = "deltaY" in o ? o.deltaY : y[1] - v[1], s, k = o.target, w = Math.abs(g) > Math.abs(S) ? "h" : "v";
403
+ if ("touches" in o && w === "h" && k.type === "range")
404
404
  return !1;
405
- var T = H(L, R);
405
+ var T = H(w, k);
406
406
  if (!T)
407
407
  return !0;
408
- if (T ? s = L : (s = L === "v" ? "h" : "v", T = H(L, R)), !T)
408
+ if (T ? s = w : (s = w === "v" ? "h" : "v", T = H(w, k)), !T)
409
409
  return !1;
410
- if (!r.current && "changedTouches" in c && (g || b) && (r.current = s), !s)
410
+ if (!r.current && "changedTouches" in o && (g || S) && (r.current = s), !s)
411
411
  return !0;
412
412
  var j = r.current || s;
413
- return Le(j, f, c, j === "h" ? g : b);
414
- }, []), h = l.useCallback(function(c) {
415
- var f = c;
416
- if (!(!P.length || P[P.length - 1] !== i)) {
417
- var v = "deltaY" in f ? z(f) : x(f), y = t.current.filter(function(s) {
413
+ return Le(j, f, o, j === "h" ? g : S);
414
+ }, []), h = l.useCallback(function(o) {
415
+ var f = o;
416
+ if (!(!M.length || M[M.length - 1] !== c)) {
417
+ var v = "deltaY" in f ? z(f) : N(f), y = t.current.filter(function(s) {
418
418
  return s.name === f.type && (s.target === f.target || f.target === s.shadowParent) && Te(s.delta, v);
419
419
  })[0];
420
420
  if (y && y.should) {
@@ -424,41 +424,41 @@ function Ne(e) {
424
424
  if (!y) {
425
425
  var g = (u.current.shards || []).map(F).filter(Boolean).filter(function(s) {
426
426
  return s.contains(f.target);
427
- }), b = g.length > 0 ? o(f, g[0]) : !u.current.noIsolation;
428
- b && f.cancelable && f.preventDefault();
427
+ }), S = g.length > 0 ? i(f, g[0]) : !u.current.noIsolation;
428
+ S && f.cancelable && f.preventDefault();
429
429
  }
430
430
  }
431
- }, []), m = l.useCallback(function(c, f, v, y) {
432
- var g = { name: c, delta: f, target: v, should: y, shadowParent: Oe(v) };
431
+ }, []), m = l.useCallback(function(o, f, v, y) {
432
+ var g = { name: o, delta: f, target: v, should: y, shadowParent: Oe(v) };
433
433
  t.current.push(g), setTimeout(function() {
434
- t.current = t.current.filter(function(b) {
435
- return b !== g;
434
+ t.current = t.current.filter(function(S) {
435
+ return S !== g;
436
436
  });
437
437
  }, 1);
438
- }, []), d = l.useCallback(function(c) {
439
- n.current = x(c), r.current = void 0;
440
- }, []), w = l.useCallback(function(c) {
441
- m(c.type, z(c), c.target, o(c, e.lockRef.current));
442
- }, []), E = l.useCallback(function(c) {
443
- m(c.type, x(c), c.target, o(c, e.lockRef.current));
438
+ }, []), d = l.useCallback(function(o) {
439
+ n.current = N(o), r.current = void 0;
440
+ }, []), p = l.useCallback(function(o) {
441
+ m(o.type, z(o), o.target, i(o, e.lockRef.current));
442
+ }, []), R = l.useCallback(function(o) {
443
+ m(o.type, N(o), o.target, i(o, e.lockRef.current));
444
444
  }, []);
445
445
  l.useEffect(function() {
446
- return P.push(i), e.setCallbacks({
447
- onScrollCapture: w,
448
- onWheelCapture: w,
449
- onTouchMoveCapture: E
450
- }), document.addEventListener("wheel", h, k), document.addEventListener("touchmove", h, k), document.addEventListener("touchstart", d, k), function() {
451
- P = P.filter(function(c) {
452
- return c !== i;
453
- }), document.removeEventListener("wheel", h, k), document.removeEventListener("touchmove", h, k), document.removeEventListener("touchstart", d, k);
446
+ return M.push(c), e.setCallbacks({
447
+ onScrollCapture: p,
448
+ onWheelCapture: p,
449
+ onTouchMoveCapture: R
450
+ }), document.addEventListener("wheel", h, P), document.addEventListener("touchmove", h, P), document.addEventListener("touchstart", d, P), function() {
451
+ M = M.filter(function(o) {
452
+ return o !== c;
453
+ }), document.removeEventListener("wheel", h, P), document.removeEventListener("touchmove", h, P), document.removeEventListener("touchstart", d, P);
454
454
  };
455
455
  }, []);
456
- var p = e.removeScrollBar, C = e.inert;
456
+ var C = e.removeScrollBar, E = e.inert;
457
457
  return l.createElement(
458
458
  l.Fragment,
459
459
  null,
460
- C ? l.createElement(i, { styles: Be(a) }) : null,
461
- p ? l.createElement(pe, { gapMode: e.gapMode }) : null
460
+ E ? l.createElement(c, { styles: Be(a) }) : null,
461
+ C ? l.createElement(pe, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
462
462
  );
463
463
  }
464
464
  function Oe(e) {
@@ -466,9 +466,9 @@ function Oe(e) {
466
466
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
467
467
  return t;
468
468
  }
469
- const Ae = le(K, Ne);
469
+ const Ae = le(K, xe);
470
470
  var Ie = l.forwardRef(function(e, t) {
471
- return l.createElement(A, S({}, e, { ref: t, sideCar: Ae }));
471
+ return l.createElement(A, b({}, e, { ref: t, sideCar: Ae }));
472
472
  });
473
473
  Ie.classNames = A.classNames;
474
474
  export {
@@ -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,10 +3,10 @@ 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-BCGvACM9.js";
7
+ import { R as Ur } from "./index--EmNlyHx.js";
8
8
  import { p as l } from "./index-C5psggHV.js";
9
- import { c as le, a as Gr, u as Hr, R as jr } from "./Combination-b348x__d.js";
9
+ import { c as le, a as Gr, u as Hr, R as jr } from "./Combination-Cvr3uETz.js";
10
10
  import { cn as Me } from "./utils/index.js";
11
11
  import { buttonCloseVariants as Vr, modalVariants as qr } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
12
12
  import { X as $r } from "./x-DU-Zw-L_.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--EmNlyHx.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-BuxebbOg.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-BuxebbOg.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-BuxebbOg.js";
2
2
  export {
3
3
  g as AlertDialogTrigger
4
4
  };