mada-design-system 0.5.8 → 0.5.10

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 (290) hide show
  1. package/index.cjs121.js +1 -1
  2. package/index.cjs122.js +1 -1
  3. package/index.cjs123.js +1 -1
  4. package/index.cjs124.js +1 -1
  5. package/index.cjs128.js +1 -1
  6. package/index.cjs177.js +1 -1
  7. package/index.cjs183.js +1 -1
  8. package/index.cjs192.js +1 -1
  9. package/index.cjs195.js +1 -1
  10. package/index.cjs196.js +1 -1
  11. package/index.cjs199.js +1 -1
  12. package/index.cjs200.js +1 -1
  13. package/index.cjs202.js +1 -1
  14. package/index.cjs213.js +1 -1
  15. package/index.cjs214.js +1 -1
  16. package/index.cjs215.js +1 -1
  17. package/index.cjs216.js +1 -1
  18. package/index.cjs217.js +1 -1
  19. package/index.cjs228.js +1 -1
  20. package/index.cjs229.js +1 -1
  21. package/index.cjs231.js +1 -1
  22. package/index.cjs235.js +1 -1
  23. package/index.cjs236.js +1 -1
  24. package/index.cjs237.js +1 -1
  25. package/index.cjs238.js +1 -1
  26. package/index.cjs239.js +1 -1
  27. package/index.cjs240.js +1 -1
  28. package/index.cjs241.js +1 -1
  29. package/index.cjs242.js +1 -1
  30. package/index.cjs243.js +1 -1
  31. package/index.cjs244.js +1 -1
  32. package/index.cjs252.js +1 -1
  33. package/index.cjs254.js +1 -1
  34. package/index.cjs255.js +1 -1
  35. package/index.cjs256.js +1 -1
  36. package/index.cjs257.js +1 -1
  37. package/index.cjs259.js +1 -1
  38. package/index.cjs263.js +1 -1
  39. package/index.cjs264.js +1 -1
  40. package/index.cjs272.js +1 -1
  41. package/index.cjs273.js +1 -1
  42. package/index.cjs279.js +1 -1
  43. package/index.cjs280.js +1 -1
  44. package/index.cjs281.js +1 -1
  45. package/index.cjs282.js +1 -1
  46. package/index.cjs284.js +1 -1
  47. package/index.cjs287.js +1 -1
  48. package/index.cjs288.js +1 -1
  49. package/index.cjs289.js +1 -1
  50. package/index.cjs290.js +1 -1
  51. package/index.cjs292.js +1 -1
  52. package/index.cjs294.js +1 -1
  53. package/index.cjs296.js +1 -1
  54. package/index.cjs297.js +1 -1
  55. package/index.cjs298.js +1 -1
  56. package/index.cjs299.js +1 -1
  57. package/index.cjs300.js +1 -1
  58. package/index.cjs301.js +1 -1
  59. package/index.cjs302.js +1 -1
  60. package/index.cjs303.js +1 -1
  61. package/index.cjs304.js +1 -1
  62. package/index.cjs307.js +1 -1
  63. package/index.cjs316.js +1 -1
  64. package/index.cjs322.js +1 -1
  65. package/index.cjs323.js +1 -1
  66. package/index.cjs324.js +1 -1
  67. package/index.cjs325.js +1 -1
  68. package/index.cjs326.js +1 -1
  69. package/index.cjs327.js +1 -1
  70. package/index.cjs328.js +1 -1
  71. package/index.cjs329.js +1 -1
  72. package/index.cjs330.js +1 -1
  73. package/index.cjs331.js +1 -1
  74. package/index.cjs332.js +1 -1
  75. package/index.cjs333.js +1 -1
  76. package/index.cjs334.js +1 -1
  77. package/index.cjs335.js +1 -1
  78. package/index.cjs336.js +1 -1
  79. package/index.cjs337.js +1 -1
  80. package/index.cjs338.js +1 -1
  81. package/index.cjs339.js +1 -1
  82. package/index.cjs340.js +1 -1
  83. package/index.cjs341.js +1 -1
  84. package/index.cjs342.js +1 -1
  85. package/index.cjs343.js +1 -1
  86. package/index.cjs344.js +1 -1
  87. package/index.cjs345.js +1 -1
  88. package/index.cjs346.js +1 -1
  89. package/index.cjs347.js +1 -1
  90. package/index.cjs348.js +1 -1
  91. package/index.cjs349.js +1 -1
  92. package/index.cjs350.js +1 -1
  93. package/index.cjs351.js +1 -1
  94. package/index.cjs352.js +1 -1
  95. package/index.cjs353.js +1 -1
  96. package/index.cjs354.js +1 -1
  97. package/index.cjs355.js +1 -1
  98. package/index.cjs356.js +1 -1
  99. package/index.cjs357.js +1 -1
  100. package/index.cjs358.js +1 -1
  101. package/index.cjs359.js +1 -1
  102. package/index.cjs360.js +1 -1
  103. package/index.cjs371.js +1 -1
  104. package/index.cjs372.js +1 -1
  105. package/index.cjs373.js +1 -1
  106. package/index.cjs374.js +1 -1
  107. package/index.cjs377.js +1 -1
  108. package/index.cjs386.js +1 -1
  109. package/index.cjs387.js +1 -1
  110. package/index.cjs388.js +1 -1
  111. package/index.cjs389.js +1 -1
  112. package/index.cjs390.js +1 -1
  113. package/index.cjs391.js +1 -1
  114. package/index.cjs392.js +2 -1
  115. package/index.cjs393.js +1 -1
  116. package/index.cjs394.js +1 -1
  117. package/index.cjs395.js +1 -2
  118. package/index.cjs396.js +1 -1
  119. package/index.cjs397.js +1 -1
  120. package/index.cjs398.js +1 -1
  121. package/index.cjs399.js +1 -1
  122. package/index.cjs4.js +1 -1
  123. package/index.cjs400.js +1 -1
  124. package/index.cjs401.js +1 -1
  125. package/index.cjs404.js +1 -1
  126. package/index.cjs405.js +1 -1
  127. package/index.cjs408.js +1 -1
  128. package/index.cjs410.js +1 -1
  129. package/index.cjs414.js +1 -1
  130. package/index.cjs415.js +1 -1
  131. package/index.cjs416.js +1 -1
  132. package/index.cjs417.js +1 -1
  133. package/index.cjs418.js +1 -1
  134. package/index.cjs419.js +1 -1
  135. package/index.cjs420.js +1 -1
  136. package/index.cjs421.js +1 -1
  137. package/index.cjs422.js +1 -1
  138. package/index.cjs423.js +1 -1
  139. package/index.cjs424.js +1 -1
  140. package/index.cjs425.js +1 -1
  141. package/index.cjs426.js +1 -1
  142. package/index.cjs427.js +1 -1
  143. package/index.cjs46.js +1 -1
  144. package/index.cjs9.js +1 -1
  145. package/index.es.d.ts +10 -6
  146. package/index.es121.js +1 -1
  147. package/index.es122.js +1 -1
  148. package/index.es123.js +1 -1
  149. package/index.es124.js +1 -1
  150. package/index.es128.js +1 -1
  151. package/index.es177.js +3 -3
  152. package/index.es183.js +1 -1
  153. package/index.es192.js +2 -2
  154. package/index.es195.js +37 -9
  155. package/index.es196.js +9 -37
  156. package/index.es199.js +1 -1
  157. package/index.es200.js +1 -1
  158. package/index.es202.js +1 -1
  159. package/index.es213.js +1 -1
  160. package/index.es214.js +4 -4
  161. package/index.es215.js +1 -1
  162. package/index.es216.js +1 -1
  163. package/index.es217.js +3 -3
  164. package/index.es228.js +2 -2
  165. package/index.es229.js +3 -3
  166. package/index.es231.js +1 -1
  167. package/index.es235.js +12 -3
  168. package/index.es236.js +25 -2
  169. package/index.es237.js +10 -12
  170. package/index.es238.js +38 -24
  171. package/index.es239.js +1997 -8
  172. package/index.es240.js +6 -38
  173. package/index.es241.js +71 -1999
  174. package/index.es242.js +24 -6
  175. package/index.es243.js +3 -71
  176. package/index.es244.js +2 -25
  177. package/index.es252.js +1 -1
  178. package/index.es254.js +3 -3
  179. package/index.es255.js +4 -4
  180. package/index.es256.js +2 -2
  181. package/index.es257.js +4 -4
  182. package/index.es259.js +2 -2
  183. package/index.es263.js +4 -4
  184. package/index.es264.js +1 -1
  185. package/index.es272.js +1 -1
  186. package/index.es273.js +1 -1
  187. package/index.es279.js +1 -1
  188. package/index.es280.js +1 -1
  189. package/index.es281.js +9 -9
  190. package/index.es282.js +1 -1
  191. package/index.es284.js +1 -1
  192. package/index.es287.js +5 -5
  193. package/index.es288.js +1 -1
  194. package/index.es289.js +5 -5
  195. package/index.es290.js +4 -4
  196. package/index.es292.js +1 -1
  197. package/index.es294.js +4 -4
  198. package/index.es296.js +1 -1
  199. package/index.es297.js +8 -120
  200. package/index.es298.js +351 -7
  201. package/index.es299.js +3 -8
  202. package/index.es300.js +206 -8
  203. package/index.es301.js +107 -338
  204. package/index.es302.js +7 -3
  205. package/index.es303.js +8 -206
  206. package/index.es304.js +1 -1
  207. package/index.es307.js +1 -1
  208. package/index.es316.js +1 -1
  209. package/index.es322.js +2 -6
  210. package/index.es323.js +2 -24
  211. package/index.es324.js +12 -20
  212. package/index.es325.js +143 -32
  213. package/index.es326.js +43 -6
  214. package/index.es327.js +2 -2
  215. package/index.es328.js +40 -6
  216. package/index.es329.js +7 -18
  217. package/index.es330.js +69 -60
  218. package/index.es331.js +54 -15
  219. package/index.es332.js +7 -3
  220. package/index.es333.js +76 -2
  221. package/index.es334.js +24 -2
  222. package/index.es335.js +60 -11
  223. package/index.es336.js +5 -143
  224. package/index.es337.js +6 -42
  225. package/index.es338.js +32 -3
  226. package/index.es339.js +57 -39
  227. package/index.es340.js +12 -7
  228. package/index.es341.js +4 -76
  229. package/index.es342.js +8 -53
  230. package/index.es343.js +55 -8
  231. package/index.es344.js +4 -76
  232. package/index.es345.js +5 -24
  233. package/index.es346.js +17 -62
  234. package/index.es347.js +17 -5
  235. package/index.es348.js +17 -59
  236. package/index.es349.js +17 -13
  237. package/index.es350.js +17 -4
  238. package/index.es351.js +17 -10
  239. package/index.es352.js +17 -55
  240. package/index.es353.js +6 -5
  241. package/index.es354.js +24 -17
  242. package/index.es355.js +21 -17
  243. package/index.es356.js +6 -17
  244. package/index.es357.js +3 -17
  245. package/index.es358.js +67 -17
  246. package/index.es359.js +19 -17
  247. package/index.es360.js +16 -17
  248. package/index.es371.js +6 -15
  249. package/index.es372.js +29 -6
  250. package/index.es373.js +14 -28
  251. package/index.es374.js +1 -1
  252. package/index.es377.js +1 -1
  253. package/index.es386.js +11 -2
  254. package/index.es387.js +3 -66
  255. package/index.es388.js +8 -65
  256. package/index.es389.js +3 -8
  257. package/index.es390.js +45 -3
  258. package/index.es391.js +23 -44
  259. package/index.es392.js +76 -23
  260. package/index.es393.js +256 -8
  261. package/index.es394.js +31 -3
  262. package/index.es395.js +6 -78
  263. package/index.es396.js +120 -247
  264. package/index.es397.js +17 -34
  265. package/index.es398.js +7 -6
  266. package/index.es399.js +2 -132
  267. package/index.es4.js +61 -57
  268. package/index.es400.js +69 -17
  269. package/index.es401.js +65 -6
  270. package/index.es404.js +1 -1
  271. package/index.es405.js +2 -2
  272. package/index.es408.js +2 -2
  273. package/index.es410.js +1 -1
  274. package/index.es414.js +8 -2
  275. package/index.es415.js +7 -2
  276. package/index.es416.js +18 -247
  277. package/index.es417.js +51 -20
  278. package/index.es418.js +248 -50
  279. package/index.es419.js +42 -6
  280. package/index.es420.js +14 -41
  281. package/index.es421.js +10 -16
  282. package/index.es422.js +48 -10
  283. package/index.es423.js +25 -47
  284. package/index.es424.js +127 -24
  285. package/index.es425.js +102 -119
  286. package/index.es426.js +2 -112
  287. package/index.es427.js +2 -8
  288. package/index.es46.js +139 -137
  289. package/index.es9.js +1 -1
  290. package/package.json +1 -1
package/index.es426.js CHANGED
@@ -1,114 +1,4 @@
1
- import { COMMENT as B, DECLARATION as F, RULESET as G } from "./index.es422.js";
2
- import { strlen as E, append as L, charat as I, replace as M, indexof as H, sizeof as J, substr as O, abs as K, trim as P, from as q } from "./index.es423.js";
3
- import { dealloc as Q, alloc as V, next as R, peek as x, delimit as y, identifier as W, commenter as X, escaping as Y, whitespace as Z, node as D, char as _, prev as $, caret as z } from "./index.es425.js";
4
- function ca(e) {
5
- return Q(N("", null, null, null, [""], e = V(e), 0, [0], e));
6
- }
7
- function N(e, o, n, f, m, w, T, v, g) {
8
- for (var l = 0, d = 0, r = T, h = 0, u = 0, b = 0, s = 1, A = 1, i = 1, c = 0, k = "", C = m, p = w, t = f, a = k; A; )
9
- switch (b = c, c = R()) {
10
- case 40:
11
- if (b != 108 && I(a, r - 1) == 58) {
12
- H(a += M(y(c), "&", "&\f"), "&\f") != -1 && (i = -1);
13
- break;
14
- }
15
- case 34:
16
- case 39:
17
- case 91:
18
- a += y(c);
19
- break;
20
- case 9:
21
- case 10:
22
- case 13:
23
- case 32:
24
- a += Z(b);
25
- break;
26
- case 92:
27
- a += Y(z() - 1, 7);
28
- continue;
29
- case 47:
30
- switch (x()) {
31
- case 42:
32
- case 47:
33
- L(j(X(R(), z()), o, n), g);
34
- break;
35
- default:
36
- a += "/";
37
- }
38
- break;
39
- case 123 * s:
40
- v[l++] = E(a) * i;
41
- case 125 * s:
42
- case 59:
43
- case 0:
44
- switch (c) {
45
- case 0:
46
- case 125:
47
- A = 0;
48
- case 59 + d:
49
- i == -1 && (a = M(a, /\f/g, "")), u > 0 && E(a) - r && L(u > 32 ? U(a + ";", f, n, r - 1) : U(M(a, " ", "") + ";", f, n, r - 2), g);
50
- break;
51
- case 59:
52
- a += ";";
53
- default:
54
- if (L(t = S(a, o, n, l, d, m, v, k, C = [], p = [], r), w), c === 123)
55
- if (d === 0)
56
- N(a, o, t, t, C, w, r, v, p);
57
- else
58
- switch (h === 99 && I(a, 3) === 110 ? 100 : h) {
59
- case 100:
60
- case 108:
61
- case 109:
62
- case 115:
63
- N(e, t, t, f && L(S(e, t, t, 0, 0, m, v, k, m, C = [], r), p), m, p, r, v, f ? C : p);
64
- break;
65
- default:
66
- N(a, t, t, t, [""], p, 0, v, p);
67
- }
68
- }
69
- l = d = u = 0, s = i = 1, k = a = "", r = T;
70
- break;
71
- case 58:
72
- r = 1 + E(a), u = b;
73
- default:
74
- if (s < 1) {
75
- if (c == 123)
76
- --s;
77
- else if (c == 125 && s++ == 0 && $() == 125)
78
- continue;
79
- }
80
- switch (a += q(c), c * s) {
81
- case 38:
82
- i = d > 0 ? 1 : (a += "\f", -1);
83
- break;
84
- case 44:
85
- v[l++] = (E(a) - 1) * i, i = 1;
86
- break;
87
- case 64:
88
- x() === 45 && (a += y(R())), h = x(), d = r = E(k = a += W(z())), c++;
89
- break;
90
- case 45:
91
- b === 45 && E(a) == 2 && (s = 0);
92
- }
93
- }
94
- return w;
95
- }
96
- function S(e, o, n, f, m, w, T, v, g, l, d) {
97
- for (var r = m - 1, h = m === 0 ? w : [""], u = J(h), b = 0, s = 0, A = 0; b < f; ++b)
98
- for (var i = 0, c = O(e, r + 1, r = K(s = T[b])), k = e; i < u; ++i)
99
- (k = P(s > 0 ? h[i] + " " + c : M(c, /&\f/g, h[i]))) && (g[A++] = k);
100
- return D(e, o, n, m === 0 ? G : v, g, l, d);
101
- }
102
- function j(e, o, n) {
103
- return D(e, o, n, B, q(_()), O(e, 2, -2), 0);
104
- }
105
- function U(e, o, n, f) {
106
- return D(e, o, n, F, O(e, 0, f), O(e, f + 1, -1), f);
107
- }
1
+ var r = {};
108
2
  export {
109
- j as comment,
110
- ca as compile,
111
- U as declaration,
112
- N as parse,
113
- S as ruleset
3
+ r as __exports
114
4
  };
package/index.es427.js CHANGED
@@ -1,10 +1,4 @@
1
- import t from "./index.es419.js";
2
- var r = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, a = /* @__PURE__ */ t(
3
- function(e) {
4
- return r.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
5
- }
6
- /* Z+1 */
7
- );
1
+ var e = {};
8
2
  export {
9
- a as default
3
+ e as __exports
10
4
  };
package/index.es46.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsxs as n, jsx as t, Fragment as R } from "react/jsx-runtime";
2
- import L, { createContext as H, useState as z, useCallback as k, useMemo as M, useContext as _ } from "react";
1
+ import { jsxs as a, jsx as e, Fragment as H } from "react/jsx-runtime";
2
+ import L, { createContext as _, useState as z, useCallback as k, useMemo as M, useContext as D } from "react";
3
3
  import { useMediaQuery as B } from "./index.es103.js";
4
- import { strings as b } from "./index.es97.js";
4
+ import { strings as y } from "./index.es97.js";
5
5
  import "./index.es2.js";
6
6
  import { Collapsible as G, CollapsibleTrigger as A, CollapsibleContent as T } from "./index.es26.js";
7
7
  import { Button as N } from "./index.es22.js";
8
8
  import $ from "./index.es139.js";
9
- import { RadioGroup as D, RadioGroupItem as P } from "./index.es61.js";
9
+ import { RadioGroup as I, RadioGroupItem as P } from "./index.es61.js";
10
10
  import { MultiSelect as Q } from "./index.es10.js";
11
11
  import { ComboboxControlNoForm as V } from "./index.es7.js";
12
12
  import q from "./index.es140.js";
@@ -17,58 +17,58 @@ import { Checkbox as ce } from "./index.es25.js";
17
17
  import { Label as le } from "./index.es39.js";
18
18
  import ae from "./index.es89.js";
19
19
  import { cn as E } from "./index.es85.js";
20
- const I = H(null), O = () => {
21
- const r = _(I);
20
+ const O = _(null), R = () => {
21
+ const r = D(O);
22
22
  if (!r)
23
23
  throw new Error("useFilterContext must be used within a FilterGroup");
24
24
  return r;
25
- }, ne = (r) => r < 10 ? "0" + (r == null ? void 0 : r.toString()) : r == null ? void 0 : r.toString(), de = ({ label: r, value: s, isCkecked: a, onChange: o, name: p, multi: d }) => /* @__PURE__ */ n("div", { className: "flex w-full items-center gap-space-02 ", children: [
26
- d ? /* @__PURE__ */ t(
25
+ }, ne = (r) => r < 10 ? "0" + (r == null ? void 0 : r.toString()) : r == null ? void 0 : r.toString(), de = ({ label: r, value: s, isCkecked: l, onChange: o, name: h, multi: m }) => /* @__PURE__ */ a("div", { className: "flex w-full items-center gap-space-02 ", children: [
26
+ m ? /* @__PURE__ */ e(
27
27
  ce,
28
28
  {
29
- id: `${p}${s}`,
29
+ id: `${h}${s}`,
30
30
  value: s,
31
31
  size: "sm",
32
- onCheckedChange: (m) => o == null ? void 0 : o(typeof m == "boolean" ? m : !1, s),
33
- checked: a
32
+ onCheckedChange: (x) => o == null ? void 0 : o(typeof x == "boolean" ? x : !1, s),
33
+ checked: l
34
34
  }
35
- ) : /* @__PURE__ */ t(P, { id: `${p}${s}`, value: s.toString() }),
36
- /* @__PURE__ */ t(le, { htmlFor: r, className: "text-Body-01 flex grow gap-space-02", children: r })
37
- ] }), j = ({ data: r, name: s, multi: a }) => {
38
- var f, x;
39
- const { value: o, upsert: p } = O(), [d, m] = z(""), c = 5, g = (i) => {
40
- var u;
41
- const y = typeof (o == null ? void 0 : o[s]) == "object" && !!((u = o == null ? void 0 : o[s]) != null && u.find((l) => l === i.value));
42
- return /* @__PURE__ */ t(W, { className: "py-space-01", children: /* @__PURE__ */ t(
35
+ ) : /* @__PURE__ */ e(P, { id: `${h}${s}`, value: s.toString() }),
36
+ /* @__PURE__ */ e(le, { htmlFor: r, className: "text-Body-01 flex grow gap-space-02", children: r })
37
+ ] }), j = ({ data: r, name: s, multi: l }) => {
38
+ var t, f;
39
+ const { value: o, upsert: h } = R(), [m, x] = z(""), i = 5, w = (c) => {
40
+ var b;
41
+ const g = typeof (o == null ? void 0 : o[s]) == "object" && !!((b = o == null ? void 0 : o[s]) != null && b.find((d) => d === c.value));
42
+ return /* @__PURE__ */ e(W, { className: "py-space-01", children: /* @__PURE__ */ e(
43
43
  de,
44
44
  {
45
- multi: a,
45
+ multi: l,
46
46
  name: s,
47
- label: i.label,
48
- value: i.value,
49
- isCkecked: y,
50
- onChange: (l) => {
51
- const w = [...(o == null ? void 0 : o[s]) ?? []];
52
- if (l && w.push(i.value), !l) {
53
- const S = w.indexOf(i.value);
54
- w.splice(S, 1);
47
+ label: c.label,
48
+ value: c.value,
49
+ isCkecked: g,
50
+ onChange: (d) => {
51
+ const p = [...(o == null ? void 0 : o[s]) ?? []];
52
+ if (d && p.push(c.value), !d) {
53
+ const S = p.indexOf(c.value);
54
+ p.splice(S, 1);
55
55
  }
56
- p({ name: s, selectedValue: w });
56
+ h({ name: s, selectedValue: p });
57
57
  }
58
58
  }
59
- ) }, i.label);
60
- }, e = r.filter((i) => i.label.toLowerCase().includes(d.toLowerCase()));
61
- return /* @__PURE__ */ n(v, { shouldFilter: !1, className: "pt-space-03", children: [
62
- r.length > 9 && /* @__PURE__ */ t(J, { placeholder: b.Shared.Search, value: d, onValueChange: m }),
63
- /* @__PURE__ */ n(K, { className: "h-full max-h-max", children: [
64
- /* @__PURE__ */ t(U, { children: b.Shared.noResultsFound }),
65
- (f = e == null ? void 0 : e.slice(0, c)) == null ? void 0 : f.map(g),
66
- (e == null ? void 0 : e.length) > c && /* @__PURE__ */ n(G, { children: [
67
- /* @__PURE__ */ t(T, { children: (x = e == null ? void 0 : e.slice(c)) == null ? void 0 : x.map(g) }),
68
- /* @__PURE__ */ n(A, { className: "flex w-full items-center gap-space-01 py-space-01 pe-space-02 ps-space-03 text-body-01 text-primary", children: [
69
- /* @__PURE__ */ t("span", { className: "group-data-[state=closed]:hidden", children: b.Shared.showLess }),
70
- /* @__PURE__ */ t("span", { className: "group-data-[state=open]:hidden", children: b.Shared.showMore }),
71
- /* @__PURE__ */ t($, { size: 16, className: "transition-transform duration-300 group-data-[state=closed]:rotate-180" })
59
+ ) }, c.label);
60
+ }, n = r.filter((c) => c.label.toLowerCase().includes(m.toLowerCase()));
61
+ return /* @__PURE__ */ a(v, { shouldFilter: !1, className: "pt-space-03", children: [
62
+ r.length > 9 && /* @__PURE__ */ e(J, { placeholder: y.Shared.Search, value: m, onValueChange: x }),
63
+ /* @__PURE__ */ a(K, { className: "h-full max-h-max", children: [
64
+ /* @__PURE__ */ e(U, { children: y.Shared.noResultsFound }),
65
+ (t = n == null ? void 0 : n.slice(0, i)) == null ? void 0 : t.map(w),
66
+ (n == null ? void 0 : n.length) > i && /* @__PURE__ */ a(G, { children: [
67
+ /* @__PURE__ */ e(T, { children: (f = n == null ? void 0 : n.slice(i)) == null ? void 0 : f.map(w) }),
68
+ /* @__PURE__ */ a(A, { className: "flex w-full items-center gap-space-01 py-space-01 pe-space-02 ps-space-03 text-body-01 text-primary", children: [
69
+ /* @__PURE__ */ e("span", { className: "group-data-[state=closed]:hidden", children: y.Shared.showLess }),
70
+ /* @__PURE__ */ e("span", { className: "group-data-[state=open]:hidden", children: y.Shared.showMore }),
71
+ /* @__PURE__ */ e($, { size: 16, className: "transition-transform duration-300 group-data-[state=closed]:rotate-180" })
72
72
  ] })
73
73
  ] })
74
74
  ] })
@@ -76,12 +76,12 @@ const I = H(null), O = () => {
76
76
  }, pe = ({
77
77
  resetFilters: r,
78
78
  children: s,
79
- onClickFilter: a,
79
+ onClickFilter: l,
80
80
  label: o,
81
- filterButtonProps: p,
82
- filterIcon: d
83
- }) => /* @__PURE__ */ n(X, { children: [
84
- /* @__PURE__ */ t(Y, { asChild: !0, children: /* @__PURE__ */ n(
81
+ filterButtonProps: h,
82
+ filterIcon: m
83
+ }) => /* @__PURE__ */ a(X, { children: [
84
+ /* @__PURE__ */ e(Y, { asChild: !0, children: /* @__PURE__ */ a(
85
85
  N,
86
86
  {
87
87
  id: "mobileFilter",
@@ -89,125 +89,127 @@ const I = H(null), O = () => {
89
89
  className: E({
90
90
  "!px-space-02": !o
91
91
  }),
92
- ...p,
92
+ ...h,
93
93
  children: [
94
- d || /* @__PURE__ */ t(ie, {}),
95
- o && /* @__PURE__ */ t("span", { children: o })
94
+ m || /* @__PURE__ */ e(ie, {}),
95
+ o && /* @__PURE__ */ e("span", { children: o })
96
96
  ]
97
97
  }
98
98
  ) }),
99
- /* @__PURE__ */ n(Z, { side: "bottom", children: [
100
- /* @__PURE__ */ t(ee, { children: /* @__PURE__ */ t(te, { children: b.Shared.sortBy }) }),
101
- /* @__PURE__ */ t(re, { className: "px-space-00 py-space-02", children: s }),
102
- /* @__PURE__ */ n(se, { className: "flex-row gap-space-02 p-space-04", children: [
103
- /* @__PURE__ */ t(N, { id: "servicesRest", size: "sm", variant: "text", colors: "neutral", onClick: r, className: "grow", children: b.Shared.reset }),
104
- /* @__PURE__ */ t(oe, { asChild: !0, children: /* @__PURE__ */ t(N, { id: "servicesShowResults", size: "sm", colors: "primary", onClick: a, className: "grow", children: b.Shared.showResults }) })
99
+ /* @__PURE__ */ a(Z, { side: "bottom", children: [
100
+ /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(te, { children: y.Shared.sortBy }) }),
101
+ /* @__PURE__ */ e(re, { className: "px-space-00 py-space-02", children: s }),
102
+ /* @__PURE__ */ a(se, { className: "flex-row gap-space-02 p-space-04", children: [
103
+ /* @__PURE__ */ e(N, { id: "servicesRest", size: "sm", variant: "text", colors: "neutral", onClick: r, className: "grow", children: y.Shared.reset }),
104
+ /* @__PURE__ */ e(oe, { asChild: !0, children: /* @__PURE__ */ e(N, { id: "servicesShowResults", size: "sm", colors: "primary", onClick: l, className: "grow", children: y.Shared.showResults }) })
105
105
  ] })
106
106
  ] })
107
- ] }), me = L.memo(({ multi: r, data: s, placeholder: a, disabled: o, isLoading: p, rounded: d, size: m, name: c, defaultOpen: g }) => {
108
- var y, u;
109
- const { value: e, upsert: f } = O(), x = B("(max-width: 767px)"), { dir: i } = ae();
110
- return x ? /* @__PURE__ */ n(G, { dir: i, defaultOpen: g, className: "border-b border-border-primary px-space-03 py-space-02", children: [
111
- /* @__PURE__ */ n(A, { id: "subcategoriesCollapsible", className: " flex w-full items-center justify-between py-space-01 ps-space-02 ", children: [
112
- /* @__PURE__ */ t("span", { className: "text-body-01 font-semibold", children: a }),
113
- /* @__PURE__ */ n("div", { className: "flex items-center gap-space-01", children: [
114
- typeof (e == null ? void 0 : e[c]) == "object" && !!((y = e == null ? void 0 : e[c]) != null && y.length) && /* @__PURE__ */ t("span", { className: "flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground", children: ne(((u = e == null ? void 0 : e[c]) == null ? void 0 : u.length) || 0) }),
115
- typeof (e == null ? void 0 : e[c]) == "string" && !!(e != null && e[c]) && /* @__PURE__ */ t("span", { className: "flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground", children: "01" }),
116
- /* @__PURE__ */ t(N, { variant: "text", type: "button", size: "icon-sm", colors: "gray", children: /* @__PURE__ */ t($, { className: " transition-transform duration-300 group-data-[state=closed]:rotate-180" }) })
117
- ] })
118
- ] }),
119
- /* @__PURE__ */ t(T, { children: r ? /* @__PURE__ */ t(j, { data: s, name: c, multi: r }) : /* @__PURE__ */ t(
120
- D,
107
+ ] }), me = L.memo(
108
+ ({ multi: r, data: s, placeholder: l, disabled: o, isLoading: h, rounded: m, size: x, name: i, defaultOpen: w, renderItem: n }) => {
109
+ var b, d;
110
+ const { value: t, upsert: f } = R(), c = B("(max-width: 767px)"), { dir: g } = ae();
111
+ return c ? /* @__PURE__ */ a(G, { dir: g, defaultOpen: w, className: "border-b border-border-primary px-space-03 py-space-02", children: [
112
+ /* @__PURE__ */ a(A, { id: "subcategoriesCollapsible", className: " flex w-full items-center justify-between py-space-01 ps-space-02 ", children: [
113
+ /* @__PURE__ */ e("span", { className: "text-body-01 font-semibold", children: l }),
114
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-space-01", children: [
115
+ typeof (t == null ? void 0 : t[i]) == "object" && !!((b = t == null ? void 0 : t[i]) != null && b.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: ne(((d = t == null ? void 0 : t[i]) == null ? void 0 : d.length) || 0) }),
116
+ typeof (t == null ? void 0 : t[i]) == "string" && !!(t != null && t[i]) && /* @__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" }),
117
+ /* @__PURE__ */ e(N, { variant: "text", type: "button", size: "icon-sm", colors: "gray", children: /* @__PURE__ */ e($, { className: " transition-transform duration-300 group-data-[state=closed]:rotate-180" }) })
118
+ ] })
119
+ ] }),
120
+ /* @__PURE__ */ e(T, { children: r ? /* @__PURE__ */ e(j, { data: s, name: i, multi: r }) : /* @__PURE__ */ e(
121
+ I,
122
+ {
123
+ name: i,
124
+ size: "sm",
125
+ dir: g,
126
+ value: typeof (t == null ? void 0 : t[i]) == "string" ? t == null ? void 0 : t[i] : void 0,
127
+ onValueChange: (p) => f({ name: i, selectedValue: p }),
128
+ children: /* @__PURE__ */ e(j, { data: s, name: i, multi: r })
129
+ }
130
+ ) })
131
+ ] }) : r ? /* @__PURE__ */ e(
132
+ Q,
121
133
  {
122
- name: c,
123
- size: "sm",
124
- dir: i,
125
- value: typeof (e == null ? void 0 : e[c]) == "string" ? e == null ? void 0 : e[c] : void 0,
126
- onValueChange: (l) => f({ name: c, selectedValue: l }),
127
- children: /* @__PURE__ */ t(j, { data: s, name: c, multi: r })
134
+ options: s || [],
135
+ onChange: (p) => f({ name: i, selectedValue: p }),
136
+ selectedValues: (t == null ? void 0 : t[i]) || [],
137
+ dataTestId: "muliSelect",
138
+ placeholder: l,
139
+ disabled: o,
140
+ rounded: m,
141
+ size: x,
142
+ className: "!w-max"
128
143
  }
129
- ) })
130
- ] }) : r ? /* @__PURE__ */ t(
131
- Q,
132
- {
133
- options: s || [],
134
- onChange: (l) => f({ name: c, selectedValue: l }),
135
- selectedValues: (e == null ? void 0 : e[c]) || [],
136
- dataTestId: "muliSelect",
137
- placeholder: a,
138
- disabled: o,
139
- rounded: d,
140
- size: m,
141
- className: "!w-max"
142
- }
143
- ) : /* @__PURE__ */ t(
144
- V,
145
- {
146
- className: "!w-max",
147
- rounded: d,
148
- options: s || [],
149
- optionLabel: "label",
150
- optionValue: "value",
151
- renderItem: (l) => l == null ? void 0 : l.renderItem,
152
- placeholder: a,
153
- onChange: (l) => f({ name: c, selectedValue: l }),
154
- value: (e == null ? void 0 : e[c]) || "",
155
- size: m,
156
- disabled: o,
157
- isLoading: p
158
- }
159
- );
160
- });
144
+ ) : /* @__PURE__ */ e(
145
+ V,
146
+ {
147
+ className: "!w-max",
148
+ rounded: m,
149
+ options: s || [],
150
+ optionLabel: "label",
151
+ optionValue: "value",
152
+ renderItem: n,
153
+ placeholder: l,
154
+ onChange: (p) => f({ name: i, selectedValue: p }),
155
+ value: (t == null ? void 0 : t[i]) || "",
156
+ size: x,
157
+ disabled: o,
158
+ isLoading: h
159
+ }
160
+ );
161
+ }
162
+ );
161
163
  me.displayName = "FilterSelect";
162
164
  const he = L.forwardRef(
163
- ({ children: r, onValueChange: s, onValueReset: a, label: o, resetButtonProps: p, filterButtonProps: d, filterIcon: m, resetButtonLabel: c, className: g, ...e }, f) => {
164
- const x = B("(max-width: 767px)"), [i, y] = z(), u = k(
165
- ({ name: h, selectedValue: C }) => {
166
- const F = { ...i, [h]: C };
167
- y(F), x || s == null || s(F);
165
+ ({ children: r, onValueChange: s, onValueReset: l, label: o, resetButtonProps: h, filterButtonProps: m, filterIcon: x, resetButtonLabel: i, className: w, ...n }, t) => {
166
+ const f = B("(max-width: 767px)"), [c, g] = z(), b = k(
167
+ ({ name: u, selectedValue: C }) => {
168
+ const F = { ...c, [u]: C };
169
+ g(F), f || s == null || s(F);
168
170
  },
169
- [i, x, s]
170
- ), l = k(() => {
171
- const h = { ...i };
172
- for (const C in h)
173
- h[C] = "";
174
- y(h), a == null || a();
175
- }, [i, a]), w = M(
171
+ [c, f, s]
172
+ ), d = k(() => {
173
+ const u = { ...c };
174
+ for (const C in u)
175
+ u[C] = "";
176
+ g(u), l == null || l();
177
+ }, [c, l]), p = M(
176
178
  () => ({
177
- value: i,
178
- upsert: u,
179
- reset: l
179
+ value: c,
180
+ upsert: b,
181
+ reset: d
180
182
  }),
181
- [i, u, l]
183
+ [c, b, d]
182
184
  ), S = M(
183
- () => i && Object.values(i).some((h) => Array.isArray(h) ? h.length > 0 : !!h),
184
- [i]
185
+ () => c && Object.values(c).some((u) => Array.isArray(u) ? u.length > 0 : !!u),
186
+ [c]
185
187
  );
186
- return /* @__PURE__ */ t("div", { ref: f, className: E("flex", g), ...e, children: /* @__PURE__ */ t(I.Provider, { value: w, children: x ? /* @__PURE__ */ t(
188
+ return /* @__PURE__ */ e("div", { ref: t, className: E("flex", w), ...n, children: /* @__PURE__ */ e(O.Provider, { value: p, children: f ? /* @__PURE__ */ e(
187
189
  pe,
188
190
  {
189
- filterButtonProps: d,
190
- resetFilters: l,
191
- onClickFilter: () => s == null ? void 0 : s(i),
191
+ filterButtonProps: m,
192
+ resetFilters: d,
193
+ onClickFilter: () => s == null ? void 0 : s(c),
192
194
  label: o,
193
- filterIcon: m,
195
+ filterIcon: x,
194
196
  children: r
195
197
  }
196
- ) : /* @__PURE__ */ n(R, { children: [
198
+ ) : /* @__PURE__ */ a(H, { children: [
197
199
  r,
198
- S && /* @__PURE__ */ n(
200
+ S && /* @__PURE__ */ a(
199
201
  N,
200
202
  {
201
203
  colors: "neutral",
202
204
  rounded: "default",
203
205
  variant: "text",
204
206
  size: "sm",
205
- onClick: l,
207
+ onClick: d,
206
208
  className: "ms-auto",
207
- ...p,
209
+ ...h,
208
210
  children: [
209
- c || b.Shared.reset,
210
- /* @__PURE__ */ t(q, { className: "ms-space-01" })
211
+ i || y.Shared.reset,
212
+ /* @__PURE__ */ e(q, { className: "ms-space-01" })
211
213
  ]
212
214
  }
213
215
  )
package/index.es9.js CHANGED
@@ -77,7 +77,7 @@ function De({
77
77
  onDragEnd: F,
78
78
  onDragOver: R,
79
79
  children: [
80
- /* @__PURE__ */ r(U, { items: [...s.map((e) => e.alias), ...G], children: /* @__PURE__ */ r("div", { className: "grid grid-cols-1 items-center justify-center gap-space-05 px-space-04 pt-space-04 sm:grid-cols-2 sm:items-stretch sm:justify-stretch sm:px-space-06 xl:px-space-05", children: (() => {
80
+ /* @__PURE__ */ r(U, { items: [...s.map((e) => e.alias), ...G], children: /* @__PURE__ */ r("div", { className: "grid grid-cols-1 items-center justify-center gap-space-04 px-space-04 pt-space-04 sm:grid-cols-2 sm:items-stretch sm:justify-stretch sm:px-space-06 xl:px-space-04", children: (() => {
81
81
  let e = 0;
82
82
  const t = [], i = s.find((a) => a.alias === d);
83
83
  for (let a = 0; a < x.length; a++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mada-design-system",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "sideEffects": false,
5
5
  "private": false,
6
6
  "main": "index.es.js",