@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIjF,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAWhC,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACzE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GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAgBD;;;GAGG;AACH,eAAO,MAAM,UAAU,+
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIjF,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAWhC,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAErD,sEAAsE;AACtE,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAE/C,MAAM,WAAW,eACf,SAAQ,IAAI,CACV,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CACpE;IACD,wDAAwD;IACxD,IAAI,EAAE,YAAY,CAAC;IACnB,uFAAuF;IACvF,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,qFAAqF;IACrF,IAAI,CAAC,EAAE,cAAc,GAAG,mBAAmB,CAAC;IAC5C,iGAAiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC1D,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtD,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAgBD;;;GAGG;AACH,eAAO,MAAM,UAAU,+GAmIrB,CAAC"}
|
|
@@ -19,8 +19,8 @@ var h = d(function({ icon: d, "aria-label": h, role: g, size: _ = "md", inset: v
|
|
|
19
19
|
inset: v,
|
|
20
20
|
pressed: S
|
|
21
21
|
});
|
|
22
|
-
let R = b ? "primary" : g ?? "ghost", z = C || x, B = y === void 0 ? h : y,
|
|
23
|
-
className: e("inline-flex shrink-0 items-center justify-center text-inherit [&>svg]:size-full", c[
|
|
22
|
+
let R = b ? "primary" : g ?? "ghost", z = C || x, B = x && !C, V = B ? (e) => e.preventDefault() : D, H = y === void 0 ? h : y, U = v ? _ : null, W = v ? s[U ?? "md"] : r[_], G = e(t, "justify-center", S === !0 ? l : n[R], W, u, v && "focus-visible:ring-offset-1 focus-visible:ring-offset-surface", b && "shadow-soft-card", E), K = x ? /* @__PURE__ */ f(a, { size: v ? "xs" : _ }) : v ? /* @__PURE__ */ f("span", {
|
|
23
|
+
className: e("inline-flex shrink-0 items-center justify-center text-inherit [&>svg]:size-full", c[U ?? "md"]),
|
|
24
24
|
"aria-hidden": !0,
|
|
25
25
|
children: d
|
|
26
26
|
}) : /* @__PURE__ */ f(i, {
|
|
@@ -33,7 +33,7 @@ var h = d(function({ icon: d, "aria-label": h, role: g, size: _ = "md", inset: v
|
|
|
33
33
|
defaultTagName: "button",
|
|
34
34
|
props: T ? {
|
|
35
35
|
...I,
|
|
36
|
-
className:
|
|
36
|
+
className: G,
|
|
37
37
|
"aria-label": h,
|
|
38
38
|
"aria-current": k,
|
|
39
39
|
"aria-haspopup": A,
|
|
@@ -48,20 +48,21 @@ var h = d(function({ icon: d, "aria-label": h, role: g, size: _ = "md", inset: v
|
|
|
48
48
|
"data-size": _,
|
|
49
49
|
"data-pattern": b ? "fab" : v ? "inset" : "icon",
|
|
50
50
|
"data-loading": x || void 0,
|
|
51
|
-
title:
|
|
52
|
-
tabIndex:
|
|
53
|
-
onClick:
|
|
51
|
+
title: H === "" ? void 0 : H,
|
|
52
|
+
tabIndex: C ? -1 : I.tabIndex,
|
|
53
|
+
onClick: V,
|
|
54
54
|
onKeyDown: O,
|
|
55
55
|
id: N,
|
|
56
56
|
name: P,
|
|
57
57
|
form: F,
|
|
58
58
|
style: j && R === "ghost" ? o : void 0,
|
|
59
|
-
children:
|
|
59
|
+
children: K
|
|
60
60
|
} : {
|
|
61
61
|
...I,
|
|
62
|
-
className:
|
|
62
|
+
className: G,
|
|
63
63
|
type: w,
|
|
64
|
-
disabled:
|
|
64
|
+
disabled: C,
|
|
65
|
+
"aria-disabled": B || void 0,
|
|
65
66
|
"aria-busy": x || void 0,
|
|
66
67
|
"aria-label": h,
|
|
67
68
|
"aria-current": k,
|
|
@@ -70,8 +71,8 @@ var h = d(function({ icon: d, "aria-label": h, role: g, size: _ = "md", inset: v
|
|
|
70
71
|
"aria-controls": M,
|
|
71
72
|
"aria-pressed": S ?? I["aria-pressed"],
|
|
72
73
|
"data-pressed": S === !0 ? "" : void 0,
|
|
73
|
-
title:
|
|
74
|
-
onClick:
|
|
74
|
+
title: H === "" ? void 0 : H,
|
|
75
|
+
onClick: V,
|
|
75
76
|
onKeyDown: O,
|
|
76
77
|
id: N,
|
|
77
78
|
name: P,
|
|
@@ -81,7 +82,7 @@ var h = d(function({ icon: d, "aria-label": h, role: g, size: _ = "md", inset: v
|
|
|
81
82
|
"data-size": _,
|
|
82
83
|
"data-pattern": b ? "fab" : v ? "inset" : "icon",
|
|
83
84
|
"data-loading": x || void 0,
|
|
84
|
-
children:
|
|
85
|
+
children: K
|
|
85
86
|
}
|
|
86
87
|
});
|
|
87
88
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Circular icon-only control — square hit target from {@link iconButtonSizeClasses}. */
|
|
2
|
-
export declare const iconButtonShapeClass = "shrink-0 rounded-
|
|
2
|
+
export declare const iconButtonShapeClass = "shrink-0 rounded-[var(--radius-control)]";
|
|
3
3
|
/** Expanded disclosure/menu trigger — retain the ghost hover surface while open. */
|
|
4
4
|
export declare const iconButtonExpandedStyle: {
|
|
5
5
|
backgroundColor: "color-mix(in srgb, currentColor 5%, transparent)";
|
|
@@ -12,7 +12,7 @@ export declare const iconButtonPressedClasses = "bg-ghost-active text-fg hover:b
|
|
|
12
12
|
/** FAB pattern — raised elevation on primary fill. */
|
|
13
13
|
export declare const iconButtonFabClasses = "shadow-soft-card";
|
|
14
14
|
/** Pill shell for a compact row of ghost IconButtons — Pattern: toolbar group. */
|
|
15
|
-
export declare const iconButtonToolbarGroupClasses = "inline-flex items-center gap-1 rounded-
|
|
15
|
+
export declare const iconButtonToolbarGroupClasses = "inline-flex items-center gap-1 rounded-[var(--radius-control)] border border-border bg-surface p-1";
|
|
16
16
|
/** Inset dismiss hit targets — removable Chip trailing × (pairs with sm | md | lg). */
|
|
17
17
|
export declare const iconButtonInsetHitClasses: Record<"sm" | "md" | "lg", string>;
|
|
18
18
|
/** Inset dismiss glyph scale — paired with {@link iconButtonInsetHitClasses}. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconButtonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton/iconButtonStyles.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"iconButtonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton/iconButtonStyles.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,oBAAoB,6CAA6C,CAAC;AAE/E,oFAAoF;AACpF,eAAO,MAAM,uBAAuB;;CAEX,CAAC;AAE1B;;;GAGG;AACH,eAAO,MAAM,wBAAwB,8FACwD,CAAC;AAE9F,sDAAsD;AACtD,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD,kFAAkF;AAClF,eAAO,MAAM,6BAA6B,uGAC4D,CAAC;AAEvG,uFAAuF;AACvF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,MAAM,CAIxE,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,MAAM,CAI7E,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,2BAA2B,kEACyB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/atoms/IconButton/iconButtonStyles.ts
|
|
3
|
-
var e = "shrink-0 rounded-
|
|
3
|
+
var e = "shrink-0 rounded-[var(--radius-control)]", t = { backgroundColor: "color-mix(in srgb, currentColor 5%, transparent)" }, n = "bg-ghost-active text-fg hover:bg-ghost-active active:bg-ghost-active [&_svg]:fill-current", r = "shadow-soft-card", i = {
|
|
4
4
|
sm: "size-5",
|
|
5
5
|
md: "size-6",
|
|
6
6
|
lg: "size-7"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode, type RefObject } from "react";
|
|
2
|
+
export { inlinePillPopInKeyframes } from "./inlinePillStyles";
|
|
3
|
+
/** Layout-only — margin or placement; not for colour, size or typography overrides. */
|
|
4
|
+
export type InlinePillLayoutClassName = string;
|
|
5
|
+
export interface InlinePillProps {
|
|
6
|
+
/** The word or words in the pill: one or two short words. They stay part of the sentence. */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* A small picture on the pill's left: an `<img alt="">`, a 3D render or an SVG. Decorative (the word
|
|
10
|
+
* carries the meaning), so it's hidden from screen readers. Leave it out for a text-only pill.
|
|
11
|
+
*/
|
|
12
|
+
media?: ReactNode;
|
|
13
|
+
/** Layout-only: margin or placement. */
|
|
14
|
+
className?: InlinePillLayoutClassName;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A pill that sits inside running text and scales with it: a key word in a headline or a sentence, with
|
|
18
|
+
* an optional picture on its left. Not a control — for a filter or a removable token use `Chip`; for a
|
|
19
|
+
* status or category label use `Badge`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function InlinePill({ children, media, className }: InlinePillProps): ReactElement;
|
|
22
|
+
/** `still`: no pop-in (off, reduced motion, or no IntersectionObserver). `pending`: hidden until in view. */
|
|
23
|
+
export type InlinePillsPopInState = "still" | "pending" | "done";
|
|
24
|
+
export interface InlinePillsPopIn<T extends HTMLElement> {
|
|
25
|
+
/** Put on the element that holds the pills (the heading or its section). */
|
|
26
|
+
ref: RefObject<T | null>;
|
|
27
|
+
/** Spread onto the same element: `data-inline-pills`, which hides the pictures while pending. */
|
|
28
|
+
"data-inline-pills": InlinePillsPopInState;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Pops in the pictures of every `InlinePill` inside an element, one after another, the first time the
|
|
32
|
+
* element is 40% in view. Uses the Web Animations API with the WMDS motion tokens
|
|
33
|
+
* (`--duration-medium-max`, `--motion-beat`, `--ease-standard`), animates only transform and opacity,
|
|
34
|
+
* and does nothing under `prefers-reduced-motion` or without IntersectionObserver.
|
|
35
|
+
*
|
|
36
|
+
* ```tsx
|
|
37
|
+
* const popIn = useInlinePillsPopIn<HTMLHeadingElement>();
|
|
38
|
+
* <h2 {...popIn}>We build <InlinePill media={…}>websites</InlinePill> …</h2>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare function useInlinePillsPopIn<T extends HTMLElement>(enabled?: boolean): InlinePillsPopIn<T>;
|
|
42
|
+
//# sourceMappingURL=InlinePill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlinePill.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/InlinePill/InlinePill.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAUxH,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,uFAAuF;AACvF,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,6FAA6F;IAC7F,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,wCAAwC;IACxC,SAAS,CAAC,EAAE,yBAAyB,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,eAAe,GAAG,YAAY,CAWxF;AAED,6GAA6G;AAC7G,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAEjE,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,WAAW;IACrD,4EAA4E;IAC5E,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACzB,iGAAiG;IACjG,mBAAmB,EAAE,qBAAqB,CAAC;CAC5C;AAOD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,OAAO,UAAO,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAkC9F"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { inlinePillClasses as t, inlinePillMediaClasses as n, inlinePillPopInKeyframes as r } from "./inlinePillStyles.js";
|
|
4
|
+
import { useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/atoms/InlinePill/InlinePill.tsx
|
|
7
|
+
function u({ children: r, media: i, className: a }) {
|
|
8
|
+
return /* @__PURE__ */ l("span", {
|
|
9
|
+
className: e(t, i == null && "pl-[0.32em]", a),
|
|
10
|
+
"data-inline-pill": "",
|
|
11
|
+
children: [i == null ? null : /* @__PURE__ */ c("span", {
|
|
12
|
+
"aria-hidden": !0,
|
|
13
|
+
className: n,
|
|
14
|
+
"data-inline-pill-media": "",
|
|
15
|
+
children: i
|
|
16
|
+
}), r]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function d(e, t) {
|
|
20
|
+
let n = parseFloat(getComputedStyle(document.documentElement).getPropertyValue(e));
|
|
21
|
+
return Number.isFinite(n) ? n : t;
|
|
22
|
+
}
|
|
23
|
+
function f(e = !0) {
|
|
24
|
+
let t = o(null), [n, c] = s("still");
|
|
25
|
+
return a(() => {
|
|
26
|
+
e && "IntersectionObserver" in window && !matchMedia("(prefers-reduced-motion: reduce)").matches ? c("pending") : c("still");
|
|
27
|
+
}, [e]), i(() => {
|
|
28
|
+
let e = t.current;
|
|
29
|
+
if (n !== "pending" || !e) return;
|
|
30
|
+
let i = new IntersectionObserver(([t]) => {
|
|
31
|
+
if (!t?.isIntersecting) return;
|
|
32
|
+
i.disconnect();
|
|
33
|
+
let n = [...e.querySelectorAll("[data-inline-pill-media]")], a = d("--duration-medium-max", 550), o = Math.min(d("--motion-beat", 160), 480 / Math.max(1, n.length - 1)), s = getComputedStyle(document.documentElement).getPropertyValue("--ease-standard").trim() || "cubic-bezier(0.24, 1, 0.4, 1)";
|
|
34
|
+
n.forEach((e, t) => e.animate(r, {
|
|
35
|
+
duration: a,
|
|
36
|
+
delay: 120 + t * o,
|
|
37
|
+
easing: s,
|
|
38
|
+
fill: "backwards"
|
|
39
|
+
})), c("done");
|
|
40
|
+
}, { threshold: .4 });
|
|
41
|
+
return i.observe(e), () => i.disconnect();
|
|
42
|
+
}, [n]), {
|
|
43
|
+
ref: t,
|
|
44
|
+
"data-inline-pills": n
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { u as InlinePill, r as inlinePillPopInKeyframes, f as useInlinePillsPopIn };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InlinePill classes. Everything is in em so the pill scales with the text it sits in (a display
|
|
3
|
+
* headline, a lead paragraph, body copy).
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The pill: an inline run (not inline-flex), so it sits on the text's baseline and punctuation right
|
|
7
|
+
* after it never wraps away. Fill is the text colour at 4% (8% in dark, where 4% disappears).
|
|
8
|
+
* If a long pill wraps, it splits like text (the default `box-decoration-break: slice`): the padding stays at
|
|
9
|
+
* its two ends, so a wrapped pill can't overflow the line by its padding.
|
|
10
|
+
*/
|
|
11
|
+
export declare const inlinePillClasses: string;
|
|
12
|
+
/** Without a picture, the left padding matches the right. */
|
|
13
|
+
export declare const inlinePillNoMediaClasses = "pl-[0.32em]";
|
|
14
|
+
/**
|
|
15
|
+
* The picture: 1em square, a touch proud of the pill, held in the pill's left padding and out of the
|
|
16
|
+
* text flow, so it can never be left at a line end without its word. Anchored to the first line (an
|
|
17
|
+
* inline box that wraps spans two lines, so 50% would float between them).
|
|
18
|
+
*
|
|
19
|
+
* Hidden while an ancestor's pop-in is pending (`data-inline-pills="pending"`), never in print; tilts a
|
|
20
|
+
* little on hover where motion is allowed.
|
|
21
|
+
*/
|
|
22
|
+
export declare const inlinePillMediaClasses: string;
|
|
23
|
+
/** Pop-in keyframes: from nothing with a tilt, past full size, then settle. Transform and opacity only. */
|
|
24
|
+
export declare const inlinePillPopInKeyframes: Keyframe[];
|
|
25
|
+
/** The whole pop-in run stays under about this long, however many pills there are (ms). */
|
|
26
|
+
export declare const inlinePillPopInMaxSpread = 480;
|
|
27
|
+
//# sourceMappingURL=inlinePillStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inlinePillStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/InlinePill/inlinePillStyles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,QAG4D,CAAC;AAE3F,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,gBAAgB,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAI4D,CAAC;AAEhG,2GAA2G;AAC3G,eAAO,MAAM,wBAAwB,EAAE,QAAQ,EAI9C,CAAC;AAEF,2FAA2F;AAC3F,eAAO,MAAM,wBAAwB,MAAM,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/components/atoms/InlinePill/inlinePillStyles.ts
|
|
3
|
+
var e = "group/inline-pill relative rounded-full bg-[color-mix(in_srgb,var(--color-text-primary)_4%,transparent)] py-0 pr-[0.32em] pl-[1.3em] [[data-theme=dark]_&]:bg-[color-mix(in_srgb,var(--color-text-primary)_8%,transparent)]", t = "pl-[0.32em]", n = "absolute top-[0.14em] left-[0.15em] size-[1em] [&>img]:size-full [&>img]:object-contain [&>svg]:block [&>svg]:size-full in-data-[inline-pills=pending]:scale-0 in-data-[inline-pills=pending]:opacity-0 print:!scale-100 print:!opacity-100 motion-safe:transition-transform motion-safe:duration-[var(--duration-fast)] motion-safe:ease-[var(--ease-standard)] motion-safe:group-hover/inline-pill:-rotate-8 motion-safe:group-hover/inline-pill:scale-105", r = [
|
|
4
|
+
{
|
|
5
|
+
transform: "scale(0) rotate(-24deg)",
|
|
6
|
+
opacity: 0
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
transform: "scale(1.14) rotate(6deg)",
|
|
10
|
+
opacity: 1,
|
|
11
|
+
offset: .6
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
transform: "scale(1) rotate(0deg)",
|
|
15
|
+
opacity: 1
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
//#endregion
|
|
19
|
+
export { e as inlinePillClasses, n as inlinePillMediaClasses, t as inlinePillNoMediaClasses, r as inlinePillPopInKeyframes };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type InputHTMLAttributes, type ReactElement } from "react";
|
|
1
|
+
import { type InputHTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import { type InputMessagePosition, type InputSize, type InputStatus } from "./inputShellStyles";
|
|
3
3
|
export type { InputMessagePosition, InputSize, InputStatus } from "./inputShellStyles";
|
|
4
4
|
export { inputMessagePositions, inputSizes, inputStatuses } from "./inputShellStyles";
|
|
@@ -6,8 +6,11 @@ export { inputMessagePositions, inputSizes, inputStatuses } from "./inputShellSt
|
|
|
6
6
|
export type InputLayoutClassName = string;
|
|
7
7
|
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
8
8
|
size?: InputSize;
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Optional visible label — omit for bare inputs. No label asterisk; use `endBadge` for Required.
|
|
11
|
+
* Text or inline markup (`<strong>`, `<code>`). It names the field, so keep it to phrasing content.
|
|
12
|
+
*/
|
|
13
|
+
label?: ReactNode;
|
|
11
14
|
/** Neutral helper below the control — hidden when validation `message` is shown. */
|
|
12
15
|
description?: string;
|
|
13
16
|
/** Validation status — border + trailing icon. */
|
|
@@ -20,12 +23,14 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
20
23
|
loading?: boolean;
|
|
21
24
|
/** Leading Lucide icon. */
|
|
22
25
|
icon?: ReactElement;
|
|
26
|
+
/** Monospace value — `type-code` instead of the sans face. For a read-only key or id. */
|
|
27
|
+
mono?: boolean;
|
|
23
28
|
/**
|
|
24
29
|
* Trailing inset inside the shell — pass {@link Badge} (e.g. Required).
|
|
25
30
|
* Atoms cannot import Badge; compose at call site. Combinable with `status` / `loading`.
|
|
26
31
|
*/
|
|
27
32
|
endBadge?: ReactElement;
|
|
28
|
-
/** Inside Search — no outer shell; parent
|
|
33
|
+
/** Inside a parent pill (Search, CopyField) — no outer shell; the parent owns border and focus ring. */
|
|
29
34
|
inline?: boolean;
|
|
30
35
|
className?: InputLayoutClassName;
|
|
31
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAKf,OAAO,EA2BL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEtF,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC3D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,2GAA2G;IAC3G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,yFAAyF;IACzF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,wGAAwG;IACxG,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AA2CD;;;GAGG;AACH,eAAO,MAAM,KAAK,yGAuKhB,CAAC"}
|
|
@@ -1,105 +1,105 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../../lib/cn.js";
|
|
3
3
|
import { typographyClass as t } from "../../../lib/typography.js";
|
|
4
|
-
import { inputAttachedFieldClasses as n, inputAttachedInputClasses as r, inputBaseClasses as i, inputCompoundInnerFieldClassesFor as a, inputCompoundShellClassesFor as o, inputControlStackClasses as s, inputDisabledClasses as
|
|
5
|
-
import { InputStatusBanner as
|
|
6
|
-
import { InputTrailingAffordance as
|
|
7
|
-
import { forwardRef as
|
|
8
|
-
import { Fragment as
|
|
4
|
+
import { inputAttachedFieldClasses as n, inputAttachedInputClasses as r, inputBaseClasses as i, inputCompoundInnerFieldClassesFor as a, inputCompoundShellClassesFor as o, inputControlStackClasses as s, inputDisabledClasses as c, inputEndBadgeAndStatusGapClasses as l, inputEndBadgeGapClasses as u, inputEndBadgeWrapperClasses as ee, inputFieldStackClasses as te, inputIconGapClasses as d, inputIconPositionClasses as f, inputIconSizeClasses as p, inputInlineClasses as m, inputMessagePositions as h, inputShellClasses as g, inputSizeClasses as _, inputSizes as v, inputSoloFocusRingBaseClasses as y, inputSoloFocusRingColorClasses as b, inputSoloRadiusClasses as x, inputStatusGapClasses as S, inputStatusShellClasses as C, inputStatuses as w, inputTrailingInsetClasses as ne, inputTrailingInsetPositionClasses as re } from "./inputShellStyles.js";
|
|
5
|
+
import { InputStatusBanner as ie } from "../inputShared/InputStatusBanner.js";
|
|
6
|
+
import { InputTrailingAffordance as ae } from "../inputShared/InputTrailingAffordance.js";
|
|
7
|
+
import { forwardRef as T, useId as oe } from "react";
|
|
8
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/atoms/Input/Input.tsx
|
|
10
|
-
function
|
|
10
|
+
function k(e) {
|
|
11
11
|
e.label == null && e["aria-label"] == null && e["aria-labelledby"] == null && console.warn("[WMDS Input] Provide `label`, `aria-label`, or `aria-labelledby`.");
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
e.message != null && e.status == null && console.warn("[WMDS Input] `message` requires `status`."), e.inline && (e.label != null || e.description != null || e.status != null || e.message != null) && console.warn("[WMDS Input] `inline` is for Search
|
|
13
|
+
function A(e) {
|
|
14
|
+
e.message != null && e.status == null && console.warn("[WMDS Input] `message` requires `status`."), e.inline && (e.label != null || e.description != null || e.status != null || e.message != null) && console.warn("[WMDS Input] `inline` is for a parent pill (Search, CopyField) — omit label, description, and validation.");
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return t && n ?
|
|
16
|
+
function j(e, t, n) {
|
|
17
|
+
return t && n ? l[e] : t ? u[e] : n ? S[e] : !1;
|
|
18
18
|
}
|
|
19
|
-
var
|
|
20
|
-
let H =
|
|
21
|
-
|
|
22
|
-
label:
|
|
19
|
+
var M = T(function({ size: l = "md", label: u, description: h, status: v, message: S, messagePosition: w = "bottom", loading: T = !1, icon: M, endBadge: N, mono: P = !1, inline: F = !1, className: I, disabled: L, id: R, "aria-describedby": z, ...B }, V) {
|
|
20
|
+
let H = oe(), U = R ?? H;
|
|
21
|
+
k({
|
|
22
|
+
label: u,
|
|
23
23
|
"aria-label": B["aria-label"],
|
|
24
24
|
"aria-labelledby": B["aria-labelledby"]
|
|
25
|
-
}),
|
|
26
|
-
status:
|
|
27
|
-
message:
|
|
28
|
-
messagePosition:
|
|
29
|
-
loading:
|
|
25
|
+
}), A({
|
|
26
|
+
status: v,
|
|
27
|
+
message: S,
|
|
28
|
+
messagePosition: w,
|
|
29
|
+
loading: T,
|
|
30
30
|
inline: F,
|
|
31
|
-
label:
|
|
32
|
-
description:
|
|
31
|
+
label: u,
|
|
32
|
+
description: h
|
|
33
33
|
});
|
|
34
|
-
let W =
|
|
34
|
+
let W = S != null && S.length > 0 && v != null, G = N != null, K = !W && (T || v != null), q = M != null, J = j(l, G, K), Y = h != null && !W ? `${U}-description` : void 0, X = W ? `${U}-message` : void 0, se = [
|
|
35
35
|
z,
|
|
36
36
|
Y,
|
|
37
37
|
X
|
|
38
|
-
].filter(Boolean).join(" ") || void 0, Z = /* @__PURE__ */
|
|
39
|
-
q ? /* @__PURE__ */
|
|
40
|
-
className: e("pointer-events-none absolute top-1/2 inline-flex -translate-y-1/2 [&>svg]:size-full [&>svg]:shrink-0 [&>svg]:stroke-current",
|
|
38
|
+
].filter(Boolean).join(" ") || void 0, Z = /* @__PURE__ */ O(E, { children: [
|
|
39
|
+
q ? /* @__PURE__ */ D("span", {
|
|
40
|
+
className: e("pointer-events-none absolute top-1/2 inline-flex -translate-y-1/2 [&>svg]:size-full [&>svg]:shrink-0 [&>svg]:stroke-current", f[l], p[l]),
|
|
41
41
|
"aria-hidden": !0,
|
|
42
|
-
children:
|
|
42
|
+
children: M
|
|
43
43
|
}) : null,
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ D("input", {
|
|
45
45
|
...B,
|
|
46
46
|
ref: V,
|
|
47
47
|
id: U,
|
|
48
48
|
disabled: L,
|
|
49
|
-
"aria-invalid":
|
|
50
|
-
"aria-describedby":
|
|
51
|
-
className: e(
|
|
49
|
+
"aria-invalid": v === "error" || void 0,
|
|
50
|
+
"aria-describedby": se,
|
|
51
|
+
className: e(c, P && "type-code !font-mono !leading-none", W ? e(n, _[l], q && d[l], J, r) : e(i, F ? e(m, q && d[l], I ?? _[l]) : e(_[l], q && d[l], J, v == null ? g[l] : e("border", C[v]), x[l], y, v == null ? b.default : b[v], I)))
|
|
52
52
|
}),
|
|
53
|
-
G || K ? /* @__PURE__ */
|
|
54
|
-
className: e(
|
|
55
|
-
children: [G ? /* @__PURE__ */
|
|
56
|
-
className:
|
|
57
|
-
children:
|
|
58
|
-
}) : null, K ? /* @__PURE__ */
|
|
59
|
-
size:
|
|
60
|
-
status:
|
|
61
|
-
loading:
|
|
53
|
+
G || K ? /* @__PURE__ */ O("span", {
|
|
54
|
+
className: e(ne, re[l]),
|
|
55
|
+
children: [G ? /* @__PURE__ */ D("span", {
|
|
56
|
+
className: ee,
|
|
57
|
+
children: N
|
|
58
|
+
}) : null, K ? /* @__PURE__ */ D(ae, {
|
|
59
|
+
size: l,
|
|
60
|
+
status: T ? void 0 : v,
|
|
61
|
+
loading: T
|
|
62
62
|
}) : null]
|
|
63
63
|
}) : null
|
|
64
|
-
] }), Q = W &&
|
|
65
|
-
status:
|
|
66
|
-
message:
|
|
64
|
+
] }), Q = W && v != null && X != null ? /* @__PURE__ */ D(ie, {
|
|
65
|
+
status: v,
|
|
66
|
+
message: S,
|
|
67
67
|
messageId: X,
|
|
68
|
-
size:
|
|
69
|
-
messagePosition:
|
|
70
|
-
}) : null, $ = W &&
|
|
71
|
-
className: o(
|
|
68
|
+
size: l,
|
|
69
|
+
messagePosition: w
|
|
70
|
+
}) : null, $ = W && v != null ? /* @__PURE__ */ O("div", {
|
|
71
|
+
className: o(l, v),
|
|
72
72
|
children: [
|
|
73
|
-
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
className: a(
|
|
73
|
+
w === "top" ? Q : null,
|
|
74
|
+
/* @__PURE__ */ D("div", {
|
|
75
|
+
className: a(l, v, w),
|
|
76
76
|
children: Z
|
|
77
77
|
}),
|
|
78
|
-
|
|
78
|
+
w === "bottom" ? Q : null
|
|
79
79
|
]
|
|
80
|
-
}) : /* @__PURE__ */
|
|
80
|
+
}) : /* @__PURE__ */ D("div", {
|
|
81
81
|
className: e(F ? "relative flex min-w-0 flex-1 items-center" : s),
|
|
82
|
-
children: /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ D("div", {
|
|
83
83
|
className: "relative flex w-full items-center",
|
|
84
84
|
children: Z
|
|
85
85
|
})
|
|
86
86
|
});
|
|
87
|
-
return F ||
|
|
88
|
-
className:
|
|
87
|
+
return F || u == null && h == null ? $ : /* @__PURE__ */ O("div", {
|
|
88
|
+
className: te,
|
|
89
89
|
children: [
|
|
90
|
-
|
|
90
|
+
u == null ? null : /* @__PURE__ */ D("label", {
|
|
91
91
|
htmlFor: U,
|
|
92
92
|
className: e(t("ui-label"), L && "opacity-50"),
|
|
93
|
-
children:
|
|
93
|
+
children: u
|
|
94
94
|
}),
|
|
95
95
|
$,
|
|
96
|
-
Y == null ? null : /* @__PURE__ */
|
|
96
|
+
Y == null ? null : /* @__PURE__ */ D("p", {
|
|
97
97
|
id: Y,
|
|
98
98
|
className: t("caption"),
|
|
99
|
-
children:
|
|
99
|
+
children: h
|
|
100
100
|
})
|
|
101
101
|
]
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
104
|
//#endregion
|
|
105
|
-
export {
|
|
105
|
+
export { M as Input, h as inputMessagePositions, v as inputSizes, w as inputStatuses };
|
|
@@ -7,8 +7,14 @@ export type InputMessagePosition = (typeof inputMessagePositions)[number];
|
|
|
7
7
|
/** Input shell — text + focus ring share one eased fade (`slow` ≈ 280ms). */
|
|
8
8
|
export declare const inputShellTransitionClasses: string;
|
|
9
9
|
export declare const inputBaseClasses: string;
|
|
10
|
+
/**
|
|
11
|
+
* Monospace face for a read-only key or id (`type-code`).
|
|
12
|
+
* `!font-mono` wins over `font-sans` on the same element (`cn` does not merge).
|
|
13
|
+
* `!leading-none` keeps the single-line field's centering.
|
|
14
|
+
*/
|
|
15
|
+
export declare const inputMonoFaceClasses = "type-code !font-mono !leading-none";
|
|
10
16
|
/** Solo shell — ring sits on the input with page offset. */
|
|
11
|
-
export declare const inputSoloFocusRingBaseClasses = "focus-visible:outline-none focus-visible:ring-2
|
|
17
|
+
export declare const inputSoloFocusRingBaseClasses = "focus-visible:outline-none focus-visible:ring-2";
|
|
12
18
|
export declare const inputSoloFocusRingColorClasses: {
|
|
13
19
|
readonly default: "focus-visible:ring-focus-ring";
|
|
14
20
|
readonly error: "focus-visible:ring-error-focus-ring";
|
|
@@ -58,7 +64,7 @@ export declare function inputCompoundOuterClassesFor(size: InputSize): string;
|
|
|
58
64
|
/** @deprecated Nested tray removed. */
|
|
59
65
|
export declare const inputCompoundOuterPaddingClasses: Record<InputSize, string>;
|
|
60
66
|
/** @deprecated Use {@link inputCompoundInnerFieldClassesFor}. */
|
|
61
|
-
export declare const inputCompoundInnerClasses = "relative flex w-full items-center rounded-
|
|
67
|
+
export declare const inputCompoundInnerClasses = "relative flex w-full items-center rounded-[var(--radius-control)] border border-border-control bg-surface";
|
|
62
68
|
/** @deprecated Use {@link inputStatusShellClasses}. */
|
|
63
69
|
export declare const inputCompoundInnerBorderClasses: Record<InputStatus, string>;
|
|
64
70
|
/** @deprecated Status copy lives in {@link inputStatusBannerClasses}. */
|
|
@@ -87,9 +93,9 @@ export declare const inputCompoundWrapperClasses: Record<InputSize, string>;
|
|
|
87
93
|
export declare const inputCompoundStatusBorderClasses: Record<InputStatus, string>;
|
|
88
94
|
/** Input inside validation shell — shell owns border, bg, and focus ring. */
|
|
89
95
|
export declare const inputAttachedFieldClasses: string;
|
|
90
|
-
export declare const inputAttachedInputClasses = "rounded-none border-0 shadow-none focus-visible
|
|
96
|
+
export declare const inputAttachedInputClasses = "rounded-none border-0 shadow-none focus-visible:!outline-none focus-visible:!ring-0";
|
|
91
97
|
/** Input inside Search / inline row — parent owns shell and focus ring. */
|
|
92
|
-
export declare const inputInlineClasses = "rounded-none border-0 bg-transparent shadow-none focus-visible
|
|
98
|
+
export declare const inputInlineClasses = "rounded-none border-0 bg-transparent shadow-none focus-visible:!outline-none focus-visible:!ring-0";
|
|
93
99
|
/** @deprecated Split shells removed — use {@link inputCompoundWrapperClasses}. */
|
|
94
100
|
export declare const inputAttachedShellClasses = "border-b-0";
|
|
95
101
|
export declare const inputDisabledClasses = "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputShellStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Input/inputShellStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,6BAA8B,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,eAAO,MAAM,aAAa,0CAA2C,CAAC;AAEtE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,qBAAqB,4BAA6B,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,6EAA6E;AAC7E,eAAO,MAAM,2BAA2B,QACiE,CAAC;AAE1G,eAAO,MAAM,g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