@dimasbaguspm/versaur 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/js/index.js CHANGED
@@ -1,32 +1,33 @@
1
1
  import { L as s, P as e, S as o } from "./skeleton-BNZyaRjo.js";
2
2
  import { A as n, B as p, F as u, P as c, T as i } from "./form-layout-4ASWdXn8.js";
3
- import { C as I, a as m, b as B, D as S, R as T, c as x, S as d, d as b, g as f, j as g, i as h, h as C, e as k, T as A, f as P } from "./switch-input-Bx6_2zG9.js";
3
+ import { C as I, a as m, b as B, D as S, R as T, c as x, S as d, d as b, g as h, j as f, i as g, h as A, e as C, T as k, f as P } from "./switch-input-Bx6_2zG9.js";
4
4
  import { B as L, D } from "./bottom-sheet-Difan0U1.js";
5
5
  import { M as F, a as y } from "./menu-Bm-yPIMN.js";
6
- import { A as j, a as v, B as q, b as z, c as E, S as G, T as H, d as J } from "./tile-DLmZbkgG.js";
7
- import { B as N, a as O, C as Q, b as U, I as V, T as W } from "./calendar-CUjVZ7Ap.js";
8
- import { B as Y, T as Z } from "./tabs-BbOkYchB.js";
6
+ import { A as j, a as v, b as q, B as z, c as E, d as G, S as H, T as J, e as K } from "./tile-BjhJ5Mvl.js";
7
+ import { B as O, a as Q, C as U, b as V, I as W, T as X } from "./calendar-CUjVZ7Ap.js";
8
+ import { B as Z, T as _ } from "./tabs-BbOkYchB.js";
9
9
  export {
10
10
  j as Alert,
11
+ v as Anchor,
11
12
  n as AppBar,
12
- v as Avatar,
13
- q as Badge,
13
+ q as Avatar,
14
+ z as Badge,
14
15
  p as BottomBar,
15
16
  L as BottomSheet,
16
- z as Brand,
17
- Y as Breadcrumbs,
18
- N as Button,
19
- E as ButtonFloat,
20
- O as ButtonIcon,
21
- Q as Calculator,
17
+ E as Brand,
18
+ Z as Breadcrumbs,
19
+ O as Button,
20
+ G as ButtonFloat,
21
+ Q as ButtonIcon,
22
+ U as Calculator,
22
23
  I as CalculatorInput,
23
- U as Calendar,
24
+ V as Calendar,
24
25
  m as CheckboxInput,
25
26
  B as ChipInput,
26
27
  S as DateSinglePickerInput,
27
28
  D as Drawer,
28
29
  u as FormLayout,
29
- V as Icon,
30
+ W as Icon,
30
31
  s as LoadingIndicator,
31
32
  F as Menu,
32
33
  y as Modal,
@@ -37,17 +38,17 @@ export {
37
38
  d as SegmentSingleInput,
38
39
  b as SelectInput,
39
40
  o as Skeleton,
40
- G as Snackbar,
41
- f as SwitchInput,
42
- g as SwitchLabel,
43
- h as SwitchThumb,
44
- C as SwitchTrack,
45
- H as Table,
46
- Z as Tabs,
47
- W as Text,
48
- k as TextAreaInput,
49
- A as TextInput,
50
- J as Tile,
41
+ H as Snackbar,
42
+ h as SwitchInput,
43
+ f as SwitchLabel,
44
+ g as SwitchThumb,
45
+ A as SwitchTrack,
46
+ J as Table,
47
+ _ as Tabs,
48
+ X as Text,
49
+ C as TextAreaInput,
50
+ k as TextInput,
51
+ K as Tile,
51
52
  P as TimePickerInput,
52
53
  i as TopBar
53
54
  };
@@ -1,18 +1,19 @@
1
- import { A as t, a as o, B as r, b as e, c as n, S as l, T as B, d as c } from "../tile-DLmZbkgG.js";
2
- import { B as b, a as d, C as u, b as x, I as A, T as C } from "../calendar-CUjVZ7Ap.js";
1
+ import { A as t, a as o, b as r, B as e, c as n, d as l, S as B, T as c, e as T } from "../tile-BjhJ5Mvl.js";
2
+ import { B as d, a as u, C as A, b as x, I as C, T as I } from "../calendar-CUjVZ7Ap.js";
3
3
  export {
4
4
  t as Alert,
5
- o as Avatar,
6
- r as Badge,
7
- e as Brand,
8
- b as Button,
9
- n as ButtonFloat,
10
- d as ButtonIcon,
11
- u as Calculator,
5
+ o as Anchor,
6
+ r as Avatar,
7
+ e as Badge,
8
+ n as Brand,
9
+ d as Button,
10
+ l as ButtonFloat,
11
+ u as ButtonIcon,
12
+ A as Calculator,
12
13
  x as Calendar,
13
- A as Icon,
14
- l as Snackbar,
15
- B as Table,
16
- C as Text,
17
- c as Tile
14
+ C as Icon,
15
+ B as Snackbar,
16
+ c as Table,
17
+ I as Text,
18
+ T as Tile
18
19
  };
@@ -1,6 +1,6 @@
1
- import { c as b, j as a, a as l } from "./index-DOdDlCoL.js";
2
- import * as g from "react";
3
- import { forwardRef as d, useState as v, useEffect as x, useCallback as y, useRef as S, createContext as T, useContext as V, useMemo as A } from "react";
1
+ import { c as b, j as n, a as l } from "./index-DOdDlCoL.js";
2
+ import * as u from "react";
3
+ import { forwardRef as d, useState as v, useEffect as x, useCallback as y, useRef as S, createContext as V, useContext as T, useMemo as A } from "react";
4
4
  const B = b(
5
5
  "relative flex items-center gap-2 rounded-md p-2 text-sm transition-all duration-200",
6
6
  {
@@ -137,7 +137,7 @@ const B = b(
137
137
  }
138
138
  }
139
139
  ), C = d(
140
- ({ className: e, children: r, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: l(R(), e), ...t, children: r })
140
+ ({ className: e, children: r, ...t }, s) => /* @__PURE__ */ n.jsx("div", { ref: s, className: l(R(), e), ...t, children: r })
141
141
  ), k = d(
142
142
  ({
143
143
  variant: e = "default",
@@ -145,23 +145,70 @@ const B = b(
145
145
  icon: t,
146
146
  className: s,
147
147
  children: o,
148
- ...n
149
- }, u) => /* @__PURE__ */ a.jsxs(
148
+ ...a
149
+ }, g) => /* @__PURE__ */ n.jsxs(
150
150
  "div",
151
151
  {
152
- ref: u,
152
+ ref: g,
153
153
  role: "alert",
154
154
  className: l(B({ variant: e, color: r }), s),
155
- ...n,
155
+ ...a,
156
156
  children: [
157
- t && /* @__PURE__ */ a.jsx(C, { children: t }),
158
- /* @__PURE__ */ a.jsx("div", { className: "flex-1", children: o })
157
+ t && /* @__PURE__ */ n.jsx(C, { children: t }),
158
+ /* @__PURE__ */ n.jsx("div", { className: "flex-1", children: o })
159
159
  ]
160
160
  }
161
161
  )
162
- ), ne = Object.assign(k, {
162
+ ), le = Object.assign(k, {
163
163
  Icon: C
164
164
  }), I = b(
165
+ [
166
+ "inline-flex items-center transition-colors underline underline-offset-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
167
+ // pseudo selectors for anchor
168
+ "hover:no-underline"
169
+ ],
170
+ {
171
+ variants: {
172
+ color: {
173
+ primary: "text-primary",
174
+ secondary: "text-secondary",
175
+ ghost: "text-ghost",
176
+ danger: "text-danger",
177
+ neutral: "text-neutral"
178
+ }
179
+ },
180
+ defaultVariants: {
181
+ color: "primary"
182
+ }
183
+ }
184
+ ), O = d(
185
+ ({
186
+ children: e,
187
+ className: r,
188
+ color: t = "primary",
189
+ fontSize: s = "base",
190
+ fontWeight: o = "medium",
191
+ ...a
192
+ }, g) => {
193
+ const i = s ? `text-${s}` : "text-base", f = o ? `font-${o}` : "font-medium";
194
+ return /* @__PURE__ */ n.jsx(
195
+ "a",
196
+ {
197
+ ref: g,
198
+ className: l(
199
+ I({ color: t }),
200
+ i,
201
+ f,
202
+ r
203
+ ),
204
+ ...a,
205
+ children: e
206
+ }
207
+ );
208
+ }
209
+ );
210
+ O.displayName = "Anchor";
211
+ const q = b(
165
212
  "inline-flex items-center justify-center font-medium text-white overflow-hidden transition-all duration-200 select-none relative",
166
213
  {
167
214
  variants: {
@@ -197,28 +244,28 @@ const B = b(
197
244
  shape: "circle"
198
245
  }
199
246
  }
200
- ), O = b(
247
+ ), F = b(
201
248
  "absolute inset-0 h-full w-full object-cover"
202
- ), q = d(
249
+ ), L = d(
203
250
  ({
204
251
  variant: e = "primary",
205
252
  size: r = "md",
206
253
  shape: t = "circle",
207
254
  className: s,
208
255
  children: o,
209
- ...n
210
- }, u) => /* @__PURE__ */ a.jsx(
256
+ ...a
257
+ }, g) => /* @__PURE__ */ n.jsx(
211
258
  "div",
212
259
  {
213
- ref: u,
214
- className: l(I({ variant: e, size: r, shape: t }), s),
215
- ...n,
260
+ ref: g,
261
+ className: l(q({ variant: e, size: r, shape: t }), s),
262
+ ...a,
216
263
  children: o
217
264
  }
218
265
  )
219
- ), F = d(
220
- ({ src: e, alt: r, className: t, onError: s, ...o }, n) => {
221
- const [u, i] = v(!1);
266
+ ), $ = d(
267
+ ({ src: e, alt: r, className: t, onError: s, ...o }, a) => {
268
+ const [g, i] = v(!1);
222
269
  x(() => {
223
270
  i(!1);
224
271
  }, [e]);
@@ -228,24 +275,24 @@ const B = b(
228
275
  },
229
276
  [s]
230
277
  );
231
- return u ? null : /* @__PURE__ */ a.jsx(
278
+ return g ? null : /* @__PURE__ */ n.jsx(
232
279
  "img",
233
280
  {
234
- ref: n,
281
+ ref: a,
235
282
  src: e,
236
283
  alt: r,
237
- className: l(O(), t),
284
+ className: l(F(), t),
238
285
  onError: f,
239
286
  ...o
240
287
  }
241
288
  );
242
289
  }
243
- ), ie = Object.assign(q, {
290
+ ), ce = Object.assign(L, {
244
291
  /**
245
292
  * AvatarImage sub-component for displaying images with fallback behavior
246
293
  */
247
- Image: F
248
- }), L = b(
294
+ Image: $
295
+ }), M = b(
249
296
  "inline-flex items-center justify-center font-medium transition-all duration-200 select-none gap-1 min-h-[1.25rem]",
250
297
  {
251
298
  variants: {
@@ -398,51 +445,51 @@ const B = b(
398
445
  iconOnly: !1
399
446
  }
400
447
  }
401
- ), M = d(
448
+ ), P = d(
402
449
  ({
403
450
  variant: e = "default",
404
451
  shape: r = "square",
405
452
  color: t = "primary",
406
453
  size: s = "md",
407
454
  iconLeft: o,
408
- iconRight: n,
409
- className: u,
455
+ iconRight: a,
456
+ className: g,
410
457
  children: i,
411
458
  ...f
412
459
  }, c) => {
413
- const h = !(i != null && i !== "") && !!(o || n);
414
- return /* @__PURE__ */ a.jsx(
460
+ const h = !(i != null && i !== "") && !!(o || a);
461
+ return /* @__PURE__ */ n.jsx(
415
462
  "span",
416
463
  {
417
464
  ref: c,
418
465
  className: l(
419
- L({
466
+ M({
420
467
  variant: e,
421
468
  color: t,
422
469
  shape: r,
423
470
  size: s,
424
471
  iconOnly: h
425
472
  }),
426
- u
473
+ g
427
474
  ),
428
475
  ...f,
429
476
  children: h ? (
430
477
  // Icon-only mode: display only the icon
431
- o || n
478
+ o || a
432
479
  ) : (
433
480
  // Normal mode: display icon(s) and text
434
- /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
481
+ /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
435
482
  o,
436
483
  i,
437
- n
484
+ a
438
485
  ] })
439
486
  )
440
487
  }
441
488
  );
442
489
  }
443
490
  );
444
- M.displayName = "Badge";
445
- const E = (e) => /* @__PURE__ */ g.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ g.createElement("title", null, "Spenicle"), /* @__PURE__ */ g.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ g.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ g.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), P = (e) => /* @__PURE__ */ g.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ g.createElement("title", null, "Spenicle"), /* @__PURE__ */ g.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ g.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ g.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), H = (e) => /* @__PURE__ */ g.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ g.createElement("title", null, "Spenicle"), /* @__PURE__ */ g.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ g.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ g.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), $ = b("", {
491
+ P.displayName = "Badge";
492
+ const E = (e) => /* @__PURE__ */ u.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ u.createElement("title", null, "Spenicle"), /* @__PURE__ */ u.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ u.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ u.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), H = (e) => /* @__PURE__ */ u.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ u.createElement("title", null, "Spenicle"), /* @__PURE__ */ u.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ u.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ u.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), Y = (e) => /* @__PURE__ */ u.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ u.createElement("title", null, "Spenicle"), /* @__PURE__ */ u.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ u.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ u.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), _ = b("", {
446
493
  variants: {
447
494
  size: {
448
495
  xs: "h-6 w-6",
@@ -455,33 +502,33 @@ const E = (e) => /* @__PURE__ */ g.createElement("svg", { width: 32, height: 32,
455
502
  defaultVariants: {
456
503
  size: "md"
457
504
  }
458
- }), Y = d(
505
+ }), D = d(
459
506
  ({ shape: e = "square", size: r, ...t }, s) => {
460
- const n = {
507
+ const a = {
461
508
  square: E,
462
- rounded: P,
463
- circle: H
509
+ rounded: H,
510
+ circle: Y
464
511
  }[e] || E;
465
- return /* @__PURE__ */ a.jsx(
466
- n,
512
+ return /* @__PURE__ */ n.jsx(
513
+ a,
467
514
  {
468
515
  ref: s,
469
516
  ...t,
470
- className: l("inline-block", $({ size: r }))
517
+ className: l("inline-block", _({ size: r }))
471
518
  }
472
519
  );
473
520
  }
474
- ), le = d(
475
- ({ name: e = "spenicle", size: r = "md", shape: t, ...s }, o) => /* @__PURE__ */ a.jsx(
521
+ ), de = d(
522
+ ({ name: e = "spenicle", size: r = "md", shape: t, ...s }, o) => /* @__PURE__ */ n.jsx(
476
523
  "span",
477
524
  {
478
525
  ref: o,
479
526
  className: l("inline-flex items-center gap-2"),
480
527
  ...s,
481
- children: /* @__PURE__ */ a.jsx(Y, { shape: t, size: r, "aria-hidden": "true" })
528
+ children: /* @__PURE__ */ n.jsx(D, { shape: t, size: r, "aria-hidden": "true" })
482
529
  }
483
530
  )
484
- ), _ = b(
531
+ ), G = b(
485
532
  [
486
533
  "inline-flex items-center justify-center gap-2",
487
534
  "rounded-lg",
@@ -548,8 +595,8 @@ const E = (e) => /* @__PURE__ */ g.createElement("svg", { width: 32, height: 32,
548
595
  }
549
596
  }
550
597
  );
551
- function D(e, r = "1rem") {
552
- const t = S(null), [s, o] = v({}), [n, u] = v("fixed bottom-4 right-4"), i = y(() => {
598
+ function J(e, r = "1rem") {
599
+ const t = S(null), [s, o] = v({}), [a, g] = v("fixed bottom-4 right-4"), i = y(() => {
553
600
  const c = t.current;
554
601
  if (!c) return;
555
602
  const m = c.getBoundingClientRect().height > window.innerHeight;
@@ -563,7 +610,7 @@ function D(e, r = "1rem") {
563
610
  position: "fixed",
564
611
  bottom: r,
565
612
  zIndex: 50
566
- }, p = `fixed bottom-4 ${e}-4`), o(h), u(p);
613
+ }, p = `fixed bottom-4 ${e}-4`), o(h), g(p);
567
614
  }, [e, r]);
568
615
  return x(() => {
569
616
  i();
@@ -578,40 +625,40 @@ function D(e, r = "1rem") {
578
625
  t.current = c, c && i();
579
626
  },
580
627
  [i]
581
- ), s, n];
628
+ ), s, a];
582
629
  }
583
- const ce = d(
630
+ const ge = d(
584
631
  function({
585
632
  className: r,
586
633
  variant: t = "primary",
587
634
  size: s = "md",
588
635
  side: o = "right",
589
- offset: n = "1rem",
590
- ...u
636
+ offset: a = "1rem",
637
+ ...g
591
638
  }, i) {
592
- const [f, c, w] = D(
639
+ const [f, c, w] = J(
593
640
  o,
594
- n
641
+ a
595
642
  ), [m, h] = v(!1);
596
643
  return x(() => {
597
644
  h(!0);
598
- }, []), /* @__PURE__ */ a.jsx("div", { ref: f, children: /* @__PURE__ */ a.jsx(
645
+ }, []), /* @__PURE__ */ n.jsx("div", { ref: f, children: /* @__PURE__ */ n.jsx(
599
646
  "button",
600
647
  {
601
648
  ref: i,
602
- type: u.type || "button",
649
+ type: g.type || "button",
603
650
  className: l(
604
- _({ variant: t, size: s }),
651
+ G({ variant: t, size: s }),
605
652
  w,
606
653
  m && "animate-fab-in",
607
654
  r
608
655
  ),
609
656
  style: c,
610
- ...u
657
+ ...g
611
658
  }
612
659
  ) });
613
660
  }
614
- ), G = b(
661
+ ), K = b(
615
662
  "flex items-center gap-2 px-4 py-2 rounded-sm w-fit relative shadow-sm",
616
663
  {
617
664
  variants: {
@@ -626,10 +673,10 @@ const ce = d(
626
673
  color: "success"
627
674
  }
628
675
  }
629
- ), J = ({
676
+ ), Q = ({
630
677
  children: e,
631
678
  ...r
632
- }) => /* @__PURE__ */ a.jsx(
679
+ }) => /* @__PURE__ */ n.jsx(
633
680
  "span",
634
681
  {
635
682
  className: "flex-1 truncate text-sm",
@@ -637,27 +684,27 @@ const ce = d(
637
684
  ...r,
638
685
  children: e
639
686
  }
640
- ), K = ({
687
+ ), U = ({
641
688
  children: e,
642
689
  ...r
643
- }) => /* @__PURE__ */ a.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...r, children: e }), de = d(
644
- ({ children: e, action: r, color: t, className: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
690
+ }) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...r, children: e }), ue = d(
691
+ ({ children: e, action: r, color: t, className: s, ...o }, a) => /* @__PURE__ */ n.jsxs(
645
692
  "div",
646
693
  {
647
- ref: n,
694
+ ref: a,
648
695
  role: "status",
649
696
  "aria-live": "polite",
650
- className: l(G({ color: t }), s),
697
+ className: l(K({ color: t }), s),
651
698
  ...o,
652
699
  children: [
653
- /* @__PURE__ */ a.jsx(J, { children: e }),
654
- r && /* @__PURE__ */ a.jsx(K, { children: r })
700
+ /* @__PURE__ */ n.jsx(Q, { children: e }),
701
+ r && /* @__PURE__ */ n.jsx(U, { children: r })
655
702
  ]
656
703
  }
657
704
  )
658
- ), z = T(null), Q = z.Provider;
705
+ ), z = V(null), W = z.Provider;
659
706
  function N() {
660
- const e = V(z);
707
+ const e = T(z);
661
708
  if (!e)
662
709
  throw new Error("Table compound components must be used within <Table>");
663
710
  return e;
@@ -693,7 +740,7 @@ const j = (e) => {
693
740
  default:
694
741
  return "grid-cols-2";
695
742
  }
696
- }, U = (e) => {
743
+ }, X = (e) => {
697
744
  if (e < 1 || e > 12)
698
745
  throw new Error("Column span must be between 1 and 12");
699
746
  switch (e) {
@@ -724,17 +771,17 @@ const j = (e) => {
724
771
  default:
725
772
  return "col-span-2";
726
773
  }
727
- }, W = d(
774
+ }, Z = d(
728
775
  ({ children: e, className: r, ...t }, s) => {
729
776
  const { maxColumns: o } = N();
730
- return /* @__PURE__ */ a.jsx(
777
+ return /* @__PURE__ */ n.jsx(
731
778
  "div",
732
779
  {
733
780
  role: "rowgroup",
734
781
  className: l("bg-neutral-soft", r),
735
782
  ...t,
736
783
  ref: s,
737
- children: /* @__PURE__ */ a.jsx(
784
+ children: /* @__PURE__ */ n.jsx(
738
785
  "div",
739
786
  {
740
787
  role: "row",
@@ -745,19 +792,19 @@ const j = (e) => {
745
792
  }
746
793
  );
747
794
  }
748
- ), X = d(
749
- ({ children: e, className: r, ...t }, s) => /* @__PURE__ */ a.jsx("div", { role: "rowgroup", ref: s, className: l(r), ...t, children: e })
750
- ), Z = d(
795
+ ), ee = d(
796
+ ({ children: e, className: r, ...t }, s) => /* @__PURE__ */ n.jsx("div", { role: "rowgroup", ref: s, className: l(r), ...t, children: e })
797
+ ), re = d(
751
798
  ({ children: e, className: r, ...t }, s) => {
752
799
  const { maxColumns: o } = N();
753
- return /* @__PURE__ */ a.jsx(
800
+ return /* @__PURE__ */ n.jsx(
754
801
  "div",
755
802
  {
756
803
  role: "rowgroup",
757
804
  className: l("bg-neutral-soft", r),
758
805
  ...t,
759
806
  ref: s,
760
- children: /* @__PURE__ */ a.jsx(
807
+ children: /* @__PURE__ */ n.jsx(
761
808
  "div",
762
809
  {
763
810
  role: "row",
@@ -768,10 +815,10 @@ const j = (e) => {
768
815
  }
769
816
  );
770
817
  }
771
- ), ee = d(
818
+ ), te = d(
772
819
  ({ children: e, className: r, ...t }, s) => {
773
820
  const { maxColumns: o } = N();
774
- return /* @__PURE__ */ a.jsx(
821
+ return /* @__PURE__ */ n.jsx(
775
822
  "div",
776
823
  {
777
824
  role: "row",
@@ -787,34 +834,34 @@ const j = (e) => {
787
834
  }
788
835
  );
789
836
  }
790
- ), re = d(
791
- ({ as: e = "td", span: r, align: t = "left", children: s, className: o, ...n }, u) => {
837
+ ), se = d(
838
+ ({ as: e = "td", span: r, align: t = "left", children: s, className: o, ...a }, g) => {
792
839
  const i = e === "th" ? "columnheader" : "cell";
793
840
  let f = "text-left";
794
- return t === "center" ? f = "text-center" : t === "right" && (f = "text-right"), /* @__PURE__ */ a.jsx(
841
+ return t === "center" ? f = "text-center" : t === "right" && (f = "text-right"), /* @__PURE__ */ n.jsx(
795
842
  "div",
796
843
  {
797
- ref: u,
844
+ ref: g,
798
845
  role: i,
799
846
  className: l(
800
847
  "px-4 py-2",
801
848
  "[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
802
- U(r),
849
+ X(r),
803
850
  f,
804
851
  o
805
852
  ),
806
- ...n,
853
+ ...a,
807
854
  children: s
808
855
  }
809
856
  );
810
857
  }
811
- ), te = d(
858
+ ), oe = d(
812
859
  ({ children: e, className: r, maxColumns: t = 12, ...s }, o) => {
813
- const n = A(
860
+ const a = A(
814
861
  () => ({ maxColumns: t }),
815
862
  [t]
816
863
  );
817
- return /* @__PURE__ */ a.jsx(Q, { value: n, children: /* @__PURE__ */ a.jsx(
864
+ return /* @__PURE__ */ n.jsx(W, { value: a, children: /* @__PURE__ */ n.jsx(
818
865
  "div",
819
866
  {
820
867
  ref: o,
@@ -828,13 +875,13 @@ const j = (e) => {
828
875
  }
829
876
  ) });
830
877
  }
831
- ), ge = Object.assign(te, {
832
- Header: W,
833
- Body: X,
834
- Footer: Z,
835
- Row: ee,
836
- Column: re
837
- }), se = b(
878
+ ), fe = Object.assign(oe, {
879
+ Header: Z,
880
+ Body: ee,
881
+ Footer: re,
882
+ Row: te,
883
+ Column: se
884
+ }), ne = b(
838
885
  // Base classes
839
886
  "block transition-colors duration-200",
840
887
  {
@@ -869,23 +916,24 @@ const j = (e) => {
869
916
  shape: "rounded"
870
917
  }
871
918
  }
872
- ), ue = d(
873
- ({ variant: e = "white", size: r = "md", shape: t = "rounded", className: s, ...o }, n) => /* @__PURE__ */ a.jsx(
919
+ ), be = d(
920
+ ({ variant: e = "white", size: r = "md", shape: t = "rounded", className: s, ...o }, a) => /* @__PURE__ */ n.jsx(
874
921
  "div",
875
922
  {
876
- ref: n,
877
- className: l(se({ variant: e, size: r, shape: t }), s),
923
+ ref: a,
924
+ className: l(ne({ variant: e, size: r, shape: t }), s),
878
925
  ...o
879
926
  }
880
927
  )
881
928
  );
882
929
  export {
883
- ne as A,
884
- M as B,
885
- de as S,
886
- ge as T,
887
- ie as a,
888
- le as b,
889
- ce as c,
890
- ue as d
930
+ le as A,
931
+ P as B,
932
+ ue as S,
933
+ fe as T,
934
+ O as a,
935
+ ce as b,
936
+ de as c,
937
+ ge as d,
938
+ be as e
891
939
  };
@@ -1,4 +1,5 @@
1
1
  export * from './alert';
2
+ export * from './anchor';
2
3
  export * from './avatar';
3
4
  export * from './badge';
4
5
  export * from './brand';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimasbaguspm/versaur",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "React UI library with Tailwind CSS",
5
5
  "author": "Dimas Bagus Prayogo Mukti<dimas.bagus.pm@gmail.com>",
6
6
  "license": "MIT",