@thewhatmatters/wmds 0.4.8 → 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 +284 -2
- package/CONSUMING.md +1 -1
- package/README.md +1 -1
- package/bin/wmds-check.mjs +8 -4
- 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/atoms/TextLink/TextLink.d.ts +9 -3
- package/dist/components/atoms/TextLink/TextLink.d.ts.map +1 -1
- package/dist/components/atoms/TextLink/TextLink.js +22 -17
- 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/IndexList/IndexList.d.ts +6 -3
- package/dist/components/molecules/IndexList/IndexList.d.ts.map +1 -1
- package/dist/components/molecules/IndexList/IndexList.js +22 -21
- package/dist/components/molecules/LinkTile/LinkTile.d.ts.map +1 -1
- package/dist/components/molecules/LinkTile/LinkTile.js +74 -68
- package/dist/components/molecules/LinkTile/linkTileStyles.d.ts +7 -1
- package/dist/components/molecules/LinkTile/linkTileStyles.d.ts.map +1 -1
- package/dist/components/molecules/LinkTile/linkTileStyles.js +2 -2
- 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/molecules/TileGrid/tileGridStyles.d.ts +2 -2
- 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/lib/typography.d.ts +2 -2
- package/dist/lib/typography.d.ts.map +1 -1
- package/dist/lib/typography.js +11 -0
- package/dist/styles.css +1 -1
- package/dist/typography.css +16 -0
- package/docs/README.md +1 -1
- package/docs/component-contracts.md +101 -0
- package/docs/components.md +21 -16
- 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 +7 -3
- package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
- package/docs/patterns/guides-post-page--post-page.tsx +21 -4
- package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
- package/docs/patterns/guides-resource-detail--detail.tsx +13 -4
- package/docs/patterns/index.json +177 -1
- package/package.json +1 -1
|
@@ -1,55 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../lib/cn.js";
|
|
4
|
-
import { applyRiveHandTokenColors as t, installRiveHandLayoutRect as n, nextRiveHandIdleDelayMs as r, paintRiveHandColors as i, riveHandArtboards as a, riveHandBooleanInput as o, riveHandBooleanValue as s, riveHandBoxSize as c, riveHandClassName as l, riveHandEnteredAttr as ee, riveHandFillProperty as u, riveHandGrowDelaySec as d, riveHandGrowOrigin as f, riveHandGrowSettled as p, riveHandHasLayoutBox as m, riveHandIdleAllowed as h, riveHandIdleHoldMs as te, riveHandInlineLayout as g, riveHandInlineSlotClassName as _, riveHandIntersectsViewport as
|
|
4
|
+
import { applyRiveHandTokenColors as t, installRiveHandLayoutRect as n, nextRiveHandIdleDelayMs as r, paintRiveHandColors as i, riveHandArtboards as a, riveHandBooleanInput as o, riveHandBooleanValue as s, riveHandBoxSize as c, riveHandClassName as l, riveHandEnteredAttr as ee, riveHandFillProperty as u, riveHandGrowDelaySec as d, riveHandGrowOrigin as f, riveHandGrowSettled as p, riveHandHasLayoutBox as m, riveHandIdleAllowed as h, riveHandIdleHoldMs as te, riveHandInlineLayout as g, riveHandInlineSlotClassName as _, riveHandIntersectsViewport as ne, riveHandOutlineProperty as re, riveHandSrc as v, riveHandStateMachine as y, riveHandWasmSrc as b, riveHands as x } from "./riveHandUtils.js";
|
|
5
5
|
import { useEffect as S, useLayoutEffect as C, useMemo as ie, useRef as w, useState as T } from "react";
|
|
6
6
|
import { jsx as E } from "react/jsx-runtime";
|
|
7
7
|
import { motion as ae } from "motion/react";
|
|
8
|
-
import
|
|
9
|
-
import { createPortal as
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import * as D from "@rive-app/react-canvas";
|
|
9
|
+
import { createPortal as oe } from "react-dom";
|
|
10
|
+
//#region src/components/atoms/RiveHand/RiveHand.tsx
|
|
11
|
+
var { Fit: se, Layout: ce, Rive: O, RuntimeLoader: k, useRive: le, useStateMachineInput: ue, useViewModelInstanceColor: A } = "RuntimeLoader" in D ? D : D.default;
|
|
12
|
+
k.setWasmUrl(b), O.suppressDeprecationWarnings = [.../* @__PURE__ */ new Set([...O.suppressDeprecationWarnings, "state-machine-inputs"])];
|
|
13
|
+
function j(e, t, n) {
|
|
12
14
|
if (!(!t || !m(t.clientWidth, t.clientHeight))) {
|
|
13
15
|
if (n) {
|
|
14
16
|
e.drawFrame(), e.pause();
|
|
15
17
|
return;
|
|
16
18
|
}
|
|
17
|
-
if (
|
|
19
|
+
if (ne(t.getBoundingClientRect(), window.innerWidth, window.innerHeight)) {
|
|
18
20
|
if (typeof e.play == "function" && (e.isStopped || e.isPaused)) {
|
|
19
|
-
e.play(e.isStopped ?
|
|
21
|
+
e.play(e.isStopped ? y : void 0);
|
|
20
22
|
return;
|
|
21
23
|
}
|
|
22
24
|
e.startRendering();
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
|
-
function
|
|
27
|
-
let [
|
|
28
|
-
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
let
|
|
32
|
-
src:
|
|
33
|
-
artboard: a[
|
|
34
|
-
stateMachine:
|
|
28
|
+
function M({ hand: b, size: x, inline: D = !1, active: O = !1, idle: k = !0, entrance: M = "none", className: de, "aria-hidden": N = !0 }) {
|
|
29
|
+
let [P, fe] = T(!1), [F, I] = T(!1), [pe, me] = T(0), [L, R] = T(!1), [z, B] = T(M === "none"), V = w(P);
|
|
30
|
+
V.current = P;
|
|
31
|
+
let H = w(O);
|
|
32
|
+
H.current = O;
|
|
33
|
+
let U = w(null), he = ie(() => new ce({ fit: se.Contain }), []), { rive: W, RiveComponent: ge } = le({
|
|
34
|
+
src: v,
|
|
35
|
+
artboard: a[b],
|
|
36
|
+
stateMachine: y,
|
|
35
37
|
autoplay: !0,
|
|
36
38
|
autoBind: !0,
|
|
37
39
|
shouldDisableRiveListeners: !0,
|
|
38
|
-
layout:
|
|
40
|
+
layout: he,
|
|
39
41
|
onRiveReady: (e) => {
|
|
40
42
|
i(e), e.drawFrame();
|
|
41
43
|
}
|
|
42
|
-
}), { setRgb:
|
|
44
|
+
}), { setRgb: G } = A(u, W?.viewModelInstance), { setRgb: K } = A(re, W?.viewModelInstance), q = ue(W, y, o);
|
|
43
45
|
C(() => {
|
|
44
46
|
if (typeof window > "u" || typeof window.matchMedia != "function") {
|
|
45
|
-
|
|
47
|
+
I(!0);
|
|
46
48
|
return;
|
|
47
49
|
}
|
|
48
|
-
let e = window.matchMedia("(prefers-reduced-motion: reduce)"), t = () =>
|
|
49
|
-
return t(),
|
|
50
|
+
let e = window.matchMedia("(prefers-reduced-motion: reduce)"), t = () => fe(e.matches);
|
|
51
|
+
return t(), I(!0), e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
50
52
|
}, []), S(() => {
|
|
51
53
|
if (typeof document > "u" || typeof MutationObserver > "u") return;
|
|
52
|
-
let e = new MutationObserver(() =>
|
|
54
|
+
let e = new MutationObserver(() => me((e) => e + 1));
|
|
53
55
|
return e.observe(document.documentElement, {
|
|
54
56
|
attributes: !0,
|
|
55
57
|
attributeFilter: [
|
|
@@ -60,63 +62,63 @@ function A({ hand: x, size: re, inline: D = !1, active: O = !1, idle: A = !0, en
|
|
|
60
62
|
}), () => e.disconnect();
|
|
61
63
|
}, []), S(() => {
|
|
62
64
|
t({
|
|
63
|
-
handFill: { setRgb:
|
|
64
|
-
outline: { setRgb:
|
|
65
|
-
}),
|
|
65
|
+
handFill: { setRgb: G },
|
|
66
|
+
outline: { setRgb: K }
|
|
67
|
+
}), W && (P ? q && (q.value = !1) : q && (q.value = s(O, L, !1)), j(W, U.current, P));
|
|
66
68
|
}, [
|
|
67
69
|
O,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
U,
|
|
70
|
+
L,
|
|
71
|
+
q,
|
|
72
|
+
P,
|
|
72
73
|
W,
|
|
73
74
|
G,
|
|
74
|
-
|
|
75
|
+
K,
|
|
76
|
+
pe
|
|
75
77
|
]), S(() => {
|
|
76
|
-
if (!
|
|
77
|
-
let e =
|
|
78
|
+
if (!F || P || M === "none") return;
|
|
79
|
+
let e = U.current, t = e?.parentElement ?? e;
|
|
78
80
|
if (!t || typeof IntersectionObserver > "u") {
|
|
79
|
-
|
|
81
|
+
B(!0);
|
|
80
82
|
return;
|
|
81
83
|
}
|
|
82
84
|
let n = new IntersectionObserver((e) => {
|
|
83
|
-
e.some((e) => e.isIntersecting) && (
|
|
85
|
+
e.some((e) => e.isIntersecting) && (B(!0), n.disconnect());
|
|
84
86
|
});
|
|
85
87
|
return n.observe(t), () => n.disconnect();
|
|
86
88
|
}, [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
M,
|
|
90
|
+
F,
|
|
91
|
+
P
|
|
90
92
|
]), S(() => {
|
|
91
|
-
if (!
|
|
92
|
-
let e =
|
|
93
|
+
if (!k || P) return;
|
|
94
|
+
let e = U.current, t = 0, n = 0, i = document.visibilityState !== "hidden", a = typeof IntersectionObserver > "u", o = !1, s = () => {
|
|
93
95
|
window.clearTimeout(t), window.clearTimeout(n), t = 0, n = 0;
|
|
94
96
|
}, c = e?.closest("[data-text-sequence]") ? e.closest("[data-rive-hand-slot]") : null, l = () => !c || c.getAttribute("data-rive-hand-entered") === "true", u = () => {
|
|
95
97
|
s(), l() && (o || !h({
|
|
96
98
|
idle: !0,
|
|
97
|
-
reduced:
|
|
99
|
+
reduced: V.current,
|
|
98
100
|
pageVisible: i,
|
|
99
101
|
inView: a
|
|
100
102
|
}) || (t = window.setTimeout(() => {
|
|
101
103
|
if (!(o || !l() || !h({
|
|
102
104
|
idle: !0,
|
|
103
|
-
reduced:
|
|
105
|
+
reduced: V.current,
|
|
104
106
|
pageVisible: i,
|
|
105
107
|
inView: a
|
|
106
108
|
}))) {
|
|
107
|
-
if (
|
|
109
|
+
if (H.current) {
|
|
108
110
|
u();
|
|
109
111
|
return;
|
|
110
112
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
R(!0), n = window.setTimeout(() => {
|
|
114
|
+
R(!1), u();
|
|
113
115
|
}, te);
|
|
114
116
|
}
|
|
115
117
|
}, r())));
|
|
116
118
|
}, d = (e) => {
|
|
117
|
-
e !== a && (a = e, a ||
|
|
119
|
+
e !== a && (a = e, a || R(!1), u());
|
|
118
120
|
}, f = () => {
|
|
119
|
-
i = document.visibilityState !== "hidden", i ||
|
|
121
|
+
i = document.visibilityState !== "hidden", i || R(!1), u();
|
|
120
122
|
}, p = null;
|
|
121
123
|
typeof IntersectionObserver < "u" && e ? (p = new IntersectionObserver((e) => {
|
|
122
124
|
let t = e[e.length - 1];
|
|
@@ -128,25 +130,25 @@ function A({ hand: x, size: re, inline: D = !1, active: O = !1, idle: A = !0, en
|
|
|
128
130
|
typeof ResizeObserver < "u" && e && (g = new ResizeObserver(() => {
|
|
129
131
|
if (!e.isConnected || !m(e.clientWidth, e.clientHeight)) return;
|
|
130
132
|
let t = e.getBoundingClientRect();
|
|
131
|
-
m(t.width, t.height) && d(
|
|
133
|
+
m(t.width, t.height) && d(ne(t, window.innerWidth, window.innerHeight));
|
|
132
134
|
}), g.observe(e));
|
|
133
135
|
let _ = null;
|
|
134
136
|
return c && typeof MutationObserver < "u" && (_ = new MutationObserver(() => {
|
|
135
|
-
l() ||
|
|
137
|
+
l() || R(!1), u();
|
|
136
138
|
}), _.observe(c, {
|
|
137
139
|
attributes: !0,
|
|
138
140
|
attributeFilter: [ee]
|
|
139
141
|
})), document.addEventListener("visibilitychange", f), () => {
|
|
140
|
-
o = !0, s(),
|
|
142
|
+
o = !0, s(), R(!1), p?.disconnect(), g?.disconnect(), _?.disconnect(), document.removeEventListener("visibilitychange", f);
|
|
141
143
|
};
|
|
142
144
|
}, [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
k,
|
|
146
|
+
F,
|
|
147
|
+
P
|
|
146
148
|
]);
|
|
147
|
-
let
|
|
149
|
+
let J = D ? g(b) : null, _e = J ? J.box : c(x ?? "1em"), [Y, ve] = T(null), X = !D && F && !P && M === "slide-up", Z = !D && F && !P && M === "grow";
|
|
148
150
|
C(() => {
|
|
149
|
-
let e =
|
|
151
|
+
let e = U.current;
|
|
150
152
|
if (e) {
|
|
151
153
|
if (e.shadowRoot) {
|
|
152
154
|
ve(e.shadowRoot);
|
|
@@ -155,25 +157,25 @@ function A({ hand: x, size: re, inline: D = !1, active: O = !1, idle: A = !0, en
|
|
|
155
157
|
ve(e.attachShadow({ mode: "open" }));
|
|
156
158
|
}
|
|
157
159
|
}, [X, Z]), C(() => {
|
|
158
|
-
let e =
|
|
160
|
+
let e = U.current?.shadowRoot?.querySelector("canvas");
|
|
159
161
|
e && n(e);
|
|
160
162
|
}, [Y]);
|
|
161
163
|
let Q = w(() => {});
|
|
162
164
|
S(() => {
|
|
163
|
-
let e =
|
|
164
|
-
if (!
|
|
165
|
+
let e = U.current;
|
|
166
|
+
if (!W || !e) return;
|
|
165
167
|
let t = () => {
|
|
166
|
-
let e =
|
|
168
|
+
let e = U.current;
|
|
167
169
|
if (!e) return;
|
|
168
170
|
let t = e.getBoundingClientRect();
|
|
169
171
|
if (!p(e.offsetWidth, e.offsetHeight, t.width, t.height)) return;
|
|
170
172
|
let n = e.shadowRoot?.querySelector("canvas");
|
|
171
|
-
n && e.clientWidth > 0 && e.clientHeight > 0 && (n.style.width = `${e.clientWidth}px`, n.style.height = `${e.clientHeight}px`), m(e.clientWidth, e.clientHeight) && (
|
|
173
|
+
n && e.clientWidth > 0 && e.clientHeight > 0 && (n.style.width = `${e.clientWidth}px`, n.style.height = `${e.clientHeight}px`), m(e.clientWidth, e.clientHeight) && (W.resizeDrawingSurfaceToCanvas(), j(W, e, V.current));
|
|
172
174
|
};
|
|
173
175
|
Q.current = t;
|
|
174
176
|
let n = 0, r = 0, i = () => {
|
|
175
177
|
t();
|
|
176
|
-
let e =
|
|
178
|
+
let e = U.current, a = e?.shadowRoot?.querySelector("canvas"), o = !a || a.clientWidth < 1 || a.clientHeight < 1, s = !e || !e.isConnected || e.clientWidth < 1 || e.clientHeight < 1;
|
|
177
179
|
(o || s) && e?.isConnected && n < 8 && (n += 1, r = requestAnimationFrame(i));
|
|
178
180
|
};
|
|
179
181
|
if (i(), typeof ResizeObserver > "u") return () => {
|
|
@@ -188,39 +190,39 @@ function A({ hand: x, size: re, inline: D = !1, active: O = !1, idle: A = !0, en
|
|
|
188
190
|
}, [
|
|
189
191
|
Z,
|
|
190
192
|
X,
|
|
191
|
-
|
|
193
|
+
W
|
|
192
194
|
]);
|
|
193
|
-
let ye = Y ?
|
|
195
|
+
let ye = Y ? oe(/* @__PURE__ */ E("div", {
|
|
194
196
|
style: {
|
|
195
197
|
width: "100%",
|
|
196
198
|
height: "100%"
|
|
197
199
|
},
|
|
198
|
-
children: /* @__PURE__ */ E(
|
|
199
|
-
}), Y) : null, be = e(l,
|
|
200
|
-
width:
|
|
201
|
-
height:
|
|
200
|
+
children: /* @__PURE__ */ E(ge, {})
|
|
201
|
+
}), Y) : null, be = e(l, de), xe = {
|
|
202
|
+
width: _e,
|
|
203
|
+
height: _e,
|
|
202
204
|
transformOrigin: Z ? f : void 0,
|
|
203
|
-
...
|
|
205
|
+
...J ? {
|
|
204
206
|
position: "absolute",
|
|
205
207
|
left: "50%",
|
|
206
208
|
top: "50%",
|
|
207
|
-
transform:
|
|
209
|
+
transform: J.transform
|
|
208
210
|
} : {}
|
|
209
211
|
}, $ = !X && !Z ? /* @__PURE__ */ E("div", {
|
|
210
|
-
ref:
|
|
211
|
-
"aria-hidden":
|
|
212
|
-
"data-rive-hand":
|
|
212
|
+
ref: U,
|
|
213
|
+
"aria-hidden": N,
|
|
214
|
+
"data-rive-hand": b,
|
|
213
215
|
className: be,
|
|
214
216
|
style: xe,
|
|
215
217
|
children: ye
|
|
216
218
|
}) : /* @__PURE__ */ E(ae.div, {
|
|
217
|
-
ref:
|
|
218
|
-
"aria-hidden":
|
|
219
|
-
"data-rive-hand":
|
|
219
|
+
ref: U,
|
|
220
|
+
"aria-hidden": N,
|
|
221
|
+
"data-rive-hand": b,
|
|
220
222
|
className: be,
|
|
221
223
|
style: xe,
|
|
222
224
|
initial: X ? { y: "100%" } : { scale: 0 },
|
|
223
|
-
animate: X ? { y:
|
|
225
|
+
animate: X ? { y: z ? "0%" : "100%" } : { scale: +!!z },
|
|
224
226
|
transition: X ? {
|
|
225
227
|
type: "spring",
|
|
226
228
|
stiffness: 260,
|
|
@@ -231,18 +233,18 @@ function A({ hand: x, size: re, inline: D = !1, active: O = !1, idle: A = !0, en
|
|
|
231
233
|
stiffness: 480,
|
|
232
234
|
damping: 12,
|
|
233
235
|
mass: .55,
|
|
234
|
-
delay:
|
|
236
|
+
delay: z ? d : 0
|
|
235
237
|
},
|
|
236
238
|
onAnimationComplete: () => {
|
|
237
239
|
Q.current();
|
|
238
240
|
},
|
|
239
241
|
children: ye
|
|
240
242
|
});
|
|
241
|
-
return
|
|
242
|
-
"aria-hidden":
|
|
243
|
-
"data-rive-hand-slot":
|
|
243
|
+
return J ? /* @__PURE__ */ E("span", {
|
|
244
|
+
"aria-hidden": N,
|
|
245
|
+
"data-rive-hand-slot": b,
|
|
244
246
|
className: _,
|
|
245
|
-
style: { width:
|
|
247
|
+
style: { width: J.slot },
|
|
246
248
|
children: /* @__PURE__ */ E("span", {
|
|
247
249
|
"data-rive-hand-pop": "",
|
|
248
250
|
className: "pointer-events-none absolute left-0 top-0 h-0 w-full",
|
|
@@ -251,4 +253,4 @@ function A({ hand: x, size: re, inline: D = !1, active: O = !1, idle: A = !0, en
|
|
|
251
253
|
}) : $;
|
|
252
254
|
}
|
|
253
255
|
//#endregion
|
|
254
|
-
export {
|
|
256
|
+
export { M as RiveHand, a as riveHandArtboards, v as riveHandSrc, b as riveHandWasmSrc, x as riveHands };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode, TdHTMLAttributes, ThHTMLAttributes } from "react";
|
|
2
|
+
import { type TableAlign } from "./tableStyles";
|
|
3
|
+
export { tableAligns, type TableAlign } from "./tableStyles";
|
|
4
|
+
/** Layout-only — width, margin, or grid placement. */
|
|
5
|
+
export type TableLayoutClassName = string;
|
|
6
|
+
export interface TableProps {
|
|
7
|
+
/** `TableCaption`, `TableHeader`, `TableBody`, and `TableFooter`. */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** Names the scrolling region and the table. One of `aria-label` or `aria-labelledby` is required. */
|
|
10
|
+
"aria-label"?: string;
|
|
11
|
+
"aria-labelledby"?: string;
|
|
12
|
+
/** Layout-only — applies to the scroll box. */
|
|
13
|
+
className?: TableLayoutClassName;
|
|
14
|
+
}
|
|
15
|
+
export interface TableSectionProps {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
className?: TableLayoutClassName;
|
|
18
|
+
}
|
|
19
|
+
export interface TableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, "className"> {
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
className?: TableLayoutClassName;
|
|
22
|
+
}
|
|
23
|
+
export interface TableHeadProps extends Omit<ThHTMLAttributes<HTMLTableCellElement>, "className" | "align"> {
|
|
24
|
+
/** Text alignment of the column. Default `start`. */
|
|
25
|
+
align?: TableAlign;
|
|
26
|
+
/** Pin the column to the start edge while the table scrolls sideways. Set it on every cell of the column. */
|
|
27
|
+
sticky?: boolean;
|
|
28
|
+
className?: TableLayoutClassName;
|
|
29
|
+
}
|
|
30
|
+
export interface TableCellProps extends Omit<TdHTMLAttributes<HTMLTableCellElement>, "className" | "align"> {
|
|
31
|
+
/** Text alignment of the column. Default `start`. `end` sets tabular figures. */
|
|
32
|
+
align?: TableAlign;
|
|
33
|
+
/** Pin the column to the start edge while the table scrolls sideways. Set it on every cell of the column. */
|
|
34
|
+
sticky?: boolean;
|
|
35
|
+
className?: TableLayoutClassName;
|
|
36
|
+
}
|
|
37
|
+
export interface TableCaptionProps {
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
className?: TableLayoutClassName;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Semantic table in a horizontal-scroll box. The box is a focusable `region` named by the table's
|
|
43
|
+
* label, so a keyboard can scroll it; the table never squeezes its columns below their content.
|
|
44
|
+
*/
|
|
45
|
+
declare function Table({ children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className }: TableProps): import("react").JSX.Element;
|
|
46
|
+
declare function TableHeader({ children, className }: TableSectionProps): import("react").JSX.Element;
|
|
47
|
+
declare function TableBody({ children, className }: TableSectionProps): import("react").JSX.Element;
|
|
48
|
+
declare function TableFooter({ children, className }: TableSectionProps): import("react").JSX.Element;
|
|
49
|
+
declare function TableRow({ children, className, ...rest }: TableRowProps): import("react").JSX.Element;
|
|
50
|
+
declare function TableHead({ align, sticky, scope, className, children, ...rest }: TableHeadProps): import("react").JSX.Element;
|
|
51
|
+
declare function TableCell({ align, sticky, className, children, ...rest }: TableCellProps): import("react").JSX.Element;
|
|
52
|
+
declare function TableCaption({ children, className }: TableCaptionProps): import("react").JSX.Element;
|
|
53
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
54
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE3F,OAAO,EAYL,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7D,sDAAsD;AACtD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,qEAAqE;IACrE,QAAQ,EAAE,SAAS,CAAC;IACpB,sGAAsG;IACtG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAC3F,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IACzG,qDAAqD;IACrD,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,6GAA6G;IAC7G,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IACzG,iFAAiF;IACjF,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,6GAA6G;IAC7G,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED;;;GAGG;AACH,iBAAS,KAAK,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,UAAU,+BAc7G;AAED,iBAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAE9D;AAED,iBAAS,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAE5D;AAED,iBAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAE9D;AAED,iBAAS,QAAQ,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+BAMhE;AAED,iBAAS,SAAS,CAAC,EAAE,KAAe,EAAE,MAAM,EAAE,KAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,+BAM1G;AAED,iBAAS,SAAS,CAAC,EAAE,KAAe,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,+BAM3F;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAE/D;AAED,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { tableAlignClasses as t, tableAligns as n, tableBodyClasses as r, tableCaptionClasses as i, tableCellClasses as a, tableClasses as o, tableFooterClasses as s, tableHeadClasses as c, tableHeaderClasses as l, tableRowClasses as u, tableScrollClasses as d } from "./tableStyles.js";
|
|
4
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/atoms/Table/Table.tsx
|
|
6
|
+
function p({ children: t, "aria-label": n, "aria-labelledby": r, className: i }) {
|
|
7
|
+
return /* @__PURE__ */ f("div", {
|
|
8
|
+
role: "region",
|
|
9
|
+
tabIndex: 0,
|
|
10
|
+
"aria-label": n,
|
|
11
|
+
"aria-labelledby": r,
|
|
12
|
+
className: e(d, i),
|
|
13
|
+
children: /* @__PURE__ */ f("table", {
|
|
14
|
+
className: o,
|
|
15
|
+
children: t
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function m({ children: t, className: n }) {
|
|
20
|
+
return /* @__PURE__ */ f("thead", {
|
|
21
|
+
className: e(l, n),
|
|
22
|
+
children: t
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function h({ children: t, className: n }) {
|
|
26
|
+
return /* @__PURE__ */ f("tbody", {
|
|
27
|
+
className: e(r, n),
|
|
28
|
+
children: t
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function g({ children: t, className: n }) {
|
|
32
|
+
return /* @__PURE__ */ f("tfoot", {
|
|
33
|
+
className: e(s, n),
|
|
34
|
+
children: t
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function _({ children: t, className: n, ...r }) {
|
|
38
|
+
return /* @__PURE__ */ f("tr", {
|
|
39
|
+
...r,
|
|
40
|
+
className: e(u, n),
|
|
41
|
+
children: t
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function v({ align: n = "start", sticky: r, scope: i = "col", className: a, children: o, ...s }) {
|
|
45
|
+
return /* @__PURE__ */ f("th", {
|
|
46
|
+
...s,
|
|
47
|
+
scope: i,
|
|
48
|
+
className: e(c, t[n], r && "sticky start-0 z-10 bg-body", a),
|
|
49
|
+
children: o
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function y({ align: n = "start", sticky: r, className: i, children: o, ...s }) {
|
|
53
|
+
return /* @__PURE__ */ f("td", {
|
|
54
|
+
...s,
|
|
55
|
+
className: e(a, t[n], r && "sticky start-0 z-10 bg-body", i),
|
|
56
|
+
children: o
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function b({ children: t, className: n }) {
|
|
60
|
+
return /* @__PURE__ */ f("caption", {
|
|
61
|
+
className: e(i, n),
|
|
62
|
+
children: t
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { p as Table, h as TableBody, b as TableCaption, y as TableCell, g as TableFooter, v as TableHead, m as TableHeader, _ as TableRow, n as tableAligns };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const tableAligns: readonly ["start", "center", "end"];
|
|
2
|
+
/** Horizontal alignment of a column's text — `end` for figures. */
|
|
3
|
+
export type TableAlign = (typeof tableAligns)[number];
|
|
4
|
+
/** The scroll box. Focusable so a keyboard can scroll a wide table. */
|
|
5
|
+
export declare const tableScrollClasses = "w-full max-w-full overflow-x-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-ring";
|
|
6
|
+
/** A table with a `colgroup` lays its columns out from the `col` widths, so a filled and an empty table match. */
|
|
7
|
+
export declare const tableClasses: string;
|
|
8
|
+
export declare const tableHeaderClasses = "[&_tr]:border-b [&_tr]:border-border";
|
|
9
|
+
export declare const tableBodyClasses = "[&_tr:last-child]:border-b-0";
|
|
10
|
+
export declare const tableFooterClasses = "border-t border-border-emphasized [&>tr]:border-b-0";
|
|
11
|
+
export declare const tableRowClasses = "border-b border-border transition-colors hover:bg-ghost-hover";
|
|
12
|
+
export declare const tableHeadClasses: string;
|
|
13
|
+
export declare const tableCellClasses = "px-3 py-3 align-middle";
|
|
14
|
+
export declare const tableCaptionClasses: string;
|
|
15
|
+
/** A column pinned to the start edge while the rest scrolls — opaque so cells slide under it. */
|
|
16
|
+
export declare const tableStickyClasses = "sticky start-0 z-10 bg-body";
|
|
17
|
+
export declare const tableAlignClasses: Record<TableAlign, string>;
|
|
18
|
+
//# sourceMappingURL=tableStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Table/tableStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,qCAAsC,CAAC;AAE/D,mEAAmE;AACnE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,6IAC6G,CAAC;AAE7I,kHAAkH;AAClH,eAAO,MAAM,YAAY,QAAkH,CAAC;AAE5I,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AAEzE,eAAO,MAAM,gBAAgB,iCAAiC,CAAC;AAE/D,eAAO,MAAM,kBAAkB,wDAAwD,CAAC;AAExF,eAAO,MAAM,eAAe,kEAAkE,CAAC;AAE/F,eAAO,MAAM,gBAAgB,QAAmG,CAAC;AAEjI,eAAO,MAAM,gBAAgB,2BAA2B,CAAC;AAEzD,eAAO,MAAM,mBAAmB,QAA0D,CAAC;AAE3F,iGAAiG;AACjG,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAEhE,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAIxD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { typographyClass as e } from "../../../lib/typography.js";
|
|
3
|
+
//#region src/components/atoms/Table/tableStyles.ts
|
|
4
|
+
var t = [
|
|
5
|
+
"start",
|
|
6
|
+
"center",
|
|
7
|
+
"end"
|
|
8
|
+
], n = "w-full max-w-full overflow-x-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-ring", r = `w-full min-w-max caption-bottom border-collapse has-[colgroup]:table-fixed text-fg ${e("body")}`, i = "[&_tr]:border-b [&_tr]:border-border", a = "[&_tr:last-child]:border-b-0", o = "border-t border-border-emphasized [&>tr]:border-b-0", s = "border-b border-border transition-colors hover:bg-ghost-hover", c = `h-11 px-3 text-start align-middle font-normal whitespace-nowrap ${e("ui-label")}`, l = "px-3 py-3 align-middle", u = `mt-3 text-start ${e("body")} text-muted`, d = "sticky start-0 z-10 bg-body", f = {
|
|
9
|
+
start: "text-start",
|
|
10
|
+
center: "text-center",
|
|
11
|
+
end: "text-end tabular-nums"
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { f as tableAlignClasses, t as tableAligns, a as tableBodyClasses, u as tableCaptionClasses, l as tableCellClasses, r as tableClasses, o as tableFooterClasses, c as tableHeadClasses, i as tableHeaderClasses, s as tableRowClasses, n as tableScrollClasses, d as tableStickyClasses };
|
|
@@ -16,6 +16,12 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
16
16
|
message?: string;
|
|
17
17
|
/** Status band placement when `message` is set — default `bottom`. */
|
|
18
18
|
messagePosition?: InputMessagePosition;
|
|
19
|
+
/**
|
|
20
|
+
* Progress text under the field, announced politely as it changes — "Saving…", "Saved".
|
|
21
|
+
* The live region stays mounted while the prop is a string (pass `""` when idle), so a change is
|
|
22
|
+
* heard. Not validation — use `status` + `message` for that. Omitted with `inline`.
|
|
23
|
+
*/
|
|
24
|
+
liveStatus?: string;
|
|
19
25
|
/** Trailing spinner — async validation. */
|
|
20
26
|
loading?: boolean;
|
|
21
27
|
/** Visible row count — default **4**. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAKvE,OAAO,EAqBL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE1G,sEAAsE;AACtE,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACjE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAqBD;;;GAGG;AACH,eAAO,MAAM,QAAQ,+
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAKvE,OAAO,EAqBL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE1G,sEAAsE;AACtE,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACjE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAqBD;;;GAGG;AACH,eAAO,MAAM,QAAQ,+GA6JnB,CAAC"}
|