@thewhatmatters/wmds 0.4.9 → 0.4.28
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 +303 -0
- package/CONSUMING.md +62 -1
- package/README.md +1 -1
- package/bin/wmds-check.mjs +47 -0
- package/dist/colors.css +92 -0
- 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 +42 -20
- package/dist/components/atoms/Band/Band.d.ts +27 -0
- package/dist/components/atoms/Band/Band.d.ts.map +1 -0
- package/dist/components/atoms/Band/Band.js +22 -0
- package/dist/components/atoms/Band/bandStyles.d.ts +20 -0
- package/dist/components/atoms/Band/bandStyles.d.ts.map +1 -0
- package/dist/components/atoms/Band/bandStyles.js +23 -0
- 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/ButtonStatusButton.d.ts.map +1 -1
- package/dist/components/atoms/Button/ButtonStatusButton.js +12 -5
- 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 +2 -2
- package/dist/components/atoms/Button/buttonStyles.d.ts.map +1 -1
- package/dist/components/atoms/Button/buttonStyles.js +16 -14
- package/dist/components/atoms/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.js +69 -68
- package/dist/components/atoms/Checkbox/checkboxStyles.d.ts +1 -1
- package/dist/components/atoms/Checkbox/checkboxStyles.d.ts.map +1 -1
- package/dist/components/atoms/Checkbox/checkboxStyles.js +1 -1
- package/dist/components/atoms/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/atoms/IconButton/IconButton.js +13 -12
- package/dist/components/atoms/IconButton/iconButtonStyles.d.ts +2 -2
- package/dist/components/atoms/IconButton/iconButtonStyles.d.ts.map +1 -1
- package/dist/components/atoms/IconButton/iconButtonStyles.js +1 -1
- package/dist/components/atoms/InlinePill/InlinePill.d.ts +42 -0
- package/dist/components/atoms/InlinePill/InlinePill.d.ts.map +1 -0
- package/dist/components/atoms/InlinePill/InlinePill.js +48 -0
- package/dist/components/atoms/InlinePill/inlinePillStyles.d.ts +27 -0
- package/dist/components/atoms/InlinePill/inlinePillStyles.d.ts.map +1 -0
- package/dist/components/atoms/InlinePill/inlinePillStyles.js +19 -0
- package/dist/components/atoms/Input/Input.d.ts +9 -4
- 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 +10 -4
- package/dist/components/atoms/Input/inputShellStyles.d.ts.map +1 -1
- package/dist/components/atoms/Input/inputShellStyles.js +40 -40
- package/dist/components/atoms/RiveHand/RiveHand.d.ts.map +1 -1
- package/dist/components/atoms/RiveHand/RiveHand.js +83 -81
- package/dist/components/atoms/Skeleton/skeletonStyles.js +1 -1
- package/dist/components/atoms/Switch/Switch.d.ts.map +1 -1
- package/dist/components/atoms/Switch/Switch.js +45 -44
- package/dist/components/atoms/Switch/switchStyles.d.ts +1 -1
- package/dist/components/atoms/Switch/switchStyles.d.ts.map +1 -1
- package/dist/components/atoms/Switch/switchStyles.js +1 -1
- 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 +5 -5
- package/dist/components/molecules/Accordion/accordionStyles.d.ts +1 -1
- package/dist/components/molecules/Accordion/accordionStyles.d.ts.map +1 -1
- package/dist/components/molecules/Accordion/accordionStyles.js +1 -1
- package/dist/components/molecules/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/molecules/Breadcrumb/Breadcrumb.js +80 -122
- 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 +19 -5
- package/dist/components/molecules/ChatQa/chatQaStyles.d.ts +1 -1
- package/dist/components/molecules/ChatQa/chatQaStyles.d.ts.map +1 -1
- package/dist/components/molecules/ChatQa/chatQaStyles.js +1 -1
- 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/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/molecules/Dropdown/DropdownItem.d.ts +2 -2
- package/dist/components/molecules/Dropdown/DropdownItem.d.ts.map +1 -1
- package/dist/components/molecules/Dropdown/DropdownItem.js +30 -27
- package/dist/components/molecules/Dropdown/dropdownStyles.js +1 -1
- package/dist/components/molecules/Dropdown/resolveOverflow.d.ts +14 -0
- package/dist/components/molecules/Dropdown/resolveOverflow.d.ts.map +1 -0
- package/dist/components/{organisms/Tab/tabOverflow.js → molecules/Dropdown/resolveOverflow.js} +2 -2
- package/dist/components/molecules/Dropdown/useDropdownMenu.d.ts +70 -0
- package/dist/components/molecules/Dropdown/useDropdownMenu.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/useDropdownMenu.js +155 -0
- package/dist/components/molecules/Dropdown/useOverflowMenu.d.ts +71 -0
- package/dist/components/molecules/Dropdown/useOverflowMenu.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/useOverflowMenu.js +61 -0
- package/dist/components/molecules/Field/Field.d.ts.map +1 -1
- package/dist/components/molecules/Field/Field.js +11 -10
- 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/PillGroup/pillGroupStyles.js +1 -1
- package/dist/components/molecules/Search/searchStyles.js +1 -1
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.d.ts +1 -1
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.d.ts.map +1 -1
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.js +8 -8
- package/dist/components/molecules/Select/Select.d.ts +3 -1
- package/dist/components/molecules/Select/Select.d.ts.map +1 -1
- package/dist/components/molecules/Select/Select.js +75 -119
- package/dist/components/molecules/Select/selectStyles.js +3 -3
- 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 +24 -4
- package/dist/components/molecules/Stat/statStyles.d.ts.map +1 -1
- package/dist/components/molecules/Stat/statStyles.js +30 -13
- 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/TextSequence/TextSequence.d.ts.map +1 -1
- package/dist/components/molecules/TextSequence/TextSequence.js +35 -35
- package/dist/components/organisms/AppShell/AppShell.d.ts +84 -0
- package/dist/components/organisms/AppShell/AppShell.d.ts.map +1 -0
- package/dist/components/organisms/AppShell/AppShell.js +231 -0
- package/dist/components/organisms/AppShell/appShellStyles.d.ts +20 -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/AlertDialog.d.ts +7 -1
- package/dist/components/organisms/Dialog/AlertDialog.d.ts.map +1 -1
- package/dist/components/organisms/Dialog/AlertDialog.js +54 -50
- package/dist/components/organisms/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/organisms/Dialog/Dialog.js +52 -71
- package/dist/components/organisms/Dialog/OverlayPanelHeader.d.ts.map +1 -1
- package/dist/components/organisms/Dialog/OverlayPanelHeader.js +1 -0
- package/dist/components/organisms/Dialog/dialogStyles.d.ts +14 -1
- package/dist/components/organisms/Dialog/dialogStyles.d.ts.map +1 -1
- package/dist/components/organisms/Dialog/dialogStyles.js +3 -3
- package/dist/components/organisms/FilterPanel/FilterPanel.d.ts.map +1 -1
- package/dist/components/organisms/FilterPanel/FilterPanel.js +52 -42
- package/dist/components/organisms/IntakeModal/IntakeModal.d.ts +6 -1
- package/dist/components/organisms/IntakeModal/IntakeModal.d.ts.map +1 -1
- package/dist/components/organisms/IntakeModal/IntakeModal.js +54 -66
- package/dist/components/organisms/MoreMenu/MoreMenu.d.ts.map +1 -1
- package/dist/components/organisms/MoreMenu/MoreMenu.js +45 -101
- package/dist/components/organisms/Panel/Panel.d.ts.map +1 -1
- package/dist/components/organisms/Panel/Panel.js +44 -53
- 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 +66 -81
- 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/SiteNav/SiteNav.d.ts +0 -9
- package/dist/components/organisms/SiteNav/SiteNav.d.ts.map +1 -1
- package/dist/components/organisms/SiteNav/SiteNav.js +236 -286
- package/dist/components/organisms/SiteNav/siteNavStyles.js +1 -1
- package/dist/components/organisms/Tab/Tab.d.ts.map +1 -1
- package/dist/components/organisms/Tab/Tab.js +77 -127
- package/dist/components/organisms/Tab/tabStyles.d.ts +2 -1
- package/dist/components/organisms/Tab/tabStyles.d.ts.map +1 -1
- package/dist/components/organisms/Tab/tabStyles.js +7 -7
- package/dist/fonts.css +10 -0
- package/dist/grid.css +38 -0
- package/dist/index.d.ts +16 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +152 -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/contrast.d.ts +11 -0
- package/dist/lib/contrast.d.ts.map +1 -0
- package/dist/lib/dialogOverlay.d.ts +34 -1
- package/dist/lib/dialogOverlay.d.ts.map +1 -1
- package/dist/lib/dialogOverlay.js +100 -23
- 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 +1 -1
- package/dist/lib/typography.d.ts.map +1 -1
- package/dist/shape.css +24 -3
- package/dist/styles.css +1 -1
- package/dist/typography.css +55 -8
- package/docs/README.md +1 -1
- package/docs/component-contracts.md +101 -0
- package/docs/components.md +19 -12
- package/docs/exports.json +142 -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-band--page-in-bands.tsx +39 -0
- 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--alert-dialog-typed-confirmation.tsx +54 -0
- 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 +193 -1
- package/package.json +1 -1
- package/dist/components/organisms/Tab/tabOverflow.d.ts +0 -14
- package/dist/components/organisms/Tab/tabOverflow.d.ts.map +0 -1
|
@@ -7,9 +7,9 @@ var g = [
|
|
|
7
7
|
"vertical",
|
|
8
8
|
"both"
|
|
9
9
|
], _ = {
|
|
10
|
-
sm: "rounded-
|
|
11
|
-
md: "rounded-
|
|
12
|
-
lg: "rounded-
|
|
10
|
+
sm: "rounded-[var(--radius-control-box)]",
|
|
11
|
+
md: "rounded-[var(--radius-control-box)]",
|
|
12
|
+
lg: "rounded-[var(--radius-control-box)]"
|
|
13
13
|
}, v = {
|
|
14
14
|
none: "resize-none",
|
|
15
15
|
vertical: "resize-y",
|
|
@@ -26,7 +26,7 @@ var g = [
|
|
|
26
26
|
sm: "pr-2.5 pb-2.5",
|
|
27
27
|
md: "pr-3 pb-3",
|
|
28
28
|
lg: "pr-3.5 pb-3.5"
|
|
29
|
-
}, S = "focus-within:outline-none focus-within:ring-2
|
|
29
|
+
}, S = "focus-within:outline-none focus-within:ring-2", C = {
|
|
30
30
|
default: "focus-within:ring-focus-ring",
|
|
31
31
|
error: "focus-within:ring-error-focus-ring",
|
|
32
32
|
warning: "focus-within:ring-warning-focus-ring",
|
|
@@ -66,6 +66,6 @@ function M(t, n, r) {
|
|
|
66
66
|
function N(t, n, r) {
|
|
67
67
|
return r === "bottom" ? e("relative z-0 flex w-full items-center gap-2 px-3 pb-3 leading-snug", D[n], "rounded-b-[1.375rem]", p[t]) : e("relative z-0 flex w-full items-center gap-2 px-3 pt-2.5 leading-snug", O[n], "rounded-t-[1.375rem]", p[t]);
|
|
68
68
|
}
|
|
69
|
-
var P = e(r, "block leading-normal"), F = "w-full border-0 bg-transparent shadow-none focus-visible
|
|
69
|
+
var P = e(r, "block leading-normal"), F = "w-full border-0 bg-transparent shadow-none focus-visible:!outline-none focus-visible:!ring-0", I = "block w-full min-w-0 resize-none rounded-none border-0 bg-transparent font-sans font-normal tracking-normal text-fg shadow-none placeholder:text-disabled focus-visible:!outline-none focus-visible:!ring-0";
|
|
70
70
|
//#endregion
|
|
71
71
|
export { t as inputAttachedFieldClasses, n as inputAttachedInputClasses, i as inputCompoundShellClassesFor, o as inputControlStackClasses, s as inputDisabledClasses, c as inputDisabledLabelClasses, l as inputFieldStackClasses, m as inputStatusGapClasses, h as inputStatusShellClasses, P as textareaBaseClasses, D as textareaCompoundBannerOverlapBottomClasses, O as textareaCompoundBannerOverlapTopPadClasses, k as textareaCompoundFieldOverlapTopClasses, T as textareaCompoundFieldPaddingClasses, M as textareaCompoundInnerFieldClassesFor, b as textareaFixedPaddingClasses, I as textareaInlineClasses, y as textareaMinHeightClasses, v as textareaResizeClasses, g as textareaResizes, E as textareaShellClasses, F as textareaShellFieldClasses, S as textareaShellFocusRingBaseClasses, C as textareaShellFocusRingColorClasses, x as textareaShellResizePaddingClasses, _ as textareaSoloRadiusClasses, w as textareaSoloShellClassesFor, N as textareaStatusBannerClassesFor, j as textareaTrailingInsetClasses, A as textareaTrailingInsetPositionClasses };
|
|
@@ -40,7 +40,7 @@ export declare const accordionLabelPlainClasses: string;
|
|
|
40
40
|
export declare const accordionLabelRowClasses: string;
|
|
41
41
|
export declare const accordionTrailingClusterClasses = "flex shrink-0 items-center gap-2";
|
|
42
42
|
/** Chevron column — decorative inside the disclosure button. */
|
|
43
|
-
export declare const accordionChevronSlotClasses = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-
|
|
43
|
+
export declare const accordionChevronSlotClasses = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-[var(--radius-control)] text-muted";
|
|
44
44
|
export declare const accordionChevronRotateClasses: string;
|
|
45
45
|
export declare const accordionChevronOpenClasses = "rotate-180";
|
|
46
46
|
export declare const accordionPanelInnerClasses = "overflow-hidden";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordionStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/accordionStyles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB,uCAAwC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB,+FACyD,CAAC;AAE/F,qEAAqE;AACrE,eAAO,MAAM,6BAA6B,2CAA2C,CAAC;AAEtF,eAAO,MAAM,2BAA2B,6DACkC,CAAC;AAE3E,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,eAAO,MAAM,wBAAwB,QACiD,CAAC;AAEvF,eAAO,MAAM,yBAAyB,QACgD,CAAC;AAEvF,6FAA6F;AAC7F,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,QAEZ,CAAC;AAE7B,mDAAmD;AACnD,eAAO,MAAM,iCAAiC,mBAAwB,CAAC;AAEvE,sCAAsC;AACtC,eAAO,MAAM,+BAA+B,mBAA4B,CAAC;AAEzE,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,6BAA6B,WAAW,CAAC;AAEtD,eAAO,MAAM,2BAA2B,QACqC,CAAC;AAE9E,eAAO,MAAM,8BAA8B,QACyC,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,uFAC6C,CAAC;AAEvF,yFAAyF;AACzF,eAAO,MAAM,2BAA2B,QAA8B,CAAC;AAEvE,yEAAyE;AACzE,eAAO,MAAM,kCAAkC,QAErB,CAAC;AAE3B,eAAO,MAAM,2BAA2B,qDAAqD,CAAC;AAE9F,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,QAAuD,CAAC;AAE/F,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,QAA4E,CAAC;AAElH,eAAO,MAAM,+BAA+B,qCAAqC,CAAC;AAElF,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"accordionStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/accordionStyles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB,uCAAwC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB,+FACyD,CAAC;AAE/F,qEAAqE;AACrE,eAAO,MAAM,6BAA6B,2CAA2C,CAAC;AAEtF,eAAO,MAAM,2BAA2B,6DACkC,CAAC;AAE3E,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,eAAO,MAAM,wBAAwB,QACiD,CAAC;AAEvF,eAAO,MAAM,yBAAyB,QACgD,CAA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
9
|
"plain"
|
|
10
|
-
], o = "flex w-full flex-col overflow-hidden rounded-lg bg-surface font-sans text-fg shadow-raised", s = "flex w-full flex-col font-sans text-fg", c = `flex w-full min-h-0 flex-col ${i} font-sans text-fg`, l = "flex w-full flex-col font-sans text-fg", u = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), d = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), f = "border-b border-border last:border-b-0", p = "overflow-hidden bg-surface shadow-raised transition-[border-radius,background-color] " + t("medium"), m = r, h = n, g = "flex h-11 w-full items-center gap-2.5 text-left px-4", _ = "flex h-11 w-full items-center gap-2.5 text-left px-2.5", v = "-mx-2 flex h-11 w-[calc(100%+1rem)] items-center gap-2.5 rounded-lg px-2 text-left", y = "cursor-pointer hover:bg-ghost-hover active:bg-ghost-active focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset " + t("fast"), b = "flex size-6 shrink-0 items-center justify-center", x = `${e("body")} min-w-0 flex-1 truncate`, S = `${e("ui-label")} min-w-0 flex-1 truncate text-[0.8125rem]`, C = "flex shrink-0 items-center gap-2", w = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-
|
|
10
|
+
], o = "flex w-full flex-col overflow-hidden rounded-lg bg-surface font-sans text-fg shadow-raised", s = "flex w-full flex-col font-sans text-fg", c = `flex w-full min-h-0 flex-col ${i} font-sans text-fg`, l = "flex w-full flex-col font-sans text-fg", u = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), d = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), f = "border-b border-border last:border-b-0", p = "overflow-hidden bg-surface shadow-raised transition-[border-radius,background-color] " + t("medium"), m = r, h = n, g = "flex h-11 w-full items-center gap-2.5 text-left px-4", _ = "flex h-11 w-full items-center gap-2.5 text-left px-2.5", v = "-mx-2 flex h-11 w-[calc(100%+1rem)] items-center gap-2.5 rounded-lg px-2 text-left", y = "cursor-pointer hover:bg-ghost-hover active:bg-ghost-active focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset " + t("fast"), b = "flex size-6 shrink-0 items-center justify-center", x = `${e("body")} min-w-0 flex-1 truncate`, S = `${e("ui-label")} min-w-0 flex-1 truncate text-[0.8125rem]`, C = "flex shrink-0 items-center gap-2", w = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-[var(--radius-control)] text-muted", T = "inline-flex " + t("medium") + " transition-transform", E = "rotate-180", D = "overflow-hidden", O = "type-body text-muted tracking-normal pb-4 pt-0 px-4", k = "type-body text-muted tracking-normal pb-2.5 pt-0 px-2.5", A = "type-body text-muted tracking-normal pb-4 pt-0";
|
|
11
11
|
//#endregion
|
|
12
12
|
export { E as accordionChevronOpenClasses, T as accordionChevronRotateClasses, w as accordionChevronSlotClasses, p as accordionItemCapsuleClasses, m as accordionItemCapsuleClosedClasses, h as accordionItemCapsuleOpenClasses, f as accordionItemFlushClasses, u as accordionItemListClasses, d as accordionItemPlainClasses, x as accordionLabelPlainClasses, S as accordionLabelRowClasses, b as accordionLeadingSlotClasses, k as accordionPanelContentCapsuleClasses, A as accordionPanelContentFlushClasses, O as accordionPanelContentListClasses, D as accordionPanelInnerClasses, c as accordionRootCapsuleClasses, o as accordionRootListClasses, s as accordionRootListInsetClasses, l as accordionRootPlainClasses, C as accordionTrailingClusterClasses, _ as accordionTriggerCapsuleClasses, v as accordionTriggerFlushClasses, y as accordionTriggerInteractiveClasses, g as accordionTriggerListClasses, a as accordionVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAS5D,OAA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AO,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAAC;AAEjD,iEAAiE;AACjE,wBAAgB,eAAe,CAC7B,KAAK,EAAE,iBAAiB,EAAE,EAC1B,QAAQ,SAAI,GACX,cAAc,EAAE,CAiBlB;AAkHD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAY,EACZ,SAAqB,EACrB,OAAgB,EAChB,UAA8B,EAC9B,MAAM,EAAE,UAAU,EAClB,SAAS,GACV,EAAE,eAAe,+BAwCjB"}
|
|
@@ -4,17 +4,18 @@ import { ButtonIcon as t } from "../../atoms/Button/ButtonIcon.js";
|
|
|
4
4
|
import { IconButton as n } from "../../atoms/IconButton/IconButton.js";
|
|
5
5
|
import { Dropdown as r } from "../Dropdown/Dropdown.js";
|
|
6
6
|
import { measureDropdownMenuStyle as i } from "../Dropdown/dropdownMenuPosition.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { useDropdownMenu as a } from "../Dropdown/useDropdownMenu.js";
|
|
8
|
+
import { breadcrumbItemClasses as o, breadcrumbLinkClasses as s, breadcrumbListClasses as c, breadcrumbMoreClasses as l, breadcrumbPageClasses as u, breadcrumbSeparatorClasses as d, breadcrumbSeparators as f, breadcrumbSlashClasses as p, breadcrumbTextClasses as m, breadcrumbVariantClasses as h, breadcrumbVariants as g } from "./breadcrumbStyles.js";
|
|
9
|
+
import { Fragment as _, useRef as v } from "react";
|
|
10
|
+
import { ChevronRight as y, Ellipsis as b } from "lucide-react";
|
|
11
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
12
|
+
import { useRender as C } from "@base-ui/react/use-render";
|
|
12
13
|
//#region src/components/molecules/Breadcrumb/Breadcrumb.tsx
|
|
13
|
-
var
|
|
14
|
+
var w = {
|
|
14
15
|
nav: "Breadcrumb",
|
|
15
16
|
more: (e) => `Show ${e} more ${e === 1 ? "page" : "pages"}`
|
|
16
17
|
};
|
|
17
|
-
function
|
|
18
|
+
function T(e, t = 4) {
|
|
18
19
|
let n = Math.max(3, Math.floor(t)), r = e.length - 1, i = (e, t) => ({
|
|
19
20
|
kind: "item",
|
|
20
21
|
item: e,
|
|
@@ -31,158 +32,115 @@ function k(e, t = 4) {
|
|
|
31
32
|
...e.slice(e.length - a).map((t, n) => i(t, e.length - a + n))
|
|
32
33
|
];
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function E(e) {
|
|
35
36
|
return e.id ?? e.href ?? e.label;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
function D(e) {
|
|
39
|
+
return /* @__PURE__ */ x("a", { href: e.href });
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function O(e) {
|
|
41
42
|
return e.href != null;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
44
|
+
function k({ item: e, renderLink: t }) {
|
|
45
|
+
return C({
|
|
45
46
|
render: t(e),
|
|
46
47
|
props: {
|
|
47
|
-
className:
|
|
48
|
+
className: s,
|
|
48
49
|
title: e.label,
|
|
49
50
|
children: e.label
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
return /* @__PURE__ */
|
|
54
|
+
function A({ separator: e }) {
|
|
55
|
+
return /* @__PURE__ */ x("li", {
|
|
55
56
|
role: "presentation",
|
|
56
57
|
"aria-hidden": "true",
|
|
57
|
-
className:
|
|
58
|
-
children: e === "slash" ? /* @__PURE__ */
|
|
59
|
-
className:
|
|
58
|
+
className: d,
|
|
59
|
+
children: e === "slash" ? /* @__PURE__ */ x("span", {
|
|
60
|
+
className: p,
|
|
60
61
|
children: "/"
|
|
61
|
-
}) : /* @__PURE__ */
|
|
62
|
+
}) : /* @__PURE__ */ x(t, {
|
|
62
63
|
size: "xs",
|
|
63
|
-
children: /* @__PURE__ */
|
|
64
|
+
children: /* @__PURE__ */ x(y, {})
|
|
64
65
|
})
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
function j({ items: e, label: t, renderLink: o }) {
|
|
69
|
+
let s = v(null), c = e.map((e) => ({
|
|
70
|
+
label: e.label,
|
|
71
|
+
disabled: !O(e)
|
|
72
|
+
})), u = a({
|
|
73
|
+
rows: c,
|
|
74
|
+
triggerRef: s,
|
|
75
|
+
focus: "items",
|
|
76
|
+
measure: () => s.current == null ? null : i(s.current, e.map((e) => ({ label: e.label })), {
|
|
71
77
|
align: "start",
|
|
72
78
|
widthMode: "content"
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
103
|
-
let t = D();
|
|
104
|
-
if (t.length === 0) return;
|
|
105
|
-
e.preventDefault();
|
|
106
|
-
let n = t.indexOf(document.activeElement), r = e.key === "ArrowDown" ? 1 : -1;
|
|
107
|
-
t[n === -1 ? r === 1 ? 0 : t.length - 1 : (n + r + t.length) % t.length]?.focus();
|
|
108
|
-
}
|
|
109
|
-
function k(e) {
|
|
110
|
-
if (!d) return;
|
|
111
|
-
let t = e.relatedTarget;
|
|
112
|
-
(t == null || !s.current?.contains(t)) && C(!1);
|
|
113
|
-
}
|
|
114
|
-
return /* @__PURE__ */ E("div", {
|
|
115
|
-
ref: s,
|
|
116
|
-
className: c,
|
|
117
|
-
onKeyDown: O,
|
|
118
|
-
onBlur: k,
|
|
119
|
-
children: [/* @__PURE__ */ T("div", {
|
|
120
|
-
ref: l,
|
|
121
|
-
className: "inline-flex",
|
|
122
|
-
children: /* @__PURE__ */ T(n, {
|
|
123
|
-
size: "sm",
|
|
124
|
-
icon: /* @__PURE__ */ T(w, {}),
|
|
125
|
-
"aria-label": t,
|
|
126
|
-
title: "",
|
|
127
|
-
"aria-expanded": d,
|
|
128
|
-
"aria-controls": d ? o : void 0,
|
|
129
|
-
onClick: () => {
|
|
130
|
-
d ? C(!1) : (h.current = !0, f(!0));
|
|
131
|
-
}
|
|
132
|
-
})
|
|
133
|
-
}), d && p != null ? /* @__PURE__ */ T("div", {
|
|
134
|
-
ref: u,
|
|
135
|
-
children: /* @__PURE__ */ T(r.Menu, {
|
|
136
|
-
id: o,
|
|
137
|
-
"aria-label": t,
|
|
138
|
-
style: p,
|
|
139
|
-
children: e.map((e) => /* @__PURE__ */ T("li", { children: M(e) ? /* @__PURE__ */ T(r.Item, {
|
|
140
|
-
truncate: !1,
|
|
141
|
-
render: a(e),
|
|
142
|
-
onClick: () => C(!1),
|
|
143
|
-
children: e.label
|
|
144
|
-
}) : /* @__PURE__ */ T(r.Item, {
|
|
145
|
-
truncate: !1,
|
|
146
|
-
disabled: !0,
|
|
147
|
-
children: e.label
|
|
148
|
-
}) }, A(e)))
|
|
149
|
-
})
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
return /* @__PURE__ */ S("div", {
|
|
82
|
+
...u.rootProps,
|
|
83
|
+
className: l,
|
|
84
|
+
children: [/* @__PURE__ */ x(n, {
|
|
85
|
+
ref: s,
|
|
86
|
+
size: "sm",
|
|
87
|
+
icon: /* @__PURE__ */ x(b, {}),
|
|
88
|
+
"aria-label": t,
|
|
89
|
+
title: "",
|
|
90
|
+
"aria-expanded": u.triggerProps["aria-expanded"],
|
|
91
|
+
"aria-controls": u.triggerProps["aria-controls"],
|
|
92
|
+
onClick: u.toggle
|
|
93
|
+
}), u.open && u.menuStyle != null ? /* @__PURE__ */ x(r.Menu, {
|
|
94
|
+
...u.menuProps,
|
|
95
|
+
"aria-label": t,
|
|
96
|
+
children: e.map((e, t) => /* @__PURE__ */ x("li", { children: O(e) ? /* @__PURE__ */ x(r.Item, {
|
|
97
|
+
...u.rowProps(t),
|
|
98
|
+
truncate: !1,
|
|
99
|
+
render: o(e),
|
|
100
|
+
onClick: () => u.close(),
|
|
101
|
+
children: e.label
|
|
102
|
+
}) : /* @__PURE__ */ x(r.Item, {
|
|
103
|
+
...u.rowProps(t),
|
|
104
|
+
truncate: !1,
|
|
105
|
+
disabled: !0,
|
|
106
|
+
children: e.label
|
|
107
|
+
}) }, E(e)))
|
|
150
108
|
}) : null]
|
|
151
109
|
});
|
|
152
110
|
}
|
|
153
|
-
function
|
|
111
|
+
function M({ items: t, maxItems: n = 4, separator: r = "chevron", variant: i = "sans", renderLink: a = D, labels: s, className: l }) {
|
|
154
112
|
let d = {
|
|
155
|
-
...
|
|
156
|
-
...
|
|
157
|
-
}, f =
|
|
158
|
-
return /* @__PURE__ */
|
|
113
|
+
...w,
|
|
114
|
+
...s
|
|
115
|
+
}, f = T(t, n);
|
|
116
|
+
return /* @__PURE__ */ x("nav", {
|
|
159
117
|
"aria-label": d.nav,
|
|
160
|
-
className:
|
|
118
|
+
className: l,
|
|
161
119
|
"data-variant": i,
|
|
162
|
-
children: /* @__PURE__ */
|
|
163
|
-
className: e(
|
|
164
|
-
children: f.map((e, t) => /* @__PURE__ */
|
|
165
|
-
className:
|
|
166
|
-
children: e.kind === "more" ? /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ x("ol", {
|
|
121
|
+
className: e(c, h[i]),
|
|
122
|
+
children: f.map((e, t) => /* @__PURE__ */ S(_, { children: [t > 0 ? /* @__PURE__ */ x(A, { separator: r }) : null, /* @__PURE__ */ x("li", {
|
|
123
|
+
className: o,
|
|
124
|
+
children: e.kind === "more" ? /* @__PURE__ */ x(j, {
|
|
167
125
|
items: e.items,
|
|
168
126
|
label: d.more(e.items.length),
|
|
169
|
-
renderLink:
|
|
170
|
-
}) : e.current ? /* @__PURE__ */
|
|
171
|
-
className:
|
|
127
|
+
renderLink: a
|
|
128
|
+
}) : e.current ? /* @__PURE__ */ x("span", {
|
|
129
|
+
className: u,
|
|
172
130
|
"aria-current": "page",
|
|
173
131
|
title: e.item.label,
|
|
174
132
|
children: e.item.label
|
|
175
|
-
}) :
|
|
133
|
+
}) : O(e.item) ? /* @__PURE__ */ x(k, {
|
|
176
134
|
item: e.item,
|
|
177
|
-
renderLink:
|
|
178
|
-
}) : /* @__PURE__ */
|
|
179
|
-
className:
|
|
135
|
+
renderLink: a
|
|
136
|
+
}) : /* @__PURE__ */ x("span", {
|
|
137
|
+
className: m,
|
|
180
138
|
title: e.item.label,
|
|
181
139
|
children: e.item.label
|
|
182
140
|
})
|
|
183
|
-
})] }, e.kind === "more" ? "more" :
|
|
141
|
+
})] }, e.kind === "more" ? "more" : E(e.item)))
|
|
184
142
|
})
|
|
185
143
|
});
|
|
186
144
|
}
|
|
187
145
|
//#endregion
|
|
188
|
-
export {
|
|
146
|
+
export { M as Breadcrumb, w as breadcrumbDefaultLabels, f as breadcrumbSeparators, T as breadcrumbSlots, g as breadcrumbVariants };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from "react";
|
|
2
|
-
import { cardAddressClasses, cardBodyTextClasses, cardBodyWellClasses, cardLayoutBodyOccupantInsetXClasses, cardLayoutBodyOccupantPadYClasses, cardLayoutBodyOccupantDotGridWellClasses, cardLayoutBodyOccupantRadiusClasses, cardLayoutBodyOccupantWellClasses, cardSubtitleClasses, cardTitleClasses, type CardPadding, type CardShape, type CardVariant } from "./cardStyles";
|
|
3
|
-
export type { CardPadding, CardShape, CardVariant } from "./cardStyles";
|
|
4
|
-
export { cardPaddings, cardShapes, cardVariants } from "./cardStyles";
|
|
2
|
+
import { cardAddressClasses, cardBodyTextClasses, cardBodyWellClasses, cardLayoutBodyOccupantInsetXClasses, cardLayoutBodyOccupantPadYClasses, cardLayoutBodyOccupantDotGridWellClasses, cardLayoutBodyOccupantRadiusClasses, cardLayoutBodyOccupantWellClasses, cardSubtitleClasses, cardTitleClasses, type CardBodyVariant, type CardPadding, type CardShape, type CardTerminalHeight, type CardTerminalState, type CardVariant } from "./cardStyles";
|
|
3
|
+
export type { CardBodyVariant, CardPadding, CardShape, CardTerminalHeight, CardTerminalState, CardVariant, } from "./cardStyles";
|
|
4
|
+
export { cardBodyVariants, cardPaddings, cardShapes, cardTerminalHeights, cardTerminalStates, cardVariants, } from "./cardStyles";
|
|
5
5
|
/** Layout-only — not for surface, border, or radius overrides. */
|
|
6
6
|
export type CardLayoutClassName = string;
|
|
7
7
|
export interface CardProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -23,6 +23,27 @@ export interface CardSectionProps extends HTMLAttributes<HTMLElement> {
|
|
|
23
23
|
children?: ReactNode;
|
|
24
24
|
className?: CardLayoutClassName;
|
|
25
25
|
}
|
|
26
|
+
export interface CardBodyProps extends Omit<CardSectionProps, "title"> {
|
|
27
|
+
/**
|
|
28
|
+
* `slot` (default) is the composition well.
|
|
29
|
+
* `terminal` is a dark embed frame. It is not `bodyTerminal`, which only densifies the shell bottom.
|
|
30
|
+
*/
|
|
31
|
+
variant?: CardBodyVariant;
|
|
32
|
+
/** Embed URL. Omit while `loading` or `disconnected`. */
|
|
33
|
+
src?: string;
|
|
34
|
+
/** Inline document when there is no `src`. `src` wins when both are set. */
|
|
35
|
+
srcDoc?: string;
|
|
36
|
+
/** Accessible name of the embed. Default `Terminal`. */
|
|
37
|
+
title?: string;
|
|
38
|
+
/** `sm` 160px, `md` 256px, `lg` 384px, `fill` grows in a pinned card. Default `md`. */
|
|
39
|
+
height?: CardTerminalHeight;
|
|
40
|
+
/** Muted **Read only** badge in the frame bar. */
|
|
41
|
+
readOnly?: boolean;
|
|
42
|
+
/** `ready` shows the embed. `loading` is a **Skeleton**. `disconnected` is a status line. */
|
|
43
|
+
state?: CardTerminalState;
|
|
44
|
+
/** Status copy when `state` is `disconnected`. Default `Disconnected`. */
|
|
45
|
+
message?: string;
|
|
46
|
+
}
|
|
26
47
|
export interface CardHeaderProps extends CardSectionProps {
|
|
27
48
|
/** Start slot — title + subtitle, or any leading cluster. */
|
|
28
49
|
start?: ReactNode;
|
|
@@ -31,8 +52,8 @@ export interface CardHeaderProps extends CardSectionProps {
|
|
|
31
52
|
}
|
|
32
53
|
declare function CardRoot({ shape, variant, padding, bodyTerminal, headerless, as: Component, className, children, ...props }: CardProps): import("react").JSX.Element;
|
|
33
54
|
declare function CardHeader({ className, children, start, end, ...props }: CardHeaderProps): import("react").JSX.Element;
|
|
34
|
-
/** Inset well — composition slot
|
|
35
|
-
declare function CardBody({ className, children, ...props }:
|
|
55
|
+
/** Inset well — composition slot, or a dark embed when `variant="terminal"`. */
|
|
56
|
+
declare function CardBody({ className, children, variant, src, srcDoc, title, height, readOnly, state, message, ...props }: CardBodyProps): import("react").JSX.Element;
|
|
36
57
|
declare function CardFooter({ className, children, ...props }: CardSectionProps): import("react").JSX.Element;
|
|
37
58
|
declare function CardDivider({ className, ...props }: HTMLAttributes<HTMLHRElement>): import("react").JSX.Element;
|
|
38
59
|
/**
|
|
@@ -41,7 +62,8 @@ declare function CardDivider({ className, ...props }: HTMLAttributes<HTMLHREleme
|
|
|
41
62
|
* (2px gutter, square, transparent — occupant owns fill and chrome).
|
|
42
63
|
* Headerless Body densifies shell top to 2px; footerless / `bodyTerminal` densifies shell bottom to 2px.
|
|
43
64
|
* Pin a height on the root (`className`) with Header + Body + Footer — Header/Footer stay put;
|
|
44
|
-
* **Card.Body** scrolls.
|
|
65
|
+
* **Card.Body** scrolls. `bodyTerminal` is that density flag.
|
|
66
|
+
* **`Card.Body variant="terminal"`** is a separate dark embed frame (`data-theme="dark"` in both page themes).
|
|
45
67
|
*/
|
|
46
68
|
export declare const Card: typeof CardRoot & {
|
|
47
69
|
Header: typeof CardHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EACL,kBAAkB,EAElB,mBAAmB,EACnB,mBAAmB,EAEnB,mCAAmC,EACnC,iCAAiC,EACjC,wCAAwC,EACxC,mCAAmC,EACnC,iCAAiC,EAcjC,mBAAmB,EAQnB,gBAAgB,EAEhB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EACjB,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,eAAe,EACf,WAAW,EACX,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,GACb,MAAM,cAAc,CAAC;AAEtB,kEAAkE;AAClE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC5D,QAAQ,EAAE,SAAS,CAAC;IACpB,0GAA0G;IAC1G,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4GAA4G;IAC5G,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,iFAAiF;IACjF,OAAO,CAAC,EA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AK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,eAAe,+BAYjB;AAED,gFAAgF;AAChF,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,QAAQ,EACR,OAAgB,EAChB,GAAG,EACH,MAAM,EACN,KAAkB,EAClB,MAAa,EACb,QAAgB,EAChB,KAAe,EACf,OAAwB,EACxB,GAAG,KAAK,EACT,EAAE,aAAa,+BA6Df;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAOtE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,aAAa,CAAC,+BAE1E;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI;;;;;CAKf,CAAC;AAEH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mCAAmC,EACnC,iCAAiC,EACjC,wCAAwC,EACxC,mCAAmC,EACnC,iCAAiC,EACjC,mBAAmB,EACnB,gBAAgB,GACjB,CAAC"}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { Badge as t } from "../../atoms/Badge/Badge.js";
|
|
4
|
+
import { Skeleton as n } from "../../atoms/Skeleton/Skeleton.js";
|
|
5
|
+
import { cardAddressClasses as r, cardBaseClasses as i, cardBodyTextClasses as a, cardBodyVariants as o, cardBodyWellClasses as s, cardDividerClasses as c, cardLayoutBodyOccupantDotGridWellClasses as l, cardLayoutBodyOccupantInsetXClasses as u, cardLayoutBodyOccupantPadYClasses as d, cardLayoutBodyOccupantRadiusClasses as f, cardLayoutBodyOccupantWellClasses as p, cardLayoutHeaderEndClasses as m, cardLayoutHeaderStartClasses as h, cardLayoutShellBottomClasses as g, cardLayoutShellClasses as _, cardLayoutShellShapeClasses as v, cardLayoutShellTopClasses as y, cardLayoutVariantClasses as b, cardOverflowClasses as x, cardPaddings as S, cardRootPaddingClasses as C, cardSectionPaddingClasses as w, cardShapeClasses as T, cardShapes as E, cardSubtitleClasses as D, cardTerminalBarClasses as O, cardTerminalFrameClasses as k, cardTerminalFrameElementClasses as A, cardTerminalHeightClasses as j, cardTerminalHeights as M, cardTerminalMessageClasses as N, cardTerminalStageClasses as P, cardTerminalStates as F, cardTerminalTitleClasses as I, cardTitleClasses as L, cardVariantClasses as R, cardVariants as z } from "./cardStyles.js";
|
|
6
|
+
import { Children as B, createContext as V, isValidElement as H, useContext as U } from "react";
|
|
7
|
+
import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
|
|
6
8
|
//#region src/components/molecules/Card/Card.tsx
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
return
|
|
9
|
+
var q = V("none"), J = V(!1);
|
|
10
|
+
function Y() {
|
|
11
|
+
return U(q);
|
|
10
12
|
}
|
|
11
|
-
function
|
|
12
|
-
let d =
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
value:
|
|
15
|
-
children: /* @__PURE__ */
|
|
13
|
+
function X({ shape: t = "rounded", variant: n = "surface", padding: r = "none", bodyTerminal: a, headerless: o, as: s = "div", className: c, children: l, ...u }) {
|
|
14
|
+
let d = r === "none", f = B.toArray(l), p = f.some((e) => H(e) && e.type === Z), m = f.some((e) => H(e) && e.type === Q), h = f.some((e) => H(e) && e.type === $), S = d && f.some((e) => H(e) && e.type === Q && e.props.variant === "terminal"), w = d && m && !h, E = d && m && !p, D = a ?? w, O = o ?? E, k = S && !h;
|
|
15
|
+
return /* @__PURE__ */ G(q.Provider, {
|
|
16
|
+
value: r,
|
|
17
|
+
children: /* @__PURE__ */ G(J.Provider, {
|
|
16
18
|
value: D,
|
|
17
|
-
children: /* @__PURE__ */
|
|
18
|
-
className: e(
|
|
19
|
+
children: /* @__PURE__ */ G(s, {
|
|
20
|
+
className: e(i, d ? e(_, y(!O), g(D, k), v[t], b[n]) : e(x, T[t], R[n], C[r]), c),
|
|
19
21
|
"data-shape": t,
|
|
20
|
-
"data-variant":
|
|
21
|
-
"data-padding":
|
|
22
|
+
"data-variant": n,
|
|
23
|
+
"data-padding": r,
|
|
22
24
|
"data-layout": d ? "shell" : void 0,
|
|
23
25
|
...u,
|
|
24
26
|
children: l
|
|
@@ -26,47 +28,86 @@ function L({ shape: t = "rounded", variant: r = "surface", padding: i = "none",
|
|
|
26
28
|
})
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
|
-
function
|
|
30
|
-
let o =
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
className: e(
|
|
31
|
+
function Z({ className: t, children: n, start: r, end: i, ...a }) {
|
|
32
|
+
let o = Y(), s = r ?? n;
|
|
33
|
+
return /* @__PURE__ */ K("header", {
|
|
34
|
+
className: e(w[o].header, t),
|
|
33
35
|
...a,
|
|
34
|
-
children: [s == null ? null : /* @__PURE__ */
|
|
35
|
-
className:
|
|
36
|
+
children: [s == null ? null : /* @__PURE__ */ G("div", {
|
|
37
|
+
className: h,
|
|
36
38
|
children: s
|
|
37
|
-
}), i == null ? null : /* @__PURE__ */
|
|
38
|
-
className:
|
|
39
|
+
}), i == null ? null : /* @__PURE__ */ G("div", {
|
|
40
|
+
className: m,
|
|
39
41
|
children: i
|
|
40
42
|
})]
|
|
41
43
|
});
|
|
42
44
|
}
|
|
43
|
-
function
|
|
44
|
-
let
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
className: e(
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
function Q({ className: r, children: i, variant: a = "slot", src: o, srcDoc: s, title: c = "Terminal", height: l = "md", readOnly: u = !1, state: d = "ready", message: f = "Disconnected", ...p }) {
|
|
46
|
+
let m = Y(), h = U(J), g = m === "none", _ = a === "terminal", v = d === "ready" && (o != null || s != null);
|
|
47
|
+
return /* @__PURE__ */ G("div", {
|
|
48
|
+
className: e(_ ? k : w[m].body, _ && j[l], !_ && g && h && "flex-1 [&>*]:min-h-0 [&>*]:flex-1", !_ && g && !h && "min-h-0 flex-1 overflow-y-auto", r),
|
|
49
|
+
"data-variant": _ ? "terminal" : void 0,
|
|
50
|
+
"data-theme": _ ? "dark" : void 0,
|
|
51
|
+
"data-state": _ ? d : void 0,
|
|
52
|
+
"data-height": _ ? l : void 0,
|
|
53
|
+
...p,
|
|
54
|
+
children: _ ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ K("div", {
|
|
55
|
+
className: O,
|
|
56
|
+
children: [/* @__PURE__ */ G("span", {
|
|
57
|
+
className: I,
|
|
58
|
+
children: c
|
|
59
|
+
}), u ? /* @__PURE__ */ G(t, {
|
|
60
|
+
size: "sm",
|
|
61
|
+
emphasis: "muted",
|
|
62
|
+
children: "Read only"
|
|
63
|
+
}) : null]
|
|
64
|
+
}), /* @__PURE__ */ K("div", {
|
|
65
|
+
className: P,
|
|
66
|
+
"aria-busy": d === "loading" || void 0,
|
|
67
|
+
children: [
|
|
68
|
+
d === "loading" ? /* @__PURE__ */ G(n, {
|
|
69
|
+
width: "100%",
|
|
70
|
+
height: "100%",
|
|
71
|
+
radius: "inner"
|
|
72
|
+
}) : null,
|
|
73
|
+
d === "disconnected" ? /* @__PURE__ */ G("p", {
|
|
74
|
+
className: N,
|
|
75
|
+
role: "status",
|
|
76
|
+
children: f
|
|
77
|
+
}) : null,
|
|
78
|
+
d === "ready" && !v ? /* @__PURE__ */ G("p", {
|
|
79
|
+
className: N,
|
|
80
|
+
role: "status",
|
|
81
|
+
children: "No session"
|
|
82
|
+
}) : null,
|
|
83
|
+
v ? /* @__PURE__ */ G("iframe", {
|
|
84
|
+
className: A,
|
|
85
|
+
title: c,
|
|
86
|
+
...o == null ? { srcDoc: s } : { src: o }
|
|
87
|
+
}) : null
|
|
88
|
+
]
|
|
89
|
+
})] }) : i
|
|
49
90
|
});
|
|
50
91
|
}
|
|
51
|
-
function
|
|
52
|
-
let i =
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
className: e(
|
|
92
|
+
function $({ className: t, children: n, ...r }) {
|
|
93
|
+
let i = Y();
|
|
94
|
+
return /* @__PURE__ */ G("footer", {
|
|
95
|
+
className: e(w[i].footer, t),
|
|
55
96
|
...r,
|
|
56
97
|
children: n
|
|
57
98
|
});
|
|
58
99
|
}
|
|
59
|
-
function
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
className: e(
|
|
100
|
+
function ee({ className: t, ...n }) {
|
|
101
|
+
return /* @__PURE__ */ G("hr", {
|
|
102
|
+
className: e(c, t),
|
|
62
103
|
...n
|
|
63
104
|
});
|
|
64
105
|
}
|
|
65
|
-
var
|
|
66
|
-
Header:
|
|
67
|
-
Body:
|
|
68
|
-
Footer:
|
|
69
|
-
Divider:
|
|
106
|
+
var te = Object.assign(X, {
|
|
107
|
+
Header: Z,
|
|
108
|
+
Body: Q,
|
|
109
|
+
Footer: $,
|
|
110
|
+
Divider: ee
|
|
70
111
|
});
|
|
71
112
|
//#endregion
|
|
72
|
-
export {
|
|
113
|
+
export { te as Card, r as cardAddressClasses, a as cardBodyTextClasses, o as cardBodyVariants, s as cardBodyWellClasses, l as cardLayoutBodyOccupantDotGridWellClasses, u as cardLayoutBodyOccupantInsetXClasses, d as cardLayoutBodyOccupantPadYClasses, f as cardLayoutBodyOccupantRadiusClasses, p as cardLayoutBodyOccupantWellClasses, S as cardPaddings, E as cardShapes, D as cardSubtitleClasses, M as cardTerminalHeights, F as cardTerminalStates, L as cardTitleClasses, z as cardVariants };
|
|
@@ -20,7 +20,7 @@ export declare const cardRootPaddingClasses: Record<CardPadding, string>;
|
|
|
20
20
|
export declare const cardLayoutShellClasses = "min-h-0 gap-3 overflow-hidden";
|
|
21
21
|
/** Layout shell top pad — 16px beside Header; 2px when Header is omitted. */
|
|
22
22
|
export declare function cardLayoutShellTopClasses(hasHeader?: boolean): string;
|
|
23
|
-
export declare function cardLayoutShellBottomClasses(bodyTerminal?: boolean): string;
|
|
23
|
+
export declare function cardLayoutShellBottomClasses(bodyTerminal?: boolean, flush?: boolean): string;
|
|
24
24
|
/** Horizontal inset for header/footer on the layout shell (16px). */
|
|
25
25
|
export declare const cardLayoutSectionInsetXClasses = "px-4";
|
|
26
26
|
/** Body gutter — 2px from the card shell edge; slot is full width inside. */
|
|
@@ -79,4 +79,19 @@ export declare const cardBodyTextClasses: string;
|
|
|
79
79
|
/** Street + city/state/ZIP — one block; same tight stack as header title + subtitle. */
|
|
80
80
|
export declare const cardAddressClasses: string;
|
|
81
81
|
export declare const cardDividerClasses = "m-0 border-0 border-t border-border";
|
|
82
|
+
/** `slot` is the composition well. `terminal` is a dark embed frame — not the `bodyTerminal` density flag. */
|
|
83
|
+
export declare const cardBodyVariants: readonly ["slot", "terminal"];
|
|
84
|
+
export type CardBodyVariant = (typeof cardBodyVariants)[number];
|
|
85
|
+
export declare const cardTerminalHeights: readonly ["sm", "md", "lg", "fill"];
|
|
86
|
+
export type CardTerminalHeight = (typeof cardTerminalHeights)[number];
|
|
87
|
+
export declare const cardTerminalStates: readonly ["ready", "loading", "disconnected"];
|
|
88
|
+
export type CardTerminalState = (typeof cardTerminalStates)[number];
|
|
89
|
+
/** Dark in both page themes — `data-theme="dark"` on the frame swaps the existing tokens. */
|
|
90
|
+
export declare const cardTerminalFrameClasses = "flex min-h-0 w-full flex-col overflow-hidden bg-surface text-fg";
|
|
91
|
+
export declare const cardTerminalHeightClasses: Record<CardTerminalHeight, string>;
|
|
92
|
+
export declare const cardTerminalBarClasses = "flex h-9 shrink-0 items-center gap-2 border-b border-border px-3";
|
|
93
|
+
export declare const cardTerminalTitleClasses: string;
|
|
94
|
+
export declare const cardTerminalStageClasses = "flex min-h-0 flex-1 flex-col";
|
|
95
|
+
export declare const cardTerminalFrameElementClasses = "min-h-0 w-full flex-1 border-0 bg-surface";
|
|
96
|
+
export declare const cardTerminalMessageClasses: string;
|
|
82
97
|
//# sourceMappingURL=cardStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cardStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Card/cardStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,+BAAgC,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,eAAO,MAAM,YAAY,2CAA4C,CAAC;AAEtE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,eAAO,MAAM,YAAY,+BAAgC,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,yEAAyE;AACzE,eAAO,MAAM,eAAe,2CAA2C,CAAC;AAExE,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAGtD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAI1D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIhE,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAI9D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,6EAA6E;AAC7E,wBAAgB,yBAAyB,CAAC,SAAS,UAAO,GAAG,MAAM,CAElE;AAED,wBAAgB,4BAA4B,CAAC,YAAY,UAAQ,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"cardStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Card/cardStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,+BAAgC,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MA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