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,7 @@
1
+ import * as o from "react";
2
+ const t = /* @__PURE__ */ o.createContext({});
3
+ process.env.NODE_ENV !== "production" && (t.displayName = "ListContext");
4
+ const e = t;
5
+ export {
6
+ e as L
7
+ };
@@ -0,0 +1,426 @@
1
+ import { _ as a, a as O } from "./extends-393586f3.js";
2
+ import * as r from "react";
3
+ import { g as w, P as e, a as x } from "./identifier-9dfe30d8.js";
4
+ import { g as R, s as $, u as D, c as L, a as Y } from "./useThemeProps-7d04a175.js";
5
+ import { L as h } from "./ListContext-de5072f9.js";
6
+ import { j as p } from "./jsx-runtime-944c88e2.js";
7
+ import { a as ot } from "./useEventCallback-fe4fd69c.js";
8
+ import { i as z } from "./isMuiElement-b88a921a.js";
9
+ import { u as st } from "./useForkRef-0781dda0.js";
10
+ import { i as _ } from "./useSlotProps-f238319f.js";
11
+ import { c as nt } from "./chainPropTypes-004bf492.js";
12
+ import { e as at } from "./elementTypeAcceptingRef-6c34f16b.js";
13
+ import { B as it } from "./ButtonBase-0f9f324d.js";
14
+ function rt(t) {
15
+ return w("MuiListItem", t);
16
+ }
17
+ const ct = R("MuiListItem", ["root", "container", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "padding", "button", "secondaryAction", "selected"]), f = ct, lt = R("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]), dt = lt;
18
+ function pt(t) {
19
+ return w("MuiListItemSecondaryAction", t);
20
+ }
21
+ R("MuiListItemSecondaryAction", ["root", "disableGutters"]);
22
+ const ut = ["className"], mt = (t) => {
23
+ const {
24
+ disableGutters: o,
25
+ classes: s
26
+ } = t;
27
+ return Y({
28
+ root: ["root", o && "disableGutters"]
29
+ }, pt, s);
30
+ }, bt = $("div", {
31
+ name: "MuiListItemSecondaryAction",
32
+ slot: "Root",
33
+ overridesResolver: (t, o) => {
34
+ const {
35
+ ownerState: s
36
+ } = t;
37
+ return [o.root, s.disableGutters && o.disableGutters];
38
+ }
39
+ })(({
40
+ ownerState: t
41
+ }) => a({
42
+ position: "absolute",
43
+ right: 16,
44
+ top: "50%",
45
+ transform: "translateY(-50%)"
46
+ }, t.disableGutters && {
47
+ right: 0
48
+ })), j = /* @__PURE__ */ r.forwardRef(function(o, s) {
49
+ const n = D({
50
+ props: o,
51
+ name: "MuiListItemSecondaryAction"
52
+ }), {
53
+ className: i
54
+ } = n, c = O(n, ut), u = r.useContext(h), m = a({}, n, {
55
+ disableGutters: u.disableGutters
56
+ }), g = mt(m);
57
+ return /* @__PURE__ */ p.jsx(bt, a({
58
+ className: L(g.root, i),
59
+ ownerState: m,
60
+ ref: s
61
+ }, c));
62
+ });
63
+ process.env.NODE_ENV !== "production" && (j.propTypes = {
64
+ // ----------------------------- Warning --------------------------------
65
+ // | These PropTypes are generated from the TypeScript type definitions |
66
+ // | To update them edit the d.ts file and run "yarn proptypes" |
67
+ // ----------------------------------------------------------------------
68
+ /**
69
+ * The content of the component, normally an `IconButton` or selection control.
70
+ */
71
+ children: e.node,
72
+ /**
73
+ * Override or extend the styles applied to the component.
74
+ */
75
+ classes: e.object,
76
+ /**
77
+ * @ignore
78
+ */
79
+ className: e.string,
80
+ /**
81
+ * The system prop that allows defining system overrides as well as additional CSS styles.
82
+ */
83
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
84
+ });
85
+ j.muiName = "ListItemSecondaryAction";
86
+ const ft = j, gt = ["className"], yt = ["alignItems", "autoFocus", "button", "children", "className", "component", "components", "componentsProps", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "disablePadding", "divider", "focusVisibleClassName", "secondaryAction", "selected", "slotProps", "slots"], vt = (t, o) => {
87
+ const {
88
+ ownerState: s
89
+ } = t;
90
+ return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters, !s.disablePadding && o.padding, s.button && o.button, s.hasSecondaryAction && o.secondaryAction];
91
+ }, Ct = (t) => {
92
+ const {
93
+ alignItems: o,
94
+ button: s,
95
+ classes: n,
96
+ dense: i,
97
+ disabled: c,
98
+ disableGutters: u,
99
+ disablePadding: m,
100
+ divider: g,
101
+ hasSecondaryAction: y,
102
+ selected: A
103
+ } = t;
104
+ return Y({
105
+ root: ["root", i && "dense", !u && "gutters", !m && "padding", g && "divider", c && "disabled", s && "button", o === "flex-start" && "alignItemsFlexStart", y && "secondaryAction", A && "selected"],
106
+ container: ["container"]
107
+ }, rt, n);
108
+ }, It = $("div", {
109
+ name: "MuiListItem",
110
+ slot: "Root",
111
+ overridesResolver: vt
112
+ })(({
113
+ theme: t,
114
+ ownerState: o
115
+ }) => a({
116
+ display: "flex",
117
+ justifyContent: "flex-start",
118
+ alignItems: "center",
119
+ position: "relative",
120
+ textDecoration: "none",
121
+ width: "100%",
122
+ boxSizing: "border-box",
123
+ textAlign: "left"
124
+ }, !o.disablePadding && a({
125
+ paddingTop: 8,
126
+ paddingBottom: 8
127
+ }, o.dense && {
128
+ paddingTop: 4,
129
+ paddingBottom: 4
130
+ }, !o.disableGutters && {
131
+ paddingLeft: 16,
132
+ paddingRight: 16
133
+ }, !!o.secondaryAction && {
134
+ // Add some space to avoid collision as `ListItemSecondaryAction`
135
+ // is absolutely positioned.
136
+ paddingRight: 48
137
+ }), !!o.secondaryAction && {
138
+ [`& > .${dt.root}`]: {
139
+ paddingRight: 48
140
+ }
141
+ }, {
142
+ [`&.${f.focusVisible}`]: {
143
+ backgroundColor: (t.vars || t).palette.action.focus
144
+ },
145
+ [`&.${f.selected}`]: {
146
+ backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : x(t.palette.primary.main, t.palette.action.selectedOpacity),
147
+ [`&.${f.focusVisible}`]: {
148
+ backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : x(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
149
+ }
150
+ },
151
+ [`&.${f.disabled}`]: {
152
+ opacity: (t.vars || t).palette.action.disabledOpacity
153
+ }
154
+ }, o.alignItems === "flex-start" && {
155
+ alignItems: "flex-start"
156
+ }, o.divider && {
157
+ borderBottom: `1px solid ${(t.vars || t).palette.divider}`,
158
+ backgroundClip: "padding-box"
159
+ }, o.button && {
160
+ transition: t.transitions.create("background-color", {
161
+ duration: t.transitions.duration.shortest
162
+ }),
163
+ "&:hover": {
164
+ textDecoration: "none",
165
+ backgroundColor: (t.vars || t).palette.action.hover,
166
+ // Reset on touch devices, it doesn't add specificity
167
+ "@media (hover: none)": {
168
+ backgroundColor: "transparent"
169
+ }
170
+ },
171
+ [`&.${f.selected}:hover`]: {
172
+ backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : x(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
173
+ // Reset on touch devices, it doesn't add specificity
174
+ "@media (hover: none)": {
175
+ backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : x(t.palette.primary.main, t.palette.action.selectedOpacity)
176
+ }
177
+ }
178
+ }, o.hasSecondaryAction && {
179
+ // Add some space to avoid collision as `ListItemSecondaryAction`
180
+ // is absolutely positioned.
181
+ paddingRight: 48
182
+ })), xt = $("li", {
183
+ name: "MuiListItem",
184
+ slot: "Container",
185
+ overridesResolver: (t, o) => o.container
186
+ })({
187
+ position: "relative"
188
+ }), H = /* @__PURE__ */ r.forwardRef(function(o, s) {
189
+ const n = D({
190
+ props: o,
191
+ name: "MuiListItem"
192
+ }), {
193
+ alignItems: i = "center",
194
+ autoFocus: c = !1,
195
+ button: u = !1,
196
+ children: m,
197
+ className: g,
198
+ component: y,
199
+ components: A = {},
200
+ componentsProps: T = {},
201
+ ContainerComponent: G = "li",
202
+ ContainerProps: {
203
+ className: W
204
+ } = {},
205
+ dense: M = !1,
206
+ disabled: V = !1,
207
+ disableGutters: P = !1,
208
+ disablePadding: q = !1,
209
+ divider: J = !1,
210
+ focusVisibleClassName: K,
211
+ secondaryAction: k,
212
+ selected: Q = !1,
213
+ slotProps: X = {},
214
+ slots: Z = {}
215
+ } = n, tt = O(n.ContainerProps, gt), et = O(n, yt), E = r.useContext(h), N = r.useMemo(() => ({
216
+ dense: M || E.dense || !1,
217
+ alignItems: i,
218
+ disableGutters: P
219
+ }), [i, E.dense, M, P]), S = r.useRef(null);
220
+ ot(() => {
221
+ c && (S.current ? S.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."));
222
+ }, [c]);
223
+ const b = r.Children.toArray(m), B = b.length && z(b[b.length - 1], ["ListItemSecondaryAction"]), C = a({}, n, {
224
+ alignItems: i,
225
+ autoFocus: c,
226
+ button: u,
227
+ dense: N.dense,
228
+ disabled: V,
229
+ disableGutters: P,
230
+ disablePadding: q,
231
+ divider: J,
232
+ hasSecondaryAction: B,
233
+ selected: Q
234
+ }), F = Ct(C), U = st(S, s), I = Z.root || A.Root || It, v = X.root || T.root || {}, l = a({
235
+ className: L(F.root, v.className, g),
236
+ disabled: V
237
+ }, et);
238
+ let d = y || "li";
239
+ return u && (l.component = y || "div", l.focusVisibleClassName = L(f.focusVisible, K), d = it), B ? (d = !l.component && !y ? "div" : d, G === "li" && (d === "li" ? d = "div" : l.component === "li" && (l.component = "div")), /* @__PURE__ */ p.jsx(h.Provider, {
240
+ value: N,
241
+ children: /* @__PURE__ */ p.jsxs(xt, a({
242
+ as: G,
243
+ className: L(F.container, W),
244
+ ref: U,
245
+ ownerState: C
246
+ }, tt, {
247
+ children: [/* @__PURE__ */ p.jsx(I, a({}, v, !_(I) && {
248
+ as: d,
249
+ ownerState: a({}, C, v.ownerState)
250
+ }, l, {
251
+ children: b
252
+ })), b.pop()]
253
+ }))
254
+ })) : /* @__PURE__ */ p.jsx(h.Provider, {
255
+ value: N,
256
+ children: /* @__PURE__ */ p.jsxs(I, a({}, v, {
257
+ as: d,
258
+ ref: U
259
+ }, !_(I) && {
260
+ ownerState: a({}, C, v.ownerState)
261
+ }, l, {
262
+ children: [b, k && /* @__PURE__ */ p.jsx(ft, {
263
+ children: k
264
+ })]
265
+ }))
266
+ });
267
+ });
268
+ process.env.NODE_ENV !== "production" && (H.propTypes = {
269
+ // ----------------------------- Warning --------------------------------
270
+ // | These PropTypes are generated from the TypeScript type definitions |
271
+ // | To update them edit the d.ts file and run "yarn proptypes" |
272
+ // ----------------------------------------------------------------------
273
+ /**
274
+ * Defines the `align-items` style property.
275
+ * @default 'center'
276
+ */
277
+ alignItems: e.oneOf(["center", "flex-start"]),
278
+ /**
279
+ * If `true`, the list item is focused during the first mount.
280
+ * Focus will also be triggered if the value changes from false to true.
281
+ * @default false
282
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
283
+ */
284
+ autoFocus: e.bool,
285
+ /**
286
+ * If `true`, the list item is a button (using `ButtonBase`). Props intended
287
+ * for `ButtonBase` can then be applied to `ListItem`.
288
+ * @default false
289
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
290
+ */
291
+ button: e.bool,
292
+ /**
293
+ * The content of the component if a `ListItemSecondaryAction` is used it must
294
+ * be the last child.
295
+ */
296
+ children: nt(e.node, (t) => {
297
+ const o = r.Children.toArray(t.children);
298
+ let s = -1;
299
+ for (let n = o.length - 1; n >= 0; n -= 1) {
300
+ const i = o[n];
301
+ if (z(i, ["ListItemSecondaryAction"])) {
302
+ s = n;
303
+ break;
304
+ }
305
+ }
306
+ return s !== -1 && s !== o.length - 1 ? new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem.") : null;
307
+ }),
308
+ /**
309
+ * Override or extend the styles applied to the component.
310
+ */
311
+ classes: e.object,
312
+ /**
313
+ * @ignore
314
+ */
315
+ className: e.string,
316
+ /**
317
+ * The component used for the root node.
318
+ * Either a string to use a HTML element or a component.
319
+ */
320
+ component: e.elementType,
321
+ /**
322
+ * The components used for each slot inside.
323
+ *
324
+ * This prop is an alias for the `slots` prop.
325
+ * It's recommended to use the `slots` prop instead.
326
+ *
327
+ * @default {}
328
+ */
329
+ components: e.shape({
330
+ Root: e.elementType
331
+ }),
332
+ /**
333
+ * The extra props for the slot components.
334
+ * You can override the existing props or add new ones.
335
+ *
336
+ * This prop is an alias for the `slotProps` prop.
337
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
338
+ *
339
+ * @default {}
340
+ */
341
+ componentsProps: e.shape({
342
+ root: e.object
343
+ }),
344
+ /**
345
+ * The container component used when a `ListItemSecondaryAction` is the last child.
346
+ * @default 'li'
347
+ * @deprecated
348
+ */
349
+ ContainerComponent: at,
350
+ /**
351
+ * Props applied to the container component if used.
352
+ * @default {}
353
+ * @deprecated
354
+ */
355
+ ContainerProps: e.object,
356
+ /**
357
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used.
358
+ * The prop defaults to the value inherited from the parent List component.
359
+ * @default false
360
+ */
361
+ dense: e.bool,
362
+ /**
363
+ * If `true`, the component is disabled.
364
+ * @default false
365
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
366
+ */
367
+ disabled: e.bool,
368
+ /**
369
+ * If `true`, the left and right padding is removed.
370
+ * @default false
371
+ */
372
+ disableGutters: e.bool,
373
+ /**
374
+ * If `true`, all padding is removed.
375
+ * @default false
376
+ */
377
+ disablePadding: e.bool,
378
+ /**
379
+ * If `true`, a 1px light border is added to the bottom of the list item.
380
+ * @default false
381
+ */
382
+ divider: e.bool,
383
+ /**
384
+ * @ignore
385
+ */
386
+ focusVisibleClassName: e.string,
387
+ /**
388
+ * The element to display at the end of ListItem.
389
+ */
390
+ secondaryAction: e.node,
391
+ /**
392
+ * Use to apply selected styling.
393
+ * @default false
394
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
395
+ */
396
+ selected: e.bool,
397
+ /**
398
+ * The extra props for the slot components.
399
+ * You can override the existing props or add new ones.
400
+ *
401
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
402
+ *
403
+ * @default {}
404
+ */
405
+ slotProps: e.shape({
406
+ root: e.object
407
+ }),
408
+ /**
409
+ * The components used for each slot inside.
410
+ *
411
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
412
+ *
413
+ * @default {}
414
+ */
415
+ slots: e.shape({
416
+ root: e.elementType
417
+ }),
418
+ /**
419
+ * The system prop that allows defining system overrides as well as additional CSS styles.
420
+ */
421
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
422
+ });
423
+ const Mt = H;
424
+ export {
425
+ Mt as L
426
+ };
@@ -0,0 +1,150 @@
1
+ import { _ as i, a as I } from "./extends-393586f3.js";
2
+ import * as h from "react";
3
+ import { P as o } from "./identifier-9dfe30d8.js";
4
+ import { s as N, u as C, c as R, a as _ } from "./useThemeProps-7d04a175.js";
5
+ import { L as O } from "./ListContext-de5072f9.js";
6
+ import { l as g, g as E } from "./listItemTextClasses-d6839c02.js";
7
+ import { j as T } from "./jsx-runtime-944c88e2.js";
8
+ import { T as c } from "./Typography-dfa51fea.js";
9
+ const $ = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"], k = (e) => {
10
+ const {
11
+ classes: s,
12
+ inset: r,
13
+ primary: n,
14
+ secondary: y,
15
+ dense: m
16
+ } = e;
17
+ return _({
18
+ root: ["root", r && "inset", m && "dense", n && y && "multiline"],
19
+ primary: ["primary"],
20
+ secondary: ["secondary"]
21
+ }, E, s);
22
+ }, w = N("div", {
23
+ name: "MuiListItemText",
24
+ slot: "Root",
25
+ overridesResolver: (e, s) => {
26
+ const {
27
+ ownerState: r
28
+ } = e;
29
+ return [{
30
+ [`& .${g.primary}`]: s.primary
31
+ }, {
32
+ [`& .${g.secondary}`]: s.secondary
33
+ }, s.root, r.inset && s.inset, r.primary && r.secondary && s.multiline, r.dense && s.dense];
34
+ }
35
+ })(({
36
+ ownerState: e
37
+ }) => i({
38
+ flex: "1 1 auto",
39
+ minWidth: 0,
40
+ marginTop: 4,
41
+ marginBottom: 4
42
+ }, e.primary && e.secondary && {
43
+ marginTop: 6,
44
+ marginBottom: 6
45
+ }, e.inset && {
46
+ paddingLeft: 56
47
+ })), b = /* @__PURE__ */ h.forwardRef(function(s, r) {
48
+ const n = C({
49
+ props: s,
50
+ name: "MuiListItemText"
51
+ }), {
52
+ children: y,
53
+ className: m,
54
+ disableTypography: p = !1,
55
+ inset: L = !1,
56
+ primary: f,
57
+ primaryTypographyProps: d,
58
+ secondary: P,
59
+ secondaryTypographyProps: j
60
+ } = n, v = I(n, $), {
61
+ dense: u
62
+ } = h.useContext(O);
63
+ let t = f ?? y, a = P;
64
+ const x = i({}, n, {
65
+ disableTypography: p,
66
+ inset: L,
67
+ primary: !!t,
68
+ secondary: !!a,
69
+ dense: u
70
+ }), l = k(x);
71
+ return t != null && t.type !== c && !p && (t = /* @__PURE__ */ T.jsx(c, i({
72
+ variant: u ? "body2" : "body1",
73
+ className: l.primary,
74
+ component: d != null && d.variant ? void 0 : "span",
75
+ display: "block"
76
+ }, d, {
77
+ children: t
78
+ }))), a != null && a.type !== c && !p && (a = /* @__PURE__ */ T.jsx(c, i({
79
+ variant: "body2",
80
+ className: l.secondary,
81
+ color: "text.secondary",
82
+ display: "block"
83
+ }, j, {
84
+ children: a
85
+ }))), /* @__PURE__ */ T.jsxs(w, i({
86
+ className: R(l.root, m),
87
+ ownerState: x,
88
+ ref: r
89
+ }, v, {
90
+ children: [t, a]
91
+ }));
92
+ });
93
+ process.env.NODE_ENV !== "production" && (b.propTypes = {
94
+ // ----------------------------- Warning --------------------------------
95
+ // | These PropTypes are generated from the TypeScript type definitions |
96
+ // | To update them edit the d.ts file and run "yarn proptypes" |
97
+ // ----------------------------------------------------------------------
98
+ /**
99
+ * Alias for the `primary` prop.
100
+ */
101
+ children: o.node,
102
+ /**
103
+ * Override or extend the styles applied to the component.
104
+ */
105
+ classes: o.object,
106
+ /**
107
+ * @ignore
108
+ */
109
+ className: o.string,
110
+ /**
111
+ * If `true`, the children won't be wrapped by a Typography component.
112
+ * This can be useful to render an alternative Typography variant by wrapping
113
+ * the `children` (or `primary`) text, and optional `secondary` text
114
+ * with the Typography component.
115
+ * @default false
116
+ */
117
+ disableTypography: o.bool,
118
+ /**
119
+ * If `true`, the children are indented.
120
+ * This should be used if there is no left avatar or left icon.
121
+ * @default false
122
+ */
123
+ inset: o.bool,
124
+ /**
125
+ * The main content element.
126
+ */
127
+ primary: o.node,
128
+ /**
129
+ * These props will be forwarded to the primary typography component
130
+ * (as long as disableTypography is not `true`).
131
+ */
132
+ primaryTypographyProps: o.object,
133
+ /**
134
+ * The secondary content element.
135
+ */
136
+ secondary: o.node,
137
+ /**
138
+ * These props will be forwarded to the secondary typography component
139
+ * (as long as disableTypography is not `true`).
140
+ */
141
+ secondaryTypographyProps: o.object,
142
+ /**
143
+ * The system prop that allows defining system overrides as well as additional CSS styles.
144
+ */
145
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
146
+ });
147
+ const q = b;
148
+ export {
149
+ q as L
150
+ };
@@ -0,0 +1,3 @@
1
+ export { default as KdpaCircularProgress } from "./KdpaCircularProgress";
2
+ export type { KdpaCircularProgressProps } from "./KdpaCircularProgress";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Loading/KdpaProgress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,56 @@
1
+ import { j as r } from "../../jsx-runtime-944c88e2.js";
2
+ import { KdpaTypography as e } from "../../Typography/index.js";
3
+ import { B as i } from "../../Box-a827334a.js";
4
+ import { C as p } from "../../CircularProgress-2c55d9ef.js";
5
+ import "react";
6
+ import "../../Typography-dfa51fea.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 "../../extendSxProp-f7714a31.js";
14
+ import "../../emotion-react.browser.esm-d563ed65.js";
15
+ import "../../hoist-non-react-statics.cjs-ce2f2873.js";
16
+ import "../../chainPropTypes-004bf492.js";
17
+ const B = ({
18
+ value: t,
19
+ showPercent: o = !1
20
+ }) => t === 0 ? null : /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(
21
+ i,
22
+ {
23
+ className: "mx-1",
24
+ position: "relative",
25
+ display: "inline-flex",
26
+ right: 7,
27
+ top: 10,
28
+ children: [
29
+ /* @__PURE__ */ r.jsx(p, { variant: "determinate", value: t, size: 35 }),
30
+ /* @__PURE__ */ r.jsx(
31
+ i,
32
+ {
33
+ top: 0,
34
+ left: 0,
35
+ bottom: 0,
36
+ right: 0,
37
+ position: "absolute",
38
+ display: "flex",
39
+ alignItems: "center",
40
+ justifyContent: "center",
41
+ children: o && /* @__PURE__ */ r.jsx(
42
+ e,
43
+ {
44
+ variant: "caption",
45
+ color: "textSecondary",
46
+ children: `${Math.round(t)}%`
47
+ }
48
+ )
49
+ }
50
+ )
51
+ ]
52
+ }
53
+ ) });
54
+ export {
55
+ B as KdpaCircularProgress
56
+ };
@@ -0,0 +1,6 @@
1
+ export { default as KdpaInlineSpinner } from "./KdpaInlineSpinner/KdpaInlineSpinner";
2
+ export { default as KdpaLoading } from "./KdpaLoading/KdpaLoading";
3
+ export { default as KdpaSkeleton } from "./KdpaSkeleton/KdpaSkeleton";
4
+ export { default as KdpaCircularProgress } from "./KdpaProgress/KdpaCircularProgress";
5
+ export type { KdpaInlineSpinnerProps } from "./KdpaInlineSpinner/KdpaInlineSpinner";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEtF,YAAY,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC"}