@tetrascience-npm/tetrascience-react-ui 1.0.0-beta.152.1 → 1.0.0-beta.153.1
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/components/ui/combobox.d.ts +10 -2
- package/dist/components/ui/input-group.d.ts +8 -3
- package/dist/components/ui/input.d.ts +9 -2
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/textarea.d.ts +6 -2
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +391 -389
- package/dist/index.scoped.css +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/ui/combobox.cjs +1 -1
- package/dist/ui/combobox.cjs.map +1 -1
- package/dist/ui/combobox.js +97 -78
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/input-group.cjs +1 -1
- package/dist/ui/input-group.cjs.map +1 -1
- package/dist/ui/input-group.js +89 -63
- package/dist/ui/input-group.js.map +1 -1
- package/dist/ui/input.cjs +1 -1
- package/dist/ui/input.cjs.map +1 -1
- package/dist/ui/input.js +33 -9
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/select.cjs +1 -1
- package/dist/ui/select.cjs.map +1 -1
- package/dist/ui/select.js +23 -21
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/textarea.cjs +1 -1
- package/dist/ui/textarea.cjs.map +1 -1
- package/dist/ui/textarea.js +32 -10
- package/dist/ui/textarea.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.cjs","sources":["../../src/components/ui/input-group.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\n\nimport { Button } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Textarea } from \"@/components/ui/textarea\"\nimport { cn } from \"@/lib/utils\"\n\
|
|
1
|
+
{"version":3,"file":"input-group.cjs","sources":["../../src/components/ui/input-group.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\n\nimport { Button } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Textarea } from \"@/components/ui/textarea\"\nimport { cn } from \"@/lib/utils\"\n\ntype InputGroupSize = \"xs\" | \"sm\" | \"default\" | \"lg\"\n\nconst InputGroupContext = React.createContext<{ size?: InputGroupSize }>({})\n\nconst inputGroupVariants = cva(\n \"group/input-group relative flex w-full min-w-0 items-center border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:disabled]:bg-input/50 has-[[data-slot=input-group-control]:disabled]:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:shadow-focus has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:shadow-focus 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 dark:bg-input/30 dark:has-[[data-slot=input-group-control]:disabled]:bg-input/80 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\",\n {\n variants: {\n // Shared control scale (SW-2591): 24 / 28 / 32 / 36, matching Button.\n size: {\n xs: \"h-6 rounded-md\",\n sm: \"h-7 rounded-md\",\n default: \"h-8 rounded-lg\",\n lg: \"h-9 rounded-lg\",\n },\n },\n defaultVariants: {\n size: \"default\",\n },\n }\n)\n\nfunction InputGroup({\n className,\n size,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof inputGroupVariants>) {\n return (\n <InputGroupContext.Provider value={{ size: size ?? \"default\" }}>\n <div\n data-slot=\"input-group\"\n data-size={size ?? \"default\"}\n role=\"group\"\n className={cn(inputGroupVariants({ size }), className)}\n {...props}\n />\n </InputGroupContext.Provider>\n )\n}\n\nconst inputGroupAddonVariants = cva(\n \"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\",\n {\n variants: {\n align: {\n \"inline-start\":\n \"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]\",\n \"inline-end\":\n \"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]\",\n \"block-start\":\n \"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2\",\n \"block-end\":\n \"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2\",\n },\n },\n defaultVariants: {\n align: \"inline-start\",\n },\n }\n)\n\nfunction InputGroupAddon({\n className,\n align = \"inline-start\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof inputGroupAddonVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n className={cn(inputGroupAddonVariants({ align }), className)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault()\n e.currentTarget.click()\n }\n }}\n onClick={(e) => {\n if ((e.target as HTMLElement).closest(\"button\")) {\n return\n }\n e.currentTarget.parentElement?.querySelector(\"input\")?.focus()\n }}\n {...props}\n />\n )\n}\n\nconst inputGroupButtonVariants = cva(\n \"flex items-center gap-2 text-sm shadow-none\",\n {\n variants: {\n size: {\n xs: \"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5\",\n sm: \"\",\n \"icon-xs\":\n \"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0\",\n \"icon-sm\": \"size-8 p-0 has-[>svg]:p-0\",\n },\n },\n defaultVariants: {\n size: \"xs\",\n },\n }\n)\n\nfunction InputGroupButton({\n className,\n type = \"button\",\n variant = \"ghost\",\n size = \"xs\",\n ...props\n}: Omit<React.ComponentProps<typeof Button>, \"size\"> &\n VariantProps<typeof inputGroupButtonVariants>) {\n return (\n <Button\n type={type}\n data-size={size}\n variant={variant}\n className={cn(inputGroupButtonVariants({ size }), className)}\n {...props}\n />\n )\n}\n\nfunction InputGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n className={cn(\n \"flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction InputGroupInput({\n className,\n size,\n ...props\n}: React.ComponentProps<typeof Input>) {\n const context = React.useContext(InputGroupContext)\n return (\n <Input\n data-slot=\"input-group-control\"\n // The group owns the height; the control fills it and drops its own chrome.\n size={size ?? context.size}\n className={cn(\n \"h-full flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 focus-visible:shadow-none disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction InputGroupTextarea({\n className,\n size,\n ...props\n}: React.ComponentProps<typeof Textarea>) {\n const context = React.useContext(InputGroupContext)\n return (\n <Textarea\n data-slot=\"input-group-control\"\n size={size ?? context.size}\n className={cn(\n \"flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 focus-visible:shadow-none disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupText,\n InputGroupInput,\n InputGroupTextarea,\n}\n"],"names":["InputGroupContext","React","inputGroupVariants","cva","InputGroup","className","size","props","jsx","cn","inputGroupAddonVariants","InputGroupAddon","align","inputGroupButtonVariants","InputGroupButton","type","variant","Button","InputGroupText","InputGroupInput","context","Input","InputGroupTextarea","Textarea"],"mappings":"qjBAUMA,EAAoBC,EAAM,cAAyC,EAAE,EAErEC,EAAqBC,EAAAA,IACzB,mgCACA,CACE,SAAU,CAER,KAAM,CACJ,GAAI,iBACJ,GAAI,iBACJ,QAAS,iBACT,GAAI,gBAAA,CACN,EAEF,gBAAiB,CACf,KAAM,SAAA,CACR,CAEJ,EAEA,SAASC,EAAW,CAClB,UAAAC,EACA,KAAAC,EACA,GAAGC,CACL,EAA0E,CACxE,OACEC,MAACR,EAAkB,SAAlB,CAA2B,MAAO,CAAE,KAAMM,GAAQ,WACjD,SAAAE,EAAAA,IAAC,MAAA,CACC,YAAU,cACV,YAAWF,GAAQ,UACnB,KAAK,QACL,UAAWG,EAAAA,GAAGP,EAAmB,CAAE,KAAAI,CAAA,CAAM,EAAGD,CAAS,EACpD,GAAGE,CAAA,CAAA,EAER,CAEJ,CAEA,MAAMG,EAA0BP,EAAAA,IAC9B,0PACA,CACE,SAAU,CACR,MAAO,CACL,eACE,uEACF,aACE,sEACF,cACE,oGACF,YACE,kGAAA,CACJ,EAEF,gBAAiB,CACf,MAAO,cAAA,CACT,CAEJ,EAEA,SAASQ,EAAgB,CACvB,UAAAN,EACA,MAAAO,EAAQ,eACR,GAAGL,CACL,EAA+E,CAC7E,OACEC,EAAAA,IAAC,MAAA,CACC,KAAK,QACL,YAAU,oBACV,aAAYI,EACZ,UAAWH,EAAAA,GAAGC,EAAwB,CAAE,MAAAE,CAAA,CAAO,EAAGP,CAAS,EAC3D,UAAY,GAAM,EACZ,EAAE,MAAQ,SAAW,EAAE,MAAQ,OACjC,EAAE,eAAA,EACF,EAAE,cAAc,MAAA,EAEpB,EACA,QAAU,GAAM,CACT,EAAE,OAAuB,QAAQ,QAAQ,GAG9C,EAAE,cAAc,eAAe,cAAc,OAAO,GAAG,MAAA,CACzD,EACC,GAAGE,CAAA,CAAA,CAGV,CAEA,MAAMM,EAA2BV,EAAAA,IAC/B,8CACA,CACE,SAAU,CACR,KAAM,CACJ,GAAI,4FACJ,GAAI,GACJ,UACE,8DACF,UAAW,2BAAA,CACb,EAEF,gBAAiB,CACf,KAAM,IAAA,CACR,CAEJ,EAEA,SAASW,EAAiB,CACxB,UAAAT,EACA,KAAAU,EAAO,SACP,QAAAC,EAAU,QACV,KAAAV,EAAO,KACP,GAAGC,CACL,EACiD,CAC/C,OACEC,EAAAA,IAACS,EAAAA,OAAA,CACC,KAAAF,EACA,YAAWT,EACX,QAAAU,EACA,UAAWP,EAAAA,GAAGI,EAAyB,CAAE,KAAAP,CAAA,CAAM,EAAGD,CAAS,EAC1D,GAAGE,CAAA,CAAA,CAGV,CAEA,SAASW,EAAe,CAAE,UAAAb,EAAW,GAAGE,GAAuC,CAC7E,OACEC,EAAAA,IAAC,OAAA,CACC,UAAWC,EAAAA,GACT,yHACAJ,CAAA,EAED,GAAGE,CAAA,CAAA,CAGV,CAEA,SAASY,EAAgB,CACvB,UAAAd,EACA,KAAAC,EACA,GAAGC,CACL,EAAuC,CACrC,MAAMa,EAAUnB,EAAM,WAAWD,CAAiB,EAClD,OACEQ,EAAAA,IAACa,EAAAA,MAAA,CACC,YAAU,sBAEV,KAAMf,GAAQc,EAAQ,KACtB,UAAWX,EAAAA,GACT,oNACAJ,CAAA,EAED,GAAGE,CAAA,CAAA,CAGV,CAEA,SAASe,EAAmB,CAC1B,UAAAjB,EACA,KAAAC,EACA,GAAGC,CACL,EAA0C,CACxC,MAAMa,EAAUnB,EAAM,WAAWD,CAAiB,EAClD,OACEQ,EAAAA,IAACe,EAAAA,SAAA,CACC,YAAU,sBACV,KAAMjB,GAAQc,EAAQ,KACtB,UAAWX,EAAAA,GACT,8NACAJ,CAAA,EAED,GAAGE,CAAA,CAAA,CAGV"}
|
package/dist/ui/input-group.js
CHANGED
|
@@ -1,24 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cva as s } from "class-variance-authority";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import * as i from "react";
|
|
4
|
+
import { Button as l } from "./button.js";
|
|
5
|
+
import { Input as p } from "./input.js";
|
|
6
|
+
import { Textarea as c } from "./textarea.js";
|
|
7
|
+
import { cn as e } from "../lib/utils.js";
|
|
8
|
+
const u = i.createContext({}), g = s(
|
|
9
|
+
"group/input-group relative flex w-full min-w-0 items-center border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:disabled]:bg-input/50 has-[[data-slot=input-group-control]:disabled]:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:shadow-focus has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:shadow-focus 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 dark:bg-input/30 dark:has-[[data-slot=input-group-control]:disabled]:bg-input/80 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",
|
|
10
|
+
{
|
|
11
|
+
variants: {
|
|
12
|
+
// Shared control scale (SW-2591): 24 / 28 / 32 / 36, matching Button.
|
|
13
|
+
size: {
|
|
14
|
+
xs: "h-6 rounded-md",
|
|
15
|
+
sm: "h-7 rounded-md",
|
|
16
|
+
default: "h-8 rounded-lg",
|
|
17
|
+
lg: "h-9 rounded-lg"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
size: "default"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
function w({
|
|
26
|
+
className: n,
|
|
27
|
+
size: t,
|
|
28
|
+
...r
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ o(u.Provider, { value: { size: t ?? "default" }, children: /* @__PURE__ */ o(
|
|
9
31
|
"div",
|
|
10
32
|
{
|
|
11
33
|
"data-slot": "input-group",
|
|
34
|
+
"data-size": t ?? "default",
|
|
12
35
|
role: "group",
|
|
13
|
-
className:
|
|
14
|
-
|
|
15
|
-
a
|
|
16
|
-
),
|
|
17
|
-
...t
|
|
36
|
+
className: e(g({ size: t }), n),
|
|
37
|
+
...r
|
|
18
38
|
}
|
|
19
|
-
);
|
|
39
|
+
) });
|
|
20
40
|
}
|
|
21
|
-
const
|
|
41
|
+
const b = s(
|
|
22
42
|
"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",
|
|
23
43
|
{
|
|
24
44
|
variants: {
|
|
@@ -34,29 +54,29 @@ const p = s(
|
|
|
34
54
|
}
|
|
35
55
|
}
|
|
36
56
|
);
|
|
37
|
-
function
|
|
38
|
-
className:
|
|
57
|
+
function y({
|
|
58
|
+
className: n,
|
|
39
59
|
align: t = "inline-start",
|
|
40
|
-
...
|
|
60
|
+
...r
|
|
41
61
|
}) {
|
|
42
|
-
return /* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ o(
|
|
43
63
|
"div",
|
|
44
64
|
{
|
|
45
65
|
role: "group",
|
|
46
66
|
"data-slot": "input-group-addon",
|
|
47
67
|
"data-align": t,
|
|
48
|
-
className:
|
|
49
|
-
onKeyDown: (
|
|
50
|
-
(
|
|
68
|
+
className: e(b({ align: t }), n),
|
|
69
|
+
onKeyDown: (a) => {
|
|
70
|
+
(a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.currentTarget.click());
|
|
51
71
|
},
|
|
52
|
-
onClick: (
|
|
53
|
-
|
|
72
|
+
onClick: (a) => {
|
|
73
|
+
a.target.closest("button") || a.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
54
74
|
},
|
|
55
|
-
...
|
|
75
|
+
...r
|
|
56
76
|
}
|
|
57
77
|
);
|
|
58
78
|
}
|
|
59
|
-
const
|
|
79
|
+
const f = s(
|
|
60
80
|
"flex items-center gap-2 text-sm shadow-none",
|
|
61
81
|
{
|
|
62
82
|
variants: {
|
|
@@ -72,74 +92,80 @@ const c = s(
|
|
|
72
92
|
}
|
|
73
93
|
}
|
|
74
94
|
);
|
|
75
|
-
function
|
|
76
|
-
className:
|
|
95
|
+
function G({
|
|
96
|
+
className: n,
|
|
77
97
|
type: t = "button",
|
|
78
|
-
variant:
|
|
79
|
-
size:
|
|
80
|
-
...
|
|
98
|
+
variant: r = "ghost",
|
|
99
|
+
size: a = "xs",
|
|
100
|
+
...d
|
|
81
101
|
}) {
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
|
|
102
|
+
return /* @__PURE__ */ o(
|
|
103
|
+
l,
|
|
84
104
|
{
|
|
85
105
|
type: t,
|
|
86
|
-
"data-size":
|
|
87
|
-
variant:
|
|
88
|
-
className:
|
|
89
|
-
...
|
|
106
|
+
"data-size": a,
|
|
107
|
+
variant: r,
|
|
108
|
+
className: e(f({ size: a }), n),
|
|
109
|
+
...d
|
|
90
110
|
}
|
|
91
111
|
);
|
|
92
112
|
}
|
|
93
|
-
function
|
|
94
|
-
return /* @__PURE__ */
|
|
113
|
+
function I({ className: n, ...t }) {
|
|
114
|
+
return /* @__PURE__ */ o(
|
|
95
115
|
"span",
|
|
96
116
|
{
|
|
97
|
-
className:
|
|
117
|
+
className: e(
|
|
98
118
|
"flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
99
|
-
|
|
119
|
+
n
|
|
100
120
|
),
|
|
101
121
|
...t
|
|
102
122
|
}
|
|
103
123
|
);
|
|
104
124
|
}
|
|
105
|
-
function
|
|
106
|
-
className:
|
|
107
|
-
|
|
125
|
+
function N({
|
|
126
|
+
className: n,
|
|
127
|
+
size: t,
|
|
128
|
+
...r
|
|
108
129
|
}) {
|
|
109
|
-
|
|
110
|
-
|
|
130
|
+
const a = i.useContext(u);
|
|
131
|
+
return /* @__PURE__ */ o(
|
|
132
|
+
p,
|
|
111
133
|
{
|
|
112
134
|
"data-slot": "input-group-control",
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
135
|
+
size: t ?? a.size,
|
|
136
|
+
className: e(
|
|
137
|
+
"h-full flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 focus-visible:shadow-none disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",
|
|
138
|
+
n
|
|
116
139
|
),
|
|
117
|
-
...
|
|
140
|
+
...r
|
|
118
141
|
}
|
|
119
142
|
);
|
|
120
143
|
}
|
|
121
|
-
function
|
|
122
|
-
className:
|
|
123
|
-
|
|
144
|
+
function V({
|
|
145
|
+
className: n,
|
|
146
|
+
size: t,
|
|
147
|
+
...r
|
|
124
148
|
}) {
|
|
125
|
-
|
|
126
|
-
|
|
149
|
+
const a = i.useContext(u);
|
|
150
|
+
return /* @__PURE__ */ o(
|
|
151
|
+
c,
|
|
127
152
|
{
|
|
128
153
|
"data-slot": "input-group-control",
|
|
129
|
-
|
|
154
|
+
size: t ?? a.size,
|
|
155
|
+
className: e(
|
|
130
156
|
"flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 focus-visible:shadow-none disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",
|
|
131
|
-
|
|
157
|
+
n
|
|
132
158
|
),
|
|
133
|
-
...
|
|
159
|
+
...r
|
|
134
160
|
}
|
|
135
161
|
);
|
|
136
162
|
}
|
|
137
163
|
export {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
164
|
+
w as InputGroup,
|
|
165
|
+
y as InputGroupAddon,
|
|
166
|
+
G as InputGroupButton,
|
|
167
|
+
N as InputGroupInput,
|
|
168
|
+
I as InputGroupText,
|
|
169
|
+
V as InputGroupTextarea
|
|
144
170
|
};
|
|
145
171
|
//# sourceMappingURL=input-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.js","sources":["../../src/components/ui/input-group.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\n\nimport { Button } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Textarea } from \"@/components/ui/textarea\"\nimport { cn } from \"@/lib/utils\"\n\
|
|
1
|
+
{"version":3,"file":"input-group.js","sources":["../../src/components/ui/input-group.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\n\nimport { Button } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Textarea } from \"@/components/ui/textarea\"\nimport { cn } from \"@/lib/utils\"\n\ntype InputGroupSize = \"xs\" | \"sm\" | \"default\" | \"lg\"\n\nconst InputGroupContext = React.createContext<{ size?: InputGroupSize }>({})\n\nconst inputGroupVariants = cva(\n \"group/input-group relative flex w-full min-w-0 items-center border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:disabled]:bg-input/50 has-[[data-slot=input-group-control]:disabled]:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:shadow-focus has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:shadow-focus 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 dark:bg-input/30 dark:has-[[data-slot=input-group-control]:disabled]:bg-input/80 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\",\n {\n variants: {\n // Shared control scale (SW-2591): 24 / 28 / 32 / 36, matching Button.\n size: {\n xs: \"h-6 rounded-md\",\n sm: \"h-7 rounded-md\",\n default: \"h-8 rounded-lg\",\n lg: \"h-9 rounded-lg\",\n },\n },\n defaultVariants: {\n size: \"default\",\n },\n }\n)\n\nfunction InputGroup({\n className,\n size,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof inputGroupVariants>) {\n return (\n <InputGroupContext.Provider value={{ size: size ?? \"default\" }}>\n <div\n data-slot=\"input-group\"\n data-size={size ?? \"default\"}\n role=\"group\"\n className={cn(inputGroupVariants({ size }), className)}\n {...props}\n />\n </InputGroupContext.Provider>\n )\n}\n\nconst inputGroupAddonVariants = cva(\n \"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\",\n {\n variants: {\n align: {\n \"inline-start\":\n \"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]\",\n \"inline-end\":\n \"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]\",\n \"block-start\":\n \"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2\",\n \"block-end\":\n \"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2\",\n },\n },\n defaultVariants: {\n align: \"inline-start\",\n },\n }\n)\n\nfunction InputGroupAddon({\n className,\n align = \"inline-start\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof inputGroupAddonVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n className={cn(inputGroupAddonVariants({ align }), className)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault()\n e.currentTarget.click()\n }\n }}\n onClick={(e) => {\n if ((e.target as HTMLElement).closest(\"button\")) {\n return\n }\n e.currentTarget.parentElement?.querySelector(\"input\")?.focus()\n }}\n {...props}\n />\n )\n}\n\nconst inputGroupButtonVariants = cva(\n \"flex items-center gap-2 text-sm shadow-none\",\n {\n variants: {\n size: {\n xs: \"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5\",\n sm: \"\",\n \"icon-xs\":\n \"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0\",\n \"icon-sm\": \"size-8 p-0 has-[>svg]:p-0\",\n },\n },\n defaultVariants: {\n size: \"xs\",\n },\n }\n)\n\nfunction InputGroupButton({\n className,\n type = \"button\",\n variant = \"ghost\",\n size = \"xs\",\n ...props\n}: Omit<React.ComponentProps<typeof Button>, \"size\"> &\n VariantProps<typeof inputGroupButtonVariants>) {\n return (\n <Button\n type={type}\n data-size={size}\n variant={variant}\n className={cn(inputGroupButtonVariants({ size }), className)}\n {...props}\n />\n )\n}\n\nfunction InputGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n className={cn(\n \"flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction InputGroupInput({\n className,\n size,\n ...props\n}: React.ComponentProps<typeof Input>) {\n const context = React.useContext(InputGroupContext)\n return (\n <Input\n data-slot=\"input-group-control\"\n // The group owns the height; the control fills it and drops its own chrome.\n size={size ?? context.size}\n className={cn(\n \"h-full flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 focus-visible:shadow-none disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction InputGroupTextarea({\n className,\n size,\n ...props\n}: React.ComponentProps<typeof Textarea>) {\n const context = React.useContext(InputGroupContext)\n return (\n <Textarea\n data-slot=\"input-group-control\"\n size={size ?? context.size}\n className={cn(\n \"flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 focus-visible:shadow-none disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupText,\n InputGroupInput,\n InputGroupTextarea,\n}\n"],"names":["InputGroupContext","React","inputGroupVariants","cva","InputGroup","className","size","props","jsx","cn","inputGroupAddonVariants","InputGroupAddon","align","e","inputGroupButtonVariants","InputGroupButton","type","variant","Button","InputGroupText","InputGroupInput","context","Input","InputGroupTextarea","Textarea"],"mappings":"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"}
|
package/dist/ui/input.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("class-variance-authority"),o=require("../lib/utils.cjs"),t=s.cva("w-full min-w-0 border border-input bg-card py-1 transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:shadow-focus disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:shadow-focus dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50",{variants:{size:{xs:"h-6 rounded-md px-2 text-xs",sm:"h-7 rounded-md px-2.5 text-[0.8rem]",default:"h-8 rounded-lg px-2.5 text-base md:text-sm",lg:"h-9 rounded-lg px-3 text-base md:text-sm"}},defaultVariants:{size:"default"}});function u({className:i,type:r,size:e,htmlSize:d,...a}){return n.jsx("input",{type:r,"data-slot":"input","data-size":e??"default",size:d,className:o.cn(t({size:e}),i),...a})}exports.Input=u;exports.inputVariants=t;
|
|
2
2
|
//# sourceMappingURL=input.cjs.map
|
package/dist/ui/input.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.cjs","sources":["../../src/components/ui/input.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\
|
|
1
|
+
{"version":3,"file":"input.cjs","sources":["../../src/components/ui/input.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst inputVariants = cva(\n \"w-full min-w-0 border border-input bg-card py-1 transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:shadow-focus disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:shadow-focus dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50\",\n {\n variants: {\n // Shared control scale (SW-2591): 24 / 28 / 32 / 36, matching Button.\n size: {\n xs: \"h-6 rounded-md px-2 text-xs\",\n sm: \"h-7 rounded-md px-2.5 text-[0.8rem]\",\n default: \"h-8 rounded-lg px-2.5 text-base md:text-sm\",\n lg: \"h-9 rounded-lg px-3 text-base md:text-sm\",\n },\n },\n defaultVariants: {\n size: \"default\",\n },\n }\n)\n\nfunction Input({\n className,\n type,\n size,\n htmlSize,\n ...props\n}: Omit<React.ComponentProps<\"input\">, \"size\"> &\n VariantProps<typeof inputVariants> & {\n /** Native HTML `size` attribute (visible character width); the CVA `size` prop takes the name. */\n htmlSize?: number\n }) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n data-size={size ?? \"default\"}\n size={htmlSize}\n className={cn(inputVariants({ size }), className)}\n {...props}\n />\n )\n}\n\nexport { Input, inputVariants }\n"],"names":["inputVariants","cva","Input","className","type","size","htmlSize","props","jsx","cn"],"mappings":"yLAKMA,EAAgBC,EAAAA,IACpB,sgBACA,CACE,SAAU,CAER,KAAM,CACJ,GAAI,8BACJ,GAAI,sCACJ,QAAS,6CACT,GAAI,0CAAA,CACN,EAEF,gBAAiB,CACf,KAAM,SAAA,CACR,CAEJ,EAEA,SAASC,EAAM,CACb,UAAAC,EACA,KAAAC,EACA,KAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAIK,CACH,OACEC,EAAAA,IAAC,QAAA,CACC,KAAAJ,EACA,YAAU,QACV,YAAWC,GAAQ,UACnB,KAAMC,EACN,UAAWG,EAAAA,GAAGT,EAAc,CAAE,KAAAK,CAAA,CAAM,EAAGF,CAAS,EAC/C,GAAGI,CAAA,CAAA,CAGV"}
|
package/dist/ui/input.js
CHANGED
|
@@ -1,20 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cva as o } from "class-variance-authority";
|
|
3
|
+
import { cn as n } from "../lib/utils.js";
|
|
4
|
+
const s = o(
|
|
5
|
+
"w-full min-w-0 border border-input bg-card py-1 transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:shadow-focus disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:shadow-focus dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
// Shared control scale (SW-2591): 24 / 28 / 32 / 36, matching Button.
|
|
9
|
+
size: {
|
|
10
|
+
xs: "h-6 rounded-md px-2 text-xs",
|
|
11
|
+
sm: "h-7 rounded-md px-2.5 text-[0.8rem]",
|
|
12
|
+
default: "h-8 rounded-lg px-2.5 text-base md:text-sm",
|
|
13
|
+
lg: "h-9 rounded-lg px-3 text-base md:text-sm"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
size: "default"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
function p({
|
|
22
|
+
className: t,
|
|
23
|
+
type: i,
|
|
24
|
+
size: e,
|
|
25
|
+
htmlSize: d,
|
|
26
|
+
...r
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ a(
|
|
5
29
|
"input",
|
|
6
30
|
{
|
|
7
31
|
type: i,
|
|
8
32
|
"data-slot": "input",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
),
|
|
33
|
+
"data-size": e ?? "default",
|
|
34
|
+
size: d,
|
|
35
|
+
className: n(s({ size: e }), t),
|
|
13
36
|
...r
|
|
14
37
|
}
|
|
15
38
|
);
|
|
16
39
|
}
|
|
17
40
|
export {
|
|
18
|
-
|
|
41
|
+
p as Input,
|
|
42
|
+
s as inputVariants
|
|
19
43
|
};
|
|
20
44
|
//# sourceMappingURL=input.js.map
|
package/dist/ui/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../../src/components/ui/input.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\
|
|
1
|
+
{"version":3,"file":"input.js","sources":["../../src/components/ui/input.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\"\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst inputVariants = cva(\n \"w-full min-w-0 border border-input bg-card py-1 transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:shadow-focus disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:shadow-focus dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50\",\n {\n variants: {\n // Shared control scale (SW-2591): 24 / 28 / 32 / 36, matching Button.\n size: {\n xs: \"h-6 rounded-md px-2 text-xs\",\n sm: \"h-7 rounded-md px-2.5 text-[0.8rem]\",\n default: \"h-8 rounded-lg px-2.5 text-base md:text-sm\",\n lg: \"h-9 rounded-lg px-3 text-base md:text-sm\",\n },\n },\n defaultVariants: {\n size: \"default\",\n },\n }\n)\n\nfunction Input({\n className,\n type,\n size,\n htmlSize,\n ...props\n}: Omit<React.ComponentProps<\"input\">, \"size\"> &\n VariantProps<typeof inputVariants> & {\n /** Native HTML `size` attribute (visible character width); the CVA `size` prop takes the name. */\n htmlSize?: number\n }) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n data-size={size ?? \"default\"}\n size={htmlSize}\n className={cn(inputVariants({ size }), className)}\n {...props}\n />\n )\n}\n\nexport { Input, inputVariants }\n"],"names":["inputVariants","cva","Input","className","type","size","htmlSize","props","jsx","cn"],"mappings":";;;AAKA,MAAMA,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA;AAAA,MAER,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,MAAA;AAAA,IACN;AAAA,IAEF,iBAAiB;AAAA,MACf,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ;AAEA,SAASC,EAAM;AAAA,EACb,WAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAIK;AACH,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAJ;AAAA,MACA,aAAU;AAAA,MACV,aAAWC,KAAQ;AAAA,MACnB,MAAMC;AAAA,MACN,WAAWG,EAAGT,EAAc,EAAE,MAAAK,EAAA,CAAM,GAAGF,CAAS;AAAA,MAC/C,GAAGI;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/ui/select.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("lucide-react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("lucide-react"),s=require("radix-ui"),o=require("../lib/utils.cjs");function u({...t}){return e.jsx(s.Select.Root,{"data-slot":"select",...t})}function p({className:t,...a}){return e.jsx(s.Select.Group,{"data-slot":"select-group",className:o.cn("scroll-my-1 p-1",t),...a})}function g({...t}){return e.jsx(s.Select.Value,{"data-slot":"select-value",...t})}function m({className:t,size:a="default",children:n,...l}){return e.jsxs(s.Select.Trigger,{"data-slot":"select-trigger","data-size":a,className:o.cn("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-card pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:shadow-focus disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:shadow-focus data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=lg]:h-9 data-[size=lg]:pl-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:text-[0.8rem] data-[size=xs]:h-6 data-[size=xs]:rounded-[min(var(--radius-md),10px)] data-[size=xs]:pl-2 data-[size=xs]:text-xs *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l,children:[n,e.jsx(s.Select.Icon,{asChild:!0,children:e.jsx(r.ChevronDownIcon,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function x({className:t,children:a,position:n="item-aligned",align:l="center",...d}){return e.jsx(s.Select.Portal,{children:e.jsxs(s.Select.Content,{"data-slot":"select-content","data-align-trigger":n==="item-aligned",className:o.cn("relative z-50 max-h-(--radix-select-content-available-height) p-1 min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-elevation-4 ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n==="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",t),position:n,align:l,...d,children:[e.jsx(i,{}),e.jsx(s.Select.Viewport,{"data-position":n,className:o.cn("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",n==="popper"&&""),children:a}),e.jsx(c,{})]})})}function f({className:t,...a}){return e.jsx(s.Select.Label,{"data-slot":"select-label",className:o.cn("px-1.5 py-1 text-xs text-muted-foreground",t),...a})}function v({className:t,children:a,...n}){return e.jsxs(s.Select.Item,{"data-slot":"select-item",className:o.cn("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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",t),...n,children:[e.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:e.jsx(s.Select.ItemIndicator,{children:e.jsx(r.CheckIcon,{className:"pointer-events-none"})})}),e.jsx(s.Select.ItemText,{children:a})]})}function S({className:t,...a}){return e.jsx(s.Select.Separator,{"data-slot":"select-separator",className:o.cn("pointer-events-none -mx-1 my-1 h-px bg-border",t),...a})}function i({className:t,...a}){return e.jsx(s.Select.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:o.cn("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",t),...a,children:e.jsx(r.ChevronUpIcon,{})})}function c({className:t,...a}){return e.jsx(s.Select.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:o.cn("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",t),...a,children:e.jsx(r.ChevronDownIcon,{})})}exports.Select=u;exports.SelectContent=x;exports.SelectGroup=p;exports.SelectItem=v;exports.SelectLabel=f;exports.SelectScrollDownButton=c;exports.SelectScrollUpButton=i;exports.SelectSeparator=S;exports.SelectTrigger=m;exports.SelectValue=g;
|
|
2
2
|
//# sourceMappingURL=select.cjs.map
|
package/dist/ui/select.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.cjs","sources":["../../src/components/ui/select.tsx"],"sourcesContent":["\"use client\"\n\nimport { ChevronDownIcon, CheckIcon, ChevronUpIcon } from \"lucide-react\"\nimport { Select as SelectPrimitive } from \"radix-ui\"\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\n}\n\nfunction SelectGroup({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return (\n <SelectPrimitive.Group\n data-slot=\"select-group\"\n className={cn(\"scroll-my-1 p-1\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\n}\n\nfunction SelectTrigger({\n className,\n size = \"default\",\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: \"sm\" | \"default\"\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(\n \"flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-card pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:shadow-focus disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:shadow-focus data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"pointer-events-none size-4 text-muted-foreground\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n )\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"item-aligned\",\n align = \"center\",\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n data-align-trigger={position === \"item-aligned\"}\n className={cn(\"relative z-50 max-h-(--radix-select-content-available-height) p-1 min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-elevation-4 ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\", position ===\"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\", className )}\n position={position}\n align={align}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n data-position={position}\n className={cn(\n \"data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)\",\n position === \"popper\" && \"\"\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n )\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn(\"px-1.5 py-1 text-xs text-muted-foreground\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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\",\n className\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute right-2 flex size-4 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"pointer-events-none\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n )\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(\"pointer-events-none -mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n \"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <ChevronUpIcon\n />\n </SelectPrimitive.ScrollUpButton>\n )\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n \"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <ChevronDownIcon\n />\n </SelectPrimitive.ScrollDownButton>\n )\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n}\n"],"names":["Select","props","SelectPrimitive","SelectGroup","className","jsx","cn","SelectValue","SelectTrigger","size","children","jsxs","ChevronDownIcon","SelectContent","position","align","SelectScrollUpButton","SelectScrollDownButton","SelectLabel","SelectItem","CheckIcon","SelectSeparator","ChevronUpIcon"],"mappings":"mMASA,SAASA,EAAO,CACd,GAAGC,CACL,EAAsD,CACpD,aAAQC,EAAAA,OAAgB,KAAhB,CAAqB,YAAU,SAAU,GAAGD,EAAO,CAC7D,CAEA,SAASE,EAAY,CACnB,UAAAC,EACA,GAAGH,CACL,EAAuD,CACrD,OACEI,EAAAA,IAACH,EAAAA,OAAgB,MAAhB,CACC,YAAU,eACV,UAAWI,EAAAA,GAAG,kBAAmBF,CAAS,EACzC,GAAGH,CAAA,CAAA,CAGV,CAEA,SAASM,EAAY,CACnB,GAAGN,CACL,EAAuD,CACrD,aAAQC,EAAAA,OAAgB,MAAhB,CAAsB,YAAU,eAAgB,GAAGD,EAAO,CACpE,CAEA,SAASO,EAAc,CACrB,UAAAJ,EACA,KAAAK,EAAO,UACP,SAAAC,EACA,GAAGT,CACL,EAEG,CACD,OACEU,EAAAA,KAACT,EAAAA,OAAgB,QAAhB,CACC,YAAU,iBACV,YAAWO,EACX,UAAWH,EAAAA,
|
|
1
|
+
{"version":3,"file":"select.cjs","sources":["../../src/components/ui/select.tsx"],"sourcesContent":["\"use client\"\n\nimport { ChevronDownIcon, CheckIcon, ChevronUpIcon } from \"lucide-react\"\nimport { Select as SelectPrimitive } from \"radix-ui\"\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\n}\n\nfunction SelectGroup({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return (\n <SelectPrimitive.Group\n data-slot=\"select-group\"\n className={cn(\"scroll-my-1 p-1\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\n}\n\nfunction SelectTrigger({\n className,\n size = \"default\",\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: \"xs\" | \"sm\" | \"default\" | \"lg\"\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(\n // Shared control scale (SW-2591): xs 24 / sm 28 / default 32 / lg 36,\n // radius 8 at xs/sm and 10 at default/lg — matching Button.\n \"flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-card pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:shadow-focus disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:shadow-focus data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=lg]:h-9 data-[size=lg]:pl-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:text-[0.8rem] data-[size=xs]:h-6 data-[size=xs]:rounded-[min(var(--radius-md),10px)] data-[size=xs]:pl-2 data-[size=xs]:text-xs *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"pointer-events-none size-4 text-muted-foreground\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n )\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"item-aligned\",\n align = \"center\",\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n data-align-trigger={position === \"item-aligned\"}\n className={cn(\"relative z-50 max-h-(--radix-select-content-available-height) p-1 min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-elevation-4 ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\", position ===\"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\", className )}\n position={position}\n align={align}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n data-position={position}\n className={cn(\n \"data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)\",\n position === \"popper\" && \"\"\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n )\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn(\"px-1.5 py-1 text-xs text-muted-foreground\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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\",\n className\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute right-2 flex size-4 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"pointer-events-none\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n )\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(\"pointer-events-none -mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n \"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <ChevronUpIcon\n />\n </SelectPrimitive.ScrollUpButton>\n )\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n \"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <ChevronDownIcon\n />\n </SelectPrimitive.ScrollDownButton>\n )\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n}\n"],"names":["Select","props","SelectPrimitive","SelectGroup","className","jsx","cn","SelectValue","SelectTrigger","size","children","jsxs","ChevronDownIcon","SelectContent","position","align","SelectScrollUpButton","SelectScrollDownButton","SelectLabel","SelectItem","CheckIcon","SelectSeparator","ChevronUpIcon"],"mappings":"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"}
|