@foundrykit/primitives 0.1.0 → 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 ADDED
@@ -0,0 +1,20 @@
1
+ # @foundrykit/primitives
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
+
13
+ ## 0.1.1
14
+
15
+ ### Patch Changes
16
+
17
+ - basic test
18
+ - Updated dependencies
19
+ - @foundrykit/types@0.1.1
20
+ - @foundrykit/utils@0.1.1
package/README.md ADDED
@@ -0,0 +1,170 @@
1
+ # @foundrykit/primitives
2
+
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.
6
+
7
+ ## Features
8
+
9
+ - **Accessible by default** - Built on Radix UI primitives with proper ARIA
10
+ attributes
11
+ - **Unstyled** - No default styling, allowing complete customization
12
+ - **TypeScript support** - Full type safety with comprehensive TypeScript
13
+ definitions
14
+ - **Composable** - Components are built from sub-components for maximum
15
+ flexibility
16
+ - **Themeable** - Designed to work with any styling solution
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ pnpm add @foundrykit/primitives
22
+ ```
23
+
24
+ ## Available Components
25
+
26
+ ### Form Components
27
+
28
+ - **Button** - Accessible button with various variants and states
29
+ - **Input** - Form input with proper labeling and validation states
30
+ - **Textarea** - Multi-line text input
31
+ - **Checkbox** - Accessible checkbox with proper keyboard navigation
32
+ - **Radio Group** - Radio button group with proper form integration
33
+ - **Select** - Dropdown select with search and keyboard navigation
34
+ - **Switch** - Toggle switch component
35
+ - **Label** - Accessible form labels
36
+
37
+ ### Layout Components
38
+
39
+ - **Card** - Container component with header, content, and footer sections
40
+ - **Separator** - Visual divider for content organization
41
+ - **Skeleton** - Loading placeholder components
42
+
43
+ ### Navigation Components
44
+
45
+ - **Tabs** - Tabbed interface with keyboard navigation
46
+ - **Breadcrumb** - Navigation breadcrumbs
47
+ - **Dropdown** - Dropdown menu with sub-menus
48
+
49
+ ### Overlay Components
50
+
51
+ - **Dialog** - Modal dialog with proper focus management
52
+ - **Popover** - Floating content overlay
53
+ - **Avatar** - User avatar with fallback support
54
+
55
+ ### Display Components
56
+
57
+ - **Badge** - Status indicators and labels
58
+
59
+ ## Usage
60
+
61
+ ### Basic Example
62
+
63
+ ```tsx
64
+ import {
65
+ Button,
66
+ ButtonRoot,
67
+ ButtonContent,
68
+ } from '@foundrykit/primitives/button';
69
+ import { Input, InputRoot, InputField } from '@foundrykit/primitives/input';
70
+
71
+ function MyForm() {
72
+ return (
73
+ <form>
74
+ <Input>
75
+ <InputRoot>
76
+ <InputField placeholder='Enter your name' />
77
+ </InputRoot>
78
+ </Input>
79
+
80
+ <Button>
81
+ <ButtonRoot>
82
+ <ButtonContent>Submit</ButtonContent>
83
+ </ButtonRoot>
84
+ </Button>
85
+ </form>
86
+ );
87
+ }
88
+ ```
89
+
90
+ ### Composable Pattern
91
+
92
+ All components follow a composable pattern where you can use either the complete
93
+ component or individual sub-components:
94
+
95
+ ```tsx
96
+ // Complete component (recommended for most cases)
97
+ import { Button } from '@foundrykit/primitives/button';
98
+
99
+ // Individual sub-components (for maximum customization)
100
+ import {
101
+ ButtonRoot,
102
+ ButtonContent,
103
+ ButtonIcon,
104
+ } from '@foundrykit/primitives/button';
105
+ ```
106
+
107
+ ### Styling
108
+
109
+ Since these are unstyled primitives, you'll need to add your own styling:
110
+
111
+ ```tsx
112
+ import { Button } from '@foundrykit/primitives/button';
113
+ import { cn } from '@foundrykit/utils';
114
+
115
+ function StyledButton({ className, ...props }) {
116
+ return (
117
+ <Button
118
+ className={cn(
119
+ 'rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600',
120
+ className
121
+ )}
122
+ {...props}
123
+ />
124
+ );
125
+ }
126
+ ```
127
+
128
+ ## Component Structure
129
+
130
+ Each component is organized as follows:
131
+
132
+ ```
133
+ component/
134
+ ├── config.ts # Component configuration and variants
135
+ ├── index.tsx # Main component exports
136
+ └── README.md # Component-specific documentation
137
+ ```
138
+
139
+ ## Accessibility
140
+
141
+ All components follow WCAG guidelines and include:
142
+
143
+ - Proper ARIA attributes
144
+ - Keyboard navigation support
145
+ - Focus management
146
+ - Screen reader compatibility
147
+ - Color contrast considerations
148
+
149
+ ## Dependencies
150
+
151
+ - **Radix UI** - For accessibility primitives
152
+ - **React** - UI framework
153
+ - **TypeScript** - Type safety
154
+ - **class-variance-authority** - For component variants
155
+ - **clsx** - For conditional class names
156
+ - **tailwind-merge** - For class merging
157
+
158
+ ## Contributing
159
+
160
+ When adding new primitives:
161
+
162
+ 1. Follow the existing component structure
163
+ 2. Ensure proper accessibility
164
+ 3. Add TypeScript definitions
165
+ 4. Include usage examples
166
+ 5. Update this README
167
+
168
+ ## License
169
+
170
+ MIT
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
@@ -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.0",
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.0",
44
- "@foundrykit/types": "0.1.0"
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/eslint-config": "0.1.0",
55
- "@foundrykit/typescript-config": "0.1.0"
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',