@spear-ai/spectral 1.8.9 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.js +214 -210
- package/dist/Accordion.js +4 -4
- package/dist/Combobox/ComboboxBase.d.ts +8 -0
- package/dist/Combobox/ComboboxBase.js +80 -0
- package/dist/Combobox.d.ts +20 -0
- package/dist/Combobox.js +175 -0
- package/dist/ComboboxBase-CxNxYtdT.js +408 -0
- package/dist/ControlGroup/ControlGroupSelect.d.ts +33 -0
- package/dist/ControlGroup/ControlGroupSelect.js +104 -0
- package/dist/ControlGroup.d.ts +24 -0
- package/dist/ControlGroup.js +51 -0
- package/dist/Dialog.js +2 -2
- package/dist/Drawer.js +1 -1
- package/dist/HoverCard.js +4 -4
- package/dist/MultiSelect/MultiSelectBase.js +128 -126
- package/dist/Popover.js +1 -1
- package/dist/RadioGroup.js +5 -5
- package/dist/Select.js +1 -1
- package/dist/Slider.js +3 -3
- package/dist/Tooltip.js +6 -6
- package/dist/Tray.d.ts +3 -1
- package/dist/Tray.js +36 -32
- package/dist/{Combination-CQ5bXZqE.js → index-6oYKCvIn.js} +179 -178
- package/dist/{index-CtqlhLRO.js → index-BFOf48AQ.js} +1 -1
- package/dist/{index-BJ6qs9i5.js → index-BlHU_t18.js} +7 -7
- package/dist/{index-D2Qxe4uK.js → index-Bm1RbF6w.js} +1 -1
- package/dist/{index-CXltlPV-.js → index-Bv2OIg5P.js} +6 -6
- package/dist/{index-Cgdmxb3F.js → index-CKEI0pDv.js} +1 -1
- package/dist/{index-CDkQCeZY.js → index-CM_hWgfC.js} +1 -1
- package/dist/{index-CJKg3MVV.js → index-C_YVr64u.js} +2 -2
- package/dist/{index-obMGvcdD.js → index-CwSyIPrv.js} +1 -1
- package/dist/{index-9OmOYyjJ.js → index-Dc0No4pV.js} +2 -1
- package/dist/{index-DqvTB1Bv.js → index-T6XEa11q.js} +7 -7
- package/dist/{index-CmWCa9Ae.js → index-pBCLb6Gr.js} +5 -5
- package/dist/{index-WBfSMXvE.js → index-psiVrsnE.js} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/primitives/button.d.ts +1 -1
- package/dist/primitives/button.d.ts.map +1 -1
- package/dist/primitives/button.js +4 -4
- package/dist/{InputGroup.d.ts → primitives/input-group.d.ts} +10 -7
- package/dist/primitives/input-group.d.ts.map +1 -0
- package/dist/primitives/input-group.js +74 -0
- package/dist/primitives/input.d.ts +6 -1
- package/dist/primitives/input.d.ts.map +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/popover.d.ts +10 -0
- package/dist/primitives/popover.d.ts.map +1 -0
- package/dist/primitives/popover.js +26 -0
- package/dist/primitives/select.js +2 -2
- package/dist/styles/spectral.css +2 -2
- package/package.json +1 -1
- package/dist/InputGroup.js +0 -84
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { u as T, P as m, c as
|
|
3
|
+
import { u as T, P as m, c as p, i as k, f as M } from "./index-Dc0No4pV.js";
|
|
4
4
|
import { u as b } from "./index-0ioNhtNM.js";
|
|
5
5
|
import { jsx as P } from "react/jsx-runtime";
|
|
6
6
|
import U from "react-dom";
|
|
@@ -13,7 +13,7 @@ function z(n, e = globalThis?.document) {
|
|
|
13
13
|
return e.addEventListener("keydown", i, { capture: !0 }), () => e.removeEventListener("keydown", i, { capture: !0 });
|
|
14
14
|
}, [t, e]);
|
|
15
15
|
}
|
|
16
|
-
var H = "DismissableLayer",
|
|
16
|
+
var H = "DismissableLayer", h = "dismissableLayer.update", K = "dismissableLayer.pointerDownOutside", j = "dismissableLayer.focusOutside", R, B = r.createContext({
|
|
17
17
|
layers: /* @__PURE__ */ new Set(),
|
|
18
18
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
19
19
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -45,7 +45,7 @@ var H = "DismissableLayer", p = "dismissableLayer.update", K = "dismissableLayer
|
|
|
45
45
|
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), g());
|
|
46
46
|
}, [u, c]), r.useEffect(() => {
|
|
47
47
|
const o = () => I({});
|
|
48
|
-
return document.addEventListener(
|
|
48
|
+
return document.addEventListener(h, o), () => document.removeEventListener(h, o);
|
|
49
49
|
}, []), /* @__PURE__ */ P(
|
|
50
50
|
m.div,
|
|
51
51
|
{
|
|
@@ -55,9 +55,9 @@ var H = "DismissableLayer", p = "dismissableLayer.update", K = "dismissableLayer
|
|
|
55
55
|
pointerEvents: W ? L ? "auto" : "none" : void 0,
|
|
56
56
|
...n.style
|
|
57
57
|
},
|
|
58
|
-
onFocusCapture:
|
|
59
|
-
onBlurCapture:
|
|
60
|
-
onPointerDownCapture:
|
|
58
|
+
onFocusCapture: p(n.onFocusCapture, C.onFocusCapture),
|
|
59
|
+
onBlurCapture: p(n.onBlurCapture, C.onBlurCapture),
|
|
60
|
+
onPointerDownCapture: p(
|
|
61
61
|
n.onPointerDownCapture,
|
|
62
62
|
_.onPointerDownCapture
|
|
63
63
|
)
|
|
@@ -122,7 +122,7 @@ function J(n, e = globalThis?.document) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
function g() {
|
|
125
|
-
const n = new CustomEvent(
|
|
125
|
+
const n = new CustomEvent(h);
|
|
126
126
|
document.dispatchEvent(n);
|
|
127
127
|
}
|
|
128
128
|
function x(n, e, t, { discrete: i }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as me, a as pe, b as we, C as he, T as ge, D as ve, R as ye, P as be } from "./index-
|
|
1
|
+
import { O as me, a as pe, b as we, C as he, T as ge, D as ve, R as ye, P as be } from "./index-pBCLb6Gr.js";
|
|
2
2
|
import * as Se from "react";
|
|
3
3
|
import r, { useMemo as Te, useLayoutEffect as Re, useEffect as Ee } from "react";
|
|
4
4
|
function De(t) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import { e as G, u as O, P as _, c as P, a as H, b as K } from "./index-
|
|
4
|
-
import { P as $, D as j } from "./index-
|
|
5
|
-
import { h as U, R as V, u as W, F as Z } from "./
|
|
6
|
-
import { u as q } from "./index-
|
|
7
|
-
import { R as z, A as x, c as w, C as B, a as J } from "./index-
|
|
8
|
-
import { P as E } from "./index-
|
|
3
|
+
import { e as G, u as O, P as _, c as P, a as H, b as K } from "./index-Dc0No4pV.js";
|
|
4
|
+
import { P as $, D as j } from "./index-BlHU_t18.js";
|
|
5
|
+
import { h as U, R as V, u as W, F as Z } from "./index-6oYKCvIn.js";
|
|
6
|
+
import { u as q } from "./index-CwSyIPrv.js";
|
|
7
|
+
import { R as z, A as x, c as w, C as B, a as J } from "./index-C_YVr64u.js";
|
|
8
|
+
import { P as E } from "./index-BFOf48AQ.js";
|
|
9
9
|
import { jsx as p } from "react/jsx-runtime";
|
|
10
10
|
var m = "Popover", [b] = H(m, [
|
|
11
11
|
w
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
2
|
import * as A from "react";
|
|
3
3
|
import r from "react";
|
|
4
|
-
import { a as D, u as S, b as M } from "./index-
|
|
4
|
+
import { a as D, u as S, b as M } from "./index-Dc0No4pV.js";
|
|
5
5
|
import { jsx as d } from "react/jsx-runtime";
|
|
6
6
|
function g(l) {
|
|
7
7
|
const i = l + "CollectionProvider", [N, _] = D(i), [v, f] = N(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { P as o } from "./index-
|
|
3
|
+
import { P as o } from "./index-Dc0No4pV.js";
|
|
4
4
|
import { jsx as t } from "react/jsx-runtime";
|
|
5
5
|
var d = Object.freeze({
|
|
6
6
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
@@ -2,10 +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, u as Yt, a as Ce, f as $t } from "./index-
|
|
5
|
+
import { P as At, u as Yt, a as Ce, f as $t } from "./index-Dc0No4pV.js";
|
|
6
6
|
import { jsx as j } from "react/jsx-runtime";
|
|
7
7
|
import { u as Pe } from "./index-0ioNhtNM.js";
|
|
8
|
-
import { u as Oe } from "./index-
|
|
8
|
+
import { u as Oe } from "./index-psiVrsnE.js";
|
|
9
9
|
const Se = ["top", "right", "bottom", "left"], Z = Math.min, W = Math.max, at = Math.round, ct = Math.floor, I = (t) => ({
|
|
10
10
|
x: t,
|
|
11
11
|
y: t
|
|
@@ -2,15 +2,15 @@ import "./styles/main.css";
|
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import * as be from "react-dom";
|
|
4
4
|
import { c as Re } from "./index-rKs9bXHr.js";
|
|
5
|
-
import { e as Ee, u as k, P as M, c as R, f as Y, a as st, b as ct } from "./index-
|
|
6
|
-
import { u as lt, c as at } from "./index-
|
|
7
|
-
import { P as it, D as dt } from "./index-
|
|
8
|
-
import { h as ut, u as pt, R as ft, F as mt } from "./
|
|
9
|
-
import { u as Ie } from "./index-
|
|
10
|
-
import { R as ht, A as vt, c as _e, C as gt, a as St } from "./index-
|
|
5
|
+
import { e as Ee, u as k, P as M, c as R, f as Y, a as st, b as ct } from "./index-Dc0No4pV.js";
|
|
6
|
+
import { u as lt, c as at } from "./index-CKEI0pDv.js";
|
|
7
|
+
import { P as it, D as dt } from "./index-BlHU_t18.js";
|
|
8
|
+
import { h as ut, u as pt, R as ft, F as mt } from "./index-6oYKCvIn.js";
|
|
9
|
+
import { u as Ie } from "./index-CwSyIPrv.js";
|
|
10
|
+
import { R as ht, A as vt, c as _e, C as gt, a as St } from "./index-C_YVr64u.js";
|
|
11
11
|
import { u as wt } from "./index-0ioNhtNM.js";
|
|
12
12
|
import { u as Ct } from "./index-BZPx6jYI.js";
|
|
13
|
-
import { V as xt } from "./index-
|
|
13
|
+
import { V as xt } from "./index-CM_hWgfC.js";
|
|
14
14
|
import { jsx as p, jsxs as le, Fragment as Te } from "react/jsx-runtime";
|
|
15
15
|
var yt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ie, de, Tt] = at(J), [te] = st(J, [
|
|
16
16
|
Tt,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { P as p, u as _, c as g, a as V, b as q, d as K, e as U } from "./index-
|
|
4
|
-
import { u as R } from "./index-
|
|
5
|
-
import { D as Y, P as Z } from "./index-
|
|
6
|
-
import { R as z, h as J, u as Q, F as X } from "./
|
|
7
|
-
import { P as h } from "./index-
|
|
3
|
+
import { P as p, u as _, c as g, a as V, b as q, d as K, e as U } from "./index-Dc0No4pV.js";
|
|
4
|
+
import { u as R } from "./index-CwSyIPrv.js";
|
|
5
|
+
import { D as Y, P as Z } from "./index-BlHU_t18.js";
|
|
6
|
+
import { R as z, h as J, u as Q, F as X } from "./index-6oYKCvIn.js";
|
|
7
|
+
import { P as h } from "./index-BFOf48AQ.js";
|
|
8
8
|
import { jsx as s, jsxs as N, Fragment as O } from "react/jsx-runtime";
|
|
9
9
|
var v = "Dialog", [I] = V(v), [ee, u] = I(v), x = (e) => {
|
|
10
10
|
const {
|
package/dist/index.d.ts
CHANGED
|
@@ -6,13 +6,14 @@ export { Button, type ButtonProps } from './components/Button/Button';
|
|
|
6
6
|
export { ButtonGroup, ButtonGroupItem, ButtonGroupSeparator, type ButtonGroupProps } from './components/ButtonGroup/ButtonGroup';
|
|
7
7
|
export { ButtonIcon, type ButtonIconProps } from './components/ButtonIcon/ButtonIcon';
|
|
8
8
|
export { Checkbox, type CheckboxProps } from './components/Checkbox/Checkbox';
|
|
9
|
+
export { Combobox, type ComboboxOption, type ComboboxProps } from './components/Combobox/Combobox';
|
|
10
|
+
export { ControlGroupSelect, type ControlGroupSelectCaptionLayout, type ControlGroupSelectProps } from './components/ControlGroup/ControlGroupSelect';
|
|
9
11
|
export { DataCard, type DataCardProps } from './components/DataCard/DataCard';
|
|
10
12
|
export { DateTimePicker, type DateTimePickerProps } from './components/DateTimePicker/DateTimePicker';
|
|
11
13
|
export { Dialog } from './components/Dialog/Dialog';
|
|
12
14
|
export { Drawer, type DrawerProps } from './components/Drawer/Drawer';
|
|
13
15
|
export { HoverCard, HoverCardContent, HoverCardTrigger, type HoverCardProps } from './components/HoverCard/HoverCard';
|
|
14
16
|
export { Input, type InputProps } from './components/Input/Input';
|
|
15
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from './components/InputGroup/InputGroup';
|
|
16
17
|
export { InputOTP, type InputOTPBaseProps, type InputOTPProps } from './components/InputOTP/InputOTP';
|
|
17
18
|
export { Kbd, KbdGroup, type KbdGroupProps, type KbdProps, type KbdSymbol } from './components/Kbd/Kbd';
|
|
18
19
|
export { Label, type LabelProps } from './components/Label/Label';
|
|
@@ -35,6 +36,7 @@ export { Tooltip, TooltipContent, TooltipTrigger } from './components/Tooltip/To
|
|
|
35
36
|
export { Tray, type TrayBaseProps, type TrayBodyProps, type TrayContentProps } from './components/Tray/Tray';
|
|
36
37
|
export * from './components/Icons';
|
|
37
38
|
export { default as IconBase, SvgIdContext } from './components/Icons/IconBase';
|
|
39
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from './primitives/input-group';
|
|
38
40
|
export { useAccordionAutoScroll } from './hooks/useAccordionAutoScroll';
|
|
39
41
|
export { useControllableState } from './hooks/useControllableState';
|
|
40
42
|
export { cn } from './utils/twUtils';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],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EAAE,KAAK,oBAAoB,EAAE,KAAK,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AACrI,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAG5G,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAK/E,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAG7I,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAGnE,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -4,7 +4,7 @@ export declare const buttonVariants: (props?: ({
|
|
|
4
4
|
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const PrimitiveButton: ({ asChild, className, size, variant, ...props }: ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +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;;;8EA0B1B,CAAA;AAED,eAAO,MAAM,
|
|
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;;;8EA0B1B,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,iDAM7B,cAAc,CAAC,QAAQ,CAAC,GACzB,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,4CAIF,CAAA"}
|
|
@@ -33,10 +33,10 @@ const u = a(
|
|
|
33
33
|
asChild: e = !1,
|
|
34
34
|
className: t,
|
|
35
35
|
size: o,
|
|
36
|
-
variant:
|
|
37
|
-
...
|
|
38
|
-
}) => /* @__PURE__ */ s(e ? r : "button", { "data-slot": "button", className: l(u({ variant:
|
|
36
|
+
variant: i,
|
|
37
|
+
...n
|
|
38
|
+
}) => /* @__PURE__ */ s(e ? r : "button", { "data-slot": "button", className: l(u({ variant: i, size: o, className: t })), ...n });
|
|
39
39
|
export {
|
|
40
|
-
p as
|
|
40
|
+
p as PrimitiveButton,
|
|
41
41
|
u as buttonVariants
|
|
42
42
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PrimitiveButton } from './button';
|
|
2
|
+
import { Input } from './input';
|
|
3
|
+
import { Textarea } from './textarea';
|
|
2
4
|
import { VariantProps } from 'class-variance-authority';
|
|
3
5
|
import { ComponentProps } from 'react';
|
|
4
6
|
export declare const InputGroup: ({ className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
export declare const inputGroupAddonVariants: (props?: ({
|
|
6
8
|
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
7
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
export declare const InputGroupAddon: ({ className, align, ...props }: ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
|
|
10
|
+
export declare const InputGroupAddon: ({ className, align, onClick, ...props }: ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
10
12
|
size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
|
|
11
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
-
export declare const InputGroupButton: ({ className, type, variant, size, ...props }: Omit<ComponentProps<typeof
|
|
14
|
+
export declare const InputGroupButton: ({ className, type, variant, size, ...props }: Omit<ComponentProps<typeof PrimitiveButton>, "size"> & VariantProps<typeof inputGroupButtonVariants>) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export declare const InputGroupText: ({ className, ...props }: ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare const InputGroupInput: ({ className, ...props }: ComponentProps<
|
|
15
|
-
export declare const InputGroupTextarea: ({ className, ...props }: ComponentProps<
|
|
16
|
-
|
|
16
|
+
export declare const InputGroupInput: ({ className, ...props }: ComponentProps<typeof Input>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const InputGroupTextarea: ({ className, ...props }: ComponentProps<typeof Textarea>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=input-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../src/primitives/input-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,eAAO,MAAM,UAAU,GAAI,yBAAyB,cAAc,CAAC,KAAK,CAAC,4CAYxE,CAAA;AAED,eAAO,MAAM,uBAAuB;;8EAenC,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,yCAA0D,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,4CAgB7J,CAAA;AAED,QAAA,MAAM,wBAAwB;;8EAY5B,CAAA;AAEF,eAAO,MAAM,gBAAgB,GAAI,8CAA0E,IAAI,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,EAAE,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,wBAAwB,CAAC,4CAE9M,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,yBAAyB,cAAc,CAAC,MAAM,CAAC,4CAE7E,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,yBAAyB,cAAc,CAAC,OAAO,KAAK,CAAC,4CAEpF,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,yBAAyB,cAAc,CAAC,OAAO,QAAQ,CAAC,4CAQ1F,CAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { PrimitiveButton as u } from "./button.js";
|
|
3
|
+
import { Input as d } from "./input.js";
|
|
4
|
+
import { Textarea as l } from "./textarea.js";
|
|
5
|
+
import { cn as n } from "../utils/twUtils.js";
|
|
6
|
+
import { c as i } from "../index-D29mdTf5.js";
|
|
7
|
+
import "react";
|
|
8
|
+
const k = ({ className: a, ...t }) => /* @__PURE__ */ r(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "input-group",
|
|
12
|
+
role: "group",
|
|
13
|
+
className: n(
|
|
14
|
+
"group/input-group border-input has-disabled:bg-input/50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 relative flex h-8 w-full min-w-0 items-center rounded-lg border transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",
|
|
15
|
+
a
|
|
16
|
+
),
|
|
17
|
+
...t
|
|
18
|
+
}
|
|
19
|
+
), p = i(
|
|
20
|
+
"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
|
|
21
|
+
{
|
|
22
|
+
variants: {
|
|
23
|
+
align: {
|
|
24
|
+
"inline-start": "order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]",
|
|
25
|
+
"inline-end": "order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]",
|
|
26
|
+
"block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
|
|
27
|
+
"block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
align: "inline-start"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
), z = ({ className: a, align: t = "inline-start", onClick: o, ...s }) => /* @__PURE__ */ r(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
role: "presentation",
|
|
38
|
+
"data-slot": "input-group-addon",
|
|
39
|
+
"data-align": t,
|
|
40
|
+
className: n(p({ align: t }), a),
|
|
41
|
+
onClick: (e) => {
|
|
42
|
+
e.target.closest("button") || e.currentTarget.parentElement?.querySelector('input, textarea, [contenteditable="true"]')?.focus(), o?.(e);
|
|
43
|
+
},
|
|
44
|
+
...s
|
|
45
|
+
}
|
|
46
|
+
), c = i("flex items-center gap-2 text-sm shadow-none", {
|
|
47
|
+
variants: {
|
|
48
|
+
size: {
|
|
49
|
+
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
50
|
+
sm: "h-7 gap-1.5 rounded-[calc(var(--radius)-2px)] px-2 [&>svg:not([class*='size-'])]:size-4",
|
|
51
|
+
"icon-xs": "size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0",
|
|
52
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
size: "xs"
|
|
57
|
+
}
|
|
58
|
+
}), w = ({ className: a, type: t = "button", variant: o = "ghost", size: s = "xs", ...e }) => /* @__PURE__ */ r(u, { type: t, "data-size": s, variant: o, className: n(c({ size: s }), a), ...e }), y = ({ className: a, ...t }) => /* @__PURE__ */ r("span", { className: n("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", a), ...t }), G = ({ className: a, ...t }) => /* @__PURE__ */ r(d, { "data-slot": "input-group-control", className: n("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent", a), ...t }), I = ({ className: a, ...t }) => /* @__PURE__ */ r(
|
|
59
|
+
l,
|
|
60
|
+
{
|
|
61
|
+
"data-slot": "input-group-control",
|
|
62
|
+
className: n("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent", a),
|
|
63
|
+
...t
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
export {
|
|
67
|
+
k as InputGroup,
|
|
68
|
+
z as InputGroupAddon,
|
|
69
|
+
w as InputGroupButton,
|
|
70
|
+
G as InputGroupInput,
|
|
71
|
+
y as InputGroupText,
|
|
72
|
+
I as InputGroupTextarea,
|
|
73
|
+
p as inputGroupAddonVariants
|
|
74
|
+
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type InputType = 'text' | 'email' | 'url' | 'tel' | 'password' | 'number' | 'date' | 'datetime-local';
|
|
3
|
+
export interface InputProps extends ComponentProps<'input'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
type?: InputType;
|
|
6
|
+
}
|
|
7
|
+
export declare const Input: ({ className, type, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
8
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +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,
|
|
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,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,gBAAgB,CAAA;AAE5G,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,OAAO,CAAC;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,KAAK,GAAI,+BAA+B,UAAU,4CAe9D,CAAA"}
|
package/dist/primitives/input.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
export declare const Popover: ({ ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const PopoverTrigger: ({ ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const PopoverContent: ({ className, align, sideOffset, ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const PopoverAnchor: ({ ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const PopoverHeader: ({ className, ...props }: ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const PopoverTitle: ({ className, ...props }: ComponentPropsWithoutRef<"h2">) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const PopoverDescription: ({ className, ...props }: ComponentPropsWithoutRef<"p">) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/primitives/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAE3D,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAErD,eAAO,MAAM,OAAO,GAAI,cAAc,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,4CAE3F,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,cAAc,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,4CAErG,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,4CAA2D,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,4CAelJ,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,cAAc,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,4CAEnG,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,yBAAyB,wBAAwB,CAAC,KAAK,CAAC,4CAErF,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,yBAAyB,wBAAwB,CAAC,IAAI,CAAC,4CAEnF,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,yBAAyB,wBAAwB,CAAC,GAAG,CAAC,4CAExF,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { R as s, A as i, P as d, C as p, T as m } from "../index-Bv2OIg5P.js";
|
|
3
|
+
import { cn as a } from "../utils/twUtils.js";
|
|
4
|
+
import "react";
|
|
5
|
+
const v = ({ ...o }) => /* @__PURE__ */ t(s, { "data-slot": "popover", ...o }), u = ({ ...o }) => /* @__PURE__ */ t(m, { "data-slot": "popover-trigger", ...o }), h = ({ className: o, align: e = "center", sideOffset: r = 4, ...n }) => /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
6
|
+
p,
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "popover-content",
|
|
9
|
+
align: e,
|
|
10
|
+
sideOffset: r,
|
|
11
|
+
className: a(
|
|
12
|
+
"bg-popover text-popover-foreground ring-foreground/10 motion-safe:data-[state=open]:animate-in motion-safe:data-[state=open]:fade-in-0 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[state=closed]:animate-out motion-safe:data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden",
|
|
13
|
+
o
|
|
14
|
+
),
|
|
15
|
+
...n
|
|
16
|
+
}
|
|
17
|
+
) }), x = ({ ...o }) => /* @__PURE__ */ t(i, { "data-slot": "popover-anchor", ...o }), P = ({ className: o, ...e }) => /* @__PURE__ */ t("div", { "data-slot": "popover-header", className: a("flex flex-col gap-0.5 text-sm", o), ...e }), N = ({ className: o, ...e }) => /* @__PURE__ */ t("h2", { "data-slot": "popover-title", className: a("cn-font-heading font-medium", o), ...e }), T = ({ className: o, ...e }) => /* @__PURE__ */ t("p", { "data-slot": "popover-description", className: a("text-muted-foreground", o), ...e });
|
|
18
|
+
export {
|
|
19
|
+
v as Popover,
|
|
20
|
+
x as PopoverAnchor,
|
|
21
|
+
h as PopoverContent,
|
|
22
|
+
T as PopoverDescription,
|
|
23
|
+
P as PopoverHeader,
|
|
24
|
+
N as PopoverTitle,
|
|
25
|
+
u as PopoverTrigger
|
|
26
|
+
};
|
|
@@ -67,7 +67,7 @@ import "../Icons/WarningIcon.js";
|
|
|
67
67
|
import "../Icons/ZoomAllIcon.js";
|
|
68
68
|
import "../Icons/ZoomXIcon.js";
|
|
69
69
|
import "../Icons/ZoomYIcon.js";
|
|
70
|
-
import { R as c, T as d, I as u, V as f, P as g, C as x, a as h, d as v, f as b, e as w, S as y, b as S, G as z, L as N, c as I } from "../index-
|
|
70
|
+
import { R as c, T as d, I as u, V as f, P as g, C as x, a as h, d as v, f as b, e as w, S as y, b as S, G as z, L as N, c as I } from "../index-T6XEa11q.js";
|
|
71
71
|
import { cn as r } from "../utils/twUtils.js";
|
|
72
72
|
import "react";
|
|
73
73
|
const Mt = ({ ...t }) => /* @__PURE__ */ e(c, { "data-slot": "select", ...t }), Ot = ({ ...t }) => /* @__PURE__ */ e(z, { "data-slot": "select-group", ...t }), Qt = ({ ...t }) => /* @__PURE__ */ e(f, { "data-slot": "select-value", ...t }), Wt = ({
|
|
@@ -97,7 +97,7 @@ const Mt = ({ ...t }) => /* @__PURE__ */ e(c, { "data-slot": "select", ...t }),
|
|
|
97
97
|
{
|
|
98
98
|
align: t,
|
|
99
99
|
className: r(
|
|
100
|
-
"bg-
|
|
100
|
+
"bg-input-bg text-text-primary motion-safe:data-[state=open]:animate-in motion-safe:data-[state=closed]:animate-out motion-safe:data-[state=closed]:fade-out-0 motion-safe:data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[--radix-select-content-available-height] min-w-32 origin-[--radix-select-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
101
101
|
i === "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",
|
|
102
102
|
a
|
|
103
103
|
),
|