@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.
Files changed (116) hide show
  1. package/README.md +4 -0
  2. package/dist/.js +124 -121
  3. package/dist/{Accordion-CDXdSAST.js → Accordion-Cyrb2byI.js} +1 -1
  4. package/dist/Accordion.js +1 -1
  5. package/dist/Alert/AlertBase.js +1 -1
  6. package/dist/Alert.js +3 -3
  7. package/dist/{AnimatePresence-D-9jXfgI.js → AnimatePresence-D9FLxIGV.js} +1 -1
  8. package/dist/Avatar.js +46 -48
  9. package/dist/Badge.js +1 -1
  10. package/dist/Button.js +1 -1
  11. package/dist/ButtonGroup/ButtonGroupButton.js +1 -1
  12. package/dist/ButtonGroup.js +1 -1
  13. package/dist/ButtonIcon.js +1 -1
  14. package/dist/{Calendar-s4lyijkn.js → Calendar-Cnh_PTbQ.js} +4 -4
  15. package/dist/Checkbox/CheckboxBase.js +1 -1
  16. package/dist/Checkbox.d.ts +10 -3
  17. package/dist/Checkbox.js +55 -35
  18. package/dist/Combobox/ComboboxBase.js +1 -1
  19. package/dist/Combobox.d.ts +5 -3
  20. package/dist/Combobox.js +91 -92
  21. package/dist/{ComboboxBase-qX-mQhT6.js → ComboboxBase-BzDGK36x.js} +1 -1
  22. package/dist/ControlGroup/ControlGroupSelect.d.ts +5 -2
  23. package/dist/ControlGroup/ControlGroupSelect.js +33 -30
  24. package/dist/ControlGroup.d.ts +3 -2
  25. package/dist/ControlGroup.js +41 -33
  26. package/dist/DataCard/Card.js +1 -1
  27. package/dist/DataCard.js +1 -1
  28. package/dist/DateTimePicker/Calendar.js +1 -1
  29. package/dist/DateTimePicker/DateTimeDisplayInput.js +84 -83
  30. package/dist/DateTimePicker/DateTimeInput.js +2 -2
  31. package/dist/DateTimePicker/DateTimeUtils.js +1 -1
  32. package/dist/DateTimePicker/TimePeriodSelect.js +32 -35
  33. package/dist/DateTimePicker/TimePicker.js +2 -2
  34. package/dist/DateTimePicker.d.ts +1 -1
  35. package/dist/DateTimePicker.js +55 -52
  36. package/dist/{DateTimeUtils-DVvG6H-p.js → DateTimeUtils-BJUAMuot.js} +1 -1
  37. package/dist/Dialog.js +1 -1
  38. package/dist/DropdownMenu.d.ts +61 -0
  39. package/dist/DropdownMenu.js +869 -0
  40. package/dist/{HoverCard-CYDsIiVK.js → HoverCard-DERasp0v.js} +1 -1
  41. package/dist/HoverCard.js +1 -1
  42. package/dist/Icons/AdjustmentsIcon.d.ts +5 -0
  43. package/dist/Icons/AdjustmentsIcon.js +78 -0
  44. package/dist/Icons/MenuDotsIcon.d.ts +5 -0
  45. package/dist/Icons/MenuDotsIcon.js +36 -0
  46. package/dist/Icons/MenuIcon.d.ts +5 -0
  47. package/dist/Icons/MenuIcon.js +36 -0
  48. package/dist/Icons/index.d.ts +3 -0
  49. package/dist/Icons.js +81 -78
  50. package/dist/IconsAnimated/PanelLeftCloseIcon.js +3 -3
  51. package/dist/IconsAnimated/PanelLeftOpenIcon.js +3 -3
  52. package/dist/Input.js +1 -1
  53. package/dist/InputNumeric.js +1 -1
  54. package/dist/{InputOTP-cVn5Bzyp.js → InputOTP-BkSw_KIB.js} +12 -10
  55. package/dist/InputOTP.js +1 -1
  56. package/dist/Kbd.js +1 -1
  57. package/dist/Label.js +1 -1
  58. package/dist/MultiSelect/MultiSelectBase.d.ts +6 -4
  59. package/dist/MultiSelect/MultiSelectBase.js +235 -209
  60. package/dist/MultiSelect.d.ts +2 -1
  61. package/dist/MultiSelect.js +14 -12
  62. package/dist/Popover.js +1 -1
  63. package/dist/RadioButton.js +1 -1
  64. package/dist/RadioButtonGroup/RadioButtonGroupBase.js +1 -1
  65. package/dist/RadioButtonGroup.js +1 -1
  66. package/dist/RadioGroup-DqKggFnI.js +328 -0
  67. package/dist/RadioGroup.d.ts +7 -0
  68. package/dist/RadioGroup.js +1 -1
  69. package/dist/Select.d.ts +5 -2
  70. package/dist/Select.js +100 -85
  71. package/dist/Separator.js +1 -1
  72. package/dist/Skeleton.js +1 -1
  73. package/dist/{Slider-BzzZT3Zm.js → Slider-CfUFkWU4.js} +1 -1
  74. package/dist/Slider.js +1 -1
  75. package/dist/Switch-Wj_zov--.js +144 -0
  76. package/dist/Switch.d.ts +12 -3
  77. package/dist/Switch.js +1 -1
  78. package/dist/Tabs/TabsBase.js +4 -4
  79. package/dist/Tabs.js +1 -1
  80. package/dist/Textarea.d.ts +3 -2
  81. package/dist/Textarea.js +50 -45
  82. package/dist/{Toast-9zqXxKKO.js → Toast-CJvzLlMD.js} +1 -1
  83. package/dist/Toast.js +1 -1
  84. package/dist/Toggle.js +1 -1
  85. package/dist/ToggleGroup.js +1 -1
  86. package/dist/{Tooltip-D1K8kY1y.js → Tooltip-BR0tdif4.js} +2 -2
  87. package/dist/Tooltip.js +1 -1
  88. package/dist/Tray.js +4 -4
  89. package/dist/{chunk-h9knIhTc.js → chunk-C4rFPcKS.js} +1 -1
  90. package/dist/dist-DcUGLq_y.js +149 -0
  91. package/dist/main.js +1 -1
  92. package/dist/primitives/button.js +1 -1
  93. package/dist/primitives/input-group.js +1 -1
  94. package/dist/primitives/input.js +1 -1
  95. package/dist/primitives/popover.js +1 -1
  96. package/dist/primitives/select.d.ts.map +1 -1
  97. package/dist/primitives/select.js +56 -53
  98. package/dist/primitives/textarea.js +1 -1
  99. package/dist/{proxy-Dn10Pl_g.js → proxy-CCB7C4Pu.js} +10 -10
  100. package/dist/styles/spectral.css +1 -1
  101. package/dist/{twUtils-VNWgstKL.js → twUtils-D_qzdiwM.js} +1 -1
  102. package/dist/{use-animation-CBUDycyW.js → use-animation-C-qL83hj.js} +1 -1
  103. package/dist/utils/dropdownPositioning.d.ts +13 -0
  104. package/dist/utils/dropdownPositioning.d.ts.map +1 -0
  105. package/dist/utils/dropdownPositioning.js +43 -0
  106. package/dist/utils/dropdownPositioning.test.d.ts +2 -0
  107. package/dist/utils/dropdownPositioning.test.d.ts.map +1 -0
  108. package/dist/utils/dropdownPositioning.test.js +21 -0
  109. package/dist/utils/formFieldUtils.d.ts +15 -1
  110. package/dist/utils/formFieldUtils.d.ts.map +1 -1
  111. package/dist/utils/formFieldUtils.js +35 -19
  112. package/dist/utils/twUtils.js +1 -1
  113. package/package.json +26 -22
  114. package/dist/RadioGroup-w_q6RGEK.js +0 -447
  115. package/dist/Switch-CVzRJ-0n.js +0 -126
  116. /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-VNWgstKL.js";
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-CYDsIiVK.js";
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,5 @@
1
+ import { IconProps } from './iconTypes';
2
+ export declare const MenuDotsIcon: (({ ref, className, title, description, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element) & {
3
+ displayName: string;
4
+ };
5
+ //# sourceMappingURL=MenuDotsIcon.d.ts.map
@@ -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,5 @@
1
+ import { IconProps } from './iconTypes';
2
+ export declare const MenuIcon: (({ ref, className, title, description, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element) & {
3
+ displayName: string;
4
+ };
5
+ //# sourceMappingURL=MenuIcon.d.ts.map
@@ -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 };
@@ -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 { AnalyzeIcon as e } from "./Icons/AnalyzeIcon.js";
2
- import { AnnotationsIcon as t } from "./Icons/AnnotationsIcon.js";
3
- import { ApprovedIcon as n } from "./Icons/ApprovedIcon.js";
4
- import { ArrowDownIcon as r } from "./Icons/ArrowDownIcon.js";
5
- import { ArrowUpIcon as i } from "./Icons/ArrowUpIcon.js";
6
- import { BoxToolIcon as a } from "./Icons/BoxToolIcon.js";
7
- import { CalendarIcon as o } from "./Icons/CalendarIcon.js";
8
- import { CheckCircleIcon as s } from "./Icons/CheckCircleIcon.js";
9
- import { CheckSquareIcon as c } from "./Icons/CheckSquareIcon.js";
10
- import { CheckmarkIcon as l } from "./Icons/CheckmarkIcon.js";
11
- import { ChevronDownIcon as u } from "./Icons/ChevronDownIcon.js";
12
- import { ChevronUpIcon as d } from "./Icons/ChevronUpIcon.js";
13
- import { ClockIcon as f } from "./Icons/ClockIcon.js";
14
- import { CloseCircleIcon as p } from "./Icons/CloseCircleIcon.js";
15
- import { CloseIcon as m } from "./Icons/CloseIcon.js";
16
- import { Crosshairs2Icon as h } from "./Icons/Crosshairs2Icon.js";
17
- import { CrosshairsIcon as g } from "./Icons/CrosshairsIcon.js";
18
- import { DashboardIcon as _ } from "./Icons/DashboardIcon.js";
19
- import { DatabaseIcon as v } from "./Icons/DatabaseIcon.js";
20
- import { DeleteIcon as y } from "./Icons/DeleteIcon.js";
21
- import { DurationIcon as b } from "./Icons/DurationIcon.js";
22
- import { EditIcon as x } from "./Icons/EditIcon.js";
23
- import { EmailIcon as S } from "./Icons/EmailIcon.js";
24
- import { EraserIcon as C } from "./Icons/EraserIcon.js";
25
- import { ErrorIcon as w } from "./Icons/ErrorIcon.js";
26
- import { EyeClosedIcon as T } from "./Icons/EyeClosedIcon.js";
27
- import { EyeClosedIcon2 as E } from "./Icons/EyeClosedIcon2.js";
28
- import { EyeOpenIcon as D } from "./Icons/EyeOpenIcon.js";
29
- import { FileDownloadIcon as O } from "./Icons/FileDownloadIcon.js";
30
- import { GoToFirstIcon as k } from "./Icons/GoToFirstIcon.js";
31
- import { GoToLastIcon as A } from "./Icons/GoToLastIcon.js";
32
- import { HarmonicCursorsIcon as j } from "./Icons/HarmonicCursorsIcon.js";
33
- import { InfoIcon as M } from "./Icons/InfoIcon.js";
34
- import { KeyboardIcon as N } from "./Icons/KeyboardIcon.js";
35
- import { LabelIcon as P } from "./Icons/LabelIcon.js";
36
- import { LassoIcon as F } from "./Icons/LassoIcon.js";
37
- import { LineToolIcon as I } from "./Icons/LineToolIcon.js";
38
- import { LiveViewIcon as L } from "./Icons/LiveViewIcon.js";
39
- import { LoaderIcon as R } from "./Icons/LoaderIcon.js";
40
- import { LocationIcon as z } from "./Icons/LocationIcon.js";
41
- import { LogoutIcon as B } from "./Icons/LogoutIcon.js";
42
- import { MaximizeIcon as V } from "./Icons/MaximizeIcon.js";
43
- import { MeasureIcon as H } from "./Icons/MeasureIcon.js";
44
- import { MessagesIcon as U } from "./Icons/MessagesIcon.js";
45
- import { MetadataIcon as W } from "./Icons/MetadataIcon.js";
46
- import { MinimizeIcon as G } from "./Icons/MinimizeIcon.js";
47
- import { MinusIcon as K } from "./Icons/MinusIcon.js";
48
- import { OntologyIcon as q } from "./Icons/OntologyIcon.js";
49
- import { PanelIconClose as J } from "./Icons/PanelIconClose.js";
50
- import { PanelIconOpen as Y } from "./Icons/PanelIconOpen.js";
51
- import { PauseIcon as X } from "./Icons/PauseIcon.js";
52
- import { PlayIcon as Z } from "./Icons/PlayIcon.js";
53
- import { PlusIcon as Q } from "./Icons/PlusIcon.js";
54
- import { PolygonIcon as $ } from "./Icons/PolygonIcon.js";
55
- import { PrinterIcon as ee } from "./Icons/PrinterIcon.js";
56
- import { ProgressCheckIcon as te } from "./Icons/ProgressCheckIcon.js";
57
- import { ResetIcon as ne } from "./Icons/ResetIcon.js";
58
- import { ReviewedIcon as re } from "./Icons/ReviewedIcon.js";
59
- import { ScissorsIcon as ie } from "./Icons/ScissorsIcon.js";
60
- import { SearchIcon as ae } from "./Icons/SearchIcon.js";
61
- import { SettingsIcon as oe } from "./Icons/SettingsIcon.js";
62
- import { SortAscendingIcon as se } from "./Icons/SortAscendingIcon.js";
63
- import { SortAtoZIcon as ce } from "./Icons/SortAtoZIcon.js";
64
- import { SortDescendingIcon as le } from "./Icons/SortDescendingIcon.js";
65
- import { SortZtoAIcon as ue } from "./Icons/SortZtoAIcon.js";
66
- import { SparklesIcon as de } from "./Icons/SparklesIcon.js";
67
- import { StackIcon as fe } from "./Icons/StackIcon.js";
68
- import { StarIcon as pe } from "./Icons/StarIcon.js";
69
- import { TrashIcon as me } from "./Icons/TrashIcon.js";
70
- import { UndoIcon as he } from "./Icons/UndoIcon.js";
71
- import { UploadIcon as ge } from "./Icons/UploadIcon.js";
72
- import { User2Icon as _e } from "./Icons/User2Icon.js";
73
- import { UserIcon as ve } from "./Icons/UserIcon.js";
74
- import { WarningIcon as ye } from "./Icons/WarningIcon.js";
75
- import { ZoomAllIcon as be } from "./Icons/ZoomAllIcon.js";
76
- import { ZoomXIcon as xe } from "./Icons/ZoomXIcon.js";
77
- import { ZoomYIcon as Se } from "./Icons/ZoomYIcon.js";
78
- export { e as AnalyzeIcon, t as AnnotationsIcon, n as ApprovedIcon, r as ArrowDownIcon, i as ArrowUpIcon, a as BoxToolIcon, o as CalendarIcon, s as CheckCircleIcon, c as CheckSquareIcon, l as CheckmarkIcon, u as ChevronDownIcon, d as ChevronUpIcon, f as ClockIcon, p as CloseCircleIcon, m as CloseIcon, h as Crosshairs2Icon, g as CrosshairsIcon, _ as DashboardIcon, v as DatabaseIcon, y as DeleteIcon, b as DurationIcon, x as EditIcon, S as EmailIcon, C as EraserIcon, w as ErrorIcon, T as EyeClosedIcon, E as EyeClosedIcon2, D as EyeOpenIcon, O as FileDownloadIcon, k as GoToFirstIcon, A as GoToLastIcon, j as HarmonicCursorsIcon, M as InfoIcon, N as KeyboardIcon, P as LabelIcon, F as LassoIcon, I as LineToolIcon, L as LiveViewIcon, R as LoaderIcon, z as LocationIcon, B as LogoutIcon, V as MaximizeIcon, H as MeasureIcon, U as MessagesIcon, W as MetadataIcon, G as MinimizeIcon, K as MinusIcon, q as OntologyIcon, J as PanelIconClose, Y as PanelIconOpen, X as PauseIcon, Z as PlayIcon, Q as PlusIcon, $ as PolygonIcon, ee as PrinterIcon, te as ProgressCheckIcon, ne as ResetIcon, re as ReviewedIcon, ie as ScissorsIcon, ae as SearchIcon, oe as SettingsIcon, se as SortAscendingIcon, ce as SortAtoZIcon, le as SortDescendingIcon, ue as SortZtoAIcon, de as SparklesIcon, fe as StackIcon, pe as StarIcon, me as TrashIcon, he as UndoIcon, ge as UploadIcon, _e as User2Icon, ve as UserIcon, ye as WarningIcon, be as ZoomAllIcon, xe as ZoomXIcon, Se as ZoomYIcon };
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-VNWgstKL.js";
4
- import { t } from "../proxy-Dn10Pl_g.js";
5
- import { t as n } from "../use-animation-CBUDycyW.js";
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-VNWgstKL.js";
4
- import { t } from "../proxy-Dn10Pl_g.js";
5
- import { t as n } from "../use-animation-CBUDycyW.js";
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-VNWgstKL.js";
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";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import "./styles/main.css";
3
- import { t as e } from "./twUtils-VNWgstKL.js";
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-VNWgstKL.js";
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: w } = a(!1, y), T = _ ?? (f === "numeric" ? "^\\d+$" : void 0), E = (e) => {
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: w },
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: E,
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: T,
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
- }), w && c && /* @__PURE__ */ u(n, {
397
+ }), T && c && /* @__PURE__ */ u(n, {
396
398
  dataTestId: "spectral-input-otp-error-message",
397
- id: r(C),
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-cVn5Bzyp.js";
1
+ import { t as e } from "./InputOTP-BkSw_KIB.js";
2
2
  export { e as InputOTP };
package/dist/Kbd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./styles/main.css";
2
- import { t as e } from "./twUtils-VNWgstKL.js";
2
+ import { t as e } from "./twUtils-D_qzdiwM.js";
3
3
  import "react";
4
4
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
5
5
  //#region src/components/Kbd/Kbd.tsx
package/dist/Label.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./styles/main.css";
2
- import { t as e } from "./twUtils-VNWgstKL.js";
2
+ import { t as e } from "./twUtils-D_qzdiwM.js";
3
3
  import "react";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  //#region src/components/Label/Label.tsx
@@ -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 = 'default' | 'error' | 'disabled' | 'loading';
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?: string;
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;