@spear-ai/spectral 1.3.61 → 1.3.63
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 +181 -152
- package/dist/Accordion.d.ts +37 -0
- package/dist/Accordion.js +465 -0
- package/dist/Alert/AlertBase.js +2 -2
- package/dist/Alert.js +4 -3
- package/dist/Avatar.d.ts +12 -0
- package/dist/Avatar.js +88 -1
- package/dist/Badge.d.ts +12 -2
- package/dist/Badge.js +28 -4
- package/dist/Button.js +2 -2
- 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 +2 -1
- package/dist/Checkbox/CheckboxBase.d.ts +2 -2
- package/dist/Checkbox/CheckboxBase.js +21 -21
- package/dist/Checkbox.d.ts +14 -0
- package/dist/Checkbox.js +98 -0
- package/dist/Dialog/DialogBase.d.ts +1 -1
- package/dist/Dialog/DialogBase.js +2 -2
- package/dist/Dialog.js +4 -4
- package/dist/Drawer.js +24 -1283
- package/dist/HoverCard.d.ts +29 -0
- package/dist/HoverCard.js +207 -0
- package/dist/Icons/CheckmarkIcon.js +9 -9
- package/dist/Icons/MessagesIcon.d.ts +3 -0
- package/dist/Icons/MessagesIcon.js +31 -0
- package/dist/Icons/MinusIcon.js +13 -13
- package/dist/Icons/index.d.ts +1 -0
- package/dist/Icons.js +50 -48
- package/dist/Input.d.ts +2 -0
- package/dist/Input.js +98 -89
- package/dist/InputGroup.d.ts +16 -0
- package/dist/InputGroup.js +129 -0
- package/dist/InputOTP.d.ts +0 -2
- package/dist/InputOTP.js +138 -142
- package/dist/Label.d.ts +3 -7
- package/dist/Label.js +11 -11
- package/dist/MultiSelect/MultiSelectBase.js +22 -22
- 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.js +97 -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 +41 -42
- 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 +227 -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/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts +12 -2
- package/dist/components/Badge/Badge.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/Checkbox/Checkbox.d.ts +14 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/CheckboxBase.d.ts +2 -2
- package/dist/components/Checkbox/CheckboxBase.d.ts.map +1 -1
- package/dist/components/Dialog/DialogBase.d.ts +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/MessagesIcon.d.ts +3 -0
- package/dist/components/Icons/MessagesIcon.d.ts.map +1 -0
- package/dist/components/Icons/iconTypes.d.ts +1 -0
- package/dist/components/Icons/iconTypes.d.ts.map +1 -1
- package/dist/components/Icons/index.d.ts +1 -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/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/features/AuthCard/ForgotPasswordEmailForm.js +4 -3
- package/dist/features/AuthCard/ForgotPasswordResetForm.js +9 -9
- package/dist/features/AuthCard/PasswordInput.js +78 -9
- package/dist/features/AuthCard/SignInForm.js +8 -7
- package/dist/features/AuthCard/SignUpForm.js +8 -7
- package/dist/features/AuthCard.js +2 -2
- package/dist/features/LabelingTools.js +7 -6
- package/dist/features/SensorMetadata.js +3 -2
- package/dist/features/SettingsPopover.js +3 -2
- 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 +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/linear-cursor-small.png +0 -0
- package/dist/list.yml.webp +0 -0
- 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 +196 -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/package.json +13 -8
- 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
|
@@ -2,9 +2,10 @@ import "./styles/main.css";
|
|
|
2
2
|
import * as R from "react";
|
|
3
3
|
import { useLayoutEffect as Ae } from "react";
|
|
4
4
|
import * as Re from "react-dom";
|
|
5
|
-
import { P as At, c as Ce, a as Yt,
|
|
5
|
+
import { P as At, c as Ce, a as Yt, d as $t } from "./index-BhufZRa2.js";
|
|
6
6
|
import { jsx as j } from "react/jsx-runtime";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as Pe } from "./index-0ioNhtNM.js";
|
|
8
|
+
import { u as Oe } from "./index-y6Br5T4h.js";
|
|
8
9
|
const Se = ["top", "right", "bottom", "left"], Z = Math.min, W = Math.max, at = Math.round, ct = Math.floor, I = (t) => ({
|
|
9
10
|
x: t,
|
|
10
11
|
y: t
|
|
@@ -1331,7 +1332,7 @@ var Hn = "Arrow", oe = R.forwardRef((t, e) => {
|
|
|
1331
1332
|
);
|
|
1332
1333
|
});
|
|
1333
1334
|
oe.displayName = Hn;
|
|
1334
|
-
var _n = oe, Lt = "Popper", [re,
|
|
1335
|
+
var _n = oe, Lt = "Popper", [re, Gn] = Ce(Lt), [Bn, ie] = re(Lt), se = (t) => {
|
|
1335
1336
|
const { __scopePopper: e, children: n } = t, [o, r] = R.useState(null);
|
|
1336
1337
|
return /* @__PURE__ */ j(Bn, { scope: e, anchor: o, onAnchorChange: r, children: n });
|
|
1337
1338
|
};
|
|
@@ -1527,11 +1528,11 @@ function de(t) {
|
|
|
1527
1528
|
const [e, n = "center"] = t.split("-");
|
|
1528
1529
|
return [e, n];
|
|
1529
1530
|
}
|
|
1530
|
-
var
|
|
1531
|
+
var Jn = se, Qn = le, to = ae, eo = ue;
|
|
1531
1532
|
export {
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1533
|
+
Qn as A,
|
|
1534
|
+
to as C,
|
|
1535
|
+
Jn as R,
|
|
1536
|
+
eo as a,
|
|
1537
|
+
Gn as c
|
|
1537
1538
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import "./styles/main.css";
|
|
2
|
+
import * as A from "react";
|
|
3
|
+
import r from "react";
|
|
4
|
+
import { c as D, a as S, e as M } from "./index-BhufZRa2.js";
|
|
5
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
6
|
+
function h(l) {
|
|
7
|
+
const i = l + "CollectionProvider", [N, _] = D(i), [v, f] = N(
|
|
8
|
+
i,
|
|
9
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
10
|
+
), p = (c) => {
|
|
11
|
+
const { scope: e, children: s } = c, t = r.useRef(null), o = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
12
|
+
return /* @__PURE__ */ d(v, { scope: e, itemMap: o, collectionRef: t, children: s });
|
|
13
|
+
};
|
|
14
|
+
p.displayName = i;
|
|
15
|
+
const m = l + "CollectionSlot", E = M(m), C = r.forwardRef(
|
|
16
|
+
(c, e) => {
|
|
17
|
+
const { scope: s, children: t } = c, o = f(m, s), n = S(e, o.collectionRef);
|
|
18
|
+
return /* @__PURE__ */ d(E, { ref: n, children: t });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
C.displayName = m;
|
|
22
|
+
const u = l + "CollectionItemSlot", R = "data-radix-collection-item", T = M(u), I = r.forwardRef(
|
|
23
|
+
(c, e) => {
|
|
24
|
+
const { scope: s, children: t, ...o } = c, n = r.useRef(null), x = S(e, n), a = f(u, s);
|
|
25
|
+
return r.useEffect(() => (a.itemMap.set(n, { ref: n, ...o }), () => void a.itemMap.delete(n))), /* @__PURE__ */ d(T, { [R]: "", ref: x, children: t });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
I.displayName = u;
|
|
29
|
+
function O(c) {
|
|
30
|
+
const e = f(l + "CollectionConsumer", c);
|
|
31
|
+
return r.useCallback(() => {
|
|
32
|
+
const t = e.collectionRef.current;
|
|
33
|
+
if (!t) return [];
|
|
34
|
+
const o = Array.from(t.querySelectorAll(`[${R}]`));
|
|
35
|
+
return Array.from(e.itemMap.values()).sort(
|
|
36
|
+
(a, y) => o.indexOf(a.ref.current) - o.indexOf(y.ref.current)
|
|
37
|
+
);
|
|
38
|
+
}, [e.collectionRef, e.itemMap]);
|
|
39
|
+
}
|
|
40
|
+
return [
|
|
41
|
+
{ Provider: p, Slot: C, ItemSlot: I },
|
|
42
|
+
O,
|
|
43
|
+
_
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
var P = A.createContext(void 0);
|
|
47
|
+
function b(l) {
|
|
48
|
+
const i = A.useContext(P);
|
|
49
|
+
return l || i || "ltr";
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
h as c,
|
|
53
|
+
b as u
|
|
54
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { d as z } from "./index-BhufZRa2.js";
|
|
3
3
|
function n(r) {
|
|
4
|
-
const [
|
|
4
|
+
const [h, e] = u.useState(void 0);
|
|
5
5
|
return z(() => {
|
|
6
6
|
if (r) {
|
|
7
7
|
e({ width: r.offsetWidth, height: r.offsetHeight });
|
|
@@ -11,8 +11,8 @@ function n(r) {
|
|
|
11
11
|
const b = i[0];
|
|
12
12
|
let o, t;
|
|
13
13
|
if ("borderBoxSize" in b) {
|
|
14
|
-
const s = b.borderBoxSize,
|
|
15
|
-
o =
|
|
14
|
+
const s = b.borderBoxSize, d = Array.isArray(s) ? s[0] : s;
|
|
15
|
+
o = d.inlineSize, t = d.blockSize;
|
|
16
16
|
} else
|
|
17
17
|
o = r.offsetWidth, t = r.offsetHeight;
|
|
18
18
|
e({ width: o, height: t });
|
|
@@ -20,7 +20,7 @@ function n(r) {
|
|
|
20
20
|
return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
|
|
21
21
|
} else
|
|
22
22
|
e(void 0);
|
|
23
|
-
}, [r]),
|
|
23
|
+
}, [r]), h;
|
|
24
24
|
}
|
|
25
25
|
export {
|
|
26
26
|
n as u
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
|
+
export { Accordion } from './components/Accordion/Accordion';
|
|
1
2
|
export { Alert, type AlertProps } from './components/Alert/Alert';
|
|
3
|
+
export { Avatar, type AvatarProps } from './components/Avatar/Avatar';
|
|
2
4
|
export { Badge } from './components/Badge/Badge';
|
|
3
5
|
export { Button, type ButtonProps } from './components/Button/Button';
|
|
6
|
+
export { ButtonGroup, ButtonGroupItem, ButtonGroupSeparator } from './components/ButtonGroup/ButtonGroup';
|
|
4
7
|
export { ButtonIcon, type ButtonIconProps } from './components/ButtonIcon/ButtonIcon';
|
|
8
|
+
export { Checkbox } from './components/Checkbox/Checkbox';
|
|
5
9
|
export { Dialog } from './components/Dialog/Dialog';
|
|
6
10
|
export { Drawer, type DrawerProps } from './components/Drawer/Drawer';
|
|
11
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/HoverCard/HoverCard';
|
|
7
12
|
export { Input, type InputProps } from './components/Input/Input';
|
|
13
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, } from './components/InputGroup/InputGroup';
|
|
14
|
+
export { InputOTP, type InputOTPProps } from './components/InputOTP/InputOTP';
|
|
8
15
|
export { Label, type LabelProps } from './components/Label/Label';
|
|
9
16
|
export { Popover, PopoverContent, PopoverTrigger } from './components/Popover/Popover';
|
|
10
17
|
export { RadioButtonGroup, RadioButtonGroupItem } from './components/RadioButtonGroup/RadioButtonGroup';
|
|
11
18
|
export { RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, } from './components/RadioGroup/RadioGroup';
|
|
12
19
|
export { Select, type SelectExtendedProps, type SelectProps } from './components/Select/Select';
|
|
20
|
+
export { Separator, type SeparatorProps } from './components/Separator/Separator';
|
|
13
21
|
export { Skeleton } from './components/Skeleton/Skeleton';
|
|
14
22
|
export { Slider, type SliderProps } from './components/Slider/Slider';
|
|
15
23
|
export { SpectralProvider, type SpectralProviderProps } from './components/SpectralProvider';
|
|
@@ -19,9 +27,10 @@ export { Textarea, type TextareaProps } from './components/Textarea/Textarea';
|
|
|
19
27
|
export { Toggle, type ToggleProps } from './components/Toggle/Toggle';
|
|
20
28
|
export { ToggleGroup, ToggleGroupItem, type ToggleGroupProps } from './components/ToggleGroup/ToggleGroup';
|
|
21
29
|
export { Tooltip, TooltipContent, TooltipTrigger } from './components/Tooltip/Tooltip';
|
|
30
|
+
export { Tray, type TrayBaseProps, type TrayBodyProps, type TrayContentProps } from './components/Tray/Tray';
|
|
22
31
|
export * from './components/Icons';
|
|
23
32
|
export { default as IconBase, SvgIdContext } from './components/Icons/IconBase';
|
|
33
|
+
export { useAccordionAutoScroll } from './hooks/useAccordionAutoScroll';
|
|
24
34
|
export { useControllableState } from './hooks/useControllableState';
|
|
25
|
-
export { useTheme } from './hooks/useTheme';
|
|
26
35
|
export { cn } from './utils/twUtils';
|
|
27
36
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,oCAAoC,CAAA;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | 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 Button: ({ className, variant, size, asChild, ...props }: ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/primitives/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,eAAO,MAAM,cAAc;;;8EA2B1B,CAAA;AAED,eAAO,MAAM,MAAM,GAAI,iDAMpB,cAAc,CAAC,QAAQ,CAAC,GACzB,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,4CAIF,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as s } from "./slot.js";
|
|
3
|
+
import { cn as a } from "../utils/twUtils.js";
|
|
4
|
+
import { c as l } from "../index-D29mdTf5.js";
|
|
5
|
+
import "react";
|
|
6
|
+
const v = l(
|
|
7
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-level-one text-text-primary hover:bg-level-two",
|
|
12
|
+
destructive: "bg-danger-200 text-text-primary hover:bg-danger-300 focus-visible:outline-danger-200 focus-visible:outline-offset-2 focus-visible:outline-2",
|
|
13
|
+
outline: "border-level-three bg-level-one hover:bg-level-two",
|
|
14
|
+
secondary: "bg-level-two text-text-secondary hover:bg-level-three",
|
|
15
|
+
ghost: "hover:bg-level-one",
|
|
16
|
+
link: "text-text-primary underline-offset-4 hover:underline-accent"
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
20
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
21
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
22
|
+
icon: "size-9",
|
|
23
|
+
"icon-sm": "size-8",
|
|
24
|
+
"icon-lg": "size-10"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "default",
|
|
29
|
+
size: "default"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
), b = ({
|
|
33
|
+
className: e,
|
|
34
|
+
variant: t,
|
|
35
|
+
size: i,
|
|
36
|
+
asChild: n = !1,
|
|
37
|
+
...r
|
|
38
|
+
}) => /* @__PURE__ */ o(n ? s : "button", { "data-slot": "button", className: a(v({ variant: t, size: i, className: e })), ...r });
|
|
39
|
+
export {
|
|
40
|
+
b as Button,
|
|
41
|
+
v as buttonVariants
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/primitives/input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,eAAO,MAAM,KAAK,GAAI,+BAA+B,cAAc,CAAC,OAAO,CAAC,4CAY3E,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { cn as o } from "../utils/twUtils.js";
|
|
3
|
+
import "react";
|
|
4
|
+
const a = ({ className: e, type: t, ...i }) => /* @__PURE__ */ n(
|
|
5
|
+
"input",
|
|
6
|
+
{
|
|
7
|
+
type: t,
|
|
8
|
+
"data-slot": "input",
|
|
9
|
+
className: o(
|
|
10
|
+
"file:text-input-text placeholder:text-input-text-placeholder selection:bg-input-bg--selected selection:text-input-text border-input-border focus:ring-none focus-visible:border-accent focus-visible:outline-accent aria-invalid:ring-danger-400 aria-invalid:border-danger-400 h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
11
|
+
e
|
|
12
|
+
),
|
|
13
|
+
...i
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
a as Input
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, asChild, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: 'sm' | 'default';
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
16
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/primitives/select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAEzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAE9E;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpF;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,IAAgB,EAChB,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;CACxB,2CAoBA;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,QAAmB,EACnB,KAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CA6BtD;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQ/F;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAkBvG;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,2CAQvG;AAED,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,cAAc,CAAC,2CAUjH;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,2CAU/D;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACZ,CAAA"}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import "../Icons/AnnotationsIcon.js";
|
|
3
|
+
import "../Icons/CalendarIcon.js";
|
|
4
|
+
import "../Icons/CheckCircleIcon.js";
|
|
5
|
+
import "../Icons/CheckSquareIcon.js";
|
|
6
|
+
import { CheckmarkIcon as d } from "../Icons/CheckmarkIcon.js";
|
|
7
|
+
import { ChevronDownIcon as l } from "../Icons/ChevronDownIcon.js";
|
|
8
|
+
import { ChevronUpIcon as c } from "../Icons/ChevronUpIcon.js";
|
|
9
|
+
import "../Icons/ClockIcon.js";
|
|
10
|
+
import "../Icons/CloseCircleIcon.js";
|
|
11
|
+
import "../Icons/CloseIcon.js";
|
|
12
|
+
import "../Icons/DashboardIcon.js";
|
|
13
|
+
import "../Icons/DeleteIcon.js";
|
|
14
|
+
import "../Icons/DurationIcon.js";
|
|
15
|
+
import "../Icons/EmailIcon.js";
|
|
16
|
+
import "../Icons/EraserIcon.js";
|
|
17
|
+
import "../Icons/ErrorIcon.js";
|
|
18
|
+
import "../Icons/EyeClosedIcon.js";
|
|
19
|
+
import "../Icons/EyeClosedIcon2.js";
|
|
20
|
+
import "../Icons/EyeOpenIcon.js";
|
|
21
|
+
import "../Icons/GoToFirstIcon.js";
|
|
22
|
+
import "../Icons/GoToLastIcon.js";
|
|
23
|
+
import "../Icons/HarmonicCursorsIcon.js";
|
|
24
|
+
import "../Icons/InfoIcon.js";
|
|
25
|
+
import "../Icons/LabelIcon.js";
|
|
26
|
+
import "../Icons/LassoIcon.js";
|
|
27
|
+
import "../Icons/LineToolIcon.js";
|
|
28
|
+
import "../Icons/LiveViewIcon.js";
|
|
29
|
+
import "../Icons/LoaderIcon.js";
|
|
30
|
+
import "../Icons/LocationIcon.js";
|
|
31
|
+
import "../Icons/LogoutIcon.js";
|
|
32
|
+
import "../Icons/MessagesIcon.js";
|
|
33
|
+
import "../Icons/MetadataIcon.js";
|
|
34
|
+
import "../Icons/MinusIcon.js";
|
|
35
|
+
import "../Icons/OntologyIcon.js";
|
|
36
|
+
import "../Icons/PanelIconClose.js";
|
|
37
|
+
import "../Icons/PanelIconOpen.js";
|
|
38
|
+
import "../Icons/PlayIcon.js";
|
|
39
|
+
import "../Icons/PlusIcon.js";
|
|
40
|
+
import "../Icons/ResetIcon.js";
|
|
41
|
+
import "../Icons/ScissorsIcon.js";
|
|
42
|
+
import "../Icons/SettingsIcon.js";
|
|
43
|
+
import "../Icons/TrashIcon.js";
|
|
44
|
+
import "../Icons/UndoIcon.js";
|
|
45
|
+
import "../Icons/UserIcon.js";
|
|
46
|
+
import "../Icons/WarningIcon.js";
|
|
47
|
+
import "../Icons/ZoomAllIcon.js";
|
|
48
|
+
import "../Icons/ZoomXIcon.js";
|
|
49
|
+
import "../Icons/ZoomYIcon.js";
|
|
50
|
+
import { R as p, P as m, C as u, V as f, G as g, I as v, a as x, b as h, L as b, S as w, c as y, d as S, T as z, e as N, f as I } from "../index-CevVJ05e.js";
|
|
51
|
+
import { cn as o } from "../utils/twUtils.js";
|
|
52
|
+
import "react";
|
|
53
|
+
function _t({ ...t }) {
|
|
54
|
+
return /* @__PURE__ */ e(p, { "data-slot": "select", ...t });
|
|
55
|
+
}
|
|
56
|
+
function kt({ ...t }) {
|
|
57
|
+
return /* @__PURE__ */ e(g, { "data-slot": "select-group", ...t });
|
|
58
|
+
}
|
|
59
|
+
function jt({ ...t }) {
|
|
60
|
+
return /* @__PURE__ */ e(I, { "data-slot": "select-value", ...t });
|
|
61
|
+
}
|
|
62
|
+
function Ct({
|
|
63
|
+
className: t,
|
|
64
|
+
size: r = "default",
|
|
65
|
+
children: a,
|
|
66
|
+
asChild: s,
|
|
67
|
+
...i
|
|
68
|
+
}) {
|
|
69
|
+
return /* @__PURE__ */ n(
|
|
70
|
+
z,
|
|
71
|
+
{
|
|
72
|
+
"data-slot": "select-trigger",
|
|
73
|
+
"data-size": r,
|
|
74
|
+
className: o(
|
|
75
|
+
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
76
|
+
t
|
|
77
|
+
),
|
|
78
|
+
asChild: s,
|
|
79
|
+
...i,
|
|
80
|
+
children: [
|
|
81
|
+
a,
|
|
82
|
+
!s && /* @__PURE__ */ e(N, { asChild: !0, children: /* @__PURE__ */ e(l, { className: "size-4 opacity-50" }) })
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
function Bt({
|
|
88
|
+
className: t,
|
|
89
|
+
children: r,
|
|
90
|
+
position: a = "popper",
|
|
91
|
+
align: s = "center",
|
|
92
|
+
...i
|
|
93
|
+
}) {
|
|
94
|
+
return /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(
|
|
95
|
+
u,
|
|
96
|
+
{
|
|
97
|
+
"data-slot": "select-content",
|
|
98
|
+
className: o(
|
|
99
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
100
|
+
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
101
|
+
t
|
|
102
|
+
),
|
|
103
|
+
position: a,
|
|
104
|
+
align: s,
|
|
105
|
+
...i,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ e(_, {}),
|
|
108
|
+
/* @__PURE__ */ e(
|
|
109
|
+
f,
|
|
110
|
+
{
|
|
111
|
+
className: o(
|
|
112
|
+
"p-1",
|
|
113
|
+
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
114
|
+
),
|
|
115
|
+
children: r
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
/* @__PURE__ */ e(k, {})
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
) });
|
|
122
|
+
}
|
|
123
|
+
function Tt({ className: t, ...r }) {
|
|
124
|
+
return /* @__PURE__ */ e(
|
|
125
|
+
b,
|
|
126
|
+
{
|
|
127
|
+
"data-slot": "select-label",
|
|
128
|
+
className: o("text-muted-foreground px-2 py-1.5 text-xs", t),
|
|
129
|
+
...r
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
function Vt({ className: t, children: r, ...a }) {
|
|
134
|
+
return /* @__PURE__ */ n(
|
|
135
|
+
v,
|
|
136
|
+
{
|
|
137
|
+
"data-slot": "select-item",
|
|
138
|
+
className: o(
|
|
139
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
140
|
+
t
|
|
141
|
+
),
|
|
142
|
+
...a,
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(d, { className: "size-4" }) }) }),
|
|
145
|
+
/* @__PURE__ */ e(h, { children: r })
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
function Dt({ className: t, ...r }) {
|
|
151
|
+
return /* @__PURE__ */ e(
|
|
152
|
+
S,
|
|
153
|
+
{
|
|
154
|
+
"data-slot": "select-separator",
|
|
155
|
+
className: o("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
156
|
+
...r
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
function _({ className: t, ...r }) {
|
|
161
|
+
return /* @__PURE__ */ e(
|
|
162
|
+
y,
|
|
163
|
+
{
|
|
164
|
+
"data-slot": "select-scroll-up-button",
|
|
165
|
+
className: o("flex cursor-default items-center justify-center py-1", t),
|
|
166
|
+
...r,
|
|
167
|
+
children: /* @__PURE__ */ e(c, { className: "size-4" })
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
function k({
|
|
172
|
+
className: t,
|
|
173
|
+
...r
|
|
174
|
+
}) {
|
|
175
|
+
return /* @__PURE__ */ e(
|
|
176
|
+
w,
|
|
177
|
+
{
|
|
178
|
+
"data-slot": "select-scroll-down-button",
|
|
179
|
+
className: o("flex cursor-default items-center justify-center py-1", t),
|
|
180
|
+
...r,
|
|
181
|
+
children: /* @__PURE__ */ e(l, { className: "size-4" })
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
export {
|
|
186
|
+
_t as Select,
|
|
187
|
+
Bt as SelectContent,
|
|
188
|
+
kt as SelectGroup,
|
|
189
|
+
Vt as SelectItem,
|
|
190
|
+
Tt as SelectLabel,
|
|
191
|
+
k as SelectScrollDownButton,
|
|
192
|
+
_ as SelectScrollUpButton,
|
|
193
|
+
Dt as SelectSeparator,
|
|
194
|
+
Ct as SelectTrigger,
|
|
195
|
+
jt as SelectValue
|
|
196
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../src/primitives/slot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAgCd,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAExD;AAED,eAAO,MAAM,IAAI;eAPJ,SAAS;+CAgDpB,CAAA;
|
|
1
|
+
{"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../src/primitives/slot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAgCd,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAExD;AAED,eAAO,MAAM,IAAI;eAPJ,SAAS;+CAgDpB,CAAA;AAGF,MAAM,MAAM,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA"}
|
package/dist/primitives/slot.js
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as m, Fragment as y } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
function
|
|
3
|
+
import { forwardRef as p, isValidElement as h, cloneElement as E } from "react";
|
|
4
|
+
function N(c, t, { checkForDefaultPrevented: e = !0 } = {}) {
|
|
5
5
|
return function(n) {
|
|
6
6
|
c?.(n), (!e || !n.defaultPrevented) && t?.(n);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function v(...c) {
|
|
10
10
|
return (t) => {
|
|
11
11
|
for (const e of c)
|
|
12
12
|
e && (typeof e == "function" ? e(t) : typeof e == "object" && "current" in e && (e.current = t));
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function x(c) {
|
|
16
16
|
return /* @__PURE__ */ m(y, { children: c.children });
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
if (!
|
|
18
|
+
const S = p(function({ children: t, ...e }, r) {
|
|
19
|
+
if (!h(t))
|
|
20
20
|
return t == null ? null : /* @__PURE__ */ m("span", { ...e, ref: r });
|
|
21
21
|
const n = t, i = n.props ?? {}, f = { ...i, ...e };
|
|
22
|
-
for (const [o,
|
|
23
|
-
if (o.startsWith("on") && typeof
|
|
24
|
-
const
|
|
25
|
-
typeof
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
) : f[o] =
|
|
22
|
+
for (const [o, l] of Object.entries(e))
|
|
23
|
+
if (o.startsWith("on") && typeof l == "function") {
|
|
24
|
+
const u = i[o];
|
|
25
|
+
typeof u == "function" ? f[o] = N(
|
|
26
|
+
u,
|
|
27
|
+
l
|
|
28
|
+
) : f[o] = l;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
30
|
+
const s = i.className || "";
|
|
31
|
+
s && e.className && (f.className = `${s} ${e.className}`);
|
|
32
|
+
const a = i.style;
|
|
33
|
+
a && e.style && (f.style = { ...a, ...e.style });
|
|
34
34
|
const d = n.ref;
|
|
35
|
-
return f.ref =
|
|
35
|
+
return f.ref = v(d, r), E(n, f);
|
|
36
36
|
});
|
|
37
|
+
S.displayName = "Slot";
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
S as Slot,
|
|
40
|
+
x as Slottable
|
|
40
41
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/primitives/textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,eAAO,MAAM,QAAQ,GAAI,yBAAyB,cAAc,CAAC,UAAU,CAAC,4CAW3E,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cn as t } from "../utils/twUtils.js";
|
|
3
|
+
const d = ({ className: r, ...e }) => /* @__PURE__ */ i(
|
|
4
|
+
"textarea",
|
|
5
|
+
{
|
|
6
|
+
"data-slot": "textarea",
|
|
7
|
+
className: t(
|
|
8
|
+
"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
9
|
+
r
|
|
10
|
+
),
|
|
11
|
+
...e
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
export {
|
|
15
|
+
d as Textarea
|
|
16
|
+
};
|
|
Binary file
|