@spear-ai/spectral 1.11.2 → 1.12.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/README.md +4 -0
- package/dist/.js +124 -121
- package/dist/{Accordion-CDXdSAST.js → Accordion-Cyrb2byI.js} +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Alert/AlertBase.js +1 -1
- package/dist/Alert.js +3 -3
- package/dist/{AnimatePresence-D-9jXfgI.js → AnimatePresence-D9FLxIGV.js} +1 -1
- package/dist/Avatar.js +46 -48
- package/dist/Badge.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup/ButtonGroupButton.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ButtonIcon.js +1 -1
- package/dist/{Calendar-s4lyijkn.js → Calendar-Cnh_PTbQ.js} +4 -4
- package/dist/Checkbox/CheckboxBase.js +1 -1
- package/dist/Checkbox.d.ts +10 -3
- package/dist/Checkbox.js +55 -35
- package/dist/Combobox/ComboboxBase.js +1 -1
- package/dist/Combobox.d.ts +5 -3
- package/dist/Combobox.js +91 -92
- package/dist/{ComboboxBase-qX-mQhT6.js → ComboboxBase-BzDGK36x.js} +1 -1
- package/dist/ControlGroup/ControlGroupSelect.d.ts +5 -2
- package/dist/ControlGroup/ControlGroupSelect.js +33 -30
- package/dist/ControlGroup.d.ts +3 -2
- package/dist/ControlGroup.js +41 -33
- 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 +84 -83
- package/dist/DateTimePicker/DateTimeInput.js +2 -2
- package/dist/DateTimePicker/DateTimeUtils.js +1 -1
- package/dist/DateTimePicker/TimePeriodSelect.js +32 -35
- package/dist/DateTimePicker/TimePicker.js +2 -2
- package/dist/DateTimePicker.d.ts +1 -1
- package/dist/DateTimePicker.js +55 -52
- package/dist/{DateTimeUtils-DVvG6H-p.js → DateTimeUtils-BJUAMuot.js} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/DropdownMenu.d.ts +61 -0
- package/dist/DropdownMenu.js +869 -0
- package/dist/{HoverCard-CYDsIiVK.js → HoverCard-DERasp0v.js} +1 -1
- package/dist/HoverCard.js +1 -1
- package/dist/Icons/AdjustmentsIcon.d.ts +5 -0
- package/dist/Icons/AdjustmentsIcon.js +78 -0
- package/dist/Icons/MenuDotsIcon.d.ts +5 -0
- package/dist/Icons/MenuDotsIcon.js +36 -0
- package/dist/Icons/MenuIcon.d.ts +5 -0
- package/dist/Icons/MenuIcon.js +36 -0
- package/dist/Icons/index.d.ts +3 -0
- package/dist/Icons.js +81 -78
- 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-cVn5Bzyp.js → InputOTP-BkSw_KIB.js} +12 -10
- package/dist/InputOTP.js +1 -1
- package/dist/Kbd.js +1 -1
- package/dist/Label.js +1 -1
- package/dist/MultiSelect/MultiSelectBase.d.ts +6 -4
- package/dist/MultiSelect/MultiSelectBase.js +235 -209
- package/dist/MultiSelect.d.ts +2 -1
- package/dist/MultiSelect.js +14 -12
- package/dist/Popover.js +1 -1
- package/dist/RadioButton.js +1 -1
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +1 -1
- package/dist/RadioButtonGroup.js +1 -1
- package/dist/RadioGroup-DqKggFnI.js +328 -0
- package/dist/RadioGroup.d.ts +7 -0
- package/dist/RadioGroup.js +1 -1
- package/dist/Select.d.ts +5 -2
- package/dist/Select.js +100 -85
- package/dist/Separator.js +1 -1
- package/dist/Skeleton.js +1 -1
- package/dist/{Slider-BzzZT3Zm.js → Slider-CfUFkWU4.js} +1 -1
- package/dist/Slider.js +1 -1
- package/dist/Switch-Wj_zov--.js +144 -0
- package/dist/Switch.d.ts +12 -3
- package/dist/Switch.js +1 -1
- package/dist/Tabs/TabsBase.js +4 -4
- package/dist/Tabs.js +1 -1
- package/dist/Textarea.d.ts +3 -2
- package/dist/Textarea.js +50 -45
- package/dist/{Toast-9zqXxKKO.js → Toast-CJvzLlMD.js} +1 -1
- package/dist/Toast.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/ToggleGroup.js +1 -1
- package/dist/{Tooltip-D1K8kY1y.js → Tooltip-BR0tdif4.js} +2 -2
- package/dist/Tooltip.js +1 -1
- package/dist/Tray.js +4 -4
- package/dist/{chunk-h9knIhTc.js → chunk-C4rFPcKS.js} +1 -1
- package/dist/dist-DcUGLq_y.js +149 -0
- package/dist/main.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/input-group.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/select.d.ts.map +1 -1
- package/dist/primitives/select.js +56 -53
- package/dist/primitives/textarea.js +1 -1
- package/dist/{proxy-Dn10Pl_g.js → proxy-CCB7C4Pu.js} +10 -10
- package/dist/styles/spectral.css +1 -1
- package/dist/{twUtils-VNWgstKL.js → twUtils-D_qzdiwM.js} +1 -1
- package/dist/{use-animation-CBUDycyW.js → use-animation-C-qL83hj.js} +1 -1
- package/dist/utils/dropdownPositioning.d.ts +13 -0
- package/dist/utils/dropdownPositioning.d.ts.map +1 -0
- package/dist/utils/dropdownPositioning.js +43 -0
- package/dist/utils/dropdownPositioning.test.d.ts +2 -0
- package/dist/utils/dropdownPositioning.test.d.ts.map +1 -0
- package/dist/utils/dropdownPositioning.test.js +21 -0
- package/dist/utils/formFieldUtils.d.ts +15 -1
- package/dist/utils/formFieldUtils.d.ts.map +1 -1
- package/dist/utils/formFieldUtils.js +35 -19
- package/dist/utils/twUtils.js +1 -1
- package/package.json +26 -22
- package/dist/RadioGroup-w_q6RGEK.js +0 -447
- package/dist/Switch-CVzRJ-0n.js +0 -126
- /package/dist/{dist-B4FgboI8.js → dist-Cujfuel1.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
2
|
import { a as e, d as t, l as n, r, t as i } from "./dist-7HRQ5IKN.js";
|
|
3
3
|
import { t as a } from "./dist-Bft31cJh.js";
|
|
4
|
-
import { t as o } from "./twUtils-
|
|
4
|
+
import { t as o } from "./twUtils-D_qzdiwM.js";
|
|
5
5
|
import { n as s, t as c } from "./dist-B2k1iWFp.js";
|
|
6
6
|
import { a as l, i as u, n as d, r as f, t as p } from "./dist-C0Hifjgh.js";
|
|
7
7
|
import * as m from "react";
|
package/dist/HoverCard.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./HoverCard-
|
|
1
|
+
import { n as e, r as t, t as n } from "./HoverCard-DERasp0v.js";
|
|
2
2
|
export { n as HoverCard, e as HoverCardContent, t as HoverCardTrigger };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconProps } from './iconTypes';
|
|
2
|
+
export declare const AdjustmentsIcon: (({ ref, className, title, description, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=AdjustmentsIcon.d.ts.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import "../styles/main.css";
|
|
2
|
+
import { IconBase as e } from "./IconBase.js";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
var r = Object.assign(({ ref: r, className: i, title: a, description: o, size: s = 24, ...c }) => /* @__PURE__ */ n(e, {
|
|
5
|
+
size: s,
|
|
6
|
+
className: i,
|
|
7
|
+
title: a,
|
|
8
|
+
description: o,
|
|
9
|
+
ref: r,
|
|
10
|
+
...c,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ t("path", {
|
|
13
|
+
d: "M12 4.875C12 5.50489 12.2502 6.10898 12.6956 6.55438C13.141 6.99978 13.7451 7.25 14.375 7.25C15.0049 7.25 15.609 6.99978 16.0544 6.55438C16.4998 6.10898 16.75 5.50489 16.75 4.875C16.75 4.24511 16.4998 3.64102 16.0544 3.19562C15.609 2.75022 15.0049 2.5 14.375 2.5C13.7451 2.5 13.141 2.75022 12.6956 3.19562C12.2502 3.64102 12 4.24511 12 4.875Z",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "2",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ t("path", {
|
|
20
|
+
d: "M2.5 4.875H12",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
strokeWidth: "2",
|
|
23
|
+
strokeLinecap: "round",
|
|
24
|
+
strokeLinejoin: "round"
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ t("path", {
|
|
27
|
+
d: "M16.75 4.875H21.5",
|
|
28
|
+
stroke: "currentColor",
|
|
29
|
+
strokeWidth: "2",
|
|
30
|
+
strokeLinecap: "round",
|
|
31
|
+
strokeLinejoin: "round"
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ t("path", {
|
|
34
|
+
d: "M4.875 12C4.875 12.6299 5.12522 13.234 5.57062 13.6794C6.01602 14.1248 6.62011 14.375 7.25 14.375C7.87989 14.375 8.48398 14.1248 8.92938 13.6794C9.37478 13.234 9.625 12.6299 9.625 12C9.625 11.3701 9.37478 10.766 8.92938 10.3206C8.48398 9.87522 7.87989 9.625 7.25 9.625C6.62011 9.625 6.01602 9.87522 5.57062 10.3206C5.12522 10.766 4.875 11.3701 4.875 12Z",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
strokeWidth: "2",
|
|
37
|
+
strokeLinecap: "round",
|
|
38
|
+
strokeLinejoin: "round"
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ t("path", {
|
|
41
|
+
d: "M2.5 12H4.875",
|
|
42
|
+
stroke: "currentColor",
|
|
43
|
+
strokeWidth: "2",
|
|
44
|
+
strokeLinecap: "round",
|
|
45
|
+
strokeLinejoin: "round"
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ t("path", {
|
|
48
|
+
d: "M9.625 12H21.5",
|
|
49
|
+
stroke: "currentColor",
|
|
50
|
+
strokeWidth: "2",
|
|
51
|
+
strokeLinecap: "round",
|
|
52
|
+
strokeLinejoin: "round"
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ t("path", {
|
|
55
|
+
d: "M15.5625 19.125C15.5625 19.7549 15.8127 20.359 16.2581 20.8044C16.7035 21.2498 17.3076 21.5 17.9375 21.5C18.5674 21.5 19.1715 21.2498 19.6169 20.8044C20.0623 20.359 20.3125 19.7549 20.3125 19.125C20.3125 18.4951 20.0623 17.891 19.6169 17.4456C19.1715 17.0002 18.5674 16.75 17.9375 16.75C17.3076 16.75 16.7035 17.0002 16.2581 17.4456C15.8127 17.891 15.5625 18.4951 15.5625 19.125Z",
|
|
56
|
+
stroke: "currentColor",
|
|
57
|
+
strokeWidth: "2",
|
|
58
|
+
strokeLinecap: "round",
|
|
59
|
+
strokeLinejoin: "round"
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ t("path", {
|
|
62
|
+
d: "M2.5 19.125H15.5625",
|
|
63
|
+
stroke: "currentColor",
|
|
64
|
+
strokeWidth: "2",
|
|
65
|
+
strokeLinecap: "round",
|
|
66
|
+
strokeLinejoin: "round"
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ t("path", {
|
|
69
|
+
d: "M20.3125 19.125H21.5",
|
|
70
|
+
stroke: "currentColor",
|
|
71
|
+
strokeWidth: "2",
|
|
72
|
+
strokeLinecap: "round",
|
|
73
|
+
strokeLinejoin: "round"
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
}), { displayName: "AdjustmentsIcon" });
|
|
77
|
+
//#endregion
|
|
78
|
+
export { r as AdjustmentsIcon };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "../styles/main.css";
|
|
2
|
+
import { IconBase as e } from "./IconBase.js";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
var r = Object.assign(({ ref: r, className: i, title: a, description: o, size: s = 24, ...c }) => /* @__PURE__ */ n(e, {
|
|
5
|
+
size: s,
|
|
6
|
+
className: i,
|
|
7
|
+
title: a,
|
|
8
|
+
description: o,
|
|
9
|
+
ref: r,
|
|
10
|
+
...c,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ t("path", {
|
|
13
|
+
d: "M11 12C11 12.2652 11.1054 12.5196 11.2929 12.7071C11.4804 12.8946 11.7348 13 12 13C12.2652 13 12.5196 12.8946 12.7071 12.7071C12.8946 12.5196 13 12.2652 13 12C13 11.7348 12.8946 11.4804 12.7071 11.2929C12.5196 11.1054 12.2652 11 12 11C11.7348 11 11.4804 11.1054 11.2929 11.2929C11.1054 11.4804 11 11.7348 11 12Z",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "2",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ t("path", {
|
|
20
|
+
d: "M11 19C11 19.2652 11.1054 19.5196 11.2929 19.7071C11.4804 19.8946 11.7348 20 12 20C12.2652 20 12.5196 19.8946 12.7071 19.7071C12.8946 19.5196 13 19.2652 13 19C13 18.7348 12.8946 18.4804 12.7071 18.2929C12.5196 18.1054 12.2652 18 12 18C11.7348 18 11.4804 18.1054 11.2929 18.2929C11.1054 18.4804 11 18.7348 11 19Z",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
strokeWidth: "2",
|
|
23
|
+
strokeLinecap: "round",
|
|
24
|
+
strokeLinejoin: "round"
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ t("path", {
|
|
27
|
+
d: "M11 5C11 5.26522 11.1054 5.51957 11.2929 5.70711C11.4804 5.89464 11.7348 6 12 6C12.2652 6 12.5196 5.89464 12.7071 5.70711C12.8946 5.51957 13 5.26522 13 5C13 4.73478 12.8946 4.48043 12.7071 4.29289C12.5196 4.10536 12.2652 4 12 4C11.7348 4 11.4804 4.10536 11.2929 4.29289C11.1054 4.48043 11 4.73478 11 5Z",
|
|
28
|
+
stroke: "currentColor",
|
|
29
|
+
strokeWidth: "2",
|
|
30
|
+
strokeLinecap: "round",
|
|
31
|
+
strokeLinejoin: "round"
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
}), { displayName: "MenuDotsIcon" });
|
|
35
|
+
//#endregion
|
|
36
|
+
export { r as MenuDotsIcon };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "../styles/main.css";
|
|
2
|
+
import { IconBase as e } from "./IconBase.js";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
var r = Object.assign(({ ref: r, className: i, title: a, description: o, size: s = 24, ...c }) => /* @__PURE__ */ n(e, {
|
|
5
|
+
size: s,
|
|
6
|
+
className: i,
|
|
7
|
+
title: a,
|
|
8
|
+
description: o,
|
|
9
|
+
ref: r,
|
|
10
|
+
...c,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ t("path", {
|
|
13
|
+
d: "M3.5 5.625H20.5",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "2",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ t("path", {
|
|
20
|
+
d: "M3.5 12H20.5",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
strokeWidth: "2",
|
|
23
|
+
strokeLinecap: "round",
|
|
24
|
+
strokeLinejoin: "round"
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ t("path", {
|
|
27
|
+
d: "M3.5 18.375H20.5",
|
|
28
|
+
stroke: "currentColor",
|
|
29
|
+
strokeWidth: "2",
|
|
30
|
+
strokeLinecap: "round",
|
|
31
|
+
strokeLinejoin: "round"
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
}), { displayName: "MenuIcon" });
|
|
35
|
+
//#endregion
|
|
36
|
+
export { r as MenuIcon };
|
package/dist/Icons/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { AdjustmentsIcon } from './AdjustmentsIcon';
|
|
1
2
|
export { AnalyzeIcon } from './AnalyzeIcon';
|
|
2
3
|
export { AnnotationsIcon } from './AnnotationsIcon';
|
|
3
4
|
export { ApprovedIcon } from './ApprovedIcon';
|
|
@@ -41,6 +42,8 @@ export { LocationIcon } from './LocationIcon';
|
|
|
41
42
|
export { LogoutIcon } from './LogoutIcon';
|
|
42
43
|
export { MaximizeIcon } from './MaximizeIcon';
|
|
43
44
|
export { MeasureIcon } from './MeasureIcon';
|
|
45
|
+
export { MenuDotsIcon } from './MenuDotsIcon';
|
|
46
|
+
export { MenuIcon } from './MenuIcon';
|
|
44
47
|
export { MessagesIcon } from './MessagesIcon';
|
|
45
48
|
export { MetadataIcon } from './MetadataIcon';
|
|
46
49
|
export { MinimizeIcon } from './MinimizeIcon';
|
package/dist/Icons.js
CHANGED
|
@@ -1,78 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
|
|
1
|
+
import { AdjustmentsIcon as e } from "./Icons/AdjustmentsIcon.js";
|
|
2
|
+
import { AnalyzeIcon as t } from "./Icons/AnalyzeIcon.js";
|
|
3
|
+
import { AnnotationsIcon as n } from "./Icons/AnnotationsIcon.js";
|
|
4
|
+
import { ApprovedIcon as r } from "./Icons/ApprovedIcon.js";
|
|
5
|
+
import { ArrowDownIcon as i } from "./Icons/ArrowDownIcon.js";
|
|
6
|
+
import { ArrowUpIcon as a } from "./Icons/ArrowUpIcon.js";
|
|
7
|
+
import { BoxToolIcon as o } from "./Icons/BoxToolIcon.js";
|
|
8
|
+
import { CalendarIcon as s } from "./Icons/CalendarIcon.js";
|
|
9
|
+
import { CheckCircleIcon as c } from "./Icons/CheckCircleIcon.js";
|
|
10
|
+
import { CheckSquareIcon as l } from "./Icons/CheckSquareIcon.js";
|
|
11
|
+
import { CheckmarkIcon as u } from "./Icons/CheckmarkIcon.js";
|
|
12
|
+
import { ChevronDownIcon as d } from "./Icons/ChevronDownIcon.js";
|
|
13
|
+
import { ChevronUpIcon as f } from "./Icons/ChevronUpIcon.js";
|
|
14
|
+
import { ClockIcon as p } from "./Icons/ClockIcon.js";
|
|
15
|
+
import { CloseCircleIcon as m } from "./Icons/CloseCircleIcon.js";
|
|
16
|
+
import { CloseIcon as h } from "./Icons/CloseIcon.js";
|
|
17
|
+
import { Crosshairs2Icon as g } from "./Icons/Crosshairs2Icon.js";
|
|
18
|
+
import { CrosshairsIcon as _ } from "./Icons/CrosshairsIcon.js";
|
|
19
|
+
import { DashboardIcon as v } from "./Icons/DashboardIcon.js";
|
|
20
|
+
import { DatabaseIcon as y } from "./Icons/DatabaseIcon.js";
|
|
21
|
+
import { DeleteIcon as b } from "./Icons/DeleteIcon.js";
|
|
22
|
+
import { DurationIcon as x } from "./Icons/DurationIcon.js";
|
|
23
|
+
import { EditIcon as S } from "./Icons/EditIcon.js";
|
|
24
|
+
import { EmailIcon as C } from "./Icons/EmailIcon.js";
|
|
25
|
+
import { EraserIcon as w } from "./Icons/EraserIcon.js";
|
|
26
|
+
import { ErrorIcon as T } from "./Icons/ErrorIcon.js";
|
|
27
|
+
import { EyeClosedIcon as E } from "./Icons/EyeClosedIcon.js";
|
|
28
|
+
import { EyeClosedIcon2 as D } from "./Icons/EyeClosedIcon2.js";
|
|
29
|
+
import { EyeOpenIcon as O } from "./Icons/EyeOpenIcon.js";
|
|
30
|
+
import { FileDownloadIcon as k } from "./Icons/FileDownloadIcon.js";
|
|
31
|
+
import { GoToFirstIcon as A } from "./Icons/GoToFirstIcon.js";
|
|
32
|
+
import { GoToLastIcon as j } from "./Icons/GoToLastIcon.js";
|
|
33
|
+
import { HarmonicCursorsIcon as M } from "./Icons/HarmonicCursorsIcon.js";
|
|
34
|
+
import { InfoIcon as N } from "./Icons/InfoIcon.js";
|
|
35
|
+
import { KeyboardIcon as P } from "./Icons/KeyboardIcon.js";
|
|
36
|
+
import { LabelIcon as F } from "./Icons/LabelIcon.js";
|
|
37
|
+
import { LassoIcon as I } from "./Icons/LassoIcon.js";
|
|
38
|
+
import { LineToolIcon as L } from "./Icons/LineToolIcon.js";
|
|
39
|
+
import { LiveViewIcon as R } from "./Icons/LiveViewIcon.js";
|
|
40
|
+
import { LoaderIcon as z } from "./Icons/LoaderIcon.js";
|
|
41
|
+
import { LocationIcon as B } from "./Icons/LocationIcon.js";
|
|
42
|
+
import { LogoutIcon as V } from "./Icons/LogoutIcon.js";
|
|
43
|
+
import { MaximizeIcon as H } from "./Icons/MaximizeIcon.js";
|
|
44
|
+
import { MeasureIcon as U } from "./Icons/MeasureIcon.js";
|
|
45
|
+
import { MenuDotsIcon as W } from "./Icons/MenuDotsIcon.js";
|
|
46
|
+
import { MenuIcon as G } from "./Icons/MenuIcon.js";
|
|
47
|
+
import { MessagesIcon as K } from "./Icons/MessagesIcon.js";
|
|
48
|
+
import { MetadataIcon as q } from "./Icons/MetadataIcon.js";
|
|
49
|
+
import { MinimizeIcon as J } from "./Icons/MinimizeIcon.js";
|
|
50
|
+
import { MinusIcon as Y } from "./Icons/MinusIcon.js";
|
|
51
|
+
import { OntologyIcon as X } from "./Icons/OntologyIcon.js";
|
|
52
|
+
import { PanelIconClose as Z } from "./Icons/PanelIconClose.js";
|
|
53
|
+
import { PanelIconOpen as Q } from "./Icons/PanelIconOpen.js";
|
|
54
|
+
import { PauseIcon as $ } from "./Icons/PauseIcon.js";
|
|
55
|
+
import { PlayIcon as ee } from "./Icons/PlayIcon.js";
|
|
56
|
+
import { PlusIcon as te } from "./Icons/PlusIcon.js";
|
|
57
|
+
import { PolygonIcon as ne } from "./Icons/PolygonIcon.js";
|
|
58
|
+
import { PrinterIcon as re } from "./Icons/PrinterIcon.js";
|
|
59
|
+
import { ProgressCheckIcon as ie } from "./Icons/ProgressCheckIcon.js";
|
|
60
|
+
import { ResetIcon as ae } from "./Icons/ResetIcon.js";
|
|
61
|
+
import { ReviewedIcon as oe } from "./Icons/ReviewedIcon.js";
|
|
62
|
+
import { ScissorsIcon as se } from "./Icons/ScissorsIcon.js";
|
|
63
|
+
import { SearchIcon as ce } from "./Icons/SearchIcon.js";
|
|
64
|
+
import { SettingsIcon as le } from "./Icons/SettingsIcon.js";
|
|
65
|
+
import { SortAscendingIcon as ue } from "./Icons/SortAscendingIcon.js";
|
|
66
|
+
import { SortAtoZIcon as de } from "./Icons/SortAtoZIcon.js";
|
|
67
|
+
import { SortDescendingIcon as fe } from "./Icons/SortDescendingIcon.js";
|
|
68
|
+
import { SortZtoAIcon as pe } from "./Icons/SortZtoAIcon.js";
|
|
69
|
+
import { SparklesIcon as me } from "./Icons/SparklesIcon.js";
|
|
70
|
+
import { StackIcon as he } from "./Icons/StackIcon.js";
|
|
71
|
+
import { StarIcon as ge } from "./Icons/StarIcon.js";
|
|
72
|
+
import { TrashIcon as _e } from "./Icons/TrashIcon.js";
|
|
73
|
+
import { UndoIcon as ve } from "./Icons/UndoIcon.js";
|
|
74
|
+
import { UploadIcon as ye } from "./Icons/UploadIcon.js";
|
|
75
|
+
import { User2Icon as be } from "./Icons/User2Icon.js";
|
|
76
|
+
import { UserIcon as xe } from "./Icons/UserIcon.js";
|
|
77
|
+
import { WarningIcon as Se } from "./Icons/WarningIcon.js";
|
|
78
|
+
import { ZoomAllIcon as Ce } from "./Icons/ZoomAllIcon.js";
|
|
79
|
+
import { ZoomXIcon as we } from "./Icons/ZoomXIcon.js";
|
|
80
|
+
import { ZoomYIcon as Te } from "./Icons/ZoomYIcon.js";
|
|
81
|
+
export { e as AdjustmentsIcon, t as AnalyzeIcon, n as AnnotationsIcon, r as ApprovedIcon, i as ArrowDownIcon, a as ArrowUpIcon, o as BoxToolIcon, s as CalendarIcon, c as CheckCircleIcon, l as CheckSquareIcon, u as CheckmarkIcon, d as ChevronDownIcon, f as ChevronUpIcon, p as ClockIcon, m as CloseCircleIcon, h as CloseIcon, g as Crosshairs2Icon, _ as CrosshairsIcon, v as DashboardIcon, y as DatabaseIcon, b as DeleteIcon, x as DurationIcon, S as EditIcon, C as EmailIcon, w as EraserIcon, T as ErrorIcon, E as EyeClosedIcon, D as EyeClosedIcon2, O as EyeOpenIcon, k as FileDownloadIcon, A as GoToFirstIcon, j as GoToLastIcon, M as HarmonicCursorsIcon, N as InfoIcon, P as KeyboardIcon, F as LabelIcon, I as LassoIcon, L as LineToolIcon, R as LiveViewIcon, z as LoaderIcon, B as LocationIcon, V as LogoutIcon, H as MaximizeIcon, U as MeasureIcon, W as MenuDotsIcon, G as MenuIcon, K as MessagesIcon, q as MetadataIcon, J as MinimizeIcon, Y as MinusIcon, X as OntologyIcon, Z as PanelIconClose, Q as PanelIconOpen, $ as PauseIcon, ee as PlayIcon, te as PlusIcon, ne as PolygonIcon, re as PrinterIcon, ie as ProgressCheckIcon, ae as ResetIcon, oe as ReviewedIcon, se as ScissorsIcon, ce as SearchIcon, le as SettingsIcon, ue as SortAscendingIcon, de as SortAtoZIcon, fe as SortDescendingIcon, pe as SortZtoAIcon, me as SparklesIcon, he as StackIcon, ge as StarIcon, _e as TrashIcon, ve as UndoIcon, ye as UploadIcon, be as User2Icon, xe as UserIcon, Se as WarningIcon, Ce as ZoomAllIcon, we as ZoomXIcon, Te as ZoomYIcon };
|
|
@@ -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-D_qzdiwM.js";
|
|
4
|
+
import { t } from "../proxy-CCB7C4Pu.js";
|
|
5
|
+
import { t as n } from "../use-animation-C-qL83hj.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-D_qzdiwM.js";
|
|
4
|
+
import { t } from "../proxy-CCB7C4Pu.js";
|
|
5
|
+
import { t as n } from "../use-animation-C-qL83hj.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-D_qzdiwM.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-D_qzdiwM.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-D_qzdiwM.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";
|
|
@@ -354,12 +354,9 @@ var j = "\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: blac
|
|
|
354
354
|
if (!e) throw Error("useRoot must be used within an InputOTP");
|
|
355
355
|
return e;
|
|
356
356
|
}, F = ({ autoFocus: e = !1, children: o, className: s, errorMessage: c, id: l, inputMode: f = "numeric", maxLength: p, name: m, onChange: h, onComplete: g, pattern: _, ref: v, state: y = "default", value: b, variant: x = "outlined", ...S }) => {
|
|
357
|
-
let C = i(l, m), { isInvalid:
|
|
358
|
-
let t = e.clipboardData.getData("text/plain").trim().replaceAll("-", "");
|
|
359
|
-
f === "numeric" && (t = t.replace(/\D/g, "")), t.length === p && typeof h == "function" && h(t);
|
|
360
|
-
};
|
|
357
|
+
let C = i(l, m), w = r(C), { isInvalid: T } = a(!1, y), E = _ ?? (f === "numeric" ? "^\\d+$" : void 0);
|
|
361
358
|
return /* @__PURE__ */ u(M.Provider, {
|
|
362
|
-
value: { isInvalid:
|
|
359
|
+
value: { isInvalid: T },
|
|
363
360
|
children: /* @__PURE__ */ d("div", {
|
|
364
361
|
className: "gap-y-1 flex w-max flex-col",
|
|
365
362
|
children: [/* @__PURE__ */ u(k, {
|
|
@@ -375,11 +372,16 @@ var j = "\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: blac
|
|
|
375
372
|
maxLength: p,
|
|
376
373
|
onChange: h,
|
|
377
374
|
onComplete: g,
|
|
378
|
-
onPaste:
|
|
375
|
+
onPaste: (e) => {
|
|
376
|
+
let t = e.clipboardData.getData("text/plain").trim().replaceAll("-", "");
|
|
377
|
+
f === "numeric" && (t = t.replace(/\D/g, "")), t.length === p && typeof h == "function" && h(t);
|
|
378
|
+
},
|
|
379
379
|
pasteTransformer: (e) => e.replaceAll("-", ""),
|
|
380
|
-
pattern:
|
|
380
|
+
pattern: E,
|
|
381
381
|
pushPasswordManagerStrategy: "none",
|
|
382
382
|
ref: v,
|
|
383
|
+
"aria-describedby": T && c ? w : void 0,
|
|
384
|
+
"aria-invalid": T,
|
|
383
385
|
role: "textbox",
|
|
384
386
|
textAlign: "center",
|
|
385
387
|
value: b,
|
|
@@ -392,9 +394,9 @@ var j = "\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: blac
|
|
|
392
394
|
},
|
|
393
395
|
children: o ?? /* @__PURE__ */ u(I, { children: /* @__PURE__ */ u(R, {}) })
|
|
394
396
|
})
|
|
395
|
-
}),
|
|
397
|
+
}), T && c && /* @__PURE__ */ u(n, {
|
|
396
398
|
dataTestId: "spectral-input-otp-error-message",
|
|
397
|
-
id:
|
|
399
|
+
id: w,
|
|
398
400
|
message: c
|
|
399
401
|
})]
|
|
400
402
|
})
|
package/dist/InputOTP.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./InputOTP-
|
|
1
|
+
import { t as e } from "./InputOTP-BkSw_KIB.js";
|
|
2
2
|
export { e as InputOTP };
|
package/dist/Kbd.js
CHANGED
package/dist/Label.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DropdownWidth } from '../utils/formFieldUtils';
|
|
1
|
+
import { BaseFormFieldProps, DropdownWidth, FormFieldState } from '../utils/formFieldUtils';
|
|
2
2
|
import { ButtonHTMLAttributes, Ref } from 'react';
|
|
3
|
-
export type MultiSelectState =
|
|
3
|
+
export type MultiSelectState = Exclude<FormFieldState, 'disabled'>;
|
|
4
4
|
export interface MultiSelectOption {
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
group?: string;
|
|
@@ -12,7 +12,7 @@ export interface MultiSelectBaseProps extends Omit<ButtonHTMLAttributes<HTMLButt
|
|
|
12
12
|
closeOnSelect?: boolean;
|
|
13
13
|
dropdownWidth?: DropdownWidth;
|
|
14
14
|
emptyMessage?: string;
|
|
15
|
-
errorMessage?:
|
|
15
|
+
errorMessage?: BaseFormFieldProps['errorMessage'];
|
|
16
16
|
id?: string;
|
|
17
17
|
label?: string;
|
|
18
18
|
loadingMessage?: string;
|
|
@@ -22,6 +22,7 @@ export interface MultiSelectBaseProps extends Omit<ButtonHTMLAttributes<HTMLButt
|
|
|
22
22
|
onChange?: (value: string[]) => void;
|
|
23
23
|
options: MultiSelectOption[];
|
|
24
24
|
placeholder?: string;
|
|
25
|
+
required?: boolean;
|
|
25
26
|
searchPlaceholder?: string;
|
|
26
27
|
showClearAll?: boolean;
|
|
27
28
|
showSearch?: boolean;
|
|
@@ -30,11 +31,12 @@ export interface MultiSelectBaseProps extends Omit<ButtonHTMLAttributes<HTMLButt
|
|
|
30
31
|
sortAlphabetically?: boolean;
|
|
31
32
|
state?: MultiSelectState;
|
|
32
33
|
value?: string[];
|
|
34
|
+
warningMessage?: BaseFormFieldProps['errorMessage'];
|
|
33
35
|
'aria-label'?: string;
|
|
34
36
|
'aria-describedby'?: string;
|
|
35
37
|
}
|
|
36
38
|
export declare const MultiSelectBase: {
|
|
37
|
-
({ className, clearAllLabel, closeOnSelect, dropdownWidth, emptyMessage, errorMessage, defaultValue, id, label, loadingMessage, maxCount, name, onChange, options, placeholder, ref, searchPlaceholder, selectAllLabel, showClearAll, showSearch, showSelectAll, sortAlphabetically, state, value: valueProp, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, ...props }: MultiSelectBaseProps & {
|
|
39
|
+
({ className, clearAllLabel, closeOnSelect, dropdownWidth, emptyMessage, errorMessage, defaultValue, disabled, id, label, loadingMessage, maxCount, name, onChange, options, placeholder, ref, searchPlaceholder, selectAllLabel, showClearAll, showSearch, showSelectAll, sortAlphabetically, state, value: valueProp, warningMessage, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, ...props }: MultiSelectBaseProps & {
|
|
38
40
|
ref?: Ref<HTMLButtonElement>;
|
|
39
41
|
}): import("react/jsx-runtime").JSX.Element;
|
|
40
42
|
displayName: string;
|