@thewhatmatters/wmds 0.4.42 → 0.4.45
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/CHANGELOG.md +55 -1
- package/dist/components/atoms/Button/ButtonSpinner.js +1 -1
- package/dist/components/atoms/Button/ButtonStatusButton.d.ts.map +1 -1
- package/dist/components/atoms/Button/ButtonStatusButton.js +57 -38
- package/dist/components/atoms/Button/ButtonStatusContent.d.ts.map +1 -1
- package/dist/components/atoms/Button/ButtonStatusContent.js +10 -10
- package/dist/components/atoms/Button/buttonStatusMotion.d.ts.map +1 -1
- package/dist/components/atoms/Button/buttonStatusMotion.js +2 -2
- package/dist/components/atoms/Button/buttonStatusStyles.d.ts +4 -0
- package/dist/components/atoms/Button/buttonStatusStyles.d.ts.map +1 -1
- package/dist/components/atoms/Button/buttonStatusStyles.js +4 -4
- package/dist/components/atoms/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.js +41 -40
- package/dist/components/atoms/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/atoms/IconButton/IconButton.js +75 -74
- package/dist/components/atoms/Input/Input.d.ts +2 -0
- package/dist/components/atoms/Input/Input.d.ts.map +1 -1
- package/dist/components/atoms/Input/Input.js +87 -81
- package/dist/components/atoms/Status/Status.js +1 -1
- package/dist/components/atoms/Status/statusRingStyles.d.ts +1 -1
- package/dist/components/atoms/Status/statusRingStyles.d.ts.map +1 -1
- package/dist/components/atoms/Status/statusRingStyles.js +1 -1
- package/dist/components/atoms/Switch/Switch.d.ts.map +1 -1
- package/dist/components/atoms/Switch/Switch.js +53 -52
- package/dist/components/atoms/TextArea/TextArea.d.ts +2 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/atoms/TextArea/TextArea.js +59 -49
- package/dist/components/atoms/inputShared/InputTrailingAffordance.d.ts.map +1 -1
- package/dist/components/atoms/inputShared/InputTrailingAffordance.js +16 -14
- package/dist/components/molecules/CalEmbed/CalEmbed.d.ts.map +1 -1
- package/dist/components/molecules/CalEmbed/CalEmbed.js +17 -23
- package/dist/components/molecules/EmptyState/EmptyState.d.ts +41 -0
- package/dist/components/molecules/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/molecules/EmptyState/EmptyState.js +46 -0
- package/dist/components/molecules/EmptyState/emptyStateStyles.d.ts +10 -0
- package/dist/components/molecules/EmptyState/emptyStateStyles.d.ts.map +1 -0
- package/dist/components/molecules/EmptyState/emptyStateStyles.js +11 -0
- package/dist/components/molecules/IndexList/IndexList.d.ts +6 -1
- package/dist/components/molecules/IndexList/IndexList.d.ts.map +1 -1
- package/dist/components/molecules/IndexList/IndexList.js +67 -58
- package/dist/components/molecules/LinkTile/LinkTile.d.ts +4 -2
- package/dist/components/molecules/LinkTile/LinkTile.d.ts.map +1 -1
- package/dist/components/molecules/LinkTile/LinkTile.js +89 -81
- package/dist/components/molecules/LogView/LogView.d.ts.map +1 -1
- package/dist/components/molecules/LogView/LogView.js +68 -63
- package/dist/components/molecules/Progress/Progress.d.ts +38 -0
- package/dist/components/molecules/Progress/Progress.d.ts.map +1 -0
- package/dist/components/molecules/Progress/Progress.js +96 -0
- package/dist/components/molecules/Progress/progressStyles.d.ts +17 -0
- package/dist/components/molecules/Progress/progressStyles.d.ts.map +1 -0
- package/dist/components/molecules/Progress/progressStyles.js +9 -0
- package/dist/components/molecules/Stat/Stat.d.ts.map +1 -1
- package/dist/components/molecules/Stat/Stat.js +65 -61
- package/dist/components/molecules/TaskRows/TaskRowsTable.d.ts.map +1 -1
- package/dist/components/molecules/TaskRows/TaskRowsTable.js +77 -76
- package/dist/components/molecules/TileGrid/TileGrid.d.ts +6 -1
- package/dist/components/molecules/TileGrid/TileGrid.d.ts.map +1 -1
- package/dist/components/molecules/TileGrid/TileGrid.js +52 -47
- package/dist/components/organisms/AppShell/AppShell.d.ts +10 -2
- package/dist/components/organisms/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/organisms/AppShell/AppShell.js +237 -198
- package/dist/components/organisms/AppShell/appShellStyles.d.ts +11 -0
- package/dist/components/organisms/AppShell/appShellStyles.d.ts.map +1 -1
- package/dist/components/organisms/AppShell/appShellStyles.js +2 -2
- package/dist/components/organisms/Chart/ChartSegmentedRing.d.ts +10 -4
- package/dist/components/organisms/Chart/ChartSegmentedRing.d.ts.map +1 -1
- package/dist/components/organisms/Chart/ChartSegmentedRing.js +7 -2
- package/dist/components/organisms/Chart/chartStyles.d.ts +4 -0
- package/dist/components/organisms/Chart/chartStyles.d.ts.map +1 -1
- package/dist/components/organisms/Chart/chartStyles.js +4 -2
- package/dist/components/organisms/SiteNav/SiteNav.d.ts +8 -1
- package/dist/components/organisms/SiteNav/SiteNav.d.ts.map +1 -1
- package/dist/components/organisms/SiteNav/SiteNav.js +73 -69
- package/dist/components/organisms/SiteNav/siteNavStyles.d.ts +6 -0
- package/dist/components/organisms/SiteNav/siteNavStyles.d.ts.map +1 -1
- package/dist/components/organisms/SiteNav/siteNavStyles.js +6 -6
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +158 -153
- package/dist/lib/useDelayedLoading.d.ts +13 -0
- package/dist/lib/useDelayedLoading.d.ts.map +1 -0
- package/dist/lib/useDelayedLoading.js +27 -0
- package/dist/motion.css +10 -0
- package/dist/styles.css +1 -1
- package/docs/components.md +1 -1
- package/docs/exports.json +26 -1
- package/docs/patterns/components-accordion--flush.tsx +1 -1
- package/docs/patterns/components-appshell--portal-dashboard-pattern.tsx +1 -1
- package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
- package/docs/patterns/components-badge--outline-tags.tsx +1 -1
- package/docs/patterns/components-badge--status-pill.tsx +1 -1
- package/docs/patterns/components-badge--with-avatar.tsx +1 -1
- package/docs/patterns/components-band--page-in-bands.tsx +1 -1
- package/docs/patterns/components-breadcrumb--editorial.tsx +1 -1
- package/docs/patterns/components-breadcrumb--long-path.tsx +1 -1
- package/docs/patterns/components-breadcrumb--path.tsx +1 -1
- package/docs/patterns/components-breadcrumb--router-links.tsx +1 -1
- package/docs/patterns/components-button-button--copy-button.tsx +1 -1
- package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
- package/docs/patterns/components-button-button--external-link.tsx +1 -1
- package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
- package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
- package/docs/patterns/components-button-button--link-render.tsx +1 -1
- package/docs/patterns/components-button-button--multi-state-badge.tsx +2 -2
- package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
- package/docs/patterns/components-button-button--primary-action.tsx +1 -1
- package/docs/patterns/components-button-button--row-hug.tsx +1 -1
- package/docs/patterns/components-button-button--row-layout.tsx +1 -1
- package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
- package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
- package/docs/patterns/components-button-button--with-count.tsx +1 -1
- package/docs/patterns/components-button-button--with-icon.tsx +1 -1
- package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
- package/docs/patterns/components-calembed--pattern-skip-above.tsx +1 -1
- package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
- package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
- package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
- package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
- package/docs/patterns/components-card-card--terminal-frame.tsx +1 -1
- package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
- package/docs/patterns/components-carousel--image-carousel.tsx +1 -1
- package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
- package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
- package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
- package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
- package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
- package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
- package/docs/patterns/components-chart--revenue-by-line.tsx +1 -1
- package/docs/patterns/components-chart--segmented-ring-pattern.tsx +1 -1
- package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
- package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +1 -1
- package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +1 -1
- package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--with-count.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
- package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
- package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +1 -1
- package/docs/patterns/components-copyfield--clipboard-blocked.tsx +1 -1
- package/docs/patterns/components-copyfield--copied.tsx +1 -1
- package/docs/patterns/components-copyfield--copy-key.tsx +1 -1
- package/docs/patterns/components-copyfield--on-navy.tsx +1 -1
- package/docs/patterns/components-descriptionlist--details.tsx +1 -1
- package/docs/patterns/components-descriptionlist--post-metadata.tsx +1 -1
- package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
- package/docs/patterns/components-dialog--alert-dialog-typed-confirmation.tsx +1 -1
- package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
- package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
- package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
- package/docs/patterns/components-displaycontrols--theme-switch.tsx +1 -1
- package/docs/patterns/components-errorsummary--contact-form.tsx +1 -1
- package/docs/patterns/components-field--horizontal-input.tsx +1 -1
- package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
- package/docs/patterns/components-field--multi-control.tsx +1 -1
- package/docs/patterns/components-filterpanel--panel.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
- package/docs/patterns/components-herointro--two-line-intro.tsx +1 -1
- package/docs/patterns/components-herointro--with-actions.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +1 -1
- package/docs/patterns/components-indexlist--post-index.tsx +1 -1
- package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
- package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
- package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
- package/docs/patterns/components-intakeform--short-form-pattern.tsx +1 -1
- package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
- package/docs/patterns/components-kbd--command-row.tsx +1 -1
- package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
- package/docs/patterns/components-kbd--shortcut.tsx +1 -1
- package/docs/patterns/components-linktile--resource-tile.tsx +1 -1
- package/docs/patterns/components-linktile--router-link.tsx +1 -1
- package/docs/patterns/components-logview--detail-pane.tsx +1 -1
- package/docs/patterns/components-logview--log-viewer.tsx +1 -1
- package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
- package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
- package/docs/patterns/components-navlist--app-sidebar.tsx +1 -1
- package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
- package/docs/patterns/components-notice--account-not-connected.tsx +1 -1
- package/docs/patterns/components-notice--holiday-closure.tsx +1 -1
- package/docs/patterns/components-notice--private-buyout.tsx +1 -1
- package/docs/patterns/components-notice--sync-failed.tsx +1 -1
- package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
- package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
- package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
- package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
- package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
- package/docs/patterns/components-progress--upload-pattern.tsx +9 -0
- package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
- package/docs/patterns/components-prose--article-body.tsx +1 -1
- package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
- package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
- package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
- package/docs/patterns/components-sectioncaption--column-caption.tsx +1 -1
- package/docs/patterns/components-sectioncaption--with-action.tsx +1 -1
- package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
- package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet-header-actions.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet-url-deep-link.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet.tsx +1 -1
- package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
- package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
- package/docs/patterns/components-sitenav--compact.tsx +1 -1
- package/docs/patterns/components-sitenav--marketing-header.tsx +1 -1
- package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
- package/docs/patterns/components-stat--hero-stat.tsx +1 -1
- package/docs/patterns/components-stat--insights-row.tsx +1 -1
- package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
- package/docs/patterns/components-switch--default.tsx +1 -1
- package/docs/patterns/components-switch--settings-row.tsx +1 -1
- package/docs/patterns/components-tab--settings-pages.tsx +1 -1
- package/docs/patterns/components-table--approvals-with-sheet.tsx +1 -1
- package/docs/patterns/components-table--approvals.tsx +1 -1
- package/docs/patterns/components-table--basic.tsx +1 -1
- package/docs/patterns/components-taskrows--action-details.tsx +1 -1
- package/docs/patterns/components-taskrows--capsules.tsx +1 -1
- package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
- package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
- package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
- package/docs/patterns/components-taskrows--needs-you-table.tsx +1 -1
- package/docs/patterns/components-taskrows--status-list.tsx +1 -1
- package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
- package/docs/patterns/components-textarea--save-status.tsx +1 -1
- package/docs/patterns/components-textlink--external-destination.tsx +1 -1
- package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
- package/docs/patterns/components-textlink--quiet-title.tsx +1 -1
- package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
- package/docs/patterns/components-textsequence--default.tsx +1 -1
- package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
- package/docs/patterns/components-textsequence--shapes.tsx +1 -1
- package/docs/patterns/components-tilegrid--masonry.tsx +1 -1
- package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
- package/docs/patterns/components-tooltip--controlled.tsx +1 -1
- package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
- package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
- package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
- package/docs/patterns/components-tooltip--placement.tsx +1 -1
- package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
- package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
- package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
- package/docs/patterns/guides-filter-panel--filtered-grid.tsx +1 -1
- package/docs/patterns/guides-filter-panel--filtered-index.tsx +1 -1
- package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
- package/docs/patterns/guides-post-page--post-page.tsx +1 -1
- package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
- package/docs/patterns/guides-resource-detail--detail.tsx +1 -1
- package/docs/patterns/index.json +9 -1
- package/package.json +2 -1
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../../lib/cn.js";
|
|
3
3
|
import { motionTransitionProp as t } from "../../../lib/motion.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { emptySlot as n } from "../EmptyState/EmptyState.js";
|
|
5
|
+
import { tileGridBreakpoints as r, tileGridDefaultColumns as i, tileGridEmptyClasses as a, tileGridItemClasses as o, tileGridItemInnerClasses as s, tileGridLayouts as c, tileGridListClasses as l, tileGridRootClasses as u } from "./tileGridStyles.js";
|
|
6
|
+
import { tileGridColumnCount as d, tileGridResolveColumns as f, tileGridRowSpan as p } from "./tileGridMath.js";
|
|
7
|
+
import { Children as m, forwardRef as h, isValidElement as g, useLayoutEffect as _, useMemo as v, useRef as y } from "react";
|
|
8
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
9
|
+
import { AnimatePresence as S, motion as C, useReducedMotion as w } from "motion/react";
|
|
9
10
|
//#region src/components/molecules/TileGrid/TileGrid.tsx
|
|
10
|
-
function
|
|
11
|
-
let
|
|
12
|
-
"--tile-grid-cols":
|
|
13
|
-
"--tile-grid-cols-sm":
|
|
14
|
-
"--tile-grid-cols-md":
|
|
15
|
-
"--tile-grid-cols-lg":
|
|
16
|
-
"--tile-grid-cols-xl":
|
|
11
|
+
function T({ layout: t = "masonry", columns: r, empty: i, resultsLabel: o, busy: s = !1, "aria-label": c, "aria-labelledby": h, children: C, className: w }) {
|
|
12
|
+
let T = y(null), E = m.toArray(C), D = E.length > 0, O = E.map((e) => g(e) ? e.key : "").join("|"), k = f(r), A = v(() => ({
|
|
13
|
+
"--tile-grid-cols": k.base,
|
|
14
|
+
"--tile-grid-cols-sm": k.sm,
|
|
15
|
+
"--tile-grid-cols-md": k.md,
|
|
16
|
+
"--tile-grid-cols-lg": k.lg,
|
|
17
|
+
"--tile-grid-cols-xl": k.xl
|
|
17
18
|
}), [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
k.base,
|
|
20
|
+
k.sm,
|
|
21
|
+
k.md,
|
|
22
|
+
k.lg,
|
|
23
|
+
k.xl
|
|
23
24
|
]);
|
|
24
|
-
return
|
|
25
|
-
let e =
|
|
25
|
+
return _(() => {
|
|
26
|
+
let e = T.current;
|
|
26
27
|
if (e == null) return;
|
|
27
28
|
let n = () => [...e.children].filter((e) => e instanceof HTMLElement);
|
|
28
29
|
if (t !== "masonry" || typeof ResizeObserver > "u") {
|
|
@@ -31,12 +32,12 @@ function C({ layout: t = "masonry", columns: n, empty: r, busy: a = !1, "aria-la
|
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
33
34
|
let r = () => {
|
|
34
|
-
let t =
|
|
35
|
+
let t = d(getComputedStyle(e).gridTemplateColumns) > 1;
|
|
35
36
|
for (let e of n()) {
|
|
36
37
|
let n = e.firstElementChild;
|
|
37
38
|
if (t && n != null) {
|
|
38
39
|
let t = n instanceof HTMLElement ? n.offsetHeight : n.getBoundingClientRect().height;
|
|
39
|
-
e.style.gridRowEnd = `span ${
|
|
40
|
+
e.style.gridRowEnd = `span ${p(t, 4)}`;
|
|
40
41
|
} else e.style.removeProperty("grid-row-end");
|
|
41
42
|
}
|
|
42
43
|
e.toggleAttribute("data-packed", t);
|
|
@@ -50,45 +51,49 @@ function C({ layout: t = "masonry", columns: n, empty: r, busy: a = !1, "aria-la
|
|
|
50
51
|
return () => {
|
|
51
52
|
cancelAnimationFrame(i), a.disconnect();
|
|
52
53
|
};
|
|
53
|
-
}, [t,
|
|
54
|
-
className: e(
|
|
54
|
+
}, [t, O]), /* @__PURE__ */ x("div", {
|
|
55
|
+
className: e(u, w),
|
|
55
56
|
"data-tile-grid": "",
|
|
56
57
|
"data-layout": t,
|
|
57
|
-
children:
|
|
58
|
-
ref:
|
|
58
|
+
children: [D ? /* @__PURE__ */ b("ul", {
|
|
59
|
+
ref: T,
|
|
59
60
|
role: "list",
|
|
60
|
-
"aria-label":
|
|
61
|
-
"aria-labelledby":
|
|
62
|
-
"aria-busy":
|
|
63
|
-
className:
|
|
64
|
-
style:
|
|
65
|
-
children: /* @__PURE__ */
|
|
61
|
+
"aria-label": c,
|
|
62
|
+
"aria-labelledby": h,
|
|
63
|
+
"aria-busy": s || void 0,
|
|
64
|
+
className: l,
|
|
65
|
+
style: A,
|
|
66
|
+
children: /* @__PURE__ */ b(S, {
|
|
66
67
|
initial: !1,
|
|
67
68
|
mode: "popLayout",
|
|
68
|
-
children:
|
|
69
|
+
children: C
|
|
69
70
|
})
|
|
70
|
-
}) :
|
|
71
|
-
className:
|
|
71
|
+
}) : i == null ? null : /* @__PURE__ */ b("div", {
|
|
72
|
+
className: a,
|
|
72
73
|
"data-tile-grid-empty": "",
|
|
73
|
-
children:
|
|
74
|
-
})
|
|
74
|
+
children: n(i)
|
|
75
|
+
}), o == null ? null : /* @__PURE__ */ b("p", {
|
|
76
|
+
role: "status",
|
|
77
|
+
className: "sr-only",
|
|
78
|
+
children: o
|
|
79
|
+
})]
|
|
75
80
|
});
|
|
76
81
|
}
|
|
77
|
-
var
|
|
78
|
-
let
|
|
79
|
-
return /* @__PURE__ */
|
|
82
|
+
var E = h(function({ children: n, className: r }, i) {
|
|
83
|
+
let a = w() ?? !1;
|
|
84
|
+
return /* @__PURE__ */ b(C.li, {
|
|
80
85
|
ref: i,
|
|
81
|
-
layout: !
|
|
82
|
-
initial: !
|
|
86
|
+
layout: !a && "position",
|
|
87
|
+
initial: !a && { opacity: 0 },
|
|
83
88
|
animate: { opacity: 1 },
|
|
84
|
-
exit:
|
|
89
|
+
exit: a ? void 0 : { opacity: 0 },
|
|
85
90
|
transition: t("medium"),
|
|
86
|
-
className: e(
|
|
87
|
-
children: /* @__PURE__ */
|
|
88
|
-
className:
|
|
91
|
+
className: e(o, r),
|
|
92
|
+
children: /* @__PURE__ */ b("div", {
|
|
93
|
+
className: s,
|
|
89
94
|
children: n
|
|
90
95
|
})
|
|
91
96
|
});
|
|
92
|
-
}),
|
|
97
|
+
}), D = Object.assign(T, { Item: E });
|
|
93
98
|
//#endregion
|
|
94
|
-
export {
|
|
99
|
+
export { D as TileGrid, r as tileGridBreakpoints, i as tileGridDefaultColumns, c as tileGridLayouts };
|
|
@@ -13,7 +13,7 @@ export interface AppShellLabels {
|
|
|
13
13
|
/** The skip link, the first tab stop, which moves focus to the page content. */
|
|
14
14
|
skipToContent: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const appShellAsideModes: readonly ["overlay", "docked"];
|
|
16
|
+
export declare const appShellAsideModes: readonly ["overlay", "docked", "inset"];
|
|
17
17
|
export type AppShellAsideMode = (typeof appShellAsideModes)[number];
|
|
18
18
|
export declare const appShellMenuButtons: readonly ["icon", "label", "picker"];
|
|
19
19
|
export type AppShellMenuButton = (typeof appShellMenuButtons)[number];
|
|
@@ -28,11 +28,15 @@ export interface AppShellProps {
|
|
|
28
28
|
sidebarFooter?: ReactNode;
|
|
29
29
|
/** Trailing title-bar controls — **Button**, **Avatar**, **MoreMenu** at one cluster tier. */
|
|
30
30
|
header?: ReactNode;
|
|
31
|
+
/** Full-width band under the title bar (a view toolbar). With an inset aside it spans above both. */
|
|
32
|
+
toolbar?: ReactNode;
|
|
31
33
|
/** Right slide-out content, in a non-blocking **Panel**. Omit it for no aside. */
|
|
32
34
|
aside?: ReactNode;
|
|
33
35
|
/** Title of the aside **Panel**. Defaults to `labels.aside`. */
|
|
34
36
|
asideTitle?: ReactNode;
|
|
35
37
|
asideDescription?: ReactNode;
|
|
38
|
+
/** Pinned under the aside's scrolling body (actions that must stay in view, such as Copy and Reset). The **Panel** `footer` in overlay mode. */
|
|
39
|
+
asideFooter?: ReactNode;
|
|
36
40
|
/** Desktop sidebar expanded — controlled. */
|
|
37
41
|
sidebarOpen?: boolean;
|
|
38
42
|
defaultSidebarOpen?: boolean;
|
|
@@ -41,6 +45,8 @@ export interface AppShellProps {
|
|
|
41
45
|
* `overlay` (default): the aside is a non-blocking **Panel** over the page.
|
|
42
46
|
* `docked`: from `lg` it sits beside the page, which narrows to make room, for controls you use while
|
|
43
47
|
* watching the page change (a font panel). Below `lg` it's the overlay **Panel** either way.
|
|
48
|
+
* `inset`: from `lg` a raised card floating inside the page surface, under the title bar and `toolbar`,
|
|
49
|
+
* 12px from the end and bottom; the page body narrows beside it. Its header is the title bar's 56px band.
|
|
44
50
|
*/
|
|
45
51
|
asideMode?: AppShellAsideMode;
|
|
46
52
|
/** Aside open — controlled. */
|
|
@@ -71,6 +77,7 @@ declare function AppShellBrand({ children }: AppShellSlotProps): import("react")
|
|
|
71
77
|
declare function AppShellSidebar({ children }: AppShellSlotProps): import("react").JSX.Element;
|
|
72
78
|
declare function AppShellSidebarFooter({ children }: AppShellSlotProps): import("react").JSX.Element;
|
|
73
79
|
declare function AppShellHeader({ children }: AppShellSlotProps): import("react").JSX.Element;
|
|
80
|
+
declare function AppShellToolbar({ children }: AppShellSlotProps): import("react").JSX.Element;
|
|
74
81
|
declare function AppShellAside({ children }: AppShellAsideSlotProps): import("react").JSX.Element;
|
|
75
82
|
export interface AppShellContextValue {
|
|
76
83
|
/** Desktop sidebar is expanded. */
|
|
@@ -86,7 +93,7 @@ export interface AppShellContextValue {
|
|
|
86
93
|
}
|
|
87
94
|
/** State of the nearest **AppShell** — for a header button that opens the aside. */
|
|
88
95
|
export declare function useAppShell(): AppShellContextValue;
|
|
89
|
-
declare function AppShellRoot({ title, brand: brandProp, sidebar: sidebarProp, sidebarFooter: sidebarFooterProp, header: headerProp, aside: asideProp, asideTitle, asideDescription, sidebarOpen: sidebarOpenProp, defaultSidebarOpen, onSidebarOpenChange, asideOpen: asideOpenProp, defaultAsideOpen, onAsideOpenChange, asideMode, menuButton, labels: labelsProp, children, className, }: AppShellProps): import("react").JSX.Element;
|
|
96
|
+
declare function AppShellRoot({ title, brand: brandProp, sidebar: sidebarProp, sidebarFooter: sidebarFooterProp, header: headerProp, toolbar: toolbarProp, aside: asideProp, asideTitle, asideDescription, asideFooter, sidebarOpen: sidebarOpenProp, defaultSidebarOpen, onSidebarOpenChange, asideOpen: asideOpenProp, defaultAsideOpen, onAsideOpenChange, asideMode, menuButton, labels: labelsProp, children, className, }: AppShellProps): import("react").JSX.Element;
|
|
90
97
|
/**
|
|
91
98
|
* App chrome — a sidebar on the page background and the page as an inset, raised surface with a
|
|
92
99
|
* title bar. Below `lg` the sidebar is a start **Sheet**; the optional aside is a non-blocking **Panel**,
|
|
@@ -97,6 +104,7 @@ export declare const AppShell: typeof AppShellRoot & {
|
|
|
97
104
|
Sidebar: typeof AppShellSidebar;
|
|
98
105
|
SidebarFooter: typeof AppShellSidebarFooter;
|
|
99
106
|
Header: typeof AppShellHeader;
|
|
107
|
+
Toolbar: typeof AppShellToolbar;
|
|
100
108
|
Aside: typeof AppShellAside;
|
|
101
109
|
};
|
|
102
110
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/AppShell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAYL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/AppShell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAYL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAuCf,uDAAuD;AACvD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,MAAM,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,aAAa,EAAE,MAAM,CAA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