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,356 @@
1
+ import { _ as i, a as X } from "./extends-393586f3.js";
2
+ import * as d from "react";
3
+ import { g as Y, h as n, P as e } from "./identifier-9dfe30d8.js";
4
+ import { g as z, s as u, u as H, c as y, a as q } from "./useThemeProps-7d04a175.js";
5
+ import { u as G } from "./useTheme-014a54ad.js";
6
+ import { j as s } from "./jsx-runtime-944c88e2.js";
7
+ import { B as J, M as Q } from "./Modal-5f23fcfd.js";
8
+ import { M as B } from "./Paper-aaec61a3.js";
9
+ import { u as Z } from "./useId-e7dff7be.js";
10
+ import { F as ee } from "./Fade-aabbd0cb.js";
11
+ function oe(a) {
12
+ return Y("MuiDialog", a);
13
+ }
14
+ const ae = z("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), k = ae, T = /* @__PURE__ */ d.createContext({});
15
+ process.env.NODE_ENV !== "production" && (T.displayName = "DialogContext");
16
+ const re = T, ie = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], ne = u(J, {
17
+ name: "MuiDialog",
18
+ slot: "Backdrop",
19
+ overrides: (a, o) => o.backdrop
20
+ })({
21
+ // Improve scrollable dialog support.
22
+ zIndex: -1
23
+ }), te = (a) => {
24
+ const {
25
+ classes: o,
26
+ scroll: r,
27
+ maxWidth: t,
28
+ fullWidth: p,
29
+ fullScreen: m
30
+ } = a, b = {
31
+ root: ["root"],
32
+ container: ["container", `scroll${n(r)}`],
33
+ paper: ["paper", `paperScroll${n(r)}`, `paperWidth${n(String(t))}`, p && "paperFullWidth", m && "paperFullScreen"]
34
+ };
35
+ return q(b, oe, o);
36
+ }, le = u(Q, {
37
+ name: "MuiDialog",
38
+ slot: "Root",
39
+ overridesResolver: (a, o) => o.root
40
+ })({
41
+ "@media print": {
42
+ // Use !important to override the Modal inline-style.
43
+ position: "absolute !important"
44
+ }
45
+ }), se = u("div", {
46
+ name: "MuiDialog",
47
+ slot: "Container",
48
+ overridesResolver: (a, o) => {
49
+ const {
50
+ ownerState: r
51
+ } = a;
52
+ return [o.container, o[`scroll${n(r.scroll)}`]];
53
+ }
54
+ })(({
55
+ ownerState: a
56
+ }) => i({
57
+ height: "100%",
58
+ "@media print": {
59
+ height: "auto"
60
+ },
61
+ // We disable the focus ring for mouse, touch and keyboard users.
62
+ outline: 0
63
+ }, a.scroll === "paper" && {
64
+ display: "flex",
65
+ justifyContent: "center",
66
+ alignItems: "center"
67
+ }, a.scroll === "body" && {
68
+ overflowY: "auto",
69
+ overflowX: "hidden",
70
+ textAlign: "center",
71
+ "&:after": {
72
+ content: '""',
73
+ display: "inline-block",
74
+ verticalAlign: "middle",
75
+ height: "100%",
76
+ width: "0"
77
+ }
78
+ })), pe = u(B, {
79
+ name: "MuiDialog",
80
+ slot: "Paper",
81
+ overridesResolver: (a, o) => {
82
+ const {
83
+ ownerState: r
84
+ } = a;
85
+ return [o.paper, o[`scrollPaper${n(r.scroll)}`], o[`paperWidth${n(String(r.maxWidth))}`], r.fullWidth && o.paperFullWidth, r.fullScreen && o.paperFullScreen];
86
+ }
87
+ })(({
88
+ theme: a,
89
+ ownerState: o
90
+ }) => i({
91
+ margin: 32,
92
+ position: "relative",
93
+ overflowY: "auto",
94
+ // Fix IE11 issue, to remove at some point.
95
+ "@media print": {
96
+ overflowY: "visible",
97
+ boxShadow: "none"
98
+ }
99
+ }, o.scroll === "paper" && {
100
+ display: "flex",
101
+ flexDirection: "column",
102
+ maxHeight: "calc(100% - 64px)"
103
+ }, o.scroll === "body" && {
104
+ display: "inline-block",
105
+ verticalAlign: "middle",
106
+ textAlign: "left"
107
+ // 'initial' doesn't work on IE11
108
+ }, !o.maxWidth && {
109
+ maxWidth: "calc(100% - 64px)"
110
+ }, o.maxWidth === "xs" && {
111
+ maxWidth: a.breakpoints.unit === "px" ? Math.max(a.breakpoints.values.xs, 444) : `${a.breakpoints.values.xs}${a.breakpoints.unit}`,
112
+ [`&.${k.paperScrollBody}`]: {
113
+ [a.breakpoints.down(Math.max(a.breakpoints.values.xs, 444) + 32 * 2)]: {
114
+ maxWidth: "calc(100% - 64px)"
115
+ }
116
+ }
117
+ }, o.maxWidth && o.maxWidth !== "xs" && {
118
+ maxWidth: `${a.breakpoints.values[o.maxWidth]}${a.breakpoints.unit}`,
119
+ [`&.${k.paperScrollBody}`]: {
120
+ [a.breakpoints.down(a.breakpoints.values[o.maxWidth] + 32 * 2)]: {
121
+ maxWidth: "calc(100% - 64px)"
122
+ }
123
+ }
124
+ }, o.fullWidth && {
125
+ width: "calc(100% - 64px)"
126
+ }, o.fullScreen && {
127
+ margin: 0,
128
+ width: "100%",
129
+ maxWidth: "100%",
130
+ height: "100%",
131
+ maxHeight: "none",
132
+ borderRadius: 0,
133
+ [`&.${k.paperScrollBody}`]: {
134
+ margin: 0,
135
+ maxWidth: "100%"
136
+ }
137
+ })), M = /* @__PURE__ */ d.forwardRef(function(o, r) {
138
+ const t = H({
139
+ props: o,
140
+ name: "MuiDialog"
141
+ }), p = G(), m = {
142
+ enter: p.transitions.duration.enteringScreen,
143
+ exit: p.transitions.duration.leavingScreen
144
+ }, {
145
+ "aria-describedby": b,
146
+ "aria-labelledby": S,
147
+ BackdropComponent: j,
148
+ BackdropProps: $,
149
+ children: w,
150
+ className: N,
151
+ disableEscapeKeyDown: W = !1,
152
+ fullScreen: R = !1,
153
+ fullWidth: E = !1,
154
+ maxWidth: F = "sm",
155
+ onBackdropClick: C,
156
+ onClose: x,
157
+ open: D,
158
+ PaperComponent: O = B,
159
+ PaperProps: P = {},
160
+ scroll: _ = "paper",
161
+ TransitionComponent: A = ee,
162
+ transitionDuration: v = m,
163
+ TransitionProps: I
164
+ } = t, K = X(t, ie), c = i({}, t, {
165
+ disableEscapeKeyDown: W,
166
+ fullScreen: R,
167
+ fullWidth: E,
168
+ maxWidth: F,
169
+ scroll: _
170
+ }), h = te(c), f = d.useRef(), L = (l) => {
171
+ f.current = l.target === l.currentTarget;
172
+ }, U = (l) => {
173
+ f.current && (f.current = null, C && C(l), x && x(l, "backdropClick"));
174
+ }, g = Z(S), V = d.useMemo(() => ({
175
+ titleId: g
176
+ }), [g]);
177
+ return /* @__PURE__ */ s.jsx(le, i({
178
+ className: y(h.root, N),
179
+ closeAfterTransition: !0,
180
+ components: {
181
+ Backdrop: ne
182
+ },
183
+ componentsProps: {
184
+ backdrop: i({
185
+ transitionDuration: v,
186
+ as: j
187
+ }, $)
188
+ },
189
+ disableEscapeKeyDown: W,
190
+ onClose: x,
191
+ open: D,
192
+ ref: r,
193
+ onClick: U,
194
+ ownerState: c
195
+ }, K, {
196
+ children: /* @__PURE__ */ s.jsx(A, i({
197
+ appear: !0,
198
+ in: D,
199
+ timeout: v,
200
+ role: "presentation"
201
+ }, I, {
202
+ children: /* @__PURE__ */ s.jsx(se, {
203
+ className: y(h.container),
204
+ onMouseDown: L,
205
+ ownerState: c,
206
+ children: /* @__PURE__ */ s.jsx(pe, i({
207
+ as: O,
208
+ elevation: 24,
209
+ role: "dialog",
210
+ "aria-describedby": b,
211
+ "aria-labelledby": g
212
+ }, P, {
213
+ className: y(h.paper, P.className),
214
+ ownerState: c,
215
+ children: /* @__PURE__ */ s.jsx(re.Provider, {
216
+ value: V,
217
+ children: w
218
+ })
219
+ }))
220
+ })
221
+ }))
222
+ }));
223
+ });
224
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
225
+ // ----------------------------- Warning --------------------------------
226
+ // | These PropTypes are generated from the TypeScript type definitions |
227
+ // | To update them edit the d.ts file and run "yarn proptypes" |
228
+ // ----------------------------------------------------------------------
229
+ /**
230
+ * The id(s) of the element(s) that describe the dialog.
231
+ */
232
+ "aria-describedby": e.string,
233
+ /**
234
+ * The id(s) of the element(s) that label the dialog.
235
+ */
236
+ "aria-labelledby": e.string,
237
+ /**
238
+ * A backdrop component. This prop enables custom backdrop rendering.
239
+ * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
240
+ * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
241
+ * @default styled(Backdrop, {
242
+ * name: 'MuiModal',
243
+ * slot: 'Backdrop',
244
+ * overridesResolver: (props, styles) => {
245
+ * return styles.backdrop;
246
+ * },
247
+ * })({
248
+ * zIndex: -1,
249
+ * })
250
+ */
251
+ BackdropComponent: e.elementType,
252
+ /**
253
+ * @ignore
254
+ */
255
+ BackdropProps: e.object,
256
+ /**
257
+ * Dialog children, usually the included sub-components.
258
+ */
259
+ children: e.node,
260
+ /**
261
+ * Override or extend the styles applied to the component.
262
+ */
263
+ classes: e.object,
264
+ /**
265
+ * @ignore
266
+ */
267
+ className: e.string,
268
+ /**
269
+ * If `true`, hitting escape will not fire the `onClose` callback.
270
+ * @default false
271
+ */
272
+ disableEscapeKeyDown: e.bool,
273
+ /**
274
+ * If `true`, the dialog is full-screen.
275
+ * @default false
276
+ */
277
+ fullScreen: e.bool,
278
+ /**
279
+ * If `true`, the dialog stretches to `maxWidth`.
280
+ *
281
+ * Notice that the dialog width grow is limited by the default margin.
282
+ * @default false
283
+ */
284
+ fullWidth: e.bool,
285
+ /**
286
+ * Determine the max-width of the dialog.
287
+ * The dialog width grows with the size of the screen.
288
+ * Set to `false` to disable `maxWidth`.
289
+ * @default 'sm'
290
+ */
291
+ maxWidth: e.oneOfType([e.oneOf(["xs", "sm", "md", "lg", "xl", !1]), e.string]),
292
+ /**
293
+ * Callback fired when the backdrop is clicked.
294
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
295
+ */
296
+ onBackdropClick: e.func,
297
+ /**
298
+ * Callback fired when the component requests to be closed.
299
+ *
300
+ * @param {object} event The event source of the callback.
301
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
302
+ */
303
+ onClose: e.func,
304
+ /**
305
+ * If `true`, the component is shown.
306
+ */
307
+ open: e.bool.isRequired,
308
+ /**
309
+ * The component used to render the body of the dialog.
310
+ * @default Paper
311
+ */
312
+ PaperComponent: e.elementType,
313
+ /**
314
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
315
+ * @default {}
316
+ */
317
+ PaperProps: e.object,
318
+ /**
319
+ * Determine the container for scrolling the dialog.
320
+ * @default 'paper'
321
+ */
322
+ scroll: e.oneOf(["body", "paper"]),
323
+ /**
324
+ * The system prop that allows defining system overrides as well as additional CSS styles.
325
+ */
326
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
327
+ /**
328
+ * The component used for the transition.
329
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
330
+ * @default Fade
331
+ */
332
+ TransitionComponent: e.elementType,
333
+ /**
334
+ * The duration for the transition, in milliseconds.
335
+ * You may specify a single timeout for all transitions, or individually with an object.
336
+ * @default {
337
+ * enter: theme.transitions.duration.enteringScreen,
338
+ * exit: theme.transitions.duration.leavingScreen,
339
+ * }
340
+ */
341
+ transitionDuration: e.oneOfType([e.number, e.shape({
342
+ appear: e.number,
343
+ enter: e.number,
344
+ exit: e.number
345
+ })]),
346
+ /**
347
+ * Props applied to the transition element.
348
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
349
+ */
350
+ TransitionProps: e.object
351
+ });
352
+ const ye = M;
353
+ export {
354
+ ye as M,
355
+ k as d
356
+ };
@@ -0,0 +1,4 @@
1
+ export { default as KdpaDivider } from "./KdpaDivider";
2
+ export type { KdpaDividerProps } from "./KdpaDivider";
3
+ export type { KdpaDividerCustomProps } from "./KdpaDivider";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Divider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { j as r } from "../jsx-runtime-944c88e2.js";
2
+ import { D as t } from "../Divider-cadf67a7.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 "../dividerClasses-99758da7.js";
11
+ function u({
12
+ gridActionsStyle: e = !1,
13
+ ...i
14
+ }) {
15
+ return e ? /* @__PURE__ */ r.jsx(
16
+ t,
17
+ {
18
+ orientation: "vertical",
19
+ variant: "middle",
20
+ flexItem: !0,
21
+ sx: {
22
+ height: "25px",
23
+ alignSelf: "center"
24
+ },
25
+ ...i
26
+ }
27
+ ) : /* @__PURE__ */ r.jsx(t, { ...i });
28
+ }
29
+ export {
30
+ u as KdpaDivider
31
+ };
@@ -0,0 +1,231 @@
1
+ import { _ as o, a as R } from "./extends-393586f3.js";
2
+ import * as w from "react";
3
+ import { a as C, P as e } from "./identifier-9dfe30d8.js";
4
+ import { s as m, u as T, c as W, a as j } from "./useThemeProps-7d04a175.js";
5
+ import { g as I } from "./dividerClasses-99758da7.js";
6
+ import { j as v } from "./jsx-runtime-944c88e2.js";
7
+ const O = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"], $ = (t) => {
8
+ const {
9
+ absolute: i,
10
+ children: r,
11
+ classes: l,
12
+ flexItem: c,
13
+ light: s,
14
+ orientation: a,
15
+ textAlign: n,
16
+ variant: d
17
+ } = t;
18
+ return j({
19
+ root: ["root", i && "absolute", d, s && "light", a === "vertical" && "vertical", c && "flexItem", r && "withChildren", r && a === "vertical" && "withChildrenVertical", n === "right" && a !== "vertical" && "textAlignRight", n === "left" && a !== "vertical" && "textAlignLeft"],
20
+ wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
21
+ }, I, l);
22
+ }, L = m("div", {
23
+ name: "MuiDivider",
24
+ slot: "Root",
25
+ overridesResolver: (t, i) => {
26
+ const {
27
+ ownerState: r
28
+ } = t;
29
+ return [i.root, r.absolute && i.absolute, i[r.variant], r.light && i.light, r.orientation === "vertical" && i.vertical, r.flexItem && i.flexItem, r.children && i.withChildren, r.children && r.orientation === "vertical" && i.withChildrenVertical, r.textAlign === "right" && r.orientation !== "vertical" && i.textAlignRight, r.textAlign === "left" && r.orientation !== "vertical" && i.textAlignLeft];
30
+ }
31
+ })(({
32
+ theme: t,
33
+ ownerState: i
34
+ }) => o({
35
+ margin: 0,
36
+ // Reset browser default style.
37
+ flexShrink: 0,
38
+ borderWidth: 0,
39
+ borderStyle: "solid",
40
+ borderColor: (t.vars || t).palette.divider,
41
+ borderBottomWidth: "thin"
42
+ }, i.absolute && {
43
+ position: "absolute",
44
+ bottom: 0,
45
+ left: 0,
46
+ width: "100%"
47
+ }, i.light && {
48
+ borderColor: t.vars ? `rgba(${t.vars.palette.dividerChannel} / 0.08)` : C(t.palette.divider, 0.08)
49
+ }, i.variant === "inset" && {
50
+ marginLeft: 72
51
+ }, i.variant === "middle" && i.orientation === "horizontal" && {
52
+ marginLeft: t.spacing(2),
53
+ marginRight: t.spacing(2)
54
+ }, i.variant === "middle" && i.orientation === "vertical" && {
55
+ marginTop: t.spacing(1),
56
+ marginBottom: t.spacing(1)
57
+ }, i.orientation === "vertical" && {
58
+ height: "100%",
59
+ borderBottomWidth: 0,
60
+ borderRightWidth: "thin"
61
+ }, i.flexItem && {
62
+ alignSelf: "stretch",
63
+ height: "auto"
64
+ }), ({
65
+ ownerState: t
66
+ }) => o({}, t.children && {
67
+ display: "flex",
68
+ whiteSpace: "nowrap",
69
+ textAlign: "center",
70
+ border: 0,
71
+ "&::before, &::after": {
72
+ content: '""',
73
+ alignSelf: "center"
74
+ }
75
+ }), ({
76
+ theme: t,
77
+ ownerState: i
78
+ }) => o({}, i.children && i.orientation !== "vertical" && {
79
+ "&::before, &::after": {
80
+ width: "100%",
81
+ borderTop: `thin solid ${(t.vars || t).palette.divider}`
82
+ }
83
+ }), ({
84
+ theme: t,
85
+ ownerState: i
86
+ }) => o({}, i.children && i.orientation === "vertical" && {
87
+ flexDirection: "column",
88
+ "&::before, &::after": {
89
+ height: "100%",
90
+ borderLeft: `thin solid ${(t.vars || t).palette.divider}`
91
+ }
92
+ }), ({
93
+ ownerState: t
94
+ }) => o({}, t.textAlign === "right" && t.orientation !== "vertical" && {
95
+ "&::before": {
96
+ width: "90%"
97
+ },
98
+ "&::after": {
99
+ width: "10%"
100
+ }
101
+ }, t.textAlign === "left" && t.orientation !== "vertical" && {
102
+ "&::before": {
103
+ width: "10%"
104
+ },
105
+ "&::after": {
106
+ width: "90%"
107
+ }
108
+ })), N = m("span", {
109
+ name: "MuiDivider",
110
+ slot: "Wrapper",
111
+ overridesResolver: (t, i) => {
112
+ const {
113
+ ownerState: r
114
+ } = t;
115
+ return [i.wrapper, r.orientation === "vertical" && i.wrapperVertical];
116
+ }
117
+ })(({
118
+ theme: t,
119
+ ownerState: i
120
+ }) => o({
121
+ display: "inline-block",
122
+ paddingLeft: `calc(${t.spacing(1)} * 1.2)`,
123
+ paddingRight: `calc(${t.spacing(1)} * 1.2)`
124
+ }, i.orientation === "vertical" && {
125
+ paddingTop: `calc(${t.spacing(1)} * 1.2)`,
126
+ paddingBottom: `calc(${t.spacing(1)} * 1.2)`
127
+ })), b = /* @__PURE__ */ w.forwardRef(function(i, r) {
128
+ const l = T({
129
+ props: i,
130
+ name: "MuiDivider"
131
+ }), {
132
+ absolute: c = !1,
133
+ children: s,
134
+ className: a,
135
+ component: n = s ? "div" : "hr",
136
+ flexItem: d = !1,
137
+ light: f = !1,
138
+ orientation: x = "horizontal",
139
+ role: g = n !== "hr" ? "separator" : void 0,
140
+ textAlign: u = "center",
141
+ variant: A = "fullWidth"
142
+ } = l, D = R(l, O), p = o({}, l, {
143
+ absolute: c,
144
+ component: n,
145
+ flexItem: d,
146
+ light: f,
147
+ orientation: x,
148
+ role: g,
149
+ textAlign: u,
150
+ variant: A
151
+ }), h = $(p);
152
+ return /* @__PURE__ */ v.jsx(L, o({
153
+ as: n,
154
+ className: W(h.root, a),
155
+ role: g,
156
+ ref: r,
157
+ ownerState: p
158
+ }, D, {
159
+ children: s ? /* @__PURE__ */ v.jsx(N, {
160
+ className: h.wrapper,
161
+ ownerState: p,
162
+ children: s
163
+ }) : null
164
+ }));
165
+ });
166
+ process.env.NODE_ENV !== "production" && (b.propTypes = {
167
+ // ----------------------------- Warning --------------------------------
168
+ // | These PropTypes are generated from the TypeScript type definitions |
169
+ // | To update them edit the d.ts file and run "yarn proptypes" |
170
+ // ----------------------------------------------------------------------
171
+ /**
172
+ * Absolutely position the element.
173
+ * @default false
174
+ */
175
+ absolute: e.bool,
176
+ /**
177
+ * The content of the component.
178
+ */
179
+ children: e.node,
180
+ /**
181
+ * Override or extend the styles applied to the component.
182
+ */
183
+ classes: e.object,
184
+ /**
185
+ * @ignore
186
+ */
187
+ className: e.string,
188
+ /**
189
+ * The component used for the root node.
190
+ * Either a string to use a HTML element or a component.
191
+ */
192
+ component: e.elementType,
193
+ /**
194
+ * If `true`, a vertical divider will have the correct height when used in flex container.
195
+ * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
196
+ * @default false
197
+ */
198
+ flexItem: e.bool,
199
+ /**
200
+ * If `true`, the divider will have a lighter color.
201
+ * @default false
202
+ */
203
+ light: e.bool,
204
+ /**
205
+ * The component orientation.
206
+ * @default 'horizontal'
207
+ */
208
+ orientation: e.oneOf(["horizontal", "vertical"]),
209
+ /**
210
+ * @ignore
211
+ */
212
+ role: e.string,
213
+ /**
214
+ * The system prop that allows defining system overrides as well as additional CSS styles.
215
+ */
216
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
217
+ /**
218
+ * The text alignment.
219
+ * @default 'center'
220
+ */
221
+ textAlign: e.oneOf(["center", "left", "right"]),
222
+ /**
223
+ * The variant to use.
224
+ * @default 'fullWidth'
225
+ */
226
+ variant: e.oneOfType([e.oneOf(["fullWidth", "inset", "middle"]), e.string])
227
+ });
228
+ const z = b;
229
+ export {
230
+ z as D
231
+ };
@@ -0,0 +1,2 @@
1
+ export { default as KdpaDropZone } from "./KdpaDropZone";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DropZone/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}