@foundrykit/primitives 2.2.0 → 2.3.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/README.md +11 -0
- package/dist/{chunk-SEDTBIZW.js → chunk-OMPTY5WQ.js} +1 -1
- package/dist/components/alert-dialog/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/context-menu/index.js +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown/index.js +2 -2
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/input-group/index.d.ts +1 -1
- package/dist/components/input-group/index.js +1 -1
- package/dist/components/menubar/index.js +2 -2
- package/dist/components/navigation-menu/index.js +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -55,11 +55,22 @@ import {
|
|
|
55
55
|
`ScrollArea`
|
|
56
56
|
- **Overlays:** `Dialog`, `Sheet`, `Popover`, `Tooltip`, `DropdownMenu`
|
|
57
57
|
- **Display:** `Avatar`, `Skeleton`
|
|
58
|
+
- **Plus:** `InputGroup`, `Field`, `Item`, `Empty`, `Kbd`, `Spinner`, `Section`,
|
|
59
|
+
`Typography`, `Table`, `Drawer`, `Menubar`, `NavigationMenu`, `Resizable`,
|
|
60
|
+
`Sonner` and more; see `src/index.ts`
|
|
58
61
|
|
|
59
62
|
`cn` (class merge helper) is re-exported for convenience. Every component and its
|
|
60
63
|
sub-parts are exported from the package root; individual modules are also
|
|
61
64
|
available via the `./components/*` subpath export.
|
|
62
65
|
|
|
66
|
+
## Layering and the server/client boundary
|
|
67
|
+
|
|
68
|
+
Primitives are the lowest UI layer: each one is a single accessible control or surface (a thin Radix wrapper plus variants) with no data, app state or copy. Compositions with behaviour belong in `@foundrykit/components`, and CMS-aware page sections in `@foundrykit/blocks`. Style only through the semantic tokens in `@foundrykit/tailwind` (no raw palette classes or hex values), so a client brand file restyles everything.
|
|
69
|
+
|
|
70
|
+
The package root has no `'use client'` directive. Each component keeps its own, so server-safe parts (Section, Card, Typography, Table, Button, …) render as Server Components, and interactive parts are client references. `scripts/check-directives.mjs` runs after every build and fails if that boundary breaks. See the Hub docs, Primitives > Integration, for the full layering guide.
|
|
71
|
+
|
|
72
|
+
Registry metadata (name, variants, preview, `code:` example strings) for the Hub and CLI lives in `src/components/<name>/registry.ts`. The `code:` strings are hand-written and can drift from the Storybook stories, so update both together.
|
|
73
|
+
|
|
63
74
|
## Documentation
|
|
64
75
|
|
|
65
76
|
Explore every component, variant, and state live in Storybook:
|
|
@@ -9,7 +9,7 @@ var buttonVariants = cva(
|
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
|
|
12
|
-
destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-
|
|
12
|
+
destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-destructive-foreground shadow-xs",
|
|
13
13
|
outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
|
|
14
14
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
|
|
15
15
|
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
@@ -46,7 +46,7 @@ function AlertDialogContent({
|
|
|
46
46
|
{
|
|
47
47
|
"data-slot": "alert-dialog-content",
|
|
48
48
|
className: cn(
|
|
49
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-
|
|
49
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
50
50
|
className
|
|
51
51
|
),
|
|
52
52
|
...props
|
|
@@ -10,7 +10,7 @@ var badgeVariants = cva(
|
|
|
10
10
|
variant: {
|
|
11
11
|
default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
|
|
12
12
|
secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",
|
|
13
|
-
destructive: "bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent
|
|
13
|
+
destructive: "bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-destructive-foreground border-transparent",
|
|
14
14
|
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -14,7 +14,7 @@ function Checkbox({
|
|
|
14
14
|
{
|
|
15
15
|
"data-slot": "checkbox",
|
|
16
16
|
className: cn(
|
|
17
|
-
"border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer size-4 shrink-0 rounded-
|
|
17
|
+
"border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer size-4 shrink-0 rounded-sm border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
18
18
|
className
|
|
19
19
|
),
|
|
20
20
|
...props,
|
|
@@ -73,7 +73,7 @@ function ContextMenuSubContent({
|
|
|
73
73
|
{
|
|
74
74
|
"data-slot": "context-menu-sub-content",
|
|
75
75
|
className: cn(
|
|
76
|
-
"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 motion-safe:data-[state=closed]:zoom-out-
|
|
76
|
+
"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 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 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 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
77
77
|
className
|
|
78
78
|
),
|
|
79
79
|
...props
|
|
@@ -89,7 +89,7 @@ function ContextMenuContent({
|
|
|
89
89
|
{
|
|
90
90
|
"data-slot": "context-menu-content",
|
|
91
91
|
className: cn(
|
|
92
|
-
"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 motion-safe:data-[state=closed]:zoom-out-
|
|
92
|
+
"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 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 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 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
93
93
|
className
|
|
94
94
|
),
|
|
95
95
|
...props
|
|
@@ -54,7 +54,7 @@ function DialogContent({
|
|
|
54
54
|
{
|
|
55
55
|
"data-slot": "dialog-content",
|
|
56
56
|
className: cn(
|
|
57
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-
|
|
57
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
58
58
|
className
|
|
59
59
|
),
|
|
60
60
|
...props,
|
|
@@ -37,7 +37,7 @@ function DropdownMenuContent({
|
|
|
37
37
|
"data-slot": "dropdown-menu-content",
|
|
38
38
|
sideOffset,
|
|
39
39
|
className: cn(
|
|
40
|
-
"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 motion-safe:data-[state=closed]:zoom-out-
|
|
40
|
+
"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 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 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 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
41
41
|
className
|
|
42
42
|
),
|
|
43
43
|
...props
|
|
@@ -208,7 +208,7 @@ function DropdownMenuSubContent({
|
|
|
208
208
|
{
|
|
209
209
|
"data-slot": "dropdown-menu-sub-content",
|
|
210
210
|
className: cn(
|
|
211
|
-
"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 motion-safe:data-[state=closed]:zoom-out-
|
|
211
|
+
"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 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 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 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
212
212
|
className
|
|
213
213
|
),
|
|
214
214
|
...props
|
|
@@ -27,7 +27,7 @@ function HoverCardContent({
|
|
|
27
27
|
align,
|
|
28
28
|
sideOffset,
|
|
29
29
|
className: cn(
|
|
30
|
-
"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 motion-safe:data-[state=closed]:zoom-out-
|
|
30
|
+
"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 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 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 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
31
31
|
className
|
|
32
32
|
),
|
|
33
33
|
...props
|
|
@@ -30,7 +30,7 @@ declare const inputGroupAddonVariants: (props?: ({
|
|
|
30
30
|
*/
|
|
31
31
|
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
32
32
|
declare const inputGroupButtonVariants: (props?: ({
|
|
33
|
-
size?: "
|
|
33
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
34
34
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
35
35
|
/**
|
|
36
36
|
* {@link Button} preset for use inside an addon: defaults to `type="button"`,
|
|
@@ -72,7 +72,7 @@ function MenubarContent({
|
|
|
72
72
|
alignOffset,
|
|
73
73
|
sideOffset,
|
|
74
74
|
className: cn(
|
|
75
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-
|
|
75
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 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 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
|
|
76
76
|
className
|
|
77
77
|
),
|
|
78
78
|
...props
|
|
@@ -227,7 +227,7 @@ function MenubarSubContent({
|
|
|
227
227
|
{
|
|
228
228
|
"data-slot": "menubar-sub-content",
|
|
229
229
|
className: cn(
|
|
230
|
-
"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 motion-safe:data-[state=closed]:zoom-out-
|
|
230
|
+
"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 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 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 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
231
231
|
className
|
|
232
232
|
),
|
|
233
233
|
...props
|
|
@@ -96,7 +96,7 @@ function NavigationMenuContent({
|
|
|
96
96
|
"data-slot": "navigation-menu-content",
|
|
97
97
|
className: cn(
|
|
98
98
|
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out motion-safe:data-[motion=from-end]:slide-in-from-right-52 motion-safe:data-[motion=from-start]:slide-in-from-left-52 motion-safe:data-[motion=to-end]:slide-out-to-right-52 motion-safe:data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
99
|
-
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out motion-safe:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-
|
|
99
|
+
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out motion-safe:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-97 motion-safe:group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-97 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200",
|
|
100
100
|
className
|
|
101
101
|
),
|
|
102
102
|
...props
|
|
@@ -118,7 +118,7 @@ function NavigationMenuViewport({
|
|
|
118
118
|
{
|
|
119
119
|
"data-slot": "navigation-menu-viewport",
|
|
120
120
|
className: cn(
|
|
121
|
-
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out motion-safe:data-[state=closed]:zoom-out-
|
|
121
|
+
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
122
122
|
className
|
|
123
123
|
),
|
|
124
124
|
...props
|
|
@@ -27,7 +27,7 @@ function PopoverContent({
|
|
|
27
27
|
align,
|
|
28
28
|
sideOffset,
|
|
29
29
|
className: cn(
|
|
30
|
-
"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 motion-safe:data-[state=closed]:zoom-out-
|
|
30
|
+
"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 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
31
31
|
className
|
|
32
32
|
),
|
|
33
33
|
...props
|
|
@@ -54,7 +54,7 @@ function SelectContent({
|
|
|
54
54
|
{
|
|
55
55
|
"data-slot": "select-content",
|
|
56
56
|
className: cn(
|
|
57
|
-
"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 motion-safe:data-[state=closed]:zoom-out-
|
|
57
|
+
"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 motion-safe:data-[state=closed]:zoom-out-97 motion-safe:data-[state=open]:zoom-in-97 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-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
58
58
|
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",
|
|
59
59
|
className
|
|
60
60
|
),
|
|
@@ -39,7 +39,7 @@ function TooltipContent({
|
|
|
39
39
|
"data-slot": "tooltip-content",
|
|
40
40
|
sideOffset,
|
|
41
41
|
className: cn(
|
|
42
|
-
"bg-primary text-primary-foreground animate-in fade-in-0 motion-safe:zoom-in-
|
|
42
|
+
"bg-primary text-primary-foreground animate-in fade-in-0 motion-safe:zoom-in-97 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-97 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 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
43
43
|
className
|
|
44
44
|
),
|
|
45
45
|
...props,
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTi
|
|
|
20
20
|
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, fieldVariants } from './components/field/index.js';
|
|
21
21
|
export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/hover-card/index.js';
|
|
22
22
|
export { Input } from './components/input/index.js';
|
|
23
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from './components/input-group/index.js';
|
|
23
24
|
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants } from './components/item/index.js';
|
|
24
25
|
export { Kbd, KbdGroup } from './components/kbd/index.js';
|
|
25
26
|
export { Label } from './components/label/index.js';
|
package/dist/index.js
CHANGED
|
@@ -150,6 +150,14 @@ import {
|
|
|
150
150
|
HoverCardTrigger
|
|
151
151
|
} from "./components/hover-card/index.js";
|
|
152
152
|
import { Input } from "./components/input/index.js";
|
|
153
|
+
import {
|
|
154
|
+
InputGroup,
|
|
155
|
+
InputGroupAddon,
|
|
156
|
+
InputGroupButton,
|
|
157
|
+
InputGroupInput,
|
|
158
|
+
InputGroupText,
|
|
159
|
+
InputGroupTextarea
|
|
160
|
+
} from "./components/input-group/index.js";
|
|
153
161
|
import {
|
|
154
162
|
Item,
|
|
155
163
|
ItemActions,
|
|
@@ -397,6 +405,12 @@ export {
|
|
|
397
405
|
HoverCardContent,
|
|
398
406
|
HoverCardTrigger,
|
|
399
407
|
Input,
|
|
408
|
+
InputGroup,
|
|
409
|
+
InputGroupAddon,
|
|
410
|
+
InputGroupButton,
|
|
411
|
+
InputGroupInput,
|
|
412
|
+
InputGroupText,
|
|
413
|
+
InputGroupTextarea,
|
|
400
414
|
Item,
|
|
401
415
|
ItemActions,
|
|
402
416
|
ItemContent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foundrykit/primitives",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"tailwind-merge": "^3.3.1",
|
|
253
253
|
"vaul": "^1.1.2",
|
|
254
254
|
"@foundrykit/types": "3.2.0",
|
|
255
|
-
"@foundrykit/utils": "1.0.
|
|
255
|
+
"@foundrykit/utils": "1.0.13"
|
|
256
256
|
},
|
|
257
257
|
"devDependencies": {
|
|
258
258
|
"@types/node": "^20.19.9",
|