@spear-ai/spectral 1.4.25 → 1.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RadioButtonGroup.js +1 -1
- package/dist/ToggleGroup.js +5 -5
- package/package.json +1 -1
package/dist/RadioButtonGroup.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import { RadioButtonGroupItem as n, RadioButtonGroupBase as u } from "./RadioButtonGroup/RadioButtonGroupBase.js";
|
|
4
4
|
import { cn as m } from "./utils/twUtils.js";
|
|
5
5
|
import "react";
|
|
6
|
-
const s = ({ className: t, children: o, ...r }) => /* @__PURE__ */ e(u, { className: m("flex h-fit w-fit items-center whitespace-nowrap rounded-md [&_button:first-of-type]:rounded-l-md [&_button:last-of-type]:rounded-r-md
|
|
6
|
+
const s = ({ className: t, children: o, ...r }) => /* @__PURE__ */ e(u, { className: m("flex h-fit w-fit items-center whitespace-nowrap rounded-md [&_button:first-of-type]:rounded-l-md [&_button:last-of-type]:rounded-r-md", t), ...r, children: o }), f = n;
|
|
7
7
|
export {
|
|
8
8
|
s as RadioButtonGroup,
|
|
9
9
|
f as RadioButtonGroupItem
|
package/dist/ToggleGroup.js
CHANGED
|
@@ -18,18 +18,18 @@ const m = w({
|
|
|
18
18
|
"data-size": e,
|
|
19
19
|
"data-layout": a,
|
|
20
20
|
className: c(
|
|
21
|
-
"group/toggle-group [&[data-variant='outline']]:bg-toggle-group-bg flex h-fit w-fit [&[data-layout='expanded']]:w-full items-center rounded-md [&_button:first-of-type]:rounded-l-md [&_button:last-of-type]:rounded-r-md [&[data-variant='outline']]:gap-0.25
|
|
21
|
+
"group/toggle-group [&[data-variant='outline']]:bg-toggle-group-bg flex h-fit w-fit [&[data-layout='expanded']]:w-full items-center rounded-md [&_button:first-of-type]:rounded-l-md [&_button:last-of-type]:rounded-r-md [&[data-variant='outline']]:gap-0.25",
|
|
22
22
|
r
|
|
23
23
|
),
|
|
24
24
|
...i,
|
|
25
25
|
children: /* @__PURE__ */ s(m.Provider, { value: { variant: o, size: e, layout: a, activeColor: l, activeTextColor: d }, children: n })
|
|
26
26
|
}
|
|
27
|
-
), I = h(({ className: r, children: o, variant: e, size: a, value: l, layout: d, activeColor: n, activeTextColor: i, style: v, ...f },
|
|
28
|
-
const t = A(m), g = t.variant ?? e, u = t.size ?? a, p = t.layout ?? d,
|
|
27
|
+
), I = h(({ className: r, children: o, variant: e, size: a, value: l, layout: d, activeColor: n, activeTextColor: i, style: v, ...f }, y) => {
|
|
28
|
+
const t = A(m), g = t.variant ?? e, u = t.size ?? a, p = t.layout ?? d, x = n ?? t.activeColor, b = i ?? t.activeTextColor;
|
|
29
29
|
return /* @__PURE__ */ s(
|
|
30
30
|
C,
|
|
31
31
|
{
|
|
32
|
-
ref:
|
|
32
|
+
ref: y,
|
|
33
33
|
"data-slot": "toggle-group-item",
|
|
34
34
|
"data-testid": "spectral-toggle-group-item",
|
|
35
35
|
"data-variant": g,
|
|
@@ -45,7 +45,7 @@ const m = w({
|
|
|
45
45
|
"group data-[variant=outline]:border-togglegroup-border rounded-none shadow-none focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0",
|
|
46
46
|
r
|
|
47
47
|
),
|
|
48
|
-
style: { ...z(
|
|
48
|
+
style: { ...z(x, b), ...v },
|
|
49
49
|
...f,
|
|
50
50
|
children: o
|
|
51
51
|
}
|