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,32 +1,32 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as I } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { forwardRef as q } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { g as
|
|
6
|
-
import { g as F, s as v, u as z, c as
|
|
7
|
-
import { S as
|
|
8
|
-
import { c as T } from "./createSvgIcon-
|
|
9
|
-
import { c as
|
|
10
|
-
import { r as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { f as
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as
|
|
16
|
-
function
|
|
17
|
-
return
|
|
4
|
+
import { a as l, _ as j } from "./extends-135d7828.js";
|
|
5
|
+
import { g as E, j as c, P as e, c as $, a as W } from "./identifier-2647f844.js";
|
|
6
|
+
import { g as F, s as v, u as z, c as P, a as D, b as H } from "./useThemeProps-ea792506.js";
|
|
7
|
+
import { S as L } from "./SwitchBase-64e5662e.js";
|
|
8
|
+
import { c as T } from "./createSvgIcon-1aa1b2b2.js";
|
|
9
|
+
import { c as Z } from "./createChainedFunction-68e2a88d.js";
|
|
10
|
+
import { r as A } from "./refType-450337d6.js";
|
|
11
|
+
import { u as J } from "./useId-a21bd5c3.js";
|
|
12
|
+
import { u as Q } from "./useFormControl-af690c26.js";
|
|
13
|
+
import { f as X } from "./formControlState-9148c46f.js";
|
|
14
|
+
import { u as Y } from "./useControlled-cc2d41cb.js";
|
|
15
|
+
import { u as oo } from "./useForkRef-0781dda0.js";
|
|
16
|
+
function eo(o) {
|
|
17
|
+
return E("MuiFormGroup", o);
|
|
18
18
|
}
|
|
19
19
|
F("MuiFormGroup", ["root", "row", "error"]);
|
|
20
|
-
const
|
|
20
|
+
const ro = ["className", "row"], no = (o) => {
|
|
21
21
|
const {
|
|
22
22
|
classes: r,
|
|
23
23
|
row: n,
|
|
24
24
|
error: t
|
|
25
25
|
} = o;
|
|
26
|
-
return
|
|
26
|
+
return D({
|
|
27
27
|
root: ["root", n && "row", t && "error"]
|
|
28
|
-
},
|
|
29
|
-
},
|
|
28
|
+
}, eo, r);
|
|
29
|
+
}, to = v("div", {
|
|
30
30
|
name: "MuiFormGroup",
|
|
31
31
|
slot: "Root",
|
|
32
32
|
overridesResolver: (o, r) => {
|
|
@@ -43,28 +43,28 @@ const eo = ["className", "row"], ro = (o) => {
|
|
|
43
43
|
flexWrap: "wrap"
|
|
44
44
|
}, o.row && {
|
|
45
45
|
flexDirection: "row"
|
|
46
|
-
})),
|
|
46
|
+
})), V = /* @__PURE__ */ i.forwardRef(function(r, n) {
|
|
47
47
|
const t = z({
|
|
48
48
|
props: r,
|
|
49
49
|
name: "MuiFormGroup"
|
|
50
50
|
}), {
|
|
51
51
|
className: a,
|
|
52
|
-
row:
|
|
53
|
-
} = t, R =
|
|
52
|
+
row: d = !1
|
|
53
|
+
} = t, R = j(t, ro), u = Q(), h = X({
|
|
54
54
|
props: t,
|
|
55
|
-
muiFormControl:
|
|
55
|
+
muiFormControl: u,
|
|
56
56
|
states: ["error"]
|
|
57
57
|
}), f = l({}, t, {
|
|
58
|
-
row:
|
|
58
|
+
row: d,
|
|
59
59
|
error: h.error
|
|
60
|
-
}), p =
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
className:
|
|
60
|
+
}), p = no(f);
|
|
61
|
+
return /* @__PURE__ */ c.jsx(to, l({
|
|
62
|
+
className: P(p.root, a),
|
|
63
63
|
ownerState: f,
|
|
64
64
|
ref: n
|
|
65
65
|
}, R));
|
|
66
66
|
});
|
|
67
|
-
process.env.NODE_ENV !== "production" && (
|
|
67
|
+
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
68
68
|
// ----------------------------- Warning --------------------------------
|
|
69
69
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
70
70
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -91,17 +91,17 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
91
91
|
*/
|
|
92
92
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
93
93
|
});
|
|
94
|
-
const
|
|
94
|
+
const ao = V, so = T(/* @__PURE__ */ c.jsx("path", {
|
|
95
95
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
96
|
-
}), "RadioButtonUnchecked"),
|
|
96
|
+
}), "RadioButtonUnchecked"), co = T(/* @__PURE__ */ c.jsx("path", {
|
|
97
97
|
d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"
|
|
98
|
-
}), "RadioButtonChecked"),
|
|
98
|
+
}), "RadioButtonChecked"), io = v("span")({
|
|
99
99
|
position: "relative",
|
|
100
100
|
display: "flex"
|
|
101
|
-
}),
|
|
101
|
+
}), lo = v(so)({
|
|
102
102
|
// Scale applied to prevent dot misalignment in Safari
|
|
103
103
|
transform: "scale(1)"
|
|
104
|
-
}),
|
|
104
|
+
}), uo = v(co)(({
|
|
105
105
|
theme: o,
|
|
106
106
|
ownerState: r
|
|
107
107
|
}) => l({
|
|
@@ -119,7 +119,7 @@ const to = _, so = T(/* @__PURE__ */ s.jsx("path", {
|
|
|
119
119
|
duration: o.transitions.duration.shortest
|
|
120
120
|
})
|
|
121
121
|
}));
|
|
122
|
-
function
|
|
122
|
+
function S(o) {
|
|
123
123
|
const {
|
|
124
124
|
checked: r = !1,
|
|
125
125
|
classes: n = {},
|
|
@@ -127,21 +127,21 @@ function w(o) {
|
|
|
127
127
|
} = o, a = l({}, o, {
|
|
128
128
|
checked: r
|
|
129
129
|
});
|
|
130
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ c.jsxs(io, {
|
|
131
131
|
className: n.root,
|
|
132
132
|
ownerState: a,
|
|
133
|
-
children: [/* @__PURE__ */
|
|
133
|
+
children: [/* @__PURE__ */ c.jsx(lo, {
|
|
134
134
|
fontSize: t,
|
|
135
135
|
className: n.background,
|
|
136
136
|
ownerState: a
|
|
137
|
-
}), /* @__PURE__ */
|
|
137
|
+
}), /* @__PURE__ */ c.jsx(uo, {
|
|
138
138
|
fontSize: t,
|
|
139
139
|
className: n.dot,
|
|
140
140
|
ownerState: a
|
|
141
141
|
})]
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
process.env.NODE_ENV !== "production" && (
|
|
144
|
+
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
145
145
|
/**
|
|
146
146
|
* If `true`, the component is checked.
|
|
147
147
|
*/
|
|
@@ -157,25 +157,25 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
157
157
|
*/
|
|
158
158
|
fontSize: e.oneOf(["small", "medium"])
|
|
159
159
|
});
|
|
160
|
-
const
|
|
161
|
-
process.env.NODE_ENV !== "production" && (
|
|
162
|
-
const
|
|
163
|
-
function
|
|
164
|
-
return i.useContext(
|
|
160
|
+
const _ = /* @__PURE__ */ i.createContext(void 0);
|
|
161
|
+
process.env.NODE_ENV !== "production" && (_.displayName = "RadioGroupContext");
|
|
162
|
+
const M = _;
|
|
163
|
+
function po() {
|
|
164
|
+
return i.useContext(M);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
return
|
|
166
|
+
function fo(o) {
|
|
167
|
+
return E("MuiRadio", o);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const mo = F("MuiRadio", ["root", "checked", "disabled", "colorPrimary", "colorSecondary"]), w = mo, Ro = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"], ho = (o) => {
|
|
170
170
|
const {
|
|
171
171
|
classes: r,
|
|
172
172
|
color: n
|
|
173
173
|
} = o, t = {
|
|
174
174
|
root: ["root", `color${$(n)}`]
|
|
175
175
|
};
|
|
176
|
-
return l({}, r,
|
|
177
|
-
},
|
|
178
|
-
shouldForwardProp: (o) =>
|
|
176
|
+
return l({}, r, D(t, fo, r));
|
|
177
|
+
}, Co = v(L, {
|
|
178
|
+
shouldForwardProp: (o) => H(o) || o === "classes",
|
|
179
179
|
name: "MuiRadio",
|
|
180
180
|
slot: "Root",
|
|
181
181
|
overridesResolver: (o, r) => {
|
|
@@ -191,63 +191,63 @@ const fo = F("MuiRadio", ["root", "checked", "disabled", "colorPrimary", "colorS
|
|
|
191
191
|
color: (o.vars || o).palette.text.secondary
|
|
192
192
|
}, !r.disableRipple && {
|
|
193
193
|
"&:hover": {
|
|
194
|
-
backgroundColor: o.vars ? `rgba(${r.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette[r.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
194
|
+
backgroundColor: o.vars ? `rgba(${r.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette[r.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : W(r.color === "default" ? o.palette.action.active : o.palette[r.color].main, o.palette.action.hoverOpacity),
|
|
195
195
|
// Reset on touch devices, it doesn't add specificity
|
|
196
196
|
"@media (hover: none)": {
|
|
197
197
|
backgroundColor: "transparent"
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
}, r.color !== "default" && {
|
|
201
|
-
[`&.${
|
|
201
|
+
[`&.${w.checked}`]: {
|
|
202
202
|
color: (o.vars || o).palette[r.color].main
|
|
203
203
|
}
|
|
204
204
|
}, {
|
|
205
|
-
[`&.${
|
|
205
|
+
[`&.${w.disabled}`]: {
|
|
206
206
|
color: (o.vars || o).palette.action.disabled
|
|
207
207
|
}
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
209
|
+
function vo(o, r) {
|
|
210
210
|
return typeof r == "object" && r !== null ? o === r : String(o) === String(r);
|
|
211
211
|
}
|
|
212
|
-
const G = /* @__PURE__ */
|
|
212
|
+
const G = /* @__PURE__ */ c.jsx(S, {
|
|
213
213
|
checked: !0
|
|
214
|
-
}), O = /* @__PURE__ */
|
|
214
|
+
}), O = /* @__PURE__ */ c.jsx(S, {}), B = /* @__PURE__ */ i.forwardRef(function(r, n) {
|
|
215
215
|
var t, a;
|
|
216
|
-
const
|
|
216
|
+
const d = z({
|
|
217
217
|
props: r,
|
|
218
218
|
name: "MuiRadio"
|
|
219
219
|
}), {
|
|
220
220
|
checked: R,
|
|
221
|
-
checkedIcon:
|
|
221
|
+
checkedIcon: u = G,
|
|
222
222
|
color: h = "primary",
|
|
223
223
|
icon: f = O,
|
|
224
224
|
name: p,
|
|
225
225
|
onChange: g,
|
|
226
226
|
size: m = "medium",
|
|
227
|
-
className:
|
|
228
|
-
} =
|
|
227
|
+
className: k
|
|
228
|
+
} = d, x = j(d, Ro), y = l({}, d, {
|
|
229
229
|
color: h,
|
|
230
230
|
size: m
|
|
231
|
-
}),
|
|
232
|
-
let
|
|
233
|
-
const U =
|
|
234
|
-
let
|
|
235
|
-
return C && (typeof
|
|
231
|
+
}), s = ho(y), C = po();
|
|
232
|
+
let b = R;
|
|
233
|
+
const U = Z(g, C && C.onChange);
|
|
234
|
+
let N = p;
|
|
235
|
+
return C && (typeof b > "u" && (b = vo(C.value, d.value)), typeof N > "u" && (N = C.name)), /* @__PURE__ */ c.jsx(Co, l({
|
|
236
236
|
type: "radio",
|
|
237
237
|
icon: /* @__PURE__ */ i.cloneElement(f, {
|
|
238
238
|
fontSize: (t = O.props.fontSize) != null ? t : m
|
|
239
239
|
}),
|
|
240
|
-
checkedIcon: /* @__PURE__ */ i.cloneElement(
|
|
240
|
+
checkedIcon: /* @__PURE__ */ i.cloneElement(u, {
|
|
241
241
|
fontSize: (a = G.props.fontSize) != null ? a : m
|
|
242
242
|
}),
|
|
243
|
-
ownerState:
|
|
244
|
-
classes:
|
|
245
|
-
name:
|
|
246
|
-
checked:
|
|
243
|
+
ownerState: y,
|
|
244
|
+
classes: s,
|
|
245
|
+
name: N,
|
|
246
|
+
checked: b,
|
|
247
247
|
onChange: U,
|
|
248
248
|
ref: n,
|
|
249
|
-
className:
|
|
250
|
-
},
|
|
249
|
+
className: P(s.root, k)
|
|
250
|
+
}, x));
|
|
251
251
|
});
|
|
252
252
|
process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
253
253
|
// ----------------------------- Warning --------------------------------
|
|
@@ -303,7 +303,7 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
303
303
|
/**
|
|
304
304
|
* Pass a ref to the `input` element.
|
|
305
305
|
*/
|
|
306
|
-
inputRef:
|
|
306
|
+
inputRef: A,
|
|
307
307
|
/**
|
|
308
308
|
* Name attribute of the `input` element.
|
|
309
309
|
*/
|
|
@@ -336,45 +336,45 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
336
336
|
*/
|
|
337
337
|
value: e.any
|
|
338
338
|
});
|
|
339
|
-
const
|
|
339
|
+
const go = B, xo = ["actions", "children", "defaultValue", "name", "onChange", "value"], K = /* @__PURE__ */ i.forwardRef(function(r, n) {
|
|
340
340
|
const {
|
|
341
341
|
// private
|
|
342
342
|
// eslint-disable-next-line react/prop-types
|
|
343
343
|
actions: t,
|
|
344
344
|
children: a,
|
|
345
|
-
defaultValue:
|
|
345
|
+
defaultValue: d,
|
|
346
346
|
name: R,
|
|
347
|
-
onChange:
|
|
347
|
+
onChange: u,
|
|
348
348
|
value: h
|
|
349
|
-
} = r, f =
|
|
349
|
+
} = r, f = j(r, xo), p = i.useRef(null), [g, m] = Y({
|
|
350
350
|
controlled: h,
|
|
351
|
-
default:
|
|
351
|
+
default: d,
|
|
352
352
|
name: "RadioGroup"
|
|
353
353
|
});
|
|
354
354
|
i.useImperativeHandle(t, () => ({
|
|
355
355
|
focus: () => {
|
|
356
|
-
let
|
|
357
|
-
|
|
356
|
+
let s = p.current.querySelector("input:not(:disabled):checked");
|
|
357
|
+
s || (s = p.current.querySelector("input:not(:disabled)")), s && s.focus();
|
|
358
358
|
}
|
|
359
359
|
}), []);
|
|
360
|
-
const
|
|
361
|
-
name:
|
|
362
|
-
onChange(
|
|
363
|
-
m(
|
|
360
|
+
const k = oo(n, p), x = J(R), y = i.useMemo(() => ({
|
|
361
|
+
name: x,
|
|
362
|
+
onChange(s) {
|
|
363
|
+
m(s.target.value), u && u(s, s.target.value);
|
|
364
364
|
},
|
|
365
365
|
value: g
|
|
366
|
-
}), [
|
|
367
|
-
return /* @__PURE__ */
|
|
368
|
-
value:
|
|
369
|
-
children: /* @__PURE__ */
|
|
366
|
+
}), [x, u, m, g]);
|
|
367
|
+
return /* @__PURE__ */ c.jsx(M.Provider, {
|
|
368
|
+
value: y,
|
|
369
|
+
children: /* @__PURE__ */ c.jsx(ao, l({
|
|
370
370
|
role: "radiogroup",
|
|
371
|
-
ref:
|
|
371
|
+
ref: k
|
|
372
372
|
}, f, {
|
|
373
373
|
children: a
|
|
374
374
|
}))
|
|
375
375
|
});
|
|
376
376
|
});
|
|
377
|
-
process.env.NODE_ENV !== "production" && (
|
|
377
|
+
process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
378
378
|
// ----------------------------- Warning --------------------------------
|
|
379
379
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
380
380
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -405,13 +405,21 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
|
|
|
405
405
|
*/
|
|
406
406
|
value: e.any
|
|
407
407
|
});
|
|
408
|
-
const yo =
|
|
409
|
-
return /* @__PURE__ */
|
|
408
|
+
const yo = K, Do = q(function(r, n) {
|
|
409
|
+
return /* @__PURE__ */ I.jsxDEV(go, { inputRef: n, ...r }, void 0, !1, {
|
|
410
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Radio/KdpaRadio/KdpaRadio.tsx",
|
|
411
|
+
lineNumber: 10,
|
|
412
|
+
columnNumber: 10
|
|
413
|
+
}, this);
|
|
410
414
|
});
|
|
411
415
|
function To(o) {
|
|
412
|
-
return /* @__PURE__ */
|
|
416
|
+
return /* @__PURE__ */ I.jsxDEV(yo, { ...o, children: o.children }, void 0, !1, {
|
|
417
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Radio/KdpaRadioGroup/KdpaRadioGroup.tsx",
|
|
418
|
+
lineNumber: 7,
|
|
419
|
+
columnNumber: 10
|
|
420
|
+
}, this);
|
|
413
421
|
}
|
|
414
422
|
export {
|
|
415
|
-
|
|
423
|
+
Do as K,
|
|
416
424
|
To as a
|
|
417
425
|
};
|