@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.
Files changed (49) hide show
  1. package/dist/.js +41 -40
  2. package/dist/Button.d.ts +1 -1
  3. package/dist/Button.js +46 -45
  4. package/dist/Checkbox.js +6 -5
  5. package/dist/{Combobox-DCCcIDgq.js → Combobox-DRQqx0os.js} +9 -8
  6. package/dist/Combobox.js +1 -1
  7. package/dist/ControlGroup/ControlGroupSelect.d.ts +5 -1
  8. package/dist/ControlGroup/ControlGroupSelect.js +73 -67
  9. package/dist/ControlGroup.js +29 -24
  10. package/dist/DateTimePicker/TimePeriodSelect.js +1 -1
  11. package/dist/DateTimePicker.js +8 -7
  12. package/dist/{DropdownMenu-B8I8IRcu.js → DropdownMenu-BO_RPCVU.js} +204 -202
  13. package/dist/DropdownMenu.d.ts +3 -2
  14. package/dist/DropdownMenu.js +1 -1
  15. package/dist/FormFieldMessage.d.ts +11 -0
  16. package/dist/FormFieldMessage.js +55 -0
  17. package/dist/Input.d.ts +1 -0
  18. package/dist/Input.js +68 -67
  19. package/dist/InputNumeric.js +3 -14
  20. package/dist/{InputOTP-DyhesOLs.js → InputOTP-DLn7ja7J.js} +5 -4
  21. package/dist/InputOTP.js +1 -1
  22. package/dist/MultiSelect/MultiSelectBase.js +105 -104
  23. package/dist/{RadioGroup-BsBK247l.js → RadioGroup-D-XjCU4Q.js} +33 -28
  24. package/dist/RadioGroup.js +1 -1
  25. package/dist/Select.js +21 -20
  26. package/dist/{Switch-Vep4hsq4.js → Switch-CSmXtkia.js} +26 -25
  27. package/dist/Switch.js +1 -1
  28. package/dist/Textarea/TextareaUtils.js +4 -8
  29. package/dist/Textarea.js +23 -22
  30. package/dist/Toggle.d.ts +1 -1
  31. package/dist/Toggle.js +10 -10
  32. package/dist/ToggleGroup/ToggleGroupBase.d.ts +1 -1
  33. package/dist/ToggleGroup/ToggleGroupBase.js +19 -19
  34. package/dist/ToggleGroup/ToggleGroupItem.js +2 -2
  35. package/dist/ToggleGroup/ToggleGroupSplitMenuItem.d.ts +5 -2
  36. package/dist/ToggleGroup/ToggleGroupSplitMenuItem.js +91 -52
  37. package/dist/ToggleGroup.js +1 -1
  38. package/dist/index.d.ts +1 -0
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/primitives/select.d.ts +1 -1
  41. package/dist/primitives/select.d.ts.map +1 -1
  42. package/dist/primitives/select.js +1 -1
  43. package/dist/primitives/textarea.js +1 -1
  44. package/dist/{select-oAOoVl5g.js → select-DFE8xm1L.js} +230 -259
  45. package/dist/styles/spectral.css +1 -1
  46. package/dist/utils/formFieldUtils.d.ts +1 -13
  47. package/dist/utils/formFieldUtils.d.ts.map +1 -1
  48. package/dist/utils/formFieldUtils.js +48 -69
  49. 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, useFormFieldId as r } from "./utils/formFieldUtils.js";
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 = w === "disabled" ? "default" : w, N = !!c, P = g ?? m, F = `${j}-error`, I = `${j}-warning`, L = M === "error" && d && F ? F : M === "warning" && D && I ? I : void 0, R = E === "squared";
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": N ? "disabled" : M,
57
+ "data-state": w,
57
58
  children: [
58
- h === "left" && !f && P && /* @__PURE__ */ l(i, {
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: P
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": [L, O].filter(Boolean).join(" ") || void 0,
70
- "aria-invalid": M === "error" ? !0 : void 0,
71
- "aria-label": k ?? (f ? P : void 0),
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: N,
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": [L, O].filter(Boolean).join(" ") || void 0,
102
- "aria-invalid": M === "error" ? !0 : void 0,
103
- "aria-label": k ?? (f ? P : void 0),
104
- className: e(R ? "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),
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: N,
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, R ? "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
+ 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 && P && /* @__PURE__ */ l(i, {
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: P
122
+ children: N
122
123
  }),
123
- f && P && /* @__PURE__ */ l(i, {
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: P
128
+ children: N
128
129
  }),
129
- M === "error" && d && F && /* @__PURE__ */ l(t, {
130
+ /* @__PURE__ */ l(t, {
130
131
  dataTestId: "spectral-switch-error-message",
131
- id: F,
132
- message: d
132
+ id: P,
133
+ message: w === "error" ? d ?? null : null
133
134
  }),
134
- M === "warning" && D && I && /* @__PURE__ */ l(n, {
135
+ /* @__PURE__ */ l(n, {
135
136
  dataTestId: "spectral-switch-warning-message",
136
- id: I,
137
- message: D
137
+ id: F,
138
+ message: w === "warning" ? D ?? null : null
138
139
  })
139
140
  ]
140
141
  });
package/dist/Switch.js CHANGED
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import { t as e } from "./Switch-Vep4hsq4.js";
2
+ import { t as e } from "./Switch-CSmXtkia.js";
3
3
  export { e as Switch };
@@ -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, s = o.selectionStart || 0, c = o.selectionEnd || 0, l = a.substring(0, s), u = a.substring(c);
9
- if ((l + i + u).length > t) {
10
- e.preventDefault();
11
- let n = c - s, d = t - a.length + n, f = i.substring(0, Math.max(0, d)), p = l + f + u;
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, getAriaProps as i, getErrorMessageId as a, getTextareaClasses as o, useFormFieldId as s, useFormFieldState as c } from "./utils/formFieldUtils.js";
6
- import { useUncontrolledState as l } from "./hooks/useUncontrolledState.js";
7
- import { Label as u } from "./Label.js";
8
- import { useTextarea as d } from "./Textarea/TextareaUtils.js";
9
- import { useRef as f } from "react";
10
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
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 h = "absolute right-4 top-4", ee = (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"), _ = (_) => {
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 = f(null), U = v ?? H, [W, G] = l({
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 } = d({
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__ */ m("div", {
25
+ return /* @__PURE__ */ p("div", {
25
26
  className: "w-full",
26
27
  children: [
27
- T && /* @__PURE__ */ p(u, {
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__ */ m("div", {
34
+ /* @__PURE__ */ p("div", {
34
35
  className: "relative",
35
36
  children: [
36
- /* @__PURE__ */ p("textarea", {
37
+ /* @__PURE__ */ f("textarea", {
37
38
  "aria-multiline": "true",
38
- autoComplete: ee(y),
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__ */ p("div", {
63
- className: h,
63
+ Z && /* @__PURE__ */ f("div", {
64
+ className: m,
64
65
  "data-testid": "spectral-textarea-loading-icon",
65
- children: /* @__PURE__ */ p(e, { size: 24 })
66
+ children: /* @__PURE__ */ f(e, { size: 24 })
66
67
  }),
67
- /* @__PURE__ */ m("div", {
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
- P === "error" && C && /* @__PURE__ */ p(n, {
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
- P === "warning" && I && /* @__PURE__ */ p(r, {
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: ({ activeColor, activeTextColor, className, disabled, layout, ref, size, style, variant, ...props }: ToggleProps & {
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
- layout: "default",
34
+ variant: "default",
35
35
  size: "default",
36
- variant: "default"
36
+ layout: "default"
37
37
  }
38
- }), l = ({ activeColor: t, activeTextColor: i, className: a, disabled: o, layout: l, ref: u, size: d, style: f, variant: p, ...m }) => /* @__PURE__ */ r(n, {
39
- ref: u,
40
- disabled: o,
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: p,
45
- size: d,
44
+ variant: a,
45
+ size: o,
46
46
  layout: l
47
- }), a),
47
+ }), i),
48
48
  style: {
49
- ...s(t, i),
50
- ...f
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: ({ children, className, disabled, onClick, onKeyDown, ref, value, ...rest }: ToggleGroupItemProps & {
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-layout": v, "data-size": y, "data-slot": b, "data-variant": x, ...S } = n, C = g === "multiple", [w, T] = e({
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": v,
55
+ "data-layout": x,
56
56
  "data-orientation": h,
57
57
  "data-size": y,
58
58
  "data-slot": b,
59
- "data-variant": x,
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({ children: e, className: t, disabled: n, onClick: s, onKeyDown: u, ref: f, value: p, ...m }) {
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(f, () => {
83
+ o(e, () => {
84
84
  if (!C.current) throw Error("ToggleGroupItem button ref is not set");
85
85
  return C.current;
86
- }), a(() => S(p, C.current), [S, p]);
87
- let w = b(p), T = r(() => {
88
- if (!(v || n)) if (g === "single") y(w ? "" : p);
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 !== p) : [...e, p]);
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
- p
100
+ t
101
101
  ]), E = r((e) => {
102
- if (u && u(e), e.defaultPrevented) return;
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 t = x(), n = t.findIndex((e) => e.val === p), r = _ === "horizontal" ? "ArrowLeft" : "ArrowUp", i = _ === "horizontal" ? "ArrowRight" : "ArrowDown";
108
- e.key === r ? (e.preventDefault(), h.focusItemByIndex(n - 1)) : e.key === i ? (e.preventDefault(), h.focusItemByIndex(n + 1)) : e.key === "Home" ? (e.preventDefault(), h.focusItemByIndex(0)) : e.key === "End" && (e.preventDefault(), h.focusItemByIndex(t.length - 1));
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
- u,
112
+ f,
113
113
  _,
114
114
  T,
115
- p
115
+ t
116
116
  ]), D = r((e) => {
117
- s && s(e), !e.defaultPrevented && T();
118
- }, [s, T]);
117
+ p && p(e), !e.defaultPrevented && T();
118
+ }, [p, T]);
119
119
  return /* @__PURE__ */ l("button", {
120
120
  "aria-pressed": w,
121
- className: t,
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: e
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 ?? g, b = v.size ?? p, x = v.layout ?? d, S = s ?? v.activeColor, C = c ?? v.activeTextColor;
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 data-[variant=outline]:hover:border-togglegroup-border rounded-none shadow-none focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:border-toggle-outline-border", u),
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-B8I8IRcu.js";
9
- import { useContext as s, useState as c } from "react";
10
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
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 f = ({ activeColor: f, activeTextColor: p, children: m, className: h, dropdownAriaLabel: g, dropdownButtonClassName: _, dropdownButtonStyle: v, dropdownOptions: y, dropdownValue: b, dropdownValueLabel: x, layout: S, onDropdownValueChange: C, onKeyDown: w, size: T, style: E, triggerIcon: D = /* @__PURE__ */ u(e, { size: 16 }), value: O, variant: k, ...A }) => {
13
- let [j, M] = c(!1), N = A.disabled ?? !1, P = s(i), F = k ?? P.variant, I = T ?? P.size, L = S ?? P.layout, R = P.orientation ?? "horizontal", z = f ?? P.activeColor, B = p ?? P.activeTextColor, V = {
14
- ...n(z, B),
15
- ...E
16
- }, H = (e) => {
17
- if (e.key === "ArrowDown" && R !== "vertical") {
18
- e.preventDefault(), M(!0), w && w(e);
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
- w && w(e);
22
- }, U = (e) => {
23
- if (e.key === "ArrowDown" || e.key === "Space" || e.key === "Spacebar") {
24
- e.preventDefault(), M(!0), w && w(e);
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
- w && w(e);
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__ */ d(l, { children: [/* @__PURE__ */ u(a, {
30
- activeColor: z,
31
- activeTextColor: B,
32
- "aria-label": A["aria-label"] ? `${A["aria-label"]}${x ? `, ${x}` : ""}` : void 0,
33
- className: t("peer/spectral-split-menu rounded-r-none! border-r-0", h),
34
- layout: L,
35
- onKeyDown: H,
36
- size: I,
37
- style: V,
38
- value: O,
39
- variant: F,
40
- ...(({ "aria-label": e, ...t }) => t)(A),
41
- children: m
42
- }), /* @__PURE__ */ u(o, {
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
- disabled: N,
45
- onOpenChange: M,
46
- onValueChange: C,
47
- open: j,
48
- options: y,
49
- trigger: /* @__PURE__ */ u("button", {
50
- "aria-expanded": j,
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": g,
87
+ "aria-label": v,
53
88
  className: t(r({
54
- layout: L,
55
- size: I,
56
- variant: F
57
- }), "-ml-0.5 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-outline-border", "hover:opacity-100! data-[variant=outline]:hover:border-toggle-outline-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-primary", "peer-data-[state=on]/spectral-split-menu:bg-toggle-bg--active", "peer-data-[state=on]/spectral-split-menu:hover:bg-toggle-bg--active!", "peer-data-[state=on]/spectral-split-menu:text-toggle-text--active", _),
58
- "data-layout": L,
59
- "data-size": I,
60
- "data-variant": F,
61
- disabled: N,
62
- onKeyDown: U,
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
- ...V,
65
- ...v
103
+ ...Y,
104
+ ...b
66
105
  },
67
106
  type: "button",
68
- children: D
107
+ children: j
69
108
  }),
70
- value: b
109
+ value: w
71
110
  })] });
72
111
  };
73
- f.displayName = "ToggleGroupSplitMenuItem";
112
+ p.displayName = "ToggleGroupSplitMenuItem";
74
113
  //#endregion
75
- export { f as ToggleGroupSplitMenuItem };
114
+ export { p as ToggleGroupSplitMenuItem };
@@ -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.5 flex h-fit w-fit items-center data-[layout='expanded']:w-full", r),
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';
@@ -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;AACjF,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,M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