@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.js
CHANGED
|
@@ -89,6 +89,7 @@ __export(index_exports, {
|
|
|
89
89
|
FeatureGrid: () => FeatureGrid,
|
|
90
90
|
FeatureRow: () => FeatureRow,
|
|
91
91
|
Fieldset: () => Fieldset,
|
|
92
|
+
Figure: () => Figure,
|
|
92
93
|
FileUpload: () => FileUpload,
|
|
93
94
|
FilterBar: () => FilterBar,
|
|
94
95
|
FilterChips: () => FilterChips,
|
|
@@ -102,6 +103,9 @@ __export(index_exports, {
|
|
|
102
103
|
GridItem: () => GridItem,
|
|
103
104
|
Heading: () => Heading,
|
|
104
105
|
Hero: () => Hero,
|
|
106
|
+
Icon: () => Icon,
|
|
107
|
+
IconButton: () => IconButton,
|
|
108
|
+
IconTile: () => IconTile,
|
|
105
109
|
Image: () => Image2,
|
|
106
110
|
Input: () => Input,
|
|
107
111
|
InputGroup: () => InputGroup,
|
|
@@ -114,6 +118,7 @@ __export(index_exports, {
|
|
|
114
118
|
ListToolbar: () => ListToolbar,
|
|
115
119
|
LoadMore: () => LoadMore,
|
|
116
120
|
LogoCloud: () => LogoCloud,
|
|
121
|
+
Media: () => Media,
|
|
117
122
|
MediaCard: () => MediaCard,
|
|
118
123
|
Menu: () => Menu,
|
|
119
124
|
MenuContent: () => MenuContent,
|
|
@@ -153,6 +158,7 @@ __export(index_exports, {
|
|
|
153
158
|
SiteFooter: () => SiteFooter,
|
|
154
159
|
SiteHeader: () => SiteHeader,
|
|
155
160
|
Skeleton: () => Skeleton,
|
|
161
|
+
SocialLinks: () => SocialLinks,
|
|
156
162
|
Spinner: () => Spinner,
|
|
157
163
|
StatBand: () => StatBand,
|
|
158
164
|
Stepper: () => Stepper,
|
|
@@ -186,6 +192,8 @@ __export(index_exports, {
|
|
|
186
192
|
buttonVariants: () => buttonVariants,
|
|
187
193
|
cn: () => cn,
|
|
188
194
|
documentHead: () => documentHead,
|
|
195
|
+
iconTileVariants: () => iconTileVariants,
|
|
196
|
+
iconVariants: () => iconVariants,
|
|
189
197
|
isComponentManifest: () => isComponentManifest,
|
|
190
198
|
resolveGap: () => resolveGap,
|
|
191
199
|
separatorVariants: () => separatorVariants,
|
|
@@ -9101,6 +9109,219 @@ var Breadcrumb = React103.forwardRef(
|
|
|
9101
9109
|
}
|
|
9102
9110
|
);
|
|
9103
9111
|
Breadcrumb.displayName = "Breadcrumb";
|
|
9112
|
+
|
|
9113
|
+
// src/components/icon/Icon.tsx
|
|
9114
|
+
var React104 = __toESM(require("react"));
|
|
9115
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
9116
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
9117
|
+
var iconVariants = (0, import_class_variance_authority9.cva)("inline-flex shrink-0 items-center justify-center [&_svg]:shrink-0", {
|
|
9118
|
+
variants: {
|
|
9119
|
+
size: {
|
|
9120
|
+
sm: "[&_svg]:h-3.5 [&_svg]:w-3.5",
|
|
9121
|
+
md: "[&_svg]:h-4 [&_svg]:w-4",
|
|
9122
|
+
lg: "[&_svg]:h-5 [&_svg]:w-5",
|
|
9123
|
+
xl: "[&_svg]:h-6 [&_svg]:w-6"
|
|
9124
|
+
},
|
|
9125
|
+
tone: {
|
|
9126
|
+
default: "text-foreground",
|
|
9127
|
+
muted: "text-muted-foreground",
|
|
9128
|
+
primary: "text-primary-ink",
|
|
9129
|
+
success: "text-success-ink",
|
|
9130
|
+
warning: "text-warning-ink",
|
|
9131
|
+
info: "text-info-ink",
|
|
9132
|
+
destructive: "text-destructive"
|
|
9133
|
+
}
|
|
9134
|
+
},
|
|
9135
|
+
defaultVariants: {
|
|
9136
|
+
size: "md",
|
|
9137
|
+
tone: "default"
|
|
9138
|
+
}
|
|
9139
|
+
});
|
|
9140
|
+
var Icon = React104.forwardRef(
|
|
9141
|
+
({ className, size, tone, icon: IconComponent, label, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
9142
|
+
"span",
|
|
9143
|
+
{
|
|
9144
|
+
ref,
|
|
9145
|
+
role: label ? "img" : void 0,
|
|
9146
|
+
"aria-label": label,
|
|
9147
|
+
"aria-hidden": label ? void 0 : true,
|
|
9148
|
+
className: cn(iconVariants({ size, tone }), className),
|
|
9149
|
+
...props,
|
|
9150
|
+
children: IconComponent ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(IconComponent, { "aria-hidden": "true", focusable: "false" }) : children
|
|
9151
|
+
}
|
|
9152
|
+
)
|
|
9153
|
+
);
|
|
9154
|
+
Icon.displayName = "Icon";
|
|
9155
|
+
|
|
9156
|
+
// src/components/icon-button/IconButton.tsx
|
|
9157
|
+
var React105 = __toESM(require("react"));
|
|
9158
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
9159
|
+
var sizeClasses11 = {
|
|
9160
|
+
sm: "h-8 w-8",
|
|
9161
|
+
md: void 0,
|
|
9162
|
+
lg: "h-11 w-11"
|
|
9163
|
+
};
|
|
9164
|
+
var IconButton = React105.forwardRef(
|
|
9165
|
+
({ className, label, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9166
|
+
Button,
|
|
9167
|
+
{
|
|
9168
|
+
ref,
|
|
9169
|
+
size: "icon",
|
|
9170
|
+
"aria-label": label,
|
|
9171
|
+
className: cn(sizeClasses11[size], className),
|
|
9172
|
+
...props
|
|
9173
|
+
}
|
|
9174
|
+
)
|
|
9175
|
+
);
|
|
9176
|
+
IconButton.displayName = "IconButton";
|
|
9177
|
+
|
|
9178
|
+
// src/components/icon-tile/IconTile.tsx
|
|
9179
|
+
var React106 = __toESM(require("react"));
|
|
9180
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
9181
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
9182
|
+
var iconTileVariants = (0, import_class_variance_authority10.cva)(
|
|
9183
|
+
"relative inline-flex shrink-0 items-center justify-center rounded-lg [&_svg]:shrink-0",
|
|
9184
|
+
{
|
|
9185
|
+
variants: {
|
|
9186
|
+
tone: {
|
|
9187
|
+
default: "bg-muted text-muted-foreground",
|
|
9188
|
+
primary: "bg-primary/10 text-primary-ink",
|
|
9189
|
+
success: "bg-success/10 text-success-ink",
|
|
9190
|
+
warning: "bg-warning/10 text-warning-ink",
|
|
9191
|
+
info: "bg-info/10 text-info-ink",
|
|
9192
|
+
destructive: "bg-destructive/10 text-destructive"
|
|
9193
|
+
},
|
|
9194
|
+
size: {
|
|
9195
|
+
sm: "h-8 w-8 [&_svg]:h-4 [&_svg]:w-4",
|
|
9196
|
+
md: "h-10 w-10 [&_svg]:h-5 [&_svg]:w-5",
|
|
9197
|
+
lg: "h-12 w-12 [&_svg]:h-6 [&_svg]:w-6"
|
|
9198
|
+
}
|
|
9199
|
+
},
|
|
9200
|
+
defaultVariants: {
|
|
9201
|
+
tone: "default",
|
|
9202
|
+
size: "md"
|
|
9203
|
+
}
|
|
9204
|
+
}
|
|
9205
|
+
);
|
|
9206
|
+
var IconTile = React106.forwardRef(
|
|
9207
|
+
({ className, tone, size, badge, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("span", { ref, className: cn(iconTileVariants({ tone, size }), className), ...props, children: [
|
|
9208
|
+
children,
|
|
9209
|
+
badge !== void 0 && badge !== null && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: "absolute -right-1.5 -top-1.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-semibold leading-none text-primary-foreground", children: badge })
|
|
9210
|
+
] })
|
|
9211
|
+
);
|
|
9212
|
+
IconTile.displayName = "IconTile";
|
|
9213
|
+
|
|
9214
|
+
// src/components/social-links/SocialLinks.tsx
|
|
9215
|
+
var React107 = __toESM(require("react"));
|
|
9216
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
9217
|
+
function isElement(icon) {
|
|
9218
|
+
return React107.isValidElement(icon);
|
|
9219
|
+
}
|
|
9220
|
+
var SocialLinks = React107.forwardRef(
|
|
9221
|
+
({ className, links, label = "Social links", iconSize = "md", iconTone = "muted", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("nav", { ref, "aria-label": label, className: cn("flex items-center gap-1", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("ul", { className: "flex items-center gap-1", children: links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
9222
|
+
"a",
|
|
9223
|
+
{
|
|
9224
|
+
href: link.href,
|
|
9225
|
+
target: "_blank",
|
|
9226
|
+
rel: "noopener noreferrer",
|
|
9227
|
+
"aria-label": link.icon ? link.label : void 0,
|
|
9228
|
+
className: cn(
|
|
9229
|
+
"inline-flex items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9230
|
+
link.icon ? "h-9 w-9" : "px-3 py-1.5 text-sm"
|
|
9231
|
+
),
|
|
9232
|
+
children: link.icon ? isElement(link.icon) ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Icon, { size: iconSize, tone: iconTone, children: link.icon }) : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
9233
|
+
Icon,
|
|
9234
|
+
{
|
|
9235
|
+
size: iconSize,
|
|
9236
|
+
tone: iconTone,
|
|
9237
|
+
icon: link.icon
|
|
9238
|
+
}
|
|
9239
|
+
) : link.label
|
|
9240
|
+
}
|
|
9241
|
+
) }, link.href)) }) })
|
|
9242
|
+
);
|
|
9243
|
+
SocialLinks.displayName = "SocialLinks";
|
|
9244
|
+
|
|
9245
|
+
// src/components/figure/Figure.tsx
|
|
9246
|
+
var React108 = __toESM(require("react"));
|
|
9247
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
9248
|
+
var Figure = React108.forwardRef(
|
|
9249
|
+
({ className, caption, credit, align = "left", children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("figure", { ref, className: cn("m-0", className), ...props, children: [
|
|
9250
|
+
children,
|
|
9251
|
+
(caption || credit) && /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
9252
|
+
"figcaption",
|
|
9253
|
+
{
|
|
9254
|
+
className: cn(
|
|
9255
|
+
"mt-2 text-xs text-muted-foreground",
|
|
9256
|
+
align === "center" && "text-center"
|
|
9257
|
+
),
|
|
9258
|
+
children: [
|
|
9259
|
+
caption,
|
|
9260
|
+
credit && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: "mt-0.5 block text-muted-foreground/80", children: credit })
|
|
9261
|
+
]
|
|
9262
|
+
}
|
|
9263
|
+
)
|
|
9264
|
+
] })
|
|
9265
|
+
);
|
|
9266
|
+
Figure.displayName = "Figure";
|
|
9267
|
+
|
|
9268
|
+
// src/components/media/Media.tsx
|
|
9269
|
+
var React109 = __toESM(require("react"));
|
|
9270
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
9271
|
+
var aspectClasses2 = {
|
|
9272
|
+
video: "aspect-video",
|
|
9273
|
+
square: "aspect-square",
|
|
9274
|
+
wide: "aspect-[2/1]"
|
|
9275
|
+
};
|
|
9276
|
+
var Media = React109.forwardRef(
|
|
9277
|
+
({
|
|
9278
|
+
className,
|
|
9279
|
+
aspect = "video",
|
|
9280
|
+
src,
|
|
9281
|
+
alt = "",
|
|
9282
|
+
sizes,
|
|
9283
|
+
priority = false,
|
|
9284
|
+
fallback,
|
|
9285
|
+
caption,
|
|
9286
|
+
credit,
|
|
9287
|
+
align,
|
|
9288
|
+
children,
|
|
9289
|
+
...props
|
|
9290
|
+
}, ref) => {
|
|
9291
|
+
const preset = aspectClasses2[aspect];
|
|
9292
|
+
const aspectStyle = preset === void 0 && typeof aspect === "string" ? { aspectRatio: aspect } : void 0;
|
|
9293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
9294
|
+
Figure,
|
|
9295
|
+
{
|
|
9296
|
+
ref,
|
|
9297
|
+
caption,
|
|
9298
|
+
credit,
|
|
9299
|
+
align,
|
|
9300
|
+
className,
|
|
9301
|
+
...props,
|
|
9302
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
9303
|
+
"div",
|
|
9304
|
+
{
|
|
9305
|
+
className: cn("relative overflow-hidden rounded-lg bg-muted", preset),
|
|
9306
|
+
style: aspectStyle,
|
|
9307
|
+
children: src ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
9308
|
+
Image2,
|
|
9309
|
+
{
|
|
9310
|
+
src,
|
|
9311
|
+
alt,
|
|
9312
|
+
priority,
|
|
9313
|
+
sizes,
|
|
9314
|
+
fallback,
|
|
9315
|
+
className: "h-full w-full object-cover"
|
|
9316
|
+
}
|
|
9317
|
+
) : children ?? fallback
|
|
9318
|
+
}
|
|
9319
|
+
)
|
|
9320
|
+
}
|
|
9321
|
+
);
|
|
9322
|
+
}
|
|
9323
|
+
);
|
|
9324
|
+
Media.displayName = "Media";
|
|
9104
9325
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9105
9326
|
0 && (module.exports = {
|
|
9106
9327
|
Accordion,
|
|
@@ -9162,6 +9383,7 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
9162
9383
|
FeatureGrid,
|
|
9163
9384
|
FeatureRow,
|
|
9164
9385
|
Fieldset,
|
|
9386
|
+
Figure,
|
|
9165
9387
|
FileUpload,
|
|
9166
9388
|
FilterBar,
|
|
9167
9389
|
FilterChips,
|
|
@@ -9175,6 +9397,9 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
9175
9397
|
GridItem,
|
|
9176
9398
|
Heading,
|
|
9177
9399
|
Hero,
|
|
9400
|
+
Icon,
|
|
9401
|
+
IconButton,
|
|
9402
|
+
IconTile,
|
|
9178
9403
|
Image,
|
|
9179
9404
|
Input,
|
|
9180
9405
|
InputGroup,
|
|
@@ -9187,6 +9412,7 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
9187
9412
|
ListToolbar,
|
|
9188
9413
|
LoadMore,
|
|
9189
9414
|
LogoCloud,
|
|
9415
|
+
Media,
|
|
9190
9416
|
MediaCard,
|
|
9191
9417
|
Menu,
|
|
9192
9418
|
MenuContent,
|
|
@@ -9226,6 +9452,7 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
9226
9452
|
SiteFooter,
|
|
9227
9453
|
SiteHeader,
|
|
9228
9454
|
Skeleton,
|
|
9455
|
+
SocialLinks,
|
|
9229
9456
|
Spinner,
|
|
9230
9457
|
StatBand,
|
|
9231
9458
|
Stepper,
|
|
@@ -9259,6 +9486,8 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
9259
9486
|
buttonVariants,
|
|
9260
9487
|
cn,
|
|
9261
9488
|
documentHead,
|
|
9489
|
+
iconTileVariants,
|
|
9490
|
+
iconVariants,
|
|
9262
9491
|
isComponentManifest,
|
|
9263
9492
|
resolveGap,
|
|
9264
9493
|
separatorVariants,
|