kdpa-components 1.35.2 → 1.35.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 (234) hide show
  1. package/dist/Accordion/index.d.ts +3 -0
  2. package/dist/Accordion/index.d.ts.map +1 -0
  3. package/dist/Accordion/index.js +481 -0
  4. package/dist/AdvancedList/index.d.ts +2 -0
  5. package/dist/AdvancedList/index.d.ts.map +1 -0
  6. package/dist/AdvancedList/index.js +16751 -0
  7. package/dist/Alert/index.d.ts +5 -0
  8. package/dist/Alert/index.d.ts.map +1 -0
  9. package/dist/Alert/index.js +407 -0
  10. package/dist/ArrowDropDown-76613637.js +35 -0
  11. package/dist/Autocomplete-45ae6737.js +1670 -0
  12. package/dist/Avatar/index.d.ts +3 -0
  13. package/dist/Avatar/index.d.ts.map +1 -0
  14. package/dist/Avatar/index.js +210 -0
  15. package/dist/Badge/index.d.ts +6 -0
  16. package/dist/Badge/index.d.ts.map +1 -0
  17. package/dist/Badge/index.js +69 -0
  18. package/dist/Badge-26e8a2aa.js +392 -0
  19. package/dist/Box-a827334a.js +58 -0
  20. package/dist/Button-b93e890d.js +355 -0
  21. package/dist/ButtonBase-0f9f324d.js +655 -0
  22. package/dist/Buttons/index.d.ts +9 -0
  23. package/dist/Buttons/index.d.ts.map +1 -0
  24. package/dist/Buttons/index.js +83 -0
  25. package/dist/CSSTransition-d0281d1f.js +215 -0
  26. package/dist/Cards/index.d.ts +3 -0
  27. package/dist/Cards/index.d.ts.map +1 -0
  28. package/dist/Cards/index.js +144 -0
  29. package/dist/CheckBox/index.d.ts +3 -0
  30. package/dist/CheckBox/index.d.ts.map +1 -0
  31. package/dist/CheckBox/index.js +32 -0
  32. package/dist/Checkbox-2cb33932.js +199 -0
  33. package/dist/Chip/index.d.ts +3 -0
  34. package/dist/Chip/index.d.ts.map +1 -0
  35. package/dist/Chip/index.js +61 -0
  36. package/dist/Chip-7b1a25ce.js +444 -0
  37. package/dist/CircularProgress-2c55d9ef.js +217 -0
  38. package/dist/Close-ef7a3b6b.js +9 -0
  39. package/dist/CodeEditor/index.d.ts +2 -0
  40. package/dist/CodeEditor/index.d.ts.map +1 -0
  41. package/dist/CodeEditor/index.js +559 -0
  42. package/dist/Collapse/index.d.ts +3 -0
  43. package/dist/Collapse/index.d.ts.map +1 -0
  44. package/dist/Collapse/index.js +23 -0
  45. package/dist/Collapse-4b8b3146.js +299 -0
  46. package/dist/CopyToClipboard/index.d.ts +3 -0
  47. package/dist/CopyToClipboard/index.d.ts.map +1 -0
  48. package/dist/CopyToClipboard/index.js +591 -0
  49. package/dist/Dialog-25ebaee6.js +356 -0
  50. package/dist/Divider/index.d.ts +4 -0
  51. package/dist/Divider/index.d.ts.map +1 -0
  52. package/dist/Divider/index.js +31 -0
  53. package/dist/Divider-cadf67a7.js +231 -0
  54. package/dist/DropZone/index.d.ts +2 -0
  55. package/dist/DropZone/index.d.ts.map +1 -0
  56. package/dist/DropZone/index.js +1348 -0
  57. package/dist/Fade-aabbd0cb.js +163 -0
  58. package/dist/FormControl/index.d.ts +5 -0
  59. package/dist/FormControl/index.d.ts.map +1 -0
  60. package/dist/FormControl/index.js +24 -0
  61. package/dist/FormControl-e7294bde.js +232 -0
  62. package/dist/FormControlLabel-276f1b1e.js +214 -0
  63. package/dist/FullScreenDialog/index.d.ts +3 -0
  64. package/dist/FullScreenDialog/index.d.ts.map +1 -0
  65. package/dist/FullScreenDialog/index.js +42 -0
  66. package/dist/Grid/index.d.ts +3 -0
  67. package/dist/Grid/index.d.ts.map +1 -0
  68. package/dist/Grid/index.js +17 -0
  69. package/dist/Grid-c1f5fe6b.js +486 -0
  70. package/dist/Grow-151a20f6.js +193 -0
  71. package/dist/HTMLElementType-ff213f3c.js +9 -0
  72. package/dist/IconButton-fdbca6d2.js +184 -0
  73. package/dist/Input/index.d.ts +7 -0
  74. package/dist/Input/index.d.ts.map +1 -0
  75. package/dist/Input/index.js +88 -0
  76. package/dist/InputAdornment-3334ace2.js +155 -0
  77. package/dist/KdpaAutoComplete-40e0949e.js +8 -0
  78. package/dist/KdpaCollapse-d9e37824.js +11 -0
  79. package/dist/KdpaFormControl-2d7c1db8.js +6 -0
  80. package/dist/KdpaIconButton-514e0d96.js +23 -0
  81. package/dist/KdpaMenuItem-085f686f.js +36 -0
  82. package/dist/KdpaSecondaryButton-14992523.js +25 -0
  83. package/dist/KeyboardArrowRight-14dbe7d6.js +12 -0
  84. package/dist/LazyDrop/index.d.ts +3 -0
  85. package/dist/LazyDrop/index.d.ts.map +1 -0
  86. package/dist/LazyDrop/index.js +839 -0
  87. package/dist/ListContext-de5072f9.js +7 -0
  88. package/dist/ListItem-2b5c2e20.js +426 -0
  89. package/dist/ListItemText-fcd66149.js +150 -0
  90. package/dist/Loading/KdpaProgress/index.d.ts +3 -0
  91. package/dist/Loading/KdpaProgress/index.d.ts.map +1 -0
  92. package/dist/Loading/KdpaProgress/index.js +56 -0
  93. package/dist/Loading/index.d.ts +6 -0
  94. package/dist/Loading/index.d.ts.map +1 -0
  95. package/dist/Loading/index.js +348 -0
  96. package/dist/MenuItem-cc037c5b.js +240 -0
  97. package/dist/Modal/index.d.ts +2 -0
  98. package/dist/Modal/index.d.ts.map +1 -0
  99. package/dist/Modal/index.js +751 -0
  100. package/dist/Modal-5f23fcfd.js +984 -0
  101. package/dist/PaginationGrid/index.d.ts +3 -0
  102. package/dist/PaginationGrid/index.d.ts.map +1 -0
  103. package/dist/PaginationGrid/index.js +60 -0
  104. package/dist/Paper-aaec61a3.js +163 -0
  105. package/dist/Pickers/index.d.ts +7 -0
  106. package/dist/Pickers/index.d.ts.map +1 -0
  107. package/dist/Pickers/index.js +14408 -0
  108. package/dist/Popper-490e6477.js +490 -0
  109. package/dist/Portal-b4f8657f.js +77 -0
  110. package/dist/Radio/index.d.ts +5 -0
  111. package/dist/Radio/index.d.ts.map +1 -0
  112. package/dist/Radio/index.js +431 -0
  113. package/dist/Segment/index.d.ts +3 -0
  114. package/dist/Segment/index.d.ts.map +1 -0
  115. package/dist/Segment/index.js +84 -0
  116. package/dist/Selects/index.d.ts +7 -0
  117. package/dist/Selects/index.d.ts.map +1 -0
  118. package/dist/Selects/index.js +66 -0
  119. package/dist/SimpleList/index.d.ts +2 -0
  120. package/dist/SimpleList/index.d.ts.map +1 -0
  121. package/dist/SimpleList/index.js +1913 -0
  122. package/dist/Skeleton-263b2beb.js +213 -0
  123. package/dist/Slide-3bc7a346.js +227 -0
  124. package/dist/Slider/index.d.ts +3 -0
  125. package/dist/Slider/index.d.ts.map +1 -0
  126. package/dist/Slider/index.js +1322 -0
  127. package/dist/SweetAlerts/index.d.ts +6 -0
  128. package/dist/SweetAlerts/index.d.ts.map +1 -0
  129. package/dist/SweetAlerts/index.js +1540 -0
  130. package/dist/Switch/index.d.ts +3 -0
  131. package/dist/Switch/index.d.ts.map +1 -0
  132. package/dist/Switch/index.js +39 -0
  133. package/dist/Switch-ef584fc0.js +302 -0
  134. package/dist/SwitchBase-c367ca3c.js +231 -0
  135. package/dist/Tabs/index.d.ts +5 -0
  136. package/dist/Tabs/index.d.ts.map +1 -0
  137. package/dist/Tabs/index.js +63 -0
  138. package/dist/Tabs-9775b0bb.js +1084 -0
  139. package/dist/TextField-b8c731e8.js +4439 -0
  140. package/dist/ThemeProvider/index.d.ts +4 -0
  141. package/dist/ThemeProvider/index.d.ts.map +1 -0
  142. package/dist/ThemeProvider/index.js +294 -0
  143. package/dist/Tooltip-4b1baf1b.js +584 -0
  144. package/dist/Tooltips/index.d.ts +3 -0
  145. package/dist/Tooltips/index.d.ts.map +1 -0
  146. package/dist/Tooltips/index.js +46 -0
  147. package/dist/TransitionGroup-196acb6a.js +185 -0
  148. package/dist/TransitionGroupContext-7435e195.js +10 -0
  149. package/dist/Transitions/index.d.ts +11 -0
  150. package/dist/Transitions/index.d.ts.map +1 -0
  151. package/dist/Transitions/index.js +34 -0
  152. package/dist/Tree/index.d.ts +3 -0
  153. package/dist/Tree/index.d.ts.map +1 -0
  154. package/dist/Tree/index.js +1447 -0
  155. package/dist/TreeSelect/index.d.ts +3 -0
  156. package/dist/TreeSelect/index.d.ts.map +1 -0
  157. package/dist/TreeSelect/index.js +6888 -0
  158. package/dist/Typography/index.d.ts +3 -0
  159. package/dist/Typography/index.d.ts.map +1 -0
  160. package/dist/Typography/index.js +14 -0
  161. package/dist/Typography-dfa51fea.js +176 -0
  162. package/dist/Uploader/index.d.ts +3 -0
  163. package/dist/Uploader/index.d.ts.map +1 -0
  164. package/dist/Uploader/index.js +81 -0
  165. package/dist/Zoom-b84bdc2b.js +163 -0
  166. package/dist/_commonjsHelpers-92157f1b.js +36 -0
  167. package/dist/assertThisInitialized-05701a63.js +8 -0
  168. package/dist/chainPropTypes-004bf492.js +8 -0
  169. package/dist/createChainedFunction-68e2a88d.js +9 -0
  170. package/dist/createSvgIcon-b80a8a41.js +182 -0
  171. package/dist/dividerClasses-99758da7.js +10 -0
  172. package/dist/elementAcceptingRef-803dfd80.js +26 -0
  173. package/dist/elementTypeAcceptingRef-6c34f16b.js +23 -0
  174. package/dist/emotion-is-prop-valid.esm-b7f48706.js +191 -0
  175. package/dist/emotion-memoize.esm-021d0d4e.js +9 -0
  176. package/dist/emotion-react.browser.esm-d563ed65.js +255 -0
  177. package/dist/exactProp-3aaa3ecc.js +13 -0
  178. package/dist/extendSxProp-f7714a31.js +30 -0
  179. package/dist/extends-393586f3.js +22 -0
  180. package/dist/formControlState-9148c46f.js +10 -0
  181. package/dist/hoist-non-react-statics.cjs-ce2f2873.js +236 -0
  182. package/dist/iconBase-800b43ff.js +63 -0
  183. package/dist/identifier-9dfe30d8.js +3320 -0
  184. package/dist/index-116f732f.js +749 -0
  185. package/dist/index-7e2d793d.js +12011 -0
  186. package/dist/index-fa965a10.js +43 -0
  187. package/dist/index.css +1 -1
  188. package/dist/index.d.ts +36 -0
  189. package/dist/index.d.ts.map +1 -0
  190. package/dist/index.esm-b78383d3.js +35 -0
  191. package/dist/isMuiElement-b88a921a.js +7 -0
  192. package/dist/jsx-runtime-944c88e2.js +631 -0
  193. package/dist/kdpaSelect-4ed993c7.js +1 -0
  194. package/dist/listItemTextClasses-d6839c02.js +10 -0
  195. package/dist/ownerDocument-5430cd5b.js +6 -0
  196. package/dist/ownerWindow-e6cc3097.js +20 -0
  197. package/dist/popper-78c6b162.js +1006 -0
  198. package/dist/refType-af1a9f54.js +5 -0
  199. package/dist/setPrototypeOf-98a00546.js +8 -0
  200. package/dist/style.css +1 -0
  201. package/dist/toPropertyKey-e295cd73.js +27 -0
  202. package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts +1 -1
  203. package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts.map +1 -1
  204. package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.d.ts.map +1 -1
  205. package/dist/types/designerKit/components/Uploader/KdFileUploader/UploadedItems.d.ts.map +1 -1
  206. package/dist/types/designerKit/utils/typographyHelper.d.ts +1 -2
  207. package/dist/types/designerKit/utils/typographyHelper.d.ts.map +1 -1
  208. package/dist/unsupportedProp-3dbf01f6.js +9 -0
  209. package/dist/useControlled-cc2d41cb.js +31 -0
  210. package/dist/useEventCallback-fe4fd69c.js +16 -0
  211. package/dist/useForkRef-0781dda0.js +15 -0
  212. package/dist/useFormControl-af690c26.js +11 -0
  213. package/dist/useId-e7dff7be.js +19 -0
  214. package/dist/useIsFocusVisible-4693b580.js +68 -0
  215. package/dist/usePreviousProps-c1ae4548.js +10 -0
  216. package/dist/useSlotProps-f238319f.js +74 -0
  217. package/dist/useTheme-014a54ad.js +10 -0
  218. package/dist/useThemeProps-7d04a175.js +513 -0
  219. package/dist/utils-129661c6.js +370 -0
  220. package/package.json +1 -1
  221. package/dist/types/designerKit/components/Alert/Temp.d.ts +0 -3
  222. package/dist/types/designerKit/components/Alert/Temp.d.ts.map +0 -1
  223. package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts +0 -12
  224. package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts.map +0 -1
  225. package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts +0 -5
  226. package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts.map +0 -1
  227. package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts +0 -9
  228. package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts.map +0 -1
  229. package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts +0 -53
  230. package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts.map +0 -1
  231. package/dist/types/designerKit/utils/fileUtils.d.ts +0 -19
  232. package/dist/types/designerKit/utils/fileUtils.d.ts.map +0 -1
  233. package/dist/types/designerKit/utils/useTreeHelper.d.ts +0 -17
  234. package/dist/types/designerKit/utils/useTreeHelper.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { j as t } from "../jsx-runtime-944c88e2.js";
2
+ import { G as i } from "../Grid-c1f5fe6b.js";
3
+ import "react";
4
+ import "../extends-393586f3.js";
5
+ import "../identifier-9dfe30d8.js";
6
+ import "../emotion-memoize.esm-021d0d4e.js";
7
+ import "../_commonjsHelpers-92157f1b.js";
8
+ import "../useThemeProps-7d04a175.js";
9
+ import "../emotion-is-prop-valid.esm-b7f48706.js";
10
+ import "../useTheme-014a54ad.js";
11
+ import "../extendSxProp-f7714a31.js";
12
+ function G({ children: r, ...o }) {
13
+ return /* @__PURE__ */ t.jsx(i, { ...o, children: r });
14
+ }
15
+ export {
16
+ G as KdpaGrid
17
+ };
@@ -0,0 +1,486 @@
1
+ import { _ as g, a as D } from "./extends-393586f3.js";
2
+ import * as S from "react";
3
+ import { g as K, P as n, p as v, q as T } from "./identifier-9dfe30d8.js";
4
+ import { g as I, s as L, u as q, c as U, a as F } from "./useThemeProps-7d04a175.js";
5
+ import { u as Z } from "./useTheme-014a54ad.js";
6
+ import { j } from "./jsx-runtime-944c88e2.js";
7
+ import { e as A } from "./extendSxProp-f7714a31.js";
8
+ function H(e, r) {
9
+ if (process.env.NODE_ENV === "production")
10
+ return () => null;
11
+ const t = r ? {
12
+ ...r.propTypes
13
+ } : null;
14
+ return (o) => (s, c, p, l, u, ...a) => {
15
+ const f = u || c, m = t == null ? void 0 : t[f];
16
+ if (m) {
17
+ const d = m(s, c, p, l, u, ...a);
18
+ if (d)
19
+ return d;
20
+ }
21
+ return typeof s[c] < "u" && !s[o] ? new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`) : null;
22
+ };
23
+ }
24
+ const E = /* @__PURE__ */ S.createContext();
25
+ process.env.NODE_ENV !== "production" && (E.displayName = "GridContext");
26
+ const C = E;
27
+ function J(e) {
28
+ return K("MuiGrid", e);
29
+ }
30
+ const Q = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], X = ["column-reverse", "column", "row-reverse", "row"], Y = ["nowrap", "wrap-reverse", "wrap"], b = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], w = I("MuiGrid", [
31
+ "root",
32
+ "container",
33
+ "item",
34
+ "zeroMinWidth",
35
+ // spacings
36
+ ...Q.map((e) => `spacing-xs-${e}`),
37
+ // direction values
38
+ ...X.map((e) => `direction-xs-${e}`),
39
+ // wrap values
40
+ ...Y.map((e) => `wrap-xs-${e}`),
41
+ // grid sizes for all breakpoints
42
+ ...b.map((e) => `grid-xs-${e}`),
43
+ ...b.map((e) => `grid-sm-${e}`),
44
+ ...b.map((e) => `grid-md-${e}`),
45
+ ...b.map((e) => `grid-lg-${e}`),
46
+ ...b.map((e) => `grid-xl-${e}`)
47
+ ]), ee = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
48
+ function x(e) {
49
+ const r = parseFloat(e);
50
+ return `${r}${String(e).replace(String(r), "") || "px"}`;
51
+ }
52
+ function ne({
53
+ theme: e,
54
+ ownerState: r
55
+ }) {
56
+ let t;
57
+ return e.breakpoints.keys.reduce((i, o) => {
58
+ let s = {};
59
+ if (r[o] && (t = r[o]), !t)
60
+ return i;
61
+ if (t === !0)
62
+ s = {
63
+ flexBasis: 0,
64
+ flexGrow: 1,
65
+ maxWidth: "100%"
66
+ };
67
+ else if (t === "auto")
68
+ s = {
69
+ flexBasis: "auto",
70
+ flexGrow: 0,
71
+ flexShrink: 0,
72
+ maxWidth: "none",
73
+ width: "auto"
74
+ };
75
+ else {
76
+ const c = v({
77
+ values: r.columns,
78
+ breakpoints: e.breakpoints.values
79
+ }), p = typeof c == "object" ? c[o] : c;
80
+ if (p == null)
81
+ return i;
82
+ const l = `${Math.round(t / p * 1e8) / 1e6}%`;
83
+ let u = {};
84
+ if (r.container && r.item && r.columnSpacing !== 0) {
85
+ const a = e.spacing(r.columnSpacing);
86
+ if (a !== "0px") {
87
+ const f = `calc(${l} + ${x(a)})`;
88
+ u = {
89
+ flexBasis: f,
90
+ maxWidth: f
91
+ };
92
+ }
93
+ }
94
+ s = g({
95
+ flexBasis: l,
96
+ flexGrow: 0,
97
+ maxWidth: l
98
+ }, u);
99
+ }
100
+ return e.breakpoints.values[o] === 0 ? Object.assign(i, s) : i[e.breakpoints.up(o)] = s, i;
101
+ }, {});
102
+ }
103
+ function re({
104
+ theme: e,
105
+ ownerState: r
106
+ }) {
107
+ const t = v({
108
+ values: r.direction,
109
+ breakpoints: e.breakpoints.values
110
+ });
111
+ return T({
112
+ theme: e
113
+ }, t, (i) => {
114
+ const o = {
115
+ flexDirection: i
116
+ };
117
+ return i.indexOf("column") === 0 && (o[`& > .${w.item}`] = {
118
+ maxWidth: "none"
119
+ }), o;
120
+ });
121
+ }
122
+ function z({
123
+ breakpoints: e,
124
+ values: r
125
+ }) {
126
+ let t = "";
127
+ Object.keys(r).forEach((o) => {
128
+ t === "" && r[o] !== 0 && (t = o);
129
+ });
130
+ const i = Object.keys(e).sort((o, s) => e[o] - e[s]);
131
+ return i.slice(0, i.indexOf(t));
132
+ }
133
+ function oe({
134
+ theme: e,
135
+ ownerState: r
136
+ }) {
137
+ const {
138
+ container: t,
139
+ rowSpacing: i
140
+ } = r;
141
+ let o = {};
142
+ if (t && i !== 0) {
143
+ const s = v({
144
+ values: i,
145
+ breakpoints: e.breakpoints.values
146
+ });
147
+ let c;
148
+ typeof s == "object" && (c = z({
149
+ breakpoints: e.breakpoints.values,
150
+ values: s
151
+ })), o = T({
152
+ theme: e
153
+ }, s, (p, l) => {
154
+ var u;
155
+ const a = e.spacing(p);
156
+ return a !== "0px" ? {
157
+ marginTop: `-${x(a)}`,
158
+ [`& > .${w.item}`]: {
159
+ paddingTop: x(a)
160
+ }
161
+ } : (u = c) != null && u.includes(l) ? {} : {
162
+ marginTop: 0,
163
+ [`& > .${w.item}`]: {
164
+ paddingTop: 0
165
+ }
166
+ };
167
+ });
168
+ }
169
+ return o;
170
+ }
171
+ function te({
172
+ theme: e,
173
+ ownerState: r
174
+ }) {
175
+ const {
176
+ container: t,
177
+ columnSpacing: i
178
+ } = r;
179
+ let o = {};
180
+ if (t && i !== 0) {
181
+ const s = v({
182
+ values: i,
183
+ breakpoints: e.breakpoints.values
184
+ });
185
+ let c;
186
+ typeof s == "object" && (c = z({
187
+ breakpoints: e.breakpoints.values,
188
+ values: s
189
+ })), o = T({
190
+ theme: e
191
+ }, s, (p, l) => {
192
+ var u;
193
+ const a = e.spacing(p);
194
+ return a !== "0px" ? {
195
+ width: `calc(100% + ${x(a)})`,
196
+ marginLeft: `-${x(a)}`,
197
+ [`& > .${w.item}`]: {
198
+ paddingLeft: x(a)
199
+ }
200
+ } : (u = c) != null && u.includes(l) ? {} : {
201
+ width: "100%",
202
+ marginLeft: 0,
203
+ [`& > .${w.item}`]: {
204
+ paddingLeft: 0
205
+ }
206
+ };
207
+ });
208
+ }
209
+ return o;
210
+ }
211
+ function ie(e, r, t = {}) {
212
+ if (!e || e <= 0)
213
+ return [];
214
+ if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
215
+ return [t[`spacing-xs-${String(e)}`]];
216
+ const i = [];
217
+ return r.forEach((o) => {
218
+ const s = e[o];
219
+ Number(s) > 0 && i.push(t[`spacing-${o}-${String(s)}`]);
220
+ }), i;
221
+ }
222
+ const se = L("div", {
223
+ name: "MuiGrid",
224
+ slot: "Root",
225
+ overridesResolver: (e, r) => {
226
+ const {
227
+ ownerState: t
228
+ } = e, {
229
+ container: i,
230
+ direction: o,
231
+ item: s,
232
+ spacing: c,
233
+ wrap: p,
234
+ zeroMinWidth: l,
235
+ breakpoints: u
236
+ } = t;
237
+ let a = [];
238
+ i && (a = ie(c, u, r));
239
+ const f = [];
240
+ return u.forEach((m) => {
241
+ const d = t[m];
242
+ d && f.push(r[`grid-${m}-${String(d)}`]);
243
+ }), [r.root, i && r.container, s && r.item, l && r.zeroMinWidth, ...a, o !== "row" && r[`direction-xs-${String(o)}`], p !== "wrap" && r[`wrap-xs-${String(p)}`], ...f];
244
+ }
245
+ })(({
246
+ ownerState: e
247
+ }) => g({
248
+ boxSizing: "border-box"
249
+ }, e.container && {
250
+ display: "flex",
251
+ flexWrap: "wrap",
252
+ width: "100%"
253
+ }, e.item && {
254
+ margin: 0
255
+ // For instance, it's useful when used with a `figure` element.
256
+ }, e.zeroMinWidth && {
257
+ minWidth: 0
258
+ }, e.wrap !== "wrap" && {
259
+ flexWrap: e.wrap
260
+ }), re, oe, te, ne);
261
+ function ae(e, r) {
262
+ if (!e || e <= 0)
263
+ return [];
264
+ if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
265
+ return [`spacing-xs-${String(e)}`];
266
+ const t = [];
267
+ return r.forEach((i) => {
268
+ const o = e[i];
269
+ if (Number(o) > 0) {
270
+ const s = `spacing-${i}-${String(o)}`;
271
+ t.push(s);
272
+ }
273
+ }), t;
274
+ }
275
+ const ce = (e) => {
276
+ const {
277
+ classes: r,
278
+ container: t,
279
+ direction: i,
280
+ item: o,
281
+ spacing: s,
282
+ wrap: c,
283
+ zeroMinWidth: p,
284
+ breakpoints: l
285
+ } = e;
286
+ let u = [];
287
+ t && (u = ae(s, l));
288
+ const a = [];
289
+ l.forEach((m) => {
290
+ const d = e[m];
291
+ d && a.push(`grid-${m}-${String(d)}`);
292
+ });
293
+ const f = {
294
+ root: ["root", t && "container", o && "item", p && "zeroMinWidth", ...u, i !== "row" && `direction-xs-${String(i)}`, c !== "wrap" && `wrap-xs-${String(c)}`, ...a]
295
+ };
296
+ return F(f, J, r);
297
+ }, y = /* @__PURE__ */ S.forwardRef(function(r, t) {
298
+ const i = q({
299
+ props: r,
300
+ name: "MuiGrid"
301
+ }), {
302
+ breakpoints: o
303
+ } = Z(), s = A(i), {
304
+ className: c,
305
+ columns: p,
306
+ columnSpacing: l,
307
+ component: u = "div",
308
+ container: a = !1,
309
+ direction: f = "row",
310
+ item: m = !1,
311
+ rowSpacing: d,
312
+ spacing: O = 0,
313
+ wrap: P = "wrap",
314
+ zeroMinWidth: V = !1
315
+ } = s, $ = D(s, ee), M = d || O, B = l || O, R = S.useContext(C), k = a ? p || 12 : R, N = {}, G = g({}, $);
316
+ o.keys.forEach((h) => {
317
+ $[h] != null && (N[h] = $[h], delete G[h]);
318
+ });
319
+ const W = g({}, s, {
320
+ columns: k,
321
+ container: a,
322
+ direction: f,
323
+ item: m,
324
+ rowSpacing: M,
325
+ columnSpacing: B,
326
+ wrap: P,
327
+ zeroMinWidth: V,
328
+ spacing: O
329
+ }, N, {
330
+ breakpoints: o.keys
331
+ }), _ = ce(W);
332
+ return /* @__PURE__ */ j.jsx(C.Provider, {
333
+ value: k,
334
+ children: /* @__PURE__ */ j.jsx(se, g({
335
+ ownerState: W,
336
+ className: U(_.root, c),
337
+ as: u,
338
+ ref: t
339
+ }, G))
340
+ });
341
+ });
342
+ process.env.NODE_ENV !== "production" && (y.propTypes = {
343
+ // ----------------------------- Warning --------------------------------
344
+ // | These PropTypes are generated from the TypeScript type definitions |
345
+ // | To update them edit the d.ts file and run "yarn proptypes" |
346
+ // ----------------------------------------------------------------------
347
+ /**
348
+ * The content of the component.
349
+ */
350
+ children: n.node,
351
+ /**
352
+ * Override or extend the styles applied to the component.
353
+ */
354
+ classes: n.object,
355
+ /**
356
+ * @ignore
357
+ */
358
+ className: n.string,
359
+ /**
360
+ * The number of columns.
361
+ * @default 12
362
+ */
363
+ columns: n.oneOfType([n.arrayOf(n.number), n.number, n.object]),
364
+ /**
365
+ * Defines the horizontal space between the type `item` components.
366
+ * It overrides the value of the `spacing` prop.
367
+ */
368
+ columnSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
369
+ /**
370
+ * The component used for the root node.
371
+ * Either a string to use a HTML element or a component.
372
+ */
373
+ component: n.elementType,
374
+ /**
375
+ * If `true`, the component will have the flex *container* behavior.
376
+ * You should be wrapping *items* with a *container*.
377
+ * @default false
378
+ */
379
+ container: n.bool,
380
+ /**
381
+ * Defines the `flex-direction` style property.
382
+ * It is applied for all screen sizes.
383
+ * @default 'row'
384
+ */
385
+ direction: n.oneOfType([n.oneOf(["column-reverse", "column", "row-reverse", "row"]), n.arrayOf(n.oneOf(["column-reverse", "column", "row-reverse", "row"])), n.object]),
386
+ /**
387
+ * If `true`, the component will have the flex *item* behavior.
388
+ * You should be wrapping *items* with a *container*.
389
+ * @default false
390
+ */
391
+ item: n.bool,
392
+ /**
393
+ * If a number, it sets the number of columns the grid item uses.
394
+ * It can't be greater than the total number of columns of the container (12 by default).
395
+ * If 'auto', the grid item's width matches its content.
396
+ * If false, the prop is ignored.
397
+ * If true, the grid item's width grows to use the space available in the grid container.
398
+ * The value is applied for the `lg` breakpoint and wider screens if not overridden.
399
+ * @default false
400
+ */
401
+ lg: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
402
+ /**
403
+ * If a number, it sets the number of columns the grid item uses.
404
+ * It can't be greater than the total number of columns of the container (12 by default).
405
+ * If 'auto', the grid item's width matches its content.
406
+ * If false, the prop is ignored.
407
+ * If true, the grid item's width grows to use the space available in the grid container.
408
+ * The value is applied for the `md` breakpoint and wider screens if not overridden.
409
+ * @default false
410
+ */
411
+ md: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
412
+ /**
413
+ * Defines the vertical space between the type `item` components.
414
+ * It overrides the value of the `spacing` prop.
415
+ */
416
+ rowSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
417
+ /**
418
+ * If a number, it sets the number of columns the grid item uses.
419
+ * It can't be greater than the total number of columns of the container (12 by default).
420
+ * If 'auto', the grid item's width matches its content.
421
+ * If false, the prop is ignored.
422
+ * If true, the grid item's width grows to use the space available in the grid container.
423
+ * The value is applied for the `sm` breakpoint and wider screens if not overridden.
424
+ * @default false
425
+ */
426
+ sm: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
427
+ /**
428
+ * Defines the space between the type `item` components.
429
+ * It can only be used on a type `container` component.
430
+ * @default 0
431
+ */
432
+ spacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
433
+ /**
434
+ * The system prop that allows defining system overrides as well as additional CSS styles.
435
+ */
436
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
437
+ /**
438
+ * Defines the `flex-wrap` style property.
439
+ * It's applied for all screen sizes.
440
+ * @default 'wrap'
441
+ */
442
+ wrap: n.oneOf(["nowrap", "wrap-reverse", "wrap"]),
443
+ /**
444
+ * If a number, it sets the number of columns the grid item uses.
445
+ * It can't be greater than the total number of columns of the container (12 by default).
446
+ * If 'auto', the grid item's width matches its content.
447
+ * If false, the prop is ignored.
448
+ * If true, the grid item's width grows to use the space available in the grid container.
449
+ * The value is applied for the `xl` breakpoint and wider screens if not overridden.
450
+ * @default false
451
+ */
452
+ xl: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
453
+ /**
454
+ * If a number, it sets the number of columns the grid item uses.
455
+ * It can't be greater than the total number of columns of the container (12 by default).
456
+ * If 'auto', the grid item's width matches its content.
457
+ * If false, the prop is ignored.
458
+ * If true, the grid item's width grows to use the space available in the grid container.
459
+ * The value is applied for all the screen sizes with the lowest priority.
460
+ * @default false
461
+ */
462
+ xs: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
463
+ /**
464
+ * If `true`, it sets `min-width: 0` on the item.
465
+ * Refer to the limitations section of the documentation to better understand the use case.
466
+ * @default false
467
+ */
468
+ zeroMinWidth: n.bool
469
+ });
470
+ if (process.env.NODE_ENV !== "production") {
471
+ const e = H("Grid", y);
472
+ y["propTypes"] = g({}, y.propTypes, {
473
+ direction: e("container"),
474
+ lg: e("item"),
475
+ md: e("item"),
476
+ sm: e("item"),
477
+ spacing: e("container"),
478
+ wrap: e("container"),
479
+ xs: e("item"),
480
+ zeroMinWidth: e("item")
481
+ });
482
+ }
483
+ const ge = y;
484
+ export {
485
+ ge as G
486
+ };
@@ -0,0 +1,193 @@
1
+ import { a as k, _ as g } from "./extends-393586f3.js";
2
+ import * as c from "react";
3
+ import { P as n } from "./identifier-9dfe30d8.js";
4
+ import { u as B } from "./useTheme-014a54ad.js";
5
+ import { T as J, r as M, g as _ } from "./utils-129661c6.js";
6
+ import { j as Q } from "./jsx-runtime-944c88e2.js";
7
+ import { u as U } from "./useForkRef-0781dda0.js";
8
+ import { e as X } from "./elementAcceptingRef-803dfd80.js";
9
+ const Y = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
10
+ function x(m) {
11
+ return `scale(${m}, ${m ** 2})`;
12
+ }
13
+ const Z = {
14
+ entering: {
15
+ opacity: 1,
16
+ transform: x(1)
17
+ },
18
+ entered: {
19
+ opacity: 1,
20
+ transform: "none"
21
+ }
22
+ }, h = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), y = /* @__PURE__ */ c.forwardRef(function(T, w) {
23
+ const {
24
+ addEndListener: R,
25
+ appear: D = !0,
26
+ children: l,
27
+ easing: b,
28
+ in: j,
29
+ onEnter: v,
30
+ onEntered: P,
31
+ onEntering: G,
32
+ onExit: A,
33
+ onExited: H,
34
+ onExiting: O,
35
+ style: p,
36
+ timeout: r = "auto",
37
+ // eslint-disable-next-line react/prop-types
38
+ TransitionComponent: C = J
39
+ } = T, F = k(T, Y), L = c.useRef(), E = c.useRef(), s = B(), d = c.useRef(null), $ = U(d, l.ref, w), a = (t) => (i) => {
40
+ if (t) {
41
+ const o = d.current;
42
+ i === void 0 ? t(o) : t(o, i);
43
+ }
44
+ }, N = a(G), S = a((t, i) => {
45
+ M(t);
46
+ const {
47
+ duration: o,
48
+ delay: f,
49
+ easing: e
50
+ } = _({
51
+ style: p,
52
+ timeout: r,
53
+ easing: b
54
+ }, {
55
+ mode: "enter"
56
+ });
57
+ let u;
58
+ r === "auto" ? (u = s.transitions.getAutoHeightDuration(t.clientHeight), E.current = u) : u = o, t.style.transition = [s.transitions.create("opacity", {
59
+ duration: u,
60
+ delay: f
61
+ }), s.transitions.create("transform", {
62
+ duration: h ? u : u * 0.666,
63
+ delay: f,
64
+ easing: e
65
+ })].join(","), v && v(t, i);
66
+ }), W = a(P), q = a(O), z = a((t) => {
67
+ const {
68
+ duration: i,
69
+ delay: o,
70
+ easing: f
71
+ } = _({
72
+ style: p,
73
+ timeout: r,
74
+ easing: b
75
+ }, {
76
+ mode: "exit"
77
+ });
78
+ let e;
79
+ r === "auto" ? (e = s.transitions.getAutoHeightDuration(t.clientHeight), E.current = e) : e = i, t.style.transition = [s.transitions.create("opacity", {
80
+ duration: e,
81
+ delay: o
82
+ }), s.transitions.create("transform", {
83
+ duration: h ? e : e * 0.666,
84
+ delay: h ? o : o || e * 0.333,
85
+ easing: f
86
+ })].join(","), t.style.opacity = 0, t.style.transform = x(0.75), A && A(t);
87
+ }), K = a(H), V = (t) => {
88
+ r === "auto" && (L.current = setTimeout(t, E.current || 0)), R && R(d.current, t);
89
+ };
90
+ return c.useEffect(() => () => {
91
+ clearTimeout(L.current);
92
+ }, []), /* @__PURE__ */ Q.jsx(C, g({
93
+ appear: D,
94
+ in: j,
95
+ nodeRef: d,
96
+ onEnter: S,
97
+ onEntered: W,
98
+ onEntering: N,
99
+ onExit: z,
100
+ onExited: K,
101
+ onExiting: q,
102
+ addEndListener: V,
103
+ timeout: r === "auto" ? null : r
104
+ }, F, {
105
+ children: (t, i) => /* @__PURE__ */ c.cloneElement(l, g({
106
+ style: g({
107
+ opacity: 0,
108
+ transform: x(0.75),
109
+ visibility: t === "exited" && !j ? "hidden" : void 0
110
+ }, Z[t], p, l.props.style),
111
+ ref: $
112
+ }, i))
113
+ }));
114
+ });
115
+ process.env.NODE_ENV !== "production" && (y.propTypes = {
116
+ // ----------------------------- Warning --------------------------------
117
+ // | These PropTypes are generated from the TypeScript type definitions |
118
+ // | To update them edit the d.ts file and run "yarn proptypes" |
119
+ // ----------------------------------------------------------------------
120
+ /**
121
+ * Add a custom transition end trigger. Called with the transitioning DOM
122
+ * node and a done callback. Allows for more fine grained transition end
123
+ * logic. Note: Timeouts are still used as a fallback if provided.
124
+ */
125
+ addEndListener: n.func,
126
+ /**
127
+ * Perform the enter transition when it first mounts if `in` is also `true`.
128
+ * Set this to `false` to disable this behavior.
129
+ * @default true
130
+ */
131
+ appear: n.bool,
132
+ /**
133
+ * A single child content element.
134
+ */
135
+ children: X.isRequired,
136
+ /**
137
+ * The transition timing function.
138
+ * You may specify a single easing or a object containing enter and exit values.
139
+ */
140
+ easing: n.oneOfType([n.shape({
141
+ enter: n.string,
142
+ exit: n.string
143
+ }), n.string]),
144
+ /**
145
+ * If `true`, the component will transition in.
146
+ */
147
+ in: n.bool,
148
+ /**
149
+ * @ignore
150
+ */
151
+ onEnter: n.func,
152
+ /**
153
+ * @ignore
154
+ */
155
+ onEntered: n.func,
156
+ /**
157
+ * @ignore
158
+ */
159
+ onEntering: n.func,
160
+ /**
161
+ * @ignore
162
+ */
163
+ onExit: n.func,
164
+ /**
165
+ * @ignore
166
+ */
167
+ onExited: n.func,
168
+ /**
169
+ * @ignore
170
+ */
171
+ onExiting: n.func,
172
+ /**
173
+ * @ignore
174
+ */
175
+ style: n.object,
176
+ /**
177
+ * The duration for the transition, in milliseconds.
178
+ * You may specify a single timeout for all transitions, or individually with an object.
179
+ *
180
+ * Set to 'auto' to automatically calculate transition time based on height.
181
+ * @default 'auto'
182
+ */
183
+ timeout: n.oneOfType([n.oneOf(["auto"]), n.number, n.shape({
184
+ appear: n.number,
185
+ enter: n.number,
186
+ exit: n.number
187
+ })])
188
+ });
189
+ y.muiSupportAuto = !0;
190
+ const an = y;
191
+ export {
192
+ an as G
193
+ };
@@ -0,0 +1,9 @@
1
+ function p(r, n, l, t, u) {
2
+ if (process.env.NODE_ENV === "production")
3
+ return null;
4
+ const e = r[n], o = u || n;
5
+ return e == null ? null : e && e.nodeType !== 1 ? new Error(`Invalid ${t} \`${o}\` supplied to \`${l}\`. Expected an HTMLElement.`) : null;
6
+ }
7
+ export {
8
+ p as H
9
+ };