@spear-ai/spectral 1.3.62 → 1.3.64
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 +205 -152
- package/dist/Accordion.d.ts +37 -0
- package/dist/Accordion.js +474 -0
- package/dist/Alert/AlertBase.js +2 -2
- package/dist/Alert.js +21 -11
- package/dist/Avatar.js +1 -1
- package/dist/Badge.d.ts +12 -2
- package/dist/Badge.js +28 -4
- package/dist/Button.d.ts +3 -3
- package/dist/Button.js +35 -28
- package/dist/ButtonGroup/ButtonGroupButton.d.ts +13 -0
- package/dist/ButtonGroup/ButtonGroupButton.js +51 -0
- package/dist/ButtonGroup.d.ts +29 -0
- package/dist/ButtonGroup.js +89 -0
- package/dist/ButtonIcon.js +11 -1
- package/dist/Card.d.ts +16 -0
- package/dist/Card.js +32 -0
- package/dist/Checkbox/CheckboxBase.js +1 -1
- package/dist/Checkbox.js +22 -14
- package/dist/Dialog/DialogBase.d.ts +6 -3
- package/dist/Dialog/DialogBase.js +113 -98
- package/dist/Dialog.d.ts +1 -1
- package/dist/Dialog.js +42 -36
- package/dist/Drawer.js +24 -1283
- package/dist/HoverCard.d.ts +29 -0
- package/dist/HoverCard.js +207 -0
- package/dist/Icons/AnalyzeIcon.d.ts +3 -0
- package/dist/Icons/AnalyzeIcon.js +73 -0
- package/dist/Icons/AnnotationsIcon.js +4 -4
- package/dist/Icons/ApprovedIcon.d.ts +3 -0
- package/dist/Icons/ApprovedIcon.js +43 -0
- package/dist/Icons/CalendarIcon.js +7 -7
- package/dist/Icons/CheckCircleIcon.js +14 -14
- package/dist/Icons/CheckSquareIcon.js +14 -14
- package/dist/Icons/CheckmarkIcon.js +9 -9
- package/dist/Icons/ChevronDownIcon.js +6 -6
- package/dist/Icons/ChevronUpIcon.js +7 -7
- package/dist/Icons/ClockIcon.js +10 -10
- package/dist/Icons/CloseCircleIcon.js +10 -10
- package/dist/Icons/CloseIcon.js +5 -5
- package/dist/Icons/DashboardIcon.js +4 -4
- package/dist/Icons/DatabaseIcon.d.ts +3 -0
- package/dist/Icons/DatabaseIcon.js +53 -0
- package/dist/Icons/DeleteIcon.js +24 -6
- package/dist/Icons/DurationIcon.js +7 -7
- package/dist/Icons/EmailIcon.js +4 -4
- package/dist/Icons/EraserIcon.js +20 -11
- package/dist/Icons/ErrorIcon.js +3 -3
- package/dist/Icons/EyeClosedIcon.js +2 -2
- package/dist/Icons/EyeClosedIcon2.js +18 -18
- package/dist/Icons/EyeOpenIcon.js +8 -8
- package/dist/Icons/GoToFirstIcon.js +1 -1
- package/dist/Icons/GoToLastIcon.js +3 -3
- package/dist/Icons/HarmonicCursorsIcon.js +4 -4
- package/dist/Icons/IconBase.d.ts +1 -1
- package/dist/Icons/IconBase.js +15 -17
- package/dist/Icons/InfoIcon.js +4 -4
- package/dist/Icons/LabelIcon.js +6 -6
- package/dist/Icons/LassoIcon.js +6 -6
- package/dist/Icons/LineToolIcon.js +22 -93
- package/dist/Icons/LineToolIcon2.d.ts +3 -0
- package/dist/Icons/LineToolIcon2.js +73 -0
- package/dist/Icons/LiveViewIcon.js +5 -5
- package/dist/Icons/LoaderIcon.js +5 -5
- package/dist/Icons/LocationIcon.js +5 -5
- package/dist/Icons/LogoutIcon.js +11 -11
- package/dist/Icons/MessagesIcon.d.ts +3 -0
- package/dist/Icons/MessagesIcon.js +34 -0
- package/dist/Icons/MetadataIcon.js +5 -5
- package/dist/Icons/MinusIcon.js +9 -9
- package/dist/Icons/OntologyIcon.js +74 -21
- package/dist/Icons/PanelIconClose.js +11 -11
- package/dist/Icons/PanelIconOpen.js +11 -11
- package/dist/Icons/PlayIcon.js +5 -5
- package/dist/Icons/PlusIcon.js +9 -8
- package/dist/Icons/ResetIcon.js +6 -6
- package/dist/Icons/ReviewedIcon.d.ts +3 -0
- package/dist/Icons/ReviewedIcon.js +44 -0
- package/dist/Icons/ScissorsIcon.js +9 -9
- package/dist/Icons/SettingsIcon.js +20 -22
- package/dist/Icons/SortAscendingIcon.d.ts +3 -0
- package/dist/Icons/SortAscendingIcon.js +73 -0
- package/dist/Icons/SortDescendingIcon.d.ts +3 -0
- package/dist/Icons/SortDescendingIcon.js +73 -0
- package/dist/Icons/StackIcon.d.ts +3 -0
- package/dist/Icons/StackIcon.js +43 -0
- package/dist/Icons/StarIcon.d.ts +3 -0
- package/dist/Icons/StarIcon.js +31 -0
- package/dist/Icons/TrashIcon.js +10 -10
- package/dist/Icons/UndoIcon.js +1 -1
- package/dist/Icons/UserIcon.js +1 -1
- package/dist/Icons/WarningIcon.js +9 -9
- package/dist/Icons/ZoomAllIcon.js +97 -57
- package/dist/Icons/ZoomXIcon.js +6 -6
- package/dist/Icons/ZoomYIcon.js +17 -8
- package/dist/Icons/index.d.ts +10 -0
- package/dist/Icons.js +114 -94
- package/dist/Input.d.ts +2 -0
- package/dist/Input.js +100 -82
- package/dist/InputGroup.d.ts +16 -0
- package/dist/InputGroup.js +129 -0
- package/dist/InputOTP.d.ts +0 -2
- package/dist/InputOTP.js +148 -143
- package/dist/Label.d.ts +3 -7
- package/dist/Label.js +11 -11
- package/dist/MultiSelect/MultiSelectBase.js +28 -28
- package/dist/Popover.d.ts +6 -7
- package/dist/Popover.js +60 -71
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +1 -1
- package/dist/RadioButtonGroup.js +1 -1
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.js +141 -134
- package/dist/Select.d.ts +12 -12
- package/dist/Select.js +106 -895
- package/dist/Separator.d.ts +12 -0
- package/dist/Separator.js +24 -0
- package/dist/Skeleton.js +3 -3
- package/dist/Slider.d.ts +15 -3
- package/dist/Slider.js +464 -40
- package/dist/Switch/SwitchBase.js +1 -1
- package/dist/Switch.js +2 -2
- package/dist/Tabs/TabsBase.js +1 -1
- package/dist/Tabs.js +16 -16
- package/dist/Textarea.js +58 -50
- package/dist/Toggle.js +2 -2
- package/dist/ToggleGroup.js +1 -1
- package/dist/Tooltip/TooltipBase.js +29 -29
- package/dist/Tooltip.js +15 -15
- package/dist/Tray/TrayStoriesData.d.ts +39 -0
- package/dist/Tray/TrayStoriesData.js +438 -0
- package/dist/Tray.d.ts +28 -0
- package/dist/Tray.js +236 -0
- package/dist/analyzer/network.webp +0 -0
- package/dist/analyzer/sunburst.webp +0 -0
- package/dist/analyzer/visual.webp +0 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Accordion/Accordion.d.ts +37 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +12 -2
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +29 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/dist/components/ButtonGroup/ButtonGroupButton.d.ts +13 -0
- package/dist/components/ButtonGroup/ButtonGroupButton.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +16 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/DialogBase.d.ts +6 -3
- package/dist/components/Dialog/DialogBase.d.ts.map +1 -1
- package/dist/components/HoverCard/HoverCard.d.ts +29 -0
- package/dist/components/HoverCard/HoverCard.d.ts.map +1 -0
- package/dist/components/Icons/AnalyzeIcon.d.ts +3 -0
- package/dist/components/Icons/AnalyzeIcon.d.ts.map +1 -0
- package/dist/components/Icons/ApprovedIcon.d.ts +3 -0
- package/dist/components/Icons/ApprovedIcon.d.ts.map +1 -0
- package/dist/components/Icons/DatabaseIcon.d.ts +3 -0
- package/dist/components/Icons/DatabaseIcon.d.ts.map +1 -0
- package/dist/components/Icons/DeleteIcon.d.ts.map +1 -1
- package/dist/components/Icons/EraserIcon.d.ts.map +1 -1
- package/dist/components/Icons/IconBase.d.ts +1 -1
- package/dist/components/Icons/IconBase.d.ts.map +1 -1
- package/dist/components/Icons/LineToolIcon.d.ts.map +1 -1
- package/dist/components/Icons/LineToolIcon2.d.ts +3 -0
- package/dist/components/Icons/LineToolIcon2.d.ts.map +1 -0
- package/dist/components/Icons/MessagesIcon.d.ts +3 -0
- package/dist/components/Icons/MessagesIcon.d.ts.map +1 -0
- package/dist/components/Icons/OntologyIcon.d.ts.map +1 -1
- package/dist/components/Icons/PlusIcon.d.ts.map +1 -1
- package/dist/components/Icons/ReviewedIcon.d.ts +3 -0
- package/dist/components/Icons/ReviewedIcon.d.ts.map +1 -0
- package/dist/components/Icons/SettingsIcon.d.ts.map +1 -1
- package/dist/components/Icons/SortAscendingIcon.d.ts +3 -0
- package/dist/components/Icons/SortAscendingIcon.d.ts.map +1 -0
- package/dist/components/Icons/SortDescendingIcon.d.ts +3 -0
- package/dist/components/Icons/SortDescendingIcon.d.ts.map +1 -0
- package/dist/components/Icons/StackIcon.d.ts +3 -0
- package/dist/components/Icons/StackIcon.d.ts.map +1 -0
- package/dist/components/Icons/StarIcon.d.ts +3 -0
- package/dist/components/Icons/StarIcon.d.ts.map +1 -0
- package/dist/components/Icons/ZoomAllIcon.d.ts.map +1 -1
- package/dist/components/Icons/ZoomYIcon.d.ts.map +1 -1
- package/dist/components/Icons/index.d.ts +10 -0
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +2 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +16 -0
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -0
- package/dist/components/InputOTP/InputOTP.d.ts +0 -2
- package/dist/components/InputOTP/InputOTP.d.ts.map +1 -1
- package/dist/components/Label/Label.d.ts +3 -7
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +6 -7
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +12 -12
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Separator/Separator.d.ts +12 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +15 -3
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Tray/Tray.d.ts +28 -0
- package/dist/components/Tray/Tray.d.ts.map +1 -0
- package/dist/components/Tray/TrayStoriesData.d.ts +39 -0
- package/dist/components/Tray/TrayStoriesData.d.ts.map +1 -0
- package/dist/{createLucideIcon-CI1yJrZf.js → createLucideIcon-B_8CJpcQ.js} +4 -4
- package/dist/features/AuthCard/ForgotPasswordEmailForm.js +13 -3
- package/dist/features/AuthCard/ForgotPasswordResetForm.js +9 -9
- package/dist/features/AuthCard/PasswordInput.js +87 -9
- package/dist/features/AuthCard/SignInForm.js +25 -15
- package/dist/features/AuthCard/SignUpForm.js +24 -14
- package/dist/features/AuthCard.js +2 -2
- package/dist/features/LabelingTools.js +16 -6
- package/dist/features/SensorMetadata.js +15 -5
- package/dist/features/SettingsPopover.js +22 -12
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/{index-CBwRmAsQ.js → index-6Abv_Flm.js} +1 -1
- package/dist/{index-DUK1rxhf.js → index-B-GQStVW.js} +6 -5
- package/dist/index-B2oBi8ng.js +142 -0
- package/dist/index-BIpuW_o8.js +146 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-BhufZRa2.js +232 -0
- package/dist/index-CAKA12cC.js +1265 -0
- package/dist/{index-Cfyte2YO.js → index-CGALWSq_.js} +1 -1
- package/dist/index-CVSxKOPp.js +13 -0
- package/dist/index-CevVJ05e.js +822 -0
- package/dist/{index-CRBC94ik.js → index-D29mdTf5.js} +1 -1
- package/dist/{index-FeGk8zep.js → index-NzygPVvJ.js} +10 -9
- package/dist/index-UEFPWH8U.js +54 -0
- package/dist/index-rKs9bXHr.js +6 -0
- package/dist/{index-Cb7rjMhE.js → index-y6Br5T4h.js} +6 -6
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/linear-cursor-small.png +0 -0
- package/dist/{loader-circle-CvdzOiQ_.js → loader-circle-CdRVlFhN.js} +2 -2
- package/dist/main.js +15630 -13510
- package/dist/message-alert-matte-glass-gradient.webp +0 -0
- package/dist/primitives/button.d.ts +10 -0
- package/dist/primitives/button.d.ts.map +1 -0
- package/dist/primitives/button.js +42 -0
- package/dist/primitives/input.d.ts +3 -0
- package/dist/primitives/input.d.ts.map +1 -0
- package/dist/primitives/input.js +18 -0
- package/dist/primitives/select.d.ts +16 -0
- package/dist/primitives/select.d.ts.map +1 -0
- package/dist/primitives/select.js +205 -0
- package/dist/primitives/slot.d.ts.map +1 -1
- package/dist/primitives/slot.js +21 -20
- package/dist/primitives/textarea.d.ts +3 -0
- package/dist/primitives/textarea.d.ts.map +1 -0
- package/dist/primitives/textarea.js +16 -0
- package/dist/{proxy-DD79Ok6n.js → proxy-C9AqCss6.js} +1 -1
- package/dist/speech-bubble-fluid-glass-gradient.webp +0 -0
- package/dist/styles/main.css +1 -1
- package/dist/utils/formFieldUtils.js +1 -1
- package/dist/utils/twUtils.js +2728 -2
- package/dist/{x-BBpi7a_7.js → x-Dl66o_vF.js} +2 -2
- package/package.json +28 -23
- package/dist/Accordion/AccordionBase.d.ts +0 -42
- package/dist/Accordion/AccordionBase.js +0 -225
- package/dist/Badge/BadgeBase.d.ts +0 -13
- package/dist/Badge/BadgeBase.js +0 -35
- package/dist/PasswordInput-ClY_hxuN.js +0 -261
- package/dist/components/Accordion/AccordionBase.d.ts +0 -42
- package/dist/components/Accordion/AccordionBase.d.ts.map +0 -1
- package/dist/components/Badge/BadgeBase.d.ts +0 -13
- package/dist/components/Badge/BadgeBase.d.ts.map +0 -1
- package/dist/index-CA7haECj.js +0 -248
- package/dist/index-CbXx14YO.js +0 -59
- package/dist/index-VXXKXen4.js +0 -15
- package/dist/index-cCg4yNa8.js +0 -132
- package/dist/primitives/label.d.ts +0 -5
- package/dist/primitives/label.d.ts.map +0 -1
- package/dist/primitives/label.js +0 -27
- package/dist/twUtils-CRiPKpXj.js +0 -2743
- /package/dist/{list.yml.webp → analyzer/list.yml.webp} +0 -0
package/dist/Button.js
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles/main.css";
|
|
3
3
|
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { c as y } from "./index-
|
|
4
|
+
import { cn as u } from "./utils/twUtils.js";
|
|
5
|
+
import { c as y } from "./index-D29mdTf5.js";
|
|
6
6
|
import { forwardRef as h } from "react";
|
|
7
|
-
import { L as f } from "./loader-circle-
|
|
8
|
-
const
|
|
7
|
+
import { L as f } from "./loader-circle-CdRVlFhN.js";
|
|
8
|
+
const w = y(
|
|
9
9
|
`
|
|
10
|
-
!font-sans flex relative items-center justify-center gap-2 whitespace-nowrap transition-colors cursor-pointer rounded-lg border font-semibold
|
|
11
|
-
focus
|
|
10
|
+
!font-sans flex relative items-center justify-center gap-2 whitespace-nowrap transition-colors cursor-pointer rounded-lg border font-semibold focus:outline-none focus:outline-none
|
|
11
|
+
focus-visible:outline-1 focus-visible:outline-offset-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0
|
|
12
12
|
`,
|
|
13
13
|
{
|
|
14
14
|
variants: {
|
|
15
15
|
variant: {
|
|
16
|
-
primary:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
primary: `bg-button-primary-bg text-button-primary-text border-button-primary-border hover:bg-button-primary-bg--hover hover:text-button-primary-text--hover hover:border-button-primary-border--hover
|
|
17
|
+
focus-visible:outline-button-primary-border disabled:bg-button-primary-bg--disabled disabled:text-button-primary-text--disabled disabled:border-button-primary-border--disabled`,
|
|
18
|
+
secondary: `bg-button-secondary-bg border-button-secondary-border text-button-secondary-text hover:bg-button-secondary-bg--hover hover:text-button-secondary-text--hover
|
|
19
|
+
focus-visible:outline-button-secondary-border disabled:bg-button-secondary-bg--disabled disabled:text-button-secondary-text--disabled disabled:border-button-secondary-border--disabled`,
|
|
20
|
+
outline: `bg-button-outline-bg border-button-outline-border text-button-outline-text hover:bg-button-outline-bg--hover hover:text-button-outline-text--hover focus-visible:outline-button-outline-border
|
|
21
|
+
disabled:text-button-outline-text--disabled disabled:border-button-outline-border--disabled`,
|
|
22
|
+
ghost: "bg-button-ghost-bg border-none text-button-ghost-text hover:bg-button-ghost-bg--hover hover:text-button-ghost-text--hover focus-visible:outline-none disabled:text-button-ghost-text--disabled",
|
|
23
|
+
card: "bg-button-card-bg border-button-card-border"
|
|
20
24
|
},
|
|
21
25
|
size: {
|
|
22
26
|
default: "py-2 px-6 w-fit",
|
|
23
|
-
fullWidth: "py-2 px-6 w-full"
|
|
27
|
+
fullWidth: "py-2 px-6 w-full",
|
|
28
|
+
card: "py-2 px-3 w-fit"
|
|
24
29
|
},
|
|
25
30
|
state: {
|
|
26
31
|
default: "",
|
|
@@ -34,38 +39,40 @@ const N = y(
|
|
|
34
39
|
size: "default"
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
|
-
),
|
|
42
|
+
), N = h(
|
|
38
43
|
({
|
|
39
44
|
className: l,
|
|
40
45
|
dataTestId: g,
|
|
41
46
|
disabled: n,
|
|
42
47
|
endIcon: b,
|
|
43
|
-
errorMessage:
|
|
48
|
+
errorMessage: d,
|
|
44
49
|
label: p,
|
|
45
50
|
size: r,
|
|
46
|
-
startIcon:
|
|
51
|
+
startIcon: a,
|
|
47
52
|
state: t,
|
|
48
|
-
type:
|
|
53
|
+
type: c = "button",
|
|
49
54
|
variant: e,
|
|
50
|
-
...
|
|
55
|
+
...x
|
|
51
56
|
}, v) => {
|
|
52
|
-
const
|
|
57
|
+
const i = {
|
|
53
58
|
error: {
|
|
54
59
|
primary: "bg-button-danger border-button-danger text-button-primary-text pointer-events-none",
|
|
55
60
|
secondary: "bg-button-danger border-button-danger text-button-secondary-text pointer-events-none",
|
|
56
61
|
outline: "bg-transparent border-button-danger text-button-danger pointer-events-none",
|
|
57
|
-
ghost: "bg-transparent text-button-danger pointer-events-none"
|
|
62
|
+
ghost: "bg-transparent text-button-danger pointer-events-none",
|
|
63
|
+
card: "bg-transparent border-button-danger text-button-danger pointer-events-none"
|
|
58
64
|
},
|
|
59
65
|
loading: {
|
|
60
66
|
primary: "bg-button-primary-bg--disabled border-button-primary-border--disabled text-button-primary-text--disabled pointer-events-none",
|
|
61
67
|
secondary: "bg-button-secondary-bg--disabled border-button-secondary-border--disabled text-button-secondary-text--disabled pointer-events-none",
|
|
62
68
|
outline: "bg-button-outline-bg--disabled border-button-outline-border--disabled text-button-outline-text--disabled pointer-events-none",
|
|
63
|
-
ghost: "bg-transparent text-button-ghost-text--disabled pointer-events-none"
|
|
69
|
+
ghost: "bg-transparent text-button-ghost-text--disabled pointer-events-none",
|
|
70
|
+
card: "bg-button-card-bg--disabled border-button-card-border--disabled text-button-card-text--disabled pointer-events-none"
|
|
64
71
|
}
|
|
65
72
|
}, m = u(
|
|
66
|
-
|
|
67
|
-
t === "error" &&
|
|
68
|
-
t === "loading" &&
|
|
73
|
+
w({ variant: e, state: t, size: r }),
|
|
74
|
+
t === "error" && i.error[e || "primary"],
|
|
75
|
+
t === "loading" && i.loading[e || "primary"],
|
|
69
76
|
r,
|
|
70
77
|
l
|
|
71
78
|
);
|
|
@@ -79,21 +86,21 @@ const N = y(
|
|
|
79
86
|
"data-testid": g || `button-${e}`,
|
|
80
87
|
disabled: n,
|
|
81
88
|
ref: v,
|
|
82
|
-
type:
|
|
83
|
-
...
|
|
89
|
+
type: c,
|
|
90
|
+
...x,
|
|
84
91
|
children: [
|
|
85
|
-
|
|
92
|
+
a && /* @__PURE__ */ o("span", { className: "flex pr-2", "aria-hidden": !0, children: a }),
|
|
86
93
|
t === "loading" && /* @__PURE__ */ o(f, { className: "ml-2 animate-spin", size: 16 }),
|
|
87
94
|
b && t !== "loading" && /* @__PURE__ */ o("span", { className: "flex pl-2", "aria-hidden": !0, children: b }),
|
|
88
95
|
p
|
|
89
96
|
]
|
|
90
97
|
}
|
|
91
98
|
),
|
|
92
|
-
t === "error" &&
|
|
99
|
+
t === "error" && d && /* @__PURE__ */ o("p", { className: "text-danger-100 mt-2 text-xs", role: "alert", "aria-live": "assertive", children: d })
|
|
93
100
|
] });
|
|
94
101
|
}
|
|
95
102
|
);
|
|
96
|
-
|
|
103
|
+
N.displayName = "Button";
|
|
97
104
|
export {
|
|
98
|
-
|
|
105
|
+
N as Button
|
|
99
106
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "outline" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare const ButtonGroupButton: {
|
|
8
|
+
({ className, variant, size, asChild, ...props }: ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=ButtonGroupButton.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import "../styles/main.css";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { Slot as s } from "../primitives/slot.js";
|
|
4
|
+
import { cn as r } from "../utils/twUtils.js";
|
|
5
|
+
import { c as l } from "../index-D29mdTf5.js";
|
|
6
|
+
import "react";
|
|
7
|
+
const c = l(
|
|
8
|
+
`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius,0.375rem)] text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none
|
|
9
|
+
[&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-accent focus-visible:outline-offset-2 focus-visible:outline-2 focus-visitble:outline-accent
|
|
10
|
+
aria-invalid:ring-destructive/20 aria-invalid:border-destructive bg-level-one text-text-primary hover:bg-level-two cursor-pointer active:text-accent`,
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
default: "",
|
|
15
|
+
outline: "border border-level-three active:text-accent active:border-accent"
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
19
|
+
sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
20
|
+
lg: "h-10 px-6 has-[>svg]:px-4",
|
|
21
|
+
icon: "size-9",
|
|
22
|
+
"icon-sm": "size-8",
|
|
23
|
+
"icon-lg": "size-10"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: "default",
|
|
28
|
+
size: "default"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
), u = ({
|
|
32
|
+
className: i,
|
|
33
|
+
variant: t,
|
|
34
|
+
size: e,
|
|
35
|
+
asChild: o = !1,
|
|
36
|
+
...a
|
|
37
|
+
}) => /* @__PURE__ */ n(
|
|
38
|
+
o ? s : "button",
|
|
39
|
+
{
|
|
40
|
+
"data-slot": "button-group-item",
|
|
41
|
+
"data-variant": t,
|
|
42
|
+
"data-size": e,
|
|
43
|
+
className: r(c({ variant: t, size: e, className: i })),
|
|
44
|
+
...a
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
u.displayName = "ButtonGroupButton";
|
|
48
|
+
export {
|
|
49
|
+
u as ButtonGroupButton,
|
|
50
|
+
c as buttonVariants
|
|
51
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ButtonGroupButton, buttonVariants } from './ButtonGroupButton';
|
|
2
|
+
import { Separator } from '../Separator/Separator';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ComponentProps } from 'react';
|
|
5
|
+
export type ButtonGroupProps = ComponentProps<typeof ButtonGroup> & VariantProps<typeof buttonGroupVariants>;
|
|
6
|
+
export declare const buttonGroupVariants: (props?: ({
|
|
7
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export declare const ButtonGroup: {
|
|
10
|
+
({ className, orientation, variant, size, children, ...props }: ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants> & VariantProps<typeof buttonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const ButtonGroupItem: {
|
|
14
|
+
({ children, className, size, variant, ...props }: ComponentProps<typeof ButtonGroupButton> & {
|
|
15
|
+
size?: VariantProps<typeof buttonVariants>["size"];
|
|
16
|
+
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const ButtonGroupText: ({ className, asChild, ...props }: ComponentProps<"div"> & {
|
|
21
|
+
asChild?: boolean;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const ButtonGroupSeparator: {
|
|
24
|
+
({ className, orientation, ...props }: ComponentProps<typeof Separator> & {
|
|
25
|
+
orientation?: "vertical" | "horizontal";
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=ButtonGroup.d.ts.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./styles/main.css";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { ButtonGroupButton as d } from "./ButtonGroup/ButtonGroupButton.js";
|
|
5
|
+
import { Separator as p } from "./Separator.js";
|
|
6
|
+
import { Slot as m } from "./primitives/slot.js";
|
|
7
|
+
import { cn as s } from "./utils/twUtils.js";
|
|
8
|
+
import { c } from "./index-D29mdTf5.js";
|
|
9
|
+
import { Children as f, isValidElement as v, cloneElement as b } from "react";
|
|
10
|
+
const g = c(
|
|
11
|
+
`flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1
|
|
12
|
+
has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2`,
|
|
13
|
+
{
|
|
14
|
+
variants: {
|
|
15
|
+
orientation: {
|
|
16
|
+
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
17
|
+
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
orientation: "horizontal"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
), h = ({
|
|
25
|
+
className: o,
|
|
26
|
+
orientation: t,
|
|
27
|
+
variant: r,
|
|
28
|
+
size: a,
|
|
29
|
+
children: i,
|
|
30
|
+
...l
|
|
31
|
+
}) => /* @__PURE__ */ n(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
role: "group",
|
|
35
|
+
"data-slot": "button-group",
|
|
36
|
+
"aria-label": l["aria-label"],
|
|
37
|
+
"data-orientation": t,
|
|
38
|
+
className: s(g({ orientation: t }), o),
|
|
39
|
+
...l,
|
|
40
|
+
children: f.map(i, (e) => v(e) && e.type === u ? b(e, {
|
|
41
|
+
variant: e.props.variant ?? r,
|
|
42
|
+
size: e.props.size ?? a
|
|
43
|
+
}) : e)
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
h.displayName = "ButtonGroup";
|
|
47
|
+
const u = ({
|
|
48
|
+
children: o,
|
|
49
|
+
className: t,
|
|
50
|
+
size: r,
|
|
51
|
+
variant: a,
|
|
52
|
+
...i
|
|
53
|
+
}) => /* @__PURE__ */ n(d, { "data-slot": "button-group-item", size: r, variant: a, className: s(t), ...i, children: o });
|
|
54
|
+
u.displayName = "ButtonGroupItem";
|
|
55
|
+
const C = ({
|
|
56
|
+
className: o,
|
|
57
|
+
asChild: t = !1,
|
|
58
|
+
...r
|
|
59
|
+
}) => /* @__PURE__ */ n(
|
|
60
|
+
t ? m : "div",
|
|
61
|
+
{
|
|
62
|
+
"data-slot": "button-group-text",
|
|
63
|
+
className: s(
|
|
64
|
+
"bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
65
|
+
o
|
|
66
|
+
),
|
|
67
|
+
...r
|
|
68
|
+
}
|
|
69
|
+
), x = ({
|
|
70
|
+
className: o,
|
|
71
|
+
orientation: t = "vertical",
|
|
72
|
+
...r
|
|
73
|
+
}) => /* @__PURE__ */ n(
|
|
74
|
+
p,
|
|
75
|
+
{
|
|
76
|
+
"data-slot": "button-group-separator",
|
|
77
|
+
orientation: t,
|
|
78
|
+
className: s("bg-level-three relative !m-0 self-stretch data-[orientation=vertical]:h-auto", o),
|
|
79
|
+
...r
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
x.displayName = "ButtonGroupSeparator";
|
|
83
|
+
export {
|
|
84
|
+
h as ButtonGroup,
|
|
85
|
+
u as ButtonGroupItem,
|
|
86
|
+
x as ButtonGroupSeparator,
|
|
87
|
+
C as ButtonGroupText,
|
|
88
|
+
g as buttonGroupVariants
|
|
89
|
+
};
|
package/dist/ButtonIcon.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles/main.css";
|
|
3
3
|
import { jsx as a } from "react/jsx-runtime";
|
|
4
|
+
import "./Icons/AnalyzeIcon.js";
|
|
4
5
|
import "./Icons/AnnotationsIcon.js";
|
|
6
|
+
import "./Icons/ApprovedIcon.js";
|
|
5
7
|
import "./Icons/CalendarIcon.js";
|
|
6
8
|
import "./Icons/CheckCircleIcon.js";
|
|
7
9
|
import "./Icons/CheckSquareIcon.js";
|
|
@@ -12,6 +14,7 @@ import "./Icons/ClockIcon.js";
|
|
|
12
14
|
import "./Icons/CloseCircleIcon.js";
|
|
13
15
|
import "./Icons/CloseIcon.js";
|
|
14
16
|
import "./Icons/DashboardIcon.js";
|
|
17
|
+
import "./Icons/DatabaseIcon.js";
|
|
15
18
|
import "./Icons/DeleteIcon.js";
|
|
16
19
|
import "./Icons/DurationIcon.js";
|
|
17
20
|
import "./Icons/EmailIcon.js";
|
|
@@ -27,10 +30,12 @@ import "./Icons/InfoIcon.js";
|
|
|
27
30
|
import "./Icons/LabelIcon.js";
|
|
28
31
|
import "./Icons/LassoIcon.js";
|
|
29
32
|
import "./Icons/LineToolIcon.js";
|
|
33
|
+
import "./Icons/LineToolIcon2.js";
|
|
30
34
|
import "./Icons/LiveViewIcon.js";
|
|
31
35
|
import { LoaderIcon as N } from "./Icons/LoaderIcon.js";
|
|
32
36
|
import "./Icons/LocationIcon.js";
|
|
33
37
|
import "./Icons/LogoutIcon.js";
|
|
38
|
+
import "./Icons/MessagesIcon.js";
|
|
34
39
|
import "./Icons/MetadataIcon.js";
|
|
35
40
|
import "./Icons/MinusIcon.js";
|
|
36
41
|
import "./Icons/OntologyIcon.js";
|
|
@@ -39,8 +44,13 @@ import "./Icons/PanelIconOpen.js";
|
|
|
39
44
|
import "./Icons/PlayIcon.js";
|
|
40
45
|
import "./Icons/PlusIcon.js";
|
|
41
46
|
import "./Icons/ResetIcon.js";
|
|
47
|
+
import "./Icons/ReviewedIcon.js";
|
|
42
48
|
import "./Icons/ScissorsIcon.js";
|
|
43
49
|
import "./Icons/SettingsIcon.js";
|
|
50
|
+
import "./Icons/SortAscendingIcon.js";
|
|
51
|
+
import "./Icons/SortDescendingIcon.js";
|
|
52
|
+
import "./Icons/StackIcon.js";
|
|
53
|
+
import "./Icons/StarIcon.js";
|
|
44
54
|
import "./Icons/TrashIcon.js";
|
|
45
55
|
import "./Icons/UndoIcon.js";
|
|
46
56
|
import "./Icons/UserIcon.js";
|
|
@@ -48,7 +58,7 @@ import "./Icons/WarningIcon.js";
|
|
|
48
58
|
import "./Icons/ZoomAllIcon.js";
|
|
49
59
|
import "./Icons/ZoomXIcon.js";
|
|
50
60
|
import "./Icons/ZoomYIcon.js";
|
|
51
|
-
import {
|
|
61
|
+
import { cn as n } from "./utils/twUtils.js";
|
|
52
62
|
import { forwardRef as g, isValidElement as k, cloneElement as p } from "react";
|
|
53
63
|
const x = `bg-transparent hover:bg-level-one text-text-primary inline-flex items-center justify-center whitespace-nowrap transition-colors focus:outline-none focus-visible:outline-2
|
|
54
64
|
focus-visible:outline-offset-2 focus-visible:outline-level-two cursor-pointer [&_svg]:pointer-events-none [&_svg]:shrink-0`, m = {
|
package/dist/Card.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type CardProps = ComponentProps<'div'> & VariantProps<typeof cardVariants> & {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const cardVariants: (props?: ({
|
|
7
|
+
variant?: "small" | "default" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export declare const CardBase: ({ ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const CardHeader: ({ className, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const CardTitle: ({ className, asChild, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const CardHeaderEndSlot: ({ className, asChild, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const CardContent: ({ className, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const Card: ({ className, variant, asChild, children, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=Card.d.ts.map
|
package/dist/Card.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./styles/main.css";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { Slot as n } from "./primitives/slot.js";
|
|
4
|
+
import { cn as o } from "./utils/twUtils.js";
|
|
5
|
+
import { c } from "./index-D29mdTf5.js";
|
|
6
|
+
import "react";
|
|
7
|
+
const l = c("text-text-primary flex flex-col w-full card-effects p-3", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "gap-6 rounded-xl content-card",
|
|
11
|
+
small: "data-card gap-2"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: "default"
|
|
16
|
+
}
|
|
17
|
+
}), v = ({ ...a }) => /* @__PURE__ */ r("div", { "data-slot": "card", ...a }), x = ({ className: a, ...t }) => /* @__PURE__ */ r(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "card-header",
|
|
21
|
+
className: o("@container/card-header flex items-center justify-between pb-4", a),
|
|
22
|
+
...t
|
|
23
|
+
}
|
|
24
|
+
), N = ({ className: a, asChild: t = !1, ...e }) => /* @__PURE__ */ r(t ? n : "div", { "data-slot": "card-title", className: o("text-xl leading-none font-semibold", a), ...e }), b = ({ className: a, asChild: t = !1, ...e }) => /* @__PURE__ */ r(t ? n : "div", { "data-slot": "card-action", className: o("justify-self-end", a), ...e }), g = ({ className: a, ...t }) => /* @__PURE__ */ r("div", { "data-slot": "card-content", className: a, ...t }), j = ({ className: a, variant: t, asChild: e = !1, children: d, ...s }) => /* @__PURE__ */ r(e ? n : "div", { "data-slot": "card", className: o(l({ variant: t }), a), ...s, children: d });
|
|
25
|
+
export {
|
|
26
|
+
j as Card,
|
|
27
|
+
v as CardBase,
|
|
28
|
+
g as CardContent,
|
|
29
|
+
x as CardHeader,
|
|
30
|
+
b as CardHeaderEndSlot,
|
|
31
|
+
N as CardTitle
|
|
32
|
+
};
|
|
@@ -3,7 +3,7 @@ import "../styles/main.css";
|
|
|
3
3
|
import { jsx as m, jsxs as K } from "react/jsx-runtime";
|
|
4
4
|
import { useControllableState as M } from "../hooks/useControllableState.js";
|
|
5
5
|
import { Slot as C } from "../primitives/slot.js";
|
|
6
|
-
import {
|
|
6
|
+
import { cn as w } from "../utils/twUtils.js";
|
|
7
7
|
import { createContext as O, forwardRef as E, useRef as T, useId as V, useEffect as y, useCallback as u, useContext as $ } from "react";
|
|
8
8
|
const R = O(null);
|
|
9
9
|
function I(r) {
|
package/dist/Checkbox.js
CHANGED
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
import "./styles/main.css";
|
|
3
3
|
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
4
4
|
import { CheckboxBase as l, CheckboxIndicator as b } from "./Checkbox/CheckboxBase.js";
|
|
5
|
+
import "./Icons/AnalyzeIcon.js";
|
|
5
6
|
import "./Icons/AnnotationsIcon.js";
|
|
7
|
+
import "./Icons/ApprovedIcon.js";
|
|
6
8
|
import "./Icons/CalendarIcon.js";
|
|
7
9
|
import "./Icons/CheckCircleIcon.js";
|
|
8
10
|
import "./Icons/CheckSquareIcon.js";
|
|
9
|
-
import { CheckmarkIcon as
|
|
11
|
+
import { CheckmarkIcon as n } from "./Icons/CheckmarkIcon.js";
|
|
10
12
|
import "./Icons/ChevronDownIcon.js";
|
|
11
13
|
import "./Icons/ChevronUpIcon.js";
|
|
12
14
|
import "./Icons/ClockIcon.js";
|
|
13
15
|
import "./Icons/CloseCircleIcon.js";
|
|
14
16
|
import "./Icons/CloseIcon.js";
|
|
15
17
|
import "./Icons/DashboardIcon.js";
|
|
18
|
+
import "./Icons/DatabaseIcon.js";
|
|
16
19
|
import "./Icons/DeleteIcon.js";
|
|
17
20
|
import "./Icons/DurationIcon.js";
|
|
18
21
|
import "./Icons/EmailIcon.js";
|
|
@@ -28,20 +31,27 @@ import "./Icons/InfoIcon.js";
|
|
|
28
31
|
import "./Icons/LabelIcon.js";
|
|
29
32
|
import "./Icons/LassoIcon.js";
|
|
30
33
|
import "./Icons/LineToolIcon.js";
|
|
34
|
+
import "./Icons/LineToolIcon2.js";
|
|
31
35
|
import "./Icons/LiveViewIcon.js";
|
|
32
36
|
import "./Icons/LoaderIcon.js";
|
|
33
37
|
import "./Icons/LocationIcon.js";
|
|
34
38
|
import "./Icons/LogoutIcon.js";
|
|
39
|
+
import "./Icons/MessagesIcon.js";
|
|
35
40
|
import "./Icons/MetadataIcon.js";
|
|
36
|
-
import { MinusIcon as
|
|
41
|
+
import { MinusIcon as h } from "./Icons/MinusIcon.js";
|
|
37
42
|
import "./Icons/OntologyIcon.js";
|
|
38
43
|
import "./Icons/PanelIconClose.js";
|
|
39
44
|
import "./Icons/PanelIconOpen.js";
|
|
40
45
|
import "./Icons/PlayIcon.js";
|
|
41
46
|
import "./Icons/PlusIcon.js";
|
|
42
47
|
import "./Icons/ResetIcon.js";
|
|
48
|
+
import "./Icons/ReviewedIcon.js";
|
|
43
49
|
import "./Icons/ScissorsIcon.js";
|
|
44
50
|
import "./Icons/SettingsIcon.js";
|
|
51
|
+
import "./Icons/SortAscendingIcon.js";
|
|
52
|
+
import "./Icons/SortDescendingIcon.js";
|
|
53
|
+
import "./Icons/StackIcon.js";
|
|
54
|
+
import "./Icons/StarIcon.js";
|
|
45
55
|
import "./Icons/TrashIcon.js";
|
|
46
56
|
import "./Icons/UndoIcon.js";
|
|
47
57
|
import "./Icons/UserIcon.js";
|
|
@@ -49,35 +59,33 @@ import "./Icons/WarningIcon.js";
|
|
|
49
59
|
import "./Icons/ZoomAllIcon.js";
|
|
50
60
|
import "./Icons/ZoomXIcon.js";
|
|
51
61
|
import "./Icons/ZoomYIcon.js";
|
|
52
|
-
import {
|
|
62
|
+
import { cn as t } from "./utils/twUtils.js";
|
|
53
63
|
import { forwardRef as x } from "react";
|
|
54
64
|
const k = x(
|
|
55
|
-
({ className:
|
|
65
|
+
({ className: i, id: r, labelText: e, onCheckedChange: m, checked: p, required: c, ...a }, s) => /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
56
66
|
/* @__PURE__ */ o(
|
|
57
67
|
l,
|
|
58
68
|
{
|
|
59
|
-
className:
|
|
69
|
+
className: t(
|
|
60
70
|
[
|
|
61
71
|
"checkbox peer border-checkbox-border h-5 w-5 shrink-0 rounded-sm border hover:opacity-80",
|
|
62
|
-
"focus-visible:outline-checkbox-border--focus focus:outline-
|
|
72
|
+
"focus-visible:outline-checkbox-border--focus focus:outline-none focus-visible:outline-1 focus-visible:outline-offset-2 disabled:cursor-not-allowed",
|
|
63
73
|
"data-[state=checked]:border-checkbox-border--checked disabled:opacity-50"
|
|
64
74
|
].join(" "),
|
|
65
|
-
|
|
75
|
+
i
|
|
66
76
|
),
|
|
67
77
|
"data-testid": "checkbox",
|
|
68
78
|
id: r,
|
|
69
|
-
id: r,
|
|
70
79
|
"aria-labelledby": `${r}-label`,
|
|
71
|
-
"aria-required":
|
|
72
|
-
onCheckedChange:
|
|
73
|
-
onCheckedChange: t,
|
|
80
|
+
"aria-required": c,
|
|
81
|
+
onCheckedChange: m,
|
|
74
82
|
ref: s,
|
|
75
83
|
...a,
|
|
76
84
|
children: /* @__PURE__ */ o(
|
|
77
85
|
b,
|
|
78
86
|
{
|
|
79
|
-
className:
|
|
80
|
-
children:
|
|
87
|
+
className: t("checkbox-indicator text-checkbox-indicator--checked flex items-center justify-center"),
|
|
88
|
+
children: p === "indeterminate" ? /* @__PURE__ */ o(h, { className: "checkbox-indeterminate", size: 16, strokeWidth: 4 }) : /* @__PURE__ */ o(n, { className: "checkbox-check", size: 16, strokeWidth: 4 })
|
|
81
89
|
}
|
|
82
90
|
)
|
|
83
91
|
}
|
|
@@ -88,7 +96,7 @@ const k = x(
|
|
|
88
96
|
htmlFor: r,
|
|
89
97
|
className: "text-md text-text-primary peer-disabled:text-neutral-400",
|
|
90
98
|
"data-testid": "checkbox-label",
|
|
91
|
-
children:
|
|
99
|
+
children: e
|
|
92
100
|
}
|
|
93
101
|
)
|
|
94
102
|
] })
|
|
@@ -5,6 +5,7 @@ export type DialogBaseProps = {
|
|
|
5
5
|
readonly defaultOpen?: boolean;
|
|
6
6
|
onOpenChange?: (isOpen: boolean) => void;
|
|
7
7
|
readonly children: ReactNode;
|
|
8
|
+
readonly modal?: boolean;
|
|
8
9
|
};
|
|
9
10
|
export type DialogContextValue = {
|
|
10
11
|
isOpen: boolean;
|
|
@@ -12,12 +13,13 @@ export type DialogContextValue = {
|
|
|
12
13
|
contentId: string;
|
|
13
14
|
titleId: string;
|
|
14
15
|
descriptionId: string;
|
|
16
|
+
modal: boolean;
|
|
15
17
|
};
|
|
16
18
|
export type TriggerableElement = ReactElement<{
|
|
17
19
|
onClick?: (...args: unknown[]) => void;
|
|
18
20
|
}>;
|
|
19
21
|
export declare function useDialogContext(): DialogContextValue;
|
|
20
|
-
export declare function DialogBase({ isOpen: controlledOpen, defaultOpen, onOpenChange, children }: DialogBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function DialogBase({ isOpen: controlledOpen, defaultOpen, onOpenChange, children, modal, }: DialogBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
21
23
|
type DialogTriggerProps = {
|
|
22
24
|
readonly children: ReactNode;
|
|
23
25
|
readonly asChild?: boolean;
|
|
@@ -38,7 +40,7 @@ type DialogOverlayProps = {
|
|
|
38
40
|
};
|
|
39
41
|
export declare function DialogOverlayBase({ className }: DialogOverlayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
40
42
|
declare const contentVariants: (props?: ({
|
|
41
|
-
size?: "sm" | "
|
|
43
|
+
size?: "sm" | "lg" | "md" | "xl" | "2xl" | null | undefined;
|
|
42
44
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
43
45
|
export type DialogSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
44
46
|
export type DialogContentProps = {
|
|
@@ -46,9 +48,10 @@ export type DialogContentProps = {
|
|
|
46
48
|
className?: string;
|
|
47
49
|
readonly size?: DialogSize;
|
|
48
50
|
onPointerDownOutside?: (event: PointerEvent) => void;
|
|
51
|
+
onInteractOutside?: (event: PointerEvent | KeyboardEvent) => void;
|
|
49
52
|
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
50
53
|
} & VariantProps<typeof contentVariants>;
|
|
51
|
-
export declare function DialogContentBase({ children, className, size, onPointerDownOutside, onEscapeKeyDown, }: DialogContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
54
|
+
export declare function DialogContentBase({ children, className, size, onPointerDownOutside, onInteractOutside, onEscapeKeyDown, }: DialogContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
52
55
|
type DialogTitleProps = {
|
|
53
56
|
readonly children: ReactNode;
|
|
54
57
|
className?: string;
|