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.es477.js CHANGED
@@ -1,5 +1,26 @@
1
- function i(s, a) {
2
- return s.classList ? !!a && s.classList.contains(a) : (" " + (s.className.baseVal || s.className) + " ").indexOf(" " + a + " ") !== -1;
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);
3
24
  }
4
25
  export {
5
26
  i as default
package/index.es478.js CHANGED
@@ -1,4 +1,253 @@
1
- import o from "./index.es385.js";
1
+ import G from "./index.es207.js";
2
+ import U from "./index.es208.js";
3
+ import * as e from "react";
4
+ import _ from "./index.es209.js";
5
+ import { clsx as c } from "./index.es133.js";
6
+ import j from "./index.es221.js";
7
+ import F from "./index.es230.js";
8
+ import J from "./index.es501.js";
9
+ import i from "./index.es480.js";
10
+ import { jsx as k } from "react/jsx-runtime";
11
+ import { keyframes as E } from "./index.es464.js";
12
+ import Q from "./index.es299.js";
13
+ const Z = ["center", "classes", "className"];
14
+ let y = (r) => r, V, D, K, S;
15
+ const w = 550, v = 80, tt = E(V || (V = y`
16
+ 0% {
17
+ transform: scale(0);
18
+ opacity: 0.1;
19
+ }
20
+
21
+ 100% {
22
+ transform: scale(1);
23
+ opacity: 0.3;
24
+ }
25
+ `)), et = E(D || (D = y`
26
+ 0% {
27
+ opacity: 1;
28
+ }
29
+
30
+ 100% {
31
+ opacity: 0;
32
+ }
33
+ `)), it = E(K || (K = y`
34
+ 0% {
35
+ transform: scale(1);
36
+ }
37
+
38
+ 50% {
39
+ transform: scale(0.92);
40
+ }
41
+
42
+ 100% {
43
+ transform: scale(1);
44
+ }
45
+ `)), rt = j("span", {
46
+ name: "MuiTouchRipple",
47
+ slot: "Root"
48
+ })({
49
+ overflow: "hidden",
50
+ pointerEvents: "none",
51
+ position: "absolute",
52
+ zIndex: 0,
53
+ top: 0,
54
+ right: 0,
55
+ bottom: 0,
56
+ left: 0,
57
+ borderRadius: "inherit"
58
+ }), ot = j(J, {
59
+ name: "MuiTouchRipple",
60
+ slot: "Ripple"
61
+ })(S || (S = y`
62
+ opacity: 0;
63
+ position: absolute;
64
+
65
+ &.${0} {
66
+ opacity: 0.3;
67
+ transform: scale(1);
68
+ animation-name: ${0};
69
+ animation-duration: ${0}ms;
70
+ animation-timing-function: ${0};
71
+ }
72
+
73
+ &.${0} {
74
+ animation-duration: ${0}ms;
75
+ }
76
+
77
+ & .${0} {
78
+ opacity: 1;
79
+ display: block;
80
+ width: 100%;
81
+ height: 100%;
82
+ border-radius: 50%;
83
+ background-color: currentColor;
84
+ }
85
+
86
+ & .${0} {
87
+ opacity: 0;
88
+ animation-name: ${0};
89
+ animation-duration: ${0}ms;
90
+ animation-timing-function: ${0};
91
+ }
92
+
93
+ & .${0} {
94
+ position: absolute;
95
+ /* @noflip */
96
+ left: 0px;
97
+ top: 0;
98
+ animation-name: ${0};
99
+ animation-duration: 2500ms;
100
+ animation-timing-function: ${0};
101
+ animation-iteration-count: infinite;
102
+ animation-delay: 200ms;
103
+ }
104
+ `), i.rippleVisible, tt, w, ({
105
+ theme: r
106
+ }) => r.transitions.easing.easeInOut, i.ripplePulsate, ({
107
+ theme: r
108
+ }) => r.transitions.duration.shorter, i.child, i.childLeaving, et, w, ({
109
+ theme: r
110
+ }) => r.transitions.easing.easeInOut, i.childPulsate, it, ({
111
+ theme: r
112
+ }) => r.transitions.easing.easeInOut), q = /* @__PURE__ */ e.forwardRef(function(A, H) {
113
+ const I = F({
114
+ props: A,
115
+ name: "MuiTouchRipple"
116
+ }), {
117
+ center: L = !1,
118
+ classes: n = {},
119
+ className: W
120
+ } = I, B = U(I, Z), [N, X] = e.useState([]), Y = e.useRef(0), h = e.useRef(null);
121
+ e.useEffect(() => {
122
+ h.current && (h.current(), h.current = null);
123
+ }, [N]);
124
+ const T = e.useRef(!1), d = e.useRef(0), o = e.useRef(null), z = e.useRef(null);
125
+ e.useEffect(() => () => {
126
+ d.current && clearTimeout(d.current);
127
+ }, []);
128
+ const $ = e.useCallback((t) => {
129
+ const {
130
+ pulsate: a,
131
+ rippleX: s,
132
+ rippleY: g,
133
+ rippleSize: b,
134
+ cb: P
135
+ } = t;
136
+ X((l) => [...l, /* @__PURE__ */ k(ot, {
137
+ classes: {
138
+ ripple: c(n.ripple, i.ripple),
139
+ rippleVisible: c(n.rippleVisible, i.rippleVisible),
140
+ ripplePulsate: c(n.ripplePulsate, i.ripplePulsate),
141
+ child: c(n.child, i.child),
142
+ childLeaving: c(n.childLeaving, i.childLeaving),
143
+ childPulsate: c(n.childPulsate, i.childPulsate)
144
+ },
145
+ timeout: w,
146
+ pulsate: a,
147
+ rippleX: s,
148
+ rippleY: g,
149
+ rippleSize: b
150
+ }, Y.current)]), Y.current += 1, h.current = P;
151
+ }, [n]), R = e.useCallback((t = {}, a = {}, s = () => {
152
+ }) => {
153
+ const {
154
+ pulsate: g = !1,
155
+ center: b = L || a.pulsate,
156
+ fakeElement: P = !1
157
+ // For test purposes
158
+ } = a;
159
+ if ((t == null ? void 0 : t.type) === "mousedown" && T.current) {
160
+ T.current = !1;
161
+ return;
162
+ }
163
+ (t == null ? void 0 : t.type) === "touchstart" && (T.current = !0);
164
+ const l = P ? null : z.current, u = l ? l.getBoundingClientRect() : {
165
+ width: 0,
166
+ height: 0,
167
+ left: 0,
168
+ top: 0
169
+ };
170
+ let p, m, f;
171
+ if (b || t === void 0 || t.clientX === 0 && t.clientY === 0 || !t.clientX && !t.touches)
172
+ p = Math.round(u.width / 2), m = Math.round(u.height / 2);
173
+ else {
174
+ const {
175
+ clientX: x,
176
+ clientY: C
177
+ } = t.touches && t.touches.length > 0 ? t.touches[0] : t;
178
+ p = Math.round(x - u.left), m = Math.round(C - u.top);
179
+ }
180
+ if (b)
181
+ f = Math.sqrt((2 * u.width ** 2 + u.height ** 2) / 3), f % 2 === 0 && (f += 1);
182
+ else {
183
+ const x = Math.max(Math.abs((l ? l.clientWidth : 0) - p), p) * 2 + 2, C = Math.max(Math.abs((l ? l.clientHeight : 0) - m), m) * 2 + 2;
184
+ f = Math.sqrt(x ** 2 + C ** 2);
185
+ }
186
+ t != null && t.touches ? o.current === null && (o.current = () => {
187
+ $({
188
+ pulsate: g,
189
+ rippleX: p,
190
+ rippleY: m,
191
+ rippleSize: f,
192
+ cb: s
193
+ });
194
+ }, d.current = setTimeout(() => {
195
+ o.current && (o.current(), o.current = null);
196
+ }, v)) : $({
197
+ pulsate: g,
198
+ rippleX: p,
199
+ rippleY: m,
200
+ rippleSize: f,
201
+ cb: s
202
+ });
203
+ }, [L, $]), O = e.useCallback(() => {
204
+ R({}, {
205
+ pulsate: !0
206
+ });
207
+ }, [R]), M = e.useCallback((t, a) => {
208
+ if (clearTimeout(d.current), (t == null ? void 0 : t.type) === "touchend" && o.current) {
209
+ o.current(), o.current = null, d.current = setTimeout(() => {
210
+ M(t, a);
211
+ });
212
+ return;
213
+ }
214
+ o.current = null, X((s) => s.length > 0 ? s.slice(1) : s), h.current = a;
215
+ }, []);
216
+ return e.useImperativeHandle(H, () => ({
217
+ pulsate: O,
218
+ start: R,
219
+ stop: M
220
+ }), [O, R, M]), /* @__PURE__ */ k(rt, G({
221
+ className: c(i.root, n.root, W),
222
+ ref: z
223
+ }, B, {
224
+ children: /* @__PURE__ */ k(Q, {
225
+ component: null,
226
+ exit: !0,
227
+ children: N
228
+ })
229
+ }));
230
+ });
231
+ process.env.NODE_ENV !== "production" && (q.propTypes = {
232
+ /**
233
+ * If `true`, the ripple starts at the center of the component
234
+ * rather than at the point of interaction.
235
+ */
236
+ center: _.bool,
237
+ /**
238
+ * Override or extend the styles applied to the component.
239
+ * See [CSS API](#css) below for more details.
240
+ */
241
+ classes: _.object,
242
+ /**
243
+ * @ignore
244
+ */
245
+ className: _.string
246
+ });
247
+ const Rt = q;
2
248
  export {
3
- o as default
249
+ v as DELAY_RIPPLE,
250
+ ot as TouchRippleRipple,
251
+ rt as TouchRippleRoot,
252
+ Rt as default
4
253
  };
package/index.es479.js CHANGED
@@ -1,4 +1,10 @@
1
- import t from "./index.es409.js";
1
+ import s from "./index.es232.js";
2
+ import e from "./index.es231.js";
3
+ function n(t) {
4
+ return e("MuiButtonBase", t);
5
+ }
6
+ const o = s("MuiButtonBase", ["root", "disabled", "focusVisible"]), l = o;
2
7
  export {
3
- t as default
8
+ l as default,
9
+ n as getButtonBaseUtilityClass
4
10
  };
package/index.es48.js CHANGED
@@ -1,152 +1,162 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
- import h from "./index.es154.js";
3
- import g from "./index.es155.js";
4
- import b from "./index.es156.js";
5
- import x from "./index.es157.js";
6
- import v from "./index.es158.js";
7
- import N from "./index.es159.js";
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
+ import x from "./index.es154.js";
3
+ import b from "./index.es155.js";
4
+ import v from "./index.es156.js";
5
+ import N from "./index.es157.js";
6
+ import w from "./index.es158.js";
7
+ import y from "./index.es159.js";
8
8
  import "./index.es2.js";
9
- import w from "./index.es90.js";
10
- import y from "./index.es160.js";
11
- import k from "./index.es161.js";
12
- import F from "./index.es162.js";
13
- import z from "./index.es163.js";
14
- import { Link as p } from "./index.es52.js";
15
- import { cn as u } from "./index.es89.js";
16
- import { ShouldRender as f } from "./index.es15.js";
17
- import { Button as c } from "./index.es23.js";
18
- import { strings as i } from "./index.es101.js";
19
- const K = ({ colors: t = "default", ...l }) => {
20
- var o;
9
+ import k from "./index.es90.js";
10
+ import F from "./index.es160.js";
11
+ import z from "./index.es161.js";
12
+ import C from "./index.es162.js";
13
+ import S from "./index.es163.js";
14
+ import { Link as u } from "./index.es52.js";
15
+ import { cn as f } from "./index.es89.js";
16
+ import { ShouldRender as d } from "./index.es15.js";
17
+ import { Button as s } from "./index.es23.js";
18
+ import { strings as o } from "./index.es101.js";
19
+ const W = ({ colors: l = "default", ...r }) => {
20
+ var t;
21
21
  return /* @__PURE__ */ e(
22
22
  "footer",
23
23
  {
24
- className: u(" px-space-04 md:px-space-06 ", {
25
- "bg-background-SA-Flag text-text-oncolor-primary": t === "default",
26
- "bg-background-neutral-100 text-text-default": t === "neutral"
24
+ className: f(" px-space-04 md:px-space-06 ", {
25
+ "bg-background-SA-Flag text-text-oncolor-primary": l === "default",
26
+ "bg-background-neutral-100 text-text-default": l === "neutral"
27
27
  }),
28
- children: /* @__PURE__ */ a("div", { className: "max-w-container mx-auto flex flex-col items-start py-space-05", children: [
29
- /* @__PURE__ */ e(f, { shouldRender: l.showGroupLinks, children: /* @__PURE__ */ a("div", { className: "mb-space-08 grid w-full grid-cols-12 items-stretch gap-space-05 pb-space-07 pt-space-04", children: [
30
- (o = l.groupLinks) == null ? void 0 : o.map((r) => /* @__PURE__ */ e(C, { colors: t, title: r.title, links: r.links }, r.title)),
31
- /* @__PURE__ */ e("div", { className: "col-span-12 sm:col-span-6 lg:col-span-4 xl:col-span-3", children: /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-start gap-space-06", children: [
32
- /* @__PURE__ */ e(S, { title: l.socialMediaTitle, colors: t, links: l.socialMediaLinks }),
33
- /* @__PURE__ */ e(A, { colors: t })
28
+ children: /* @__PURE__ */ i("div", { className: "mx-auto flex max-w-container flex-col items-start py-space-05", children: [
29
+ /* @__PURE__ */ e(d, { shouldRender: r.showGroupLinks, children: /* @__PURE__ */ i("div", { className: "mb-space-08 grid w-full grid-cols-12 items-stretch gap-space-05 pb-space-07 pt-space-04", children: [
30
+ (t = r.groupLinks) == null ? void 0 : t.map((a) => /* @__PURE__ */ e(A, { colors: l, title: a.title, links: a.links }, a.title)),
31
+ /* @__PURE__ */ e("div", { className: "col-span-12 sm:col-span-6 lg:col-span-4 xl:col-span-3", children: /* @__PURE__ */ i("div", { className: "flex w-full flex-col items-start gap-space-06", children: [
32
+ /* @__PURE__ */ e(R, { title: r.socialMediaTitle, colors: l, links: r.socialMediaLinks }),
33
+ r.accessibilityTools ?? /* @__PURE__ */ e(T, { colors: l })
34
34
  ] }) })
35
35
  ] }) }),
36
36
  /* @__PURE__ */ e(
37
37
  _,
38
38
  {
39
- colors: t,
40
- basicLinks: l.basicLinks,
41
- bottomImages: l.bottomImages,
42
- extraLinks: l.extraLinks,
43
- showBasicLinks: l.showBasicLinks
39
+ colors: l,
40
+ basicLinks: r.basicLinks,
41
+ bottomImages: r.bottomImages,
42
+ extraLinks: r.extraLinks,
43
+ showBasicLinks: r.showBasicLinks
44
44
  }
45
45
  )
46
46
  ] })
47
47
  }
48
48
  );
49
- }, m = ({ title: t, colors: l }) => /* @__PURE__ */ e(
49
+ }, p = ({ title: l, colors: r }) => /* @__PURE__ */ e(
50
50
  "label",
51
51
  {
52
- className: u("w-full border-b pb-space-02 text-body-02 font-medium", {
53
- "border-border-neutral-primary": l === "neutral",
54
- "border-border-oncolor-transparent-30": l === "default"
52
+ className: f("w-full border-b pb-space-02 text-body-02 font-medium", {
53
+ "border-border-neutral-primary": r === "neutral",
54
+ "border-border-oncolor-transparent-30": r === "default"
55
55
  }),
56
- children: t
56
+ children: l
57
57
  }
58
- ), C = ({ title: t, links: l, colors: o }) => /* @__PURE__ */ e("div", { className: "col-span-12 sm:col-span-6 lg:col-span-4 xl:col-span-3", children: /* @__PURE__ */ a("div", { className: "flex flex-col items-start gap-space-02", children: [
59
- /* @__PURE__ */ e(m, { title: t, colors: o }),
60
- /* @__PURE__ */ e("ul", { className: "flex flex-col gap-space-02", children: l.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(d, { ...r, colors: o === "neutral" ? "neutral" : "oncolor" }) }, r.label)) })
61
- ] }) }), S = ({ title: t, links: l, colors: o }) => /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-start gap-space-02", children: [
62
- /* @__PURE__ */ e(m, { title: t, colors: o }),
63
- /* @__PURE__ */ e("div", { className: "flex flex-wrap items-center gap-space-02", children: l.map((r) => /* @__PURE__ */ e(
64
- c,
58
+ ), A = ({ title: l, links: r, colors: t }) => /* @__PURE__ */ e("div", { className: "col-span-12 sm:col-span-6 lg:col-span-4 xl:col-span-3", children: /* @__PURE__ */ i("div", { className: "flex flex-col items-start gap-space-02", children: [
59
+ /* @__PURE__ */ e(p, { title: l, colors: t }),
60
+ /* @__PURE__ */ e("ul", { className: "flex flex-col gap-space-02", children: r.map((a) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(m, { ...a, colors: t === "neutral" ? "neutral" : "oncolor" }) }, a.label)) })
61
+ ] }) }), R = ({ title: l, links: r, colors: t }) => /* @__PURE__ */ i("div", { className: "flex w-full flex-col items-start gap-space-02", children: [
62
+ /* @__PURE__ */ e(p, { title: l, colors: t }),
63
+ /* @__PURE__ */ e("div", { className: "flex flex-wrap items-center gap-space-02", children: r.map((a) => /* @__PURE__ */ e(
64
+ s,
65
65
  {
66
66
  variant: "outline",
67
- tooltip: r.title,
68
- colors: o === "neutral" ? "neutral" : "oncolor",
67
+ tooltip: a.title,
68
+ colors: t === "neutral" ? "neutral" : "oncolor",
69
69
  size: "icon-sm",
70
- onClick: () => window.open(r.target, "_blank", "noopener,noreferrer"),
70
+ onClick: () => window.open(a.target, "_blank", "noopener,noreferrer"),
71
71
  rounded: "default",
72
- children: r.icon
72
+ children: a.icon
73
73
  },
74
- r.title
74
+ a.title
75
75
  )) })
76
- ] }), A = ({ colors: t }) => {
77
- const { toggleColors: l, increaseSize: o, decreaseSize: r } = w((n) => n);
78
- return /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-start gap-space-02", children: [
79
- /* @__PURE__ */ e(m, { title: i.Shared.accessibilityTools, colors: t }),
80
- /* @__PURE__ */ a("div", { className: "flex flex-wrap items-center gap-space-02", children: [
76
+ ] }), T = ({ colors: l }) => {
77
+ const { toggleColors: r, increaseSize: t, decreaseSize: a } = k((n) => n);
78
+ return /* @__PURE__ */ i("div", { className: "flex w-full flex-col items-start gap-space-02", children: [
79
+ /* @__PURE__ */ e(p, { title: o.Shared.accessibilityTools, colors: l }),
80
+ /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-space-02", children: [
81
81
  /* @__PURE__ */ e(
82
- c,
82
+ s,
83
83
  {
84
84
  variant: "outline",
85
- tooltip: i.Accessibility.ColorContrast,
86
- colors: t === "neutral" ? "neutral" : "oncolor",
85
+ tooltip: o.Accessibility.ColorContrast,
86
+ colors: l === "neutral" ? "neutral" : "oncolor",
87
87
  size: "icon-sm",
88
88
  rounded: "default",
89
- onClick: l,
90
- children: /* @__PURE__ */ e(y, {})
89
+ onClick: r,
90
+ children: /* @__PURE__ */ e(F, {})
91
91
  }
92
92
  ),
93
93
  /* @__PURE__ */ e(
94
- c,
94
+ s,
95
95
  {
96
96
  variant: "outline",
97
- tooltip: i.Accessibility.DecreaseFontSize,
98
- colors: t === "neutral" ? "neutral" : "oncolor",
97
+ tooltip: o.Accessibility.DecreaseFontSize,
98
+ colors: l === "neutral" ? "neutral" : "oncolor",
99
99
  size: "icon-sm",
100
100
  rounded: "default",
101
- onClick: r,
102
- children: /* @__PURE__ */ e(k, {})
101
+ onClick: a,
102
+ children: /* @__PURE__ */ e(z, {})
103
103
  }
104
104
  ),
105
105
  /* @__PURE__ */ e(
106
- c,
106
+ s,
107
107
  {
108
108
  variant: "outline",
109
- tooltip: i.Accessibility.IncreaseFontSize,
110
- colors: t === "neutral" ? "neutral" : "oncolor",
109
+ tooltip: o.Accessibility.IncreaseFontSize,
110
+ colors: l === "neutral" ? "neutral" : "oncolor",
111
111
  size: "icon-sm",
112
112
  rounded: "default",
113
- onClick: o,
114
- children: /* @__PURE__ */ e(F, {})
113
+ onClick: t,
114
+ children: /* @__PURE__ */ e(C, {})
115
115
  }
116
116
  ),
117
117
  /* @__PURE__ */ e(
118
- c,
118
+ s,
119
119
  {
120
120
  variant: "outline",
121
- tooltip: i.Accessibility.VoiceCommands,
122
- colors: t === "neutral" ? "neutral" : "oncolor",
121
+ tooltip: o.Accessibility.VoiceCommands,
122
+ colors: l === "neutral" ? "neutral" : "oncolor",
123
123
  size: "icon-sm",
124
124
  rounded: "default",
125
125
  onClick: () => {
126
126
  window.open("https://deaf.dga.gov.sa", "_blank", "noopener,noreferrer");
127
127
  },
128
- children: /* @__PURE__ */ e(z, { size: 20 })
128
+ children: /* @__PURE__ */ e(S, { size: 20 })
129
129
  }
130
130
  )
131
131
  ] })
132
132
  ] });
133
- }, _ = ({ basicLinks: t, extraLinks: l, bottomImages: o, showBasicLinks: r, colors: n }) => /* @__PURE__ */ a("div", { className: "grid w-full grid-cols-12 gap-space-05 py-space-04", children: [
134
- /* @__PURE__ */ a("div", { className: "col-span-12 space-y-space-02 md:col-span-8", children: [
135
- /* @__PURE__ */ e(f, { shouldRender: r, children: /* @__PURE__ */ e("div", { className: "mb-spacing-05 flex items-center gap-space-04 ", children: t == null ? void 0 : t.map((s) => /* @__PURE__ */ e(d, { ...s, underline: "always", colors: n === "neutral" ? "neutral" : "oncolor" }, s.label)) }) }),
136
- /* @__PURE__ */ e("p", { className: "text-body-01 font-semibold ", children: i.formatString(i.Footer.Rights, (/* @__PURE__ */ new Date()).getFullYear()) }),
137
- /* @__PURE__ */ e("p", { className: "text-body-01 ", children: i.Footer.DevelopedByTetco }),
138
- /* @__PURE__ */ e("div", { className: "flex items-center gap-space-04 ", children: l == null ? void 0 : l.map((s) => /* @__PURE__ */ e(d, { ...s, colors: n === "neutral" ? "neutral" : "oncolor" }, s.label)) })
133
+ }, _ = ({
134
+ basicLinks: l,
135
+ extraLinks: r,
136
+ bottomImages: t,
137
+ showBasicLinks: a,
138
+ colors: n,
139
+ copyrightText: h,
140
+ developedByText: g
141
+ }) => /* @__PURE__ */ i("div", { className: "grid w-full grid-cols-12 gap-space-05 py-space-04", children: [
142
+ /* @__PURE__ */ i("div", { className: "col-span-12 space-y-space-02 md:col-span-8", children: [
143
+ /* @__PURE__ */ e(d, { shouldRender: a, children: /* @__PURE__ */ e("div", { className: "mb-spacing-05 flex items-center gap-space-04 ", children: l == null ? void 0 : l.map((c) => /* @__PURE__ */ e(m, { ...c, underline: "always", colors: n === "neutral" ? "neutral" : "oncolor" }, c.label)) }) }),
144
+ /* @__PURE__ */ e("p", { className: "text-body-01 font-semibold ", children: h ?? o.formatString(o.Footer.Rights, (/* @__PURE__ */ new Date()).getFullYear()) }),
145
+ /* @__PURE__ */ e("p", { className: "text-body-01 ", children: g ?? o.Footer.DevelopedByTetco }),
146
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-space-04 ", children: r == null ? void 0 : r.map((c) => /* @__PURE__ */ e(m, { ...c, colors: n === "neutral" ? "neutral" : "oncolor" }, c.label)) })
139
147
  ] }),
140
- /* @__PURE__ */ a("div", { className: "col-span-12 flex flex-wrap items-center gap-space-04 md:col-span-4 md:ms-auto", children: [
141
- /* @__PURE__ */ e("a", { href: "https://moe.gov.sa/ar/Pages/default.aspx", rel: "noopener noreferrer", target: "_blank", children: /* @__PURE__ */ e("img", { src: n === "default" ? h : x, alt: "moe" }) }),
142
- /* @__PURE__ */ e("a", { href: "https://tetco.sa/", rel: "noopener noreferrer", target: "_blank", children: /* @__PURE__ */ e("img", { src: n === "default" ? g : v, alt: "tetco" }) }),
143
- /* @__PURE__ */ e("a", { href: "https://www.vision2030.gov.sa/", rel: "noopener noreferrer", target: "_blank", children: /* @__PURE__ */ e("img", { src: n === "default" ? b : N, alt: "vision 2030" }) }),
144
- o
148
+ /* @__PURE__ */ i("div", { className: "col-span-12 flex flex-wrap items-center gap-space-04 md:col-span-4 md:ms-auto", children: [
149
+ /* @__PURE__ */ i(d, { shouldRender: !(t != null && t.length), children: [
150
+ /* @__PURE__ */ e("a", { href: "https://moe.gov.sa/ar/Pages/default.aspx", rel: "noopener noreferrer", target: "_blank", children: /* @__PURE__ */ e("img", { src: n === "default" ? x : N, alt: "moe" }) }),
151
+ /* @__PURE__ */ e("a", { href: "https://tetco.sa/", rel: "noopener noreferrer", target: "_blank", children: /* @__PURE__ */ e("img", { src: n === "default" ? b : w, alt: "tetco" }) }),
152
+ /* @__PURE__ */ e("a", { href: "https://www.vision2030.gov.sa/", rel: "noopener noreferrer", target: "_blank", children: /* @__PURE__ */ e("img", { src: n === "default" ? v : y, alt: "vision 2030" }) })
153
+ ] }),
154
+ /* @__PURE__ */ e(d, { shouldRender: !!(t != null && t.length), children: t })
145
155
  ] })
146
156
  ] });
147
- function d({ label: t, href: l, render: o, ...r }) {
148
- return o ? /* @__PURE__ */ e(p, { size: "sm", ...r, asChild: !0, children: o }) : /* @__PURE__ */ e(p, { size: "sm", ...r, target: "_blank", href: l, children: t });
157
+ function m({ label: l, href: r, render: t, ...a }) {
158
+ return t ? /* @__PURE__ */ e(u, { size: "sm", ...a, asChild: !0, children: t }) : /* @__PURE__ */ e(u, { size: "sm", ...a, target: "_blank", href: r, children: l });
149
159
  }
150
160
  export {
151
- K as Footer
161
+ W as Footer
152
162
  };