@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
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { buttonStatusHoldMs as t } from "../../atoms/Button/buttonStatusStyles.js";
|
|
4
|
+
import { Button as n } from "../../atoms/Button/Button.js";
|
|
5
|
+
import { Skeleton as r } from "../../atoms/Skeleton/Skeleton.js";
|
|
6
|
+
import { logViewActionsClasses as i, logViewCountClasses as a, logViewEmptyClasses as o, logViewLineClasses as s, logViewNumberClasses as c, logViewRootClasses as l, logViewScrollerClasses as u, logViewTextClasses as d, logViewToolbarClasses as f } from "./logViewStyles.js";
|
|
7
|
+
import { useLayoutEffect as p, useRef as m, useState as h } from "react";
|
|
8
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/molecules/LogView/LogView.tsx
|
|
10
|
+
var v = {
|
|
11
|
+
copy: "Copy",
|
|
12
|
+
copied: "Copied",
|
|
13
|
+
follow: "Follow",
|
|
14
|
+
following: "Following",
|
|
15
|
+
empty: "No log lines"
|
|
16
|
+
};
|
|
17
|
+
function y(e) {
|
|
18
|
+
return e === 1 ? "1 line" : `${e} lines`;
|
|
19
|
+
}
|
|
20
|
+
function b({ lines: b, label: x, follow: S = !1, onFollowChange: C, loading: w = !1, empty: T, labels: E, className: D }) {
|
|
21
|
+
let O = {
|
|
22
|
+
...v,
|
|
23
|
+
...E
|
|
24
|
+
}, k = m(null), [A, j] = h(!1), M = b.length, N = !w && M > 0;
|
|
25
|
+
p(() => {
|
|
26
|
+
if (!S || !N) return;
|
|
27
|
+
let e = k.current;
|
|
28
|
+
e != null && (e.scrollTop = e.scrollHeight);
|
|
29
|
+
}, [
|
|
30
|
+
S,
|
|
31
|
+
b,
|
|
32
|
+
N
|
|
33
|
+
]), p(() => {
|
|
34
|
+
if (!A) return;
|
|
35
|
+
let e = window.setTimeout(() => j(!1), t);
|
|
36
|
+
return () => window.clearTimeout(e);
|
|
37
|
+
}, [A]);
|
|
38
|
+
async function P() {
|
|
39
|
+
let e = b.join("\n");
|
|
40
|
+
try {
|
|
41
|
+
await navigator.clipboard.writeText(e), j(!0);
|
|
42
|
+
} catch {
|
|
43
|
+
j(!1);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return /* @__PURE__ */ _("div", {
|
|
47
|
+
className: e(l, D),
|
|
48
|
+
"data-follow": S ? "" : void 0,
|
|
49
|
+
children: [/* @__PURE__ */ _("div", {
|
|
50
|
+
className: f,
|
|
51
|
+
children: [w ? null : /* @__PURE__ */ g("span", {
|
|
52
|
+
className: a,
|
|
53
|
+
children: y(M)
|
|
54
|
+
}), /* @__PURE__ */ _("div", {
|
|
55
|
+
className: i,
|
|
56
|
+
children: [/* @__PURE__ */ g(n, {
|
|
57
|
+
role: "secondary",
|
|
58
|
+
size: "xs",
|
|
59
|
+
type: "button",
|
|
60
|
+
disabled: w || M === 0,
|
|
61
|
+
onClick: () => {
|
|
62
|
+
P();
|
|
63
|
+
},
|
|
64
|
+
children: A ? O.copied : O.copy
|
|
65
|
+
}), /* @__PURE__ */ g(n, {
|
|
66
|
+
role: "ghost",
|
|
67
|
+
size: "xs",
|
|
68
|
+
type: "button",
|
|
69
|
+
"aria-pressed": S,
|
|
70
|
+
disabled: w,
|
|
71
|
+
onClick: () => C?.(!S),
|
|
72
|
+
children: S ? O.following : O.follow
|
|
73
|
+
})]
|
|
74
|
+
})]
|
|
75
|
+
}), /* @__PURE__ */ _("div", {
|
|
76
|
+
ref: k,
|
|
77
|
+
className: u,
|
|
78
|
+
role: "log",
|
|
79
|
+
"aria-label": x,
|
|
80
|
+
"aria-busy": w || void 0,
|
|
81
|
+
children: [
|
|
82
|
+
w ? /* @__PURE__ */ g(r, {
|
|
83
|
+
className: "m-3",
|
|
84
|
+
width: "100%",
|
|
85
|
+
height: 96,
|
|
86
|
+
radius: "inner"
|
|
87
|
+
}) : null,
|
|
88
|
+
!w && M === 0 ? /* @__PURE__ */ g("p", {
|
|
89
|
+
className: o,
|
|
90
|
+
role: "status",
|
|
91
|
+
children: T ?? O.empty
|
|
92
|
+
}) : null,
|
|
93
|
+
N ? b.map((e, t) => /* @__PURE__ */ _("div", {
|
|
94
|
+
className: s,
|
|
95
|
+
children: [/* @__PURE__ */ g("span", {
|
|
96
|
+
className: c,
|
|
97
|
+
"aria-hidden": "true",
|
|
98
|
+
children: t + 1
|
|
99
|
+
}), /* @__PURE__ */ g("span", {
|
|
100
|
+
className: d,
|
|
101
|
+
children: e
|
|
102
|
+
})]
|
|
103
|
+
}, `${t}-${e}`)) : null
|
|
104
|
+
]
|
|
105
|
+
})]
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { b as LogView };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const logViewRootClasses = "flex min-h-0 flex-col overflow-hidden rounded-[var(--radius-surface-md)] border border-border bg-surface";
|
|
2
|
+
export declare const logViewToolbarClasses = "flex h-9 shrink-0 items-center gap-2 border-b border-border px-3";
|
|
3
|
+
export declare const logViewCountClasses: string;
|
|
4
|
+
export declare const logViewActionsClasses = "ml-auto flex items-center gap-2";
|
|
5
|
+
export declare const logViewScrollerClasses = "min-h-40 flex-1 overflow-auto scroll-fade-y";
|
|
6
|
+
export declare const logViewLineClasses = "flex gap-3 px-3";
|
|
7
|
+
export declare const logViewNumberClasses = "type-code w-8 shrink-0 text-end text-muted tabular-nums";
|
|
8
|
+
export declare const logViewTextClasses = "type-code min-w-0 flex-1 whitespace-pre-wrap break-all";
|
|
9
|
+
export declare const logViewEmptyClasses: string;
|
|
10
|
+
export declare const logViewSkeletonClasses = "m-3";
|
|
11
|
+
//# sourceMappingURL=logViewStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logViewStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/LogView/logViewStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,6GAC6E,CAAC;AAE7G,eAAO,MAAM,qBAAqB,qEACkC,CAAC;AAErE,eAAO,MAAM,mBAAmB,QAA0D,CAAC;AAE3F,eAAO,MAAM,qBAAqB,oCAAoC,CAAC;AAEvE,eAAO,MAAM,sBAAsB,gDAAgD,CAAC;AAEpF,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,eAAO,MAAM,oBAAoB,4DAC0B,CAAC;AAE5D,eAAO,MAAM,kBAAkB,2DAA2D,CAAC;AAE3F,eAAO,MAAM,mBAAmB,QAAuD,CAAC;AAExF,eAAO,MAAM,sBAAsB,QAAQ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { typographyClass as e } from "../../../lib/typography.js";
|
|
3
|
+
//#region src/components/molecules/LogView/logViewStyles.ts
|
|
4
|
+
var t = "flex min-h-0 flex-col overflow-hidden rounded-[var(--radius-surface-md)] border border-border bg-surface", n = "flex h-9 shrink-0 items-center gap-2 border-b border-border px-3", r = `${e("caption")} tabular-nums text-muted`, i = "ml-auto flex items-center gap-2", a = "min-h-40 flex-1 overflow-auto scroll-fade-y", o = "flex gap-3 px-3", s = "type-code w-8 shrink-0 text-end text-muted tabular-nums", c = "type-code min-w-0 flex-1 whitespace-pre-wrap break-all", l = `${e("caption")} px-3 py-4 text-muted`;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { i as logViewActionsClasses, r as logViewCountClasses, l as logViewEmptyClasses, o as logViewLineClasses, s as logViewNumberClasses, t as logViewRootClasses, a as logViewScrollerClasses, c as logViewTextClasses, n as logViewToolbarClasses };
|
|
@@ -10,11 +10,22 @@ export interface NavListItemDef {
|
|
|
10
10
|
label: string;
|
|
11
11
|
icon?: NavListIcon;
|
|
12
12
|
count?: number;
|
|
13
|
+
/** Plain URL. The row is an anchor, so a server-rendered app does not need `onSelect` to navigate. */
|
|
14
|
+
href?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Router link in place of `href` — `render={<Link href="/tasks/ikea" />}`.
|
|
17
|
+
* Pass `href` or `render`, not both.
|
|
18
|
+
*/
|
|
19
|
+
render?: ReactElement;
|
|
20
|
+
/** Trailing mark — a **Status** dot or a **Badge** `status` pill. Not a second label. */
|
|
21
|
+
trailing?: ReactNode;
|
|
13
22
|
}
|
|
14
23
|
export interface NavListSectionDef {
|
|
15
24
|
label?: string;
|
|
16
25
|
/** `brand` aligns the first section overline to an adjacent 56px header band. */
|
|
17
26
|
labelAlign?: NavListLabelAlignment;
|
|
27
|
+
/** Section control — filter or more. Pass **IconButton**. */
|
|
28
|
+
action?: ReactNode;
|
|
18
29
|
items: NavListItemDef[];
|
|
19
30
|
}
|
|
20
31
|
export interface NavListProps {
|
|
@@ -29,6 +40,8 @@ export interface NavListProps {
|
|
|
29
40
|
export interface NavListSectionProps {
|
|
30
41
|
label?: string;
|
|
31
42
|
labelAlign?: NavListLabelAlignment;
|
|
43
|
+
/** Section control — filter or more. Pass **IconButton**. */
|
|
44
|
+
action?: ReactNode;
|
|
32
45
|
children: ReactNode;
|
|
33
46
|
className?: NavListLayoutClassName;
|
|
34
47
|
}
|
|
@@ -37,16 +50,22 @@ export interface NavListItemProps {
|
|
|
37
50
|
label: string;
|
|
38
51
|
icon?: NavListIcon;
|
|
39
52
|
count?: number;
|
|
53
|
+
/** Plain URL. The row is an anchor. */
|
|
54
|
+
href?: string;
|
|
55
|
+
/** Router link in place of `href`. Pass one, not both. */
|
|
56
|
+
render?: ReactElement;
|
|
57
|
+
/** Trailing mark — a **Status** dot or a **Badge** `status` pill. */
|
|
58
|
+
trailing?: ReactNode;
|
|
40
59
|
selected?: boolean;
|
|
41
60
|
onSelect?: (id: string) => void;
|
|
42
61
|
className?: NavListLayoutClassName;
|
|
43
62
|
}
|
|
44
|
-
declare function NavListSectionRoot({ label, labelAlign, children, className, }: NavListSectionProps): import("react").JSX.Element;
|
|
45
|
-
declare function NavListItemRoot({ id, label, icon, count, selected: selectedProp, onSelect, className, }: NavListItemProps): import("react").JSX.Element;
|
|
63
|
+
declare function NavListSectionRoot({ label, labelAlign, action, children, className, }: NavListSectionProps): import("react").JSX.Element;
|
|
64
|
+
declare function NavListItemRoot({ id, label, icon, count, href, render, trailing, selected: selectedProp, onSelect, className, }: NavListItemProps): import("react").JSX.Element;
|
|
46
65
|
declare function NavListRoot({ sections, activeId, onSelect, children, "aria-label": ariaLabel, className, }: NavListProps): import("react").JSX.Element;
|
|
47
66
|
/**
|
|
48
|
-
* Sectioned secondary navigation — inset pills with optional icons and
|
|
49
|
-
* Compose **NavList.Item**
|
|
67
|
+
* Sectioned secondary navigation — inset pills with optional icons, counts, and trailing marks.
|
|
68
|
+
* `href` or `render` makes a row a link. Compose **NavList.Item** or pass a `sections` array.
|
|
50
69
|
*/
|
|
51
70
|
export declare const NavList: typeof NavListRoot & {
|
|
52
71
|
Section: typeof NavListSectionRoot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/NavList/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/NavList/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,QAAQ,EACd,MAAM,OAAO,CAAC;AAIf,OAAO,EAaL,KAAK,qBAAqB,EAC3B,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,6DAA6D;AAC7D,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAEhE,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sGAAsG;IACtG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,yFAAyF;IACzF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACpC;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACpC;AAkDD,iBAAS,kBAAkB,CAAC,EAC1B,KAAK,EACL,UAAsB,EACtB,MAAM,EACN,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,+BASrB;AAWD,iBAAS,eAAe,CAAC,EACvB,EAAE,EACF,KAAK,EACL,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EAAE,YAAY,EACtB,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,+BA4BlB;AAED,iBAAS,WAAW,CAAC,EACnB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,SAAqB,EACnC,SAAS,GACV,EAAE,YAAY,+BA+Bd;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO;;;CAGlB,CAAC"}
|
|
@@ -2,102 +2,115 @@
|
|
|
2
2
|
import { cn as e } from "../../../lib/cn.js";
|
|
3
3
|
import { ButtonIcon as t } from "../../atoms/Button/ButtonIcon.js";
|
|
4
4
|
import { Button as n } from "../../atoms/Button/Button.js";
|
|
5
|
-
import { navListItemCountClasses as r, navListItemIconClasses as i, navListItemLabelClasses as a,
|
|
6
|
-
import { cloneElement as
|
|
7
|
-
import { jsx as
|
|
5
|
+
import { navListItemCountClasses as r, navListItemIconClasses as i, navListItemLabelClasses as a, navListItemTrailClasses as o, navListItemWrapClasses as s, navListLabelAlignments as c, navListSectionBrandBandClasses as l, navListSectionClasses as u, navListSectionLabelBrandClasses as d, navListSectionLabelClasses as f, navListSectionLabelDefaultClasses as p, navListSectionLabelRowClasses as m, navListShellClasses as h } from "./navListStyles.js";
|
|
6
|
+
import { cloneElement as g, createContext as _, createElement as v, isValidElement as y, useContext as b } from "react";
|
|
7
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/molecules/NavList/NavList.tsx
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
let a =
|
|
9
|
+
var C = _({});
|
|
10
|
+
function w({ icon: n, selected: r }) {
|
|
11
|
+
let a = y(n) ? g(n, {
|
|
12
12
|
strokeWidth: r ? 2.25 : 1.75,
|
|
13
13
|
...r ? {
|
|
14
14
|
fill: "currentColor",
|
|
15
15
|
fillOpacity: .12
|
|
16
16
|
} : { fill: "none" }
|
|
17
17
|
}) : n;
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ x("span", {
|
|
19
19
|
className: e("inline-flex shrink-0", i(r)),
|
|
20
|
-
children: /* @__PURE__ */
|
|
20
|
+
children: /* @__PURE__ */ x(t, {
|
|
21
21
|
size: "sm",
|
|
22
22
|
children: a
|
|
23
23
|
})
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
28
|
-
className:
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
-
className:
|
|
31
|
-
children:
|
|
32
|
-
})
|
|
33
|
-
}) : /* @__PURE__ */
|
|
34
|
-
className:
|
|
35
|
-
children:
|
|
26
|
+
function T({ label: t, labelAlign: n = "section", action: r }) {
|
|
27
|
+
return n === "brand" ? /* @__PURE__ */ S("div", {
|
|
28
|
+
className: e(l, r != null && "justify-between gap-2"),
|
|
29
|
+
children: [/* @__PURE__ */ x("p", {
|
|
30
|
+
className: d,
|
|
31
|
+
children: t
|
|
32
|
+
}), r]
|
|
33
|
+
}) : /* @__PURE__ */ S("div", {
|
|
34
|
+
className: e(p, m),
|
|
35
|
+
children: [/* @__PURE__ */ x("p", {
|
|
36
|
+
className: f,
|
|
37
|
+
children: t
|
|
38
|
+
}), r]
|
|
36
39
|
});
|
|
37
40
|
}
|
|
38
|
-
function
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
-
className: e(
|
|
41
|
-
children: [t == null ? null : /* @__PURE__ */
|
|
41
|
+
function E({ label: t, labelAlign: n = "section", action: r, children: i, className: a }) {
|
|
42
|
+
return /* @__PURE__ */ S("div", {
|
|
43
|
+
className: e(u, a),
|
|
44
|
+
children: [t == null ? null : /* @__PURE__ */ x(T, {
|
|
42
45
|
label: t,
|
|
43
|
-
labelAlign: n
|
|
44
|
-
|
|
46
|
+
labelAlign: n,
|
|
47
|
+
action: r
|
|
48
|
+
}), i]
|
|
45
49
|
});
|
|
46
50
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
function D(e, t) {
|
|
52
|
+
if (t != null && e != null && console.warn("[WMDS NavList] Pass `href` or `render` on an item, not both. `render` is used."), t != null) return t;
|
|
53
|
+
if (e != null) return v("a", { href: e });
|
|
54
|
+
}
|
|
55
|
+
function O({ id: t, label: i, icon: c, count: l, href: u, render: d, trailing: f, selected: p, onSelect: m, className: h }) {
|
|
56
|
+
let g = b(C), _ = p ?? g.activeId === t, v = m ?? g.onSelect, y = D(u, d);
|
|
57
|
+
return /* @__PURE__ */ x("div", {
|
|
58
|
+
className: e(s, h),
|
|
59
|
+
children: /* @__PURE__ */ S(n, {
|
|
52
60
|
layout: "nav",
|
|
53
61
|
type: "button",
|
|
54
|
-
selected:
|
|
55
|
-
|
|
62
|
+
selected: _,
|
|
63
|
+
render: y,
|
|
64
|
+
onClick: v == null ? void 0 : () => v(t),
|
|
56
65
|
children: [
|
|
57
|
-
|
|
58
|
-
icon:
|
|
59
|
-
selected:
|
|
66
|
+
c == null ? null : /* @__PURE__ */ x(w, {
|
|
67
|
+
icon: c,
|
|
68
|
+
selected: _
|
|
60
69
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ x("span", {
|
|
62
71
|
className: a,
|
|
63
72
|
children: i
|
|
64
73
|
}),
|
|
65
|
-
|
|
66
|
-
className:
|
|
67
|
-
children:
|
|
68
|
-
|
|
74
|
+
l != null || f != null ? /* @__PURE__ */ S("span", {
|
|
75
|
+
className: o,
|
|
76
|
+
children: [l == null ? null : /* @__PURE__ */ x("span", {
|
|
77
|
+
className: r,
|
|
78
|
+
children: l.toLocaleString()
|
|
79
|
+
}), f]
|
|
80
|
+
}) : null
|
|
69
81
|
]
|
|
70
82
|
})
|
|
71
83
|
});
|
|
72
84
|
}
|
|
73
|
-
function
|
|
85
|
+
function k({ sections: t, activeId: n, onSelect: r, children: i, "aria-label": a = "Section", className: o }) {
|
|
74
86
|
let s = {
|
|
75
87
|
activeId: n,
|
|
76
88
|
onSelect: r
|
|
77
89
|
};
|
|
78
|
-
return t == null ? /* @__PURE__ */
|
|
90
|
+
return t == null ? /* @__PURE__ */ x("nav", {
|
|
79
91
|
"aria-label": a,
|
|
80
|
-
className: e(
|
|
81
|
-
children: /* @__PURE__ */
|
|
92
|
+
className: e(h, o),
|
|
93
|
+
children: /* @__PURE__ */ x(C.Provider, {
|
|
82
94
|
value: s,
|
|
83
95
|
children: i
|
|
84
96
|
})
|
|
85
|
-
}) : /* @__PURE__ */
|
|
97
|
+
}) : /* @__PURE__ */ x("nav", {
|
|
86
98
|
"aria-label": a,
|
|
87
|
-
className: e(
|
|
88
|
-
children: /* @__PURE__ */
|
|
99
|
+
className: e(h, o),
|
|
100
|
+
children: /* @__PURE__ */ x(C.Provider, {
|
|
89
101
|
value: s,
|
|
90
|
-
children: t.map((e, t) => /* @__PURE__ */
|
|
102
|
+
children: t.map((e, t) => /* @__PURE__ */ x(E, {
|
|
91
103
|
label: e.label,
|
|
104
|
+
action: e.action,
|
|
92
105
|
labelAlign: e.labelAlign ?? (t === 0 && e.label != null ? "brand" : "section"),
|
|
93
|
-
children: e.items.map((e) => /* @__PURE__ */
|
|
106
|
+
children: e.items.map((e) => /* @__PURE__ */ x(O, { ...e }, e.id))
|
|
94
107
|
}, e.label ?? t))
|
|
95
108
|
})
|
|
96
109
|
});
|
|
97
110
|
}
|
|
98
|
-
var
|
|
99
|
-
Section:
|
|
100
|
-
Item:
|
|
111
|
+
var A = Object.assign(k, {
|
|
112
|
+
Section: E,
|
|
113
|
+
Item: O
|
|
101
114
|
});
|
|
102
115
|
//#endregion
|
|
103
|
-
export {
|
|
116
|
+
export { A as NavList, c as navListLabelAlignments };
|
|
@@ -10,6 +10,8 @@ export declare const navListSectionLabelBrandClasses: string;
|
|
|
10
10
|
export declare const navListSectionLabelDefaultClasses: string;
|
|
11
11
|
export declare const navListItemWrapClasses = "relative w-full px-2";
|
|
12
12
|
export declare const navListItemLabelClasses = "min-w-0 flex-1 truncate text-left";
|
|
13
|
+
export declare const navListItemTrailClasses = "ml-auto flex shrink-0 items-center gap-2";
|
|
13
14
|
export declare const navListItemCountClasses: string;
|
|
15
|
+
export declare const navListSectionLabelRowClasses = "flex items-center justify-between gap-2";
|
|
14
16
|
export declare function navListItemIconClasses(selected: boolean): "text-muted" | "text-fg";
|
|
15
17
|
//# sourceMappingURL=navListStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navListStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/NavList/navListStyles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,+BAAgC,CAAC;AAEpE,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,oFAAoF;AACpF,eAAO,MAAM,mBAAmB,sCAAsC,CAAC;AAEvE,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAE3D,kFAAkF;AAClF,eAAO,MAAM,8BAA8B,QAG1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAgD,CAAC;AAExF,eAAO,MAAM,+BAA+B,QAA6B,CAAC;AAE1E,eAAO,MAAM,iCAAiC,QAG7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAE3E,eAAO,MAAM,uBAAuB,QAInC,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,4BAEvD"}
|
|
1
|
+
{"version":3,"file":"navListStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/NavList/navListStyles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,+BAAgC,CAAC;AAEpE,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,oFAAoF;AACpF,eAAO,MAAM,mBAAmB,sCAAsC,CAAC;AAEvE,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAE3D,kFAAkF;AAClF,eAAO,MAAM,8BAA8B,QAG1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAgD,CAAC;AAExF,eAAO,MAAM,+BAA+B,QAA6B,CAAC;AAE1E,eAAO,MAAM,iCAAiC,QAG7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAE3E,eAAO,MAAM,uBAAuB,6CAA6C,CAAC;AAElF,eAAO,MAAM,uBAAuB,QAInC,CAAC;AAEF,eAAO,MAAM,6BAA6B,4CAA4C,CAAC;AAEvF,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,4BAEvD"}
|
|
@@ -3,9 +3,9 @@ import { cn as e } from "../../../lib/cn.js";
|
|
|
3
3
|
import { typographyClass as t } from "../../../lib/typography.js";
|
|
4
4
|
import { pageHeaderAppBandHeightClasses as n } from "../PageHeader/pageHeaderStyles.js";
|
|
5
5
|
//#region src/components/molecules/NavList/navListStyles.ts
|
|
6
|
-
var r = ["brand", "section"], i = "flex h-full min-h-0 w-52 flex-col", a = "flex flex-col gap-1", o = e("box-border flex shrink-0 items-center px-4", n), s = e(t("overline"), "text-muted"), c = s, l = e(s, "px-4 pb-1 pt-3"), u = "relative w-full px-2", d = "min-w-0 flex-1 truncate text-left", f =
|
|
7
|
-
function
|
|
6
|
+
var r = ["brand", "section"], i = "flex h-full min-h-0 w-52 flex-col", a = "flex flex-col gap-1", o = e("box-border flex shrink-0 items-center px-4", n), s = e(t("overline"), "text-muted"), c = s, l = e(s, "px-4 pb-1 pt-3"), u = "relative w-full px-2", d = "min-w-0 flex-1 truncate text-left", f = "ml-auto flex shrink-0 items-center gap-2", p = e("tabular-nums", t("caption"), "text-muted"), m = "flex items-center justify-between gap-2";
|
|
7
|
+
function h(e) {
|
|
8
8
|
return e ? "text-fg" : "text-muted";
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { p as navListItemCountClasses, h as navListItemIconClasses, d as navListItemLabelClasses, f as navListItemTrailClasses, u as navListItemWrapClasses, r as navListLabelAlignments, o as navListSectionBrandBandClasses, a as navListSectionClasses, c as navListSectionLabelBrandClasses, s as navListSectionLabelClasses, l as navListSectionLabelDefaultClasses, m as navListSectionLabelRowClasses, i as navListShellClasses };
|
|
@@ -9,10 +9,10 @@ var l = {
|
|
|
9
9
|
toolbar: "span"
|
|
10
10
|
};
|
|
11
11
|
function u({ title: t, variant: o = "page", start: u, end: d, "aria-label": f, className: p }) {
|
|
12
|
-
let m = l[o], h = t != null && t.length > 0
|
|
12
|
+
let m = l[o], h = t != null && t.length > 0;
|
|
13
13
|
return o === "toolbar" ? /* @__PURE__ */ c("div", {
|
|
14
14
|
role: "toolbar",
|
|
15
|
-
"aria-label":
|
|
15
|
+
"aria-label": h ? void 0 : f,
|
|
16
16
|
className: e(r.toolbar, p),
|
|
17
17
|
children: [u != null || h ? /* @__PURE__ */ c("div", {
|
|
18
18
|
className: i,
|
|
@@ -25,7 +25,7 @@ function u({ title: t, variant: o = "page", start: u, end: d, "aria-label": f, c
|
|
|
25
25
|
children: d
|
|
26
26
|
})]
|
|
27
27
|
}) : /* @__PURE__ */ c("header", {
|
|
28
|
-
"aria-label":
|
|
28
|
+
"aria-label": f,
|
|
29
29
|
className: e(r[o], p),
|
|
30
30
|
children: [/* @__PURE__ */ c("div", {
|
|
31
31
|
className: i,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { cn as e } from "../../../lib/cn.js";
|
|
3
3
|
import { badgeBaseClasses as t, badgeMutedClasses as n, badgeSolidClasses as r } from "../../atoms/Badge/badgeStyles.js";
|
|
4
4
|
//#region src/components/molecules/PillGroup/pillGroupStyles.ts
|
|
5
|
-
var i = "flex flex-wrap gap-2", a = e(t, "min-h-11 cursor-pointer rounded-
|
|
5
|
+
var i = "flex flex-wrap gap-2", a = e(t, "min-h-11 cursor-pointer rounded-[var(--radius-control)] px-4", "peer-focus-visible:ring-2 peer-focus-visible:ring-focus-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-body"), o = e(a, r.neutral), s = e(a, n.neutral), c = e(a, "border border-transparent bg-brand text-on-brand");
|
|
6
6
|
//#endregion
|
|
7
7
|
export { i as pillGroupClasses, o as pillGroupIdleClasses, s as pillGroupMutedClasses, c as pillGroupSelectedClasses, a as pillGroupShapeClasses };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { focusRingTransitionClasses as e } from "../../../lib/motion.js";
|
|
3
3
|
//#region src/components/molecules/Search/searchStyles.ts
|
|
4
|
-
var t = ["sm", "md"], n = "flex w-full items-center rounded-
|
|
4
|
+
var t = ["sm", "md"], n = "flex w-full items-center rounded-[var(--radius-control)] border border-border-control bg-surface focus-within:outline-none focus-within:ring-2 focus-within:ring-focus-ring focus-within:ring-offset-2 focus-within:ring-offset-body " + e, r = {
|
|
5
5
|
sm: `${n} h-10 gap-1.5 p-1 pl-2`,
|
|
6
6
|
md: `${n} h-11 gap-2 p-1 pl-2`
|
|
7
7
|
}, i = {
|
|
@@ -27,5 +27,5 @@ export declare const segmentedControlItemSelectedClasses = "text-fg";
|
|
|
27
27
|
/** Idle segment — `text-muted` (secondary text); hover promotes to primary ink. */
|
|
28
28
|
export declare const segmentedControlItemUnselectedClasses = "text-muted hover:text-fg";
|
|
29
29
|
/** Sliding selected segment — raised surface pill inside the body well. */
|
|
30
|
-
export declare const segmentedControlThumbClasses = "pointer-events-none absolute inset-0 rounded-
|
|
30
|
+
export declare const segmentedControlThumbClasses = "pointer-events-none absolute inset-0 rounded-[var(--radius-control-inner)] bg-surface shadow-raised";
|
|
31
31
|
//# sourceMappingURL=segmentedControlStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmentedControlStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SegmentedControl/segmentedControlStyles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB,6BAA8B,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,uBAAuB,6BAA8B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,6FAA6F;AAC7F,eAAO,MAAM,4BAA4B,QAGxC,CAAC;AAEF,eAAO,MAAM,mCAAmC,wBAAwB,CAAC;AAEzE,qFAAqF;AACrF,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAIjF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAIhF,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAIvC,CAAC;AAEF,eAAO,MAAM,kCAAkC,mBAAmB,CAAC;AAEnE,eAAO,MAAM,+BAA+B,kEACqB,CAAC;AAElE,eAAO,MAAM,sCAAsC,WAAW,CAAC;AAE/D,iFAAiF;AACjF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAI/E,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAIjF,CAAC;AAEF,eAAO,MAAM,gCAAgC,qBAAqB,CAAC;AAEnE,8FAA8F;AAC9F,eAAO,MAAM,8BAA8B,0EAC8B,CAAC;AAE1E,eAAO,MAAM,mCAAmC,YAAY,CAAC;AAE7D,mFAAmF;AACnF,eAAO,MAAM,qCAAqC,6BAA6B,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"segmentedControlStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SegmentedControl/segmentedControlStyles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB,6BAA8B,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,uBAAuB,6BAA8B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,6FAA6F;AAC7F,eAAO,MAAM,4BAA4B,QAGxC,CAAC;AAEF,eAAO,MAAM,mCAAmC,wBAAwB,CAAC;AAEzE,qFAAqF;AACrF,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAIjF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAIhF,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAIvC,CAAC;AAEF,eAAO,MAAM,kCAAkC,mBAAmB,CAAC;AAEnE,eAAO,MAAM,+BAA+B,kEACqB,CAAC;AAElE,eAAO,MAAM,sCAAsC,WAAW,CAAC;AAE/D,iFAAiF;AACjF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAI/E,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAIjF,CAAC;AAEF,eAAO,MAAM,gCAAgC,qBAAqB,CAAC;AAEnE,8FAA8F;AAC9F,eAAO,MAAM,8BAA8B,0EAC8B,CAAC;AAE1E,eAAO,MAAM,mCAAmC,YAAY,CAAC;AAE7D,mFAAmF;AACnF,eAAO,MAAM,qCAAqC,6BAA6B,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,4BAA4B,wGAC8D,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { clusterHeightClasses as t } from "../../../lib/clusterScale.js";
|
|
4
|
+
import { motionTransition as n } from "../../../lib/motion.js";
|
|
5
5
|
//#region src/components/molecules/SegmentedControl/segmentedControlStyles.ts
|
|
6
6
|
var r = [
|
|
7
7
|
"sm",
|
|
8
8
|
"md",
|
|
9
9
|
"lg"
|
|
10
|
-
], i = ["hug", "stretch"], a = e("relative inline-flex items-stretch rounded-
|
|
11
|
-
sm:
|
|
12
|
-
md:
|
|
13
|
-
lg:
|
|
10
|
+
], i = ["hug", "stretch"], a = e("relative inline-flex items-stretch rounded-[var(--radius-control)] bg-body p-0.5 shadow-hairline", n("fast")), o = "flex w-full min-w-0", s = {
|
|
11
|
+
sm: t.sm,
|
|
12
|
+
md: t.md,
|
|
13
|
+
lg: t.lg
|
|
14
14
|
}, c = {
|
|
15
15
|
sm: "px-2.5 text-xs leading-none",
|
|
16
16
|
md: "px-3 text-sm leading-none",
|
|
17
17
|
lg: "px-4 text-sm leading-none"
|
|
18
|
-
}, l = e("relative inline-flex shrink-0 cursor-pointer items-center justify-center rounded-
|
|
18
|
+
}, l = e("relative inline-flex shrink-0 cursor-pointer items-center justify-center rounded-[var(--radius-control-inner)] font-sans font-medium tracking-normal", "transition-[color] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset", n("fast")), u = "min-w-0 flex-1", d = "relative z-10 inline-flex min-w-0 items-center justify-center", f = "w-full", p = {
|
|
19
19
|
sm: "gap-1",
|
|
20
20
|
md: "gap-1.5",
|
|
21
21
|
lg: "gap-2"
|
|
@@ -23,6 +23,6 @@ var r = [
|
|
|
23
23
|
sm: "flex shrink-0 items-center text-current [&>svg]:size-3 [&>svg]:shrink-0 [&>svg]:stroke-current",
|
|
24
24
|
md: "flex shrink-0 items-center text-current [&>svg]:size-3.5 [&>svg]:shrink-0 [&>svg]:stroke-current",
|
|
25
25
|
lg: "flex shrink-0 items-center text-current [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:stroke-current"
|
|
26
|
-
}, h = "min-w-0 truncate", g = "shrink-0 font-mono text-[10.5px] leading-none tabular-nums text-muted", _ = "text-fg", v = "text-muted hover:text-fg", y = "pointer-events-none absolute inset-0 rounded-
|
|
26
|
+
}, h = "min-w-0 truncate", g = "shrink-0 font-mono text-[10.5px] leading-none tabular-nums text-muted", _ = "text-fg", v = "text-muted hover:text-fg", y = "pointer-events-none absolute inset-0 rounded-[var(--radius-control-inner)] bg-surface shadow-raised";
|
|
27
27
|
//#endregion
|
|
28
28
|
export { d as segmentedControlItemBodyClasses, f as segmentedControlItemBodyStretchClasses, l as segmentedControlItemClasses, g as segmentedControlItemEndClasses, p as segmentedControlItemGapClasses, h as segmentedControlItemLabelClasses, _ as segmentedControlItemSelectedClasses, c as segmentedControlItemSizeClasses, m as segmentedControlItemStartClasses, u as segmentedControlItemStretchClasses, v as segmentedControlItemUnselectedClasses, i as segmentedControlLayouts, r as segmentedControlSizes, y as segmentedControlThumbClasses, a as segmentedControlTrackClasses, s as segmentedControlTrackSizeClasses, o as segmentedControlTrackStretchClasses };
|
|
@@ -25,10 +25,12 @@ export interface SelectProps {
|
|
|
25
25
|
className?: SelectLayoutClassName;
|
|
26
26
|
id?: string;
|
|
27
27
|
"aria-label"?: string;
|
|
28
|
+
/** Extra ids that describe the trigger (Field passes its description here); joined with `description`. */
|
|
29
|
+
"aria-describedby"?: string;
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
32
|
* Pill select — Input-matched trigger + floating listbox panel.
|
|
31
33
|
* Compose in forms and Card headers (period filters).
|
|
32
34
|
*/
|
|
33
|
-
export declare function Select({ options, value: valueProp, defaultValue, onValueChange, placeholder, label, description, disabled, size, className, id: idProp, "aria-label": ariaLabel, }: SelectProps): import("react").JSX.Element;
|
|
35
|
+
export declare function Select({ options, value: valueProp, defaultValue, onValueChange, placeholder, label, description, disabled, size, className, id: idProp, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, }: SelectProps): import("react").JSX.Element;
|
|
34
36
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMhE,OAAO,EAcL,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,gEAAgE;AAChE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4EAA4E;IAC5E,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0GAA0G;IAC1G,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAqBD;;;GAGG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,KAAK,EAAE,SAAS,EAChB,YAAY,EACZ,aAAa,EACb,WAAuB,EACvB,KAAK,EACL,WAAW,EACX,QAAgB,EAChB,IAAW,EACX,SAAS,EACT,EAAE,EAAE,MAAM,EACV,YAAY,EAAE,SAAS,EACvB,kBAAkB,EAAE,eAAe,GACpC,EAAE,WAAW,+BAqIb"}
|