@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
|
@@ -2,67 +2,47 @@
|
|
|
2
2
|
import { cn as e } from "../../../lib/cn.js";
|
|
3
3
|
import { motionTransitionProp as t } from "../../../lib/motion.js";
|
|
4
4
|
import { Card as n } from "../../molecules/Card/Card.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { DialogProvider as
|
|
9
|
-
import { useCallback as
|
|
5
|
+
import { useOverlayLifecycle as r } from "../../../lib/dialogOverlay.js";
|
|
6
|
+
import { dialogBackdropClasses as i, dialogHeaderInsetTopClasses as a, dialogOverlayRootClasses as o, dialogPanelInsetXClasses as s, dialogPanelShellClasses as c, dialogPanelSizeClasses as l, dialogSizes as u, overlayPanelChromeClasses as d, overlayPanelDialogBodyLastScrollClasses as f, overlayPanelDialogBodyScrollClasses as p, overlayPanelDialogFooterClasses as m, overlayPanelMaxHeightClasses as h } from "./dialogStyles.js";
|
|
7
|
+
import { OverlayPanelHeader as g } from "./OverlayPanelHeader.js";
|
|
8
|
+
import { DialogProvider as _, useDialogContext as v, useDialogLabelIds as y } from "./DialogContext.js";
|
|
9
|
+
import { useCallback as b, useRef as x } from "react";
|
|
10
10
|
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
11
11
|
import { AnimatePresence as w, motion as T } from "motion/react";
|
|
12
12
|
import { createPortal as E } from "react-dom";
|
|
13
13
|
//#region src/components/organisms/Dialog/Dialog.tsx
|
|
14
|
-
function D({ role: n, "aria-labelledby": a, "aria-describedby":
|
|
15
|
-
let { open:
|
|
16
|
-
|
|
17
|
-
}, [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
}, [
|
|
28
|
-
s,
|
|
29
|
-
u,
|
|
30
|
-
v
|
|
31
|
-
]), b(() => {
|
|
32
|
-
if (!u || !g) return;
|
|
33
|
-
function e(e) {
|
|
34
|
-
e.key === "Escape" && (e.preventDefault(), k());
|
|
35
|
-
}
|
|
36
|
-
return document.addEventListener("keydown", e), () => {
|
|
37
|
-
document.removeEventListener("keydown", e);
|
|
38
|
-
};
|
|
39
|
-
}, [
|
|
40
|
-
k,
|
|
41
|
-
g,
|
|
42
|
-
u
|
|
43
|
-
]);
|
|
44
|
-
function A(e) {
|
|
45
|
-
if (!f) return;
|
|
14
|
+
function D({ role: n, "aria-labelledby": a, "aria-describedby": s, initialFocusSelector: c, fill: l = !1, children: u }) {
|
|
15
|
+
let { open: d, onOpenChange: f, dismissOnBackdrop: p, dismissOnEscape: m, triggerRef: h } = v("DialogPortal"), g = x(null), _ = b(() => {
|
|
16
|
+
f(!1);
|
|
17
|
+
}, [f]);
|
|
18
|
+
r(g, {
|
|
19
|
+
open: d,
|
|
20
|
+
onClose: _,
|
|
21
|
+
closeOnEscape: m,
|
|
22
|
+
initialFocus: c,
|
|
23
|
+
returnFocusRef: h
|
|
24
|
+
});
|
|
25
|
+
function y(e) {
|
|
46
26
|
let t = e.target;
|
|
47
|
-
|
|
27
|
+
g.current?.contains(t) || (e.preventDefault(), p && _());
|
|
48
28
|
}
|
|
49
|
-
return typeof document > "u" ? null : E(/* @__PURE__ */ S(w, { children:
|
|
50
|
-
className: e(
|
|
29
|
+
return typeof document > "u" ? null : E(/* @__PURE__ */ S(w, { children: d ? /* @__PURE__ */ C(T.div, {
|
|
30
|
+
className: e(o, l && "max-md:p-0 md:p-6"),
|
|
51
31
|
initial: { opacity: 0 },
|
|
52
32
|
animate: { opacity: 1 },
|
|
53
33
|
exit: { opacity: 0 },
|
|
54
34
|
transition: t("medium"),
|
|
55
|
-
onMouseDown:
|
|
35
|
+
onMouseDown: y,
|
|
56
36
|
children: [/* @__PURE__ */ S("div", {
|
|
57
|
-
className:
|
|
37
|
+
className: i,
|
|
58
38
|
"aria-hidden": "true"
|
|
59
39
|
}), /* @__PURE__ */ S(T.div, {
|
|
60
|
-
ref:
|
|
61
|
-
className: e("relative z-[1] flex w-full justify-center",
|
|
40
|
+
ref: g,
|
|
41
|
+
className: e("relative z-[1] flex w-full justify-center", l && "h-full items-center"),
|
|
62
42
|
role: n,
|
|
63
43
|
"aria-modal": "true",
|
|
64
44
|
"aria-labelledby": a,
|
|
65
|
-
"aria-describedby":
|
|
45
|
+
"aria-describedby": s,
|
|
66
46
|
initial: {
|
|
67
47
|
opacity: 0,
|
|
68
48
|
scale: .96,
|
|
@@ -82,13 +62,13 @@ function D({ role: n, "aria-labelledby": a, "aria-describedby": o, initialFocusS
|
|
|
82
62
|
onMouseDown: (e) => {
|
|
83
63
|
e.stopPropagation();
|
|
84
64
|
},
|
|
85
|
-
children:
|
|
65
|
+
children: u
|
|
86
66
|
})]
|
|
87
67
|
}) : null }), document.body);
|
|
88
68
|
}
|
|
89
69
|
function O({ open: e, onOpenChange: t, dismissOnBackdrop: n = !0, dismissOnEscape: r = !0, children: i }) {
|
|
90
|
-
let { titleId: a, descriptionId: o } =
|
|
91
|
-
return /* @__PURE__ */ S(
|
|
70
|
+
let { titleId: a, descriptionId: o } = y("dialog"), s = x(null);
|
|
71
|
+
return /* @__PURE__ */ S(_, {
|
|
92
72
|
value: {
|
|
93
73
|
open: e,
|
|
94
74
|
onOpenChange: t,
|
|
@@ -102,7 +82,7 @@ function O({ open: e, onOpenChange: t, dismissOnBackdrop: n = !0, dismissOnEscap
|
|
|
102
82
|
});
|
|
103
83
|
}
|
|
104
84
|
function k({ children: e, className: t }) {
|
|
105
|
-
let { onOpenChange: n, triggerRef: r } =
|
|
85
|
+
let { onOpenChange: n, triggerRef: r } = v("Dialog.Trigger");
|
|
106
86
|
return /* @__PURE__ */ S("span", {
|
|
107
87
|
ref: r,
|
|
108
88
|
className: t,
|
|
@@ -113,40 +93,41 @@ function k({ children: e, className: t }) {
|
|
|
113
93
|
children: e
|
|
114
94
|
});
|
|
115
95
|
}
|
|
116
|
-
function A({ title: t, description: r, headerStart: i, showClose:
|
|
117
|
-
let { titleId:
|
|
96
|
+
function A({ title: t, description: r, headerStart: i, showClose: o = !0, headerEnd: u, footer: _, size: y = "md", "aria-labelledby": b, className: x, children: w }) {
|
|
97
|
+
let { titleId: T, descriptionId: E, onOpenChange: O } = v("Dialog.Content"), k = t != null, A = r != null, j = w != null || !k && A, M = _ != null, N = j || M;
|
|
118
98
|
return /* @__PURE__ */ S(D, {
|
|
119
99
|
role: "dialog",
|
|
120
|
-
"aria-labelledby":
|
|
121
|
-
"aria-describedby":
|
|
122
|
-
fill:
|
|
100
|
+
"aria-labelledby": k ? T : b,
|
|
101
|
+
"aria-describedby": A ? E : void 0,
|
|
102
|
+
fill: y === "full",
|
|
123
103
|
children: /* @__PURE__ */ C(n, {
|
|
124
104
|
padding: "none",
|
|
125
|
-
bodyTerminal:
|
|
126
|
-
className: e(
|
|
105
|
+
bodyTerminal: _ == null,
|
|
106
|
+
className: e(l[y], d, y === "full" ? void 0 : h, c, s, x),
|
|
127
107
|
children: [
|
|
128
|
-
/* @__PURE__ */ S(
|
|
129
|
-
titleId:
|
|
130
|
-
descriptionId:
|
|
108
|
+
/* @__PURE__ */ S(g, {
|
|
109
|
+
titleId: T,
|
|
110
|
+
descriptionId: E,
|
|
131
111
|
title: t,
|
|
132
112
|
description: r,
|
|
133
113
|
headerStart: i,
|
|
134
|
-
headerEnd:
|
|
135
|
-
showClose:
|
|
114
|
+
headerEnd: u,
|
|
115
|
+
showClose: o,
|
|
136
116
|
closeLabel: "Close dialog",
|
|
137
|
-
onClose: () =>
|
|
117
|
+
onClose: () => O(!1),
|
|
118
|
+
className: a
|
|
138
119
|
}),
|
|
139
|
-
|
|
140
|
-
className:
|
|
141
|
-
children: [!
|
|
142
|
-
id:
|
|
120
|
+
N ? /* @__PURE__ */ C("div", {
|
|
121
|
+
className: M ? p : f,
|
|
122
|
+
children: [!k && A ? /* @__PURE__ */ S("p", {
|
|
123
|
+
id: E,
|
|
143
124
|
className: "text-muted",
|
|
144
125
|
children: r
|
|
145
|
-
}) : null,
|
|
126
|
+
}) : null, w]
|
|
146
127
|
}) : null,
|
|
147
|
-
|
|
148
|
-
className:
|
|
149
|
-
children:
|
|
128
|
+
M ? /* @__PURE__ */ S("footer", {
|
|
129
|
+
className: m,
|
|
130
|
+
children: _
|
|
150
131
|
}) : null
|
|
151
132
|
]
|
|
152
133
|
})
|
|
@@ -157,4 +138,4 @@ var j = Object.assign(O, {
|
|
|
157
138
|
Content: A
|
|
158
139
|
});
|
|
159
140
|
//#endregion
|
|
160
|
-
export { j as Dialog, D as DialogPortal,
|
|
141
|
+
export { j as Dialog, D as DialogPortal, u as dialogSizes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayPanelHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Dialog/OverlayPanelHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBvC,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gGAAgG;IAChG,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,aAAa,EACb,KAAK,EACL,WAAW,EACX,cAAiC,EACjC,oBAA0C,EAC1C,WAAW,EACX,SAAS,EACT,SAAgB,EAChB,UAAoB,EACpB,OAAO,EACP,UAAkB,EAClB,SAAS,GACV,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"OverlayPanelHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Dialog/OverlayPanelHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBvC,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gGAAgG;IAChG,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,aAAa,EACb,KAAK,EACL,WAAW,EACX,cAAiC,EACjC,oBAA0C,EAC1C,WAAW,EACX,SAAS,EACT,SAAgB,EAChB,UAAoB,EACpB,OAAO,EACP,UAAkB,EAClB,SAAS,GACV,EAAE,uBAAuB,sCAmEzB"}
|
|
@@ -11,6 +11,7 @@ function p({ titleId: p, descriptionId: m, title: h, description: g, titleClassN
|
|
|
11
11
|
let E = h != null, D = g != null;
|
|
12
12
|
if (!E && !x && y == null && b == null) return null;
|
|
13
13
|
let O = /* @__PURE__ */ d(i.Header, {
|
|
14
|
+
role: "presentation",
|
|
14
15
|
className: e(a, w ? o : void 0, T),
|
|
15
16
|
start: y != null || E ? /* @__PURE__ */ f("div", {
|
|
16
17
|
className: c,
|
|
@@ -57,7 +57,20 @@ export declare const overlayPanelFooterClasses: string;
|
|
|
57
57
|
export declare const dialogPanelShellClasses = "gap-4";
|
|
58
58
|
/** Dialog body scroll — horizontal inset + light vertical pad for copy blocks. */
|
|
59
59
|
export declare const overlayPanelDialogBodyScrollClasses: string;
|
|
60
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Dialog / AlertDialog edge inset — 24px on every side, phones included.
|
|
62
|
+
* The Card shell gives 16px at the sides (header, body, footer `px-4`) and 16px top / bottom;
|
|
63
|
+
* `px-2` on the shell plus {@link dialogHeaderInsetTopClasses} / {@link dialogFooterInsetBottomClasses}
|
|
64
|
+
* add the remaining 8px, so a pill action clears the 16px shell radius. **Sheet** / **Panel** keep 16px.
|
|
65
|
+
*/
|
|
66
|
+
export declare const dialogPanelInsetXClasses = "px-2";
|
|
67
|
+
/** Header top — 16px shell pad + 8px = 24px. */
|
|
68
|
+
export declare const dialogHeaderInsetTopClasses = "pt-2";
|
|
69
|
+
/** Footer bottom — 16px shell pad + 8px = 24px. */
|
|
70
|
+
export declare const dialogFooterInsetBottomClasses = "pb-2";
|
|
71
|
+
/** Body of a **Dialog** with no footer — it is the last row, so it owns the bottom (2px shell + 22px = 24px). */
|
|
72
|
+
export declare const overlayPanelDialogBodyLastScrollClasses: string;
|
|
73
|
+
/** Dialog footer — top inset without hairlines, 24px from the bottom edge. */
|
|
61
74
|
export declare const overlayPanelDialogFooterClasses: string;
|
|
62
75
|
/** Footer shell when a scroll body precedes the footer. */
|
|
63
76
|
export declare const overlayPanelFooterDelineatedShellClasses = "shrink-0 w-full";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Dialog/dialogStyles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,qCAAsC,CAAC;AAE/D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,uDAAuD;AACvD,eAAO,MAAM,wBAAwB,+DAA+D,CAAC;AAErG,uCAAuC;AACvC,eAAO,MAAM,qBAAqB,QAIjC,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAM7D,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAA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;AACzF,eAAO,MAAM,8BAA8B,QAG1C,CAAC"}
|
|
@@ -20,7 +20,7 @@ var m = e(r, "flex w-full items-center justify-end gap-2"), h = "flex shrink-0 i
|
|
|
20
20
|
e(S, C);
|
|
21
21
|
var w = "flex min-w-0 flex-1 items-start gap-3", T = "flex shrink-0 items-center pt-0.5 text-muted [&>svg]:size-5 [&>svg]:shrink-0 [&>svg]:stroke-current";
|
|
22
22
|
e(d, "pt-1 text-muted");
|
|
23
|
-
var E = "flex min-h-0 flex-col gap-3", D = e(E, "h-full"), O = e(d, r, "min-h-0 flex-1 overflow-y-auto overscroll-contain"), k = e(m, "shrink-0"), A = "gap-4", j = e(O, "py-1"), M = e(k, "pt-2"),
|
|
24
|
-
e(
|
|
23
|
+
var E = "flex min-h-0 flex-col gap-3", D = e(E, "h-full"), O = e(d, r, "min-h-0 flex-1 overflow-y-auto overscroll-contain"), k = e(m, "shrink-0"), A = "gap-4", j = e(O, "py-1"), M = "px-2", N = "pt-2", P = "pb-2", F = e(O, "pt-1 pb-[22px]"), I = e(k, "pt-2", P), L = "shrink-0 w-full", R = e(m, "pt-3 pb-4"), z = e(L, "border-t border-border pt-3");
|
|
24
|
+
e(z, "pb-4");
|
|
25
25
|
//#endregion
|
|
26
|
-
export { p as alertDialogTitleClasses, s as dialogBackdropClasses, d as dialogBodyCopyClasses, f as dialogBodyMutedClasses, h as dialogFooterActionsClasses, m as dialogFooterClasses, o as dialogOverlayRootClasses, l as dialogOverlayRootFullClasses, u as dialogPanelBoxFullClasses, A as dialogPanelShellClasses, c as dialogPanelSizeClasses, a as dialogSizes, O as overlayPanelBodyScrollClasses, g as overlayPanelChromeClasses, j as overlayPanelDialogBodyScrollClasses,
|
|
26
|
+
export { p as alertDialogTitleClasses, s as dialogBackdropClasses, d as dialogBodyCopyClasses, f as dialogBodyMutedClasses, h as dialogFooterActionsClasses, m as dialogFooterClasses, P as dialogFooterInsetBottomClasses, N as dialogHeaderInsetTopClasses, o as dialogOverlayRootClasses, l as dialogOverlayRootFullClasses, u as dialogPanelBoxFullClasses, M as dialogPanelInsetXClasses, A as dialogPanelShellClasses, c as dialogPanelSizeClasses, a as dialogSizes, O as overlayPanelBodyScrollClasses, g as overlayPanelChromeClasses, F as overlayPanelDialogBodyLastScrollClasses, j as overlayPanelDialogBodyScrollClasses, I as overlayPanelDialogFooterClasses, k as overlayPanelFooterClasses, z as overlayPanelFooterDelineatedClasses, R as overlayPanelFooterDelineatedInnerClasses, L as overlayPanelFooterDelineatedShellClasses, x as overlayPanelFooterHairlineClasses, y as overlayPanelHairlineClasses, v as overlayPanelHeaderClasses, C as overlayPanelHeaderDelineatedInnerClasses, S as overlayPanelHeaderDelineatedShellClasses, b as overlayPanelHeaderHairlineClasses, w as overlayPanelHeaderStartClusterClasses, T as overlayPanelHeaderStartSlotClasses, _ as overlayPanelMaxHeightClasses, D as overlayPanelSectionStackClasses, E as overlayPanelStackClasses };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/FilterPanel/FilterPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FilterPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/FilterPanel/FilterPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+D,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvH,OAAO,EAAwB,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEtG,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,yBAAyB,GAC/B,MAAM,mBAAmB,CAAC;AAE3B,wEAAwE;AACxE,MAAM,MAAM,0BAA0B,GAAG,MAAM,CA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"../../molecules/Accordion/Accordion.js";
|
|
|
5
5
|
import { CheckboxGroup as r } from "../../molecules/CheckboxGroup/CheckboxGroup.js";
|
|
6
6
|
import { Sheet as i } from "../Sheet/Sheet.js";
|
|
7
7
|
import { countFilterOptions as a, filterFacetValues as o, filterSelectionCount as s, matchesFilterSelection as c, useFilterSelection as l } from "./filterSelection.js";
|
|
8
|
-
import { createContext as u, useContext as d, useId as f, useMemo as p,
|
|
9
|
-
import { SlidersHorizontal as
|
|
10
|
-
import { jsx as
|
|
8
|
+
import { createContext as u, useContext as d, useId as f, useMemo as p, useRef as m, useState as h } from "react";
|
|
9
|
+
import { SlidersHorizontal as g } from "lucide-react";
|
|
10
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/organisms/FilterPanel/FilterPanel.tsx
|
|
12
|
-
var
|
|
12
|
+
var y = {
|
|
13
13
|
title: "Filters",
|
|
14
14
|
clear: "Clear all",
|
|
15
15
|
show: (e) => `Show ${e}`
|
|
16
|
-
},
|
|
17
|
-
function
|
|
18
|
-
let t = d(
|
|
16
|
+
}, b = u(null);
|
|
17
|
+
function x(e) {
|
|
18
|
+
let t = d(b);
|
|
19
19
|
if (t == null) throw Error(`[WMDS FilterPanel] ${e} must be inside <FilterPanel>.`);
|
|
20
20
|
return t;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
let [o, c] =
|
|
22
|
+
function S({ groups: e, selection: t, onSelectionChange: n, resultsLabel: r, labels: i, children: a }) {
|
|
23
|
+
let [o, c] = h(!1), l = p(() => ({
|
|
24
24
|
groups: e,
|
|
25
25
|
selection: t,
|
|
26
26
|
onSelectionChange: n,
|
|
27
27
|
resultsLabel: r,
|
|
28
28
|
labels: {
|
|
29
|
-
...
|
|
29
|
+
...y,
|
|
30
30
|
...i
|
|
31
31
|
},
|
|
32
32
|
activeCount: s(t),
|
|
@@ -40,20 +40,20 @@ function x({ groups: e, selection: t, onSelectionChange: n, resultsLabel: r, lab
|
|
|
40
40
|
i,
|
|
41
41
|
o
|
|
42
42
|
]);
|
|
43
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ _(b.Provider, {
|
|
44
44
|
value: l,
|
|
45
45
|
children: a
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
let { groups: e, selection: t, onSelectionChange: i } =
|
|
50
|
-
return /* @__PURE__ */
|
|
48
|
+
function C() {
|
|
49
|
+
let { groups: e, selection: t, onSelectionChange: i } = x("FilterPanel.Groups");
|
|
50
|
+
return /* @__PURE__ */ _(n, {
|
|
51
51
|
variant: "plain",
|
|
52
52
|
flush: !0,
|
|
53
|
-
children: e.map((e) => /* @__PURE__ */
|
|
53
|
+
children: e.map((e) => /* @__PURE__ */ _(n.Item, {
|
|
54
54
|
label: e.label,
|
|
55
55
|
defaultOpen: !0,
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ _(r, {
|
|
57
57
|
label: e.label,
|
|
58
58
|
labelHidden: !0,
|
|
59
59
|
size: "sm",
|
|
@@ -62,7 +62,7 @@ function S() {
|
|
|
62
62
|
...t,
|
|
63
63
|
[e.id]: n
|
|
64
64
|
}),
|
|
65
|
-
children: e.options.map((e) => /* @__PURE__ */
|
|
65
|
+
children: e.options.map((e) => /* @__PURE__ */ _(r.Item, {
|
|
66
66
|
value: e.value,
|
|
67
67
|
label: e.label,
|
|
68
68
|
count: e.count,
|
|
@@ -72,66 +72,76 @@ function S() {
|
|
|
72
72
|
}, e.id))
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
var w = "button:not([disabled]), input:not([disabled]), a[href]";
|
|
76
|
+
function T({ className: n }) {
|
|
77
|
+
let { labels: r, activeCount: i, onSelectionChange: a } = x("FilterPanel.Rail"), o = f(), s = m(null), c = m(null);
|
|
78
|
+
function l() {
|
|
79
|
+
a({}), [...s.current?.querySelectorAll(w) ?? []].find((e) => e !== c.current)?.focus();
|
|
80
|
+
}
|
|
81
|
+
return /* @__PURE__ */ v("aside", {
|
|
82
|
+
ref: s,
|
|
78
83
|
"aria-labelledby": o,
|
|
79
84
|
className: n,
|
|
80
85
|
"data-filter-panel-rail": "",
|
|
81
|
-
children: [/* @__PURE__ */
|
|
86
|
+
children: [/* @__PURE__ */ _(t, {
|
|
82
87
|
id: o,
|
|
83
|
-
end: /* @__PURE__ */
|
|
88
|
+
end: /* @__PURE__ */ _(e, {
|
|
89
|
+
ref: c,
|
|
84
90
|
role: "ghost",
|
|
85
91
|
size: "xs",
|
|
86
92
|
disabled: i === 0,
|
|
87
|
-
onClick:
|
|
93
|
+
onClick: l,
|
|
88
94
|
children: r.clear
|
|
89
95
|
}),
|
|
90
96
|
children: r.title
|
|
91
|
-
}), /* @__PURE__ */
|
|
97
|
+
}), /* @__PURE__ */ _(C, {})]
|
|
92
98
|
});
|
|
93
99
|
}
|
|
94
|
-
function
|
|
95
|
-
let { labels: r, activeCount: i, setSheetOpen: a } =
|
|
96
|
-
return /* @__PURE__ */
|
|
100
|
+
function E({ icon: t, className: n }) {
|
|
101
|
+
let { labels: r, activeCount: i, setSheetOpen: a } = x("FilterPanel.Trigger");
|
|
102
|
+
return /* @__PURE__ */ _(e, {
|
|
97
103
|
role: "secondary",
|
|
98
|
-
icon: t ?? /* @__PURE__ */ g
|
|
104
|
+
icon: t ?? /* @__PURE__ */ _(g, {}),
|
|
99
105
|
count: i > 0 ? i : void 0,
|
|
100
106
|
className: n,
|
|
101
107
|
onClick: () => a(!0),
|
|
102
108
|
children: r.title
|
|
103
109
|
});
|
|
104
110
|
}
|
|
105
|
-
function
|
|
106
|
-
let { labels: t, activeCount: n, onSelectionChange: r, resultsLabel: a, sheetOpen: o, setSheetOpen: s } =
|
|
107
|
-
|
|
111
|
+
function D() {
|
|
112
|
+
let { labels: t, activeCount: n, onSelectionChange: r, resultsLabel: a, sheetOpen: o, setSheetOpen: s } = x("FilterPanel.Sheet"), c = m(null);
|
|
113
|
+
function l() {
|
|
114
|
+
r({}), c.current?.focus();
|
|
115
|
+
}
|
|
116
|
+
return /* @__PURE__ */ _(i, {
|
|
108
117
|
open: o,
|
|
109
118
|
onOpenChange: s,
|
|
110
|
-
children: /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ _(i.Content, {
|
|
111
120
|
title: t.title,
|
|
112
|
-
footer: /* @__PURE__ */
|
|
121
|
+
footer: /* @__PURE__ */ v("div", {
|
|
113
122
|
className: "flex items-center justify-end gap-2",
|
|
114
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ _(e, {
|
|
115
124
|
role: "secondary",
|
|
116
125
|
size: "sm",
|
|
117
126
|
disabled: n === 0,
|
|
118
|
-
onClick:
|
|
127
|
+
onClick: l,
|
|
119
128
|
children: t.clear
|
|
120
|
-
}), /* @__PURE__ */
|
|
129
|
+
}), /* @__PURE__ */ _(e, {
|
|
130
|
+
ref: c,
|
|
121
131
|
role: "primary",
|
|
122
132
|
size: "sm",
|
|
123
133
|
onClick: () => s(!1),
|
|
124
134
|
children: t.show(a)
|
|
125
135
|
})]
|
|
126
136
|
}),
|
|
127
|
-
children: /* @__PURE__ */
|
|
137
|
+
children: /* @__PURE__ */ _(C, {})
|
|
128
138
|
})
|
|
129
139
|
});
|
|
130
140
|
}
|
|
131
|
-
var
|
|
132
|
-
Rail:
|
|
133
|
-
Trigger:
|
|
134
|
-
Sheet:
|
|
141
|
+
var O = Object.assign(S, {
|
|
142
|
+
Rail: T,
|
|
143
|
+
Trigger: E,
|
|
144
|
+
Sheet: D
|
|
135
145
|
});
|
|
136
146
|
//#endregion
|
|
137
|
-
export {
|
|
147
|
+
export { O as FilterPanel, a as countFilterOptions, o as filterFacetValues, s as filterSelectionCount, c as matchesFilterSelection, l as useFilterSelection };
|
|
@@ -21,6 +21,11 @@ export interface IntakeModalProps {
|
|
|
21
21
|
backDisabled?: boolean;
|
|
22
22
|
continueDisabled?: boolean;
|
|
23
23
|
continueLabel?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Escape closes the modal. Set `false` when closing would lose answers the visitor has typed
|
|
26
|
+
* (the Close button still closes). Default `true`.
|
|
27
|
+
*/
|
|
28
|
+
dismissOnEscape?: boolean;
|
|
24
29
|
children?: ReactNode;
|
|
25
30
|
className?: IntakeModalLayoutClassName;
|
|
26
31
|
}
|
|
@@ -29,5 +34,5 @@ export interface IntakeModalProps {
|
|
|
29
34
|
* Wordmark, close, step progress, and a pinned footer.
|
|
30
35
|
* Focus trap, Escape, scroll lock, and `aria-modal`.
|
|
31
36
|
*/
|
|
32
|
-
export declare function IntakeModal({ open, onOpenChange, step, steps, title, showProgress, hideFooter, hideContinue, onBack, onContinue, backDisabled, continueDisabled, continueLabel, children, className, }: IntakeModalProps): import("react").ReactPortal | null;
|
|
37
|
+
export declare function IntakeModal({ open, onOpenChange, step, steps, title, showProgress, hideFooter, hideContinue, onBack, onContinue, backDisabled, continueDisabled, continueLabel, dismissOnEscape, children, className, }: IntakeModalProps): import("react").ReactPortal | null;
|
|
33
38
|
//# sourceMappingURL=IntakeModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntakeModal.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/IntakeModal/IntakeModal.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"IntakeModal.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/IntakeModal/IntakeModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAuBnE,wDAAwD;AACxD,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uEAAuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qFAAqF;IACrF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,0BAA0B,CAAC;CACxC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,IAAQ,EACR,KAAS,EACT,KAAyB,EACzB,YAAmB,EACnB,UAAkB,EAClB,YAAoB,EACpB,MAAM,EACN,UAAU,EACV,YAAoB,EACpB,gBAAwB,EACxB,aAA0B,EAC1B,eAAsB,EACtB,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,sCA6FlB"}
|
|
@@ -5,104 +5,92 @@ import { motionTransitionProp as t } from "../../../lib/motion.js";
|
|
|
5
5
|
import { Button as n } from "../../atoms/Button/Button.js";
|
|
6
6
|
import { IconButton as r } from "../../atoms/IconButton/IconButton.js";
|
|
7
7
|
import { StepProgress as i } from "../../molecules/StepProgress/StepProgress.js";
|
|
8
|
-
import {
|
|
9
|
-
import { intakeModalBodyClasses as
|
|
10
|
-
import { useCallback as
|
|
11
|
-
import { X as
|
|
12
|
-
import { jsx as
|
|
13
|
-
import { AnimatePresence as
|
|
14
|
-
import { createPortal as
|
|
8
|
+
import { useOverlayLifecycle as a } from "../../../lib/dialogOverlay.js";
|
|
9
|
+
import { intakeModalBodyClasses as o, intakeModalBrandClasses as s, intakeModalCenteredContentClasses as c, intakeModalContentClasses as l, intakeModalFooterClasses as u, intakeModalHeaderClasses as d, intakeModalMarkClasses as f, intakeModalProgressClasses as p, intakeModalRootClasses as m, intakeModalWordmarkClasses as h } from "./intakeModalStyles.js";
|
|
10
|
+
import { useCallback as g, useId as _, useRef as v } from "react";
|
|
11
|
+
import { X as y } from "lucide-react";
|
|
12
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
13
|
+
import { AnimatePresence as S, motion as C } from "motion/react";
|
|
14
|
+
import { createPortal as w } from "react-dom";
|
|
15
15
|
//#region src/components/organisms/IntakeModal/IntakeModal.tsx
|
|
16
|
-
function
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
}, [
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
}, [O]), y(() => {
|
|
30
|
-
if (!O) return;
|
|
31
|
-
function e(e) {
|
|
32
|
-
e.key === "Escape" && (e.preventDefault(), K());
|
|
33
|
-
}
|
|
34
|
-
return document.addEventListener("keydown", e), () => {
|
|
35
|
-
document.removeEventListener("keydown", e);
|
|
36
|
-
};
|
|
37
|
-
}, [K, O]), typeof document > "u" ? null : D(/* @__PURE__ */ C(T, { children: O ? /* @__PURE__ */ w(E.div, {
|
|
38
|
-
ref: W,
|
|
39
|
-
className: e(g, H),
|
|
16
|
+
function T({ open: T, onOpenChange: E, step: D = 1, steps: O = 4, title: k = "Start a project", showProgress: A = !0, hideFooter: j = !1, hideContinue: M = !1, onBack: N, onContinue: P, backDisabled: F = !1, continueDisabled: I = !1, continueLabel: L = "Continue", dismissOnEscape: R = !0, children: z, className: B }) {
|
|
17
|
+
let V = _(), H = v(null), U = g(() => {
|
|
18
|
+
E(!1);
|
|
19
|
+
}, [E]);
|
|
20
|
+
return a(H, {
|
|
21
|
+
open: T,
|
|
22
|
+
onClose: U,
|
|
23
|
+
closeOnEscape: R,
|
|
24
|
+
initialFocus: "[aria-label=\"Close\"]"
|
|
25
|
+
}), typeof document > "u" ? null : w(/* @__PURE__ */ b(S, { children: T ? /* @__PURE__ */ x(C.div, {
|
|
26
|
+
ref: H,
|
|
27
|
+
className: e(m, B),
|
|
40
28
|
role: "dialog",
|
|
41
29
|
"aria-modal": "true",
|
|
42
|
-
"aria-labelledby":
|
|
30
|
+
"aria-labelledby": V,
|
|
43
31
|
"data-intake-modal": "",
|
|
44
32
|
initial: { opacity: 0 },
|
|
45
33
|
animate: { opacity: 1 },
|
|
46
34
|
exit: { opacity: 0 },
|
|
47
35
|
transition: t("medium"),
|
|
48
36
|
children: [
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
id:
|
|
37
|
+
/* @__PURE__ */ b("h1", {
|
|
38
|
+
id: V,
|
|
51
39
|
className: "sr-only",
|
|
52
|
-
children:
|
|
40
|
+
children: k
|
|
53
41
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
className:
|
|
56
|
-
children: [/* @__PURE__ */
|
|
57
|
-
className:
|
|
58
|
-
children: [/* @__PURE__ */
|
|
59
|
-
className:
|
|
42
|
+
/* @__PURE__ */ x("header", {
|
|
43
|
+
className: d,
|
|
44
|
+
children: [/* @__PURE__ */ x("div", {
|
|
45
|
+
className: s,
|
|
46
|
+
children: [/* @__PURE__ */ b("span", {
|
|
47
|
+
className: f,
|
|
60
48
|
"aria-hidden": !0,
|
|
61
49
|
children: "WM"
|
|
62
|
-
}), /* @__PURE__ */
|
|
63
|
-
className:
|
|
50
|
+
}), /* @__PURE__ */ b("span", {
|
|
51
|
+
className: h,
|
|
64
52
|
children: "WhatMatters"
|
|
65
53
|
})]
|
|
66
|
-
}), /* @__PURE__ */
|
|
67
|
-
icon: /* @__PURE__ */
|
|
54
|
+
}), /* @__PURE__ */ b(r, {
|
|
55
|
+
icon: /* @__PURE__ */ b(y, { strokeWidth: 2 }),
|
|
68
56
|
"aria-label": "Close",
|
|
69
57
|
role: "ghost",
|
|
70
58
|
size: "md",
|
|
71
|
-
onClick:
|
|
59
|
+
onClick: U
|
|
72
60
|
})]
|
|
73
61
|
}),
|
|
74
|
-
|
|
75
|
-
className:
|
|
76
|
-
children: /* @__PURE__ */
|
|
77
|
-
step:
|
|
78
|
-
steps:
|
|
62
|
+
A ? /* @__PURE__ */ b("div", {
|
|
63
|
+
className: p,
|
|
64
|
+
children: /* @__PURE__ */ b(i, {
|
|
65
|
+
step: D,
|
|
66
|
+
steps: O
|
|
79
67
|
})
|
|
80
68
|
}) : null,
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
className:
|
|
83
|
-
children: /* @__PURE__ */
|
|
84
|
-
className:
|
|
85
|
-
children:
|
|
69
|
+
/* @__PURE__ */ b("div", {
|
|
70
|
+
className: o,
|
|
71
|
+
children: /* @__PURE__ */ b("div", {
|
|
72
|
+
className: j ? c : l,
|
|
73
|
+
children: z
|
|
86
74
|
})
|
|
87
75
|
}),
|
|
88
|
-
|
|
89
|
-
className:
|
|
90
|
-
children: [/* @__PURE__ */
|
|
76
|
+
j ? null : /* @__PURE__ */ x("footer", {
|
|
77
|
+
className: u,
|
|
78
|
+
children: [/* @__PURE__ */ b(n, {
|
|
91
79
|
role: "secondary",
|
|
92
80
|
type: "button",
|
|
93
|
-
disabled:
|
|
94
|
-
onClick:
|
|
81
|
+
disabled: F,
|
|
82
|
+
onClick: N,
|
|
95
83
|
children: "Back"
|
|
96
|
-
}),
|
|
84
|
+
}), M ? null : /* @__PURE__ */ b(n, {
|
|
97
85
|
role: "primary",
|
|
98
86
|
type: "button",
|
|
99
|
-
disabled:
|
|
100
|
-
onClick:
|
|
101
|
-
children:
|
|
87
|
+
disabled: I,
|
|
88
|
+
onClick: P,
|
|
89
|
+
children: L
|
|
102
90
|
})]
|
|
103
91
|
})
|
|
104
92
|
]
|
|
105
93
|
}) : null }), document.body);
|
|
106
94
|
}
|
|
107
95
|
//#endregion
|
|
108
|
-
export {
|
|
96
|
+
export { T as IntakeModal };
|