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.es208.js CHANGED
@@ -1,264 +1,19 @@
1
- import le from "./index.es187.js";
2
- import L from "./index.es186.js";
3
- import * as u from "react";
4
- import e from "./index.es188.js";
5
- import { clsx as ie } from "./index.es97.js";
6
- import { PickersMonth as ue } from "./index.es290.js";
7
- import { useNow as ce, useUtils as S, useDefaultDates as de } from "./index.es191.js";
8
- import { getMonthCalendarUtilityClass as me } from "./index.es291.js";
9
- import { getMonthsInYear as he, applyDefaultDate as z } from "./index.es195.js";
10
- import { singleItemValueManager as A } from "./index.es199.js";
11
- import { SECTION_TYPE_GRANULARITY as fe } from "./index.es233.js";
12
- import { useControlledValueWithTimezone as pe } from "./index.es198.js";
13
- import { DIALOG_WIDTH as be } from "./index.es200.js";
14
- import { jsx as E } from "react/jsx-runtime";
15
- import Me from "./index.es201.js";
16
- import De from "./index.es275.js";
17
- import ge from "./index.es241.js";
18
- import m from "./index.es206.js";
19
- import ye from "./index.es209.js";
20
- import Ce from "./index.es189.js";
21
- const we = ["className", "value", "defaultValue", "referenceDate", "disabled", "disableFuture", "disablePast", "maxDate", "minDate", "onChange", "shouldDisableMonth", "readOnly", "disableHighlightToday", "autoFocus", "onMonthFocus", "hasFocus", "onFocusedViewChange", "monthsPerRow", "timezone", "gridLabelId"], Ie = (h) => {
22
- const {
23
- classes: s
24
- } = h;
25
- return ye({
26
- root: ["root"]
27
- }, me, s);
28
- };
29
- function Fe(h, s) {
30
- const f = S(), r = de(), p = Ce({
31
- props: h,
32
- name: s
33
- });
34
- return L({
35
- disableFuture: !1,
36
- disablePast: !1
37
- }, p, {
38
- minDate: z(f, p.minDate, r.minDate),
39
- maxDate: z(f, p.maxDate, r.maxDate)
40
- });
41
- }
42
- const xe = Me("div", {
43
- name: "MuiMonthCalendar",
44
- slot: "Root",
45
- overridesResolver: (h, s) => s.root
46
- })({
47
- display: "flex",
48
- flexWrap: "wrap",
49
- alignContent: "stretch",
50
- padding: "0 4px",
51
- width: be,
52
- // avoid padding increasing width over defined
53
- boxSizing: "border-box"
54
- }), Pe = /* @__PURE__ */ u.forwardRef(function(s, f) {
55
- const r = Fe(s, "MuiMonthCalendar"), {
56
- className: p,
57
- value: _,
58
- defaultValue: H,
59
- referenceDate: j,
60
- disabled: U,
61
- disableFuture: w,
62
- disablePast: I,
63
- maxDate: D,
64
- minDate: g,
65
- onChange: B,
66
- shouldDisableMonth: y,
67
- readOnly: W,
68
- disableHighlightToday: F,
69
- autoFocus: x = !1,
70
- onMonthFocus: P,
71
- hasFocus: G,
72
- onFocusedViewChange: v,
73
- monthsPerRow: K = 3,
74
- timezone: q,
75
- gridLabelId: J
76
- } = r, Q = le(r, we), {
77
- value: a,
78
- handleValueChange: X,
79
- timezone: R
80
- } = pe({
81
- name: "MonthCalendar",
82
- timezone: q,
83
- value: _,
84
- defaultValue: H,
85
- onChange: B,
86
- valueManager: A
87
- }), l = ce(R), T = De(), t = S(), b = u.useMemo(
88
- () => A.getInitialReferenceValue({
89
- value: a,
90
- utils: t,
91
- props: r,
92
- timezone: R,
93
- referenceDate: j,
94
- granularity: fe.month
95
- }),
96
- []
97
- // eslint-disable-line react-hooks/exhaustive-deps
98
- ), O = r, Z = Ie(O), V = u.useMemo(() => t.getMonth(l), [t, l]), c = u.useMemo(() => a != null ? t.getMonth(a) : F ? null : t.getMonth(b), [a, t, F, b]), [C, Y] = u.useState(() => c || V), [$, ee] = ge({
99
- name: "MonthCalendar",
100
- state: "hasFocus",
101
- controlled: G,
102
- default: x ?? !1
103
- }), N = m((o) => {
104
- ee(o), v && v(o);
105
- }), k = u.useCallback((o) => {
106
- const n = t.startOfMonth(I && t.isAfter(l, g) ? l : g), i = t.startOfMonth(w && t.isBefore(l, D) ? l : D), d = t.startOfMonth(o);
107
- return t.isBefore(d, n) || t.isAfter(d, i) ? !0 : y ? y(d) : !1;
108
- }, [w, I, D, g, l, y, t]), oe = m((o, n) => {
109
- if (W)
110
- return;
111
- const i = t.setMonth(a ?? b, n);
112
- X(i);
113
- }), M = m((o) => {
114
- k(t.setMonth(a ?? b, o)) || (Y(o), N(!0), P && P(o));
115
- });
116
- u.useEffect(() => {
117
- Y((o) => c !== null && o !== c ? c : o);
118
- }, [c]);
119
- const te = m((o, n) => {
120
- switch (o.key) {
121
- case "ArrowUp":
122
- M((12 + n - 3) % 12), o.preventDefault();
123
- break;
124
- case "ArrowDown":
125
- M((12 + n + 3) % 12), o.preventDefault();
126
- break;
127
- case "ArrowLeft":
128
- M((12 + n + (T.direction === "ltr" ? -1 : 1)) % 12), o.preventDefault();
129
- break;
130
- case "ArrowRight":
131
- M((12 + n + (T.direction === "ltr" ? 1 : -1)) % 12), o.preventDefault();
132
- break;
1
+ function p(i, r, t = void 0) {
2
+ const e = {};
3
+ return Object.keys(i).forEach(
4
+ // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
5
+ // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
6
+ (f) => {
7
+ e[f] = i[f].reduce((n, u) => {
8
+ if (u) {
9
+ const o = r(u);
10
+ o !== "" && n.push(o), t && t[u] && n.push(t[u]);
11
+ }
12
+ return n;
13
+ }, []).join(" ");
133
14
  }
134
- }), ne = m((o, n) => {
135
- M(n);
136
- }), ae = m((o, n) => {
137
- C === n && N(!1);
138
- });
139
- return /* @__PURE__ */ E(xe, L({
140
- ref: f,
141
- className: ie(Z.root, p),
142
- ownerState: O,
143
- role: "radiogroup",
144
- "aria-labelledby": J
145
- }, Q, {
146
- children: he(t, a ?? b).map((o) => {
147
- const n = t.getMonth(o), i = t.format(o, "monthShort"), d = t.format(o, "month"), se = n === c, re = U || k(o);
148
- return /* @__PURE__ */ E(ue, {
149
- selected: se,
150
- value: n,
151
- onClick: oe,
152
- onKeyDown: te,
153
- autoFocus: $ && n === C,
154
- disabled: re,
155
- tabIndex: n === C ? 0 : -1,
156
- onFocus: ne,
157
- onBlur: ae,
158
- "aria-current": V === n ? "date" : void 0,
159
- "aria-label": d,
160
- monthsPerRow: K,
161
- children: i
162
- }, i);
163
- })
164
- }));
165
- });
166
- process.env.NODE_ENV !== "production" && (Pe.propTypes = {
167
- // ----------------------------- Warning --------------------------------
168
- // | These PropTypes are generated from the TypeScript type definitions |
169
- // | To update them edit the TypeScript types and run "yarn proptypes" |
170
- // ----------------------------------------------------------------------
171
- autoFocus: e.bool,
172
- /**
173
- * Override or extend the styles applied to the component.
174
- */
175
- classes: e.object,
176
- /**
177
- * className applied to the root element.
178
- */
179
- className: e.string,
180
- /**
181
- * The default selected value.
182
- * Used when the component is not controlled.
183
- */
184
- defaultValue: e.any,
185
- /**
186
- * If `true` picker is disabled
187
- */
188
- disabled: e.bool,
189
- /**
190
- * If `true`, disable values after the current date for date components, time for time components and both for date time components.
191
- * @default false
192
- */
193
- disableFuture: e.bool,
194
- /**
195
- * If `true`, today's date is rendering without highlighting with circle.
196
- * @default false
197
- */
198
- disableHighlightToday: e.bool,
199
- /**
200
- * If `true`, disable values before the current date for date components, time for time components and both for date time components.
201
- * @default false
202
- */
203
- disablePast: e.bool,
204
- gridLabelId: e.string,
205
- hasFocus: e.bool,
206
- /**
207
- * Maximal selectable date.
208
- */
209
- maxDate: e.any,
210
- /**
211
- * Minimal selectable date.
212
- */
213
- minDate: e.any,
214
- /**
215
- * Months rendered per row.
216
- * @default 3
217
- */
218
- monthsPerRow: e.oneOf([3, 4]),
219
- /**
220
- * Callback fired when the value changes.
221
- * @template TDate
222
- * @param {TDate} value The new value.
223
- */
224
- onChange: e.func,
225
- onFocusedViewChange: e.func,
226
- onMonthFocus: e.func,
227
- /**
228
- * If `true` picker is readonly
229
- */
230
- readOnly: e.bool,
231
- /**
232
- * The date used to generate the new value when both `value` and `defaultValue` are empty.
233
- * @default The closest valid month using the validation props, except callbacks such as `shouldDisableMonth`.
234
- */
235
- referenceDate: e.any,
236
- /**
237
- * Disable specific month.
238
- * @template TDate
239
- * @param {TDate} month The month to test.
240
- * @returns {boolean} If `true`, the month will be disabled.
241
- */
242
- shouldDisableMonth: e.func,
243
- /**
244
- * The system prop that allows defining system overrides as well as additional CSS styles.
245
- */
246
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
247
- /**
248
- * Choose which timezone to use for the value.
249
- * Example: "default", "system", "UTC", "America/New_York".
250
- * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
251
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
252
- * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
253
- */
254
- timezone: e.string,
255
- /**
256
- * The selected value.
257
- * Used when the component is controlled.
258
- */
259
- value: e.any
260
- });
15
+ ), e;
16
+ }
261
17
  export {
262
- Pe as MonthCalendar,
263
- Fe as useMonthCalendarDefaultizedProps
18
+ p as default
264
19
  };
package/index.es209.js CHANGED
@@ -1,19 +1,17 @@
1
- function p(i, r, t = void 0) {
2
- const e = {};
3
- return Object.keys(i).forEach(
4
- // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
5
- // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
6
- (f) => {
7
- e[f] = i[f].reduce((n, u) => {
8
- if (u) {
9
- const o = r(u);
10
- o !== "" && n.push(o), t && t[u] && n.push(t[u]);
11
- }
12
- return n;
13
- }, []).join(" ");
14
- }
15
- ), e;
1
+ import m from "./index.es275.js";
2
+ import o from "./index.es262.js";
3
+ import t from "./index.es277.js";
4
+ function s({
5
+ props: e,
6
+ name: r
7
+ }) {
8
+ return t({
9
+ props: e,
10
+ name: r,
11
+ defaultTheme: m,
12
+ themeId: o
13
+ });
16
14
  }
17
15
  export {
18
- p as default
16
+ s as default
19
17
  };
package/index.es21.js CHANGED
@@ -1,15 +1,16 @@
1
- import { jsx as e, jsxs as d, Fragment as u } from "react/jsx-runtime";
2
- import { Slot as B } from "@radix-ui/react-slot";
3
- import * as i from "react";
4
- import { useMediaQuery as x } from "./index.es98.js";
1
+ import { jsx as e, jsxs as l, Fragment as u } from "react/jsx-runtime";
2
+ import { Slot as x } from "@radix-ui/react-slot";
3
+ import * as o from "react";
4
+ import { useMediaQuery as B } from "./index.es98.js";
5
5
  import { cn as c } from "./index.es79.js";
6
6
  import { ShouldRender as m } from "./index.es14.js";
7
- import { DropdownMenu as w, DropdownMenuTrigger as y, DropdownMenuContent as R, DropdownMenuItem as M } from "./index.es30.js";
8
- import k from "./index.es109.js";
9
- import C from "./index.es111.js";
10
- const b = i.forwardRef(({ ...r }, a) => /* @__PURE__ */ e("nav", { ref: a, "aria-label": "breadcrumb", ...r }));
7
+ import { DropdownMenu as w, DropdownMenuTrigger as y, DropdownMenuContent as R, DropdownMenuItem as k } from "./index.es30.js";
8
+ import M from "./index.es109.js";
9
+ import v from "./index.es111.js";
10
+ import { Stack as C } from "./index.es40.js";
11
+ const b = o.forwardRef(({ ...r }, a) => /* @__PURE__ */ e("nav", { ref: a, "aria-label": "breadcrumb", ...r }));
11
12
  b.displayName = "Breadcrumb";
12
- const g = i.forwardRef(({ className: r, ...a }, n) => /* @__PURE__ */ e(
13
+ const g = o.forwardRef(({ className: r, ...a }, n) => /* @__PURE__ */ e(
13
14
  "ol",
14
15
  {
15
16
  ref: n,
@@ -18,11 +19,11 @@ const g = i.forwardRef(({ className: r, ...a }, n) => /* @__PURE__ */ e(
18
19
  }
19
20
  ));
20
21
  g.displayName = "BreadcrumbList";
21
- const o = i.forwardRef(({ className: r, ...a }, n) => /* @__PURE__ */ e("li", { ref: n, className: c("inline-flex items-center gap-space-02", r), ...a }));
22
- o.displayName = "BreadcrumbItem";
23
- const h = i.forwardRef(({ asChild: r, className: a, style: n, ...l }, t) => /* @__PURE__ */ e(r ? B : "a", { ref: t, className: c("transition-colors hover:text-link-neutral-hovered hover:underline", a), style: n, ...l }));
24
- h.displayName = "BreadcrumbLink";
25
- const f = i.forwardRef(({ className: r, ...a }, n) => /* @__PURE__ */ e(
22
+ const s = o.forwardRef(({ className: r, ...a }, n) => /* @__PURE__ */ e("li", { ref: n, className: c("inline-flex items-center gap-space-02", r), ...a }));
23
+ s.displayName = "BreadcrumbItem";
24
+ const p = o.forwardRef(({ asChild: r, className: a, style: n, ...d }, t) => /* @__PURE__ */ e(r ? x : "a", { ref: t, className: c("transition-colors hover:text-link-neutral-hovered hover:underline", a), style: n, ...d }));
25
+ p.displayName = "BreadcrumbLink";
26
+ const f = o.forwardRef(({ className: r, ...a }, n) => /* @__PURE__ */ e(
26
27
  "span",
27
28
  {
28
29
  ref: n,
@@ -34,49 +35,49 @@ const f = i.forwardRef(({ className: r, ...a }, n) => /* @__PURE__ */ e(
34
35
  }
35
36
  ));
36
37
  f.displayName = "BreadcrumbPage";
37
- const s = ({ children: r, className: a, ...n }) => /* @__PURE__ */ e("li", { role: "presentation", "aria-hidden": "true", className: c("[&>svg]:size-space-04", a), ...n, children: r ?? /* @__PURE__ */ e(k, { className: "text-icon-default-400 rtl:rotate-180" }) });
38
- s.displayName = "BreadcrumbSeparator";
39
- const N = ({ className: r, ...a }) => /* @__PURE__ */ d("span", { role: "presentation", "aria-hidden": "true", className: c("flex h-9 w-9 items-center justify-center text-link-neutral", r), ...a, children: [
40
- /* @__PURE__ */ e(C, { className: "h-space-04 w-space-04" }),
38
+ const i = ({ children: r, className: a, ...n }) => /* @__PURE__ */ e("li", { role: "presentation", "aria-hidden": "true", className: c("[&>svg]:size-space-04", a), ...n, children: r ?? /* @__PURE__ */ e(M, { className: "text-icon-default-400 rtl:rotate-180" }) });
39
+ i.displayName = "BreadcrumbSeparator";
40
+ const N = ({ className: r, ...a }) => /* @__PURE__ */ l("span", { role: "presentation", "aria-hidden": "true", className: c("flex h-9 w-9 items-center justify-center text-link-neutral", r), ...a, children: [
41
+ /* @__PURE__ */ e(v, { className: "h-space-04 w-space-04" }),
41
42
  /* @__PURE__ */ e("span", { className: "sr-only", children: "More" })
42
43
  ] });
43
44
  N.displayName = "BreadcrumbElipssis";
44
- const p = ({ item: r }) => /* @__PURE__ */ d(u, { children: [
45
- /* @__PURE__ */ e(m, { shouldRender: !!r.render, children: /* @__PURE__ */ e(h, { asChild: !0, children: r.render }) }),
46
- /* @__PURE__ */ e(m, { shouldRender: !r.render, children: /* @__PURE__ */ e(h, { href: r.path, children: r.title }) })
47
- ] }), v = ({ items: r, dir: a }) => {
48
- const n = x("(max-width: 768px)");
49
- return /* @__PURE__ */ e(b, { dir: a, children: /* @__PURE__ */ d(g, { children: [
50
- /* @__PURE__ */ e(m, { shouldRender: n, children: /* @__PURE__ */ d(u, { children: [
51
- /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(h, { asChild: !0, children: p({ item: r[0] }) }) }),
52
- r.length >= 2 && /* @__PURE__ */ e(s, {}),
53
- r.length > 2 && /* @__PURE__ */ d(u, { children: [
54
- /* @__PURE__ */ e(o, { children: /* @__PURE__ */ d(w, { dir: a, children: [
45
+ const h = ({ item: r }) => /* @__PURE__ */ l(u, { children: [
46
+ /* @__PURE__ */ e(m, { shouldRender: !!r.render, children: /* @__PURE__ */ e(p, { asChild: !0, children: r.render }) }),
47
+ /* @__PURE__ */ e(m, { shouldRender: !r.render, children: /* @__PURE__ */ e(p, { href: r.path, children: r.title }) })
48
+ ] }), S = ({ items: r, dir: a }) => {
49
+ const n = B("(max-width: 768px)");
50
+ return /* @__PURE__ */ e(b, { dir: a, children: /* @__PURE__ */ l(g, { children: [
51
+ /* @__PURE__ */ e(m, { shouldRender: n, children: /* @__PURE__ */ l(u, { children: [
52
+ /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(p, { asChild: !0, children: h({ item: r[0] }) }) }),
53
+ r.length >= 2 && /* @__PURE__ */ e(i, {}),
54
+ r.length > 2 && /* @__PURE__ */ l(u, { children: [
55
+ /* @__PURE__ */ e(s, { children: /* @__PURE__ */ l(w, { dir: a, children: [
55
56
  /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(N, {}) }),
56
- /* @__PURE__ */ e(R, { children: r.slice(1, -1).map((l, t) => /* @__PURE__ */ e(M, { asChild: !0, children: p({ item: l }) }, t)) })
57
+ /* @__PURE__ */ e(R, { className: "!rounded border-border-neutral-secondary !p-space-01 shadow-xl", children: /* @__PURE__ */ e(C, { gap: "none", direction: "col", children: r.slice(1, -1).map((d, t) => /* @__PURE__ */ e(k, { className: "ps-space-02 text-body-01 focus:bg-transparent", children: h({ item: d }) }, t)) }) })
57
58
  ] }) }),
58
- /* @__PURE__ */ e(s, {})
59
+ /* @__PURE__ */ e(i, {})
59
60
  ] }),
60
- /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(f, { children: r[r.length - 1].title }) })
61
+ /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(f, { children: r[r.length - 1].title }) })
61
62
  ] }) }),
62
63
  /* @__PURE__ */ e(m, {
63
64
  shouldRender: !n,
64
65
  // Desktop View: Render All Items
65
- children: r.map((l, t) => /* @__PURE__ */ d(i.Fragment, { children: [
66
- /* @__PURE__ */ e(o, { children: r.length - 1 !== t ? p({ item: l }) : /* @__PURE__ */ e(f, { children: l.title }) }),
67
- r.length - 1 !== t && /* @__PURE__ */ e(s, {})
68
- ] }, `${l.title}`))
66
+ children: r.map((d, t) => /* @__PURE__ */ l(o.Fragment, { children: [
67
+ /* @__PURE__ */ e(s, { children: r.length - 1 !== t ? h({ item: d }) : /* @__PURE__ */ e(f, { children: d.title }) }),
68
+ r.length - 1 !== t && /* @__PURE__ */ e(i, {})
69
+ ] }, `${d.title}`))
69
70
  })
70
71
  ] }) });
71
72
  };
72
- v.displayName = "Breadcrumbs";
73
+ S.displayName = "Breadcrumbs";
73
74
  export {
74
75
  b as Breadcrumb,
75
76
  N as BreadcrumbEllipsis,
76
- o as BreadcrumbItem,
77
- h as BreadcrumbLink,
77
+ s as BreadcrumbItem,
78
+ p as BreadcrumbLink,
78
79
  g as BreadcrumbList,
79
80
  f as BreadcrumbPage,
80
- s as BreadcrumbSeparator,
81
- v as Breadcrumbs
81
+ i as BreadcrumbSeparator,
82
+ S as Breadcrumbs
82
83
  };
package/index.es210.js CHANGED
@@ -1,4 +1,4 @@
1
- import s from "./index.es309.js";
1
+ import s from "./index.es308.js";
2
2
  const t = {
3
3
  active: "active",
4
4
  checked: "checked",
package/index.es218.js CHANGED
@@ -1,6 +1,15 @@
1
- function r(o) {
2
- throw new Error('Could not dynamically require "' + o + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1
+ function u() {
2
+ for (var e = 0, t, n, r = ""; e < arguments.length; )
3
+ (t = arguments[e++]) && (n = a(t)) && (r && (r += " "), r += n);
4
+ return r;
5
+ }
6
+ function a(e) {
7
+ if (typeof e == "string")
8
+ return e;
9
+ for (var t, n = "", r = 0; r < e.length; r++)
10
+ e[r] && (t = a(e[r])) && (n && (n += " "), n += t);
11
+ return n;
3
12
  }
4
13
  export {
5
- r as commonjsRequire
14
+ u as twJoin
6
15
  };
package/index.es219.js CHANGED
@@ -1,4 +1,27 @@
1
- var e = { exports: {} };
1
+ import { createConfigUtils as d } from "./index.es220.js";
2
+ import { mergeClassList as h } from "./index.es221.js";
3
+ import { twJoin as p } from "./index.es218.js";
4
+ function T() {
5
+ for (var c = arguments.length, a = new Array(c), e = 0; e < c; e++)
6
+ a[e] = arguments[e];
7
+ var t, o, u, f = g;
8
+ function g(r) {
9
+ var n = a[0], i = a.slice(1), m = i.reduce(function(v, s) {
10
+ return s(v);
11
+ }, n());
12
+ return t = d(m), o = t.cache.get, u = t.cache.set, f = l, l(r);
13
+ }
14
+ function l(r) {
15
+ var n = o(r);
16
+ if (n)
17
+ return n;
18
+ var i = h(r, t);
19
+ return u(r, i), i;
20
+ }
21
+ return function() {
22
+ return f(p.apply(null, arguments));
23
+ };
24
+ }
2
25
  export {
3
- e as __module
26
+ T as createTailwindMerge
4
27
  };
package/index.es220.js CHANGED
@@ -1,15 +1,13 @@
1
- function u() {
2
- for (var e = 0, t, n, r = ""; e < arguments.length; )
3
- (t = arguments[e++]) && (n = a(t)) && (r && (r += " "), r += n);
4
- return r;
5
- }
6
- function a(e) {
7
- if (typeof e == "string")
8
- return e;
9
- for (var t, n = "", r = 0; r < e.length; r++)
10
- e[r] && (t = a(e[r])) && (n && (n += " "), n += t);
11
- return n;
1
+ import { createClassUtils as r } from "./index.es251.js";
2
+ import { createLruCache as t } from "./index.es252.js";
3
+ import { createSplitModifiers as i } from "./index.es253.js";
4
+ function s(e) {
5
+ return {
6
+ cache: t(e.cacheSize),
7
+ splitModifiers: i(e),
8
+ ...r(e)
9
+ };
12
10
  }
13
11
  export {
14
- u as twJoin
12
+ s as createConfigUtils
15
13
  };
package/index.es221.js CHANGED
@@ -1,27 +1,41 @@
1
- import { createConfigUtils as d } from "./index.es222.js";
2
- import { mergeClassList as h } from "./index.es223.js";
3
- import { twJoin as p } from "./index.es220.js";
4
- function T() {
5
- for (var c = arguments.length, a = new Array(c), e = 0; e < c; e++)
6
- a[e] = arguments[e];
7
- var t, o, u, f = g;
8
- function g(r) {
9
- var n = a[0], i = a.slice(1), m = i.reduce(function(v, s) {
10
- return s(v);
11
- }, n());
12
- return t = d(m), o = t.cache.get, u = t.cache.set, f = l, l(r);
13
- }
14
- function l(r) {
15
- var n = o(r);
16
- if (n)
17
- return n;
18
- var i = h(r, t);
19
- return u(r, i), i;
20
- }
21
- return function() {
22
- return f(p.apply(null, arguments));
23
- };
1
+ import { sortModifiers as M, IMPORTANT_MODIFIER as c } from "./index.es253.js";
2
+ var v = /\s+/;
3
+ function P(I, t) {
4
+ var m = t.splitModifiers, d = t.getClassGroupId, p = t.getConflictingClassGroupIds, f = /* @__PURE__ */ new Set();
5
+ return I.trim().split(v).map(function(i) {
6
+ var s = m(i), e = s.modifiers, n = s.hasImportantModifier, r = s.baseClassName, a = s.maybePostfixModifierPosition, o = d(a ? r.substring(0, a) : r), l = !!a;
7
+ if (!o) {
8
+ if (!a)
9
+ return {
10
+ isTailwindClass: !1,
11
+ originalClassName: i
12
+ };
13
+ if (o = d(r), !o)
14
+ return {
15
+ isTailwindClass: !1,
16
+ originalClassName: i
17
+ };
18
+ l = !1;
19
+ }
20
+ var u = M(e).join(":"), C = n ? u + c : u;
21
+ return {
22
+ isTailwindClass: !0,
23
+ modifierId: C,
24
+ classGroupId: o,
25
+ originalClassName: i,
26
+ hasPostfixModifier: l
27
+ };
28
+ }).reverse().filter(function(i) {
29
+ if (!i.isTailwindClass)
30
+ return !0;
31
+ var s = i.modifierId, e = i.classGroupId, n = i.hasPostfixModifier, r = s + e;
32
+ return f.has(r) ? !1 : (f.add(r), p(e, n).forEach(function(a) {
33
+ return f.add(s + a);
34
+ }), !0);
35
+ }).reverse().map(function(i) {
36
+ return i.originalClassName;
37
+ }).join(" ");
24
38
  }
25
39
  export {
26
- T as createTailwindMerge
40
+ P as mergeClassList
27
41
  };