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,490 @@
1
+ import { a as q, _ as v } from "./extends-393586f3.js";
2
+ import { g as K, P as e, o as Q } from "./identifier-9dfe30d8.js";
3
+ import * as n from "react";
4
+ import { j as U } from "./jsx-runtime-944c88e2.js";
5
+ import { g as X, a as Y, s as Z, u as ee } from "./useThemeProps-7d04a175.js";
6
+ import { P as oe, u as te } from "./Portal-b4f8657f.js";
7
+ import { o as W } from "./ownerDocument-5430cd5b.js";
8
+ import { c as ne } from "./chainPropTypes-004bf492.js";
9
+ import { H as C } from "./HTMLElementType-ff213f3c.js";
10
+ import { r as F } from "./refType-af1a9f54.js";
11
+ import { u as A } from "./useForkRef-0781dda0.js";
12
+ import { a as H } from "./useEventCallback-fe4fd69c.js";
13
+ import { c as re } from "./popper-78c6b162.js";
14
+ import { u as se } from "./useSlotProps-f238319f.js";
15
+ function pe(t) {
16
+ return K("MuiPopper", t);
17
+ }
18
+ X("MuiPopper", ["root"]);
19
+ const ie = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], ae = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
20
+ function le(t, o) {
21
+ if (o === "ltr")
22
+ return t;
23
+ switch (t) {
24
+ case "bottom-end":
25
+ return "bottom-start";
26
+ case "bottom-start":
27
+ return "bottom-end";
28
+ case "top-end":
29
+ return "top-start";
30
+ case "top-start":
31
+ return "top-end";
32
+ default:
33
+ return t;
34
+ }
35
+ }
36
+ function k(t) {
37
+ return typeof t == "function" ? t() : t;
38
+ }
39
+ function I(t) {
40
+ return t.nodeType !== void 0;
41
+ }
42
+ function ce(t) {
43
+ return !I(t);
44
+ }
45
+ const fe = () => Y({
46
+ root: ["root"]
47
+ }, te(pe)), de = {}, ue = /* @__PURE__ */ n.forwardRef(function(o, s) {
48
+ var p;
49
+ const {
50
+ anchorEl: i,
51
+ children: a,
52
+ direction: g,
53
+ disablePortal: m,
54
+ modifiers: l,
55
+ open: O,
56
+ placement: h,
57
+ popperOptions: c,
58
+ popperRef: R,
59
+ slotProps: x = {},
60
+ slots: M = {},
61
+ TransitionProps: f
62
+ // @ts-ignore internal logic
63
+ // prevent from spreading to DOM, it can come from the parent component e.g. Select.
64
+ } = o, j = q(o, ie), T = n.useRef(null), w = A(T, s), r = n.useRef(null), d = A(r, R), P = n.useRef(d);
65
+ H(() => {
66
+ P.current = d;
67
+ }, [d]), n.useImperativeHandle(R, () => r.current, []);
68
+ const y = le(h, g), [E, S] = n.useState(y), [u, _] = n.useState(k(i));
69
+ n.useEffect(() => {
70
+ r.current && r.current.forceUpdate();
71
+ }), n.useEffect(() => {
72
+ i && _(k(i));
73
+ }, [i]), H(() => {
74
+ if (!u || !O)
75
+ return;
76
+ const J = (b) => {
77
+ S(b.placement);
78
+ };
79
+ if (process.env.NODE_ENV !== "production" && u && I(u) && u.nodeType === 1) {
80
+ const b = u.getBoundingClientRect();
81
+ process.env.NODE_ENV !== "test" && b.top === 0 && b.left === 0 && b.right === 0 && b.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
82
+ `));
83
+ }
84
+ let N = [{
85
+ name: "preventOverflow",
86
+ options: {
87
+ altBoundary: m
88
+ }
89
+ }, {
90
+ name: "flip",
91
+ options: {
92
+ altBoundary: m
93
+ }
94
+ }, {
95
+ name: "onUpdate",
96
+ enabled: !0,
97
+ phase: "afterWrite",
98
+ fn: ({
99
+ state: b
100
+ }) => {
101
+ J(b);
102
+ }
103
+ }];
104
+ l != null && (N = N.concat(l)), c && c.modifiers != null && (N = N.concat(c.modifiers));
105
+ const V = re(u, T.current, v({
106
+ placement: y
107
+ }, c, {
108
+ modifiers: N
109
+ }));
110
+ return P.current(V), () => {
111
+ V.destroy(), P.current(null);
112
+ };
113
+ }, [u, m, l, O, c, y]);
114
+ const B = {
115
+ placement: E
116
+ };
117
+ f !== null && (B.TransitionProps = f);
118
+ const z = fe(), D = (p = M.root) != null ? p : "div", G = se({
119
+ elementType: D,
120
+ externalSlotProps: x.root,
121
+ externalForwardedProps: j,
122
+ additionalProps: {
123
+ role: "tooltip",
124
+ ref: w
125
+ },
126
+ ownerState: o,
127
+ className: z.root
128
+ });
129
+ return /* @__PURE__ */ U.jsx(D, v({}, G, {
130
+ children: typeof a == "function" ? a(B) : a
131
+ }));
132
+ }), L = /* @__PURE__ */ n.forwardRef(function(o, s) {
133
+ const {
134
+ anchorEl: p,
135
+ children: i,
136
+ container: a,
137
+ direction: g = "ltr",
138
+ disablePortal: m = !1,
139
+ keepMounted: l = !1,
140
+ modifiers: O,
141
+ open: h,
142
+ placement: c = "bottom",
143
+ popperOptions: R = de,
144
+ popperRef: x,
145
+ style: M,
146
+ transition: f = !1,
147
+ slotProps: j = {},
148
+ slots: T = {}
149
+ } = o, w = q(o, ae), [r, d] = n.useState(!0), P = () => {
150
+ d(!1);
151
+ }, y = () => {
152
+ d(!0);
153
+ };
154
+ if (!l && !h && (!f || r))
155
+ return null;
156
+ let E;
157
+ if (a)
158
+ E = a;
159
+ else if (p) {
160
+ const _ = k(p);
161
+ E = _ && I(_) ? W(_).body : W(null).body;
162
+ }
163
+ const S = !h && l && (!f || r) ? "none" : void 0, u = f ? {
164
+ in: h,
165
+ onEnter: P,
166
+ onExited: y
167
+ } : void 0;
168
+ return /* @__PURE__ */ U.jsx(oe, {
169
+ disablePortal: m,
170
+ container: E,
171
+ children: /* @__PURE__ */ U.jsx(ue, v({
172
+ anchorEl: p,
173
+ direction: g,
174
+ disablePortal: m,
175
+ modifiers: O,
176
+ ref: s,
177
+ open: f ? !r : h,
178
+ placement: c,
179
+ popperOptions: R,
180
+ popperRef: x,
181
+ slotProps: j,
182
+ slots: T
183
+ }, w, {
184
+ style: v({
185
+ // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
186
+ position: "fixed",
187
+ // Fix Popper.js display issue
188
+ top: 0,
189
+ left: 0,
190
+ display: S
191
+ }, M),
192
+ TransitionProps: u,
193
+ children: i
194
+ }))
195
+ });
196
+ });
197
+ process.env.NODE_ENV !== "production" && (L.propTypes = {
198
+ // ----------------------------- Warning --------------------------------
199
+ // | These PropTypes are generated from the TypeScript type definitions |
200
+ // | To update them edit TypeScript types and run "yarn proptypes" |
201
+ // ----------------------------------------------------------------------
202
+ /**
203
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
204
+ * or a function that returns either.
205
+ * It's used to set the position of the popper.
206
+ * The return value will passed as the reference object of the Popper instance.
207
+ */
208
+ anchorEl: ne(e.oneOfType([C, e.object, e.func]), (t) => {
209
+ if (t.open) {
210
+ const o = k(t.anchorEl);
211
+ if (o && I(o) && o.nodeType === 1) {
212
+ const s = o.getBoundingClientRect();
213
+ if (process.env.NODE_ENV !== "test" && s.top === 0 && s.left === 0 && s.right === 0 && s.bottom === 0)
214
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
215
+ `));
216
+ } else if (!o || typeof o.getBoundingClientRect != "function" || ce(o) && o.contextElement != null && o.contextElement.nodeType !== 1)
217
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
218
+ `));
219
+ }
220
+ return null;
221
+ }),
222
+ /**
223
+ * Popper render function or node.
224
+ */
225
+ children: e.oneOfType([e.node, e.func]),
226
+ /**
227
+ * An HTML element or function that returns one.
228
+ * The `container` will have the portal children appended to it.
229
+ *
230
+ * By default, it uses the body of the top-level document object,
231
+ * so it's simply `document.body` most of the time.
232
+ */
233
+ container: e.oneOfType([C, e.func]),
234
+ /**
235
+ * Direction of the text.
236
+ * @default 'ltr'
237
+ */
238
+ direction: e.oneOf(["ltr", "rtl"]),
239
+ /**
240
+ * The `children` will be under the DOM hierarchy of the parent component.
241
+ * @default false
242
+ */
243
+ disablePortal: e.bool,
244
+ /**
245
+ * Always keep the children in the DOM.
246
+ * This prop can be useful in SEO situation or
247
+ * when you want to maximize the responsiveness of the Popper.
248
+ * @default false
249
+ */
250
+ keepMounted: e.bool,
251
+ /**
252
+ * Popper.js is based on a "plugin-like" architecture,
253
+ * most of its features are fully encapsulated "modifiers".
254
+ *
255
+ * A modifier is a function that is called each time Popper.js needs to
256
+ * compute the position of the popper.
257
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
258
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
259
+ */
260
+ modifiers: e.arrayOf(e.shape({
261
+ data: e.object,
262
+ effect: e.func,
263
+ enabled: e.bool,
264
+ fn: e.func,
265
+ name: e.any,
266
+ options: e.object,
267
+ phase: e.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
268
+ requires: e.arrayOf(e.string),
269
+ requiresIfExists: e.arrayOf(e.string)
270
+ })),
271
+ /**
272
+ * If `true`, the component is shown.
273
+ */
274
+ open: e.bool.isRequired,
275
+ /**
276
+ * Popper placement.
277
+ * @default 'bottom'
278
+ */
279
+ placement: e.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
280
+ /**
281
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
282
+ * @default {}
283
+ */
284
+ popperOptions: e.shape({
285
+ modifiers: e.array,
286
+ onFirstUpdate: e.func,
287
+ placement: e.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
288
+ strategy: e.oneOf(["absolute", "fixed"])
289
+ }),
290
+ /**
291
+ * A ref that points to the used popper instance.
292
+ */
293
+ popperRef: F,
294
+ /**
295
+ * The props used for each slot inside the Popper.
296
+ * @default {}
297
+ */
298
+ slotProps: e.shape({
299
+ root: e.oneOfType([e.func, e.object])
300
+ }),
301
+ /**
302
+ * The components used for each slot inside the Popper.
303
+ * Either a string to use a HTML element or a component.
304
+ * @default {}
305
+ */
306
+ slots: e.shape({
307
+ root: e.elementType
308
+ }),
309
+ /**
310
+ * Help supporting a react-transition-group/Transition component.
311
+ * @default false
312
+ */
313
+ transition: e.bool
314
+ });
315
+ const me = L, he = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], be = Z(me, {
316
+ name: "MuiPopper",
317
+ slot: "Root",
318
+ overridesResolver: (t, o) => o.root
319
+ })({}), $ = /* @__PURE__ */ n.forwardRef(function(o, s) {
320
+ var p;
321
+ const i = Q(), a = ee({
322
+ props: o,
323
+ name: "MuiPopper"
324
+ }), {
325
+ anchorEl: g,
326
+ component: m,
327
+ components: l,
328
+ componentsProps: O,
329
+ container: h,
330
+ disablePortal: c,
331
+ keepMounted: R,
332
+ modifiers: x,
333
+ open: M,
334
+ placement: f,
335
+ popperOptions: j,
336
+ popperRef: T,
337
+ transition: w,
338
+ slots: r,
339
+ slotProps: d
340
+ } = a, P = q(a, he), y = (p = r == null ? void 0 : r.root) != null ? p : l == null ? void 0 : l.Root, E = v({
341
+ anchorEl: g,
342
+ container: h,
343
+ disablePortal: c,
344
+ keepMounted: R,
345
+ modifiers: x,
346
+ open: M,
347
+ placement: f,
348
+ popperOptions: j,
349
+ popperRef: T,
350
+ transition: w
351
+ }, P);
352
+ return /* @__PURE__ */ U.jsx(be, v({
353
+ as: m,
354
+ direction: i == null ? void 0 : i.direction,
355
+ slots: {
356
+ root: y
357
+ },
358
+ slotProps: d ?? O
359
+ }, E, {
360
+ ref: s
361
+ }));
362
+ });
363
+ process.env.NODE_ENV !== "production" && ($.propTypes = {
364
+ // ----------------------------- Warning --------------------------------
365
+ // | These PropTypes are generated from the TypeScript type definitions |
366
+ // | To update them edit TypeScript types and run "yarn proptypes" |
367
+ // ----------------------------------------------------------------------
368
+ /**
369
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
370
+ * or a function that returns either.
371
+ * It's used to set the position of the popper.
372
+ * The return value will passed as the reference object of the Popper instance.
373
+ */
374
+ anchorEl: e.oneOfType([C, e.object, e.func]),
375
+ /**
376
+ * Popper render function or node.
377
+ */
378
+ children: e.oneOfType([e.node, e.func]),
379
+ /**
380
+ * The component used for the root node.
381
+ * Either a string to use a HTML element or a component.
382
+ */
383
+ component: e.elementType,
384
+ /**
385
+ * The components used for each slot inside the Popper.
386
+ * Either a string to use a HTML element or a component.
387
+ * @default {}
388
+ */
389
+ components: e.shape({
390
+ Root: e.elementType
391
+ }),
392
+ /**
393
+ * The props used for each slot inside the Popper.
394
+ * @default {}
395
+ */
396
+ componentsProps: e.shape({
397
+ root: e.oneOfType([e.func, e.object])
398
+ }),
399
+ /**
400
+ * An HTML element or function that returns one.
401
+ * The `container` will have the portal children appended to it.
402
+ *
403
+ * By default, it uses the body of the top-level document object,
404
+ * so it's simply `document.body` most of the time.
405
+ */
406
+ container: e.oneOfType([C, e.func]),
407
+ /**
408
+ * The `children` will be under the DOM hierarchy of the parent component.
409
+ * @default false
410
+ */
411
+ disablePortal: e.bool,
412
+ /**
413
+ * Always keep the children in the DOM.
414
+ * This prop can be useful in SEO situation or
415
+ * when you want to maximize the responsiveness of the Popper.
416
+ * @default false
417
+ */
418
+ keepMounted: e.bool,
419
+ /**
420
+ * Popper.js is based on a "plugin-like" architecture,
421
+ * most of its features are fully encapsulated "modifiers".
422
+ *
423
+ * A modifier is a function that is called each time Popper.js needs to
424
+ * compute the position of the popper.
425
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
426
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
427
+ */
428
+ modifiers: e.arrayOf(e.shape({
429
+ data: e.object,
430
+ effect: e.func,
431
+ enabled: e.bool,
432
+ fn: e.func,
433
+ name: e.any,
434
+ options: e.object,
435
+ phase: e.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
436
+ requires: e.arrayOf(e.string),
437
+ requiresIfExists: e.arrayOf(e.string)
438
+ })),
439
+ /**
440
+ * If `true`, the component is shown.
441
+ */
442
+ open: e.bool.isRequired,
443
+ /**
444
+ * Popper placement.
445
+ * @default 'bottom'
446
+ */
447
+ placement: e.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
448
+ /**
449
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
450
+ * @default {}
451
+ */
452
+ popperOptions: e.shape({
453
+ modifiers: e.array,
454
+ onFirstUpdate: e.func,
455
+ placement: e.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
456
+ strategy: e.oneOf(["absolute", "fixed"])
457
+ }),
458
+ /**
459
+ * A ref that points to the used popper instance.
460
+ */
461
+ popperRef: F,
462
+ /**
463
+ * The props used for each slot inside the Popper.
464
+ * @default {}
465
+ */
466
+ slotProps: e.shape({
467
+ root: e.oneOfType([e.func, e.object])
468
+ }),
469
+ /**
470
+ * The components used for each slot inside the Popper.
471
+ * Either a string to use a HTML element or a component.
472
+ * @default {}
473
+ */
474
+ slots: e.shape({
475
+ root: e.elementType
476
+ }),
477
+ /**
478
+ * The system prop that allows defining system overrides as well as additional CSS styles.
479
+ */
480
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
481
+ /**
482
+ * Help supporting a react-transition-group/Transition component.
483
+ * @default false
484
+ */
485
+ transition: e.bool
486
+ });
487
+ const Ne = $;
488
+ export {
489
+ Ne as M
490
+ };
@@ -0,0 +1,77 @@
1
+ import * as e from "react";
2
+ import { j as c } from "./jsx-runtime-944c88e2.js";
3
+ import * as P from "react-dom";
4
+ import { P as a } from "./identifier-9dfe30d8.js";
5
+ import { u as x, s as f } from "./useForkRef-0781dda0.js";
6
+ import { a as p } from "./useEventCallback-fe4fd69c.js";
7
+ import { H as C } from "./HTMLElementType-ff213f3c.js";
8
+ import { e as y } from "./exactProp-3aaa3ecc.js";
9
+ const N = {
10
+ disableDefaultClasses: !1
11
+ }, T = /* @__PURE__ */ e.createContext(N);
12
+ function v(t) {
13
+ const {
14
+ disableDefaultClasses: i
15
+ } = e.useContext(T);
16
+ return (o) => i ? "" : t(o);
17
+ }
18
+ function b(t) {
19
+ return typeof t == "function" ? t() : t;
20
+ }
21
+ const l = /* @__PURE__ */ e.forwardRef(function(i, o) {
22
+ const {
23
+ children: n,
24
+ container: u,
25
+ disablePortal: s = !1
26
+ } = i, [r, m] = e.useState(null), d = x(/* @__PURE__ */ e.isValidElement(n) ? n.ref : null, o);
27
+ if (p(() => {
28
+ s || m(b(u) || document.body);
29
+ }, [u, s]), p(() => {
30
+ if (r && !s)
31
+ return f(o, r), () => {
32
+ f(o, null);
33
+ };
34
+ }, [o, r, s]), s) {
35
+ if (/* @__PURE__ */ e.isValidElement(n)) {
36
+ const E = {
37
+ ref: d
38
+ };
39
+ return /* @__PURE__ */ e.cloneElement(n, E);
40
+ }
41
+ return /* @__PURE__ */ c.jsx(e.Fragment, {
42
+ children: n
43
+ });
44
+ }
45
+ return /* @__PURE__ */ c.jsx(e.Fragment, {
46
+ children: r && /* @__PURE__ */ P.createPortal(n, r)
47
+ });
48
+ });
49
+ process.env.NODE_ENV !== "production" && (l.propTypes = {
50
+ // ----------------------------- Warning --------------------------------
51
+ // | These PropTypes are generated from the TypeScript type definitions |
52
+ // | To update them edit TypeScript types and run "yarn proptypes" |
53
+ // ----------------------------------------------------------------------
54
+ /**
55
+ * The children to render into the `container`.
56
+ */
57
+ children: a.node,
58
+ /**
59
+ * An HTML element or function that returns one.
60
+ * The `container` will have the portal children appended to it.
61
+ *
62
+ * By default, it uses the body of the top-level document object,
63
+ * so it's simply `document.body` most of the time.
64
+ */
65
+ container: a.oneOfType([C, a.func]),
66
+ /**
67
+ * The `children` will be under the DOM hierarchy of the parent component.
68
+ * @default false
69
+ */
70
+ disablePortal: a.bool
71
+ });
72
+ process.env.NODE_ENV !== "production" && (l["propTypes"] = y(l.propTypes));
73
+ const R = l;
74
+ export {
75
+ R as P,
76
+ v as u
77
+ };
@@ -0,0 +1,5 @@
1
+ export { default as KdpaRadio } from "./KdpaRadio/KdpaRadio";
2
+ export { default as KdpaRadioGroup } from "./KdpaRadioGroup/KdpaRadioGroup";
3
+ export type { KdpaRadioProps } from "./KdpaRadio/KdpaRadio";
4
+ export type { KdpaRadioGroupPorps } from "./KdpaRadioGroup/KdpaRadioGroup";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAE5E,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC"}