@slipstream-ui/core 0.12.1 → 0.13.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.
- package/dist/index.d.mts +177 -2
- package/dist/index.d.ts +177 -2
- package/dist/index.js +229 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +221 -0
- 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 +1 -1
- 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/consent-banner.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.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 +1 -1
- 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/figure.manifest.json +105 -0
- 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/icon-button.manifest.json +101 -0
- package/dist/manifests/icon-tile.manifest.json +107 -0
- package/dist/manifests/icon.manifest.json +119 -0
- 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-toolbar.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/media-card.manifest.json +1 -1
- package/dist/manifests/media.manifest.json +142 -0
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/month-schedule.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/social-links.manifest.json +120 -0
- 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/figure/Figure.d.ts +23 -0
- package/dist/src/components/figure/Figure.js +60 -0
- package/dist/src/components/figure/Figure.js.map +1 -0
- package/dist/src/components/figure/Figure.mjs +26 -0
- package/dist/src/components/figure/Figure.mjs.map +1 -0
- package/dist/src/components/figure/index.d.ts +2 -0
- package/dist/src/components/figure/index.js +29 -0
- package/dist/src/components/figure/index.js.map +1 -0
- package/dist/src/components/figure/index.mjs +5 -0
- package/dist/src/components/figure/index.mjs.map +1 -0
- package/dist/src/components/icon/Icon.d.ts +33 -0
- package/dist/src/components/icon/Icon.js +82 -0
- package/dist/src/components/icon/Icon.js.map +1 -0
- package/dist/src/components/icon/Icon.mjs +47 -0
- package/dist/src/components/icon/Icon.mjs.map +1 -0
- package/dist/src/components/icon/index.d.ts +2 -0
- package/dist/src/components/icon/index.js +31 -0
- package/dist/src/components/icon/index.js.map +1 -0
- package/dist/src/components/icon/index.mjs +6 -0
- package/dist/src/components/icon/index.mjs.map +1 -0
- package/dist/src/components/icon-button/IconButton.d.ts +25 -0
- package/dist/src/components/icon-button/IconButton.js +60 -0
- package/dist/src/components/icon-button/IconButton.js.map +1 -0
- package/dist/src/components/icon-button/IconButton.mjs +26 -0
- package/dist/src/components/icon-button/IconButton.mjs.map +1 -0
- package/dist/src/components/icon-button/index.d.ts +2 -0
- package/dist/src/components/icon-button/index.js +29 -0
- package/dist/src/components/icon-button/index.js.map +1 -0
- package/dist/src/components/icon-button/index.mjs +5 -0
- package/dist/src/components/icon-button/index.mjs.map +1 -0
- package/dist/src/components/icon-tile/IconTile.d.ts +23 -0
- package/dist/src/components/icon-tile/IconTile.js +75 -0
- package/dist/src/components/icon-tile/IconTile.js.map +1 -0
- package/dist/src/components/icon-tile/IconTile.mjs +40 -0
- package/dist/src/components/icon-tile/IconTile.mjs.map +1 -0
- package/dist/src/components/icon-tile/index.d.ts +2 -0
- package/dist/src/components/icon-tile/index.js +31 -0
- package/dist/src/components/icon-tile/index.js.map +1 -0
- package/dist/src/components/icon-tile/index.mjs +6 -0
- package/dist/src/components/icon-tile/index.mjs.map +1 -0
- package/dist/src/components/media/Media.d.ts +48 -0
- package/dist/src/components/media/Media.js +97 -0
- package/dist/src/components/media/Media.js.map +1 -0
- package/dist/src/components/media/Media.mjs +63 -0
- package/dist/src/components/media/Media.mjs.map +1 -0
- package/dist/src/components/media/index.d.ts +2 -0
- package/dist/src/components/media/index.js +29 -0
- package/dist/src/components/media/index.js.map +1 -0
- package/dist/src/components/media/index.mjs +5 -0
- package/dist/src/components/media/index.mjs.map +1 -0
- package/dist/src/components/social-links/SocialLinks.d.ts +34 -0
- package/dist/src/components/social-links/SocialLinks.js +69 -0
- package/dist/src/components/social-links/SocialLinks.js.map +1 -0
- package/dist/src/components/social-links/SocialLinks.mjs +35 -0
- package/dist/src/components/social-links/SocialLinks.mjs.map +1 -0
- package/dist/src/components/social-links/index.d.ts +2 -0
- package/dist/src/components/social-links/index.js +29 -0
- package/dist/src/components/social-links/index.js.map +1 -0
- package/dist/src/components/social-links/index.mjs +5 -0
- package/dist/src/components/social-links/index.mjs.map +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/src/components/figure/Figure.test.tsx +54 -0
- package/src/components/figure/Figure.tsx +38 -0
- package/src/components/figure/index.ts +2 -0
- package/src/components/icon/Icon.test.tsx +70 -0
- package/src/components/icon/Icon.tsx +61 -0
- package/src/components/icon/index.ts +2 -0
- package/src/components/icon-button/IconButton.test.tsx +76 -0
- package/src/components/icon-button/IconButton.tsx +38 -0
- package/src/components/icon-button/index.ts +2 -0
- package/src/components/icon-tile/IconTile.test.tsx +63 -0
- package/src/components/icon-tile/IconTile.tsx +55 -0
- package/src/components/icon-tile/index.ts +2 -0
- package/src/components/media/Media.test.tsx +53 -0
- package/src/components/media/Media.tsx +92 -0
- package/src/components/media/index.ts +2 -0
- package/src/components/social-links/SocialLinks.test.tsx +59 -0
- package/src/components/social-links/SocialLinks.tsx +73 -0
- package/src/components/social-links/index.ts +2 -0
- package/src/index.ts +6 -0
- 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 +1 -1
- 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/consent-banner.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.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 +1 -1
- 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/figure.manifest.json +105 -0
- 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/icon-button.manifest.json +101 -0
- package/src/manifests/icon-tile.manifest.json +107 -0
- package/src/manifests/icon.manifest.json +119 -0
- 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-toolbar.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/media-card.manifest.json +1 -1
- package/src/manifests/media.manifest.json +142 -0
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/month-schedule.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/social-links.manifest.json +120 -0
- 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
|
@@ -4696,5 +4696,180 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4696
4696
|
};
|
|
4697
4697
|
} & React.RefAttributes<HTMLElement>>;
|
|
4698
4698
|
|
|
4699
|
-
|
|
4700
|
-
|
|
4699
|
+
declare const iconVariants: (props?: ({
|
|
4700
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
4701
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
4702
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4703
|
+
type IconProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconVariants> & {
|
|
4704
|
+
/**
|
|
4705
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
4706
|
+
* Alternatively pass the SVG element as children.
|
|
4707
|
+
*/
|
|
4708
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4709
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
4710
|
+
label?: string;
|
|
4711
|
+
};
|
|
4712
|
+
/**
|
|
4713
|
+
* Consistent sizing and tinting for consumer-supplied icons. Decorative by
|
|
4714
|
+
* default (`aria-hidden`); pass `label` to expose the icon to assistive tech
|
|
4715
|
+
* when it carries meaning on its own.
|
|
4716
|
+
*/
|
|
4717
|
+
declare const Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
4718
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
4719
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
4720
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
4721
|
+
/**
|
|
4722
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
4723
|
+
* Alternatively pass the SVG element as children.
|
|
4724
|
+
*/
|
|
4725
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4726
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
4727
|
+
label?: string;
|
|
4728
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
4729
|
+
|
|
4730
|
+
type IconButtonProps = Omit<ButtonProps, 'size'> & {
|
|
4731
|
+
/**
|
|
4732
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
4733
|
+
* without a label is invisible to screen readers.
|
|
4734
|
+
*/
|
|
4735
|
+
label: string;
|
|
4736
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
4737
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4738
|
+
};
|
|
4739
|
+
/**
|
|
4740
|
+
* Square icon-only button built on Button's `icon` size. `label` is required
|
|
4741
|
+
* and becomes `aria-label`, so the control always has an accessible name.
|
|
4742
|
+
*/
|
|
4743
|
+
declare const IconButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size"> & {
|
|
4744
|
+
/**
|
|
4745
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
4746
|
+
* without a label is invisible to screen readers.
|
|
4747
|
+
*/
|
|
4748
|
+
label: string;
|
|
4749
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
4750
|
+
size?: "sm" | "md" | "lg";
|
|
4751
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
4752
|
+
|
|
4753
|
+
declare const iconTileVariants: (props?: ({
|
|
4754
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
4755
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4756
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4757
|
+
type IconTileProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconTileVariants> & {
|
|
4758
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
4759
|
+
badge?: React.ReactNode;
|
|
4760
|
+
};
|
|
4761
|
+
/**
|
|
4762
|
+
* Tinted square surface for an icon — feature bullets, status markers and
|
|
4763
|
+
* empty-state accents. `badge` renders a small counter or dot over the
|
|
4764
|
+
* corner; tone pairs follow the Alert convention (ink text on a tint).
|
|
4765
|
+
*/
|
|
4766
|
+
declare const IconTile: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
4767
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
4768
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4769
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
4770
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
4771
|
+
badge?: React.ReactNode;
|
|
4772
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
4773
|
+
|
|
4774
|
+
type SocialLink = {
|
|
4775
|
+
/** Destination URL. Rendered with safe external-link attributes. */
|
|
4776
|
+
href: string;
|
|
4777
|
+
/** Accessible name for the destination (e.g. "GitHub"). */
|
|
4778
|
+
label: string;
|
|
4779
|
+
/** Optional icon element or component rendered inside the link. */
|
|
4780
|
+
icon?: React.ReactElement | React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4781
|
+
};
|
|
4782
|
+
type SocialLinksProps = React.HTMLAttributes<HTMLElement> & {
|
|
4783
|
+
links: SocialLink[];
|
|
4784
|
+
/** Accessible name for the navigation landmark (default "Social links"). */
|
|
4785
|
+
label?: string;
|
|
4786
|
+
/** Icon size passed through to Icon (default 'md'). */
|
|
4787
|
+
iconSize?: IconProps['size'];
|
|
4788
|
+
/** Icon tone (default 'muted'). */
|
|
4789
|
+
iconTone?: IconProps['tone'];
|
|
4790
|
+
};
|
|
4791
|
+
/**
|
|
4792
|
+
* Row of outbound social/profile links. Every destination is named via
|
|
4793
|
+
* `aria-label`, external links get `target="_blank" rel="noopener noreferrer"`,
|
|
4794
|
+
* and icon-only links stay accessible because the label is always applied.
|
|
4795
|
+
*/
|
|
4796
|
+
declare const SocialLinks: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4797
|
+
links: SocialLink[];
|
|
4798
|
+
/** Accessible name for the navigation landmark (default "Social links"). */
|
|
4799
|
+
label?: string;
|
|
4800
|
+
/** Icon size passed through to Icon (default 'md'). */
|
|
4801
|
+
iconSize?: IconProps["size"];
|
|
4802
|
+
/** Icon tone (default 'muted'). */
|
|
4803
|
+
iconTone?: IconProps["tone"];
|
|
4804
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4805
|
+
|
|
4806
|
+
type FigureProps = React.HTMLAttributes<HTMLElement> & {
|
|
4807
|
+
/** Caption rendered in <figcaption> below the media. */
|
|
4808
|
+
caption?: React.ReactNode;
|
|
4809
|
+
/** Optional credit/source line appended to the caption. */
|
|
4810
|
+
credit?: React.ReactNode;
|
|
4811
|
+
/** Caption alignment (default 'left'). */
|
|
4812
|
+
align?: 'left' | 'center';
|
|
4813
|
+
};
|
|
4814
|
+
/**
|
|
4815
|
+
* Semantic figure wrapper: media plus an optional caption and credit line.
|
|
4816
|
+
* Use for any illustrated or media content that needs a <figcaption>;
|
|
4817
|
+
* Media builds on this for aspect-ratio frames.
|
|
4818
|
+
*/
|
|
4819
|
+
declare const Figure: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4820
|
+
/** Caption rendered in <figcaption> below the media. */
|
|
4821
|
+
caption?: React.ReactNode;
|
|
4822
|
+
/** Optional credit/source line appended to the caption. */
|
|
4823
|
+
credit?: React.ReactNode;
|
|
4824
|
+
/** Caption alignment (default 'left'). */
|
|
4825
|
+
align?: "left" | "center";
|
|
4826
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4827
|
+
|
|
4828
|
+
type MediaProps = Omit<FigureProps, 'children'> & {
|
|
4829
|
+
/**
|
|
4830
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
4831
|
+
* aspect-ratio value such as '16/9' or '4/3'. The box reserves space so
|
|
4832
|
+
* grids never shift while media loads.
|
|
4833
|
+
*/
|
|
4834
|
+
aspect?: 'video' | 'square' | 'wide' | string;
|
|
4835
|
+
/** Image URL. When set, rendered through Image's fallback chain. */
|
|
4836
|
+
src?: string;
|
|
4837
|
+
/** Alt text for `src` media (required for meaningful images). */
|
|
4838
|
+
alt?: string;
|
|
4839
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
4840
|
+
sizes?: string;
|
|
4841
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
4842
|
+
priority?: boolean;
|
|
4843
|
+
/** Fallback content when `src` is absent or fails (e.g. a placeholder). */
|
|
4844
|
+
fallback?: React.ReactNode;
|
|
4845
|
+
/** Arbitrary media (video, embed, illustration) rendered inside the frame. */
|
|
4846
|
+
children?: React.ReactNode;
|
|
4847
|
+
};
|
|
4848
|
+
/**
|
|
4849
|
+
* Figure-level media frame: a fixed-aspect box that shows an Image (with its
|
|
4850
|
+
* fallback chain) or arbitrary children, plus an optional caption and credit
|
|
4851
|
+
* via Figure. Reserves layout space before media loads.
|
|
4852
|
+
*/
|
|
4853
|
+
declare const Media: React.ForwardRefExoticComponent<Omit<FigureProps, "children"> & {
|
|
4854
|
+
/**
|
|
4855
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
4856
|
+
* aspect-ratio value such as '16/9' or '4/3'. The box reserves space so
|
|
4857
|
+
* grids never shift while media loads.
|
|
4858
|
+
*/
|
|
4859
|
+
aspect?: "video" | "square" | "wide" | string;
|
|
4860
|
+
/** Image URL. When set, rendered through Image's fallback chain. */
|
|
4861
|
+
src?: string;
|
|
4862
|
+
/** Alt text for `src` media (required for meaningful images). */
|
|
4863
|
+
alt?: string;
|
|
4864
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
4865
|
+
sizes?: string;
|
|
4866
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
4867
|
+
priority?: boolean;
|
|
4868
|
+
/** Fallback content when `src` is absent or fails (e.g. a placeholder). */
|
|
4869
|
+
fallback?: React.ReactNode;
|
|
4870
|
+
/** Arbitrary media (video, embed, illustration) rendered inside the frame. */
|
|
4871
|
+
children?: React.ReactNode;
|
|
4872
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4873
|
+
|
|
4874
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnnouncementBar, AppShell, AppliedFilters, ArticleCard, AuthLayout, Autocomplete, Avatar, AvatarFallback, AvatarImage, Badge, Block, BottomNav, Breadcrumb, Button, ButtonGroup, CONSENT_CHANGE_EVENT, CTASection, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, ComparisonTable, ConfirmDialog, ConsentBanner, ContactStrip, Container, CoverImage, DataTable, DatePicker, DatePickerPopover, DateRangePicker, DealCard, Dialog, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Divider, DocumentCard, Drawer, EmptyState, EntityCard, FeatureGrid, FeatureRow, Fieldset, Figure, FileUpload, FilterBar, FilterChips, FilterPanel, Flex, FlexItem, Form, FormField, FormLayout, Grid, GridItem, Heading, Hero, Icon, IconButton, IconTile, Image, Input, InputGroup, InputGroupAddon, Label, Link, LinkTabs, List, ListItem, ListToolbar, LoadMore, LogoCloud, Media, MediaCard, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, MonthSchedule, MultiSelect, Newsletter, PageHeader, Pagination, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProcessSteps, ProfileCard, Progress, Prose, Radio, RadioCard, RadioGroup, RadioGroupContext, RadioGroupItem, RangeSlider, Search, Section, SectionHeading, SegmentedControl, Select, SelectMenu, Separator, Sidebar, SiteFooter, SiteHeader, Skeleton, SocialLinks, Spinner, StatBand, Stepper, Switch, Table, TableBody, TableCaption, TableCard, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Text, Textarea, ThemeToggle, TimePicker, Timeline, ToastProvider, Toaster, TombstoneCard, Tooltip, alertVariants, badgeVariants, buttonVariants, cn, documentHead, iconTileVariants, iconVariants, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, toast, useCombobox, useConsent, usePresence, useScrollSpy, useToast };
|
|
4875
|
+
export type { AccessibilityRequirement, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionSection, AccordionTriggerProps, AlertDescriptionProps, AlertProps, AlertTitleProps, AnnouncementBarProps, AntiPattern, AppShellProps, AppliedFiltersProps, ArticleCardProps, AuthLayoutProps, AutocompleteOption, AutocompleteProps, BadgeProps, BlockElement, BlockProps, BottomNavItem, BottomNavProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonProps, CTASectionProps, CTASectionTone, CalendarProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxGroupItemProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, ComboboxItem, ComparisonColumn, ComparisonRow, ComparisonTableProps, ComponentManifest, ComponentTier, CompositionRule, ConfirmDialogProps, Consent, ConsentBannerProps, ConsentPreferences, ContactItem, ContactStripProps, ContainerProps, ContainerWidth, ContentGuideline, CoverImageProps, DataTableCardBreakpoint, DataTableColumn, DataTableProps, DatePickerPopoverProps, DatePickerProps, DateRange, DateRangePickerProps, DateRangePreset, DealCardProps, DealMetric, DealStatus, DialogBodyProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogSize, DialogTitleProps, DocumentCardProps, DocumentHead, DocumentHeadInput, DocumentStatus, DrawerProps, DrawerSide, DrawerSize, EmptyStateAction, EmptyStateProps, EntityCardProps, EntityStat, FeatureGridProps, FeatureItem, FeatureRowProps, FieldsetProps, FigureProps, FileUploadProps, FilterBarProps, FilterChip, FilterChipsProps, FilterPanelProps, FilterSection, FlexItemProps, FlexProps, FormFieldLabelPlacement, FormFieldProps, FormLayoutColumns, FormLayoutProps, FormProps, FormVariant, GapValue, GridItemProps, GridProps, HeadingLevel, HeadingProps, HeroProps, IconButtonProps, IconProps, IconTileProps, ImageProps, InputGroupAddonProps, InputGroupProps, InputProps, LabelProps, LinkLikeProps, LinkProps, LinkTabsItem, LinkTabsProps, LinkVariant, ListItemProps, ListProps, ListToolbarProps, LoadMoreProps, LogoCloudProps, LogoItem, MediaCardChip, MediaCardProps, MediaProps, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, MonthScheduleLegendItem, MonthScheduleProps, MultiSelectOption, MultiSelectProps, NewsletterProps, PageHeaderProps, PaginationIcons, PaginationProps, PasswordInputProps, PopoverAnchorProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProcessStep, ProcessStepsProps, ProfileCardProps, ProgressProps, PropSchema, ProseProps, RadioCardProps, RadioGroupItemProps, RadioGroupProps, RadioProps, RangeSliderProps, SearchOption, SearchProps, SectionHeadingProps, SectionProps, SectionTone, SegmentedControlProps, SegmentedOption, SelectMenuItem, SelectMenuProps, SelectOption, SelectOptionGroup, SelectProps, SeparatorProps, SidebarItem, SidebarProps, SidebarSection, SiteFooterColumn, SiteFooterLink, SiteFooterProps, SiteHeaderProps, SiteNavColumn, SiteNavItem, SiteNavLink, SkeletonProps, SocialLink, SocialLinksProps, SortIconState, SpinnerProps, StatBandProps, StatItem, StepperProps, StepperStep, SwitchProps, TableBodyProps, TableCaptionProps, TableCardProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableOfContentsProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TestimonialProps, TextProps, TextareaProps, ThemeToggleProps, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample, UseConsentOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -4696,5 +4696,180 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4696
4696
|
};
|
|
4697
4697
|
} & React.RefAttributes<HTMLElement>>;
|
|
4698
4698
|
|
|
4699
|
-
|
|
4700
|
-
|
|
4699
|
+
declare const iconVariants: (props?: ({
|
|
4700
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
4701
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
4702
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4703
|
+
type IconProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconVariants> & {
|
|
4704
|
+
/**
|
|
4705
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
4706
|
+
* Alternatively pass the SVG element as children.
|
|
4707
|
+
*/
|
|
4708
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4709
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
4710
|
+
label?: string;
|
|
4711
|
+
};
|
|
4712
|
+
/**
|
|
4713
|
+
* Consistent sizing and tinting for consumer-supplied icons. Decorative by
|
|
4714
|
+
* default (`aria-hidden`); pass `label` to expose the icon to assistive tech
|
|
4715
|
+
* when it carries meaning on its own.
|
|
4716
|
+
*/
|
|
4717
|
+
declare const Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
4718
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
4719
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
4720
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
4721
|
+
/**
|
|
4722
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
4723
|
+
* Alternatively pass the SVG element as children.
|
|
4724
|
+
*/
|
|
4725
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4726
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
4727
|
+
label?: string;
|
|
4728
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
4729
|
+
|
|
4730
|
+
type IconButtonProps = Omit<ButtonProps, 'size'> & {
|
|
4731
|
+
/**
|
|
4732
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
4733
|
+
* without a label is invisible to screen readers.
|
|
4734
|
+
*/
|
|
4735
|
+
label: string;
|
|
4736
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
4737
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4738
|
+
};
|
|
4739
|
+
/**
|
|
4740
|
+
* Square icon-only button built on Button's `icon` size. `label` is required
|
|
4741
|
+
* and becomes `aria-label`, so the control always has an accessible name.
|
|
4742
|
+
*/
|
|
4743
|
+
declare const IconButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size"> & {
|
|
4744
|
+
/**
|
|
4745
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
4746
|
+
* without a label is invisible to screen readers.
|
|
4747
|
+
*/
|
|
4748
|
+
label: string;
|
|
4749
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
4750
|
+
size?: "sm" | "md" | "lg";
|
|
4751
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
4752
|
+
|
|
4753
|
+
declare const iconTileVariants: (props?: ({
|
|
4754
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
4755
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4756
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4757
|
+
type IconTileProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconTileVariants> & {
|
|
4758
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
4759
|
+
badge?: React.ReactNode;
|
|
4760
|
+
};
|
|
4761
|
+
/**
|
|
4762
|
+
* Tinted square surface for an icon — feature bullets, status markers and
|
|
4763
|
+
* empty-state accents. `badge` renders a small counter or dot over the
|
|
4764
|
+
* corner; tone pairs follow the Alert convention (ink text on a tint).
|
|
4765
|
+
*/
|
|
4766
|
+
declare const IconTile: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
4767
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
4768
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4769
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
4770
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
4771
|
+
badge?: React.ReactNode;
|
|
4772
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
4773
|
+
|
|
4774
|
+
type SocialLink = {
|
|
4775
|
+
/** Destination URL. Rendered with safe external-link attributes. */
|
|
4776
|
+
href: string;
|
|
4777
|
+
/** Accessible name for the destination (e.g. "GitHub"). */
|
|
4778
|
+
label: string;
|
|
4779
|
+
/** Optional icon element or component rendered inside the link. */
|
|
4780
|
+
icon?: React.ReactElement | React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4781
|
+
};
|
|
4782
|
+
type SocialLinksProps = React.HTMLAttributes<HTMLElement> & {
|
|
4783
|
+
links: SocialLink[];
|
|
4784
|
+
/** Accessible name for the navigation landmark (default "Social links"). */
|
|
4785
|
+
label?: string;
|
|
4786
|
+
/** Icon size passed through to Icon (default 'md'). */
|
|
4787
|
+
iconSize?: IconProps['size'];
|
|
4788
|
+
/** Icon tone (default 'muted'). */
|
|
4789
|
+
iconTone?: IconProps['tone'];
|
|
4790
|
+
};
|
|
4791
|
+
/**
|
|
4792
|
+
* Row of outbound social/profile links. Every destination is named via
|
|
4793
|
+
* `aria-label`, external links get `target="_blank" rel="noopener noreferrer"`,
|
|
4794
|
+
* and icon-only links stay accessible because the label is always applied.
|
|
4795
|
+
*/
|
|
4796
|
+
declare const SocialLinks: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4797
|
+
links: SocialLink[];
|
|
4798
|
+
/** Accessible name for the navigation landmark (default "Social links"). */
|
|
4799
|
+
label?: string;
|
|
4800
|
+
/** Icon size passed through to Icon (default 'md'). */
|
|
4801
|
+
iconSize?: IconProps["size"];
|
|
4802
|
+
/** Icon tone (default 'muted'). */
|
|
4803
|
+
iconTone?: IconProps["tone"];
|
|
4804
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4805
|
+
|
|
4806
|
+
type FigureProps = React.HTMLAttributes<HTMLElement> & {
|
|
4807
|
+
/** Caption rendered in <figcaption> below the media. */
|
|
4808
|
+
caption?: React.ReactNode;
|
|
4809
|
+
/** Optional credit/source line appended to the caption. */
|
|
4810
|
+
credit?: React.ReactNode;
|
|
4811
|
+
/** Caption alignment (default 'left'). */
|
|
4812
|
+
align?: 'left' | 'center';
|
|
4813
|
+
};
|
|
4814
|
+
/**
|
|
4815
|
+
* Semantic figure wrapper: media plus an optional caption and credit line.
|
|
4816
|
+
* Use for any illustrated or media content that needs a <figcaption>;
|
|
4817
|
+
* Media builds on this for aspect-ratio frames.
|
|
4818
|
+
*/
|
|
4819
|
+
declare const Figure: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4820
|
+
/** Caption rendered in <figcaption> below the media. */
|
|
4821
|
+
caption?: React.ReactNode;
|
|
4822
|
+
/** Optional credit/source line appended to the caption. */
|
|
4823
|
+
credit?: React.ReactNode;
|
|
4824
|
+
/** Caption alignment (default 'left'). */
|
|
4825
|
+
align?: "left" | "center";
|
|
4826
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4827
|
+
|
|
4828
|
+
type MediaProps = Omit<FigureProps, 'children'> & {
|
|
4829
|
+
/**
|
|
4830
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
4831
|
+
* aspect-ratio value such as '16/9' or '4/3'. The box reserves space so
|
|
4832
|
+
* grids never shift while media loads.
|
|
4833
|
+
*/
|
|
4834
|
+
aspect?: 'video' | 'square' | 'wide' | string;
|
|
4835
|
+
/** Image URL. When set, rendered through Image's fallback chain. */
|
|
4836
|
+
src?: string;
|
|
4837
|
+
/** Alt text for `src` media (required for meaningful images). */
|
|
4838
|
+
alt?: string;
|
|
4839
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
4840
|
+
sizes?: string;
|
|
4841
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
4842
|
+
priority?: boolean;
|
|
4843
|
+
/** Fallback content when `src` is absent or fails (e.g. a placeholder). */
|
|
4844
|
+
fallback?: React.ReactNode;
|
|
4845
|
+
/** Arbitrary media (video, embed, illustration) rendered inside the frame. */
|
|
4846
|
+
children?: React.ReactNode;
|
|
4847
|
+
};
|
|
4848
|
+
/**
|
|
4849
|
+
* Figure-level media frame: a fixed-aspect box that shows an Image (with its
|
|
4850
|
+
* fallback chain) or arbitrary children, plus an optional caption and credit
|
|
4851
|
+
* via Figure. Reserves layout space before media loads.
|
|
4852
|
+
*/
|
|
4853
|
+
declare const Media: React.ForwardRefExoticComponent<Omit<FigureProps, "children"> & {
|
|
4854
|
+
/**
|
|
4855
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
4856
|
+
* aspect-ratio value such as '16/9' or '4/3'. The box reserves space so
|
|
4857
|
+
* grids never shift while media loads.
|
|
4858
|
+
*/
|
|
4859
|
+
aspect?: "video" | "square" | "wide" | string;
|
|
4860
|
+
/** Image URL. When set, rendered through Image's fallback chain. */
|
|
4861
|
+
src?: string;
|
|
4862
|
+
/** Alt text for `src` media (required for meaningful images). */
|
|
4863
|
+
alt?: string;
|
|
4864
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
4865
|
+
sizes?: string;
|
|
4866
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
4867
|
+
priority?: boolean;
|
|
4868
|
+
/** Fallback content when `src` is absent or fails (e.g. a placeholder). */
|
|
4869
|
+
fallback?: React.ReactNode;
|
|
4870
|
+
/** Arbitrary media (video, embed, illustration) rendered inside the frame. */
|
|
4871
|
+
children?: React.ReactNode;
|
|
4872
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4873
|
+
|
|
4874
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnnouncementBar, AppShell, AppliedFilters, ArticleCard, AuthLayout, Autocomplete, Avatar, AvatarFallback, AvatarImage, Badge, Block, BottomNav, Breadcrumb, Button, ButtonGroup, CONSENT_CHANGE_EVENT, CTASection, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, ComparisonTable, ConfirmDialog, ConsentBanner, ContactStrip, Container, CoverImage, DataTable, DatePicker, DatePickerPopover, DateRangePicker, DealCard, Dialog, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Divider, DocumentCard, Drawer, EmptyState, EntityCard, FeatureGrid, FeatureRow, Fieldset, Figure, FileUpload, FilterBar, FilterChips, FilterPanel, Flex, FlexItem, Form, FormField, FormLayout, Grid, GridItem, Heading, Hero, Icon, IconButton, IconTile, Image, Input, InputGroup, InputGroupAddon, Label, Link, LinkTabs, List, ListItem, ListToolbar, LoadMore, LogoCloud, Media, MediaCard, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, MonthSchedule, MultiSelect, Newsletter, PageHeader, Pagination, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProcessSteps, ProfileCard, Progress, Prose, Radio, RadioCard, RadioGroup, RadioGroupContext, RadioGroupItem, RangeSlider, Search, Section, SectionHeading, SegmentedControl, Select, SelectMenu, Separator, Sidebar, SiteFooter, SiteHeader, Skeleton, SocialLinks, Spinner, StatBand, Stepper, Switch, Table, TableBody, TableCaption, TableCard, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Text, Textarea, ThemeToggle, TimePicker, Timeline, ToastProvider, Toaster, TombstoneCard, Tooltip, alertVariants, badgeVariants, buttonVariants, cn, documentHead, iconTileVariants, iconVariants, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, toast, useCombobox, useConsent, usePresence, useScrollSpy, useToast };
|
|
4875
|
+
export type { AccessibilityRequirement, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionSection, AccordionTriggerProps, AlertDescriptionProps, AlertProps, AlertTitleProps, AnnouncementBarProps, AntiPattern, AppShellProps, AppliedFiltersProps, ArticleCardProps, AuthLayoutProps, AutocompleteOption, AutocompleteProps, BadgeProps, BlockElement, BlockProps, BottomNavItem, BottomNavProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonProps, CTASectionProps, CTASectionTone, CalendarProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxGroupItemProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, ComboboxItem, ComparisonColumn, ComparisonRow, ComparisonTableProps, ComponentManifest, ComponentTier, CompositionRule, ConfirmDialogProps, Consent, ConsentBannerProps, ConsentPreferences, ContactItem, ContactStripProps, ContainerProps, ContainerWidth, ContentGuideline, CoverImageProps, DataTableCardBreakpoint, DataTableColumn, DataTableProps, DatePickerPopoverProps, DatePickerProps, DateRange, DateRangePickerProps, DateRangePreset, DealCardProps, DealMetric, DealStatus, DialogBodyProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogSize, DialogTitleProps, DocumentCardProps, DocumentHead, DocumentHeadInput, DocumentStatus, DrawerProps, DrawerSide, DrawerSize, EmptyStateAction, EmptyStateProps, EntityCardProps, EntityStat, FeatureGridProps, FeatureItem, FeatureRowProps, FieldsetProps, FigureProps, FileUploadProps, FilterBarProps, FilterChip, FilterChipsProps, FilterPanelProps, FilterSection, FlexItemProps, FlexProps, FormFieldLabelPlacement, FormFieldProps, FormLayoutColumns, FormLayoutProps, FormProps, FormVariant, GapValue, GridItemProps, GridProps, HeadingLevel, HeadingProps, HeroProps, IconButtonProps, IconProps, IconTileProps, ImageProps, InputGroupAddonProps, InputGroupProps, InputProps, LabelProps, LinkLikeProps, LinkProps, LinkTabsItem, LinkTabsProps, LinkVariant, ListItemProps, ListProps, ListToolbarProps, LoadMoreProps, LogoCloudProps, LogoItem, MediaCardChip, MediaCardProps, MediaProps, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, MonthScheduleLegendItem, MonthScheduleProps, MultiSelectOption, MultiSelectProps, NewsletterProps, PageHeaderProps, PaginationIcons, PaginationProps, PasswordInputProps, PopoverAnchorProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProcessStep, ProcessStepsProps, ProfileCardProps, ProgressProps, PropSchema, ProseProps, RadioCardProps, RadioGroupItemProps, RadioGroupProps, RadioProps, RangeSliderProps, SearchOption, SearchProps, SectionHeadingProps, SectionProps, SectionTone, SegmentedControlProps, SegmentedOption, SelectMenuItem, SelectMenuProps, SelectOption, SelectOptionGroup, SelectProps, SeparatorProps, SidebarItem, SidebarProps, SidebarSection, SiteFooterColumn, SiteFooterLink, SiteFooterProps, SiteHeaderProps, SiteNavColumn, SiteNavItem, SiteNavLink, SkeletonProps, SocialLink, SocialLinksProps, SortIconState, SpinnerProps, StatBandProps, StatItem, StepperProps, StepperStep, SwitchProps, TableBodyProps, TableCaptionProps, TableCardProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableOfContentsProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TestimonialProps, TextProps, TextareaProps, ThemeToggleProps, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample, UseConsentOptions };
|