@surreal-ui/react 0.5.2 → 0.5.4

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.
Files changed (119) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/index.js +346 -365
  3. package/package.json +2 -2
  4. package/src/components/GlassmorphismAlert.tsx +4 -1
  5. package/src/components/GlassmorphismButton.tsx +1 -1
  6. package/src/components/GlassmorphismEmptyState.tsx +1 -1
  7. package/src/components/GlassmorphismInputGroup.tsx +1 -1
  8. package/src/components/GlassmorphismMenubar.tsx +2 -2
  9. package/src/components/GlassmorphismScrollArea.tsx +1 -1
  10. package/src/components/GlassmorphismTypography.tsx +1 -1
  11. package/src/components/MinimalistAccordion.tsx +9 -9
  12. package/src/components/MinimalistAlert.tsx +4 -1
  13. package/src/components/MinimalistAlertDialog.tsx +44 -43
  14. package/src/components/MinimalistAspectRatio.tsx +2 -2
  15. package/src/components/MinimalistAvatar.tsx +13 -13
  16. package/src/components/MinimalistBadge.tsx +7 -7
  17. package/src/components/MinimalistBreadcrumb.tsx +6 -2
  18. package/src/components/MinimalistButton.tsx +7 -7
  19. package/src/components/MinimalistButtonGroup.tsx +28 -27
  20. package/src/components/MinimalistCalendar.tsx +16 -13
  21. package/src/components/MinimalistCard.tsx +1 -1
  22. package/src/components/MinimalistCarousel.tsx +12 -12
  23. package/src/components/MinimalistChart.tsx +15 -15
  24. package/src/components/MinimalistCheckbox.tsx +4 -4
  25. package/src/components/MinimalistCodeBlock.tsx +16 -16
  26. package/src/components/MinimalistCollapsible.tsx +2 -2
  27. package/src/components/MinimalistCommand.tsx +21 -21
  28. package/src/components/MinimalistContextMenu.tsx +50 -42
  29. package/src/components/MinimalistDialog.tsx +12 -8
  30. package/src/components/MinimalistDrawer.tsx +10 -6
  31. package/src/components/MinimalistDropdownMenu.tsx +67 -67
  32. package/src/components/MinimalistEmpty.tsx +8 -8
  33. package/src/components/MinimalistEmptyState.tsx +1 -1
  34. package/src/components/MinimalistField.tsx +26 -26
  35. package/src/components/MinimalistForm.tsx +17 -15
  36. package/src/components/MinimalistHoverCard.tsx +2 -2
  37. package/src/components/MinimalistInput.tsx +3 -3
  38. package/src/components/MinimalistInputGroup.tsx +21 -21
  39. package/src/components/MinimalistInputOtp.tsx +9 -9
  40. package/src/components/MinimalistItem.tsx +18 -17
  41. package/src/components/MinimalistKbd.tsx +3 -3
  42. package/src/components/MinimalistLabel.tsx +2 -2
  43. package/src/components/MinimalistMenubar.tsx +14 -14
  44. package/src/components/MinimalistNativeSelect.tsx +3 -3
  45. package/src/components/MinimalistNavigationMenu.tsx +8 -8
  46. package/src/components/MinimalistPagination.tsx +9 -9
  47. package/src/components/MinimalistPopover.tsx +20 -19
  48. package/src/components/MinimalistProgress.tsx +2 -2
  49. package/src/components/MinimalistRadioGroup.tsx +3 -3
  50. package/src/components/MinimalistRangeCalendar.tsx +15 -15
  51. package/src/components/MinimalistResizable.tsx +2 -2
  52. package/src/components/MinimalistScrollArea.tsx +1 -1
  53. package/src/components/MinimalistSelect.tsx +28 -31
  54. package/src/components/MinimalistSeparator.tsx +5 -5
  55. package/src/components/MinimalistSheet.tsx +13 -13
  56. package/src/components/MinimalistSidebar.tsx +73 -72
  57. package/src/components/MinimalistSkeleton.tsx +1 -1
  58. package/src/components/MinimalistSlider.tsx +8 -8
  59. package/src/components/MinimalistSonner.tsx +4 -4
  60. package/src/components/MinimalistSpinner.tsx +3 -3
  61. package/src/components/MinimalistSwitch.tsx +5 -5
  62. package/src/components/MinimalistTabs.tsx +13 -8
  63. package/src/components/MinimalistTextarea.tsx +3 -3
  64. package/src/components/MinimalistToggle.tsx +8 -8
  65. package/src/components/MinimalistToggleGroup.tsx +18 -17
  66. package/src/components/MinimalistTooltip.tsx +7 -7
  67. package/src/components/MinimalistTypography.tsx +1 -1
  68. package/src/components/NeubrutalismCard.tsx +82 -1
  69. package/src/components/ShadcnAccordion.tsx +9 -9
  70. package/src/components/ShadcnAlertDialog.tsx +44 -43
  71. package/src/components/ShadcnAspectRatio.tsx +2 -2
  72. package/src/components/ShadcnAvatar.tsx +13 -13
  73. package/src/components/ShadcnBadge.tsx +7 -7
  74. package/src/components/ShadcnBreadcrumb.tsx +6 -2
  75. package/src/components/ShadcnButton.tsx +7 -7
  76. package/src/components/ShadcnButtonGroup.tsx +28 -27
  77. package/src/components/ShadcnCalendar.tsx +16 -13
  78. package/src/components/ShadcnCarousel.tsx +12 -12
  79. package/src/components/ShadcnChart.tsx +15 -15
  80. package/src/components/ShadcnCheckbox.tsx +4 -4
  81. package/src/components/ShadcnCodeBlock.tsx +16 -16
  82. package/src/components/ShadcnCollapsible.tsx +2 -2
  83. package/src/components/ShadcnCommand.tsx +21 -21
  84. package/src/components/ShadcnContextMenu.tsx +50 -42
  85. package/src/components/ShadcnDialog.tsx +12 -8
  86. package/src/components/ShadcnDrawer.tsx +10 -6
  87. package/src/components/ShadcnDropdownMenu.tsx +67 -67
  88. package/src/components/ShadcnEmpty.tsx +8 -8
  89. package/src/components/ShadcnField.tsx +26 -26
  90. package/src/components/ShadcnForm.tsx +17 -15
  91. package/src/components/ShadcnHoverCard.tsx +2 -2
  92. package/src/components/ShadcnInput.tsx +3 -3
  93. package/src/components/ShadcnInputGroup.tsx +21 -21
  94. package/src/components/ShadcnInputOtp.tsx +9 -9
  95. package/src/components/ShadcnItem.tsx +18 -17
  96. package/src/components/ShadcnKbd.tsx +3 -3
  97. package/src/components/ShadcnLabel.tsx +2 -2
  98. package/src/components/ShadcnMenubar.tsx +14 -14
  99. package/src/components/ShadcnNativeSelect.tsx +3 -3
  100. package/src/components/ShadcnNavigationMenu.tsx +8 -8
  101. package/src/components/ShadcnPagination.tsx +9 -9
  102. package/src/components/ShadcnPopover.tsx +20 -19
  103. package/src/components/ShadcnProgress.tsx +2 -2
  104. package/src/components/ShadcnRadioGroup.tsx +3 -3
  105. package/src/components/ShadcnRangeCalendar.tsx +15 -15
  106. package/src/components/ShadcnSelect.tsx +28 -31
  107. package/src/components/ShadcnSeparator.tsx +5 -5
  108. package/src/components/ShadcnSheet.tsx +13 -13
  109. package/src/components/ShadcnSidebar.tsx +73 -72
  110. package/src/components/ShadcnSkeleton.tsx +1 -1
  111. package/src/components/ShadcnSlider.tsx +8 -8
  112. package/src/components/ShadcnSonner.tsx +4 -4
  113. package/src/components/ShadcnSpinner.tsx +3 -3
  114. package/src/components/ShadcnSwitch.tsx +5 -5
  115. package/src/components/ShadcnTabs.tsx +13 -8
  116. package/src/components/ShadcnTextarea.tsx +3 -3
  117. package/src/components/ShadcnToggle.tsx +8 -8
  118. package/src/components/ShadcnToggleGroup.tsx +18 -17
  119. package/src/components/ShadcnTooltip.tsx +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surreal-ui/react",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "@radix-ui/react-hover-card": "^1.1.6",
22
22
  "lucide-react": "^1.16.0",
23
23
  "sonner": "^2.0.7",
24
- "@surreal-ui/core": "0.5.2"
24
+ "@surreal-ui/core": "0.5.4"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@radix-ui/react-hover-card": "^1.1.6",
@@ -12,7 +12,10 @@ interface GlassmorphismAlertProps {
12
12
  createdComponent?: CreatedComponent | null;
13
13
  }
14
14
 
15
- export const GlassmorphismAlert: React.FC<GlassmorphismAlertProps> = ({ successMessage = '', createdComponent = null }) => {
15
+ export const GlassmorphismAlert: React.FC<GlassmorphismAlertProps> = ({
16
+ successMessage = '',
17
+ createdComponent = null
18
+ }) => {
16
19
  if (!successMessage || !createdComponent) {
17
20
  return null;
18
21
  }
@@ -17,4 +17,4 @@ export const GlassmorphismButton: React.FC<GlassButtonProps> = ({
17
17
  </button>
18
18
  );
19
19
  };
20
- export default GlassmorphismButton;
20
+ export default GlassmorphismButton;
@@ -6,7 +6,7 @@ interface GlassmorphismEmptyStateProps {
6
6
  }
7
7
  export const GlassmorphismEmptyState: React.FC<GlassmorphismEmptyStateProps> = ({
8
8
  title = 'No activity logged yet',
9
- description = 'Activities will appear automatically as components are ingested or modified.',
9
+ description = 'Activities will appear automatically as components are ingested or modified.'
10
10
  }) => {
11
11
  return (
12
12
  <div className="text-center py-16 px-6 bg-white/5 backdrop-blur-md border border-dashed border-white/10 rounded-3xl space-y-3 shadow-2xl">
@@ -18,7 +18,7 @@ export const GlassInputGroup: React.FC<GlassInputGroupProps> = ({
18
18
  changelogNote: initialChangelogNote = 'Initial code package release',
19
19
  sourcePlatform: initialSourcePlatform = '',
20
20
  loading = false,
21
- onSubmit = () => {},
21
+ onSubmit = () => {}
22
22
  }) => {
23
23
  const [componentTypeId, setComponentTypeId] = useState(initialComponentTypeId);
24
24
  const [aestheticId, setAestheticId] = useState(initialAestheticId);
@@ -7,7 +7,7 @@ import {
7
7
  Terminal,
8
8
  Github,
9
9
  LogOut,
10
- User,
10
+ User
11
11
  } from 'lucide-react';
12
12
  interface GlassmorphismMenubarProps {
13
13
  appVersion?: string;
@@ -17,7 +17,7 @@ interface GlassmorphismMenubarProps {
17
17
  export const GlassmorphismMenubar: React.FC<GlassmorphismMenubarProps> = ({
18
18
  appVersion = '0.1.0',
19
19
  currentUser = null,
20
- onSignOut = () => {},
20
+ onSignOut = () => {}
21
21
  }) => {
22
22
  return (
23
23
  <header className="sticky top-0 z-50 bg-slate-950/80 backdrop-blur-md border-b border-slate-800/80 px-4 lg:px-8 py-3.5">
@@ -17,7 +17,7 @@ export const GlassmorphismScrollArea: React.FC<GlassmorphismScrollAreaProps> = (
17
17
  currentVersionId = '',
18
18
  versions = [],
19
19
  revertLoading = false,
20
- onRevert = () => {},
20
+ onRevert = () => {}
21
21
  }) => {
22
22
  return (
23
23
  <div className="backdrop-blur-xl bg-slate-900/60 border border-white/10 p-6 rounded-2xl shadow-2xl space-y-4 max-h-[600px] overflow-y-auto">
@@ -10,7 +10,7 @@ export const GlassmorphismTypography: React.FC<GlassmorphismTypographyProps> = (
10
10
  badgeText = 'AI Multi-Platform Synthesizer Studio',
11
11
  title = 'Ingest & Generate Component',
12
12
  description = "Paste your raw component code in any framework. Surreal UI's engine (powered by ",
13
- highlightText = '@pixerate/ai-core',
13
+ highlightText = '@pixerate/ai-core'
14
14
  }) => {
15
15
  return (
16
16
  <div className="space-y-2">
@@ -59,7 +59,7 @@ export const Root = React.forwardRef<HTMLDivElement, AccordionProps>(
59
59
  children,
60
60
  ...props
61
61
  },
62
- ref,
62
+ ref
63
63
  ) => {
64
64
  const [uncontrolledValue, setUncontrolledValue] = React.useState<string[]>(() => {
65
65
  if (defaultValue !== undefined) {
@@ -105,7 +105,7 @@ export const Root = React.forwardRef<HTMLDivElement, AccordionProps>(
105
105
  const emitted = type === 'single' ? (nextValues[0] ?? '') : nextValues;
106
106
  onValueChange?.(emitted);
107
107
  },
108
- [disabled, openValues, type, collapsible, isControlled, onValueChange],
108
+ [disabled, openValues, type, collapsible, isControlled, onValueChange]
109
109
  );
110
110
 
111
111
  return (
@@ -115,7 +115,7 @@ export const Root = React.forwardRef<HTMLDivElement, AccordionProps>(
115
115
  </div>
116
116
  </AccordionContext.Provider>
117
117
  );
118
- },
118
+ }
119
119
  );
120
120
  Root.displayName = 'Accordion';
121
121
 
@@ -142,7 +142,7 @@ export const Item = React.forwardRef<HTMLDivElement, AccordionItemProps>(
142
142
  </div>
143
143
  </AccordionItemContext.Provider>
144
144
  );
145
- },
145
+ }
146
146
  );
147
147
  Item.displayName = 'AccordionItem';
148
148
 
@@ -166,7 +166,7 @@ export const Trigger = React.forwardRef<HTMLButtonElement, AccordionTriggerProps
166
166
  onClick={() => toggleItem(value, itemDisabled)}
167
167
  className={cn(
168
168
  'flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left text-foreground [&[data-state=open]>svg]:rotate-180 disabled:pointer-events-none disabled:opacity-50',
169
- className,
169
+ className
170
170
  )}
171
171
  {...props}
172
172
  >
@@ -175,7 +175,7 @@ export const Trigger = React.forwardRef<HTMLButtonElement, AccordionTriggerProps
175
175
  </button>
176
176
  </h3>
177
177
  );
178
- },
178
+ }
179
179
  );
180
180
  Trigger.displayName = 'AccordionTrigger';
181
181
 
@@ -194,14 +194,14 @@ export const Content = React.forwardRef<HTMLDivElement, AccordionContentProps>(
194
194
  className={cn(
195
195
  'grid transition-all duration-200 ease-out text-sm text-muted-foreground',
196
196
  isOpen ? 'grid-rows-[1fr] opacity-100' : 'grid-rows-[0fr] opacity-0 invisible h-0',
197
- className,
197
+ className
198
198
  )}
199
199
  {...props}
200
200
  >
201
201
  <div className="overflow-hidden pb-4 pt-0">{children}</div>
202
202
  </div>
203
203
  );
204
- },
204
+ }
205
205
  );
206
206
  Content.displayName = 'AccordionContent';
207
207
 
@@ -209,7 +209,7 @@ export {
209
209
  Root as ShadcnAccordion,
210
210
  Item as AccordionItem,
211
211
  Trigger as AccordionTrigger,
212
- Content as AccordionContent,
212
+ Content as AccordionContent
213
213
  };
214
214
 
215
215
  export default MinimalistAccordion;
@@ -12,7 +12,10 @@ interface ModernAlertProps {
12
12
  createdComponent?: CreatedComponent | null;
13
13
  }
14
14
 
15
- export const ModernAlert: React.FC<ModernAlertProps> = ({ successMessage = '', createdComponent = null }) => {
15
+ export const ModernAlert: React.FC<ModernAlertProps> = ({
16
+ successMessage = '',
17
+ createdComponent = null
18
+ }) => {
16
19
  if (!successMessage || !createdComponent) {
17
20
  return null;
18
21
  }
@@ -27,7 +27,7 @@ export function ShadcnAlertDialog({
27
27
  open: controlledOpen,
28
28
  defaultOpen = false,
29
29
  onOpenChange,
30
- children,
30
+ children
31
31
  }: AlertDialogProps) {
32
32
  const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen);
33
33
  const isControlled = controlledOpen !== undefined;
@@ -40,7 +40,7 @@ export function ShadcnAlertDialog({
40
40
  }
41
41
  onOpenChange?.(nextOpen);
42
42
  },
43
- [isControlled, onOpenChange],
43
+ [isControlled, onOpenChange]
44
44
  );
45
45
 
46
46
  return (
@@ -52,25 +52,26 @@ export interface ShadcnAlertDialogTriggerProps extends React.ButtonHTMLAttribute
52
52
  asChild?: boolean;
53
53
  }
54
54
 
55
- export const ShadcnAlertDialogTrigger = React.forwardRef<HTMLButtonElement, AlertDialogTriggerProps>(
56
- ({ onClick, children, ...props }, ref) => {
57
- const { setOpen } = useAlertDialog();
58
- return (
59
- <button
60
- ref={ref}
61
- type="button"
62
- data-slot="alert-dialog-trigger"
63
- onClick={(e) => {
64
- onClick?.(e);
65
- setOpen(true);
66
- }}
67
- {...props}
68
- >
69
- {children}
70
- </button>
71
- );
72
- },
73
- );
55
+ export const ShadcnAlertDialogTrigger = React.forwardRef<
56
+ HTMLButtonElement,
57
+ AlertDialogTriggerProps
58
+ >(({ onClick, children, ...props }, ref) => {
59
+ const { setOpen } = useAlertDialog();
60
+ return (
61
+ <button
62
+ ref={ref}
63
+ type="button"
64
+ data-slot="alert-dialog-trigger"
65
+ onClick={(e) => {
66
+ onClick?.(e);
67
+ setOpen(true);
68
+ }}
69
+ {...props}
70
+ >
71
+ {children}
72
+ </button>
73
+ );
74
+ });
74
75
  AlertDialogTrigger.displayName = 'AlertDialogTrigger';
75
76
 
76
77
  export const ShadcnAlertDialogPortal = ({ children }: { children: React.ReactNode }) => {
@@ -87,12 +88,12 @@ export const ShadcnAlertDialogOverlay = React.forwardRef<HTMLDivElement, AlertDi
87
88
  data-slot="alert-dialog-overlay"
88
89
  className={cn(
89
90
  'fixed inset-0 z-50 bg-black/60 backdrop-blur-xs transition-opacity animate-in fade-in-0',
90
- className,
91
+ className
91
92
  )}
92
93
  {...props}
93
94
  />
94
95
  );
95
- },
96
+ }
96
97
  );
97
98
  AlertDialogOverlay.displayName = 'AlertDialogOverlay';
98
99
 
@@ -128,7 +129,7 @@ export const ShadcnAlertDialogContent = React.forwardRef<HTMLDivElement, AlertDi
128
129
  className={cn(
129
130
  'fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 shadow-2xl duration-150 animate-in fade-in-0 zoom-in-95 outline-none',
130
131
  size === 'default' ? 'max-w-xs sm:max-w-sm' : 'max-w-xs',
131
- className,
132
+ className
132
133
  )}
133
134
  {...props}
134
135
  >
@@ -136,7 +137,7 @@ export const ShadcnAlertDialogContent = React.forwardRef<HTMLDivElement, AlertDi
136
137
  </div>
137
138
  </AlertDialogPortal>
138
139
  );
139
- },
140
+ }
140
141
  );
141
142
  AlertDialogContent.displayName = 'AlertDialogContent';
142
143
 
@@ -149,11 +150,11 @@ export const ShadcnAlertDialogHeader = React.forwardRef<HTMLDivElement, AlertDia
149
150
  data-slot="alert-dialog-header"
150
151
  className={cn(
151
152
  'grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:place-items-start sm:text-left sm:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]',
152
- className,
153
+ className
153
154
  )}
154
155
  {...props}
155
156
  />
156
- ),
157
+ )
157
158
  );
158
159
  AlertDialogHeader.displayName = 'AlertDialogHeader';
159
160
 
@@ -166,11 +167,11 @@ export const ShadcnAlertDialogMedia = React.forwardRef<HTMLDivElement, AlertDial
166
167
  data-slot="alert-dialog-media"
167
168
  className={cn(
168
169
  "mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:row-span-2 *:[svg:not([class*='size-'])]:size-6",
169
- className,
170
+ className
170
171
  )}
171
172
  {...props}
172
173
  />
173
- ),
174
+ )
174
175
  );
175
176
  AlertDialogMedia.displayName = 'AlertDialogMedia';
176
177
 
@@ -183,11 +184,11 @@ export const ShadcnAlertDialogTitle = React.forwardRef<HTMLHeadingElement, Alert
183
184
  data-slot="alert-dialog-title"
184
185
  className={cn(
185
186
  'text-base font-semibold tracking-tight text-foreground sm:col-start-2',
186
- className,
187
+ className
187
188
  )}
188
189
  {...props}
189
190
  />
190
- ),
191
+ )
191
192
  );
192
193
  AlertDialogTitle.displayName = 'AlertDialogTitle';
193
194
 
@@ -202,7 +203,7 @@ export const ShadcnAlertDialogDescription = React.forwardRef<
202
203
  data-slot="alert-dialog-description"
203
204
  className={cn(
204
205
  'text-sm text-balance text-muted-foreground leading-relaxed md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground',
205
- className,
206
+ className
206
207
  )}
207
208
  {...props}
208
209
  />
@@ -218,11 +219,11 @@ export const ShadcnAlertDialogFooter = React.forwardRef<HTMLDivElement, AlertDia
218
219
  data-slot="alert-dialog-footer"
219
220
  className={cn(
220
221
  '-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-border bg-muted/50 p-4 sm:flex-row sm:justify-end',
221
- className,
222
+ className
222
223
  )}
223
224
  {...props}
224
225
  />
225
- ),
226
+ )
226
227
  );
227
228
  AlertDialogFooter.displayName = 'AlertDialogFooter';
228
229
 
@@ -237,20 +238,20 @@ const buttonVariants = cva(
237
238
  'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground',
238
239
  secondary: 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80',
239
240
  ghost: 'hover:bg-accent hover:text-accent-foreground',
240
- link: 'text-primary underline-offset-4 hover:underline',
241
+ link: 'text-primary underline-offset-4 hover:underline'
241
242
  },
242
243
  size: {
243
244
  default: 'h-9 px-4 py-2',
244
245
  sm: 'h-8 rounded-md px-3 text-xs',
245
246
  lg: 'h-10 rounded-md px-8',
246
- icon: 'h-9 w-9',
247
- },
247
+ icon: 'h-9 w-9'
248
+ }
248
249
  },
249
250
  defaultVariants: {
250
251
  variant: 'default',
251
- size: 'default',
252
- },
253
- },
252
+ size: 'default'
253
+ }
254
+ }
254
255
  );
255
256
 
256
257
  export interface ShadcnAlertDialogActionProps
@@ -272,7 +273,7 @@ export const ShadcnAlertDialogAction = React.forwardRef<HTMLButtonElement, Alert
272
273
  {...props}
273
274
  />
274
275
  );
275
- },
276
+ }
276
277
  );
277
278
  AlertDialogAction.displayName = 'AlertDialogAction';
278
279
 
@@ -295,7 +296,7 @@ export const ShadcnAlertDialogCancel = React.forwardRef<HTMLButtonElement, Alert
295
296
  {...props}
296
297
  />
297
298
  );
298
- },
299
+ }
299
300
  );
300
301
  AlertDialogCancel.displayName = 'AlertDialogCancel';
301
302
 
@@ -311,7 +312,7 @@ export {
311
312
  AlertDialogCancel as Cancel,
312
313
  AlertDialogMedia as Media,
313
314
  AlertDialogOverlay as Overlay,
314
- AlertDialogPortal as Portal,
315
+ AlertDialogPortal as Portal
315
316
  };
316
317
 
317
318
  export default MinimalistAlertDialog;
@@ -15,7 +15,7 @@ export const ShadcnAspectRatio = React.forwardRef<HTMLDivElement, AspectRatioPro
15
15
  position: 'relative',
16
16
  width: '100%',
17
17
  aspectRatio: ratio,
18
- ...style,
18
+ ...style
19
19
  }}
20
20
  className={cn(className)}
21
21
  {...props}
@@ -23,7 +23,7 @@ export const ShadcnAspectRatio = React.forwardRef<HTMLDivElement, AspectRatioPro
23
23
  {children}
24
24
  </div>
25
25
  );
26
- },
26
+ }
27
27
  );
28
28
  AspectRatio.displayName = 'AspectRatio';
29
29
 
@@ -14,12 +14,12 @@ export const ShadcnAvatar = React.forwardRef<HTMLDivElement, AvatarProps>(
14
14
  data-size={size}
15
15
  className={cn(
16
16
  'size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten',
17
- className,
17
+ className
18
18
  )}
19
19
  {...props}
20
20
  />
21
21
  );
22
- },
22
+ }
23
23
  );
24
24
  Avatar.displayName = 'Avatar';
25
25
 
@@ -41,7 +41,7 @@ export const ShadcnAvatarImage = React.forwardRef<HTMLImageElement, AvatarImageP
41
41
  className={cn(
42
42
  'rounded-full aspect-square size-full object-cover',
43
43
  !hasLoaded && 'hidden',
44
- className,
44
+ className
45
45
  )}
46
46
  onLoad={(e) => {
47
47
  setHasLoaded(true);
@@ -54,7 +54,7 @@ export const ShadcnAvatarImage = React.forwardRef<HTMLImageElement, AvatarImageP
54
54
  {...props}
55
55
  />
56
56
  );
57
- },
57
+ }
58
58
  );
59
59
  AvatarImage.displayName = 'AvatarImage';
60
60
 
@@ -68,12 +68,12 @@ export const ShadcnAvatarFallback = React.forwardRef<HTMLSpanElement, AvatarFall
68
68
  data-slot="avatar-fallback"
69
69
  className={cn(
70
70
  'rounded-full bg-muted text-muted-foreground flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs',
71
- className,
71
+ className
72
72
  )}
73
73
  {...props}
74
74
  />
75
75
  );
76
- },
76
+ }
77
77
  );
78
78
  AvatarFallback.displayName = 'AvatarFallback';
79
79
 
@@ -90,12 +90,12 @@ export const ShadcnAvatarBadge = React.forwardRef<HTMLSpanElement, AvatarBadgePr
90
90
  'group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden',
91
91
  'group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2',
92
92
  'group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2',
93
- className,
93
+ className
94
94
  )}
95
95
  {...props}
96
96
  />
97
97
  );
98
- },
98
+ }
99
99
  );
100
100
  AvatarBadge.displayName = 'AvatarBadge';
101
101
 
@@ -109,12 +109,12 @@ export const ShadcnAvatarGroup = React.forwardRef<HTMLDivElement, AvatarGroupPro
109
109
  data-slot="avatar-group"
110
110
  className={cn(
111
111
  'cn-avatar-group group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background',
112
- className,
112
+ className
113
113
  )}
114
114
  {...props}
115
115
  />
116
116
  );
117
- },
117
+ }
118
118
  );
119
119
  AvatarGroup.displayName = 'AvatarGroup';
120
120
 
@@ -128,12 +128,12 @@ export const AvatarGroupCount = React.forwardRef<HTMLDivElement, AvatarGroupCoun
128
128
  data-slot="avatar-group-count"
129
129
  className={cn(
130
130
  'size-8 rounded-full bg-muted text-sm text-muted-foreground group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 relative flex shrink-0 items-center justify-center ring-2 ring-background',
131
- className,
131
+ className
132
132
  )}
133
133
  {...props}
134
134
  />
135
135
  );
136
- },
136
+ }
137
137
  );
138
138
  AvatarGroupCount.displayName = 'AvatarGroupCount';
139
139
 
@@ -143,7 +143,7 @@ export {
143
143
  AvatarFallback as Fallback,
144
144
  AvatarBadge as Badge,
145
145
  AvatarGroup as Group,
146
- AvatarGroupCount as GroupCount,
146
+ AvatarGroupCount as GroupCount
147
147
  };
148
148
 
149
149
  export default MinimalistAvatar;
@@ -12,13 +12,13 @@ export const shadcnBadgeVariants = cva(
12
12
  'bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20',
13
13
  outline: 'border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',
14
14
  ghost: 'hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50',
15
- link: 'text-primary underline-offset-4 hover:underline',
16
- },
15
+ link: 'text-primary underline-offset-4 hover:underline'
16
+ }
17
17
  },
18
18
  defaultVariants: {
19
- variant: 'default',
20
- },
21
- },
19
+ variant: 'default'
20
+ }
21
+ }
22
22
  );
23
23
 
24
24
  export type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];
@@ -42,8 +42,8 @@ export const ShadcnBadge = React.forwardRef<HTMLElement, BadgeProps>(
42
42
  {...(props as any)}
43
43
  />
44
44
  );
45
- },
45
+ }
46
46
  );
47
47
  Badge.displayName = 'Badge';
48
48
 
49
- export default MinimalistBadge;
49
+ export default MinimalistBadge;
@@ -23,7 +23,7 @@ export function ShadcnBreadcrumbList({ className, ...props }: BreadcrumbListProp
23
23
  data-slot="breadcrumb-list"
24
24
  className={cn(
25
25
  'gap-1.5 text-sm text-muted-foreground flex flex-wrap items-center wrap-break-word',
26
- className,
26
+ className
27
27
  )}
28
28
  {...props}
29
29
  />
@@ -71,7 +71,11 @@ export function BreadcrumbPage({ className, ...props }: BreadcrumbPageProps) {
71
71
 
72
72
  export interface ShadcnBreadcrumbSeparatorProps extends React.ComponentProps<'li'> {}
73
73
 
74
- export function ShadcnBreadcrumbSeparator({ children, className, ...props }: BreadcrumbSeparatorProps) {
74
+ export function ShadcnBreadcrumbSeparator({
75
+ children,
76
+ className,
77
+ ...props
78
+ }: BreadcrumbSeparatorProps) {
75
79
  return (
76
80
  <li
77
81
  data-slot="breadcrumb-separator"
@@ -15,7 +15,7 @@ export const shadcnButtonVariants = cva(
15
15
  'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50',
16
16
  destructive:
17
17
  'bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40',
18
- link: 'text-primary underline-offset-4 hover:underline',
18
+ link: 'text-primary underline-offset-4 hover:underline'
19
19
  },
20
20
  size: {
21
21
  default:
@@ -28,14 +28,14 @@ export const shadcnButtonVariants = cva(
28
28
  "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
29
29
  'icon-sm':
30
30
  'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg',
31
- 'icon-lg': 'size-9',
32
- },
31
+ 'icon-lg': 'size-9'
32
+ }
33
33
  },
34
34
  defaultVariants: {
35
35
  variant: 'default',
36
- size: 'default',
37
- },
38
- },
36
+ size: 'default'
37
+ }
38
+ }
39
39
  );
40
40
 
41
41
  export interface ShadcnButtonProps
@@ -78,7 +78,7 @@ export const ShadcnButton = React.forwardRef<HTMLButtonElement | HTMLAnchorEleme
78
78
  {children}
79
79
  </button>
80
80
  );
81
- },
81
+ }
82
82
  );
83
83
 
84
84
  Button.displayName = 'Button';