@slipstream-ui/core 0.12.1 → 0.14.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 +208 -4
- package/dist/index.d.ts +208 -4
- package/dist/index.js +471 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +463 -11
- 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 +49 -6
- 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/components/time-picker/TimePicker.d.ts +31 -2
- package/dist/src/components/time-picker/TimePicker.js +244 -11
- package/dist/src/components/time-picker/TimePicker.js.map +1 -1
- package/dist/src/components/time-picker/TimePicker.mjs +244 -11
- package/dist/src/components/time-picker/TimePicker.mjs.map +1 -1
- 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/components/time-picker/TimePicker.test.tsx +77 -0
- package/src/components/time-picker/TimePicker.tsx +315 -12
- 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 +49 -6
- 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
|
@@ -2742,6 +2742,7 @@ type DatePickerPopoverProps = {
|
|
|
2742
2742
|
*/
|
|
2743
2743
|
declare const DatePickerPopover: React.ForwardRefExoticComponent<DatePickerPopoverProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2744
2744
|
|
|
2745
|
+
type TimePickerFormat = '24h' | '12h';
|
|
2745
2746
|
type TimePickerProps = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
2746
2747
|
/** "HH:MM" (24h) — controlled. */
|
|
2747
2748
|
value?: string;
|
|
@@ -2753,10 +2754,24 @@ type TimePickerProps = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
|
2753
2754
|
clearable?: boolean;
|
|
2754
2755
|
/** Accessible label for the clear button. Default 'Clear time'. */
|
|
2755
2756
|
clearLabel?: string;
|
|
2757
|
+
/**
|
|
2758
|
+
* Display contract. '24h' (default) renders the native time input.
|
|
2759
|
+
* '12h' renders a button trigger with an hour/minute/AM-PM panel because
|
|
2760
|
+
* input[type=time] cannot show AM/PM portably. Both emit "HH:MM".
|
|
2761
|
+
*/
|
|
2762
|
+
format?: TimePickerFormat;
|
|
2763
|
+
/** Minute granularity for the panel options and the native input step. Default 1. */
|
|
2764
|
+
minuteStep?: number;
|
|
2765
|
+
/** Earliest selectable time, "HH:MM" inclusive. */
|
|
2766
|
+
min?: string;
|
|
2767
|
+
/** Latest selectable time, "HH:MM" inclusive. */
|
|
2768
|
+
max?: string;
|
|
2769
|
+
/** Text shown before a time is chosen (12h mode). */
|
|
2770
|
+
placeholder?: string;
|
|
2756
2771
|
};
|
|
2757
2772
|
/**
|
|
2758
|
-
*
|
|
2759
|
-
*
|
|
2773
|
+
* Time field with an "HH:MM" contract. The 24h format is a native time input;
|
|
2774
|
+
* the 12h format is a button trigger with an hour/minute/period panel.
|
|
2760
2775
|
*/
|
|
2761
2776
|
declare const TimePicker: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "value" | "defaultValue"> & {
|
|
2762
2777
|
/** "HH:MM" (24h) — controlled. */
|
|
@@ -2769,6 +2784,20 @@ declare const TimePicker: React.ForwardRefExoticComponent<Omit<InputProps, "type
|
|
|
2769
2784
|
clearable?: boolean;
|
|
2770
2785
|
/** Accessible label for the clear button. Default 'Clear time'. */
|
|
2771
2786
|
clearLabel?: string;
|
|
2787
|
+
/**
|
|
2788
|
+
* Display contract. '24h' (default) renders the native time input.
|
|
2789
|
+
* '12h' renders a button trigger with an hour/minute/AM-PM panel because
|
|
2790
|
+
* input[type=time] cannot show AM/PM portably. Both emit "HH:MM".
|
|
2791
|
+
*/
|
|
2792
|
+
format?: TimePickerFormat;
|
|
2793
|
+
/** Minute granularity for the panel options and the native input step. Default 1. */
|
|
2794
|
+
minuteStep?: number;
|
|
2795
|
+
/** Earliest selectable time, "HH:MM" inclusive. */
|
|
2796
|
+
min?: string;
|
|
2797
|
+
/** Latest selectable time, "HH:MM" inclusive. */
|
|
2798
|
+
max?: string;
|
|
2799
|
+
/** Text shown before a time is chosen (12h mode). */
|
|
2800
|
+
placeholder?: string;
|
|
2772
2801
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
2773
2802
|
|
|
2774
2803
|
type StepperStep = {
|
|
@@ -4696,5 +4725,180 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4696
4725
|
};
|
|
4697
4726
|
} & React.RefAttributes<HTMLElement>>;
|
|
4698
4727
|
|
|
4699
|
-
|
|
4700
|
-
|
|
4728
|
+
declare const iconVariants: (props?: ({
|
|
4729
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
4730
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
4731
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4732
|
+
type IconProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconVariants> & {
|
|
4733
|
+
/**
|
|
4734
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
4735
|
+
* Alternatively pass the SVG element as children.
|
|
4736
|
+
*/
|
|
4737
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4738
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
4739
|
+
label?: string;
|
|
4740
|
+
};
|
|
4741
|
+
/**
|
|
4742
|
+
* Consistent sizing and tinting for consumer-supplied icons. Decorative by
|
|
4743
|
+
* default (`aria-hidden`); pass `label` to expose the icon to assistive tech
|
|
4744
|
+
* when it carries meaning on its own.
|
|
4745
|
+
*/
|
|
4746
|
+
declare const Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
4747
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
4748
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
4749
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
4750
|
+
/**
|
|
4751
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
4752
|
+
* Alternatively pass the SVG element as children.
|
|
4753
|
+
*/
|
|
4754
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4755
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
4756
|
+
label?: string;
|
|
4757
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
4758
|
+
|
|
4759
|
+
type IconButtonProps = Omit<ButtonProps, 'size'> & {
|
|
4760
|
+
/**
|
|
4761
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
4762
|
+
* without a label is invisible to screen readers.
|
|
4763
|
+
*/
|
|
4764
|
+
label: string;
|
|
4765
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
4766
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4767
|
+
};
|
|
4768
|
+
/**
|
|
4769
|
+
* Square icon-only button built on Button's `icon` size. `label` is required
|
|
4770
|
+
* and becomes `aria-label`, so the control always has an accessible name.
|
|
4771
|
+
*/
|
|
4772
|
+
declare const IconButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size"> & {
|
|
4773
|
+
/**
|
|
4774
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
4775
|
+
* without a label is invisible to screen readers.
|
|
4776
|
+
*/
|
|
4777
|
+
label: string;
|
|
4778
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
4779
|
+
size?: "sm" | "md" | "lg";
|
|
4780
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
4781
|
+
|
|
4782
|
+
declare const iconTileVariants: (props?: ({
|
|
4783
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
4784
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4785
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4786
|
+
type IconTileProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconTileVariants> & {
|
|
4787
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
4788
|
+
badge?: React.ReactNode;
|
|
4789
|
+
};
|
|
4790
|
+
/**
|
|
4791
|
+
* Tinted square surface for an icon — feature bullets, status markers and
|
|
4792
|
+
* empty-state accents. `badge` renders a small counter or dot over the
|
|
4793
|
+
* corner; tone pairs follow the Alert convention (ink text on a tint).
|
|
4794
|
+
*/
|
|
4795
|
+
declare const IconTile: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
4796
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
4797
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4798
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
4799
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
4800
|
+
badge?: React.ReactNode;
|
|
4801
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
4802
|
+
|
|
4803
|
+
type SocialLink = {
|
|
4804
|
+
/** Destination URL. Rendered with safe external-link attributes. */
|
|
4805
|
+
href: string;
|
|
4806
|
+
/** Accessible name for the destination (e.g. "GitHub"). */
|
|
4807
|
+
label: string;
|
|
4808
|
+
/** Optional icon element or component rendered inside the link. */
|
|
4809
|
+
icon?: React.ReactElement | React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4810
|
+
};
|
|
4811
|
+
type SocialLinksProps = React.HTMLAttributes<HTMLElement> & {
|
|
4812
|
+
links: SocialLink[];
|
|
4813
|
+
/** Accessible name for the navigation landmark (default "Social links"). */
|
|
4814
|
+
label?: string;
|
|
4815
|
+
/** Icon size passed through to Icon (default 'md'). */
|
|
4816
|
+
iconSize?: IconProps['size'];
|
|
4817
|
+
/** Icon tone (default 'muted'). */
|
|
4818
|
+
iconTone?: IconProps['tone'];
|
|
4819
|
+
};
|
|
4820
|
+
/**
|
|
4821
|
+
* Row of outbound social/profile links. Every destination is named via
|
|
4822
|
+
* `aria-label`, external links get `target="_blank" rel="noopener noreferrer"`,
|
|
4823
|
+
* and icon-only links stay accessible because the label is always applied.
|
|
4824
|
+
*/
|
|
4825
|
+
declare const SocialLinks: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4826
|
+
links: SocialLink[];
|
|
4827
|
+
/** Accessible name for the navigation landmark (default "Social links"). */
|
|
4828
|
+
label?: string;
|
|
4829
|
+
/** Icon size passed through to Icon (default 'md'). */
|
|
4830
|
+
iconSize?: IconProps["size"];
|
|
4831
|
+
/** Icon tone (default 'muted'). */
|
|
4832
|
+
iconTone?: IconProps["tone"];
|
|
4833
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4834
|
+
|
|
4835
|
+
type FigureProps = React.HTMLAttributes<HTMLElement> & {
|
|
4836
|
+
/** Caption rendered in <figcaption> below the media. */
|
|
4837
|
+
caption?: React.ReactNode;
|
|
4838
|
+
/** Optional credit/source line appended to the caption. */
|
|
4839
|
+
credit?: React.ReactNode;
|
|
4840
|
+
/** Caption alignment (default 'left'). */
|
|
4841
|
+
align?: 'left' | 'center';
|
|
4842
|
+
};
|
|
4843
|
+
/**
|
|
4844
|
+
* Semantic figure wrapper: media plus an optional caption and credit line.
|
|
4845
|
+
* Use for any illustrated or media content that needs a <figcaption>;
|
|
4846
|
+
* Media builds on this for aspect-ratio frames.
|
|
4847
|
+
*/
|
|
4848
|
+
declare const Figure: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4849
|
+
/** Caption rendered in <figcaption> below the media. */
|
|
4850
|
+
caption?: React.ReactNode;
|
|
4851
|
+
/** Optional credit/source line appended to the caption. */
|
|
4852
|
+
credit?: React.ReactNode;
|
|
4853
|
+
/** Caption alignment (default 'left'). */
|
|
4854
|
+
align?: "left" | "center";
|
|
4855
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4856
|
+
|
|
4857
|
+
type MediaProps = Omit<FigureProps, 'children'> & {
|
|
4858
|
+
/**
|
|
4859
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
4860
|
+
* aspect-ratio value such as '16/9' or '4/3'. The box reserves space so
|
|
4861
|
+
* grids never shift while media loads.
|
|
4862
|
+
*/
|
|
4863
|
+
aspect?: 'video' | 'square' | 'wide' | string;
|
|
4864
|
+
/** Image URL. When set, rendered through Image's fallback chain. */
|
|
4865
|
+
src?: string;
|
|
4866
|
+
/** Alt text for `src` media (required for meaningful images). */
|
|
4867
|
+
alt?: string;
|
|
4868
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
4869
|
+
sizes?: string;
|
|
4870
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
4871
|
+
priority?: boolean;
|
|
4872
|
+
/** Fallback content when `src` is absent or fails (e.g. a placeholder). */
|
|
4873
|
+
fallback?: React.ReactNode;
|
|
4874
|
+
/** Arbitrary media (video, embed, illustration) rendered inside the frame. */
|
|
4875
|
+
children?: React.ReactNode;
|
|
4876
|
+
};
|
|
4877
|
+
/**
|
|
4878
|
+
* Figure-level media frame: a fixed-aspect box that shows an Image (with its
|
|
4879
|
+
* fallback chain) or arbitrary children, plus an optional caption and credit
|
|
4880
|
+
* via Figure. Reserves layout space before media loads.
|
|
4881
|
+
*/
|
|
4882
|
+
declare const Media: React.ForwardRefExoticComponent<Omit<FigureProps, "children"> & {
|
|
4883
|
+
/**
|
|
4884
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
4885
|
+
* aspect-ratio value such as '16/9' or '4/3'. The box reserves space so
|
|
4886
|
+
* grids never shift while media loads.
|
|
4887
|
+
*/
|
|
4888
|
+
aspect?: "video" | "square" | "wide" | string;
|
|
4889
|
+
/** Image URL. When set, rendered through Image's fallback chain. */
|
|
4890
|
+
src?: string;
|
|
4891
|
+
/** Alt text for `src` media (required for meaningful images). */
|
|
4892
|
+
alt?: string;
|
|
4893
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
4894
|
+
sizes?: string;
|
|
4895
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
4896
|
+
priority?: boolean;
|
|
4897
|
+
/** Fallback content when `src` is absent or fails (e.g. a placeholder). */
|
|
4898
|
+
fallback?: React.ReactNode;
|
|
4899
|
+
/** Arbitrary media (video, embed, illustration) rendered inside the frame. */
|
|
4900
|
+
children?: React.ReactNode;
|
|
4901
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4902
|
+
|
|
4903
|
+
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 };
|
|
4904
|
+
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, TimePickerFormat, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample, UseConsentOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -2742,6 +2742,7 @@ type DatePickerPopoverProps = {
|
|
|
2742
2742
|
*/
|
|
2743
2743
|
declare const DatePickerPopover: React.ForwardRefExoticComponent<DatePickerPopoverProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2744
2744
|
|
|
2745
|
+
type TimePickerFormat = '24h' | '12h';
|
|
2745
2746
|
type TimePickerProps = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
2746
2747
|
/** "HH:MM" (24h) — controlled. */
|
|
2747
2748
|
value?: string;
|
|
@@ -2753,10 +2754,24 @@ type TimePickerProps = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
|
2753
2754
|
clearable?: boolean;
|
|
2754
2755
|
/** Accessible label for the clear button. Default 'Clear time'. */
|
|
2755
2756
|
clearLabel?: string;
|
|
2757
|
+
/**
|
|
2758
|
+
* Display contract. '24h' (default) renders the native time input.
|
|
2759
|
+
* '12h' renders a button trigger with an hour/minute/AM-PM panel because
|
|
2760
|
+
* input[type=time] cannot show AM/PM portably. Both emit "HH:MM".
|
|
2761
|
+
*/
|
|
2762
|
+
format?: TimePickerFormat;
|
|
2763
|
+
/** Minute granularity for the panel options and the native input step. Default 1. */
|
|
2764
|
+
minuteStep?: number;
|
|
2765
|
+
/** Earliest selectable time, "HH:MM" inclusive. */
|
|
2766
|
+
min?: string;
|
|
2767
|
+
/** Latest selectable time, "HH:MM" inclusive. */
|
|
2768
|
+
max?: string;
|
|
2769
|
+
/** Text shown before a time is chosen (12h mode). */
|
|
2770
|
+
placeholder?: string;
|
|
2756
2771
|
};
|
|
2757
2772
|
/**
|
|
2758
|
-
*
|
|
2759
|
-
*
|
|
2773
|
+
* Time field with an "HH:MM" contract. The 24h format is a native time input;
|
|
2774
|
+
* the 12h format is a button trigger with an hour/minute/period panel.
|
|
2760
2775
|
*/
|
|
2761
2776
|
declare const TimePicker: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "value" | "defaultValue"> & {
|
|
2762
2777
|
/** "HH:MM" (24h) — controlled. */
|
|
@@ -2769,6 +2784,20 @@ declare const TimePicker: React.ForwardRefExoticComponent<Omit<InputProps, "type
|
|
|
2769
2784
|
clearable?: boolean;
|
|
2770
2785
|
/** Accessible label for the clear button. Default 'Clear time'. */
|
|
2771
2786
|
clearLabel?: string;
|
|
2787
|
+
/**
|
|
2788
|
+
* Display contract. '24h' (default) renders the native time input.
|
|
2789
|
+
* '12h' renders a button trigger with an hour/minute/AM-PM panel because
|
|
2790
|
+
* input[type=time] cannot show AM/PM portably. Both emit "HH:MM".
|
|
2791
|
+
*/
|
|
2792
|
+
format?: TimePickerFormat;
|
|
2793
|
+
/** Minute granularity for the panel options and the native input step. Default 1. */
|
|
2794
|
+
minuteStep?: number;
|
|
2795
|
+
/** Earliest selectable time, "HH:MM" inclusive. */
|
|
2796
|
+
min?: string;
|
|
2797
|
+
/** Latest selectable time, "HH:MM" inclusive. */
|
|
2798
|
+
max?: string;
|
|
2799
|
+
/** Text shown before a time is chosen (12h mode). */
|
|
2800
|
+
placeholder?: string;
|
|
2772
2801
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
2773
2802
|
|
|
2774
2803
|
type StepperStep = {
|
|
@@ -4696,5 +4725,180 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4696
4725
|
};
|
|
4697
4726
|
} & React.RefAttributes<HTMLElement>>;
|
|
4698
4727
|
|
|
4699
|
-
|
|
4700
|
-
|
|
4728
|
+
declare const iconVariants: (props?: ({
|
|
4729
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
4730
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
4731
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4732
|
+
type IconProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconVariants> & {
|
|
4733
|
+
/**
|
|
4734
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
4735
|
+
* Alternatively pass the SVG element as children.
|
|
4736
|
+
*/
|
|
4737
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4738
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
4739
|
+
label?: string;
|
|
4740
|
+
};
|
|
4741
|
+
/**
|
|
4742
|
+
* Consistent sizing and tinting for consumer-supplied icons. Decorative by
|
|
4743
|
+
* default (`aria-hidden`); pass `label` to expose the icon to assistive tech
|
|
4744
|
+
* when it carries meaning on its own.
|
|
4745
|
+
*/
|
|
4746
|
+
declare const Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
4747
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
4748
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
4749
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
4750
|
+
/**
|
|
4751
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
4752
|
+
* Alternatively pass the SVG element as children.
|
|
4753
|
+
*/
|
|
4754
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4755
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
4756
|
+
label?: string;
|
|
4757
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
4758
|
+
|
|
4759
|
+
type IconButtonProps = Omit<ButtonProps, 'size'> & {
|
|
4760
|
+
/**
|
|
4761
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
4762
|
+
* without a label is invisible to screen readers.
|
|
4763
|
+
*/
|
|
4764
|
+
label: string;
|
|
4765
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
4766
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4767
|
+
};
|
|
4768
|
+
/**
|
|
4769
|
+
* Square icon-only button built on Button's `icon` size. `label` is required
|
|
4770
|
+
* and becomes `aria-label`, so the control always has an accessible name.
|
|
4771
|
+
*/
|
|
4772
|
+
declare const IconButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size"> & {
|
|
4773
|
+
/**
|
|
4774
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
4775
|
+
* without a label is invisible to screen readers.
|
|
4776
|
+
*/
|
|
4777
|
+
label: string;
|
|
4778
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
4779
|
+
size?: "sm" | "md" | "lg";
|
|
4780
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
4781
|
+
|
|
4782
|
+
declare const iconTileVariants: (props?: ({
|
|
4783
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
4784
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4785
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4786
|
+
type IconTileProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconTileVariants> & {
|
|
4787
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
4788
|
+
badge?: React.ReactNode;
|
|
4789
|
+
};
|
|
4790
|
+
/**
|
|
4791
|
+
* Tinted square surface for an icon — feature bullets, status markers and
|
|
4792
|
+
* empty-state accents. `badge` renders a small counter or dot over the
|
|
4793
|
+
* corner; tone pairs follow the Alert convention (ink text on a tint).
|
|
4794
|
+
*/
|
|
4795
|
+
declare const IconTile: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
4796
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
4797
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4798
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
4799
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
4800
|
+
badge?: React.ReactNode;
|
|
4801
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
4802
|
+
|
|
4803
|
+
type SocialLink = {
|
|
4804
|
+
/** Destination URL. Rendered with safe external-link attributes. */
|
|
4805
|
+
href: string;
|
|
4806
|
+
/** Accessible name for the destination (e.g. "GitHub"). */
|
|
4807
|
+
label: string;
|
|
4808
|
+
/** Optional icon element or component rendered inside the link. */
|
|
4809
|
+
icon?: React.ReactElement | React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4810
|
+
};
|
|
4811
|
+
type SocialLinksProps = React.HTMLAttributes<HTMLElement> & {
|
|
4812
|
+
links: SocialLink[];
|
|
4813
|
+
/** Accessible name for the navigation landmark (default "Social links"). */
|
|
4814
|
+
label?: string;
|
|
4815
|
+
/** Icon size passed through to Icon (default 'md'). */
|
|
4816
|
+
iconSize?: IconProps['size'];
|
|
4817
|
+
/** Icon tone (default 'muted'). */
|
|
4818
|
+
iconTone?: IconProps['tone'];
|
|
4819
|
+
};
|
|
4820
|
+
/**
|
|
4821
|
+
* Row of outbound social/profile links. Every destination is named via
|
|
4822
|
+
* `aria-label`, external links get `target="_blank" rel="noopener noreferrer"`,
|
|
4823
|
+
* and icon-only links stay accessible because the label is always applied.
|
|
4824
|
+
*/
|
|
4825
|
+
declare const SocialLinks: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4826
|
+
links: SocialLink[];
|
|
4827
|
+
/** Accessible name for the navigation landmark (default "Social links"). */
|
|
4828
|
+
label?: string;
|
|
4829
|
+
/** Icon size passed through to Icon (default 'md'). */
|
|
4830
|
+
iconSize?: IconProps["size"];
|
|
4831
|
+
/** Icon tone (default 'muted'). */
|
|
4832
|
+
iconTone?: IconProps["tone"];
|
|
4833
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4834
|
+
|
|
4835
|
+
type FigureProps = React.HTMLAttributes<HTMLElement> & {
|
|
4836
|
+
/** Caption rendered in <figcaption> below the media. */
|
|
4837
|
+
caption?: React.ReactNode;
|
|
4838
|
+
/** Optional credit/source line appended to the caption. */
|
|
4839
|
+
credit?: React.ReactNode;
|
|
4840
|
+
/** Caption alignment (default 'left'). */
|
|
4841
|
+
align?: 'left' | 'center';
|
|
4842
|
+
};
|
|
4843
|
+
/**
|
|
4844
|
+
* Semantic figure wrapper: media plus an optional caption and credit line.
|
|
4845
|
+
* Use for any illustrated or media content that needs a <figcaption>;
|
|
4846
|
+
* Media builds on this for aspect-ratio frames.
|
|
4847
|
+
*/
|
|
4848
|
+
declare const Figure: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4849
|
+
/** Caption rendered in <figcaption> below the media. */
|
|
4850
|
+
caption?: React.ReactNode;
|
|
4851
|
+
/** Optional credit/source line appended to the caption. */
|
|
4852
|
+
credit?: React.ReactNode;
|
|
4853
|
+
/** Caption alignment (default 'left'). */
|
|
4854
|
+
align?: "left" | "center";
|
|
4855
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4856
|
+
|
|
4857
|
+
type MediaProps = Omit<FigureProps, 'children'> & {
|
|
4858
|
+
/**
|
|
4859
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
4860
|
+
* aspect-ratio value such as '16/9' or '4/3'. The box reserves space so
|
|
4861
|
+
* grids never shift while media loads.
|
|
4862
|
+
*/
|
|
4863
|
+
aspect?: 'video' | 'square' | 'wide' | string;
|
|
4864
|
+
/** Image URL. When set, rendered through Image's fallback chain. */
|
|
4865
|
+
src?: string;
|
|
4866
|
+
/** Alt text for `src` media (required for meaningful images). */
|
|
4867
|
+
alt?: string;
|
|
4868
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
4869
|
+
sizes?: string;
|
|
4870
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
4871
|
+
priority?: boolean;
|
|
4872
|
+
/** Fallback content when `src` is absent or fails (e.g. a placeholder). */
|
|
4873
|
+
fallback?: React.ReactNode;
|
|
4874
|
+
/** Arbitrary media (video, embed, illustration) rendered inside the frame. */
|
|
4875
|
+
children?: React.ReactNode;
|
|
4876
|
+
};
|
|
4877
|
+
/**
|
|
4878
|
+
* Figure-level media frame: a fixed-aspect box that shows an Image (with its
|
|
4879
|
+
* fallback chain) or arbitrary children, plus an optional caption and credit
|
|
4880
|
+
* via Figure. Reserves layout space before media loads.
|
|
4881
|
+
*/
|
|
4882
|
+
declare const Media: React.ForwardRefExoticComponent<Omit<FigureProps, "children"> & {
|
|
4883
|
+
/**
|
|
4884
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
4885
|
+
* aspect-ratio value such as '16/9' or '4/3'. The box reserves space so
|
|
4886
|
+
* grids never shift while media loads.
|
|
4887
|
+
*/
|
|
4888
|
+
aspect?: "video" | "square" | "wide" | string;
|
|
4889
|
+
/** Image URL. When set, rendered through Image's fallback chain. */
|
|
4890
|
+
src?: string;
|
|
4891
|
+
/** Alt text for `src` media (required for meaningful images). */
|
|
4892
|
+
alt?: string;
|
|
4893
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
4894
|
+
sizes?: string;
|
|
4895
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
4896
|
+
priority?: boolean;
|
|
4897
|
+
/** Fallback content when `src` is absent or fails (e.g. a placeholder). */
|
|
4898
|
+
fallback?: React.ReactNode;
|
|
4899
|
+
/** Arbitrary media (video, embed, illustration) rendered inside the frame. */
|
|
4900
|
+
children?: React.ReactNode;
|
|
4901
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
4902
|
+
|
|
4903
|
+
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 };
|
|
4904
|
+
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, TimePickerFormat, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample, UseConsentOptions };
|