kdpa-components 1.0.0 → 1.2.0

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 (149) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/Accordion/index.js +17 -19
  3. package/dist/Alert/index.js +19 -20
  4. package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
  5. package/dist/Avatar/index.js +7 -8
  6. package/dist/Badge/index.js +22 -24
  7. package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
  8. package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
  9. package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
  10. package/dist/Buttons/index.js +28 -30
  11. package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
  12. package/dist/Cards/index.d.ts +2 -0
  13. package/dist/Cards/index.d.ts.map +1 -1
  14. package/dist/Cards/index.js +150 -1
  15. package/dist/CheckBox/index.js +13 -14
  16. package/dist/Chip/index.js +17 -19
  17. package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
  18. package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
  19. package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
  20. package/dist/Collapse/index.js +10 -12
  21. package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
  22. package/dist/CopyToClipboard/index.js +24 -26
  23. package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
  24. package/dist/Divider/index.js +7 -8
  25. package/dist/DropZone/index.js +34 -36
  26. package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
  27. package/dist/FormControl/index.js +12 -13
  28. package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
  29. package/dist/FullScreenDialog/index.js +20 -22
  30. package/dist/Grid/index.js +9 -10
  31. package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
  32. package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
  33. package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
  34. package/dist/Input/index.js +27 -29
  35. package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
  36. package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
  37. package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
  38. package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
  39. package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
  40. package/dist/KdpaChip-10899788.js +51 -0
  41. package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
  42. package/dist/KdpaCollapse-2d23c312.js +12 -0
  43. package/dist/KdpaCollapse-73c03e02.js +23 -0
  44. package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
  45. package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
  46. package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
  47. package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
  48. package/dist/KdpaFormControl-135b070d.js +10 -0
  49. package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
  50. package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
  51. package/dist/KdpaGrid-2a3f9346.js +12 -0
  52. package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
  53. package/dist/KdpaIconButton-a0ee669c.js +35 -0
  54. package/dist/KdpaInputMultiline-231a2be1.js +68 -0
  55. package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
  56. package/dist/KdpaMenuItem-99cde871.js +56 -0
  57. package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
  58. package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
  59. package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
  60. package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
  61. package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
  62. package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
  63. package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
  64. package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
  65. package/dist/KdpaTabs-ab618f36.js +50 -0
  66. package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
  67. package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
  68. package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
  69. package/dist/KdpaTypography-763c3238.js +10 -0
  70. package/dist/KdpaZoom-1b0f3404.js +22 -0
  71. package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
  72. package/dist/LazyDrop/index.js +24 -24
  73. package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
  74. package/dist/Loading/KdpaProgress/index.js +12 -13
  75. package/dist/Loading/index.js +11 -12
  76. package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
  77. package/dist/Modal/index.d.ts +0 -2
  78. package/dist/Modal/index.d.ts.map +1 -1
  79. package/dist/Modal/index.js +3 -17
  80. package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
  81. package/dist/PaginationGrid/index.js +33 -34
  82. package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
  83. package/dist/Pickers/index.d.ts +2 -1
  84. package/dist/Pickers/index.d.ts.map +1 -1
  85. package/dist/Pickers/index.js +43 -45
  86. package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
  87. package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
  88. package/dist/Radio/index.js +14 -15
  89. package/dist/Selects/index.js +39 -40
  90. package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
  91. package/dist/Slider/index.js +8 -9
  92. package/dist/Switch/index.js +12 -13
  93. package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
  94. package/dist/Tabs/index.js +16 -17
  95. package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
  96. package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
  97. package/dist/ThemeProvider/index.js +7 -8
  98. package/dist/Tooltips/index.js +16 -18
  99. package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
  100. package/dist/Transitions/index.js +22 -24
  101. package/dist/Tree/index.js +2 -2
  102. package/dist/TreeSelect/index.js +3 -3
  103. package/dist/Typography/index.js +8 -9
  104. package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
  105. package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
  106. package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
  107. package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
  108. package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
  109. package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
  110. package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
  111. package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
  112. package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
  113. package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
  114. package/dist/identifier-2647f844.js +3775 -0
  115. package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
  116. package/dist/index.js +140 -142
  117. package/dist/jsx-dev-runtime-48fdc504.js +615 -0
  118. package/dist/kdpaSelect-4ed993c7.js +1 -0
  119. package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
  120. package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
  123. package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
  124. package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
  125. package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
  126. package/package.json +90 -87
  127. package/dist/KdpaChip-f94c5b7e.js +0 -31
  128. package/dist/KdpaCircularProgress-aed28149.js +0 -44
  129. package/dist/KdpaCollapse-73e5e40c.js +0 -8
  130. package/dist/KdpaCollapse-7f12a32a.js +0 -11
  131. package/dist/KdpaFormControl-ae8f7241.js +0 -6
  132. package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
  133. package/dist/KdpaGrid-b93fab29.js +0 -8
  134. package/dist/KdpaIconButton-f5146164.js +0 -23
  135. package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
  136. package/dist/KdpaMenuItem-9a9ece89.js +0 -35
  137. package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
  138. package/dist/KdpaSkeleton-4696fadd.js +0 -541
  139. package/dist/KdpaTabs-a76a17a7.js +0 -38
  140. package/dist/KdpaTypography-17403558.js +0 -6
  141. package/dist/KdpaZoom-96a648cb.js +0 -10
  142. package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
  143. package/dist/Sanitizer/index.d.ts +0 -3
  144. package/dist/Sanitizer/index.d.ts.map +0 -1
  145. package/dist/Sanitizer/index.js +0 -492
  146. package/dist/identifier-5cabf5ae.js +0 -2481
  147. package/dist/index-f4329b29.js +0 -669
  148. package/dist/jsx-runtime-944c88e2.js +0 -631
  149. package/dist/utils-8a7b223e.js +0 -18
@@ -0,0 +1,580 @@
1
+ import { j as l } from "./jsx-dev-runtime-48fdc504.js";
2
+ import { G } from "./iconBase-800b43ff.js";
3
+ import { C as W } from "./CircularProgress-01a8929e.js";
4
+ import { a as i, _ as S } from "./extends-135d7828.js";
5
+ import * as M from "react";
6
+ import { g as V, c as d, j as k, P as n, l as Y, d as H, a as J } from "./identifier-2647f844.js";
7
+ import { g as U, s as x, u as q, c as A, a as z } from "./useThemeProps-ea792506.js";
8
+ import { u as Q } from "./useTheme-6ea322ec.js";
9
+ import { k as C, c as y } from "./emotion-react.browser.esm-3fa5f721.js";
10
+ function Z(e) {
11
+ return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
12
+ }
13
+ function ee(e) {
14
+ return parseFloat(e);
15
+ }
16
+ function re(e) {
17
+ return V("MuiLinearProgress", e);
18
+ }
19
+ U("MuiLinearProgress", ["root", "colorPrimary", "colorSecondary", "determinate", "indeterminate", "buffer", "query", "dashed", "dashedColorPrimary", "dashedColorSecondary", "bar", "barColorPrimary", "barColorSecondary", "bar1Indeterminate", "bar1Determinate", "bar1Buffer", "bar2Indeterminate", "bar2Buffer"]);
20
+ const ae = ["className", "color", "value", "valueBuffer", "variant"];
21
+ let h = (e) => e, j, K, R, O, _, w;
22
+ const P = 4, ne = C(j || (j = h`
23
+ 0% {
24
+ left: -35%;
25
+ right: 100%;
26
+ }
27
+
28
+ 60% {
29
+ left: 100%;
30
+ right: -90%;
31
+ }
32
+
33
+ 100% {
34
+ left: 100%;
35
+ right: -90%;
36
+ }
37
+ `)), oe = C(K || (K = h`
38
+ 0% {
39
+ left: -200%;
40
+ right: 100%;
41
+ }
42
+
43
+ 60% {
44
+ left: 107%;
45
+ right: -8%;
46
+ }
47
+
48
+ 100% {
49
+ left: 107%;
50
+ right: -8%;
51
+ }
52
+ `)), te = C(R || (R = h`
53
+ 0% {
54
+ opacity: 1;
55
+ background-position: 0 -23px;
56
+ }
57
+
58
+ 60% {
59
+ opacity: 0;
60
+ background-position: 0 -23px;
61
+ }
62
+
63
+ 100% {
64
+ opacity: 1;
65
+ background-position: -200px -23px;
66
+ }
67
+ `)), ie = (e) => {
68
+ const {
69
+ classes: r,
70
+ variant: a,
71
+ color: o
72
+ } = e, t = {
73
+ root: ["root", `color${d(o)}`, a],
74
+ dashed: ["dashed", `dashedColor${d(o)}`],
75
+ bar1: ["bar", `barColor${d(o)}`, (a === "indeterminate" || a === "query") && "bar1Indeterminate", a === "determinate" && "bar1Determinate", a === "buffer" && "bar1Buffer"],
76
+ bar2: ["bar", a !== "buffer" && `barColor${d(o)}`, a === "buffer" && `color${d(o)}`, (a === "indeterminate" || a === "query") && "bar2Indeterminate", a === "buffer" && "bar2Buffer"]
77
+ };
78
+ return z(t, re, r);
79
+ }, D = (e, r) => r === "inherit" ? "currentColor" : e.vars ? e.vars.palette.LinearProgress[`${r}Bg`] : e.palette.mode === "light" ? Y(e.palette[r].main, 0.62) : H(e.palette[r].main, 0.5), se = x("span", {
80
+ name: "MuiLinearProgress",
81
+ slot: "Root",
82
+ overridesResolver: (e, r) => {
83
+ const {
84
+ ownerState: a
85
+ } = e;
86
+ return [r.root, r[`color${d(a.color)}`], r[a.variant]];
87
+ }
88
+ })(({
89
+ ownerState: e,
90
+ theme: r
91
+ }) => i({
92
+ position: "relative",
93
+ overflow: "hidden",
94
+ display: "block",
95
+ height: 4,
96
+ zIndex: 0,
97
+ // Fix Safari's bug during composition of different paint.
98
+ "@media print": {
99
+ colorAdjust: "exact"
100
+ },
101
+ backgroundColor: D(r, e.color)
102
+ }, e.color === "inherit" && e.variant !== "buffer" && {
103
+ backgroundColor: "none",
104
+ "&::before": {
105
+ content: '""',
106
+ position: "absolute",
107
+ left: 0,
108
+ top: 0,
109
+ right: 0,
110
+ bottom: 0,
111
+ backgroundColor: "currentColor",
112
+ opacity: 0.3
113
+ }
114
+ }, e.variant === "buffer" && {
115
+ backgroundColor: "transparent"
116
+ }, e.variant === "query" && {
117
+ transform: "rotate(180deg)"
118
+ })), le = x("span", {
119
+ name: "MuiLinearProgress",
120
+ slot: "Dashed",
121
+ overridesResolver: (e, r) => {
122
+ const {
123
+ ownerState: a
124
+ } = e;
125
+ return [r.dashed, r[`dashedColor${d(a.color)}`]];
126
+ }
127
+ })(({
128
+ ownerState: e,
129
+ theme: r
130
+ }) => {
131
+ const a = D(r, e.color);
132
+ return i({
133
+ position: "absolute",
134
+ marginTop: 0,
135
+ height: "100%",
136
+ width: "100%"
137
+ }, e.color === "inherit" && {
138
+ opacity: 0.3
139
+ }, {
140
+ backgroundImage: `radial-gradient(${a} 0%, ${a} 16%, transparent 42%)`,
141
+ backgroundSize: "10px 10px",
142
+ backgroundPosition: "0 -23px"
143
+ });
144
+ }, y(O || (O = h`
145
+ animation: ${0} 3s infinite linear;
146
+ `), te)), de = x("span", {
147
+ name: "MuiLinearProgress",
148
+ slot: "Bar1",
149
+ overridesResolver: (e, r) => {
150
+ const {
151
+ ownerState: a
152
+ } = e;
153
+ return [r.bar, r[`barColor${d(a.color)}`], (a.variant === "indeterminate" || a.variant === "query") && r.bar1Indeterminate, a.variant === "determinate" && r.bar1Determinate, a.variant === "buffer" && r.bar1Buffer];
154
+ }
155
+ })(({
156
+ ownerState: e,
157
+ theme: r
158
+ }) => i({
159
+ width: "100%",
160
+ position: "absolute",
161
+ left: 0,
162
+ bottom: 0,
163
+ top: 0,
164
+ transition: "transform 0.2s linear",
165
+ transformOrigin: "left",
166
+ backgroundColor: e.color === "inherit" ? "currentColor" : (r.vars || r).palette[e.color].main
167
+ }, e.variant === "determinate" && {
168
+ transition: `transform .${P}s linear`
169
+ }, e.variant === "buffer" && {
170
+ zIndex: 1,
171
+ transition: `transform .${P}s linear`
172
+ }), ({
173
+ ownerState: e
174
+ }) => (e.variant === "indeterminate" || e.variant === "query") && y(_ || (_ = h`
175
+ width: auto;
176
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
177
+ `), ne)), ce = x("span", {
178
+ name: "MuiLinearProgress",
179
+ slot: "Bar2",
180
+ overridesResolver: (e, r) => {
181
+ const {
182
+ ownerState: a
183
+ } = e;
184
+ return [r.bar, r[`barColor${d(a.color)}`], (a.variant === "indeterminate" || a.variant === "query") && r.bar2Indeterminate, a.variant === "buffer" && r.bar2Buffer];
185
+ }
186
+ })(({
187
+ ownerState: e,
188
+ theme: r
189
+ }) => i({
190
+ width: "100%",
191
+ position: "absolute",
192
+ left: 0,
193
+ bottom: 0,
194
+ top: 0,
195
+ transition: "transform 0.2s linear",
196
+ transformOrigin: "left"
197
+ }, e.variant !== "buffer" && {
198
+ backgroundColor: e.color === "inherit" ? "currentColor" : (r.vars || r).palette[e.color].main
199
+ }, e.color === "inherit" && {
200
+ opacity: 0.3
201
+ }, e.variant === "buffer" && {
202
+ backgroundColor: D(r, e.color),
203
+ transition: `transform .${P}s linear`
204
+ }), ({
205
+ ownerState: e
206
+ }) => (e.variant === "indeterminate" || e.variant === "query") && y(w || (w = h`
207
+ width: auto;
208
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
209
+ `), oe)), X = /* @__PURE__ */ M.forwardRef(function(r, a) {
210
+ const o = q({
211
+ props: r,
212
+ name: "MuiLinearProgress"
213
+ }), {
214
+ className: t,
215
+ color: b = "primary",
216
+ value: s,
217
+ valueBuffer: u,
218
+ variant: c = "indeterminate"
219
+ } = o, $ = S(o, ae), p = i({}, o, {
220
+ color: b,
221
+ variant: c
222
+ }), f = ie(p), v = Q(), g = {}, N = {
223
+ bar1: {},
224
+ bar2: {}
225
+ };
226
+ if (c === "determinate" || c === "buffer")
227
+ if (s !== void 0) {
228
+ g["aria-valuenow"] = Math.round(s), g["aria-valuemin"] = 0, g["aria-valuemax"] = 100;
229
+ let m = s - 100;
230
+ v.direction === "rtl" && (m = -m), N.bar1.transform = `translateX(${m}%)`;
231
+ } else
232
+ process.env.NODE_ENV !== "production" && console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");
233
+ if (c === "buffer")
234
+ if (u !== void 0) {
235
+ let m = (u || 0) - 100;
236
+ v.direction === "rtl" && (m = -m), N.bar2.transform = `translateX(${m}%)`;
237
+ } else
238
+ process.env.NODE_ENV !== "production" && console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");
239
+ return /* @__PURE__ */ k.jsxs(se, i({
240
+ className: A(f.root, t),
241
+ ownerState: p,
242
+ role: "progressbar"
243
+ }, g, {
244
+ ref: a
245
+ }, $, {
246
+ children: [c === "buffer" ? /* @__PURE__ */ k.jsx(le, {
247
+ className: f.dashed,
248
+ ownerState: p
249
+ }) : null, /* @__PURE__ */ k.jsx(de, {
250
+ className: f.bar1,
251
+ ownerState: p,
252
+ style: N.bar1
253
+ }), c === "determinate" ? null : /* @__PURE__ */ k.jsx(ce, {
254
+ className: f.bar2,
255
+ ownerState: p,
256
+ style: N.bar2
257
+ })]
258
+ }));
259
+ });
260
+ process.env.NODE_ENV !== "production" && (X.propTypes = {
261
+ // ----------------------------- Warning --------------------------------
262
+ // | These PropTypes are generated from the TypeScript type definitions |
263
+ // | To update them edit the d.ts file and run "yarn proptypes" |
264
+ // ----------------------------------------------------------------------
265
+ /**
266
+ * Override or extend the styles applied to the component.
267
+ */
268
+ classes: n.object,
269
+ /**
270
+ * @ignore
271
+ */
272
+ className: n.string,
273
+ /**
274
+ * The color of the component.
275
+ * It supports both default and custom theme colors, which can be added as shown in the
276
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
277
+ * @default 'primary'
278
+ */
279
+ color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary"]), n.string]),
280
+ /**
281
+ * The system prop that allows defining system overrides as well as additional CSS styles.
282
+ */
283
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
284
+ /**
285
+ * The value of the progress indicator for the determinate and buffer variants.
286
+ * Value between 0 and 100.
287
+ */
288
+ value: n.number,
289
+ /**
290
+ * The value for the buffer variant.
291
+ * Value between 0 and 100.
292
+ */
293
+ valueBuffer: n.number,
294
+ /**
295
+ * The variant to use.
296
+ * Use indeterminate or query when there is no progress value.
297
+ * @default 'indeterminate'
298
+ */
299
+ variant: n.oneOf(["buffer", "determinate", "indeterminate", "query"])
300
+ });
301
+ const ue = X;
302
+ function pe(e) {
303
+ return V("MuiSkeleton", e);
304
+ }
305
+ U("MuiSkeleton", ["root", "text", "rectangular", "rounded", "circular", "pulse", "wave", "withChildren", "fitContent", "heightAuto"]);
306
+ const fe = ["animation", "className", "component", "height", "style", "variant", "width"];
307
+ let L = (e) => e, I, T, B, E;
308
+ const me = (e) => {
309
+ const {
310
+ classes: r,
311
+ variant: a,
312
+ animation: o,
313
+ hasChildren: t,
314
+ width: b,
315
+ height: s
316
+ } = e;
317
+ return z({
318
+ root: ["root", a, o, t && "withChildren", t && !b && "fitContent", t && !s && "heightAuto"]
319
+ }, pe, r);
320
+ }, be = C(I || (I = L`
321
+ 0% {
322
+ opacity: 1;
323
+ }
324
+
325
+ 50% {
326
+ opacity: 0.4;
327
+ }
328
+
329
+ 100% {
330
+ opacity: 1;
331
+ }
332
+ `)), ge = C(T || (T = L`
333
+ 0% {
334
+ transform: translateX(-100%);
335
+ }
336
+
337
+ 50% {
338
+ /* +0.5s of delay between each loop */
339
+ transform: translateX(100%);
340
+ }
341
+
342
+ 100% {
343
+ transform: translateX(100%);
344
+ }
345
+ `)), he = x("span", {
346
+ name: "MuiSkeleton",
347
+ slot: "Root",
348
+ overridesResolver: (e, r) => {
349
+ const {
350
+ ownerState: a
351
+ } = e;
352
+ return [r.root, r[a.variant], a.animation !== !1 && r[a.animation], a.hasChildren && r.withChildren, a.hasChildren && !a.width && r.fitContent, a.hasChildren && !a.height && r.heightAuto];
353
+ }
354
+ })(({
355
+ theme: e,
356
+ ownerState: r
357
+ }) => {
358
+ const a = Z(e.shape.borderRadius) || "px", o = ee(e.shape.borderRadius);
359
+ return i({
360
+ display: "block",
361
+ // Create a "on paper" color with sufficient contrast retaining the color
362
+ backgroundColor: e.vars ? e.vars.palette.Skeleton.bg : J(e.palette.text.primary, e.palette.mode === "light" ? 0.11 : 0.13),
363
+ height: "1.2em"
364
+ }, r.variant === "text" && {
365
+ marginTop: 0,
366
+ marginBottom: 0,
367
+ height: "auto",
368
+ transformOrigin: "0 55%",
369
+ transform: "scale(1, 0.60)",
370
+ borderRadius: `${o}${a}/${Math.round(o / 0.6 * 10) / 10}${a}`,
371
+ "&:empty:before": {
372
+ content: '"\\00a0"'
373
+ }
374
+ }, r.variant === "circular" && {
375
+ borderRadius: "50%"
376
+ }, r.variant === "rounded" && {
377
+ borderRadius: (e.vars || e).shape.borderRadius
378
+ }, r.hasChildren && {
379
+ "& > *": {
380
+ visibility: "hidden"
381
+ }
382
+ }, r.hasChildren && !r.width && {
383
+ maxWidth: "fit-content"
384
+ }, r.hasChildren && !r.height && {
385
+ height: "auto"
386
+ });
387
+ }, ({
388
+ ownerState: e
389
+ }) => e.animation === "pulse" && y(B || (B = L`
390
+ animation: ${0} 1.5s ease-in-out 0.5s infinite;
391
+ `), be), ({
392
+ ownerState: e,
393
+ theme: r
394
+ }) => e.animation === "wave" && y(E || (E = L`
395
+ position: relative;
396
+ overflow: hidden;
397
+
398
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
399
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
400
+
401
+ &::after {
402
+ animation: ${0} 1.6s linear 0.5s infinite;
403
+ background: linear-gradient(
404
+ 90deg,
405
+ transparent,
406
+ ${0},
407
+ transparent
408
+ );
409
+ content: '';
410
+ position: absolute;
411
+ transform: translateX(-100%); /* Avoid flash during server-side hydration */
412
+ bottom: 0;
413
+ left: 0;
414
+ right: 0;
415
+ top: 0;
416
+ }
417
+ `), ge, (r.vars || r).palette.action.hover)), F = /* @__PURE__ */ M.forwardRef(function(r, a) {
418
+ const o = q({
419
+ props: r,
420
+ name: "MuiSkeleton"
421
+ }), {
422
+ animation: t = "pulse",
423
+ className: b,
424
+ component: s = "span",
425
+ height: u,
426
+ style: c,
427
+ variant: $ = "text",
428
+ width: p
429
+ } = o, f = S(o, fe), v = i({}, o, {
430
+ animation: t,
431
+ component: s,
432
+ variant: $,
433
+ hasChildren: !!f.children
434
+ }), g = me(v);
435
+ return /* @__PURE__ */ k.jsx(he, i({
436
+ as: s,
437
+ ref: a,
438
+ className: A(g.root, b),
439
+ ownerState: v
440
+ }, f, {
441
+ style: i({
442
+ width: p,
443
+ height: u
444
+ }, c)
445
+ }));
446
+ });
447
+ process.env.NODE_ENV !== "production" && (F.propTypes = {
448
+ // ----------------------------- Warning --------------------------------
449
+ // | These PropTypes are generated from the TypeScript type definitions |
450
+ // | To update them edit the d.ts file and run "yarn proptypes" |
451
+ // ----------------------------------------------------------------------
452
+ /**
453
+ * The animation.
454
+ * If `false` the animation effect is disabled.
455
+ * @default 'pulse'
456
+ */
457
+ animation: n.oneOf(["pulse", "wave", !1]),
458
+ /**
459
+ * Optional children to infer width and height from.
460
+ */
461
+ children: n.node,
462
+ /**
463
+ * Override or extend the styles applied to the component.
464
+ */
465
+ classes: n.object,
466
+ /**
467
+ * @ignore
468
+ */
469
+ className: n.string,
470
+ /**
471
+ * The component used for the root node.
472
+ * Either a string to use a HTML element or a component.
473
+ */
474
+ component: n.elementType,
475
+ /**
476
+ * Height of the skeleton.
477
+ * Useful when you don't want to adapt the skeleton to a text element but for instance a card.
478
+ */
479
+ height: n.oneOfType([n.number, n.string]),
480
+ /**
481
+ * @ignore
482
+ */
483
+ style: n.object,
484
+ /**
485
+ * The system prop that allows defining system overrides as well as additional CSS styles.
486
+ */
487
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
488
+ /**
489
+ * The type of content that will be rendered.
490
+ * @default 'text'
491
+ */
492
+ variant: n.oneOfType([n.oneOf(["circular", "rectangular", "rounded", "text"]), n.string]),
493
+ /**
494
+ * Width of the skeleton.
495
+ * Useful when the skeleton is inside an inline element with no width of its own.
496
+ */
497
+ width: n.oneOfType([n.number, n.string])
498
+ });
499
+ const ve = F;
500
+ function ke(e) {
501
+ return G({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M13.917 7A6.002 6.002 0 0 0 2.083 7H1.071a7.002 7.002 0 0 1 13.858 0h-1.012z" } }] })(e);
502
+ }
503
+ const je = ({
504
+ size: e = 18,
505
+ customIcon: r = ke,
506
+ className: a,
507
+ style: o
508
+ }) => /* @__PURE__ */ l.jsxDEV("div", { className: "kdpa-inline-spinner", style: o, children: /* @__PURE__ */ l.jsxDEV(r, { size: e, className: `inline-spinner ${a}` }, void 0, !1, {
509
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaInlineSpinner/KdpaInlineSpinner.tsx",
510
+ lineNumber: 22,
511
+ columnNumber: 7
512
+ }, globalThis) }, void 0, !1, {
513
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaInlineSpinner/KdpaInlineSpinner.tsx",
514
+ lineNumber: 21,
515
+ columnNumber: 5
516
+ }, globalThis);
517
+ function Ke({
518
+ children: e,
519
+ loading: r = !1,
520
+ fade: a = !0,
521
+ type: o = "spinner",
522
+ value: t,
523
+ position: b = "center",
524
+ color: s = "",
525
+ size: u = 30
526
+ }) {
527
+ return r ? /* @__PURE__ */ l.jsxDEV("div", { children: [
528
+ /* @__PURE__ */ l.jsxDEV("div", { children: e }, void 0, !1, {
529
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaLoading/KdpaLoading.tsx",
530
+ lineNumber: 62,
531
+ columnNumber: 7
532
+ }, this),
533
+ o === "spinner" ? /* @__PURE__ */ l.jsxDEV(
534
+ W,
535
+ {
536
+ size: u,
537
+ ...t ? { value: t, variant: "determinate" } : { variant: "indeterminate" }
538
+ },
539
+ void 0,
540
+ !1,
541
+ {
542
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaLoading/KdpaLoading.tsx",
543
+ lineNumber: 64,
544
+ columnNumber: 9
545
+ },
546
+ this
547
+ ) : /* @__PURE__ */ l.jsxDEV(
548
+ ue,
549
+ {
550
+ ...t ? { value: t, variant: "determinate" } : { variant: "indeterminate" }
551
+ },
552
+ void 0,
553
+ !1,
554
+ {
555
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaLoading/KdpaLoading.tsx",
556
+ lineNumber: 72,
557
+ columnNumber: 9
558
+ },
559
+ this
560
+ )
561
+ ] }, void 0, !0, {
562
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaLoading/KdpaLoading.tsx",
563
+ lineNumber: 61,
564
+ columnNumber: 5
565
+ }, this) : /* @__PURE__ */ l.jsxDEV(l.Fragment, { children: e }, void 0, !1, {
566
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaLoading/KdpaLoading.tsx",
567
+ lineNumber: 81,
568
+ columnNumber: 5
569
+ }, this);
570
+ }
571
+ const Re = (e) => /* @__PURE__ */ l.jsxDEV(ve, { ...e, children: e.children }, void 0, !1, {
572
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaSkeleton/KdpaSkeleton.tsx",
573
+ lineNumber: 6,
574
+ columnNumber: 10
575
+ }, globalThis);
576
+ export {
577
+ Ke as B,
578
+ je as K,
579
+ Re as a
580
+ };