@surreal-ui/react 0.5.2 → 0.5.3

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 +6 -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
@@ -11,13 +11,13 @@ export const inputGroupAddonVariants = cva(
11
11
  'block-start':
12
12
  'px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start',
13
13
  'block-end':
14
- 'px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start',
15
- },
14
+ 'px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start'
15
+ }
16
16
  },
17
17
  defaultVariants: {
18
- align: 'inline-start',
19
- },
20
- },
18
+ align: 'inline-start'
19
+ }
20
+ }
21
21
  );
22
22
 
23
23
  export const inputGroupButtonVariants = cva(
@@ -28,13 +28,13 @@ export const inputGroupButtonVariants = cva(
28
28
  xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
29
29
  sm: 'h-7 gap-1.5 rounded-md px-2 text-xs',
30
30
  'icon-xs': 'size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0',
31
- 'icon-sm': 'size-8 p-0 has-[>svg]:p-0',
32
- },
31
+ 'icon-sm': 'size-8 p-0 has-[>svg]:p-0'
32
+ }
33
33
  },
34
34
  defaultVariants: {
35
- size: 'xs',
36
- },
37
- },
35
+ size: 'xs'
36
+ }
37
+ }
38
38
  );
39
39
 
40
40
  export interface ShadcnInputGroupProps extends React.ComponentProps<'div'> {}
@@ -48,14 +48,14 @@ export const ShadcnInputGroup = React.forwardRef<HTMLDivElement, InputGroupProps
48
48
  role="group"
49
49
  className={cn(
50
50
  'group/input-group h-8 rounded-lg border border-input transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto',
51
- className,
51
+ className
52
52
  )}
53
53
  {...props}
54
54
  >
55
55
  {children}
56
56
  </div>
57
57
  );
58
- },
58
+ }
59
59
  );
60
60
  InputGroup.displayName = 'InputGroup';
61
61
 
@@ -86,7 +86,7 @@ export const InputGroupAddon = React.forwardRef<HTMLDivElement, InputGroupAddonP
86
86
  {children}
87
87
  </div>
88
88
  );
89
- },
89
+ }
90
90
  );
91
91
  InputGroupAddon.displayName = 'InputGroupAddon';
92
92
 
@@ -106,7 +106,7 @@ export const ShadcnInputGroupButton = React.forwardRef<HTMLButtonElement, InputG
106
106
  {children}
107
107
  </button>
108
108
  );
109
- },
109
+ }
110
110
  );
111
111
  InputGroupButton.displayName = 'InputGroupButton';
112
112
 
@@ -120,12 +120,12 @@ export const ShadcnInputGroupInput = React.forwardRef<HTMLInputElement, InputGro
120
120
  data-slot="input-group-control"
121
121
  className={cn(
122
122
  'flex-1 rounded-none border-0 bg-transparent px-2.5 py-1 text-sm shadow-none ring-0 outline-none placeholder:text-muted-foreground focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent',
123
- className,
123
+ className
124
124
  )}
125
125
  {...props}
126
126
  />
127
127
  );
128
- },
128
+ }
129
129
  );
130
130
  InputGroupInput.displayName = 'InputGroupInput';
131
131
 
@@ -138,14 +138,14 @@ export const ShadcnInputGroupText = React.forwardRef<HTMLSpanElement, InputGroup
138
138
  ref={ref}
139
139
  className={cn(
140
140
  "gap-2 text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
141
- className,
141
+ className
142
142
  )}
143
143
  {...props}
144
144
  >
145
145
  {children}
146
146
  </span>
147
147
  );
148
- },
148
+ }
149
149
  );
150
150
  InputGroupText.displayName = 'InputGroupText';
151
151
 
@@ -159,12 +159,12 @@ export const InputGroupTextarea = React.forwardRef<HTMLTextAreaElement, InputGro
159
159
  data-slot="input-group-control"
160
160
  className={cn(
161
161
  'flex-1 resize-none rounded-none border-0 bg-transparent px-2.5 py-2 text-sm shadow-none ring-0 outline-none placeholder:text-muted-foreground focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent',
162
- className,
162
+ className
163
163
  )}
164
164
  {...props}
165
165
  />
166
166
  );
167
- },
167
+ }
168
168
  );
169
169
  InputGroupTextarea.displayName = 'InputGroupTextarea';
170
170
 
@@ -174,7 +174,7 @@ export {
174
174
  InputGroupButton as Button,
175
175
  InputGroupInput as Input,
176
176
  InputGroupText as Text,
177
- InputGroupTextarea as Textarea,
177
+ InputGroupTextarea as Textarea
178
178
  };
179
179
 
180
180
  export default ShadcnInputGroup;
@@ -37,7 +37,7 @@ export const InputOTP = React.forwardRef<HTMLDivElement, InputOTPRootProps>(
37
37
  children,
38
38
  ...props
39
39
  },
40
- ref,
40
+ ref
41
41
  ) => {
42
42
  const [internalValue, setInternalValue] = React.useState(defaultValue);
43
43
  const [isFocused, setIsFocused] = React.useState(false);
@@ -77,9 +77,9 @@ export const InputOTP = React.forwardRef<HTMLDivElement, InputOTPRootProps>(
77
77
  disabled,
78
78
  activeIndex,
79
79
  isFocused,
80
- onSlotClick: handleSlotClick,
80
+ onSlotClick: handleSlotClick
81
81
  }),
82
- [currentValue, maxLength, disabled, activeIndex, isFocused],
82
+ [currentValue, maxLength, disabled, activeIndex, isFocused]
83
83
  );
84
84
 
85
85
  return (
@@ -89,7 +89,7 @@ export const InputOTP = React.forwardRef<HTMLDivElement, InputOTPRootProps>(
89
89
  data-slot="input-otp"
90
90
  className={cn(
91
91
  'relative flex items-center gap-2 has-disabled:opacity-50 select-none',
92
- className,
92
+ className
93
93
  )}
94
94
  {...props}
95
95
  >
@@ -110,7 +110,7 @@ export const InputOTP = React.forwardRef<HTMLDivElement, InputOTPRootProps>(
110
110
  </div>
111
111
  </InputOTPContext.Provider>
112
112
  );
113
- },
113
+ }
114
114
  );
115
115
  InputOTP.displayName = 'InputOTP';
116
116
 
@@ -124,7 +124,7 @@ export const InputOTPGroup = React.forwardRef<HTMLDivElement, InputOTPGroupProps
124
124
  className={cn('flex items-center', className)}
125
125
  {...props}
126
126
  />
127
- ),
127
+ )
128
128
  );
129
129
  InputOTPGroup.displayName = 'InputOTPGroup';
130
130
 
@@ -147,7 +147,7 @@ export const InputOTPSlot = React.forwardRef<HTMLDivElement, InputOTPSlotProps>(
147
147
  className={cn(
148
148
  'relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-xs transition-all first:rounded-l-md border-l-0 first:border-l last:rounded-r-md',
149
149
  isActive && 'z-10 ring-1 ring-ring border-ring',
150
- className,
150
+ className
151
151
  )}
152
152
  onClick={() => ctx?.onSlotClick(index)}
153
153
  {...props}
@@ -160,7 +160,7 @@ export const InputOTPSlot = React.forwardRef<HTMLDivElement, InputOTPSlotProps>(
160
160
  )}
161
161
  </div>
162
162
  );
163
- },
163
+ }
164
164
  );
165
165
  InputOTPSlot.displayName = 'InputOTPSlot';
166
166
 
@@ -177,7 +177,7 @@ export const InputOTPSeparator = React.forwardRef<HTMLDivElement, InputOTPSepara
177
177
  >
178
178
  {children ?? <Minus className="size-4" />}
179
179
  </div>
180
- ),
180
+ )
181
181
  );
182
182
  InputOTPSeparator.displayName = 'InputOTPSeparator';
183
183
 
@@ -8,19 +8,19 @@ export const shadcnItemVariants = cva(
8
8
  variant: {
9
9
  default: 'border-transparent',
10
10
  outline: 'border-border',
11
- muted: 'border-transparent bg-muted/50',
11
+ muted: 'border-transparent bg-muted/50'
12
12
  },
13
13
  size: {
14
14
  default: 'gap-2.5 px-3 py-2.5',
15
15
  sm: 'gap-2.5 px-3 py-2.5',
16
- xs: 'gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0',
17
- },
16
+ xs: 'gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0'
17
+ }
18
18
  },
19
19
  defaultVariants: {
20
20
  variant: 'default',
21
- size: 'default',
22
- },
23
- },
21
+ size: 'default'
22
+ }
23
+ }
24
24
  );
25
25
 
26
26
  export const itemMediaVariants = cva(
@@ -31,20 +31,21 @@ export const itemMediaVariants = cva(
31
31
  default: 'bg-transparent',
32
32
  icon: "[&_svg:not([class*='size-'])]:size-4",
33
33
  image:
34
- 'size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover',
35
- },
34
+ 'size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover'
35
+ }
36
36
  },
37
37
  defaultVariants: {
38
- variant: 'default',
39
- },
40
- },
38
+ variant: 'default'
39
+ }
40
+ }
41
41
  );
42
42
 
43
43
  export type ItemSize = VariantProps<typeof itemVariants>['size'];
44
44
  export type ItemVariant = VariantProps<typeof itemVariants>['variant'];
45
45
  export type ItemMediaVariant = VariantProps<typeof itemMediaVariants>['variant'];
46
46
 
47
- export interface ShadcnItemProps extends React.ComponentProps<'div'>, VariantProps<typeof itemVariants> {
47
+ export interface ShadcnItemProps
48
+ extends React.ComponentProps<'div'>, VariantProps<typeof itemVariants> {
48
49
  asChild?: boolean;
49
50
  }
50
51
 
@@ -67,7 +68,7 @@ export function ShadcnItemGroup({ className, ...props }: React.ComponentProps<'d
67
68
  data-slot="item-group"
68
69
  className={cn(
69
70
  'gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2 group/item-group flex w-full flex-col',
70
- className,
71
+ className
71
72
  )}
72
73
  {...props}
73
74
  />
@@ -100,7 +101,7 @@ export function ShadcnItemContent({ className, ...props }: React.ComponentProps<
100
101
  data-slot="item-content"
101
102
  className={cn(
102
103
  'gap-1 group-data-[size=xs]/item:gap-0 flex flex-1 flex-col [&+[data-slot=item-content]]:flex-none',
103
- className,
104
+ className
104
105
  )}
105
106
  {...props}
106
107
  />
@@ -113,7 +114,7 @@ export function ShadcnItemTitle({ className, ...props }: React.ComponentProps<'d
113
114
  data-slot="item-title"
114
115
  className={cn(
115
116
  'gap-2 text-sm leading-snug font-medium underline-offset-4 line-clamp-1 flex w-fit items-center',
116
- className,
117
+ className
117
118
  )}
118
119
  {...props}
119
120
  />
@@ -126,7 +127,7 @@ export function ShadcnItemDescription({ className, ...props }: React.ComponentPr
126
127
  data-slot="item-description"
127
128
  className={cn(
128
129
  'text-left text-sm leading-normal text-muted-foreground group-data-[size=xs]/item:text-xs line-clamp-2 font-normal [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',
129
- className,
130
+ className
130
131
  )}
131
132
  {...props}
132
133
  />
@@ -175,7 +176,7 @@ export {
175
176
  ItemDescription as Description,
176
177
  ItemActions as Actions,
177
178
  ItemMedia as Media,
178
- ItemSeparator as Separator,
179
+ ItemSeparator as Separator
179
180
  };
180
181
 
181
182
  export default ShadcnItem;
@@ -11,14 +11,14 @@ export const ShadcnKbd = React.forwardRef<HTMLElement, KbdProps>(
11
11
  data-slot="kbd"
12
12
  className={cn(
13
13
  "h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none",
14
- className,
14
+ className
15
15
  )}
16
16
  {...props}
17
17
  >
18
18
  {children}
19
19
  </kbd>
20
20
  );
21
- },
21
+ }
22
22
  );
23
23
  Kbd.displayName = 'Kbd';
24
24
 
@@ -36,7 +36,7 @@ export const ShadcnKbdGroup = React.forwardRef<HTMLElement, KbdGroupProps>(
36
36
  {children}
37
37
  </kbd>
38
38
  );
39
- },
39
+ }
40
40
  );
41
41
  KbdGroup.displayName = 'KbdGroup';
42
42
 
@@ -9,11 +9,11 @@ export function ShadcnLabel({ className, ...props }: LabelProps) {
9
9
  data-slot="label"
10
10
  className={cn(
11
11
  'gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed',
12
- className,
12
+ className
13
13
  )}
14
14
  {...props}
15
15
  />
16
16
  );
17
17
  }
18
18
 
19
- export default ShadcnLabel;
19
+ export default ShadcnLabel;
@@ -10,7 +10,7 @@ interface MenubarContextValue {
10
10
 
11
11
  const MenubarContext = React.createContext<MenubarContextValue>({
12
12
  openMenuId: null,
13
- setOpenMenuId: () => {},
13
+ setOpenMenuId: () => {}
14
14
  });
15
15
 
16
16
  interface MenuContextValue {
@@ -22,7 +22,7 @@ interface MenuContextValue {
22
22
  const MenuContext = React.createContext<MenuContextValue>({
23
23
  menuId: '',
24
24
  isOpen: false,
25
- setIsOpen: () => {},
25
+ setIsOpen: () => {}
26
26
  });
27
27
 
28
28
  export interface ShadcnMenubarProps extends React.HTMLAttributes<HTMLDivElement> {}
@@ -49,7 +49,7 @@ export function ShadcnMenubar({ className, children, ...props }: MenubarProps) {
49
49
  data-slot="menubar"
50
50
  className={cn(
51
51
  'h-8 gap-0.5 rounded-lg border border-border bg-background p-[3px] flex items-center shadow-xs text-foreground',
52
- className,
52
+ className
53
53
  )}
54
54
  {...props}
55
55
  >
@@ -72,7 +72,7 @@ export function MenubarMenu({ children }: MenubarMenuProps) {
72
72
  (open: boolean) => {
73
73
  setOpenMenuId(open ? menuId : null);
74
74
  },
75
- [menuId, setOpenMenuId],
75
+ [menuId, setOpenMenuId]
76
76
  );
77
77
 
78
78
  return (
@@ -114,7 +114,7 @@ export function ShadcnMenubarTrigger({
114
114
  }}
115
115
  className={cn(
116
116
  'rounded-sm px-1.5 py-[2px] text-sm font-medium hover:bg-muted aria-expanded:bg-muted flex items-center outline-hidden select-none cursor-pointer transition-colors focus-visible:ring-1 focus-visible:ring-ring',
117
- className,
117
+ className
118
118
  )}
119
119
  {...props}
120
120
  >
@@ -148,7 +148,7 @@ export function ShadcnMenubarContent({
148
148
  'z-50 min-w-36 overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 animate-in fade-in-0 zoom-in-95 absolute left-0 top-full mt-1.5',
149
149
  align === 'end' && 'right-0 left-auto',
150
150
  align === 'center' && 'left-1/2 -translate-x-1/2',
151
- className,
151
+ className
152
152
  )}
153
153
  {...props}
154
154
  >
@@ -190,7 +190,7 @@ export function ShadcnMenubarItem({
190
190
  className={cn(
191
191
  "gap-1.5 rounded-md px-1.5 py-1 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive! group/menubar-item flex items-center cursor-pointer select-none outline-none transition-colors",
192
192
  disabled && 'pointer-events-none opacity-50',
193
- className,
193
+ className
194
194
  )}
195
195
  {...props}
196
196
  >
@@ -234,7 +234,7 @@ export function MenubarCheckboxItem({
234
234
  className={cn(
235
235
  'gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 relative flex cursor-pointer items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 transition-colors',
236
236
  disabled && 'pointer-events-none opacity-50',
237
- className,
237
+ className
238
238
  )}
239
239
  {...props}
240
240
  >
@@ -312,7 +312,7 @@ export function MenubarRadioItem({
312
312
  className={cn(
313
313
  "gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-pointer items-center outline-hidden select-none data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 transition-colors",
314
314
  disabled && 'pointer-events-none opacity-50',
315
- className,
315
+ className
316
316
  )}
317
317
  {...props}
318
318
  >
@@ -357,7 +357,7 @@ export function MenubarGroupHeading({
357
357
  data-inset={inset ? '' : undefined}
358
358
  className={cn(
359
359
  'px-2 py-1.5 text-sm font-medium data-[inset]:ps-8 text-muted-foreground',
360
- className,
360
+ className
361
361
  )}
362
362
  {...props}
363
363
  >
@@ -393,7 +393,7 @@ export function ShadcnMenubarShortcut({ className, children, ...props }: Menubar
393
393
  data-slot="menubar-shortcut"
394
394
  className={cn(
395
395
  'text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground ml-auto',
396
- className,
396
+ className
397
397
  )}
398
398
  {...props}
399
399
  >
@@ -409,7 +409,7 @@ interface SubContextValue {
409
409
 
410
410
  const SubContext = React.createContext<SubContextValue>({
411
411
  isSubOpen: false,
412
- setIsSubOpen: () => {},
412
+ setIsSubOpen: () => {}
413
413
  });
414
414
 
415
415
  export interface MenubarSubProps {
@@ -450,7 +450,7 @@ export function MenubarSubTrigger({
450
450
  onMouseLeave={() => setIsSubOpen(false)}
451
451
  className={cn(
452
452
  "gap-1.5 rounded-md px-1.5 py-1 text-sm focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 flex cursor-pointer items-center outline-none select-none transition-colors",
453
- className,
453
+ className
454
454
  )}
455
455
  {...props}
456
456
  >
@@ -471,7 +471,7 @@ export function MenubarSubContent({ className, children, ...props }: MenubarSubC
471
471
  data-slot="menubar-sub-content"
472
472
  className={cn(
473
473
  'min-w-32 rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 animate-in fade-in-0 zoom-in-95 absolute left-full top-0 ml-1 z-50',
474
- className,
474
+ className
475
475
  )}
476
476
  {...props}
477
477
  >
@@ -13,7 +13,7 @@ export const ShadcnNativeSelect = React.forwardRef<HTMLSelectElement, NativeSele
13
13
  <div
14
14
  className={cn(
15
15
  'cn-native-select-wrapper group/native-select relative w-fit has-[select:disabled]:opacity-50',
16
- className,
16
+ className
17
17
  )}
18
18
  data-slot="native-select-wrapper"
19
19
  data-size={size}
@@ -34,7 +34,7 @@ export const ShadcnNativeSelect = React.forwardRef<HTMLSelectElement, NativeSele
34
34
  />
35
35
  </div>
36
36
  );
37
- },
37
+ }
38
38
  );
39
39
  NativeSelect.displayName = 'NativeSelect';
40
40
 
@@ -66,7 +66,7 @@ export const NativeSelectOption = React.forwardRef<HTMLOptionElement, NativeSele
66
66
  {children}
67
67
  </option>
68
68
  );
69
- },
69
+ }
70
70
  );
71
71
  NativeSelectOption.displayName = 'NativeSelectOption';
72
72
 
@@ -3,7 +3,7 @@ import { ChevronDown } from 'lucide-react';
3
3
  import { cn, cva } from '@surreal-ui/core';
4
4
 
5
5
  export const navigationMenuTriggerStyle = cva(
6
- 'rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center outline-none disabled:pointer-events-none',
6
+ 'rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center outline-none disabled:pointer-events-none'
7
7
  );
8
8
 
9
9
  interface NavigationMenuContextValue {
@@ -13,7 +13,7 @@ interface NavigationMenuContextValue {
13
13
 
14
14
  const NavigationMenuContext = React.createContext<NavigationMenuContextValue>({
15
15
  openItem: null,
16
- setOpenItem: () => {},
16
+ setOpenItem: () => {}
17
17
  });
18
18
 
19
19
  export interface ShadcnNavigationMenuProps extends React.ComponentProps<'nav'> {
@@ -35,7 +35,7 @@ export function ShadcnNavigationMenu({
35
35
  data-viewport={viewport}
36
36
  className={cn(
37
37
  'max-w-max group/navigation-menu relative flex flex-1 items-center justify-center',
38
- className,
38
+ className
39
39
  )}
40
40
  {...props}
41
41
  >
@@ -59,7 +59,7 @@ export function ShadcnNavigationMenuList({ className, ...props }: NavigationMenu
59
59
 
60
60
  const ItemContext = React.createContext<{ id: string; isOpen: boolean }>({
61
61
  id: '',
62
- isOpen: false,
62
+ isOpen: false
63
63
  });
64
64
 
65
65
  export interface ShadcnNavigationMenuItemProps extends React.ComponentProps<'li'> {
@@ -136,7 +136,7 @@ export function ShadcnNavigationMenuContent({ className, ...props }: NavigationM
136
136
  data-state={isOpen ? 'open' : 'closed'}
137
137
  className={cn(
138
138
  'p-1 ease-[cubic-bezier(0.22,1,0.36,1)] rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-300 top-full mt-1.5 overflow-hidden md:absolute md:w-auto z-50 animate-in fade-in-0 zoom-in-95',
139
- className,
139
+ className
140
140
  )}
141
141
  {...props}
142
142
  />
@@ -154,7 +154,7 @@ export function ShadcnNavigationMenuLink({ className, active, ...props }: Naviga
154
154
  data-active={active ? '' : undefined}
155
155
  className={cn(
156
156
  "flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-[active]:bg-muted/50 data-[active]:hover:bg-muted data-[active]:focus:bg-muted [&_svg:not([class*='size-'])]:size-4",
157
- className,
157
+ className
158
158
  )}
159
159
  {...props}
160
160
  />
@@ -169,7 +169,7 @@ export function NavigationMenuIndicator({ className, ...props }: NavigationMenuI
169
169
  data-slot="navigation-menu-indicator"
170
170
  className={cn(
171
171
  'top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden',
172
- className,
172
+ className
173
173
  )}
174
174
  {...props}
175
175
  >
@@ -187,7 +187,7 @@ export function NavigationMenuViewport({ className, ...props }: NavigationMenuVi
187
187
  data-slot="navigation-menu-viewport"
188
188
  className={cn(
189
189
  'rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 origin-top-center relative mt-1.5 h-auto w-full overflow-hidden md:w-auto',
190
- className,
190
+ className
191
191
  )}
192
192
  {...props}
193
193
  />
@@ -14,20 +14,20 @@ export const buttonVariants = cva(
14
14
  'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground',
15
15
  secondary: 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80',
16
16
  ghost: 'hover:bg-accent hover:text-accent-foreground',
17
- link: 'text-primary underline-offset-4 hover:underline',
17
+ link: 'text-primary underline-offset-4 hover:underline'
18
18
  },
19
19
  size: {
20
20
  default: 'h-9 px-4 py-2',
21
21
  sm: 'h-8 rounded-md px-3 text-xs',
22
22
  lg: 'h-10 rounded-md px-8',
23
- icon: 'h-9 w-9',
24
- },
23
+ icon: 'h-9 w-9'
24
+ }
25
25
  },
26
26
  defaultVariants: {
27
27
  variant: 'default',
28
- size: 'default',
29
- },
30
- },
28
+ size: 'default'
29
+ }
30
+ }
31
31
  );
32
32
 
33
33
  export type ButtonSize = VariantProps<typeof buttonVariants>['size'];
@@ -78,7 +78,7 @@ export function ShadcnPaginationLink({
78
78
  className={cn(
79
79
  buttonVariants({ size, variant: isActive ? 'outline' : 'ghost' }),
80
80
  'cn-pagination-link',
81
- className,
81
+ className
82
82
  )}
83
83
  {...props}
84
84
  />
@@ -136,7 +136,7 @@ export function PaginationEllipsis({ className, ...props }: React.ComponentProps
136
136
  data-slot="pagination-ellipsis"
137
137
  className={cn(
138
138
  "size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4 flex items-center justify-center",
139
- className,
139
+ className
140
140
  )}
141
141
  {...props}
142
142
  >
@@ -149,4 +149,4 @@ export function PaginationEllipsis({ className, ...props }: React.ComponentProps
149
149
  export const PaginationPrevButton = PaginationPrevious;
150
150
  export const PaginationNextButton = PaginationNext;
151
151
 
152
- export default ShadcnPagination;
152
+ export default ShadcnPagination;