mada-design-system 0.2.4 → 0.2.6

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 (281) hide show
  1. package/index.cjs116.js +1 -1
  2. package/index.cjs119.js +1 -1
  3. package/index.cjs167.js +1 -1
  4. package/index.cjs168.js +1 -1
  5. package/index.cjs169.js +1 -1
  6. package/index.cjs182.js +1 -1
  7. package/index.cjs183.js +1 -4
  8. package/index.cjs184.js +4 -1
  9. package/index.cjs189.js +1 -1
  10. package/index.cjs190.js +3 -1
  11. package/index.cjs191.js +1 -3
  12. package/index.cjs192.js +1 -1
  13. package/index.cjs193.js +1 -1
  14. package/index.cjs194.js +1 -1
  15. package/index.cjs195.js +1 -1
  16. package/index.cjs196.js +1 -1
  17. package/index.cjs197.js +1 -1
  18. package/index.cjs198.js +1 -1
  19. package/index.cjs199.js +1 -1
  20. package/index.cjs200.js +1 -1
  21. package/index.cjs201.js +1 -1
  22. package/index.cjs202.js +1 -1
  23. package/index.cjs203.js +1 -1
  24. package/index.cjs204.js +1 -1
  25. package/index.cjs205.js +1 -1
  26. package/index.cjs206.js +1 -1
  27. package/index.cjs207.js +1 -1
  28. package/index.cjs208.js +1 -1
  29. package/index.cjs209.js +1 -1
  30. package/index.cjs21.js +1 -1
  31. package/index.cjs210.js +1 -1
  32. package/index.cjs218.js +1 -1
  33. package/index.cjs219.js +1 -1
  34. package/index.cjs220.js +1 -1
  35. package/index.cjs221.js +1 -1
  36. package/index.cjs222.js +1 -1
  37. package/index.cjs223.js +1 -1
  38. package/index.cjs224.js +1 -1
  39. package/index.cjs225.js +1 -1
  40. package/index.cjs226.js +1 -1
  41. package/index.cjs227.js +1 -1
  42. package/index.cjs232.js +1 -1
  43. package/index.cjs233.js +1 -1
  44. package/index.cjs234.js +1 -1
  45. package/index.cjs235.js +1 -1
  46. package/index.cjs236.js +1 -1
  47. package/index.cjs237.js +1 -1
  48. package/index.cjs238.js +1 -1
  49. package/index.cjs239.js +1 -1
  50. package/index.cjs240.js +1 -1
  51. package/index.cjs245.js +1 -1
  52. package/index.cjs246.js +1 -1
  53. package/index.cjs247.js +1 -1
  54. package/index.cjs255.js +1 -1
  55. package/index.cjs256.js +1 -1
  56. package/index.cjs261.js +1 -1
  57. package/index.cjs262.js +1 -1
  58. package/index.cjs263.js +1 -1
  59. package/index.cjs264.js +1 -15
  60. package/index.cjs265.js +15 -1
  61. package/index.cjs266.js +1 -1
  62. package/index.cjs267.js +1 -1
  63. package/index.cjs268.js +1 -1
  64. package/index.cjs269.js +1 -1
  65. package/index.cjs270.js +1 -1
  66. package/index.cjs271.js +1 -1
  67. package/index.cjs272.js +1 -1
  68. package/index.cjs273.js +1 -1
  69. package/index.cjs274.js +1 -1
  70. package/index.cjs275.js +1 -1
  71. package/index.cjs276.js +1 -1
  72. package/index.cjs277.js +1 -1
  73. package/index.cjs278.js +1 -1
  74. package/index.cjs279.js +1 -1
  75. package/index.cjs282.js +1 -1
  76. package/index.cjs283.js +1 -1
  77. package/index.cjs284.js +1 -1
  78. package/index.cjs286.js +1 -1
  79. package/index.cjs287.js +1 -1
  80. package/index.cjs288.js +1 -1
  81. package/index.cjs289.js +1 -1
  82. package/index.cjs290.js +1 -1
  83. package/index.cjs291.js +1 -1
  84. package/index.cjs292.js +1 -1
  85. package/index.cjs297.js +1 -1
  86. package/index.cjs298.js +1 -1
  87. package/index.cjs299.js +1 -1
  88. package/index.cjs300.js +1 -1
  89. package/index.cjs301.js +1 -1
  90. package/index.cjs302.js +1 -1
  91. package/index.cjs303.js +1 -1
  92. package/index.cjs304.js +1 -1
  93. package/index.cjs305.js +1 -1
  94. package/index.cjs306.js +1 -1
  95. package/index.cjs307.js +1 -1
  96. package/index.cjs308.js +1 -1
  97. package/index.cjs309.js +1 -1
  98. package/index.cjs310.js +1 -1
  99. package/index.cjs311.js +1 -1
  100. package/index.cjs316.js +1 -1
  101. package/index.cjs320.js +1 -1
  102. package/index.cjs338.js +1 -1
  103. package/index.cjs339.js +1 -1
  104. package/index.cjs340.js +1 -1
  105. package/index.cjs341.js +1 -1
  106. package/index.cjs342.js +1 -1
  107. package/index.cjs343.js +1 -1
  108. package/index.cjs344.js +1 -1
  109. package/index.cjs345.js +1 -1
  110. package/index.cjs346.js +1 -1
  111. package/index.cjs347.js +1 -1
  112. package/index.cjs348.js +1 -1
  113. package/index.cjs349.js +1 -1
  114. package/index.cjs350.js +1 -1
  115. package/index.cjs351.js +1 -1
  116. package/index.cjs366.js +1 -1
  117. package/index.cjs367.js +1 -1
  118. package/index.cjs368.js +1 -1
  119. package/index.cjs369.js +1 -1
  120. package/index.cjs370.js +1 -1
  121. package/index.cjs371.js +1 -1
  122. package/index.cjs372.js +1 -1
  123. package/index.cjs373.js +74 -1
  124. package/index.cjs374.js +1 -1
  125. package/index.cjs375.js +1 -1
  126. package/index.cjs376.js +1 -74
  127. package/index.cjs377.js +1 -1
  128. package/index.cjs378.js +1 -1
  129. package/index.cjs380.js +1 -1
  130. package/index.cjs381.js +1 -1
  131. package/index.cjs382.js +1 -1
  132. package/index.cjs41.js +2 -2
  133. package/index.cjs44.js +1 -1
  134. package/index.cjs45.js +1 -1
  135. package/index.cjs47.js +1 -1
  136. package/index.cjs51.js +1 -1
  137. package/index.cjs67.js +4 -4
  138. package/index.cjs68.js +1 -1
  139. package/index.es.d.ts +10 -4
  140. package/index.es116.js +1 -1
  141. package/index.es119.js +21 -21
  142. package/index.es167.js +1 -1
  143. package/index.es168.js +2 -2
  144. package/index.es169.js +3 -3
  145. package/index.es182.js +50 -2
  146. package/index.es183.js +2 -2261
  147. package/index.es184.js +2260 -49
  148. package/index.es189.js +105 -14
  149. package/index.es190.js +24 -105
  150. package/index.es191.js +51 -25
  151. package/index.es192.js +363 -43
  152. package/index.es193.js +60 -369
  153. package/index.es194.js +48 -62
  154. package/index.es195.js +6 -48
  155. package/index.es196.js +5 -6
  156. package/index.es197.js +47 -5
  157. package/index.es198.js +21 -46
  158. package/index.es199.js +6 -22
  159. package/index.es200.js +10 -6
  160. package/index.es201.js +11 -10
  161. package/index.es202.js +17 -11
  162. package/index.es203.js +229 -16
  163. package/index.es204.js +24 -229
  164. package/index.es205.js +11 -24
  165. package/index.es206.js +278 -11
  166. package/index.es207.js +162 -179
  167. package/index.es208.js +16 -261
  168. package/index.es209.js +14 -16
  169. package/index.es21.js +42 -41
  170. package/index.es210.js +1 -1
  171. package/index.es218.js +12 -3
  172. package/index.es219.js +25 -2
  173. package/index.es220.js +10 -12
  174. package/index.es221.js +38 -24
  175. package/index.es222.js +1997 -8
  176. package/index.es223.js +6 -38
  177. package/index.es224.js +71 -1999
  178. package/index.es225.js +24 -6
  179. package/index.es226.js +3 -71
  180. package/index.es227.js +2 -25
  181. package/index.es232.js +1 -1
  182. package/index.es233.js +1 -1
  183. package/index.es234.js +1 -1
  184. package/index.es235.js +4 -4
  185. package/index.es236.js +3 -3
  186. package/index.es237.js +2 -2
  187. package/index.es238.js +5 -5
  188. package/index.es239.js +3 -3
  189. package/index.es240.js +6 -6
  190. package/index.es245.js +1 -1
  191. package/index.es246.js +5 -5
  192. package/index.es247.js +4 -4
  193. package/index.es255.js +1 -1
  194. package/index.es256.js +1 -1
  195. package/index.es261.js +11 -2
  196. package/index.es262.js +2 -60
  197. package/index.es263.js +57 -14
  198. package/index.es264.js +16 -243
  199. package/index.es265.js +241 -71
  200. package/index.es266.js +73 -4
  201. package/index.es267.js +4 -57
  202. package/index.es268.js +58 -11
  203. package/index.es269.js +11 -7
  204. package/index.es270.js +6 -35
  205. package/index.es271.js +35 -26
  206. package/index.es272.js +27 -291
  207. package/index.es273.js +290 -90
  208. package/index.es274.js +91 -3
  209. package/index.es275.js +3 -8
  210. package/index.es276.js +7 -15
  211. package/index.es277.js +14 -145
  212. package/index.es278.js +146 -10
  213. package/index.es279.js +1 -1
  214. package/index.es282.js +9 -9
  215. package/index.es283.js +2 -2
  216. package/index.es284.js +1 -1
  217. package/index.es286.js +5 -5
  218. package/index.es287.js +63 -59
  219. package/index.es288.js +6 -6
  220. package/index.es289.js +7 -7
  221. package/index.es290.js +58 -62
  222. package/index.es291.js +6 -6
  223. package/index.es292.js +7 -7
  224. package/index.es297.js +6 -2
  225. package/index.es298.js +21 -2
  226. package/index.es299.js +23 -5
  227. package/index.es300.js +30 -22
  228. package/index.es301.js +6 -21
  229. package/index.es302.js +3 -32
  230. package/index.es303.js +7 -6
  231. package/index.es304.js +4 -3
  232. package/index.es305.js +18 -6
  233. package/index.es306.js +66 -3
  234. package/index.es307.js +15 -18
  235. package/index.es308.js +13 -65
  236. package/index.es309.js +4 -15
  237. package/index.es310.js +2 -4
  238. package/index.es311.js +2 -16
  239. package/index.es316.js +1 -1
  240. package/index.es320.js +1 -1
  241. package/index.es338.js +6 -4
  242. package/index.es339.js +29 -4
  243. package/index.es340.js +15 -6
  244. package/index.es341.js +5 -5
  245. package/index.es342.js +5 -19
  246. package/index.es343.js +5 -4
  247. package/index.es344.js +6 -5
  248. package/index.es345.js +19 -3
  249. package/index.es346.js +4 -72
  250. package/index.es347.js +6 -4
  251. package/index.es348.js +3 -16
  252. package/index.es349.js +71 -6
  253. package/index.es350.js +3 -29
  254. package/index.es351.js +1 -1
  255. package/index.es366.js +10 -5
  256. package/index.es367.js +3 -3
  257. package/index.es368.js +8 -10
  258. package/index.es369.js +3 -3
  259. package/index.es370.js +45 -3
  260. package/index.es371.js +23 -44
  261. package/index.es372.js +2 -25
  262. package/index.es373.js +251 -9
  263. package/index.es374.js +8 -2
  264. package/index.es375.js +3 -2
  265. package/index.es376.js +2 -251
  266. package/index.es377.js +5 -7
  267. package/index.es378.js +4 -3
  268. package/index.es380.js +4 -4
  269. package/index.es381.js +1 -1
  270. package/index.es382.js +1 -1
  271. package/index.es41.js +2 -2
  272. package/index.es44.js +92 -95
  273. package/index.es45.js +2 -2
  274. package/index.es47.js +48 -50
  275. package/index.es51.js +28 -28
  276. package/index.es67.js +59 -46
  277. package/index.es68.js +25 -25
  278. package/package.json +143 -144
  279. package/style.css +1 -1
  280. package/tailwind.config.cjs +6 -0
  281. package/tailwind.config.js +6 -0
package/index.es44.js CHANGED
@@ -1,175 +1,172 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
- import b, { useState as L } from "react";
3
- import { useMediaQuery as N } from "./index.es98.js";
1
+ import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
+ import b, { useState as z } from "react";
3
+ import { useMediaQuery as w } from "./index.es98.js";
4
4
  import { strings as m } from "./index.es91.js";
5
5
  import "./index.es2.js";
6
6
  import { Button as f } from "./index.es22.js";
7
- import z from "./index.es133.js";
8
- import { Collapsible as H, CollapsibleTrigger as O, CollapsibleContent as _ } from "./index.es26.js";
9
- import A from "./index.es134.js";
10
- import { RadioGroup as D, RadioGroupItem as E } from "./index.es54.js";
11
- import { MultiSelect as P } from "./index.es10.js";
12
- import { ComboboxControlNoForm as Q } from "./index.es7.js";
7
+ import H from "./index.es133.js";
8
+ import { Collapsible as O, CollapsibleTrigger as _, CollapsibleContent as A } from "./index.es26.js";
9
+ import D from "./index.es134.js";
10
+ import { RadioGroup as E, RadioGroupItem as P } from "./index.es54.js";
11
+ import { MultiSelect as Q } from "./index.es10.js";
12
+ import { ComboboxControlNoForm as V } from "./index.es7.js";
13
13
  import { Sheet as q, SheetTrigger as J, SheetContent as K, SheetHeader as U, SheetTitle as W, SheetBody as X, SheetFooter as Y, SheetClose as Z } from "./index.es59.js";
14
14
  import ee from "./index.es135.js";
15
15
  import { Checkbox as re } from "./index.es25.js";
16
- import { ShouldRender as u } from "./index.es14.js";
17
- import le from "./index.es83.js";
18
- import { cn as se } from "./index.es79.js";
19
- const ie = (l) => l < 10 ? "0" + (l == null ? void 0 : l.toString()) : l == null ? void 0 : l.toString(), $ = b.createContext(null), te = (l) => {
20
- const [s, d] = L(), a = N("(max-width: 767px)");
21
- return { value: s, upsert: ({ name: t, selectedValue: i }) => {
22
- const n = { ...s, [t]: i };
23
- d(n), a || l == null || l(n);
16
+ import { ShouldRender as n } from "./index.es14.js";
17
+ import se from "./index.es83.js";
18
+ import { cn as le } from "./index.es79.js";
19
+ const ie = (l) => l < 10 ? "0" + (l == null ? void 0 : l.toString()) : l == null ? void 0 : l.toString(), I = b.createContext(null), te = (l, i) => {
20
+ const [c, t] = z(), p = w("(max-width: 767px)");
21
+ return { value: c, upsert: ({ name: s, selectedValue: u }) => {
22
+ const e = { ...c, [s]: u };
23
+ t(e), p || l == null || l(e);
24
24
  }, resetFilters: () => {
25
- const t = { ...s };
26
- for (const i in t)
27
- t[i] = "";
28
- d(t);
25
+ const s = { ...c };
26
+ for (const u in s)
27
+ s[u] = "";
28
+ t(s), i == null || i();
29
29
  } };
30
- }, oe = b.forwardRef(({ children: l, onValueChange: s, label: d, ...a }, h) => {
31
- const p = N("(max-width: 767px)"), { value: t, resetFilters: i, upsert: n } = te(s);
32
- return /* @__PURE__ */ r("div", { ref: h, ...a, children: /* @__PURE__ */ c($.Provider, { value: { value: t, upsert: n }, children: [
33
- /* @__PURE__ */ r(u, { shouldRender: p, children: /* @__PURE__ */ c(ae, { resetFilters: i, onClickFilter: () => s == null ? void 0 : s(t), label: d, children: [
30
+ }, oe = b.forwardRef(({ children: l, onValueChange: i, onValueReset: c, label: t, ...p }, h) => {
31
+ const d = w("(max-width: 767px)"), { value: s, resetFilters: u, upsert: e } = te(i, c);
32
+ return /* @__PURE__ */ r("div", { ref: h, ...p, children: /* @__PURE__ */ a(I.Provider, { value: { value: s, upsert: e }, children: [
33
+ /* @__PURE__ */ r(n, { shouldRender: d, children: /* @__PURE__ */ r(ce, { resetFilters: u, onClickFilter: () => i == null ? void 0 : i(s), label: t, children: l }) }),
34
+ /* @__PURE__ */ a(n, { shouldRender: !d, children: [
34
35
  l,
35
- " "
36
- ] }) }),
37
- /* @__PURE__ */ c(u, { shouldRender: !p, children: [
38
- l,
39
- /* @__PURE__ */ r(u, { shouldRender: t && Object.values(t).some(Boolean), children: /* @__PURE__ */ c(f, { colors: "neutral", rounded: "default", variant: "text", size: "sm", onClick: i, className: "ms-auto", children: [
36
+ /* @__PURE__ */ r(n, { shouldRender: s && Object.values(s).some(Boolean), children: /* @__PURE__ */ a(f, { colors: "neutral", rounded: "default", variant: "text", size: "sm", onClick: u, className: "ms-auto", children: [
40
37
  m.Shared.reset,
41
- /* @__PURE__ */ r(z, { className: "ms-space-01" })
38
+ /* @__PURE__ */ r(H, { className: "ms-space-01" })
42
39
  ] }) })
43
40
  ] })
44
41
  ] }) });
45
42
  });
46
43
  oe.displayName = "FilterGroup";
47
- const xe = ({ multi: l, data: s, placeholder: d, disabled: a, isLoading: h, rounded: p, size: t, name: i, defaultOpen: n }) => {
48
- var y, g, S, R, F, C, x, k, j;
49
- const e = b.useContext($), I = N("(max-width: 767px)"), { dir: w } = le();
50
- return I ? /* @__PURE__ */ c(H, { dir: w, defaultOpen: n, children: [
51
- /* @__PURE__ */ c(
52
- O,
44
+ const Re = ({ multi: l, data: i, placeholder: c, disabled: t, isLoading: p, rounded: h, size: d, name: s, defaultOpen: u }) => {
45
+ var y, g, S, F, C, x, R, j, k;
46
+ const e = b.useContext(I), L = w("(max-width: 767px)"), { dir: N } = se();
47
+ return L ? /* @__PURE__ */ a(O, { dir: N, defaultOpen: u, children: [
48
+ /* @__PURE__ */ a(
49
+ _,
53
50
  {
54
51
  id: "subcategoriesCollapsible",
55
52
  className: "flex w-full items-center justify-between py-space-03 [&>svg]:data-[state=closed]:rotate-180",
56
53
  children: [
57
- /* @__PURE__ */ c("div", { className: "flex grow items-center justify-between gap-space-01", children: [
58
- /* @__PURE__ */ r("span", { className: "text-body-01", children: d }),
59
- /* @__PURE__ */ r(u, { shouldRender: typeof ((y = e == null ? void 0 : e.value) == null ? void 0 : y[i]) == "object" && !!((S = (g = e == null ? void 0 : e.value) == null ? void 0 : g[i]) != null && S.length), children: /* @__PURE__ */ r("span", { className: "flex h-[24px] w-[24px] items-center justify-center rounded-full bg-background-secondary text-caption-01 text-primary", children: ie(((F = (R = e == null ? void 0 : e.value) == null ? void 0 : R[i]) == null ? void 0 : F.length) || 0) }) })
54
+ /* @__PURE__ */ a("div", { className: "flex grow items-center justify-between gap-space-01", children: [
55
+ /* @__PURE__ */ r("span", { className: "text-body-01", children: c }),
56
+ /* @__PURE__ */ r(n, { shouldRender: typeof ((y = e == null ? void 0 : e.value) == null ? void 0 : y[s]) == "object" && !!((S = (g = e == null ? void 0 : e.value) == null ? void 0 : g[s]) != null && S.length), children: /* @__PURE__ */ r("span", { className: "flex h-[24px] w-[24px] items-center justify-center rounded-full bg-background-secondary text-caption-01 text-primary", children: ie(((C = (F = e == null ? void 0 : e.value) == null ? void 0 : F[s]) == null ? void 0 : C.length) || 0) }) })
60
57
  ] }),
61
- /* @__PURE__ */ r(A, { className: "text-primary" })
58
+ /* @__PURE__ */ r(D, { className: "text-primary" })
62
59
  ]
63
60
  }
64
61
  ),
65
- /* @__PURE__ */ c(_, { children: [
66
- /* @__PURE__ */ r(u, { shouldRender: l, children: /* @__PURE__ */ r("div", { className: "py-space-04", children: s == null ? void 0 : s.map((o) => {
67
- var B, V, G;
62
+ /* @__PURE__ */ a(A, { children: [
63
+ /* @__PURE__ */ r(n, { shouldRender: l, children: /* @__PURE__ */ r("div", { className: "py-space-04", children: i == null ? void 0 : i.map((o) => {
64
+ var B, G, M;
68
65
  return /* @__PURE__ */ r(
69
- T,
66
+ $,
70
67
  {
71
68
  multi: l,
72
- name: i,
69
+ name: s,
73
70
  label: o.label,
74
71
  value: o.value,
75
- isCkecked: typeof ((B = e == null ? void 0 : e.value) == null ? void 0 : B[i]) == "object" && !!((G = (V = e == null ? void 0 : e.value) == null ? void 0 : V[i]) != null && G.find((v) => v == o.value)),
72
+ isCkecked: typeof ((B = e == null ? void 0 : e.value) == null ? void 0 : B[s]) == "object" && !!((M = (G = e == null ? void 0 : e.value) == null ? void 0 : G[s]) != null && M.find((v) => v == o.value)),
76
73
  onChange: (v) => {
77
- var M;
78
- return v && (e == null ? void 0 : e.upsert({ name: i, selectedValue: [...((M = e == null ? void 0 : e.value) == null ? void 0 : M[i]) ?? [], o.value] }));
74
+ var T;
75
+ return v && (e == null ? void 0 : e.upsert({ name: s, selectedValue: [...((T = e == null ? void 0 : e.value) == null ? void 0 : T[s]) ?? [], o.value] }));
79
76
  }
80
77
  },
81
78
  o.label
82
79
  );
83
80
  }) }) }),
84
- /* @__PURE__ */ r(u, { shouldRender: !l, children: /* @__PURE__ */ r("div", { className: "py-space-04", children: /* @__PURE__ */ r(
85
- D,
81
+ /* @__PURE__ */ r(n, { shouldRender: !l, children: /* @__PURE__ */ r("div", { className: "py-space-04", children: /* @__PURE__ */ r(
82
+ E,
86
83
  {
87
- name: i,
88
- dir: w,
89
- value: typeof ((C = e == null ? void 0 : e.value) == null ? void 0 : C[i]) == "string" ? (x = e == null ? void 0 : e.value) == null ? void 0 : x[i] : void 0,
84
+ name: s,
85
+ dir: N,
86
+ value: typeof ((x = e == null ? void 0 : e.value) == null ? void 0 : x[s]) == "string" ? (R = e == null ? void 0 : e.value) == null ? void 0 : R[s] : void 0,
90
87
  onValueChange: (o) => {
91
- e == null || e.upsert({ name: i, selectedValue: o });
88
+ e == null || e.upsert({ name: s, selectedValue: o });
92
89
  },
93
- children: s == null ? void 0 : s.map((o) => /* @__PURE__ */ r(T, { multi: l, name: i, label: o.label, value: o.value }, o.label))
90
+ children: i == null ? void 0 : i.map((o) => /* @__PURE__ */ r($, { multi: l, name: s, label: o.label, value: o.value }, o.label))
94
91
  }
95
92
  ) }) })
96
93
  ] })
97
94
  ] }) : l ? /* @__PURE__ */ r(
98
- P,
95
+ Q,
99
96
  {
100
- options: s || [],
97
+ options: i || [],
101
98
  onChange: (o) => {
102
- e == null || e.upsert({ name: i, selectedValue: o });
99
+ e == null || e.upsert({ name: s, selectedValue: o });
103
100
  },
104
- selectedValues: ((k = e == null ? void 0 : e.value) == null ? void 0 : k[i]) || [],
101
+ selectedValues: ((j = e == null ? void 0 : e.value) == null ? void 0 : j[s]) || [],
105
102
  dataTestId: "muliSelect",
106
- placeholder: d,
107
- disabled: a,
108
- rounded: p,
109
- size: t,
103
+ placeholder: c,
104
+ disabled: t,
105
+ rounded: h,
106
+ size: d,
110
107
  className: "!w-max"
111
108
  }
112
109
  ) : /* @__PURE__ */ r(
113
- Q,
110
+ V,
114
111
  {
115
112
  className: "!w-max",
116
- rounded: p,
117
- options: s || [],
113
+ rounded: h,
114
+ options: i || [],
118
115
  optionLabel: "label",
119
116
  optionValue: "value",
120
- placeholder: d,
117
+ placeholder: c,
121
118
  onChange: (o) => {
122
- e == null || e.upsert({ name: i, selectedValue: o });
119
+ e == null || e.upsert({ name: s, selectedValue: o });
123
120
  },
124
- value: ((j = e == null ? void 0 : e.value) == null ? void 0 : j[i]) || "",
125
- size: t,
126
- disabled: a,
127
- isLoading: h
121
+ value: ((k = e == null ? void 0 : e.value) == null ? void 0 : k[s]) || "",
122
+ size: d,
123
+ disabled: t,
124
+ isLoading: p
128
125
  }
129
126
  );
130
- }, ae = ({
127
+ }, ce = ({
131
128
  resetFilters: l,
132
- children: s,
133
- onClickFilter: d,
134
- label: a
135
- }) => /* @__PURE__ */ c(q, { children: [
136
- /* @__PURE__ */ r("div", { className: "flex justify-between", children: /* @__PURE__ */ r(J, { asChild: !0, children: /* @__PURE__ */ r("div", { className: "flex items-center gap-space-01", children: /* @__PURE__ */ c(
129
+ children: i,
130
+ onClickFilter: c,
131
+ label: t
132
+ }) => /* @__PURE__ */ a(q, { children: [
133
+ /* @__PURE__ */ r("div", { className: "flex justify-between", children: /* @__PURE__ */ r(J, { asChild: !0, children: /* @__PURE__ */ r("div", { className: "flex items-center gap-space-01", children: /* @__PURE__ */ a(
137
134
  f,
138
135
  {
139
136
  id: "servicesFilter",
140
137
  variant: "text",
141
138
  colors: "neutral",
142
- className: se({
143
- "!px-space-02": !a
139
+ className: le({
140
+ "!px-space-02": !t
144
141
  }),
145
142
  children: [
146
143
  /* @__PURE__ */ r(ee, {}),
147
- a && /* @__PURE__ */ r("span", { children: "label" })
144
+ t && /* @__PURE__ */ r("span", { children: t })
148
145
  ]
149
146
  }
150
147
  ) }) }) }),
151
- /* @__PURE__ */ c(K, { className: "flex flex-col gap-0 bg-white p-0", side: "bottom", children: [
148
+ /* @__PURE__ */ a(K, { className: "flex flex-col gap-0 bg-white p-0", side: "bottom", children: [
152
149
  /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r(W, { children: m.Shared.sortBy }) }),
153
- /* @__PURE__ */ r(X, { className: "px-space-04 py-space-00", children: s }),
154
- /* @__PURE__ */ r(Y, { className: "p-space-04", children: /* @__PURE__ */ c("div", { className: "flex bg-background", children: [
150
+ /* @__PURE__ */ r(X, { className: "px-space-04 py-space-00", children: i }),
151
+ /* @__PURE__ */ a(Y, { className: "p-space-04", children: [
155
152
  /* @__PURE__ */ r(f, { id: "servicesRest", size: "sm", variant: "text", colors: "neutral", onClick: l, className: "grow", children: m.Shared.reset }),
156
- /* @__PURE__ */ r(Z, { asChild: !0, className: "", children: /* @__PURE__ */ r(f, { id: "servicesShowResults", size: "sm", colors: "primary", onClick: d, className: "grow", children: m.Shared.showResults }) })
157
- ] }) })
153
+ /* @__PURE__ */ r(Z, { asChild: !0, className: "", children: /* @__PURE__ */ r(f, { id: "servicesShowResults", size: "sm", colors: "primary", onClick: c, className: "grow", children: m.Shared.showResults }) })
154
+ ] })
158
155
  ] })
159
- ] }), T = ({ label: l, value: s, isCkecked: d, onChange: a, name: h, multi: p }) => /* @__PURE__ */ c("div", { className: "flex items-center justify-between p-space-01 hover:bg-card-hover", children: [
156
+ ] }), $ = ({ label: l, value: i, isCkecked: c, onChange: t, name: p, multi: h }) => /* @__PURE__ */ a("div", { className: "flex items-center justify-between p-space-01 hover:bg-card-hover", children: [
160
157
  /* @__PURE__ */ r("label", { htmlFor: l, className: "text-Body-01 flex grow gap-space-02 font-medium", children: l }),
161
- /* @__PURE__ */ r(u, { shouldRender: p, children: /* @__PURE__ */ r(
158
+ /* @__PURE__ */ r(n, { shouldRender: h, children: /* @__PURE__ */ r(
162
159
  re,
163
160
  {
164
- id: `${h}${s}`,
165
- value: s,
166
- onCheckedChange: (t) => a == null ? void 0 : a(typeof t == "boolean" ? t : !1, s),
167
- checked: d
161
+ id: `${p}${i}`,
162
+ value: i,
163
+ onCheckedChange: (d) => t == null ? void 0 : t(typeof d == "boolean" ? d : !1, i),
164
+ checked: c
168
165
  }
169
166
  ) }),
170
- /* @__PURE__ */ r(u, { shouldRender: !p, children: /* @__PURE__ */ r(E, { id: `${h}${s}`, value: s.toString() }) })
167
+ /* @__PURE__ */ r(n, { shouldRender: !h, children: /* @__PURE__ */ r(P, { id: `${p}${i}`, value: i.toString() }) })
171
168
  ] });
172
169
  export {
173
170
  oe as FilterGroup,
174
- xe as FilterSelect
171
+ Re as FilterSelect
175
172
  };
package/index.es45.js CHANGED
@@ -21,11 +21,11 @@ const K = ({ colors: t = "default", ...l }) => {
21
21
  return /* @__PURE__ */ e(
22
22
  "footer",
23
23
  {
24
- className: u(" px-space-06", {
24
+ className: u(" px-space-04 md:px-space-06 ", {
25
25
  "bg-background-SA-Flag text-text-oncolor-primary": t === "default",
26
26
  "bg-background-neutral-100 text-text-default": t === "neutral"
27
27
  }),
28
- children: /* @__PURE__ */ a("div", { className: "flex flex-col items-start py-space-05", children: [
28
+ children: /* @__PURE__ */ a("div", { className: "max-w-container mx-auto flex flex-col items-start py-space-05", children: [
29
29
  /* @__PURE__ */ e(f, { shouldRender: l.showGroupLinks, children: /* @__PURE__ */ a("div", { className: "mb-space-08 grid w-full grid-cols-12 items-stretch gap-space-05 pb-space-07 pt-space-04", children: [
30
30
  (o = l.groupLinks) == null ? void 0 : o.map((r) => /* @__PURE__ */ e(C, { colors: t, title: r.title, links: r.links }, r.title)),
31
31
  /* @__PURE__ */ e("div", { className: "col-span-12 sm:col-span-6 lg:col-span-4 xl:col-span-3", children: /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-start gap-space-06", children: [
package/index.es47.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import { cva as C } from "./index.es100.js";
3
- import { createContext as N, useState as T, useEffect as b, useContext as z } from "react";
2
+ import { cva as N } from "./index.es100.js";
3
+ import { createContext as C, useState as T, useEffect as b, useContext as z } from "react";
4
4
  import { useMediaQuery as D } from "./index.es98.js";
5
- import { THEME as s } from "./index.es146.js";
5
+ import { THEME as l } from "./index.es146.js";
6
6
  import "./index.es2.js";
7
7
  import { cn as p, formatterTime as u } from "./index.es79.js";
8
8
  import k from "./index.es147.js";
@@ -20,52 +20,50 @@ import E from "./index.es83.js";
20
20
  import F from "./index.es80.js";
21
21
  import { ShouldRender as g } from "./index.es14.js";
22
22
  import { Button as m } from "./index.es22.js";
23
- import { strings as n } from "./index.es91.js";
24
- const j = C(
25
- "md:h-space-07 md:px-space-06 px-space-04 md:py-space-01 gap-space-02 py-space-02 flex flex-col md:flex-row [&>svg]:size-[20px] md:items-center md:justify-between ",
26
- {
27
- variants: {
28
- colors: {
29
- primary: "bg-background-primary text-text-oncolor-primary",
30
- gray: "bg-background-neutral-100 text-text-paragraph-primary"
31
- },
32
- hideDivider: {
33
- true: "",
34
- false: "border-b"
35
- }
23
+ import { strings as s } from "./index.es91.js";
24
+ const j = N("md:h-space-07 md:px-space-06 px-space-04 md:py-space-01 gap-space-02 py-space-02 [&>svg]:size-[20px] ", {
25
+ variants: {
26
+ colors: {
27
+ primary: "bg-background-primary text-text-oncolor-primary",
28
+ gray: "bg-background-neutral-100 text-text-paragraph-primary"
36
29
  },
37
- compoundVariants: [
38
- {
39
- colors: "primary",
40
- hideDivider: !1,
41
- className: "border-b-border-white-40"
42
- },
43
- {
44
- colors: "gray",
45
- hideDivider: !1,
46
- className: "border-b-border-neutral-primary"
47
- }
48
- ],
49
- defaultVariants: {
30
+ hideDivider: {
31
+ true: "",
32
+ false: "border-b"
33
+ }
34
+ },
35
+ compoundVariants: [
36
+ {
50
37
  colors: "primary",
51
- hideDivider: !1
38
+ hideDivider: !1,
39
+ className: "border-b-border-white-40"
40
+ },
41
+ {
42
+ colors: "gray",
43
+ hideDivider: !1,
44
+ className: "border-b-border-neutral-primary"
52
45
  }
46
+ ],
47
+ defaultVariants: {
48
+ colors: "primary",
49
+ hideDivider: !1
53
50
  }
54
- ), x = N({
51
+ }), x = C({
55
52
  colors: "primary",
56
53
  hideDivider: !1
57
- }), pe = ({ colors: o, hideDivider: a, className: r, ...t }) => /* @__PURE__ */ e(x.Provider, { value: { colors: o, hideDivider: a }, children: /* @__PURE__ */ e(
54
+ }), pe = ({ colors: o, hideDivider: a, className: r, children: t, ...n }) => /* @__PURE__ */ e(x.Provider, { value: { colors: o, hideDivider: a }, children: /* @__PURE__ */ e(
58
55
  "div",
59
56
  {
60
57
  className: p(j({ colors: o, hideDivider: a }), r),
61
- ...t,
62
- "aria-label": "a secondary navigation navbar",
63
- role: "banner"
58
+ ...n,
59
+ "aria-label": "a secondary navigation navbar ",
60
+ role: "banner",
61
+ children: /* @__PURE__ */ e("div", { className: "max-w-container mx-auto flex flex-col md:flex-row md:items-center md:justify-between ", children: t })
64
62
  }
65
63
  ) }), fe = ({ className: o, ...a }) => {
66
- const { dir: r } = E(), [t, l] = T(u(r).format());
64
+ const { dir: r } = E(), [t, n] = T(u(r).format());
67
65
  return b(() => {
68
- const i = setInterval(() => l(u(r).format()), 1e3);
66
+ const i = setInterval(() => n(u(r).format()), 1e3);
69
67
  return () => {
70
68
  clearInterval(i);
71
69
  };
@@ -81,17 +79,17 @@ const j = C(
81
79
  a.children
82
80
  ] });
83
81
  }, he = ({ className: o, hideTrail: a, hideSwitchTheme: r, ...t }) => {
84
- const { toggleColors: l, increaseSize: i, decreaseSize: y } = F((S) => S), h = z(x), c = h.colors === "gray" ? "neutral" : "oncolor", f = p({ "mix-blend-multiply dark:mix-blend-normal": h.colors === "gray" }), v = D("max-width:768px");
82
+ const { toggleColors: n, increaseSize: i, decreaseSize: y } = F((S) => S), h = z(x), c = h.colors === "gray" ? "neutral" : "oncolor", f = p({ "mix-blend-multiply dark:mix-blend-normal": h.colors === "gray" }), v = D("max-width:768px");
85
83
  return /* @__PURE__ */ d("div", { className: p("flex items-center gap-space-02 text-body-02", o), ...t, children: [
86
84
  /* @__PURE__ */ e(g, { shouldRender: !r, children: /* @__PURE__ */ e(K, { colors: c }) }),
87
85
  /* @__PURE__ */ e(
88
86
  m,
89
87
  {
90
88
  size: "icon-sm",
91
- tooltip: n.Accessibility.ColorContrast,
89
+ tooltip: s.Accessibility.ColorContrast,
92
90
  variant: "text",
93
91
  colors: c,
94
- onClick: l,
92
+ onClick: n,
95
93
  type: "button",
96
94
  className: f,
97
95
  children: /* @__PURE__ */ e(H, {})
@@ -101,7 +99,7 @@ const j = C(
101
99
  m,
102
100
  {
103
101
  size: "icon-sm",
104
- tooltip: n.Accessibility.DecreaseFontSize,
102
+ tooltip: s.Accessibility.DecreaseFontSize,
105
103
  variant: "text",
106
104
  colors: c,
107
105
  type: "button",
@@ -114,7 +112,7 @@ const j = C(
114
112
  m,
115
113
  {
116
114
  size: "icon-sm",
117
- tooltip: n.Accessibility.IncreaseFontSize,
115
+ tooltip: s.Accessibility.IncreaseFontSize,
118
116
  variant: "text",
119
117
  type: "button",
120
118
  colors: c,
@@ -127,7 +125,7 @@ const j = C(
127
125
  m,
128
126
  {
129
127
  size: "icon-sm",
130
- tooltip: n.Accessibility.VoiceCommands,
128
+ tooltip: s.Accessibility.VoiceCommands,
131
129
  variant: "text",
132
130
  colors: c,
133
131
  type: "button",
@@ -142,8 +140,8 @@ const j = C(
142
140
  /* @__PURE__ */ e(g, { shouldRender: !a, children: /* @__PURE__ */ e(O, { size: v ? "sm" : "default" }) })
143
141
  ] });
144
142
  }, K = ({ colors: o, size: a = "icon-sm" }) => {
145
- const { theme: r, setTheme: t } = M(), l = () => {
146
- const i = r === String(s.LIGHT) ? String(s.DARK) : String(s.LIGHT);
143
+ const { theme: r, setTheme: t } = M(), n = () => {
144
+ const i = r === String(l.LIGHT) ? String(l.DARK) : String(l.LIGHT);
147
145
  t(i);
148
146
  };
149
147
  return b(() => {
@@ -152,22 +150,22 @@ const j = C(
152
150
  t(i);
153
151
  return;
154
152
  }
155
- localStorage.setItem("defaultTheme", String(s.LIGHT));
153
+ localStorage.setItem("defaultTheme", String(l.LIGHT));
156
154
  }, [t]), /* @__PURE__ */ e(
157
155
  m,
158
156
  {
159
157
  size: a,
160
- tooltip: r === String(s.DARK) ? n.Shared.lightMode : n.Shared.darkMode,
158
+ tooltip: r === String(l.DARK) ? s.Shared.lightMode : s.Shared.darkMode,
161
159
  variant: "text",
162
160
  colors: o,
163
161
  className: p({ "mix-blend-multiply dark:mix-blend-normal": o === "gray" }),
164
- onClick: l,
165
- children: r === String(s.DARK) ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ e(G, {})
162
+ onClick: n,
163
+ children: r === String(l.DARK) ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ e(G, {})
166
164
  }
167
165
  );
168
166
  }, O = ({ variant: o = "ghost", colors: a = "gray", size: r = "default", ...t }) => /* @__PURE__ */ d(L, { variant: o, colors: a, size: r, ...t, children: [
169
167
  /* @__PURE__ */ e(B, {}),
170
- n.Shared.trialVersion
168
+ s.Shared.trialVersion
171
169
  ] });
172
170
  export {
173
171
  K as NavigationSwitchTheme,
package/index.es51.js CHANGED
@@ -13,24 +13,24 @@ function U() {
13
13
  return o;
14
14
  }
15
15
  const D = r.forwardRef(
16
- ({ orientation: o = "horizontal", opts: c, setApi: v, plugins: x, className: g, children: u, ...y }, P) => {
16
+ ({ orientation: o = "horizontal", opts: c, setApi: v, plugins: x, className: g, children: u, ...P }, $) => {
17
17
  const [R, t] = J(
18
18
  {
19
19
  ...c,
20
20
  axis: o === "horizontal" ? "x" : "y"
21
21
  },
22
22
  x
23
- ), [h, k] = r.useState(!1), [$, I] = r.useState(!1), e = r.useCallback((l) => {
23
+ ), [S, k] = r.useState(!1), [w, I] = r.useState(!1), e = r.useCallback((l) => {
24
24
  l && (k(l.canScrollPrev()), I(l.canScrollNext()));
25
- }, []), w = r.useCallback(() => {
25
+ }, []), y = r.useCallback(() => {
26
26
  t == null || t.scrollPrev();
27
27
  }, [t]), n = r.useCallback(() => {
28
28
  t == null || t.scrollNext();
29
29
  }, [t]), z = r.useCallback(
30
30
  (l) => {
31
- l.key === "ArrowLeft" ? (l.preventDefault(), w()) : l.key === "ArrowRight" && (l.preventDefault(), n());
31
+ l.key === "ArrowLeft" ? (l.preventDefault(), y()) : l.key === "ArrowRight" && (l.preventDefault(), n());
32
32
  },
33
- [w, n]
33
+ [y, n]
34
34
  );
35
35
  return r.useEffect(() => {
36
36
  !t || !v || v(t);
@@ -47,20 +47,20 @@ const D = r.forwardRef(
47
47
  api: t,
48
48
  opts: c,
49
49
  orientation: o || ((c == null ? void 0 : c.axis) === "y" ? "vertical" : "horizontal"),
50
- scrollPrev: w,
50
+ scrollPrev: y,
51
51
  scrollNext: n,
52
- canScrollPrev: h,
53
- canScrollNext: $
52
+ canScrollPrev: S,
53
+ canScrollNext: w
54
54
  },
55
55
  children: /* @__PURE__ */ a(
56
56
  "div",
57
57
  {
58
- ref: P,
58
+ ref: $,
59
59
  onKeyDownCapture: z,
60
60
  className: N("relative", g),
61
61
  role: "region",
62
62
  "aria-roledescription": "carousel",
63
- ...y,
63
+ ...P,
64
64
  children: u
65
65
  }
66
66
  )
@@ -83,16 +83,16 @@ function re({
83
83
  showDots: x = !0,
84
84
  showArrows: g = !0,
85
85
  loop: u = !0,
86
- autoplay: y = !1,
87
- autoplayInterval: P = 5e3,
86
+ autoplay: P = !1,
87
+ autoplayInterval: $ = 5e3,
88
88
  containerClassName: R,
89
89
  maxDots: t = null,
90
- itemWidth: h = 230,
90
+ itemWidth: S = 230,
91
91
  slidesToShow: k,
92
- showPartial: $ = !0,
92
+ showPartial: w = !0,
93
93
  dir: I = "rtl"
94
94
  }) {
95
- const [e, w] = r.useState(), [n, z] = r.useState(0), [l, B] = r.useState(0), [f, C] = r.useState(!1), [F, _] = r.useState(!0), E = r.useId(), M = r.useMemo(() => k ? `calc(${100 / k}% - ${$ ? "1rem" : "0px"})` : typeof h == "number" ? `${h}px` : h, [h, k, $]), S = r.useCallback(
95
+ const [e, y] = r.useState(), [n, z] = r.useState(0), [l, B] = r.useState(0), [f, C] = r.useState(!1), [F, _] = r.useState(!0), E = r.useId(), M = r.useMemo(() => k ? `calc(${100 / k}% - ${w ? "1rem" : "0px"})` : typeof S == "number" ? `${S}px` : S, [S, k, w]), h = r.useCallback(
96
96
  (s) => {
97
97
  if (!e || f)
98
98
  return;
@@ -115,10 +115,10 @@ function re({
115
115
  },
116
116
  [e, f]
117
117
  ), A = r.useCallback(() => {
118
- !e || f || (u && n === l - 1 ? S(0) : (C(!0), e.scrollNext(), setTimeout(() => C(!1), 300)));
119
- }, [e, f, u, n, l, S]), q = r.useCallback(() => {
120
- !e || f || (C(!0), u && n === 0 ? S(l - 1) : (e.scrollPrev(), setTimeout(() => C(!1), 300)));
121
- }, [e, f, u, n, l, S]);
118
+ !e || f || (u && n === l - 1 ? h(0) : (C(!0), e.scrollNext(), setTimeout(() => C(!1), 300)));
119
+ }, [e, f, u, n, l, h]), q = r.useCallback(() => {
120
+ !e || f || (C(!0), u && n === 0 ? h(l - 1) : (e.scrollPrev(), setTimeout(() => C(!1), 300)));
121
+ }, [e, f, u, n, l, h]);
122
122
  r.useEffect(() => {
123
123
  if (!e)
124
124
  return;
@@ -135,20 +135,20 @@ function re({
135
135
  const s = e.scrollSnapList().length, d = e.canScrollNext(), b = e.canScrollPrev();
136
136
  _(d || b || s > 1);
137
137
  }, [e, l, n]), r.useEffect(() => {
138
- if (!e || !y)
138
+ if (!e || !P)
139
139
  return;
140
140
  const s = setInterval(() => {
141
141
  f || A();
142
- }, P);
142
+ }, $);
143
143
  return () => clearInterval(s);
144
- }, [e, y, P, f, A]);
144
+ }, [e, P, $, f, A]);
145
145
  const H = () => {
146
146
  if (!t || l <= t)
147
147
  return Array.from({ length: l }).map((m, i) => /* @__PURE__ */ a(
148
148
  "button",
149
149
  {
150
150
  className: `size-space-04 rounded-full transition-colors focus:outline-none ${n === i ? "bg-primary" : "bg-background-neutral-200"}`,
151
- onClick: () => S(i),
151
+ onClick: () => h(i),
152
152
  disabled: f,
153
153
  "aria-label": `Go to slide ${i + 1}`
154
154
  },
@@ -162,7 +162,7 @@ function re({
162
162
  "button",
163
163
  {
164
164
  className: `size-space-04 rounded-full transition-colors focus:outline-none ${p ? "bg-primary" : "bg-background-neutral-200"}`,
165
- onClick: () => S(i),
165
+ onClick: () => h(i),
166
166
  disabled: f,
167
167
  "aria-label": `Go to slide ${i + 1}`
168
168
  },
@@ -172,11 +172,11 @@ function re({
172
172
  }
173
173
  return s;
174
174
  };
175
- return /* @__PURE__ */ a("div", { className: N("w-full overflow-hidden", R), children: /* @__PURE__ */ L(
175
+ return /* @__PURE__ */ a("div", { className: N("w-full ", R), children: /* @__PURE__ */ L(
176
176
  D,
177
177
  {
178
178
  dir: I,
179
- setApi: w,
179
+ setApi: y,
180
180
  opts: {
181
181
  align: "start",
182
182
  loop: !1,
@@ -211,7 +211,7 @@ function re({
211
211
  size: "icon",
212
212
  "aria-label": "Previous slide",
213
213
  className: N(!u && n === 0 && "!pointer-events-none"),
214
- children: /* @__PURE__ */ a(O, { className: "h-4 w-4" })
214
+ children: /* @__PURE__ */ a(O, { className: "ltr:rotate-180" })
215
215
  }
216
216
  ),
217
217
  /* @__PURE__ */ a(
@@ -223,7 +223,7 @@ function re({
223
223
  size: "icon",
224
224
  "aria-label": "Next slide",
225
225
  className: N(!u && n === l - 1 && "!pointer-events-none"),
226
- children: /* @__PURE__ */ a(Q, { className: "h-4 w-4" })
226
+ children: /* @__PURE__ */ a(Q, { className: "ltr:rotate-180" })
227
227
  }
228
228
  )
229
229
  ] }),