@foundrykit/primitives 0.1.1 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @foundrykit/primitives
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updating versions to ensure they are inline
8
+ - Updated dependencies [015ff5f]
9
+ - Updated dependencies
10
+ - @foundrykit/types@0.1.2
11
+ - @foundrykit/utils@0.1.2
12
+
3
13
  ## 0.1.1
4
14
 
5
15
  ### Patch Changes
package/README.md CHANGED
@@ -1,13 +1,18 @@
1
1
  # @foundrykit/primitives
2
2
 
3
- A collection of accessible, unstyled UI primitives built on top of Radix UI primitives. These components provide the foundation for building consistent, accessible user interfaces.
3
+ A collection of accessible, unstyled UI primitives built on top of Radix UI
4
+ primitives. These components provide the foundation for building consistent,
5
+ accessible user interfaces.
4
6
 
5
7
  ## Features
6
8
 
7
- - **Accessible by default** - Built on Radix UI primitives with proper ARIA attributes
9
+ - **Accessible by default** - Built on Radix UI primitives with proper ARIA
10
+ attributes
8
11
  - **Unstyled** - No default styling, allowing complete customization
9
- - **TypeScript support** - Full type safety with comprehensive TypeScript definitions
10
- - **Composable** - Components are built from sub-components for maximum flexibility
12
+ - **TypeScript support** - Full type safety with comprehensive TypeScript
13
+ definitions
14
+ - **Composable** - Components are built from sub-components for maximum
15
+ flexibility
11
16
  - **Themeable** - Designed to work with any styling solution
12
17
 
13
18
  ## Installation
@@ -19,6 +24,7 @@ pnpm add @foundrykit/primitives
19
24
  ## Available Components
20
25
 
21
26
  ### Form Components
27
+
22
28
  - **Button** - Accessible button with various variants and states
23
29
  - **Input** - Form input with proper labeling and validation states
24
30
  - **Textarea** - Multi-line text input
@@ -29,21 +35,25 @@ pnpm add @foundrykit/primitives
29
35
  - **Label** - Accessible form labels
30
36
 
31
37
  ### Layout Components
38
+
32
39
  - **Card** - Container component with header, content, and footer sections
33
40
  - **Separator** - Visual divider for content organization
34
41
  - **Skeleton** - Loading placeholder components
35
42
 
36
43
  ### Navigation Components
44
+
37
45
  - **Tabs** - Tabbed interface with keyboard navigation
38
46
  - **Breadcrumb** - Navigation breadcrumbs
39
47
  - **Dropdown** - Dropdown menu with sub-menus
40
48
 
41
49
  ### Overlay Components
50
+
42
51
  - **Dialog** - Modal dialog with proper focus management
43
52
  - **Popover** - Floating content overlay
44
53
  - **Avatar** - User avatar with fallback support
45
54
 
46
55
  ### Display Components
56
+
47
57
  - **Badge** - Status indicators and labels
48
58
 
49
59
  ## Usage
@@ -51,38 +61,47 @@ pnpm add @foundrykit/primitives
51
61
  ### Basic Example
52
62
 
53
63
  ```tsx
54
- import { Button, ButtonRoot, ButtonContent } from '@foundrykit/primitives/button'
55
- import { Input, InputRoot, InputField } from '@foundrykit/primitives/input'
64
+ import {
65
+ Button,
66
+ ButtonRoot,
67
+ ButtonContent,
68
+ } from '@foundrykit/primitives/button';
69
+ import { Input, InputRoot, InputField } from '@foundrykit/primitives/input';
56
70
 
57
71
  function MyForm() {
58
72
  return (
59
73
  <form>
60
74
  <Input>
61
75
  <InputRoot>
62
- <InputField placeholder="Enter your name" />
76
+ <InputField placeholder='Enter your name' />
63
77
  </InputRoot>
64
78
  </Input>
65
-
79
+
66
80
  <Button>
67
81
  <ButtonRoot>
68
82
  <ButtonContent>Submit</ButtonContent>
69
83
  </ButtonRoot>
70
84
  </Button>
71
85
  </form>
72
- )
86
+ );
73
87
  }
74
88
  ```
75
89
 
76
90
  ### Composable Pattern
77
91
 
78
- All components follow a composable pattern where you can use either the complete component or individual sub-components:
92
+ All components follow a composable pattern where you can use either the complete
93
+ component or individual sub-components:
79
94
 
80
95
  ```tsx
81
96
  // Complete component (recommended for most cases)
82
- import { Button } from '@foundrykit/primitives/button'
97
+ import { Button } from '@foundrykit/primitives/button';
83
98
 
84
99
  // Individual sub-components (for maximum customization)
85
- import { ButtonRoot, ButtonContent, ButtonIcon } from '@foundrykit/primitives/button'
100
+ import {
101
+ ButtonRoot,
102
+ ButtonContent,
103
+ ButtonIcon,
104
+ } from '@foundrykit/primitives/button';
86
105
  ```
87
106
 
88
107
  ### Styling
@@ -90,19 +109,19 @@ import { ButtonRoot, ButtonContent, ButtonIcon } from '@foundrykit/primitives/bu
90
109
  Since these are unstyled primitives, you'll need to add your own styling:
91
110
 
92
111
  ```tsx
93
- import { Button } from '@foundrykit/primitives/button'
94
- import { cn } from '@foundrykit/utils'
112
+ import { Button } from '@foundrykit/primitives/button';
113
+ import { cn } from '@foundrykit/utils';
95
114
 
96
115
  function StyledButton({ className, ...props }) {
97
116
  return (
98
- <Button
117
+ <Button
99
118
  className={cn(
100
- "px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600",
119
+ 'rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600',
101
120
  className
102
121
  )}
103
122
  {...props}
104
123
  />
105
- )
124
+ );
106
125
  }
107
126
  ```
108
127
 
package/dist/index.cjs CHANGED
@@ -1125,7 +1125,7 @@ function DialogContent({
1125
1125
  {
1126
1126
  "data-slot": "dialog-content",
1127
1127
  className: (0, import_utils18.cn)(
1128
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
1128
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[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",
1129
1129
  className
1130
1130
  ),
1131
1131
  ...props,
@@ -1135,7 +1135,7 @@ function DialogContent({
1135
1135
  DialogPrimitive.Close,
1136
1136
  {
1137
1137
  "data-slot": "dialog-close",
1138
- className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1138
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
1139
1139
  children: [
1140
1140
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.XIcon, {}),
1141
1141
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "sr-only", children: "Close" })
@@ -1178,7 +1178,7 @@ function DialogTitle({
1178
1178
  DialogPrimitive.Title,
1179
1179
  {
1180
1180
  "data-slot": "dialog-title",
1181
- className: (0, import_utils18.cn)("text-lg leading-none font-semibold", className),
1181
+ className: (0, import_utils18.cn)("text-lg font-semibold leading-none", className),
1182
1182
  ...props
1183
1183
  }
1184
1184
  );
package/dist/index.d.cts CHANGED
@@ -38,8 +38,8 @@ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPri
38
38
  declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
39
39
  showCloseButton?: boolean;
40
40
  }): react_jsx_runtime.JSX.Element;
41
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
42
- declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
41
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
42
+ declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
43
43
  declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
44
44
  declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
45
45
 
package/dist/index.d.ts CHANGED
@@ -38,8 +38,8 @@ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPri
38
38
  declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
39
39
  showCloseButton?: boolean;
40
40
  }): react_jsx_runtime.JSX.Element;
41
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
42
- declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
41
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
42
+ declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
43
43
  declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
44
44
  declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
45
45
 
package/dist/index.js CHANGED
@@ -1,15 +1,18 @@
1
1
  import {
2
- Switch
3
- } from "./chunk-U2EIVYWP.js";
2
+ Tabs,
3
+ TabsContent,
4
+ TabsList,
5
+ TabsTrigger
6
+ } from "./chunk-FYCANIVJ.js";
4
7
  import {
5
8
  Textarea
6
9
  } from "./chunk-I44GXEPN.js";
7
- import {
8
- Label
9
- } from "./chunk-QL4XJD7Y.js";
10
10
  import {
11
11
  Input
12
12
  } from "./chunk-KZMSLRLW.js";
13
+ import {
14
+ Label
15
+ } from "./chunk-QL4XJD7Y.js";
13
16
  import {
14
17
  Popover,
15
18
  PopoverAnchor,
@@ -39,11 +42,8 @@ import {
39
42
  Skeleton
40
43
  } from "./chunk-SKR3J46C.js";
41
44
  import {
42
- Tabs,
43
- TabsContent,
44
- TabsList,
45
- TabsTrigger
46
- } from "./chunk-FYCANIVJ.js";
45
+ Switch
46
+ } from "./chunk-U2EIVYWP.js";
47
47
  import {
48
48
  Avatar,
49
49
  AvatarFallback,
@@ -62,9 +62,6 @@ import {
62
62
  BreadcrumbPage,
63
63
  BreadcrumbSeparator
64
64
  } from "./chunk-VSXKLSEP.js";
65
- import {
66
- Checkbox
67
- } from "./chunk-A3U73FA7.js";
68
65
  import {
69
66
  Button,
70
67
  buttonVariants
@@ -77,6 +74,9 @@ import {
77
74
  CardHeader,
78
75
  CardTitle
79
76
  } from "./chunk-UZIMC7AQ.js";
77
+ import {
78
+ Checkbox
79
+ } from "./chunk-A3U73FA7.js";
80
80
  import {
81
81
  DropdownMenu,
82
82
  DropdownMenuCheckboxItem,
@@ -149,7 +149,7 @@ function DialogContent({
149
149
  {
150
150
  "data-slot": "dialog-content",
151
151
  className: cn(
152
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
152
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[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",
153
153
  className
154
154
  ),
155
155
  ...props,
@@ -159,7 +159,7 @@ function DialogContent({
159
159
  DialogPrimitive.Close,
160
160
  {
161
161
  "data-slot": "dialog-close",
162
- className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
162
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
163
163
  children: [
164
164
  /* @__PURE__ */ jsx(XIcon, {}),
165
165
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
@@ -202,7 +202,7 @@ function DialogTitle({
202
202
  DialogPrimitive.Title,
203
203
  {
204
204
  "data-slot": "dialog-title",
205
- className: cn("text-lg leading-none font-semibold", className),
205
+ className: cn("text-lg font-semibold leading-none", className),
206
206
  ...props
207
207
  }
208
208
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foundrykit/primitives",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -40,8 +40,8 @@
40
40
  "react-dom": "^19.1.1",
41
41
  "tailwind-merge": "^3.3.1",
42
42
  "zod": "^3.25.76",
43
- "@foundrykit/utils": "0.1.1",
44
- "@foundrykit/types": "0.1.1"
43
+ "@foundrykit/types": "0.1.2",
44
+ "@foundrykit/utils": "0.1.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "^20.19.9",
@@ -51,8 +51,8 @@
51
51
  "fs-extra": "^11.2.0",
52
52
  "tsup": "^8.0.0",
53
53
  "typescript": "^5.9.2",
54
- "@foundrykit/typescript-config": "0.1.1",
55
- "@foundrykit/eslint-config": "0.1.1"
54
+ "@foundrykit/eslint-config": "0.2.1",
55
+ "@foundrykit/typescript-config": "0.1.2"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "react": "^19.1.1",
@@ -1,33 +1,33 @@
1
- "use client"
1
+ 'use client';
2
2
 
3
- import * as React from "react"
4
- import * as DialogPrimitive from "@radix-ui/react-dialog"
5
- import { XIcon } from "lucide-react"
3
+ import * as React from 'react';
4
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
5
+ import { XIcon } from 'lucide-react';
6
6
 
7
- import { cn } from "@foundrykit/utils"
7
+ import { cn } from '@foundrykit/utils';
8
8
 
9
9
  function Dialog({
10
10
  ...props
11
11
  }: React.ComponentProps<typeof DialogPrimitive.Root>) {
12
- return <DialogPrimitive.Root data-slot="dialog" {...props} />
12
+ return <DialogPrimitive.Root data-slot='dialog' {...props} />;
13
13
  }
14
14
 
15
15
  function DialogTrigger({
16
16
  ...props
17
17
  }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {
18
- return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />
18
+ return <DialogPrimitive.Trigger data-slot='dialog-trigger' {...props} />;
19
19
  }
20
20
 
21
21
  function DialogPortal({
22
22
  ...props
23
23
  }: React.ComponentProps<typeof DialogPrimitive.Portal>) {
24
- return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />
24
+ return <DialogPrimitive.Portal data-slot='dialog-portal' {...props} />;
25
25
  }
26
26
 
27
27
  function DialogClose({
28
28
  ...props
29
29
  }: React.ComponentProps<typeof DialogPrimitive.Close>) {
30
- return <DialogPrimitive.Close data-slot="dialog-close" {...props} />
30
+ return <DialogPrimitive.Close data-slot='dialog-close' {...props} />;
31
31
  }
32
32
 
33
33
  function DialogOverlay({
@@ -36,14 +36,14 @@ function DialogOverlay({
36
36
  }: React.ComponentProps<typeof DialogPrimitive.Overlay>) {
37
37
  return (
38
38
  <DialogPrimitive.Overlay
39
- data-slot="dialog-overlay"
39
+ data-slot='dialog-overlay'
40
40
  className={cn(
41
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
41
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',
42
42
  className
43
43
  )}
44
44
  {...props}
45
45
  />
46
- )
46
+ );
47
47
  }
48
48
 
49
49
  function DialogContent({
@@ -52,15 +52,15 @@ function DialogContent({
52
52
  showCloseButton = true,
53
53
  ...props
54
54
  }: React.ComponentProps<typeof DialogPrimitive.Content> & {
55
- showCloseButton?: boolean
55
+ showCloseButton?: boolean;
56
56
  }) {
57
57
  return (
58
- <DialogPortal data-slot="dialog-portal">
58
+ <DialogPortal data-slot='dialog-portal'>
59
59
  <DialogOverlay />
60
60
  <DialogPrimitive.Content
61
- data-slot="dialog-content"
61
+ data-slot='dialog-content'
62
62
  className={cn(
63
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
63
+ 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[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',
64
64
  className
65
65
  )}
66
66
  {...props}
@@ -68,39 +68,39 @@ function DialogContent({
68
68
  {children}
69
69
  {showCloseButton && (
70
70
  <DialogPrimitive.Close
71
- data-slot="dialog-close"
72
- className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
71
+ data-slot='dialog-close'
72
+ className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0"
73
73
  >
74
74
  <XIcon />
75
- <span className="sr-only">Close</span>
75
+ <span className='sr-only'>Close</span>
76
76
  </DialogPrimitive.Close>
77
77
  )}
78
78
  </DialogPrimitive.Content>
79
79
  </DialogPortal>
80
- )
80
+ );
81
81
  }
82
82
 
83
- function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {
83
+ function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {
84
84
  return (
85
85
  <div
86
- data-slot="dialog-header"
87
- className={cn("flex flex-col gap-2 text-center sm:text-left", className)}
86
+ data-slot='dialog-header'
87
+ className={cn('flex flex-col gap-2 text-center sm:text-left', className)}
88
88
  {...props}
89
89
  />
90
- )
90
+ );
91
91
  }
92
92
 
93
- function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {
93
+ function DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {
94
94
  return (
95
95
  <div
96
- data-slot="dialog-footer"
96
+ data-slot='dialog-footer'
97
97
  className={cn(
98
- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
98
+ 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',
99
99
  className
100
100
  )}
101
101
  {...props}
102
102
  />
103
- )
103
+ );
104
104
  }
105
105
 
106
106
  function DialogTitle({
@@ -109,11 +109,11 @@ function DialogTitle({
109
109
  }: React.ComponentProps<typeof DialogPrimitive.Title>) {
110
110
  return (
111
111
  <DialogPrimitive.Title
112
- data-slot="dialog-title"
113
- className={cn("text-lg leading-none font-semibold", className)}
112
+ data-slot='dialog-title'
113
+ className={cn('text-lg font-semibold leading-none', className)}
114
114
  {...props}
115
115
  />
116
- )
116
+ );
117
117
  }
118
118
 
119
119
  function DialogDescription({
@@ -122,11 +122,11 @@ function DialogDescription({
122
122
  }: React.ComponentProps<typeof DialogPrimitive.Description>) {
123
123
  return (
124
124
  <DialogPrimitive.Description
125
- data-slot="dialog-description"
126
- className={cn("text-muted-foreground text-sm", className)}
125
+ data-slot='dialog-description'
126
+ className={cn('text-muted-foreground text-sm', className)}
127
127
  {...props}
128
128
  />
129
- )
129
+ );
130
130
  }
131
131
 
132
132
  export {
@@ -140,4 +140,4 @@ export {
140
140
  DialogPortal,
141
141
  DialogTitle,
142
142
  DialogTrigger,
143
- }
143
+ };
@@ -31,7 +31,10 @@ export const popoverConfig: ComponentConfig = {
31
31
  component: 'Popover',
32
32
  props: {
33
33
  children: [
34
- { component: 'PopoverTrigger', props: { children: 'Open Popover' } },
34
+ {
35
+ component: 'PopoverTrigger',
36
+ props: { children: 'Open Popover' },
37
+ },
35
38
  {
36
39
  component: 'PopoverContent',
37
40
  props: {
@@ -74,10 +74,10 @@ export const switchConfig: ComponentConfig = {
74
74
  },
75
75
  {
76
76
  component: 'Label',
77
- props: {
78
- htmlFor: 'disabled',
77
+ props: {
78
+ htmlFor: 'disabled',
79
79
  className: 'text-muted-foreground',
80
- children: 'Disabled'
80
+ children: 'Disabled',
81
81
  },
82
82
  },
83
83
  ],
@@ -114,7 +114,10 @@ export const switchConfig: ComponentConfig = {
114
114
  children: [
115
115
  {
116
116
  component: 'Label',
117
- props: { htmlFor: 'notifications', children: 'Notifications' },
117
+ props: {
118
+ htmlFor: 'notifications',
119
+ children: 'Notifications',
120
+ },
118
121
  },
119
122
  {
120
123
  component: 'Switch',
@@ -130,7 +133,10 @@ export const switchConfig: ComponentConfig = {
130
133
  children: [
131
134
  {
132
135
  component: 'Label',
133
- props: { htmlFor: 'marketing', children: 'Marketing emails' },
136
+ props: {
137
+ htmlFor: 'marketing',
138
+ children: 'Marketing emails',
139
+ },
134
140
  },
135
141
  {
136
142
  component: 'Switch',
@@ -1,68 +0,0 @@
1
-
2
- 
3
- > @foundrykit/primitives@0.1.0 build /Users/isaacsneddon-jenkins/Desktop/projects/umi/projects/foundrykit/packages/primitives
4
- > tsup
5
-
6
- CLI Building entry: src/index.ts, src/components/avatar/index.tsx, src/components/badge/index.tsx, src/components/breadcrumb/index.tsx, src/components/button/index.tsx, src/components/card/index.tsx, src/components/checkbox/index.tsx, src/components/dropdown/index.tsx, src/components/input/index.tsx, src/components/label/index.tsx, src/components/popover/index.tsx, src/components/radio-group/index.tsx, src/components/select/index.tsx, src/components/separator/index.tsx, src/components/skeleton/index.tsx, src/components/switch/index.tsx, src/components/tabs/index.tsx, src/components/textarea/index.tsx
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.5.0
9
- CLI Using tsup config: /Users/isaacsneddon-jenkins/Desktop/projects/umi/projects/foundrykit/packages/primitives/tsup.config.ts
10
- CLI Target: es2022
11
- CLI Cleaning output folder
12
- ESM Build start
13
- ESM dist/components/popover/index.js 195.00 B
14
- ESM dist/components/radio-group/index.js 131.00 B
15
- ESM dist/components/select/index.js 411.00 B
16
- ESM dist/components/label/index.js 85.00 B
17
- ESM dist/components/skeleton/index.js 77.00 B
18
- ESM dist/components/separator/index.js 93.00 B
19
- ESM dist/components/dropdown/index.js 757.00 B
20
- ESM dist/components/textarea/index.js 77.00 B
21
- ESM dist/components/tabs/index.js 167.00 B
22
- ESM dist/chunk-FYCANIVJ.js 1.87 KB
23
- ESM dist/index.js 2.44 KB
24
- ESM dist/components/input/index.js 71.00 B
25
- ESM dist/chunk-KZMSLRLW.js 806.00 B
26
- ESM dist/components/switch/index.js 87.00 B
27
- ESM dist/chunk-J4CRGO2P.js 1.49 KB
28
- ESM dist/chunk-AADRFFPH.js 5.89 KB
29
- ESM dist/chunk-J57CV3VT.js 690.00 B
30
- ESM dist/chunk-I44GXEPN.js 809.00 B
31
- ESM dist/chunk-QL4XJD7Y.js 627.00 B
32
- ESM dist/chunk-VVNIYCKH.js 1.04 KB
33
- ESM dist/components/badge/index.js 105.00 B
34
- ESM dist/components/avatar/index.js 153.00 B
35
- ESM dist/components/breadcrumb/index.js 315.00 B
36
- ESM dist/chunk-VSXKLSEP.js 2.45 KB
37
- ESM dist/chunk-XQAJQKO7.js 1.46 KB
38
- ESM dist/components/button/index.js 109.00 B
39
- ESM dist/chunk-SKR3J46C.js 363.00 B
40
- ESM dist/chunk-UZIMC7AQ.js 1.61 KB
41
- ESM dist/chunk-U2EIVYWP.js 1.21 KB
42
- ESM dist/chunk-A3U73FA7.js 1.25 KB
43
- ESM dist/components/checkbox/index.js 91.00 B
44
- ESM dist/chunk-FUWID6MC.js 1.52 KB
45
- ESM dist/chunk-YTUI6MCB.js 1.98 KB
46
- ESM dist/chunk-PHMEWMFS.js 7.52 KB
47
- ESM dist/components/card/index.js 219.00 B
48
- ESM ⚡️ Build success in 207ms
49
- DTS Build start
50
- DTS ⚡️ Build success in 9157ms
51
- DTS dist/index.d.ts 2.05 KB
52
- DTS dist/components/avatar/index.d.ts 611.00 B
53
- DTS dist/components/badge/index.d.ts 653.00 B
54
- DTS dist/components/breadcrumb/index.d.ts 1.06 KB
55
- DTS dist/components/button/index.d.ts 806.00 B
56
- DTS dist/components/card/index.d.ts 947.00 B
57
- DTS dist/components/checkbox/index.d.ts 310.00 B
58
- DTS dist/components/dropdown/index.d.ts 2.84 KB
59
- DTS dist/components/input/index.d.ts 252.00 B
60
- DTS dist/components/label/index.d.ts 295.00 B
61
- DTS dist/components/popover/index.d.ts 768.00 B
62
- DTS dist/components/radio-group/index.d.ts 481.00 B
63
- DTS dist/components/select/index.d.ts 1.75 KB
64
- DTS dist/components/separator/index.d.ts 340.00 B
65
- DTS dist/components/skeleton/index.d.ts 191.00 B
66
- DTS dist/components/switch/index.d.ts 300.00 B
67
- DTS dist/components/tabs/index.d.ts 734.00 B
68
- DTS dist/components/textarea/index.d.ts 228.00 B
@@ -1,5 +0,0 @@
1
-
2
- 
3
- > @foundrykit/primitives@0.1.0 type-check /Users/isaacsneddon-jenkins/Desktop/projects/umi/projects/foundrykit/packages/primitives
4
- > tsc --noEmit
5
-