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.
- package/CHANGELOG.md +7 -0
- package/dist/Accordion/index.js +17 -19
- package/dist/Alert/index.js +19 -20
- package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +7 -8
- package/dist/Badge/index.js +22 -24
- package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
- package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
- package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
- package/dist/Buttons/index.js +28 -30
- package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
- package/dist/Cards/index.d.ts +2 -0
- package/dist/Cards/index.d.ts.map +1 -1
- package/dist/Cards/index.js +150 -1
- package/dist/CheckBox/index.js +13 -14
- package/dist/Chip/index.js +17 -19
- package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
- package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
- package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +10 -12
- package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
- package/dist/CopyToClipboard/index.js +24 -26
- package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
- package/dist/Divider/index.js +7 -8
- package/dist/DropZone/index.js +34 -36
- package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
- package/dist/FormControl/index.js +12 -13
- package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
- package/dist/FullScreenDialog/index.js +20 -22
- package/dist/Grid/index.js +9 -10
- package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
- package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
- package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
- package/dist/Input/index.js +27 -29
- package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
- package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
- package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
- package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
- package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
- package/dist/KdpaChip-10899788.js +51 -0
- package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
- package/dist/KdpaCollapse-2d23c312.js +12 -0
- package/dist/KdpaCollapse-73c03e02.js +23 -0
- package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
- package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
- package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
- package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
- package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
- package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
- package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
- package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
- package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
- package/dist/KdpaTypography-763c3238.js +10 -0
- package/dist/KdpaZoom-1b0f3404.js +22 -0
- package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
- package/dist/LazyDrop/index.js +24 -24
- package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
- package/dist/Loading/KdpaProgress/index.js +12 -13
- package/dist/Loading/index.js +11 -12
- package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
- package/dist/Modal/index.d.ts +0 -2
- package/dist/Modal/index.d.ts.map +1 -1
- package/dist/Modal/index.js +3 -17
- package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
- package/dist/PaginationGrid/index.js +33 -34
- package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +43 -45
- package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
- package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +14 -15
- package/dist/Selects/index.js +39 -40
- package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
- package/dist/Slider/index.js +8 -9
- package/dist/Switch/index.js +12 -13
- package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
- package/dist/Tabs/index.js +16 -17
- package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
- package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
- package/dist/ThemeProvider/index.js +7 -8
- package/dist/Tooltips/index.js +16 -18
- package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +22 -24
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +8 -9
- package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
- package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
- package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
- package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
- package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
- package/dist/identifier-2647f844.js +3775 -0
- package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +140 -142
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/kdpaSelect-4ed993c7.js +1 -0
- package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
- package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
- package/package.json +90 -87
- package/dist/KdpaChip-f94c5b7e.js +0 -31
- package/dist/KdpaCircularProgress-aed28149.js +0 -44
- package/dist/KdpaCollapse-73e5e40c.js +0 -8
- package/dist/KdpaCollapse-7f12a32a.js +0 -11
- package/dist/KdpaFormControl-ae8f7241.js +0 -6
- package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
- package/dist/KdpaGrid-b93fab29.js +0 -8
- package/dist/KdpaIconButton-f5146164.js +0 -23
- package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
- package/dist/KdpaMenuItem-9a9ece89.js +0 -35
- package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
- package/dist/KdpaSkeleton-4696fadd.js +0 -541
- package/dist/KdpaTabs-a76a17a7.js +0 -38
- package/dist/KdpaTypography-17403558.js +0 -6
- package/dist/KdpaZoom-96a648cb.js +0 -10
- package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
- package/dist/Sanitizer/index.d.ts +0 -3
- package/dist/Sanitizer/index.d.ts.map +0 -1
- package/dist/Sanitizer/index.js +0 -492
- package/dist/identifier-5cabf5ae.js +0 -2481
- package/dist/index-f4329b29.js +0 -669
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/dist/utils-8a7b223e.js +0 -18
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { P as
|
|
5
|
-
import { g as
|
|
6
|
-
import { c as
|
|
7
|
-
|
|
8
|
-
const z = I(/* @__PURE__ */ d.jsx("path", {
|
|
1
|
+
import { j as D } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import { a as i, _ as P } from "./extends-135d7828.js";
|
|
3
|
+
import * as g from "react";
|
|
4
|
+
import { j as p, g as w, P as r } from "./identifier-2647f844.js";
|
|
5
|
+
import { g as S, s as b, u as T, c as C, a as I } from "./useThemeProps-ea792506.js";
|
|
6
|
+
import { c as z } from "./createSvgIcon-1aa1b2b2.js";
|
|
7
|
+
const M = z(/* @__PURE__ */ p.jsx("path", {
|
|
9
8
|
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
10
9
|
}), "Person");
|
|
11
|
-
function
|
|
12
|
-
return
|
|
10
|
+
function E(e) {
|
|
11
|
+
return w("MuiAvatar", e);
|
|
13
12
|
}
|
|
14
|
-
|
|
13
|
+
S("MuiAvatar", ["root", "colorDefault", "circular", "rounded", "square", "img", "fallback"]);
|
|
15
14
|
const F = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"], O = (e) => {
|
|
16
15
|
const {
|
|
17
|
-
classes:
|
|
18
|
-
variant:
|
|
16
|
+
classes: a,
|
|
17
|
+
variant: t,
|
|
19
18
|
colorDefault: o
|
|
20
19
|
} = e;
|
|
21
|
-
return
|
|
22
|
-
root: ["root",
|
|
20
|
+
return I({
|
|
21
|
+
root: ["root", t, o && "colorDefault"],
|
|
23
22
|
img: ["img"],
|
|
24
23
|
fallback: ["fallback"]
|
|
25
|
-
},
|
|
24
|
+
}, E, a);
|
|
26
25
|
}, _ = b("div", {
|
|
27
26
|
name: "MuiAvatar",
|
|
28
27
|
slot: "Root",
|
|
29
|
-
overridesResolver: (e,
|
|
28
|
+
overridesResolver: (e, a) => {
|
|
30
29
|
const {
|
|
31
|
-
ownerState:
|
|
30
|
+
ownerState: t
|
|
32
31
|
} = e;
|
|
33
|
-
return [
|
|
32
|
+
return [a.root, a[t.variant], t.colorDefault && a.colorDefault];
|
|
34
33
|
}
|
|
35
34
|
})(({
|
|
36
35
|
theme: e,
|
|
37
|
-
ownerState:
|
|
36
|
+
ownerState: a
|
|
38
37
|
}) => i({
|
|
39
38
|
position: "relative",
|
|
40
39
|
display: "flex",
|
|
@@ -49,20 +48,20 @@ const F = ["alt", "children", "className", "component", "imgProps", "sizes", "sr
|
|
|
49
48
|
borderRadius: "50%",
|
|
50
49
|
overflow: "hidden",
|
|
51
50
|
userSelect: "none"
|
|
52
|
-
},
|
|
51
|
+
}, a.variant === "rounded" && {
|
|
53
52
|
borderRadius: (e.vars || e).shape.borderRadius
|
|
54
|
-
},
|
|
53
|
+
}, a.variant === "square" && {
|
|
55
54
|
borderRadius: 0
|
|
56
|
-
},
|
|
55
|
+
}, a.colorDefault && i({
|
|
57
56
|
color: (e.vars || e).palette.background.default
|
|
58
57
|
}, e.vars ? {
|
|
59
58
|
backgroundColor: e.vars.palette.Avatar.defaultBg
|
|
60
59
|
} : {
|
|
61
60
|
backgroundColor: e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[600]
|
|
62
|
-
}))),
|
|
61
|
+
}))), U = b("img", {
|
|
63
62
|
name: "MuiAvatar",
|
|
64
63
|
slot: "Img",
|
|
65
|
-
overridesResolver: (e,
|
|
64
|
+
overridesResolver: (e, a) => a.img
|
|
66
65
|
})({
|
|
67
66
|
width: "100%",
|
|
68
67
|
height: "100%",
|
|
@@ -73,23 +72,23 @@ const F = ["alt", "children", "className", "component", "imgProps", "sizes", "sr
|
|
|
73
72
|
color: "transparent",
|
|
74
73
|
// Hide the image broken icon, only works on Chrome.
|
|
75
74
|
textIndent: 1e4
|
|
76
|
-
}),
|
|
75
|
+
}), q = b(M, {
|
|
77
76
|
name: "MuiAvatar",
|
|
78
77
|
slot: "Fallback",
|
|
79
|
-
overridesResolver: (e,
|
|
78
|
+
overridesResolver: (e, a) => a.fallback
|
|
80
79
|
})({
|
|
81
80
|
width: "75%",
|
|
82
81
|
height: "75%"
|
|
83
82
|
});
|
|
84
|
-
function
|
|
83
|
+
function K({
|
|
85
84
|
crossOrigin: e,
|
|
86
|
-
referrerPolicy:
|
|
87
|
-
src:
|
|
85
|
+
referrerPolicy: a,
|
|
86
|
+
src: t,
|
|
88
87
|
srcSet: o
|
|
89
88
|
}) {
|
|
90
|
-
const [n, l] =
|
|
91
|
-
return
|
|
92
|
-
if (!
|
|
89
|
+
const [n, l] = g.useState(!1);
|
|
90
|
+
return g.useEffect(() => {
|
|
91
|
+
if (!t && !o)
|
|
93
92
|
return;
|
|
94
93
|
l(!1);
|
|
95
94
|
let c = !0;
|
|
@@ -98,51 +97,51 @@ function q({
|
|
|
98
97
|
c && l("loaded");
|
|
99
98
|
}, s.onerror = () => {
|
|
100
99
|
c && l("error");
|
|
101
|
-
}, s.crossOrigin = e, s.referrerPolicy =
|
|
100
|
+
}, s.crossOrigin = e, s.referrerPolicy = a, s.src = t, o && (s.srcset = o), () => {
|
|
102
101
|
c = !1;
|
|
103
102
|
};
|
|
104
|
-
}, [e,
|
|
103
|
+
}, [e, a, t, o]), n;
|
|
105
104
|
}
|
|
106
|
-
const A = /* @__PURE__ */
|
|
107
|
-
const o =
|
|
108
|
-
props:
|
|
105
|
+
const A = /* @__PURE__ */ g.forwardRef(function(a, t) {
|
|
106
|
+
const o = T({
|
|
107
|
+
props: a,
|
|
109
108
|
name: "MuiAvatar"
|
|
110
109
|
}), {
|
|
111
110
|
alt: n,
|
|
112
111
|
children: l,
|
|
113
112
|
className: c,
|
|
114
113
|
component: s = "div",
|
|
115
|
-
imgProps:
|
|
114
|
+
imgProps: h,
|
|
116
115
|
sizes: j,
|
|
117
|
-
src:
|
|
118
|
-
srcSet:
|
|
119
|
-
variant:
|
|
120
|
-
} = o,
|
|
116
|
+
src: f,
|
|
117
|
+
srcSet: m,
|
|
118
|
+
variant: k = "circular"
|
|
119
|
+
} = o, R = P(o, F);
|
|
121
120
|
let u = null;
|
|
122
|
-
const
|
|
123
|
-
src:
|
|
124
|
-
srcSet:
|
|
125
|
-
})),
|
|
126
|
-
colorDefault: !
|
|
121
|
+
const N = K(i({}, h, {
|
|
122
|
+
src: f,
|
|
123
|
+
srcSet: m
|
|
124
|
+
})), x = f || m, y = x && N !== "error", d = i({}, o, {
|
|
125
|
+
colorDefault: !y,
|
|
127
126
|
component: s,
|
|
128
|
-
variant:
|
|
129
|
-
}), v = O(
|
|
130
|
-
return
|
|
127
|
+
variant: k
|
|
128
|
+
}), v = O(d);
|
|
129
|
+
return y ? u = /* @__PURE__ */ p.jsx(U, i({
|
|
131
130
|
alt: n,
|
|
132
|
-
src:
|
|
133
|
-
srcSet:
|
|
131
|
+
src: f,
|
|
132
|
+
srcSet: m,
|
|
134
133
|
sizes: j,
|
|
135
|
-
ownerState:
|
|
134
|
+
ownerState: d,
|
|
136
135
|
className: v.img
|
|
137
|
-
},
|
|
138
|
-
ownerState:
|
|
136
|
+
}, h)) : l != null ? u = l : x && n ? u = n[0] : u = /* @__PURE__ */ p.jsx(q, {
|
|
137
|
+
ownerState: d,
|
|
139
138
|
className: v.fallback
|
|
140
|
-
}), /* @__PURE__ */
|
|
139
|
+
}), /* @__PURE__ */ p.jsx(_, i({
|
|
141
140
|
as: s,
|
|
142
|
-
ownerState:
|
|
141
|
+
ownerState: d,
|
|
143
142
|
className: C(v.root, c),
|
|
144
|
-
ref:
|
|
145
|
-
},
|
|
143
|
+
ref: t
|
|
144
|
+
}, R, {
|
|
146
145
|
children: u
|
|
147
146
|
}));
|
|
148
147
|
});
|
|
@@ -155,54 +154,58 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
|
155
154
|
* Used in combination with `src` or `srcSet` to
|
|
156
155
|
* provide an alt attribute for the rendered `img` element.
|
|
157
156
|
*/
|
|
158
|
-
alt:
|
|
157
|
+
alt: r.string,
|
|
159
158
|
/**
|
|
160
159
|
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
|
161
160
|
* This can be an element, or just a string.
|
|
162
161
|
*/
|
|
163
|
-
children:
|
|
162
|
+
children: r.node,
|
|
164
163
|
/**
|
|
165
164
|
* Override or extend the styles applied to the component.
|
|
166
165
|
*/
|
|
167
|
-
classes:
|
|
166
|
+
classes: r.object,
|
|
168
167
|
/**
|
|
169
168
|
* @ignore
|
|
170
169
|
*/
|
|
171
|
-
className:
|
|
170
|
+
className: r.string,
|
|
172
171
|
/**
|
|
173
172
|
* The component used for the root node.
|
|
174
173
|
* Either a string to use a HTML element or a component.
|
|
175
174
|
*/
|
|
176
|
-
component:
|
|
175
|
+
component: r.elementType,
|
|
177
176
|
/**
|
|
178
177
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
|
179
178
|
* It can be used to listen for the loading error event.
|
|
180
179
|
*/
|
|
181
|
-
imgProps:
|
|
180
|
+
imgProps: r.object,
|
|
182
181
|
/**
|
|
183
182
|
* The `sizes` attribute for the `img` element.
|
|
184
183
|
*/
|
|
185
|
-
sizes:
|
|
184
|
+
sizes: r.string,
|
|
186
185
|
/**
|
|
187
186
|
* The `src` attribute for the `img` element.
|
|
188
187
|
*/
|
|
189
|
-
src:
|
|
188
|
+
src: r.string,
|
|
190
189
|
/**
|
|
191
190
|
* The `srcSet` attribute for the `img` element.
|
|
192
191
|
* Use this attribute for responsive image display.
|
|
193
192
|
*/
|
|
194
|
-
srcSet:
|
|
193
|
+
srcSet: r.string,
|
|
195
194
|
/**
|
|
196
195
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
197
196
|
*/
|
|
198
|
-
sx:
|
|
197
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
199
198
|
/**
|
|
200
199
|
* The shape of the avatar.
|
|
201
200
|
* @default 'circular'
|
|
202
201
|
*/
|
|
203
|
-
variant:
|
|
202
|
+
variant: r.oneOfType([r.oneOf(["circular", "rounded", "square"]), r.string])
|
|
204
203
|
});
|
|
205
|
-
const L = A, G = ({ children: e, ...
|
|
204
|
+
const L = A, G = ({ children: e, ...a }) => /* @__PURE__ */ D.jsxDEV(L, { ...a, children: e }, void 0, !1, {
|
|
205
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Avatar/KdpaAvatar.tsx",
|
|
206
|
+
lineNumber: 6,
|
|
207
|
+
columnNumber: 10
|
|
208
|
+
}, globalThis);
|
|
206
209
|
export {
|
|
207
210
|
G as K
|
|
208
211
|
};
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as R } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { P as o } from "./
|
|
6
|
-
import { g as
|
|
7
|
-
import { S as
|
|
8
|
-
import { c as u } from "./createSvgIcon-
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const w = u(/* @__PURE__ */ t.jsx("path", {
|
|
3
|
+
import B from "react";
|
|
4
|
+
import { a, _ as O } from "./extends-135d7828.js";
|
|
5
|
+
import { j as t, g as $, c as C, a as N, P as o } from "./identifier-2647f844.js";
|
|
6
|
+
import { g as T, s as _, b as S, u as E, c as M, a as V } from "./useThemeProps-ea792506.js";
|
|
7
|
+
import { S as H } from "./SwitchBase-64e5662e.js";
|
|
8
|
+
import { c as u } from "./createSvgIcon-1aa1b2b2.js";
|
|
9
|
+
import { r as w } from "./refType-450337d6.js";
|
|
10
|
+
const D = u(/* @__PURE__ */ t.jsx("path", {
|
|
12
11
|
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
13
12
|
}), "CheckBoxOutlineBlank"), U = u(/* @__PURE__ */ t.jsx("path", {
|
|
14
13
|
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
15
|
-
}), "CheckBox"),
|
|
14
|
+
}), "CheckBox"), K = u(/* @__PURE__ */ t.jsx("path", {
|
|
16
15
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
17
16
|
}), "IndeterminateCheckBox");
|
|
18
|
-
function
|
|
19
|
-
return
|
|
17
|
+
function L(e) {
|
|
18
|
+
return $("MuiCheckbox", e);
|
|
20
19
|
}
|
|
21
|
-
const
|
|
20
|
+
const F = T("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary"]), m = F, q = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], W = (e) => {
|
|
22
21
|
const {
|
|
23
22
|
classes: c,
|
|
24
23
|
indeterminate: n,
|
|
25
24
|
color: r
|
|
26
25
|
} = e, i = {
|
|
27
26
|
root: ["root", n && "indeterminate", `color${C(r)}`]
|
|
28
|
-
}, s =
|
|
27
|
+
}, s = V(i, L, c);
|
|
29
28
|
return a({}, c, s);
|
|
30
|
-
},
|
|
31
|
-
shouldForwardProp: (e) =>
|
|
29
|
+
}, A = _(H, {
|
|
30
|
+
shouldForwardProp: (e) => S(e) || e === "classes",
|
|
32
31
|
name: "MuiCheckbox",
|
|
33
32
|
slot: "Root",
|
|
34
33
|
overridesResolver: (e, c) => {
|
|
@@ -44,7 +43,7 @@ const K = $("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
44
43
|
color: (e.vars || e).palette.text.secondary
|
|
45
44
|
}, !c.disableRipple && {
|
|
46
45
|
"&:hover": {
|
|
47
|
-
backgroundColor: e.vars ? `rgba(${c.color === "default" ? e.vars.palette.action.activeChannel : e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
46
|
+
backgroundColor: e.vars ? `rgba(${c.color === "default" ? e.vars.palette.action.activeChannel : e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : N(c.color === "default" ? e.palette.action.active : e.palette[c.color].main, e.palette.action.hoverOpacity),
|
|
48
47
|
// Reset on touch devices, it doesn't add specificity
|
|
49
48
|
"@media (hover: none)": {
|
|
50
49
|
backgroundColor: "transparent"
|
|
@@ -57,26 +56,26 @@ const K = $("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
57
56
|
[`&.${m.disabled}`]: {
|
|
58
57
|
color: (e.vars || e).palette.action.disabled
|
|
59
58
|
}
|
|
60
|
-
})),
|
|
59
|
+
})), G = /* @__PURE__ */ t.jsx(U, {}), J = /* @__PURE__ */ t.jsx(D, {}), Q = /* @__PURE__ */ t.jsx(K, {}), v = /* @__PURE__ */ p.forwardRef(function(c, n) {
|
|
61
60
|
var r, i;
|
|
62
|
-
const s =
|
|
61
|
+
const s = E({
|
|
63
62
|
props: c,
|
|
64
63
|
name: "MuiCheckbox"
|
|
65
64
|
}), {
|
|
66
|
-
checkedIcon: y =
|
|
65
|
+
checkedIcon: y = G,
|
|
67
66
|
color: I = "primary",
|
|
68
|
-
icon: g =
|
|
67
|
+
icon: g = J,
|
|
69
68
|
indeterminate: l = !1,
|
|
70
|
-
indeterminateIcon: f =
|
|
69
|
+
indeterminateIcon: f = Q,
|
|
71
70
|
inputProps: j,
|
|
72
71
|
size: d = "medium",
|
|
73
72
|
className: z
|
|
74
|
-
} = s, P =
|
|
73
|
+
} = s, P = O(s, q), h = l ? f : g, x = l ? f : y, b = a({}, s, {
|
|
75
74
|
color: I,
|
|
76
75
|
indeterminate: l,
|
|
77
76
|
size: d
|
|
78
|
-
}), k =
|
|
79
|
-
return /* @__PURE__ */ t.jsx(
|
|
77
|
+
}), k = W(b);
|
|
78
|
+
return /* @__PURE__ */ t.jsx(A, a({
|
|
80
79
|
type: "checkbox",
|
|
81
80
|
inputProps: a({
|
|
82
81
|
"data-indeterminate": l
|
|
@@ -89,7 +88,7 @@ const K = $("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
89
88
|
}),
|
|
90
89
|
ownerState: b,
|
|
91
90
|
ref: n,
|
|
92
|
-
className:
|
|
91
|
+
className: M(k.root, z)
|
|
93
92
|
}, P, {
|
|
94
93
|
classes: k
|
|
95
94
|
}));
|
|
@@ -166,7 +165,7 @@ process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
|
166
165
|
/**
|
|
167
166
|
* Pass a ref to the `input` element.
|
|
168
167
|
*/
|
|
169
|
-
inputRef:
|
|
168
|
+
inputRef: w,
|
|
170
169
|
/**
|
|
171
170
|
* Callback fired when the state is changed.
|
|
172
171
|
*
|
|
@@ -195,8 +194,12 @@ process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
|
195
194
|
*/
|
|
196
195
|
value: o.any
|
|
197
196
|
});
|
|
198
|
-
const
|
|
199
|
-
(e, c) => /* @__PURE__ */
|
|
197
|
+
const X = v, ao = B.forwardRef(
|
|
198
|
+
(e, c) => /* @__PURE__ */ R.jsxDEV(X, { ...e, className: e.className, inputRef: c }, void 0, !1, {
|
|
199
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/CheckBox/KdpaCheckBox.tsx",
|
|
200
|
+
lineNumber: 8,
|
|
201
|
+
columnNumber: 12
|
|
202
|
+
}, globalThis)
|
|
200
203
|
);
|
|
201
204
|
export {
|
|
202
205
|
ao as K
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { j as e } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import { K as t } from "./KdpaTooltip-653424c7.js";
|
|
3
|
+
import { G as l } from "./iconBase-800b43ff.js";
|
|
4
|
+
function m(a) {
|
|
5
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z" } }] })(a);
|
|
6
|
+
}
|
|
7
|
+
function u({
|
|
8
|
+
color: a,
|
|
9
|
+
title: p,
|
|
10
|
+
children: s,
|
|
11
|
+
className: o = "",
|
|
12
|
+
onClose: i,
|
|
13
|
+
onClick: c,
|
|
14
|
+
...n
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ e.jsxDEV(t, { ...n, title: p, placement: "top", children: /* @__PURE__ */ e.jsxDEV(
|
|
17
|
+
"span",
|
|
18
|
+
{
|
|
19
|
+
style: { color: `${a}`, backgroundColor: `${a}1f` },
|
|
20
|
+
className: `kdpa-chip kdpa-chip--pill ${o}`,
|
|
21
|
+
onClick: c,
|
|
22
|
+
children: [
|
|
23
|
+
s,
|
|
24
|
+
i && /* @__PURE__ */ e.jsxDEV("span", { className: "kdpa-chip__close-button", onClick: i, children: /* @__PURE__ */ e.jsxDEV(m, { size: 18 }, void 0, !1, {
|
|
25
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Chip/KdpaChip.tsx",
|
|
26
|
+
lineNumber: 37,
|
|
27
|
+
columnNumber: 13
|
|
28
|
+
}, this) }, void 0, !1, {
|
|
29
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Chip/KdpaChip.tsx",
|
|
30
|
+
lineNumber: 36,
|
|
31
|
+
columnNumber: 11
|
|
32
|
+
}, this)
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
void 0,
|
|
36
|
+
!0,
|
|
37
|
+
{
|
|
38
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Chip/KdpaChip.tsx",
|
|
39
|
+
lineNumber: 28,
|
|
40
|
+
columnNumber: 7
|
|
41
|
+
},
|
|
42
|
+
this
|
|
43
|
+
) }, void 0, !1, {
|
|
44
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Chip/KdpaChip.tsx",
|
|
45
|
+
lineNumber: 27,
|
|
46
|
+
columnNumber: 5
|
|
47
|
+
}, this);
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
u as K
|
|
51
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { j as e } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import { K as o } from "./KdpaTypography-763c3238.js";
|
|
3
|
+
import { B as a } from "./Box-032e9a1d.js";
|
|
4
|
+
import { C as i } from "./CircularProgress-01a8929e.js";
|
|
5
|
+
const m = ({
|
|
6
|
+
value: r,
|
|
7
|
+
showPercent: s = !1
|
|
8
|
+
}) => r === 0 ? null : /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: /* @__PURE__ */ e.jsxDEV(
|
|
9
|
+
a,
|
|
10
|
+
{
|
|
11
|
+
className: "mx-1",
|
|
12
|
+
position: "relative",
|
|
13
|
+
display: "inline-flex",
|
|
14
|
+
right: 7,
|
|
15
|
+
top: 10,
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ e.jsxDEV(i, { variant: "determinate", value: r, size: 35 }, void 0, !1, {
|
|
18
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaProgress/KdpaCircularProgress.tsx",
|
|
19
|
+
lineNumber: 23,
|
|
20
|
+
columnNumber: 9
|
|
21
|
+
}, globalThis),
|
|
22
|
+
/* @__PURE__ */ e.jsxDEV(
|
|
23
|
+
a,
|
|
24
|
+
{
|
|
25
|
+
top: 0,
|
|
26
|
+
left: 0,
|
|
27
|
+
bottom: 0,
|
|
28
|
+
right: 0,
|
|
29
|
+
position: "absolute",
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
justifyContent: "center",
|
|
33
|
+
children: s && /* @__PURE__ */ e.jsxDEV(
|
|
34
|
+
o,
|
|
35
|
+
{
|
|
36
|
+
variant: "caption",
|
|
37
|
+
color: "textSecondary",
|
|
38
|
+
children: `${Math.round(r)}%`
|
|
39
|
+
},
|
|
40
|
+
void 0,
|
|
41
|
+
!1,
|
|
42
|
+
{
|
|
43
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaProgress/KdpaCircularProgress.tsx",
|
|
44
|
+
lineNumber: 35,
|
|
45
|
+
columnNumber: 13
|
|
46
|
+
},
|
|
47
|
+
globalThis
|
|
48
|
+
)
|
|
49
|
+
},
|
|
50
|
+
void 0,
|
|
51
|
+
!1,
|
|
52
|
+
{
|
|
53
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaProgress/KdpaCircularProgress.tsx",
|
|
54
|
+
lineNumber: 24,
|
|
55
|
+
columnNumber: 9
|
|
56
|
+
},
|
|
57
|
+
globalThis
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
void 0,
|
|
62
|
+
!0,
|
|
63
|
+
{
|
|
64
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaProgress/KdpaCircularProgress.tsx",
|
|
65
|
+
lineNumber: 16,
|
|
66
|
+
columnNumber: 7
|
|
67
|
+
},
|
|
68
|
+
globalThis
|
|
69
|
+
) }, void 0, !1, {
|
|
70
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Loading/KdpaProgress/KdpaCircularProgress.tsx",
|
|
71
|
+
lineNumber: 15,
|
|
72
|
+
columnNumber: 5
|
|
73
|
+
}, globalThis);
|
|
74
|
+
export {
|
|
75
|
+
m as K
|
|
76
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { j as a } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import { C as o } from "./Collapse-547e6c7a.js";
|
|
3
|
+
function i(e) {
|
|
4
|
+
return /* @__PURE__ */ a.jsxDEV(o, { ...e, children: e.children }, void 0, !1, {
|
|
5
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Collapse/KdpaCollapse.tsx",
|
|
6
|
+
lineNumber: 6,
|
|
7
|
+
columnNumber: 10
|
|
8
|
+
}, this);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
i as K
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { j as e } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { F as p } from "./Fade-7ee2c0a4.js";
|
|
4
|
+
import { C as d } from "./Collapse-547e6c7a.js";
|
|
5
|
+
const c = n.forwardRef(function({ children: a, ...o }, i) {
|
|
6
|
+
return /* @__PURE__ */ e.jsxDEV(p, { ref: i, ...o, children: /* @__PURE__ */ e.jsxDEV("div", { children: a }, void 0, !1, {
|
|
7
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Transitions/KdpaFade/KdpaFade.tsx",
|
|
8
|
+
lineNumber: 12,
|
|
9
|
+
columnNumber: 7
|
|
10
|
+
}, this) }, void 0, !1, {
|
|
11
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Transitions/KdpaFade/KdpaFade.tsx",
|
|
12
|
+
lineNumber: 11,
|
|
13
|
+
columnNumber: 5
|
|
14
|
+
}, this);
|
|
15
|
+
}), f = ({ children: s, ...a }) => /* @__PURE__ */ e.jsxDEV(d, { ...a, children: s }, void 0, !1, {
|
|
16
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Transitions/KdpaCollapse/KdpaCollapse.tsx",
|
|
17
|
+
lineNumber: 6,
|
|
18
|
+
columnNumber: 10
|
|
19
|
+
}, globalThis);
|
|
20
|
+
export {
|
|
21
|
+
c as K,
|
|
22
|
+
f as a
|
|
23
|
+
};
|