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.
Files changed (141) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/Accordion/index.js +14 -14
  3. package/dist/Alert/index.js +17 -17
  4. package/dist/{ArrowDropDown-ea2f6035.js → ArrowDropDown-07b9ccae.js} +19 -20
  5. package/dist/Avatar/index.js +6 -6
  6. package/dist/Badge/index.js +19 -19
  7. package/dist/{Box-06b8bc37.js → Box-032e9a1d.js} +23 -24
  8. package/dist/{Button-28699d65.js → Button-9d9cc0bd.js} +11 -12
  9. package/dist/{ButtonBase-e4d95755.js → ButtonBase-fa4630c8.js} +9 -10
  10. package/dist/Buttons/index.js +24 -24
  11. package/dist/{CSSTransition-2d7d1f1e.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 +12 -12
  16. package/dist/Chip/index.js +16 -16
  17. package/dist/{Chip-95532a41.js → Chip-e5751770.js} +7 -8
  18. package/dist/{CircularProgress-6e67e3d8.js → CircularProgress-01a8929e.js} +15 -16
  19. package/dist/{Close-70f0ad0d.js → Close-db7afda5.js} +2 -2
  20. package/dist/Collapse/index.js +9 -9
  21. package/dist/{Collapse-c7000672.js → Collapse-547e6c7a.js} +35 -36
  22. package/dist/CopyToClipboard/index.js +23 -23
  23. package/dist/{Dialog-185ee62e.js → Dialog-652a3ad4.js} +15 -16
  24. package/dist/Divider/index.js +6 -6
  25. package/dist/DropZone/index.js +33 -33
  26. package/dist/{Fade-e6cc07e5.js → Fade-7ee2c0a4.js} +11 -12
  27. package/dist/FormControl/index.js +10 -10
  28. package/dist/{FormControl-3d1d38fe.js → FormControl-ca7447ab.js} +5 -6
  29. package/dist/FullScreenDialog/index.js +16 -16
  30. package/dist/Grid/index.js +8 -8
  31. package/dist/{Grid-b29d871f.js → Grid-9708b9ca.js} +59 -60
  32. package/dist/{Grow-bcd47732.js → Grow-55d0786d.js} +16 -17
  33. package/dist/{IconButton-eace4b91.js → IconButton-48d87778.js} +12 -13
  34. package/dist/Input/index.js +22 -22
  35. package/dist/{KdpaAccordions-39a4ed6e.js → KdpaAccordions-2ae65dd1.js} +125 -113
  36. package/dist/{KdpaAlertTitle-85b3b759.js → KdpaAlertTitle-f1549035.js} +103 -91
  37. package/dist/{KdpaAutoComplete-e2ccab34.js → KdpaAutoComplete-8a11974a.js} +225 -221
  38. package/dist/{KdpaAvatar-798f595f.js → KdpaAvatar-d297ef8a.js} +75 -71
  39. package/dist/{KdpaCheckBox-ca4f09b9.js → KdpaCheckBox-84d56486.js} +31 -27
  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-2168fb05.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
  45. package/dist/{KdpaDateTimePicker-f6810c38.js → KdpaDateTimePicker-cb4a16d0.js} +10531 -13197
  46. package/dist/{KdpaDivider-8da2e22f.js → KdpaDivider-1c62c65a.js} +93 -81
  47. package/dist/{KdpaDropZone-3abdf72d.js → KdpaDropZone-b21d2304.js} +631 -531
  48. package/dist/KdpaFormControl-135b070d.js +10 -0
  49. package/dist/{KdpaFormControlLabel-e993132d.js → KdpaFormControlLabel-249b7622.js} +53 -49
  50. package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
  51. package/dist/KdpaGrid-2a3f9346.js +12 -0
  52. package/dist/{KdpaGridBadge-544999b0.js → KdpaGridBadge-65b88a7a.js} +121 -101
  53. package/dist/KdpaIconButton-a0ee669c.js +35 -0
  54. package/dist/KdpaInputMultiline-231a2be1.js +68 -0
  55. package/dist/{KdpaLazyDrop-3f3eb039.js → KdpaLazyDrop-1985fc75.js} +253 -217
  56. package/dist/KdpaMenuItem-99cde871.js +56 -0
  57. package/dist/{KdpaModalImage-f3b07c33.js → KdpaModalImage-eb732bf0.js} +69 -61
  58. package/dist/{KdpaPaginationGrid-281683fd.js → KdpaPaginationGrid-97a5b164.js} +307 -247
  59. package/dist/{KdpaRadioGroup-123a09aa.js → KdpaRadioGroup-87122ec7.js} +101 -93
  60. package/dist/{KdpaRtlProvider-120dff80.js → KdpaRtlProvider-495e4bb0.js} +142 -134
  61. package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
  62. package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
  63. package/dist/{KdpaSlider-40a1807a.js → KdpaSlider-b7226e20.js} +190 -182
  64. package/dist/{KdpaSwitch-603cd217.js → KdpaSwitch-b2ba7c23.js} +39 -31
  65. package/dist/KdpaTabs-ab618f36.js +50 -0
  66. package/dist/{KdpaTooltip-20c42ab8.js → KdpaTooltip-653424c7.js} +96 -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 +23 -23
  73. package/dist/{ListItem-8c33bc78.js → ListItem-ddec0b28.js} +8 -9
  74. package/dist/Loading/KdpaProgress/index.js +11 -11
  75. package/dist/Loading/index.js +8 -8
  76. package/dist/{MenuItem-db67ec92.js → MenuItem-057c85a3.js} +14 -15
  77. package/dist/Modal/index.js +2 -2
  78. package/dist/{Modal-8739c755.js → Modal-daf2a588.js} +10 -11
  79. package/dist/PaginationGrid/index.js +31 -31
  80. package/dist/{Paper-726cd077.js → Paper-00aea968.js} +15 -16
  81. package/dist/Pickers/index.d.ts +2 -1
  82. package/dist/Pickers/index.d.ts.map +1 -1
  83. package/dist/Pickers/index.js +38 -38
  84. package/dist/{Popper-708e355f.js → Popper-7adcd815.js} +8 -9
  85. package/dist/{Portal-90cf7ba4.js → Portal-de5e310c.js} +6 -7
  86. package/dist/Radio/index.js +12 -12
  87. package/dist/Selects/index.js +33 -33
  88. package/dist/{Slide-107d0b58.js → Slide-803fd098.js} +11 -12
  89. package/dist/Slider/index.js +7 -7
  90. package/dist/Switch/index.js +11 -11
  91. package/dist/{SwitchBase-0a37f2eb.js → SwitchBase-64e5662e.js} +7 -8
  92. package/dist/Tabs/index.js +14 -14
  93. package/dist/{Tabs-1caed6d0.js → Tabs-1140d353.js} +77 -78
  94. package/dist/{TextField-092190de.js → TextField-57c51dbe.js} +15 -16
  95. package/dist/ThemeProvider/index.js +5 -5
  96. package/dist/Tooltips/index.js +15 -15
  97. package/dist/{TransitionGroup-a1dcb75a.js → TransitionGroup-f9877c5b.js} +2 -2
  98. package/dist/Transitions/index.js +15 -15
  99. package/dist/Tree/index.js +2 -2
  100. package/dist/TreeSelect/index.js +3 -3
  101. package/dist/Typography/index.js +7 -7
  102. package/dist/{Typography-644bd1d9.js → Typography-db7e5ea2.js} +18 -19
  103. package/dist/{Zoom-39a63b9e.js → Zoom-36a189bb.js} +11 -12
  104. package/dist/{createSvgIcon-5491f07a.js → createSvgIcon-1aa1b2b2.js} +5 -6
  105. package/dist/{dividerClasses-6fed9b68.js → dividerClasses-a9b8b1ae.js} +2 -2
  106. package/dist/{elementAcceptingRef-f1cfc912.js → elementAcceptingRef-bd96c731.js} +1 -1
  107. package/dist/{elementTypeAcceptingRef-d599eee7.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
  108. package/dist/{emotion-react.browser.esm-7120a510.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
  109. package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
  110. package/dist/{extendSxProp-ee27a957.js → extendSxProp-d294b946.js} +2 -2
  111. package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
  112. package/dist/identifier-2647f844.js +3775 -0
  113. package/dist/{index-e017d9bf.js → index-5f8afc53.js} +5 -5
  114. package/dist/index.js +82 -82
  115. package/dist/jsx-dev-runtime-48fdc504.js +615 -0
  116. package/dist/{listItemTextClasses-29c5c497.js → listItemTextClasses-da281500.js} +2 -2
  117. package/dist/{refType-0b7ad6f5.js → refType-450337d6.js} +1 -1
  118. package/dist/{useSlotProps-615f7694.js → useSlotProps-3b927bcb.js} +2 -2
  119. package/dist/{useTheme-948a6d35.js → useTheme-6ea322ec.js} +2 -2
  120. package/dist/{useThemeProps-0f6826f6.js → useThemeProps-ea792506.js} +2 -2
  121. package/dist/{utils-765dc524.js → utils-acd98a68.js} +2 -2
  122. package/package.json +4 -1
  123. package/dist/KdpaChip-1bb449f1.js +0 -31
  124. package/dist/KdpaCircularProgress-18524b3d.js +0 -44
  125. package/dist/KdpaCollapse-0d001d1f.js +0 -11
  126. package/dist/KdpaCollapse-db70c13b.js +0 -8
  127. package/dist/KdpaFormControl-5136bd3a.js +0 -6
  128. package/dist/KdpaFullScreenDialog-6c8bc817.js +0 -16
  129. package/dist/KdpaGrid-c32b342e.js +0 -8
  130. package/dist/KdpaIconButton-d4c623d6.js +0 -23
  131. package/dist/KdpaInputMultiline-9f5ee3f0.js +0 -48
  132. package/dist/KdpaMenuItem-ec7a72c8.js +0 -36
  133. package/dist/KdpaSecondaryButton-ea9f2aeb.js +0 -28
  134. package/dist/KdpaSkeleton-872821e6.js +0 -540
  135. package/dist/KdpaTabs-8a087fe4.js +0 -38
  136. package/dist/KdpaTypography-0aab42ce.js +0 -6
  137. package/dist/KdpaZoom-dcf1dd78.js +0 -10
  138. package/dist/KpdaPrimaryButton-4e76c06b.js +0 -47
  139. package/dist/identifier-878ccaef.js +0 -3147
  140. package/dist/jsx-runtime-944c88e2.js +0 -631
  141. package/yarn-error.log +0 -7875
@@ -1,32 +1,32 @@
1
- import { j as s } from "./jsx-runtime-944c88e2.js";
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 { _ as l, a as S } from "./extends-393586f3.js";
5
- import { g as I, P as e, c as $, a as K } from "./identifier-878ccaef.js";
6
- import { g as F, s as v, u as z, c as E, a as P, b as W } from "./useThemeProps-0f6826f6.js";
7
- import { S as H } from "./SwitchBase-0a37f2eb.js";
8
- import { c as T } from "./createSvgIcon-5491f07a.js";
9
- import { c as L } from "./createChainedFunction-68e2a88d.js";
10
- import { r as Z } from "./refType-0b7ad6f5.js";
11
- import { u as A } from "./useId-a21bd5c3.js";
12
- import { u as J } from "./useFormControl-af690c26.js";
13
- import { f as Q } from "./formControlState-9148c46f.js";
14
- import { u as X } from "./useControlled-cc2d41cb.js";
15
- import { u as Y } from "./useForkRef-0781dda0.js";
16
- function oo(o) {
17
- return I("MuiFormGroup", o);
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 eo = ["className", "row"], ro = (o) => {
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 P({
26
+ return D({
27
27
  root: ["root", n && "row", t && "error"]
28
- }, oo, r);
29
- }, no = v("div", {
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
- })), _ = /* @__PURE__ */ i.forwardRef(function(r, n) {
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: u = !1
53
- } = t, R = S(t, eo), d = J(), h = Q({
52
+ row: d = !1
53
+ } = t, R = j(t, ro), u = Q(), h = X({
54
54
  props: t,
55
- muiFormControl: d,
55
+ muiFormControl: u,
56
56
  states: ["error"]
57
57
  }), f = l({}, t, {
58
- row: u,
58
+ row: d,
59
59
  error: h.error
60
- }), p = ro(f);
61
- return /* @__PURE__ */ s.jsx(no, l({
62
- className: E(p.root, a),
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" && (_.propTypes = {
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 to = _, so = T(/* @__PURE__ */ s.jsx("path", {
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"), ao = T(/* @__PURE__ */ s.jsx("path", {
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"), co = v("span")({
98
+ }), "RadioButtonChecked"), io = v("span")({
99
99
  position: "relative",
100
100
  display: "flex"
101
- }), io = v(so)({
101
+ }), lo = v(so)({
102
102
  // Scale applied to prevent dot misalignment in Safari
103
103
  transform: "scale(1)"
104
- }), lo = v(ao)(({
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 w(o) {
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__ */ s.jsxs(co, {
130
+ return /* @__PURE__ */ c.jsxs(io, {
131
131
  className: n.root,
132
132
  ownerState: a,
133
- children: [/* @__PURE__ */ s.jsx(io, {
133
+ children: [/* @__PURE__ */ c.jsx(lo, {
134
134
  fontSize: t,
135
135
  className: n.background,
136
136
  ownerState: a
137
- }), /* @__PURE__ */ s.jsx(lo, {
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" && (w.propTypes = {
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 M = /* @__PURE__ */ i.createContext(void 0);
161
- process.env.NODE_ENV !== "production" && (M.displayName = "RadioGroupContext");
162
- const V = M;
163
- function uo() {
164
- return i.useContext(V);
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 po(o) {
167
- return I("MuiRadio", o);
166
+ function fo(o) {
167
+ return E("MuiRadio", o);
168
168
  }
169
- const fo = F("MuiRadio", ["root", "checked", "disabled", "colorPrimary", "colorSecondary"]), N = fo, mo = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"], Ro = (o) => {
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, P(t, po, r));
177
- }, ho = v(H, {
178
- shouldForwardProp: (o) => W(o) || o === "classes",
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})` : K(r.color === "default" ? o.palette.action.active : o.palette[r.color].main, o.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
- [`&.${N.checked}`]: {
201
+ [`&.${w.checked}`]: {
202
202
  color: (o.vars || o).palette[r.color].main
203
203
  }
204
204
  }, {
205
- [`&.${N.disabled}`]: {
205
+ [`&.${w.disabled}`]: {
206
206
  color: (o.vars || o).palette.action.disabled
207
207
  }
208
208
  }));
209
- function Co(o, r) {
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__ */ s.jsx(w, {
212
+ const G = /* @__PURE__ */ c.jsx(S, {
213
213
  checked: !0
214
- }), O = /* @__PURE__ */ s.jsx(w, {}), B = /* @__PURE__ */ i.forwardRef(function(r, n) {
214
+ }), O = /* @__PURE__ */ c.jsx(S, {}), B = /* @__PURE__ */ i.forwardRef(function(r, n) {
215
215
  var t, a;
216
- const u = z({
216
+ const d = z({
217
217
  props: r,
218
218
  name: "MuiRadio"
219
219
  }), {
220
220
  checked: R,
221
- checkedIcon: d = G,
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: b
228
- } = u, y = S(u, mo), x = l({}, u, {
227
+ className: k
228
+ } = d, x = j(d, Ro), y = l({}, d, {
229
229
  color: h,
230
230
  size: m
231
- }), c = Ro(x), C = uo();
232
- let k = R;
233
- const U = L(g, C && C.onChange);
234
- let j = p;
235
- return C && (typeof k > "u" && (k = Co(C.value, u.value)), typeof j > "u" && (j = C.name)), /* @__PURE__ */ s.jsx(ho, l({
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(d, {
240
+ checkedIcon: /* @__PURE__ */ i.cloneElement(u, {
241
241
  fontSize: (a = G.props.fontSize) != null ? a : m
242
242
  }),
243
- ownerState: x,
244
- classes: c,
245
- name: j,
246
- checked: k,
243
+ ownerState: y,
244
+ classes: s,
245
+ name: N,
246
+ checked: b,
247
247
  onChange: U,
248
248
  ref: n,
249
- className: E(c.root, b)
250
- }, y));
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: Z,
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 vo = B, go = ["actions", "children", "defaultValue", "name", "onChange", "value"], D = /* @__PURE__ */ i.forwardRef(function(r, n) {
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: u,
345
+ defaultValue: d,
346
346
  name: R,
347
- onChange: d,
347
+ onChange: u,
348
348
  value: h
349
- } = r, f = S(r, go), p = i.useRef(null), [g, m] = X({
349
+ } = r, f = j(r, xo), p = i.useRef(null), [g, m] = Y({
350
350
  controlled: h,
351
- default: u,
351
+ default: d,
352
352
  name: "RadioGroup"
353
353
  });
354
354
  i.useImperativeHandle(t, () => ({
355
355
  focus: () => {
356
- let c = p.current.querySelector("input:not(:disabled):checked");
357
- c || (c = p.current.querySelector("input:not(:disabled)")), c && c.focus();
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 b = Y(n, p), y = A(R), x = i.useMemo(() => ({
361
- name: y,
362
- onChange(c) {
363
- m(c.target.value), d && d(c, c.target.value);
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
- }), [y, d, m, g]);
367
- return /* @__PURE__ */ s.jsx(V.Provider, {
368
- value: x,
369
- children: /* @__PURE__ */ s.jsx(to, l({
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: b
371
+ ref: k
372
372
  }, f, {
373
373
  children: a
374
374
  }))
375
375
  });
376
376
  });
377
- process.env.NODE_ENV !== "production" && (D.propTypes = {
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 = D, Po = q(function(r, n) {
409
- return /* @__PURE__ */ s.jsx(vo, { inputRef: n, ...r });
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__ */ s.jsx(yo, { ...o, children: o.children });
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
- Po as K,
423
+ Do as K,
416
424
  To as a
417
425
  };