mada-design-system 0.8.1 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/index.cjs104.js +1 -1
  2. package/index.cjs106.js +1 -1
  3. package/index.cjs107.js +1 -1
  4. package/index.cjs108.js +1 -1
  5. package/index.cjs109.js +1 -1
  6. package/index.cjs112.js +1 -1
  7. package/index.cjs113.js +1 -1
  8. package/index.cjs114.js +1 -1
  9. package/index.cjs115.js +1 -1
  10. package/index.cjs116.js +1 -1
  11. package/index.cjs117.js +1 -1
  12. package/index.cjs118.js +1 -1
  13. package/index.cjs120.js +1 -1
  14. package/index.cjs121.js +1 -1
  15. package/index.cjs122.js +1 -1
  16. package/index.cjs123.js +1 -1
  17. package/index.cjs124.js +1 -1
  18. package/index.cjs128.js +1 -1
  19. package/index.cjs131.js +1 -1
  20. package/index.cjs132.js +1 -1
  21. package/index.cjs134.js +1 -1
  22. package/index.cjs135.js +1 -1
  23. package/index.cjs136.js +1 -1
  24. package/index.cjs138.js +1 -1
  25. package/index.cjs139.js +1 -1
  26. package/index.cjs140.js +1 -1
  27. package/index.cjs142.js +1 -1
  28. package/index.cjs143.js +1 -1
  29. package/index.cjs148.js +1 -1
  30. package/index.cjs149.js +1 -1
  31. package/index.cjs150.js +1 -1
  32. package/index.cjs151.js +1 -1
  33. package/index.cjs152.js +1 -1
  34. package/index.cjs153.js +1 -1
  35. package/index.cjs160.js +1 -1
  36. package/index.cjs161.js +1 -1
  37. package/index.cjs162.js +1 -1
  38. package/index.cjs163.js +1 -1
  39. package/index.cjs165.js +1 -1
  40. package/index.cjs166.js +1 -1
  41. package/index.cjs167.js +1 -1
  42. package/index.cjs168.js +1 -1
  43. package/index.cjs171.js +1 -1
  44. package/index.cjs172.js +1 -1
  45. package/index.cjs173.js +1 -1
  46. package/index.cjs174.js +1 -1
  47. package/index.cjs175.js +1 -1
  48. package/index.cjs176.js +1 -1
  49. package/index.cjs177.js +1 -1
  50. package/index.cjs178.js +1 -1
  51. package/index.cjs179.js +1 -1
  52. package/index.cjs181.js +1 -1
  53. package/index.cjs182.js +1 -1
  54. package/index.cjs183.js +1 -1
  55. package/index.cjs184.js +1 -1
  56. package/index.cjs186.js +1 -1
  57. package/index.cjs187.js +1 -1
  58. package/index.cjs188.js +1 -1
  59. package/index.cjs189.js +1 -1
  60. package/index.cjs190.js +1 -1
  61. package/index.cjs191.js +1 -1
  62. package/index.cjs192.js +1 -1
  63. package/index.cjs193.js +1 -1
  64. package/index.cjs194.js +1 -1
  65. package/index.cjs195.js +1 -1
  66. package/index.cjs197.js +1 -1
  67. package/index.cjs198.js +1 -1
  68. package/index.cjs199.js +1 -1
  69. package/index.cjs200.js +1 -1
  70. package/index.cjs201.js +1 -1
  71. package/index.cjs202.js +1 -1
  72. package/index.cjs203.js +1 -1
  73. package/index.cjs204.js +1 -1
  74. package/index.cjs205.js +1 -4
  75. package/index.cjs206.js +4 -1
  76. package/index.cjs221.js +1 -1
  77. package/index.cjs225.js +1 -1
  78. package/index.cjs226.js +1 -1
  79. package/index.cjs227.js +1 -1
  80. package/index.cjs228.js +1 -1
  81. package/index.cjs230.js +1 -1
  82. package/index.cjs231.js +1 -1
  83. package/index.cjs29.js +1 -1
  84. package/index.cjs296.js +1 -1
  85. package/index.cjs297.js +1 -1
  86. package/index.cjs298.js +1 -1
  87. package/index.cjs300.js +1 -1
  88. package/index.cjs301.js +1 -1
  89. package/index.cjs302.js +1 -1
  90. package/index.cjs303.js +1 -1
  91. package/index.cjs304.js +1 -1
  92. package/index.cjs306.js +1 -1
  93. package/index.cjs310.js +1 -1
  94. package/index.cjs356.js +1 -1
  95. package/index.cjs357.js +1 -1
  96. package/index.cjs362.js +1 -1
  97. package/index.cjs363.js +1 -1
  98. package/index.cjs364.js +1 -1
  99. package/index.cjs365.js +1 -15
  100. package/index.cjs366.js +1 -1
  101. package/index.cjs367.js +1 -1
  102. package/index.cjs368.js +15 -1
  103. package/index.cjs369.js +1 -1
  104. package/index.cjs370.js +1 -1
  105. package/index.cjs371.js +1 -1
  106. package/index.cjs372.js +1 -1
  107. package/index.cjs373.js +1 -1
  108. package/index.cjs374.js +1 -1
  109. package/index.cjs375.js +1 -1
  110. package/index.cjs376.js +1 -1
  111. package/index.cjs377.js +1 -1
  112. package/index.cjs378.js +1 -1
  113. package/index.cjs379.js +1 -1
  114. package/index.cjs380.js +1 -1
  115. package/index.cjs381.js +1 -1
  116. package/index.cjs382.js +1 -1
  117. package/index.cjs383.js +1 -1
  118. package/index.cjs384.js +1 -3
  119. package/index.cjs385.js +1 -1
  120. package/index.cjs386.js +1 -1
  121. package/index.cjs387.js +3 -1
  122. package/index.cjs388.js +1 -1
  123. package/index.cjs389.js +1 -1
  124. package/index.cjs390.js +1 -1
  125. package/index.cjs391.js +1 -1
  126. package/index.cjs402.js +1 -1
  127. package/index.cjs403.js +1 -1
  128. package/index.cjs404.js +1 -1
  129. package/index.cjs405.js +1 -1
  130. package/index.cjs406.js +1 -1
  131. package/index.cjs407.js +1 -1
  132. package/index.cjs408.js +1 -1
  133. package/index.cjs409.js +1 -1
  134. package/index.cjs410.js +1 -1
  135. package/index.cjs411.js +1 -1
  136. package/index.cjs412.js +1 -1
  137. package/index.cjs413.js +1 -1
  138. package/index.cjs414.js +1 -1
  139. package/index.cjs415.js +1 -1
  140. package/index.cjs420.js +1 -1
  141. package/index.cjs424.js +1 -1
  142. package/index.cjs43.js +2 -2
  143. package/index.cjs442.js +1 -1
  144. package/index.cjs443.js +1 -1
  145. package/index.cjs454.js +1 -1
  146. package/index.cjs455.js +1 -1
  147. package/index.cjs46.js +1 -1
  148. package/index.cjs47.js +1 -1
  149. package/index.cjs470.js +1 -1
  150. package/index.cjs471.js +1 -1
  151. package/index.cjs472.js +1 -1
  152. package/index.cjs473.js +1 -1
  153. package/index.cjs474.js +1 -1
  154. package/index.cjs475.js +1 -1
  155. package/index.cjs476.js +1 -1
  156. package/index.cjs477.js +1 -1
  157. package/index.cjs478.js +74 -1
  158. package/index.cjs479.js +1 -1
  159. package/index.cjs48.js +1 -1
  160. package/index.cjs480.js +1 -74
  161. package/index.cjs481.js +1 -1
  162. package/index.cjs482.js +1 -1
  163. package/index.cjs483.js +1 -1
  164. package/index.cjs484.js +1 -1
  165. package/index.cjs486.js +1 -1
  166. package/index.cjs52.js +1 -1
  167. package/index.cjs8.js +1 -1
  168. package/index.cjs86.js +1 -1
  169. package/index.cjs89.js +1 -1
  170. package/index.cjs92.js +1 -1
  171. package/index.cjs96.js +1 -1
  172. package/index.es.d.ts +6 -1
  173. package/index.es104.js +1 -1
  174. package/index.es106.js +1 -1
  175. package/index.es107.js +1 -1
  176. package/index.es108.js +1 -1
  177. package/index.es109.js +1 -1
  178. package/index.es112.js +2 -2
  179. package/index.es113.js +1 -1
  180. package/index.es114.js +1 -1
  181. package/index.es115.js +1 -1
  182. package/index.es116.js +1 -1
  183. package/index.es117.js +1 -1
  184. package/index.es118.js +2 -2
  185. package/index.es120.js +1 -1
  186. package/index.es121.js +1 -1
  187. package/index.es122.js +1 -1
  188. package/index.es123.js +1 -1
  189. package/index.es124.js +1 -1
  190. package/index.es128.js +1 -1
  191. package/index.es131.js +1 -1
  192. package/index.es132.js +1 -1
  193. package/index.es134.js +1 -1
  194. package/index.es135.js +1 -1
  195. package/index.es136.js +1 -1
  196. package/index.es138.js +1 -1
  197. package/index.es139.js +1 -1
  198. package/index.es140.js +1 -1
  199. package/index.es142.js +1 -1
  200. package/index.es143.js +1 -1
  201. package/index.es148.js +1 -1
  202. package/index.es149.js +1 -1
  203. package/index.es150.js +1 -1
  204. package/index.es151.js +1 -1
  205. package/index.es152.js +1 -1
  206. package/index.es153.js +1 -1
  207. package/index.es160.js +1 -1
  208. package/index.es161.js +1 -1
  209. package/index.es162.js +1 -1
  210. package/index.es163.js +1 -1
  211. package/index.es165.js +1 -1
  212. package/index.es166.js +1 -1
  213. package/index.es167.js +1 -1
  214. package/index.es168.js +1 -1
  215. package/index.es171.js +1 -1
  216. package/index.es172.js +1 -1
  217. package/index.es173.js +1 -1
  218. package/index.es174.js +1 -1
  219. package/index.es175.js +2 -2
  220. package/index.es176.js +1 -1
  221. package/index.es177.js +2 -2
  222. package/index.es178.js +1 -1
  223. package/index.es179.js +1 -1
  224. package/index.es181.js +1 -1
  225. package/index.es182.js +1 -1
  226. package/index.es183.js +1 -1
  227. package/index.es184.js +1 -1
  228. package/index.es186.js +125 -2324
  229. package/index.es187.js +6 -2152
  230. package/index.es188.js +2338 -11
  231. package/index.es189.js +2149 -136
  232. package/index.es190.js +11 -6
  233. package/index.es191.js +482 -3
  234. package/index.es192.js +3 -235
  235. package/index.es193.js +231 -52
  236. package/index.es194.js +53 -30
  237. package/index.es195.js +38 -11
  238. package/index.es197.js +28 -477
  239. package/index.es198.js +12 -18
  240. package/index.es199.js +15 -32
  241. package/index.es200.js +34 -1223
  242. package/index.es201.js +1223 -13
  243. package/index.es202.js +14 -8
  244. package/index.es203.js +8 -50
  245. package/index.es204.js +50 -2
  246. package/index.es205.js +2 -2261
  247. package/index.es206.js +2260 -38
  248. package/index.es221.js +3 -3
  249. package/index.es225.js +4 -4
  250. package/index.es226.js +1 -1
  251. package/index.es227.js +2 -2
  252. package/index.es228.js +3 -3
  253. package/index.es230.js +3 -3
  254. package/index.es231.js +1 -1
  255. package/index.es29.js +1 -1
  256. package/index.es296.js +1 -1
  257. package/index.es297.js +1 -1
  258. package/index.es298.js +1 -1
  259. package/index.es300.js +3 -3
  260. package/index.es301.js +2 -2
  261. package/index.es302.js +5 -5
  262. package/index.es303.js +1 -1
  263. package/index.es304.js +1 -1
  264. package/index.es306.js +1 -1
  265. package/index.es310.js +3 -3
  266. package/index.es356.js +1 -1
  267. package/index.es357.js +1 -1
  268. package/index.es362.js +38 -2
  269. package/index.es363.js +3 -60
  270. package/index.es364.js +9 -15
  271. package/index.es365.js +2 -244
  272. package/index.es366.js +58 -72
  273. package/index.es367.js +16 -4
  274. package/index.es368.js +242 -56
  275. package/index.es369.js +74 -11
  276. package/index.es370.js +4 -6
  277. package/index.es371.js +57 -35
  278. package/index.es372.js +11 -27
  279. package/index.es373.js +7 -291
  280. package/index.es374.js +34 -89
  281. package/index.es375.js +27 -3
  282. package/index.es376.js +291 -8
  283. package/index.es377.js +90 -15
  284. package/index.es378.js +3 -147
  285. package/index.es379.js +8 -38
  286. package/index.es380.js +16 -3
  287. package/index.es381.js +146 -10
  288. package/index.es382.js +120 -8
  289. package/index.es383.js +7 -351
  290. package/index.es384.js +7 -94
  291. package/index.es385.js +7 -9
  292. package/index.es386.js +351 -3
  293. package/index.es387.js +94 -205
  294. package/index.es388.js +10 -120
  295. package/index.es389.js +3 -7
  296. package/index.es390.js +206 -8
  297. package/index.es391.js +1 -1
  298. package/index.es402.js +24 -2
  299. package/index.es403.js +21 -2
  300. package/index.es404.js +30 -22
  301. package/index.es405.js +6 -21
  302. package/index.es406.js +3 -32
  303. package/index.es407.js +7 -6
  304. package/index.es408.js +4 -3
  305. package/index.es409.js +18 -6
  306. package/index.es410.js +66 -3
  307. package/index.es411.js +15 -18
  308. package/index.es412.js +13 -65
  309. package/index.es413.js +3 -15
  310. package/index.es414.js +2 -15
  311. package/index.es415.js +2 -4
  312. package/index.es420.js +1 -1
  313. package/index.es424.js +1 -1
  314. package/index.es43.js +5 -5
  315. package/index.es442.js +1 -1
  316. package/index.es443.js +1 -1
  317. package/index.es454.js +2 -2
  318. package/index.es455.js +1 -1
  319. package/index.es46.js +58 -58
  320. package/index.es47.js +156 -156
  321. package/index.es470.js +10 -3
  322. package/index.es471.js +3 -45
  323. package/index.es472.js +8 -24
  324. package/index.es473.js +5 -10
  325. package/index.es474.js +3 -3
  326. package/index.es475.js +3 -8
  327. package/index.es476.js +45 -5
  328. package/index.es477.js +23 -2
  329. package/index.es478.js +251 -2
  330. package/index.es479.js +8 -2
  331. package/index.es48.js +98 -88
  332. package/index.es480.js +3 -251
  333. package/index.es481.js +2 -8
  334. package/index.es482.js +2 -3
  335. package/index.es483.js +1 -1
  336. package/index.es484.js +1 -1
  337. package/index.es486.js +1 -1
  338. package/index.es52.js +4 -3
  339. package/index.es8.js +66 -66
  340. package/index.es86.js +1 -1
  341. package/index.es89.js +2 -2
  342. package/index.es92.js +2 -2
  343. package/index.es96.js +1 -1
  344. package/package.json +1 -1
  345. package/style.css +1 -1
package/index.es47.js CHANGED
@@ -1,73 +1,73 @@
1
- import { jsxs as n, jsx as e, Fragment as O } from "react/jsx-runtime";
2
- import w, { createContext as R, useCallback as A, useMemo as C, useContext as H, useState as _ } from "react";
1
+ import { jsxs as m, jsx as e, Fragment as O } from "react/jsx-runtime";
2
+ import S, { createContext as R, useCallback as L, useMemo as F, useContext as H, useState as _ } from "react";
3
3
  import { useMediaQuery as j } from "./index.es106.js";
4
4
  import "./index.es2.js";
5
- import { Collapsible as F, CollapsibleTrigger as k, CollapsibleContent as M } from "./index.es27.js";
6
- import v from "./index.es151.js";
7
- import { RadioGroup as D, RadioGroupItem as I } from "./index.es63.js";
8
- import { MultiSelect as P } from "./index.es11.js";
9
- import { ComboboxControlNoForm as Q } from "./index.es7.js";
10
- import { strings as y } from "./index.es101.js";
11
- import q from "./index.es152.js";
12
- import { Command as J, CommandInput as K, CommandList as U, CommandEmpty as W, CommandItem as X } from "./index.es28.js";
13
- import { Sheet as Y, SheetTrigger as Z, SheetContent as V, SheetHeader as ee, SheetTitle as te, SheetBody as re, SheetFooter as se, SheetClose as oe } from "./index.es68.js";
5
+ import { Collapsible as k, CollapsibleTrigger as M, CollapsibleContent as v } from "./index.es27.js";
6
+ import A from "./index.es151.js";
7
+ import { RadioGroup as D, RadioGroupItem as P } from "./index.es63.js";
8
+ import { MultiSelect as Q } from "./index.es11.js";
9
+ import { ComboboxControlNoForm as q } from "./index.es7.js";
10
+ import { strings as b } from "./index.es101.js";
11
+ import J from "./index.es152.js";
12
+ import { Command as K, CommandInput as U, CommandList as W, CommandEmpty as X, CommandItem as Y } from "./index.es28.js";
13
+ import { Sheet as Z, SheetTrigger as I, SheetContent as V, SheetHeader as ee, SheetTitle as te, SheetBody as re, SheetFooter as se, SheetClose as oe } from "./index.es68.js";
14
14
  import ie from "./index.es153.js";
15
- import { Checkbox as le } from "./index.es26.js";
16
- import { Label as ae } from "./index.es39.js";
17
- import L from "./index.es93.js";
18
- import { Button as g } from "./index.es23.js";
19
- import { cn as z } from "./index.es89.js";
20
- const T = R(null), B = () => {
21
- const t = H(T);
15
+ import { Checkbox as ae } from "./index.es26.js";
16
+ import { Label as le } from "./index.es39.js";
17
+ import z from "./index.es93.js";
18
+ import { Button as N } from "./index.es23.js";
19
+ import { cn as T } from "./index.es89.js";
20
+ const B = R(null), G = () => {
21
+ const t = H(B);
22
22
  if (!t)
23
23
  throw new Error("useFilterContext must be used within a FilterGroup");
24
24
  return t;
25
- }, ce = (t) => t < 10 ? "0" + (t == null ? void 0 : t.toString()) : t == null ? void 0 : t.toString(), ne = ({ label: t, value: r, isCkecked: a, onChange: s, name: h, multi: m }) => /* @__PURE__ */ n("div", { className: "flex w-full items-center gap-space-02", children: [
26
- m ? /* @__PURE__ */ e(
27
- le,
25
+ }, ce = (t) => t < 10 ? "0" + (t == null ? void 0 : t.toString()) : t == null ? void 0 : t.toString(), ne = ({ label: t, value: r, isCkecked: o, onChange: i, name: a, multi: x }) => /* @__PURE__ */ m("div", { className: "flex w-full items-center gap-space-02", children: [
26
+ x ? /* @__PURE__ */ e(
27
+ ae,
28
28
  {
29
- id: `${h}${r}`,
29
+ id: `${a}${r}`,
30
30
  value: r,
31
31
  size: "sm",
32
- onCheckedChange: (f) => s == null ? void 0 : s(typeof f == "boolean" ? f : !1, r),
33
- checked: a
32
+ onCheckedChange: (h) => i == null ? void 0 : i(typeof h == "boolean" ? h : !1, r),
33
+ checked: o
34
34
  }
35
- ) : /* @__PURE__ */ e(I, { id: `${h}${r}`, value: r.toString() }),
36
- /* @__PURE__ */ e(ae, { htmlFor: `${h}${r}`, className: "text-Body-01 flex grow gap-space-02", children: t })
35
+ ) : /* @__PURE__ */ e(P, { id: `${a}${r}`, value: r.toString() }),
36
+ /* @__PURE__ */ e(le, { htmlFor: `${a}${r}`, className: "text-Body-01 flex grow gap-space-02", children: t })
37
37
  ] });
38
- function pe(t = [], r, a) {
39
- const s = new Set(t);
40
- return a ? s.add(r) : s.delete(r), Array.from(s);
38
+ function pe(t = [], r, o) {
39
+ const i = new Set(t);
40
+ return o ? i.add(r) : i.delete(r), Array.from(i);
41
41
  }
42
- const $ = ({ data: t, name: r, multi: a }) => {
43
- var b, u;
44
- const { value: s, upsert: h } = B(), [m, f] = _(""), l = 5, c = a && Array.isArray(s == null ? void 0 : s[r]) ? s == null ? void 0 : s[r] : [], p = (o, x) => {
45
- a && h({ name: r, selectedValue: pe(c, o, x) });
46
- }, i = (o) => {
47
- const x = a ? c.includes(o.value) : (s == null ? void 0 : s[r]) === o.value;
48
- return /* @__PURE__ */ e(X, { className: "py-space-01", children: /* @__PURE__ */ e(
42
+ const $ = ({ data: t, name: r, multi: o, renderItem: i }) => {
43
+ var y, p;
44
+ const { value: a, upsert: x } = G(), [h, s] = _(""), d = 5, n = o && Array.isArray(a == null ? void 0 : a[r]) ? a == null ? void 0 : a[r] : [], l = (c, w) => {
45
+ o && x({ name: r, selectedValue: pe(n, c, w) });
46
+ }, u = (c) => {
47
+ const w = o ? n.includes(c.value) : (a == null ? void 0 : a[r]) === c.value, g = i ? i(c) : c.label;
48
+ return /* @__PURE__ */ e(Y, { className: "py-space-01", children: /* @__PURE__ */ e(
49
49
  ne,
50
50
  {
51
- multi: a,
51
+ multi: o,
52
52
  name: r,
53
- label: o.label,
54
- value: o.value,
55
- isCkecked: x,
56
- onChange: (S) => p(o.value, S)
53
+ label: g,
54
+ value: c.value,
55
+ isCkecked: w,
56
+ onChange: (C) => l(c.value, C)
57
57
  }
58
- ) }, o.value);
59
- }, d = C(() => t.filter((o) => o.label.toLowerCase().includes(m.toLowerCase())), [t, m]);
60
- return /* @__PURE__ */ n(J, { shouldFilter: !1, className: "pt-space-03", children: [
61
- t.length > 9 && /* @__PURE__ */ e(K, { placeholder: y.Shared.Search, value: m, onValueChange: f }),
62
- /* @__PURE__ */ n(U, { className: "h-full max-h-max", children: [
63
- /* @__PURE__ */ e(W, { children: y.Shared.noResultsFound }),
64
- (b = d == null ? void 0 : d.slice(0, l)) == null ? void 0 : b.map(i),
65
- (d == null ? void 0 : d.length) > l && /* @__PURE__ */ n(F, { children: [
66
- /* @__PURE__ */ e(M, { children: (u = d == null ? void 0 : d.slice(l)) == null ? void 0 : u.map(i) }),
67
- /* @__PURE__ */ n(k, { className: "flex w-full items-center gap-space-01 py-space-01 pe-space-02 ps-space-03 text-body-01 text-primary", children: [
68
- /* @__PURE__ */ e("span", { className: "group-data-[state=closed]:hidden", children: y.Shared.showLess }),
69
- /* @__PURE__ */ e("span", { className: "group-data-[state=open]:hidden", children: y.Shared.showMore }),
70
- /* @__PURE__ */ e(v, { size: 16, className: "transition-transform duration-300 group-data-[state=closed]:rotate-180" })
58
+ ) }, c.value);
59
+ }, f = F(() => t.filter((c) => c.label.toLowerCase().includes(h.toLowerCase())), [t, h]);
60
+ return /* @__PURE__ */ m(K, { shouldFilter: !1, className: "pt-space-03", children: [
61
+ t.length > 9 && /* @__PURE__ */ e(U, { placeholder: b.Shared.Search, value: h, onValueChange: s }),
62
+ /* @__PURE__ */ m(W, { className: "h-full max-h-max", children: [
63
+ /* @__PURE__ */ e(X, { children: b.Shared.noResultsFound }),
64
+ (y = f == null ? void 0 : f.slice(0, d)) == null ? void 0 : y.map(u),
65
+ (f == null ? void 0 : f.length) > d && /* @__PURE__ */ m(k, { children: [
66
+ /* @__PURE__ */ e(v, { children: (p = f == null ? void 0 : f.slice(d)) == null ? void 0 : p.map(u) }),
67
+ /* @__PURE__ */ m(M, { className: "flex w-full items-center gap-space-01 py-space-01 pe-space-02 ps-space-03 text-body-01 text-primary", children: [
68
+ /* @__PURE__ */ e("span", { className: "group-data-[state=closed]:hidden", children: b.Shared.showLess }),
69
+ /* @__PURE__ */ e("span", { className: "group-data-[state=open]:hidden", children: b.Shared.showMore }),
70
+ /* @__PURE__ */ e(A, { size: 16, className: "transition-transform duration-300 group-data-[state=closed]:rotate-180" })
71
71
  ] })
72
72
  ] })
73
73
  ] })
@@ -75,171 +75,171 @@ const $ = ({ data: t, name: r, multi: a }) => {
75
75
  }, de = ({
76
76
  resetFilters: t,
77
77
  children: r,
78
- onClickFilter: a,
79
- label: s,
80
- filterButtonProps: h,
81
- filterIcon: m
78
+ onClickFilter: o,
79
+ label: i,
80
+ filterButtonProps: a,
81
+ filterIcon: x
82
82
  }) => {
83
- const { dir: f } = L(), l = w.Children.map(r, (c) => {
84
- var p, i;
85
- return w.isValidElement(c) ? c.type && typeof c.type == "object" && "type" in c.type && ((p = c.type.type) == null ? void 0 : p.displayName) === "FilterSelect" ? c : /* @__PURE__ */ n(
86
- F,
83
+ const { dir: h } = z(), s = S.Children.map(r, (d) => {
84
+ var n;
85
+ return S.isValidElement(d) ? d.type && typeof d.type == "object" && "displayName" in d.type && d.type.displayName === "FilterSelect" ? d : /* @__PURE__ */ m(
86
+ k,
87
87
  {
88
- dir: f,
88
+ dir: h,
89
89
  defaultOpen: !1,
90
90
  className: "flex flex-col gap-space-01 border-b border-border-primary px-space-03 py-space-02",
91
91
  children: [
92
- /* @__PURE__ */ n(k, { className: "flex w-full items-center justify-between py-space-01 ps-space-02", children: [
93
- /* @__PURE__ */ e("span", { className: "text-body-01 font-semibold", children: ((i = c.props) == null ? void 0 : i.placeholder) || "Filter" }),
94
- /* @__PURE__ */ e(g, { variant: "text", type: "button", size: "icon-sm", colors: "gray", "aria-label": "Toggle filter options", children: /* @__PURE__ */ e(v, { className: "transition-transform duration-300 group-data-[state=closed]:rotate-180" }) })
92
+ /* @__PURE__ */ m(M, { className: "flex w-full items-center justify-between py-space-01 ps-space-02", children: [
93
+ /* @__PURE__ */ e("span", { className: "text-body-01 font-semibold", children: ((n = d.props) == null ? void 0 : n.placeholder) || "Filter" }),
94
+ /* @__PURE__ */ e(N, { variant: "text", type: "button", size: "icon-sm", colors: "gray", "aria-label": "Toggle filter options", children: /* @__PURE__ */ e(A, { className: "transition-transform duration-300 group-data-[state=closed]:rotate-180" }) })
95
95
  ] }),
96
- /* @__PURE__ */ e(M, { children: c })
96
+ /* @__PURE__ */ e(v, { children: d })
97
97
  ]
98
98
  }
99
- ) : c;
99
+ ) : d;
100
100
  });
101
- return /* @__PURE__ */ n(Y, { children: [
102
- /* @__PURE__ */ e(Z, { asChild: !0, children: /* @__PURE__ */ n(
103
- g,
101
+ return /* @__PURE__ */ m(Z, { children: [
102
+ /* @__PURE__ */ e(I, { asChild: !0, children: /* @__PURE__ */ m(
103
+ N,
104
104
  {
105
105
  id: "mobileFilter",
106
106
  colors: "neutral",
107
- className: z({
108
- "!px-space-02": !s
107
+ className: T({
108
+ "!px-space-02": !i
109
109
  }),
110
- ...h,
110
+ ...a,
111
111
  children: [
112
- m || /* @__PURE__ */ e(ie, {}),
113
- s && /* @__PURE__ */ e("span", { children: s })
112
+ x || /* @__PURE__ */ e(ie, {}),
113
+ i && /* @__PURE__ */ e("span", { children: i })
114
114
  ]
115
115
  }
116
116
  ) }),
117
- /* @__PURE__ */ n(V, { side: "bottom", children: [
118
- /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(te, { children: y.Shared.sortBy }) }),
119
- /* @__PURE__ */ e(re, { className: "px-space-00 py-space-02", children: l }),
120
- /* @__PURE__ */ n(se, { className: "flex-row gap-space-02 p-space-04", children: [
121
- /* @__PURE__ */ e(g, { id: "servicesRest", size: "sm", variant: "text", colors: "neutral", onClick: t, className: "grow", children: y.Shared.reset }),
122
- /* @__PURE__ */ e(oe, { asChild: !0, children: /* @__PURE__ */ e(g, { id: "servicesShowResults", size: "sm", colors: "primary", onClick: a, className: "grow", children: y.Shared.showResults }) })
117
+ /* @__PURE__ */ m(V, { side: "bottom", children: [
118
+ /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(te, { children: b.Shared.sortBy }) }),
119
+ /* @__PURE__ */ e(re, { className: "px-space-00 py-space-02", children: s }),
120
+ /* @__PURE__ */ m(se, { className: "flex-row gap-space-02 p-space-04", children: [
121
+ /* @__PURE__ */ e(N, { id: "servicesRest", size: "sm", variant: "text", colors: "neutral", onClick: t, className: "grow", children: b.Shared.reset }),
122
+ /* @__PURE__ */ e(oe, { asChild: !0, children: /* @__PURE__ */ e(N, { id: "servicesShowResults", size: "sm", colors: "primary", onClick: o, className: "grow", children: b.Shared.showResults }) })
123
123
  ] })
124
124
  ] })
125
125
  ] });
126
- }, me = w.memo(
127
- ({ multi: t, data: r, placeholder: a, disabled: s, isLoading: h, rounded: m, size: f, name: l, defaultOpen: c, renderItem: p }) => {
128
- const { value: i, upsert: d } = B(), b = j("(max-width: 768px)"), { dir: u } = L();
129
- let o;
130
- return t ? o = Array.isArray(i == null ? void 0 : i[l]) ? i == null ? void 0 : i[l] : [] : o = typeof (i == null ? void 0 : i[l]) == "string" ? i == null ? void 0 : i[l] : void 0, b ? /* @__PURE__ */ n(F, { dir: u, defaultOpen: c, className: "border-b border-border-primary px-space-03 py-space-02", children: [
131
- /* @__PURE__ */ n(k, { id: "subcategoriesCollapsible", className: "flex w-full items-center justify-between py-space-01 ps-space-02", children: [
132
- /* @__PURE__ */ e("span", { className: "text-body-01 font-semibold", children: a }),
133
- /* @__PURE__ */ n("div", { className: "flex items-center gap-space-01", children: [
134
- t && !!(o != null && o.length) && /* @__PURE__ */ e("span", { className: "flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground", children: ce(o.length) }),
135
- !t && !!o && /* @__PURE__ */ e("span", { className: "flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground", children: "01" }),
136
- /* @__PURE__ */ e(g, { variant: "text", type: "button", size: "icon-sm", colors: "gray", "aria-label": "Toggle filter options", children: /* @__PURE__ */ e(v, { className: "transition-transform duration-300 group-data-[state=closed]:rotate-180" }) })
126
+ }, me = S.memo(
127
+ ({ multi: t, data: r, placeholder: o, disabled: i, isLoading: a, rounded: x, size: h, name: s, defaultOpen: d, renderItem: n }) => {
128
+ const { value: l, upsert: u } = G(), f = j("(max-width: 768px)"), { dir: y } = z();
129
+ let p;
130
+ return t ? p = Array.isArray(l == null ? void 0 : l[s]) ? l == null ? void 0 : l[s] : [] : p = typeof (l == null ? void 0 : l[s]) == "string" ? l == null ? void 0 : l[s] : void 0, f ? /* @__PURE__ */ m(k, { dir: y, defaultOpen: d, className: "border-b border-border-primary px-space-03 py-space-02", children: [
131
+ /* @__PURE__ */ m(M, { id: "subcategoriesCollapsible", className: "flex w-full items-center justify-between py-space-01 ps-space-02", children: [
132
+ /* @__PURE__ */ e("span", { className: "text-body-01 font-semibold", children: o }),
133
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-space-01", children: [
134
+ t && !!(p != null && p.length) && /* @__PURE__ */ e("span", { className: "flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground", children: ce(p.length) }),
135
+ !t && !!p && /* @__PURE__ */ e("span", { className: "flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground", children: "01" }),
136
+ /* @__PURE__ */ e(N, { variant: "text", type: "button", size: "icon-sm", colors: "gray", "aria-label": "Toggle filter options", children: /* @__PURE__ */ e(A, { className: "transition-transform duration-300 group-data-[state=closed]:rotate-180" }) })
137
137
  ] })
138
138
  ] }),
139
- /* @__PURE__ */ e(M, { children: t ? /* @__PURE__ */ e($, { data: r, name: l, multi: t }) : /* @__PURE__ */ e(
139
+ /* @__PURE__ */ e(v, { children: t ? /* @__PURE__ */ e($, { data: r, name: s, multi: t, renderItem: n }) : /* @__PURE__ */ e(
140
140
  D,
141
141
  {
142
- name: l,
142
+ name: s,
143
143
  size: "sm",
144
- dir: u,
145
- value: o,
146
- onValueChange: (x) => d({ name: l, selectedValue: x }),
147
- children: /* @__PURE__ */ e($, { data: r, name: l, multi: t })
144
+ dir: y,
145
+ value: p,
146
+ onValueChange: (c) => u({ name: s, selectedValue: c }),
147
+ children: /* @__PURE__ */ e($, { data: r, name: s, multi: t, renderItem: n })
148
148
  }
149
149
  ) })
150
150
  ] }) : t ? /* @__PURE__ */ e(
151
- P,
151
+ Q,
152
152
  {
153
153
  options: r || [],
154
- onChange: (x) => d({ name: l, selectedValue: x }),
155
- selectedValues: o || [],
156
- dataTestId: `multiSelect-${l}`,
157
- placeholder: a,
158
- disabled: s,
159
- rounded: m,
160
- size: f,
154
+ onChange: (c) => u({ name: s, selectedValue: c }),
155
+ selectedValues: p || [],
156
+ dataTestId: `multiSelect-${s}`,
157
+ placeholder: o,
158
+ disabled: i,
159
+ rounded: x,
160
+ size: h,
161
161
  className: "!w-max"
162
162
  },
163
- l
163
+ s
164
164
  ) : /* @__PURE__ */ e(
165
- Q,
165
+ q,
166
166
  {
167
167
  className: "!w-max",
168
- rounded: m,
168
+ rounded: x,
169
169
  options: r || [],
170
170
  optionLabel: "label",
171
171
  optionValue: "value",
172
- renderItem: p,
173
- placeholder: a,
174
- onChange: (x) => d({ name: l, selectedValue: x }),
175
- value: (i == null ? void 0 : i[l]) || "",
176
- size: f,
177
- disabled: s,
178
- isLoading: h
172
+ renderItem: n,
173
+ placeholder: o,
174
+ onChange: (c) => u({ name: s, selectedValue: c }),
175
+ value: (l == null ? void 0 : l[s]) || "",
176
+ size: h,
177
+ disabled: i,
178
+ isLoading: a
179
179
  },
180
- `${l}-${o || "empty"}`
180
+ `${s}-${p || "empty"}`
181
181
  );
182
182
  }
183
183
  );
184
184
  me.displayName = "FilterSelect";
185
- const he = w.forwardRef(
185
+ const he = S.forwardRef(
186
186
  ({
187
187
  children: t,
188
188
  onValueChange: r,
189
- onValueReset: a,
190
- label: s,
191
- resetButtonProps: h,
192
- filterButtonProps: m,
193
- filterIcon: f,
194
- resetButtonLabel: l,
195
- className: c,
196
- value: p,
197
- ...i
198
- }, d) => {
199
- const b = j("(max-width: 768px)"), u = A(
200
- ({ name: N, selectedValue: G }) => {
201
- const E = { ...p || {}, [N]: G };
189
+ onValueReset: o,
190
+ label: i,
191
+ resetButtonProps: a,
192
+ filterButtonProps: x,
193
+ filterIcon: h,
194
+ resetButtonLabel: s,
195
+ className: d,
196
+ value: n,
197
+ ...l
198
+ }, u) => {
199
+ const f = j("(max-width: 768px)"), y = L(
200
+ ({ name: g, selectedValue: C }) => {
201
+ const E = { ...n || {}, [g]: C };
202
202
  r == null || r(E);
203
203
  },
204
- [p, r]
205
- ), o = A(() => {
206
- a == null || a();
207
- }, [a]), x = C(
204
+ [n, r]
205
+ ), p = L(() => {
206
+ o == null || o();
207
+ }, [o]), c = F(
208
208
  () => ({
209
- value: p,
210
- upsert: u,
211
- reset: o
209
+ value: n,
210
+ upsert: y,
211
+ reset: p
212
212
  }),
213
- [p, u, o]
214
- ), S = C(
215
- () => p && Object.values(p).some((N) => Array.isArray(N) ? N.length > 0 : !!N),
216
- [p]
213
+ [n, y, p]
214
+ ), w = F(
215
+ () => n && Object.values(n).some((g) => Array.isArray(g) ? g.length > 0 : !!g),
216
+ [n]
217
217
  );
218
- return /* @__PURE__ */ e("div", { ref: d, className: z("flex", c), ...i, children: /* @__PURE__ */ e(T.Provider, { value: x, children: b ? /* @__PURE__ */ e(
218
+ return /* @__PURE__ */ e("div", { ref: u, className: T("flex", d), ...l, children: /* @__PURE__ */ e(B.Provider, { value: c, children: f ? /* @__PURE__ */ e(
219
219
  de,
220
220
  {
221
- filterButtonProps: m,
222
- resetFilters: o,
223
- onClickFilter: () => r == null ? void 0 : r(p),
224
- label: s,
225
- filterIcon: f,
221
+ filterButtonProps: x,
222
+ resetFilters: p,
223
+ onClickFilter: () => r == null ? void 0 : r(n),
224
+ label: i,
225
+ filterIcon: h,
226
226
  children: t
227
227
  }
228
- ) : /* @__PURE__ */ n(O, { children: [
228
+ ) : /* @__PURE__ */ m(O, { children: [
229
229
  t,
230
- S && /* @__PURE__ */ n(
231
- g,
230
+ w && /* @__PURE__ */ m(
231
+ N,
232
232
  {
233
233
  colors: "neutral",
234
234
  rounded: "default",
235
235
  variant: "text",
236
236
  size: "sm",
237
- onClick: o,
237
+ onClick: p,
238
238
  className: "ms-auto",
239
- ...h,
239
+ ...a,
240
240
  children: [
241
- l || y.Shared.reset,
242
- /* @__PURE__ */ e(q, { className: "ms-space-01" })
241
+ s || b.Shared.reset,
242
+ /* @__PURE__ */ e(J, { className: "ms-space-01" })
243
243
  ]
244
244
  }
245
245
  )
package/index.es470.js CHANGED
@@ -1,6 +1,13 @@
1
- function r(e, t, f) {
2
- return typeof e == "function" ? e(t, f) : e;
1
+ import a from "./index.es471.js";
2
+ function f(t, n, e) {
3
+ return t === void 0 || a(t) ? n : {
4
+ ...n,
5
+ ownerState: {
6
+ ...n.ownerState,
7
+ ...e
8
+ }
9
+ };
3
10
  }
4
11
  export {
5
- r as default
12
+ f as default
6
13
  };
package/index.es471.js CHANGED
@@ -1,48 +1,6 @@
1
- import { clsx as v } from "./index.es133.js";
2
- import k from "./index.es475.js";
3
- import H from "./index.es502.js";
4
- function W(j) {
5
- const {
6
- getSlotProps: y,
7
- additionalProps: e,
8
- externalSlotProps: s,
9
- externalForwardedProps: c,
10
- className: n
11
- } = j;
12
- if (!y) {
13
- const h = v(e == null ? void 0 : e.className, n, c == null ? void 0 : c.className, s == null ? void 0 : s.className), u = {
14
- ...e == null ? void 0 : e.style,
15
- ...c == null ? void 0 : c.style,
16
- ...s == null ? void 0 : s.style
17
- }, f = {
18
- ...e,
19
- ...c,
20
- ...s
21
- };
22
- return h.length > 0 && (f.className = h), Object.keys(u).length > 0 && (f.style = u), {
23
- props: f,
24
- internalRef: void 0
25
- };
26
- }
27
- const l = k({
28
- ...c,
29
- ...s
30
- }), E = H(s), b = H(c), m = y(l), N = v(m == null ? void 0 : m.className, e == null ? void 0 : e.className, n, c == null ? void 0 : c.className, s == null ? void 0 : s.className), g = {
31
- ...m == null ? void 0 : m.style,
32
- ...e == null ? void 0 : e.style,
33
- ...c == null ? void 0 : c.style,
34
- ...s == null ? void 0 : s.style
35
- }, t = {
36
- ...m,
37
- ...e,
38
- ...b,
39
- ...E
40
- };
41
- return N.length > 0 && (t.className = N), Object.keys(g).length > 0 && (t.style = g), {
42
- props: t,
43
- internalRef: m.ref
44
- };
1
+ function n(t) {
2
+ return typeof t == "string";
45
3
  }
46
4
  export {
47
- W as default
5
+ n as default
48
6
  };
package/index.es472.js CHANGED
@@ -1,27 +1,11 @@
1
- import * as e from "react";
2
- function i(...t) {
3
- const r = e.useRef(void 0), o = e.useCallback((u) => {
4
- const f = t.map((n) => {
5
- if (n == null)
6
- return null;
7
- if (typeof n == "function") {
8
- const c = n, l = c(u);
9
- return typeof l == "function" ? l : () => {
10
- c(null);
11
- };
12
- }
13
- return n.current = u, () => {
14
- n.current = null;
15
- };
16
- });
17
- return () => {
18
- f.forEach((n) => n == null ? void 0 : n());
19
- };
20
- }, t);
21
- return e.useMemo(() => t.every((u) => u == null) ? null : (u) => {
22
- r.current && (r.current(), r.current = void 0), u != null && (r.current = o(u));
23
- }, t);
1
+ function u(e, f = []) {
2
+ if (e === void 0)
3
+ return {};
4
+ const t = {};
5
+ return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !f.includes(n)).forEach((n) => {
6
+ t[n] = e[n];
7
+ }), t;
24
8
  }
25
9
  export {
26
- i as default
10
+ u as default
27
11
  };
package/index.es473.js CHANGED
@@ -1,13 +1,8 @@
1
- import a from "./index.es474.js";
2
- function f(t, n, e) {
3
- return t === void 0 || a(t) ? n : {
4
- ...n,
5
- ownerState: {
6
- ...n.ownerState,
7
- ...e
8
- }
9
- };
1
+ function e(o, r) {
2
+ return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
3
+ return t.__proto__ = n, t;
4
+ }, e(o, r);
10
5
  }
11
6
  export {
12
- f as default
7
+ e as default
13
8
  };
package/index.es474.js CHANGED
@@ -1,6 +1,6 @@
1
- function n(t) {
2
- return typeof t == "string";
1
+ function i(s, a) {
2
+ return s.classList ? !!a && s.classList.contains(a) : (" " + (s.className.baseVal || s.className) + " ").indexOf(" " + a + " ") !== -1;
3
3
  }
4
4
  export {
5
- n as default
5
+ i as default
6
6
  };
package/index.es475.js CHANGED
@@ -1,11 +1,6 @@
1
- function u(e, f = []) {
2
- if (e === void 0)
3
- return {};
4
- const t = {};
5
- return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !f.includes(n)).forEach((n) => {
6
- t[n] = e[n];
7
- }), t;
1
+ function r(e, t, f) {
2
+ return typeof e == "function" ? e(t, f) : e;
8
3
  }
9
4
  export {
10
- u as default
5
+ r as default
11
6
  };
package/index.es476.js CHANGED
@@ -1,8 +1,48 @@
1
- function e(o, r) {
2
- return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
3
- return t.__proto__ = n, t;
4
- }, e(o, r);
1
+ import { clsx as v } from "./index.es133.js";
2
+ import k from "./index.es472.js";
3
+ import H from "./index.es502.js";
4
+ function W(j) {
5
+ const {
6
+ getSlotProps: y,
7
+ additionalProps: e,
8
+ externalSlotProps: s,
9
+ externalForwardedProps: c,
10
+ className: n
11
+ } = j;
12
+ if (!y) {
13
+ const h = v(e == null ? void 0 : e.className, n, c == null ? void 0 : c.className, s == null ? void 0 : s.className), u = {
14
+ ...e == null ? void 0 : e.style,
15
+ ...c == null ? void 0 : c.style,
16
+ ...s == null ? void 0 : s.style
17
+ }, f = {
18
+ ...e,
19
+ ...c,
20
+ ...s
21
+ };
22
+ return h.length > 0 && (f.className = h), Object.keys(u).length > 0 && (f.style = u), {
23
+ props: f,
24
+ internalRef: void 0
25
+ };
26
+ }
27
+ const l = k({
28
+ ...c,
29
+ ...s
30
+ }), E = H(s), b = H(c), m = y(l), N = v(m == null ? void 0 : m.className, e == null ? void 0 : e.className, n, c == null ? void 0 : c.className, s == null ? void 0 : s.className), g = {
31
+ ...m == null ? void 0 : m.style,
32
+ ...e == null ? void 0 : e.style,
33
+ ...c == null ? void 0 : c.style,
34
+ ...s == null ? void 0 : s.style
35
+ }, t = {
36
+ ...m,
37
+ ...e,
38
+ ...b,
39
+ ...E
40
+ };
41
+ return N.length > 0 && (t.className = N), Object.keys(g).length > 0 && (t.style = g), {
42
+ props: t,
43
+ internalRef: m.ref
44
+ };
5
45
  }
6
46
  export {
7
- e as default
47
+ W as default
8
48
  };