@slipstream-ui/core 0.11.1 → 0.11.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.
- package/dist/index.d.mts +33 -2
- package/dist/index.d.ts +33 -2
- package/dist/index.js +61 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +328 -275
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +17 -5
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +9 -3
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +1 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +1 -1
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +1 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/badge/Badge.d.ts +12 -2
- package/dist/src/components/badge/Badge.js +44 -4
- package/dist/src/components/badge/Badge.js.map +1 -1
- package/dist/src/components/badge/Badge.mjs +46 -6
- package/dist/src/components/badge/Badge.mjs.map +1 -1
- package/dist/src/components/entity-card/EntityCard.d.ts +21 -0
- package/dist/src/components/entity-card/EntityCard.js +17 -4
- package/dist/src/components/entity-card/EntityCard.js.map +1 -1
- package/dist/src/components/entity-card/EntityCard.mjs +17 -4
- package/dist/src/components/entity-card/EntityCard.mjs.map +1 -1
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/components/badge/Badge.test.tsx +46 -0
- package/src/components/badge/Badge.tsx +58 -4
- package/src/components/entity-card/EntityCard.test.tsx +27 -0
- package/src/components/entity-card/EntityCard.tsx +22 -6
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +17 -5
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +1 -1
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +9 -3
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +1 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +1 -1
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -299,19 +299,29 @@ declare const InputGroupAddon: React.ForwardRefExoticComponent<React.HTMLAttribu
|
|
|
299
299
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
300
300
|
|
|
301
301
|
declare const badgeVariants: (props?: ({
|
|
302
|
-
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "secondary" | "neutral" | "accent" | null | undefined;
|
|
302
|
+
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "neutral" | "accent" | "outline-danger" | null | undefined;
|
|
303
303
|
size?: "sm" | "lg" | "md" | null | undefined;
|
|
304
304
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
305
305
|
type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants> & {
|
|
306
306
|
/** Render the child element (e.g. a router Link) with badge styling. */
|
|
307
307
|
asChild?: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Leading status dot, colored to match the variant. Decorative only —
|
|
310
|
+
* pair it with text that carries the meaning.
|
|
311
|
+
*/
|
|
312
|
+
dot?: boolean;
|
|
308
313
|
};
|
|
309
314
|
declare const Badge: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
310
|
-
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "secondary" | "neutral" | "accent" | null | undefined;
|
|
315
|
+
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "neutral" | "accent" | "outline-danger" | null | undefined;
|
|
311
316
|
size?: "sm" | "lg" | "md" | null | undefined;
|
|
312
317
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
313
318
|
/** Render the child element (e.g. a router Link) with badge styling. */
|
|
314
319
|
asChild?: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Leading status dot, colored to match the variant. Decorative only —
|
|
322
|
+
* pair it with text that carries the meaning.
|
|
323
|
+
*/
|
|
324
|
+
dot?: boolean;
|
|
315
325
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
316
326
|
|
|
317
327
|
type BottomNavItem = {
|
|
@@ -3564,6 +3574,13 @@ type EntityCardProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
3564
3574
|
tags?: string[];
|
|
3565
3575
|
/** Profile destination. */
|
|
3566
3576
|
href?: string;
|
|
3577
|
+
/**
|
|
3578
|
+
* Makes the whole card a single link (stretched-link pattern): the name
|
|
3579
|
+
* becomes the link and its overlay covers the card, so one target gets one
|
|
3580
|
+
* hover state and one focus ring. Interactive `actions` stay clickable above
|
|
3581
|
+
* the overlay; the redundant footer "View profile" link is suppressed.
|
|
3582
|
+
*/
|
|
3583
|
+
cardHref?: string;
|
|
3567
3584
|
/** Custom link element for routers. */
|
|
3568
3585
|
linkComponent?: React.ElementType;
|
|
3569
3586
|
/** Extra footer actions. */
|
|
@@ -3591,6 +3608,13 @@ declare const EntityCard: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
3591
3608
|
tags?: string[];
|
|
3592
3609
|
/** Profile destination. */
|
|
3593
3610
|
href?: string;
|
|
3611
|
+
/**
|
|
3612
|
+
* Makes the whole card a single link (stretched-link pattern): the name
|
|
3613
|
+
* becomes the link and its overlay covers the card, so one target gets one
|
|
3614
|
+
* hover state and one focus ring. Interactive `actions` stay clickable above
|
|
3615
|
+
* the overlay; the redundant footer "View profile" link is suppressed.
|
|
3616
|
+
*/
|
|
3617
|
+
cardHref?: string;
|
|
3594
3618
|
/** Custom link element for routers. */
|
|
3595
3619
|
linkComponent?: React.ElementType;
|
|
3596
3620
|
/** Extra footer actions. */
|
|
@@ -3614,6 +3638,13 @@ declare const ProfileCard: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
3614
3638
|
tags?: string[];
|
|
3615
3639
|
/** Profile destination. */
|
|
3616
3640
|
href?: string;
|
|
3641
|
+
/**
|
|
3642
|
+
* Makes the whole card a single link (stretched-link pattern): the name
|
|
3643
|
+
* becomes the link and its overlay covers the card, so one target gets one
|
|
3644
|
+
* hover state and one focus ring. Interactive `actions` stay clickable above
|
|
3645
|
+
* the overlay; the redundant footer "View profile" link is suppressed.
|
|
3646
|
+
*/
|
|
3647
|
+
cardHref?: string;
|
|
3617
3648
|
/** Custom link element for routers. */
|
|
3618
3649
|
linkComponent?: React.ElementType;
|
|
3619
3650
|
/** Extra footer actions. */
|
package/dist/index.d.ts
CHANGED
|
@@ -299,19 +299,29 @@ declare const InputGroupAddon: React.ForwardRefExoticComponent<React.HTMLAttribu
|
|
|
299
299
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
300
300
|
|
|
301
301
|
declare const badgeVariants: (props?: ({
|
|
302
|
-
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "secondary" | "neutral" | "accent" | null | undefined;
|
|
302
|
+
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "neutral" | "accent" | "outline-danger" | null | undefined;
|
|
303
303
|
size?: "sm" | "lg" | "md" | null | undefined;
|
|
304
304
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
305
305
|
type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants> & {
|
|
306
306
|
/** Render the child element (e.g. a router Link) with badge styling. */
|
|
307
307
|
asChild?: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Leading status dot, colored to match the variant. Decorative only —
|
|
310
|
+
* pair it with text that carries the meaning.
|
|
311
|
+
*/
|
|
312
|
+
dot?: boolean;
|
|
308
313
|
};
|
|
309
314
|
declare const Badge: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
310
|
-
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "secondary" | "neutral" | "accent" | null | undefined;
|
|
315
|
+
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "neutral" | "accent" | "outline-danger" | null | undefined;
|
|
311
316
|
size?: "sm" | "lg" | "md" | null | undefined;
|
|
312
317
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
313
318
|
/** Render the child element (e.g. a router Link) with badge styling. */
|
|
314
319
|
asChild?: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Leading status dot, colored to match the variant. Decorative only —
|
|
322
|
+
* pair it with text that carries the meaning.
|
|
323
|
+
*/
|
|
324
|
+
dot?: boolean;
|
|
315
325
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
316
326
|
|
|
317
327
|
type BottomNavItem = {
|
|
@@ -3564,6 +3574,13 @@ type EntityCardProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
3564
3574
|
tags?: string[];
|
|
3565
3575
|
/** Profile destination. */
|
|
3566
3576
|
href?: string;
|
|
3577
|
+
/**
|
|
3578
|
+
* Makes the whole card a single link (stretched-link pattern): the name
|
|
3579
|
+
* becomes the link and its overlay covers the card, so one target gets one
|
|
3580
|
+
* hover state and one focus ring. Interactive `actions` stay clickable above
|
|
3581
|
+
* the overlay; the redundant footer "View profile" link is suppressed.
|
|
3582
|
+
*/
|
|
3583
|
+
cardHref?: string;
|
|
3567
3584
|
/** Custom link element for routers. */
|
|
3568
3585
|
linkComponent?: React.ElementType;
|
|
3569
3586
|
/** Extra footer actions. */
|
|
@@ -3591,6 +3608,13 @@ declare const EntityCard: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
3591
3608
|
tags?: string[];
|
|
3592
3609
|
/** Profile destination. */
|
|
3593
3610
|
href?: string;
|
|
3611
|
+
/**
|
|
3612
|
+
* Makes the whole card a single link (stretched-link pattern): the name
|
|
3613
|
+
* becomes the link and its overlay covers the card, so one target gets one
|
|
3614
|
+
* hover state and one focus ring. Interactive `actions` stay clickable above
|
|
3615
|
+
* the overlay; the redundant footer "View profile" link is suppressed.
|
|
3616
|
+
*/
|
|
3617
|
+
cardHref?: string;
|
|
3594
3618
|
/** Custom link element for routers. */
|
|
3595
3619
|
linkComponent?: React.ElementType;
|
|
3596
3620
|
/** Extra footer actions. */
|
|
@@ -3614,6 +3638,13 @@ declare const ProfileCard: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
3614
3638
|
tags?: string[];
|
|
3615
3639
|
/** Profile destination. */
|
|
3616
3640
|
href?: string;
|
|
3641
|
+
/**
|
|
3642
|
+
* Makes the whole card a single link (stretched-link pattern): the name
|
|
3643
|
+
* becomes the link and its overlay covers the card, so one target gets one
|
|
3644
|
+
* hover state and one focus ring. Interactive `actions` stay clickable above
|
|
3645
|
+
* the overlay; the redundant footer "View profile" link is suppressed.
|
|
3646
|
+
*/
|
|
3647
|
+
cardHref?: string;
|
|
3617
3648
|
/** Custom link element for routers. */
|
|
3618
3649
|
linkComponent?: React.ElementType;
|
|
3619
3650
|
/** Extra footer actions. */
|
package/dist/index.js
CHANGED
|
@@ -997,7 +997,14 @@ var badgeVariants = (0, import_class_variance_authority2.cva)(
|
|
|
997
997
|
info: "border-transparent bg-info text-info-foreground hover:bg-info/80",
|
|
998
998
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
999
999
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
1000
|
-
outline: "text-foreground"
|
|
1000
|
+
outline: "text-foreground",
|
|
1001
|
+
// Quiet outline tones for status metadata (directory chips, filter
|
|
1002
|
+
// tags): tinted border and ink text, subtle tint on hover. Follows the
|
|
1003
|
+
// Alert/Button outline language.
|
|
1004
|
+
"outline-success": "border-success/50 bg-background text-success-ink hover:bg-success/10",
|
|
1005
|
+
"outline-warning": "border-warning/50 bg-background text-warning-ink hover:bg-warning/10",
|
|
1006
|
+
"outline-info": "border-info/50 bg-background text-info-ink hover:bg-info/10",
|
|
1007
|
+
"outline-danger": "border-destructive/50 bg-background text-destructive hover:bg-destructive/10"
|
|
1001
1008
|
},
|
|
1002
1009
|
size: {
|
|
1003
1010
|
sm: "px-2 py-0 text-[11px]",
|
|
@@ -1011,10 +1018,43 @@ var badgeVariants = (0, import_class_variance_authority2.cva)(
|
|
|
1011
1018
|
}
|
|
1012
1019
|
}
|
|
1013
1020
|
);
|
|
1021
|
+
var dotVariants = {
|
|
1022
|
+
default: "bg-primary-foreground",
|
|
1023
|
+
primary: "bg-primary-foreground",
|
|
1024
|
+
neutral: "bg-muted-foreground",
|
|
1025
|
+
accent: "bg-accent-foreground",
|
|
1026
|
+
danger: "bg-destructive-foreground",
|
|
1027
|
+
destructive: "bg-destructive-foreground",
|
|
1028
|
+
success: "bg-success-foreground",
|
|
1029
|
+
warning: "bg-warning-foreground",
|
|
1030
|
+
info: "bg-info-foreground",
|
|
1031
|
+
secondary: "bg-secondary-foreground",
|
|
1032
|
+
outline: "bg-foreground",
|
|
1033
|
+
"outline-success": "bg-success",
|
|
1034
|
+
"outline-warning": "bg-warning",
|
|
1035
|
+
"outline-info": "bg-info",
|
|
1036
|
+
"outline-danger": "bg-destructive"
|
|
1037
|
+
};
|
|
1014
1038
|
var Badge = React11.forwardRef(
|
|
1015
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1039
|
+
({ className, variant, size, asChild = false, dot = false, children, ...props }, ref) => {
|
|
1040
|
+
const classNames = cn(badgeVariants({ variant, size }), dot && "gap-1.5", className);
|
|
1041
|
+
const dotEl = dot ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1042
|
+
"span",
|
|
1043
|
+
{
|
|
1044
|
+
"aria-hidden": "true",
|
|
1045
|
+
className: cn("h-1.5 w-1.5 shrink-0 rounded-full", dotVariants[variant ?? "default"])
|
|
1046
|
+
}
|
|
1047
|
+
) : null;
|
|
1048
|
+
if (asChild) {
|
|
1049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_react_slot2.Slot, { ref, className: classNames, ...props, children: [
|
|
1050
|
+
dotEl,
|
|
1051
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_slot2.Slottable, { children })
|
|
1052
|
+
] });
|
|
1053
|
+
}
|
|
1054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { ref, className: classNames, ...props, children: [
|
|
1055
|
+
dotEl,
|
|
1056
|
+
children
|
|
1057
|
+
] });
|
|
1018
1058
|
}
|
|
1019
1059
|
);
|
|
1020
1060
|
Badge.displayName = "Badge";
|
|
@@ -7176,17 +7216,30 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7176
7216
|
stats,
|
|
7177
7217
|
tags,
|
|
7178
7218
|
href,
|
|
7219
|
+
cardHref,
|
|
7179
7220
|
linkComponent,
|
|
7180
7221
|
actions,
|
|
7181
7222
|
className,
|
|
7182
7223
|
...props
|
|
7183
7224
|
}, ref) {
|
|
7184
7225
|
const Link3 = linkComponent ?? "a";
|
|
7185
|
-
|
|
7226
|
+
const stretched = Boolean(cardHref);
|
|
7227
|
+
const nameHref = cardHref ?? href;
|
|
7228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7186
7229
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
7187
7230
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Avatar, { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AvatarFallback, { children: initials(name) }) }) }),
|
|
7188
7231
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7189
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children:
|
|
7232
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7233
|
+
Link3,
|
|
7234
|
+
{
|
|
7235
|
+
href: nameHref,
|
|
7236
|
+
className: cn(
|
|
7237
|
+
"rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7238
|
+
stretched && 'after:absolute after:inset-0 after:content-[""]'
|
|
7239
|
+
),
|
|
7240
|
+
children: name
|
|
7241
|
+
}
|
|
7242
|
+
) : name }),
|
|
7190
7243
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
7191
7244
|
location && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7192
7245
|
] })
|
|
@@ -7199,8 +7252,8 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7199
7252
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7200
7253
|
] }, stat.label)) })
|
|
7201
7254
|
] }),
|
|
7202
|
-
(href || actions) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
7203
|
-
href && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7255
|
+
(href && !stretched || actions) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardFooter, { className: cn("flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", stretched && "relative z-10"), children: [
|
|
7256
|
+
href && !stretched && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7204
7257
|
Link3,
|
|
7205
7258
|
{
|
|
7206
7259
|
href,
|