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,3 @@
1
+ export { default as KdpaTypography } from "./KdpaTypography";
2
+ export type { KdpaTypographyProps } from "./KdpaTypography";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { j as o } from "../jsx-runtime-944c88e2.js";
2
+ import { T as p } from "../Typography-dfa51fea.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 "../extendSxProp-f7714a31.js";
11
+ const c = (r) => /* @__PURE__ */ o.jsx(p, { ...r, children: r.children });
12
+ export {
13
+ c as KdpaTypography
14
+ };
@@ -0,0 +1,176 @@
1
+ import { _ as s, a as W } from "./extends-393586f3.js";
2
+ import * as j from "react";
3
+ import { g as C, h as f, P as t } from "./identifier-9dfe30d8.js";
4
+ import { g as M, s as O, u as P, c as R, a as N } from "./useThemeProps-7d04a175.js";
5
+ import { j as _ } from "./jsx-runtime-944c88e2.js";
6
+ import { e as U } from "./extendSxProp-f7714a31.js";
7
+ function E(a) {
8
+ return C("MuiTypography", a);
9
+ }
10
+ M("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
11
+ const $ = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], D = (a) => {
12
+ const {
13
+ align: o,
14
+ gutterBottom: r,
15
+ noWrap: n,
16
+ paragraph: i,
17
+ variant: e,
18
+ classes: h
19
+ } = a, p = {
20
+ root: ["root", e, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", n && "noWrap", i && "paragraph"]
21
+ };
22
+ return N(p, E, h);
23
+ }, L = O("span", {
24
+ name: "MuiTypography",
25
+ slot: "Root",
26
+ overridesResolver: (a, o) => {
27
+ const {
28
+ ownerState: r
29
+ } = a;
30
+ return [o.root, r.variant && o[r.variant], r.align !== "inherit" && o[`align${f(r.align)}`], r.noWrap && o.noWrap, r.gutterBottom && o.gutterBottom, r.paragraph && o.paragraph];
31
+ }
32
+ })(({
33
+ theme: a,
34
+ ownerState: o
35
+ }) => s({
36
+ margin: 0
37
+ }, o.variant && a.typography[o.variant], o.align !== "inherit" && {
38
+ textAlign: o.align
39
+ }, o.noWrap && {
40
+ overflow: "hidden",
41
+ textOverflow: "ellipsis",
42
+ whiteSpace: "nowrap"
43
+ }, o.gutterBottom && {
44
+ marginBottom: "0.35em"
45
+ }, o.paragraph && {
46
+ marginBottom: 16
47
+ })), u = {
48
+ h1: "h1",
49
+ h2: "h2",
50
+ h3: "h3",
51
+ h4: "h4",
52
+ h5: "h5",
53
+ h6: "h6",
54
+ subtitle1: "h6",
55
+ subtitle2: "h6",
56
+ body1: "p",
57
+ body2: "p",
58
+ inherit: "p"
59
+ }, V = {
60
+ primary: "primary.main",
61
+ textPrimary: "text.primary",
62
+ secondary: "secondary.main",
63
+ textSecondary: "text.secondary",
64
+ error: "error.main"
65
+ }, w = (a) => V[a] || a, d = /* @__PURE__ */ j.forwardRef(function(o, r) {
66
+ const n = P({
67
+ props: o,
68
+ name: "MuiTypography"
69
+ }), i = w(n.color), e = U(s({}, n, {
70
+ color: i
71
+ })), {
72
+ align: h = "inherit",
73
+ className: p,
74
+ component: l,
75
+ gutterBottom: b = !1,
76
+ noWrap: v = !1,
77
+ paragraph: c = !1,
78
+ variant: g = "body1",
79
+ variantMapping: m = u
80
+ } = e, T = W(e, $), y = s({}, e, {
81
+ align: h,
82
+ color: i,
83
+ className: p,
84
+ component: l,
85
+ gutterBottom: b,
86
+ noWrap: v,
87
+ paragraph: c,
88
+ variant: g,
89
+ variantMapping: m
90
+ }), x = l || (c ? "p" : m[g] || u[g]) || "span", B = D(y);
91
+ return /* @__PURE__ */ _.jsx(L, s({
92
+ as: x,
93
+ ref: r,
94
+ ownerState: y,
95
+ className: R(B.root, p)
96
+ }, T));
97
+ });
98
+ process.env.NODE_ENV !== "production" && (d.propTypes = {
99
+ // ----------------------------- Warning --------------------------------
100
+ // | These PropTypes are generated from the TypeScript type definitions |
101
+ // | To update them edit the d.ts file and run "yarn proptypes" |
102
+ // ----------------------------------------------------------------------
103
+ /**
104
+ * Set the text-align on the component.
105
+ * @default 'inherit'
106
+ */
107
+ align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
108
+ /**
109
+ * The content of the component.
110
+ */
111
+ children: t.node,
112
+ /**
113
+ * Override or extend the styles applied to the component.
114
+ */
115
+ classes: t.object,
116
+ /**
117
+ * @ignore
118
+ */
119
+ className: t.string,
120
+ /**
121
+ * The component used for the root node.
122
+ * Either a string to use a HTML element or a component.
123
+ */
124
+ component: t.elementType,
125
+ /**
126
+ * If `true`, the text will have a bottom margin.
127
+ * @default false
128
+ */
129
+ gutterBottom: t.bool,
130
+ /**
131
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
132
+ *
133
+ * Note that text overflow can only happen with block or inline-block level elements
134
+ * (the element needs to have a width in order to overflow).
135
+ * @default false
136
+ */
137
+ noWrap: t.bool,
138
+ /**
139
+ * If `true`, the element will be a paragraph element.
140
+ * @default false
141
+ */
142
+ paragraph: t.bool,
143
+ /**
144
+ * The system prop that allows defining system overrides as well as additional CSS styles.
145
+ */
146
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
147
+ /**
148
+ * Applies the theme typography styles.
149
+ * @default 'body1'
150
+ */
151
+ variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
152
+ /**
153
+ * The component maps the variant prop to a range of different HTML element types.
154
+ * For instance, subtitle1 to `<h6>`.
155
+ * If you wish to change that mapping, you can provide your own.
156
+ * Alternatively, you can use the `component` prop.
157
+ * @default {
158
+ * h1: 'h1',
159
+ * h2: 'h2',
160
+ * h3: 'h3',
161
+ * h4: 'h4',
162
+ * h5: 'h5',
163
+ * h6: 'h6',
164
+ * subtitle1: 'h6',
165
+ * subtitle2: 'h6',
166
+ * body1: 'p',
167
+ * body2: 'p',
168
+ * inherit: 'p',
169
+ * }
170
+ */
171
+ variantMapping: t.object
172
+ });
173
+ const F = d;
174
+ export {
175
+ F as T
176
+ };
@@ -0,0 +1,3 @@
1
+ export { default as KdpaFileUploader } from "./KdpaFileUploader/KdpaFileUploader";
2
+ export type { KdpaFileUploaderProps } from "./KdpaFileUploader/KdpaFileUploader";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Uploader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAClF,YAAY,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { j as t } from "../jsx-runtime-944c88e2.js";
2
+ import { G as a } from "../iconBase-800b43ff.js";
3
+ import { K as l } from "../KdpaSecondaryButton-14992523.js";
4
+ import "react";
5
+ import "../Tooltips/index.js";
6
+ import "../Tooltip-4b1baf1b.js";
7
+ import "../extends-393586f3.js";
8
+ import "../identifier-9dfe30d8.js";
9
+ import "../emotion-memoize.esm-021d0d4e.js";
10
+ import "../_commonjsHelpers-92157f1b.js";
11
+ import "../useThemeProps-7d04a175.js";
12
+ import "../emotion-is-prop-valid.esm-b7f48706.js";
13
+ import "../useTheme-014a54ad.js";
14
+ import "../Popper-490e6477.js";
15
+ import "../Portal-b4f8657f.js";
16
+ import "react-dom";
17
+ import "../useForkRef-0781dda0.js";
18
+ import "../useEventCallback-fe4fd69c.js";
19
+ import "../HTMLElementType-ff213f3c.js";
20
+ import "../exactProp-3aaa3ecc.js";
21
+ import "../ownerDocument-5430cd5b.js";
22
+ import "../chainPropTypes-004bf492.js";
23
+ import "../refType-af1a9f54.js";
24
+ import "../popper-78c6b162.js";
25
+ import "../useSlotProps-f238319f.js";
26
+ import "../useControlled-cc2d41cb.js";
27
+ import "../useId-e7dff7be.js";
28
+ import "../useIsFocusVisible-4693b580.js";
29
+ import "../Grow-151a20f6.js";
30
+ import "../utils-129661c6.js";
31
+ import "../TransitionGroupContext-7435e195.js";
32
+ import "../setPrototypeOf-98a00546.js";
33
+ import "../elementAcceptingRef-803dfd80.js";
34
+ import "../Zoom-b84bdc2b.js";
35
+ import "../Button-b93e890d.js";
36
+ import "../ButtonBase-0f9f324d.js";
37
+ import "../emotion-react.browser.esm-d563ed65.js";
38
+ import "../hoist-non-react-statics.cjs-ce2f2873.js";
39
+ import "../TransitionGroup-196acb6a.js";
40
+ import "../assertThisInitialized-05701a63.js";
41
+ import "../elementTypeAcceptingRef-6c34f16b.js";
42
+ function n(o) {
43
+ return a({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" } }, { tag: "polyline", attr: { points: "17 8 12 3 7 8" } }, { tag: "line", attr: { x1: "12", y1: "3", x2: "12", y2: "15" } }] })(o);
44
+ }
45
+ function Z({
46
+ onUpload: o,
47
+ label: i,
48
+ multiple: d = !1,
49
+ ...p
50
+ }) {
51
+ const e = (m) => {
52
+ const r = m.target.files;
53
+ r && o(r);
54
+ };
55
+ return /* @__PURE__ */ t.jsxs("label", { className: "kdpa-file-uploader", htmlFor: "kdpaFileUploader", children: [
56
+ i && /* @__PURE__ */ t.jsx("span", { className: "kdpa-file-uploader__label", children: i }),
57
+ /* @__PURE__ */ t.jsx(
58
+ l,
59
+ {
60
+ component: "label",
61
+ htmlFor: "kdpaFileUploader",
62
+ sx: { padding: "7px 7px", minWidth: "36px" },
63
+ children: /* @__PURE__ */ t.jsx(n, { size: 20 })
64
+ }
65
+ ),
66
+ /* @__PURE__ */ t.jsx(
67
+ "input",
68
+ {
69
+ id: "kdpaFileUploader",
70
+ type: "file",
71
+ ...p,
72
+ hidden: !0,
73
+ multiple: !0,
74
+ onChange: e
75
+ }
76
+ )
77
+ ] });
78
+ }
79
+ export {
80
+ Z as KdpaFileUploader
81
+ };
@@ -0,0 +1,163 @@
1
+ import { a as A, _ as f } from "./extends-393586f3.js";
2
+ import * as m from "react";
3
+ import { P as n } from "./identifier-9dfe30d8.js";
4
+ import { u as D } from "./useTheme-014a54ad.js";
5
+ import { T as F, r as V, g as h } from "./utils-129661c6.js";
6
+ import { j as W } from "./jsx-runtime-944c88e2.js";
7
+ import { u as $ } from "./useForkRef-0781dda0.js";
8
+ import { e as B } from "./elementAcceptingRef-803dfd80.js";
9
+ const G = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], H = {
10
+ entering: {
11
+ transform: "none"
12
+ },
13
+ entered: {
14
+ transform: "none"
15
+ }
16
+ }, y = /* @__PURE__ */ m.forwardRef(function(E, T) {
17
+ const o = D(), R = {
18
+ enter: o.transitions.duration.enteringScreen,
19
+ exit: o.transitions.duration.leavingScreen
20
+ }, {
21
+ addEndListener: u,
22
+ appear: b = !0,
23
+ children: a,
24
+ easing: p,
25
+ in: l,
26
+ onEnter: x,
27
+ onEntered: P,
28
+ onEntering: L,
29
+ onExit: g,
30
+ onExited: j,
31
+ onExiting: _,
32
+ style: d,
33
+ timeout: c = R,
34
+ // eslint-disable-next-line react/prop-types
35
+ TransitionComponent: v = F
36
+ } = E, w = A(E, G), s = m.useRef(null), Z = $(s, a.ref, T), r = (e) => (t) => {
37
+ if (e) {
38
+ const i = s.current;
39
+ t === void 0 ? e(i) : e(i, t);
40
+ }
41
+ }, C = r(L), O = r((e, t) => {
42
+ V(e);
43
+ const i = h({
44
+ style: d,
45
+ timeout: c,
46
+ easing: p
47
+ }, {
48
+ mode: "enter"
49
+ });
50
+ e.style.webkitTransition = o.transitions.create("transform", i), e.style.transition = o.transitions.create("transform", i), x && x(e, t);
51
+ }), k = r(P), N = r(_), S = r((e) => {
52
+ const t = h({
53
+ style: d,
54
+ timeout: c,
55
+ easing: p
56
+ }, {
57
+ mode: "exit"
58
+ });
59
+ e.style.webkitTransition = o.transitions.create("transform", t), e.style.transition = o.transitions.create("transform", t), g && g(e);
60
+ }), q = r(j), z = (e) => {
61
+ u && u(s.current, e);
62
+ };
63
+ return /* @__PURE__ */ W.jsx(v, f({
64
+ appear: b,
65
+ in: l,
66
+ nodeRef: s,
67
+ onEnter: O,
68
+ onEntered: k,
69
+ onEntering: C,
70
+ onExit: S,
71
+ onExited: q,
72
+ onExiting: N,
73
+ addEndListener: z,
74
+ timeout: c
75
+ }, w, {
76
+ children: (e, t) => /* @__PURE__ */ m.cloneElement(a, f({
77
+ style: f({
78
+ transform: "scale(0)",
79
+ visibility: e === "exited" && !l ? "hidden" : void 0
80
+ }, H[e], d, a.props.style),
81
+ ref: Z
82
+ }, t))
83
+ }));
84
+ });
85
+ process.env.NODE_ENV !== "production" && (y.propTypes = {
86
+ // ----------------------------- Warning --------------------------------
87
+ // | These PropTypes are generated from the TypeScript type definitions |
88
+ // | To update them edit the d.ts file and run "yarn proptypes" |
89
+ // ----------------------------------------------------------------------
90
+ /**
91
+ * Add a custom transition end trigger. Called with the transitioning DOM
92
+ * node and a done callback. Allows for more fine grained transition end
93
+ * logic. Note: Timeouts are still used as a fallback if provided.
94
+ */
95
+ addEndListener: n.func,
96
+ /**
97
+ * Perform the enter transition when it first mounts if `in` is also `true`.
98
+ * Set this to `false` to disable this behavior.
99
+ * @default true
100
+ */
101
+ appear: n.bool,
102
+ /**
103
+ * A single child content element.
104
+ */
105
+ children: B.isRequired,
106
+ /**
107
+ * The transition timing function.
108
+ * You may specify a single easing or a object containing enter and exit values.
109
+ */
110
+ easing: n.oneOfType([n.shape({
111
+ enter: n.string,
112
+ exit: n.string
113
+ }), n.string]),
114
+ /**
115
+ * If `true`, the component will transition in.
116
+ */
117
+ in: n.bool,
118
+ /**
119
+ * @ignore
120
+ */
121
+ onEnter: n.func,
122
+ /**
123
+ * @ignore
124
+ */
125
+ onEntered: n.func,
126
+ /**
127
+ * @ignore
128
+ */
129
+ onEntering: n.func,
130
+ /**
131
+ * @ignore
132
+ */
133
+ onExit: n.func,
134
+ /**
135
+ * @ignore
136
+ */
137
+ onExited: n.func,
138
+ /**
139
+ * @ignore
140
+ */
141
+ onExiting: n.func,
142
+ /**
143
+ * @ignore
144
+ */
145
+ style: n.object,
146
+ /**
147
+ * The duration for the transition, in milliseconds.
148
+ * You may specify a single timeout for all transitions, or individually with an object.
149
+ * @default {
150
+ * enter: theme.transitions.duration.enteringScreen,
151
+ * exit: theme.transitions.duration.leavingScreen,
152
+ * }
153
+ */
154
+ timeout: n.oneOfType([n.number, n.shape({
155
+ appear: n.number,
156
+ enter: n.number,
157
+ exit: n.number
158
+ })])
159
+ });
160
+ const nn = y;
161
+ export {
162
+ nn as Z
163
+ };
@@ -0,0 +1,36 @@
1
+ var f = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function l(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ function a(e) {
6
+ if (e.__esModule)
7
+ return e;
8
+ var r = e.default;
9
+ if (typeof r == "function") {
10
+ var o = function n() {
11
+ if (this instanceof n) {
12
+ var t = [null];
13
+ t.push.apply(t, arguments);
14
+ var u = Function.bind.apply(r, t);
15
+ return new u();
16
+ }
17
+ return r.apply(this, arguments);
18
+ };
19
+ o.prototype = r.prototype;
20
+ } else
21
+ o = {};
22
+ return Object.defineProperty(o, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
23
+ var t = Object.getOwnPropertyDescriptor(e, n);
24
+ Object.defineProperty(o, n, t.get ? t : {
25
+ enumerable: !0,
26
+ get: function() {
27
+ return e[n];
28
+ }
29
+ });
30
+ }), o;
31
+ }
32
+ export {
33
+ a,
34
+ f as c,
35
+ l as g
36
+ };
@@ -0,0 +1,8 @@
1
+ function i(e) {
2
+ if (e === void 0)
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ return e;
5
+ }
6
+ export {
7
+ i as _
8
+ };
@@ -0,0 +1,8 @@
1
+ function o(r, e) {
2
+ return process.env.NODE_ENV === "production" ? () => null : function(...n) {
3
+ return r(...n) || e(...n);
4
+ };
5
+ }
6
+ export {
7
+ o as c
8
+ };
@@ -0,0 +1,9 @@
1
+ function u(...i) {
2
+ return i.reduce((n, t) => t == null ? n : function(...e) {
3
+ n.apply(this, e), t.apply(this, e);
4
+ }, () => {
5
+ });
6
+ }
7
+ export {
8
+ u as c
9
+ };