@versini/ui-togglegroup 0.0.0 → 1.1.0
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/index.d.ts +4 -2
- package/dist/index.js +298 -259
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import * as ToggleGroupRadix from '@radix-ui/react-toggle-group';
|
|
|
3
3
|
import { SpacingProps } from '@versini/ui-private/dist/utilities';
|
|
4
4
|
|
|
5
5
|
declare const TOGGLEGROUP_CLASSNAME = "av-togglegroup";
|
|
6
|
+
declare const TOGGLEGROUP_ITEM_WRAPPER_CLASSNAME = "av-togglegroup-item-wrapper";
|
|
7
|
+
declare const TOGGLEGROUP_ITEM_CLASSNAME = "av-togglegroup-item";
|
|
6
8
|
|
|
7
9
|
type Size = "small" | "medium" | "large";
|
|
8
10
|
type Mode = "dark" | "light" | "system" | "alt-system";
|
|
@@ -26,7 +28,7 @@ type ToggleGroupProps = {
|
|
|
26
28
|
|
|
27
29
|
type ToggleGroupItemProps = ToggleGroupRadix.ToggleGroupItemProps;
|
|
28
30
|
|
|
29
|
-
declare const ToggleGroup: ({ children, value, onValueChange, disabled, mode, focusMode, size, defaultValue, ...otherProps }: ToggleGroupProps) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare const ToggleGroup: ({ children, value, onValueChange, disabled, mode, focusMode, size, defaultValue, spacing, ...otherProps }: ToggleGroupProps) => react_jsx_runtime.JSX.Element;
|
|
30
32
|
declare const ToggleGroupItem: ({ value, disabled }: ToggleGroupItemProps) => react_jsx_runtime.JSX.Element;
|
|
31
33
|
|
|
32
|
-
export { TOGGLEGROUP_CLASSNAME, ToggleGroup, ToggleGroupItem };
|
|
34
|
+
export { TOGGLEGROUP_CLASSNAME, TOGGLEGROUP_ITEM_CLASSNAME, TOGGLEGROUP_ITEM_WRAPPER_CLASSNAME, ToggleGroup, ToggleGroupItem };
|
package/dist/index.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as l, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
3
|
import v, { useContext as ge } from "react";
|
|
4
|
-
import
|
|
4
|
+
import P from "clsx";
|
|
5
5
|
/*!
|
|
6
|
-
@versini/ui-togglegroup
|
|
6
|
+
@versini/ui-togglegroup v1.1.0
|
|
7
7
|
© 2024 gizmette.com
|
|
8
8
|
*/
|
|
9
9
|
try {
|
|
10
10
|
window.__VERSINI_UI_TOGGLEGROUP__ || (window.__VERSINI_UI_TOGGLEGROUP__ = {
|
|
11
|
-
version: "
|
|
12
|
-
buildTime: "10/
|
|
11
|
+
version: "1.1.0",
|
|
12
|
+
buildTime: "10/05/2024 12:04 PM EDT",
|
|
13
13
|
homepage: "https://github.com/aversini/ui-components",
|
|
14
14
|
license: "MIT"
|
|
15
15
|
});
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
|
-
const me = "av-togglegroup";
|
|
18
|
+
const me = "av-togglegroup", ve = "av-togglegroup-item-wrapper", Ce = "av-togglegroup-item";
|
|
19
19
|
function U(e, t = []) {
|
|
20
20
|
let o = [];
|
|
21
|
-
function r(s,
|
|
22
|
-
const
|
|
23
|
-
o = [...o,
|
|
24
|
-
function
|
|
25
|
-
const { scope: C, children:
|
|
26
|
-
return /* @__PURE__ */
|
|
21
|
+
function r(s, c) {
|
|
22
|
+
const u = a.createContext(c), i = o.length;
|
|
23
|
+
o = [...o, c];
|
|
24
|
+
function f(p) {
|
|
25
|
+
const { scope: C, children: I, ...d } = p, h = (C == null ? void 0 : C[e][i]) || u, T = a.useMemo(() => d, Object.values(d));
|
|
26
|
+
return /* @__PURE__ */ l(h.Provider, { value: T, children: I });
|
|
27
27
|
}
|
|
28
28
|
function g(p, C) {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
if (
|
|
29
|
+
const I = (C == null ? void 0 : C[e][i]) || u, d = a.useContext(I);
|
|
30
|
+
if (d) return d;
|
|
31
|
+
if (c !== void 0) return c;
|
|
32
32
|
throw new Error(`\`${p}\` must be used within \`${s}\``);
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return f.displayName = s + "Provider", [f, g];
|
|
35
35
|
}
|
|
36
36
|
const n = () => {
|
|
37
|
-
const s = o.map((
|
|
38
|
-
return function(
|
|
39
|
-
const i = (
|
|
40
|
-
return
|
|
41
|
-
() => ({ [`__scope${e}`]: { ...
|
|
42
|
-
[
|
|
37
|
+
const s = o.map((c) => a.createContext(c));
|
|
38
|
+
return function(u) {
|
|
39
|
+
const i = (u == null ? void 0 : u[e]) || s;
|
|
40
|
+
return a.useMemo(
|
|
41
|
+
() => ({ [`__scope${e}`]: { ...u, [e]: i } }),
|
|
42
|
+
[u, i]
|
|
43
43
|
);
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
-
return n.scopeName = e, [r,
|
|
46
|
+
return n.scopeName = e, [r, he(n, ...t)];
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function he(...e) {
|
|
49
49
|
const t = e[0];
|
|
50
50
|
if (e.length === 1) return t;
|
|
51
51
|
const o = () => {
|
|
@@ -54,66 +54,66 @@ function ve(...e) {
|
|
|
54
54
|
scopeName: n.scopeName
|
|
55
55
|
}));
|
|
56
56
|
return function(s) {
|
|
57
|
-
const
|
|
58
|
-
const p = i(s)[`__scope${
|
|
59
|
-
return { ...
|
|
57
|
+
const c = r.reduce((u, { useScope: i, scopeName: f }) => {
|
|
58
|
+
const p = i(s)[`__scope${f}`];
|
|
59
|
+
return { ...u, ...p };
|
|
60
60
|
}, {});
|
|
61
|
-
return
|
|
61
|
+
return a.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
return o.scopeName = t.scopeName, o;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function be(e, t) {
|
|
67
67
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
68
68
|
}
|
|
69
69
|
function Y(...e) {
|
|
70
|
-
return (t) => e.forEach((o) =>
|
|
70
|
+
return (t) => e.forEach((o) => be(o, t));
|
|
71
71
|
}
|
|
72
72
|
function D(...e) {
|
|
73
|
-
return
|
|
73
|
+
return a.useCallback(Y(...e), e);
|
|
74
74
|
}
|
|
75
|
-
var
|
|
76
|
-
const { children: o, ...r } = e, n =
|
|
75
|
+
var A = a.forwardRef((e, t) => {
|
|
76
|
+
const { children: o, ...r } = e, n = a.Children.toArray(o), s = n.find(Te);
|
|
77
77
|
if (s) {
|
|
78
|
-
const
|
|
79
|
-
return /* @__PURE__ */
|
|
78
|
+
const c = s.props.children, u = n.map((i) => i === s ? a.Children.count(c) > 1 ? a.Children.only(null) : a.isValidElement(c) ? c.props.children : null : i);
|
|
79
|
+
return /* @__PURE__ */ l(L, { ...r, ref: t, children: a.isValidElement(c) ? a.cloneElement(c, void 0, u) : null });
|
|
80
80
|
}
|
|
81
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ l(L, { ...r, ref: t, children: o });
|
|
82
82
|
});
|
|
83
|
-
|
|
84
|
-
var L =
|
|
83
|
+
A.displayName = "Slot";
|
|
84
|
+
var L = a.forwardRef((e, t) => {
|
|
85
85
|
const { children: o, ...r } = e;
|
|
86
|
-
if (
|
|
87
|
-
const n =
|
|
88
|
-
return
|
|
89
|
-
...
|
|
86
|
+
if (a.isValidElement(o)) {
|
|
87
|
+
const n = ye(o);
|
|
88
|
+
return a.cloneElement(o, {
|
|
89
|
+
...Re(r, o.props),
|
|
90
90
|
// @ts-ignore
|
|
91
91
|
ref: t ? Y(t, n) : n
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
return
|
|
94
|
+
return a.Children.count(o) > 1 ? a.Children.only(null) : null;
|
|
95
95
|
});
|
|
96
96
|
L.displayName = "SlotClone";
|
|
97
|
-
var
|
|
98
|
-
function
|
|
99
|
-
return
|
|
97
|
+
var Ie = ({ children: e }) => /* @__PURE__ */ l(pe, { children: e });
|
|
98
|
+
function Te(e) {
|
|
99
|
+
return a.isValidElement(e) && e.type === Ie;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Re(e, t) {
|
|
102
102
|
const o = { ...t };
|
|
103
103
|
for (const r in t) {
|
|
104
104
|
const n = e[r], s = t[r];
|
|
105
|
-
/^on[A-Z]/.test(r) ? n && s ? o[r] = (...
|
|
106
|
-
s(...
|
|
105
|
+
/^on[A-Z]/.test(r) ? n && s ? o[r] = (...u) => {
|
|
106
|
+
s(...u), n(...u);
|
|
107
107
|
} : n && (o[r] = n) : r === "style" ? o[r] = { ...n, ...s } : r === "className" && (o[r] = [n, s].filter(Boolean).join(" "));
|
|
108
108
|
}
|
|
109
109
|
return { ...e, ...o };
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ye(e) {
|
|
112
112
|
var r, n;
|
|
113
113
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
114
114
|
return o ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var Se = [
|
|
117
117
|
"a",
|
|
118
118
|
"button",
|
|
119
119
|
"div",
|
|
@@ -130,10 +130,10 @@ var Te = [
|
|
|
130
130
|
"span",
|
|
131
131
|
"svg",
|
|
132
132
|
"ul"
|
|
133
|
-
],
|
|
134
|
-
const o =
|
|
135
|
-
const { asChild: s, ...
|
|
136
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
133
|
+
], w = Se.reduce((e, t) => {
|
|
134
|
+
const o = a.forwardRef((r, n) => {
|
|
135
|
+
const { asChild: s, ...c } = r, u = s ? A : t;
|
|
136
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(u, { ...c, ref: n });
|
|
137
137
|
});
|
|
138
138
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
139
139
|
}, {});
|
|
@@ -143,220 +143,220 @@ function S(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
|
143
143
|
return t == null ? void 0 : t(n);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function _e(e) {
|
|
147
147
|
const t = e + "CollectionProvider", [o, r] = U(t), [n, s] = o(
|
|
148
148
|
t,
|
|
149
149
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
150
|
-
),
|
|
151
|
-
const { scope:
|
|
152
|
-
return /* @__PURE__ */
|
|
150
|
+
), c = (I) => {
|
|
151
|
+
const { scope: d, children: h } = I, T = v.useRef(null), m = v.useRef(/* @__PURE__ */ new Map()).current;
|
|
152
|
+
return /* @__PURE__ */ l(n, { scope: d, itemMap: m, collectionRef: T, children: h });
|
|
153
153
|
};
|
|
154
|
-
|
|
155
|
-
const
|
|
156
|
-
(
|
|
157
|
-
const { scope: h, children:
|
|
158
|
-
return /* @__PURE__ */
|
|
154
|
+
c.displayName = t;
|
|
155
|
+
const u = e + "CollectionSlot", i = v.forwardRef(
|
|
156
|
+
(I, d) => {
|
|
157
|
+
const { scope: h, children: T } = I, m = s(u, h), b = D(d, m.collectionRef);
|
|
158
|
+
return /* @__PURE__ */ l(A, { ref: b, children: T });
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
|
-
i.displayName =
|
|
162
|
-
const
|
|
163
|
-
(
|
|
164
|
-
const { scope: h, children:
|
|
165
|
-
return v.useEffect(() => (
|
|
161
|
+
i.displayName = u;
|
|
162
|
+
const f = e + "CollectionItemSlot", g = "data-radix-collection-item", p = v.forwardRef(
|
|
163
|
+
(I, d) => {
|
|
164
|
+
const { scope: h, children: T, ...m } = I, b = v.useRef(null), _ = D(d, b), G = s(f, h);
|
|
165
|
+
return v.useEffect(() => (G.itemMap.set(b, { ref: b, ...m }), () => void G.itemMap.delete(b))), /* @__PURE__ */ l(A, { [g]: "", ref: _, children: T });
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
|
-
p.displayName =
|
|
169
|
-
function C(
|
|
170
|
-
const
|
|
168
|
+
p.displayName = f;
|
|
169
|
+
function C(I) {
|
|
170
|
+
const d = s(e + "CollectionConsumer", I);
|
|
171
171
|
return v.useCallback(() => {
|
|
172
|
-
const
|
|
173
|
-
if (!
|
|
174
|
-
const m = Array.from(
|
|
175
|
-
return Array.from(
|
|
176
|
-
(
|
|
172
|
+
const T = d.collectionRef.current;
|
|
173
|
+
if (!T) return [];
|
|
174
|
+
const m = Array.from(T.querySelectorAll(`[${g}]`));
|
|
175
|
+
return Array.from(d.itemMap.values()).sort(
|
|
176
|
+
(G, x) => m.indexOf(G.ref.current) - m.indexOf(x.ref.current)
|
|
177
177
|
);
|
|
178
|
-
}, [
|
|
178
|
+
}, [d.collectionRef, d.itemMap]);
|
|
179
179
|
}
|
|
180
180
|
return [
|
|
181
|
-
{ Provider:
|
|
181
|
+
{ Provider: c, Slot: i, ItemSlot: p },
|
|
182
182
|
C,
|
|
183
183
|
r
|
|
184
184
|
];
|
|
185
185
|
}
|
|
186
|
-
var
|
|
187
|
-
}, Pe =
|
|
188
|
-
}),
|
|
189
|
-
function
|
|
190
|
-
const [t, o] =
|
|
191
|
-
return
|
|
192
|
-
o((r) => r ?? String(
|
|
186
|
+
var Ge = globalThis != null && globalThis.document ? a.useLayoutEffect : () => {
|
|
187
|
+
}, Pe = a.useId || (() => {
|
|
188
|
+
}), Ee = 0;
|
|
189
|
+
function xe(e) {
|
|
190
|
+
const [t, o] = a.useState(Pe());
|
|
191
|
+
return Ge(() => {
|
|
192
|
+
o((r) => r ?? String(Ee++));
|
|
193
193
|
}, [e]), t ? `radix-${t}` : "";
|
|
194
194
|
}
|
|
195
195
|
function $(e) {
|
|
196
|
-
const t =
|
|
197
|
-
return
|
|
196
|
+
const t = a.useRef(e);
|
|
197
|
+
return a.useEffect(() => {
|
|
198
198
|
t.current = e;
|
|
199
|
-
}),
|
|
199
|
+
}), a.useMemo(() => (...o) => {
|
|
200
200
|
var r;
|
|
201
201
|
return (r = t.current) == null ? void 0 : r.call(t, ...o);
|
|
202
202
|
}, []);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function k({
|
|
205
205
|
prop: e,
|
|
206
206
|
defaultProp: t,
|
|
207
207
|
onChange: o = () => {
|
|
208
208
|
}
|
|
209
209
|
}) {
|
|
210
|
-
const [r, n] =
|
|
211
|
-
(
|
|
210
|
+
const [r, n] = we({ defaultProp: t, onChange: o }), s = e !== void 0, c = s ? e : r, u = $(o), i = a.useCallback(
|
|
211
|
+
(f) => {
|
|
212
212
|
if (s) {
|
|
213
|
-
const p = typeof
|
|
214
|
-
p !== e &&
|
|
213
|
+
const p = typeof f == "function" ? f(e) : f;
|
|
214
|
+
p !== e && u(p);
|
|
215
215
|
} else
|
|
216
|
-
n(
|
|
216
|
+
n(f);
|
|
217
217
|
},
|
|
218
|
-
[s, e, n,
|
|
218
|
+
[s, e, n, u]
|
|
219
219
|
);
|
|
220
|
-
return [
|
|
220
|
+
return [c, i];
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function we({
|
|
223
223
|
defaultProp: e,
|
|
224
224
|
onChange: t
|
|
225
225
|
}) {
|
|
226
|
-
const o =
|
|
227
|
-
return
|
|
226
|
+
const o = a.useState(e), [r] = o, n = a.useRef(r), s = $(t);
|
|
227
|
+
return a.useEffect(() => {
|
|
228
228
|
n.current !== r && (s(r), n.current = r);
|
|
229
229
|
}, [r, n, s]), o;
|
|
230
230
|
}
|
|
231
|
-
var
|
|
231
|
+
var Ae = a.createContext(void 0);
|
|
232
232
|
function z(e) {
|
|
233
|
-
const t =
|
|
233
|
+
const t = a.useContext(Ae);
|
|
234
234
|
return e || t || "ltr";
|
|
235
235
|
}
|
|
236
|
-
var O = "rovingFocusGroup.onEntryFocus",
|
|
237
|
-
|
|
238
|
-
[
|
|
239
|
-
), [
|
|
240
|
-
(e, t) => /* @__PURE__ */
|
|
236
|
+
var O = "rovingFocusGroup.onEntryFocus", Fe = { bubbles: !1, cancelable: !0 }, N = "RovingFocusGroup", [V, q, ke] = _e(N), [Ne, Z] = U(
|
|
237
|
+
N,
|
|
238
|
+
[ke]
|
|
239
|
+
), [Me, Oe] = Ne(N), J = a.forwardRef(
|
|
240
|
+
(e, t) => /* @__PURE__ */ l(V.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(V.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(De, { ...e, ref: t }) }) })
|
|
241
241
|
);
|
|
242
|
-
J.displayName =
|
|
243
|
-
var
|
|
242
|
+
J.displayName = N;
|
|
243
|
+
var De = a.forwardRef((e, t) => {
|
|
244
244
|
const {
|
|
245
245
|
__scopeRovingFocusGroup: o,
|
|
246
246
|
orientation: r,
|
|
247
247
|
loop: n = !1,
|
|
248
248
|
dir: s,
|
|
249
|
-
currentTabStopId:
|
|
250
|
-
defaultCurrentTabStopId:
|
|
249
|
+
currentTabStopId: c,
|
|
250
|
+
defaultCurrentTabStopId: u,
|
|
251
251
|
onCurrentTabStopIdChange: i,
|
|
252
|
-
onEntryFocus:
|
|
252
|
+
onEntryFocus: f,
|
|
253
253
|
preventScrollOnEntryFocus: g = !1,
|
|
254
254
|
...p
|
|
255
|
-
} = e, C =
|
|
256
|
-
prop:
|
|
257
|
-
defaultProp:
|
|
255
|
+
} = e, C = a.useRef(null), I = D(t, C), d = z(s), [h = null, T] = k({
|
|
256
|
+
prop: c,
|
|
257
|
+
defaultProp: u,
|
|
258
258
|
onChange: i
|
|
259
|
-
}), [m,
|
|
260
|
-
return
|
|
261
|
-
const
|
|
262
|
-
if (
|
|
263
|
-
return
|
|
264
|
-
}, [
|
|
265
|
-
|
|
259
|
+
}), [m, b] = a.useState(!1), _ = $(f), G = q(o), x = a.useRef(!1), [ae, K] = a.useState(0);
|
|
260
|
+
return a.useEffect(() => {
|
|
261
|
+
const R = C.current;
|
|
262
|
+
if (R)
|
|
263
|
+
return R.addEventListener(O, _), () => R.removeEventListener(O, _);
|
|
264
|
+
}, [_]), /* @__PURE__ */ l(
|
|
265
|
+
Me,
|
|
266
266
|
{
|
|
267
267
|
scope: o,
|
|
268
268
|
orientation: r,
|
|
269
|
-
dir:
|
|
269
|
+
dir: d,
|
|
270
270
|
loop: n,
|
|
271
271
|
currentTabStopId: h,
|
|
272
|
-
onItemFocus:
|
|
273
|
-
(
|
|
274
|
-
[
|
|
272
|
+
onItemFocus: a.useCallback(
|
|
273
|
+
(R) => T(R),
|
|
274
|
+
[T]
|
|
275
275
|
),
|
|
276
|
-
onItemShiftTab:
|
|
277
|
-
onFocusableItemAdd:
|
|
278
|
-
() => K((
|
|
276
|
+
onItemShiftTab: a.useCallback(() => b(!0), []),
|
|
277
|
+
onFocusableItemAdd: a.useCallback(
|
|
278
|
+
() => K((R) => R + 1),
|
|
279
279
|
[]
|
|
280
280
|
),
|
|
281
|
-
onFocusableItemRemove:
|
|
282
|
-
() => K((
|
|
281
|
+
onFocusableItemRemove: a.useCallback(
|
|
282
|
+
() => K((R) => R - 1),
|
|
283
283
|
[]
|
|
284
284
|
),
|
|
285
|
-
children: /* @__PURE__ */
|
|
286
|
-
|
|
285
|
+
children: /* @__PURE__ */ l(
|
|
286
|
+
w.div,
|
|
287
287
|
{
|
|
288
|
-
tabIndex: m ||
|
|
288
|
+
tabIndex: m || ae === 0 ? -1 : 0,
|
|
289
289
|
"data-orientation": r,
|
|
290
290
|
...p,
|
|
291
|
-
ref:
|
|
291
|
+
ref: I,
|
|
292
292
|
style: { outline: "none", ...e.style },
|
|
293
293
|
onMouseDown: S(e.onMouseDown, () => {
|
|
294
294
|
x.current = !0;
|
|
295
295
|
}),
|
|
296
|
-
onFocus: S(e.onFocus, (
|
|
297
|
-
const
|
|
298
|
-
if (
|
|
299
|
-
const j = new CustomEvent(O,
|
|
300
|
-
if (
|
|
301
|
-
const M =
|
|
296
|
+
onFocus: S(e.onFocus, (R) => {
|
|
297
|
+
const le = !x.current;
|
|
298
|
+
if (R.target === R.currentTarget && le && !m) {
|
|
299
|
+
const j = new CustomEvent(O, Fe);
|
|
300
|
+
if (R.currentTarget.dispatchEvent(j), !j.defaultPrevented) {
|
|
301
|
+
const M = G().filter((y) => y.focusable), ie = M.find((y) => y.active), de = M.find((y) => y.id === h), fe = [ie, de, ...M].filter(
|
|
302
302
|
Boolean
|
|
303
303
|
).map((y) => y.ref.current);
|
|
304
|
-
H(
|
|
304
|
+
H(fe, g);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
x.current = !1;
|
|
308
308
|
}),
|
|
309
|
-
onBlur: S(e.onBlur, () =>
|
|
309
|
+
onBlur: S(e.onBlur, () => b(!1))
|
|
310
310
|
}
|
|
311
311
|
)
|
|
312
312
|
}
|
|
313
313
|
);
|
|
314
|
-
}), Q = "RovingFocusGroupItem", X =
|
|
314
|
+
}), Q = "RovingFocusGroupItem", X = a.forwardRef(
|
|
315
315
|
(e, t) => {
|
|
316
316
|
const {
|
|
317
317
|
__scopeRovingFocusGroup: o,
|
|
318
318
|
focusable: r = !0,
|
|
319
319
|
active: n = !1,
|
|
320
320
|
tabStopId: s,
|
|
321
|
-
...
|
|
322
|
-
} = e,
|
|
323
|
-
return
|
|
321
|
+
...c
|
|
322
|
+
} = e, u = xe(), i = s || u, f = Oe(Q, o), g = f.currentTabStopId === i, p = q(o), { onFocusableItemAdd: C, onFocusableItemRemove: I } = f;
|
|
323
|
+
return a.useEffect(() => {
|
|
324
324
|
if (r)
|
|
325
|
-
return C(), () =>
|
|
326
|
-
}, [r, C,
|
|
325
|
+
return C(), () => I();
|
|
326
|
+
}, [r, C, I]), /* @__PURE__ */ l(
|
|
327
327
|
V.ItemSlot,
|
|
328
328
|
{
|
|
329
329
|
scope: o,
|
|
330
330
|
id: i,
|
|
331
331
|
focusable: r,
|
|
332
332
|
active: n,
|
|
333
|
-
children: /* @__PURE__ */
|
|
334
|
-
|
|
333
|
+
children: /* @__PURE__ */ l(
|
|
334
|
+
w.span,
|
|
335
335
|
{
|
|
336
336
|
tabIndex: g ? 0 : -1,
|
|
337
|
-
"data-orientation":
|
|
338
|
-
...
|
|
337
|
+
"data-orientation": f.orientation,
|
|
338
|
+
...c,
|
|
339
339
|
ref: t,
|
|
340
|
-
onMouseDown: S(e.onMouseDown, (
|
|
341
|
-
r ?
|
|
340
|
+
onMouseDown: S(e.onMouseDown, (d) => {
|
|
341
|
+
r ? f.onItemFocus(i) : d.preventDefault();
|
|
342
342
|
}),
|
|
343
|
-
onFocus: S(e.onFocus, () =>
|
|
344
|
-
onKeyDown: S(e.onKeyDown, (
|
|
345
|
-
if (
|
|
346
|
-
|
|
343
|
+
onFocus: S(e.onFocus, () => f.onItemFocus(i)),
|
|
344
|
+
onKeyDown: S(e.onKeyDown, (d) => {
|
|
345
|
+
if (d.key === "Tab" && d.shiftKey) {
|
|
346
|
+
f.onItemShiftTab();
|
|
347
347
|
return;
|
|
348
348
|
}
|
|
349
|
-
if (
|
|
350
|
-
const h =
|
|
349
|
+
if (d.target !== d.currentTarget) return;
|
|
350
|
+
const h = Ue(d, f.orientation, f.dir);
|
|
351
351
|
if (h !== void 0) {
|
|
352
|
-
if (
|
|
353
|
-
|
|
354
|
-
let m = p().filter((
|
|
352
|
+
if (d.metaKey || d.ctrlKey || d.altKey || d.shiftKey) return;
|
|
353
|
+
d.preventDefault();
|
|
354
|
+
let m = p().filter((b) => b.focusable).map((b) => b.ref.current);
|
|
355
355
|
if (h === "last") m.reverse();
|
|
356
356
|
else if (h === "prev" || h === "next") {
|
|
357
357
|
h === "prev" && m.reverse();
|
|
358
|
-
const
|
|
359
|
-
m =
|
|
358
|
+
const b = m.indexOf(d.currentTarget);
|
|
359
|
+
m = f.loop ? $e(m, b + 1) : m.slice(b + 1);
|
|
360
360
|
}
|
|
361
361
|
setTimeout(() => H(m));
|
|
362
362
|
}
|
|
@@ -368,7 +368,7 @@ var Me = u.forwardRef((e, t) => {
|
|
|
368
368
|
}
|
|
369
369
|
);
|
|
370
370
|
X.displayName = Q;
|
|
371
|
-
var
|
|
371
|
+
var Le = {
|
|
372
372
|
ArrowLeft: "prev",
|
|
373
373
|
ArrowUp: "prev",
|
|
374
374
|
ArrowRight: "next",
|
|
@@ -378,156 +378,156 @@ var Oe = {
|
|
|
378
378
|
PageDown: "last",
|
|
379
379
|
End: "last"
|
|
380
380
|
};
|
|
381
|
-
function
|
|
381
|
+
function Ve(e, t) {
|
|
382
382
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
const r =
|
|
384
|
+
function Ue(e, t, o) {
|
|
385
|
+
const r = Ve(e.key, o);
|
|
386
386
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
387
|
-
return
|
|
387
|
+
return Le[r];
|
|
388
388
|
}
|
|
389
389
|
function H(e, t = !1) {
|
|
390
390
|
const o = document.activeElement;
|
|
391
391
|
for (const r of e)
|
|
392
392
|
if (r === o || (r.focus({ preventScroll: t }), document.activeElement !== o)) return;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function $e(e, t) {
|
|
395
395
|
return e.map((o, r) => e[(t + r) % e.length]);
|
|
396
396
|
}
|
|
397
|
-
var
|
|
398
|
-
const { pressed: o, defaultPressed: r = !1, onPressedChange: n, ...s } = e, [
|
|
397
|
+
var Be = J, Ke = X, je = "Toggle", ee = a.forwardRef((e, t) => {
|
|
398
|
+
const { pressed: o, defaultPressed: r = !1, onPressedChange: n, ...s } = e, [c = !1, u] = k({
|
|
399
399
|
prop: o,
|
|
400
400
|
onChange: n,
|
|
401
401
|
defaultProp: r
|
|
402
402
|
});
|
|
403
|
-
return /* @__PURE__ */
|
|
404
|
-
|
|
403
|
+
return /* @__PURE__ */ l(
|
|
404
|
+
w.button,
|
|
405
405
|
{
|
|
406
406
|
type: "button",
|
|
407
|
-
"aria-pressed":
|
|
408
|
-
"data-state":
|
|
407
|
+
"aria-pressed": c,
|
|
408
|
+
"data-state": c ? "on" : "off",
|
|
409
409
|
"data-disabled": e.disabled ? "" : void 0,
|
|
410
410
|
...s,
|
|
411
411
|
ref: t,
|
|
412
412
|
onClick: S(e.onClick, () => {
|
|
413
|
-
e.disabled ||
|
|
413
|
+
e.disabled || u(!c);
|
|
414
414
|
})
|
|
415
415
|
}
|
|
416
416
|
);
|
|
417
417
|
});
|
|
418
|
-
ee.displayName =
|
|
419
|
-
var
|
|
418
|
+
ee.displayName = je;
|
|
419
|
+
var E = "ToggleGroup", [te, at] = U(E, [
|
|
420
420
|
Z
|
|
421
421
|
]), oe = Z(), B = v.forwardRef((e, t) => {
|
|
422
422
|
const { type: o, ...r } = e;
|
|
423
423
|
if (o === "single")
|
|
424
|
-
return /* @__PURE__ */
|
|
424
|
+
return /* @__PURE__ */ l(We, { ...r, ref: t });
|
|
425
425
|
if (o === "multiple")
|
|
426
|
-
return /* @__PURE__ */
|
|
427
|
-
throw new Error(`Missing prop \`type\` expected on \`${
|
|
426
|
+
return /* @__PURE__ */ l(Ye, { ...r, ref: t });
|
|
427
|
+
throw new Error(`Missing prop \`type\` expected on \`${E}\``);
|
|
428
428
|
});
|
|
429
|
-
B.displayName =
|
|
430
|
-
var [re, ne] = te(
|
|
429
|
+
B.displayName = E;
|
|
430
|
+
var [re, ne] = te(E), We = v.forwardRef((e, t) => {
|
|
431
431
|
const {
|
|
432
432
|
value: o,
|
|
433
433
|
defaultValue: r,
|
|
434
434
|
onValueChange: n = () => {
|
|
435
435
|
},
|
|
436
436
|
...s
|
|
437
|
-
} = e, [
|
|
437
|
+
} = e, [c, u] = k({
|
|
438
438
|
prop: o,
|
|
439
439
|
defaultProp: r,
|
|
440
440
|
onChange: n
|
|
441
441
|
});
|
|
442
|
-
return /* @__PURE__ */
|
|
442
|
+
return /* @__PURE__ */ l(
|
|
443
443
|
re,
|
|
444
444
|
{
|
|
445
445
|
scope: e.__scopeToggleGroup,
|
|
446
446
|
type: "single",
|
|
447
|
-
value:
|
|
448
|
-
onItemActivate:
|
|
449
|
-
onItemDeactivate: v.useCallback(() =>
|
|
450
|
-
children: /* @__PURE__ */
|
|
447
|
+
value: c ? [c] : [],
|
|
448
|
+
onItemActivate: u,
|
|
449
|
+
onItemDeactivate: v.useCallback(() => u(""), [u]),
|
|
450
|
+
children: /* @__PURE__ */ l(se, { ...s, ref: t })
|
|
451
451
|
}
|
|
452
452
|
);
|
|
453
|
-
}),
|
|
453
|
+
}), Ye = v.forwardRef((e, t) => {
|
|
454
454
|
const {
|
|
455
455
|
value: o,
|
|
456
456
|
defaultValue: r,
|
|
457
457
|
onValueChange: n = () => {
|
|
458
458
|
},
|
|
459
459
|
...s
|
|
460
|
-
} = e, [
|
|
460
|
+
} = e, [c = [], u] = k({
|
|
461
461
|
prop: o,
|
|
462
462
|
defaultProp: r,
|
|
463
463
|
onChange: n
|
|
464
464
|
}), i = v.useCallback(
|
|
465
|
-
(g) =>
|
|
466
|
-
[
|
|
467
|
-
),
|
|
468
|
-
(g) =>
|
|
469
|
-
[
|
|
465
|
+
(g) => u((p = []) => [...p, g]),
|
|
466
|
+
[u]
|
|
467
|
+
), f = v.useCallback(
|
|
468
|
+
(g) => u((p = []) => p.filter((C) => C !== g)),
|
|
469
|
+
[u]
|
|
470
470
|
);
|
|
471
|
-
return /* @__PURE__ */
|
|
471
|
+
return /* @__PURE__ */ l(
|
|
472
472
|
re,
|
|
473
473
|
{
|
|
474
474
|
scope: e.__scopeToggleGroup,
|
|
475
475
|
type: "multiple",
|
|
476
|
-
value:
|
|
476
|
+
value: c,
|
|
477
477
|
onItemActivate: i,
|
|
478
|
-
onItemDeactivate:
|
|
479
|
-
children: /* @__PURE__ */
|
|
478
|
+
onItemDeactivate: f,
|
|
479
|
+
children: /* @__PURE__ */ l(se, { ...s, ref: t })
|
|
480
480
|
}
|
|
481
481
|
);
|
|
482
482
|
});
|
|
483
|
-
B.displayName =
|
|
484
|
-
var [
|
|
483
|
+
B.displayName = E;
|
|
484
|
+
var [ze, qe] = te(E), se = v.forwardRef(
|
|
485
485
|
(e, t) => {
|
|
486
486
|
const {
|
|
487
487
|
__scopeToggleGroup: o,
|
|
488
488
|
disabled: r = !1,
|
|
489
489
|
rovingFocus: n = !0,
|
|
490
490
|
orientation: s,
|
|
491
|
-
dir:
|
|
492
|
-
loop:
|
|
491
|
+
dir: c,
|
|
492
|
+
loop: u = !0,
|
|
493
493
|
...i
|
|
494
|
-
} = e,
|
|
495
|
-
return /* @__PURE__ */
|
|
496
|
-
|
|
494
|
+
} = e, f = oe(o), g = z(c), p = { role: "group", dir: g, ...i };
|
|
495
|
+
return /* @__PURE__ */ l(ze, { scope: o, rovingFocus: n, disabled: r, children: n ? /* @__PURE__ */ l(
|
|
496
|
+
Be,
|
|
497
497
|
{
|
|
498
498
|
asChild: !0,
|
|
499
|
-
...
|
|
499
|
+
...f,
|
|
500
500
|
orientation: s,
|
|
501
501
|
dir: g,
|
|
502
|
-
loop:
|
|
503
|
-
children: /* @__PURE__ */
|
|
502
|
+
loop: u,
|
|
503
|
+
children: /* @__PURE__ */ l(w.div, { ...p, ref: t })
|
|
504
504
|
}
|
|
505
|
-
) : /* @__PURE__ */
|
|
505
|
+
) : /* @__PURE__ */ l(w.div, { ...p, ref: t }) });
|
|
506
506
|
}
|
|
507
|
-
),
|
|
507
|
+
), F = "ToggleGroupItem", ce = v.forwardRef(
|
|
508
508
|
(e, t) => {
|
|
509
|
-
const o = ne(
|
|
510
|
-
return r.rovingFocus ? /* @__PURE__ */
|
|
511
|
-
|
|
509
|
+
const o = ne(F, e.__scopeToggleGroup), r = qe(F, e.__scopeToggleGroup), n = oe(e.__scopeToggleGroup), s = o.value.includes(e.value), c = r.disabled || e.disabled, u = { ...e, pressed: s, disabled: c }, i = v.useRef(null);
|
|
510
|
+
return r.rovingFocus ? /* @__PURE__ */ l(
|
|
511
|
+
Ke,
|
|
512
512
|
{
|
|
513
513
|
asChild: !0,
|
|
514
514
|
...n,
|
|
515
|
-
focusable: !
|
|
515
|
+
focusable: !c,
|
|
516
516
|
active: s,
|
|
517
517
|
ref: i,
|
|
518
|
-
children: /* @__PURE__ */
|
|
518
|
+
children: /* @__PURE__ */ l(W, { ...u, ref: t })
|
|
519
519
|
}
|
|
520
|
-
) : /* @__PURE__ */
|
|
520
|
+
) : /* @__PURE__ */ l(W, { ...u, ref: t });
|
|
521
521
|
}
|
|
522
522
|
);
|
|
523
|
-
ce.displayName =
|
|
523
|
+
ce.displayName = F;
|
|
524
524
|
var W = v.forwardRef(
|
|
525
525
|
(e, t) => {
|
|
526
|
-
const { __scopeToggleGroup: o, value: r, ...n } = e, s = ne(
|
|
527
|
-
return /* @__PURE__ */
|
|
526
|
+
const { __scopeToggleGroup: o, value: r, ...n } = e, s = ne(F, o), c = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, u = s.type === "single" ? c : void 0;
|
|
527
|
+
return /* @__PURE__ */ l(
|
|
528
528
|
ee,
|
|
529
529
|
{
|
|
530
|
-
...
|
|
530
|
+
...u,
|
|
531
531
|
...n,
|
|
532
532
|
ref: t,
|
|
533
533
|
onPressedChange: (i) => {
|
|
@@ -536,84 +536,123 @@ var W = v.forwardRef(
|
|
|
536
536
|
}
|
|
537
537
|
);
|
|
538
538
|
}
|
|
539
|
-
),
|
|
539
|
+
), Ze = B, Je = ce;
|
|
540
540
|
const ue = v.createContext({
|
|
541
541
|
size: "medium",
|
|
542
542
|
focusMode: "system",
|
|
543
543
|
mode: "system"
|
|
544
|
-
}),
|
|
544
|
+
}), Qe = (e) => {
|
|
545
|
+
let t = "";
|
|
546
|
+
if (typeof e == "number" || typeof e == "string")
|
|
547
|
+
t = "m-" + e;
|
|
548
|
+
else {
|
|
549
|
+
const o = [];
|
|
550
|
+
(e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
|
|
551
|
+
}
|
|
552
|
+
return t;
|
|
553
|
+
}, Xe = ({ focusMode: e }) => P("focus:outline", "focus:outline-2", "focus:outline-offset", {
|
|
545
554
|
"focus:outline-focus-light": e === "light",
|
|
546
555
|
"focus:outline-focus-dark": e === "dark",
|
|
547
556
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
548
557
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
549
|
-
}),
|
|
558
|
+
}), He = ({ mode: e }) => P({
|
|
550
559
|
"data-[state=on]:bg-surface-medium": e === "dark",
|
|
551
560
|
"data-[state=on]:bg-surface-lightest": e === "light",
|
|
552
561
|
"data-[state=on]:bg-surface-lightest dark:data-[state=on]:bg-surface-medium": e === "system",
|
|
553
562
|
"data-[state=on]:bg-surface-medium dark:data-[state=on]:bg-surface-lightest": e === "alt-system"
|
|
554
|
-
}),
|
|
563
|
+
}), et = ({ size: e }) => P({
|
|
555
564
|
"h-5 px-2": e === "small",
|
|
556
565
|
"h-6 px-3": e === "medium",
|
|
557
566
|
"h-7 px-4": e === "large"
|
|
558
|
-
}),
|
|
567
|
+
}), tt = ({ mode: e }) => P(
|
|
568
|
+
ve,
|
|
569
|
+
"px-1",
|
|
570
|
+
"relative",
|
|
571
|
+
"border-r",
|
|
572
|
+
"last:border-transparent",
|
|
573
|
+
"has-[button[aria-checked='true']]:border-transparent",
|
|
574
|
+
"has-[+_*_button[aria-checked='false']]:border-border-medium",
|
|
575
|
+
{
|
|
576
|
+
"border-surface-light": e === "light",
|
|
577
|
+
"border-surface-darker": e === "dark",
|
|
578
|
+
"border-surface-light dark:border-surface-darker": e === "system",
|
|
579
|
+
"border-surface-darker dark:border-surface-light": e === "alt-system"
|
|
580
|
+
}
|
|
581
|
+
), ot = ({
|
|
559
582
|
focusMode: e,
|
|
560
583
|
mode: t,
|
|
561
584
|
size: o
|
|
562
|
-
}) =>
|
|
563
|
-
|
|
585
|
+
}) => ({
|
|
586
|
+
wrapperClass: tt({ mode: t }),
|
|
587
|
+
itemClass: P(
|
|
588
|
+
Ce,
|
|
589
|
+
"flex items-center justify-center bg-transparent",
|
|
590
|
+
"rounded-sm",
|
|
591
|
+
"transition duration-200 ease",
|
|
592
|
+
et({ size: o }),
|
|
593
|
+
Xe({ focusMode: e }),
|
|
594
|
+
He({ mode: t })
|
|
595
|
+
)
|
|
596
|
+
}), rt = ({
|
|
597
|
+
mode: e,
|
|
598
|
+
spacing: t
|
|
599
|
+
}) => P(
|
|
600
|
+
me,
|
|
601
|
+
Qe(t),
|
|
602
|
+
"inline-flex p-1",
|
|
564
603
|
"rounded-sm",
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
"bg-surface-light text-copy-dark dark:bg-surface-darker dark:text-copy-lighter": e === "system",
|
|
573
|
-
"bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
|
|
574
|
-
}), st = ({
|
|
604
|
+
{
|
|
605
|
+
"bg-surface-light text-copy-dark": e === "light",
|
|
606
|
+
"bg-surface-darker text-copy-lighter": e === "dark",
|
|
607
|
+
"bg-surface-light text-copy-dark dark:bg-surface-darker dark:text-copy-lighter": e === "system",
|
|
608
|
+
"bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
|
|
609
|
+
}
|
|
610
|
+
), lt = ({
|
|
575
611
|
children: e,
|
|
576
612
|
value: t,
|
|
577
613
|
onValueChange: o,
|
|
578
614
|
disabled: r,
|
|
579
615
|
mode: n = "system",
|
|
580
616
|
focusMode: s = "system",
|
|
581
|
-
size:
|
|
582
|
-
defaultValue:
|
|
583
|
-
|
|
617
|
+
size: c = "medium",
|
|
618
|
+
defaultValue: u,
|
|
619
|
+
spacing: i,
|
|
620
|
+
...f
|
|
584
621
|
}) => {
|
|
585
|
-
const
|
|
586
|
-
return /* @__PURE__ */
|
|
587
|
-
|
|
622
|
+
const g = rt({ mode: n, spacing: i }), p = { size: c, focusMode: s, mode: n };
|
|
623
|
+
return /* @__PURE__ */ l(ue.Provider, { value: p, children: /* @__PURE__ */ l(
|
|
624
|
+
Ze,
|
|
588
625
|
{
|
|
589
626
|
disabled: r,
|
|
590
|
-
className:
|
|
627
|
+
className: g,
|
|
591
628
|
value: t,
|
|
592
|
-
defaultValue:
|
|
629
|
+
defaultValue: u,
|
|
593
630
|
onValueChange: o,
|
|
594
|
-
...
|
|
631
|
+
...f,
|
|
595
632
|
type: "single",
|
|
596
633
|
children: e
|
|
597
634
|
}
|
|
598
635
|
) });
|
|
599
|
-
},
|
|
600
|
-
const { size: o, focusMode: r, mode: n } = ge(ue), s =
|
|
636
|
+
}, it = ({ value: e, disabled: t }) => {
|
|
637
|
+
const { size: o, focusMode: r, mode: n } = ge(ue), { itemClass: s, wrapperClass: c } = ot({
|
|
601
638
|
focusMode: r,
|
|
602
639
|
mode: n,
|
|
603
640
|
size: o
|
|
604
641
|
});
|
|
605
|
-
return /* @__PURE__ */
|
|
606
|
-
|
|
642
|
+
return /* @__PURE__ */ l("div", { className: c, children: /* @__PURE__ */ l(
|
|
643
|
+
Je,
|
|
607
644
|
{
|
|
608
645
|
disabled: t,
|
|
609
646
|
className: s,
|
|
610
647
|
value: e,
|
|
611
648
|
children: e
|
|
612
649
|
}
|
|
613
|
-
);
|
|
650
|
+
) });
|
|
614
651
|
};
|
|
615
652
|
export {
|
|
616
653
|
me as TOGGLEGROUP_CLASSNAME,
|
|
617
|
-
|
|
618
|
-
|
|
654
|
+
Ce as TOGGLEGROUP_ITEM_CLASSNAME,
|
|
655
|
+
ve as TOGGLEGROUP_ITEM_WRAPPER_CLASSNAME,
|
|
656
|
+
lt as ToggleGroup,
|
|
657
|
+
it as ToggleGroupItem
|
|
619
658
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}@keyframes blink{50%{fill:transparent}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.m-0{margin:0}.m-1{margin:.25rem}.m-10{margin:2.5rem}.m-11{margin:2.75rem}.m-12{margin:3rem}.m-14{margin:3.5rem}.m-16{margin:4rem}.m-2{margin:.5rem}.m-20{margin:5rem}.m-24{margin:6rem}.m-28{margin:7rem}.m-3{margin:.75rem}.m-32{margin:8rem}.m-36{margin:9rem}.m-4{margin:1rem}.m-44{margin:11rem}.m-48{margin:12rem}.m-5{margin:1.25rem}.m-52{margin:13rem}.m-56{margin:14rem}.m-6{margin:1.5rem}.m-60{margin:15rem}.m-64{margin:16rem}.m-7{margin:1.75rem}.m-72{margin:18rem}.m-8{margin:2rem}.m-80{margin:20rem}.m-9{margin:2.25rem}.m-96{margin:24rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-11{margin-bottom:2.75rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-28{margin-bottom:7rem}.mb-3{margin-bottom:.75rem}.mb-32{margin-bottom:8rem}.mb-36{margin-bottom:9rem}.mb-4{margin-bottom:1rem}.mb-44{margin-bottom:11rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.mb-52{margin-bottom:13rem}.mb-56{margin-bottom:14rem}.mb-6{margin-bottom:1.5rem}.mb-60{margin-bottom:15rem}.mb-64{margin-bottom:16rem}.mb-7{margin-bottom:1.75rem}.mb-72{margin-bottom:18rem}.mb-8{margin-bottom:2rem}.mb-80{margin-bottom:20rem}.mb-9{margin-bottom:2.25rem}.mb-96{margin-bottom:24rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-10{margin-left:2.5rem}.ml-11{margin-left:2.75rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-44{margin-left:11rem}.ml-48{margin-left:12rem}.ml-5{margin-left:1.25rem}.ml-52{margin-left:13rem}.ml-56{margin-left:14rem}.ml-6{margin-left:1.5rem}.ml-60{margin-left:15rem}.ml-64{margin-left:16rem}.ml-7{margin-left:1.75rem}.ml-72{margin-left:18rem}.ml-8{margin-left:2rem}.ml-80{margin-left:20rem}.ml-9{margin-left:2.25rem}.ml-96{margin-left:24rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mr-11{margin-right:2.75rem}.mr-12{margin-right:3rem}.mr-14{margin-right:3.5rem}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-20{margin-right:5rem}.mr-24{margin-right:6rem}.mr-28{margin-right:7rem}.mr-3{margin-right:.75rem}.mr-32{margin-right:8rem}.mr-36{margin-right:9rem}.mr-4{margin-right:1rem}.mr-44{margin-right:11rem}.mr-48{margin-right:12rem}.mr-5{margin-right:1.25rem}.mr-52{margin-right:13rem}.mr-56{margin-right:14rem}.mr-6{margin-right:1.5rem}.mr-60{margin-right:15rem}.mr-64{margin-right:16rem}.mr-7{margin-right:1.75rem}.mr-72{margin-right:18rem}.mr-8{margin-right:2rem}.mr-80{margin-right:20rem}.mr-9{margin-right:2.25rem}.mr-96{margin-right:24rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-32{margin-top:8rem}.mt-36{margin-top:9rem}.mt-4{margin-top:1rem}.mt-44{margin-top:11rem}.mt-48{margin-top:12rem}.mt-5{margin-top:1.25rem}.mt-52{margin-top:13rem}.mt-56{margin-top:14rem}.mt-6{margin-top:1.5rem}.mt-60{margin-top:15rem}.mt-64{margin-top:16rem}.mt-7{margin-top:1.75rem}.mt-72{margin-top:18rem}.mt-8{margin-top:2rem}.mt-80{margin-top:20rem}.mt-9{margin-top:2.25rem}.mt-96{margin-top:24rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-sm{border-radius:.125rem}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity)))}.bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity)))}.bg-surface-lightest{--tw-bg-opacity: 1;background-color:var(--av-surface-lightest, rgb(241 245 249 / var(--tw-bg-opacity)))}.bg-surface-medium{--tw-bg-opacity: 1;background-color:var(--av-surface-medium, rgb(100 116 139 / var(--tw-bg-opacity)))}.bg-transparent{background-color:transparent}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity)))}.text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity)))}.outline-focus-dark{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.outline-focus-light{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.first\:ml-0:first-child{margin-left:0}.last\:mr-0:last-child{margin-right:0}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-focus-dark:focus{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.data-\[state\=on\]\:bg-surface-lightest[data-state=on]{--tw-bg-opacity: 1;background-color:var(--av-surface-lightest, rgb(241 245 249 / var(--tw-bg-opacity)))}.data-\[state\=on\]\:bg-surface-medium[data-state=on]{--tw-bg-opacity: 1;background-color:var(--av-surface-medium, rgb(100 116 139 / var(--tw-bg-opacity)))}@media (min-width: 640px){.sm\:bg-black\/\[\.8\]{background-color:#000c}}@media (prefers-color-scheme: dark){.dark\:bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity)))}.dark\:bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity)))}.dark\:text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity)))}.dark\:focus\:outline-focus-dark:focus{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.dark\:focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.dark\:data-\[state\=on\]\:bg-surface-lightest[data-state=on]{--tw-bg-opacity: 1;background-color:var(--av-surface-lightest, rgb(241 245 249 / var(--tw-bg-opacity)))}.dark\:data-\[state\=on\]\:bg-surface-medium[data-state=on]{--tw-bg-opacity: 1;background-color:var(--av-surface-medium, rgb(100 116 139 / var(--tw-bg-opacity)))}}
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}@keyframes blink{50%{fill:transparent}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.relative{position:relative}.m-0{margin:0}.m-1{margin:.25rem}.m-10{margin:2.5rem}.m-11{margin:2.75rem}.m-12{margin:3rem}.m-14{margin:3.5rem}.m-16{margin:4rem}.m-2{margin:.5rem}.m-20{margin:5rem}.m-24{margin:6rem}.m-28{margin:7rem}.m-3{margin:.75rem}.m-32{margin:8rem}.m-36{margin:9rem}.m-4{margin:1rem}.m-44{margin:11rem}.m-48{margin:12rem}.m-5{margin:1.25rem}.m-52{margin:13rem}.m-56{margin:14rem}.m-6{margin:1.5rem}.m-60{margin:15rem}.m-64{margin:16rem}.m-7{margin:1.75rem}.m-72{margin:18rem}.m-8{margin:2rem}.m-80{margin:20rem}.m-9{margin:2.25rem}.m-96{margin:24rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-11{margin-bottom:2.75rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-28{margin-bottom:7rem}.mb-3{margin-bottom:.75rem}.mb-32{margin-bottom:8rem}.mb-36{margin-bottom:9rem}.mb-4{margin-bottom:1rem}.mb-44{margin-bottom:11rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.mb-52{margin-bottom:13rem}.mb-56{margin-bottom:14rem}.mb-6{margin-bottom:1.5rem}.mb-60{margin-bottom:15rem}.mb-64{margin-bottom:16rem}.mb-7{margin-bottom:1.75rem}.mb-72{margin-bottom:18rem}.mb-8{margin-bottom:2rem}.mb-80{margin-bottom:20rem}.mb-9{margin-bottom:2.25rem}.mb-96{margin-bottom:24rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-10{margin-left:2.5rem}.ml-11{margin-left:2.75rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-44{margin-left:11rem}.ml-48{margin-left:12rem}.ml-5{margin-left:1.25rem}.ml-52{margin-left:13rem}.ml-56{margin-left:14rem}.ml-6{margin-left:1.5rem}.ml-60{margin-left:15rem}.ml-64{margin-left:16rem}.ml-7{margin-left:1.75rem}.ml-72{margin-left:18rem}.ml-8{margin-left:2rem}.ml-80{margin-left:20rem}.ml-9{margin-left:2.25rem}.ml-96{margin-left:24rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mr-11{margin-right:2.75rem}.mr-12{margin-right:3rem}.mr-14{margin-right:3.5rem}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-20{margin-right:5rem}.mr-24{margin-right:6rem}.mr-28{margin-right:7rem}.mr-3{margin-right:.75rem}.mr-32{margin-right:8rem}.mr-36{margin-right:9rem}.mr-4{margin-right:1rem}.mr-44{margin-right:11rem}.mr-48{margin-right:12rem}.mr-5{margin-right:1.25rem}.mr-52{margin-right:13rem}.mr-56{margin-right:14rem}.mr-6{margin-right:1.5rem}.mr-60{margin-right:15rem}.mr-64{margin-right:16rem}.mr-7{margin-right:1.75rem}.mr-72{margin-right:18rem}.mr-8{margin-right:2rem}.mr-80{margin-right:20rem}.mr-9{margin-right:2.25rem}.mr-96{margin-right:24rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-32{margin-top:8rem}.mt-36{margin-top:9rem}.mt-4{margin-top:1rem}.mt-44{margin-top:11rem}.mt-48{margin-top:12rem}.mt-5{margin-top:1.25rem}.mt-52{margin-top:13rem}.mt-56{margin-top:14rem}.mt-6{margin-top:1.5rem}.mt-60{margin-top:15rem}.mt-64{margin-top:16rem}.mt-7{margin-top:1.75rem}.mt-72{margin-top:18rem}.mt-8{margin-top:2rem}.mt-80{margin-top:20rem}.mt-9{margin-top:2.25rem}.mt-96{margin-top:24rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-sm{border-radius:.125rem}.border-r{border-right-width:1px}.border-surface-darker{--tw-border-opacity: 1;border-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-border-opacity)))}.border-surface-light{--tw-border-opacity: 1;border-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-border-opacity)))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity)))}.bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity)))}.bg-surface-lightest{--tw-bg-opacity: 1;background-color:var(--av-surface-lightest, rgb(241 245 249 / var(--tw-bg-opacity)))}.bg-surface-medium{--tw-bg-opacity: 1;background-color:var(--av-surface-medium, rgb(100 116 139 / var(--tw-bg-opacity)))}.bg-transparent{background-color:transparent}.p-1{padding:.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity)))}.text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity)))}.outline-focus-dark{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.outline-focus-light{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.last\:border-transparent:last-child{border-color:transparent}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-focus-dark:focus{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.has-\[\+_\*_button\[aria-checked\=\'false\'\]\]\:border-border-medium:has(+* button[aria-checked=false]){--tw-border-opacity: 1;border-color:var(--av-border-medium, rgb(148 163 184 / var(--tw-border-opacity)))}.has-\[button\[aria-checked\=\'true\'\]\]\:border-transparent:has(button[aria-checked=true]){border-color:transparent}.data-\[state\=on\]\:bg-surface-lightest[data-state=on]{--tw-bg-opacity: 1;background-color:var(--av-surface-lightest, rgb(241 245 249 / var(--tw-bg-opacity)))}.data-\[state\=on\]\:bg-surface-medium[data-state=on]{--tw-bg-opacity: 1;background-color:var(--av-surface-medium, rgb(100 116 139 / var(--tw-bg-opacity)))}@media (min-width: 640px){.sm\:bg-black\/\[\.8\]{background-color:#000c}}@media (prefers-color-scheme: dark){.dark\:border-surface-darker{--tw-border-opacity: 1;border-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-border-opacity)))}.dark\:border-surface-light{--tw-border-opacity: 1;border-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-border-opacity)))}.dark\:bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity)))}.dark\:bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity)))}.dark\:text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity)))}.dark\:focus\:outline-focus-dark:focus{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.dark\:focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.dark\:data-\[state\=on\]\:bg-surface-lightest[data-state=on]{--tw-bg-opacity: 1;background-color:var(--av-surface-lightest, rgb(241 245 249 / var(--tw-bg-opacity)))}.dark\:data-\[state\=on\]\:bg-surface-medium[data-state=on]{--tw-bg-opacity: 1;background-color:var(--av-surface-medium, rgb(100 116 139 / var(--tw-bg-opacity)))}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-togglegroup",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"sideEffects": [
|
|
48
48
|
"**/*.css"
|
|
49
49
|
],
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "2a7c8454a274ffb784df97fe9d4c592ccf159034"
|
|
51
51
|
}
|