@koide-labs/ui 0.1.2 → 0.1.4
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/{InternalBackdrop-BSMKU-hc.js → InternalBackdrop-DDLgWc7D.js} +1 -1
- package/dist/accordion.css +1 -1
- package/dist/alert-dialog.css +1 -1
- package/dist/anchor.css +1 -1
- package/dist/avatar.css +1 -1
- package/dist/badge.css +1 -1
- package/dist/button.css +1 -1
- package/dist/checkbox.css +1 -1
- package/dist/code.css +1 -1
- package/dist/collapse.css +1 -1
- package/dist/command.css +1 -1
- package/dist/components/accordion/accordion.js +54 -54
- package/dist/components/alert-dialog/alert-dialog.js +6 -6
- package/dist/components/anchor/anchor.js +7 -7
- package/dist/components/avatar/avatar.js +13 -13
- package/dist/components/badge/badge.js +17 -17
- package/dist/components/button/button.js +12 -12
- package/dist/components/checkbox/checkbox.js +15 -15
- package/dist/components/code/code.js +32 -32
- package/dist/components/collapse/collapse.js +5 -5
- package/dist/components/command/command.js +4 -4
- package/dist/components/context-menu/context-menu.js +13 -13
- package/dist/components/dialog/dialog.js +2 -2
- package/dist/components/heading/heading.js +9 -9
- package/dist/components/icon/icon.js +7 -7
- package/dist/components/icon-button/icon-button.js +24 -24
- package/dist/components/inline-code/inline-code.js +7 -7
- package/dist/components/input/input.js +1 -1
- package/dist/components/meter/meter.js +10 -10
- package/dist/components/multiline-input/multiline-input.js +1 -1
- package/dist/components/number-input/number-input.js +60 -60
- package/dist/components/password-input/password-input.js +6 -6
- package/dist/components/pill/pill.js +15 -15
- package/dist/components/popover/popover.js +31 -31
- package/dist/components/preview-card/preview-card.js +5 -5
- package/dist/components/radio-group/radio-group.js +109 -109
- package/dist/components/search-bar/search-bar.js +10 -10
- package/dist/components/select/select.js +8 -8
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator.js +1 -1
- package/dist/components/slider/slider.js +114 -114
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/stacked-avatars/stacked-avatars.js +37 -37
- package/dist/components/status-banner/status-banner.js +22 -22
- package/dist/components/surface/surface.js +17 -17
- package/dist/components/switch/switch.js +28 -28
- package/dist/components/tabs/tabs.js +116 -116
- package/dist/components/text/text.js +16 -16
- package/dist/components/timestamp/timestamp.js +2 -2
- package/dist/components/toaster/toaster.js +145 -145
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/view/view.js +40 -40
- package/dist/context-menu.css +1 -1
- package/dist/dialog.css +1 -1
- package/dist/{dialog.module-Pi1eHwli.js → dialog.module-CRiRBcbM.js} +66 -66
- package/dist/{getDisabledMountTransitionStyles-E2x-_lte.js → getDisabledMountTransitionStyles-CyEI2117.js} +1 -1
- package/dist/heading.css +1 -1
- package/dist/icon-button.css +1 -1
- package/dist/icon.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index2.css +1 -1
- package/dist/inline-code.css +1 -1
- package/dist/input.css +1 -1
- package/dist/input.module-CYcyDtrO.js +8 -0
- package/dist/integrations/react-markdown/index.js +26 -26
- package/dist/integrations/twemoji/index.js +1 -1
- package/dist/meter.css +1 -1
- package/dist/number-input.css +1 -1
- package/dist/password-input.css +1 -1
- package/dist/pill.css +1 -1
- package/dist/popover.css +1 -1
- package/dist/preview-card.css +1 -1
- package/dist/radio-group.css +1 -1
- package/dist/{safePolygon-DnkzOIur.js → safePolygon-lAEp2rci.js} +1 -1
- package/dist/search-bar.css +1 -1
- package/dist/select.css +1 -1
- package/dist/{separator-wNYojB9q.js → separator-Or-BDQYZ.js} +13 -13
- package/dist/separator.css +1 -1
- package/dist/slider.css +1 -1
- package/dist/spinner.css +1 -1
- package/dist/stacked-avatars.css +1 -1
- package/dist/status-banner.css +1 -1
- package/dist/styles/core.css +1 -1
- package/dist/surface.css +1 -1
- package/dist/switch.css +1 -1
- package/dist/tabs.css +1 -1
- package/dist/text.css +1 -1
- package/dist/timestamp.css +1 -1
- package/dist/toaster.css +1 -1
- package/dist/{tooltip-DZkByWDR.js → tooltip-JPnUwFFR.js} +6 -6
- package/dist/tooltip.css +1 -1
- package/dist/transitions.css +1 -1
- package/dist/{transitions.module-D9mMAtfI.js → transitions.module-SSNmQfsR.js} +43 -43
- package/dist/{useRole-BD3OL1rr.js → useRole-D1k7CnHQ.js} +1 -1
- package/dist/{useSyncedFloatingRootContext-BB1vwkV-.js → useSyncedFloatingRootContext-CaohymZI.js} +1 -1
- package/dist/{useTypeahead-BiL5IAVb.js → useTypeahead-CSZtonjF.js} +2 -2
- package/dist/view.css +1 -1
- package/dist/view.module-j3ylJCCE.js +6 -0
- package/dist/view2.css +1 -1
- package/package.json +2 -1
- package/dist/components/dialog/dialog.types.js +0 -1
- package/dist/components/icon/icon.types.js +0 -1
- package/dist/components/surface/surface.types.js +0 -1
- package/dist/components/view/view.types.js +0 -1
- package/dist/input.module-zw1dlr1_.js +0 -8
- package/dist/view.module-DlwuNdUj.js +0 -6
|
@@ -4,24 +4,24 @@ import * as o from "react";
|
|
|
4
4
|
import { createContext as Ee, useContext as Ne } from "react";
|
|
5
5
|
import { u as Ve } from "../../useControlled-Du4sJyMj.js";
|
|
6
6
|
import { E as ce, b as de, u as re, N as F, d as fe, m as Pe } from "../../useRenderElement-DngNDu_P.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as G } from "../../useStableCallback-DKZHlUAT.js";
|
|
8
8
|
import { v as pe } from "../../visuallyHidden-CpJ-mhai.js";
|
|
9
9
|
import { u as me } from "../../useBaseUiId-B7WyxtIE.js";
|
|
10
10
|
import { S as Ie } from "../../composite-BwEK5cWH.js";
|
|
11
11
|
import { u as ke, A as Oe, C as Me } from "../../CompositeRoot-CCgh2M64.js";
|
|
12
12
|
import { f as Ce, a as he, u as Re, c as Fe, b as Te } from "../../LabelableContext-Be1u-eFg.js";
|
|
13
|
-
import { f as
|
|
13
|
+
import { f as ye } from "../../formatErrorMessage-BqPuTBN-.js";
|
|
14
14
|
import { u as we } from "../../useValueChanged-MJRmEWz1.js";
|
|
15
|
-
import { f as
|
|
16
|
-
import { View as
|
|
17
|
-
import { Text as
|
|
15
|
+
import { f as qe } from "../../element-u5WgOZX1.js";
|
|
16
|
+
import { View as Ge } from "../view/view.js";
|
|
17
|
+
import { Text as Se } from "../text/text.js";
|
|
18
18
|
import { t as De, u as Be } from "../../useOpenChangeComplete-BHd-N7Ig.js";
|
|
19
|
-
import { u as
|
|
20
|
-
import { u as
|
|
21
|
-
import { c as
|
|
22
|
-
import { u as
|
|
23
|
-
import { u as
|
|
24
|
-
import { u as
|
|
19
|
+
import { u as ze } from "../../useTransitionStatus-CmMyUh74.js";
|
|
20
|
+
import { u as Ke } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
21
|
+
import { c as Le, n as Ue } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
|
|
22
|
+
import { u as Ye } from "../../FieldItemContext-DAvk99to.js";
|
|
23
|
+
import { u as je } from "../../useLabelableId-CX4tcfzK.js";
|
|
24
|
+
import { u as He } from "../../useButton-d3_JgBNr.js";
|
|
25
25
|
import '../../radio-group.css';function Je(e) {
|
|
26
26
|
const {
|
|
27
27
|
render: n,
|
|
@@ -32,31 +32,31 @@ import '../../radio-group.css';function Je(e) {
|
|
|
32
32
|
metadata: r,
|
|
33
33
|
stateAttributesMapping: a,
|
|
34
34
|
tag: s = "div",
|
|
35
|
-
...
|
|
35
|
+
...y
|
|
36
36
|
} = e, {
|
|
37
|
-
compositeProps:
|
|
38
|
-
compositeRef:
|
|
37
|
+
compositeProps: g,
|
|
38
|
+
compositeRef: x
|
|
39
39
|
} = ke({
|
|
40
40
|
metadata: r
|
|
41
41
|
});
|
|
42
42
|
return re(s, e, {
|
|
43
43
|
state: h,
|
|
44
|
-
ref: [...m,
|
|
45
|
-
props: [
|
|
44
|
+
ref: [...m, x],
|
|
45
|
+
props: [g, ...R, y],
|
|
46
46
|
stateAttributesMapping: a
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const be = /* @__PURE__ */ o.createContext({
|
|
50
50
|
legendId: void 0,
|
|
51
51
|
setLegendId: () => {
|
|
52
52
|
},
|
|
53
53
|
disabled: void 0
|
|
54
54
|
});
|
|
55
|
-
process.env.NODE_ENV !== "production" && (
|
|
55
|
+
process.env.NODE_ENV !== "production" && (be.displayName = "FieldsetRootContext");
|
|
56
56
|
function We(e = !1) {
|
|
57
|
-
const n = o.useContext(
|
|
57
|
+
const n = o.useContext(be);
|
|
58
58
|
if (!n && !e)
|
|
59
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." :
|
|
59
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : ye(86));
|
|
60
60
|
return n;
|
|
61
61
|
}
|
|
62
62
|
let le = /* @__PURE__ */ (function(e) {
|
|
@@ -93,10 +93,10 @@ process.env.NODE_ENV !== "production" && (se.displayName = "RadioRootContext");
|
|
|
93
93
|
function Ae() {
|
|
94
94
|
const e = o.useContext(se);
|
|
95
95
|
if (e === void 0)
|
|
96
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." :
|
|
96
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." : ye(52));
|
|
97
97
|
return e;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const ge = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
100
100
|
const {
|
|
101
101
|
render: h,
|
|
102
102
|
className: R,
|
|
@@ -104,17 +104,17 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
104
104
|
readOnly: r = !1,
|
|
105
105
|
required: a = !1,
|
|
106
106
|
value: s,
|
|
107
|
-
inputRef:
|
|
108
|
-
nativeButton:
|
|
109
|
-
id:
|
|
107
|
+
inputRef: y,
|
|
108
|
+
nativeButton: g = !1,
|
|
109
|
+
id: x,
|
|
110
110
|
...E
|
|
111
111
|
} = n, {
|
|
112
112
|
disabled: N,
|
|
113
113
|
readOnly: V,
|
|
114
|
-
required:
|
|
114
|
+
required: S,
|
|
115
115
|
checkedValue: T,
|
|
116
116
|
setCheckedValue: w,
|
|
117
|
-
touched:
|
|
117
|
+
touched: H,
|
|
118
118
|
setTouched: J,
|
|
119
119
|
validation: W,
|
|
120
120
|
registerControlRef: P
|
|
@@ -123,28 +123,28 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
123
123
|
validityData: D,
|
|
124
124
|
setTouched: B,
|
|
125
125
|
setFilled: I,
|
|
126
|
-
state:
|
|
126
|
+
state: z,
|
|
127
127
|
disabled: $
|
|
128
|
-
} = he(), A =
|
|
129
|
-
labelId:
|
|
130
|
-
getDescriptionProps:
|
|
131
|
-
} = Re(), i = $ || A.disabled || N || m, t = V || r,
|
|
132
|
-
|
|
128
|
+
} = he(), A = Ye(), {
|
|
129
|
+
labelId: b,
|
|
130
|
+
getDescriptionProps: _
|
|
131
|
+
} = Re(), i = $ || A.disabled || N || m, t = V || r, v = S || a, c = T === s, k = o.useRef(null), C = o.useRef(null), q = fe(y, C);
|
|
132
|
+
Ke(() => {
|
|
133
133
|
C.current?.checked && I(!0);
|
|
134
134
|
}, [I]);
|
|
135
|
-
const
|
|
136
|
-
id:
|
|
135
|
+
const K = me(), O = je({
|
|
136
|
+
id: x,
|
|
137
137
|
implicit: !1,
|
|
138
138
|
controlRef: k
|
|
139
139
|
}), Q = {
|
|
140
140
|
role: "radio",
|
|
141
141
|
"aria-checked": c,
|
|
142
|
-
"aria-required":
|
|
142
|
+
"aria-required": v || void 0,
|
|
143
143
|
"aria-disabled": i || void 0,
|
|
144
144
|
"aria-readonly": t || void 0,
|
|
145
|
-
"aria-labelledby":
|
|
145
|
+
"aria-labelledby": b,
|
|
146
146
|
[Oe]: c ? "" : void 0,
|
|
147
|
-
id:
|
|
147
|
+
id: K,
|
|
148
148
|
disabled: i,
|
|
149
149
|
onKeyDown(f) {
|
|
150
150
|
f.key === "Enter" && f.preventDefault();
|
|
@@ -153,79 +153,79 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
153
153
|
f.defaultPrevented || i || t || (f.preventDefault(), C.current?.click());
|
|
154
154
|
},
|
|
155
155
|
onFocus(f) {
|
|
156
|
-
f.defaultPrevented || i || t || !
|
|
156
|
+
f.defaultPrevented || i || t || !H || (C.current?.click(), J(!1));
|
|
157
157
|
}
|
|
158
158
|
}, {
|
|
159
159
|
getButtonProps: X,
|
|
160
|
-
buttonRef:
|
|
161
|
-
} =
|
|
160
|
+
buttonRef: L
|
|
161
|
+
} = He({
|
|
162
162
|
disabled: i,
|
|
163
|
-
native:
|
|
163
|
+
native: g
|
|
164
164
|
}), Z = o.useMemo(() => ({
|
|
165
165
|
type: "radio",
|
|
166
|
-
ref:
|
|
166
|
+
ref: q,
|
|
167
167
|
id: O,
|
|
168
168
|
tabIndex: -1,
|
|
169
169
|
style: pe,
|
|
170
170
|
"aria-hidden": !0,
|
|
171
171
|
disabled: i,
|
|
172
172
|
checked: c,
|
|
173
|
-
required:
|
|
173
|
+
required: v,
|
|
174
174
|
readOnly: t,
|
|
175
175
|
onChange(f) {
|
|
176
176
|
if (f.nativeEvent.defaultPrevented || i || t || s === void 0)
|
|
177
177
|
return;
|
|
178
|
-
const ie = Ue
|
|
178
|
+
const ie = Le(Ue, f.nativeEvent);
|
|
179
179
|
ie.isCanceled || (B(!0), l(s !== D.initialValue), I(!0), w(s, ie));
|
|
180
180
|
},
|
|
181
181
|
onFocus() {
|
|
182
182
|
k.current?.focus();
|
|
183
183
|
}
|
|
184
|
-
}), [c, i, O,
|
|
185
|
-
...
|
|
186
|
-
required:
|
|
184
|
+
}), [c, i, O, q, t, v, w, l, B, I, D.initialValue, s]), M = o.useMemo(() => ({
|
|
185
|
+
...z,
|
|
186
|
+
required: v,
|
|
187
187
|
disabled: i,
|
|
188
188
|
readOnly: t,
|
|
189
189
|
checked: c
|
|
190
|
-
}), [
|
|
191
|
-
enabled: !
|
|
190
|
+
}), [z, i, t, c, v]), ee = o.useMemo(() => M, [M]), U = w !== F, Y = [u, P, k, L], d = [Q, _, W?.getValidationProps ?? ce, E, X], j = re("span", n, {
|
|
191
|
+
enabled: !U,
|
|
192
192
|
state: M,
|
|
193
|
-
ref:
|
|
193
|
+
ref: Y,
|
|
194
194
|
props: d,
|
|
195
195
|
stateAttributesMapping: oe
|
|
196
196
|
});
|
|
197
197
|
return /* @__PURE__ */ ne(se.Provider, {
|
|
198
198
|
value: ee,
|
|
199
|
-
children: [
|
|
199
|
+
children: [U ? /* @__PURE__ */ p(Je, {
|
|
200
200
|
tag: "span",
|
|
201
201
|
render: h,
|
|
202
202
|
className: R,
|
|
203
203
|
state: M,
|
|
204
|
-
refs:
|
|
204
|
+
refs: Y,
|
|
205
205
|
props: d,
|
|
206
206
|
stateAttributesMapping: oe
|
|
207
|
-
}) :
|
|
207
|
+
}) : j, /* @__PURE__ */ p("input", {
|
|
208
208
|
...Z
|
|
209
209
|
})]
|
|
210
210
|
});
|
|
211
211
|
});
|
|
212
|
-
process.env.NODE_ENV !== "production" && (
|
|
213
|
-
const
|
|
212
|
+
process.env.NODE_ENV !== "production" && (ge.displayName = "RadioRoot");
|
|
213
|
+
const xe = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
214
214
|
const {
|
|
215
215
|
render: h,
|
|
216
216
|
className: R,
|
|
217
217
|
keepMounted: m = !1,
|
|
218
218
|
...r
|
|
219
219
|
} = n, a = Ae(), s = a.checked, {
|
|
220
|
-
transitionStatus:
|
|
221
|
-
setMounted:
|
|
222
|
-
} =
|
|
220
|
+
transitionStatus: y,
|
|
221
|
+
setMounted: g
|
|
222
|
+
} = ze(s), x = o.useMemo(() => ({
|
|
223
223
|
...a,
|
|
224
|
-
transitionStatus:
|
|
225
|
-
}), [a,
|
|
224
|
+
transitionStatus: y
|
|
225
|
+
}), [a, y]), E = o.useRef(null), N = m || s, V = re("span", n, {
|
|
226
226
|
enabled: N,
|
|
227
227
|
ref: [u, E],
|
|
228
|
-
state:
|
|
228
|
+
state: x,
|
|
229
229
|
props: r,
|
|
230
230
|
stateAttributesMapping: oe
|
|
231
231
|
});
|
|
@@ -233,12 +233,12 @@ const _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
233
233
|
open: s,
|
|
234
234
|
ref: E,
|
|
235
235
|
onComplete() {
|
|
236
|
-
s ||
|
|
236
|
+
s || g(!1);
|
|
237
237
|
}
|
|
238
238
|
}), N ? V : null;
|
|
239
239
|
});
|
|
240
|
-
process.env.NODE_ENV !== "production" && (
|
|
241
|
-
const Qe = [Ie],
|
|
240
|
+
process.env.NODE_ENV !== "production" && (xe.displayName = "RadioIndicator");
|
|
241
|
+
const Qe = [Ie], _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
242
242
|
const {
|
|
243
243
|
render: h,
|
|
244
244
|
className: R,
|
|
@@ -246,17 +246,17 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
246
246
|
readOnly: r,
|
|
247
247
|
required: a,
|
|
248
248
|
onValueChange: s,
|
|
249
|
-
value:
|
|
250
|
-
defaultValue:
|
|
251
|
-
name:
|
|
249
|
+
value: y,
|
|
250
|
+
defaultValue: g,
|
|
251
|
+
name: x,
|
|
252
252
|
inputRef: E,
|
|
253
253
|
id: N,
|
|
254
254
|
...V
|
|
255
255
|
} = n, {
|
|
256
|
-
setTouched:
|
|
256
|
+
setTouched: S,
|
|
257
257
|
setFocused: T,
|
|
258
258
|
shouldValidateOnChange: w,
|
|
259
|
-
validationMode:
|
|
259
|
+
validationMode: H,
|
|
260
260
|
name: J,
|
|
261
261
|
disabled: W,
|
|
262
262
|
state: P,
|
|
@@ -265,17 +265,17 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
265
265
|
setFilled: B,
|
|
266
266
|
validityData: I
|
|
267
267
|
} = he(), {
|
|
268
|
-
labelId:
|
|
268
|
+
labelId: z
|
|
269
269
|
} = Re(), {
|
|
270
270
|
clearErrors: $
|
|
271
|
-
} = Fe(), A = We(!0),
|
|
272
|
-
controlled:
|
|
273
|
-
default:
|
|
271
|
+
} = Fe(), A = We(!0), b = W || m, _ = J ?? x, i = me(N), [t, v] = Ve({
|
|
272
|
+
controlled: y,
|
|
273
|
+
default: g,
|
|
274
274
|
name: "RadioGroup",
|
|
275
275
|
state: "value"
|
|
276
|
-
}), c =
|
|
277
|
-
c(d,
|
|
278
|
-
}), C = o.useRef(null),
|
|
276
|
+
}), c = G(s), k = G((d, j) => {
|
|
277
|
+
c(d, j), !j.isCanceled && v(d);
|
|
278
|
+
}), C = o.useRef(null), q = G((d) => {
|
|
279
279
|
C.current == null && d != null && (C.current = d);
|
|
280
280
|
});
|
|
281
281
|
Te({
|
|
@@ -283,21 +283,21 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
283
283
|
commit: l.commit,
|
|
284
284
|
value: t,
|
|
285
285
|
controlRef: C,
|
|
286
|
-
name:
|
|
286
|
+
name: _,
|
|
287
287
|
getValue: () => t ?? null
|
|
288
288
|
}), we(t, () => {
|
|
289
|
-
$(
|
|
289
|
+
$(_), D(t !== I.initialValue), B(t != null), w() ? l.commit(t) : l.commit(t, !0);
|
|
290
290
|
});
|
|
291
|
-
const [
|
|
292
|
-
|
|
293
|
-
}), X =
|
|
294
|
-
d.key.startsWith("Arrow") && (
|
|
295
|
-
}),
|
|
296
|
-
value:
|
|
291
|
+
const [K, O] = o.useState(!1), Q = G((d) => {
|
|
292
|
+
qe(d.currentTarget, d.relatedTarget) || (S(!0), T(!1), H === "onBlur" && l.commit(t));
|
|
293
|
+
}), X = G((d) => {
|
|
294
|
+
d.key.startsWith("Arrow") && (S(!0), O(!0), T(!0));
|
|
295
|
+
}), L = o.useMemo(() => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), [t]), Z = fe(l.inputRef, E), M = Pe({
|
|
296
|
+
value: L,
|
|
297
297
|
ref: Z,
|
|
298
298
|
id: i,
|
|
299
|
-
name:
|
|
300
|
-
disabled:
|
|
299
|
+
name: L ? _ : void 0,
|
|
300
|
+
disabled: b,
|
|
301
301
|
readOnly: r,
|
|
302
302
|
required: a,
|
|
303
303
|
"aria-labelledby": V["aria-labelledby"] ?? A?.legendId,
|
|
@@ -311,28 +311,28 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
311
311
|
}
|
|
312
312
|
}, l.getInputValidationProps), ee = o.useMemo(() => ({
|
|
313
313
|
...P,
|
|
314
|
-
disabled:
|
|
314
|
+
disabled: b ?? !1,
|
|
315
315
|
required: a ?? !1,
|
|
316
316
|
readOnly: r ?? !1
|
|
317
|
-
}), [P,
|
|
317
|
+
}), [P, b, r, a]), U = o.useMemo(() => ({
|
|
318
318
|
...P,
|
|
319
319
|
checkedValue: t,
|
|
320
|
-
disabled:
|
|
320
|
+
disabled: b,
|
|
321
321
|
validation: l,
|
|
322
|
-
name:
|
|
322
|
+
name: _,
|
|
323
323
|
onValueChange: c,
|
|
324
324
|
readOnly: r,
|
|
325
|
-
registerControlRef:
|
|
325
|
+
registerControlRef: q,
|
|
326
326
|
required: a,
|
|
327
327
|
setCheckedValue: k,
|
|
328
328
|
setTouched: O,
|
|
329
|
-
touched:
|
|
330
|
-
}), [t,
|
|
329
|
+
touched: K
|
|
330
|
+
}), [t, b, l, P, _, c, r, q, a, k, O, K]), Y = {
|
|
331
331
|
role: "radiogroup",
|
|
332
332
|
"aria-required": a || void 0,
|
|
333
|
-
"aria-disabled":
|
|
333
|
+
"aria-disabled": b || void 0,
|
|
334
334
|
"aria-readonly": r || void 0,
|
|
335
|
-
"aria-labelledby":
|
|
335
|
+
"aria-labelledby": z,
|
|
336
336
|
onFocus() {
|
|
337
337
|
T(!0);
|
|
338
338
|
},
|
|
@@ -340,12 +340,12 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
340
340
|
onKeyDownCapture: X
|
|
341
341
|
};
|
|
342
342
|
return /* @__PURE__ */ ne(ae.Provider, {
|
|
343
|
-
value:
|
|
343
|
+
value: U,
|
|
344
344
|
children: [/* @__PURE__ */ p(Me, {
|
|
345
345
|
render: h,
|
|
346
346
|
className: R,
|
|
347
347
|
state: ee,
|
|
348
|
-
props: [
|
|
348
|
+
props: [Y, l.getValidationProps, V],
|
|
349
349
|
refs: [u],
|
|
350
350
|
stateAttributesMapping: Ce,
|
|
351
351
|
enableHomeAndEndKeys: !1,
|
|
@@ -355,21 +355,21 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
355
355
|
})]
|
|
356
356
|
});
|
|
357
357
|
});
|
|
358
|
-
process.env.NODE_ENV !== "production" && (
|
|
358
|
+
process.env.NODE_ENV !== "production" && (_e.displayName = "RadioGroup");
|
|
359
359
|
const Xe = {
|
|
360
|
-
"radio-group": "_radio-
|
|
361
|
-
}, Ze = "
|
|
360
|
+
"radio-group": "_radio-group_1e0b2_3"
|
|
361
|
+
}, Ze = "_radio_xweqz_3", et = "_radio__indicator_xweqz_10", tt = "_radio__label_xweqz_33", te = {
|
|
362
362
|
radio: Ze,
|
|
363
363
|
radio__indicator: et,
|
|
364
364
|
radio__label: tt
|
|
365
|
-
},
|
|
365
|
+
}, ve = Ee("primary");
|
|
366
366
|
function ot({
|
|
367
367
|
color: e = "primary",
|
|
368
368
|
className: n,
|
|
369
369
|
...u
|
|
370
370
|
}) {
|
|
371
|
-
return /* @__PURE__ */ p(
|
|
372
|
-
|
|
371
|
+
return /* @__PURE__ */ p(ve.Provider, { value: e, children: /* @__PURE__ */ p(
|
|
372
|
+
_e,
|
|
373
373
|
{
|
|
374
374
|
className: ue(Xe["radio-group"], n),
|
|
375
375
|
...u
|
|
@@ -382,20 +382,20 @@ function nt({
|
|
|
382
382
|
className: u,
|
|
383
383
|
...h
|
|
384
384
|
}) {
|
|
385
|
-
const R = Ne(
|
|
386
|
-
|
|
385
|
+
const R = Ne(ve), m = e || R || "primary", r = /* @__PURE__ */ p(
|
|
386
|
+
Ge,
|
|
387
387
|
{
|
|
388
|
-
render: /* @__PURE__ */ p(
|
|
388
|
+
render: /* @__PURE__ */ p(ge, { ...h }),
|
|
389
389
|
interactive: "fill-outline",
|
|
390
390
|
color: m,
|
|
391
391
|
className: ue(te.radio, u),
|
|
392
|
-
children: /* @__PURE__ */ p(
|
|
392
|
+
children: /* @__PURE__ */ p(xe, { className: te.radio__indicator })
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
395
|
return n ? /* @__PURE__ */ ne("label", { className: te.radio__label, children: [
|
|
396
396
|
r,
|
|
397
397
|
" ",
|
|
398
|
-
/* @__PURE__ */ p(
|
|
398
|
+
/* @__PURE__ */ p(Se, { children: n })
|
|
399
399
|
] }) : r;
|
|
400
400
|
}
|
|
401
401
|
const Pt = Object.assign(ot, {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { View as s } from "../view/view.js";
|
|
5
|
-
import { Input as
|
|
5
|
+
import { Input as l } from "../input/input.js";
|
|
6
6
|
import { Icon as m } from "../icon/icon.js";
|
|
7
7
|
import { Spinner as t } from "../spinner/spinner.js";
|
|
8
8
|
import { IconButton as h } from "../icon-button/icon-button.js";
|
|
9
9
|
import '../../search-bar.css';const a = {
|
|
10
|
-
"search-bar": "_search-
|
|
11
|
-
"search-bar__input": "_search-
|
|
12
|
-
"search-bar__icon": "_search-
|
|
13
|
-
"search-bar__icon_close": "_search-
|
|
10
|
+
"search-bar": "_search-bar_yrf20_3",
|
|
11
|
+
"search-bar__input": "_search-bar__input_yrf20_8",
|
|
12
|
+
"search-bar__icon": "_search-bar__icon_yrf20_16",
|
|
13
|
+
"search-bar__icon_close": "_search-bar__icon_close_yrf20_28"
|
|
14
14
|
};
|
|
15
|
-
function
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ r(
|
|
15
|
+
function I({ loading: e, onClear: i, className: n, ...c }) {
|
|
16
|
+
return /* @__PURE__ */ o(s, { className: _(a["search-bar"], n), children: [
|
|
17
|
+
/* @__PURE__ */ r(l, { className: a["search-bar__input"], ...c }),
|
|
18
18
|
!e && !c.value ? /* @__PURE__ */ r(s, { className: a["search-bar__icon"], children: /* @__PURE__ */ r(m, { name: "search-line" }) }) : null,
|
|
19
19
|
e ? /* @__PURE__ */ r(t, { className: a["search-bar__icon"] }) : null,
|
|
20
20
|
!e && c.value ? /* @__PURE__ */ r(
|
|
@@ -39,5 +39,5 @@ function j({ loading: e, onClear: i, className: l, ...c }) {
|
|
|
39
39
|
] });
|
|
40
40
|
}
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
I as SearchBar
|
|
43
43
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as C, jsxs as Ae } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as jt } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { textify as $t } from "../../-utils.js";
|
|
5
|
-
import { c as E, S as Yt, l as p, d as Xt, e as Kt, i as Gt, f as Jt, p as xt, t as Zt } from "../../transitions.module-
|
|
5
|
+
import { c as E, S as Yt, l as p, d as Xt, e as Kt, i as Gt, f as Jt, p as xt, t as Zt } from "../../transitions.module-SSNmQfsR.js";
|
|
6
6
|
import { View as Qt } from "../view/view.js";
|
|
7
7
|
import { Icon as Rt } from "../icon/icon.js";
|
|
8
8
|
import { v as en } from "../../visuallyHidden-CpJ-mhai.js";
|
|
@@ -18,9 +18,9 @@ import { u as wt } from "../../useTransitionStatus-CmMyUh74.js";
|
|
|
18
18
|
import { c as xe, n as Mt, f as ln, v as cn, w as an, x as tt } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
|
|
19
19
|
import { u as at, t as At } from "../../useOpenChangeComplete-BHd-N7Ig.js";
|
|
20
20
|
import { u as un } from "../../useValueChanged-MJRmEWz1.js";
|
|
21
|
-
import { u as dn, b as fn, a as pn, I as mn, F as gn } from "../../InternalBackdrop-
|
|
22
|
-
import { u as hn, a as bn, g as yn } from "../../getDisabledMountTransitionStyles-
|
|
23
|
-
import { u as xn, a as Rn } from "../../useTypeahead-
|
|
21
|
+
import { u as dn, b as fn, a as pn, I as mn, F as gn } from "../../InternalBackdrop-DDLgWc7D.js";
|
|
22
|
+
import { u as hn, a as bn, g as yn } from "../../getDisabledMountTransitionStyles-CyEI2117.js";
|
|
23
|
+
import { u as xn, a as Rn } from "../../useTypeahead-CSZtonjF.js";
|
|
24
24
|
import { o as rt } from "../../owner-rKN292Q9.js";
|
|
25
25
|
import { u as _e } from "../../useTimeout-BNni6aw5.js";
|
|
26
26
|
import { u as Tt } from "../../useButton-d3_JgBNr.js";
|
|
@@ -1178,13 +1178,13 @@ const qt = /* @__PURE__ */ n.memo(/* @__PURE__ */ n.forwardRef(function(t, o) {
|
|
|
1178
1178
|
});
|
|
1179
1179
|
}));
|
|
1180
1180
|
process.env.NODE_ENV !== "production" && (qt.displayName = "SelectItemText");
|
|
1181
|
-
const jn = "
|
|
1181
|
+
const jn = "_select__trigger_oft58_3", $n = "_select__list_oft58_22", Yn = "_select__item_oft58_34", Pe = {
|
|
1182
1182
|
select__trigger: jn,
|
|
1183
|
-
"select__trigger-icon": "_select__trigger-
|
|
1183
|
+
"select__trigger-icon": "_select__trigger-icon_oft58_18",
|
|
1184
1184
|
select__list: $n,
|
|
1185
1185
|
select__item: Yn,
|
|
1186
|
-
"select__item-indicator": "_select__item-
|
|
1187
|
-
"select__item-text": "_select__item-
|
|
1186
|
+
"select__item-indicator": "_select__item-indicator_oft58_59",
|
|
1187
|
+
"select__item-text": "_select__item-text_oft58_63"
|
|
1188
1188
|
};
|
|
1189
1189
|
function No({
|
|
1190
1190
|
placeholder: e,
|