raft-ui 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +5 -1
- package/dist/button-CJqMhTPQ.mjs +621 -0
- package/dist/index-CpGciYPW.d.mts +267 -0
- package/dist/index.d.mts +90 -254
- package/dist/index.mjs +121 -628
- package/dist/wip.d.mts +133 -15
- package/dist/wip.mjs +289 -16
- package/package.json +5 -9
- package/src/components/alert-dialog/alert-dialog.tsx +215 -0
- package/src/components/alert-dialog/index.ts +30 -0
- package/src/components/avatar/avatar.tsx +3 -3
- package/src/components/avatar/index.ts +2 -2
- package/src/components/badge/badge.tsx +2 -2
- package/src/components/badge/index.ts +2 -2
- package/src/components/banner/banner.tsx +2 -2
- package/src/components/banner/index.ts +2 -2
- package/src/components/bottom-sheet/bottom-sheet.tsx +3 -3
- package/src/components/bottom-sheet/index.ts +2 -2
- package/src/components/button/button.tsx +7 -5
- package/src/components/button/index.ts +2 -2
- package/src/components/checkbox/checkbox-indicator.tsx +2 -2
- package/src/components/checkbox/checkbox.tsx +4 -4
- package/src/components/checkbox/index.ts +2 -2
- package/src/components/combobox/combobox.tsx +4 -4
- package/src/components/combobox/index.ts +1 -1
- package/src/components/context-menu/context-menu.tsx +4 -4
- package/src/components/context-menu/index.ts +2 -2
- package/src/components/conversation-preview-card/conversation-preview-card.tsx +2 -2
- package/src/components/conversation-preview-card/index.ts +2 -2
- package/src/components/description-list/description-list.tsx +2 -2
- package/src/components/description-list/index.ts +2 -2
- package/src/components/dialog/dialog.tsx +152 -0
- package/src/components/dialog/index.ts +26 -0
- package/src/components/dropdown-menu/dropdown-menu.tsx +7 -7
- package/src/components/dropdown-menu/index.ts +2 -2
- package/src/components/empty-state/empty-state.tsx +2 -2
- package/src/components/empty-state/index.ts +2 -2
- package/src/components/field/field.tsx +4 -4
- package/src/components/field/index.ts +2 -2
- package/src/components/inline-code/index.ts +2 -2
- package/src/components/inline-code/inline-code.tsx +9 -7
- package/src/components/input/index.ts +2 -2
- package/src/components/input/input.tsx +4 -4
- package/src/components/input-group/index.ts +2 -2
- package/src/components/input-group/input-group.tsx +5 -5
- package/src/components/kbd/index.ts +2 -2
- package/src/components/kbd/kbd.tsx +2 -2
- package/src/components/label/index.ts +2 -7
- package/src/components/label/label.tsx +2 -2
- package/src/components/lightbox/index.ts +2 -2
- package/src/components/lightbox/lightbox.tsx +3 -3
- package/src/components/list-item/index.ts +2 -2
- package/src/components/list-item/list-item.tsx +2 -2
- package/src/components/media-list-item/index.ts +2 -2
- package/src/components/media-list-item/media-list-item.tsx +4 -4
- package/src/components/notification-center/index.ts +2 -2
- package/src/components/notification-center/notification-center.tsx +5 -5
- package/src/components/panel-header/index.ts +2 -2
- package/src/components/panel-header/panel-header.tsx +2 -2
- package/src/components/popover/index.ts +2 -2
- package/src/components/popover/popover.tsx +3 -3
- package/src/components/preview-shell/index.ts +2 -2
- package/src/components/preview-shell/preview-shell.tsx +2 -2
- package/src/components/quoted-message-card/index.ts +2 -2
- package/src/components/quoted-message-card/quoted-message-card.tsx +3 -3
- package/src/components/radio-group/index.ts +2 -6
- package/src/components/radio-group/radio-group.tsx +4 -4
- package/src/components/section-header/index.ts +2 -2
- package/src/components/section-header/section-header.tsx +2 -2
- package/src/components/section-label/index.ts +2 -2
- package/src/components/section-label/section-label.tsx +2 -2
- package/src/components/segmented-control/index.ts +2 -2
- package/src/components/segmented-control/segmented-control.tsx +3 -3
- package/src/components/select/index.ts +2 -2
- package/src/components/select/select.tsx +4 -4
- package/src/components/separator/index.ts +2 -0
- package/src/components/separator/separator.tsx +40 -0
- package/src/components/spinner/index.ts +2 -2
- package/src/components/spinner/spinner.tsx +3 -3
- package/src/components/status/index.ts +2 -2
- package/src/components/status/status.tsx +2 -2
- package/src/components/tabs/index.ts +2 -2
- package/src/components/tabs/tabs.tsx +43 -9
- package/src/components/text/index.ts +2 -2
- package/src/components/text/text.tsx +2 -1
- package/src/components/textarea/index.ts +2 -2
- package/src/components/textarea/textarea.tsx +3 -3
- package/src/components/toggle-group/index.ts +2 -7
- package/src/components/toggle-group/toggle-group.tsx +3 -3
- package/src/components/tooltip/index.ts +2 -8
- package/src/components/tooltip/tooltip.tsx +42 -16
- package/src/index.ts +60 -57
- package/src/legacy/AvatarListRow.tsx +1 -1
- package/src/legacy/Checkbox.tsx +1 -1
- package/src/legacy/ConversationPreviewCard.tsx +1 -1
- package/src/legacy/DismissBackdrop.tsx +1 -1
- package/src/legacy/ExperimentalBadge.tsx +1 -1
- package/src/legacy/NotificationCenter.tsx +2 -2
- package/src/legacy/PanelHeader.tsx +1 -1
- package/src/legacy/QuotedMessageCard.tsx +1 -1
- package/src/legacy/ReorderablePanelTabs.tsx +6 -1
- package/src/legacy/SectionHeader.tsx +1 -1
- package/src/legacy/Spinner.tsx +1 -1
- package/src/legacy/SurfaceListItem.tsx +1 -1
- package/src/legacy/selection-popover.tsx +2 -2
- package/src/legacy/server-switcher-menu.tsx +2 -2
- package/src/lib/theme/theme-provider.tsx +1 -1
- package/src/lib/theme/use-theme.ts +1 -1
- package/src/styles.css +5 -6
- package/src/wip.ts +82 -24
- package/dist/styled-props-B3SNekJg.d.mts +0 -16
- package/dist/use-theme-Y_h1DKll.mjs +0 -34
- package/src/fonts/brutal.css +0 -2
package/src/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { Button, buttonVariants } from "./components/button/index
|
|
2
|
-
export type { ButtonProps } from "./components/button/index
|
|
1
|
+
export { Button, buttonVariants } from "./components/button/index";
|
|
2
|
+
export type { ButtonProps } from "./components/button/index";
|
|
3
3
|
|
|
4
|
-
export { Checkbox } from "./components/checkbox/index
|
|
5
|
-
export type { CheckboxProps } from "./components/checkbox/index
|
|
4
|
+
export { Checkbox } from "./components/checkbox/index";
|
|
5
|
+
export type { CheckboxProps } from "./components/checkbox/index";
|
|
6
6
|
|
|
7
7
|
export {
|
|
8
8
|
ContextMenu,
|
|
@@ -20,7 +20,7 @@ export {
|
|
|
20
20
|
ContextMenuSubmenu,
|
|
21
21
|
ContextMenuSubmenuTrigger,
|
|
22
22
|
ContextMenuTrigger,
|
|
23
|
-
} from "./components/context-menu/index
|
|
23
|
+
} from "./components/context-menu/index";
|
|
24
24
|
export type {
|
|
25
25
|
ContextMenuCheckboxItemIndicatorProps,
|
|
26
26
|
ContextMenuCheckboxItemProps,
|
|
@@ -37,7 +37,7 @@ export type {
|
|
|
37
37
|
ContextMenuSubmenuProps,
|
|
38
38
|
ContextMenuSubmenuTriggerProps,
|
|
39
39
|
ContextMenuTriggerProps,
|
|
40
|
-
} from "./components/context-menu/index
|
|
40
|
+
} from "./components/context-menu/index";
|
|
41
41
|
|
|
42
42
|
export {
|
|
43
43
|
DropdownMenu,
|
|
@@ -57,7 +57,7 @@ export {
|
|
|
57
57
|
DropdownMenuSubmenu,
|
|
58
58
|
DropdownMenuSubmenuTrigger,
|
|
59
59
|
DropdownMenuTrigger,
|
|
60
|
-
} from "./components/dropdown-menu/index
|
|
60
|
+
} from "./components/dropdown-menu/index";
|
|
61
61
|
export type {
|
|
62
62
|
DropdownMenuCheckboxItemIndicatorProps,
|
|
63
63
|
DropdownMenuCheckboxItemProps,
|
|
@@ -76,7 +76,7 @@ export type {
|
|
|
76
76
|
DropdownMenuSubmenuProps,
|
|
77
77
|
DropdownMenuSubmenuTriggerProps,
|
|
78
78
|
DropdownMenuTriggerProps,
|
|
79
|
-
} from "./components/dropdown-menu/index
|
|
79
|
+
} from "./components/dropdown-menu/index";
|
|
80
80
|
|
|
81
81
|
export {
|
|
82
82
|
Tooltip,
|
|
@@ -84,14 +84,14 @@ export {
|
|
|
84
84
|
TooltipPortal,
|
|
85
85
|
TooltipProvider,
|
|
86
86
|
TooltipTrigger,
|
|
87
|
-
} from "./components/tooltip/index
|
|
87
|
+
} from "./components/tooltip/index";
|
|
88
88
|
export type {
|
|
89
89
|
TooltipContentProps,
|
|
90
90
|
TooltipPortalProps,
|
|
91
91
|
TooltipProps,
|
|
92
92
|
TooltipProviderProps,
|
|
93
93
|
TooltipTriggerProps,
|
|
94
|
-
} from "./components/tooltip/index
|
|
94
|
+
} from "./components/tooltip/index";
|
|
95
95
|
|
|
96
96
|
export {
|
|
97
97
|
Popover,
|
|
@@ -107,7 +107,7 @@ export {
|
|
|
107
107
|
PopoverTitle,
|
|
108
108
|
PopoverTrigger,
|
|
109
109
|
PopoverViewport,
|
|
110
|
-
} from "./components/popover/index
|
|
110
|
+
} from "./components/popover/index";
|
|
111
111
|
export type {
|
|
112
112
|
PopoverArrowProps,
|
|
113
113
|
PopoverBackdropProps,
|
|
@@ -122,18 +122,18 @@ export type {
|
|
|
122
122
|
PopoverTitleProps,
|
|
123
123
|
PopoverTriggerProps,
|
|
124
124
|
PopoverViewportProps,
|
|
125
|
-
} from "./components/popover/index
|
|
125
|
+
} from "./components/popover/index";
|
|
126
126
|
|
|
127
|
-
export { Label, LabelAsterisk, LabelOptional, LabelSub } from "./components/label/index
|
|
127
|
+
export { Label, LabelAsterisk, LabelOptional, LabelSub } from "./components/label/index";
|
|
128
128
|
export type {
|
|
129
129
|
LabelAsteriskProps,
|
|
130
130
|
LabelOptionalProps,
|
|
131
131
|
LabelProps,
|
|
132
132
|
LabelSubProps,
|
|
133
|
-
} from "./components/label/index
|
|
133
|
+
} from "./components/label/index";
|
|
134
134
|
|
|
135
|
-
export { Input } from "./components/input/index
|
|
136
|
-
export type { InputProps } from "./components/input/index
|
|
135
|
+
export { Input } from "./components/input/index";
|
|
136
|
+
export type { InputProps } from "./components/input/index";
|
|
137
137
|
|
|
138
138
|
export {
|
|
139
139
|
Field,
|
|
@@ -143,7 +143,7 @@ export {
|
|
|
143
143
|
FieldItem,
|
|
144
144
|
FieldLabel,
|
|
145
145
|
FieldValidity,
|
|
146
|
-
} from "./components/field/index
|
|
146
|
+
} from "./components/field/index";
|
|
147
147
|
export type {
|
|
148
148
|
FieldControlProps,
|
|
149
149
|
FieldDescriptionProps,
|
|
@@ -152,15 +152,15 @@ export type {
|
|
|
152
152
|
FieldLabelProps,
|
|
153
153
|
FieldProps,
|
|
154
154
|
FieldValidityProps,
|
|
155
|
-
} from "./components/field/index
|
|
155
|
+
} from "./components/field/index";
|
|
156
156
|
|
|
157
|
-
export { InputGroup, InputGroupAddon, InputGroupInput } from "./components/input-group/index
|
|
157
|
+
export { InputGroup, InputGroupAddon, InputGroupInput } from "./components/input-group/index";
|
|
158
158
|
export type {
|
|
159
159
|
InputGroupAddonProps,
|
|
160
160
|
InputGroupAddonTextProps,
|
|
161
161
|
InputGroupInputProps,
|
|
162
162
|
InputGroupProps,
|
|
163
|
-
} from "./components/input-group/index
|
|
163
|
+
} from "./components/input-group/index";
|
|
164
164
|
|
|
165
165
|
export {
|
|
166
166
|
Combobox,
|
|
@@ -188,7 +188,7 @@ export {
|
|
|
188
188
|
ComboboxTrigger,
|
|
189
189
|
ComboboxTriggerIndicator,
|
|
190
190
|
ComboboxValue,
|
|
191
|
-
} from "./components/combobox/index
|
|
191
|
+
} from "./components/combobox/index";
|
|
192
192
|
export type {
|
|
193
193
|
ComboboxChipProps,
|
|
194
194
|
ComboboxChipRemoveProps,
|
|
@@ -215,7 +215,7 @@ export type {
|
|
|
215
215
|
ComboboxTriggerIndicatorProps,
|
|
216
216
|
ComboboxTriggerProps,
|
|
217
217
|
ComboboxValueProps,
|
|
218
|
-
} from "./components/combobox/index
|
|
218
|
+
} from "./components/combobox/index";
|
|
219
219
|
|
|
220
220
|
export {
|
|
221
221
|
Select,
|
|
@@ -236,7 +236,7 @@ export {
|
|
|
236
236
|
SelectSeparator,
|
|
237
237
|
SelectTrigger,
|
|
238
238
|
SelectValue,
|
|
239
|
-
} from "./components/select/index
|
|
239
|
+
} from "./components/select/index";
|
|
240
240
|
export type {
|
|
241
241
|
SelectArrowProps,
|
|
242
242
|
SelectContentProps,
|
|
@@ -256,37 +256,37 @@ export type {
|
|
|
256
256
|
SelectSeparatorProps,
|
|
257
257
|
SelectTriggerProps,
|
|
258
258
|
SelectValueProps,
|
|
259
|
-
} from "./components/select/index
|
|
259
|
+
} from "./components/select/index";
|
|
260
260
|
|
|
261
|
-
export { RadioGroup, RadioGroupIndicator, RadioGroupItem } from "./components/radio-group/index
|
|
261
|
+
export { RadioGroup, RadioGroupIndicator, RadioGroupItem } from "./components/radio-group/index";
|
|
262
262
|
export type {
|
|
263
263
|
RadioGroupIndicatorProps,
|
|
264
264
|
RadioGroupItemProps,
|
|
265
265
|
RadioGroupProps,
|
|
266
|
-
} from "./components/radio-group/index
|
|
266
|
+
} from "./components/radio-group/index";
|
|
267
267
|
|
|
268
268
|
export {
|
|
269
269
|
SegmentedControl,
|
|
270
270
|
SegmentedControlCount,
|
|
271
271
|
SegmentedControlItem,
|
|
272
272
|
SegmentedControlLabel,
|
|
273
|
-
} from "./components/segmented-control/index
|
|
273
|
+
} from "./components/segmented-control/index";
|
|
274
274
|
export type {
|
|
275
275
|
SegmentedControlCountProps,
|
|
276
276
|
SegmentedControlItemProps,
|
|
277
277
|
SegmentedControlLabelProps,
|
|
278
278
|
SegmentedControlProps,
|
|
279
|
-
} from "./components/segmented-control/index
|
|
279
|
+
} from "./components/segmented-control/index";
|
|
280
280
|
|
|
281
|
-
export { Textarea, TextareaCounter, TextareaGroup } from "./components/textarea/index
|
|
281
|
+
export { Textarea, TextareaCounter, TextareaGroup } from "./components/textarea/index";
|
|
282
282
|
export type {
|
|
283
283
|
TextareaCounterProps,
|
|
284
284
|
TextareaGroupProps,
|
|
285
285
|
TextareaProps,
|
|
286
|
-
} from "./components/textarea/index
|
|
286
|
+
} from "./components/textarea/index";
|
|
287
287
|
|
|
288
|
-
export { Badge } from "./components/badge/index
|
|
289
|
-
export type { BadgeProps } from "./components/badge/index
|
|
288
|
+
export { Badge } from "./components/badge/index";
|
|
289
|
+
export type { BadgeProps } from "./components/badge/index";
|
|
290
290
|
|
|
291
291
|
export {
|
|
292
292
|
Avatar,
|
|
@@ -296,7 +296,7 @@ export {
|
|
|
296
296
|
AvatarGroupCount,
|
|
297
297
|
AvatarImage,
|
|
298
298
|
type AvatarSize,
|
|
299
|
-
} from "./components/avatar/index
|
|
299
|
+
} from "./components/avatar/index";
|
|
300
300
|
export type {
|
|
301
301
|
AvatarBadgeProps,
|
|
302
302
|
AvatarFallbackProps,
|
|
@@ -304,31 +304,31 @@ export type {
|
|
|
304
304
|
AvatarGroupProps,
|
|
305
305
|
AvatarImageProps,
|
|
306
306
|
AvatarProps,
|
|
307
|
-
} from "./components/avatar/index
|
|
307
|
+
} from "./components/avatar/index";
|
|
308
308
|
|
|
309
|
-
export { InlineCode } from "./components/inline-code/index
|
|
310
|
-
export type { InlineCodeProps } from "./components/inline-code/index
|
|
309
|
+
export { InlineCode } from "./components/inline-code/index";
|
|
310
|
+
export type { InlineCodeProps } from "./components/inline-code/index";
|
|
311
311
|
|
|
312
|
-
export { Kbd, KbdGroup } from "./components/kbd/index
|
|
313
|
-
export type { KbdGroupProps, KbdProps } from "./components/kbd/index
|
|
312
|
+
export { Kbd, KbdGroup } from "./components/kbd/index";
|
|
313
|
+
export type { KbdGroupProps, KbdProps } from "./components/kbd/index";
|
|
314
314
|
|
|
315
|
-
export { Text, TextHeading, TextMono, TextSans } from "./components/text/index
|
|
316
|
-
export type { TextHeadingProps, TextMonoProps, TextSansProps } from "./components/text/index
|
|
315
|
+
export { Text, TextHeading, TextMono, TextSans } from "./components/text/index";
|
|
316
|
+
export type { TextHeadingProps, TextMonoProps, TextSansProps } from "./components/text/index";
|
|
317
317
|
|
|
318
|
-
export { Status } from "./components/status/index
|
|
319
|
-
export type { StatusProps } from "./components/status/index
|
|
318
|
+
export { Status } from "./components/status/index";
|
|
319
|
+
export type { StatusProps } from "./components/status/index";
|
|
320
320
|
|
|
321
|
-
export { Spinner } from "./components/spinner/index
|
|
322
|
-
export type { SpinnerProps } from "./components/spinner/index
|
|
321
|
+
export { Spinner } from "./components/spinner/index";
|
|
322
|
+
export type { SpinnerProps } from "./components/spinner/index";
|
|
323
323
|
|
|
324
|
-
export { Banner, BannerAction, BannerDescription, BannerTitle } from "./components/banner/index
|
|
324
|
+
export { Banner, BannerAction, BannerDescription, BannerTitle } from "./components/banner/index";
|
|
325
325
|
export type {
|
|
326
326
|
BannerActionProps,
|
|
327
327
|
BannerDescriptionProps,
|
|
328
328
|
BannerProps,
|
|
329
329
|
BannerStatus,
|
|
330
330
|
BannerTitleProps,
|
|
331
|
-
} from "./components/banner/index
|
|
331
|
+
} from "./components/banner/index";
|
|
332
332
|
|
|
333
333
|
export {
|
|
334
334
|
EmptyState,
|
|
@@ -337,7 +337,7 @@ export {
|
|
|
337
337
|
EmptyStateDescription,
|
|
338
338
|
EmptyStateIcon,
|
|
339
339
|
EmptyStateTitle,
|
|
340
|
-
} from "./components/empty-state/index
|
|
340
|
+
} from "./components/empty-state/index";
|
|
341
341
|
export type {
|
|
342
342
|
EmptyStateActionsProps,
|
|
343
343
|
EmptyStateContentProps,
|
|
@@ -345,7 +345,7 @@ export type {
|
|
|
345
345
|
EmptyStateIconProps,
|
|
346
346
|
EmptyStateProps,
|
|
347
347
|
EmptyStateTitleProps,
|
|
348
|
-
} from "./components/empty-state/index
|
|
348
|
+
} from "./components/empty-state/index";
|
|
349
349
|
|
|
350
350
|
export {
|
|
351
351
|
NotificationCenter,
|
|
@@ -365,7 +365,7 @@ export {
|
|
|
365
365
|
NotificationCenterScroller,
|
|
366
366
|
NotificationCenterTitle,
|
|
367
367
|
NotificationCenterTrigger,
|
|
368
|
-
} from "./components/notification-center/index
|
|
368
|
+
} from "./components/notification-center/index";
|
|
369
369
|
export type {
|
|
370
370
|
NotificationCenterActionButtonProps,
|
|
371
371
|
NotificationCenterCountProps,
|
|
@@ -385,7 +385,7 @@ export type {
|
|
|
385
385
|
NotificationCenterScrollerProps,
|
|
386
386
|
NotificationCenterTitleProps,
|
|
387
387
|
NotificationCenterTriggerProps,
|
|
388
|
-
} from "./components/notification-center/index
|
|
388
|
+
} from "./components/notification-center/index";
|
|
389
389
|
|
|
390
390
|
export {
|
|
391
391
|
SortableTabsList,
|
|
@@ -398,7 +398,7 @@ export {
|
|
|
398
398
|
TabsPanel,
|
|
399
399
|
TabsTab,
|
|
400
400
|
useOrderedTabs,
|
|
401
|
-
} from "./components/tabs/index
|
|
401
|
+
} from "./components/tabs/index";
|
|
402
402
|
export type {
|
|
403
403
|
OrderedTabItem,
|
|
404
404
|
SortableTabsListProps,
|
|
@@ -410,12 +410,15 @@ export type {
|
|
|
410
410
|
TabsPanelProps,
|
|
411
411
|
TabsProps,
|
|
412
412
|
TabsTabProps,
|
|
413
|
-
} from "./components/tabs/index
|
|
413
|
+
} from "./components/tabs/index";
|
|
414
414
|
|
|
415
|
-
export {
|
|
416
|
-
export {
|
|
417
|
-
|
|
418
|
-
export {
|
|
415
|
+
export { Separator } from "./components/separator/index";
|
|
416
|
+
export type { SeparatorProps } from "./components/separator/index";
|
|
417
|
+
|
|
418
|
+
export { cn } from "./lib/cn";
|
|
419
|
+
export { ThemeProvider } from "./lib/theme/theme-provider";
|
|
420
|
+
export type { ThemeProviderProps } from "./lib/theme/theme-provider";
|
|
421
|
+
export { useTheme, useThemeFamily } from "./lib/theme/use-theme";
|
|
419
422
|
export type {
|
|
420
423
|
ResolvedThemeMode,
|
|
421
424
|
SetTheme,
|
|
@@ -423,4 +426,4 @@ export type {
|
|
|
423
426
|
Theme,
|
|
424
427
|
ThemeMode,
|
|
425
428
|
ThemeState,
|
|
426
|
-
} from "./lib/theme/theme-context
|
|
429
|
+
} from "./lib/theme/theme-context";
|
package/src/legacy/Checkbox.tsx
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// and forcing one row layout would just push complexity into props.
|
|
23
23
|
|
|
24
24
|
import type { InputHTMLAttributes } from "react";
|
|
25
|
-
import CheckMarker, { type CheckMarkerSize } from "./CheckMarker
|
|
25
|
+
import CheckMarker, { type CheckMarkerSize } from "./CheckMarker";
|
|
26
26
|
|
|
27
27
|
type Size = Extract<CheckMarkerSize, "sm" | "md">;
|
|
28
28
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from "react";
|
|
2
|
-
import { Badge } from "./Badge
|
|
2
|
+
import { Badge } from "./Badge";
|
|
3
3
|
|
|
4
4
|
export interface ExperimentalBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
5
5
|
// Callers can add positional tweaks (e.g. `-translate-y-px` inside a
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef, useEffect, type HTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
import { AlertTriangle, CheckCircle2, Info } from "lucide-react";
|
|
3
|
-
import EmptyState from "./EmptyState
|
|
4
|
-
import SectionEyebrow from "./SectionEyebrow
|
|
3
|
+
import EmptyState from "./EmptyState";
|
|
4
|
+
import SectionEyebrow from "./SectionEyebrow";
|
|
5
5
|
|
|
6
6
|
export type NotificationCenterKind = "error" | "warning" | "info" | "success";
|
|
7
7
|
export type NotificationCenterViewport = "desktop" | "mobile";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArrowLeft } from "lucide-react";
|
|
2
2
|
import type { HTMLAttributes, ReactNode } from "react";
|
|
3
|
-
import Button from "./button
|
|
3
|
+
import Button from "./button";
|
|
4
4
|
|
|
5
5
|
type DivPassthroughProps = HTMLAttributes<HTMLDivElement> &
|
|
6
6
|
Record<`data-${string}`, string | undefined>;
|
|
@@ -131,7 +131,12 @@ export default function ReorderablePanelTabs<T extends string>({
|
|
|
131
131
|
|
|
132
132
|
return (
|
|
133
133
|
<div className="overflow-x-auto border-b-2 border-black bg-white scrollbar-none">
|
|
134
|
-
<DndContext
|
|
134
|
+
<DndContext
|
|
135
|
+
autoScroll={false}
|
|
136
|
+
sensors={sensors}
|
|
137
|
+
collisionDetection={closestCenter}
|
|
138
|
+
onDragEnd={handleDragEnd}
|
|
139
|
+
>
|
|
135
140
|
<SortableContext items={tabIds} strategy={horizontalListSortingStrategy}>
|
|
136
141
|
<div className="flex min-w-max">
|
|
137
142
|
{tabs.map((tab) => (
|
package/src/legacy/Spinner.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { KeyboardEvent, ReactNode } from "react";
|
|
2
2
|
import { Button as BaseButton } from "@base-ui/react/button";
|
|
3
3
|
import { Check } from "lucide-react";
|
|
4
|
-
import { tv } from "../lib/tv
|
|
5
|
-
import { useThemeFamily } from "../lib/theme/use-theme
|
|
4
|
+
import { tv } from "../lib/tv";
|
|
5
|
+
import { useThemeFamily } from "../lib/theme/use-theme";
|
|
6
6
|
|
|
7
7
|
// Single-select popover content: a header, an optional search box, and a list of
|
|
8
8
|
// checkable rows (the trailing ✓ is the selected indicator; hover is the shared
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useEffect, useRef, type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
2
|
import { Button as BaseButton } from "@base-ui/react/button";
|
|
3
3
|
import { Check, Plus } from "lucide-react";
|
|
4
|
-
import { tv } from "../lib/tv
|
|
5
|
-
import { useThemeFamily } from "../lib/theme/use-theme
|
|
4
|
+
import { tv } from "../lib/tv";
|
|
5
|
+
import { useThemeFamily } from "../lib/theme/use-theme";
|
|
6
6
|
|
|
7
7
|
// "Switch server" dropdown content: joined servers + join-community actions + a
|
|
8
8
|
// "switch or create" action. App-domain data and navigation stay caller-owned,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { use } from "react";
|
|
2
|
-
import { ThemeContext, ThemeStateContext, type Theme, type ThemeState } from "./theme-context
|
|
2
|
+
import { ThemeContext, ThemeStateContext, type Theme, type ThemeState } from "./theme-context";
|
|
3
3
|
|
|
4
4
|
/** Read the active style family for theme-aware component recipes. */
|
|
5
5
|
export function useThemeFamily(): Theme {
|
package/src/styles.css
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
@import "./fonts/brutal.css";
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300..700&family=Hanken+Grotesk:wght@300..700&display=swap");
|
|
3
2
|
|
|
4
3
|
/* Pure token contract. No legacy action/surface/destructive/component aliases. */
|
|
5
4
|
|
|
@@ -303,9 +302,9 @@
|
|
|
303
302
|
--theme-shadow-lg: 4px 4px 0px var(--color-black);
|
|
304
303
|
--theme-shadow-xl: 6px 6px 0px var(--line-strong);
|
|
305
304
|
|
|
306
|
-
--heading-font: "
|
|
307
|
-
--sans-font: "
|
|
308
|
-
--mono-font: "Geist Mono
|
|
305
|
+
--heading-font: "Hanken Grotesk", system-ui, sans-serif;
|
|
306
|
+
--sans-font: "Hanken Grotesk", system-ui, sans-serif;
|
|
307
|
+
--mono-font: "Geist Mono", ui-monospace, monospace;
|
|
309
308
|
}
|
|
310
309
|
|
|
311
310
|
[data-theme="elegant"] {
|
|
@@ -408,7 +407,7 @@
|
|
|
408
407
|
|
|
409
408
|
--heading-font: "Inter", system-ui, sans-serif;
|
|
410
409
|
--sans-font: "Geist", system-ui, sans-serif;
|
|
411
|
-
--mono-font: "Geist Mono
|
|
410
|
+
--mono-font: "Geist Mono", ui-monospace, monospace;
|
|
412
411
|
}
|
|
413
412
|
|
|
414
413
|
@media (prefers-color-scheme: dark) {
|