@thewhatmatters/wmds 0.2.0
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 +53 -0
- package/CONSUMING.md +352 -0
- package/LICENSE +21 -0
- package/README.md +65 -0
- package/bin/wmds-check.mjs +173 -0
- package/dist/cluster.css +14 -0
- package/dist/collapse.css +24 -0
- package/dist/colors.css +282 -0
- package/dist/components/atoms/Avatar/Avatar.d.ts +22 -0
- package/dist/components/atoms/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/Avatar.js +52 -0
- package/dist/components/atoms/Avatar/avatarStyles.d.ts +23 -0
- package/dist/components/atoms/Avatar/avatarStyles.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/avatarStyles.js +48 -0
- package/dist/components/atoms/Badge/Badge.d.ts +47 -0
- package/dist/components/atoms/Badge/Badge.d.ts.map +1 -0
- package/dist/components/atoms/Badge/Badge.js +68 -0
- package/dist/components/atoms/Badge/BadgeIcon.d.ts +7 -0
- package/dist/components/atoms/Badge/BadgeIcon.d.ts.map +1 -0
- package/dist/components/atoms/Badge/BadgeIcon.js +14 -0
- package/dist/components/atoms/Badge/BadgeSegmentCount.d.ts +6 -0
- package/dist/components/atoms/Badge/BadgeSegmentCount.d.ts.map +1 -0
- package/dist/components/atoms/Badge/BadgeSegmentCount.js +13 -0
- package/dist/components/atoms/Badge/badgeStyles.d.ts +37 -0
- package/dist/components/atoms/Badge/badgeStyles.d.ts.map +1 -0
- package/dist/components/atoms/Badge/badgeStyles.js +46 -0
- package/dist/components/atoms/Button/Button.d.ts +77 -0
- package/dist/components/atoms/Button/Button.d.ts.map +1 -0
- package/dist/components/atoms/Button/Button.js +138 -0
- package/dist/components/atoms/Button/ButtonBadge.d.ts +5 -0
- package/dist/components/atoms/Button/ButtonBadge.d.ts.map +1 -0
- package/dist/components/atoms/Button/ButtonBadge.js +14 -0
- package/dist/components/atoms/Button/ButtonIcon.d.ts +8 -0
- package/dist/components/atoms/Button/ButtonIcon.d.ts.map +1 -0
- package/dist/components/atoms/Button/ButtonIcon.js +14 -0
- package/dist/components/atoms/Button/ButtonSpinner.d.ts +6 -0
- package/dist/components/atoms/Button/ButtonSpinner.d.ts.map +1 -0
- package/dist/components/atoms/Button/ButtonSpinner.js +13 -0
- package/dist/components/atoms/Button/ButtonStatusButton.d.ts +23 -0
- package/dist/components/atoms/Button/ButtonStatusButton.d.ts.map +1 -0
- package/dist/components/atoms/Button/ButtonStatusButton.js +43 -0
- package/dist/components/atoms/Button/ButtonStatusContent.d.ts +10 -0
- package/dist/components/atoms/Button/ButtonStatusContent.d.ts.map +1 -0
- package/dist/components/atoms/Button/ButtonStatusContent.js +92 -0
- package/dist/components/atoms/Button/buttonStatusMotion.d.ts +40 -0
- package/dist/components/atoms/Button/buttonStatusMotion.d.ts.map +1 -0
- package/dist/components/atoms/Button/buttonStatusMotion.js +100 -0
- package/dist/components/atoms/Button/buttonStatusStyles.d.ts +21 -0
- package/dist/components/atoms/Button/buttonStatusStyles.d.ts.map +1 -0
- package/dist/components/atoms/Button/buttonStatusStyles.js +39 -0
- package/dist/components/atoms/Button/buttonStyles.d.ts +47 -0
- package/dist/components/atoms/Button/buttonStyles.d.ts.map +1 -0
- package/dist/components/atoms/Button/buttonStyles.js +54 -0
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +31 -0
- package/dist/components/atoms/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/atoms/Checkbox/Checkbox.js +101 -0
- package/dist/components/atoms/Checkbox/checkboxStyles.d.ts +37 -0
- package/dist/components/atoms/Checkbox/checkboxStyles.d.ts.map +1 -0
- package/dist/components/atoms/Checkbox/checkboxStyles.js +42 -0
- package/dist/components/atoms/IconButton/IconButton.d.ts +49 -0
- package/dist/components/atoms/IconButton/IconButton.d.ts.map +1 -0
- package/dist/components/atoms/IconButton/IconButton.js +84 -0
- package/dist/components/atoms/IconButton/iconButtonStyles.d.ts +17 -0
- package/dist/components/atoms/IconButton/iconButtonStyles.d.ts.map +1 -0
- package/dist/components/atoms/IconButton/iconButtonStyles.js +13 -0
- package/dist/components/atoms/Input/Input.d.ts +37 -0
- package/dist/components/atoms/Input/Input.d.ts.map +1 -0
- package/dist/components/atoms/Input/Input.js +105 -0
- package/dist/components/atoms/Input/inputShellStyles.d.ts +99 -0
- package/dist/components/atoms/Input/inputShellStyles.d.ts.map +1 -0
- package/dist/components/atoms/Input/inputShellStyles.js +119 -0
- package/dist/components/atoms/Kbd/Kbd.d.ts +18 -0
- package/dist/components/atoms/Kbd/Kbd.d.ts.map +1 -0
- package/dist/components/atoms/Kbd/Kbd.js +15 -0
- package/dist/components/atoms/Kbd/kbdStyles.d.ts +5 -0
- package/dist/components/atoms/Kbd/kbdStyles.d.ts.map +1 -0
- package/dist/components/atoms/Kbd/kbdStyles.js +8 -0
- package/dist/components/atoms/Kbd/useKbdChoiceKeys.d.ts +21 -0
- package/dist/components/atoms/Kbd/useKbdChoiceKeys.d.ts.map +1 -0
- package/dist/components/atoms/Kbd/useKbdChoiceKeys.js +18 -0
- package/dist/components/atoms/Radio/Radio.d.ts +26 -0
- package/dist/components/atoms/Radio/Radio.d.ts.map +1 -0
- package/dist/components/atoms/Radio/Radio.js +84 -0
- package/dist/components/atoms/Radio/radioStyles.d.ts +28 -0
- package/dist/components/atoms/Radio/radioStyles.d.ts.map +1 -0
- package/dist/components/atoms/Radio/radioStyles.js +36 -0
- package/dist/components/atoms/RiveHand/RiveHand.d.ts +44 -0
- package/dist/components/atoms/RiveHand/RiveHand.d.ts.map +1 -0
- package/dist/components/atoms/RiveHand/RiveHand.js +254 -0
- package/dist/components/atoms/RiveHand/riveHandUtils.d.ts +168 -0
- package/dist/components/atoms/RiveHand/riveHandUtils.d.ts.map +1 -0
- package/dist/components/atoms/RiveHand/riveHandUtils.js +123 -0
- package/dist/components/atoms/Skeleton/Skeleton.d.ts +28 -0
- package/dist/components/atoms/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/atoms/Skeleton/Skeleton.js +32 -0
- package/dist/components/atoms/Skeleton/skeletonStyles.d.ts +23 -0
- package/dist/components/atoms/Skeleton/skeletonStyles.d.ts.map +1 -0
- package/dist/components/atoms/Skeleton/skeletonStyles.js +30 -0
- package/dist/components/atoms/Status/Status.d.ts +40 -0
- package/dist/components/atoms/Status/Status.d.ts.map +1 -0
- package/dist/components/atoms/Status/Status.js +84 -0
- package/dist/components/atoms/Status/statusDotStyles.d.ts +10 -0
- package/dist/components/atoms/Status/statusDotStyles.d.ts.map +1 -0
- package/dist/components/atoms/Status/statusDotStyles.js +17 -0
- package/dist/components/atoms/Status/statusRingStyles.d.ts +12 -0
- package/dist/components/atoms/Status/statusRingStyles.d.ts.map +1 -0
- package/dist/components/atoms/Status/statusRingStyles.js +6 -0
- package/dist/components/atoms/Switch/Switch.d.ts +27 -0
- package/dist/components/atoms/Switch/Switch.d.ts.map +1 -0
- package/dist/components/atoms/Switch/Switch.js +109 -0
- package/dist/components/atoms/Switch/switchStyles.d.ts +36 -0
- package/dist/components/atoms/Switch/switchStyles.d.ts.map +1 -0
- package/dist/components/atoms/Switch/switchStyles.js +39 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts +37 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts.map +1 -0
- package/dist/components/atoms/TextArea/TextArea.js +115 -0
- package/dist/components/atoms/TextArea/textareaShellStyles.d.ts +41 -0
- package/dist/components/atoms/TextArea/textareaShellStyles.d.ts.map +1 -0
- package/dist/components/atoms/TextArea/textareaShellStyles.js +71 -0
- package/dist/components/atoms/TextLink/TextLink.d.ts +14 -0
- package/dist/components/atoms/TextLink/TextLink.d.ts.map +1 -0
- package/dist/components/atoms/TextLink/TextLink.js +26 -0
- package/dist/components/atoms/TextLink/textLinkStyles.d.ts +3 -0
- package/dist/components/atoms/TextLink/textLinkStyles.d.ts.map +1 -0
- package/dist/components/atoms/TextLink/textLinkStyles.js +6 -0
- package/dist/components/atoms/TextSequenceShape/TextSequenceShape.d.ts +21 -0
- package/dist/components/atoms/TextSequenceShape/TextSequenceShape.d.ts.map +1 -0
- package/dist/components/atoms/TextSequenceShape/TextSequenceShape.js +175 -0
- package/dist/components/atoms/TextSequenceShape/textSequenceShapeStyles.d.ts +28 -0
- package/dist/components/atoms/TextSequenceShape/textSequenceShapeStyles.d.ts.map +1 -0
- package/dist/components/atoms/TextSequenceShape/textSequenceShapeStyles.js +39 -0
- package/dist/components/atoms/Tooltip/Tooltip.d.ts +63 -0
- package/dist/components/atoms/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/atoms/Tooltip/Tooltip.js +82 -0
- package/dist/components/atoms/Tooltip/tooltipStyles.d.ts +4 -0
- package/dist/components/atoms/Tooltip/tooltipStyles.d.ts.map +1 -0
- package/dist/components/atoms/Tooltip/tooltipStyles.js +15 -0
- package/dist/components/atoms/inputShared/InputStatusBanner.d.ts +13 -0
- package/dist/components/atoms/inputShared/InputStatusBanner.d.ts.map +1 -0
- package/dist/components/atoms/inputShared/InputStatusBanner.js +24 -0
- package/dist/components/atoms/inputShared/InputTrailingAffordance.d.ts +8 -0
- package/dist/components/atoms/inputShared/InputTrailingAffordance.d.ts.map +1 -0
- package/dist/components/atoms/inputShared/InputTrailingAffordance.js +26 -0
- package/dist/components/molecules/Accordion/Accordion.d.ts +36 -0
- package/dist/components/molecules/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/molecules/Accordion/Accordion.js +82 -0
- package/dist/components/molecules/Accordion/accordionStyles.d.ts +45 -0
- package/dist/components/molecules/Accordion/accordionStyles.d.ts.map +1 -0
- package/dist/components/molecules/Accordion/accordionStyles.js +12 -0
- package/dist/components/molecules/CalEmbed/CalEmbed.d.ts +58 -0
- package/dist/components/molecules/CalEmbed/CalEmbed.d.ts.map +1 -0
- package/dist/components/molecules/CalEmbed/CalEmbed.js +50 -0
- package/dist/components/molecules/CalEmbed/calEmbedStyles.d.ts +5 -0
- package/dist/components/molecules/CalEmbed/calEmbedStyles.d.ts.map +1 -0
- package/dist/components/molecules/CalEmbed/calEmbedStyles.js +5 -0
- package/dist/components/molecules/Card/Card.d.ts +53 -0
- package/dist/components/molecules/Card/Card.d.ts.map +1 -0
- package/dist/components/molecules/Card/Card.js +72 -0
- package/dist/components/molecules/Card/cardStyles.d.ts +82 -0
- package/dist/components/molecules/Card/cardStyles.d.ts.map +1 -0
- package/dist/components/molecules/Card/cardStyles.js +60 -0
- package/dist/components/molecules/ChatQa/ChatQa.d.ts +25 -0
- package/dist/components/molecules/ChatQa/ChatQa.d.ts.map +1 -0
- package/dist/components/molecules/ChatQa/ChatQa.js +23 -0
- package/dist/components/molecules/ChatQa/chatQaStyles.d.ts +9 -0
- package/dist/components/molecules/ChatQa/chatQaStyles.d.ts.map +1 -0
- package/dist/components/molecules/ChatQa/chatQaStyles.js +5 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +29 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.js +76 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroupContext.d.ts +14 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroupContext.d.ts.map +1 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroupContext.js +17 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroupItem.d.ts +12 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroupItem.d.ts.map +1 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroupItem.js +23 -0
- package/dist/components/molecules/CheckboxGroup/checkboxGroupStyles.d.ts +16 -0
- package/dist/components/molecules/CheckboxGroup/checkboxGroupStyles.d.ts.map +1 -0
- package/dist/components/molecules/CheckboxGroup/checkboxGroupStyles.js +15 -0
- package/dist/components/molecules/Chip/Chip.d.ts +32 -0
- package/dist/components/molecules/Chip/Chip.d.ts.map +1 -0
- package/dist/components/molecules/Chip/Chip.js +116 -0
- package/dist/components/molecules/Chip/ChipFilterGroup.d.ts +30 -0
- package/dist/components/molecules/Chip/ChipFilterGroup.d.ts.map +1 -0
- package/dist/components/molecules/Chip/ChipFilterGroup.js +45 -0
- package/dist/components/molecules/Chip/chipStyles.d.ts +12 -0
- package/dist/components/molecules/Chip/chipStyles.d.ts.map +1 -0
- package/dist/components/molecules/Chip/chipStyles.js +23 -0
- package/dist/components/molecules/DisplayControls/DisplayControls.d.ts +27 -0
- package/dist/components/molecules/DisplayControls/DisplayControls.d.ts.map +1 -0
- package/dist/components/molecules/DisplayControls/DisplayControls.js +76 -0
- package/dist/components/molecules/DisplayControls/displayControlsState.d.ts +6 -0
- package/dist/components/molecules/DisplayControls/displayControlsState.d.ts.map +1 -0
- package/dist/components/molecules/DisplayControls/displayControlsState.js +18 -0
- package/dist/components/molecules/DisplayControls/displayControlsStyles.d.ts +4 -0
- package/dist/components/molecules/DisplayControls/displayControlsStyles.d.ts.map +1 -0
- package/dist/components/molecules/DisplayControls/displayControlsStyles.js +5 -0
- package/dist/components/molecules/Dropdown/Dropdown.d.ts +9 -0
- package/dist/components/molecules/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/Dropdown.js +10 -0
- package/dist/components/molecules/Dropdown/DropdownItem.d.ts +23 -0
- package/dist/components/molecules/Dropdown/DropdownItem.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/DropdownItem.js +36 -0
- package/dist/components/molecules/Dropdown/DropdownMenu.d.ts +10 -0
- package/dist/components/molecules/Dropdown/DropdownMenu.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/DropdownMenu.js +14 -0
- package/dist/components/molecules/Dropdown/dropdownMenuPosition.d.ts +25 -0
- package/dist/components/molecules/Dropdown/dropdownMenuPosition.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/dropdownMenuPosition.js +56 -0
- package/dist/components/molecules/Dropdown/dropdownStyles.d.ts +31 -0
- package/dist/components/molecules/Dropdown/dropdownStyles.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/dropdownStyles.js +8 -0
- package/dist/components/molecules/Field/Field.d.ts +25 -0
- package/dist/components/molecules/Field/Field.d.ts.map +1 -0
- package/dist/components/molecules/Field/Field.js +80 -0
- package/dist/components/molecules/Field/fieldStyles.d.ts +16 -0
- package/dist/components/molecules/Field/fieldStyles.d.ts.map +1 -0
- package/dist/components/molecules/Field/fieldStyles.js +11 -0
- package/dist/components/molecules/FloatingActionButton/FloatingActionButton.d.ts +22 -0
- package/dist/components/molecules/FloatingActionButton/FloatingActionButton.d.ts.map +1 -0
- package/dist/components/molecules/FloatingActionButton/FloatingActionButton.js +135 -0
- package/dist/components/molecules/FloatingActionButton/floatingActionButtonStyles.d.ts +9 -0
- package/dist/components/molecules/FloatingActionButton/floatingActionButtonStyles.d.ts.map +1 -0
- package/dist/components/molecules/FloatingActionButton/floatingActionButtonStyles.js +7 -0
- package/dist/components/molecules/HeroIntro/HeroIntro.d.ts +32 -0
- package/dist/components/molecules/HeroIntro/HeroIntro.d.ts.map +1 -0
- package/dist/components/molecules/HeroIntro/HeroIntro.js +24 -0
- package/dist/components/molecules/HeroIntro/heroIntroStyles.d.ts +30 -0
- package/dist/components/molecules/HeroIntro/heroIntroStyles.d.ts.map +1 -0
- package/dist/components/molecules/HeroIntro/heroIntroStyles.js +5 -0
- package/dist/components/molecules/IntakeForm/IntakeForm.d.ts +30 -0
- package/dist/components/molecules/IntakeForm/IntakeForm.d.ts.map +1 -0
- package/dist/components/molecules/IntakeForm/IntakeForm.js +137 -0
- package/dist/components/molecules/IntakeForm/intakeFormStyles.d.ts +3 -0
- package/dist/components/molecules/IntakeForm/intakeFormStyles.d.ts.map +1 -0
- package/dist/components/molecules/IntakeForm/intakeFormStyles.js +5 -0
- package/dist/components/molecules/NavList/NavList.d.ts +55 -0
- package/dist/components/molecules/NavList/NavList.d.ts.map +1 -0
- package/dist/components/molecules/NavList/NavList.js +103 -0
- package/dist/components/molecules/NavList/navListStyles.d.ts +15 -0
- package/dist/components/molecules/NavList/navListStyles.d.ts.map +1 -0
- package/dist/components/molecules/NavList/navListStyles.js +11 -0
- package/dist/components/molecules/PageHeader/PageHeader.d.ts +24 -0
- package/dist/components/molecules/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/molecules/PageHeader/PageHeader.js +43 -0
- package/dist/components/molecules/PageHeader/pageHeaderStyles.d.ts +9 -0
- package/dist/components/molecules/PageHeader/pageHeaderStyles.d.ts.map +1 -0
- package/dist/components/molecules/PageHeader/pageHeaderStyles.js +20 -0
- package/dist/components/molecules/PillGroup/PillGroup.d.ts +31 -0
- package/dist/components/molecules/PillGroup/PillGroup.d.ts.map +1 -0
- package/dist/components/molecules/PillGroup/PillGroup.js +53 -0
- package/dist/components/molecules/PillGroup/pillGroupStyles.d.ts +13 -0
- package/dist/components/molecules/PillGroup/pillGroupStyles.d.ts.map +1 -0
- package/dist/components/molecules/PillGroup/pillGroupStyles.js +7 -0
- package/dist/components/molecules/PromptBar/PromptBar.d.ts +33 -0
- package/dist/components/molecules/PromptBar/PromptBar.d.ts.map +1 -0
- package/dist/components/molecules/PromptBar/PromptBar.js +56 -0
- package/dist/components/molecules/PromptBar/promptBarStyles.d.ts +24 -0
- package/dist/components/molecules/PromptBar/promptBarStyles.d.ts.map +1 -0
- package/dist/components/molecules/PromptBar/promptBarStyles.js +6 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +34 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.js +76 -0
- package/dist/components/molecules/RadioGroup/RadioGroupContext.d.ts +16 -0
- package/dist/components/molecules/RadioGroup/RadioGroupContext.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/RadioGroupContext.js +23 -0
- package/dist/components/molecules/RadioGroup/RadioGroupItem.d.ts +12 -0
- package/dist/components/molecules/RadioGroup/RadioGroupItem.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/RadioGroupItem.js +21 -0
- package/dist/components/molecules/RadioGroup/radioGroupStyles.d.ts +16 -0
- package/dist/components/molecules/RadioGroup/radioGroupStyles.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/radioGroupStyles.js +15 -0
- package/dist/components/molecules/Search/Search.d.ts +24 -0
- package/dist/components/molecules/Search/Search.d.ts.map +1 -0
- package/dist/components/molecules/Search/Search.js +33 -0
- package/dist/components/molecules/Search/searchStyles.d.ts +10 -0
- package/dist/components/molecules/Search/searchStyles.d.ts.map +1 -0
- package/dist/components/molecules/Search/searchStyles.js +15 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControl.d.ts +25 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControl.js +36 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControlContext.d.ts +16 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControlContext.d.ts.map +1 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControlContext.js +18 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControlItem.d.ts +25 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControlItem.d.ts.map +1 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControlItem.js +55 -0
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.d.ts +31 -0
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.d.ts.map +1 -0
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.js +28 -0
- package/dist/components/molecules/Select/Select.d.ts +34 -0
- package/dist/components/molecules/Select/Select.d.ts.map +1 -0
- package/dist/components/molecules/Select/Select.js +161 -0
- package/dist/components/molecules/Select/selectMenuPosition.d.ts +11 -0
- package/dist/components/molecules/Select/selectMenuPosition.d.ts.map +1 -0
- package/dist/components/molecules/Select/selectMenuPosition.js +14 -0
- package/dist/components/molecules/Select/selectStyles.d.ts +21 -0
- package/dist/components/molecules/Select/selectStyles.d.ts.map +1 -0
- package/dist/components/molecules/Select/selectStyles.js +21 -0
- package/dist/components/molecules/SelectableCard/SelectableCard.d.ts +33 -0
- package/dist/components/molecules/SelectableCard/SelectableCard.d.ts.map +1 -0
- package/dist/components/molecules/SelectableCard/SelectableCard.js +84 -0
- package/dist/components/molecules/SelectableCard/selectableCardStyles.d.ts +14 -0
- package/dist/components/molecules/SelectableCard/selectableCardStyles.d.ts.map +1 -0
- package/dist/components/molecules/SelectableCard/selectableCardStyles.js +7 -0
- package/dist/components/molecules/Stat/Stat.d.ts +47 -0
- package/dist/components/molecules/Stat/Stat.d.ts.map +1 -0
- package/dist/components/molecules/Stat/Stat.js +76 -0
- package/dist/components/molecules/Stat/statStyles.d.ts +23 -0
- package/dist/components/molecules/Stat/statStyles.d.ts.map +1 -0
- package/dist/components/molecules/Stat/statStyles.js +37 -0
- package/dist/components/molecules/StepProgress/StepProgress.d.ts +21 -0
- package/dist/components/molecules/StepProgress/StepProgress.d.ts.map +1 -0
- package/dist/components/molecules/StepProgress/StepProgress.js +44 -0
- package/dist/components/molecules/StepProgress/stepProgressStyles.d.ts +7 -0
- package/dist/components/molecules/StepProgress/stepProgressStyles.d.ts.map +1 -0
- package/dist/components/molecules/StepProgress/stepProgressStyles.js +7 -0
- package/dist/components/molecules/TaskRows/TaskRows.d.ts +67 -0
- package/dist/components/molecules/TaskRows/TaskRows.d.ts.map +1 -0
- package/dist/components/molecules/TaskRows/TaskRows.js +164 -0
- package/dist/components/molecules/TaskRows/taskRowsStyles.d.ts +32 -0
- package/dist/components/molecules/TaskRows/taskRowsStyles.d.ts.map +1 -0
- package/dist/components/molecules/TaskRows/taskRowsStyles.js +16 -0
- package/dist/components/molecules/TextSequence/TextSequence.d.ts +47 -0
- package/dist/components/molecules/TextSequence/TextSequence.d.ts.map +1 -0
- package/dist/components/molecules/TextSequence/TextSequence.js +242 -0
- package/dist/components/molecules/TextSequence/textSequenceStyles.d.ts +10 -0
- package/dist/components/molecules/TextSequence/textSequenceStyles.d.ts.map +1 -0
- package/dist/components/molecules/TextSequence/textSequenceStyles.js +5 -0
- package/dist/components/organisms/Chart/Chart.d.ts +76 -0
- package/dist/components/organisms/Chart/Chart.d.ts.map +1 -0
- package/dist/components/organisms/Chart/Chart.js +152 -0
- package/dist/components/organisms/Chart/ChartCartesian.d.ts +54 -0
- package/dist/components/organisms/Chart/ChartCartesian.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartCartesian.js +479 -0
- package/dist/components/organisms/Chart/ChartDistributionStrip.d.ts +24 -0
- package/dist/components/organisms/Chart/ChartDistributionStrip.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartDistributionStrip.js +156 -0
- package/dist/components/organisms/Chart/ChartHeatmap.d.ts +24 -0
- package/dist/components/organisms/Chart/ChartHeatmap.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartHeatmap.js +163 -0
- package/dist/components/organisms/Chart/ChartHoverTooltip.d.ts +13 -0
- package/dist/components/organisms/Chart/ChartHoverTooltip.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartHoverTooltip.js +29 -0
- package/dist/components/organisms/Chart/ChartLegend.d.ts +13 -0
- package/dist/components/organisms/Chart/ChartLegend.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartLegend.js +30 -0
- package/dist/components/organisms/Chart/ChartLoading.d.ts +12 -0
- package/dist/components/organisms/Chart/ChartLoading.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartLoading.js +24 -0
- package/dist/components/organisms/Chart/ChartRankedBars.d.ts +18 -0
- package/dist/components/organisms/Chart/ChartRankedBars.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartRankedBars.js +52 -0
- package/dist/components/organisms/Chart/ChartTooltipContent.d.ts +19 -0
- package/dist/components/organisms/Chart/ChartTooltipContent.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartTooltipContent.js +36 -0
- package/dist/components/organisms/Chart/ChartUnitGrid.d.ts +17 -0
- package/dist/components/organisms/Chart/ChartUnitGrid.d.ts.map +1 -0
- package/dist/components/organisms/Chart/ChartUnitGrid.js +95 -0
- package/dist/components/organisms/Chart/chartCartesianContext.d.ts +50 -0
- package/dist/components/organisms/Chart/chartCartesianContext.d.ts.map +1 -0
- package/dist/components/organisms/Chart/chartCartesianContext.js +18 -0
- package/dist/components/organisms/Chart/chartCartesianGaps.d.ts +74 -0
- package/dist/components/organisms/Chart/chartCartesianGaps.d.ts.map +1 -0
- package/dist/components/organisms/Chart/chartCartesianGaps.js +92 -0
- package/dist/components/organisms/Chart/chartCartesianMotion.d.ts +11 -0
- package/dist/components/organisms/Chart/chartCartesianMotion.d.ts.map +1 -0
- package/dist/components/organisms/Chart/chartCartesianMotion.js +15 -0
- package/dist/components/organisms/Chart/chartExploration.d.ts +8 -0
- package/dist/components/organisms/Chart/chartExploration.d.ts.map +1 -0
- package/dist/components/organisms/Chart/chartExploration.js +31 -0
- package/dist/components/organisms/Chart/chartSegmentedBarMotion.d.ts +12 -0
- package/dist/components/organisms/Chart/chartSegmentedBarMotion.d.ts.map +1 -0
- package/dist/components/organisms/Chart/chartSegmentedBarMotion.js +9 -0
- package/dist/components/organisms/Chart/chartStyles.d.ts +93 -0
- package/dist/components/organisms/Chart/chartStyles.d.ts.map +1 -0
- package/dist/components/organisms/Chart/chartStyles.js +11 -0
- package/dist/components/organisms/Confetti/Confetti.d.ts +35 -0
- package/dist/components/organisms/Confetti/Confetti.d.ts.map +1 -0
- package/dist/components/organisms/Confetti/Confetti.js +96 -0
- package/dist/components/organisms/Confetti/confettiPhysics.d.ts +116 -0
- package/dist/components/organisms/Confetti/confettiPhysics.d.ts.map +1 -0
- package/dist/components/organisms/Confetti/confettiPhysics.js +121 -0
- package/dist/components/organisms/Confetti/confettiStyles.d.ts +3 -0
- package/dist/components/organisms/Confetti/confettiStyles.d.ts.map +1 -0
- package/dist/components/organisms/Confetti/confettiStyles.js +5 -0
- package/dist/components/organisms/Dialog/AlertDialog.d.ts +31 -0
- package/dist/components/organisms/Dialog/AlertDialog.d.ts.map +1 -0
- package/dist/components/organisms/Dialog/AlertDialog.js +80 -0
- package/dist/components/organisms/Dialog/Dialog.d.ts +54 -0
- package/dist/components/organisms/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/organisms/Dialog/Dialog.js +158 -0
- package/dist/components/organisms/Dialog/DialogContext.d.ts +22 -0
- package/dist/components/organisms/Dialog/DialogContext.d.ts.map +1 -0
- package/dist/components/organisms/Dialog/DialogContext.js +25 -0
- package/dist/components/organisms/Dialog/OverlayPanelHeader.d.ts +21 -0
- package/dist/components/organisms/Dialog/OverlayPanelHeader.d.ts.map +1 -0
- package/dist/components/organisms/Dialog/OverlayPanelHeader.js +50 -0
- package/dist/components/organisms/Dialog/dialogStyles.d.ts +66 -0
- package/dist/components/organisms/Dialog/dialogStyles.d.ts.map +1 -0
- package/dist/components/organisms/Dialog/dialogStyles.js +24 -0
- package/dist/components/organisms/FooterReveal/FooterReveal.d.ts +78 -0
- package/dist/components/organisms/FooterReveal/FooterReveal.d.ts.map +1 -0
- package/dist/components/organisms/FooterReveal/FooterReveal.js +208 -0
- package/dist/components/organisms/FooterReveal/FooterRevealRuled.d.ts +40 -0
- package/dist/components/organisms/FooterReveal/FooterRevealRuled.d.ts.map +1 -0
- package/dist/components/organisms/FooterReveal/FooterRevealRuled.js +120 -0
- package/dist/components/organisms/FooterReveal/footerRevealAt.d.ts +8 -0
- package/dist/components/organisms/FooterReveal/footerRevealAt.d.ts.map +1 -0
- package/dist/components/organisms/FooterReveal/footerRevealAt.js +7 -0
- package/dist/components/organisms/FooterReveal/footerRevealStyles.d.ts +142 -0
- package/dist/components/organisms/FooterReveal/footerRevealStyles.d.ts.map +1 -0
- package/dist/components/organisms/FooterReveal/footerRevealStyles.js +12 -0
- package/dist/components/organisms/FooterReveal/footerRevealWordmark.d.ts +37 -0
- package/dist/components/organisms/FooterReveal/footerRevealWordmark.d.ts.map +1 -0
- package/dist/components/organisms/FooterReveal/footerRevealWordmark.js +51 -0
- package/dist/components/organisms/HeroTileStack/HeroTileStack.d.ts +62 -0
- package/dist/components/organisms/HeroTileStack/HeroTileStack.d.ts.map +1 -0
- package/dist/components/organisms/HeroTileStack/HeroTileStack.js +257 -0
- package/dist/components/organisms/HeroTileStack/heroTileScatter.d.ts +120 -0
- package/dist/components/organisms/HeroTileStack/heroTileScatter.d.ts.map +1 -0
- package/dist/components/organisms/HeroTileStack/heroTileScatter.js +83 -0
- package/dist/components/organisms/HeroTileStack/heroTileStackStyles.d.ts +33 -0
- package/dist/components/organisms/HeroTileStack/heroTileStackStyles.d.ts.map +1 -0
- package/dist/components/organisms/HeroTileStack/heroTileStackStyles.js +11 -0
- package/dist/components/organisms/IntakeConfirmation/IntakeConfirmation.d.ts +33 -0
- package/dist/components/organisms/IntakeConfirmation/IntakeConfirmation.d.ts.map +1 -0
- package/dist/components/organisms/IntakeConfirmation/IntakeConfirmation.js +77 -0
- package/dist/components/organisms/IntakeConfirmation/intakeConfirmationStyles.d.ts +22 -0
- package/dist/components/organisms/IntakeConfirmation/intakeConfirmationStyles.d.ts.map +1 -0
- package/dist/components/organisms/IntakeConfirmation/intakeConfirmationStyles.js +25 -0
- package/dist/components/organisms/IntakeModal/IntakeModal.d.ts +33 -0
- package/dist/components/organisms/IntakeModal/IntakeModal.d.ts.map +1 -0
- package/dist/components/organisms/IntakeModal/IntakeModal.js +108 -0
- package/dist/components/organisms/IntakeModal/intakeModalStyles.d.ts +14 -0
- package/dist/components/organisms/IntakeModal/intakeModalStyles.d.ts.map +1 -0
- package/dist/components/organisms/IntakeModal/intakeModalStyles.js +7 -0
- package/dist/components/organisms/MoreMenu/MoreMenu.d.ts +28 -0
- package/dist/components/organisms/MoreMenu/MoreMenu.d.ts.map +1 -0
- package/dist/components/organisms/MoreMenu/MoreMenu.js +133 -0
- package/dist/components/organisms/MoreMenu/moreMenuStyles.d.ts +3 -0
- package/dist/components/organisms/MoreMenu/moreMenuStyles.d.ts.map +1 -0
- package/dist/components/organisms/MoreMenu/moreMenuStyles.js +5 -0
- package/dist/components/organisms/Panel/Panel.d.ts +40 -0
- package/dist/components/organisms/Panel/Panel.d.ts.map +1 -0
- package/dist/components/organisms/Panel/Panel.js +135 -0
- package/dist/components/organisms/Panel/PanelContext.d.ts +19 -0
- package/dist/components/organisms/Panel/PanelContext.d.ts.map +1 -0
- package/dist/components/organisms/Panel/PanelContext.js +25 -0
- package/dist/components/organisms/Panel/panelStyles.d.ts +17 -0
- package/dist/components/organisms/Panel/panelStyles.d.ts.map +1 -0
- package/dist/components/organisms/Panel/panelStyles.js +25 -0
- package/dist/components/organisms/ScrollHorizontal/ScrollHorizontal.d.ts +74 -0
- package/dist/components/organisms/ScrollHorizontal/ScrollHorizontal.d.ts.map +1 -0
- package/dist/components/organisms/ScrollHorizontal/ScrollHorizontal.js +163 -0
- package/dist/components/organisms/ScrollHorizontal/ScrollHorizontalIntro.d.ts +41 -0
- package/dist/components/organisms/ScrollHorizontal/ScrollHorizontalIntro.d.ts.map +1 -0
- package/dist/components/organisms/ScrollHorizontal/ScrollHorizontalIntro.js +40 -0
- package/dist/components/organisms/ScrollHorizontal/scrollHorizontalIntroContext.d.ts +3 -0
- package/dist/components/organisms/ScrollHorizontal/scrollHorizontalIntroContext.d.ts.map +1 -0
- package/dist/components/organisms/ScrollHorizontal/scrollHorizontalIntroContext.js +6 -0
- package/dist/components/organisms/ScrollHorizontal/scrollHorizontalMath.d.ts +167 -0
- package/dist/components/organisms/ScrollHorizontal/scrollHorizontalMath.d.ts.map +1 -0
- package/dist/components/organisms/ScrollHorizontal/scrollHorizontalMath.js +136 -0
- package/dist/components/organisms/ScrollHorizontal/scrollHorizontalStyles.d.ts +84 -0
- package/dist/components/organisms/ScrollHorizontal/scrollHorizontalStyles.d.ts.map +1 -0
- package/dist/components/organisms/ScrollHorizontal/scrollHorizontalStyles.js +79 -0
- package/dist/components/organisms/Sheet/Sheet.d.ts +44 -0
- package/dist/components/organisms/Sheet/Sheet.d.ts.map +1 -0
- package/dist/components/organisms/Sheet/Sheet.js +152 -0
- package/dist/components/organisms/Sheet/SheetContext.d.ts +20 -0
- package/dist/components/organisms/Sheet/SheetContext.d.ts.map +1 -0
- package/dist/components/organisms/Sheet/SheetContext.js +25 -0
- package/dist/components/organisms/Sheet/sheetStyles.d.ts +30 -0
- package/dist/components/organisms/Sheet/sheetStyles.d.ts.map +1 -0
- package/dist/components/organisms/Sheet/sheetStyles.js +72 -0
- package/dist/components/organisms/SiteNav/SiteNav.d.ts +170 -0
- package/dist/components/organisms/SiteNav/SiteNav.d.ts.map +1 -0
- package/dist/components/organisms/SiteNav/SiteNav.js +536 -0
- package/dist/components/organisms/SiteNav/siteNavStyles.d.ts +128 -0
- package/dist/components/organisms/SiteNav/siteNavStyles.d.ts.map +1 -0
- package/dist/components/organisms/SiteNav/siteNavStyles.js +25 -0
- package/dist/components/organisms/SiteNav/useSiteNavCollapse.d.ts +18 -0
- package/dist/components/organisms/SiteNav/useSiteNavCollapse.d.ts.map +1 -0
- package/dist/components/organisms/SiteNav/useSiteNavCollapse.js +34 -0
- package/dist/components/organisms/Tab/Tab.d.ts +27 -0
- package/dist/components/organisms/Tab/Tab.d.ts.map +1 -0
- package/dist/components/organisms/Tab/Tab.js +223 -0
- package/dist/components/organisms/Tab/tabOverflow.d.ts +14 -0
- package/dist/components/organisms/Tab/tabOverflow.d.ts.map +1 -0
- package/dist/components/organisms/Tab/tabOverflow.js +26 -0
- package/dist/components/organisms/Tab/tabStyles.d.ts +16 -0
- package/dist/components/organisms/Tab/tabStyles.d.ts.map +1 -0
- package/dist/components/organisms/Tab/tabStyles.js +17 -0
- package/dist/components/organisms/Toast/Toast.d.ts +17 -0
- package/dist/components/organisms/Toast/Toast.d.ts.map +1 -0
- package/dist/components/organisms/Toast/Toast.js +150 -0
- package/dist/components/organisms/Toast/toastStore.d.ts +41 -0
- package/dist/components/organisms/Toast/toastStore.d.ts.map +1 -0
- package/dist/components/organisms/Toast/toastStore.js +60 -0
- package/dist/components/organisms/Toast/toastStyles.d.ts +11 -0
- package/dist/components/organisms/Toast/toastStyles.d.ts.map +1 -0
- package/dist/components/organisms/Toast/toastStyles.js +21 -0
- package/dist/files/geist-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/files/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/files/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/files/geist-latin-wght-normal.woff2 +0 -0
- package/dist/files/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/files/geist-mono-cyrillic-wght-normal.woff2 +0 -0
- package/dist/files/geist-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/files/geist-mono-latin-wght-normal.woff2 +0 -0
- package/dist/files/geist-mono-symbols2-wght-normal.woff2 +0 -0
- package/dist/files/geist-mono-vietnamese-wght-normal.woff2 +0 -0
- package/dist/files/geist-vietnamese-wght-normal.woff2 +0 -0
- package/dist/fonts.css +124 -0
- package/dist/grid.css +214 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +122 -0
- package/dist/lib/GridOverlay.d.ts +23 -0
- package/dist/lib/GridOverlay.d.ts.map +1 -0
- package/dist/lib/GridOverlay.js +78 -0
- package/dist/lib/backgroundPatterns.d.ts +27 -0
- package/dist/lib/backgroundPatterns.d.ts.map +1 -0
- package/dist/lib/backgroundPatterns.js +21 -0
- package/dist/lib/chartSampleData.d.ts +20 -0
- package/dist/lib/chartSampleData.d.ts.map +1 -0
- package/dist/lib/chartTheme.d.ts +367 -0
- package/dist/lib/chartTheme.d.ts.map +1 -0
- package/dist/lib/chartTheme.js +329 -0
- package/dist/lib/clusterScale.d.ts +48 -0
- package/dist/lib/clusterScale.d.ts.map +1 -0
- package/dist/lib/clusterScale.js +48 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +7 -0
- package/dist/lib/compositionAudit.d.ts +59 -0
- package/dist/lib/compositionAudit.d.ts.map +1 -0
- package/dist/lib/dialogOverlay.d.ts +7 -0
- package/dist/lib/dialogOverlay.d.ts.map +1 -0
- package/dist/lib/dialogOverlay.js +41 -0
- package/dist/lib/displayCascade.d.ts +27 -0
- package/dist/lib/displayCascade.d.ts.map +1 -0
- package/dist/lib/gridOverlayUtils.d.ts +34 -0
- package/dist/lib/gridOverlayUtils.d.ts.map +1 -0
- package/dist/lib/gridOverlayUtils.js +43 -0
- package/dist/lib/insetWell.d.ts +19 -0
- package/dist/lib/insetWell.d.ts.map +1 -0
- package/dist/lib/insetWell.js +5 -0
- package/dist/lib/motion.d.ts +81 -0
- package/dist/lib/motion.d.ts.map +1 -0
- package/dist/lib/motion.js +119 -0
- package/dist/lib/segmentedControl.d.ts +9 -0
- package/dist/lib/segmentedControl.d.ts.map +1 -0
- package/dist/lib/segmentedControl.js +6 -0
- package/dist/lib/semanticVariants.d.ts +5 -0
- package/dist/lib/semanticVariants.d.ts.map +1 -0
- package/dist/lib/shadows.d.ts +17 -0
- package/dist/lib/shadows.d.ts.map +1 -0
- package/dist/lib/storyCopySource.d.ts +16 -0
- package/dist/lib/storyCopySource.d.ts.map +1 -0
- package/dist/lib/tableLayout/index.d.ts +4 -0
- package/dist/lib/tableLayout/index.d.ts.map +1 -0
- package/dist/lib/tableLayout/tableLayout.d.ts +24 -0
- package/dist/lib/tableLayout/tableLayout.d.ts.map +1 -0
- package/dist/lib/tableLayout/tableMeasurer.d.ts +21 -0
- package/dist/lib/tableLayout/tableMeasurer.d.ts.map +1 -0
- package/dist/lib/tableLayout/useTableLayout.d.ts +6 -0
- package/dist/lib/tableLayout/useTableLayout.d.ts.map +1 -0
- package/dist/lib/typography.d.ts +93 -0
- package/dist/lib/typography.d.ts.map +1 -0
- package/dist/lib/typography.js +170 -0
- package/dist/lib/useScrollThreshold.d.ts +22 -0
- package/dist/lib/useScrollThreshold.d.ts.map +1 -0
- package/dist/lib/useScrollThreshold.js +29 -0
- package/dist/lib/viewports.d.ts +120 -0
- package/dist/lib/viewports.d.ts.map +1 -0
- package/dist/motion.css +73 -0
- package/dist/patterns.css +37 -0
- package/dist/scrollFade.css +380 -0
- package/dist/shape.css +8 -0
- package/dist/sources.css +70 -0
- package/dist/stateColors.css +73 -0
- package/dist/styles.css +2 -0
- package/dist/theme.css +200 -0
- package/dist/typography.css +224 -0
- package/docs/README.md +27 -0
- package/docs/component-contracts.md +27 -0
- package/docs/components.md +61 -0
- package/docs/consumer-agents.md +34 -0
- package/docs/exports.json +803 -0
- package/docs/patterns/components-avatar--dropdown-row.tsx +20 -0
- package/docs/patterns/components-badge--with-avatar.tsx +28 -0
- package/docs/patterns/components-button-button--destructive-action.tsx +7 -0
- package/docs/patterns/components-button-button--ghost-action.tsx +7 -0
- package/docs/patterns/components-button-button--inverse-action.tsx +7 -0
- package/docs/patterns/components-button-button--link-render.tsx +14 -0
- package/docs/patterns/components-button-button--multi-state-badge.tsx +16 -0
- package/docs/patterns/components-button-button--outline-mono.tsx +10 -0
- package/docs/patterns/components-button-button--primary-action.tsx +7 -0
- package/docs/patterns/components-button-button--row-hug.tsx +15 -0
- package/docs/patterns/components-button-button--row-layout.tsx +14 -0
- package/docs/patterns/components-button-button--secondary-action.tsx +7 -0
- package/docs/patterns/components-button-button--suggestion-pills.tsx +17 -0
- package/docs/patterns/components-button-button--with-count.tsx +9 -0
- package/docs/patterns/components-button-button--with-icon.tsx +22 -0
- package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +22 -0
- package/docs/patterns/components-calembed--pattern-skip-in-footer.tsx +25 -0
- package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +44 -0
- package/docs/patterns/components-card-card--headerless-media.tsx +23 -0
- package/docs/patterns/components-card-card--outlined-layout.tsx +16 -0
- package/docs/patterns/components-card-card--pinned-height.tsx +39 -0
- package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +48 -0
- package/docs/patterns/components-chart--audience-activity-heatmap.tsx +26 -0
- package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +25 -0
- package/docs/patterns/components-chart--occupancy-history-in-card.tsx +44 -0
- package/docs/patterns/components-chart--occupancy-in-card.tsx +49 -0
- package/docs/patterns/components-chart--post-reach-distribution.tsx +21 -0
- package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +16 -0
- package/docs/patterns/components-chart--unit-grid-composition.tsx +22 -0
- package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +25 -0
- package/docs/patterns/components-checkbox-checkbox--default.tsx +17 -0
- package/docs/patterns/components-checkbox-checkbox--with-description.tsx +18 -0
- package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +21 -0
- package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +28 -0
- package/docs/patterns/components-dialog--default-dialog.tsx +39 -0
- package/docs/patterns/components-dialog--form-dialog.tsx +41 -0
- package/docs/patterns/components-displaycontrols--page-utilities.tsx +36 -0
- package/docs/patterns/components-field--horizontal-input.tsx +9 -0
- package/docs/patterns/components-field--horizontal-text-area.tsx +9 -0
- package/docs/patterns/components-field--multi-control.tsx +10 -0
- package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +94 -0
- package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +121 -0
- package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +114 -0
- package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +76 -0
- package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +42 -0
- package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +123 -0
- package/docs/patterns/components-herointro--two-line-intro.tsx +15 -0
- package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +72 -0
- package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +84 -0
- package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +92 -0
- package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +20 -0
- package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +13 -0
- package/docs/patterns/components-intakeform--about-you-pattern.tsx +12 -0
- package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +32 -0
- package/docs/patterns/components-kbd--command-row.tsx +13 -0
- package/docs/patterns/components-kbd--numbered-choices.tsx +53 -0
- package/docs/patterns/components-kbd--shortcut.tsx +11 -0
- package/docs/patterns/components-moremenu--action-menu.tsx +36 -0
- package/docs/patterns/components-moremenu--in-card-header.tsx +72 -0
- package/docs/patterns/components-navlist--side-nav-settings.tsx +58 -0
- package/docs/patterns/components-pageheader--app-header-pattern.tsx +40 -0
- package/docs/patterns/components-pageheader--page-section-header.tsx +20 -0
- package/docs/patterns/components-pageheader--toolbar-header.tsx +37 -0
- package/docs/patterns/components-panel--end-detail-rail.tsx +65 -0
- package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +22 -0
- package/docs/patterns/components-promptbar--pattern-marketing-composer.tsx +37 -0
- package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +20 -0
- package/docs/patterns/components-radio-radiogroup--default.tsx +21 -0
- package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +22 -0
- package/docs/patterns/components-scrollhorizontal--with-intro.tsx +42 -0
- package/docs/patterns/components-sheet--bottom-sheet.tsx +40 -0
- package/docs/patterns/components-sheet--end-sheet.tsx +33 -0
- package/docs/patterns/components-sitenav--brand-and-cta.tsx +17 -0
- package/docs/patterns/components-sitenav--centered-links.tsx +20 -0
- package/docs/patterns/components-sitenav--compact.tsx +24 -0
- package/docs/patterns/components-sitenav--marketing-header.tsx +80 -0
- package/docs/patterns/components-sitenav--mega-menu.tsx +51 -0
- package/docs/patterns/components-stat--insights-row.tsx +28 -0
- package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +9 -0
- package/docs/patterns/components-switch--default.tsx +17 -0
- package/docs/patterns/components-switch--settings-row.tsx +19 -0
- package/docs/patterns/components-tab--settings-pages.tsx +21 -0
- package/docs/patterns/components-taskrows--action-details.tsx +40 -0
- package/docs/patterns/components-taskrows--capsules.tsx +14 -0
- package/docs/patterns/components-taskrows--card-with-status-rows.tsx +30 -0
- package/docs/patterns/components-taskrows--controlled-expand.tsx +31 -0
- package/docs/patterns/components-taskrows--custom-slots.tsx +21 -0
- package/docs/patterns/components-taskrows--status-list.tsx +23 -0
- package/docs/patterns/components-taskrows--tag-chips.tsx +19 -0
- package/docs/patterns/components-textlink--external-destination.tsx +9 -0
- package/docs/patterns/components-textlink--inline-prose.tsx +9 -0
- package/docs/patterns/components-textlink--supporting-copy.tsx +9 -0
- package/docs/patterns/components-textsequence--default.tsx +16 -0
- package/docs/patterns/components-textsequence--reduced-motion.tsx +16 -0
- package/docs/patterns/components-textsequence--shapes.tsx +40 -0
- package/docs/patterns/components-toast--stacked-notifications.tsx +31 -0
- package/docs/patterns/components-tooltip--controlled.tsx +20 -0
- package/docs/patterns/components-tooltip--disabled-control.tsx +20 -0
- package/docs/patterns/components-tooltip--icon-action.tsx +21 -0
- package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +17 -0
- package/docs/patterns/components-tooltip--placement.tsx +12 -0
- package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +24 -0
- package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +25 -0
- package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +78 -0
- package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +140 -0
- package/docs/patterns/guides-profile-typography--editorial-profile.tsx +81 -0
- package/docs/patterns/index.json +1006 -0
- package/docs/patterns/sites-pitchkit-account-settings--account-settings-owner.tsx +265 -0
- package/docs/patterns/sites-pitchkit-creator-identity--creator-identity-owner-settings.tsx +154 -0
- package/docs/patterns/sites-pitchkit-creator-identity--creator-identity-public.tsx +96 -0
- package/docs/patterns/sites-pitchkit-insights-and-kit--creator-insights-loading.tsx +1006 -0
- package/docs/patterns/sites-pitchkit-insights-and-kit--creator-insights.tsx +1031 -0
- package/docs/patterns/sites-pitchkit-insights-and-kit--insufficient-audience-data.tsx +1015 -0
- package/docs/patterns/sites-pitchkit-insights-and-kit--insufficient-reach-and-audience-data.tsx +1017 -0
- package/docs/patterns/sites-pitchkit-insights-and-kit--insufficient-reach-data.tsx +1033 -0
- package/docs/patterns/sites-pitchkit-insights-and-kit--owner-pitch-kit.tsx +838 -0
- package/docs/patterns/sites-pitchkit-insights-and-kit--shareable-pitch-kit.tsx +608 -0
- package/docs/patterns/sites-pitchkit-intro--intro-owner.tsx +161 -0
- package/docs/patterns/sites-pitchkit-intro--intro-public.tsx +111 -0
- package/docs/patterns/sites-pitchkit-past-brands--past-brands-owner.tsx +611 -0
- package/docs/patterns/sites-pitchkit-past-brands--past-brands-public.tsx +299 -0
- package/docs/patterns/sites-pitchkit-theme-picker--theme-picker-owner.tsx +832 -0
- package/docs/patterns/sites-whatmatters-intake--start-a-project-pattern.tsx +234 -0
- package/docs/patterns/sites-whatmatters-marketing-landing--marketing-landing.tsx +87 -0
- package/docs/patterns/sites-whatmatters-prompt-chat--landing-to-chat.tsx +899 -0
- package/docs/patterns/sites-whatmatters-rfp-submitted--rfp-submitted.tsx +302 -0
- package/package.json +123 -0
- package/public/rive/CREDITS.md +13 -0
- package/public/rive/interactive-icon-set.riv +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { IconButton as t } from "../../atoms/IconButton/IconButton.js";
|
|
4
|
+
import { Dropdown as n } from "../../molecules/Dropdown/Dropdown.js";
|
|
5
|
+
import { measureDropdownMenuStyle as r } from "../../molecules/Dropdown/dropdownMenuPosition.js";
|
|
6
|
+
import { moreMenuRootClasses as i } from "./moreMenuStyles.js";
|
|
7
|
+
import { useCallback as a, useEffect as o, useId as s, useLayoutEffect as c, useRef as l, useState as u } from "react";
|
|
8
|
+
import { EllipsisVertical as d } from "lucide-react";
|
|
9
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
|
+
//#region src/components/organisms/MoreMenu/MoreMenu.tsx
|
|
11
|
+
function m(e) {
|
|
12
|
+
e.items.length === 0 && console.warn("[WMDS MoreMenu] `items` must not be empty.");
|
|
13
|
+
}
|
|
14
|
+
function h(e) {
|
|
15
|
+
return e.map((e) => ({
|
|
16
|
+
label: e.label,
|
|
17
|
+
start: e.start,
|
|
18
|
+
end: e.end
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
function g({ "aria-label": g, items: _, onAction: v, size: y = "sm", disabled: b = !1, className: x }) {
|
|
22
|
+
let S = s(), C = l(null), w = l(null), [T, E] = u(!1), [D, O] = u(null), [k, A] = u(0);
|
|
23
|
+
m({
|
|
24
|
+
"aria-label": g,
|
|
25
|
+
items: _
|
|
26
|
+
});
|
|
27
|
+
let j = a(() => {
|
|
28
|
+
E(!1), O(null);
|
|
29
|
+
}, []), M = a(() => {
|
|
30
|
+
let e = w.current;
|
|
31
|
+
e != null && O(r(e, h(_), {
|
|
32
|
+
align: "end",
|
|
33
|
+
widthMode: "content"
|
|
34
|
+
})), E(!0);
|
|
35
|
+
}, [_]), N = a((e) => {
|
|
36
|
+
v?.(e), j();
|
|
37
|
+
}, [j, v]), P = a(() => {
|
|
38
|
+
let e = w.current;
|
|
39
|
+
e != null && O(r(e, h(_), {
|
|
40
|
+
align: "end",
|
|
41
|
+
widthMode: "content"
|
|
42
|
+
}));
|
|
43
|
+
}, [_]);
|
|
44
|
+
c(() => {
|
|
45
|
+
if (T) return P(), window.addEventListener("resize", P), window.addEventListener("scroll", P, !0), () => {
|
|
46
|
+
window.removeEventListener("resize", P), window.removeEventListener("scroll", P, !0);
|
|
47
|
+
};
|
|
48
|
+
}, [T, P]), o(() => {
|
|
49
|
+
if (!T) return;
|
|
50
|
+
function e(e) {
|
|
51
|
+
C.current != null && !C.current.contains(e.target) && j();
|
|
52
|
+
}
|
|
53
|
+
return document.addEventListener("mousedown", e), () => {
|
|
54
|
+
document.removeEventListener("mousedown", e);
|
|
55
|
+
};
|
|
56
|
+
}, [j, T]), o(() => {
|
|
57
|
+
T && A((e) => Math.min(e, Math.max(_.length - 1, 0)));
|
|
58
|
+
}, [_.length, T]);
|
|
59
|
+
function F(e) {
|
|
60
|
+
A((t) => {
|
|
61
|
+
if (_.length === 0) return 0;
|
|
62
|
+
let n = t;
|
|
63
|
+
for (let t = 0; t < _.length; t += 1) if (n = (n + e + _.length) % _.length, !_[n]?.disabled) return n;
|
|
64
|
+
return t;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function I(e) {
|
|
68
|
+
if (!b) switch (e.key) {
|
|
69
|
+
case "ArrowDown":
|
|
70
|
+
e.preventDefault(), T ? F(1) : M();
|
|
71
|
+
break;
|
|
72
|
+
case "ArrowUp":
|
|
73
|
+
e.preventDefault(), T ? F(-1) : M();
|
|
74
|
+
break;
|
|
75
|
+
case "Enter":
|
|
76
|
+
case " ":
|
|
77
|
+
if (e.preventDefault(), T) {
|
|
78
|
+
let e = _[k];
|
|
79
|
+
e != null && !e.disabled && N(e.id);
|
|
80
|
+
} else M();
|
|
81
|
+
break;
|
|
82
|
+
case "Escape": e.preventDefault(), j();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return /* @__PURE__ */ p("div", {
|
|
86
|
+
ref: C,
|
|
87
|
+
className: e(i, x),
|
|
88
|
+
children: [/* @__PURE__ */ f("div", {
|
|
89
|
+
ref: w,
|
|
90
|
+
className: "inline-flex",
|
|
91
|
+
children: /* @__PURE__ */ f(t, {
|
|
92
|
+
size: y,
|
|
93
|
+
role: "ghost",
|
|
94
|
+
icon: /* @__PURE__ */ f(d, { strokeWidth: 2 }),
|
|
95
|
+
"aria-label": g,
|
|
96
|
+
"aria-haspopup": "menu",
|
|
97
|
+
"aria-expanded": T,
|
|
98
|
+
"aria-controls": T ? S : void 0,
|
|
99
|
+
disabled: b,
|
|
100
|
+
onClick: () => {
|
|
101
|
+
b || (T ? j() : M());
|
|
102
|
+
},
|
|
103
|
+
onKeyDown: I
|
|
104
|
+
})
|
|
105
|
+
}), T && D != null ? /* @__PURE__ */ f(n.Menu, {
|
|
106
|
+
id: S,
|
|
107
|
+
role: "menu",
|
|
108
|
+
"aria-label": g,
|
|
109
|
+
style: D,
|
|
110
|
+
children: _.map((e, t) => /* @__PURE__ */ f("li", {
|
|
111
|
+
role: "presentation",
|
|
112
|
+
children: /* @__PURE__ */ f(n.Item, {
|
|
113
|
+
role: "menuitem",
|
|
114
|
+
tabIndex: -1,
|
|
115
|
+
truncate: !1,
|
|
116
|
+
active: t === k,
|
|
117
|
+
disabled: e.disabled,
|
|
118
|
+
start: e.start,
|
|
119
|
+
end: e.end,
|
|
120
|
+
onMouseEnter: () => {
|
|
121
|
+
e.disabled || A(t);
|
|
122
|
+
},
|
|
123
|
+
onClick: () => {
|
|
124
|
+
e.disabled || N(e.id);
|
|
125
|
+
},
|
|
126
|
+
children: e.label
|
|
127
|
+
})
|
|
128
|
+
}, e.id))
|
|
129
|
+
}) : null]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
export { g as MoreMenu };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moreMenuStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/MoreMenu/moreMenuStyles.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,eAAO,MAAM,mBAAmB,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { panelSides, panelSizes, type PanelSide, type PanelSize } from "./panelStyles";
|
|
3
|
+
export type { PanelSide, PanelSize } from "./panelStyles";
|
|
4
|
+
export { panelSides, panelSizes };
|
|
5
|
+
/** Layout-only — placement and size own dimensions. */
|
|
6
|
+
export type PanelLayoutClassName = string;
|
|
7
|
+
export interface PanelProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
onOpenChange: (open: boolean) => void;
|
|
10
|
+
/** Close on Escape — default `true`. */
|
|
11
|
+
dismissOnEscape?: boolean;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface PanelContentProps {
|
|
15
|
+
/** Edge attachment — default `end`. Side rails only (no `bottom` — use **Sheet**). */
|
|
16
|
+
side?: PanelSide;
|
|
17
|
+
size?: PanelSize;
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
description?: ReactNode;
|
|
20
|
+
headerStart?: ReactNode;
|
|
21
|
+
showClose?: boolean;
|
|
22
|
+
footer?: ReactNode;
|
|
23
|
+
className?: PanelLayoutClassName;
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
declare function PanelRoot({ open, onOpenChange, dismissOnEscape, children, }: PanelProps): import("react").JSX.Element;
|
|
27
|
+
declare function PanelTrigger({ children, className, }: {
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
className?: PanelLayoutClassName;
|
|
30
|
+
}): import("react").JSX.Element;
|
|
31
|
+
declare function PanelContent({ side, size, title, description, headerStart, showClose, footer, className, children, }: PanelContentProps): import("react").JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* Persistent edge flyover — non-blocking visual scrim, no scroll lock, no focus trap.
|
|
34
|
+
* Page stays interactive; use **Sheet** when the flow should block the canvas.
|
|
35
|
+
*/
|
|
36
|
+
export declare const Panel: typeof PanelRoot & {
|
|
37
|
+
Trigger: typeof PanelTrigger;
|
|
38
|
+
Content: typeof PanelContent;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=Panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAef,OAAO,EAOL,UAAU,EAEV,UAAU,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAElC,uDAAuD;AACvD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,wCAAwC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,sFAAsF;IACtF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAiGD,iBAAS,SAAS,CAAC,EACjB,IAAI,EACJ,YAAY,EACZ,eAAsB,EACtB,QAAQ,GACT,EAAE,UAAU,+BAkBZ;AAED,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC,+BAmBA;AAED,iBAAS,YAAY,CAAC,EACpB,IAAY,EACZ,IAAW,EACX,KAAK,EACL,WAAW,EACX,WAAW,EACX,SAAgB,EAChB,MAAM,EACN,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,+BAyDnB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK;;;CAGhB,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { overlayPanelBodyScrollClasses as t, overlayPanelChromeClasses as n, overlayPanelFooterClasses as r, overlayPanelFooterDelineatedInnerClasses as i, overlayPanelFooterDelineatedShellClasses as a, overlayPanelFooterHairlineClasses as o, overlayPanelSectionStackClasses as s } from "../Dialog/dialogStyles.js";
|
|
4
|
+
import { OverlayPanelHeader as c } from "../Dialog/OverlayPanelHeader.js";
|
|
5
|
+
import { PanelProvider as l, usePanelContext as u, usePanelLabelIds as d } from "./PanelContext.js";
|
|
6
|
+
import { sheetPanelPlacementClasses as f } from "../Sheet/sheetStyles.js";
|
|
7
|
+
import { panelBackdropClasses as p, panelMotionTransition as m, panelMotionVariants as h, panelOverlayRootClasses as g, panelShellClasses as _, panelSides as v, panelSizeClasses as y, panelSizes as b } from "./panelStyles.js";
|
|
8
|
+
import { useCallback as x, useEffect as S, useRef as C } from "react";
|
|
9
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
10
|
+
import { AnimatePresence as E, motion as D } from "motion/react";
|
|
11
|
+
import { createPortal as O } from "react-dom";
|
|
12
|
+
//#region src/components/organisms/Panel/Panel.tsx
|
|
13
|
+
function k({ side: t, size: r, "aria-labelledby": i, "aria-describedby": a, children: o }) {
|
|
14
|
+
let { open: s, onOpenChange: c, dismissOnEscape: l, triggerRef: d } = u("PanelPortal"), v = C(null), b = C(null), k = x(() => {
|
|
15
|
+
c(!1);
|
|
16
|
+
}, [c]);
|
|
17
|
+
return S(() => {
|
|
18
|
+
if (s) return b.current = d.current ?? document.activeElement, () => {
|
|
19
|
+
b.current?.focus?.();
|
|
20
|
+
};
|
|
21
|
+
}, [s, d]), S(() => {
|
|
22
|
+
if (!s || !l) return;
|
|
23
|
+
function e(e) {
|
|
24
|
+
e.key === "Escape" && (e.preventDefault(), k());
|
|
25
|
+
}
|
|
26
|
+
return document.addEventListener("keydown", e), () => {
|
|
27
|
+
document.removeEventListener("keydown", e);
|
|
28
|
+
};
|
|
29
|
+
}, [
|
|
30
|
+
k,
|
|
31
|
+
l,
|
|
32
|
+
s
|
|
33
|
+
]), typeof document > "u" ? null : O(/* @__PURE__ */ w(E, { children: s ? /* @__PURE__ */ T(D.div, {
|
|
34
|
+
className: g[t],
|
|
35
|
+
initial: { opacity: 0 },
|
|
36
|
+
animate: { opacity: 1 },
|
|
37
|
+
exit: { opacity: 0 },
|
|
38
|
+
transition: m(t),
|
|
39
|
+
children: [/* @__PURE__ */ w("div", {
|
|
40
|
+
className: p,
|
|
41
|
+
"aria-hidden": "true"
|
|
42
|
+
}), /* @__PURE__ */ w(D.div, {
|
|
43
|
+
ref: v,
|
|
44
|
+
className: e(_, f[t], y(t, r), n),
|
|
45
|
+
role: "dialog",
|
|
46
|
+
"aria-modal": "false",
|
|
47
|
+
"aria-labelledby": i,
|
|
48
|
+
"aria-describedby": a,
|
|
49
|
+
variants: h(t),
|
|
50
|
+
initial: "hidden",
|
|
51
|
+
animate: "visible",
|
|
52
|
+
exit: "exit",
|
|
53
|
+
transition: m(t),
|
|
54
|
+
children: o
|
|
55
|
+
})]
|
|
56
|
+
}) : null }), document.body);
|
|
57
|
+
}
|
|
58
|
+
function A({ open: e, onOpenChange: t, dismissOnEscape: n = !0, children: r }) {
|
|
59
|
+
let { titleId: i, descriptionId: a } = d("panel"), o = C(null);
|
|
60
|
+
return /* @__PURE__ */ w(l, {
|
|
61
|
+
value: {
|
|
62
|
+
open: e,
|
|
63
|
+
onOpenChange: t,
|
|
64
|
+
titleId: i,
|
|
65
|
+
descriptionId: a,
|
|
66
|
+
dismissOnEscape: n,
|
|
67
|
+
triggerRef: o
|
|
68
|
+
},
|
|
69
|
+
children: r
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function j({ children: e, className: t }) {
|
|
73
|
+
let { onOpenChange: n, triggerRef: r } = u("Panel.Trigger");
|
|
74
|
+
return /* @__PURE__ */ w("span", {
|
|
75
|
+
ref: r,
|
|
76
|
+
className: t,
|
|
77
|
+
onClick: (e) => {
|
|
78
|
+
let t = e.target.closest("button, a[href]");
|
|
79
|
+
t instanceof HTMLElement && (r.current = t), n(!0);
|
|
80
|
+
},
|
|
81
|
+
children: e
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function M({ side: n = "end", size: l = "md", title: d, description: f, headerStart: p, showClose: m = !0, footer: h, className: g, children: _ }) {
|
|
85
|
+
let { titleId: v, descriptionId: y, onOpenChange: b } = u("Panel.Content"), x = d != null, S = f != null, C = _ != null || !x && S, E = h != null;
|
|
86
|
+
return /* @__PURE__ */ w(k, {
|
|
87
|
+
side: n,
|
|
88
|
+
size: l,
|
|
89
|
+
"aria-labelledby": x ? v : void 0,
|
|
90
|
+
"aria-describedby": S ? y : void 0,
|
|
91
|
+
children: /* @__PURE__ */ T("div", {
|
|
92
|
+
className: e(s, h == null ? "pb-4" : void 0, g),
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ w(c, {
|
|
95
|
+
titleId: v,
|
|
96
|
+
descriptionId: y,
|
|
97
|
+
title: d,
|
|
98
|
+
description: f,
|
|
99
|
+
headerStart: p,
|
|
100
|
+
showClose: m,
|
|
101
|
+
closeLabel: "Close panel",
|
|
102
|
+
onClose: () => b(!1),
|
|
103
|
+
delineated: C || E
|
|
104
|
+
}),
|
|
105
|
+
C ? /* @__PURE__ */ T("div", {
|
|
106
|
+
className: t,
|
|
107
|
+
children: [!x && S ? /* @__PURE__ */ w("p", {
|
|
108
|
+
id: y,
|
|
109
|
+
className: "text-muted",
|
|
110
|
+
children: f
|
|
111
|
+
}) : null, _]
|
|
112
|
+
}) : null,
|
|
113
|
+
E ? C ? /* @__PURE__ */ T("footer", {
|
|
114
|
+
className: a,
|
|
115
|
+
children: [/* @__PURE__ */ w("hr", {
|
|
116
|
+
className: o,
|
|
117
|
+
"aria-hidden": "true"
|
|
118
|
+
}), /* @__PURE__ */ w("div", {
|
|
119
|
+
className: i,
|
|
120
|
+
children: h
|
|
121
|
+
})]
|
|
122
|
+
}) : /* @__PURE__ */ w("footer", {
|
|
123
|
+
className: e(r, "pb-4"),
|
|
124
|
+
children: h
|
|
125
|
+
}) : null
|
|
126
|
+
]
|
|
127
|
+
})
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
var N = Object.assign(A, {
|
|
131
|
+
Trigger: j,
|
|
132
|
+
Content: M
|
|
133
|
+
});
|
|
134
|
+
//#endregion
|
|
135
|
+
export { N as Panel, v as panelSides, b as panelSizes };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface PanelContextValue {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
titleId: string;
|
|
6
|
+
descriptionId: string;
|
|
7
|
+
dismissOnEscape: boolean;
|
|
8
|
+
triggerRef: React.RefObject<HTMLElement | null>;
|
|
9
|
+
}
|
|
10
|
+
export declare function PanelProvider({ value, children, }: {
|
|
11
|
+
value: PanelContextValue;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
export declare function usePanelContext(component: string): PanelContextValue;
|
|
15
|
+
export declare function usePanelLabelIds(prefix: string): {
|
|
16
|
+
titleId: string;
|
|
17
|
+
descriptionId: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=PanelContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelContext.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Panel/PanelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACjD;AAID,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAEA;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,iBAAiB,CAMpE;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM;;;EAM9C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext as e, useContext as t, useId as n } from "react";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/organisms/Panel/PanelContext.tsx
|
|
5
|
+
var i = e(null);
|
|
6
|
+
function a({ value: e, children: t }) {
|
|
7
|
+
return /* @__PURE__ */ r(i.Provider, {
|
|
8
|
+
value: e,
|
|
9
|
+
children: t
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function o(e) {
|
|
13
|
+
let n = t(i);
|
|
14
|
+
if (n == null) throw Error(`[WMDS ${e}] must be used within \`Panel\`.`);
|
|
15
|
+
return n;
|
|
16
|
+
}
|
|
17
|
+
function s(e) {
|
|
18
|
+
let t = n();
|
|
19
|
+
return {
|
|
20
|
+
titleId: `${e}-title${t}`,
|
|
21
|
+
descriptionId: `${e}-description${t}`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as PanelProvider, o as usePanelContext, s as usePanelLabelIds };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sheetPanelPlacementClasses } from "../Sheet/sheetStyles";
|
|
2
|
+
export declare const panelSides: readonly ["end", "start"];
|
|
3
|
+
export type PanelSide = (typeof panelSides)[number];
|
|
4
|
+
export declare const panelSizes: readonly ["sm", "md", "lg"];
|
|
5
|
+
export type PanelSize = (typeof panelSizes)[number];
|
|
6
|
+
/** Full-viewport stack — visual scrim + edge panel; outside clicks pass through. */
|
|
7
|
+
export declare const panelOverlayRootClasses: Record<PanelSide, string>;
|
|
8
|
+
/** Non-blocking dim — inherits pointer-events-none from root; page stays interactive. */
|
|
9
|
+
export declare const panelBackdropClasses: string;
|
|
10
|
+
export declare const panelShellClasses: string;
|
|
11
|
+
/** Cross-axis size — width on side panels (same tokens as **Sheet** `end` / `start`). */
|
|
12
|
+
export declare function panelSizeClasses(side: PanelSide, size: PanelSize): string;
|
|
13
|
+
export { sheetPanelPlacementClasses as panelPlacementClasses };
|
|
14
|
+
export { overlayPanelBodyScrollClasses as panelBodyScrollClasses } from "../Dialog/dialogStyles";
|
|
15
|
+
export declare function panelMotionVariants(side: PanelSide): import("motion-dom").Variants;
|
|
16
|
+
export declare function panelMotionTransition(side: PanelSide): import("motion-dom").Transition;
|
|
17
|
+
//# sourceMappingURL=panelStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panelStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Panel/panelStyles.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,0BAA0B,EAE3B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,UAAU,2BAA4B,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,eAAO,MAAM,UAAU,6BAA8B,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,oFAAoF;AACpF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAG7D,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,oBAAoB,QAAmD,CAAC;AAErF,eAAO,MAAM,iBAAiB,QAK7B,CAAC;AAEF,yFAAyF;AACzF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,CAEzE;AAED,OAAO,EAAE,0BAA0B,IAAI,qBAAqB,EAAE,CAAC;AAE/D,OAAO,EAAE,6BAA6B,IAAI,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEjG,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,iCAElD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,SAAS,mCAEpD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { cardBaseClasses as t, cardLayoutShellClasses as n, cardLayoutShellTopClasses as r } from "../../molecules/Card/cardStyles.js";
|
|
4
|
+
import { dialogBackdropClasses as i } from "../Dialog/dialogStyles.js";
|
|
5
|
+
import { sheetPanelMotionTransition as a, sheetPanelMotionVariants as o, sheetPanelPlacementClasses as s, sheetPanelSizeClasses as c } from "../Sheet/sheetStyles.js";
|
|
6
|
+
//#region src/components/organisms/Panel/panelStyles.ts
|
|
7
|
+
var l = ["end", "start"], u = [
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg"
|
|
11
|
+
], d = {
|
|
12
|
+
end: "fixed inset-0 z-[100] flex flex-row justify-end pointer-events-none",
|
|
13
|
+
start: "fixed inset-0 z-[100] flex flex-row justify-start pointer-events-none"
|
|
14
|
+
}, f = e(i, "pointer-events-none"), p = e(t, n, r(), "pointer-events-auto relative z-[1] h-full max-h-full min-h-0 bg-surface shadow-soft-card");
|
|
15
|
+
function m(e, t) {
|
|
16
|
+
return c[e][t];
|
|
17
|
+
}
|
|
18
|
+
function h(e) {
|
|
19
|
+
return o(e);
|
|
20
|
+
}
|
|
21
|
+
function g(e) {
|
|
22
|
+
return a(e);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { f as panelBackdropClasses, g as panelMotionTransition, h as panelMotionVariants, d as panelOverlayRootClasses, s as panelPlacementClasses, p as panelShellClasses, l as panelSides, m as panelSizeClasses, u as panelSizes };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { ScrollHorizontalIntro } from "./ScrollHorizontalIntro";
|
|
3
|
+
/** Layout-only — width and margin. Do not restyle the cards here. */
|
|
4
|
+
export type ScrollHorizontalLayoutClassName = string;
|
|
5
|
+
export interface ScrollHorizontalItem {
|
|
6
|
+
id: string;
|
|
7
|
+
/** Accessible name. Rendered for assistive tech only (`sr-only`). */
|
|
8
|
+
label: string;
|
|
9
|
+
/**
|
|
10
|
+
* CSS color for the solid tile. Pass a semantic token, for example
|
|
11
|
+
* `var(--color-brand)`. Omit to cycle the placeholder palette.
|
|
12
|
+
*/
|
|
13
|
+
color?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ScrollHorizontalProps {
|
|
16
|
+
items: ScrollHorizontalItem[];
|
|
17
|
+
/**
|
|
18
|
+
* Optional section name. `sr-only` while the window is pinned (it stays the
|
|
19
|
+
* accessible name). Visible above the row when motion is reduced.
|
|
20
|
+
* Ignored when `intro` is set — the intro badge names the section instead.
|
|
21
|
+
*/
|
|
22
|
+
heading?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* First panel of the track: a left-aligned statement, then the tiles.
|
|
25
|
+
* Pass **ScrollHorizontal.Intro**. Scroll translates the panel off to the left.
|
|
26
|
+
* Reduced motion renders it as a block above the native row. Replaces `heading`.
|
|
27
|
+
*/
|
|
28
|
+
intro?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* After the last card is centered, keep the window pinned and grow that card
|
|
31
|
+
* until it fills the viewport. Default off — the track releases on the last card.
|
|
32
|
+
*/
|
|
33
|
+
expandLast?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Content for the full-bleed last tile. Mounted on the motion layer and, for
|
|
36
|
+
* reduced motion, in the static section. One of those hosts is hidden.
|
|
37
|
+
*/
|
|
38
|
+
expanded?: ReactNode;
|
|
39
|
+
className?: ScrollHorizontalLayoutClassName;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Horizontal gallery driven by vertical scroll. The track is 300svh. A sticky
|
|
43
|
+
* svh window, one card wide and centered, holds the row. Scroll progress maps
|
|
44
|
+
* to translateX from the first card centered to the last.
|
|
45
|
+
*
|
|
46
|
+
* `expandLast` lengthens the track to 400svh. The horizontal travel still uses
|
|
47
|
+
* the first two pinned viewports. The third grows the last tile with a
|
|
48
|
+
* clip-path on a full-viewport layer, from the centered card to inset 0, and
|
|
49
|
+
* takes the radius to 0. The window then releases, so that tile scrolls away.
|
|
50
|
+
* The section box ends on that tile. Block padding after the section paints
|
|
51
|
+
* the page background between the tile and a following footer.
|
|
52
|
+
*
|
|
53
|
+
* `prefers-reduced-motion` and `MotionConfig` `reducedMotion="always"` skip
|
|
54
|
+
* the transform: the track height is auto, the window is not sticky, and the
|
|
55
|
+
* row scrolls natively on the inline axis. With `expandLast`, the last tile
|
|
56
|
+
* follows as a static `h-svh` section. `heading` is `sr-only` on the pinned
|
|
57
|
+
* window and visible above that scroller.
|
|
58
|
+
*
|
|
59
|
+
* `intro` (**ScrollHorizontal.Intro**) is the first panel. Its left edge is the
|
|
60
|
+
* page-grid content start (the same inset as `grid-page`), clear of the site
|
|
61
|
+
* nav, with the tiles to its right. Vertical scroll carries that panel off the
|
|
62
|
+
* left edge with the tiles. The badge names the section. Reduced motion
|
|
63
|
+
* stacks the same panel above the native row and keeps the inset.
|
|
64
|
+
*
|
|
65
|
+
* The server render and the hydration render both use the motion shell
|
|
66
|
+
* (`data-reduce="false"`). The OS query is read in `useLayoutEffect`, before
|
|
67
|
+
* paint. `motion-reduce:` classes cover that first paint without a markup mismatch.
|
|
68
|
+
*/
|
|
69
|
+
declare function ScrollHorizontalRoot({ items, heading, intro, expandLast, expanded, className, }: ScrollHorizontalProps): import("react").JSX.Element;
|
|
70
|
+
export declare const ScrollHorizontal: typeof ScrollHorizontalRoot & {
|
|
71
|
+
Intro: typeof ScrollHorizontalIntro;
|
|
72
|
+
};
|
|
73
|
+
export type { ScrollHorizontalIntroAction, ScrollHorizontalIntroProps } from "./ScrollHorizontalIntro";
|
|
74
|
+
//# sourceMappingURL=ScrollHorizontal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollHorizontal.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/ScrollHorizontal/ScrollHorizontal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAqBf,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAqBhE,qEAAqE;AACrE,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,+BAA+B,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,iBAAS,oBAAoB,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,KAAK,EACL,UAAkB,EAClB,QAAQ,EACR,SAAS,GACV,EAAE,qBAAqB,+BAyQvB;AAED,eAAO,MAAM,gBAAgB;;CAE3B,CAAC;AAEH,YAAY,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
4
|
+
import { scrollHorizontalDistance as t, scrollHorizontalExpandAmount as n, scrollHorizontalExpandClip as r, scrollHorizontalExpandedOpacity as i, scrollHorizontalHorizontalEnd as a, scrollHorizontalItemColor as o, scrollHorizontalLeadFrame as ee, scrollHorizontalNominalExpandMetrics as s, scrollHorizontalNominalMetrics as c, scrollHorizontalParseGap as te, scrollHorizontalPeerOpacity as l, scrollHorizontalPhaseProgress as u, scrollHorizontalReadFrame as d, scrollHorizontalReadMetrics as f, scrollHorizontalReadTranslateX as ne, scrollHorizontalRestLeft as re, scrollHorizontalTranslateX as p } from "./scrollHorizontalMath.js";
|
|
5
|
+
import { ScrollHorizontalIntroContext as m } from "./scrollHorizontalIntroContext.js";
|
|
6
|
+
import { scrollHorizontalExpandFillClasses as ie, scrollHorizontalExpandLayerClasses as ae, scrollHorizontalExpandedSectionClasses as oe, scrollHorizontalExpandedSlotClasses as se, scrollHorizontalHeadingClasses as ce, scrollHorizontalIntroPanelClasses as le, scrollHorizontalIntroTrackClasses as ue, scrollHorizontalIntroWindowClasses as de, scrollHorizontalItemClasses as h, scrollHorizontalLabelClasses as g, scrollHorizontalRootClasses as fe, scrollHorizontalRootExpandClasses as pe, scrollHorizontalRowClasses as _, scrollHorizontalStickyClasses as me, scrollHorizontalWindowClasses as he } from "./scrollHorizontalStyles.js";
|
|
7
|
+
import { ScrollHorizontalIntro as v } from "./ScrollHorizontalIntro.js";
|
|
8
|
+
import { useContext as y, useId as b, useLayoutEffect as x, useRef as S, useState as ge } from "react";
|
|
9
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
10
|
+
import { MotionConfigContext as _e, motion as T, useMotionValue as E, useScroll as ve, useTransform as D } from "motion/react";
|
|
11
|
+
//#region src/components/organisms/ScrollHorizontal/ScrollHorizontal.tsx
|
|
12
|
+
function O({ items: v, heading: O, intro: k, expandLast: A = !1, expanded: j, className: ye }) {
|
|
13
|
+
let M = b(), N = b(), P = k != null && k !== !1, F = S(null), I = S(null), L = S(null), R = S(null), z = S(null), B = E(0), V = E(s(1440, 900)), [be, xe] = ge(!1), { reducedMotion: Se } = y(_e), H = be || Se === "always", U = a(A), W = Math.max(0, v.length - 1), G = v[W], K = G ? o(G.color, W) : "transparent", { scrollYProgress: q } = ve({
|
|
14
|
+
target: F,
|
|
15
|
+
offset: ["start start", "end end"]
|
|
16
|
+
}), J = D(() => p(u(q.get(), U), B.get(), !1)), Ce = D(() => {
|
|
17
|
+
if (!A) return "inset(0px)";
|
|
18
|
+
let e = q.get();
|
|
19
|
+
return r(u(e, U), n(e, U), V.get(), v.length);
|
|
20
|
+
}), Y = D(() => l(A ? n(q.get(), U) : 0)), X = D(() => i(A ? n(q.get(), U) : 0)), we = D(X, (e) => e > .9 ? "auto" : "none");
|
|
21
|
+
x(() => {
|
|
22
|
+
if (typeof window.matchMedia != "function") return;
|
|
23
|
+
let e = window.matchMedia("(prefers-reduced-motion: reduce)"), t = () => xe(e.matches);
|
|
24
|
+
return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
25
|
+
}, []), x(() => {
|
|
26
|
+
let e = z.current, n = L.current, r = I.current;
|
|
27
|
+
if (!e || !n) {
|
|
28
|
+
B.set(0);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
let i = () => {
|
|
32
|
+
let i = R.current;
|
|
33
|
+
if (P && i && r) {
|
|
34
|
+
let t = d(r, e, n, window.innerWidth, window.innerHeight), a = ne(getComputedStyle(i).transform), o = r.getBoundingClientRect(), s = e.getBoundingClientRect().left - a - o.left, c = te(getComputedStyle(n).columnGap), l = t.cardWidth + (c > 0 ? c : t.pitch - t.cardWidth), u = n.querySelector("li:last-child"), f = Math.max(0, v.length - 1), p = u instanceof HTMLElement ? re(u, r, i) : s + f * l, m = ee({
|
|
35
|
+
...t,
|
|
36
|
+
cardLeft: s,
|
|
37
|
+
pitch: l
|
|
38
|
+
}, p, v.length);
|
|
39
|
+
B.set(m.distance), V.set(m.frame);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
let a = f(e, n), o = c(window.innerWidth), s = a.itemWidth > 0 ? a.itemWidth : o.itemWidth, l = a.itemWidth > 0 ? a.gap : o.gap;
|
|
43
|
+
B.set(t(v.length, s, l)), r && V.set(d(r, e, n, window.innerWidth, window.innerHeight));
|
|
44
|
+
};
|
|
45
|
+
if (i(), typeof ResizeObserver > "u") return;
|
|
46
|
+
let a = new ResizeObserver(i);
|
|
47
|
+
return a.observe(e), a.observe(n), r && a.observe(r), R.current && a.observe(R.current), () => a.disconnect();
|
|
48
|
+
}, [
|
|
49
|
+
B,
|
|
50
|
+
V,
|
|
51
|
+
P,
|
|
52
|
+
v.length
|
|
53
|
+
]);
|
|
54
|
+
let Z = A && !H, Q = P ? N : O ? M : void 0, $ = v.map((e, t) => {
|
|
55
|
+
let n = o(e.color, t);
|
|
56
|
+
return Z && t !== W ? /* @__PURE__ */ C(T.li, {
|
|
57
|
+
ref: t === 0 ? z : void 0,
|
|
58
|
+
className: h,
|
|
59
|
+
style: {
|
|
60
|
+
"--scroll-horizontal-color": n,
|
|
61
|
+
opacity: Y
|
|
62
|
+
},
|
|
63
|
+
children: /* @__PURE__ */ C("span", {
|
|
64
|
+
className: g,
|
|
65
|
+
children: e.label
|
|
66
|
+
})
|
|
67
|
+
}, e.id) : /* @__PURE__ */ C("li", {
|
|
68
|
+
ref: t === 0 ? z : void 0,
|
|
69
|
+
className: h,
|
|
70
|
+
style: { "--scroll-horizontal-color": n },
|
|
71
|
+
children: /* @__PURE__ */ C("span", {
|
|
72
|
+
className: g,
|
|
73
|
+
children: e.label
|
|
74
|
+
})
|
|
75
|
+
}, e.id);
|
|
76
|
+
});
|
|
77
|
+
return /* @__PURE__ */ w("section", {
|
|
78
|
+
ref: F,
|
|
79
|
+
"data-scroll-horizontal": "",
|
|
80
|
+
"data-expand-last": A ? "true" : "false",
|
|
81
|
+
"data-reduce": H ? "true" : "false",
|
|
82
|
+
"data-has-intro": P ? "true" : "false",
|
|
83
|
+
"aria-labelledby": Q,
|
|
84
|
+
"aria-label": Q ? void 0 : "Projects",
|
|
85
|
+
className: e(A ? pe : fe, ye),
|
|
86
|
+
children: [/* @__PURE__ */ w("div", {
|
|
87
|
+
ref: I,
|
|
88
|
+
className: e(me, P && "[container-type:inline-size]"),
|
|
89
|
+
children: [
|
|
90
|
+
O && !P ? /* @__PURE__ */ C("div", {
|
|
91
|
+
id: M,
|
|
92
|
+
className: ce,
|
|
93
|
+
children: O
|
|
94
|
+
}) : null,
|
|
95
|
+
P ? /* @__PURE__ */ w(T.div, {
|
|
96
|
+
ref: R,
|
|
97
|
+
"data-scroll-horizontal-track": "",
|
|
98
|
+
className: ue,
|
|
99
|
+
style: H ? void 0 : { x: J },
|
|
100
|
+
children: [/* @__PURE__ */ C(T.div, {
|
|
101
|
+
"data-scroll-horizontal-intro": "",
|
|
102
|
+
className: le,
|
|
103
|
+
style: Z ? { opacity: Y } : void 0,
|
|
104
|
+
children: /* @__PURE__ */ C(m.Provider, {
|
|
105
|
+
value: N,
|
|
106
|
+
children: k
|
|
107
|
+
})
|
|
108
|
+
}), /* @__PURE__ */ C("div", {
|
|
109
|
+
className: de,
|
|
110
|
+
children: /* @__PURE__ */ C("ul", {
|
|
111
|
+
ref: L,
|
|
112
|
+
className: _,
|
|
113
|
+
children: $
|
|
114
|
+
})
|
|
115
|
+
})]
|
|
116
|
+
}) : /* @__PURE__ */ C("div", {
|
|
117
|
+
className: he,
|
|
118
|
+
children: /* @__PURE__ */ C(T.ul, {
|
|
119
|
+
ref: L,
|
|
120
|
+
className: _,
|
|
121
|
+
style: H ? void 0 : { x: J },
|
|
122
|
+
children: $
|
|
123
|
+
})
|
|
124
|
+
}),
|
|
125
|
+
A && G ? /* @__PURE__ */ C(T.div, {
|
|
126
|
+
"aria-hidden": "true",
|
|
127
|
+
"data-scroll-horizontal-expanded": "",
|
|
128
|
+
className: ae,
|
|
129
|
+
style: {
|
|
130
|
+
backgroundColor: K,
|
|
131
|
+
clipPath: H ? "none" : Ce
|
|
132
|
+
}
|
|
133
|
+
}) : null,
|
|
134
|
+
A && j ? /* @__PURE__ */ C(T.div, {
|
|
135
|
+
"data-scroll-horizontal-slot": "",
|
|
136
|
+
className: se,
|
|
137
|
+
style: H ? void 0 : {
|
|
138
|
+
opacity: X,
|
|
139
|
+
pointerEvents: we
|
|
140
|
+
},
|
|
141
|
+
children: j
|
|
142
|
+
}) : null
|
|
143
|
+
]
|
|
144
|
+
}), A && G ? /* @__PURE__ */ w("div", {
|
|
145
|
+
"data-scroll-horizontal-expanded": "",
|
|
146
|
+
className: oe,
|
|
147
|
+
style: {
|
|
148
|
+
"--scroll-horizontal-color": K,
|
|
149
|
+
backgroundColor: "var(--scroll-horizontal-color)"
|
|
150
|
+
},
|
|
151
|
+
children: [/* @__PURE__ */ C("span", {
|
|
152
|
+
className: g,
|
|
153
|
+
children: G.label
|
|
154
|
+
}), j ? /* @__PURE__ */ C("div", {
|
|
155
|
+
className: e(ie, "z-10"),
|
|
156
|
+
children: j
|
|
157
|
+
}) : null]
|
|
158
|
+
}) : null]
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
var k = Object.assign(O, { Intro: v });
|
|
162
|
+
//#endregion
|
|
163
|
+
export { k as ScrollHorizontal };
|