kdpa-components 1.1.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 +2 -2
- package/dist/Accordion/index.js +14 -14
- package/dist/Alert/index.js +17 -17
- package/dist/{ArrowDropDown-ea2f6035.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +6 -6
- package/dist/Badge/index.js +19 -19
- package/dist/{Box-06b8bc37.js → Box-032e9a1d.js} +23 -24
- package/dist/{Button-28699d65.js → Button-9d9cc0bd.js} +11 -12
- package/dist/{ButtonBase-e4d95755.js → ButtonBase-fa4630c8.js} +9 -10
- package/dist/Buttons/index.js +24 -24
- package/dist/{CSSTransition-2d7d1f1e.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 +12 -12
- package/dist/Chip/index.js +16 -16
- package/dist/{Chip-95532a41.js → Chip-e5751770.js} +7 -8
- package/dist/{CircularProgress-6e67e3d8.js → CircularProgress-01a8929e.js} +15 -16
- package/dist/{Close-70f0ad0d.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +9 -9
- package/dist/{Collapse-c7000672.js → Collapse-547e6c7a.js} +35 -36
- package/dist/CopyToClipboard/index.js +23 -23
- package/dist/{Dialog-185ee62e.js → Dialog-652a3ad4.js} +15 -16
- package/dist/Divider/index.js +6 -6
- package/dist/DropZone/index.js +33 -33
- package/dist/{Fade-e6cc07e5.js → Fade-7ee2c0a4.js} +11 -12
- package/dist/FormControl/index.js +10 -10
- package/dist/{FormControl-3d1d38fe.js → FormControl-ca7447ab.js} +5 -6
- package/dist/FullScreenDialog/index.js +16 -16
- package/dist/Grid/index.js +8 -8
- package/dist/{Grid-b29d871f.js → Grid-9708b9ca.js} +59 -60
- package/dist/{Grow-bcd47732.js → Grow-55d0786d.js} +16 -17
- package/dist/{IconButton-eace4b91.js → IconButton-48d87778.js} +12 -13
- package/dist/Input/index.js +22 -22
- package/dist/{KdpaAccordions-39a4ed6e.js → KdpaAccordions-2ae65dd1.js} +125 -113
- package/dist/{KdpaAlertTitle-85b3b759.js → KdpaAlertTitle-f1549035.js} +103 -91
- package/dist/{KdpaAutoComplete-e2ccab34.js → KdpaAutoComplete-8a11974a.js} +225 -221
- package/dist/{KdpaAvatar-798f595f.js → KdpaAvatar-d297ef8a.js} +75 -71
- package/dist/{KdpaCheckBox-ca4f09b9.js → KdpaCheckBox-84d56486.js} +31 -27
- 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-2168fb05.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-f6810c38.js → KdpaDateTimePicker-cb4a16d0.js} +10531 -13197
- package/dist/{KdpaDivider-8da2e22f.js → KdpaDivider-1c62c65a.js} +93 -81
- package/dist/{KdpaDropZone-3abdf72d.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-e993132d.js → KdpaFormControlLabel-249b7622.js} +53 -49
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-544999b0.js → KdpaGridBadge-65b88a7a.js} +121 -101
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-3f3eb039.js → KdpaLazyDrop-1985fc75.js} +253 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaModalImage-f3b07c33.js → KdpaModalImage-eb732bf0.js} +69 -61
- package/dist/{KdpaPaginationGrid-281683fd.js → KdpaPaginationGrid-97a5b164.js} +307 -247
- package/dist/{KdpaRadioGroup-123a09aa.js → KdpaRadioGroup-87122ec7.js} +101 -93
- package/dist/{KdpaRtlProvider-120dff80.js → KdpaRtlProvider-495e4bb0.js} +142 -134
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-40a1807a.js → KdpaSlider-b7226e20.js} +190 -182
- package/dist/{KdpaSwitch-603cd217.js → KdpaSwitch-b2ba7c23.js} +39 -31
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-20c42ab8.js → KdpaTooltip-653424c7.js} +96 -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 +23 -23
- package/dist/{ListItem-8c33bc78.js → ListItem-ddec0b28.js} +8 -9
- package/dist/Loading/KdpaProgress/index.js +11 -11
- package/dist/Loading/index.js +8 -8
- package/dist/{MenuItem-db67ec92.js → MenuItem-057c85a3.js} +14 -15
- package/dist/Modal/index.js +2 -2
- package/dist/{Modal-8739c755.js → Modal-daf2a588.js} +10 -11
- package/dist/PaginationGrid/index.js +31 -31
- package/dist/{Paper-726cd077.js → Paper-00aea968.js} +15 -16
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +38 -38
- package/dist/{Popper-708e355f.js → Popper-7adcd815.js} +8 -9
- package/dist/{Portal-90cf7ba4.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +12 -12
- package/dist/Selects/index.js +33 -33
- package/dist/{Slide-107d0b58.js → Slide-803fd098.js} +11 -12
- package/dist/Slider/index.js +7 -7
- package/dist/Switch/index.js +11 -11
- package/dist/{SwitchBase-0a37f2eb.js → SwitchBase-64e5662e.js} +7 -8
- package/dist/Tabs/index.js +14 -14
- package/dist/{Tabs-1caed6d0.js → Tabs-1140d353.js} +77 -78
- package/dist/{TextField-092190de.js → TextField-57c51dbe.js} +15 -16
- package/dist/ThemeProvider/index.js +5 -5
- package/dist/Tooltips/index.js +15 -15
- package/dist/{TransitionGroup-a1dcb75a.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +15 -15
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +7 -7
- package/dist/{Typography-644bd1d9.js → Typography-db7e5ea2.js} +18 -19
- package/dist/{Zoom-39a63b9e.js → Zoom-36a189bb.js} +11 -12
- package/dist/{createSvgIcon-5491f07a.js → createSvgIcon-1aa1b2b2.js} +5 -6
- package/dist/{dividerClasses-6fed9b68.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-f1cfc912.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-d599eee7.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-7120a510.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-ee27a957.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-e017d9bf.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +82 -82
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/{listItemTextClasses-29c5c497.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-0b7ad6f5.js → refType-450337d6.js} +1 -1
- package/dist/{useSlotProps-615f7694.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-948a6d35.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-0f6826f6.js → useThemeProps-ea792506.js} +2 -2
- package/dist/{utils-765dc524.js → utils-acd98a68.js} +2 -2
- package/package.json +4 -1
- package/dist/KdpaChip-1bb449f1.js +0 -31
- package/dist/KdpaCircularProgress-18524b3d.js +0 -44
- package/dist/KdpaCollapse-0d001d1f.js +0 -11
- package/dist/KdpaCollapse-db70c13b.js +0 -8
- package/dist/KdpaFormControl-5136bd3a.js +0 -6
- package/dist/KdpaFullScreenDialog-6c8bc817.js +0 -16
- package/dist/KdpaGrid-c32b342e.js +0 -8
- package/dist/KdpaIconButton-d4c623d6.js +0 -23
- package/dist/KdpaInputMultiline-9f5ee3f0.js +0 -48
- package/dist/KdpaMenuItem-ec7a72c8.js +0 -36
- package/dist/KdpaSecondaryButton-ea9f2aeb.js +0 -28
- package/dist/KdpaSkeleton-872821e6.js +0 -540
- package/dist/KdpaTabs-8a087fe4.js +0 -38
- package/dist/KdpaTypography-0aab42ce.js +0 -6
- package/dist/KdpaZoom-dcf1dd78.js +0 -10
- package/dist/KpdaPrimaryButton-4e76c06b.js +0 -47
- package/dist/identifier-878ccaef.js +0 -3147
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/yarn-error.log +0 -7875
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { g as
|
|
5
|
-
import { g as S, s as b, u as
|
|
6
|
-
import { c as
|
|
7
|
-
const
|
|
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", {
|
|
8
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"
|
|
9
9
|
}), "Person");
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function E(e) {
|
|
11
|
+
return w("MuiAvatar", e);
|
|
12
12
|
}
|
|
13
13
|
S("MuiAvatar", ["root", "colorDefault", "circular", "rounded", "square", "img", "fallback"]);
|
|
14
14
|
const F = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"], O = (e) => {
|
|
15
15
|
const {
|
|
16
|
-
classes:
|
|
17
|
-
variant:
|
|
16
|
+
classes: a,
|
|
17
|
+
variant: t,
|
|
18
18
|
colorDefault: o
|
|
19
19
|
} = e;
|
|
20
20
|
return I({
|
|
21
|
-
root: ["root",
|
|
21
|
+
root: ["root", t, o && "colorDefault"],
|
|
22
22
|
img: ["img"],
|
|
23
23
|
fallback: ["fallback"]
|
|
24
|
-
},
|
|
24
|
+
}, E, a);
|
|
25
25
|
}, _ = b("div", {
|
|
26
26
|
name: "MuiAvatar",
|
|
27
27
|
slot: "Root",
|
|
28
|
-
overridesResolver: (e,
|
|
28
|
+
overridesResolver: (e, a) => {
|
|
29
29
|
const {
|
|
30
|
-
ownerState:
|
|
30
|
+
ownerState: t
|
|
31
31
|
} = e;
|
|
32
|
-
return [
|
|
32
|
+
return [a.root, a[t.variant], t.colorDefault && a.colorDefault];
|
|
33
33
|
}
|
|
34
34
|
})(({
|
|
35
35
|
theme: e,
|
|
36
|
-
ownerState:
|
|
36
|
+
ownerState: a
|
|
37
37
|
}) => i({
|
|
38
38
|
position: "relative",
|
|
39
39
|
display: "flex",
|
|
@@ -48,20 +48,20 @@ const F = ["alt", "children", "className", "component", "imgProps", "sizes", "sr
|
|
|
48
48
|
borderRadius: "50%",
|
|
49
49
|
overflow: "hidden",
|
|
50
50
|
userSelect: "none"
|
|
51
|
-
},
|
|
51
|
+
}, a.variant === "rounded" && {
|
|
52
52
|
borderRadius: (e.vars || e).shape.borderRadius
|
|
53
|
-
},
|
|
53
|
+
}, a.variant === "square" && {
|
|
54
54
|
borderRadius: 0
|
|
55
|
-
},
|
|
55
|
+
}, a.colorDefault && i({
|
|
56
56
|
color: (e.vars || e).palette.background.default
|
|
57
57
|
}, e.vars ? {
|
|
58
58
|
backgroundColor: e.vars.palette.Avatar.defaultBg
|
|
59
59
|
} : {
|
|
60
60
|
backgroundColor: e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[600]
|
|
61
|
-
}))),
|
|
61
|
+
}))), U = b("img", {
|
|
62
62
|
name: "MuiAvatar",
|
|
63
63
|
slot: "Img",
|
|
64
|
-
overridesResolver: (e,
|
|
64
|
+
overridesResolver: (e, a) => a.img
|
|
65
65
|
})({
|
|
66
66
|
width: "100%",
|
|
67
67
|
height: "100%",
|
|
@@ -72,23 +72,23 @@ const F = ["alt", "children", "className", "component", "imgProps", "sizes", "sr
|
|
|
72
72
|
color: "transparent",
|
|
73
73
|
// Hide the image broken icon, only works on Chrome.
|
|
74
74
|
textIndent: 1e4
|
|
75
|
-
}),
|
|
75
|
+
}), q = b(M, {
|
|
76
76
|
name: "MuiAvatar",
|
|
77
77
|
slot: "Fallback",
|
|
78
|
-
overridesResolver: (e,
|
|
78
|
+
overridesResolver: (e, a) => a.fallback
|
|
79
79
|
})({
|
|
80
80
|
width: "75%",
|
|
81
81
|
height: "75%"
|
|
82
82
|
});
|
|
83
|
-
function
|
|
83
|
+
function K({
|
|
84
84
|
crossOrigin: e,
|
|
85
|
-
referrerPolicy:
|
|
86
|
-
src:
|
|
85
|
+
referrerPolicy: a,
|
|
86
|
+
src: t,
|
|
87
87
|
srcSet: o
|
|
88
88
|
}) {
|
|
89
|
-
const [n, l] =
|
|
90
|
-
return
|
|
91
|
-
if (!
|
|
89
|
+
const [n, l] = g.useState(!1);
|
|
90
|
+
return g.useEffect(() => {
|
|
91
|
+
if (!t && !o)
|
|
92
92
|
return;
|
|
93
93
|
l(!1);
|
|
94
94
|
let c = !0;
|
|
@@ -97,51 +97,51 @@ function q({
|
|
|
97
97
|
c && l("loaded");
|
|
98
98
|
}, s.onerror = () => {
|
|
99
99
|
c && l("error");
|
|
100
|
-
}, s.crossOrigin = e, s.referrerPolicy =
|
|
100
|
+
}, s.crossOrigin = e, s.referrerPolicy = a, s.src = t, o && (s.srcset = o), () => {
|
|
101
101
|
c = !1;
|
|
102
102
|
};
|
|
103
|
-
}, [e,
|
|
103
|
+
}, [e, a, t, o]), n;
|
|
104
104
|
}
|
|
105
|
-
const A = /* @__PURE__ */
|
|
106
|
-
const o =
|
|
107
|
-
props:
|
|
105
|
+
const A = /* @__PURE__ */ g.forwardRef(function(a, t) {
|
|
106
|
+
const o = T({
|
|
107
|
+
props: a,
|
|
108
108
|
name: "MuiAvatar"
|
|
109
109
|
}), {
|
|
110
110
|
alt: n,
|
|
111
111
|
children: l,
|
|
112
112
|
className: c,
|
|
113
113
|
component: s = "div",
|
|
114
|
-
imgProps:
|
|
114
|
+
imgProps: h,
|
|
115
115
|
sizes: j,
|
|
116
|
-
src:
|
|
117
|
-
srcSet:
|
|
118
|
-
variant:
|
|
119
|
-
} = o,
|
|
116
|
+
src: f,
|
|
117
|
+
srcSet: m,
|
|
118
|
+
variant: k = "circular"
|
|
119
|
+
} = o, R = P(o, F);
|
|
120
120
|
let u = null;
|
|
121
|
-
const
|
|
122
|
-
src:
|
|
123
|
-
srcSet:
|
|
124
|
-
})),
|
|
125
|
-
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,
|
|
126
126
|
component: s,
|
|
127
|
-
variant:
|
|
128
|
-
}), v = O(
|
|
129
|
-
return
|
|
127
|
+
variant: k
|
|
128
|
+
}), v = O(d);
|
|
129
|
+
return y ? u = /* @__PURE__ */ p.jsx(U, i({
|
|
130
130
|
alt: n,
|
|
131
|
-
src:
|
|
132
|
-
srcSet:
|
|
131
|
+
src: f,
|
|
132
|
+
srcSet: m,
|
|
133
133
|
sizes: j,
|
|
134
|
-
ownerState:
|
|
134
|
+
ownerState: d,
|
|
135
135
|
className: v.img
|
|
136
|
-
},
|
|
137
|
-
ownerState:
|
|
136
|
+
}, h)) : l != null ? u = l : x && n ? u = n[0] : u = /* @__PURE__ */ p.jsx(q, {
|
|
137
|
+
ownerState: d,
|
|
138
138
|
className: v.fallback
|
|
139
|
-
}), /* @__PURE__ */
|
|
139
|
+
}), /* @__PURE__ */ p.jsx(_, i({
|
|
140
140
|
as: s,
|
|
141
|
-
ownerState:
|
|
142
|
-
className:
|
|
143
|
-
ref:
|
|
144
|
-
},
|
|
141
|
+
ownerState: d,
|
|
142
|
+
className: C(v.root, c),
|
|
143
|
+
ref: t
|
|
144
|
+
}, R, {
|
|
145
145
|
children: u
|
|
146
146
|
}));
|
|
147
147
|
});
|
|
@@ -154,54 +154,58 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
|
154
154
|
* Used in combination with `src` or `srcSet` to
|
|
155
155
|
* provide an alt attribute for the rendered `img` element.
|
|
156
156
|
*/
|
|
157
|
-
alt:
|
|
157
|
+
alt: r.string,
|
|
158
158
|
/**
|
|
159
159
|
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
|
160
160
|
* This can be an element, or just a string.
|
|
161
161
|
*/
|
|
162
|
-
children:
|
|
162
|
+
children: r.node,
|
|
163
163
|
/**
|
|
164
164
|
* Override or extend the styles applied to the component.
|
|
165
165
|
*/
|
|
166
|
-
classes:
|
|
166
|
+
classes: r.object,
|
|
167
167
|
/**
|
|
168
168
|
* @ignore
|
|
169
169
|
*/
|
|
170
|
-
className:
|
|
170
|
+
className: r.string,
|
|
171
171
|
/**
|
|
172
172
|
* The component used for the root node.
|
|
173
173
|
* Either a string to use a HTML element or a component.
|
|
174
174
|
*/
|
|
175
|
-
component:
|
|
175
|
+
component: r.elementType,
|
|
176
176
|
/**
|
|
177
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.
|
|
178
178
|
* It can be used to listen for the loading error event.
|
|
179
179
|
*/
|
|
180
|
-
imgProps:
|
|
180
|
+
imgProps: r.object,
|
|
181
181
|
/**
|
|
182
182
|
* The `sizes` attribute for the `img` element.
|
|
183
183
|
*/
|
|
184
|
-
sizes:
|
|
184
|
+
sizes: r.string,
|
|
185
185
|
/**
|
|
186
186
|
* The `src` attribute for the `img` element.
|
|
187
187
|
*/
|
|
188
|
-
src:
|
|
188
|
+
src: r.string,
|
|
189
189
|
/**
|
|
190
190
|
* The `srcSet` attribute for the `img` element.
|
|
191
191
|
* Use this attribute for responsive image display.
|
|
192
192
|
*/
|
|
193
|
-
srcSet:
|
|
193
|
+
srcSet: r.string,
|
|
194
194
|
/**
|
|
195
195
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
196
196
|
*/
|
|
197
|
-
sx:
|
|
197
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
198
198
|
/**
|
|
199
199
|
* The shape of the avatar.
|
|
200
200
|
* @default 'circular'
|
|
201
201
|
*/
|
|
202
|
-
variant:
|
|
202
|
+
variant: r.oneOfType([r.oneOf(["circular", "rounded", "square"]), r.string])
|
|
203
203
|
});
|
|
204
|
-
const L = A,
|
|
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);
|
|
205
209
|
export {
|
|
206
|
-
|
|
210
|
+
G as K
|
|
207
211
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
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 { g as $, c as C, a as
|
|
6
|
-
import { g as
|
|
7
|
-
import { S as H } from "./SwitchBase-
|
|
8
|
-
import { c as u } from "./createSvgIcon-
|
|
9
|
-
import { r as
|
|
10
|
-
const
|
|
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", {
|
|
11
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"
|
|
12
12
|
}), "CheckBoxOutlineBlank"), U = u(/* @__PURE__ */ t.jsx("path", {
|
|
13
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"
|
|
14
|
-
}), "CheckBox"),
|
|
14
|
+
}), "CheckBox"), K = u(/* @__PURE__ */ t.jsx("path", {
|
|
15
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"
|
|
16
16
|
}), "IndeterminateCheckBox");
|
|
17
|
-
function
|
|
17
|
+
function L(e) {
|
|
18
18
|
return $("MuiCheckbox", e);
|
|
19
19
|
}
|
|
20
|
-
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) => {
|
|
21
21
|
const {
|
|
22
22
|
classes: c,
|
|
23
23
|
indeterminate: n,
|
|
24
24
|
color: r
|
|
25
25
|
} = e, i = {
|
|
26
26
|
root: ["root", n && "indeterminate", `color${C(r)}`]
|
|
27
|
-
}, s =
|
|
27
|
+
}, s = V(i, L, c);
|
|
28
28
|
return a({}, c, s);
|
|
29
|
-
},
|
|
29
|
+
}, A = _(H, {
|
|
30
30
|
shouldForwardProp: (e) => S(e) || e === "classes",
|
|
31
31
|
name: "MuiCheckbox",
|
|
32
32
|
slot: "Root",
|
|
@@ -43,7 +43,7 @@ const K = _("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
43
43
|
color: (e.vars || e).palette.text.secondary
|
|
44
44
|
}, !c.disableRipple && {
|
|
45
45
|
"&:hover": {
|
|
46
|
-
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),
|
|
47
47
|
// Reset on touch devices, it doesn't add specificity
|
|
48
48
|
"@media (hover: none)": {
|
|
49
49
|
backgroundColor: "transparent"
|
|
@@ -56,26 +56,26 @@ const K = _("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
56
56
|
[`&.${m.disabled}`]: {
|
|
57
57
|
color: (e.vars || e).palette.action.disabled
|
|
58
58
|
}
|
|
59
|
-
})),
|
|
59
|
+
})), G = /* @__PURE__ */ t.jsx(U, {}), J = /* @__PURE__ */ t.jsx(D, {}), Q = /* @__PURE__ */ t.jsx(K, {}), v = /* @__PURE__ */ p.forwardRef(function(c, n) {
|
|
60
60
|
var r, i;
|
|
61
|
-
const s =
|
|
61
|
+
const s = E({
|
|
62
62
|
props: c,
|
|
63
63
|
name: "MuiCheckbox"
|
|
64
64
|
}), {
|
|
65
|
-
checkedIcon: y =
|
|
65
|
+
checkedIcon: y = G,
|
|
66
66
|
color: I = "primary",
|
|
67
|
-
icon: g =
|
|
67
|
+
icon: g = J,
|
|
68
68
|
indeterminate: l = !1,
|
|
69
|
-
indeterminateIcon: f =
|
|
69
|
+
indeterminateIcon: f = Q,
|
|
70
70
|
inputProps: j,
|
|
71
71
|
size: d = "medium",
|
|
72
72
|
className: z
|
|
73
|
-
} = s, P =
|
|
73
|
+
} = s, P = O(s, q), h = l ? f : g, x = l ? f : y, b = a({}, s, {
|
|
74
74
|
color: I,
|
|
75
75
|
indeterminate: l,
|
|
76
76
|
size: d
|
|
77
|
-
}), k =
|
|
78
|
-
return /* @__PURE__ */ t.jsx(
|
|
77
|
+
}), k = W(b);
|
|
78
|
+
return /* @__PURE__ */ t.jsx(A, a({
|
|
79
79
|
type: "checkbox",
|
|
80
80
|
inputProps: a({
|
|
81
81
|
"data-indeterminate": l
|
|
@@ -165,7 +165,7 @@ process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
|
165
165
|
/**
|
|
166
166
|
* Pass a ref to the `input` element.
|
|
167
167
|
*/
|
|
168
|
-
inputRef:
|
|
168
|
+
inputRef: w,
|
|
169
169
|
/**
|
|
170
170
|
* Callback fired when the state is changed.
|
|
171
171
|
*
|
|
@@ -194,9 +194,13 @@ process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
|
194
194
|
*/
|
|
195
195
|
value: o.any
|
|
196
196
|
});
|
|
197
|
-
const
|
|
198
|
-
(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)
|
|
199
203
|
);
|
|
200
204
|
export {
|
|
201
|
-
|
|
205
|
+
ao as K
|
|
202
206
|
};
|
|
@@ -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
|
+
};
|