@thewhatmatters/wmds 0.4.9 → 0.4.27
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 +253 -0
- package/README.md +1 -1
- package/dist/components/atoms/Badge/Badge.d.ts +13 -5
- package/dist/components/atoms/Badge/Badge.d.ts.map +1 -1
- package/dist/components/atoms/Badge/Badge.js +56 -48
- package/dist/components/atoms/Badge/badgeStyles.d.ts +15 -0
- package/dist/components/atoms/Badge/badgeStyles.d.ts.map +1 -1
- package/dist/components/atoms/Badge/badgeStyles.js +38 -16
- package/dist/components/atoms/Button/Button.d.ts +1 -1
- package/dist/components/atoms/Button/Button.d.ts.map +1 -1
- package/dist/components/atoms/Button/Button.js +67 -48
- package/dist/components/atoms/Button/buttonStatusMotion.d.ts.map +1 -1
- package/dist/components/atoms/Button/buttonStatusMotion.js +6 -1
- package/dist/components/atoms/Button/buttonStyles.d.ts +1 -1
- package/dist/components/atoms/Button/buttonStyles.d.ts.map +1 -1
- package/dist/components/atoms/Button/buttonStyles.js +14 -12
- package/dist/components/atoms/Input/Input.d.ts +3 -1
- package/dist/components/atoms/Input/Input.d.ts.map +1 -1
- package/dist/components/atoms/Input/Input.js +59 -59
- package/dist/components/atoms/Input/inputShellStyles.d.ts +9 -3
- package/dist/components/atoms/Input/inputShellStyles.d.ts.map +1 -1
- package/dist/components/atoms/Input/inputShellStyles.js +38 -38
- package/dist/components/atoms/RiveHand/RiveHand.d.ts.map +1 -1
- package/dist/components/atoms/RiveHand/RiveHand.js +83 -81
- package/dist/components/atoms/Table/Table.d.ts +54 -0
- package/dist/components/atoms/Table/Table.d.ts.map +1 -0
- package/dist/components/atoms/Table/Table.js +66 -0
- package/dist/components/atoms/Table/tableStyles.d.ts +18 -0
- package/dist/components/atoms/Table/tableStyles.d.ts.map +1 -0
- package/dist/components/atoms/Table/tableStyles.js +14 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts +6 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/atoms/TextArea/TextArea.js +86 -78
- package/dist/components/atoms/TextArea/textareaShellStyles.d.ts +2 -2
- package/dist/components/atoms/TextArea/textareaShellStyles.d.ts.map +1 -1
- package/dist/components/atoms/TextArea/textareaShellStyles.js +2 -2
- package/dist/components/molecules/Card/Card.d.ts +28 -6
- package/dist/components/molecules/Card/Card.d.ts.map +1 -1
- package/dist/components/molecules/Card/Card.js +83 -42
- package/dist/components/molecules/Card/cardStyles.d.ts +16 -1
- package/dist/components/molecules/Card/cardStyles.d.ts.map +1 -1
- package/dist/components/molecules/Card/cardStyles.js +18 -4
- package/dist/components/molecules/Chip/chipStyles.js +9 -9
- package/dist/components/molecules/CopyField/CopyField.d.ts +41 -0
- package/dist/components/molecules/CopyField/CopyField.d.ts.map +1 -0
- package/dist/components/molecules/CopyField/CopyField.js +120 -0
- package/dist/components/molecules/CopyField/copyFieldStyles.d.ts +28 -0
- package/dist/components/molecules/CopyField/copyFieldStyles.d.ts.map +1 -0
- package/dist/components/molecules/CopyField/copyFieldStyles.js +7 -0
- package/dist/components/molecules/DisplayControls/DisplayControls.d.ts +16 -7
- package/dist/components/molecules/DisplayControls/DisplayControls.d.ts.map +1 -1
- package/dist/components/molecules/DisplayControls/DisplayControls.js +41 -39
- package/dist/components/molecules/DisplayControls/displayControlsState.d.ts +21 -0
- package/dist/components/molecules/DisplayControls/displayControlsState.d.ts.map +1 -1
- package/dist/components/molecules/DisplayControls/displayControlsState.js +46 -4
- package/dist/components/molecules/LogView/LogView.d.ts +31 -0
- package/dist/components/molecules/LogView/LogView.d.ts.map +1 -0
- package/dist/components/molecules/LogView/LogView.js +109 -0
- package/dist/components/molecules/LogView/logViewStyles.d.ts +11 -0
- package/dist/components/molecules/LogView/logViewStyles.d.ts.map +1 -0
- package/dist/components/molecules/LogView/logViewStyles.js +6 -0
- package/dist/components/molecules/NavList/NavList.d.ts +23 -4
- package/dist/components/molecules/NavList/NavList.d.ts.map +1 -1
- package/dist/components/molecules/NavList/NavList.js +65 -52
- package/dist/components/molecules/NavList/navListStyles.d.ts +2 -0
- package/dist/components/molecules/NavList/navListStyles.d.ts.map +1 -1
- package/dist/components/molecules/NavList/navListStyles.js +3 -3
- package/dist/components/molecules/PageHeader/PageHeader.js +3 -3
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.js +7 -7
- package/dist/components/molecules/Stat/Stat.d.ts +31 -5
- package/dist/components/molecules/Stat/Stat.d.ts.map +1 -1
- package/dist/components/molecules/Stat/Stat.js +83 -49
- package/dist/components/molecules/Stat/statStyles.d.ts +23 -3
- package/dist/components/molecules/Stat/statStyles.d.ts.map +1 -1
- package/dist/components/molecules/Stat/statStyles.js +29 -12
- package/dist/components/molecules/TaskRows/TaskRows.d.ts +13 -3
- package/dist/components/molecules/TaskRows/TaskRows.d.ts.map +1 -1
- package/dist/components/molecules/TaskRows/TaskRows.js +81 -57
- package/dist/components/molecules/TaskRows/TaskRowsTable.d.ts +54 -0
- package/dist/components/molecules/TaskRows/TaskRowsTable.d.ts.map +1 -0
- package/dist/components/molecules/TaskRows/TaskRowsTable.js +200 -0
- package/dist/components/molecules/TaskRows/taskRowsStyles.d.ts +19 -1
- package/dist/components/molecules/TaskRows/taskRowsStyles.d.ts.map +1 -1
- package/dist/components/molecules/TaskRows/taskRowsStyles.js +7 -3
- package/dist/components/organisms/AppShell/AppShell.d.ts +82 -0
- package/dist/components/organisms/AppShell/AppShell.d.ts.map +1 -0
- package/dist/components/organisms/AppShell/AppShell.js +222 -0
- package/dist/components/organisms/AppShell/appShellStyles.d.ts +18 -0
- package/dist/components/organisms/AppShell/appShellStyles.d.ts.map +1 -0
- package/dist/components/organisms/AppShell/appShellStyles.js +8 -0
- package/dist/components/organisms/Carousel/Carousel.d.ts +9 -1
- package/dist/components/organisms/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/organisms/Carousel/Carousel.js +220 -182
- package/dist/components/organisms/Carousel/carouselMath.d.ts +5 -0
- package/dist/components/organisms/Carousel/carouselMath.d.ts.map +1 -1
- package/dist/components/organisms/Carousel/carouselMath.js +9 -1
- package/dist/components/organisms/Carousel/carouselStyles.d.ts +2 -0
- package/dist/components/organisms/Carousel/carouselStyles.d.ts.map +1 -1
- package/dist/components/organisms/Carousel/carouselStyles.js +8 -7
- package/dist/components/organisms/Chart/Chart.d.ts +5 -1
- package/dist/components/organisms/Chart/Chart.d.ts.map +1 -1
- package/dist/components/organisms/Chart/Chart.js +126 -62
- package/dist/components/organisms/Chart/ChartLegend.d.ts +8 -1
- package/dist/components/organisms/Chart/ChartLegend.d.ts.map +1 -1
- package/dist/components/organisms/Chart/ChartLegend.js +43 -13
- package/dist/components/organisms/Chart/ChartSegmentedRing.d.ts +52 -0
- package/dist/components/organisms/Chart/ChartSegmentedRing.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartSegmentedRing.js +95 -0
- package/dist/components/organisms/Chart/chartStyles.d.ts +32 -0
- package/dist/components/organisms/Chart/chartStyles.d.ts.map +1 -1
- package/dist/components/organisms/Chart/chartStyles.js +15 -3
- package/dist/components/organisms/ChatDock/ChatDock.d.ts.map +1 -1
- package/dist/components/organisms/ChatDock/ChatDock.js +29 -25
- package/dist/components/organisms/Dialog/OverlayPanelHeader.d.ts.map +1 -1
- package/dist/components/organisms/Dialog/OverlayPanelHeader.js +1 -0
- package/dist/components/organisms/Sheet/Sheet.d.ts +3 -1
- package/dist/components/organisms/Sheet/Sheet.d.ts.map +1 -1
- package/dist/components/organisms/Sheet/Sheet.js +74 -68
- package/dist/components/organisms/Sheet/sheetStyles.d.ts +8 -2
- package/dist/components/organisms/Sheet/sheetStyles.d.ts.map +1 -1
- package/dist/components/organisms/Sheet/sheetStyles.js +16 -11
- package/dist/components/organisms/Tab/tabStyles.js +7 -7
- package/dist/index.d.ts +14 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +148 -139
- package/dist/lib/chartTheme.d.ts +11 -0
- package/dist/lib/chartTheme.d.ts.map +1 -1
- package/dist/lib/compositionAudit.d.ts.map +1 -1
- package/dist/lib/dialogOverlay.d.ts +7 -0
- package/dist/lib/dialogOverlay.d.ts.map +1 -1
- package/dist/lib/dialogOverlay.js +16 -1
- package/dist/lib/sheetParam/index.d.ts +3 -0
- package/dist/lib/sheetParam/index.d.ts.map +1 -0
- package/dist/lib/sheetParam/sheetParam.d.ts +15 -0
- package/dist/lib/sheetParam/sheetParam.d.ts.map +1 -0
- package/dist/lib/sheetParam/sheetParam.js +26 -0
- package/dist/lib/sheetParam/useSheetParam.d.ts +25 -0
- package/dist/lib/sheetParam/useSheetParam.d.ts.map +1 -0
- package/dist/lib/sheetParam/useSheetParam.js +29 -0
- package/dist/styles.css +1 -1
- package/docs/README.md +1 -1
- package/docs/component-contracts.md +101 -0
- package/docs/components.md +16 -11
- package/docs/exports.json +88 -15
- package/docs/patterns/components-accordion--flush.tsx +1 -1
- package/docs/patterns/components-appshell--portal-dashboard-pattern.tsx +176 -0
- 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 +31 -0
- package/docs/patterns/components-badge--with-avatar.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 +1 -1
- 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-in-footer.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 +48 -0
- 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 +68 -0
- package/docs/patterns/components-chart--segmented-ring-pattern.tsx +144 -0
- 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 +9 -0
- package/docs/patterns/components-copyfield--copied.tsx +9 -0
- package/docs/patterns/components-copyfield--copy-key.tsx +9 -0
- package/docs/patterns/components-copyfield--on-navy.tsx +29 -0
- 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--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 +35 -0
- 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-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 +80 -0
- package/docs/patterns/components-logview--log-viewer.tsx +20 -0
- 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 +118 -0
- package/docs/patterns/components-navlist--side-nav-settings.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-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 +50 -0
- package/docs/patterns/components-sheet--side-sheet-url-deep-link.tsx +51 -0
- package/docs/patterns/components-sheet--side-sheet.tsx +38 -0
- 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 +54 -0
- 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 +81 -0
- package/docs/patterns/components-table--approvals.tsx +223 -0
- package/docs/patterns/components-table--basic.tsx +60 -0
- 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 +62 -0
- 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 +32 -0
- 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 +177 -1
- package/package.json +1 -1
|
@@ -1,23 +1,43 @@
|
|
|
1
1
|
import type { BadgeVariant } from "../../atoms/Badge/Badge";
|
|
2
|
-
|
|
2
|
+
import type { ButtonSize } from "../../atoms/Button/buttonStyles";
|
|
3
|
+
export declare const statSizes: readonly ["sm", "md", "lg"];
|
|
3
4
|
export type StatSize = (typeof statSizes)[number];
|
|
4
|
-
export declare const statTrendDirections: readonly ["up", "down", "neutral"];
|
|
5
|
+
export declare const statTrendDirections: readonly ["up", "down", "neutral", "flat"];
|
|
5
6
|
export type StatTrendDirection = (typeof statTrendDirections)[number];
|
|
6
7
|
export declare const statGroupColumns: readonly [2, 3, 4];
|
|
7
8
|
export type StatGroupColumns = (typeof statGroupColumns)[number];
|
|
8
9
|
/** Bordered metric tile — insights row and hero KPI. */
|
|
9
10
|
export declare const statShellClasses = "flex min-w-0 flex-col rounded-xl border border-border bg-surface";
|
|
10
11
|
export declare const statShellSizeClasses: Record<StatSize, string>;
|
|
11
|
-
export declare const statLabelRowClasses = "flex items-center gap-2";
|
|
12
|
+
export declare const statLabelRowClasses = "flex flex-wrap items-center gap-2";
|
|
12
13
|
export declare const statLabelStartClasses = "shrink-0";
|
|
13
14
|
export declare const statLabelTextClasses = "min-w-0 flex-1";
|
|
14
15
|
export declare const statLabelEndClasses = "ml-auto shrink-0";
|
|
16
|
+
/** Trailing cluster when `end` and `action` share the label row. */
|
|
17
|
+
export declare const statLabelTrailClasses = "ml-auto flex shrink-0 items-center gap-2";
|
|
15
18
|
export declare const statContentClasses = "flex min-w-0 flex-col gap-1";
|
|
19
|
+
export declare const statContentLgClasses = "gap-2";
|
|
16
20
|
export declare const statLabelClasses: string;
|
|
21
|
+
/** Hero label — sentence case. `sm` / `md` stay on the overline. */
|
|
22
|
+
export declare const statLabelLgClasses = "type-label min-w-0 flex-1 text-muted";
|
|
23
|
+
/**
|
|
24
|
+
* Leading glyph tile. `text-brand-outline` is navy in light (`--color-brand`) and the
|
|
25
|
+
* lifted navy in dark, where `#011272` disappears on the surface.
|
|
26
|
+
*/
|
|
27
|
+
export declare const statIconTileClasses = "inline-flex shrink-0 items-center justify-center rounded-lg bg-brand-tint text-brand-outline";
|
|
28
|
+
export declare const statIconTileSizeClasses: Record<StatSize, string>;
|
|
29
|
+
export declare const statIconButtonSize: Record<StatSize, ButtonSize>;
|
|
17
30
|
export declare const statValueRowClasses = "flex flex-wrap items-center gap-x-2 gap-y-1";
|
|
18
31
|
export declare const statValueSizeClasses: Record<StatSize, string>;
|
|
32
|
+
/** Visible secondary line — "vs $14,850", "of $1M goal". Figures stay tabular. */
|
|
33
|
+
export declare const statContextClasses: string;
|
|
34
|
+
/** One line under the figure — "3 new" or "vs last scan". Figures stay tabular. */
|
|
35
|
+
export declare const statDetailClasses: string;
|
|
36
|
+
/** Stand-in figure when the source is not wired. */
|
|
37
|
+
export declare const statUnavailableClasses = "type-body text-muted";
|
|
19
38
|
export declare const statLoadingLabelHeights: Record<StatSize, number>;
|
|
20
39
|
export declare const statLoadingValueHeights: Record<StatSize, number>;
|
|
40
|
+
export declare const statLoadingContextHeight = 16;
|
|
21
41
|
export declare function statGroupGridClasses(columns: StatGroupColumns): string;
|
|
22
42
|
export declare function statTrendBadgeVariant(direction: StatTrendDirection): BadgeVariant;
|
|
23
43
|
//# sourceMappingURL=statStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Stat/statStyles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"statStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Stat/statStyles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAElE,eAAO,MAAM,SAAS,6BAA8B,CAAC;AAErD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,eAAO,MAAM,mBAAmB,4CAA6C,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,oBAAqB,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,qEAAqE,CAAC;AAEnG,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAIzD,CAAC;AAEF,eAAO,MAAM,mBAAmB,sCAAsC,CAAC;AAEvE,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AAErD,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AAEtD,oEAAoE;AACpE,eAAO,MAAM,qBAAqB,6CAA6C,CAAC;AAEhF,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAEhE,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAE5C,eAAO,MAAM,gBAAgB,QAA8C,CAAC;AAE5E,oEAAoE;AACpE,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,iGACgE,CAAC;AAEjG,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAI5D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,QAAQ,EAAE,UAAU,CAI3D,CAAC;AAEF,eAAO,MAAM,mBAAmB,gDAAgD,CAAC;AAEjF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAIzD,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,QAA+C,CAAC;AAE/E,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,QAA0D,CAAC;AAEzF,oDAAoD;AACpD,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAI5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAI5D,CAAC;AAEF,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAQtE;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,kBAAkB,GAAG,YAAY,CAQjF"}
|
|
@@ -2,36 +2,53 @@
|
|
|
2
2
|
import { cn as e } from "../../../lib/cn.js";
|
|
3
3
|
import { typographyClass as t } from "../../../lib/typography.js";
|
|
4
4
|
//#region src/components/molecules/Stat/statStyles.ts
|
|
5
|
-
var n = [
|
|
5
|
+
var n = [
|
|
6
|
+
"sm",
|
|
7
|
+
"md",
|
|
8
|
+
"lg"
|
|
9
|
+
], r = [
|
|
6
10
|
"up",
|
|
7
11
|
"down",
|
|
8
|
-
"neutral"
|
|
12
|
+
"neutral",
|
|
13
|
+
"flat"
|
|
9
14
|
], i = [
|
|
10
15
|
2,
|
|
11
16
|
3,
|
|
12
17
|
4
|
|
13
18
|
], a = "flex min-w-0 flex-col rounded-xl border border-border bg-surface", o = {
|
|
14
19
|
sm: "gap-2 p-4",
|
|
15
|
-
md: "gap-3 p-5"
|
|
16
|
-
|
|
20
|
+
md: "gap-3 p-5",
|
|
21
|
+
lg: "gap-3 p-5"
|
|
22
|
+
}, s = "flex flex-wrap items-center gap-2", c = "shrink-0", l = "min-w-0 flex-1", u = "ml-auto shrink-0", d = "ml-auto flex shrink-0 items-center gap-2", f = "flex min-w-0 flex-col gap-1", p = "gap-2", m = `${t("overline")} text-muted`, h = "type-label min-w-0 flex-1 text-muted", g = "inline-flex shrink-0 items-center justify-center rounded-lg bg-brand-tint text-brand-outline", _ = {
|
|
23
|
+
sm: "size-7",
|
|
24
|
+
md: "size-8",
|
|
25
|
+
lg: "size-9"
|
|
26
|
+
}, v = {
|
|
27
|
+
sm: "xs",
|
|
28
|
+
md: "sm",
|
|
29
|
+
lg: "sm"
|
|
30
|
+
}, y = "flex flex-wrap items-center gap-x-2 gap-y-1", b = {
|
|
17
31
|
sm: `${t("section-heading")} tabular-nums tracking-tight text-fg`,
|
|
18
|
-
md: `${t("page-heading")} tabular-nums tracking-tight text-fg
|
|
19
|
-
|
|
32
|
+
md: `${t("page-heading")} tabular-nums tracking-tight text-fg`,
|
|
33
|
+
lg: "type-display-3 tabular-nums tracking-tight text-fg"
|
|
34
|
+
}, x = `${t("caption")} tabular-nums`, S = `${t("caption")} tabular-nums text-muted`, C = "type-body text-muted", w = {
|
|
20
35
|
sm: 12,
|
|
21
|
-
md: 14
|
|
22
|
-
|
|
36
|
+
md: 14,
|
|
37
|
+
lg: 16
|
|
38
|
+
}, T = {
|
|
23
39
|
sm: 28,
|
|
24
|
-
md: 36
|
|
40
|
+
md: 36,
|
|
41
|
+
lg: 40
|
|
25
42
|
};
|
|
26
|
-
function
|
|
43
|
+
function E(t) {
|
|
27
44
|
return e("grid grid-cols-2 gap-4", {
|
|
28
45
|
2: "lg:grid-cols-2",
|
|
29
46
|
3: "lg:grid-cols-3",
|
|
30
47
|
4: "lg:grid-cols-4"
|
|
31
48
|
}[t]);
|
|
32
49
|
}
|
|
33
|
-
function
|
|
50
|
+
function D(e) {
|
|
34
51
|
return e === "up" ? "success" : e === "down" ? "destructive" : "neutral";
|
|
35
52
|
}
|
|
36
53
|
//#endregion
|
|
37
|
-
export {
|
|
54
|
+
export { f as statContentClasses, p as statContentLgClasses, x as statContextClasses, S as statDetailClasses, i as statGroupColumns, E as statGroupGridClasses, v as statIconButtonSize, g as statIconTileClasses, _ as statIconTileSizeClasses, m as statLabelClasses, u as statLabelEndClasses, h as statLabelLgClasses, s as statLabelRowClasses, c as statLabelStartClasses, l as statLabelTextClasses, d as statLabelTrailClasses, w as statLoadingLabelHeights, T as statLoadingValueHeights, a as statShellClasses, o as statShellSizeClasses, n as statSizes, D as statTrendBadgeVariant, r as statTrendDirections, C as statUnavailableClasses, y as statValueRowClasses, b as statValueSizeClasses };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type TaskRowsColumn, type TaskRowsRowProps } from "./TaskRowsTable";
|
|
2
3
|
import { type TaskRowStatus, type TaskRowsDetailLayout, type TaskRowsDetailVariant, type TaskRowsVariant } from "./taskRowsStyles";
|
|
3
4
|
export type { TaskRowStatus, TaskRowsDetailLayout, TaskRowsDetailVariant, TaskRowsVariant } from "./taskRowsStyles";
|
|
5
|
+
export type { TaskRowsColumn, TaskRowsRowProps, TaskRowsTableColumnId, TaskRowsTableMetric, TaskRowsTableSource, TaskRowsTableStatus, TaskRowsTableWaiting, } from "./TaskRowsTable";
|
|
6
|
+
export { taskRowsTableColumnIds, taskRowsTableColumnsDefault, taskRowsTableSources, } from "./TaskRowsTable";
|
|
4
7
|
export { taskRowStatuses, taskRowsDetailLayouts, taskRowsDetailVariants, taskRowsVariants, } from "./taskRowsStyles";
|
|
5
8
|
/** Layout-only — not for row colors or status styling overrides. */
|
|
6
9
|
export type TaskRowsLayoutClassName = string;
|
|
@@ -9,11 +12,16 @@ export interface TaskRowsLabels {
|
|
|
9
12
|
failed: string;
|
|
10
13
|
}
|
|
11
14
|
export interface TaskRowsProps extends HTMLAttributes<HTMLDivElement> {
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
/** Rows. Omit them on `variant="table"` to show `empty`. */
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
/** `list` — inset panel with dividers. `capsule` — separated rounded rows. `table` — needs-you columns. */
|
|
14
18
|
variant?: TaskRowsVariant;
|
|
15
19
|
/** List only — drop the standalone shell (radius, fill, shadow) inside **Card.Body**. */
|
|
16
20
|
inset?: boolean;
|
|
21
|
+
/** `variant="table"` — column headers. Defaults to Item, Waiting, Metric. */
|
|
22
|
+
columns?: TaskRowsColumn[];
|
|
23
|
+
/** `variant="table"` — shown when there are no rows. Defaults to "Nothing waiting". */
|
|
24
|
+
empty?: ReactNode;
|
|
17
25
|
labels?: Partial<TaskRowsLabels>;
|
|
18
26
|
className?: TaskRowsLayoutClassName;
|
|
19
27
|
}
|
|
@@ -57,11 +65,13 @@ export interface TaskRowsDetailProps {
|
|
|
57
65
|
onPress?: () => void;
|
|
58
66
|
className?: TaskRowsLayoutClassName;
|
|
59
67
|
}
|
|
60
|
-
declare function TaskRowsRoot({ variant, inset, labels, className, children, ...props }: TaskRowsProps): import("react").JSX.Element;
|
|
68
|
+
declare function TaskRowsRoot({ variant, inset, labels, columns, empty, className, children, ...props }: TaskRowsProps): import("react").JSX.Element;
|
|
69
|
+
declare function TaskRowsTableRow(props: TaskRowsRowProps): import("react").JSX.Element | null;
|
|
61
70
|
declare function TaskRowsItem({ label, meta, trailing, leading, icon, status, step, statusLabel, defaultOpen, open, onOpenChange, detailsLayout, detailsLabel, children, className, }: TaskRowsItemProps): import("react").JSX.Element;
|
|
62
71
|
declare function TaskRowsDetail({ label, meta, variant, icon, onPress, className, }: TaskRowsDetailProps): import("react").JSX.Element;
|
|
63
72
|
export declare const TaskRows: typeof TaskRowsRoot & {
|
|
64
73
|
Item: typeof TaskRowsItem;
|
|
65
74
|
Detail: typeof TaskRowsDetail;
|
|
75
|
+
Row: typeof TaskRowsTableRow;
|
|
66
76
|
};
|
|
67
77
|
//# sourceMappingURL=TaskRows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskRows.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TaskRows/TaskRows.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAQf,OAAO,EAiBL,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACpH,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAE1B,oEAAoE;AACpE,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"TaskRows.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TaskRows/TaskRows.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAQ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YAAY,CAAC,EACpB,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAe,EACf,IAAI,EACJ,WAAW,EACX,WAAmB,EACnB,IAAI,EACJ,YAAY,EACZ,aAAuB,EACvB,YAAY,EACZ,QAAQ,EACR,SAAS,GACV,EAAE,iBAAiB,+BA4FnB;AAED,iBAAS,cAAc,CAAC,EACtB,KAAK,EACL,IAAI,EACJ,OAAe,EACf,IAAI,EACJ,OAAO,EACP,SAAS,GACV,EAAE,mBAAmB,+BAgCrB;AAED,eAAO,MAAM,QAAQ;;;;CAInB,CAAC"}
|
|
@@ -6,119 +6,142 @@ import { Button as r } from "../../atoms/Button/Button.js";
|
|
|
6
6
|
import { Status as i } from "../../atoms/Status/Status.js";
|
|
7
7
|
import { Accordion as a } from "../Accordion/Accordion.js";
|
|
8
8
|
import { taskRowStatuses as o, taskRowsDetailButtonClasses as s, taskRowsDetailLabelClasses as c, taskRowsDetailLayouts as l, taskRowsDetailMetaClasses as u, taskRowsDetailRowClasses as d, taskRowsDetailVariants as f, taskRowsDetailsActionsClasses as p, taskRowsDetailsChipsClasses as m, taskRowsDetailsExpandOnlyClasses as h, taskRowsDetailsGridClasses as g, taskRowsDetailsLabelClasses as _, taskRowsDetailsListClasses as v, taskRowsDetailsPanelClasses as y, taskRowsDetailsPlainClasses as b, taskRowsDetailsRailClasses as x, taskRowsMetaClasses as S, taskRowsStatusSlotClasses as C, taskRowsTrailingClusterClasses as w, taskRowsVariants as T } from "./taskRowsStyles.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { TaskRowsRow as E, TaskRowsTable as D, taskRowsTableColumnIds as O, taskRowsTableColumnsDefault as k, taskRowsTableSources as A } from "./TaskRowsTable.js";
|
|
10
|
+
import { createContext as j, useContext as M, useMemo as N } from "react";
|
|
11
|
+
import { Check as P, X as F } from "lucide-react";
|
|
12
|
+
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
12
13
|
//#region src/components/molecules/TaskRows/TaskRows.tsx
|
|
13
|
-
var
|
|
14
|
+
var z = {
|
|
14
15
|
completed: "Completed",
|
|
15
16
|
failed: "Failed"
|
|
16
|
-
},
|
|
17
|
+
}, B = j({
|
|
17
18
|
variant: "list",
|
|
18
|
-
labels:
|
|
19
|
+
labels: z,
|
|
20
|
+
columns: k
|
|
19
21
|
});
|
|
20
|
-
function
|
|
21
|
-
let
|
|
22
|
+
function V({ variant: e = "list", inset: t = !1, labels: n, columns: r = k, empty: i, className: o, children: s, ...c }) {
|
|
23
|
+
let l = N(() => ({
|
|
22
24
|
variant: e,
|
|
23
25
|
labels: {
|
|
24
|
-
...
|
|
26
|
+
...z,
|
|
25
27
|
...n
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
},
|
|
29
|
+
columns: r
|
|
30
|
+
}), [
|
|
31
|
+
r,
|
|
32
|
+
n,
|
|
33
|
+
e
|
|
34
|
+
]);
|
|
35
|
+
return e === "table" ? /* @__PURE__ */ L(B.Provider, {
|
|
36
|
+
value: l,
|
|
37
|
+
children: /* @__PURE__ */ L(D, {
|
|
38
|
+
columns: r,
|
|
39
|
+
empty: i,
|
|
40
|
+
className: o,
|
|
41
|
+
...c,
|
|
42
|
+
children: s
|
|
43
|
+
})
|
|
44
|
+
}) : /* @__PURE__ */ L(B.Provider, {
|
|
45
|
+
value: l,
|
|
46
|
+
children: /* @__PURE__ */ L(a, {
|
|
31
47
|
variant: e,
|
|
32
48
|
inset: t,
|
|
33
|
-
className:
|
|
34
|
-
...
|
|
35
|
-
children:
|
|
49
|
+
className: o,
|
|
50
|
+
...c,
|
|
51
|
+
children: s
|
|
36
52
|
})
|
|
37
53
|
});
|
|
38
54
|
}
|
|
39
|
-
function
|
|
55
|
+
function H(e) {
|
|
56
|
+
let { variant: t, columns: n } = M(B);
|
|
57
|
+
return t === "table" ? /* @__PURE__ */ L(E, {
|
|
58
|
+
...e,
|
|
59
|
+
columns: n
|
|
60
|
+
}) : (console.warn("[WMDS TaskRows] TaskRows.Row belongs in variant=\"table\"."), null);
|
|
61
|
+
}
|
|
62
|
+
function U(e) {
|
|
40
63
|
return e === "actions" ? p : e === "chips" ? m : b;
|
|
41
64
|
}
|
|
42
|
-
function
|
|
43
|
-
return e ? /* @__PURE__ */
|
|
65
|
+
function W({ showLeading: e, status: t, detailsLayout: n, detailsLabel: r, children: i }) {
|
|
66
|
+
return e ? /* @__PURE__ */ R("div", {
|
|
44
67
|
className: g,
|
|
45
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ L("span", {
|
|
46
69
|
"aria-hidden": !0,
|
|
47
70
|
className: x
|
|
48
|
-
}), t === "none" ? /* @__PURE__ */
|
|
71
|
+
}), t === "none" ? /* @__PURE__ */ R("div", {
|
|
49
72
|
className: y,
|
|
50
|
-
children: [r ? /* @__PURE__ */
|
|
73
|
+
children: [r ? /* @__PURE__ */ L("p", {
|
|
51
74
|
className: _,
|
|
52
75
|
children: r
|
|
53
|
-
}) : null, /* @__PURE__ */
|
|
54
|
-
className:
|
|
76
|
+
}) : null, /* @__PURE__ */ L("div", {
|
|
77
|
+
className: U(n),
|
|
55
78
|
children: i
|
|
56
79
|
})]
|
|
57
|
-
}) : /* @__PURE__ */
|
|
80
|
+
}) : /* @__PURE__ */ L("div", {
|
|
58
81
|
className: v,
|
|
59
82
|
children: i
|
|
60
83
|
})]
|
|
61
|
-
}) : /* @__PURE__ */
|
|
84
|
+
}) : /* @__PURE__ */ R("div", {
|
|
62
85
|
className: h,
|
|
63
|
-
children: [r ? /* @__PURE__ */
|
|
86
|
+
children: [r ? /* @__PURE__ */ L("p", {
|
|
64
87
|
className: _,
|
|
65
88
|
children: r
|
|
66
|
-
}) : null, /* @__PURE__ */
|
|
67
|
-
className:
|
|
89
|
+
}) : null, /* @__PURE__ */ L("div", {
|
|
90
|
+
className: U(n),
|
|
68
91
|
children: i
|
|
69
92
|
})]
|
|
70
93
|
});
|
|
71
94
|
}
|
|
72
|
-
function
|
|
73
|
-
let { labels: y } =
|
|
95
|
+
function G({ label: e, meta: r, trailing: o, leading: s, icon: c, status: l = "none", step: u, statusLabel: d, defaultOpen: f = !1, open: p, onOpenChange: m, detailsLayout: h = "stack", detailsLabel: g, children: _, className: v }) {
|
|
96
|
+
let { labels: y } = M(B), b = _ != null, x = s != null || l !== "none" || c != null;
|
|
74
97
|
s == null && c != null && l !== "none" && console.warn("[WMDS TaskRows] `icon` is not combinable with `status` — icon is ignored."), s != null && (l !== "none" || c != null) && console.warn("[WMDS TaskRows] `leading` replaces default status/icon composition — `status` still drives trailing pill when `trailing` is omitted.");
|
|
75
|
-
let T = s ?? (l === "done" ? /* @__PURE__ */
|
|
98
|
+
let T = s ?? (l === "done" ? /* @__PURE__ */ L(t, {
|
|
76
99
|
variant: "success",
|
|
77
|
-
icon: /* @__PURE__ */
|
|
100
|
+
icon: /* @__PURE__ */ L(P, { strokeWidth: 3.5 }),
|
|
78
101
|
iconOnly: !0
|
|
79
|
-
}) : l === "failed" ? /* @__PURE__ */
|
|
102
|
+
}) : l === "failed" ? /* @__PURE__ */ L(t, {
|
|
80
103
|
variant: "destructive",
|
|
81
|
-
icon: /* @__PURE__ */
|
|
104
|
+
icon: /* @__PURE__ */ L(F, { strokeWidth: 3.5 }),
|
|
82
105
|
iconOnly: !0
|
|
83
|
-
}) : l === "running" || l === "pending" ? /* @__PURE__ */
|
|
106
|
+
}) : l === "running" || l === "pending" ? /* @__PURE__ */ L(i, {
|
|
84
107
|
variant: "ring",
|
|
85
108
|
active: l === "running",
|
|
86
109
|
step: u,
|
|
87
110
|
besideLabel: !0
|
|
88
|
-
}) : c ? /* @__PURE__ */
|
|
111
|
+
}) : c ? /* @__PURE__ */ L("span", {
|
|
89
112
|
className: "text-muted",
|
|
90
113
|
"aria-hidden": !0,
|
|
91
|
-
children: /* @__PURE__ */
|
|
114
|
+
children: /* @__PURE__ */ L(n, {
|
|
92
115
|
size: "sm",
|
|
93
116
|
children: c
|
|
94
117
|
})
|
|
95
|
-
}) : null), E = d ?? (l === "done" ? /* @__PURE__ */
|
|
118
|
+
}) : null), E = d ?? (l === "done" ? /* @__PURE__ */ L(t, {
|
|
96
119
|
variant: "success",
|
|
97
120
|
emphasis: "muted",
|
|
98
121
|
children: y.completed
|
|
99
|
-
}) : l === "failed" ? /* @__PURE__ */
|
|
122
|
+
}) : l === "failed" ? /* @__PURE__ */ L(t, {
|
|
100
123
|
variant: "destructive",
|
|
101
124
|
emphasis: "muted",
|
|
102
125
|
children: y.failed
|
|
103
|
-
}) : null),
|
|
126
|
+
}) : null), D = o != null || r != null || E != null, O = o ?? /* @__PURE__ */ R(I, { children: [r == null ? null : /* @__PURE__ */ L("span", {
|
|
104
127
|
className: S,
|
|
105
128
|
children: r
|
|
106
129
|
}), E] });
|
|
107
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ L(a.Item, {
|
|
108
131
|
label: e,
|
|
109
|
-
leading: x ? /* @__PURE__ */
|
|
132
|
+
leading: x ? /* @__PURE__ */ L("span", {
|
|
110
133
|
className: C,
|
|
111
134
|
children: T
|
|
112
135
|
}) : void 0,
|
|
113
|
-
trailing:
|
|
136
|
+
trailing: D ? /* @__PURE__ */ L("span", {
|
|
114
137
|
className: w,
|
|
115
|
-
children:
|
|
138
|
+
children: O
|
|
116
139
|
}) : void 0,
|
|
117
140
|
defaultOpen: f,
|
|
118
141
|
open: p,
|
|
119
142
|
onOpenChange: m,
|
|
120
143
|
className: v,
|
|
121
|
-
children: b ? /* @__PURE__ */
|
|
144
|
+
children: b ? /* @__PURE__ */ L(W, {
|
|
122
145
|
showLeading: x,
|
|
123
146
|
status: l,
|
|
124
147
|
detailsLayout: h,
|
|
@@ -127,8 +150,8 @@ function z({ label: e, meta: r, trailing: o, leading: s, icon: c, status: l = "n
|
|
|
127
150
|
}) : void 0
|
|
128
151
|
});
|
|
129
152
|
}
|
|
130
|
-
function
|
|
131
|
-
if (i === "button") return /* @__PURE__ */
|
|
153
|
+
function K({ label: t, meta: n, variant: i = "row", icon: a, onPress: o, className: l }) {
|
|
154
|
+
if (i === "button") return /* @__PURE__ */ L(r, {
|
|
132
155
|
role: "secondary",
|
|
133
156
|
size: "xs",
|
|
134
157
|
type: "button",
|
|
@@ -137,28 +160,29 @@ function B({ label: t, meta: n, variant: i = "row", icon: a, onPress: o, classNa
|
|
|
137
160
|
onClick: o,
|
|
138
161
|
children: t
|
|
139
162
|
});
|
|
140
|
-
let f = /* @__PURE__ */
|
|
163
|
+
let f = /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L("span", {
|
|
141
164
|
className: c,
|
|
142
165
|
children: t
|
|
143
|
-
}), n ? /* @__PURE__ */
|
|
166
|
+
}), n ? /* @__PURE__ */ L("span", {
|
|
144
167
|
className: u,
|
|
145
168
|
children: n
|
|
146
169
|
}) : null] });
|
|
147
|
-
return o ? /* @__PURE__ */
|
|
170
|
+
return o ? /* @__PURE__ */ L(r, {
|
|
148
171
|
role: "ghost",
|
|
149
172
|
layout: "row",
|
|
150
173
|
type: "button",
|
|
151
174
|
onClick: o,
|
|
152
175
|
className: l,
|
|
153
176
|
children: f
|
|
154
|
-
}) : /* @__PURE__ */
|
|
177
|
+
}) : /* @__PURE__ */ L("div", {
|
|
155
178
|
className: e(d, l),
|
|
156
179
|
children: f
|
|
157
180
|
});
|
|
158
181
|
}
|
|
159
|
-
var
|
|
160
|
-
Item:
|
|
161
|
-
Detail:
|
|
182
|
+
var q = Object.assign(V, {
|
|
183
|
+
Item: G,
|
|
184
|
+
Detail: K,
|
|
185
|
+
Row: H
|
|
162
186
|
});
|
|
163
187
|
//#endregion
|
|
164
|
-
export {
|
|
188
|
+
export { q as TaskRows, o as taskRowStatuses, l as taskRowsDetailLayouts, f as taskRowsDetailVariants, O as taskRowsTableColumnIds, k as taskRowsTableColumnsDefault, A as taskRowsTableSources, T as taskRowsVariants };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type StatusTone } from "../../atoms/Status/Status";
|
|
3
|
+
export declare const taskRowsTableColumnIds: readonly ["title", "waiting", "metric"];
|
|
4
|
+
export type TaskRowsTableColumnId = (typeof taskRowsTableColumnIds)[number];
|
|
5
|
+
export declare const taskRowsTableSources: readonly ["ready", "loading", "error", "unwired"];
|
|
6
|
+
export type TaskRowsTableSource = (typeof taskRowsTableSources)[number];
|
|
7
|
+
export interface TaskRowsColumn {
|
|
8
|
+
id: TaskRowsTableColumnId;
|
|
9
|
+
header: string;
|
|
10
|
+
align?: "start" | "end";
|
|
11
|
+
/** CSS grid track, applied from `md`. Example: `"8rem"`. */
|
|
12
|
+
width?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const taskRowsTableColumnsDefault: TaskRowsColumn[];
|
|
15
|
+
export interface TaskRowsTableStatus {
|
|
16
|
+
tone?: StatusTone;
|
|
17
|
+
label: string;
|
|
18
|
+
pulsing?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface TaskRowsTableWaiting {
|
|
21
|
+
/** Pill label — "22 creators". */
|
|
22
|
+
label: string;
|
|
23
|
+
/** Line under the pill — "4 waiting over 5 days". */
|
|
24
|
+
detail?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface TaskRowsTableMetric {
|
|
27
|
+
value: string;
|
|
28
|
+
detail?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface TaskRowsRowProps {
|
|
31
|
+
title: string;
|
|
32
|
+
/** Plain anchor. `render` wins when both are set. */
|
|
33
|
+
href?: string;
|
|
34
|
+
/** Router link — `render={<Link href="/campaigns/stir" />}`. */
|
|
35
|
+
render?: ReactElement;
|
|
36
|
+
/** Dot and a label such as "Open · 2d". */
|
|
37
|
+
status?: TaskRowsTableStatus;
|
|
38
|
+
waiting?: TaskRowsTableWaiting;
|
|
39
|
+
metric?: TaskRowsTableMetric;
|
|
40
|
+
/** `ready` shows the cells. `loading` is a skeleton. `error` and `unwired` show `note`. */
|
|
41
|
+
source?: TaskRowsTableSource;
|
|
42
|
+
/** Error copy, or the footer note when the source is not wired. */
|
|
43
|
+
note?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function TaskRowsTable({ columns, empty, className, children, ...props }: {
|
|
46
|
+
columns?: TaskRowsColumn[];
|
|
47
|
+
empty?: ReactNode;
|
|
48
|
+
className?: string;
|
|
49
|
+
children?: ReactNode;
|
|
50
|
+
} & HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
51
|
+
export declare function TaskRowsRow({ title, href, render, status, waiting, metric, source, note, columns, }: TaskRowsRowProps & {
|
|
52
|
+
columns: TaskRowsColumn[];
|
|
53
|
+
}): import("react").JSX.Element;
|
|
54
|
+
//# sourceMappingURL=TaskRowsTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskRowsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/TaskRows/TaskRowsTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7G,OAAO,EAAU,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAuBpE,eAAO,MAAM,sBAAsB,yCAA0C,CAAC;AAE9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB,mDAAoD,CAAC;AAEtF,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,qBAAqB,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACxB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,C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