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 KdpaChip } from "./KdpaChip";
2
+ export type { KdpaChipProps } from "./KdpaChip";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { j as o } from "../jsx-runtime-944c88e2.js";
2
+ import { KdpaTooltip as a } from "../Tooltips/index.js";
3
+ import { G as l } from "../iconBase-800b43ff.js";
4
+ import "react";
5
+ import "../Tooltip-4b1baf1b.js";
6
+ import "../extends-393586f3.js";
7
+ import "../identifier-9dfe30d8.js";
8
+ import "../emotion-memoize.esm-021d0d4e.js";
9
+ import "../_commonjsHelpers-92157f1b.js";
10
+ import "../useThemeProps-7d04a175.js";
11
+ import "../emotion-is-prop-valid.esm-b7f48706.js";
12
+ import "../useTheme-014a54ad.js";
13
+ import "../Popper-490e6477.js";
14
+ import "../Portal-b4f8657f.js";
15
+ import "react-dom";
16
+ import "../useForkRef-0781dda0.js";
17
+ import "../useEventCallback-fe4fd69c.js";
18
+ import "../HTMLElementType-ff213f3c.js";
19
+ import "../exactProp-3aaa3ecc.js";
20
+ import "../ownerDocument-5430cd5b.js";
21
+ import "../chainPropTypes-004bf492.js";
22
+ import "../refType-af1a9f54.js";
23
+ import "../popper-78c6b162.js";
24
+ import "../useSlotProps-f238319f.js";
25
+ import "../useControlled-cc2d41cb.js";
26
+ import "../useId-e7dff7be.js";
27
+ import "../useIsFocusVisible-4693b580.js";
28
+ import "../Grow-151a20f6.js";
29
+ import "../utils-129661c6.js";
30
+ import "../TransitionGroupContext-7435e195.js";
31
+ import "../setPrototypeOf-98a00546.js";
32
+ import "../elementAcceptingRef-803dfd80.js";
33
+ import "../Zoom-b84bdc2b.js";
34
+ function n(t) {
35
+ 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" } }] })(t);
36
+ }
37
+ function J({
38
+ color: t,
39
+ title: i,
40
+ children: r,
41
+ className: m = "",
42
+ onClose: p,
43
+ onClick: c,
44
+ ...s
45
+ }) {
46
+ return /* @__PURE__ */ o.jsx(a, { ...s, title: i, placement: "top", children: /* @__PURE__ */ o.jsxs(
47
+ "span",
48
+ {
49
+ style: { color: `${t}`, backgroundColor: `${t}1f` },
50
+ className: `kdpa-chip kdpa-chip--pill ${m}`,
51
+ onClick: c,
52
+ children: [
53
+ r,
54
+ p && /* @__PURE__ */ o.jsx("span", { className: "kdpa-chip__close-button", onClick: p, children: /* @__PURE__ */ o.jsx(n, { size: 18 }) })
55
+ ]
56
+ }
57
+ ) });
58
+ }
59
+ export {
60
+ J as KdpaChip
61
+ };
@@ -0,0 +1,444 @@
1
+ import { _ as u, a as J } from "./extends-393586f3.js";
2
+ import * as b from "react";
3
+ import { g as Q, h as r, a as d, P as l } from "./identifier-9dfe30d8.js";
4
+ import { g as X, s as K, u as Y, c as k, a as Z } from "./useThemeProps-7d04a175.js";
5
+ import { c as w } from "./createSvgIcon-b80a8a41.js";
6
+ import { j as m } from "./jsx-runtime-944c88e2.js";
7
+ import { u as oo } from "./useForkRef-0781dda0.js";
8
+ import { B as M } from "./ButtonBase-0f9f324d.js";
9
+ import { u as ao } from "./unsupportedProp-3dbf01f6.js";
10
+ const lo = w(/* @__PURE__ */ m.jsx("path", {
11
+ d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
12
+ }), "Cancel");
13
+ function eo(o) {
14
+ return Q("MuiChip", o);
15
+ }
16
+ const ro = X("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]), e = ro, co = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"], io = (o) => {
17
+ const {
18
+ classes: a,
19
+ disabled: s,
20
+ size: c,
21
+ color: n,
22
+ iconColor: g,
23
+ onDelete: f,
24
+ clickable: t,
25
+ variant: p
26
+ } = o, $ = {
27
+ root: ["root", p, s && "disabled", `size${r(c)}`, `color${r(n)}`, t && "clickable", t && `clickableColor${r(n)}`, f && "deletable", f && `deletableColor${r(n)}`, `${p}${r(n)}`],
28
+ label: ["label", `label${r(c)}`],
29
+ avatar: ["avatar", `avatar${r(c)}`, `avatarColor${r(n)}`],
30
+ icon: ["icon", `icon${r(c)}`, `iconColor${r(g)}`],
31
+ deleteIcon: ["deleteIcon", `deleteIcon${r(c)}`, `deleteIconColor${r(n)}`, `deleteIcon${r(p)}Color${r(n)}`]
32
+ };
33
+ return Z($, eo, a);
34
+ }, no = K("div", {
35
+ name: "MuiChip",
36
+ slot: "Root",
37
+ overridesResolver: (o, a) => {
38
+ const {
39
+ ownerState: s
40
+ } = o, {
41
+ color: c,
42
+ iconColor: n,
43
+ clickable: g,
44
+ onDelete: f,
45
+ size: t,
46
+ variant: p
47
+ } = s;
48
+ return [{
49
+ [`& .${e.avatar}`]: a.avatar
50
+ }, {
51
+ [`& .${e.avatar}`]: a[`avatar${r(t)}`]
52
+ }, {
53
+ [`& .${e.avatar}`]: a[`avatarColor${r(c)}`]
54
+ }, {
55
+ [`& .${e.icon}`]: a.icon
56
+ }, {
57
+ [`& .${e.icon}`]: a[`icon${r(t)}`]
58
+ }, {
59
+ [`& .${e.icon}`]: a[`iconColor${r(n)}`]
60
+ }, {
61
+ [`& .${e.deleteIcon}`]: a.deleteIcon
62
+ }, {
63
+ [`& .${e.deleteIcon}`]: a[`deleteIcon${r(t)}`]
64
+ }, {
65
+ [`& .${e.deleteIcon}`]: a[`deleteIconColor${r(c)}`]
66
+ }, {
67
+ [`& .${e.deleteIcon}`]: a[`deleteIcon${r(p)}Color${r(c)}`]
68
+ }, a.root, a[`size${r(t)}`], a[`color${r(c)}`], g && a.clickable, g && c !== "default" && a[`clickableColor${r(c)})`], f && a.deletable, f && c !== "default" && a[`deletableColor${r(c)}`], a[p], a[`${p}${r(c)}`]];
69
+ }
70
+ })(({
71
+ theme: o,
72
+ ownerState: a
73
+ }) => {
74
+ const s = o.palette.mode === "light" ? o.palette.grey[700] : o.palette.grey[300];
75
+ return u({
76
+ maxWidth: "100%",
77
+ fontFamily: o.typography.fontFamily,
78
+ fontSize: o.typography.pxToRem(13),
79
+ display: "inline-flex",
80
+ alignItems: "center",
81
+ justifyContent: "center",
82
+ height: 32,
83
+ color: (o.vars || o).palette.text.primary,
84
+ backgroundColor: (o.vars || o).palette.action.selected,
85
+ borderRadius: 32 / 2,
86
+ whiteSpace: "nowrap",
87
+ transition: o.transitions.create(["background-color", "box-shadow"]),
88
+ // label will inherit this from root, then `clickable` class overrides this for both
89
+ cursor: "default",
90
+ // We disable the focus ring for mouse, touch and keyboard users.
91
+ outline: 0,
92
+ textDecoration: "none",
93
+ border: 0,
94
+ // Remove `button` border
95
+ padding: 0,
96
+ // Remove `button` padding
97
+ verticalAlign: "middle",
98
+ boxSizing: "border-box",
99
+ [`&.${e.disabled}`]: {
100
+ opacity: (o.vars || o).palette.action.disabledOpacity,
101
+ pointerEvents: "none"
102
+ },
103
+ [`& .${e.avatar}`]: {
104
+ marginLeft: 5,
105
+ marginRight: -6,
106
+ width: 24,
107
+ height: 24,
108
+ color: o.vars ? o.vars.palette.Chip.defaultAvatarColor : s,
109
+ fontSize: o.typography.pxToRem(12)
110
+ },
111
+ [`& .${e.avatarColorPrimary}`]: {
112
+ color: (o.vars || o).palette.primary.contrastText,
113
+ backgroundColor: (o.vars || o).palette.primary.dark
114
+ },
115
+ [`& .${e.avatarColorSecondary}`]: {
116
+ color: (o.vars || o).palette.secondary.contrastText,
117
+ backgroundColor: (o.vars || o).palette.secondary.dark
118
+ },
119
+ [`& .${e.avatarSmall}`]: {
120
+ marginLeft: 4,
121
+ marginRight: -4,
122
+ width: 18,
123
+ height: 18,
124
+ fontSize: o.typography.pxToRem(10)
125
+ },
126
+ [`& .${e.icon}`]: u({
127
+ marginLeft: 5,
128
+ marginRight: -6
129
+ }, a.size === "small" && {
130
+ fontSize: 18,
131
+ marginLeft: 4,
132
+ marginRight: -4
133
+ }, a.iconColor === a.color && u({
134
+ color: o.vars ? o.vars.palette.Chip.defaultIconColor : s
135
+ }, a.color !== "default" && {
136
+ color: "inherit"
137
+ })),
138
+ [`& .${e.deleteIcon}`]: u({
139
+ WebkitTapHighlightColor: "transparent",
140
+ color: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / 0.26)` : d(o.palette.text.primary, 0.26),
141
+ fontSize: 22,
142
+ cursor: "pointer",
143
+ margin: "0 5px 0 -6px",
144
+ "&:hover": {
145
+ color: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / 0.4)` : d(o.palette.text.primary, 0.4)
146
+ }
147
+ }, a.size === "small" && {
148
+ fontSize: 16,
149
+ marginRight: 4,
150
+ marginLeft: -4
151
+ }, a.color !== "default" && {
152
+ color: o.vars ? `rgba(${o.vars.palette[a.color].contrastTextChannel} / 0.7)` : d(o.palette[a.color].contrastText, 0.7),
153
+ "&:hover, &:active": {
154
+ color: (o.vars || o).palette[a.color].contrastText
155
+ }
156
+ })
157
+ }, a.size === "small" && {
158
+ height: 24
159
+ }, a.color !== "default" && {
160
+ backgroundColor: (o.vars || o).palette[a.color].main,
161
+ color: (o.vars || o).palette[a.color].contrastText
162
+ }, a.onDelete && {
163
+ [`&.${e.focusVisible}`]: {
164
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.selectedChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.focusOpacity}))` : d(o.palette.action.selected, o.palette.action.selectedOpacity + o.palette.action.focusOpacity)
165
+ }
166
+ }, a.onDelete && a.color !== "default" && {
167
+ [`&.${e.focusVisible}`]: {
168
+ backgroundColor: (o.vars || o).palette[a.color].dark
169
+ }
170
+ });
171
+ }, ({
172
+ theme: o,
173
+ ownerState: a
174
+ }) => u({}, a.clickable && {
175
+ userSelect: "none",
176
+ WebkitTapHighlightColor: "transparent",
177
+ cursor: "pointer",
178
+ "&:hover": {
179
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.selectedChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))` : d(o.palette.action.selected, o.palette.action.selectedOpacity + o.palette.action.hoverOpacity)
180
+ },
181
+ [`&.${e.focusVisible}`]: {
182
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.selectedChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.focusOpacity}))` : d(o.palette.action.selected, o.palette.action.selectedOpacity + o.palette.action.focusOpacity)
183
+ },
184
+ "&:active": {
185
+ boxShadow: (o.vars || o).shadows[1]
186
+ }
187
+ }, a.clickable && a.color !== "default" && {
188
+ [`&:hover, &.${e.focusVisible}`]: {
189
+ backgroundColor: (o.vars || o).palette[a.color].dark
190
+ }
191
+ }), ({
192
+ theme: o,
193
+ ownerState: a
194
+ }) => u({}, a.variant === "outlined" && {
195
+ backgroundColor: "transparent",
196
+ border: o.vars ? `1px solid ${o.vars.palette.Chip.defaultBorder}` : `1px solid ${o.palette.mode === "light" ? o.palette.grey[400] : o.palette.grey[700]}`,
197
+ [`&.${e.clickable}:hover`]: {
198
+ backgroundColor: (o.vars || o).palette.action.hover
199
+ },
200
+ [`&.${e.focusVisible}`]: {
201
+ backgroundColor: (o.vars || o).palette.action.focus
202
+ },
203
+ [`& .${e.avatar}`]: {
204
+ marginLeft: 4
205
+ },
206
+ [`& .${e.avatarSmall}`]: {
207
+ marginLeft: 2
208
+ },
209
+ [`& .${e.icon}`]: {
210
+ marginLeft: 4
211
+ },
212
+ [`& .${e.iconSmall}`]: {
213
+ marginLeft: 2
214
+ },
215
+ [`& .${e.deleteIcon}`]: {
216
+ marginRight: 5
217
+ },
218
+ [`& .${e.deleteIconSmall}`]: {
219
+ marginRight: 3
220
+ }
221
+ }, a.variant === "outlined" && a.color !== "default" && {
222
+ color: (o.vars || o).palette[a.color].main,
223
+ border: `1px solid ${o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / 0.7)` : d(o.palette[a.color].main, 0.7)}`,
224
+ [`&.${e.clickable}:hover`]: {
225
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : d(o.palette[a.color].main, o.palette.action.hoverOpacity)
226
+ },
227
+ [`&.${e.focusVisible}`]: {
228
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.focusOpacity})` : d(o.palette[a.color].main, o.palette.action.focusOpacity)
229
+ },
230
+ [`& .${e.deleteIcon}`]: {
231
+ color: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / 0.7)` : d(o.palette[a.color].main, 0.7),
232
+ "&:hover, &:active": {
233
+ color: (o.vars || o).palette[a.color].main
234
+ }
235
+ }
236
+ })), to = K("span", {
237
+ name: "MuiChip",
238
+ slot: "Label",
239
+ overridesResolver: (o, a) => {
240
+ const {
241
+ ownerState: s
242
+ } = o, {
243
+ size: c
244
+ } = s;
245
+ return [a.label, a[`label${r(c)}`]];
246
+ }
247
+ })(({
248
+ ownerState: o
249
+ }) => u({
250
+ overflow: "hidden",
251
+ textOverflow: "ellipsis",
252
+ paddingLeft: 12,
253
+ paddingRight: 12,
254
+ whiteSpace: "nowrap"
255
+ }, o.size === "small" && {
256
+ paddingLeft: 8,
257
+ paddingRight: 8
258
+ }));
259
+ function j(o) {
260
+ return o.key === "Backspace" || o.key === "Delete";
261
+ }
262
+ const U = /* @__PURE__ */ b.forwardRef(function(a, s) {
263
+ const c = Y({
264
+ props: a,
265
+ name: "MuiChip"
266
+ }), {
267
+ avatar: n,
268
+ className: g,
269
+ clickable: f,
270
+ color: t = "default",
271
+ component: p,
272
+ deleteIcon: $,
273
+ disabled: I = !1,
274
+ icon: y,
275
+ label: F,
276
+ onClick: T,
277
+ onDelete: v,
278
+ onKeyDown: N,
279
+ onKeyUp: E,
280
+ size: S = "medium",
281
+ variant: W = "filled",
282
+ tabIndex: _,
283
+ skipFocusWhenDisabled: B = !1
284
+ // TODO v6: Rename to `focusableWhenDisabled`.
285
+ } = c, h = J(c, co), x = b.useRef(null), A = oo(x, s), L = (i) => {
286
+ i.stopPropagation(), v && v(i);
287
+ }, H = (i) => {
288
+ i.currentTarget === i.target && j(i) && i.preventDefault(), N && N(i);
289
+ }, q = (i) => {
290
+ i.currentTarget === i.target && (v && j(i) ? v(i) : i.key === "Escape" && x.current && x.current.blur()), E && E(i);
291
+ }, O = f !== !1 && T ? !0 : f, R = O || v ? M : p || "div", z = u({}, c, {
292
+ component: R,
293
+ disabled: I,
294
+ size: S,
295
+ color: t,
296
+ iconColor: /* @__PURE__ */ b.isValidElement(y) && y.props.color || t,
297
+ onDelete: !!v,
298
+ clickable: O,
299
+ variant: W
300
+ }), C = io(z), G = R === M ? u({
301
+ component: p || "div",
302
+ focusVisibleClassName: C.focusVisible
303
+ }, v && {
304
+ disableRipple: !0
305
+ }) : {};
306
+ let V = null;
307
+ v && (V = $ && /* @__PURE__ */ b.isValidElement($) ? /* @__PURE__ */ b.cloneElement($, {
308
+ className: k($.props.className, C.deleteIcon),
309
+ onClick: L
310
+ }) : /* @__PURE__ */ m.jsx(lo, {
311
+ className: k(C.deleteIcon),
312
+ onClick: L
313
+ }));
314
+ let P = null;
315
+ n && /* @__PURE__ */ b.isValidElement(n) && (P = /* @__PURE__ */ b.cloneElement(n, {
316
+ className: k(C.avatar, n.props.className)
317
+ }));
318
+ let D = null;
319
+ return y && /* @__PURE__ */ b.isValidElement(y) && (D = /* @__PURE__ */ b.cloneElement(y, {
320
+ className: k(C.icon, y.props.className)
321
+ })), process.env.NODE_ENV !== "production" && P && D && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */ m.jsxs(no, u({
322
+ as: R,
323
+ className: k(C.root, g),
324
+ disabled: O && I ? !0 : void 0,
325
+ onClick: T,
326
+ onKeyDown: H,
327
+ onKeyUp: q,
328
+ ref: A,
329
+ tabIndex: B && I ? -1 : _,
330
+ ownerState: z
331
+ }, G, h, {
332
+ children: [P || D, /* @__PURE__ */ m.jsx(to, {
333
+ className: k(C.label),
334
+ ownerState: z,
335
+ children: F
336
+ }), V]
337
+ }));
338
+ });
339
+ process.env.NODE_ENV !== "production" && (U.propTypes = {
340
+ // ----------------------------- Warning --------------------------------
341
+ // | These PropTypes are generated from the TypeScript type definitions |
342
+ // | To update them edit the d.ts file and run "yarn proptypes" |
343
+ // ----------------------------------------------------------------------
344
+ /**
345
+ * The Avatar element to display.
346
+ */
347
+ avatar: l.element,
348
+ /**
349
+ * This prop isn't supported.
350
+ * Use the `component` prop if you need to change the children structure.
351
+ */
352
+ children: ao,
353
+ /**
354
+ * Override or extend the styles applied to the component.
355
+ */
356
+ classes: l.object,
357
+ /**
358
+ * @ignore
359
+ */
360
+ className: l.string,
361
+ /**
362
+ * If `true`, the chip will appear clickable, and will raise when pressed,
363
+ * even if the onClick prop is not defined.
364
+ * If `false`, the chip will not appear clickable, even if onClick prop is defined.
365
+ * This can be used, for example,
366
+ * along with the component prop to indicate an anchor Chip is clickable.
367
+ * Note: this controls the UI and does not affect the onClick event.
368
+ */
369
+ clickable: l.bool,
370
+ /**
371
+ * The color of the component.
372
+ * It supports both default and custom theme colors, which can be added as shown in the
373
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
374
+ * @default 'default'
375
+ */
376
+ color: l.oneOfType([l.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), l.string]),
377
+ /**
378
+ * The component used for the root node.
379
+ * Either a string to use a HTML element or a component.
380
+ */
381
+ component: l.elementType,
382
+ /**
383
+ * Override the default delete icon element. Shown only if `onDelete` is set.
384
+ */
385
+ deleteIcon: l.element,
386
+ /**
387
+ * If `true`, the component is disabled.
388
+ * @default false
389
+ */
390
+ disabled: l.bool,
391
+ /**
392
+ * Icon element.
393
+ */
394
+ icon: l.element,
395
+ /**
396
+ * The content of the component.
397
+ */
398
+ label: l.node,
399
+ /**
400
+ * @ignore
401
+ */
402
+ onClick: l.func,
403
+ /**
404
+ * Callback fired when the delete icon is clicked.
405
+ * If set, the delete icon will be shown.
406
+ */
407
+ onDelete: l.func,
408
+ /**
409
+ * @ignore
410
+ */
411
+ onKeyDown: l.func,
412
+ /**
413
+ * @ignore
414
+ */
415
+ onKeyUp: l.func,
416
+ /**
417
+ * The size of the component.
418
+ * @default 'medium'
419
+ */
420
+ size: l.oneOfType([l.oneOf(["medium", "small"]), l.string]),
421
+ /**
422
+ * If `true`, allows the disabled chip to escape focus.
423
+ * If `false`, allows the disabled chip to receive focus.
424
+ * @default false
425
+ */
426
+ skipFocusWhenDisabled: l.bool,
427
+ /**
428
+ * The system prop that allows defining system overrides as well as additional CSS styles.
429
+ */
430
+ sx: l.oneOfType([l.arrayOf(l.oneOfType([l.func, l.object, l.bool])), l.func, l.object]),
431
+ /**
432
+ * @ignore
433
+ */
434
+ tabIndex: l.number,
435
+ /**
436
+ * The variant to use.
437
+ * @default 'filled'
438
+ */
439
+ variant: l.oneOfType([l.oneOf(["filled", "outlined"]), l.string])
440
+ });
441
+ const $o = U;
442
+ export {
443
+ $o as C
444
+ };