@prokodo/ui 0.0.25 → 0.0.26
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.
- package/dist/components/accordion/Accordion.js +65 -65
- package/dist/components/animated/Animated.js +17 -17
- package/dist/components/animatedText/AnimatedText.js +4 -4
- package/dist/components/avatar/Avatar.js +34 -34
- package/dist/components/base-link/BaseLink.js +12 -12
- package/dist/components/button/Button.js +48 -48
- package/dist/components/calendly/Calendly.js +32 -32
- package/dist/components/card/Card.js +107 -107
- package/dist/components/carousel/Carousel.js +106 -106
- package/dist/components/chip/Chip.js +26 -26
- package/dist/components/datePicker/DatePicker.js +37 -37
- package/dist/components/dialog/Dialog.js +82 -82
- package/dist/components/drawer/Drawer.js +48 -48
- package/dist/components/form/Form.js +94 -94
- package/dist/components/form/FormField.js +41 -41
- package/dist/components/form/FormResponse.js +22 -22
- package/dist/components/grid/Grid.js +8 -8
- package/dist/components/grid/GridRow.js +10 -10
- package/dist/components/headline/Headline.js +28 -28
- package/dist/components/icon/Icon.js +4 -4
- package/dist/components/image/Image.js +15 -15
- package/dist/components/image-text/ImageText.js +48 -48
- package/dist/components/input/Input.js +121 -121
- package/dist/components/inputOTP/InputOTP.js +24 -24
- package/dist/components/label/Label.js +26 -26
- package/dist/components/link/Link.js +27 -27
- package/dist/components/list/List.js +75 -75
- package/dist/components/loading/Loading.js +17 -17
- package/dist/components/lottie/Lottie.js +23 -23
- package/dist/components/map/Map.js +19 -19
- package/dist/components/post-item/PostItem.js +73 -73
- package/dist/components/post-item/PostItemAuthor.js +16 -16
- package/dist/components/post-teaser/PostTeaser.js +76 -76
- package/dist/components/post-widget/PostWidget.js +63 -63
- package/dist/components/post-widget-carousel/PostWidgetCarousel.js +67 -67
- package/dist/components/quote/Quote.js +40 -40
- package/dist/components/rich-text/RichText.js +76 -76
- package/dist/components/select/Select.js +92 -92
- package/dist/components/skeleton/Skeleton.js +8 -8
- package/dist/components/slider/Slider.js +50 -50
- package/dist/components/stepper/Stepper.js +41 -41
- package/dist/components/switch/Switch.js +32 -32
- package/dist/components/table/Table.js +31 -31
- package/dist/components/teaser/Teaser.js +55 -55
- package/dist/constants/project.js +1 -1
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Option/Option.js +23 -23
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Portal/Portal.js +22 -22
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Select/Select.js +46 -46
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Slider/Slider.js +141 -141
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Switch/Switch.js +33 -33
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/Popup.js +31 -31
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/SelectProvider.js +14 -14
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -3
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.js +0 -4
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -247
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -35
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +0 -10
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as Q from "react";
|
|
2
2
|
import e from "../../../../../../../_virtual/index.js";
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { isHostComponent as
|
|
5
|
-
import { getSliderUtilityClass as
|
|
6
|
-
import { resolveComponentProps as
|
|
7
|
-
import { useClassNamesOverride as
|
|
8
|
-
import {
|
|
9
|
-
import { useSlider as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
function
|
|
3
|
+
import { clsx as F } from "../../../../../clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
4
|
+
import { isHostComponent as E } from "../utils/isHostComponent.js";
|
|
5
|
+
import { getSliderUtilityClass as ke } from "./sliderClasses.js";
|
|
6
|
+
import { resolveComponentProps as Te } from "../utils/resolveComponentProps.js";
|
|
7
|
+
import { useClassNamesOverride as he } from "../utils/ClassNameConfigurator.js";
|
|
8
|
+
import { jsxs as M, jsx as p } from "react/jsx-runtime";
|
|
9
|
+
import { useSlider as Pe, valueToPercent as W } from "../useSlider/useSlider.js";
|
|
10
|
+
import c from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js";
|
|
11
|
+
import Le from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
|
|
12
|
+
import X from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js";
|
|
13
|
+
function Z(l) {
|
|
14
14
|
return l;
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const Oe = (l) => {
|
|
17
17
|
const {
|
|
18
|
-
disabled:
|
|
19
|
-
dragging:
|
|
20
|
-
marked:
|
|
21
|
-
orientation:
|
|
18
|
+
disabled: m,
|
|
19
|
+
dragging: L,
|
|
20
|
+
marked: O,
|
|
21
|
+
orientation: S,
|
|
22
22
|
track: f
|
|
23
23
|
} = l;
|
|
24
|
-
return
|
|
25
|
-
root: ["root",
|
|
24
|
+
return Le({
|
|
25
|
+
root: ["root", m && "disabled", L && "dragging", O && "marked", S === "vertical" && "vertical", f === "inverted" && "trackInverted", f === !1 && "trackFalse"],
|
|
26
26
|
rail: ["rail"],
|
|
27
27
|
track: ["track"],
|
|
28
28
|
mark: ["mark"],
|
|
@@ -30,202 +30,202 @@ const xe = (l) => {
|
|
|
30
30
|
markLabel: ["markLabel"],
|
|
31
31
|
markLabelActive: ["markLabelActive"],
|
|
32
32
|
valueLabel: ["valueLabel"],
|
|
33
|
-
thumb: ["thumb",
|
|
33
|
+
thumb: ["thumb", m && "disabled"],
|
|
34
34
|
active: ["active"],
|
|
35
35
|
disabled: ["disabled"],
|
|
36
36
|
focusVisible: ["focusVisible"]
|
|
37
|
-
},
|
|
38
|
-
},
|
|
37
|
+
}, he(ke));
|
|
38
|
+
}, Se = /* @__PURE__ */ Q.forwardRef(function(m, L) {
|
|
39
39
|
const {
|
|
40
|
-
"aria-label":
|
|
41
|
-
"aria-valuetext":
|
|
40
|
+
"aria-label": O,
|
|
41
|
+
"aria-valuetext": S,
|
|
42
42
|
"aria-labelledby": f,
|
|
43
|
-
className:
|
|
44
|
-
disableSwap:
|
|
45
|
-
disabled:
|
|
46
|
-
getAriaLabel:
|
|
47
|
-
getAriaValueText:
|
|
48
|
-
marks:
|
|
43
|
+
className: U,
|
|
44
|
+
disableSwap: $ = !1,
|
|
45
|
+
disabled: z = !1,
|
|
46
|
+
getAriaLabel: H,
|
|
47
|
+
getAriaValueText: Y,
|
|
48
|
+
marks: ee = !1,
|
|
49
49
|
max: d = 100,
|
|
50
50
|
min: y = 0,
|
|
51
|
-
name:
|
|
52
|
-
onChange:
|
|
53
|
-
onChangeCommitted:
|
|
54
|
-
orientation:
|
|
55
|
-
shiftStep:
|
|
56
|
-
scale: v =
|
|
57
|
-
step:
|
|
58
|
-
tabIndex:
|
|
51
|
+
name: xe,
|
|
52
|
+
onChange: Ae,
|
|
53
|
+
onChangeCommitted: Ne,
|
|
54
|
+
orientation: ae = "horizontal",
|
|
55
|
+
shiftStep: te = 10,
|
|
56
|
+
scale: v = Z,
|
|
57
|
+
step: re = 1,
|
|
58
|
+
tabIndex: Ve,
|
|
59
59
|
track: g = "normal",
|
|
60
|
-
value:
|
|
61
|
-
valueLabelFormat: b =
|
|
62
|
-
isRtl:
|
|
63
|
-
defaultValue:
|
|
60
|
+
value: Ce,
|
|
61
|
+
valueLabelFormat: b = Z,
|
|
62
|
+
isRtl: le = !1,
|
|
63
|
+
defaultValue: oe,
|
|
64
64
|
slotProps: i = {},
|
|
65
|
-
slots:
|
|
66
|
-
...
|
|
67
|
-
} =
|
|
68
|
-
...
|
|
69
|
-
marks:
|
|
70
|
-
disabled:
|
|
71
|
-
disableSwap:
|
|
72
|
-
isRtl:
|
|
73
|
-
defaultValue:
|
|
65
|
+
slots: u = {},
|
|
66
|
+
...ne
|
|
67
|
+
} = m, q = {
|
|
68
|
+
...m,
|
|
69
|
+
marks: ee,
|
|
70
|
+
disabled: z,
|
|
71
|
+
disableSwap: $,
|
|
72
|
+
isRtl: le,
|
|
73
|
+
defaultValue: oe,
|
|
74
74
|
max: d,
|
|
75
75
|
min: y,
|
|
76
|
-
orientation:
|
|
76
|
+
orientation: ae,
|
|
77
77
|
scale: v,
|
|
78
|
-
step:
|
|
79
|
-
shiftStep:
|
|
78
|
+
step: re,
|
|
79
|
+
shiftStep: te,
|
|
80
80
|
track: g,
|
|
81
81
|
valueLabelFormat: b
|
|
82
82
|
}, {
|
|
83
83
|
axisProps: k,
|
|
84
84
|
getRootProps: se,
|
|
85
|
-
getHiddenInputProps:
|
|
86
|
-
getThumbProps:
|
|
87
|
-
active:
|
|
85
|
+
getHiddenInputProps: ie,
|
|
86
|
+
getThumbProps: ue,
|
|
87
|
+
active: x,
|
|
88
88
|
axis: T,
|
|
89
|
-
range:
|
|
90
|
-
focusedThumbIndex:
|
|
91
|
-
dragging:
|
|
92
|
-
marks:
|
|
89
|
+
range: D,
|
|
90
|
+
focusedThumbIndex: A,
|
|
91
|
+
dragging: ce,
|
|
92
|
+
marks: N,
|
|
93
93
|
values: o,
|
|
94
|
-
trackOffset:
|
|
95
|
-
trackLeap:
|
|
96
|
-
getThumbStyle:
|
|
97
|
-
} =
|
|
98
|
-
...
|
|
99
|
-
rootRef:
|
|
100
|
-
}),
|
|
101
|
-
...
|
|
102
|
-
marked:
|
|
103
|
-
dragging:
|
|
104
|
-
focusedThumbIndex:
|
|
105
|
-
activeThumbIndex:
|
|
106
|
-
},
|
|
107
|
-
elementType:
|
|
94
|
+
trackOffset: me,
|
|
95
|
+
trackLeap: pe,
|
|
96
|
+
getThumbStyle: be
|
|
97
|
+
} = Pe({
|
|
98
|
+
...q,
|
|
99
|
+
rootRef: L
|
|
100
|
+
}), n = {
|
|
101
|
+
...q,
|
|
102
|
+
marked: N.length > 0 && N.some((a) => a.label),
|
|
103
|
+
dragging: ce,
|
|
104
|
+
focusedThumbIndex: A,
|
|
105
|
+
activeThumbIndex: x
|
|
106
|
+
}, s = Oe(n), _ = u.root ?? "span", fe = c({
|
|
107
|
+
elementType: _,
|
|
108
108
|
getSlotProps: se,
|
|
109
109
|
externalSlotProps: i.root,
|
|
110
|
-
externalForwardedProps:
|
|
111
|
-
ownerState:
|
|
112
|
-
className: [
|
|
113
|
-
}),
|
|
114
|
-
elementType: _,
|
|
115
|
-
externalSlotProps: i.rail,
|
|
116
|
-
ownerState: s,
|
|
117
|
-
className: n.rail
|
|
118
|
-
}), B = c.track ?? "span", de = m({
|
|
110
|
+
externalForwardedProps: ne,
|
|
111
|
+
ownerState: n,
|
|
112
|
+
className: [s.root, U]
|
|
113
|
+
}), B = u.rail ?? "span", de = c({
|
|
119
114
|
elementType: B,
|
|
115
|
+
externalSlotProps: i.rail,
|
|
116
|
+
ownerState: n,
|
|
117
|
+
className: s.rail
|
|
118
|
+
}), G = u.track ?? "span", ye = c({
|
|
119
|
+
elementType: G,
|
|
120
120
|
externalSlotProps: i.track,
|
|
121
121
|
additionalProps: {
|
|
122
122
|
style: {
|
|
123
|
-
...k[T].offset(
|
|
124
|
-
...k[T].leap(
|
|
123
|
+
...k[T].offset(me),
|
|
124
|
+
...k[T].leap(pe)
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
-
ownerState:
|
|
128
|
-
className:
|
|
129
|
-
}),
|
|
130
|
-
elementType:
|
|
131
|
-
getSlotProps:
|
|
127
|
+
ownerState: n,
|
|
128
|
+
className: s.track
|
|
129
|
+
}), J = u.thumb ?? "span", V = c({
|
|
130
|
+
elementType: J,
|
|
131
|
+
getSlotProps: ue,
|
|
132
132
|
externalSlotProps: i.thumb,
|
|
133
|
-
ownerState:
|
|
133
|
+
ownerState: n,
|
|
134
134
|
skipResolvingSlotProps: !0
|
|
135
|
-
}), h =
|
|
135
|
+
}), h = u.valueLabel, ve = c({
|
|
136
136
|
elementType: h,
|
|
137
137
|
externalSlotProps: i.valueLabel,
|
|
138
|
-
ownerState:
|
|
139
|
-
}),
|
|
140
|
-
elementType:
|
|
138
|
+
ownerState: n
|
|
139
|
+
}), C = u.mark ?? "span", w = c({
|
|
140
|
+
elementType: C,
|
|
141
141
|
externalSlotProps: i.mark,
|
|
142
|
-
ownerState:
|
|
143
|
-
className:
|
|
144
|
-
}),
|
|
145
|
-
elementType:
|
|
142
|
+
ownerState: n,
|
|
143
|
+
className: s.mark
|
|
144
|
+
}), I = u.markLabel ?? "span", R = c({
|
|
145
|
+
elementType: I,
|
|
146
146
|
externalSlotProps: i.markLabel,
|
|
147
|
-
ownerState:
|
|
148
|
-
}),
|
|
149
|
-
elementType:
|
|
150
|
-
getSlotProps:
|
|
147
|
+
ownerState: n
|
|
148
|
+
}), K = u.input || "input", ge = c({
|
|
149
|
+
elementType: K,
|
|
150
|
+
getSlotProps: ie,
|
|
151
151
|
externalSlotProps: i.input,
|
|
152
|
-
ownerState:
|
|
152
|
+
ownerState: n
|
|
153
153
|
});
|
|
154
|
-
return /* @__PURE__ */
|
|
155
|
-
...
|
|
156
|
-
children: [/* @__PURE__ */
|
|
157
|
-
...fe
|
|
158
|
-
}), /* @__PURE__ */ u.jsx(B, {
|
|
154
|
+
return /* @__PURE__ */ M(_, {
|
|
155
|
+
...fe,
|
|
156
|
+
children: [/* @__PURE__ */ p(B, {
|
|
159
157
|
...de
|
|
160
|
-
}),
|
|
161
|
-
|
|
158
|
+
}), /* @__PURE__ */ p(G, {
|
|
159
|
+
...ye
|
|
160
|
+
}), N.filter((a) => a.value >= y && a.value <= d).map((a, t) => {
|
|
161
|
+
const j = W(a.value, y, d), P = k[T].offset(j);
|
|
162
162
|
let r;
|
|
163
|
-
return g === !1 ? r = o.indexOf(a.value) !== -1 : r = g === "normal" && (
|
|
164
|
-
children: [/* @__PURE__ */
|
|
163
|
+
return g === !1 ? r = o.indexOf(a.value) !== -1 : r = g === "normal" && (D ? a.value >= o[0] && a.value <= o[o.length - 1] : a.value <= o[0]) || g === "inverted" && (D ? a.value <= o[0] || a.value >= o[o.length - 1] : a.value >= o[0]), /* @__PURE__ */ M(Q.Fragment, {
|
|
164
|
+
children: [/* @__PURE__ */ p(C, {
|
|
165
165
|
"data-index": t,
|
|
166
|
-
...
|
|
167
|
-
...!
|
|
166
|
+
...w,
|
|
167
|
+
...!E(C) && {
|
|
168
168
|
markActive: r
|
|
169
169
|
},
|
|
170
170
|
style: {
|
|
171
171
|
...P,
|
|
172
|
-
...
|
|
172
|
+
...w.style
|
|
173
173
|
},
|
|
174
|
-
className:
|
|
175
|
-
}), a.label != null ? /* @__PURE__ */
|
|
174
|
+
className: F(w.className, r && s.markActive)
|
|
175
|
+
}), a.label != null ? /* @__PURE__ */ p(I, {
|
|
176
176
|
"aria-hidden": !0,
|
|
177
177
|
"data-index": t,
|
|
178
178
|
...R,
|
|
179
|
-
...!
|
|
179
|
+
...!E(I) && {
|
|
180
180
|
markLabelActive: r
|
|
181
181
|
},
|
|
182
182
|
style: {
|
|
183
183
|
...P,
|
|
184
184
|
...R.style
|
|
185
185
|
},
|
|
186
|
-
className:
|
|
186
|
+
className: F(s.markLabel, R.className, r && s.markLabelActive),
|
|
187
187
|
children: a.label
|
|
188
188
|
}) : null]
|
|
189
189
|
}, t);
|
|
190
190
|
}), o.map((a, t) => {
|
|
191
|
-
const
|
|
191
|
+
const j = W(a, y, d), P = k[T].offset(j), r = Te(i.thumb, n, {
|
|
192
192
|
index: t,
|
|
193
|
-
focused:
|
|
194
|
-
active:
|
|
193
|
+
focused: A === t,
|
|
194
|
+
active: x === t
|
|
195
195
|
});
|
|
196
|
-
return /* @__PURE__ */
|
|
196
|
+
return /* @__PURE__ */ M(J, {
|
|
197
197
|
"data-index": t,
|
|
198
|
-
...
|
|
198
|
+
...V,
|
|
199
199
|
...r,
|
|
200
|
-
className:
|
|
200
|
+
className: F(s.thumb, V.className, r == null ? void 0 : r.className, x === t && s.active, A === t && s.focusVisible),
|
|
201
201
|
style: {
|
|
202
202
|
...P,
|
|
203
|
-
...
|
|
204
|
-
...
|
|
203
|
+
...be(t),
|
|
204
|
+
...V.style,
|
|
205
205
|
...r == null ? void 0 : r.style
|
|
206
206
|
},
|
|
207
|
-
children: [/* @__PURE__ */
|
|
207
|
+
children: [/* @__PURE__ */ p(K, {
|
|
208
208
|
"data-index": t,
|
|
209
|
-
"aria-label":
|
|
209
|
+
"aria-label": H ? H(t) : O,
|
|
210
210
|
"aria-valuenow": v(a),
|
|
211
211
|
"aria-labelledby": f,
|
|
212
|
-
"aria-valuetext":
|
|
212
|
+
"aria-valuetext": Y ? Y(v(a), t) : S,
|
|
213
213
|
value: o[t],
|
|
214
|
-
...
|
|
215
|
-
}), h ? /* @__PURE__ */
|
|
216
|
-
...!
|
|
214
|
+
...ge
|
|
215
|
+
}), h ? /* @__PURE__ */ p(h, {
|
|
216
|
+
...!E(h) && {
|
|
217
217
|
valueLabelFormat: b,
|
|
218
218
|
index: t,
|
|
219
|
-
disabled:
|
|
219
|
+
disabled: z
|
|
220
220
|
},
|
|
221
|
-
...
|
|
221
|
+
...ve,
|
|
222
222
|
children: typeof b == "function" ? b(v(a), t) : b
|
|
223
223
|
}) : null]
|
|
224
224
|
}, t);
|
|
225
225
|
})]
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
|
-
process.env.NODE_ENV !== "production" && (
|
|
228
|
+
process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
229
229
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
230
230
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
231
231
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -233,7 +233,7 @@ process.env.NODE_ENV !== "production" && (Le.propTypes = {
|
|
|
233
233
|
/**
|
|
234
234
|
* The label of the slider.
|
|
235
235
|
*/
|
|
236
|
-
"aria-label":
|
|
236
|
+
"aria-label": X(e.string, (l) => Array.isArray(l.value || l.defaultValue) && l["aria-label"] != null ? new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.") : null),
|
|
237
237
|
/**
|
|
238
238
|
* The id of the element containing a label for the slider.
|
|
239
239
|
*/
|
|
@@ -241,7 +241,7 @@ process.env.NODE_ENV !== "production" && (Le.propTypes = {
|
|
|
241
241
|
/**
|
|
242
242
|
* A string value that provides a user-friendly name for the current value of the slider.
|
|
243
243
|
*/
|
|
244
|
-
"aria-valuetext":
|
|
244
|
+
"aria-valuetext": X(e.string, (l) => Array.isArray(l.value || l.defaultValue) && l["aria-valuetext"] != null ? new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.") : null),
|
|
245
245
|
/**
|
|
246
246
|
* The default value. Use when the component is not controlled.
|
|
247
247
|
*/
|
|
@@ -410,5 +410,5 @@ process.env.NODE_ENV !== "production" && (Le.propTypes = {
|
|
|
410
410
|
valueLabelFormat: e.oneOfType([e.func, e.string])
|
|
411
411
|
});
|
|
412
412
|
export {
|
|
413
|
-
|
|
413
|
+
Se as Slider
|
|
414
414
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as g from "react";
|
|
2
2
|
import e from "../../../../../../../_virtual/index.js";
|
|
3
|
-
import { useClassNamesOverride as
|
|
3
|
+
import { useClassNamesOverride as j } from "../utils/ClassNameConfigurator.js";
|
|
4
4
|
import { getSwitchUtilityClass as V } from "./switchClasses.js";
|
|
5
|
-
import {
|
|
6
|
-
import { useSwitch as
|
|
7
|
-
import
|
|
5
|
+
import { jsxs as F, jsx as p } from "react/jsx-runtime";
|
|
6
|
+
import { useSwitch as v } from "../useSwitch/useSwitch.js";
|
|
7
|
+
import c from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js";
|
|
8
8
|
import R from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
|
|
9
|
-
const
|
|
9
|
+
const q = (a) => {
|
|
10
10
|
const {
|
|
11
11
|
checked: o,
|
|
12
|
-
disabled:
|
|
12
|
+
disabled: l,
|
|
13
13
|
focusVisible: u,
|
|
14
14
|
readOnly: i
|
|
15
15
|
} = a;
|
|
16
16
|
return R({
|
|
17
|
-
root: ["root", o && "checked",
|
|
17
|
+
root: ["root", o && "checked", l && "disabled", u && "focusVisible", i && "readOnly"],
|
|
18
18
|
thumb: ["thumb"],
|
|
19
19
|
input: ["input"],
|
|
20
20
|
track: ["track"]
|
|
21
|
-
},
|
|
22
|
-
},
|
|
21
|
+
}, j(V));
|
|
22
|
+
}, B = /* @__PURE__ */ g.forwardRef(function(o, l) {
|
|
23
23
|
const {
|
|
24
24
|
checked: u,
|
|
25
25
|
defaultChecked: i,
|
|
26
26
|
disabled: h,
|
|
27
|
-
onBlur:
|
|
28
|
-
onChange:
|
|
29
|
-
onFocus:
|
|
30
|
-
onFocusVisible:
|
|
31
|
-
readOnly:
|
|
32
|
-
required:
|
|
27
|
+
onBlur: E,
|
|
28
|
+
onChange: I,
|
|
29
|
+
onFocus: U,
|
|
30
|
+
onFocusVisible: D,
|
|
31
|
+
readOnly: _,
|
|
32
|
+
required: z,
|
|
33
33
|
slotProps: r = {},
|
|
34
34
|
slots: t = {},
|
|
35
35
|
...y
|
|
@@ -38,51 +38,51 @@ const v = (a) => {
|
|
|
38
38
|
checked: k,
|
|
39
39
|
disabled: T,
|
|
40
40
|
focusVisible: O,
|
|
41
|
-
readOnly:
|
|
42
|
-
} =
|
|
41
|
+
readOnly: S
|
|
42
|
+
} = v(o), s = {
|
|
43
43
|
...o,
|
|
44
44
|
checked: k,
|
|
45
45
|
disabled: T,
|
|
46
46
|
focusVisible: O,
|
|
47
|
-
readOnly:
|
|
48
|
-
}, n =
|
|
47
|
+
readOnly: S
|
|
48
|
+
}, n = q(s), m = t.root ?? "span", x = c({
|
|
49
49
|
elementType: m,
|
|
50
50
|
externalSlotProps: r.root,
|
|
51
51
|
externalForwardedProps: y,
|
|
52
52
|
additionalProps: {
|
|
53
|
-
ref:
|
|
53
|
+
ref: l
|
|
54
54
|
},
|
|
55
55
|
ownerState: s,
|
|
56
56
|
className: n.root
|
|
57
|
-
}), d = t.thumb ?? "span",
|
|
57
|
+
}), d = t.thumb ?? "span", C = c({
|
|
58
58
|
elementType: d,
|
|
59
59
|
externalSlotProps: r.thumb,
|
|
60
60
|
ownerState: s,
|
|
61
61
|
className: n.thumb
|
|
62
|
-
}), f = t.input ?? "input",
|
|
62
|
+
}), f = t.input ?? "input", N = c({
|
|
63
63
|
elementType: f,
|
|
64
64
|
getSlotProps: P,
|
|
65
65
|
externalSlotProps: r.input,
|
|
66
66
|
ownerState: s,
|
|
67
67
|
className: n.input
|
|
68
|
-
}), b = t.track === null ? () => null : t.track ?? "span",
|
|
68
|
+
}), b = t.track === null ? () => null : t.track ?? "span", w = c({
|
|
69
69
|
elementType: b,
|
|
70
70
|
externalSlotProps: r.track,
|
|
71
71
|
ownerState: s,
|
|
72
72
|
className: n.track
|
|
73
73
|
});
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
-
...
|
|
76
|
-
children: [/* @__PURE__ */
|
|
77
|
-
...
|
|
78
|
-
}), /* @__PURE__ */
|
|
79
|
-
...j
|
|
80
|
-
}), /* @__PURE__ */ c.jsx(f, {
|
|
74
|
+
return /* @__PURE__ */ F(m, {
|
|
75
|
+
...x,
|
|
76
|
+
children: [/* @__PURE__ */ p(b, {
|
|
77
|
+
...w
|
|
78
|
+
}), /* @__PURE__ */ p(d, {
|
|
81
79
|
...C
|
|
80
|
+
}), /* @__PURE__ */ p(f, {
|
|
81
|
+
...N
|
|
82
82
|
})]
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
|
-
process.env.NODE_ENV !== "production" && (
|
|
85
|
+
process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
86
86
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
87
87
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
88
88
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -154,5 +154,5 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
154
154
|
})
|
|
155
155
|
});
|
|
156
156
|
export {
|
|
157
|
-
|
|
157
|
+
B as Switch
|
|
158
158
|
};
|
|
@@ -4,16 +4,16 @@ import { useFloating as V, offset as b, flip as q, shift as D } from "../../../.
|
|
|
4
4
|
import { useClassNamesOverride as H } from "../utils/ClassNameConfigurator.js";
|
|
5
5
|
import { getPopupUtilityClass as L } from "./popupClasses.js";
|
|
6
6
|
import { PopupContext as _ } from "./PopupContext.js";
|
|
7
|
-
import {
|
|
7
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
8
8
|
import z from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js";
|
|
9
9
|
import B from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js";
|
|
10
|
-
import { autoUpdate as
|
|
10
|
+
import { autoUpdate as T } from "../../../../../@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
11
11
|
import { useTransitionTrigger as G } from "../useTransition/useTransitionTrigger.js";
|
|
12
12
|
import I from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js";
|
|
13
13
|
import { Portal as J } from "../Portal/Portal.js";
|
|
14
14
|
import { TransitionContext as K } from "../useTransition/TransitionContext.js";
|
|
15
15
|
import Q from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
|
|
16
|
-
import
|
|
16
|
+
import g from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js";
|
|
17
17
|
function W(o) {
|
|
18
18
|
const {
|
|
19
19
|
open: s
|
|
@@ -27,7 +27,7 @@ function X(o) {
|
|
|
27
27
|
}
|
|
28
28
|
const Y = /* @__PURE__ */ P.forwardRef(function(s, p) {
|
|
29
29
|
const {
|
|
30
|
-
anchor:
|
|
30
|
+
anchor: x,
|
|
31
31
|
children: O,
|
|
32
32
|
container: v,
|
|
33
33
|
disablePortal: f = !1,
|
|
@@ -36,31 +36,31 @@ const Y = /* @__PURE__ */ P.forwardRef(function(s, p) {
|
|
|
36
36
|
offset: E = 0,
|
|
37
37
|
open: r = !1,
|
|
38
38
|
placement: m = "bottom",
|
|
39
|
-
slotProps:
|
|
39
|
+
slotProps: w = {},
|
|
40
40
|
slots: l = {},
|
|
41
41
|
strategy: c = "absolute",
|
|
42
|
-
...
|
|
42
|
+
...C
|
|
43
43
|
} = s, {
|
|
44
|
-
refs:
|
|
44
|
+
refs: M,
|
|
45
45
|
elements: n,
|
|
46
|
-
floatingStyles:
|
|
47
|
-
update:
|
|
46
|
+
floatingStyles: A,
|
|
47
|
+
update: d,
|
|
48
48
|
placement: a
|
|
49
49
|
} = V({
|
|
50
50
|
elements: {
|
|
51
|
-
reference: X(
|
|
51
|
+
reference: X(x)
|
|
52
52
|
},
|
|
53
53
|
open: r,
|
|
54
54
|
middleware: R ?? [b(E ?? 0), q(), D()],
|
|
55
55
|
placement: m,
|
|
56
56
|
strategy: c,
|
|
57
|
-
whileElementsMounted: t ? void 0 :
|
|
58
|
-
}),
|
|
57
|
+
whileElementsMounted: t ? void 0 : T
|
|
58
|
+
}), F = z(M.setFloating, p);
|
|
59
59
|
B(() => {
|
|
60
60
|
if (t && r && n.reference && n.floating)
|
|
61
|
-
return
|
|
62
|
-
}, [t, r, n,
|
|
63
|
-
const
|
|
61
|
+
return T(n.reference, n.floating, d);
|
|
62
|
+
}, [t, r, n, d]);
|
|
63
|
+
const u = {
|
|
64
64
|
...s,
|
|
65
65
|
disablePortal: f,
|
|
66
66
|
keepMounted: t,
|
|
@@ -70,33 +70,33 @@ const Y = /* @__PURE__ */ P.forwardRef(function(s, p) {
|
|
|
70
70
|
finalPlacement: a,
|
|
71
71
|
strategy: c
|
|
72
72
|
}, {
|
|
73
|
-
contextValue:
|
|
73
|
+
contextValue: N,
|
|
74
74
|
hasExited: h
|
|
75
|
-
} = G(r),
|
|
75
|
+
} = G(r), S = t && h ? "hidden" : void 0, j = W(u), y = (l == null ? void 0 : l.root) ?? "div", k = I({
|
|
76
76
|
elementType: y,
|
|
77
|
-
externalSlotProps:
|
|
78
|
-
externalForwardedProps:
|
|
79
|
-
ownerState:
|
|
80
|
-
className:
|
|
77
|
+
externalSlotProps: w.root,
|
|
78
|
+
externalForwardedProps: C,
|
|
79
|
+
ownerState: u,
|
|
80
|
+
className: j.root,
|
|
81
81
|
additionalProps: {
|
|
82
|
-
ref:
|
|
82
|
+
ref: F,
|
|
83
83
|
role: "tooltip",
|
|
84
84
|
style: {
|
|
85
|
-
...
|
|
86
|
-
visibility:
|
|
85
|
+
...A,
|
|
86
|
+
visibility: S
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}), U = P.useMemo(() => ({
|
|
90
90
|
placement: a
|
|
91
91
|
}), [a]);
|
|
92
|
-
return t || !h ? /* @__PURE__ */ i
|
|
92
|
+
return t || !h ? /* @__PURE__ */ i(J, {
|
|
93
93
|
disablePortal: f,
|
|
94
94
|
container: v,
|
|
95
|
-
children: /* @__PURE__ */ i
|
|
95
|
+
children: /* @__PURE__ */ i(_.Provider, {
|
|
96
96
|
value: U,
|
|
97
|
-
children: /* @__PURE__ */ i
|
|
98
|
-
value:
|
|
99
|
-
children: /* @__PURE__ */ i
|
|
97
|
+
children: /* @__PURE__ */ i(K.Provider, {
|
|
98
|
+
value: N,
|
|
99
|
+
children: /* @__PURE__ */ i(y, {
|
|
100
100
|
...k,
|
|
101
101
|
children: O
|
|
102
102
|
})
|
|
@@ -114,7 +114,7 @@ process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
|
114
114
|
* or a function that returns either.
|
|
115
115
|
* It's used to set the position of the popup.
|
|
116
116
|
*/
|
|
117
|
-
anchor: e.oneOfType([
|
|
117
|
+
anchor: e.oneOfType([g, e.object, e.func]),
|
|
118
118
|
/**
|
|
119
119
|
* @ignore
|
|
120
120
|
*/
|
|
@@ -123,7 +123,7 @@ process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
|
123
123
|
* An HTML element or function that returns one. The container will have the portal children appended to it.
|
|
124
124
|
* By default, it uses the body of the top-level document object, so it's `document.body` in these cases.
|
|
125
125
|
*/
|
|
126
|
-
container: e.oneOfType([
|
|
126
|
+
container: e.oneOfType([g, e.func]),
|
|
127
127
|
/**
|
|
128
128
|
* If `true`, the popup will be rendered where it is defined, without the use of portals.
|
|
129
129
|
* @default false
|