@hybridcore/ui 1.6.11 → 1.6.13

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 (150) hide show
  1. package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
  2. package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
  3. package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
  9. package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
  10. package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
  11. package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
  14. package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
  15. package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
  16. package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
  17. package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
  18. package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
  19. package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
  21. package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
  22. package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
  23. package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
  25. package/dist/assets/index.css +1 -1
  26. package/dist/assets/index2.css +1 -1
  27. package/dist/components/button/styled.js +1 -1
  28. package/dist/components/charts/_common/format.js +149 -41
  29. package/dist/components/charts/_common/tooltip.js +2 -2
  30. package/dist/components/charts/_common/utils.js +16 -11
  31. package/dist/components/charts/candlestick/logic.js +34 -35
  32. package/dist/components/charts/column-line-mix/logic.js +40 -41
  33. package/dist/components/charts/donut-chart/logic.js +4 -4
  34. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  35. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  36. package/dist/components/charts/forecast-cone/logic.js +134 -120
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +19 -20
  40. package/dist/components/charts/logaritmic-scale/logic.js +30 -31
  41. package/dist/components/charts/multiple-value-axes/logic.js +18 -19
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +28 -29
  48. package/dist/components/collapsible-card/index.js +21 -30
  49. package/dist/components/collapsible-card/styled.js +16 -14
  50. package/dist/components/color-picker/index.js +2227 -3357
  51. package/dist/components/color-picker/styled.js +87 -7
  52. package/dist/components/confirm/dialog.js +89 -8
  53. package/dist/components/confirm/index.js +1 -1
  54. package/dist/components/data-map/index.js +1 -1
  55. package/dist/components/data-map/logic.js +20 -20
  56. package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
  57. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  58. package/dist/components/date-range-picker/index.js +464 -452
  59. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  60. package/dist/components/duration-select/index.js +10 -10
  61. package/dist/components/duration-select/styled.js +1 -1
  62. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  63. package/dist/components/geometry-picker/edit/index.js +1 -1
  64. package/dist/components/geometry-picker/geometry/index.js +1 -1
  65. package/dist/components/geometry-picker/kml/index.js +11 -11
  66. package/dist/components/geometry-picker/map/logic.js +145 -3656
  67. package/dist/components/geometry-picker/map/style.js +18 -17
  68. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
  69. package/dist/components/heat-map/index.js +1 -1
  70. package/dist/components/heat-map/logic.js +77 -1924
  71. package/dist/components/instance-hierarchy-table/styled.js +18 -16
  72. package/dist/components/map/helpers/mapbox.js +17 -15
  73. package/dist/components/map/helpers/ol.js +386 -27
  74. package/dist/components/map/index.js +11 -10
  75. package/dist/components/map/logic.js +22 -22
  76. package/dist/components/map/styled.js +31 -27
  77. package/dist/components/metric-card/MetricChart.js +9 -9
  78. package/dist/components/metric-card/logic.js +46 -49
  79. package/dist/components/phone-input/index.js +10 -9
  80. package/dist/components/property-mapping/index.js +1 -1
  81. package/dist/components/prr-map/index.js +1 -1
  82. package/dist/components/prr-map/logic.js +27 -26
  83. package/dist/components/range-selector/styled.js +65 -4228
  84. package/dist/components/raster-grid-map/index.js +1 -1
  85. package/dist/components/raster-grid-map/logic.js +60 -57
  86. package/dist/components/simple-pivot-table/index.js +17 -17
  87. package/dist/components/simple-pivot-table/logic.js +67 -76
  88. package/dist/components/sortable-list/index.js +1091 -1264
  89. package/dist/components/template-form/components/property-list/index.js +36 -33
  90. package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
  91. package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
  92. package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
  93. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
  94. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
  95. package/dist/components/tree-select/index.js +16 -16
  96. package/dist/index.esm-UfGMjYOL.js +197 -0
  97. package/dist/main.d.ts +67 -8
  98. package/dist/main.js +176 -175
  99. package/package.json +1 -1
  100. package/dist/AccordionSummary-CJppWeqF.js +0 -781
  101. package/dist/Add-CqcD1PWb.js +0 -403
  102. package/dist/Box-DqUMmZjL.js +0 -31
  103. package/dist/Button-C5yquWAB.js +0 -357
  104. package/dist/ButtonBase-BEF7oTOe.js +0 -887
  105. package/dist/DataProcessor-WXzhvIg6.js +0 -83
  106. package/dist/Delete-BdyYpINH.js +0 -23
  107. package/dist/DialogContent-BvVjD9z3.js +0 -523
  108. package/dist/FormGroup-CpBsIyYR.js +0 -89
  109. package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
  110. package/dist/IconButton-BoGwbvrP.js +0 -184
  111. package/dist/InputLabel-Dd8RrneV.js +0 -341
  112. package/dist/MenuItem-DwqJqzuM.js +0 -233
  113. package/dist/Modal-MUZygjmQ.js +0 -1158
  114. package/dist/Paper-BkQLdsCI.js +0 -582
  115. package/dist/Select-DHUl_uG3.js +0 -3916
  116. package/dist/Source-BSZST_GH.js +0 -4410
  117. package/dist/SwitchBase-DTndTqI8.js +0 -235
  118. package/dist/Text-ChJRuaD8.js +0 -2197
  119. package/dist/TextField-e2oKaUN1.js +0 -669
  120. package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
  121. package/dist/Typography-DgsSLCFC.js +0 -178
  122. package/dist/Vector-BmuhQO4p.js +0 -3606
  123. package/dist/Vector-DfTqQEln.js +0 -1735
  124. package/dist/WKT-2wsDT-nq.js +0 -2310
  125. package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
  126. package/dist/assets/index3.css +0 -1
  127. package/dist/assets/index4.css +0 -1
  128. package/dist/clsx-OuTLNxxd.js +0 -16
  129. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  130. package/dist/createSvgIcon-Ch_cT8az.js +0 -185
  131. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  132. package/dist/debounce-46wSf_lW.js +0 -15
  133. package/dist/dialog-BYRnCztH.js +0 -154
  134. package/dist/formControlState-vgaj2ksH.js +0 -10
  135. package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
  136. package/dist/index-DH6qsPBn.js +0 -153
  137. package/dist/index-e9xTIYWt.js +0 -1934
  138. package/dist/index.esm-BLLrbTzY.js +0 -318
  139. package/dist/math-Bvt2Ubuz.js +0 -704
  140. package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
  141. package/dist/ol-yOE-NV0X.js +0 -7465
  142. package/dist/ownerWindow-wg6foiOE.js +0 -10
  143. package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
  144. package/dist/styled-SoqbyrkW.js +0 -350
  145. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  146. package/dist/useControlled-BYdyS7Pn.js +0 -31
  147. package/dist/useFormControl-CatNKXAi.js +0 -10
  148. package/dist/useId-BW-oWmul.js +0 -19
  149. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  150. package/dist/useSlot-B_Q4vnX5.js +0 -42
@@ -1,10 +0,0 @@
1
- function o(n) {
2
- return n && n.ownerDocument || document;
3
- }
4
- function t(n) {
5
- return o(n).defaultView || window;
6
- }
7
- export {
8
- t as a,
9
- o
10
- };
@@ -1,8 +0,0 @@
1
- function e(o, r) {
2
- return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
3
- return t.__proto__ = n, t;
4
- }, e(o, r);
5
- }
6
- export {
7
- e as _
8
- };
@@ -1,350 +0,0 @@
1
- import { styled as l, Box as h, ButtonBase as U } from "@mui/material";
2
- import { a as i, _ as D } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
3
- import * as d from "react";
4
- import { P as e } from "./index-C__OZmYy.js";
5
- import { c as F } from "./clsx-OuTLNxxd.js";
6
- import { s as f, r as I, g as H, a as G, b as u, f as V, u as W, c as q } from "./generateUtilityClasses-C3ivN9Ie.js";
7
- import { S as L } from "./SwitchBase-DTndTqI8.js";
8
- import { c as z } from "./createSvgIcon-Ch_cT8az.js";
9
- import { jsx as s, jsxs as Z } from "react/jsx-runtime";
10
- import { c as A } from "./createChainedFunction-C0nujS3O.js";
11
- import { r as J } from "./TransitionGroupContext-BDAp2T0O.js";
12
- const P = /* @__PURE__ */ d.createContext(void 0);
13
- process.env.NODE_ENV !== "production" && (P.displayName = "RadioGroupContext");
14
- function K() {
15
- return d.useContext(P);
16
- }
17
- const Q = z(/* @__PURE__ */ s("path", {
18
- d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
19
- }), "RadioButtonUnchecked"), X = z(/* @__PURE__ */ s("path", {
20
- d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"
21
- }), "RadioButtonChecked"), Y = f("span", {
22
- name: "MuiRadioButtonIcon",
23
- shouldForwardProp: I
24
- })({
25
- position: "relative",
26
- display: "flex"
27
- }), oo = f(Q, {
28
- name: "MuiRadioButtonIcon"
29
- })({
30
- // Scale applied to prevent dot misalignment in Safari
31
- transform: "scale(1)"
32
- }), eo = f(X, {
33
- name: "MuiRadioButtonIcon"
34
- })(({
35
- theme: o,
36
- ownerState: a
37
- }) => i({
38
- left: 0,
39
- position: "absolute",
40
- transform: "scale(0)",
41
- transition: o.transitions.create("transform", {
42
- easing: o.transitions.easing.easeIn,
43
- duration: o.transitions.duration.shortest
44
- })
45
- }, a.checked && {
46
- transform: "scale(1)",
47
- transition: o.transitions.create("transform", {
48
- easing: o.transitions.easing.easeOut,
49
- duration: o.transitions.duration.shortest
50
- })
51
- }));
52
- function k(o) {
53
- const {
54
- checked: a = !1,
55
- classes: t = {},
56
- fontSize: r
57
- } = o, n = i({}, o, {
58
- checked: a
59
- });
60
- return /* @__PURE__ */ Z(Y, {
61
- className: t.root,
62
- ownerState: n,
63
- children: [/* @__PURE__ */ s(oo, {
64
- fontSize: r,
65
- className: t.background,
66
- ownerState: n
67
- }), /* @__PURE__ */ s(eo, {
68
- fontSize: r,
69
- className: t.dot,
70
- ownerState: n
71
- })]
72
- });
73
- }
74
- process.env.NODE_ENV !== "production" && (k.propTypes = {
75
- /**
76
- * If `true`, the component is checked.
77
- */
78
- checked: e.bool,
79
- /**
80
- * Override or extend the styles applied to the component.
81
- */
82
- classes: e.object,
83
- /**
84
- * The size of the component.
85
- * `small` is equivalent to the dense radio styling.
86
- */
87
- fontSize: e.oneOf(["small", "medium"])
88
- });
89
- function ao(o) {
90
- return G("MuiRadio", o);
91
- }
92
- const y = H("MuiRadio", ["root", "checked", "disabled", "colorPrimary", "colorSecondary", "sizeSmall"]), to = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"], ro = (o) => {
93
- const {
94
- classes: a,
95
- color: t,
96
- size: r
97
- } = o, n = {
98
- root: ["root", `color${u(t)}`, r !== "medium" && `size${u(r)}`]
99
- };
100
- return i({}, a, q(n, ao, a));
101
- }, no = f(L, {
102
- shouldForwardProp: (o) => I(o) || o === "classes",
103
- name: "MuiRadio",
104
- slot: "Root",
105
- overridesResolver: (o, a) => {
106
- const {
107
- ownerState: t
108
- } = o;
109
- return [a.root, t.size !== "medium" && a[`size${u(t.size)}`], a[`color${u(t.color)}`]];
110
- }
111
- })(({
112
- theme: o,
113
- ownerState: a
114
- }) => i({
115
- color: (o.vars || o).palette.text.secondary
116
- }, !a.disableRipple && {
117
- "&:hover": {
118
- backgroundColor: o.vars ? `rgba(${a.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : V(a.color === "default" ? o.palette.action.active : o.palette[a.color].main, o.palette.action.hoverOpacity),
119
- // Reset on touch devices, it doesn't add specificity
120
- "@media (hover: none)": {
121
- backgroundColor: "transparent"
122
- }
123
- }
124
- }, a.color !== "default" && {
125
- [`&.${y.checked}`]: {
126
- color: (o.vars || o).palette[a.color].main
127
- }
128
- }, {
129
- [`&.${y.disabled}`]: {
130
- color: (o.vars || o).palette.action.disabled
131
- }
132
- }));
133
- function so(o, a) {
134
- return typeof a == "object" && a !== null ? o === a : String(o) === String(a);
135
- }
136
- const v = /* @__PURE__ */ s(k, {
137
- checked: !0
138
- }), x = /* @__PURE__ */ s(k, {}), S = /* @__PURE__ */ d.forwardRef(function(a, t) {
139
- var r, n;
140
- const p = W({
141
- props: a,
142
- name: "MuiRadio"
143
- }), {
144
- checked: w,
145
- checkedIcon: N = v,
146
- color: O = "primary",
147
- icon: $ = x,
148
- name: M,
149
- onChange: j,
150
- size: m = "medium",
151
- className: T
152
- } = p, _ = D(p, to), b = i({}, p, {
153
- color: O,
154
- size: m
155
- }), R = ro(b), c = K();
156
- let C = w;
157
- const E = A(j, c && c.onChange);
158
- let g = M;
159
- return c && (typeof C > "u" && (C = so(c.value, p.value)), typeof g > "u" && (g = c.name)), /* @__PURE__ */ s(no, i({
160
- type: "radio",
161
- icon: /* @__PURE__ */ d.cloneElement($, {
162
- fontSize: (r = x.props.fontSize) != null ? r : m
163
- }),
164
- checkedIcon: /* @__PURE__ */ d.cloneElement(N, {
165
- fontSize: (n = v.props.fontSize) != null ? n : m
166
- }),
167
- ownerState: b,
168
- classes: R,
169
- name: g,
170
- checked: C,
171
- onChange: E,
172
- ref: t,
173
- className: F(R.root, T)
174
- }, _));
175
- });
176
- process.env.NODE_ENV !== "production" && (S.propTypes = {
177
- // ┌────────────────────────────── Warning ──────────────────────────────┐
178
- // │ These PropTypes are generated from the TypeScript type definitions. │
179
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
180
- // └─────────────────────────────────────────────────────────────────────┘
181
- /**
182
- * If `true`, the component is checked.
183
- */
184
- checked: e.bool,
185
- /**
186
- * The icon to display when the component is checked.
187
- * @default <RadioButtonIcon checked />
188
- */
189
- checkedIcon: e.node,
190
- /**
191
- * Override or extend the styles applied to the component.
192
- */
193
- classes: e.object,
194
- /**
195
- * @ignore
196
- */
197
- className: e.string,
198
- /**
199
- * The color of the component.
200
- * It supports both default and custom theme colors, which can be added as shown in the
201
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
202
- * @default 'primary'
203
- */
204
- color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
205
- /**
206
- * If `true`, the component is disabled.
207
- */
208
- disabled: e.bool,
209
- /**
210
- * If `true`, the ripple effect is disabled.
211
- * @default false
212
- */
213
- disableRipple: e.bool,
214
- /**
215
- * The icon to display when the component is unchecked.
216
- * @default <RadioButtonIcon />
217
- */
218
- icon: e.node,
219
- /**
220
- * The id of the `input` element.
221
- */
222
- id: e.string,
223
- /**
224
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
225
- */
226
- inputProps: e.object,
227
- /**
228
- * Pass a ref to the `input` element.
229
- */
230
- inputRef: J,
231
- /**
232
- * Name attribute of the `input` element.
233
- */
234
- name: e.string,
235
- /**
236
- * Callback fired when the state is changed.
237
- *
238
- * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
239
- * You can pull out the new value by accessing `event.target.value` (string).
240
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
241
- */
242
- onChange: e.func,
243
- /**
244
- * If `true`, the `input` element is required.
245
- * @default false
246
- */
247
- required: e.bool,
248
- /**
249
- * The size of the component.
250
- * `small` is equivalent to the dense radio styling.
251
- * @default 'medium'
252
- */
253
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
254
- /**
255
- * The system prop that allows defining system overrides as well as additional CSS styles.
256
- */
257
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
258
- /**
259
- * The value of the component. The DOM API casts this to a string.
260
- */
261
- value: e.any
262
- });
263
- const B = (o) => o !== "itemcolor", ko = l(h, {
264
- name: "HCColorPicker",
265
- slot: "root"
266
- })({
267
- display: "flex"
268
- }), bo = l(S, {
269
- name: "HCColorPicker",
270
- slot: "radio",
271
- shouldForwardProp: B
272
- })(({ itemcolor: o }) => ({
273
- color: o,
274
- padding: 0,
275
- "&.Mui-checked": {
276
- color: o,
277
- "&:before": {
278
- position: "absolute",
279
- display: "block",
280
- content: '" "',
281
- width: 22,
282
- height: 22,
283
- zIndex: 0,
284
- border: "2px solid",
285
- borderColor: o === "#ffffff" ? "#333" : o,
286
- borderRadius: "50%",
287
- opacity: 0.5
288
- }
289
- },
290
- "& .PrivateSwitchBase-input": {
291
- zIndex: 2
292
- },
293
- "& .MuiSvgIcon-root": {
294
- position: "relative",
295
- zIndex: 1
296
- },
297
- ...o === "#ffffff" && {
298
- "&:after": {
299
- position: "absolute",
300
- display: "block",
301
- content: '" "',
302
- width: 18,
303
- height: 18,
304
- backgroundColor: "#333",
305
- zIndex: 0,
306
- borderRadius: "50%"
307
- }
308
- }
309
- })), Ro = l(h, {
310
- name: "HCColorPicker",
311
- slot: "pickerWrapper"
312
- })({
313
- position: "fixed",
314
- marginTop: 25.6,
315
- right: 32,
316
- zIndex: 9999
317
- }), yo = l(U, {
318
- name: "HCColorPicker",
319
- slot: "trigger"
320
- })(({ theme: o }) => ({
321
- display: "flex",
322
- alignItems: "center",
323
- gap: o.spacing(1),
324
- width: "100%",
325
- justifyContent: "flex-start",
326
- padding: o.spacing(0.75, 1),
327
- border: `1px solid ${o.palette.divider}`,
328
- borderRadius: o.shape.borderRadius,
329
- ...o.typography.body2,
330
- color: o.palette.text.primary
331
- })), vo = l(h, {
332
- name: "HCColorPicker",
333
- slot: "swatch",
334
- shouldForwardProp: B
335
- })(({ theme: o, itemcolor: a }) => ({
336
- width: 18,
337
- height: 18,
338
- flexShrink: 0,
339
- borderRadius: o.shape.borderRadius,
340
- border: `1px solid ${o.palette.divider}`,
341
- backgroundColor: a || "transparent"
342
- }));
343
- export {
344
- ko as C,
345
- P as R,
346
- yo as a,
347
- vo as b,
348
- bo as c,
349
- Ro as d
350
- };
@@ -1,36 +0,0 @@
1
- import * as y from "react";
2
- import { a as m } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
3
- function E(r, n) {
4
- var t, e;
5
- return /* @__PURE__ */ y.isValidElement(r) && n.indexOf(
6
- // For server components `muiName` is avaialble in element.type._payload.value.muiName
7
- // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
8
- // eslint-disable-next-line no-underscore-dangle
9
- (t = r.type.muiName) != null ? t : (e = r.type) == null || (e = e._payload) == null || (e = e.value) == null ? void 0 : e.muiName
10
- ) !== -1;
11
- }
12
- function h(r, n) {
13
- if (process.env.NODE_ENV === "production")
14
- return () => null;
15
- const t = n ? m({}, n.propTypes) : null;
16
- return (u) => (o, i, c, f, l, ...d) => {
17
- const p = l || i, s = t == null ? void 0 : t[p];
18
- if (s) {
19
- const a = s(o, i, c, f, l, ...d);
20
- if (a)
21
- return a;
22
- }
23
- return typeof o[i] < "u" && !o[u] ? new Error(`The prop \`${p}\` of \`${r}\` can only be used together with the \`${u}\` prop.`) : null;
24
- };
25
- }
26
- function N(r, n, t, e, u) {
27
- if (process.env.NODE_ENV === "production")
28
- return null;
29
- const o = u || n;
30
- return typeof r[n] < "u" ? new Error(`The prop \`${o}\` is not supported. Please remove it.`) : null;
31
- }
32
- export {
33
- E as i,
34
- h as r,
35
- N as u
36
- };
@@ -1,31 +0,0 @@
1
- import * as t from "react";
2
- function d({
3
- controlled: o,
4
- default: s,
5
- name: n,
6
- state: r = "value"
7
- }) {
8
- const {
9
- current: e
10
- } = t.useRef(o !== void 0), [c, l] = t.useState(s), u = e ? o : c;
11
- if (process.env.NODE_ENV !== "production") {
12
- t.useEffect(() => {
13
- e !== (o !== void 0) && console.error([`MUI: A component is changing the ${e ? "" : "un"}controlled ${r} state of ${n} to be ${e ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
14
- `));
15
- }, [r, n, o]);
16
- const {
17
- current: i
18
- } = t.useRef(s);
19
- t.useEffect(() => {
20
- !e && !Object.is(i, s) && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
21
- `));
22
- }, [JSON.stringify(s)]);
23
- }
24
- const f = t.useCallback((i) => {
25
- e || l(i);
26
- }, []);
27
- return [u, f];
28
- }
29
- export {
30
- d as u
31
- };
@@ -1,10 +0,0 @@
1
- import * as o from "react";
2
- const t = /* @__PURE__ */ o.createContext(void 0);
3
- process.env.NODE_ENV !== "production" && (t.displayName = "FormControlContext");
4
- function e() {
5
- return o.useContext(t);
6
- }
7
- export {
8
- t as F,
9
- e as u
10
- };
@@ -1,19 +0,0 @@
1
- import * as e from "react";
2
- let n = 0;
3
- function l(t) {
4
- const [u, o] = e.useState(t), a = t || u;
5
- return e.useEffect(() => {
6
- u == null && (n += 1, o(`mui-${n}`));
7
- }, [u]), a;
8
- }
9
- const s = e.useId;
10
- function c(t) {
11
- if (s !== void 0) {
12
- const u = s();
13
- return t ?? u;
14
- }
15
- return l(t);
16
- }
17
- export {
18
- c as u
19
- };