@spear-ai/spectral 1.13.0 → 1.13.1
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/.js +41 -40
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +46 -45
- package/dist/Checkbox.js +6 -5
- package/dist/{Combobox-DCCcIDgq.js → Combobox-DRQqx0os.js} +9 -8
- package/dist/Combobox.js +1 -1
- package/dist/ControlGroup/ControlGroupSelect.d.ts +5 -1
- package/dist/ControlGroup/ControlGroupSelect.js +73 -67
- package/dist/ControlGroup.js +29 -24
- package/dist/DateTimePicker/TimePeriodSelect.js +1 -1
- package/dist/DateTimePicker.js +8 -7
- package/dist/{DropdownMenu-B8I8IRcu.js → DropdownMenu-BO_RPCVU.js} +204 -202
- package/dist/DropdownMenu.d.ts +3 -2
- package/dist/DropdownMenu.js +1 -1
- package/dist/FormFieldMessage.d.ts +11 -0
- package/dist/FormFieldMessage.js +55 -0
- package/dist/Input.d.ts +1 -0
- package/dist/Input.js +68 -67
- package/dist/InputNumeric.js +3 -14
- package/dist/{InputOTP-DyhesOLs.js → InputOTP-DLn7ja7J.js} +5 -4
- package/dist/InputOTP.js +1 -1
- package/dist/MultiSelect/MultiSelectBase.js +105 -104
- package/dist/{RadioGroup-BsBK247l.js → RadioGroup-D-XjCU4Q.js} +33 -28
- package/dist/RadioGroup.js +1 -1
- package/dist/Select.js +21 -20
- package/dist/{Switch-Vep4hsq4.js → Switch-CSmXtkia.js} +26 -25
- package/dist/Switch.js +1 -1
- package/dist/Textarea/TextareaUtils.js +4 -8
- package/dist/Textarea.js +23 -22
- package/dist/Toggle.d.ts +1 -1
- package/dist/Toggle.js +10 -10
- package/dist/ToggleGroup/ToggleGroupBase.d.ts +1 -1
- package/dist/ToggleGroup/ToggleGroupBase.js +19 -19
- package/dist/ToggleGroup/ToggleGroupItem.js +2 -2
- package/dist/ToggleGroup/ToggleGroupSplitMenuItem.d.ts +5 -2
- package/dist/ToggleGroup/ToggleGroupSplitMenuItem.js +91 -52
- package/dist/ToggleGroup.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/primitives/select.d.ts +1 -1
- package/dist/primitives/select.d.ts.map +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/textarea.js +1 -1
- package/dist/{select-oAOoVl5g.js → select-DFE8xm1L.js} +230 -259
- package/dist/styles/spectral.css +1 -1
- package/dist/utils/formFieldUtils.d.ts +1 -13
- package/dist/utils/formFieldUtils.d.ts.map +1 -1
- package/dist/utils/formFieldUtils.js +48 -69
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './styles/main.css'
|
|
2
2
|
import { t as e } from "./twUtils-BpqlKSeB.js";
|
|
3
|
-
import { ErrorMessage as t, WarningMessage as n
|
|
3
|
+
import { ErrorMessage as t, WarningMessage as n } from "./FormFieldMessage.js";
|
|
4
|
+
import { useFormFieldId as r } from "./utils/formFieldUtils.js";
|
|
4
5
|
import { Label as i } from "./Label.js";
|
|
5
6
|
import { Switch as a, SwitchThumb as o } from "./Switch/SwitchBase.js";
|
|
6
7
|
import { createElement as s, forwardRef as c } from "react";
|
|
@@ -49,29 +50,29 @@ var d = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), f = (e) =
|
|
|
49
50
|
d: "m6 6 12 12",
|
|
50
51
|
key: "d8bk6v"
|
|
51
52
|
}]]), x = "bg-switch-thumb--checked data-[state=checked]:bg-switch-thumb pointer-events-none block rounded-full ring-0 transition-transform motion-reduce:transition-none", S = ({ className: s, disabled: c, errorMessage: d, hideLabel: f = !1, id: p, label: m, labelPosition: h = "right", labelText: g, name: _, onChange: v, ref: S, required: C, state: w = "default", value: T, variant: E, warningMessage: D, "aria-describedby": O, "aria-label": k, ...A }) => {
|
|
52
|
-
let j = r(p, _), M =
|
|
53
|
+
let j = r(p, _), M = !!c, N = g ?? m, P = `${j}-error`, F = `${j}-warning`, I = w === "error" && d && P ? P : w === "warning" && D && F ? F : void 0, L = E === "squared";
|
|
53
54
|
return /* @__PURE__ */ u("div", {
|
|
54
55
|
className: "flex items-center",
|
|
55
56
|
"data-testid": "spectral-switch-container",
|
|
56
|
-
"data-state":
|
|
57
|
+
"data-state": w,
|
|
57
58
|
children: [
|
|
58
|
-
h === "left" && !f &&
|
|
59
|
+
h === "left" && !f && N && /* @__PURE__ */ l(i, {
|
|
59
60
|
className: "mr-2",
|
|
60
61
|
"data-testid": "spectral-switch-label-left",
|
|
61
62
|
htmlFor: j,
|
|
62
|
-
children:
|
|
63
|
+
children: N
|
|
63
64
|
}),
|
|
64
65
|
E === "permanent-indicator" ? /* @__PURE__ */ u("div", {
|
|
65
66
|
className: "h-7 text-sm font-medium relative inline-grid grid-cols-[1fr_1fr] items-center",
|
|
66
67
|
children: [
|
|
67
68
|
/* @__PURE__ */ l(a, {
|
|
68
69
|
"aria-required": C,
|
|
69
|
-
"aria-describedby": [
|
|
70
|
-
"aria-invalid":
|
|
71
|
-
"aria-label": k ?? (f ?
|
|
70
|
+
"aria-describedby": [I, O].filter(Boolean).join(" ") || void 0,
|
|
71
|
+
"aria-invalid": w === "error" ? !0 : void 0,
|
|
72
|
+
"aria-label": k ?? (f ? N : void 0),
|
|
72
73
|
className: e("peer inset-0 w-14 focus-visible:ring-ring absolute inline-flex h-[inherit] items-center focus-visible:ring-offset-background data-[state=checked]:bg-switch-bg--checked data-[state=unchecked]:bg-switch-bg/50", "shadow-2xs cursor-pointer rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none", "disabled:cursor-not-allowed disabled:opacity-50", s),
|
|
73
74
|
"data-testid": "spectral-switch",
|
|
74
|
-
disabled:
|
|
75
|
+
disabled: M,
|
|
75
76
|
id: j,
|
|
76
77
|
name: _,
|
|
77
78
|
onCheckedChange: v,
|
|
@@ -98,12 +99,12 @@ var d = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), f = (e) =
|
|
|
98
99
|
]
|
|
99
100
|
}) : /* @__PURE__ */ l(a, {
|
|
100
101
|
"aria-required": C,
|
|
101
|
-
"aria-describedby": [
|
|
102
|
-
"aria-invalid":
|
|
103
|
-
"aria-label": k ?? (f ?
|
|
104
|
-
className: e(
|
|
102
|
+
"aria-describedby": [I, O].filter(Boolean).join(" ") || void 0,
|
|
103
|
+
"aria-invalid": w === "error" ? !0 : void 0,
|
|
104
|
+
"aria-label": k ?? (f ? N : void 0),
|
|
105
|
+
className: e(L ? "peer h-6 w-10 rounded-sm focus-visible:ring-black inline-flex shrink-0 items-center border-2 border-transparent transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-switch-bg--checked data-[state=unchecked]:bg-switch-bg [&_span]:rounded-[4px]" : "focus-visible:ring-ring peer h-6 w-10 shadow-2xs inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-switch-bg--checked data-[state=unchecked]:bg-switch-bg", s),
|
|
105
106
|
"data-testid": "spectral-switch",
|
|
106
|
-
disabled:
|
|
107
|
+
disabled: M,
|
|
107
108
|
id: j,
|
|
108
109
|
name: _,
|
|
109
110
|
onCheckedChange: v,
|
|
@@ -111,30 +112,30 @@ var d = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), f = (e) =
|
|
|
111
112
|
required: C,
|
|
112
113
|
value: T,
|
|
113
114
|
...A,
|
|
114
|
-
children: /* @__PURE__ */ l(o, { className: e(x,
|
|
115
|
+
children: /* @__PURE__ */ l(o, { className: e(x, L ? "size-5 shadow-xs data-[state=checked]:translate-x-4 data-[state=checked]:rtl:-translate-x-4" : "h-5 w-5 shadow-lg data-[state=checked]:translate-x-4") })
|
|
115
116
|
}),
|
|
116
|
-
h === "right" && !f &&
|
|
117
|
+
h === "right" && !f && N && /* @__PURE__ */ l(i, {
|
|
117
118
|
className: "ml-2",
|
|
118
119
|
"data-testid": "spectral-switch-label-right",
|
|
119
120
|
htmlFor: j,
|
|
120
121
|
id: `${j}-label`,
|
|
121
|
-
children:
|
|
122
|
+
children: N
|
|
122
123
|
}),
|
|
123
|
-
f &&
|
|
124
|
+
f && N && /* @__PURE__ */ l(i, {
|
|
124
125
|
className: "sr-only",
|
|
125
126
|
"data-testid": "spectral-switch-label-hidden",
|
|
126
127
|
htmlFor: j,
|
|
127
|
-
children:
|
|
128
|
+
children: N
|
|
128
129
|
}),
|
|
129
|
-
|
|
130
|
+
/* @__PURE__ */ l(t, {
|
|
130
131
|
dataTestId: "spectral-switch-error-message",
|
|
131
|
-
id:
|
|
132
|
-
message: d
|
|
132
|
+
id: P,
|
|
133
|
+
message: w === "error" ? d ?? null : null
|
|
133
134
|
}),
|
|
134
|
-
|
|
135
|
+
/* @__PURE__ */ l(n, {
|
|
135
136
|
dataTestId: "spectral-switch-warning-message",
|
|
136
|
-
id:
|
|
137
|
-
message: D
|
|
137
|
+
id: F,
|
|
138
|
+
message: w === "warning" ? D ?? null : null
|
|
138
139
|
})
|
|
139
140
|
]
|
|
140
141
|
});
|
package/dist/Switch.js
CHANGED
|
@@ -5,14 +5,10 @@ var t = (e, t, n) => {
|
|
|
5
5
|
let r = e.target.value;
|
|
6
6
|
r.length <= t && n?.(r);
|
|
7
7
|
}, n = (e, t, n, r) => {
|
|
8
|
-
let i = e.clipboardData.getData("text"), a = n || "", o = e.currentTarget
|
|
9
|
-
if ((
|
|
10
|
-
e.
|
|
11
|
-
|
|
12
|
-
r?.(p), setTimeout(() => {
|
|
13
|
-
let e = s + f.length;
|
|
14
|
-
o.setSelectionRange(e, e);
|
|
15
|
-
}, 0);
|
|
8
|
+
let i = e.clipboardData.getData("text"), a = n || "", o = e.currentTarget.selectionStart || 0, s = e.currentTarget.selectionEnd || 0, c = a.substring(0, o), l = a.substring(s);
|
|
9
|
+
if ((c + i + l).length > t) {
|
|
10
|
+
let e = s - o, n = t - a.length + e, u = c + i.substring(0, Math.max(0, n)) + l;
|
|
11
|
+
r?.(u);
|
|
16
12
|
}
|
|
17
13
|
}, r = ({ maxLength: r, value: i, onChange: a, onFocus: o, onBlur: s }) => ({
|
|
18
14
|
handleFocus: e((e) => {
|
package/dist/Textarea.js
CHANGED
|
@@ -2,40 +2,41 @@
|
|
|
2
2
|
import './styles/main.css'
|
|
3
3
|
import { LoaderIcon as e } from "./Icons/LoaderIcon.js";
|
|
4
4
|
import { t } from "./twUtils-BpqlKSeB.js";
|
|
5
|
-
import { ErrorMessage as n, WarningMessage as r
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { ErrorMessage as n, WarningMessage as r } from "./FormFieldMessage.js";
|
|
6
|
+
import { getAriaProps as i, getErrorMessageId as a, getTextareaClasses as o, useFormFieldId as s, useFormFieldState as c } from "./utils/formFieldUtils.js";
|
|
7
|
+
import { useUncontrolledState as ee } from "./hooks/useUncontrolledState.js";
|
|
8
|
+
import { Label as l } from "./Label.js";
|
|
9
|
+
import { useTextarea as u } from "./Textarea/TextareaUtils.js";
|
|
10
|
+
import { useRef as d } from "react";
|
|
11
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
12
|
//#region src/components/Textarea/Textarea.tsx
|
|
12
|
-
var
|
|
13
|
-
let { ref: v, autoComplete: y, className: b, defaultValue: x, disabled: S, errorMessage: C, id: w, label: T, labelClassName: E, maxLength: D = 280, name: O, onBlur: k, onChange: A, onFocus: j, placeholder: M, required: N, state: P = "default", value: F, warningMessage: I, ...L } = _, R = s(w, O), z = a(R), B = `${R}-warning`, V = P === "error" ? z : P === "warning" && I ? B : void 0, H =
|
|
13
|
+
var m = "absolute right-4 top-4", h = (e) => e || "off", g = (e, n) => t("absolute bottom-2 right-3 text-xs pointer-events-none z-10 tabular-nums", e >= n ? "text-danger-400" : "text-text-secondary"), _ = (_) => {
|
|
14
|
+
let { ref: v, autoComplete: y, className: b, defaultValue: x, disabled: S, errorMessage: C, id: w, label: T, labelClassName: E, maxLength: D = 280, name: O, onBlur: k, onChange: A, onFocus: j, placeholder: M, required: N, state: P = "default", value: F, warningMessage: I, ...L } = _, R = s(w, O), z = a(R), B = `${R}-warning`, V = P === "error" ? z : P === "warning" && I ? B : void 0, H = d(null), U = v ?? H, [W, G] = ee({
|
|
14
15
|
value: F,
|
|
15
16
|
defaultValue: typeof x == "string" ? x : x == null ? "" : String(x),
|
|
16
17
|
onChange: A
|
|
17
|
-
}), { handleFocus: K, handleBlur: q, handleChange: J, handlePaste: Y } =
|
|
18
|
+
}), { handleFocus: K, handleBlur: q, handleChange: J, handlePaste: Y } = u({
|
|
18
19
|
maxLength: D,
|
|
19
20
|
value: W,
|
|
20
21
|
onChange: G,
|
|
21
22
|
onFocus: j,
|
|
22
23
|
onBlur: k
|
|
23
24
|
}), { isDisabled: X, isLoading: Z } = c(S, P), Q = i(P, L["aria-describedby"], N, V), $ = W?.length || 0, te = o(P, b);
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ p("div", {
|
|
25
26
|
className: "w-full",
|
|
26
27
|
children: [
|
|
27
|
-
T && /* @__PURE__ */
|
|
28
|
+
T && /* @__PURE__ */ f(l, {
|
|
28
29
|
"data-testid": "spectral-textarea-label",
|
|
29
30
|
htmlFor: R,
|
|
30
31
|
className: t("mb-2 block", X && "cursor-not-allowed opacity-50", E),
|
|
31
32
|
children: T
|
|
32
33
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ p("div", {
|
|
34
35
|
className: "relative",
|
|
35
36
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ f("textarea", {
|
|
37
38
|
"aria-multiline": "true",
|
|
38
|
-
autoComplete:
|
|
39
|
+
autoComplete: h(y),
|
|
39
40
|
className: te,
|
|
40
41
|
"data-state": P,
|
|
41
42
|
"data-testid": "spectral-textarea",
|
|
@@ -59,12 +60,12 @@ var h = "absolute right-4 top-4", ee = (e) => e || "off", g = (e, n) => t("absol
|
|
|
59
60
|
...Q,
|
|
60
61
|
...L
|
|
61
62
|
}),
|
|
62
|
-
Z && /* @__PURE__ */
|
|
63
|
-
className:
|
|
63
|
+
Z && /* @__PURE__ */ f("div", {
|
|
64
|
+
className: m,
|
|
64
65
|
"data-testid": "spectral-textarea-loading-icon",
|
|
65
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ f(e, { size: 24 })
|
|
66
67
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ p("div", {
|
|
68
69
|
"aria-label": $ + " of " + D + " characters used",
|
|
69
70
|
"aria-live": "polite",
|
|
70
71
|
className: g($, D),
|
|
@@ -78,15 +79,15 @@ var h = "absolute right-4 top-4", ee = (e) => e || "off", g = (e, n) => t("absol
|
|
|
78
79
|
})
|
|
79
80
|
]
|
|
80
81
|
}),
|
|
81
|
-
|
|
82
|
+
/* @__PURE__ */ f(n, {
|
|
82
83
|
dataTestId: "spectral-textarea-error-message",
|
|
83
84
|
id: z,
|
|
84
|
-
message: C
|
|
85
|
+
message: P === "error" ? C : null
|
|
85
86
|
}),
|
|
86
|
-
|
|
87
|
+
/* @__PURE__ */ f(r, {
|
|
87
88
|
dataTestId: "spectral-textarea-warning-message",
|
|
88
89
|
id: B,
|
|
89
|
-
message: I
|
|
90
|
+
message: P === "warning" ? I : null
|
|
90
91
|
})
|
|
91
92
|
]
|
|
92
93
|
});
|
package/dist/Toggle.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const toggleVariants: (props?: ({
|
|
|
12
12
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
13
13
|
layout?: "default" | "expanded" | null | undefined;
|
|
14
14
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
|
-
export declare const Toggle: ({
|
|
15
|
+
export declare const Toggle: ({ ref, className, variant, size, layout, disabled, activeColor, activeTextColor, style, ...props }: ToggleProps & {
|
|
16
16
|
ref?: Ref<HTMLButtonElement>;
|
|
17
17
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
//# sourceMappingURL=Toggle.d.ts.map
|
package/dist/Toggle.js
CHANGED
|
@@ -31,23 +31,23 @@ var i = /^(#|rgb|hsl|oklch|oklab|lab|lch|color|var\(|transparent|currentcolor)/i
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
defaultVariants: {
|
|
34
|
-
|
|
34
|
+
variant: "default",
|
|
35
35
|
size: "default",
|
|
36
|
-
|
|
36
|
+
layout: "default"
|
|
37
37
|
}
|
|
38
|
-
}), l = ({
|
|
39
|
-
ref:
|
|
40
|
-
disabled:
|
|
38
|
+
}), l = ({ ref: t, className: i, variant: a, size: o, layout: l, disabled: u, activeColor: d, activeTextColor: f, style: p, ...m }) => /* @__PURE__ */ r(n, {
|
|
39
|
+
ref: t,
|
|
40
|
+
disabled: u,
|
|
41
41
|
"data-slot": "toggle",
|
|
42
42
|
"data-testid": "spectral-toggle",
|
|
43
43
|
className: e(c({
|
|
44
|
-
variant:
|
|
45
|
-
size:
|
|
44
|
+
variant: a,
|
|
45
|
+
size: o,
|
|
46
46
|
layout: l
|
|
47
|
-
}),
|
|
47
|
+
}), i),
|
|
48
48
|
style: {
|
|
49
|
-
...s(
|
|
50
|
-
...
|
|
49
|
+
...s(d, f),
|
|
50
|
+
...p
|
|
51
51
|
},
|
|
52
52
|
...m
|
|
53
53
|
});
|
|
@@ -30,7 +30,7 @@ export type ToggleGroupItemProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
30
30
|
/** @deprecated This prop is ignored - pressed state is managed by ToggleGroup */
|
|
31
31
|
defaultPressed?: boolean;
|
|
32
32
|
};
|
|
33
|
-
export declare const ToggleGroupItemBase: ({
|
|
33
|
+
export declare const ToggleGroupItemBase: ({ ref, value, disabled, className, children, onKeyDown, onClick, ...rest }: ToggleGroupItemProps & {
|
|
34
34
|
ref?: Ref<HTMLButtonElement>;
|
|
35
35
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export {};
|
|
@@ -6,7 +6,7 @@ import { createContext as n, useCallback as r, useContext as i, useEffect as a,
|
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ToggleGroup/ToggleGroupBase.tsx
|
|
8
8
|
var d = n(null), f = (n) => {
|
|
9
|
-
let { className: i, defaultValue: a, disabled: o = !1, loop: f = !0, name: p, onValueChange: m, orientation: h = "horizontal", type: g = "single", value: _, "data-
|
|
9
|
+
let { className: i, defaultValue: a, disabled: o = !1, loop: f = !0, name: p, onValueChange: m, orientation: h = "horizontal", type: g = "single", value: _, "data-variant": v, "data-size": y, "data-slot": b, "data-layout": x, ...S } = n, C = g === "multiple", [w, T] = e({
|
|
10
10
|
defaultValue: a === void 0 ? C ? [] : "" : a,
|
|
11
11
|
onChange: m,
|
|
12
12
|
value: _
|
|
@@ -52,11 +52,11 @@ var d = n(null), f = (n) => {
|
|
|
52
52
|
return /* @__PURE__ */ u("div", {
|
|
53
53
|
className: i,
|
|
54
54
|
"data-disabled": o ? "" : void 0,
|
|
55
|
-
"data-layout":
|
|
55
|
+
"data-layout": x,
|
|
56
56
|
"data-orientation": h,
|
|
57
57
|
"data-size": y,
|
|
58
58
|
"data-slot": b,
|
|
59
|
-
"data-variant":
|
|
59
|
+
"data-variant": v,
|
|
60
60
|
role: "group",
|
|
61
61
|
...S,
|
|
62
62
|
children: [
|
|
@@ -76,19 +76,19 @@ var d = n(null), f = (n) => {
|
|
|
76
76
|
}, e)) : null
|
|
77
77
|
]
|
|
78
78
|
});
|
|
79
|
-
}, p = function({
|
|
79
|
+
}, p = function({ ref: e, value: t, disabled: n, className: s, children: u, onKeyDown: f, onClick: p, ...m }) {
|
|
80
80
|
let h = i(d);
|
|
81
81
|
if (!h) throw Error("ToggleGroupItem must be used within ToggleGroup");
|
|
82
82
|
let { type: g, orientation: _, groupDisabled: v, setValue: y, isItemPressed: b, itemsSnapshot: x, register: S } = h, C = c(null);
|
|
83
|
-
o(
|
|
83
|
+
o(e, () => {
|
|
84
84
|
if (!C.current) throw Error("ToggleGroupItem button ref is not set");
|
|
85
85
|
return C.current;
|
|
86
|
-
}), a(() => S(
|
|
87
|
-
let w = b(
|
|
88
|
-
if (!(v || n)) if (g === "single") y(w ? "" :
|
|
86
|
+
}), a(() => S(t, C.current), [S, t]);
|
|
87
|
+
let w = b(t), T = r(() => {
|
|
88
|
+
if (!(v || n)) if (g === "single") y(w ? "" : t);
|
|
89
89
|
else {
|
|
90
90
|
let e = h.value;
|
|
91
|
-
y(w ? e.filter((e) => e !==
|
|
91
|
+
y(w ? e.filter((e) => e !== t) : [...e, t]);
|
|
92
92
|
}
|
|
93
93
|
}, [
|
|
94
94
|
h.value,
|
|
@@ -97,28 +97,28 @@ var d = n(null), f = (n) => {
|
|
|
97
97
|
w,
|
|
98
98
|
y,
|
|
99
99
|
g,
|
|
100
|
-
|
|
100
|
+
t
|
|
101
101
|
]), E = r((e) => {
|
|
102
|
-
if (
|
|
102
|
+
if (f && f(e), e.defaultPrevented) return;
|
|
103
103
|
if (e.key === " " || e.key === "Enter") {
|
|
104
104
|
e.preventDefault(), T();
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
let
|
|
108
|
-
e.key ===
|
|
107
|
+
let n = x(), r = n.findIndex((e) => e.val === t), i = _ === "horizontal" ? "ArrowLeft" : "ArrowUp", a = _ === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
108
|
+
e.key === i ? (e.preventDefault(), h.focusItemByIndex(r - 1)) : e.key === a ? (e.preventDefault(), h.focusItemByIndex(r + 1)) : e.key === "Home" ? (e.preventDefault(), h.focusItemByIndex(0)) : e.key === "End" && (e.preventDefault(), h.focusItemByIndex(n.length - 1));
|
|
109
109
|
}, [
|
|
110
110
|
h,
|
|
111
111
|
x,
|
|
112
|
-
|
|
112
|
+
f,
|
|
113
113
|
_,
|
|
114
114
|
T,
|
|
115
|
-
|
|
115
|
+
t
|
|
116
116
|
]), D = r((e) => {
|
|
117
|
-
|
|
118
|
-
}, [
|
|
117
|
+
p && p(e), !e.defaultPrevented && T();
|
|
118
|
+
}, [p, T]);
|
|
119
119
|
return /* @__PURE__ */ l("button", {
|
|
120
120
|
"aria-pressed": w,
|
|
121
|
-
className:
|
|
121
|
+
className: s,
|
|
122
122
|
"data-disabled": v || n ? "" : void 0,
|
|
123
123
|
"data-state": w ? "on" : "off",
|
|
124
124
|
disabled: v || n,
|
|
@@ -127,7 +127,7 @@ var d = n(null), f = (n) => {
|
|
|
127
127
|
ref: C,
|
|
128
128
|
type: "button",
|
|
129
129
|
...m,
|
|
130
|
-
children:
|
|
130
|
+
children: u
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
133
|
//#endregion
|
|
@@ -8,13 +8,13 @@ import { useContext as a } from "react";
|
|
|
8
8
|
import { jsx as o } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/ToggleGroup/ToggleGroupItem.tsx
|
|
10
10
|
var s = ({ activeColor: s, activeTextColor: c, children: l, className: u, layout: d, ref: f, size: p, style: m, value: h, variant: g, ..._ }) => {
|
|
11
|
-
let v = a(r), y = v.variant
|
|
11
|
+
let v = a(r), y = g ?? v.variant, b = p ?? v.size, x = d ?? v.layout, S = s ?? v.activeColor, C = c ?? v.activeTextColor;
|
|
12
12
|
return /* @__PURE__ */ o(i, {
|
|
13
13
|
className: e(n({
|
|
14
14
|
variant: y,
|
|
15
15
|
size: b,
|
|
16
16
|
layout: x
|
|
17
|
-
}), "group
|
|
17
|
+
}), "group rounded-none shadow-none focus:z-10 focus-visible:z-10 data-[variant=outline]:border-toggle-border data-[variant=outline]:data-[state=on]:border-toggle-border--active", u),
|
|
18
18
|
"data-layout": x,
|
|
19
19
|
"data-size": b,
|
|
20
20
|
"data-slot": "toggle-group-item",
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { DropdownMenuOption } from '../DropdownMenu/DropdownMenu';
|
|
1
|
+
import { DropdownMenuOption, DropdownMenuProps } from '../DropdownMenu/DropdownMenu';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { ToggleGroupItemProps } from './ToggleGroupItem';
|
|
4
4
|
export interface ToggleGroupSplitMenuItemProps extends Omit<ToggleGroupItemProps, 'children'> {
|
|
5
5
|
children: ReactNode;
|
|
6
|
+
dropdownAlign?: DropdownMenuProps['align'];
|
|
6
7
|
dropdownAriaLabel: string;
|
|
7
8
|
dropdownButtonClassName?: string;
|
|
9
|
+
dropdownCollisionPadding?: DropdownMenuProps['collisionPadding'];
|
|
8
10
|
dropdownButtonStyle?: CSSProperties;
|
|
9
11
|
dropdownOptions: DropdownMenuOption[];
|
|
12
|
+
dropdownSide?: DropdownMenuProps['side'];
|
|
10
13
|
dropdownValue?: string | string[];
|
|
11
14
|
dropdownValueLabel?: string;
|
|
12
15
|
onDropdownValueChange?: (value: string | string[]) => void;
|
|
13
16
|
triggerIcon?: ReactNode;
|
|
14
17
|
}
|
|
15
18
|
export declare const ToggleGroupSplitMenuItem: {
|
|
16
|
-
({ activeColor, activeTextColor, children, className, dropdownAriaLabel, dropdownButtonClassName, dropdownButtonStyle, dropdownOptions, dropdownValue, dropdownValueLabel, layout, onDropdownValueChange, onKeyDown, size, style, triggerIcon, value, variant, ...props }: ToggleGroupSplitMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
({ activeColor, activeTextColor, children, className, dropdownAlign, dropdownAriaLabel, dropdownButtonClassName, dropdownButtonStyle, dropdownCollisionPadding, dropdownOptions, dropdownSide, dropdownValue, dropdownValueLabel, layout, onDropdownValueChange, onKeyDown, size, style, triggerIcon, value, variant, ...props }: ToggleGroupSplitMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
17
20
|
displayName: string;
|
|
18
21
|
};
|
|
19
22
|
//# sourceMappingURL=ToggleGroupSplitMenuItem.d.ts.map
|
|
@@ -5,71 +5,110 @@ import { t } from "../twUtils-BpqlKSeB.js";
|
|
|
5
5
|
import { getActiveColorStyle as n, toggleVariants as r } from "../Toggle.js";
|
|
6
6
|
import { ToggleGroupContext as i } from "./ToggleGroup.context.js";
|
|
7
7
|
import { ToggleGroupItem as a } from "./ToggleGroupItem.js";
|
|
8
|
-
import { t as o } from "../DropdownMenu-
|
|
9
|
-
import { useContext as s,
|
|
10
|
-
import { Fragment as
|
|
8
|
+
import { t as o } from "../DropdownMenu-BO_RPCVU.js";
|
|
9
|
+
import { useContext as s, useRef as c, useState as l } from "react";
|
|
10
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/ToggleGroup/ToggleGroupSplitMenuItem.tsx
|
|
12
|
-
var
|
|
13
|
-
let [
|
|
14
|
-
...n(
|
|
15
|
-
...
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
var p = ({ activeColor: p, activeTextColor: m, children: h, className: g, dropdownAlign: _ = "end", dropdownAriaLabel: v, dropdownButtonClassName: y, dropdownButtonStyle: b, dropdownCollisionPadding: x = 12, dropdownOptions: S, dropdownSide: C = "bottom", dropdownValue: w, dropdownValueLabel: T, layout: E, onDropdownValueChange: D, onKeyDown: O, size: k, style: A, triggerIcon: j = /* @__PURE__ */ d(e, { size: 16 }), value: M, variant: N, ...P }) => {
|
|
13
|
+
let [F, I] = l(!1), L = c(null), R = c(null), z = c(null), B = c(null), V = P.disabled ?? !1, H = s(i), U = N ?? H.variant, W = k ?? H.size, G = E ?? H.layout, K = H.orientation ?? "horizontal", q = p ?? H.activeColor, J = m ?? H.activeTextColor, Y = {
|
|
14
|
+
...n(q, J),
|
|
15
|
+
...A
|
|
16
|
+
}, X = (e = "first") => {
|
|
17
|
+
let t = L.current;
|
|
18
|
+
if (!t) return;
|
|
19
|
+
let n = Array.from(t.querySelectorAll("[role=\"menuitem\"]:not([data-disabled]), [role=\"menuitemcheckbox\"]:not([data-disabled]), [role=\"menuitemradio\"]:not([data-disabled])"));
|
|
20
|
+
if (n.length !== 0) {
|
|
21
|
+
if (e === "last") {
|
|
22
|
+
n[n.length - 1]?.focus();
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
n[0]?.focus();
|
|
26
|
+
}
|
|
27
|
+
}, Z = (e) => {
|
|
28
|
+
B.current = e, I(!0), setTimeout(() => {
|
|
29
|
+
X("first");
|
|
30
|
+
}, 0);
|
|
31
|
+
}, Q = () => {
|
|
32
|
+
let e = B.current === "primary" ? R.current : z.current;
|
|
33
|
+
B.current = null, e?.focus();
|
|
34
|
+
}, $ = (e) => {
|
|
35
|
+
if (e) {
|
|
36
|
+
B.current ||= "chevron", I(!0), setTimeout(() => {
|
|
37
|
+
X("first");
|
|
38
|
+
}, 0);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
I(!1), Q();
|
|
42
|
+
}, ee = (e) => {
|
|
43
|
+
if (e.key === "ArrowDown" && K !== "vertical") {
|
|
44
|
+
e.preventDefault(), Z("primary"), O && O(e);
|
|
19
45
|
return;
|
|
20
46
|
}
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
if (
|
|
24
|
-
e.preventDefault(),
|
|
47
|
+
O && O(e);
|
|
48
|
+
}, te = (e) => {
|
|
49
|
+
if (F && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
|
|
50
|
+
e.preventDefault(), X(e.key === "ArrowUp" ? "last" : "first"), O && O(e);
|
|
25
51
|
return;
|
|
26
52
|
}
|
|
27
|
-
|
|
53
|
+
if (e.key === "ArrowDown" || e.key === "Enter" || e.key === " " || e.key === "Space" || e.key === "Spacebar") {
|
|
54
|
+
e.preventDefault(), Z("chevron"), O && O(e);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
O && O(e);
|
|
28
58
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
activeColor:
|
|
31
|
-
activeTextColor:
|
|
32
|
-
"aria-label":
|
|
33
|
-
className: t("peer/spectral-split-menu rounded-r-none! border-r-0",
|
|
34
|
-
layout:
|
|
35
|
-
onKeyDown:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
59
|
+
return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(a, {
|
|
60
|
+
activeColor: q,
|
|
61
|
+
activeTextColor: J,
|
|
62
|
+
"aria-label": P["aria-label"] ? `${P["aria-label"]}${T ? `, ${T}` : ""}` : void 0,
|
|
63
|
+
className: t("peer/spectral-split-menu rounded-r-none! border-r-0", g),
|
|
64
|
+
layout: G,
|
|
65
|
+
onKeyDown: ee,
|
|
66
|
+
ref: R,
|
|
67
|
+
size: W,
|
|
68
|
+
style: Y,
|
|
69
|
+
value: M,
|
|
70
|
+
variant: U,
|
|
71
|
+
...(({ "aria-label": e, ...t }) => t)(P),
|
|
72
|
+
children: h
|
|
73
|
+
}), /* @__PURE__ */ d(o, {
|
|
74
|
+
align: _,
|
|
43
75
|
asChild: !0,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
76
|
+
collisionPadding: x,
|
|
77
|
+
disabled: V,
|
|
78
|
+
dropdownContentRef: L,
|
|
79
|
+
onOpenChange: $,
|
|
80
|
+
onValueChange: D,
|
|
81
|
+
open: F,
|
|
82
|
+
options: S,
|
|
83
|
+
side: C,
|
|
84
|
+
trigger: /* @__PURE__ */ d("button", {
|
|
85
|
+
"aria-expanded": F,
|
|
51
86
|
"aria-haspopup": "menu",
|
|
52
|
-
"aria-label":
|
|
87
|
+
"aria-label": v,
|
|
53
88
|
className: t(r({
|
|
54
|
-
layout:
|
|
55
|
-
size:
|
|
56
|
-
variant:
|
|
57
|
-
}), "
|
|
58
|
-
"data-layout":
|
|
59
|
-
"data-size":
|
|
60
|
-
"data-variant":
|
|
61
|
-
disabled:
|
|
62
|
-
onKeyDown:
|
|
89
|
+
layout: G,
|
|
90
|
+
size: W,
|
|
91
|
+
variant: U
|
|
92
|
+
}), "px-1 min-w-6 data-[size=sm]:min-w-5 data-[size=sm]:px-0.5 relative rounded-none border-l-0 shadow-none", "data-[size=lg]:min-w-7 data-[size=lg]:px-1.5 data-[variant=outline]:border-toggle-border", "hover:opacity-100! data-[variant=outline]:hover:border-toggle-border", "before:inset-y-2 before:left-0 before:pointer-events-none before:absolute before:w-px before:bg-border-secondary/6", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent", "peer-data-[state=on]/spectral-split-menu:border-toggle-border--active!", "peer-data-[state=on]/spectral-split-menu:bg-toggle-bg--active", "peer-data-[state=on]/spectral-split-menu:hover:border-toggle-border--active!", "peer-data-[state=on]/spectral-split-menu:hover:bg-toggle-bg--active!", "peer-data-[state=on]/spectral-split-menu:text-toggle-text--active", "peer-data-[state=on]/spectral-split-menu:hover:text-toggle-text--active!", y),
|
|
93
|
+
"data-layout": G,
|
|
94
|
+
"data-size": W,
|
|
95
|
+
"data-variant": U,
|
|
96
|
+
disabled: V,
|
|
97
|
+
onKeyDown: te,
|
|
98
|
+
onPointerDown: () => {
|
|
99
|
+
B.current = "chevron";
|
|
100
|
+
},
|
|
101
|
+
ref: z,
|
|
63
102
|
style: {
|
|
64
|
-
...
|
|
65
|
-
...
|
|
103
|
+
...Y,
|
|
104
|
+
...b
|
|
66
105
|
},
|
|
67
106
|
type: "button",
|
|
68
|
-
children:
|
|
107
|
+
children: j
|
|
69
108
|
}),
|
|
70
|
-
value:
|
|
109
|
+
value: w
|
|
71
110
|
})] });
|
|
72
111
|
};
|
|
73
|
-
|
|
112
|
+
p.displayName = "ToggleGroupSplitMenuItem";
|
|
74
113
|
//#endregion
|
|
75
|
-
export {
|
|
114
|
+
export { p as ToggleGroupSplitMenuItem };
|
package/dist/ToggleGroup.js
CHANGED
|
@@ -10,7 +10,7 @@ import "react";
|
|
|
10
10
|
import { jsx as a } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/ToggleGroup/ToggleGroup.tsx
|
|
12
12
|
var o = ({ className: r, variant: i, size: o, layout: s, activeColor: c, activeTextColor: l, orientation: u, children: d, ...f }) => /* @__PURE__ */ a(n, {
|
|
13
|
-
className: e("group/toggle-group rounded-md [&_button:first-of-type]:rounded-l-md [&_button:last-of-type]:rounded-r-md data-[variant='outline']:gap-0
|
|
13
|
+
className: e("group/toggle-group rounded-md [&_button:first-of-type]:rounded-l-md [&_button:last-of-type]:rounded-r-md data-[variant='outline']:gap-0 flex h-fit w-fit items-center data-[layout='expanded']:w-full data-[variant='outline']:[--color-toggle-border:var(--color-toggle-outline-border)] data-[variant='outline']:[&_button:not(:first-of-type)]:border-l-0", r),
|
|
14
14
|
"data-layout": s,
|
|
15
15
|
"data-size": o,
|
|
16
16
|
"data-slot": "toggle-group",
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { DataCard, type DataCardProps } from './components/DataCard/DataCard';
|
|
|
12
12
|
export { DateTimePicker, type DateTimePickerProps } from './components/DateTimePicker/DateTimePicker';
|
|
13
13
|
export { Dialog } from './components/Dialog/Dialog';
|
|
14
14
|
export { Drawer, type DrawerProps } from './components/Drawer/Drawer';
|
|
15
|
+
export { ErrorMessage, WarningMessage, type FormFieldMessageValue } from './components/FormFieldMessage/FormFieldMessage';
|
|
15
16
|
export { HoverCard, HoverCardContent, HoverCardTrigger, type HoverCardProps } from './components/HoverCard/HoverCard';
|
|
16
17
|
export { Input, type InputProps } from './components/Input/Input';
|
|
17
18
|
export { InputNumeric, type InputNumericProps } from './components/InputNumeric/InputNumeric';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAA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