@hybridcore/ui 1.6.1 → 1.6.2

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 (231) hide show
  1. package/CATALOG.md +179 -0
  2. package/README.md +1 -2
  3. package/dist/AccordionSummary-CJppWeqF.js +781 -0
  4. package/dist/Add-CqcD1PWb.js +403 -0
  5. package/dist/Box-DqUMmZjL.js +31 -0
  6. package/dist/Button-C5yquWAB.js +357 -0
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
  12. package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
  13. package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
  14. package/dist/Modal-MUZygjmQ.js +1158 -0
  15. package/dist/Paper-BkQLdsCI.js +582 -0
  16. package/dist/Select-DHUl_uG3.js +3916 -0
  17. package/dist/SwitchBase-DTndTqI8.js +235 -0
  18. package/dist/TextField-e2oKaUN1.js +669 -0
  19. package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
  20. package/dist/{Typography-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
  21. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  22. package/dist/assets/index4.css +1 -0
  23. package/dist/clsx-OuTLNxxd.js +16 -0
  24. package/dist/components/access/helpers.js +1 -1
  25. package/dist/components/access/logic.js +1 -1
  26. package/dist/components/button/index.js +10 -0
  27. package/dist/components/button/logic.js +26 -0
  28. package/dist/components/button/styled.js +9 -0
  29. package/dist/components/charts/_common/chart-error.js +19 -0
  30. package/dist/components/charts/candlestick/index.js +3 -3
  31. package/dist/components/charts/candlestick/logic.js +123 -113
  32. package/dist/components/charts/chart-wrapper/index.js +5 -5
  33. package/dist/components/charts/column-line-mix/index.js +9 -8
  34. package/dist/components/charts/column-line-mix/logic.js +68 -71
  35. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  36. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  37. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  38. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  39. package/dist/components/charts/heatmap/index.js +9 -8
  40. package/dist/components/charts/heatmap/logic.js +167 -173
  41. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  42. package/dist/components/charts/line/index.js +9 -8
  43. package/dist/components/charts/line/logic.js +74 -79
  44. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  45. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  46. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  47. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  48. package/dist/components/charts/nested-pie/index.js +9 -8
  49. package/dist/components/charts/nested-pie/logic.js +62 -68
  50. package/dist/components/charts/packed-circles/index.js +7 -6
  51. package/dist/components/charts/packed-circles/logic.js +50 -56
  52. package/dist/components/charts/pie-chart/index.js +9 -8
  53. package/dist/components/charts/pie-chart/logic.js +49 -54
  54. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  55. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  56. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  57. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  58. package/dist/components/charts/xy-chart/index.js +9 -8
  59. package/dist/components/charts/xy-chart/logic.js +56 -60
  60. package/dist/components/collapsible-card/index.js +11 -10
  61. package/dist/components/collapsible-card/styled.js +1 -1
  62. package/dist/components/color-picker/index.js +7120 -0
  63. package/dist/components/color-picker/logic.js +18 -0
  64. package/dist/components/color-picker/styled.js +7 -0
  65. package/dist/components/confirm/dialog.js +3 -3
  66. package/dist/components/confirm/index.js +1 -1
  67. package/dist/components/data-grid/index.js +22 -0
  68. package/dist/components/data-grid/logic.js +15 -0
  69. package/dist/components/data-grid/styled.js +20 -0
  70. package/dist/components/data-map/components/controls/index.js +4 -6
  71. package/dist/components/data-map/index.js +11 -11
  72. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  73. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  74. package/dist/components/data-security-selectors/security-level/index.js +18 -15
  75. package/dist/components/data-security-selectors/security-level/logic.js +18 -63
  76. package/dist/components/data-security-selectors/security-level/styled.js +23 -17
  77. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  78. package/dist/components/date-range-picker/index.js +2748 -0
  79. package/dist/components/date-range-picker/styled.js +14 -0
  80. package/dist/components/date-time-picker/index.js +45 -46
  81. package/dist/components/divider/index.js +11 -11
  82. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  83. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  84. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  85. package/dist/components/document-viewer/index.js +31 -39
  86. package/dist/components/document-viewer/logic.js +41 -34
  87. package/dist/components/document-viewer/styled.js +115 -27
  88. package/dist/components/duration-select/index.js +27 -0
  89. package/dist/components/duration-select/logic.js +21 -0
  90. package/dist/components/duration-select/styled.js +26 -0
  91. package/dist/components/editable-text/index.js +20 -0
  92. package/dist/components/editable-text/logic.js +18 -0
  93. package/dist/components/editable-text/styled.js +22 -0
  94. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  95. package/dist/components/geometry-picker/edit/index.js +18 -18
  96. package/dist/components/geometry-picker/geometry/index.js +67 -67
  97. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  98. package/dist/components/geometry-picker/index.js +69 -86
  99. package/dist/components/geometry-picker/kml/index.js +16 -16
  100. package/dist/components/geometry-picker/logic.js +50 -57
  101. package/dist/components/geometry-picker/map/index.js +8 -8
  102. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  103. package/dist/components/geometry-picker/parser/index.js +46 -50
  104. package/dist/components/geometry-picker/parser/styled.js +22 -4
  105. package/dist/components/geometry-picker/styled.js +97 -37
  106. package/dist/components/geometry-picker/wkt/index.js +13 -13
  107. package/dist/components/heat-map/components/controls/index.js +4 -6
  108. package/dist/components/heat-map/components/legend/index.js +15 -17
  109. package/dist/components/heat-map/index.js +7 -7
  110. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  111. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  112. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  113. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  114. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  115. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  116. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  117. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  118. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  119. package/dist/components/instance-form/components/variable/index.js +6 -9
  120. package/dist/components/instance-form/components/variables/index.js +48 -55
  121. package/dist/components/instance-form/helpers.js +9 -0
  122. package/dist/components/instance-form/index.js +402 -518
  123. package/dist/components/instance-form/logic.js +115 -0
  124. package/dist/components/instance-form/styled.js +487 -0
  125. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  126. package/dist/components/instance-variable-list/index.js +11 -11
  127. package/dist/components/map/index.js +28 -6
  128. package/dist/components/map/styled.js +1 -1
  129. package/dist/components/notification/index.js +67 -0
  130. package/dist/components/notification/logic.js +30 -0
  131. package/dist/components/notification/store.js +23 -0
  132. package/dist/components/notification/styled.js +52 -0
  133. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  134. package/dist/components/object-profile-card/index.js +19 -20
  135. package/dist/components/paginated-list/index.js +2 -3
  136. package/dist/components/placeholder/index.js +10 -0
  137. package/dist/components/placeholder/logic.js +12 -0
  138. package/dist/components/placeholder/styled.js +32 -0
  139. package/dist/components/positional-tooltip/index.js +24 -0
  140. package/dist/components/positional-tooltip/styled.js +17 -0
  141. package/dist/components/property-mapping/index.js +204 -423
  142. package/dist/components/property-mapping/logic.js +156 -0
  143. package/dist/components/property-mapping/styled.js +199 -0
  144. package/dist/components/prr-map/components/controls/index.js +4 -6
  145. package/dist/components/prr-map/components/legend/index.js +26 -28
  146. package/dist/components/prr-map/index.js +5 -5
  147. package/dist/components/range-selector/styled.js +1106 -1034
  148. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  149. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  150. package/dist/components/raster-grid-map/index.js +5 -5
  151. package/dist/components/scroll-drag/index.js +22 -0
  152. package/dist/components/scroll-drag/logic.js +39 -0
  153. package/dist/components/scroll-drag/styled.js +17 -0
  154. package/dist/components/search-input/logic.js +35 -33
  155. package/dist/components/simple-pivot-table/index.js +12 -12
  156. package/dist/components/sortable-list/index.js +599 -0
  157. package/dist/components/sortable-list/logic.js +18 -0
  158. package/dist/components/sortable-list/styled.js +38 -0
  159. package/dist/components/static-text/index.js +6 -6
  160. package/dist/components/stats-box/index.js +12 -0
  161. package/dist/components/stats-box/styled.js +36 -0
  162. package/dist/components/template-form/components/property-list/index.js +27 -26
  163. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  164. package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
  165. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  166. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  167. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -22
  168. package/dist/components/template-form/components/select-icon/index.js +24 -24
  169. package/dist/components/template-form/helpers.js +17 -0
  170. package/dist/components/template-form/index.js +270 -308
  171. package/dist/components/template-form/logic.js +69 -0
  172. package/dist/components/template-form/styled.js +84 -0
  173. package/dist/components/text-overflow/index.js +6 -0
  174. package/dist/components/text-overflow/styled.js +13 -0
  175. package/dist/components/timeline/index.js +12 -12
  176. package/dist/components/toggle-view-button/index.js +35 -0
  177. package/dist/components/toggle-view-button/logic.js +22 -0
  178. package/dist/components/toggle-view-button/styled.js +11 -0
  179. package/dist/components/tree-select/index.js +1 -1
  180. package/dist/components/visually-hidden-input/index.js +4 -0
  181. package/dist/components/visually-hidden-input/styled.js +18 -0
  182. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  183. package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
  184. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  185. package/dist/debounce-46wSf_lW.js +15 -0
  186. package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
  187. package/dist/formControlState-vgaj2ksH.js +10 -0
  188. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  189. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  190. package/dist/index-BtlzPygz.js +470 -0
  191. package/dist/index-DH6qsPBn.js +153 -0
  192. package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
  193. package/dist/main.d.ts +1054 -330
  194. package/dist/main.js +163 -130
  195. package/dist/ownerWindow-wg6foiOE.js +10 -0
  196. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  197. package/dist/styled-Db1RdcPA.js +323 -0
  198. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  199. package/dist/useFormControl-CatNKXAi.js +10 -0
  200. package/dist/useId-BW-oWmul.js +19 -0
  201. package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
  202. package/dist/useSlot-B_Q4vnX5.js +42 -0
  203. package/package.json +15 -7
  204. package/dist/AccordionSummary-CMg08YSA.js +0 -739
  205. package/dist/Add-DuVVJeQU.js +0 -380
  206. package/dist/ButtonBase-sObABYY2.js +0 -965
  207. package/dist/FormControl-BCurCxRj.js +0 -1294
  208. package/dist/FormControlLabel-BkRfrhNy.js +0 -601
  209. package/dist/InputAdornment-C7PEvvYr.js +0 -155
  210. package/dist/Modal-DlB6GH-f.js +0 -1659
  211. package/dist/Paper-q9kKjAKx.js +0 -527
  212. package/dist/TextField-DSDIEEKu.js +0 -3161
  213. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  214. package/dist/capitalize-quqpGCFu.js +0 -9
  215. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  216. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  217. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  218. package/dist/components/key-protection/index.js +0 -47
  219. package/dist/components/key-protection/logic.js +0 -40
  220. package/dist/components/key-protection/styled.js +0 -45
  221. package/dist/components/key-protection/utils.js +0 -10
  222. package/dist/createSvgIcon-BM3-TsGy.js +0 -70
  223. package/dist/index-BMS1Otro.js +0 -183
  224. package/dist/index-DPKUmQnz.js +0 -501
  225. package/dist/index-kCJ_Zvl8.js +0 -34
  226. package/dist/isMuiElement-BkJ72LB3.js +0 -26
  227. package/dist/property-list-form-DL_dEoNn.js +0 -381
  228. package/dist/styled-Bsjp3kFh.js +0 -668
  229. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  230. package/dist/useId-B4-oF9Mq.js +0 -34
  231. package/dist/utils-Cxu-fHjQ.js +0 -115
@@ -1,601 +0,0 @@
1
- import { a as l, _ as j } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as P from "react";
3
- import { P as e } from "./index-C__OZmYy.js";
4
- import { b as E, g as _, s as L, c as T, a as M, r as ne, u as G } from "./styled-Bsjp3kFh.js";
5
- import { alpha as ae } from "@mui/system";
6
- import { u as J, f as se } from "./InputLabel-rEwwnD4_.js";
7
- import { jsxs as K, jsx as b } from "react/jsx-runtime";
8
- import { B as re, r as q } from "./ButtonBase-sObABYY2.js";
9
- import { u as le } from "./useControlled-BYdyS7Pn.js";
10
- import { c as $ } from "./capitalize-quqpGCFu.js";
11
- import { c as U } from "./createSvgIcon-DX-SqL8M.js";
12
- import { T as A } from "./Typography-B-Z5Y0Xq.js";
13
- function ce(o) {
14
- return E("PrivateSwitchBase", o);
15
- }
16
- _("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
17
- const ie = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], de = (o) => {
18
- const {
19
- classes: t,
20
- checked: a,
21
- disabled: s,
22
- edge: n
23
- } = o, r = {
24
- root: ["root", a && "checked", s && "disabled", n && `edge${$(n)}`],
25
- input: ["input"]
26
- };
27
- return M(r, ce, t);
28
- }, pe = L(re)(({
29
- ownerState: o
30
- }) => l({
31
- padding: 9,
32
- borderRadius: "50%"
33
- }, o.edge === "start" && {
34
- marginLeft: o.size === "small" ? -3 : -12
35
- }, o.edge === "end" && {
36
- marginRight: o.size === "small" ? -3 : -12
37
- })), ue = L("input")({
38
- cursor: "inherit",
39
- position: "absolute",
40
- opacity: 0,
41
- width: "100%",
42
- height: "100%",
43
- top: 0,
44
- left: 0,
45
- margin: 0,
46
- padding: 0,
47
- zIndex: 1
48
- }), Q = /* @__PURE__ */ P.forwardRef(function(t, a) {
49
- const {
50
- autoFocus: s,
51
- checked: n,
52
- checkedIcon: r,
53
- className: x,
54
- defaultChecked: i,
55
- disabled: R,
56
- disableFocusRipple: d = !1,
57
- edge: v = !1,
58
- icon: I,
59
- id: g,
60
- inputProps: F,
61
- inputRef: y,
62
- name: c,
63
- onBlur: m,
64
- onChange: C,
65
- onFocus: f,
66
- readOnly: N,
67
- required: B = !1,
68
- tabIndex: k,
69
- type: p,
70
- value: V
71
- } = t, X = j(t, ie), [D, Y] = le({
72
- controlled: n,
73
- default: !!i,
74
- name: "SwitchBase",
75
- state: "checked"
76
- }), h = J(), Z = (u) => {
77
- f && f(u), h && h.onFocus && h.onFocus(u);
78
- }, ee = (u) => {
79
- m && m(u), h && h.onBlur && h.onBlur(u);
80
- }, oe = (u) => {
81
- if (u.nativeEvent.defaultPrevented)
82
- return;
83
- const W = u.target.checked;
84
- Y(W), C && C(u, W);
85
- };
86
- let O = R;
87
- h && typeof O > "u" && (O = h.disabled);
88
- const te = p === "checkbox" || p === "radio", z = l({}, t, {
89
- checked: D,
90
- disabled: O,
91
- disableFocusRipple: d,
92
- edge: v
93
- }), H = de(z);
94
- return /* @__PURE__ */ K(pe, l({
95
- component: "span",
96
- className: T(H.root, x),
97
- centerRipple: !0,
98
- focusRipple: !d,
99
- disabled: O,
100
- tabIndex: null,
101
- role: void 0,
102
- onFocus: Z,
103
- onBlur: ee,
104
- ownerState: z,
105
- ref: a
106
- }, X, {
107
- children: [/* @__PURE__ */ b(ue, l({
108
- autoFocus: s,
109
- checked: n,
110
- defaultChecked: i,
111
- className: H.input,
112
- disabled: O,
113
- id: te ? g : void 0,
114
- name: c,
115
- onChange: oe,
116
- readOnly: N,
117
- ref: y,
118
- required: B,
119
- ownerState: z,
120
- tabIndex: k,
121
- type: p
122
- }, p === "checkbox" && V === void 0 ? {} : {
123
- value: V
124
- }, F)), D ? r : I]
125
- }));
126
- });
127
- process.env.NODE_ENV !== "production" && (Q.propTypes = {
128
- /**
129
- * If `true`, the `input` element is focused during the first mount.
130
- */
131
- autoFocus: e.bool,
132
- /**
133
- * If `true`, the component is checked.
134
- */
135
- checked: e.bool,
136
- /**
137
- * The icon to display when the component is checked.
138
- */
139
- checkedIcon: e.node.isRequired,
140
- /**
141
- * Override or extend the styles applied to the component.
142
- * See [CSS API](#css) below for more details.
143
- */
144
- classes: e.object,
145
- /**
146
- * @ignore
147
- */
148
- className: e.string,
149
- /**
150
- * @ignore
151
- */
152
- defaultChecked: e.bool,
153
- /**
154
- * If `true`, the component is disabled.
155
- */
156
- disabled: e.bool,
157
- /**
158
- * If `true`, the keyboard focus ripple is disabled.
159
- * @default false
160
- */
161
- disableFocusRipple: e.bool,
162
- /**
163
- * If given, uses a negative margin to counteract the padding on one
164
- * side (this is often helpful for aligning the left or right
165
- * side of the icon with content above or below, without ruining the border
166
- * size and shape).
167
- * @default false
168
- */
169
- edge: e.oneOf(["end", "start", !1]),
170
- /**
171
- * The icon to display when the component is unchecked.
172
- */
173
- icon: e.node.isRequired,
174
- /**
175
- * The id of the `input` element.
176
- */
177
- id: e.string,
178
- /**
179
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
180
- */
181
- inputProps: e.object,
182
- /**
183
- * Pass a ref to the `input` element.
184
- */
185
- inputRef: q,
186
- /*
187
- * @ignore
188
- */
189
- name: e.string,
190
- /**
191
- * @ignore
192
- */
193
- onBlur: e.func,
194
- /**
195
- * Callback fired when the state is changed.
196
- *
197
- * @param {object} event The event source of the callback.
198
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
199
- */
200
- onChange: e.func,
201
- /**
202
- * @ignore
203
- */
204
- onFocus: e.func,
205
- /**
206
- * It prevents the user from changing the value of the field
207
- * (not from interacting with the field).
208
- */
209
- readOnly: e.bool,
210
- /**
211
- * If `true`, the `input` element is required.
212
- */
213
- required: e.bool,
214
- /**
215
- * The system prop that allows defining system overrides as well as additional CSS styles.
216
- */
217
- sx: e.object,
218
- /**
219
- * @ignore
220
- */
221
- tabIndex: e.oneOfType([e.number, e.string]),
222
- /**
223
- * The input component prop `type`.
224
- */
225
- type: e.string.isRequired,
226
- /**
227
- * The value of the component.
228
- */
229
- value: e.any
230
- });
231
- const be = U(/* @__PURE__ */ b("path", {
232
- d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
233
- }), "CheckBoxOutlineBlank"), me = U(/* @__PURE__ */ b("path", {
234
- d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
235
- }), "CheckBox"), fe = U(/* @__PURE__ */ b("path", {
236
- d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
237
- }), "IndeterminateCheckBox");
238
- function he(o) {
239
- return E("MuiCheckbox", o);
240
- }
241
- const w = _("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary"]), ge = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], ye = (o) => {
242
- const {
243
- classes: t,
244
- indeterminate: a,
245
- color: s
246
- } = o, n = {
247
- root: ["root", a && "indeterminate", `color${$(s)}`]
248
- }, r = M(n, he, t);
249
- return l({}, t, r);
250
- }, Ce = L(Q, {
251
- shouldForwardProp: (o) => ne(o) || o === "classes",
252
- name: "MuiCheckbox",
253
- slot: "Root",
254
- overridesResolver: (o, t) => {
255
- const {
256
- ownerState: a
257
- } = o;
258
- return [t.root, a.indeterminate && t.indeterminate, a.color !== "default" && t[`color${$(a.color)}`]];
259
- }
260
- })(({
261
- theme: o,
262
- ownerState: t
263
- }) => l({
264
- color: (o.vars || o).palette.text.secondary
265
- }, !t.disableRipple && {
266
- "&:hover": {
267
- backgroundColor: o.vars ? `rgba(${t.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : ae(t.color === "default" ? o.palette.action.active : o.palette[t.color].main, o.palette.action.hoverOpacity),
268
- // Reset on touch devices, it doesn't add specificity
269
- "@media (hover: none)": {
270
- backgroundColor: "transparent"
271
- }
272
- }
273
- }, t.color !== "default" && {
274
- [`&.${w.checked}, &.${w.indeterminate}`]: {
275
- color: (o.vars || o).palette[t.color].main
276
- },
277
- [`&.${w.disabled}`]: {
278
- color: (o.vars || o).palette.action.disabled
279
- }
280
- })), ke = /* @__PURE__ */ b(me, {}), ve = /* @__PURE__ */ b(be, {}), Pe = /* @__PURE__ */ b(fe, {}), xe = /* @__PURE__ */ P.forwardRef(function(t, a) {
281
- var s, n;
282
- const r = G({
283
- props: t,
284
- name: "MuiCheckbox"
285
- }), {
286
- checkedIcon: x = ke,
287
- color: i = "primary",
288
- icon: R = ve,
289
- indeterminate: d = !1,
290
- indeterminateIcon: v = Pe,
291
- inputProps: I,
292
- size: g = "medium",
293
- className: F
294
- } = r, y = j(r, ge), c = d ? v : R, m = d ? v : x, C = l({}, r, {
295
- color: i,
296
- indeterminate: d,
297
- size: g
298
- }), f = ye(C);
299
- return /* @__PURE__ */ b(Ce, l({
300
- type: "checkbox",
301
- inputProps: l({
302
- "data-indeterminate": d
303
- }, I),
304
- icon: /* @__PURE__ */ P.cloneElement(c, {
305
- fontSize: (s = c.props.fontSize) != null ? s : g
306
- }),
307
- checkedIcon: /* @__PURE__ */ P.cloneElement(m, {
308
- fontSize: (n = m.props.fontSize) != null ? n : g
309
- }),
310
- ownerState: C,
311
- ref: a,
312
- className: T(f.root, F)
313
- }, y, {
314
- classes: f
315
- }));
316
- });
317
- process.env.NODE_ENV !== "production" && (xe.propTypes = {
318
- // ----------------------------- Warning --------------------------------
319
- // | These PropTypes are generated from the TypeScript type definitions |
320
- // | To update them edit the d.ts file and run "yarn proptypes" |
321
- // ----------------------------------------------------------------------
322
- /**
323
- * If `true`, the component is checked.
324
- */
325
- checked: e.bool,
326
- /**
327
- * The icon to display when the component is checked.
328
- * @default <CheckBoxIcon />
329
- */
330
- checkedIcon: e.node,
331
- /**
332
- * Override or extend the styles applied to the component.
333
- */
334
- classes: e.object,
335
- /**
336
- * @ignore
337
- */
338
- className: e.string,
339
- /**
340
- * The color of the component.
341
- * It supports both default and custom theme colors, which can be added as shown in the
342
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
343
- * @default 'primary'
344
- */
345
- color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
346
- /**
347
- * The default checked state. Use when the component is not controlled.
348
- */
349
- defaultChecked: e.bool,
350
- /**
351
- * If `true`, the component is disabled.
352
- * @default false
353
- */
354
- disabled: e.bool,
355
- /**
356
- * If `true`, the ripple effect is disabled.
357
- * @default false
358
- */
359
- disableRipple: e.bool,
360
- /**
361
- * The icon to display when the component is unchecked.
362
- * @default <CheckBoxOutlineBlankIcon />
363
- */
364
- icon: e.node,
365
- /**
366
- * The id of the `input` element.
367
- */
368
- id: e.string,
369
- /**
370
- * If `true`, the component appears indeterminate.
371
- * This does not set the native input element to indeterminate due
372
- * to inconsistent behavior across browsers.
373
- * However, we set a `data-indeterminate` attribute on the `input`.
374
- * @default false
375
- */
376
- indeterminate: e.bool,
377
- /**
378
- * The icon to display when the component is indeterminate.
379
- * @default <IndeterminateCheckBoxIcon />
380
- */
381
- indeterminateIcon: e.node,
382
- /**
383
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
384
- */
385
- inputProps: e.object,
386
- /**
387
- * Pass a ref to the `input` element.
388
- */
389
- inputRef: q,
390
- /**
391
- * Callback fired when the state is changed.
392
- *
393
- * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
394
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
395
- */
396
- onChange: e.func,
397
- /**
398
- * If `true`, the `input` element is required.
399
- * @default false
400
- */
401
- required: e.bool,
402
- /**
403
- * The size of the component.
404
- * `small` is equivalent to the dense checkbox styling.
405
- * @default 'medium'
406
- */
407
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
408
- /**
409
- * The system prop that allows defining system overrides as well as additional CSS styles.
410
- */
411
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
412
- /**
413
- * The value of the component. The DOM API casts this to a string.
414
- * The browser uses "on" as the default value.
415
- */
416
- value: e.any
417
- });
418
- function Re(o) {
419
- return E("MuiFormControlLabel", o);
420
- }
421
- const S = _("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error"]), Ie = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "slotProps", "value"], Fe = (o) => {
422
- const {
423
- classes: t,
424
- disabled: a,
425
- labelPlacement: s,
426
- error: n
427
- } = o, r = {
428
- root: ["root", a && "disabled", `labelPlacement${$(s)}`, n && "error"],
429
- label: ["label", a && "disabled"]
430
- };
431
- return M(r, Re, t);
432
- }, Be = L("label", {
433
- name: "MuiFormControlLabel",
434
- slot: "Root",
435
- overridesResolver: (o, t) => {
436
- const {
437
- ownerState: a
438
- } = o;
439
- return [{
440
- [`& .${S.label}`]: t.label
441
- }, t.root, t[`labelPlacement${$(a.labelPlacement)}`]];
442
- }
443
- })(({
444
- theme: o,
445
- ownerState: t
446
- }) => l({
447
- display: "inline-flex",
448
- alignItems: "center",
449
- cursor: "pointer",
450
- // For correct alignment with the text.
451
- verticalAlign: "middle",
452
- WebkitTapHighlightColor: "transparent",
453
- marginLeft: -11,
454
- marginRight: 16,
455
- // used for row presentation of radio/checkbox
456
- [`&.${S.disabled}`]: {
457
- cursor: "default"
458
- }
459
- }, t.labelPlacement === "start" && {
460
- flexDirection: "row-reverse",
461
- marginLeft: 16,
462
- // used for row presentation of radio/checkbox
463
- marginRight: -11
464
- }, t.labelPlacement === "top" && {
465
- flexDirection: "column-reverse",
466
- marginLeft: 16
467
- }, t.labelPlacement === "bottom" && {
468
- flexDirection: "column",
469
- marginLeft: 16
470
- }, {
471
- [`& .${S.label}`]: {
472
- [`&.${S.disabled}`]: {
473
- color: (o.vars || o).palette.text.disabled
474
- }
475
- }
476
- })), Oe = /* @__PURE__ */ P.forwardRef(function(t, a) {
477
- var s;
478
- const n = G({
479
- props: t,
480
- name: "MuiFormControlLabel"
481
- }), {
482
- className: r,
483
- componentsProps: x = {},
484
- control: i,
485
- disabled: R,
486
- disableTypography: d,
487
- label: v,
488
- labelPlacement: I = "end",
489
- slotProps: g = {}
490
- } = n, F = j(n, Ie), y = J();
491
- let c = R;
492
- typeof c > "u" && typeof i.props.disabled < "u" && (c = i.props.disabled), typeof c > "u" && y && (c = y.disabled);
493
- const m = {
494
- disabled: c
495
- };
496
- ["checked", "name", "onChange", "value", "inputRef"].forEach((p) => {
497
- typeof i.props[p] > "u" && typeof n[p] < "u" && (m[p] = n[p]);
498
- });
499
- const C = se({
500
- props: n,
501
- muiFormControl: y,
502
- states: ["error"]
503
- }), f = l({}, n, {
504
- disabled: c,
505
- labelPlacement: I,
506
- error: C.error
507
- }), N = Fe(f), B = (s = g.typography) != null ? s : x.typography;
508
- let k = v;
509
- return k != null && k.type !== A && !d && (k = /* @__PURE__ */ b(A, l({
510
- component: "span"
511
- }, B, {
512
- className: T(N.label, B == null ? void 0 : B.className),
513
- children: k
514
- }))), /* @__PURE__ */ K(Be, l({
515
- className: T(N.root, r),
516
- ownerState: f,
517
- ref: a
518
- }, F, {
519
- children: [/* @__PURE__ */ P.cloneElement(i, m), k]
520
- }));
521
- });
522
- process.env.NODE_ENV !== "production" && (Oe.propTypes = {
523
- // ----------------------------- Warning --------------------------------
524
- // | These PropTypes are generated from the TypeScript type definitions |
525
- // | To update them edit the d.ts file and run "yarn proptypes" |
526
- // ----------------------------------------------------------------------
527
- /**
528
- * If `true`, the component appears selected.
529
- */
530
- checked: e.bool,
531
- /**
532
- * Override or extend the styles applied to the component.
533
- */
534
- classes: e.object,
535
- /**
536
- * @ignore
537
- */
538
- className: e.string,
539
- /**
540
- * The props used for each slot inside.
541
- * @default {}
542
- */
543
- componentsProps: e.shape({
544
- typography: e.object
545
- }),
546
- /**
547
- * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
548
- */
549
- control: e.element.isRequired,
550
- /**
551
- * If `true`, the control is disabled.
552
- */
553
- disabled: e.bool,
554
- /**
555
- * If `true`, the label is rendered as it is passed without an additional typography node.
556
- */
557
- disableTypography: e.bool,
558
- /**
559
- * Pass a ref to the `input` element.
560
- */
561
- inputRef: q,
562
- /**
563
- * A text or an element to be used in an enclosing label element.
564
- */
565
- label: e.node,
566
- /**
567
- * The position of the label.
568
- * @default 'end'
569
- */
570
- labelPlacement: e.oneOf(["bottom", "end", "start", "top"]),
571
- /**
572
- * @ignore
573
- */
574
- name: e.string,
575
- /**
576
- * Callback fired when the state is changed.
577
- *
578
- * @param {React.SyntheticEvent} event The event source of the callback.
579
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
580
- */
581
- onChange: e.func,
582
- /**
583
- * The props used for each slot inside.
584
- * @default {}
585
- */
586
- slotProps: e.shape({
587
- typography: e.object
588
- }),
589
- /**
590
- * The system prop that allows defining system overrides as well as additional CSS styles.
591
- */
592
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
593
- /**
594
- * The value of the component.
595
- */
596
- value: e.any
597
- });
598
- export {
599
- xe as C,
600
- Oe as F
601
- };