kdpa-components 1.35.2 → 1.35.3

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 (234) hide show
  1. package/dist/Accordion/index.d.ts +3 -0
  2. package/dist/Accordion/index.d.ts.map +1 -0
  3. package/dist/Accordion/index.js +481 -0
  4. package/dist/AdvancedList/index.d.ts +2 -0
  5. package/dist/AdvancedList/index.d.ts.map +1 -0
  6. package/dist/AdvancedList/index.js +16751 -0
  7. package/dist/Alert/index.d.ts +5 -0
  8. package/dist/Alert/index.d.ts.map +1 -0
  9. package/dist/Alert/index.js +407 -0
  10. package/dist/ArrowDropDown-76613637.js +35 -0
  11. package/dist/Autocomplete-45ae6737.js +1670 -0
  12. package/dist/Avatar/index.d.ts +3 -0
  13. package/dist/Avatar/index.d.ts.map +1 -0
  14. package/dist/Avatar/index.js +210 -0
  15. package/dist/Badge/index.d.ts +6 -0
  16. package/dist/Badge/index.d.ts.map +1 -0
  17. package/dist/Badge/index.js +69 -0
  18. package/dist/Badge-26e8a2aa.js +392 -0
  19. package/dist/Box-a827334a.js +58 -0
  20. package/dist/Button-b93e890d.js +355 -0
  21. package/dist/ButtonBase-0f9f324d.js +655 -0
  22. package/dist/Buttons/index.d.ts +9 -0
  23. package/dist/Buttons/index.d.ts.map +1 -0
  24. package/dist/Buttons/index.js +83 -0
  25. package/dist/CSSTransition-d0281d1f.js +215 -0
  26. package/dist/Cards/index.d.ts +3 -0
  27. package/dist/Cards/index.d.ts.map +1 -0
  28. package/dist/Cards/index.js +144 -0
  29. package/dist/CheckBox/index.d.ts +3 -0
  30. package/dist/CheckBox/index.d.ts.map +1 -0
  31. package/dist/CheckBox/index.js +32 -0
  32. package/dist/Checkbox-2cb33932.js +199 -0
  33. package/dist/Chip/index.d.ts +3 -0
  34. package/dist/Chip/index.d.ts.map +1 -0
  35. package/dist/Chip/index.js +61 -0
  36. package/dist/Chip-7b1a25ce.js +444 -0
  37. package/dist/CircularProgress-2c55d9ef.js +217 -0
  38. package/dist/Close-ef7a3b6b.js +9 -0
  39. package/dist/CodeEditor/index.d.ts +2 -0
  40. package/dist/CodeEditor/index.d.ts.map +1 -0
  41. package/dist/CodeEditor/index.js +559 -0
  42. package/dist/Collapse/index.d.ts +3 -0
  43. package/dist/Collapse/index.d.ts.map +1 -0
  44. package/dist/Collapse/index.js +23 -0
  45. package/dist/Collapse-4b8b3146.js +299 -0
  46. package/dist/CopyToClipboard/index.d.ts +3 -0
  47. package/dist/CopyToClipboard/index.d.ts.map +1 -0
  48. package/dist/CopyToClipboard/index.js +591 -0
  49. package/dist/Dialog-25ebaee6.js +356 -0
  50. package/dist/Divider/index.d.ts +4 -0
  51. package/dist/Divider/index.d.ts.map +1 -0
  52. package/dist/Divider/index.js +31 -0
  53. package/dist/Divider-cadf67a7.js +231 -0
  54. package/dist/DropZone/index.d.ts +2 -0
  55. package/dist/DropZone/index.d.ts.map +1 -0
  56. package/dist/DropZone/index.js +1348 -0
  57. package/dist/Fade-aabbd0cb.js +163 -0
  58. package/dist/FormControl/index.d.ts +5 -0
  59. package/dist/FormControl/index.d.ts.map +1 -0
  60. package/dist/FormControl/index.js +24 -0
  61. package/dist/FormControl-e7294bde.js +232 -0
  62. package/dist/FormControlLabel-276f1b1e.js +214 -0
  63. package/dist/FullScreenDialog/index.d.ts +3 -0
  64. package/dist/FullScreenDialog/index.d.ts.map +1 -0
  65. package/dist/FullScreenDialog/index.js +42 -0
  66. package/dist/Grid/index.d.ts +3 -0
  67. package/dist/Grid/index.d.ts.map +1 -0
  68. package/dist/Grid/index.js +17 -0
  69. package/dist/Grid-c1f5fe6b.js +486 -0
  70. package/dist/Grow-151a20f6.js +193 -0
  71. package/dist/HTMLElementType-ff213f3c.js +9 -0
  72. package/dist/IconButton-fdbca6d2.js +184 -0
  73. package/dist/Input/index.d.ts +7 -0
  74. package/dist/Input/index.d.ts.map +1 -0
  75. package/dist/Input/index.js +88 -0
  76. package/dist/InputAdornment-3334ace2.js +155 -0
  77. package/dist/KdpaAutoComplete-40e0949e.js +8 -0
  78. package/dist/KdpaCollapse-d9e37824.js +11 -0
  79. package/dist/KdpaFormControl-2d7c1db8.js +6 -0
  80. package/dist/KdpaIconButton-514e0d96.js +23 -0
  81. package/dist/KdpaMenuItem-085f686f.js +36 -0
  82. package/dist/KdpaSecondaryButton-14992523.js +25 -0
  83. package/dist/KeyboardArrowRight-14dbe7d6.js +12 -0
  84. package/dist/LazyDrop/index.d.ts +3 -0
  85. package/dist/LazyDrop/index.d.ts.map +1 -0
  86. package/dist/LazyDrop/index.js +839 -0
  87. package/dist/ListContext-de5072f9.js +7 -0
  88. package/dist/ListItem-2b5c2e20.js +426 -0
  89. package/dist/ListItemText-fcd66149.js +150 -0
  90. package/dist/Loading/KdpaProgress/index.d.ts +3 -0
  91. package/dist/Loading/KdpaProgress/index.d.ts.map +1 -0
  92. package/dist/Loading/KdpaProgress/index.js +56 -0
  93. package/dist/Loading/index.d.ts +6 -0
  94. package/dist/Loading/index.d.ts.map +1 -0
  95. package/dist/Loading/index.js +348 -0
  96. package/dist/MenuItem-cc037c5b.js +240 -0
  97. package/dist/Modal/index.d.ts +2 -0
  98. package/dist/Modal/index.d.ts.map +1 -0
  99. package/dist/Modal/index.js +751 -0
  100. package/dist/Modal-5f23fcfd.js +984 -0
  101. package/dist/PaginationGrid/index.d.ts +3 -0
  102. package/dist/PaginationGrid/index.d.ts.map +1 -0
  103. package/dist/PaginationGrid/index.js +60 -0
  104. package/dist/Paper-aaec61a3.js +163 -0
  105. package/dist/Pickers/index.d.ts +7 -0
  106. package/dist/Pickers/index.d.ts.map +1 -0
  107. package/dist/Pickers/index.js +14408 -0
  108. package/dist/Popper-490e6477.js +490 -0
  109. package/dist/Portal-b4f8657f.js +77 -0
  110. package/dist/Radio/index.d.ts +5 -0
  111. package/dist/Radio/index.d.ts.map +1 -0
  112. package/dist/Radio/index.js +431 -0
  113. package/dist/Segment/index.d.ts +3 -0
  114. package/dist/Segment/index.d.ts.map +1 -0
  115. package/dist/Segment/index.js +84 -0
  116. package/dist/Selects/index.d.ts +7 -0
  117. package/dist/Selects/index.d.ts.map +1 -0
  118. package/dist/Selects/index.js +66 -0
  119. package/dist/SimpleList/index.d.ts +2 -0
  120. package/dist/SimpleList/index.d.ts.map +1 -0
  121. package/dist/SimpleList/index.js +1913 -0
  122. package/dist/Skeleton-263b2beb.js +213 -0
  123. package/dist/Slide-3bc7a346.js +227 -0
  124. package/dist/Slider/index.d.ts +3 -0
  125. package/dist/Slider/index.d.ts.map +1 -0
  126. package/dist/Slider/index.js +1322 -0
  127. package/dist/SweetAlerts/index.d.ts +6 -0
  128. package/dist/SweetAlerts/index.d.ts.map +1 -0
  129. package/dist/SweetAlerts/index.js +1540 -0
  130. package/dist/Switch/index.d.ts +3 -0
  131. package/dist/Switch/index.d.ts.map +1 -0
  132. package/dist/Switch/index.js +39 -0
  133. package/dist/Switch-ef584fc0.js +302 -0
  134. package/dist/SwitchBase-c367ca3c.js +231 -0
  135. package/dist/Tabs/index.d.ts +5 -0
  136. package/dist/Tabs/index.d.ts.map +1 -0
  137. package/dist/Tabs/index.js +63 -0
  138. package/dist/Tabs-9775b0bb.js +1084 -0
  139. package/dist/TextField-b8c731e8.js +4439 -0
  140. package/dist/ThemeProvider/index.d.ts +4 -0
  141. package/dist/ThemeProvider/index.d.ts.map +1 -0
  142. package/dist/ThemeProvider/index.js +294 -0
  143. package/dist/Tooltip-4b1baf1b.js +584 -0
  144. package/dist/Tooltips/index.d.ts +3 -0
  145. package/dist/Tooltips/index.d.ts.map +1 -0
  146. package/dist/Tooltips/index.js +46 -0
  147. package/dist/TransitionGroup-196acb6a.js +185 -0
  148. package/dist/TransitionGroupContext-7435e195.js +10 -0
  149. package/dist/Transitions/index.d.ts +11 -0
  150. package/dist/Transitions/index.d.ts.map +1 -0
  151. package/dist/Transitions/index.js +34 -0
  152. package/dist/Tree/index.d.ts +3 -0
  153. package/dist/Tree/index.d.ts.map +1 -0
  154. package/dist/Tree/index.js +1447 -0
  155. package/dist/TreeSelect/index.d.ts +3 -0
  156. package/dist/TreeSelect/index.d.ts.map +1 -0
  157. package/dist/TreeSelect/index.js +6888 -0
  158. package/dist/Typography/index.d.ts +3 -0
  159. package/dist/Typography/index.d.ts.map +1 -0
  160. package/dist/Typography/index.js +14 -0
  161. package/dist/Typography-dfa51fea.js +176 -0
  162. package/dist/Uploader/index.d.ts +3 -0
  163. package/dist/Uploader/index.d.ts.map +1 -0
  164. package/dist/Uploader/index.js +81 -0
  165. package/dist/Zoom-b84bdc2b.js +163 -0
  166. package/dist/_commonjsHelpers-92157f1b.js +36 -0
  167. package/dist/assertThisInitialized-05701a63.js +8 -0
  168. package/dist/chainPropTypes-004bf492.js +8 -0
  169. package/dist/createChainedFunction-68e2a88d.js +9 -0
  170. package/dist/createSvgIcon-b80a8a41.js +182 -0
  171. package/dist/dividerClasses-99758da7.js +10 -0
  172. package/dist/elementAcceptingRef-803dfd80.js +26 -0
  173. package/dist/elementTypeAcceptingRef-6c34f16b.js +23 -0
  174. package/dist/emotion-is-prop-valid.esm-b7f48706.js +191 -0
  175. package/dist/emotion-memoize.esm-021d0d4e.js +9 -0
  176. package/dist/emotion-react.browser.esm-d563ed65.js +255 -0
  177. package/dist/exactProp-3aaa3ecc.js +13 -0
  178. package/dist/extendSxProp-f7714a31.js +30 -0
  179. package/dist/extends-393586f3.js +22 -0
  180. package/dist/formControlState-9148c46f.js +10 -0
  181. package/dist/hoist-non-react-statics.cjs-ce2f2873.js +236 -0
  182. package/dist/iconBase-800b43ff.js +63 -0
  183. package/dist/identifier-9dfe30d8.js +3320 -0
  184. package/dist/index-116f732f.js +749 -0
  185. package/dist/index-7e2d793d.js +12011 -0
  186. package/dist/index-fa965a10.js +43 -0
  187. package/dist/index.css +1 -1
  188. package/dist/index.d.ts +36 -0
  189. package/dist/index.d.ts.map +1 -0
  190. package/dist/index.esm-b78383d3.js +35 -0
  191. package/dist/isMuiElement-b88a921a.js +7 -0
  192. package/dist/jsx-runtime-944c88e2.js +631 -0
  193. package/dist/kdpaSelect-4ed993c7.js +1 -0
  194. package/dist/listItemTextClasses-d6839c02.js +10 -0
  195. package/dist/ownerDocument-5430cd5b.js +6 -0
  196. package/dist/ownerWindow-e6cc3097.js +20 -0
  197. package/dist/popper-78c6b162.js +1006 -0
  198. package/dist/refType-af1a9f54.js +5 -0
  199. package/dist/setPrototypeOf-98a00546.js +8 -0
  200. package/dist/style.css +1 -0
  201. package/dist/toPropertyKey-e295cd73.js +27 -0
  202. package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts +1 -1
  203. package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts.map +1 -1
  204. package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.d.ts.map +1 -1
  205. package/dist/types/designerKit/components/Uploader/KdFileUploader/UploadedItems.d.ts.map +1 -1
  206. package/dist/types/designerKit/utils/typographyHelper.d.ts +1 -2
  207. package/dist/types/designerKit/utils/typographyHelper.d.ts.map +1 -1
  208. package/dist/unsupportedProp-3dbf01f6.js +9 -0
  209. package/dist/useControlled-cc2d41cb.js +31 -0
  210. package/dist/useEventCallback-fe4fd69c.js +16 -0
  211. package/dist/useForkRef-0781dda0.js +15 -0
  212. package/dist/useFormControl-af690c26.js +11 -0
  213. package/dist/useId-e7dff7be.js +19 -0
  214. package/dist/useIsFocusVisible-4693b580.js +68 -0
  215. package/dist/usePreviousProps-c1ae4548.js +10 -0
  216. package/dist/useSlotProps-f238319f.js +74 -0
  217. package/dist/useTheme-014a54ad.js +10 -0
  218. package/dist/useThemeProps-7d04a175.js +513 -0
  219. package/dist/utils-129661c6.js +370 -0
  220. package/package.json +1 -1
  221. package/dist/types/designerKit/components/Alert/Temp.d.ts +0 -3
  222. package/dist/types/designerKit/components/Alert/Temp.d.ts.map +0 -1
  223. package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts +0 -12
  224. package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts.map +0 -1
  225. package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts +0 -5
  226. package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts.map +0 -1
  227. package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts +0 -9
  228. package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts.map +0 -1
  229. package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts +0 -53
  230. package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts.map +0 -1
  231. package/dist/types/designerKit/utils/fileUtils.d.ts +0 -19
  232. package/dist/types/designerKit/utils/fileUtils.d.ts.map +0 -1
  233. package/dist/types/designerKit/utils/useTreeHelper.d.ts +0 -17
  234. package/dist/types/designerKit/utils/useTreeHelper.d.ts.map +0 -1
@@ -0,0 +1,3 @@
1
+ export { default as KdpaSwitch } from "./KdpaSwitch";
2
+ export type { KdpaSwitchProps } from "./KdpaSwitch";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { j as t } from "../jsx-runtime-944c88e2.js";
2
+ import i from "react";
3
+ import { S as p } from "../Switch-ef584fc0.js";
4
+ import "../extends-393586f3.js";
5
+ import "../identifier-9dfe30d8.js";
6
+ import "../emotion-memoize.esm-021d0d4e.js";
7
+ import "../_commonjsHelpers-92157f1b.js";
8
+ import "../useThemeProps-7d04a175.js";
9
+ import "../emotion-is-prop-valid.esm-b7f48706.js";
10
+ import "../SwitchBase-c367ca3c.js";
11
+ import "../useFormControl-af690c26.js";
12
+ import "../ButtonBase-0f9f324d.js";
13
+ import "../emotion-react.browser.esm-d563ed65.js";
14
+ import "../hoist-non-react-statics.cjs-ce2f2873.js";
15
+ import "../TransitionGroup-196acb6a.js";
16
+ import "../assertThisInitialized-05701a63.js";
17
+ import "../TransitionGroupContext-7435e195.js";
18
+ import "../setPrototypeOf-98a00546.js";
19
+ import "../useForkRef-0781dda0.js";
20
+ import "../useIsFocusVisible-4693b580.js";
21
+ import "../useEventCallback-fe4fd69c.js";
22
+ import "../refType-af1a9f54.js";
23
+ import "../elementTypeAcceptingRef-6c34f16b.js";
24
+ import "../chainPropTypes-004bf492.js";
25
+ import "../useControlled-cc2d41cb.js";
26
+ const v = i.forwardRef(
27
+ (r, o) => /* @__PURE__ */ t.jsx(
28
+ p,
29
+ {
30
+ color: "primary",
31
+ inputRef: o,
32
+ inputProps: { "aria-label": "primary checkbox" },
33
+ ...r
34
+ }
35
+ )
36
+ );
37
+ export {
38
+ v as KdpaSwitch
39
+ };
@@ -0,0 +1,302 @@
1
+ import { _ as r, a as $ } from "./extends-393586f3.js";
2
+ import * as y from "react";
3
+ import { g as S, h as i, a as w, l as x, m as C, P as a } from "./identifier-9dfe30d8.js";
4
+ import { g as z, s as p, u as R, c as T, a as O } from "./useThemeProps-7d04a175.js";
5
+ import { S as j } from "./SwitchBase-c367ca3c.js";
6
+ import { j as d } from "./jsx-runtime-944c88e2.js";
7
+ import { r as B } from "./refType-af1a9f54.js";
8
+ function M(o) {
9
+ return S("MuiSwitch", o);
10
+ }
11
+ const N = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), s = N, P = ["className", "color", "edge", "size", "sx"], I = (o) => {
12
+ const {
13
+ classes: t,
14
+ edge: e,
15
+ size: c,
16
+ color: u,
17
+ checked: h,
18
+ disabled: g
19
+ } = o, b = {
20
+ root: ["root", e && `edge${i(e)}`, `size${i(c)}`],
21
+ switchBase: ["switchBase", `color${i(u)}`, h && "checked", g && "disabled"],
22
+ thumb: ["thumb"],
23
+ track: ["track"],
24
+ input: ["input"]
25
+ }, v = O(b, M, t);
26
+ return r({}, t, v);
27
+ }, _ = p("span", {
28
+ name: "MuiSwitch",
29
+ slot: "Root",
30
+ overridesResolver: (o, t) => {
31
+ const {
32
+ ownerState: e
33
+ } = o;
34
+ return [t.root, e.edge && t[`edge${i(e.edge)}`], t[`size${i(e.size)}`]];
35
+ }
36
+ })(({
37
+ ownerState: o
38
+ }) => r({
39
+ display: "inline-flex",
40
+ width: 34 + 12 * 2,
41
+ height: 14 + 12 * 2,
42
+ overflow: "hidden",
43
+ padding: 12,
44
+ boxSizing: "border-box",
45
+ position: "relative",
46
+ flexShrink: 0,
47
+ zIndex: 0,
48
+ // Reset the stacking context.
49
+ verticalAlign: "middle",
50
+ // For correct alignment with the text.
51
+ "@media print": {
52
+ colorAdjust: "exact"
53
+ }
54
+ }, o.edge === "start" && {
55
+ marginLeft: -8
56
+ }, o.edge === "end" && {
57
+ marginRight: -8
58
+ }, o.size === "small" && {
59
+ width: 40,
60
+ height: 24,
61
+ padding: 7,
62
+ [`& .${s.thumb}`]: {
63
+ width: 16,
64
+ height: 16
65
+ },
66
+ [`& .${s.switchBase}`]: {
67
+ padding: 4,
68
+ [`&.${s.checked}`]: {
69
+ transform: "translateX(16px)"
70
+ }
71
+ }
72
+ })), D = p(j, {
73
+ name: "MuiSwitch",
74
+ slot: "SwitchBase",
75
+ overridesResolver: (o, t) => {
76
+ const {
77
+ ownerState: e
78
+ } = o;
79
+ return [t.switchBase, {
80
+ [`& .${s.input}`]: t.input
81
+ }, e.color !== "default" && t[`color${i(e.color)}`]];
82
+ }
83
+ })(({
84
+ theme: o
85
+ }) => ({
86
+ position: "absolute",
87
+ top: 0,
88
+ left: 0,
89
+ zIndex: 1,
90
+ // Render above the focus ripple.
91
+ color: o.vars ? o.vars.palette.Switch.defaultColor : `${o.palette.mode === "light" ? o.palette.common.white : o.palette.grey[300]}`,
92
+ transition: o.transitions.create(["left", "transform"], {
93
+ duration: o.transitions.duration.shortest
94
+ }),
95
+ [`&.${s.checked}`]: {
96
+ transform: "translateX(20px)"
97
+ },
98
+ [`&.${s.disabled}`]: {
99
+ color: o.vars ? o.vars.palette.Switch.defaultDisabledColor : `${o.palette.mode === "light" ? o.palette.grey[100] : o.palette.grey[600]}`
100
+ },
101
+ [`&.${s.checked} + .${s.track}`]: {
102
+ opacity: 0.5
103
+ },
104
+ [`&.${s.disabled} + .${s.track}`]: {
105
+ opacity: o.vars ? o.vars.opacity.switchTrackDisabled : `${o.palette.mode === "light" ? 0.12 : 0.2}`
106
+ },
107
+ [`& .${s.input}`]: {
108
+ left: "-100%",
109
+ width: "300%"
110
+ }
111
+ }), ({
112
+ theme: o,
113
+ ownerState: t
114
+ }) => r({
115
+ "&:hover": {
116
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : w(o.palette.action.active, o.palette.action.hoverOpacity),
117
+ // Reset on touch devices, it doesn't add specificity
118
+ "@media (hover: none)": {
119
+ backgroundColor: "transparent"
120
+ }
121
+ }
122
+ }, t.color !== "default" && {
123
+ [`&.${s.checked}`]: {
124
+ color: (o.vars || o).palette[t.color].main,
125
+ "&:hover": {
126
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[t.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : w(o.palette[t.color].main, o.palette.action.hoverOpacity),
127
+ "@media (hover: none)": {
128
+ backgroundColor: "transparent"
129
+ }
130
+ },
131
+ [`&.${s.disabled}`]: {
132
+ color: o.vars ? o.vars.palette.Switch[`${t.color}DisabledColor`] : `${o.palette.mode === "light" ? x(o.palette[t.color].main, 0.62) : C(o.palette[t.color].main, 0.55)}`
133
+ }
134
+ },
135
+ [`&.${s.checked} + .${s.track}`]: {
136
+ backgroundColor: (o.vars || o).palette[t.color].main
137
+ }
138
+ })), E = p("span", {
139
+ name: "MuiSwitch",
140
+ slot: "Track",
141
+ overridesResolver: (o, t) => t.track
142
+ })(({
143
+ theme: o
144
+ }) => ({
145
+ height: "100%",
146
+ width: "100%",
147
+ borderRadius: 14 / 2,
148
+ zIndex: -1,
149
+ transition: o.transitions.create(["opacity", "background-color"], {
150
+ duration: o.transitions.duration.shortest
151
+ }),
152
+ backgroundColor: o.vars ? o.vars.palette.common.onBackground : `${o.palette.mode === "light" ? o.palette.common.black : o.palette.common.white}`,
153
+ opacity: o.vars ? o.vars.opacity.switchTrack : `${o.palette.mode === "light" ? 0.38 : 0.3}`
154
+ })), U = p("span", {
155
+ name: "MuiSwitch",
156
+ slot: "Thumb",
157
+ overridesResolver: (o, t) => t.thumb
158
+ })(({
159
+ theme: o
160
+ }) => ({
161
+ boxShadow: (o.vars || o).shadows[1],
162
+ backgroundColor: "currentColor",
163
+ width: 20,
164
+ height: 20,
165
+ borderRadius: "50%"
166
+ })), k = /* @__PURE__ */ y.forwardRef(function(t, e) {
167
+ const c = R({
168
+ props: t,
169
+ name: "MuiSwitch"
170
+ }), {
171
+ className: u,
172
+ color: h = "primary",
173
+ edge: g = !1,
174
+ size: b = "medium",
175
+ sx: v
176
+ } = c, m = $(c, P), n = r({}, c, {
177
+ color: h,
178
+ edge: g,
179
+ size: b
180
+ }), l = I(n), f = /* @__PURE__ */ d.jsx(U, {
181
+ className: l.thumb,
182
+ ownerState: n
183
+ });
184
+ return /* @__PURE__ */ d.jsxs(_, {
185
+ className: T(l.root, u),
186
+ sx: v,
187
+ ownerState: n,
188
+ children: [/* @__PURE__ */ d.jsx(D, r({
189
+ type: "checkbox",
190
+ icon: f,
191
+ checkedIcon: f,
192
+ ref: e,
193
+ ownerState: n
194
+ }, m, {
195
+ classes: r({}, l, {
196
+ root: l.switchBase
197
+ })
198
+ })), /* @__PURE__ */ d.jsx(E, {
199
+ className: l.track,
200
+ ownerState: n
201
+ })]
202
+ });
203
+ });
204
+ process.env.NODE_ENV !== "production" && (k.propTypes = {
205
+ // ----------------------------- Warning --------------------------------
206
+ // | These PropTypes are generated from the TypeScript type definitions |
207
+ // | To update them edit the d.ts file and run "yarn proptypes" |
208
+ // ----------------------------------------------------------------------
209
+ /**
210
+ * If `true`, the component is checked.
211
+ */
212
+ checked: a.bool,
213
+ /**
214
+ * The icon to display when the component is checked.
215
+ */
216
+ checkedIcon: a.node,
217
+ /**
218
+ * Override or extend the styles applied to the component.
219
+ */
220
+ classes: a.object,
221
+ /**
222
+ * @ignore
223
+ */
224
+ className: a.string,
225
+ /**
226
+ * The color of the component.
227
+ * It supports both default and custom theme colors, which can be added as shown in the
228
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
229
+ * @default 'primary'
230
+ */
231
+ color: a.oneOfType([a.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), a.string]),
232
+ /**
233
+ * The default checked state. Use when the component is not controlled.
234
+ */
235
+ defaultChecked: a.bool,
236
+ /**
237
+ * If `true`, the component is disabled.
238
+ */
239
+ disabled: a.bool,
240
+ /**
241
+ * If `true`, the ripple effect is disabled.
242
+ * @default false
243
+ */
244
+ disableRipple: a.bool,
245
+ /**
246
+ * If given, uses a negative margin to counteract the padding on one
247
+ * side (this is often helpful for aligning the left or right
248
+ * side of the icon with content above or below, without ruining the border
249
+ * size and shape).
250
+ * @default false
251
+ */
252
+ edge: a.oneOf(["end", "start", !1]),
253
+ /**
254
+ * The icon to display when the component is unchecked.
255
+ */
256
+ icon: a.node,
257
+ /**
258
+ * The id of the `input` element.
259
+ */
260
+ id: a.string,
261
+ /**
262
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
263
+ */
264
+ inputProps: a.object,
265
+ /**
266
+ * Pass a ref to the `input` element.
267
+ */
268
+ inputRef: B,
269
+ /**
270
+ * Callback fired when the state is changed.
271
+ *
272
+ * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
273
+ * You can pull out the new value by accessing `event.target.value` (string).
274
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
275
+ */
276
+ onChange: a.func,
277
+ /**
278
+ * If `true`, the `input` element is required.
279
+ * @default false
280
+ */
281
+ required: a.bool,
282
+ /**
283
+ * The size of the component.
284
+ * `small` is equivalent to the dense switch styling.
285
+ * @default 'medium'
286
+ */
287
+ size: a.oneOfType([a.oneOf(["medium", "small"]), a.string]),
288
+ /**
289
+ * The system prop that allows defining system overrides as well as additional CSS styles.
290
+ */
291
+ sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
292
+ /**
293
+ * The value of the component. The DOM API casts this to a string.
294
+ * The browser uses "on" as the default value.
295
+ */
296
+ value: a.any
297
+ });
298
+ const F = k;
299
+ export {
300
+ F as S,
301
+ s
302
+ };
@@ -0,0 +1,231 @@
1
+ import { _ as d, a as V } from "./extends-393586f3.js";
2
+ import * as W from "react";
3
+ import { g as A, P as e, h as G } from "./identifier-9dfe30d8.js";
4
+ import { g as H, s as F, c as J, a as K } from "./useThemeProps-7d04a175.js";
5
+ import { u as M } from "./useFormControl-af690c26.js";
6
+ import { j as x } from "./jsx-runtime-944c88e2.js";
7
+ import { B as Q } from "./ButtonBase-0f9f324d.js";
8
+ import { u as X } from "./useControlled-cc2d41cb.js";
9
+ import { r as Y } from "./refType-af1a9f54.js";
10
+ function Z(o) {
11
+ return A("PrivateSwitchBase", o);
12
+ }
13
+ H("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
14
+ const ee = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], oe = (o) => {
15
+ const {
16
+ classes: n,
17
+ checked: r,
18
+ disabled: l,
19
+ edge: a
20
+ } = o, u = {
21
+ root: ["root", r && "checked", l && "disabled", a && `edge${G(a)}`],
22
+ input: ["input"]
23
+ };
24
+ return K(u, Z, n);
25
+ }, se = F(Q)(({
26
+ ownerState: o
27
+ }) => d({
28
+ padding: 9,
29
+ borderRadius: "50%"
30
+ }, o.edge === "start" && {
31
+ marginLeft: o.size === "small" ? -3 : -12
32
+ }, o.edge === "end" && {
33
+ marginRight: o.size === "small" ? -3 : -12
34
+ })), te = F("input")({
35
+ cursor: "inherit",
36
+ position: "absolute",
37
+ opacity: 0,
38
+ width: "100%",
39
+ height: "100%",
40
+ top: 0,
41
+ left: 0,
42
+ margin: 0,
43
+ padding: 0,
44
+ zIndex: 1
45
+ }), R = /* @__PURE__ */ W.forwardRef(function(n, r) {
46
+ const {
47
+ autoFocus: l,
48
+ checked: a,
49
+ checkedIcon: u,
50
+ className: w,
51
+ defaultChecked: f,
52
+ disabled: S,
53
+ disableFocusRipple: h = !1,
54
+ edge: I = !1,
55
+ icon: P,
56
+ id: j,
57
+ inputProps: q,
58
+ inputRef: N,
59
+ name: O,
60
+ onBlur: m,
61
+ onChange: b,
62
+ onFocus: g,
63
+ readOnly: v,
64
+ required: E = !1,
65
+ tabIndex: _,
66
+ type: c,
67
+ value: k
68
+ } = n, z = V(n, ee), [y, T] = X({
69
+ controlled: a,
70
+ default: !!f,
71
+ name: "SwitchBase",
72
+ state: "checked"
73
+ }), t = M(), U = (s) => {
74
+ g && g(s), t && t.onFocus && t.onFocus(s);
75
+ }, L = (s) => {
76
+ m && m(s), t && t.onBlur && t.onBlur(s);
77
+ }, $ = (s) => {
78
+ if (s.nativeEvent.defaultPrevented)
79
+ return;
80
+ const C = s.target.checked;
81
+ T(C), b && b(s, C);
82
+ };
83
+ let i = S;
84
+ t && typeof i > "u" && (i = t.disabled);
85
+ const D = c === "checkbox" || c === "radio", p = d({}, n, {
86
+ checked: y,
87
+ disabled: i,
88
+ disableFocusRipple: h,
89
+ edge: I
90
+ }), B = oe(p);
91
+ return /* @__PURE__ */ x.jsxs(se, d({
92
+ component: "span",
93
+ className: J(B.root, w),
94
+ centerRipple: !0,
95
+ focusRipple: !h,
96
+ disabled: i,
97
+ tabIndex: null,
98
+ role: void 0,
99
+ onFocus: U,
100
+ onBlur: L,
101
+ ownerState: p,
102
+ ref: r
103
+ }, z, {
104
+ children: [/* @__PURE__ */ x.jsx(te, d({
105
+ autoFocus: l,
106
+ checked: a,
107
+ defaultChecked: f,
108
+ className: B.input,
109
+ disabled: i,
110
+ id: D ? j : void 0,
111
+ name: O,
112
+ onChange: $,
113
+ readOnly: v,
114
+ ref: N,
115
+ required: E,
116
+ ownerState: p,
117
+ tabIndex: _,
118
+ type: c
119
+ }, c === "checkbox" && k === void 0 ? {} : {
120
+ value: k
121
+ }, q)), y ? u : P]
122
+ }));
123
+ });
124
+ process.env.NODE_ENV !== "production" && (R.propTypes = {
125
+ /**
126
+ * If `true`, the `input` element is focused during the first mount.
127
+ */
128
+ autoFocus: e.bool,
129
+ /**
130
+ * If `true`, the component is checked.
131
+ */
132
+ checked: e.bool,
133
+ /**
134
+ * The icon to display when the component is checked.
135
+ */
136
+ checkedIcon: e.node.isRequired,
137
+ /**
138
+ * Override or extend the styles applied to the component.
139
+ * See [CSS API](#css) below for more details.
140
+ */
141
+ classes: e.object,
142
+ /**
143
+ * @ignore
144
+ */
145
+ className: e.string,
146
+ /**
147
+ * @ignore
148
+ */
149
+ defaultChecked: e.bool,
150
+ /**
151
+ * If `true`, the component is disabled.
152
+ */
153
+ disabled: e.bool,
154
+ /**
155
+ * If `true`, the keyboard focus ripple is disabled.
156
+ * @default false
157
+ */
158
+ disableFocusRipple: e.bool,
159
+ /**
160
+ * If given, uses a negative margin to counteract the padding on one
161
+ * side (this is often helpful for aligning the left or right
162
+ * side of the icon with content above or below, without ruining the border
163
+ * size and shape).
164
+ * @default false
165
+ */
166
+ edge: e.oneOf(["end", "start", !1]),
167
+ /**
168
+ * The icon to display when the component is unchecked.
169
+ */
170
+ icon: e.node.isRequired,
171
+ /**
172
+ * The id of the `input` element.
173
+ */
174
+ id: e.string,
175
+ /**
176
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
177
+ */
178
+ inputProps: e.object,
179
+ /**
180
+ * Pass a ref to the `input` element.
181
+ */
182
+ inputRef: Y,
183
+ /*
184
+ * @ignore
185
+ */
186
+ name: e.string,
187
+ /**
188
+ * @ignore
189
+ */
190
+ onBlur: e.func,
191
+ /**
192
+ * Callback fired when the state is changed.
193
+ *
194
+ * @param {object} event The event source of the callback.
195
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
196
+ */
197
+ onChange: e.func,
198
+ /**
199
+ * @ignore
200
+ */
201
+ onFocus: e.func,
202
+ /**
203
+ * It prevents the user from changing the value of the field
204
+ * (not from interacting with the field).
205
+ */
206
+ readOnly: e.bool,
207
+ /**
208
+ * If `true`, the `input` element is required.
209
+ */
210
+ required: e.bool,
211
+ /**
212
+ * The system prop that allows defining system overrides as well as additional CSS styles.
213
+ */
214
+ sx: e.object,
215
+ /**
216
+ * @ignore
217
+ */
218
+ tabIndex: e.oneOfType([e.number, e.string]),
219
+ /**
220
+ * The input component prop `type`.
221
+ */
222
+ type: e.string.isRequired,
223
+ /**
224
+ * The value of the component.
225
+ */
226
+ value: e.any
227
+ });
228
+ const pe = R;
229
+ export {
230
+ pe as S
231
+ };
@@ -0,0 +1,5 @@
1
+ export { default as KdpaTab } from "./KdpaTab/KdpaTab";
2
+ export { default as KdpaTabs } from "./KdpaTabs/KdpaTabs";
3
+ export type { KdpaTabProps } from "./KdpaTab/KdpaTab";
4
+ export type { KdpaTabsProps } from "./KdpaTabs/KdpaTabs";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE1D,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { j as i } from "../jsx-runtime-944c88e2.js";
2
+ import { a as p, T as e } from "../Tabs-9775b0bb.js";
3
+ import { useRef as n, useEffect as a } from "react";
4
+ import { u as s } from "../useTheme-014a54ad.js";
5
+ import "../extends-393586f3.js";
6
+ import "../identifier-9dfe30d8.js";
7
+ import "../emotion-memoize.esm-021d0d4e.js";
8
+ import "../_commonjsHelpers-92157f1b.js";
9
+ import "../useThemeProps-7d04a175.js";
10
+ import "../emotion-is-prop-valid.esm-b7f48706.js";
11
+ import "../ButtonBase-0f9f324d.js";
12
+ import "../emotion-react.browser.esm-d563ed65.js";
13
+ import "../hoist-non-react-statics.cjs-ce2f2873.js";
14
+ import "../TransitionGroup-196acb6a.js";
15
+ import "../assertThisInitialized-05701a63.js";
16
+ import "../TransitionGroupContext-7435e195.js";
17
+ import "../setPrototypeOf-98a00546.js";
18
+ import "../useForkRef-0781dda0.js";
19
+ import "../useIsFocusVisible-4693b580.js";
20
+ import "../useEventCallback-fe4fd69c.js";
21
+ import "../refType-af1a9f54.js";
22
+ import "../elementTypeAcceptingRef-6c34f16b.js";
23
+ import "../chainPropTypes-004bf492.js";
24
+ import "../unsupportedProp-3dbf01f6.js";
25
+ import "../ownerWindow-e6cc3097.js";
26
+ import "../ownerDocument-5430cd5b.js";
27
+ import "../useSlotProps-f238319f.js";
28
+ import "../KeyboardArrowRight-14dbe7d6.js";
29
+ import "../createSvgIcon-b80a8a41.js";
30
+ function u(t) {
31
+ return {
32
+ id: `full-width-tab-${t}`,
33
+ "aria-controls": `full-width-tabpanel-${t}`
34
+ };
35
+ }
36
+ function J(t, r) {
37
+ return /* @__PURE__ */ i.jsx(p, { iconPosition: "start", ...u(r), ...t });
38
+ }
39
+ function L(t) {
40
+ const r = s(), o = n();
41
+ return a(() => {
42
+ const m = setTimeout(() => {
43
+ o.current && o.current.updateIndicator();
44
+ }, 300);
45
+ return () => {
46
+ clearTimeout(m);
47
+ };
48
+ }, [r]), /* @__PURE__ */ i.jsx(
49
+ e,
50
+ {
51
+ sx: {
52
+ minHeight: 20
53
+ },
54
+ action: o,
55
+ ...t,
56
+ children: t.children
57
+ }
58
+ );
59
+ }
60
+ export {
61
+ J as KdpaTab,
62
+ L as KdpaTabs
63
+ };