@tpc-mare/mare-ui-components-react 0.1.26 → 0.1.28

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 (104) hide show
  1. package/dist/avatar/index.js +1 -1
  2. package/dist/badge/index.js +1 -1
  3. package/dist/banner/index.js +1 -1
  4. package/dist/button/index.js +1 -1
  5. package/dist/checkbox/index.js +1 -1
  6. package/dist/combobox/index.js +1 -1
  7. package/dist/confirm-dialog/index.js +1 -1
  8. package/dist/counter/index.js +1 -1
  9. package/dist/date-picker/index.js +1 -1
  10. package/dist/dialog/index.js +2 -2
  11. package/dist/divider/index.js +1 -1
  12. package/dist/drawer/index.js +1 -1
  13. package/dist/expandable-counter/index.js +1 -1
  14. package/dist/filter-chip/index.js +1 -1
  15. package/dist/filter-chip-dropdown-multiple/index.js +1 -1
  16. package/dist/filter-chip-dropdown-single/index.js +1 -1
  17. package/dist/floating-action-button/index.js +1 -1
  18. package/dist/image-item/index.js +1 -1
  19. package/dist/index/index.js +41 -41
  20. package/dist/input-number/index.js +1 -1
  21. package/dist/input-otp/index.js +1 -1
  22. package/dist/input-text/IconField.d.ts +3 -1
  23. package/dist/input-text/index.js +2 -2
  24. package/dist/keyboard-commands/index.d.ts +5 -0
  25. package/dist/keyboard-commands/index.js +825 -0
  26. package/dist/keyboard-commands/useKeyboardCommands.d.ts +27 -0
  27. package/dist/keyboard-commands/useKeyboardNavGrid.d.ts +19 -0
  28. package/dist/keyboard-commands/useKeyboardNavList.d.ts +17 -0
  29. package/dist/keyboard-commands/useKeyboardScope.d.ts +20 -0
  30. package/dist/message/index.js +1 -1
  31. package/dist/multi-select/index.js +1 -1
  32. package/dist/overlay-badge/index.js +1 -1
  33. package/dist/paginator/index.js +1 -1
  34. package/dist/password/index.js +1 -1
  35. package/dist/radio-group/index.js +1 -1
  36. package/dist/search-field/index.js +1 -1
  37. package/dist/segmented-control/index.js +1 -1
  38. package/dist/select-field/index.js +1 -1
  39. package/dist/shared/{Avatar-D3QlO3Tz.js → Avatar-BpJDY1wm.js} +24 -22
  40. package/dist/shared/{Badge-WC6my4Aw.js → Badge-CGotZzok.js} +16 -9
  41. package/dist/shared/Banner-D4na_bM8.js +60 -0
  42. package/dist/shared/{Button-DwJ5RTfQ.js → Button-C2ULmKj3.js} +64 -57
  43. package/dist/shared/{Checkbox-BXnSN2vK.js → Checkbox-DCq3_MWz.js} +35 -33
  44. package/dist/shared/{Combobox-CcmWgRYZ.js → Combobox-DrkeDMW0.js} +48 -47
  45. package/dist/shared/{ConfirmDialog-DLHY-c70.js → ConfirmDialog-CjrWhDx8.js} +33 -27
  46. package/dist/shared/{Counter-DjIoe4h3.js → Counter-0siKQRKc.js} +42 -41
  47. package/dist/shared/{DatePicker-CwAISvNc.js → DatePicker-DhIWE0V_.js} +246 -240
  48. package/dist/shared/{DialogFooter-DyltZzK-.js → DialogFooter-CDlh11Gy.js} +34 -32
  49. package/dist/shared/{DialogHeader-M5Bfyxos.js → DialogHeader-PMBgMjsb.js} +2 -2
  50. package/dist/shared/{Divider-UgKI7dtK.js → Divider-CSQOHeMo.js} +16 -14
  51. package/dist/shared/{DrawerFooter-B9-Vrgd3.js → DrawerFooter-Bb-X7keE.js} +62 -54
  52. package/dist/shared/{ExpandableCounter-DZxbdqRa.js → ExpandableCounter-pPJIrd6L.js} +2 -2
  53. package/dist/shared/{FilterChip-eECL3oO7.js → FilterChip-TpKF-4vP.js} +21 -20
  54. package/dist/shared/{FilterChipDropdownMultiple-D2eMYXyS.js → FilterChipDropdownMultiple-2mr_Z57i.js} +43 -42
  55. package/dist/shared/{FilterChipDropdownSingle-C7ahD-_3.js → FilterChipDropdownSingle-CLmWzX9q.js} +39 -38
  56. package/dist/shared/FloatingActionButton-BWB5Taeg.js +28 -0
  57. package/dist/shared/{HelperText-CVWWvLCI.js → HelperText-zmUym82m.js} +1 -1
  58. package/dist/shared/IconField-CqKydKep.js +81 -0
  59. package/dist/shared/ImageItem-CL2VGEha.js +19 -0
  60. package/dist/shared/InputNumber-nxus9h5s.js +64 -0
  61. package/dist/shared/{InputOtp-CUXXVP2E.js → InputOtp-BxBc6Vhs.js} +16 -15
  62. package/dist/shared/InputText.types-KhlkzHMw-BtRY371_.js +4 -0
  63. package/dist/shared/Message-CQUdM9rR.js +81 -0
  64. package/dist/shared/{MultiSelect-Dowp0_FX.js → MultiSelect-DlaYWcPo.js} +60 -59
  65. package/dist/shared/{OverlayBadge-DLskqll7.js → OverlayBadge-Dkosm3Il.js} +1 -1
  66. package/dist/shared/{Paginator-DxZdCXSC.js → Paginator-QTDpAJ-N.js} +2 -2
  67. package/dist/shared/Password-D4PRaleH.js +97 -0
  68. package/dist/shared/{RadioGroup-lw27DCoV.js → RadioGroup-B8CXU8-l.js} +44 -38
  69. package/dist/shared/{SearchField-DjJHDaR4.js → SearchField-DIsFhJ22.js} +1 -1
  70. package/dist/shared/{SegmentedControl-Ct5ZLXpN.js → SegmentedControl-BfE3jNM6.js} +35 -33
  71. package/dist/shared/{SelectField-B-g52vHx.js → SelectField-CcnbnPEi.js} +30 -29
  72. package/dist/shared/Skeleton-DpWtYSz4.js +30 -0
  73. package/dist/shared/{Slider-CXFkperZ.js → Slider-Cl9PyH2q.js} +28 -22
  74. package/dist/shared/Snackbar-3BxmqK8x.js +105 -0
  75. package/dist/shared/{Stepper-By8M5bs0.js → Stepper-DrKKSn_j.js} +42 -37
  76. package/dist/shared/{Switch-DNCn0xjb.js → Switch-B5DSQLFL.js} +31 -29
  77. package/dist/shared/{Tabs-BqIorZYD.js → Tabs-DuufYBV2.js} +19 -17
  78. package/dist/shared/{Tag-BtbmgIwL.js → Tag-uIK_GPrs.js} +24 -15
  79. package/dist/shared/{TagChip-Bs7srjIL.js → TagChip-CP3aX2_G.js} +28 -26
  80. package/dist/shared/Textarea-DHJIWBRM.js +42 -0
  81. package/dist/shared/{field-layout-D34MpDMB.js → field-layout-o6bDLvVU.js} +6 -6
  82. package/dist/shared/index-ByQ37VXf.js +6 -0
  83. package/dist/skeleton/index.js +1 -1
  84. package/dist/slider/index.js +1 -1
  85. package/dist/snackbar/index.js +1 -1
  86. package/dist/stepper/index.js +1 -1
  87. package/dist/styles.css +1 -1
  88. package/dist/switch/index.js +1 -1
  89. package/dist/tabs/index.js +1 -1
  90. package/dist/tag/index.js +1 -1
  91. package/dist/tag-chip/index.js +1 -1
  92. package/dist/textarea/index.js +1 -1
  93. package/dist/utilities-standalone.css +1 -1
  94. package/package.json +1 -1
  95. package/dist/shared/Banner-C4wLe6N0.js +0 -52
  96. package/dist/shared/FloatingActionButton-D4FK6uSs.js +0 -19
  97. package/dist/shared/IconField-Dh6j6SL1.js +0 -78
  98. package/dist/shared/ImageItem-BBy5fOl3.js +0 -17
  99. package/dist/shared/InputNumber-D48wsE-o.js +0 -62
  100. package/dist/shared/Message-BNsFuQU1.js +0 -70
  101. package/dist/shared/Password-BMKy8dAy.js +0 -95
  102. package/dist/shared/Skeleton-CAjoF-T2.js +0 -29
  103. package/dist/shared/Snackbar-CjTqCOaV.js +0 -100
  104. package/dist/shared/Textarea-iJhYTZos.js +0 -40
@@ -1,10 +1,11 @@
1
1
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
2
  import { Switch as a } from "@ark-ui/react/switch";
3
- const z = `
3
+ import { o as g } from "./index-ByQ37VXf.js";
4
+ const k = ["small", "medium", "large"], f = `
4
5
  mare:inline-flex mare:items-center mare:gap-2
5
6
  mare:select-none mare:cursor-pointer
6
7
  mare:ark-disabled:cursor-default
7
- `, g = `
8
+ `, x = `
8
9
  mare:inline-flex mare:shrink-0 mare:items-center mare:px-0.5
9
10
  mare:rounded-full mare:border mare:border-transparent
10
11
  mare:bg-neutral
@@ -21,7 +22,7 @@ const z = `
21
22
  mare:ark-disabled:bg-disabled!
22
23
 
23
24
  mare:ark-invalid:border-danger
24
- `, k = `
25
+ `, w = `
25
26
  mare:rounded-full mare:bg-default
26
27
  mare:transition-transform mare:duration-300
27
28
 
@@ -32,55 +33,56 @@ const z = `
32
33
  mare:data-size-small:ark-checked:translate-x-3
33
34
  mare:data-size-medium:ark-checked:translate-x-4.5
34
35
  mare:data-size-large:ark-checked:translate-x-6.5
35
- `, f = `
36
+ `, y = `
36
37
  mare:text-default
37
38
  mare:data-size-small:tpc-typography-body-s
38
39
  mare:data-size-medium:tpc-typography-body-m
39
40
  mare:data-size-large:tpc-typography-body-l
40
41
  mare:ark-disabled:text-disabled
41
- `, x = `
42
+ `, N = `
42
43
  mare:sr-only
43
44
  `;
44
- function N({
45
- checked: t,
46
- defaultChecked: s,
45
+ function C({
46
+ checked: s,
47
+ defaultChecked: t,
47
48
  onCheckedChange: d,
48
49
  children: m,
49
- size: r = "small",
50
- disabled: l = !1,
51
- invalid: i = !1,
50
+ size: l = "small",
51
+ disabled: i = !1,
52
+ invalid: o = !1,
52
53
  readOnly: n = !1,
53
- required: o = !1,
54
- name: c,
55
- value: h = "on",
56
- id: u
54
+ required: c = !1,
55
+ name: h,
56
+ value: u = "on",
57
+ id: z
57
58
  }) {
59
+ const r = g(l, k, "small");
58
60
  return /* @__PURE__ */ p(
59
61
  a.Root,
60
62
  {
61
- checked: t,
62
- defaultChecked: s,
63
+ checked: s,
64
+ defaultChecked: t,
63
65
  onCheckedChange: (b) => {
64
66
  d?.(b.checked);
65
67
  },
66
- disabled: l,
67
- invalid: i,
68
+ disabled: i,
69
+ invalid: o,
68
70
  readOnly: n,
69
- required: o,
70
- name: c,
71
- value: h,
72
- id: u,
73
- className: z,
71
+ required: c,
72
+ name: h,
73
+ value: u,
74
+ id: z,
75
+ className: f,
74
76
  children: [
75
77
  /* @__PURE__ */ e(
76
78
  a.Control,
77
79
  {
78
- className: g,
80
+ className: x,
79
81
  "data-size": r,
80
82
  children: /* @__PURE__ */ e(
81
83
  a.Thumb,
82
84
  {
83
- className: k,
85
+ className: w,
84
86
  "data-size": r
85
87
  }
86
88
  )
@@ -89,16 +91,16 @@ function N({
89
91
  m && /* @__PURE__ */ e(
90
92
  a.Label,
91
93
  {
92
- className: f,
94
+ className: y,
93
95
  "data-size": r,
94
96
  children: m
95
97
  }
96
98
  ),
97
- /* @__PURE__ */ e(a.HiddenInput, { className: x })
99
+ /* @__PURE__ */ e(a.HiddenInput, { className: N })
98
100
  ]
99
101
  }
100
102
  );
101
103
  }
102
104
  export {
103
- N as S
105
+ C as S
104
106
  };
@@ -1,25 +1,26 @@
1
1
  import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
- import { TabsRoot as c, TabList as u, TabTrigger as b, TabIndicator as p, TabContent as f } from "@ark-ui/react/tabs";
3
- const d = {
2
+ import { TabsRoot as u, TabList as b, TabTrigger as f, TabIndicator as p, TabContent as d } from "@ark-ui/react/tabs";
3
+ import { o as v } from "./index-ByQ37VXf.js";
4
+ const h = ["small", "medium"], x = {
4
5
  small: "mare:tpc-typography-label-s",
5
6
  medium: "mare:tpc-typography-label-m"
6
- }, v = "mare:w-full", h = (a) => `
7
+ }, g = "mare:w-full", w = (a) => `
7
8
  mare:relative mare:flex ${a ? "mare:w-full" : "mare:w-fit"}
8
9
  mare:border-b mare:border-default
9
- `, x = (a, r) => `
10
+ `, T = (a, r) => `
10
11
  mare:group/tab mare:relative mare:cursor-pointer mare:select-none mare:whitespace-nowrap
11
12
  mare:h-12 mare:px-4 mare:flex mare:items-center mare:justify-center mare:gap-2
12
13
  ${r ? "mare:flex-1" : ""}
13
- ${d[a]}
14
+ ${x[a]}
14
15
  mare:text-weak mare:hover:text-default
15
16
  mare:ark-active:text-accent
16
17
  mare:ark-disabled:opacity-60 mare:ark-disabled:pointer-events-none
17
18
  mare:focus-visible:outline mare:focus-visible:outline-1 mare:focus-visible:outline-accent mare:focus-visible:-outline-offset-1
18
- `, g = `
19
+ `, y = `
19
20
  mare:absolute mare:bottom-0 mare:h-0.5 mare:bg-accent
20
21
  mare:transition-[left,width] mare:duration-200 mare:ease-[cubic-bezier(0.35,0,0.25,1)]
21
- `, w = "mare:pt-3.5 mare:pb-4.5 mare:px-4.5 mare:text-default mare:focus-visible:outline-none";
22
- function N({
22
+ `, N = "mare:pt-3.5 mare:pb-4.5 mare:px-4.5 mare:text-default mare:focus-visible:outline-none";
23
+ function z({
23
24
  value: a,
24
25
  onValueChange: r,
25
26
  items: m,
@@ -28,31 +29,32 @@ function N({
28
29
  renderTab: s,
29
30
  renderPanel: n
30
31
  }) {
32
+ const c = v(i, h, "small");
31
33
  return /* @__PURE__ */ o(
32
- c,
34
+ u,
33
35
  {
34
36
  value: a,
35
- className: v,
37
+ className: g,
36
38
  onValueChange: (e) => r?.(e.value),
37
39
  children: [
38
- /* @__PURE__ */ o(u, { className: h(t), children: [
40
+ /* @__PURE__ */ o(b, { className: w(t), children: [
39
41
  m.map((e) => /* @__PURE__ */ l(
40
- b,
42
+ f,
41
43
  {
42
44
  value: e.value,
43
45
  disabled: e.disabled,
44
- className: x(i, t),
46
+ className: T(c, t),
45
47
  children: s ? s(e) : e.label
46
48
  },
47
49
  e.value
48
50
  )),
49
- /* @__PURE__ */ l(p, { className: g })
51
+ /* @__PURE__ */ l(p, { className: y })
50
52
  ] }),
51
53
  m.map((e) => /* @__PURE__ */ l(
52
- f,
54
+ d,
53
55
  {
54
56
  value: e.value,
55
- className: w,
57
+ className: N,
56
58
  children: n?.(e)
57
59
  },
58
60
  e.value
@@ -62,5 +64,5 @@ function N({
62
64
  );
63
65
  }
64
66
  export {
65
- N as T
67
+ z as T
66
68
  };
@@ -1,5 +1,6 @@
1
- import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
- const i = `
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { o as r } from "./index-ByQ37VXf.js";
3
+ const d = `
3
4
  mare:inline-flex mare:items-center mare:justify-center mare:gap-0.5
4
5
  mare:py-1 mare:px-1.5 mare:rounded-tag
5
6
  mare:data-size-small:tpc-typography-label-xs mare:data-size-small:h-5.5
@@ -11,26 +12,34 @@ const i = `
11
12
  mare:data-severity-positive:bg-positive-weak mare:data-severity-positive:text-positive
12
13
  mare:data-severity-warning:bg-warning-weak mare:data-severity-warning:text-warning
13
14
  mare:data-severity-danger:bg-danger-weak mare:data-severity-danger:text-danger
14
- `, n = "mare:flex mare:items-center mare:shrink-0 mare:[&>svg]:size-3.5", d = "mare:px-0.5";
15
- function l({
16
- severity: r = "accent",
17
- size: s = "small",
18
- icon: a,
19
- children: e
15
+ `, l = "mare:flex mare:items-center mare:shrink-0 mare:[&>svg]:size-3.5", g = "mare:px-0.5", p = [
16
+ "accent",
17
+ "accent-weak",
18
+ "neutral",
19
+ "positive",
20
+ "warning",
21
+ "danger"
22
+ ], y = ["small", "medium", "large"];
23
+ function x({
24
+ severity: s = "accent",
25
+ size: i = "small",
26
+ icon: e,
27
+ children: a
20
28
  }) {
21
- return /* @__PURE__ */ m(
29
+ const m = r(s, p, "accent"), n = r(i, y, "small");
30
+ return /* @__PURE__ */ c(
22
31
  "span",
23
32
  {
24
- className: i,
25
- "data-severity": r,
26
- "data-size": s,
33
+ className: d,
34
+ "data-severity": m,
35
+ "data-size": n,
27
36
  children: [
28
- a && /* @__PURE__ */ t("span", { className: n, children: a }),
29
- e && /* @__PURE__ */ t("span", { className: d, children: e })
37
+ e && /* @__PURE__ */ t("span", { className: l, children: e }),
38
+ a && /* @__PURE__ */ t("span", { className: g, children: a })
30
39
  ]
31
40
  }
32
41
  );
33
42
  }
34
43
  export {
35
- l as T
44
+ x as T
36
45
  };
@@ -1,6 +1,7 @@
1
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import { I as u } from "./IconX-CpPADKjZ.js";
3
- const p = `
1
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
+ import { o as m } from "./index-ByQ37VXf.js";
3
+ import { I as b } from "./IconX-CpPADKjZ.js";
4
+ const v = `
4
5
  mare:inline-flex mare:items-center mare:gap-0.5 mare:rounded-full
5
6
  mare:border mare:border-default mare:bg-default mare:text-default
6
7
  mare:tpc-typography-body-s mare:select-none
@@ -12,52 +13,53 @@ const p = `
12
13
  mare:data-severity-accent:outline-solid mare:data-severity-accent:outline-2 mare:data-severity-accent:outline-accent mare:data-severity-accent:-outline-offset-2
13
14
  mare:p-disabled:cursor-not-allowed mare:p-disabled:text-disabled mare:p-disabled:border-disabled-default
14
15
  mare:p-disabled:bg-transparent mare:p-disabled:outline-none
15
- `, b = "mare:rounded-full mare:size-5 mare:shrink-0 mare:object-cover", f = "mare:flex mare:items-center mare:shrink-0 mare:[&>svg]:size-3.5", v = "mare:px-0.5 mare:truncate", y = `
16
+ `, y = "mare:rounded-full mare:size-5 mare:shrink-0 mare:object-cover", x = "mare:flex mare:items-center mare:shrink-0 mare:[&>svg]:size-3.5", h = "mare:px-0.5 mare:truncate", z = `
16
17
  mare:flex mare:items-center mare:justify-center mare:shrink-0 mare:-me-0.5
17
18
  mare:rounded-full mare:cursor-pointer mare:text-default mare:[&>svg]:size-3.5
18
19
  mare:hover:text-accent
19
20
  mare:focus-visible:outline-solid mare:focus-visible:outline-2 mare:focus-visible:outline-accent mare:focus-visible:-outline-offset-1
20
21
  mare:disabled:pointer-events-none mare:disabled:text-disabled mare:disabled:cursor-not-allowed
21
- `;
22
- function g({
23
- severity: m = "default",
24
- size: i = "small",
22
+ `, g = ["default", "accent"], k = ["small", "medium"];
23
+ function C({
24
+ severity: i = "default",
25
+ size: l = "small",
25
26
  disabled: r = !1,
26
27
  icon: t,
27
28
  image: a,
28
- imageAlt: l = "",
29
- removable: d = !1,
30
- onRemove: n,
31
- removeLabel: o = "Remove",
29
+ imageAlt: d = "",
30
+ removable: n = !1,
31
+ onRemove: o,
32
+ removeLabel: c = "Remove",
32
33
  children: s
33
34
  }) {
34
- return /* @__PURE__ */ c(
35
+ const u = m(i, g, "default"), p = m(l, k, "small");
36
+ return /* @__PURE__ */ f(
35
37
  "span",
36
38
  {
37
- className: p,
38
- "data-severity": m,
39
- "data-size": i,
39
+ className: v,
40
+ "data-severity": u,
41
+ "data-size": p,
40
42
  "data-disabled": r ? "true" : void 0,
41
43
  children: [
42
44
  a && /* @__PURE__ */ e(
43
45
  "img",
44
46
  {
45
- className: b,
47
+ className: y,
46
48
  src: a,
47
- alt: l
49
+ alt: d
48
50
  }
49
51
  ),
50
- !a && t && /* @__PURE__ */ e("span", { className: f, children: t }),
51
- s && /* @__PURE__ */ e("span", { className: v, children: s }),
52
- d && /* @__PURE__ */ e(
52
+ !a && t && /* @__PURE__ */ e("span", { className: x, children: t }),
53
+ s && /* @__PURE__ */ e("span", { className: h, children: s }),
54
+ n && /* @__PURE__ */ e(
53
55
  "button",
54
56
  {
55
57
  type: "button",
56
- className: y,
58
+ className: z,
57
59
  disabled: r,
58
- "aria-label": o,
59
- onClick: n,
60
- children: /* @__PURE__ */ e(u, {})
60
+ "aria-label": c,
61
+ onClick: o,
62
+ children: /* @__PURE__ */ e(b, {})
61
63
  }
62
64
  )
63
65
  ]
@@ -65,5 +67,5 @@ function g({
65
67
  );
66
68
  }
67
69
  export {
68
- g as T
70
+ C as T
69
71
  };
@@ -0,0 +1,42 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { useFieldContext as x, FieldTextarea as F, FieldRoot as L } from "@ark-ui/react/field";
3
+ import { m as b } from "./InputText.types-KhlkzHMw-BtRY371_.js";
4
+ import { u as C, a as T } from "./field-layout-o6bDLvVU.js";
5
+ import { o as g } from "./index-ByQ37VXf.js";
6
+ function j({
7
+ value: o = "",
8
+ onValueChange: s,
9
+ size: l = "medium",
10
+ invalid: r = !1,
11
+ disabled: i = !1,
12
+ autoresize: m = !1,
13
+ placeholder: n,
14
+ ...f
15
+ }) {
16
+ const e = C(), c = !x(), u = g(l, b, "medium"), d = T({
17
+ size: u,
18
+ hasFloatLabel: e?.hasFloatLabel ?? !1
19
+ }), h = e?.hasFloatLabel ? " " : n, a = /* @__PURE__ */ t(
20
+ F,
21
+ {
22
+ ...f,
23
+ autoresize: m,
24
+ className: d,
25
+ placeholder: h,
26
+ value: o,
27
+ onChange: (p) => s?.(p.target.value)
28
+ }
29
+ );
30
+ return c ? /* @__PURE__ */ t(
31
+ L,
32
+ {
33
+ invalid: r,
34
+ disabled: i,
35
+ className: "mare:w-full",
36
+ children: a
37
+ }
38
+ ) : a;
39
+ }
40
+ export {
41
+ j as T
42
+ };
@@ -1,4 +1,4 @@
1
- import { createContext as l, useContext as o } from "react";
1
+ import { useContext as l, createContext as o } from "react";
2
2
  const r = `
3
3
  mare:w-full mare:px-3
4
4
  mare:tpc-typography-body-m mare:text-default mare:placeholder:text-weak
@@ -32,20 +32,20 @@ const r = `
32
32
  }, f = (e) => {
33
33
  const a = e.hasFloatLabel ? u[e.size] : d[e.size];
34
34
  return `${r} mare:resize-y ${a}`;
35
- }, g = "mare:relative mare:w-full mare:group", h = (e, a = {}) => `
35
+ }, g = "mare:relative mare:w-full mare:group", x = (e, a = {}) => `
36
36
  mare:absolute mare:top-1/2 mare:-translate-y-1/2 mare:flex mare:items-center
37
37
  mare:justify-center mare:[&>svg]:size-5
38
38
  ${a.interactive ? "mare:bg-transparent mare:border-0 mare:p-0 mare:cursor-pointer mare:disabled:cursor-default" : "mare:pointer-events-none"}
39
39
  ${a.disabled ? "mare:text-disabled" : "mare:text-weak"}
40
40
  ${e === "left" ? "mare:left-3" : "mare:right-3"}
41
- `, x = "mare:flex mare:flex-col mare:gap-2 mare:w-full", y = (e) => `mare:tpc-typography-label-s ${e ? "mare:text-danger" : "mare:text-default"}`, $ = (e) => `mare:tpc-typography-body-xs mare:ml-auto mare:shrink-0 ${e ? "mare:text-disabled" : "mare:text-weak"}`, p = l(null), v = () => o(p), z = (e, a) => !e || e === a ? a : "both";
41
+ `, h = "mare:flex mare:flex-col mare:gap-2 mare:w-full", y = (e) => `mare:tpc-typography-label-s ${e ? "mare:text-danger" : "mare:text-default"}`, $ = (e) => `mare:tpc-typography-body-xs mare:ml-auto mare:shrink-0 ${e ? "mare:text-disabled" : "mare:text-weak"}`, p = o(null), v = () => l(p), z = (e, a) => !e || e === a ? a : "both";
42
42
  export {
43
43
  p as F,
44
+ y as _,
44
45
  f as a,
45
46
  b as d,
46
- h as f,
47
- x as g,
48
- y as h,
47
+ x as f,
48
+ h as g,
49
49
  z as m,
50
50
  g as p,
51
51
  v as u,
@@ -0,0 +1,6 @@
1
+ function e(l, o, n) {
2
+ return o.includes(l) ? l : (console.warn(`[resolveEnum] Invalid value "${l}", falling back to "${n}".`), n);
3
+ }
4
+ export {
5
+ e as o
6
+ };
@@ -1,4 +1,4 @@
1
- import { S as r } from "../shared/Skeleton-CAjoF-T2.js";
1
+ import { S as r } from "../shared/Skeleton-DpWtYSz4.js";
2
2
  export {
3
3
  r as Skeleton
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as o } from "../shared/Slider-CXFkperZ.js";
1
+ import { S as o } from "../shared/Slider-Cl9PyH2q.js";
2
2
  export {
3
3
  o as Slider
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as c, c as e } from "../shared/Snackbar-CjTqCOaV.js";
1
+ import { S as c, c as e } from "../shared/Snackbar-3BxmqK8x.js";
2
2
  export {
3
3
  c as Snackbar,
4
4
  e as createSnackbar
@@ -1,4 +1,4 @@
1
- import { S as r } from "../shared/Stepper-By8M5bs0.js";
1
+ import { S as r } from "../shared/Stepper-DrKKSn_j.js";
2
2
  export {
3
3
  r as Stepper
4
4
  };