@versini/ui-togglegroup 1.5.1 → 2.0.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 +6 -4
- package/dist/index.js +185 -208
- package/dist/style.css +1 -1
- package/package.json +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as ToggleGroupRadix from '@radix-ui/react-toggle-group';
|
|
3
|
-
import { SpacingTypes } from '@versini/ui-types';
|
|
4
3
|
|
|
5
4
|
declare const TOGGLEGROUP_CLASSNAME = "av-togglegroup";
|
|
6
5
|
declare const TOGGLEGROUP_ITEM_WRAPPER_CLASSNAME = "av-togglegroup-item-wrapper";
|
|
@@ -23,12 +22,15 @@ type ToggleGroupProps = {
|
|
|
23
22
|
* The size of the component.
|
|
24
23
|
*/
|
|
25
24
|
size?: Size;
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
/**
|
|
26
|
+
* The classes to apply to the component.
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
29
|
+
} & Omit<ToggleGroupRadix.ToggleGroupSingleProps, "type", "defaultValue">;
|
|
28
30
|
|
|
29
31
|
type ToggleGroupItemProps = ToggleGroupRadix.ToggleGroupItemProps;
|
|
30
32
|
|
|
31
|
-
declare const ToggleGroup: ({ children, value, onValueChange, disabled, mode, focusMode, size, defaultValue,
|
|
33
|
+
declare const ToggleGroup: ({ children, value, onValueChange, disabled, mode, focusMode, size, defaultValue, className, ...otherProps }: ToggleGroupProps) => react_jsx_runtime.JSX.Element;
|
|
32
34
|
declare const ToggleGroupItem: ({ value, disabled }: ToggleGroupItemProps) => react_jsx_runtime.JSX.Element;
|
|
33
35
|
|
|
34
36
|
export { TOGGLEGROUP_CLASSNAME, TOGGLEGROUP_ITEM_CLASSNAME, TOGGLEGROUP_ITEM_WRAPPER_CLASSNAME, ToggleGroup, ToggleGroupItem };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as l, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
3
|
import C, { useContext as me } from "react";
|
|
4
|
-
import
|
|
4
|
+
import P from "clsx";
|
|
5
5
|
/*!
|
|
6
|
-
@versini/ui-togglegroup
|
|
6
|
+
@versini/ui-togglegroup v2.0.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: "12/
|
|
11
|
+
version: "2.0.0",
|
|
12
|
+
buildTime: "12/29/2024 04:16 PM EST",
|
|
13
13
|
homepage: "https://github.com/aversini/ui-components",
|
|
14
14
|
license: "MIT"
|
|
15
15
|
});
|
|
@@ -19,28 +19,28 @@ const ve = "av-togglegroup", Ce = "av-togglegroup-item-wrapper", he = "av-toggle
|
|
|
19
19
|
function U(e, t = []) {
|
|
20
20
|
let o = [];
|
|
21
21
|
function r(s, c) {
|
|
22
|
-
const u =
|
|
22
|
+
const u = a.createContext(c), i = o.length;
|
|
23
23
|
o = [...o, c];
|
|
24
|
-
const
|
|
24
|
+
const d = (p) => {
|
|
25
25
|
var g;
|
|
26
|
-
const { scope: h, children: I, ...
|
|
27
|
-
return /* @__PURE__ */
|
|
26
|
+
const { scope: h, children: I, ...f } = p, m = ((g = h == null ? void 0 : h[e]) == null ? void 0 : g[i]) || u, T = a.useMemo(() => f, Object.values(f));
|
|
27
|
+
return /* @__PURE__ */ l(m.Provider, { value: T, children: I });
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
d.displayName = s + "Provider";
|
|
30
30
|
function v(p, h) {
|
|
31
31
|
var m;
|
|
32
|
-
const I = ((m = h == null ? void 0 : h[e]) == null ? void 0 : m[i]) || u,
|
|
33
|
-
if (
|
|
32
|
+
const I = ((m = h == null ? void 0 : h[e]) == null ? void 0 : m[i]) || u, f = a.useContext(I);
|
|
33
|
+
if (f) return f;
|
|
34
34
|
if (c !== void 0) return c;
|
|
35
35
|
throw new Error(`\`${p}\` must be used within \`${s}\``);
|
|
36
36
|
}
|
|
37
|
-
return [
|
|
37
|
+
return [d, v];
|
|
38
38
|
}
|
|
39
39
|
const n = () => {
|
|
40
|
-
const s = o.map((c) =>
|
|
40
|
+
const s = o.map((c) => a.createContext(c));
|
|
41
41
|
return function(u) {
|
|
42
42
|
const i = (u == null ? void 0 : u[e]) || s;
|
|
43
|
-
return
|
|
43
|
+
return a.useMemo(
|
|
44
44
|
() => ({ [`__scope${e}`]: { ...u, [e]: i } }),
|
|
45
45
|
[u, i]
|
|
46
46
|
);
|
|
@@ -57,16 +57,16 @@ function be(...e) {
|
|
|
57
57
|
scopeName: n.scopeName
|
|
58
58
|
}));
|
|
59
59
|
return function(s) {
|
|
60
|
-
const c = r.reduce((u, { useScope: i, scopeName:
|
|
61
|
-
const p = i(s)[`__scope${
|
|
60
|
+
const c = r.reduce((u, { useScope: i, scopeName: d }) => {
|
|
61
|
+
const p = i(s)[`__scope${d}`];
|
|
62
62
|
return { ...u, ...p };
|
|
63
63
|
}, {});
|
|
64
|
-
return
|
|
64
|
+
return a.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
return o.scopeName = t.scopeName, o;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function j(e, t) {
|
|
70
70
|
if (typeof e == "function")
|
|
71
71
|
return e(t);
|
|
72
72
|
e != null && (e.current = t);
|
|
@@ -75,48 +75,48 @@ function z(...e) {
|
|
|
75
75
|
return (t) => {
|
|
76
76
|
let o = !1;
|
|
77
77
|
const r = e.map((n) => {
|
|
78
|
-
const s =
|
|
78
|
+
const s = j(n, t);
|
|
79
79
|
return !o && typeof s == "function" && (o = !0), s;
|
|
80
80
|
});
|
|
81
81
|
if (o)
|
|
82
82
|
return () => {
|
|
83
83
|
for (let n = 0; n < r.length; n++) {
|
|
84
84
|
const s = r[n];
|
|
85
|
-
typeof s == "function" ? s() :
|
|
85
|
+
typeof s == "function" ? s() : j(e[n], null);
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
function D(...e) {
|
|
91
|
-
return
|
|
91
|
+
return a.useCallback(z(...e), e);
|
|
92
92
|
}
|
|
93
|
-
var A =
|
|
94
|
-
const { children: o, ...r } = e, n =
|
|
93
|
+
var A = a.forwardRef((e, t) => {
|
|
94
|
+
const { children: o, ...r } = e, n = a.Children.toArray(o), s = n.find(Te);
|
|
95
95
|
if (s) {
|
|
96
|
-
const c = s.props.children, u = n.map((i) => i === s ?
|
|
97
|
-
return /* @__PURE__ */
|
|
96
|
+
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);
|
|
97
|
+
return /* @__PURE__ */ l(L, { ...r, ref: t, children: a.isValidElement(c) ? a.cloneElement(c, void 0, u) : null });
|
|
98
98
|
}
|
|
99
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ l(L, { ...r, ref: t, children: o });
|
|
100
100
|
});
|
|
101
101
|
A.displayName = "Slot";
|
|
102
|
-
var L =
|
|
102
|
+
var L = a.forwardRef((e, t) => {
|
|
103
103
|
const { children: o, ...r } = e;
|
|
104
|
-
if (
|
|
105
|
-
const n =
|
|
106
|
-
return
|
|
107
|
-
...
|
|
104
|
+
if (a.isValidElement(o)) {
|
|
105
|
+
const n = ye(o);
|
|
106
|
+
return a.cloneElement(o, {
|
|
107
|
+
...Re(r, o.props),
|
|
108
108
|
// @ts-ignore
|
|
109
109
|
ref: t ? z(t, n) : n
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
return
|
|
112
|
+
return a.Children.count(o) > 1 ? a.Children.only(null) : null;
|
|
113
113
|
});
|
|
114
114
|
L.displayName = "SlotClone";
|
|
115
|
-
var Ie = ({ children: e }) => /* @__PURE__ */
|
|
116
|
-
function
|
|
117
|
-
return
|
|
115
|
+
var Ie = ({ children: e }) => /* @__PURE__ */ l(ge, { children: e });
|
|
116
|
+
function Te(e) {
|
|
117
|
+
return a.isValidElement(e) && e.type === Ie;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Re(e, t) {
|
|
120
120
|
const o = { ...t };
|
|
121
121
|
for (const r in t) {
|
|
122
122
|
const n = e[r], s = t[r];
|
|
@@ -126,12 +126,12 @@ function Te(e, t) {
|
|
|
126
126
|
}
|
|
127
127
|
return { ...e, ...o };
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function ye(e) {
|
|
130
130
|
var r, n;
|
|
131
131
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
132
132
|
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);
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var Se = [
|
|
135
135
|
"a",
|
|
136
136
|
"button",
|
|
137
137
|
"div",
|
|
@@ -148,52 +148,52 @@ var ye = [
|
|
|
148
148
|
"span",
|
|
149
149
|
"svg",
|
|
150
150
|
"ul"
|
|
151
|
-
], w =
|
|
152
|
-
const o =
|
|
151
|
+
], w = Se.reduce((e, t) => {
|
|
152
|
+
const o = a.forwardRef((r, n) => {
|
|
153
153
|
const { asChild: s, ...c } = r, u = s ? A : t;
|
|
154
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
154
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(u, { ...c, ref: n });
|
|
155
155
|
});
|
|
156
156
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
157
157
|
}, {});
|
|
158
|
-
function
|
|
158
|
+
function S(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
159
159
|
return function(n) {
|
|
160
160
|
if (e == null || e(n), o === !1 || !n.defaultPrevented)
|
|
161
161
|
return t == null ? void 0 : t(n);
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function _e(e) {
|
|
165
165
|
const t = e + "CollectionProvider", [o, r] = U(t), [n, s] = o(
|
|
166
166
|
t,
|
|
167
167
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
168
168
|
), c = (I) => {
|
|
169
|
-
const { scope:
|
|
170
|
-
return /* @__PURE__ */
|
|
169
|
+
const { scope: f, children: m } = I, T = C.useRef(null), g = C.useRef(/* @__PURE__ */ new Map()).current;
|
|
170
|
+
return /* @__PURE__ */ l(n, { scope: f, itemMap: g, collectionRef: T, children: m });
|
|
171
171
|
};
|
|
172
172
|
c.displayName = t;
|
|
173
173
|
const u = e + "CollectionSlot", i = C.forwardRef(
|
|
174
|
-
(I,
|
|
175
|
-
const { scope: m, children:
|
|
176
|
-
return /* @__PURE__ */
|
|
174
|
+
(I, f) => {
|
|
175
|
+
const { scope: m, children: T } = I, g = s(u, m), b = D(f, g.collectionRef);
|
|
176
|
+
return /* @__PURE__ */ l(A, { ref: b, children: T });
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
i.displayName = u;
|
|
180
|
-
const
|
|
181
|
-
(I,
|
|
182
|
-
const { scope: m, children:
|
|
183
|
-
return C.useEffect(() => (
|
|
180
|
+
const d = e + "CollectionItemSlot", v = "data-radix-collection-item", p = C.forwardRef(
|
|
181
|
+
(I, f) => {
|
|
182
|
+
const { scope: m, children: T, ...g } = I, b = C.useRef(null), _ = D(f, b), G = s(d, m);
|
|
183
|
+
return C.useEffect(() => (G.itemMap.set(b, { ref: b, ...g }), () => void G.itemMap.delete(b))), /* @__PURE__ */ l(A, { [v]: "", ref: _, children: T });
|
|
184
184
|
}
|
|
185
185
|
);
|
|
186
|
-
p.displayName =
|
|
186
|
+
p.displayName = d;
|
|
187
187
|
function h(I) {
|
|
188
|
-
const
|
|
188
|
+
const f = s(e + "CollectionConsumer", I);
|
|
189
189
|
return C.useCallback(() => {
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
192
|
-
const g = Array.from(
|
|
193
|
-
return Array.from(
|
|
194
|
-
(
|
|
190
|
+
const T = f.collectionRef.current;
|
|
191
|
+
if (!T) return [];
|
|
192
|
+
const g = Array.from(T.querySelectorAll(`[${v}]`));
|
|
193
|
+
return Array.from(f.itemMap.values()).sort(
|
|
194
|
+
(G, x) => g.indexOf(G.ref.current) - g.indexOf(x.ref.current)
|
|
195
195
|
);
|
|
196
|
-
}, [
|
|
196
|
+
}, [f.collectionRef, f.itemMap]);
|
|
197
197
|
}
|
|
198
198
|
return [
|
|
199
199
|
{ Provider: c, Slot: i, ItemSlot: p },
|
|
@@ -201,37 +201,37 @@ function Se(e) {
|
|
|
201
201
|
r
|
|
202
202
|
];
|
|
203
203
|
}
|
|
204
|
-
var
|
|
205
|
-
},
|
|
204
|
+
var Ge = globalThis != null && globalThis.document ? a.useLayoutEffect : () => {
|
|
205
|
+
}, Pe = a.useId || (() => {
|
|
206
206
|
}), Ee = 0;
|
|
207
207
|
function xe(e) {
|
|
208
|
-
const [t, o] =
|
|
209
|
-
return
|
|
208
|
+
const [t, o] = a.useState(Pe());
|
|
209
|
+
return Ge(() => {
|
|
210
210
|
o((r) => r ?? String(Ee++));
|
|
211
211
|
}, [e]), t ? `radix-${t}` : "";
|
|
212
212
|
}
|
|
213
213
|
function $(e) {
|
|
214
|
-
const t =
|
|
215
|
-
return
|
|
214
|
+
const t = a.useRef(e);
|
|
215
|
+
return a.useEffect(() => {
|
|
216
216
|
t.current = e;
|
|
217
|
-
}),
|
|
217
|
+
}), a.useMemo(() => (...o) => {
|
|
218
218
|
var r;
|
|
219
219
|
return (r = t.current) == null ? void 0 : r.call(t, ...o);
|
|
220
220
|
}, []);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function k({
|
|
223
223
|
prop: e,
|
|
224
224
|
defaultProp: t,
|
|
225
225
|
onChange: o = () => {
|
|
226
226
|
}
|
|
227
227
|
}) {
|
|
228
|
-
const [r, n] = we({ defaultProp: t, onChange: o }), s = e !== void 0, c = s ? e : r, u = $(o), i =
|
|
229
|
-
(
|
|
228
|
+
const [r, n] = we({ defaultProp: t, onChange: o }), s = e !== void 0, c = s ? e : r, u = $(o), i = a.useCallback(
|
|
229
|
+
(d) => {
|
|
230
230
|
if (s) {
|
|
231
|
-
const p = typeof
|
|
231
|
+
const p = typeof d == "function" ? d(e) : d;
|
|
232
232
|
p !== e && u(p);
|
|
233
233
|
} else
|
|
234
|
-
n(
|
|
234
|
+
n(d);
|
|
235
235
|
},
|
|
236
236
|
[s, e, n, u]
|
|
237
237
|
);
|
|
@@ -241,24 +241,24 @@ function we({
|
|
|
241
241
|
defaultProp: e,
|
|
242
242
|
onChange: t
|
|
243
243
|
}) {
|
|
244
|
-
const o =
|
|
245
|
-
return
|
|
244
|
+
const o = a.useState(e), [r] = o, n = a.useRef(r), s = $(t);
|
|
245
|
+
return a.useEffect(() => {
|
|
246
246
|
n.current !== r && (s(r), n.current = r);
|
|
247
247
|
}, [r, n, s]), o;
|
|
248
248
|
}
|
|
249
|
-
var Ae =
|
|
249
|
+
var Ae = a.createContext(void 0);
|
|
250
250
|
function q(e) {
|
|
251
|
-
const t =
|
|
251
|
+
const t = a.useContext(Ae);
|
|
252
252
|
return e || t || "ltr";
|
|
253
253
|
}
|
|
254
|
-
var O = "rovingFocusGroup.onEntryFocus",
|
|
255
|
-
|
|
256
|
-
[
|
|
257
|
-
), [Me, Oe] =
|
|
258
|
-
(e, t) => /* @__PURE__ */
|
|
254
|
+
var O = "rovingFocusGroup.onEntryFocus", Fe = { bubbles: !1, cancelable: !0 }, N = "RovingFocusGroup", [V, Z, ke] = _e(N), [Ne, J] = U(
|
|
255
|
+
N,
|
|
256
|
+
[ke]
|
|
257
|
+
), [Me, Oe] = Ne(N), Q = a.forwardRef(
|
|
258
|
+
(e, t) => /* @__PURE__ */ l(V.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(V.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(De, { ...e, ref: t }) }) })
|
|
259
259
|
);
|
|
260
|
-
Q.displayName =
|
|
261
|
-
var De =
|
|
260
|
+
Q.displayName = N;
|
|
261
|
+
var De = a.forwardRef((e, t) => {
|
|
262
262
|
const {
|
|
263
263
|
__scopeRovingFocusGroup: o,
|
|
264
264
|
orientation: r,
|
|
@@ -267,69 +267,69 @@ var De = l.forwardRef((e, t) => {
|
|
|
267
267
|
currentTabStopId: c,
|
|
268
268
|
defaultCurrentTabStopId: u,
|
|
269
269
|
onCurrentTabStopIdChange: i,
|
|
270
|
-
onEntryFocus:
|
|
270
|
+
onEntryFocus: d,
|
|
271
271
|
preventScrollOnEntryFocus: v = !1,
|
|
272
272
|
...p
|
|
273
|
-
} = e, h =
|
|
273
|
+
} = e, h = a.useRef(null), I = D(t, h), f = q(s), [m = null, T] = k({
|
|
274
274
|
prop: c,
|
|
275
275
|
defaultProp: u,
|
|
276
276
|
onChange: i
|
|
277
|
-
}), [g, b] =
|
|
278
|
-
return
|
|
279
|
-
const
|
|
280
|
-
if (
|
|
281
|
-
return
|
|
282
|
-
}, [
|
|
277
|
+
}), [g, b] = a.useState(!1), _ = $(d), G = Z(o), x = a.useRef(!1), [le, K] = a.useState(0);
|
|
278
|
+
return a.useEffect(() => {
|
|
279
|
+
const R = h.current;
|
|
280
|
+
if (R)
|
|
281
|
+
return R.addEventListener(O, _), () => R.removeEventListener(O, _);
|
|
282
|
+
}, [_]), /* @__PURE__ */ l(
|
|
283
283
|
Me,
|
|
284
284
|
{
|
|
285
285
|
scope: o,
|
|
286
286
|
orientation: r,
|
|
287
|
-
dir:
|
|
287
|
+
dir: f,
|
|
288
288
|
loop: n,
|
|
289
289
|
currentTabStopId: m,
|
|
290
|
-
onItemFocus:
|
|
291
|
-
(
|
|
292
|
-
[
|
|
290
|
+
onItemFocus: a.useCallback(
|
|
291
|
+
(R) => T(R),
|
|
292
|
+
[T]
|
|
293
293
|
),
|
|
294
|
-
onItemShiftTab:
|
|
295
|
-
onFocusableItemAdd:
|
|
296
|
-
() => K((
|
|
294
|
+
onItemShiftTab: a.useCallback(() => b(!0), []),
|
|
295
|
+
onFocusableItemAdd: a.useCallback(
|
|
296
|
+
() => K((R) => R + 1),
|
|
297
297
|
[]
|
|
298
298
|
),
|
|
299
|
-
onFocusableItemRemove:
|
|
300
|
-
() => K((
|
|
299
|
+
onFocusableItemRemove: a.useCallback(
|
|
300
|
+
() => K((R) => R - 1),
|
|
301
301
|
[]
|
|
302
302
|
),
|
|
303
|
-
children: /* @__PURE__ */
|
|
303
|
+
children: /* @__PURE__ */ l(
|
|
304
304
|
w.div,
|
|
305
305
|
{
|
|
306
|
-
tabIndex: g ||
|
|
306
|
+
tabIndex: g || le === 0 ? -1 : 0,
|
|
307
307
|
"data-orientation": r,
|
|
308
308
|
...p,
|
|
309
309
|
ref: I,
|
|
310
310
|
style: { outline: "none", ...e.style },
|
|
311
|
-
onMouseDown:
|
|
311
|
+
onMouseDown: S(e.onMouseDown, () => {
|
|
312
312
|
x.current = !0;
|
|
313
313
|
}),
|
|
314
|
-
onFocus:
|
|
314
|
+
onFocus: S(e.onFocus, (R) => {
|
|
315
315
|
const ie = !x.current;
|
|
316
|
-
if (
|
|
317
|
-
const
|
|
318
|
-
if (
|
|
319
|
-
const M =
|
|
316
|
+
if (R.target === R.currentTarget && ie && !g) {
|
|
317
|
+
const W = new CustomEvent(O, Fe);
|
|
318
|
+
if (R.currentTarget.dispatchEvent(W), !W.defaultPrevented) {
|
|
319
|
+
const M = G().filter((y) => y.focusable), fe = M.find((y) => y.active), de = M.find((y) => y.id === m), pe = [fe, de, ...M].filter(
|
|
320
320
|
Boolean
|
|
321
|
-
).map((
|
|
321
|
+
).map((y) => y.ref.current);
|
|
322
322
|
ee(pe, v);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
x.current = !1;
|
|
326
326
|
}),
|
|
327
|
-
onBlur:
|
|
327
|
+
onBlur: S(e.onBlur, () => b(!1))
|
|
328
328
|
}
|
|
329
329
|
)
|
|
330
330
|
}
|
|
331
331
|
);
|
|
332
|
-
}), X = "RovingFocusGroupItem", H =
|
|
332
|
+
}), X = "RovingFocusGroupItem", H = a.forwardRef(
|
|
333
333
|
(e, t) => {
|
|
334
334
|
const {
|
|
335
335
|
__scopeRovingFocusGroup: o,
|
|
@@ -337,44 +337,44 @@ var De = l.forwardRef((e, t) => {
|
|
|
337
337
|
active: n = !1,
|
|
338
338
|
tabStopId: s,
|
|
339
339
|
...c
|
|
340
|
-
} = e, u = xe(), i = s || u,
|
|
341
|
-
return
|
|
340
|
+
} = e, u = xe(), i = s || u, d = Oe(X, o), v = d.currentTabStopId === i, p = Z(o), { onFocusableItemAdd: h, onFocusableItemRemove: I } = d;
|
|
341
|
+
return a.useEffect(() => {
|
|
342
342
|
if (r)
|
|
343
343
|
return h(), () => I();
|
|
344
|
-
}, [r, h, I]), /* @__PURE__ */
|
|
344
|
+
}, [r, h, I]), /* @__PURE__ */ l(
|
|
345
345
|
V.ItemSlot,
|
|
346
346
|
{
|
|
347
347
|
scope: o,
|
|
348
348
|
id: i,
|
|
349
349
|
focusable: r,
|
|
350
350
|
active: n,
|
|
351
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ l(
|
|
352
352
|
w.span,
|
|
353
353
|
{
|
|
354
354
|
tabIndex: v ? 0 : -1,
|
|
355
|
-
"data-orientation":
|
|
355
|
+
"data-orientation": d.orientation,
|
|
356
356
|
...c,
|
|
357
357
|
ref: t,
|
|
358
|
-
onMouseDown:
|
|
359
|
-
r ?
|
|
358
|
+
onMouseDown: S(e.onMouseDown, (f) => {
|
|
359
|
+
r ? d.onItemFocus(i) : f.preventDefault();
|
|
360
360
|
}),
|
|
361
|
-
onFocus:
|
|
362
|
-
onKeyDown:
|
|
363
|
-
if (
|
|
364
|
-
|
|
361
|
+
onFocus: S(e.onFocus, () => d.onItemFocus(i)),
|
|
362
|
+
onKeyDown: S(e.onKeyDown, (f) => {
|
|
363
|
+
if (f.key === "Tab" && f.shiftKey) {
|
|
364
|
+
d.onItemShiftTab();
|
|
365
365
|
return;
|
|
366
366
|
}
|
|
367
|
-
if (
|
|
368
|
-
const m = Ue(
|
|
367
|
+
if (f.target !== f.currentTarget) return;
|
|
368
|
+
const m = Ue(f, d.orientation, d.dir);
|
|
369
369
|
if (m !== void 0) {
|
|
370
|
-
if (
|
|
371
|
-
|
|
370
|
+
if (f.metaKey || f.ctrlKey || f.altKey || f.shiftKey) return;
|
|
371
|
+
f.preventDefault();
|
|
372
372
|
let g = p().filter((b) => b.focusable).map((b) => b.ref.current);
|
|
373
373
|
if (m === "last") g.reverse();
|
|
374
374
|
else if (m === "prev" || m === "next") {
|
|
375
375
|
m === "prev" && g.reverse();
|
|
376
|
-
const b = g.indexOf(
|
|
377
|
-
g =
|
|
376
|
+
const b = g.indexOf(f.currentTarget);
|
|
377
|
+
g = d.loop ? $e(g, b + 1) : g.slice(b + 1);
|
|
378
378
|
}
|
|
379
379
|
setTimeout(() => ee(g));
|
|
380
380
|
}
|
|
@@ -412,13 +412,13 @@ function ee(e, t = !1) {
|
|
|
412
412
|
function $e(e, t) {
|
|
413
413
|
return e.map((o, r) => e[(t + r) % e.length]);
|
|
414
414
|
}
|
|
415
|
-
var Be = Q, Ke = H,
|
|
416
|
-
const { pressed: o, defaultPressed: r = !1, onPressedChange: n, ...s } = e, [c = !1, u] =
|
|
415
|
+
var Be = Q, Ke = H, We = "Toggle", te = a.forwardRef((e, t) => {
|
|
416
|
+
const { pressed: o, defaultPressed: r = !1, onPressedChange: n, ...s } = e, [c = !1, u] = k({
|
|
417
417
|
prop: o,
|
|
418
418
|
onChange: n,
|
|
419
419
|
defaultProp: r
|
|
420
420
|
});
|
|
421
|
-
return /* @__PURE__ */
|
|
421
|
+
return /* @__PURE__ */ l(
|
|
422
422
|
w.button,
|
|
423
423
|
{
|
|
424
424
|
type: "button",
|
|
@@ -427,37 +427,37 @@ var Be = Q, Ke = H, je = "Toggle", te = l.forwardRef((e, t) => {
|
|
|
427
427
|
"data-disabled": e.disabled ? "" : void 0,
|
|
428
428
|
...s,
|
|
429
429
|
ref: t,
|
|
430
|
-
onClick:
|
|
430
|
+
onClick: S(e.onClick, () => {
|
|
431
431
|
e.disabled || u(!c);
|
|
432
432
|
})
|
|
433
433
|
}
|
|
434
434
|
);
|
|
435
435
|
});
|
|
436
|
-
te.displayName =
|
|
437
|
-
var E = "ToggleGroup", [oe,
|
|
436
|
+
te.displayName = We;
|
|
437
|
+
var E = "ToggleGroup", [oe, ut] = U(E, [
|
|
438
438
|
J
|
|
439
439
|
]), re = J(), B = C.forwardRef((e, t) => {
|
|
440
440
|
const { type: o, ...r } = e;
|
|
441
441
|
if (o === "single")
|
|
442
|
-
return /* @__PURE__ */
|
|
442
|
+
return /* @__PURE__ */ l(je, { ...r, ref: t });
|
|
443
443
|
if (o === "multiple")
|
|
444
|
-
return /* @__PURE__ */
|
|
444
|
+
return /* @__PURE__ */ l(Ye, { ...r, ref: t });
|
|
445
445
|
throw new Error(`Missing prop \`type\` expected on \`${E}\``);
|
|
446
446
|
});
|
|
447
447
|
B.displayName = E;
|
|
448
|
-
var [ne, se] = oe(E),
|
|
448
|
+
var [ne, se] = oe(E), je = C.forwardRef((e, t) => {
|
|
449
449
|
const {
|
|
450
450
|
value: o,
|
|
451
451
|
defaultValue: r,
|
|
452
452
|
onValueChange: n = () => {
|
|
453
453
|
},
|
|
454
454
|
...s
|
|
455
|
-
} = e, [c, u] =
|
|
455
|
+
} = e, [c, u] = k({
|
|
456
456
|
prop: o,
|
|
457
457
|
defaultProp: r,
|
|
458
458
|
onChange: n
|
|
459
459
|
});
|
|
460
|
-
return /* @__PURE__ */
|
|
460
|
+
return /* @__PURE__ */ l(
|
|
461
461
|
ne,
|
|
462
462
|
{
|
|
463
463
|
scope: e.__scopeToggleGroup,
|
|
@@ -465,7 +465,7 @@ var [ne, se] = oe(E), We = C.forwardRef((e, t) => {
|
|
|
465
465
|
value: c ? [c] : [],
|
|
466
466
|
onItemActivate: u,
|
|
467
467
|
onItemDeactivate: C.useCallback(() => u(""), [u]),
|
|
468
|
-
children: /* @__PURE__ */
|
|
468
|
+
children: /* @__PURE__ */ l(ce, { ...s, ref: t })
|
|
469
469
|
}
|
|
470
470
|
);
|
|
471
471
|
}), Ye = C.forwardRef((e, t) => {
|
|
@@ -475,26 +475,26 @@ var [ne, se] = oe(E), We = C.forwardRef((e, t) => {
|
|
|
475
475
|
onValueChange: n = () => {
|
|
476
476
|
},
|
|
477
477
|
...s
|
|
478
|
-
} = e, [c = [], u] =
|
|
478
|
+
} = e, [c = [], u] = k({
|
|
479
479
|
prop: o,
|
|
480
480
|
defaultProp: r,
|
|
481
481
|
onChange: n
|
|
482
482
|
}), i = C.useCallback(
|
|
483
483
|
(v) => u((p = []) => [...p, v]),
|
|
484
484
|
[u]
|
|
485
|
-
),
|
|
485
|
+
), d = C.useCallback(
|
|
486
486
|
(v) => u((p = []) => p.filter((h) => h !== v)),
|
|
487
487
|
[u]
|
|
488
488
|
);
|
|
489
|
-
return /* @__PURE__ */
|
|
489
|
+
return /* @__PURE__ */ l(
|
|
490
490
|
ne,
|
|
491
491
|
{
|
|
492
492
|
scope: e.__scopeToggleGroup,
|
|
493
493
|
type: "multiple",
|
|
494
494
|
value: c,
|
|
495
495
|
onItemActivate: i,
|
|
496
|
-
onItemDeactivate:
|
|
497
|
-
children: /* @__PURE__ */
|
|
496
|
+
onItemDeactivate: d,
|
|
497
|
+
children: /* @__PURE__ */ l(ce, { ...s, ref: t })
|
|
498
498
|
}
|
|
499
499
|
);
|
|
500
500
|
});
|
|
@@ -509,23 +509,23 @@ var [ze, qe] = oe(E), ce = C.forwardRef(
|
|
|
509
509
|
dir: c,
|
|
510
510
|
loop: u = !0,
|
|
511
511
|
...i
|
|
512
|
-
} = e,
|
|
513
|
-
return /* @__PURE__ */
|
|
512
|
+
} = e, d = re(o), v = q(c), p = { role: "group", dir: v, ...i };
|
|
513
|
+
return /* @__PURE__ */ l(ze, { scope: o, rovingFocus: n, disabled: r, children: n ? /* @__PURE__ */ l(
|
|
514
514
|
Be,
|
|
515
515
|
{
|
|
516
516
|
asChild: !0,
|
|
517
|
-
...
|
|
517
|
+
...d,
|
|
518
518
|
orientation: s,
|
|
519
519
|
dir: v,
|
|
520
520
|
loop: u,
|
|
521
|
-
children: /* @__PURE__ */
|
|
521
|
+
children: /* @__PURE__ */ l(w.div, { ...p, ref: t })
|
|
522
522
|
}
|
|
523
|
-
) : /* @__PURE__ */
|
|
523
|
+
) : /* @__PURE__ */ l(w.div, { ...p, ref: t }) });
|
|
524
524
|
}
|
|
525
|
-
),
|
|
525
|
+
), F = "ToggleGroupItem", ue = C.forwardRef(
|
|
526
526
|
(e, t) => {
|
|
527
|
-
const o = se(
|
|
528
|
-
return r.rovingFocus ? /* @__PURE__ */
|
|
527
|
+
const o = se(F, e.__scopeToggleGroup), r = qe(F, e.__scopeToggleGroup), n = re(e.__scopeToggleGroup), s = o.value.includes(e.value), c = r.disabled || e.disabled, u = { ...e, pressed: s, disabled: c }, i = C.useRef(null);
|
|
528
|
+
return r.rovingFocus ? /* @__PURE__ */ l(
|
|
529
529
|
Ke,
|
|
530
530
|
{
|
|
531
531
|
asChild: !0,
|
|
@@ -533,16 +533,16 @@ var [ze, qe] = oe(E), ce = C.forwardRef(
|
|
|
533
533
|
focusable: !c,
|
|
534
534
|
active: s,
|
|
535
535
|
ref: i,
|
|
536
|
-
children: /* @__PURE__ */
|
|
536
|
+
children: /* @__PURE__ */ l(Y, { ...u, ref: t })
|
|
537
537
|
}
|
|
538
|
-
) : /* @__PURE__ */
|
|
538
|
+
) : /* @__PURE__ */ l(Y, { ...u, ref: t });
|
|
539
539
|
}
|
|
540
540
|
);
|
|
541
|
-
ue.displayName =
|
|
541
|
+
ue.displayName = F;
|
|
542
542
|
var Y = C.forwardRef(
|
|
543
543
|
(e, t) => {
|
|
544
|
-
const { __scopeToggleGroup: o, value: r, ...n } = e, s = se(
|
|
545
|
-
return /* @__PURE__ */
|
|
544
|
+
const { __scopeToggleGroup: o, value: r, ...n } = e, s = se(F, o), c = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, u = s.type === "single" ? c : void 0;
|
|
545
|
+
return /* @__PURE__ */ l(
|
|
546
546
|
te,
|
|
547
547
|
{
|
|
548
548
|
...u,
|
|
@@ -555,48 +555,25 @@ var Y = C.forwardRef(
|
|
|
555
555
|
);
|
|
556
556
|
}
|
|
557
557
|
), Ze = B, Je = ue;
|
|
558
|
-
const
|
|
558
|
+
const ae = C.createContext({
|
|
559
559
|
size: "medium",
|
|
560
560
|
focusMode: "system",
|
|
561
561
|
mode: "system"
|
|
562
|
-
})
|
|
563
|
-
/*!
|
|
564
|
-
@versini/ui-spacing v1.1.1
|
|
565
|
-
© 2024 gizmette.com
|
|
566
|
-
*/
|
|
567
|
-
try {
|
|
568
|
-
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
569
|
-
version: "1.1.1",
|
|
570
|
-
buildTime: "12/28/2024 05:53 PM EST",
|
|
571
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
572
|
-
license: "MIT"
|
|
573
|
-
});
|
|
574
|
-
} catch {
|
|
575
|
-
}
|
|
576
|
-
const Qe = (e) => {
|
|
577
|
-
let t = "";
|
|
578
|
-
if (typeof e == "number" || typeof e == "string")
|
|
579
|
-
t = "m-" + e;
|
|
580
|
-
else {
|
|
581
|
-
const o = [];
|
|
582
|
-
(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(" ");
|
|
583
|
-
}
|
|
584
|
-
return t;
|
|
585
|
-
}, Xe = ({ focusMode: e }) => G("focus:outline", "focus:outline-2", "focus:outline-offset", {
|
|
562
|
+
}), Qe = ({ focusMode: e }) => P("focus:outline", "focus:outline-2", "focus:outline-offset", {
|
|
586
563
|
"focus:outline-focus-light": e === "light",
|
|
587
564
|
"focus:outline-focus-dark": e === "dark",
|
|
588
565
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
589
566
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
590
|
-
}),
|
|
567
|
+
}), Xe = ({ mode: e }) => P({
|
|
591
568
|
"data-[state=on]:bg-surface-medium": e === "dark",
|
|
592
569
|
"data-[state=on]:bg-surface-lightest": e === "light",
|
|
593
570
|
"data-[state=on]:bg-surface-lightest dark:data-[state=on]:bg-surface-medium": e === "system",
|
|
594
571
|
"data-[state=on]:bg-surface-medium dark:data-[state=on]:bg-surface-lightest": e === "alt-system"
|
|
595
|
-
}),
|
|
572
|
+
}), He = ({ size: e }) => P({
|
|
596
573
|
"h-5 px-2": e === "small",
|
|
597
574
|
"h-6 px-3": e === "medium",
|
|
598
575
|
"h-7 px-4": e === "large"
|
|
599
|
-
}),
|
|
576
|
+
}), et = ({ mode: e }) => P(
|
|
600
577
|
Ce,
|
|
601
578
|
"px-1",
|
|
602
579
|
"relative",
|
|
@@ -610,27 +587,26 @@ const Qe = (e) => {
|
|
|
610
587
|
"border-surface-light dark:border-surface-darker": e === "system",
|
|
611
588
|
"border-surface-darker dark:border-surface-light": e === "alt-system"
|
|
612
589
|
}
|
|
613
|
-
),
|
|
590
|
+
), tt = ({
|
|
614
591
|
focusMode: e,
|
|
615
592
|
mode: t,
|
|
616
593
|
size: o
|
|
617
594
|
}) => ({
|
|
618
|
-
wrapperClass:
|
|
619
|
-
itemClass:
|
|
595
|
+
wrapperClass: et({ mode: t }),
|
|
596
|
+
itemClass: P(
|
|
620
597
|
he,
|
|
621
598
|
"flex items-center justify-center bg-transparent",
|
|
622
599
|
"rounded-sm",
|
|
623
600
|
"transition duration-200 ease",
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
601
|
+
He({ size: o }),
|
|
602
|
+
Qe({ focusMode: e }),
|
|
603
|
+
Xe({ mode: t })
|
|
627
604
|
)
|
|
628
|
-
}),
|
|
605
|
+
}), ot = ({
|
|
629
606
|
mode: e,
|
|
630
|
-
|
|
631
|
-
}) =>
|
|
607
|
+
className: t
|
|
608
|
+
}) => P(
|
|
632
609
|
ve,
|
|
633
|
-
Qe(t),
|
|
634
610
|
"inline-flex p-1",
|
|
635
611
|
"rounded-sm",
|
|
636
612
|
{
|
|
@@ -638,7 +614,8 @@ const Qe = (e) => {
|
|
|
638
614
|
"bg-surface-darker text-copy-lighter": e === "dark",
|
|
639
615
|
"bg-surface-light text-copy-dark dark:bg-surface-darker dark:text-copy-lighter": e === "system",
|
|
640
616
|
"bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
|
|
641
|
-
}
|
|
617
|
+
},
|
|
618
|
+
t
|
|
642
619
|
), at = ({
|
|
643
620
|
children: e,
|
|
644
621
|
value: t,
|
|
@@ -648,11 +625,11 @@ const Qe = (e) => {
|
|
|
648
625
|
focusMode: s = "system",
|
|
649
626
|
size: c = "medium",
|
|
650
627
|
defaultValue: u,
|
|
651
|
-
|
|
652
|
-
...
|
|
628
|
+
className: i,
|
|
629
|
+
...d
|
|
653
630
|
}) => {
|
|
654
|
-
const v =
|
|
655
|
-
return /* @__PURE__ */
|
|
631
|
+
const v = ot({ mode: n, className: i }), p = { size: c, focusMode: s, mode: n };
|
|
632
|
+
return /* @__PURE__ */ l(ae.Provider, { value: p, children: /* @__PURE__ */ l(
|
|
656
633
|
Ze,
|
|
657
634
|
{
|
|
658
635
|
disabled: r,
|
|
@@ -660,18 +637,18 @@ const Qe = (e) => {
|
|
|
660
637
|
value: t,
|
|
661
638
|
defaultValue: u,
|
|
662
639
|
onValueChange: o,
|
|
663
|
-
...
|
|
640
|
+
...d,
|
|
664
641
|
type: "single",
|
|
665
642
|
children: e
|
|
666
643
|
}
|
|
667
644
|
) });
|
|
668
|
-
},
|
|
669
|
-
const { size: o, focusMode: r, mode: n } = me(
|
|
645
|
+
}, lt = ({ value: e, disabled: t }) => {
|
|
646
|
+
const { size: o, focusMode: r, mode: n } = me(ae), { itemClass: s, wrapperClass: c } = tt({
|
|
670
647
|
focusMode: r,
|
|
671
648
|
mode: n,
|
|
672
649
|
size: o
|
|
673
650
|
});
|
|
674
|
-
return /* @__PURE__ */
|
|
651
|
+
return /* @__PURE__ */ l("div", { className: c, children: /* @__PURE__ */ l(
|
|
675
652
|
Je,
|
|
676
653
|
{
|
|
677
654
|
disabled: t,
|
|
@@ -686,5 +663,5 @@ export {
|
|
|
686
663
|
he as TOGGLEGROUP_ITEM_CLASSNAME,
|
|
687
664
|
Ce as TOGGLEGROUP_ITEM_WRAPPER_CLASSNAME,
|
|
688
665
|
at as ToggleGroup,
|
|
689
|
-
|
|
666
|
+
lt as ToggleGroupItem
|
|
690
667
|
};
|
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]:where(:not([hidden=until-found])){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}}.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}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.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, 1)))}.border-surface-light{--tw-border-opacity: 1;border-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-border-opacity, 1)))}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.bg-surface-lightest{--tw-bg-opacity: 1;background-color:var(--av-surface-lightest, rgb(241 245 249 / var(--tw-bg-opacity, 1)))}.bg-surface-medium{--tw-bg-opacity: 1;background-color:var(--av-surface-medium, rgb(100 116 139 / var(--tw-bg-opacity, 1)))}.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, 1)))}.text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity, 1)))}.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, 1)))}.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, 1)))}.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)))}@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, 1)))}.dark\:border-surface-light{--tw-border-opacity: 1;border-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-border-opacity, 1)))}.dark\:bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.dark\:bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.dark\:text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity, 1)))}.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, 1)))}.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)))}}
|
|
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]:where(:not([hidden=until-found])){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}}.relative{position:relative}.mr-2{margin-right:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.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, 1)))}.border-surface-light{--tw-border-opacity: 1;border-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-border-opacity, 1)))}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.bg-surface-lightest{--tw-bg-opacity: 1;background-color:var(--av-surface-lightest, rgb(241 245 249 / var(--tw-bg-opacity, 1)))}.bg-surface-medium{--tw-bg-opacity: 1;background-color:var(--av-surface-medium, rgb(100 116 139 / var(--tw-bg-opacity, 1)))}.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, 1)))}.text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity, 1)))}.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, 1)))}.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, 1)))}.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)))}@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, 1)))}.dark\:border-surface-light{--tw-border-opacity: 1;border-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-border-opacity, 1)))}.dark\:bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.dark\:bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.dark\:text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity, 1)))}.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, 1)))}.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)))}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-togglegroup",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,13 +40,12 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@radix-ui/react-toggle-group": "1.1.1",
|
|
42
42
|
"@tailwindcss/typography": "0.5.15",
|
|
43
|
-
"@versini/ui-
|
|
44
|
-
"@versini/ui-types": "1.1.0",
|
|
43
|
+
"@versini/ui-types": "2.0.0",
|
|
45
44
|
"clsx": "2.1.1",
|
|
46
45
|
"tailwindcss": "3.4.17"
|
|
47
46
|
},
|
|
48
47
|
"sideEffects": [
|
|
49
48
|
"**/*.css"
|
|
50
49
|
],
|
|
51
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "1ac4ef9fd8d68f6e247711f623af2f6bec72df23"
|
|
52
51
|
}
|