@slipstream-ui/core 0.12.0 → 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 +262 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +254 -9
- 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/site-header/SiteHeader.js +33 -9
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +33 -9
- package/dist/src/components/site-header/SiteHeader.mjs.map +1 -1
- 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 +2 -2
- 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/site-header/SiteHeader.test.tsx +27 -0
- package/src/components/site-header/SiteHeader.tsx +60 -21
- 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.mjs
CHANGED
|
@@ -4170,6 +4170,24 @@ function SiteHeader({
|
|
|
4170
4170
|
);
|
|
4171
4171
|
};
|
|
4172
4172
|
const hasColumns = (item) => Array.isArray(item.columns) && item.columns.length > 0;
|
|
4173
|
+
const alignPanel = React46.useCallback((panel) => {
|
|
4174
|
+
const item = panel.parentElement;
|
|
4175
|
+
if (!item) return;
|
|
4176
|
+
const itemRect = item.getBoundingClientRect();
|
|
4177
|
+
const width = panel.offsetWidth;
|
|
4178
|
+
const gutter = 8;
|
|
4179
|
+
const centered = itemRect.left + itemRect.width / 2 - width / 2;
|
|
4180
|
+
const left = Math.max(gutter, Math.min(centered, window.innerWidth - gutter - width));
|
|
4181
|
+
panel.style.left = `${left - itemRect.left}px`;
|
|
4182
|
+
panel.style.right = "auto";
|
|
4183
|
+
}, []);
|
|
4184
|
+
const useIsoLayoutEffect = typeof window === "undefined" ? React46.useEffect : React46.useLayoutEffect;
|
|
4185
|
+
useIsoLayoutEffect(() => {
|
|
4186
|
+
if (!openMenu) return;
|
|
4187
|
+
const panelId = `${generatedId}-panel-${openMenu.replace(/\s+/g, "-").toLowerCase()}`;
|
|
4188
|
+
const panel = document.getElementById(panelId);
|
|
4189
|
+
if (panel) alignPanel(panel);
|
|
4190
|
+
}, [openMenu, generatedId, alignPanel]);
|
|
4173
4191
|
return /* @__PURE__ */ jsxs31(Fragment8, { children: [
|
|
4174
4192
|
/* @__PURE__ */ jsxs31(
|
|
4175
4193
|
"header",
|
|
@@ -4261,15 +4279,21 @@ function SiteHeader({
|
|
|
4261
4279
|
{
|
|
4262
4280
|
id: panelId,
|
|
4263
4281
|
hidden: !open,
|
|
4264
|
-
className:
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4282
|
+
className: "absolute left-0 top-full z-50 pt-2",
|
|
4283
|
+
children: /* @__PURE__ */ jsx45(
|
|
4284
|
+
"div",
|
|
4285
|
+
{
|
|
4286
|
+
className: cn(
|
|
4287
|
+
"grid gap-6 rounded-lg border border-border bg-popover p-5 shadow-lg",
|
|
4288
|
+
item.columns.length > 1 ? "grid-cols-2" : "grid-cols-1",
|
|
4289
|
+
item.columns.length > 1 ? "w-[38rem] max-w-[calc(100vw-2rem)]" : "w-[22rem] max-w-[calc(100vw-2rem)]"
|
|
4290
|
+
),
|
|
4291
|
+
children: item.columns.map((column, index) => /* @__PURE__ */ jsxs31("div", { className: "min-w-40", children: [
|
|
4292
|
+
column.heading && /* @__PURE__ */ jsx45("p", { className: "mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: column.heading }),
|
|
4293
|
+
/* @__PURE__ */ jsx45("ul", { className: "flex flex-col gap-0.5", children: column.items.map((link) => /* @__PURE__ */ jsx45("li", { children: navLink(link, "panel") }, `${column.heading ?? index}-${link.href}-${link.label}`)) })
|
|
4294
|
+
] }, column.heading ?? index))
|
|
4295
|
+
}
|
|
4296
|
+
)
|
|
4273
4297
|
}
|
|
4274
4298
|
)
|
|
4275
4299
|
]
|
|
@@ -8878,6 +8902,219 @@ var Breadcrumb = React103.forwardRef(
|
|
|
8878
8902
|
}
|
|
8879
8903
|
);
|
|
8880
8904
|
Breadcrumb.displayName = "Breadcrumb";
|
|
8905
|
+
|
|
8906
|
+
// src/components/icon/Icon.tsx
|
|
8907
|
+
import * as React104 from "react";
|
|
8908
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
8909
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
8910
|
+
var iconVariants = cva9("inline-flex shrink-0 items-center justify-center [&_svg]:shrink-0", {
|
|
8911
|
+
variants: {
|
|
8912
|
+
size: {
|
|
8913
|
+
sm: "[&_svg]:h-3.5 [&_svg]:w-3.5",
|
|
8914
|
+
md: "[&_svg]:h-4 [&_svg]:w-4",
|
|
8915
|
+
lg: "[&_svg]:h-5 [&_svg]:w-5",
|
|
8916
|
+
xl: "[&_svg]:h-6 [&_svg]:w-6"
|
|
8917
|
+
},
|
|
8918
|
+
tone: {
|
|
8919
|
+
default: "text-foreground",
|
|
8920
|
+
muted: "text-muted-foreground",
|
|
8921
|
+
primary: "text-primary-ink",
|
|
8922
|
+
success: "text-success-ink",
|
|
8923
|
+
warning: "text-warning-ink",
|
|
8924
|
+
info: "text-info-ink",
|
|
8925
|
+
destructive: "text-destructive"
|
|
8926
|
+
}
|
|
8927
|
+
},
|
|
8928
|
+
defaultVariants: {
|
|
8929
|
+
size: "md",
|
|
8930
|
+
tone: "default"
|
|
8931
|
+
}
|
|
8932
|
+
});
|
|
8933
|
+
var Icon = React104.forwardRef(
|
|
8934
|
+
({ className, size, tone, icon: IconComponent, label, children, ...props }, ref) => /* @__PURE__ */ jsx105(
|
|
8935
|
+
"span",
|
|
8936
|
+
{
|
|
8937
|
+
ref,
|
|
8938
|
+
role: label ? "img" : void 0,
|
|
8939
|
+
"aria-label": label,
|
|
8940
|
+
"aria-hidden": label ? void 0 : true,
|
|
8941
|
+
className: cn(iconVariants({ size, tone }), className),
|
|
8942
|
+
...props,
|
|
8943
|
+
children: IconComponent ? /* @__PURE__ */ jsx105(IconComponent, { "aria-hidden": "true", focusable: "false" }) : children
|
|
8944
|
+
}
|
|
8945
|
+
)
|
|
8946
|
+
);
|
|
8947
|
+
Icon.displayName = "Icon";
|
|
8948
|
+
|
|
8949
|
+
// src/components/icon-button/IconButton.tsx
|
|
8950
|
+
import * as React105 from "react";
|
|
8951
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
8952
|
+
var sizeClasses11 = {
|
|
8953
|
+
sm: "h-8 w-8",
|
|
8954
|
+
md: void 0,
|
|
8955
|
+
lg: "h-11 w-11"
|
|
8956
|
+
};
|
|
8957
|
+
var IconButton = React105.forwardRef(
|
|
8958
|
+
({ className, label, size = "md", ...props }, ref) => /* @__PURE__ */ jsx106(
|
|
8959
|
+
Button,
|
|
8960
|
+
{
|
|
8961
|
+
ref,
|
|
8962
|
+
size: "icon",
|
|
8963
|
+
"aria-label": label,
|
|
8964
|
+
className: cn(sizeClasses11[size], className),
|
|
8965
|
+
...props
|
|
8966
|
+
}
|
|
8967
|
+
)
|
|
8968
|
+
);
|
|
8969
|
+
IconButton.displayName = "IconButton";
|
|
8970
|
+
|
|
8971
|
+
// src/components/icon-tile/IconTile.tsx
|
|
8972
|
+
import * as React106 from "react";
|
|
8973
|
+
import { cva as cva10 } from "class-variance-authority";
|
|
8974
|
+
import { jsx as jsx107, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
8975
|
+
var iconTileVariants = cva10(
|
|
8976
|
+
"relative inline-flex shrink-0 items-center justify-center rounded-lg [&_svg]:shrink-0",
|
|
8977
|
+
{
|
|
8978
|
+
variants: {
|
|
8979
|
+
tone: {
|
|
8980
|
+
default: "bg-muted text-muted-foreground",
|
|
8981
|
+
primary: "bg-primary/10 text-primary-ink",
|
|
8982
|
+
success: "bg-success/10 text-success-ink",
|
|
8983
|
+
warning: "bg-warning/10 text-warning-ink",
|
|
8984
|
+
info: "bg-info/10 text-info-ink",
|
|
8985
|
+
destructive: "bg-destructive/10 text-destructive"
|
|
8986
|
+
},
|
|
8987
|
+
size: {
|
|
8988
|
+
sm: "h-8 w-8 [&_svg]:h-4 [&_svg]:w-4",
|
|
8989
|
+
md: "h-10 w-10 [&_svg]:h-5 [&_svg]:w-5",
|
|
8990
|
+
lg: "h-12 w-12 [&_svg]:h-6 [&_svg]:w-6"
|
|
8991
|
+
}
|
|
8992
|
+
},
|
|
8993
|
+
defaultVariants: {
|
|
8994
|
+
tone: "default",
|
|
8995
|
+
size: "md"
|
|
8996
|
+
}
|
|
8997
|
+
}
|
|
8998
|
+
);
|
|
8999
|
+
var IconTile = React106.forwardRef(
|
|
9000
|
+
({ className, tone, size, badge, children, ...props }, ref) => /* @__PURE__ */ jsxs77("span", { ref, className: cn(iconTileVariants({ tone, size }), className), ...props, children: [
|
|
9001
|
+
children,
|
|
9002
|
+
badge !== void 0 && badge !== null && /* @__PURE__ */ jsx107("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 })
|
|
9003
|
+
] })
|
|
9004
|
+
);
|
|
9005
|
+
IconTile.displayName = "IconTile";
|
|
9006
|
+
|
|
9007
|
+
// src/components/social-links/SocialLinks.tsx
|
|
9008
|
+
import * as React107 from "react";
|
|
9009
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
9010
|
+
function isElement(icon) {
|
|
9011
|
+
return React107.isValidElement(icon);
|
|
9012
|
+
}
|
|
9013
|
+
var SocialLinks = React107.forwardRef(
|
|
9014
|
+
({ className, links, label = "Social links", iconSize = "md", iconTone = "muted", ...props }, ref) => /* @__PURE__ */ jsx108("nav", { ref, "aria-label": label, className: cn("flex items-center gap-1", className), ...props, children: /* @__PURE__ */ jsx108("ul", { className: "flex items-center gap-1", children: links.map((link) => /* @__PURE__ */ jsx108("li", { children: /* @__PURE__ */ jsx108(
|
|
9015
|
+
"a",
|
|
9016
|
+
{
|
|
9017
|
+
href: link.href,
|
|
9018
|
+
target: "_blank",
|
|
9019
|
+
rel: "noopener noreferrer",
|
|
9020
|
+
"aria-label": link.icon ? link.label : void 0,
|
|
9021
|
+
className: cn(
|
|
9022
|
+
"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",
|
|
9023
|
+
link.icon ? "h-9 w-9" : "px-3 py-1.5 text-sm"
|
|
9024
|
+
),
|
|
9025
|
+
children: link.icon ? isElement(link.icon) ? /* @__PURE__ */ jsx108(Icon, { size: iconSize, tone: iconTone, children: link.icon }) : /* @__PURE__ */ jsx108(
|
|
9026
|
+
Icon,
|
|
9027
|
+
{
|
|
9028
|
+
size: iconSize,
|
|
9029
|
+
tone: iconTone,
|
|
9030
|
+
icon: link.icon
|
|
9031
|
+
}
|
|
9032
|
+
) : link.label
|
|
9033
|
+
}
|
|
9034
|
+
) }, link.href)) }) })
|
|
9035
|
+
);
|
|
9036
|
+
SocialLinks.displayName = "SocialLinks";
|
|
9037
|
+
|
|
9038
|
+
// src/components/figure/Figure.tsx
|
|
9039
|
+
import * as React108 from "react";
|
|
9040
|
+
import { jsx as jsx109, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
9041
|
+
var Figure = React108.forwardRef(
|
|
9042
|
+
({ className, caption, credit, align = "left", children, ...props }, ref) => /* @__PURE__ */ jsxs78("figure", { ref, className: cn("m-0", className), ...props, children: [
|
|
9043
|
+
children,
|
|
9044
|
+
(caption || credit) && /* @__PURE__ */ jsxs78(
|
|
9045
|
+
"figcaption",
|
|
9046
|
+
{
|
|
9047
|
+
className: cn(
|
|
9048
|
+
"mt-2 text-xs text-muted-foreground",
|
|
9049
|
+
align === "center" && "text-center"
|
|
9050
|
+
),
|
|
9051
|
+
children: [
|
|
9052
|
+
caption,
|
|
9053
|
+
credit && /* @__PURE__ */ jsx109("span", { className: "mt-0.5 block text-muted-foreground/80", children: credit })
|
|
9054
|
+
]
|
|
9055
|
+
}
|
|
9056
|
+
)
|
|
9057
|
+
] })
|
|
9058
|
+
);
|
|
9059
|
+
Figure.displayName = "Figure";
|
|
9060
|
+
|
|
9061
|
+
// src/components/media/Media.tsx
|
|
9062
|
+
import * as React109 from "react";
|
|
9063
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
9064
|
+
var aspectClasses2 = {
|
|
9065
|
+
video: "aspect-video",
|
|
9066
|
+
square: "aspect-square",
|
|
9067
|
+
wide: "aspect-[2/1]"
|
|
9068
|
+
};
|
|
9069
|
+
var Media = React109.forwardRef(
|
|
9070
|
+
({
|
|
9071
|
+
className,
|
|
9072
|
+
aspect = "video",
|
|
9073
|
+
src,
|
|
9074
|
+
alt = "",
|
|
9075
|
+
sizes,
|
|
9076
|
+
priority = false,
|
|
9077
|
+
fallback,
|
|
9078
|
+
caption,
|
|
9079
|
+
credit,
|
|
9080
|
+
align,
|
|
9081
|
+
children,
|
|
9082
|
+
...props
|
|
9083
|
+
}, ref) => {
|
|
9084
|
+
const preset = aspectClasses2[aspect];
|
|
9085
|
+
const aspectStyle = preset === void 0 && typeof aspect === "string" ? { aspectRatio: aspect } : void 0;
|
|
9086
|
+
return /* @__PURE__ */ jsx110(
|
|
9087
|
+
Figure,
|
|
9088
|
+
{
|
|
9089
|
+
ref,
|
|
9090
|
+
caption,
|
|
9091
|
+
credit,
|
|
9092
|
+
align,
|
|
9093
|
+
className,
|
|
9094
|
+
...props,
|
|
9095
|
+
children: /* @__PURE__ */ jsx110(
|
|
9096
|
+
"div",
|
|
9097
|
+
{
|
|
9098
|
+
className: cn("relative overflow-hidden rounded-lg bg-muted", preset),
|
|
9099
|
+
style: aspectStyle,
|
|
9100
|
+
children: src ? /* @__PURE__ */ jsx110(
|
|
9101
|
+
Image2,
|
|
9102
|
+
{
|
|
9103
|
+
src,
|
|
9104
|
+
alt,
|
|
9105
|
+
priority,
|
|
9106
|
+
sizes,
|
|
9107
|
+
fallback,
|
|
9108
|
+
className: "h-full w-full object-cover"
|
|
9109
|
+
}
|
|
9110
|
+
) : children ?? fallback
|
|
9111
|
+
}
|
|
9112
|
+
)
|
|
9113
|
+
}
|
|
9114
|
+
);
|
|
9115
|
+
}
|
|
9116
|
+
);
|
|
9117
|
+
Media.displayName = "Media";
|
|
8881
9118
|
export {
|
|
8882
9119
|
Accordion,
|
|
8883
9120
|
AccordionContent,
|
|
@@ -8938,6 +9175,7 @@ export {
|
|
|
8938
9175
|
FeatureGrid,
|
|
8939
9176
|
FeatureRow,
|
|
8940
9177
|
Fieldset,
|
|
9178
|
+
Figure,
|
|
8941
9179
|
FileUpload,
|
|
8942
9180
|
FilterBar,
|
|
8943
9181
|
FilterChips,
|
|
@@ -8951,6 +9189,9 @@ export {
|
|
|
8951
9189
|
GridItem,
|
|
8952
9190
|
Heading,
|
|
8953
9191
|
Hero,
|
|
9192
|
+
Icon,
|
|
9193
|
+
IconButton,
|
|
9194
|
+
IconTile,
|
|
8954
9195
|
Image2 as Image,
|
|
8955
9196
|
Input,
|
|
8956
9197
|
InputGroup,
|
|
@@ -8963,6 +9204,7 @@ export {
|
|
|
8963
9204
|
ListToolbar,
|
|
8964
9205
|
LoadMore,
|
|
8965
9206
|
LogoCloud,
|
|
9207
|
+
Media,
|
|
8966
9208
|
MediaCard,
|
|
8967
9209
|
Menu,
|
|
8968
9210
|
MenuContent,
|
|
@@ -9002,6 +9244,7 @@ export {
|
|
|
9002
9244
|
SiteFooter,
|
|
9003
9245
|
SiteHeader,
|
|
9004
9246
|
Skeleton,
|
|
9247
|
+
SocialLinks,
|
|
9005
9248
|
Spinner,
|
|
9006
9249
|
StatBand,
|
|
9007
9250
|
Stepper,
|
|
@@ -9035,6 +9278,8 @@ export {
|
|
|
9035
9278
|
buttonVariants,
|
|
9036
9279
|
cn,
|
|
9037
9280
|
documentHead,
|
|
9281
|
+
iconTileVariants,
|
|
9282
|
+
iconVariants,
|
|
9038
9283
|
isComponentManifest,
|
|
9039
9284
|
resolveGap,
|
|
9040
9285
|
separatorVariants,
|