@stagewise/ui 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +9 -3
  2. package/package.json +9 -15
  3. package/src/components/ui/accordion.tsx +13 -15
  4. package/src/components/ui/alert-dialog.tsx +38 -38
  5. package/src/components/ui/alert.tsx +22 -22
  6. package/src/components/ui/aspect-ratio.tsx +6 -6
  7. package/src/components/ui/avatar.tsx +30 -30
  8. package/src/components/ui/badge.tsx +24 -22
  9. package/src/components/ui/breadcrumb.tsx +34 -37
  10. package/src/components/ui/bubble.tsx +48 -48
  11. package/src/components/ui/button-group.tsx +24 -24
  12. package/src/components/ui/button.tsx +24 -24
  13. package/src/components/ui/calendar.tsx +94 -81
  14. package/src/components/ui/card.tsx +30 -30
  15. package/src/components/ui/carousel.tsx +95 -92
  16. package/src/components/ui/chart.tsx +110 -110
  17. package/src/components/ui/checkbox.tsx +9 -10
  18. package/src/components/ui/collapsible.tsx +5 -5
  19. package/src/components/ui/combobox.tsx +51 -44
  20. package/src/components/ui/command.tsx +173 -190
  21. package/src/components/ui/context-menu.tsx +60 -50
  22. package/src/components/ui/dialog.tsx +33 -34
  23. package/src/components/ui/direction.tsx +1 -1
  24. package/src/components/ui/drawer.tsx +61 -61
  25. package/src/components/ui/dropdown-menu.tsx +54 -50
  26. package/src/components/ui/empty.tsx +30 -30
  27. package/src/components/ui/field.tsx +64 -64
  28. package/src/components/ui/hover-card.tsx +12 -12
  29. package/src/components/ui/input-group.tsx +54 -54
  30. package/src/components/ui/input-otp.tsx +24 -25
  31. package/src/components/ui/input.tsx +8 -8
  32. package/src/components/ui/item.tsx +64 -64
  33. package/src/components/ui/kbd.tsx +8 -8
  34. package/src/components/ui/klex-logo-combo.tsx +69 -0
  35. package/src/components/ui/klex-logo-text.tsx +70 -0
  36. package/src/components/ui/klex-logo.tsx +146 -0
  37. package/src/components/ui/label.tsx +8 -8
  38. package/src/components/ui/marker.tsx +25 -25
  39. package/src/components/ui/menubar.tsx +54 -50
  40. package/src/components/ui/message-scroller.tsx +130 -0
  41. package/src/components/ui/message.tsx +27 -27
  42. package/src/components/ui/native-select.tsx +22 -18
  43. package/src/components/ui/navigation-menu.tsx +37 -34
  44. package/src/components/ui/pagination.tsx +34 -31
  45. package/src/components/ui/popover.tsx +19 -19
  46. package/src/components/ui/progress.tsx +16 -16
  47. package/src/components/ui/questionnaire.tsx +72 -69
  48. package/src/components/ui/radio-group.tsx +9 -9
  49. package/src/components/ui/resizable.tsx +19 -12
  50. package/src/components/ui/scroll-area.tsx +10 -10
  51. package/src/components/ui/select.tsx +39 -34
  52. package/src/components/ui/separator.tsx +7 -7
  53. package/src/components/ui/sheet.tsx +31 -32
  54. package/src/components/ui/sidebar.tsx +244 -232
  55. package/src/components/ui/skeleton.tsx +5 -5
  56. package/src/components/ui/slider.tsx +11 -7
  57. package/src/components/ui/spinner.tsx +15 -6
  58. package/src/components/ui/stagewise-logo-combo.tsx +43 -0
  59. package/src/components/ui/stagewise-logo-text.tsx +30 -0
  60. package/src/components/ui/stagewise-logo.tsx +42 -0
  61. package/src/components/ui/switch.tsx +9 -9
  62. package/src/components/ui/table.tsx +31 -31
  63. package/src/components/ui/tabs.tsx +37 -26
  64. package/src/components/ui/textarea.tsx +7 -7
  65. package/src/components/ui/toast.tsx +70 -70
  66. package/src/components/ui/toggle-group.tsx +26 -26
  67. package/src/components/ui/toggle.tsx +15 -15
  68. package/src/components/ui/tooltip.tsx +13 -13
  69. package/src/hooks/use-mobile.ts +13 -11
  70. package/src/icons/custom/ui-outline-18/IconKlexOutline18.tsx +39 -0
  71. package/src/icons/custom/ui-outline-18/IconLaptop.tsx +35 -0
  72. package/src/icons/custom/ui-outline-18/IconSignOut.tsx +33 -0
  73. package/src/icons/custom/ui-outline-18/index.ts +4 -1
  74. package/src/icons/index.ts +43 -20
  75. package/src/icons/nucleo/social-media/IconMicrosoftEntraId.tsx +56 -0
  76. package/src/icons/nucleo/social-media/index.ts +1 -0
  77. package/src/icons/nucleo/ui-outline-18/IconArrowDownOutline18.tsx +4 -3
  78. package/src/icons/nucleo/ui-outline-18/IconArrowTurnRightOutline18.tsx +32 -0
  79. package/src/icons/nucleo/ui-outline-18/IconArrowUpOutline18.tsx +35 -0
  80. package/src/icons/nucleo/ui-outline-18/IconChartPieOutline18.tsx +4 -3
  81. package/src/icons/nucleo/ui-outline-18/IconChevronMaximizeDiagonal2Outline18.tsx +33 -0
  82. package/src/icons/nucleo/ui-outline-18/IconChevronUpOutline18.tsx +4 -3
  83. package/src/icons/nucleo/ui-outline-18/IconEmptyOutline18.tsx +41 -0
  84. package/src/icons/nucleo/ui-outline-18/IconEyeOffOutline18.tsx +18 -0
  85. package/src/icons/nucleo/ui-outline-18/IconLinkBrokenOutline18.tsx +66 -0
  86. package/src/icons/nucleo/ui-outline-18/IconLock18Outline.tsx +48 -0
  87. package/src/icons/nucleo/ui-outline-18/IconMinusOutline18.tsx +4 -3
  88. package/src/icons/nucleo/ui-outline-18/IconMsgs2Outline18.tsx +32 -0
  89. package/src/icons/nucleo/ui-outline-18/IconPanelLeftOutline18.tsx +4 -3
  90. package/src/icons/nucleo/ui-outline-18/IconSidebarLeft2HideOutline18.tsx +63 -0
  91. package/src/icons/nucleo/ui-outline-18/IconSidebarRight2HideOutline18.tsx +63 -0
  92. package/src/icons/nucleo/ui-outline-18/index.ts +11 -1
  93. package/src/icons/provider/IconAnthropic.tsx +15 -0
  94. package/src/icons/provider/IconAttio.tsx +9 -0
  95. package/src/icons/provider/IconCodex.tsx +18 -0
  96. package/src/icons/provider/IconDiscord.tsx +17 -0
  97. package/src/icons/provider/IconGemini.tsx +152 -0
  98. package/src/icons/provider/IconLinear.tsx +9 -0
  99. package/src/icons/provider/IconOpenAI.tsx +15 -0
  100. package/src/icons/provider/IconOpenRouter.tsx +24 -0
  101. package/src/icons/provider/IconSlack.tsx +24 -0
  102. package/src/icons/provider/IconTelegram.tsx +29 -0
  103. package/src/icons/provider/IconWhatsapp.tsx +14 -0
  104. package/src/icons/provider/LICENSE +21 -0
  105. package/src/icons/provider/index.ts +11 -0
  106. package/src/index.ts +68 -61
  107. package/src/lib/utils.ts +3 -3
  108. package/src/styles/bridge.css +7 -3
  109. package/src/styles/derived-utilities.css +129 -50
  110. package/src/styles/index.css +17 -2
  111. package/src/styles/palette.css +266 -105
  112. package/src/styles/scroll-fade.css +116 -0
  113. package/src/styles/tailwind-tokens.css +3 -0
  114. package/src/styles/theme.css +57 -43
@@ -1,136 +1,140 @@
1
- "use client"
1
+ 'use client';
2
2
 
3
- import * as React from "react"
3
+ import * as React from 'react';
4
4
  import {
5
5
  DayPicker,
6
6
  getDefaultClassNames,
7
7
  type DayButton,
8
8
  type Locale,
9
- } from "react-day-picker"
9
+ } from 'react-day-picker';
10
10
 
11
- import { cn } from "../../lib/utils"
12
- import { Button, buttonVariants } from "./button"
13
- import { IconChevronLeftOutline18, IconChevronRightOutline18, IconChevronDownOutline18 } from "../../icons"
11
+ import { cn } from '../../lib/utils';
12
+ import { Button, buttonVariants } from './button';
13
+ import {
14
+ IconChevronLeftOutline18,
15
+ IconChevronRightOutline18,
16
+ IconChevronDownOutline18,
17
+ } from '../../icons';
14
18
 
15
19
  function Calendar({
16
20
  className,
17
21
  classNames,
18
22
  showOutsideDays = true,
19
- captionLayout = "label",
20
- buttonVariant = "ghost",
23
+ captionLayout = 'label',
24
+ buttonVariant = 'ghost',
21
25
  locale,
22
26
  formatters,
23
27
  components,
24
28
  ...props
25
29
  }: React.ComponentProps<typeof DayPicker> & {
26
- buttonVariant?: React.ComponentProps<typeof Button>["variant"]
30
+ buttonVariant?: React.ComponentProps<typeof Button>['variant'];
27
31
  }) {
28
- const defaultClassNames = getDefaultClassNames()
32
+ const defaultClassNames = getDefaultClassNames();
29
33
 
30
34
  return (
31
35
  <DayPicker
32
36
  showOutsideDays={showOutsideDays}
33
37
  className={cn(
34
- "group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent",
38
+ 'group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent',
35
39
  String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
36
40
  String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
37
- className
41
+ className,
38
42
  )}
39
43
  captionLayout={captionLayout}
40
44
  locale={locale}
41
45
  formatters={{
42
46
  formatMonthDropdown: (date) =>
43
- date.toLocaleString(locale?.code, { month: "short" }),
47
+ date.toLocaleString(locale?.code, { month: 'short' }),
44
48
  ...formatters,
45
49
  }}
46
50
  classNames={{
47
- root: cn("w-fit", defaultClassNames.root),
51
+ root: cn('w-fit', defaultClassNames.root),
48
52
  months: cn(
49
- "relative flex flex-col gap-4 md:flex-row",
50
- defaultClassNames.months
53
+ 'relative flex flex-col gap-4 md:flex-row',
54
+ defaultClassNames.months,
51
55
  ),
52
- month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
56
+ month: cn('flex w-full flex-col gap-4', defaultClassNames.month),
53
57
  nav: cn(
54
- "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
55
- defaultClassNames.nav
58
+ 'absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1',
59
+ defaultClassNames.nav,
56
60
  ),
57
61
  button_previous: cn(
58
62
  buttonVariants({ variant: buttonVariant }),
59
- "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
60
- defaultClassNames.button_previous
63
+ 'size-(--cell-size) p-0 select-none aria-disabled:opacity-50',
64
+ defaultClassNames.button_previous,
61
65
  ),
62
66
  button_next: cn(
63
67
  buttonVariants({ variant: buttonVariant }),
64
- "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
65
- defaultClassNames.button_next
68
+ 'size-(--cell-size) p-0 select-none aria-disabled:opacity-50',
69
+ defaultClassNames.button_next,
66
70
  ),
67
71
  month_caption: cn(
68
- "flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",
69
- defaultClassNames.month_caption
72
+ 'flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)',
73
+ defaultClassNames.month_caption,
70
74
  ),
71
75
  dropdowns: cn(
72
- "flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",
73
- defaultClassNames.dropdowns
76
+ 'flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium',
77
+ defaultClassNames.dropdowns,
74
78
  ),
75
79
  dropdown_root: cn(
76
- "relative rounded-(--cell-radius)",
77
- defaultClassNames.dropdown_root
80
+ 'relative rounded-(--cell-radius)',
81
+ defaultClassNames.dropdown_root,
78
82
  ),
79
83
  dropdown: cn(
80
- "absolute inset-0 bg-popover opacity-0",
81
- defaultClassNames.dropdown
84
+ 'absolute inset-0 bg-popover opacity-0',
85
+ defaultClassNames.dropdown,
82
86
  ),
83
87
  caption_label: cn(
84
- "font-medium select-none",
85
- captionLayout === "label"
86
- ? "text-sm"
87
- : "flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",
88
- defaultClassNames.caption_label
89
- ),
90
- month_grid: cn("w-full border-collapse", defaultClassNames.month_grid),
91
- weekdays: cn("flex", defaultClassNames.weekdays),
88
+ 'font-medium select-none',
89
+ captionLayout === 'label'
90
+ ? 'text-sm'
91
+ : 'flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground',
92
+ defaultClassNames.caption_label,
93
+ ),
94
+ month_grid: cn('w-full border-collapse', defaultClassNames.month_grid),
95
+ weekdays: cn('flex', defaultClassNames.weekdays),
92
96
  weekday: cn(
93
- "flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none",
94
- defaultClassNames.weekday
97
+ 'flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none',
98
+ defaultClassNames.weekday,
95
99
  ),
96
- week: cn("mt-2 flex w-full", defaultClassNames.week),
100
+ week: cn('mt-2 flex w-full', defaultClassNames.week),
97
101
  week_number_header: cn(
98
- "w-(--cell-size) select-none",
99
- defaultClassNames.week_number_header
102
+ 'w-(--cell-size) select-none',
103
+ defaultClassNames.week_number_header,
100
104
  ),
101
105
  week_number: cn(
102
- "text-[0.8rem] text-muted-foreground select-none",
103
- defaultClassNames.week_number
106
+ 'text-[0.8rem] text-muted-foreground select-none',
107
+ defaultClassNames.week_number,
104
108
  ),
105
109
  day: cn(
106
- "group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)",
110
+ 'group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)',
107
111
  props.showWeekNumber
108
- ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)"
109
- : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
110
- defaultClassNames.day
112
+ ? '[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)'
113
+ : '[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)',
114
+ defaultClassNames.day,
111
115
  ),
112
116
  range_start: cn(
113
- "relative isolate z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted",
114
- defaultClassNames.range_start
117
+ 'relative isolate z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted',
118
+ defaultClassNames.range_start,
115
119
  ),
116
- range_middle: cn("rounded-none", defaultClassNames.range_middle),
120
+ range_middle: cn('rounded-none', defaultClassNames.range_middle),
117
121
  range_end: cn(
118
- "relative isolate z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted",
119
- defaultClassNames.range_end
122
+ 'relative isolate z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted',
123
+ defaultClassNames.range_end,
120
124
  ),
121
125
  today: cn(
122
- "rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none",
123
- defaultClassNames.today
126
+ 'rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none',
127
+ defaultClassNames.today,
124
128
  ),
125
129
  outside: cn(
126
- "text-muted-foreground aria-selected:text-muted-foreground",
127
- defaultClassNames.outside
130
+ 'text-muted-foreground aria-selected:text-muted-foreground',
131
+ defaultClassNames.outside,
128
132
  ),
129
133
  disabled: cn(
130
- "text-muted-foreground opacity-50",
131
- defaultClassNames.disabled
134
+ 'text-muted-foreground opacity-50',
135
+ defaultClassNames.disabled,
132
136
  ),
133
- hidden: cn("invisible", defaultClassNames.hidden),
137
+ hidden: cn('invisible', defaultClassNames.hidden),
134
138
  ...classNames,
135
139
  }}
136
140
  components={{
@@ -142,24 +146,33 @@ function Calendar({
142
146
  className={cn(className)}
143
147
  {...props}
144
148
  />
145
- )
149
+ );
146
150
  },
147
151
  Chevron: ({ className, orientation, ...props }) => {
148
- if (orientation === "left") {
152
+ if (orientation === 'left') {
149
153
  return (
150
- <IconChevronLeftOutline18 className={cn("size-4", className)} {...props} />
151
- )
154
+ <IconChevronLeftOutline18
155
+ className={cn('size-4', className)}
156
+ {...props}
157
+ />
158
+ );
152
159
  }
153
160
 
154
- if (orientation === "right") {
161
+ if (orientation === 'right') {
155
162
  return (
156
- <IconChevronRightOutline18 className={cn("size-4", className)} {...props} />
157
- )
163
+ <IconChevronRightOutline18
164
+ className={cn('size-4', className)}
165
+ {...props}
166
+ />
167
+ );
158
168
  }
159
169
 
160
170
  return (
161
- <IconChevronDownOutline18 className={cn("size-4", className)} {...props} />
162
- )
171
+ <IconChevronDownOutline18
172
+ className={cn('size-4', className)}
173
+ {...props}
174
+ />
175
+ );
163
176
  },
164
177
  DayButton: ({ ...props }) => (
165
178
  <CalendarDayButton locale={locale} {...props} />
@@ -171,13 +184,13 @@ function Calendar({
171
184
  {children}
172
185
  </div>
173
186
  </td>
174
- )
187
+ );
175
188
  },
176
189
  ...components,
177
190
  }}
178
191
  {...props}
179
192
  />
180
- )
193
+ );
181
194
  }
182
195
 
183
196
  function CalendarDayButton({
@@ -187,12 +200,12 @@ function CalendarDayButton({
187
200
  locale,
188
201
  ...props
189
202
  }: React.ComponentProps<typeof DayButton> & { locale?: Partial<Locale> }) {
190
- const defaultClassNames = getDefaultClassNames()
203
+ const defaultClassNames = getDefaultClassNames();
191
204
 
192
- const ref = React.useRef<HTMLButtonElement>(null)
205
+ const ref = React.useRef<HTMLButtonElement>(null);
193
206
  React.useEffect(() => {
194
- if (modifiers.focused) ref.current?.focus()
195
- }, [modifiers.focused])
207
+ if (modifiers.focused) ref.current?.focus();
208
+ }, [modifiers.focused]);
196
209
 
197
210
  return (
198
211
  <Button
@@ -209,13 +222,13 @@ function CalendarDayButton({
209
222
  data-range-end={modifiers.range_end}
210
223
  data-range-middle={modifiers.range_middle}
211
224
  className={cn(
212
- "relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70",
225
+ 'relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70',
213
226
  defaultClassNames.day,
214
- className
227
+ className,
215
228
  )}
216
229
  {...props}
217
230
  />
218
- )
231
+ );
219
232
  }
220
233
 
221
- export { Calendar, CalendarDayButton }
234
+ export { Calendar, CalendarDayButton };
@@ -1,95 +1,95 @@
1
- import * as React from "react"
1
+ import * as React from 'react';
2
2
 
3
- import { cn } from "../../lib/utils"
3
+ import { cn } from '../../lib/utils';
4
4
 
5
5
  function Card({
6
6
  className,
7
- size = "default",
7
+ size = 'default',
8
8
  ...props
9
- }: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
9
+ }: React.ComponentProps<'div'> & { size?: 'default' | 'sm' }) {
10
10
  return (
11
11
  <div
12
12
  data-slot="card"
13
13
  data-size={size}
14
14
  className={cn(
15
- "group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
16
- className
15
+ 'group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl',
16
+ className,
17
17
  )}
18
18
  {...props}
19
19
  />
20
- )
20
+ );
21
21
  }
22
22
 
23
- function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
23
+ function CardHeader({ className, ...props }: React.ComponentProps<'div'>) {
24
24
  return (
25
25
  <div
26
26
  data-slot="card-header"
27
27
  className={cn(
28
- "group/card-header @container/card-header grid auto-rows-min items-start gap-0.5 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",
29
- className
28
+ 'group/card-header @container/card-header grid auto-rows-min items-start gap-0.5 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)',
29
+ className,
30
30
  )}
31
31
  {...props}
32
32
  />
33
- )
33
+ );
34
34
  }
35
35
 
36
- function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
36
+ function CardTitle({ className, ...props }: React.ComponentProps<'div'>) {
37
37
  return (
38
38
  <div
39
39
  data-slot="card-title"
40
40
  className={cn(
41
- "font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",
42
- className
41
+ 'font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm',
42
+ className,
43
43
  )}
44
44
  {...props}
45
45
  />
46
- )
46
+ );
47
47
  }
48
48
 
49
- function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
49
+ function CardDescription({ className, ...props }: React.ComponentProps<'div'>) {
50
50
  return (
51
51
  <div
52
52
  data-slot="card-description"
53
- className={cn("text-sm text-muted-foreground", className)}
53
+ className={cn('text-sm text-muted-foreground', className)}
54
54
  {...props}
55
55
  />
56
- )
56
+ );
57
57
  }
58
58
 
59
- function CardAction({ className, ...props }: React.ComponentProps<"div">) {
59
+ function CardAction({ className, ...props }: React.ComponentProps<'div'>) {
60
60
  return (
61
61
  <div
62
62
  data-slot="card-action"
63
63
  className={cn(
64
- "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
65
- className
64
+ 'col-start-2 row-span-2 row-start-1 self-start justify-self-end',
65
+ className,
66
66
  )}
67
67
  {...props}
68
68
  />
69
- )
69
+ );
70
70
  }
71
71
 
72
- function CardContent({ className, ...props }: React.ComponentProps<"div">) {
72
+ function CardContent({ className, ...props }: React.ComponentProps<'div'>) {
73
73
  return (
74
74
  <div
75
75
  data-slot="card-content"
76
- className={cn("px-(--card-spacing)", className)}
76
+ className={cn('px-(--card-spacing)', className)}
77
77
  {...props}
78
78
  />
79
- )
79
+ );
80
80
  }
81
81
 
82
- function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
82
+ function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {
83
83
  return (
84
84
  <div
85
85
  data-slot="card-footer"
86
86
  className={cn(
87
- "flex flex-row-reverse items-center gap-2 rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",
88
- className
87
+ 'flex flex-row-reverse items-center gap-2 rounded-b-xl border-t bg-muted/50 p-(--card-spacing)',
88
+ className,
89
89
  )}
90
90
  {...props}
91
91
  />
92
- )
92
+ );
93
93
  }
94
94
 
95
95
  export {
@@ -100,4 +100,4 @@ export {
100
100
  CardAction,
101
101
  CardDescription,
102
102
  CardContent,
103
- }
103
+ };