@spear-ai/spectral 1.12.5 → 1.13.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/.js +18 -16
- package/dist/{Accordion-Cyrb2byI.js → Accordion-dVZHqyv8.js} +5 -5
- package/dist/Accordion.js +1 -1
- package/dist/Alert/AlertBase.js +2 -2
- package/dist/Alert.js +1 -1
- package/dist/{AnimatePresence-D9FLxIGV.js → AnimatePresence-Bz_JZ2ah.js} +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +2 -2
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup/ButtonGroupButton.js +2 -2
- package/dist/ButtonGroup.js +2 -2
- package/dist/ButtonIcon.js +1 -1
- package/dist/{Calendar-2UVWeLYp.js → Calendar-FXWVuKWS.js} +2 -2
- package/dist/Checkbox/CheckboxBase.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Combination-9q50p_Vu.js → Combination-MimnVFUU.js} +2 -2
- package/dist/{Combobox-CWYypzjZ.js → Combobox-DCCcIDgq.js} +18 -17
- package/dist/Combobox.js +1 -1
- package/dist/ControlGroup/ControlGroupSelect.js +4 -4
- package/dist/ControlGroup.js +2 -2
- package/dist/DataCard/Card.js +1 -1
- package/dist/DataCard.js +1 -1
- package/dist/DateTimePicker/Calendar.js +1 -1
- package/dist/DateTimePicker/DateTimeDisplayInput.js +2 -2
- package/dist/DateTimePicker/DateTimeInput.js +2 -2
- package/dist/DateTimePicker/DateTimeUtils.js +1 -1
- package/dist/DateTimePicker/TimePeriodSelect.js +2 -2
- package/dist/DateTimePicker/TimePicker.js +2 -2
- package/dist/DateTimePicker.js +3 -3
- package/dist/Dialog.js +3 -3
- package/dist/Drawer.js +1 -1
- package/dist/DropdownMenu-B8I8IRcu.js +868 -0
- package/dist/DropdownMenu.js +2 -868
- package/dist/{HoverCard-BGpW6LnA.js → HoverCard-BhxgELKP.js} +5 -5
- package/dist/HoverCard.js +1 -1
- package/dist/IconsAnimated/PanelLeftCloseIcon.js +3 -3
- package/dist/IconsAnimated/PanelLeftOpenIcon.js +3 -3
- package/dist/Input.js +1 -1
- package/dist/InputNumeric.js +1 -1
- package/dist/{InputOTP-BkSw_KIB.js → InputOTP-DyhesOLs.js} +1 -1
- package/dist/InputOTP.js +1 -1
- package/dist/Kbd.js +1 -1
- package/dist/Label.js +1 -1
- package/dist/MultiSelect/MultiSelectBase.js +2 -2
- package/dist/Popover.js +2 -2
- package/dist/RadioButton.js +1 -1
- package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +2 -2
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +1 -1
- package/dist/RadioButtonGroup.js +1 -1
- package/dist/{RadioGroup-CfjhpW5o.js → RadioGroup-BsBK247l.js} +9 -9
- package/dist/RadioGroup.js +1 -1
- package/dist/Select.js +3 -3
- package/dist/Separator.js +1 -1
- package/dist/Skeleton.js +1 -1
- package/dist/{Slider-mODhqkCs.js → Slider-CPYW_VYu.js} +6 -6
- package/dist/Slider.js +1 -1
- package/dist/{Switch-Wj_zov--.js → Switch-Vep4hsq4.js} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/Tabs/TabsBase.js +4 -4
- package/dist/Tabs.js +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{Toast-CJvzLlMD.js → Toast-BuaZxqlt.js} +2 -2
- package/dist/Toast.js +1 -1
- package/dist/Toggle.d.ts +1 -1
- package/dist/Toggle.js +13 -13
- package/dist/ToggleGroup/ToggleGroup.context.d.ts +9 -0
- package/dist/ToggleGroup/ToggleGroup.context.js +11 -0
- package/dist/ToggleGroup/ToggleGroupBase.d.ts +1 -1
- package/dist/ToggleGroup/ToggleGroupBase.js +19 -19
- package/dist/ToggleGroup/ToggleGroupItem.d.ts +15 -0
- package/dist/ToggleGroup/ToggleGroupItem.js +35 -0
- package/dist/ToggleGroup/ToggleGroupSplitMenuItem.d.ts +19 -0
- package/dist/ToggleGroup/ToggleGroupSplitMenuItem.js +75 -0
- package/dist/ToggleGroup.d.ts +6 -14
- package/dist/ToggleGroup.js +25 -47
- package/dist/{Tooltip-DH_BzFye.js → Tooltip-CTjKOfvC.js} +8 -8
- package/dist/Tooltip.js +1 -1
- package/dist/Tray.js +6 -6
- package/dist/builtin_esm-external-require-react-ItzZuLxx.js +8 -0
- package/dist/{chunk-C4rFPcKS.js → chunk-DmRZw4Wy.js} +2 -5
- package/dist/{dist-nYKAWiy4.js → dist-B9w6c9RC.js} +6 -6
- package/dist/{dist-Dtvmk11N.js → dist-Br_xj9vz.js} +1 -1
- package/dist/{dist-ChNh3U3S.js → dist-C-2mar4Y.js} +1 -1
- package/dist/{dist-CGzgmYB9.js → dist-CcsVPym2.js} +1 -1
- package/dist/{dist-Tbzy5UFA.js → dist-CrYg_9Cu.js} +1 -1
- package/dist/{dist-Cv8I-d2q.js → dist-CwYxT5fv.js} +3 -3
- package/dist/{dist-Bft31cJh.js → dist-D9FsQh8P.js} +1 -1
- package/dist/{dist-BMu6Dgh_.js → dist-DBLajRTL.js} +4 -4
- package/dist/{dist-D6QANKSj.js → dist-DT46nqCO.js} +5 -5
- package/dist/{dist-K0_i37VL.js → dist-PfrTYHr_.js} +1 -1
- package/dist/{dist-jQ7HawWM.js → dist-iDaHUF3d.js} +2 -2
- package/dist/{dist-B4g6zpUF.js → dist-tMzzRwxG.js} +1 -1
- package/dist/hooks/useConvertToOklch.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/main.js +5969 -5965
- package/dist/primitives/button.js +2 -2
- package/dist/primitives/input-group.js +2 -2
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/popover.js +2 -2
- 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/{proxy-CCB7C4Pu.js → proxy-BFVscmYQ.js} +1 -1
- package/dist/{select-D7pPhL6t.js → select-oAOoVl5g.js} +14 -14
- package/dist/styles/spectral.css +1 -1
- package/dist/{twUtils-D_qzdiwM.js → twUtils-BpqlKSeB.js} +1 -1
- package/dist/{use-animation-C-qL83hj.js → use-animation-BeSipRjB.js} +1 -1
- package/dist/utils/formFieldUtils.d.ts.map +1 -1
- package/dist/utils/formFieldUtils.js +1 -1
- package/dist/utils/twUtils.js +1 -1
- package/package.json +3 -2
- /package/dist/{DateTimeUtils-DrR2JWoU.js → DateTimeUtils-BJUAMuot.js} +0 -0
- /package/dist/{clsx-jM1GlMvB.js → clsx-Bfoz3aNJ.js} +0 -0
- /package/dist/{dist-DIt8FP2G.js → dist-C4MHwt9g.js} +0 -0
- /package/dist/{dist-DDjUcieO.js → dist-C6pGYii-.js} +0 -0
- /package/dist/{dist-Cujfuel1.js → dist-Cc8NfAO6.js} +0 -0
- /package/dist/{dist-7HRQ5IKN.js → dist-DEkDg4Sk.js} +0 -0
- /package/dist/{dist-DFT13f_s.js → dist-s1uWaZYZ.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './styles/main.css'
|
|
2
|
-
import { a as e, d as t, l as n, r, t as i } from "./dist-
|
|
3
|
-
import { t as a } from "./dist-
|
|
4
|
-
import { t as o } from "./twUtils-
|
|
5
|
-
import { n as s, t as c } from "./dist-
|
|
6
|
-
import { a as l, i as u, n as d, r as f, t as p } from "./dist-
|
|
2
|
+
import { a as e, d as t, l as n, r, t as i } from "./dist-DEkDg4Sk.js";
|
|
3
|
+
import { t as a } from "./dist-D9FsQh8P.js";
|
|
4
|
+
import { t as o } from "./twUtils-BpqlKSeB.js";
|
|
5
|
+
import { n as s, t as c } from "./dist-iDaHUF3d.js";
|
|
6
|
+
import { a as l, i as u, n as d, r as f, t as p } from "./dist-CwYxT5fv.js";
|
|
7
7
|
import * as m from "react";
|
|
8
8
|
import { createContext as h, useContext as g } from "react";
|
|
9
9
|
import { jsx as _ } from "react/jsx-runtime";
|
package/dist/HoverCard.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import '../styles/main.css'
|
|
3
|
-
import { t as e } from "../twUtils-
|
|
4
|
-
import { t } from "../proxy-
|
|
5
|
-
import { t as n } from "../use-animation-
|
|
3
|
+
import { t as e } from "../twUtils-BpqlKSeB.js";
|
|
4
|
+
import { t } from "../proxy-BFVscmYQ.js";
|
|
5
|
+
import { t as n } from "../use-animation-BeSipRjB.js";
|
|
6
6
|
import { useCallback as r, useImperativeHandle as i, useRef as a } from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/IconsAnimated/PanelLeftCloseIcon.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import '../styles/main.css'
|
|
3
|
-
import { t as e } from "../twUtils-
|
|
4
|
-
import { t } from "../proxy-
|
|
5
|
-
import { t as n } from "../use-animation-
|
|
3
|
+
import { t as e } from "../twUtils-BpqlKSeB.js";
|
|
4
|
+
import { t } from "../proxy-BFVscmYQ.js";
|
|
5
|
+
import { t as n } from "../use-animation-BeSipRjB.js";
|
|
6
6
|
import { useCallback as r, useImperativeHandle as i, useRef as a } from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/IconsAnimated/PanelLeftOpenIcon.tsx
|
package/dist/Input.js
CHANGED
|
@@ -7,7 +7,7 @@ import { EyeClosedIcon as te } from "./Icons/EyeClosedIcon.js";
|
|
|
7
7
|
import { EyeOpenIcon as n } from "./Icons/EyeOpenIcon.js";
|
|
8
8
|
import { LoaderIcon as ne } from "./Icons/LoaderIcon.js";
|
|
9
9
|
import { WarningIcon as re } from "./Icons/WarningIcon.js";
|
|
10
|
-
import { t as r } from "./twUtils-
|
|
10
|
+
import { t as r } from "./twUtils-BpqlKSeB.js";
|
|
11
11
|
import { ErrorMessage as i, WarningMessage as ie, getAriaProps as a, getFormFieldCSSProperties as o, getInputClasses as s, useFormFieldId as c, useFormFieldState as l } from "./utils/formFieldUtils.js";
|
|
12
12
|
import { useUncontrolledState as u } from "./hooks/useUncontrolledState.js";
|
|
13
13
|
import { Label as d } from "./Label.js";
|
package/dist/InputNumeric.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import './styles/main.css'
|
|
3
|
-
import { t as e } from "./twUtils-
|
|
3
|
+
import { t as e } from "./twUtils-BpqlKSeB.js";
|
|
4
4
|
import { useUncontrolledState as t } from "./hooks/useUncontrolledState.js";
|
|
5
5
|
import { Input as n } from "./Input.js";
|
|
6
6
|
import { useCallback as r } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './styles/main.css'
|
|
2
2
|
import { MinusIcon as e } from "./Icons/MinusIcon.js";
|
|
3
|
-
import { t } from "./twUtils-
|
|
3
|
+
import { t } from "./twUtils-BpqlKSeB.js";
|
|
4
4
|
import { ErrorMessage as n, getErrorMessageId as r, useFormFieldId as i, useFormFieldState as a } from "./utils/formFieldUtils.js";
|
|
5
5
|
import * as o from "react";
|
|
6
6
|
import { createContext as s, useContext as c } from "react";
|
package/dist/InputOTP.js
CHANGED
package/dist/Kbd.js
CHANGED
package/dist/Label.js
CHANGED
|
@@ -4,12 +4,12 @@ import { CheckmarkIcon as e } from "../Icons/CheckmarkIcon.js";
|
|
|
4
4
|
import { ChevronDownIcon as t } from "../Icons/ChevronDownIcon.js";
|
|
5
5
|
import { CloseIcon as n } from "../Icons/CloseIcon.js";
|
|
6
6
|
import { SearchIcon as r } from "../Icons/SearchIcon.js";
|
|
7
|
-
import { t as i } from "../twUtils-
|
|
7
|
+
import { t as i } from "../twUtils-BpqlKSeB.js";
|
|
8
8
|
import { EmptyState as a, ErrorMessage as o, LoadingState as s, WarningMessage as c, getAriaProps as l, getDropdownSurfaceClasses as u, getDropdownWidthStyles as d, getErrorMessageId as f, getTriggerClasses as ee, useFormFieldId as te } from "../utils/formFieldUtils.js";
|
|
9
9
|
import { useUncontrolledState as ne } from "../hooks/useUncontrolledState.js";
|
|
10
10
|
import { Label as re } from "../Label.js";
|
|
11
11
|
import { useAutoDropdownHorizontalShift as ie } from "../utils/dropdownPositioning.js";
|
|
12
|
-
import { a as ae, i as oe, n as se, r as ce } from "../dist-
|
|
12
|
+
import { a as ae, i as oe, n as se, r as ce } from "../dist-B9w6c9RC.js";
|
|
13
13
|
import { useCallback as p, useEffect as le, useId as ue, useMemo as m, useRef as de, useState as h } from "react";
|
|
14
14
|
import { Fragment as fe, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
15
15
|
//#region src/components/MultiSelect/MultiSelectBase.tsx
|
package/dist/Popover.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import './styles/main.css'
|
|
3
|
-
import { t as e } from "./twUtils-
|
|
4
|
-
import { a as t, i as n, n as r, r as i, t as a } from "./dist-
|
|
3
|
+
import { t as e } from "./twUtils-BpqlKSeB.js";
|
|
4
|
+
import { a as t, i as n, n as r, r as i, t as a } from "./dist-B9w6c9RC.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/Popover/Popover.tsx
|
package/dist/RadioButton.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { AsChildProp } from '../primitives/slot';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode, Ref } from 'react';
|
|
3
3
|
export interface RadioButtonGroupProps {
|
|
4
|
-
'aria-label'?: string;
|
|
5
|
-
'aria-labelledby'?: string;
|
|
6
4
|
asChild?: boolean;
|
|
7
5
|
children: ReactNode;
|
|
8
6
|
className?: string;
|
|
@@ -10,6 +8,8 @@ export interface RadioButtonGroupProps {
|
|
|
10
8
|
isKeptActive?: boolean;
|
|
11
9
|
onValueChange?: (value: string) => void;
|
|
12
10
|
value?: string;
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
'aria-labelledby'?: string;
|
|
13
13
|
}
|
|
14
14
|
export interface RadioButtonGroupItemProps extends AsChildProp, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onSelect' | 'type'> {
|
|
15
15
|
children: ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import '../styles/main.css'
|
|
3
|
-
import { t as e } from "../twUtils-
|
|
3
|
+
import { t as e } from "../twUtils-BpqlKSeB.js";
|
|
4
4
|
import { Slot as t } from "../primitives/slot.js";
|
|
5
5
|
import { createContext as n, useContext as r } from "react";
|
|
6
6
|
import { jsx as i } from "react/jsx-runtime";
|
package/dist/RadioButtonGroup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import './styles/main.css'
|
|
3
|
-
import { t as e } from "./twUtils-
|
|
3
|
+
import { t as e } from "./twUtils-BpqlKSeB.js";
|
|
4
4
|
import { RadioButtonGroupBase as t, RadioButtonGroupItem as n } from "./RadioButtonGroup/RadioButtonGroupBase.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as r } from "react/jsx-runtime";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import './styles/main.css'
|
|
2
|
-
import { a as e, d as t, l as n, r, t as i } from "./dist-
|
|
3
|
-
import { t as a } from "./dist-
|
|
4
|
-
import { t as o } from "./dist-
|
|
5
|
-
import { t as s } from "./twUtils-
|
|
2
|
+
import { a as e, d as t, l as n, r, t as i } from "./dist-DEkDg4Sk.js";
|
|
3
|
+
import { t as a } from "./dist-CcsVPym2.js";
|
|
4
|
+
import { t as o } from "./dist-D9FsQh8P.js";
|
|
5
|
+
import { t as s } from "./twUtils-BpqlKSeB.js";
|
|
6
6
|
import { ErrorMessage as c, WarningMessage as l, useFormFieldId as u } from "./utils/formFieldUtils.js";
|
|
7
7
|
import { Label as d } from "./Label.js";
|
|
8
|
-
import { t as f } from "./dist-
|
|
9
|
-
import { t as p } from "./dist-
|
|
10
|
-
import { n as m, r as h, t as g } from "./dist-
|
|
11
|
-
import { a as _, i as v, o as y, t as b, u as x } from "./proxy-
|
|
12
|
-
import { t as S } from "./AnimatePresence-
|
|
8
|
+
import { t as f } from "./dist-PfrTYHr_.js";
|
|
9
|
+
import { t as p } from "./dist-s1uWaZYZ.js";
|
|
10
|
+
import { n as m, r as h, t as g } from "./dist-DBLajRTL.js";
|
|
11
|
+
import { a as _, i as v, o as y, t as b, u as x } from "./proxy-BFVscmYQ.js";
|
|
12
|
+
import { t as S } from "./AnimatePresence-Bz_JZ2ah.js";
|
|
13
13
|
import * as C from "react";
|
|
14
14
|
import { createContext as w, memo as T, useContext as E, useId as D, useMemo as ee, useState as O } from "react";
|
|
15
15
|
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
package/dist/RadioGroup.js
CHANGED
package/dist/Select.js
CHANGED
|
@@ -3,10 +3,10 @@ import './styles/main.css'
|
|
|
3
3
|
import { CheckmarkIcon as e } from "./Icons/CheckmarkIcon.js";
|
|
4
4
|
import { ChevronDownIcon as t } from "./Icons/ChevronDownIcon.js";
|
|
5
5
|
import { LoaderIcon as n } from "./Icons/LoaderIcon.js";
|
|
6
|
-
import { t as r } from "./twUtils-
|
|
6
|
+
import { t as r } from "./twUtils-BpqlKSeB.js";
|
|
7
7
|
import { EmptyState as i, ErrorMessage as a, LoadingState as o, WarningMessage as s, getAriaProps as c, getDropdownSurfaceClasses as l, getDropdownWidthStyles as ee, getErrorMessageId as te, getFormFieldCSSProperties as ne, getOptionClasses as re, getTriggerClasses as ie, groupOptions as ae, useFormFieldId as oe } from "./utils/formFieldUtils.js";
|
|
8
8
|
import { Label as u } from "./Label.js";
|
|
9
|
-
import { C as se, S as ce, _ as le, b as ue, d, f, g as de, h as fe, m as pe, p as me, u as he, v as ge, x as p, y as _e } from "./select-
|
|
9
|
+
import { C as se, S as ce, _ as le, b as ue, d, f, g as de, h as fe, m as pe, p as me, u as he, v as ge, x as p, y as _e } from "./select-oAOoVl5g.js";
|
|
10
10
|
import { useAutoDropdownHorizontalShift as ve } from "./utils/dropdownPositioning.js";
|
|
11
11
|
import { useState as ye } from "react";
|
|
12
12
|
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
@@ -106,7 +106,7 @@ var _ = (_) => {
|
|
|
106
106
|
...Fe,
|
|
107
107
|
...De,
|
|
108
108
|
children: /* @__PURE__ */ g("button", {
|
|
109
|
-
className: "
|
|
109
|
+
className: "min-w-0 gap-2 [&>span]:min-w-0 grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-center overflow-hidden text-left whitespace-nowrap text-input-text! data-placeholder:text-input-text-placeholder! [&>span]:block [&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap [&>span[data-placeholder]]:text-input-text-placeholder!",
|
|
110
110
|
type: "button",
|
|
111
111
|
disabled: X,
|
|
112
112
|
children: [/* @__PURE__ */ h(he, {
|
package/dist/Separator.js
CHANGED
package/dist/Skeleton.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './styles/main.css'
|
|
2
|
-
import { a as e, d as t, l as n, r, t as i } from "./dist-
|
|
3
|
-
import { n as a, t as o } from "./dist-
|
|
4
|
-
import { t as s } from "./twUtils-
|
|
2
|
+
import { a as e, d as t, l as n, r, t as i } from "./dist-DEkDg4Sk.js";
|
|
3
|
+
import { n as a, t as o } from "./dist-CcsVPym2.js";
|
|
4
|
+
import { t as s } from "./twUtils-BpqlKSeB.js";
|
|
5
5
|
import { Input as c } from "./primitives/input.js";
|
|
6
|
-
import { t as l } from "./dist-
|
|
7
|
-
import { t as u } from "./dist-
|
|
8
|
-
import { t as d } from "./dist-
|
|
6
|
+
import { t as l } from "./dist-C6pGYii-.js";
|
|
7
|
+
import { t as u } from "./dist-PfrTYHr_.js";
|
|
8
|
+
import { t as d } from "./dist-s1uWaZYZ.js";
|
|
9
9
|
import * as f from "react";
|
|
10
10
|
import { useCallback as p, useEffect as m, useMemo as h, useState as g } from "react";
|
|
11
11
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
package/dist/Slider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './styles/main.css'
|
|
2
|
-
import { t as e } from "./twUtils-
|
|
2
|
+
import { t as e } from "./twUtils-BpqlKSeB.js";
|
|
3
3
|
import { ErrorMessage as t, WarningMessage as n, useFormFieldId as r } from "./utils/formFieldUtils.js";
|
|
4
4
|
import { Label as i } from "./Label.js";
|
|
5
5
|
import { Switch as a, SwitchThumb as o } from "./Switch/SwitchBase.js";
|
package/dist/Switch.js
CHANGED
package/dist/Tabs/TabsBase.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import '../styles/main.css'
|
|
3
|
-
import { t as e } from "../twUtils-
|
|
4
|
-
import { t } from "../proxy-
|
|
5
|
-
import { t as n } from "../AnimatePresence-
|
|
6
|
-
import { t as r } from "../dist-
|
|
3
|
+
import { t as e } from "../twUtils-BpqlKSeB.js";
|
|
4
|
+
import { t } from "../proxy-BFVscmYQ.js";
|
|
5
|
+
import { t as n } from "../AnimatePresence-Bz_JZ2ah.js";
|
|
6
|
+
import { t as r } from "../dist-Cc8NfAO6.js";
|
|
7
7
|
import { calculateIndicatorStyle as i, debounce as a, generateId as o, prefersReducedMotion as s } from "./tabsUtils.js";
|
|
8
8
|
import { createContext as c, useCallback as l, useContext as u, useEffect as d, useId as f, useMemo as p, useRef as m, useState as h } from "react";
|
|
9
9
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
package/dist/Tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import './styles/main.css'
|
|
3
|
-
import { t as e } from "./twUtils-
|
|
3
|
+
import { t as e } from "./twUtils-BpqlKSeB.js";
|
|
4
4
|
import { getTabKeys as t, validateTabValues as n } from "./Tabs/tabsUtils.js";
|
|
5
5
|
import { TabsBase as r, TabsContent as i, TabsContentContainer as a, TabsList as o, TabsTrigger as s } from "./Tabs/TabsBase.js";
|
|
6
6
|
import "react";
|
package/dist/Textarea.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import './styles/main.css'
|
|
3
3
|
import { LoaderIcon as e } from "./Icons/LoaderIcon.js";
|
|
4
|
-
import { t } from "./twUtils-
|
|
4
|
+
import { t } from "./twUtils-BpqlKSeB.js";
|
|
5
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
6
|
import { useUncontrolledState as l } from "./hooks/useUncontrolledState.js";
|
|
7
7
|
import { Label as u } from "./Label.js";
|
|
@@ -3,8 +3,8 @@ import { CheckSquareIcon as e } from "./Icons/CheckSquareIcon.js";
|
|
|
3
3
|
import { CloseCircleIcon as t } from "./Icons/CloseCircleIcon.js";
|
|
4
4
|
import { InfoIcon as n } from "./Icons/InfoIcon.js";
|
|
5
5
|
import { WarningIcon as r } from "./Icons/WarningIcon.js";
|
|
6
|
-
import { t as i } from "./twUtils-
|
|
7
|
-
import { t as a } from "./dist-
|
|
6
|
+
import { t as i } from "./twUtils-BpqlKSeB.js";
|
|
7
|
+
import { t as a } from "./dist-tMzzRwxG.js";
|
|
8
8
|
import o from "react";
|
|
9
9
|
import s from "react-dom";
|
|
10
10
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
package/dist/Toast.js
CHANGED
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: ({ activeColor, activeTextColor, className, disabled, layout, ref, size, style, variant, ...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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import './styles/main.css'
|
|
3
|
-
import { t as e } from "./twUtils-
|
|
4
|
-
import { t } from "./dist-
|
|
3
|
+
import { t as e } from "./twUtils-BpqlKSeB.js";
|
|
4
|
+
import { t } from "./dist-tMzzRwxG.js";
|
|
5
5
|
import { ToggleBase as n } from "./Toggle/ToggleBase.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx as r } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ var i = /^(#|rgb|hsl|oklch|oklab|lab|lch|color|var\(|transparent|currentcolor)/i
|
|
|
14
14
|
},
|
|
15
15
|
...t && { "--color-toggle-text--active": o(t) }
|
|
16
16
|
};
|
|
17
|
-
}, c = t("gap-2 rounded-md text-sm shadow-sm font-medium
|
|
17
|
+
}, c = t("gap-2 rounded-md text-sm shadow-sm font-medium inline-flex w-fit items-center justify-center border bg-toggle-bg whitespace-nowrap text-toggle-text transition-colors hover:cursor-pointer hover:border-toggle-border--hover hover:bg-toggle-bg--hover hover:text-toggle-text--hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent active:bg-toggle-bg--active aria-invalid:border-danger-200 aria-invalid:outline-danger-200/20 aria-pressed:border-toggle-border--active aria-pressed:bg-toggle-bg--active aria-pressed:text-toggle-text--active data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[state=on]:border-toggle-border--active data-[state=on]:bg-toggle-bg--active data-[state=on]:text-toggle-text--active [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
18
18
|
variants: {
|
|
19
19
|
variant: {
|
|
20
20
|
default: "border-toggle-border hover:border-toggle-border--hover",
|
|
@@ -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
|
+
layout: "default",
|
|
35
35
|
size: "default",
|
|
36
|
-
|
|
36
|
+
variant: "default"
|
|
37
37
|
}
|
|
38
|
-
}), l = ({
|
|
39
|
-
ref:
|
|
40
|
-
disabled:
|
|
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,
|
|
41
41
|
"data-slot": "toggle",
|
|
42
42
|
"data-testid": "spectral-toggle",
|
|
43
43
|
className: e(c({
|
|
44
|
-
variant:
|
|
45
|
-
size:
|
|
44
|
+
variant: p,
|
|
45
|
+
size: d,
|
|
46
46
|
layout: l
|
|
47
|
-
}),
|
|
47
|
+
}), a),
|
|
48
48
|
style: {
|
|
49
|
-
...s(
|
|
50
|
-
...
|
|
49
|
+
...s(t, i),
|
|
50
|
+
...f
|
|
51
51
|
},
|
|
52
52
|
...m
|
|
53
53
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActiveColor, toggleVariants } from '../Toggle/Toggle';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
export type ToggleGroupContextValue = VariantProps<typeof toggleVariants> & {
|
|
4
|
+
activeColor?: ActiveColor;
|
|
5
|
+
activeTextColor?: ActiveColor;
|
|
6
|
+
orientation?: 'horizontal' | 'vertical';
|
|
7
|
+
};
|
|
8
|
+
export declare const ToggleGroupContext: import('react').Context<ToggleGroupContextValue>;
|
|
9
|
+
//# sourceMappingURL=ToggleGroup.context.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import "../Toggle.js";
|
|
3
|
+
import { createContext as e } from "react";
|
|
4
|
+
//#region src/components/ToggleGroup/ToggleGroup.context.ts
|
|
5
|
+
var t = e({
|
|
6
|
+
layout: "default",
|
|
7
|
+
size: "default",
|
|
8
|
+
variant: "default"
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as ToggleGroupContext };
|
|
@@ -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: ({ children, className, disabled, onClick, onKeyDown, ref, value, ...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-layout": v, "data-size": y, "data-slot": b, "data-variant": 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": v,
|
|
56
56
|
"data-orientation": h,
|
|
57
57
|
"data-size": y,
|
|
58
58
|
"data-slot": b,
|
|
59
|
-
"data-variant":
|
|
59
|
+
"data-variant": x,
|
|
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({ children: e, className: t, disabled: n, onClick: s, onKeyDown: u, ref: f, value: 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(f, () => {
|
|
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(p, C.current), [S, p]);
|
|
87
|
+
let w = b(p), T = r(() => {
|
|
88
|
+
if (!(v || n)) if (g === "single") y(w ? "" : p);
|
|
89
89
|
else {
|
|
90
90
|
let e = h.value;
|
|
91
|
-
y(w ? e.filter((e) => e !==
|
|
91
|
+
y(w ? e.filter((e) => e !== p) : [...e, p]);
|
|
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
|
+
p
|
|
101
101
|
]), E = r((e) => {
|
|
102
|
-
if (
|
|
102
|
+
if (u && u(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 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));
|
|
109
109
|
}, [
|
|
110
110
|
h,
|
|
111
111
|
x,
|
|
112
|
-
|
|
112
|
+
u,
|
|
113
113
|
_,
|
|
114
114
|
T,
|
|
115
|
-
|
|
115
|
+
p
|
|
116
116
|
]), D = r((e) => {
|
|
117
|
-
|
|
118
|
-
}, [
|
|
117
|
+
s && s(e), !e.defaultPrevented && T();
|
|
118
|
+
}, [s, T]);
|
|
119
119
|
return /* @__PURE__ */ l("button", {
|
|
120
120
|
"aria-pressed": w,
|
|
121
|
-
className:
|
|
121
|
+
className: t,
|
|
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: e
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
133
|
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { toggleVariants, ActiveColor } from '../Toggle/Toggle';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { ComponentProps, Ref } from 'react';
|
|
4
|
+
import { ToggleGroupItemBase } from './ToggleGroupBase';
|
|
5
|
+
export type ToggleGroupItemProps = ComponentProps<typeof ToggleGroupItemBase> & VariantProps<typeof toggleVariants> & {
|
|
6
|
+
activeColor?: ActiveColor;
|
|
7
|
+
activeTextColor?: ActiveColor;
|
|
8
|
+
};
|
|
9
|
+
export declare const ToggleGroupItem: {
|
|
10
|
+
({ activeColor, activeTextColor, children, className, layout, ref, size, style, value, variant, ...props }: ToggleGroupItemProps & {
|
|
11
|
+
ref?: Ref<HTMLButtonElement>;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=ToggleGroupItem.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import '../styles/main.css'
|
|
3
|
+
import { t as e } from "../twUtils-BpqlKSeB.js";
|
|
4
|
+
import { getActiveColorStyle as t, toggleVariants as n } from "../Toggle.js";
|
|
5
|
+
import { ToggleGroupContext as r } from "./ToggleGroup.context.js";
|
|
6
|
+
import { ToggleGroupItemBase as i } from "./ToggleGroupBase.js";
|
|
7
|
+
import { useContext as a } from "react";
|
|
8
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/ToggleGroup/ToggleGroupItem.tsx
|
|
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;
|
|
12
|
+
return /* @__PURE__ */ o(i, {
|
|
13
|
+
className: e(n({
|
|
14
|
+
variant: y,
|
|
15
|
+
size: b,
|
|
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),
|
|
18
|
+
"data-layout": x,
|
|
19
|
+
"data-size": b,
|
|
20
|
+
"data-slot": "toggle-group-item",
|
|
21
|
+
"data-testid": "spectral-toggle-group-item",
|
|
22
|
+
"data-variant": y,
|
|
23
|
+
ref: f,
|
|
24
|
+
style: {
|
|
25
|
+
...t(S, C),
|
|
26
|
+
...m
|
|
27
|
+
},
|
|
28
|
+
value: h,
|
|
29
|
+
..._,
|
|
30
|
+
children: l
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
s.displayName = "ToggleGroupItem";
|
|
34
|
+
//#endregion
|
|
35
|
+
export { s as ToggleGroupItem };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DropdownMenuOption } from '../DropdownMenu/DropdownMenu';
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import { ToggleGroupItemProps } from './ToggleGroupItem';
|
|
4
|
+
export interface ToggleGroupSplitMenuItemProps extends Omit<ToggleGroupItemProps, 'children'> {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
dropdownAriaLabel: string;
|
|
7
|
+
dropdownButtonClassName?: string;
|
|
8
|
+
dropdownButtonStyle?: CSSProperties;
|
|
9
|
+
dropdownOptions: DropdownMenuOption[];
|
|
10
|
+
dropdownValue?: string | string[];
|
|
11
|
+
dropdownValueLabel?: string;
|
|
12
|
+
onDropdownValueChange?: (value: string | string[]) => void;
|
|
13
|
+
triggerIcon?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
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;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=ToggleGroupSplitMenuItem.d.ts.map
|