livemark 0.23.0 → 0.24.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 (234) hide show
  1. package/build/actions/changelog/build.js +4 -8
  2. package/build/actions/config/load.js +1 -1
  3. package/build/actions/config/load.unit.js +1 -1
  4. package/build/actions/target/build.js +2 -5
  5. package/build/commands/build.js +1 -1
  6. package/build/commands/escape.js +1 -1
  7. package/build/commands/preview.js +1 -1
  8. package/build/commands/start.js +1 -1
  9. package/build/components/Abbr.js +2 -2
  10. package/build/components/Article.js +2 -2
  11. package/build/components/BlogIndex.js +2 -4
  12. package/build/components/Callout.js +1 -1
  13. package/build/components/ChangelogIndex.js +1 -1
  14. package/build/components/CodeBlock.js +3 -5
  15. package/build/components/CodeTabs.js +1 -1
  16. package/build/components/Columns.js +2 -4
  17. package/build/components/Content.js +2 -2
  18. package/build/components/ContentTab.js +1 -1
  19. package/build/components/ContentTabs.js +1 -1
  20. package/build/components/DefinitionList.js +1 -1
  21. package/build/components/FileTree.js +1 -1
  22. package/build/components/FootnoteRef.js +2 -2
  23. package/build/components/InlineToc.js +1 -1
  24. package/build/components/Layout.js +1 -1
  25. package/build/components/LinkButton.js +1 -1
  26. package/build/components/Mermaid.js +1 -1
  27. package/build/components/PackageTabs.js +2 -2
  28. package/build/components/PageToolbar.js +2 -2
  29. package/build/components/PrevNext.js +3 -7
  30. package/build/components/SearchDialog.js +1 -1
  31. package/build/components/SectionHeader.js +1 -1
  32. package/build/components/Sidebar.js +2 -2
  33. package/build/components/SidebarArticles.js +2 -2
  34. package/build/components/SidebarLinks.js +2 -2
  35. package/build/components/TagIndex.js +2 -4
  36. package/build/components/Toc.js +1 -1
  37. package/build/content/article.js +1 -1
  38. package/build/content-collections.js +2 -4
  39. package/build/elements/alert-dialog.js +4 -4
  40. package/build/elements/alert.js +1 -1
  41. package/build/elements/avatar.d.ts +1 -1
  42. package/build/elements/avatar.js +2 -2
  43. package/build/elements/badge.js +1 -1
  44. package/build/elements/breadcrumb.js +1 -1
  45. package/build/elements/button-group.d.ts +1 -1
  46. package/build/elements/button-group.js +2 -2
  47. package/build/elements/calendar.js +4 -4
  48. package/build/elements/carousel.js +1 -1
  49. package/build/elements/chart.js +4 -14
  50. package/build/elements/collapsible.js +3 -3
  51. package/build/elements/command.js +1 -1
  52. package/build/elements/context-menu.js +4 -4
  53. package/build/elements/dialog.js +1 -1
  54. package/build/elements/direction.d.ts +1 -1
  55. package/build/elements/direction.js +2 -2
  56. package/build/elements/drawer.js +1 -1
  57. package/build/elements/dropdown-menu.js +2 -2
  58. package/build/elements/empty.d.ts +1 -1
  59. package/build/elements/empty.js +2 -2
  60. package/build/elements/field.js +1 -1
  61. package/build/elements/hover-card.js +2 -2
  62. package/build/elements/input-group.js +1 -1
  63. package/build/elements/item.js +1 -1
  64. package/build/elements/menubar.js +1 -1
  65. package/build/elements/native-select.js +1 -1
  66. package/build/elements/navigation-menu.js +1 -1
  67. package/build/elements/pagination.js +2 -2
  68. package/build/elements/popover.js +1 -1
  69. package/build/elements/progress.d.ts +1 -1
  70. package/build/elements/progress.js +2 -2
  71. package/build/elements/resizable.js +2 -2
  72. package/build/elements/scroll-area.js +1 -1
  73. package/build/elements/select.js +1 -1
  74. package/build/elements/sheet.js +1 -1
  75. package/build/elements/sidebar.js +2 -3
  76. package/build/elements/table.js +1 -1
  77. package/build/elements/toggle-group.js +1 -1
  78. package/build/elements/tooltip.js +1 -1
  79. package/build/helpers/changelog-source.js +1 -1
  80. package/build/helpers/dynamic-icon-resolver.js +1 -1
  81. package/build/helpers/resolve-asset-path.unit.js +1 -1
  82. package/build/helpers/resolve-base.unit.js +2 -2
  83. package/build/helpers/resolve-includes.js +2 -2
  84. package/build/helpers/resolve-includes.unit.js +1 -1
  85. package/build/helpers/rss.js +2 -4
  86. package/build/helpers/rss.unit.js +1 -1
  87. package/build/helpers/section.js +2 -3
  88. package/build/helpers/section.unit.js +4 -13
  89. package/build/helpers/toc.unit.js +2 -4
  90. package/build/plugins/rehype-inline-code.js +2 -2
  91. package/build/plugins/rehype-task-list-a11y.js +1 -1
  92. package/build/plugins/remark-abbr.js +2 -4
  93. package/build/plugins/remark-ansi.js +2 -4
  94. package/build/plugins/remark-ansi.unit.js +1 -1
  95. package/build/plugins/remark-badge.js +2 -4
  96. package/build/plugins/remark-button.unit.js +1 -1
  97. package/build/plugins/remark-callout.js +1 -1
  98. package/build/plugins/remark-card.js +1 -1
  99. package/build/plugins/remark-code-tabs.js +4 -8
  100. package/build/plugins/remark-columns.js +1 -1
  101. package/build/plugins/remark-custom-heading-id.unit.js +1 -1
  102. package/build/plugins/remark-deflist.js +1 -1
  103. package/build/plugins/remark-details.js +2 -4
  104. package/build/plugins/remark-filetree.js +1 -1
  105. package/build/plugins/remark-filetree.unit.js +1 -1
  106. package/build/plugins/remark-media.js +3 -7
  107. package/build/plugins/remark-media.unit.js +1 -1
  108. package/build/plugins/remark-steps.unit.js +1 -1
  109. package/build/plugins/remark-tab.js +4 -2
  110. package/build/plugins/remark-tab.unit.js +3 -7
  111. package/build/plugins/remark-toc.unit.js +1 -1
  112. package/build/plugins/shiki-icon.js +1 -1
  113. package/build/plugins/shiki-line-highlight.js +1 -1
  114. package/build/plugins/vite-livemark.js +1 -1
  115. package/build/plugins/vite-robots.js +1 -1
  116. package/build/plugins/vite-robots.unit.js +1 -1
  117. package/build/routes/$.js +1 -1
  118. package/build/vite.config.js +3 -8
  119. package/package.json +2 -2
  120. package/skills/configuration/SKILL.md +1 -3
  121. package/source/actions/changelog/build.ts +4 -20
  122. package/source/actions/config/load.ts +1 -3
  123. package/source/actions/config/load.unit.ts +2 -7
  124. package/source/actions/target/build.ts +1 -4
  125. package/source/commands/build.ts +1 -7
  126. package/source/commands/escape.ts +3 -8
  127. package/source/commands/preview.ts +1 -7
  128. package/source/commands/start.ts +1 -7
  129. package/source/components/Abbr.tsx +1 -5
  130. package/source/components/Article.tsx +1 -5
  131. package/source/components/BlogIndex.tsx +3 -9
  132. package/source/components/Callout.tsx +1 -6
  133. package/source/components/ChangelogIndex.tsx +1 -3
  134. package/source/components/CodeBlock.tsx +4 -14
  135. package/source/components/CodeTabs.tsx +1 -3
  136. package/source/components/Columns.tsx +1 -3
  137. package/source/components/Content.tsx +1 -5
  138. package/source/components/ContentTab.tsx +1 -4
  139. package/source/components/ContentTabs.tsx +3 -10
  140. package/source/components/DefinitionList.tsx +1 -4
  141. package/source/components/FileTree.tsx +1 -5
  142. package/source/components/FootnoteRef.tsx +1 -5
  143. package/source/components/InlineToc.tsx +1 -4
  144. package/source/components/Layout.tsx +3 -10
  145. package/source/components/LinkButton.tsx +1 -7
  146. package/source/components/Mermaid.tsx +1 -3
  147. package/source/components/PackageTabs.tsx +1 -5
  148. package/source/components/PageToolbar.tsx +1 -5
  149. package/source/components/PrevNext.tsx +2 -6
  150. package/source/components/SearchDialog.tsx +2 -6
  151. package/source/components/SectionHeader.tsx +1 -7
  152. package/source/components/Sidebar.tsx +2 -7
  153. package/source/components/SidebarArticles.tsx +4 -20
  154. package/source/components/SidebarLinks.tsx +2 -6
  155. package/source/components/TagIndex.tsx +3 -9
  156. package/source/components/Toc.tsx +2 -7
  157. package/source/content/article.ts +1 -2
  158. package/source/content-collections.ts +2 -5
  159. package/source/elements/alert-dialog.tsx +7 -29
  160. package/source/elements/alert.tsx +1 -4
  161. package/source/elements/avatar.tsx +4 -20
  162. package/source/elements/badge.tsx +2 -4
  163. package/source/elements/breadcrumb.tsx +3 -13
  164. package/source/elements/button-group.tsx +1 -6
  165. package/source/elements/calendar.tsx +6 -23
  166. package/source/elements/carousel.tsx +3 -10
  167. package/source/elements/chart.tsx +8 -33
  168. package/source/elements/collapsible.tsx +2 -6
  169. package/source/elements/command.tsx +3 -12
  170. package/source/elements/context-menu.tsx +7 -24
  171. package/source/elements/dialog.tsx +3 -13
  172. package/source/elements/direction.tsx +1 -4
  173. package/source/elements/drawer.tsx +3 -9
  174. package/source/elements/dropdown-menu.tsx +4 -18
  175. package/source/elements/empty.tsx +2 -12
  176. package/source/elements/field.tsx +2 -6
  177. package/source/elements/hover-card.tsx +1 -3
  178. package/source/elements/input-group.tsx +14 -27
  179. package/source/elements/item.tsx +3 -12
  180. package/source/elements/menubar.tsx +4 -13
  181. package/source/elements/native-select.tsx +3 -14
  182. package/source/elements/navigation-menu.tsx +1 -4
  183. package/source/elements/pagination.tsx +3 -13
  184. package/source/elements/popover.tsx +1 -4
  185. package/source/elements/progress.tsx +3 -15
  186. package/source/elements/resizable.tsx +3 -11
  187. package/source/elements/scroll-area.tsx +1 -5
  188. package/source/elements/select.tsx +3 -13
  189. package/source/elements/sheet.tsx +2 -9
  190. package/source/elements/sidebar.tsx +6 -24
  191. package/source/elements/table.tsx +3 -12
  192. package/source/elements/toggle-group.tsx +1 -3
  193. package/source/elements/tooltip.tsx +2 -9
  194. package/source/helpers/changelog-source.ts +1 -3
  195. package/source/helpers/dynamic-icon-resolver.tsx +1 -4
  196. package/source/helpers/resolve-asset-path.unit.ts +6 -12
  197. package/source/helpers/resolve-base.unit.ts +1 -2
  198. package/source/helpers/resolve-includes.ts +2 -8
  199. package/source/helpers/resolve-includes.unit.ts +9 -36
  200. package/source/helpers/rss.ts +3 -9
  201. package/source/helpers/rss.unit.ts +1 -3
  202. package/source/helpers/section.ts +1 -4
  203. package/source/helpers/section.unit.ts +5 -18
  204. package/source/helpers/toc.unit.ts +1 -3
  205. package/source/plugins/rehype-inline-code.ts +5 -21
  206. package/source/plugins/rehype-task-list-a11y.ts +1 -2
  207. package/source/plugins/remark-abbr.ts +1 -3
  208. package/source/plugins/remark-ansi.ts +2 -5
  209. package/source/plugins/remark-ansi.unit.ts +6 -18
  210. package/source/plugins/remark-badge.ts +1 -3
  211. package/source/plugins/remark-button.unit.ts +3 -9
  212. package/source/plugins/remark-callout.ts +35 -40
  213. package/source/plugins/remark-card.ts +25 -29
  214. package/source/plugins/remark-code-tabs.ts +3 -7
  215. package/source/plugins/remark-columns.ts +13 -17
  216. package/source/plugins/remark-custom-heading-id.unit.ts +2 -6
  217. package/source/plugins/remark-deflist.ts +1 -2
  218. package/source/plugins/remark-details.ts +28 -34
  219. package/source/plugins/remark-filetree.ts +28 -34
  220. package/source/plugins/remark-filetree.unit.ts +1 -4
  221. package/source/plugins/remark-media.ts +2 -6
  222. package/source/plugins/remark-media.unit.ts +2 -6
  223. package/source/plugins/remark-steps.unit.ts +2 -7
  224. package/source/plugins/remark-tab.ts +26 -30
  225. package/source/plugins/remark-tab.unit.ts +2 -6
  226. package/source/plugins/remark-toc.unit.ts +1 -3
  227. package/source/plugins/shiki-icon.ts +1 -4
  228. package/source/plugins/shiki-line-highlight.ts +4 -11
  229. package/source/plugins/vite-livemark.ts +3 -10
  230. package/source/plugins/vite-robots.ts +1 -6
  231. package/source/plugins/vite-robots.unit.ts +1 -3
  232. package/source/routes/$.tsx +1 -3
  233. package/source/styles/general.css +1 -5
  234. package/source/vite.config.ts +2 -7
@@ -19,10 +19,7 @@ function DialogClose({ ...props }: DialogPrimitive.Close.Props) {
19
19
  return <DialogPrimitive.Close data-slot="dialog-close" {...props} />
20
20
  }
21
21
 
22
- function DialogOverlay({
23
- className,
24
- ...props
25
- }: DialogPrimitive.Backdrop.Props) {
22
+ function DialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props) {
26
23
  return (
27
24
  <DialogPrimitive.Backdrop
28
25
  data-slot="dialog-overlay"
@@ -59,11 +56,7 @@ function DialogContent({
59
56
  <DialogPrimitive.Close
60
57
  data-slot="dialog-close"
61
58
  render={
62
- <Button
63
- variant="ghost"
64
- className="absolute top-4 right-4"
65
- size="icon-sm"
66
- />
59
+ <Button variant="ghost" className="absolute top-4 right-4" size="icon-sm" />
67
60
  }
68
61
  >
69
62
  <XIcon />
@@ -122,10 +115,7 @@ function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {
122
115
  )
123
116
  }
124
117
 
125
- function DialogDescription({
126
- className,
127
- ...props
128
- }: DialogPrimitive.Description.Props) {
118
+ function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props) {
129
119
  return (
130
120
  <DialogPrimitive.Description
131
121
  data-slot="dialog-description"
@@ -1,4 +1 @@
1
- export {
2
- DirectionProvider,
3
- useDirection,
4
- } from "@base-ui/react/direction-provider"
1
+ export { DirectionProvider, useDirection } from "@base-ui/react/direction-provider"
@@ -1,9 +1,7 @@
1
1
  import { Drawer as DrawerPrimitive } from "vaul"
2
2
  import { cn } from "../utils/style.ts"
3
3
 
4
- function Drawer({
5
- ...props
6
- }: React.ComponentProps<typeof DrawerPrimitive.Root>) {
4
+ function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {
7
5
  return <DrawerPrimitive.Root data-slot="drawer" {...props} />
8
6
  }
9
7
 
@@ -13,15 +11,11 @@ function DrawerTrigger({
13
11
  return <DrawerPrimitive.Trigger data-slot="drawer-trigger" {...props} />
14
12
  }
15
13
 
16
- function DrawerPortal({
17
- ...props
18
- }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {
14
+ function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {
19
15
  return <DrawerPrimitive.Portal data-slot="drawer-portal" {...props} />
20
16
  }
21
17
 
22
- function DrawerClose({
23
- ...props
24
- }: React.ComponentProps<typeof DrawerPrimitive.Close>) {
18
+ function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {
25
19
  return <DrawerPrimitive.Close data-slot="drawer-close" {...props} />
26
20
  }
27
21
 
@@ -22,10 +22,7 @@ function DropdownMenuContent({
22
22
  className,
23
23
  ...props
24
24
  }: MenuPrimitive.Popup.Props &
25
- Pick<
26
- MenuPrimitive.Positioner.Props,
27
- "align" | "alignOffset" | "side" | "sideOffset"
28
- >) {
25
+ Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">) {
29
26
  return (
30
27
  <MenuPrimitive.Portal>
31
28
  <MenuPrimitive.Positioner
@@ -177,12 +174,7 @@ function DropdownMenuCheckboxItem({
177
174
  }
178
175
 
179
176
  function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props) {
180
- return (
181
- <MenuPrimitive.RadioGroup
182
- data-slot="dropdown-menu-radio-group"
183
- {...props}
184
- />
185
- )
177
+ return <MenuPrimitive.RadioGroup data-slot="dropdown-menu-radio-group" {...props} />
186
178
  }
187
179
 
188
180
  function DropdownMenuRadioItem({
@@ -212,10 +204,7 @@ function DropdownMenuRadioItem({
212
204
  )
213
205
  }
214
206
 
215
- function DropdownMenuSeparator({
216
- className,
217
- ...props
218
- }: MenuPrimitive.Separator.Props) {
207
+ function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props) {
219
208
  return (
220
209
  <MenuPrimitive.Separator
221
210
  data-slot="dropdown-menu-separator"
@@ -225,10 +214,7 @@ function DropdownMenuSeparator({
225
214
  )
226
215
  }
227
216
 
228
- function DropdownMenuShortcut({
229
- className,
230
- ...props
231
- }: React.ComponentProps<"span">) {
217
+ function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">) {
232
218
  return (
233
219
  <span
234
220
  data-slot="dropdown-menu-shortcut"
@@ -59,10 +59,7 @@ function EmptyTitle({ className, ...props }: React.ComponentProps<"div">) {
59
59
  return (
60
60
  <div
61
61
  data-slot="empty-title"
62
- className={cn(
63
- "cn-font-heading text-lg font-medium tracking-tight",
64
- className,
65
- )}
62
+ className={cn("cn-font-heading text-lg font-medium tracking-tight", className)}
66
63
  {...props}
67
64
  />
68
65
  )
@@ -94,11 +91,4 @@ function EmptyContent({ className, ...props }: React.ComponentProps<"div">) {
94
91
  )
95
92
  }
96
93
 
97
- export {
98
- Empty,
99
- EmptyHeader,
100
- EmptyTitle,
101
- EmptyDescription,
102
- EmptyContent,
103
- EmptyMedia,
104
- }
94
+ export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia }
@@ -95,10 +95,7 @@ function FieldContent({ className, ...props }: React.ComponentProps<"div">) {
95
95
  )
96
96
  }
97
97
 
98
- function FieldLabel({
99
- className,
100
- ...props
101
- }: React.ComponentProps<typeof Label>) {
98
+ function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {
102
99
  return (
103
100
  <Label
104
101
  data-slot="field-label"
@@ -198,8 +195,7 @@ function FieldError({
198
195
  return (
199
196
  <ul className="ml-4 flex list-disc flex-col gap-1">
200
197
  {uniqueErrors.map(
201
- (error, index) =>
202
- error?.message && <li key={index}>{error.message}</li>,
198
+ (error, index) => error?.message && <li key={index}>{error.message}</li>,
203
199
  )}
204
200
  </ul>
205
201
  )
@@ -7,9 +7,7 @@ function HoverCard({ ...props }: PreviewCardPrimitive.Root.Props) {
7
7
  }
8
8
 
9
9
  function HoverCardTrigger({ ...props }: PreviewCardPrimitive.Trigger.Props) {
10
- return (
11
- <PreviewCardPrimitive.Trigger data-slot="hover-card-trigger" {...props} />
12
- )
10
+ return <PreviewCardPrimitive.Trigger data-slot="hover-card-trigger" {...props} />
13
11
  }
14
12
 
15
13
  function HoverCardContent({
@@ -61,23 +61,19 @@ function InputGroupAddon({
61
61
  )
62
62
  }
63
63
 
64
- const inputGroupButtonVariants = cva(
65
- "gap-2 text-sm shadow-none flex items-center",
66
- {
67
- variants: {
68
- size: {
69
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
70
- sm: "",
71
- "icon-xs":
72
- "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
73
- "icon-sm": "size-8 p-0 has-[>svg]:p-0",
74
- },
75
- },
76
- defaultVariants: {
77
- size: "xs",
64
+ const inputGroupButtonVariants = cva("gap-2 text-sm shadow-none flex items-center", {
65
+ variants: {
66
+ size: {
67
+ xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
68
+ sm: "",
69
+ "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
70
+ "icon-sm": "size-8 p-0 has-[>svg]:p-0",
78
71
  },
79
72
  },
80
- )
73
+ defaultVariants: {
74
+ size: "xs",
75
+ },
76
+ })
81
77
 
82
78
  function InputGroupButton({
83
79
  className,
@@ -112,10 +108,7 @@ function InputGroupText({ className, ...props }: React.ComponentProps<"span">) {
112
108
  )
113
109
  }
114
110
 
115
- function InputGroupInput({
116
- className,
117
- ...props
118
- }: React.ComponentProps<"input">) {
111
+ function InputGroupInput({ className, ...props }: React.ComponentProps<"input">) {
119
112
  return (
120
113
  <Input
121
114
  data-slot="input-group-control"
@@ -128,10 +121,7 @@ function InputGroupInput({
128
121
  )
129
122
  }
130
123
 
131
- function InputGroupTextarea({
132
- className,
133
- ...props
134
- }: React.ComponentProps<"textarea">) {
124
+ function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">) {
135
125
  return (
136
126
  <Textarea
137
127
  data-slot="input-group-control"
@@ -144,10 +134,7 @@ function InputGroupTextarea({
144
134
  )
145
135
  }
146
136
 
147
- function InputGroupSelect({
148
- className,
149
- ...props
150
- }: React.ComponentProps<"select">) {
137
+ function InputGroupSelect({ className, ...props }: React.ComponentProps<"select">) {
151
138
  return (
152
139
  <select
153
140
  data-slot="input-group-control"
@@ -18,10 +18,7 @@ function ItemGroup({ className, ...props }: React.ComponentProps<"div">) {
18
18
  )
19
19
  }
20
20
 
21
- function ItemSeparator({
22
- className,
23
- ...props
24
- }: React.ComponentProps<typeof Separator>) {
21
+ function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {
25
22
  return (
26
23
  <Separator
27
24
  data-slot="item-separator"
@@ -163,10 +160,7 @@ function ItemHeader({ className, ...props }: React.ComponentProps<"div">) {
163
160
  return (
164
161
  <div
165
162
  data-slot="item-header"
166
- className={cn(
167
- "gap-2 flex basis-full items-center justify-between",
168
- className,
169
- )}
163
+ className={cn("gap-2 flex basis-full items-center justify-between", className)}
170
164
  {...props}
171
165
  />
172
166
  )
@@ -176,10 +170,7 @@ function ItemFooter({ className, ...props }: React.ComponentProps<"div">) {
176
170
  return (
177
171
  <div
178
172
  data-slot="item-footer"
179
- className={cn(
180
- "gap-2 flex basis-full items-center justify-between",
181
- className,
182
- )}
173
+ className={cn("gap-2 flex basis-full items-center justify-between", className)}
183
174
  {...props}
184
175
  />
185
176
  )
@@ -37,15 +37,11 @@ function MenubarMenu({ ...props }: React.ComponentProps<typeof DropdownMenu>) {
37
37
  return <DropdownMenu data-slot="menubar-menu" {...props} />
38
38
  }
39
39
 
40
- function MenubarGroup({
41
- ...props
42
- }: React.ComponentProps<typeof DropdownMenuGroup>) {
40
+ function MenubarGroup({ ...props }: React.ComponentProps<typeof DropdownMenuGroup>) {
43
41
  return <DropdownMenuGroup data-slot="menubar-group" {...props} />
44
42
  }
45
43
 
46
- function MenubarPortal({
47
- ...props
48
- }: React.ComponentProps<typeof DropdownMenuPortal>) {
44
+ function MenubarPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPortal>) {
49
45
  return <DropdownMenuPortal data-slot="menubar-portal" {...props} />
50
46
  }
51
47
 
@@ -182,10 +178,7 @@ function MenubarLabel({
182
178
  <DropdownMenuLabel
183
179
  data-slot="menubar-label"
184
180
  data-inset={inset}
185
- className={cn(
186
- "px-2 py-1.5 text-sm font-medium data-inset:pl-8",
187
- className,
188
- )}
181
+ className={cn("px-2 py-1.5 text-sm font-medium data-inset:pl-8", className)}
189
182
  {...props}
190
183
  />
191
184
  )
@@ -220,9 +213,7 @@ function MenubarShortcut({
220
213
  )
221
214
  }
222
215
 
223
- function MenubarSub({
224
- ...props
225
- }: React.ComponentProps<typeof DropdownMenuSub>) {
216
+ function MenubarSub({ ...props }: React.ComponentProps<typeof DropdownMenuSub>) {
226
217
  return <DropdownMenuSub data-slot="menubar-sub" {...props} />
227
218
  }
228
219
 
@@ -7,11 +7,7 @@ type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {
7
7
  size?: "sm" | "default"
8
8
  }
9
9
 
10
- function NativeSelect({
11
- className,
12
- size = "default",
13
- ...props
14
- }: NativeSelectProps) {
10
+ function NativeSelect({ className, size = "default", ...props }: NativeSelectProps) {
15
11
  return (
16
12
  <div
17
13
  className={cn(
@@ -40,16 +36,9 @@ function NativeSelectOption({ ...props }: React.ComponentProps<"option">) {
40
36
  return <option data-slot="native-select-option" {...props} />
41
37
  }
42
38
 
43
- function NativeSelectOptGroup({
44
- className,
45
- ...props
46
- }: React.ComponentProps<"optgroup">) {
39
+ function NativeSelectOptGroup({ className, ...props }: React.ComponentProps<"optgroup">) {
47
40
  return (
48
- <optgroup
49
- data-slot="native-select-optgroup"
50
- className={cn(className)}
51
- {...props}
52
- />
41
+ <optgroup data-slot="native-select-optgroup" className={cn(className)} {...props} />
53
42
  )
54
43
  }
55
44
 
@@ -124,10 +124,7 @@ function NavigationMenuPositioner({
124
124
  )
125
125
  }
126
126
 
127
- function NavigationMenuLink({
128
- className,
129
- ...props
130
- }: NavigationMenuPrimitive.Link.Props) {
127
+ function NavigationMenuLink({ className, ...props }: NavigationMenuPrimitive.Link.Props) {
131
128
  return (
132
129
  <NavigationMenuPrimitive.Link
133
130
  data-slot="navigation-menu-link"
@@ -1,9 +1,5 @@
1
1
  import * as React from "react"
2
- import {
3
- ChevronLeftIcon,
4
- ChevronRightIcon,
5
- MoreHorizontalIcon,
6
- } from "lucide-react"
2
+ import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react"
7
3
 
8
4
  import { cn } from "../utils/style.ts"
9
5
  import { Button } from "./button.tsx"
@@ -20,10 +16,7 @@ function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
20
16
  )
21
17
  }
22
18
 
23
- function PaginationContent({
24
- className,
25
- ...props
26
- }: React.ComponentProps<"ul">) {
19
+ function PaginationContent({ className, ...props }: React.ComponentProps<"ul">) {
27
20
  return (
28
21
  <ul
29
22
  data-slot="pagination-content"
@@ -102,10 +95,7 @@ function PaginationNext({
102
95
  )
103
96
  }
104
97
 
105
- function PaginationEllipsis({
106
- className,
107
- ...props
108
- }: React.ComponentProps<"span">) {
98
+ function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">) {
109
99
  return (
110
100
  <span
111
101
  aria-hidden
@@ -65,10 +65,7 @@ function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props) {
65
65
  )
66
66
  }
67
67
 
68
- function PopoverDescription({
69
- className,
70
- ...props
71
- }: PopoverPrimitive.Description.Props) {
68
+ function PopoverDescription({ className, ...props }: PopoverPrimitive.Description.Props) {
72
69
  return (
73
70
  <PopoverPrimitive.Description
74
71
  data-slot="popover-description"
@@ -36,10 +36,7 @@ function ProgressTrack({ className, ...props }: ProgressPrimitive.Track.Props) {
36
36
  )
37
37
  }
38
38
 
39
- function ProgressIndicator({
40
- className,
41
- ...props
42
- }: ProgressPrimitive.Indicator.Props) {
39
+ function ProgressIndicator({ className, ...props }: ProgressPrimitive.Indicator.Props) {
43
40
  return (
44
41
  <ProgressPrimitive.Indicator
45
42
  data-slot="progress-indicator"
@@ -62,20 +59,11 @@ function ProgressLabel({ className, ...props }: ProgressPrimitive.Label.Props) {
62
59
  function ProgressValue({ className, ...props }: ProgressPrimitive.Value.Props) {
63
60
  return (
64
61
  <ProgressPrimitive.Value
65
- className={cn(
66
- "ml-auto text-sm text-muted-foreground tabular-nums",
67
- className,
68
- )}
62
+ className={cn("ml-auto text-sm text-muted-foreground tabular-nums", className)}
69
63
  data-slot="progress-value"
70
64
  {...props}
71
65
  />
72
66
  )
73
67
  }
74
68
 
75
- export {
76
- Progress,
77
- ProgressTrack,
78
- ProgressIndicator,
79
- ProgressLabel,
80
- ProgressValue,
81
- }
69
+ export { Progress, ProgressTrack, ProgressIndicator, ProgressLabel, ProgressValue }
@@ -2,17 +2,11 @@ import * as ResizablePrimitive from "react-resizable-panels"
2
2
 
3
3
  import { cn } from "../utils/style.ts"
4
4
 
5
- function ResizablePanelGroup({
6
- className,
7
- ...props
8
- }: ResizablePrimitive.GroupProps) {
5
+ function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps) {
9
6
  return (
10
7
  <ResizablePrimitive.Group
11
8
  data-slot="resizable-panel-group"
12
- className={cn(
13
- "flex h-full w-full aria-[orientation=vertical]:flex-col",
14
- className,
15
- )}
9
+ className={cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className)}
16
10
  {...props}
17
11
  />
18
12
  )
@@ -38,9 +32,7 @@ function ResizableHandle({
38
32
  )}
39
33
  {...props}
40
34
  >
41
- {withHandle && (
42
- <div className="z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" />
43
- )}
35
+ {withHandle && <div className="z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" />}
44
36
  </ResizablePrimitive.Separator>
45
37
  )
46
38
  }
@@ -1,11 +1,7 @@
1
1
  import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area"
2
2
  import { cn } from "../utils/style.ts"
3
3
 
4
- function ScrollArea({
5
- className,
6
- children,
7
- ...props
8
- }: ScrollAreaPrimitive.Root.Props) {
4
+ function ScrollArea({ className, children, ...props }: ScrollAreaPrimitive.Root.Props) {
9
5
  return (
10
6
  <ScrollAreaPrimitive.Root
11
7
  data-slot="scroll-area"
@@ -96,10 +96,7 @@ function SelectContent({
96
96
  )
97
97
  }
98
98
 
99
- function SelectLabel({
100
- className,
101
- ...props
102
- }: SelectPrimitive.GroupLabel.Props) {
99
+ function SelectLabel({ className, ...props }: SelectPrimitive.GroupLabel.Props) {
103
100
  return (
104
101
  <SelectPrimitive.GroupLabel
105
102
  data-slot="select-label"
@@ -109,11 +106,7 @@ function SelectLabel({
109
106
  )
110
107
  }
111
108
 
112
- function SelectItem({
113
- className,
114
- children,
115
- ...props
116
- }: SelectPrimitive.Item.Props) {
109
+ function SelectItem({ className, children, ...props }: SelectPrimitive.Item.Props) {
117
110
  return (
118
111
  <SelectPrimitive.Item
119
112
  data-slot="select-item"
@@ -137,10 +130,7 @@ function SelectItem({
137
130
  )
138
131
  }
139
132
 
140
- function SelectSeparator({
141
- className,
142
- ...props
143
- }: SelectPrimitive.Separator.Props) {
133
+ function SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Props) {
144
134
  return (
145
135
  <SelectPrimitive.Separator
146
136
  data-slot="select-separator"
@@ -59,11 +59,7 @@ function SheetContent({
59
59
  <SheetPrimitive.Close
60
60
  data-slot="sheet-close"
61
61
  render={
62
- <Button
63
- variant="ghost"
64
- className="absolute top-4 right-4"
65
- size="icon-sm"
66
- />
62
+ <Button variant="ghost" className="absolute top-4 right-4" size="icon-sm" />
67
63
  }
68
64
  >
69
65
  <XIcon />
@@ -105,10 +101,7 @@ function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props) {
105
101
  )
106
102
  }
107
103
 
108
- function SheetDescription({
109
- className,
110
- ...props
111
- }: SheetPrimitive.Description.Props) {
104
+ function SheetDescription({ className, ...props }: SheetPrimitive.Description.Props) {
112
105
  return (
113
106
  <SheetPrimitive.Description
114
107
  data-slot="sheet-description"
@@ -93,10 +93,7 @@ function SidebarProvider({
93
93
  // Adds a keyboard shortcut to toggle the sidebar.
94
94
  React.useEffect(() => {
95
95
  const handleKeyDown = (event: KeyboardEvent) => {
96
- if (
97
- event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
98
- (event.metaKey || event.ctrlKey)
99
- ) {
96
+ if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
100
97
  event.preventDefault()
101
98
  toggleSidebar()
102
99
  }
@@ -312,10 +309,7 @@ function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {
312
309
  )
313
310
  }
314
311
 
315
- function SidebarInput({
316
- className,
317
- ...props
318
- }: React.ComponentProps<typeof Input>) {
312
+ function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>) {
319
313
  return (
320
314
  <Input
321
315
  data-slot="sidebar-input"
@@ -435,10 +429,7 @@ function SidebarGroupAction({
435
429
  })
436
430
  }
437
431
 
438
- function SidebarGroupContent({
439
- className,
440
- ...props
441
- }: React.ComponentProps<"div">) {
432
+ function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">) {
442
433
  return (
443
434
  <div
444
435
  data-slot="sidebar-group-content"
@@ -577,10 +568,7 @@ function SidebarMenuAction({
577
568
  })
578
569
  }
579
570
 
580
- function SidebarMenuBadge({
581
- className,
582
- ...props
583
- }: React.ComponentProps<"div">) {
571
+ function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">) {
584
572
  return (
585
573
  <div
586
574
  data-slot="sidebar-menu-badge"
@@ -614,10 +602,7 @@ function SidebarMenuSkeleton({
614
602
  {...props}
615
603
  >
616
604
  {showIcon && (
617
- <Skeleton
618
- className="size-4 rounded-md"
619
- data-sidebar="menu-skeleton-icon"
620
- />
605
+ <Skeleton className="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />
621
606
  )}
622
607
  <Skeleton
623
608
  className="h-4 max-w-(--skeleton-width) flex-1"
@@ -646,10 +631,7 @@ function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">) {
646
631
  )
647
632
  }
648
633
 
649
- function SidebarMenuSubItem({
650
- className,
651
- ...props
652
- }: React.ComponentProps<"li">) {
634
+ function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">) {
653
635
  return (
654
636
  <li
655
637
  data-slot="sidebar-menu-sub-item"
@@ -2,10 +2,7 @@ import { cn } from "../utils/style.ts"
2
2
 
3
3
  function Table({ className, ...props }: React.ComponentProps<"table">) {
4
4
  return (
5
- <div
6
- data-slot="table-container"
7
- className="relative w-full overflow-x-auto"
8
- >
5
+ <div data-slot="table-container" className="relative w-full overflow-x-auto">
9
6
  <table
10
7
  data-slot="table"
11
8
  className={cn("w-full caption-bottom text-sm", className)}
@@ -39,10 +36,7 @@ function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {
39
36
  return (
40
37
  <tfoot
41
38
  data-slot="table-footer"
42
- className={cn(
43
- "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
44
- className,
45
- )}
39
+ className={cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className)}
46
40
  {...props}
47
41
  />
48
42
  )
@@ -87,10 +81,7 @@ function TableCell({ className, ...props }: React.ComponentProps<"td">) {
87
81
  )
88
82
  }
89
83
 
90
- function TableCaption({
91
- className,
92
- ...props
93
- }: React.ComponentProps<"caption">) {
84
+ function TableCaption({ className, ...props }: React.ComponentProps<"caption">) {
94
85
  return (
95
86
  <caption
96
87
  data-slot="table-caption"