@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,49 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactElement } from "react";
|
|
2
|
+
import { type ButtonRole, type IconButtonSize } from "../Button/buttonStyles";
|
|
3
|
+
export type { ButtonRole, IconButtonSize } from "../Button/buttonStyles";
|
|
4
|
+
export { buttonRoles } from "../Button/buttonStyles";
|
|
5
|
+
export type IconButtonInsetSize = "sm" | "md" | "lg";
|
|
6
|
+
/** Layout-only — not for colors, borders, or typography overrides. */
|
|
7
|
+
export type IconButtonLayoutClassName = string;
|
|
8
|
+
export interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "aria-label" | "children" | "className" | "role" | "size" | "title"> {
|
|
9
|
+
/** Lucide icon — `import { … } from "lucide-react"`. */
|
|
10
|
+
icon: ReactElement;
|
|
11
|
+
/** Required — specific action name for screen readers (e.g. "Delete conversation"). */
|
|
12
|
+
"aria-label": string;
|
|
13
|
+
/** Action role. Default: `ghost` (toolbars). FAB pattern forces `primary`. */
|
|
14
|
+
role?: ButtonRole;
|
|
15
|
+
/** Toolbar / FAB size — or inset dismiss tier when `inset` is set. Default: `md`. */
|
|
16
|
+
size?: IconButtonSize | IconButtonInsetSize;
|
|
17
|
+
/** Inset dismiss — compact hit target for chip innards; `size` uses sm | md | lg inset scale. */
|
|
18
|
+
inset?: boolean;
|
|
19
|
+
/** Native tooltip for sighted users — defaults to `aria-label`. Pass `""` to suppress. */
|
|
20
|
+
title?: string;
|
|
21
|
+
/** FAB pattern — primary fill + elevated shadow. */
|
|
22
|
+
fab?: boolean;
|
|
23
|
+
/** Shows spinner instead of icon — async feedback. */
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
type?: "button" | "submit" | "reset";
|
|
27
|
+
/**
|
|
28
|
+
* Compose IconButton chrome onto another element (Base UI `render`) — e.g.
|
|
29
|
+
* `render={<a href="/" />}` for a circular brand mark. Not with `fab` or `inset`.
|
|
30
|
+
* `disabled` maps to `aria-disabled` on non-button elements.
|
|
31
|
+
*/
|
|
32
|
+
render?: ReactElement;
|
|
33
|
+
className?: IconButtonLayoutClassName;
|
|
34
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
35
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
36
|
+
"aria-current"?: React.AriaAttributes["aria-current"];
|
|
37
|
+
"aria-haspopup"?: boolean | "menu" | "dialog" | "listbox" | "tree" | "grid";
|
|
38
|
+
"aria-expanded"?: boolean;
|
|
39
|
+
"aria-controls"?: string;
|
|
40
|
+
id?: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
form?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Icon-only action control — circular hit target; **`aria-label` required**.
|
|
46
|
+
* Use when space is tight and the icon is universally understood; otherwise use `Button` with a label.
|
|
47
|
+
*/
|
|
48
|
+
export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
49
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +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;AAUhC,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,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;AAaD;;;GAGG;AACH,eAAO,MAAM,UAAU,+GAuHrB,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { buttonBaseClasses as t, buttonRoleClasses as n, iconButtonSizeClasses as r } from "../Button/buttonStyles.js";
|
|
4
|
+
import { ButtonIcon as i } from "../Button/ButtonIcon.js";
|
|
5
|
+
import { ButtonSpinner as a } from "../Button/ButtonSpinner.js";
|
|
6
|
+
import { iconButtonExpandedStyle as o, iconButtonInsetHitClasses as s, iconButtonInsetIconSizeClasses as c, iconButtonShapeClass as l } from "./iconButtonStyles.js";
|
|
7
|
+
import { forwardRef as u } from "react";
|
|
8
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
9
|
+
import { useRender as f } from "@base-ui/react/use-render";
|
|
10
|
+
//#region src/components/atoms/IconButton/IconButton.tsx
|
|
11
|
+
function p(e) {
|
|
12
|
+
e.fab && e.role != null && e.role !== "primary" && console.warn("[WMDS IconButton] `fab` uses primary role — omit `role` or set `primary`."), e.render != null && (e.fab || e.inset) && console.warn("[WMDS IconButton] `render` is not supported with `fab` or `inset`.");
|
|
13
|
+
}
|
|
14
|
+
var m = u(function({ icon: u, "aria-label": m, role: h, size: g = "md", inset: _ = !1, title: v, fab: y = !1, loading: b = !1, disabled: x, type: S = "button", render: C, className: w, onClick: T, onKeyDown: E, "aria-current": D, "aria-haspopup": O, "aria-expanded": k, "aria-controls": A, id: j, name: M, form: N, ...P }, F) {
|
|
15
|
+
p({
|
|
16
|
+
fab: y,
|
|
17
|
+
role: h,
|
|
18
|
+
render: C,
|
|
19
|
+
inset: _
|
|
20
|
+
});
|
|
21
|
+
let I = y ? "primary" : h ?? "ghost", L = x || b, R = v === void 0 ? m : v, z = _ ? g : null, B = _ ? s[z ?? "md"] : r[g], V = e(t, "justify-center", n[I], B, l, _ && "focus-visible:ring-offset-1 focus-visible:ring-offset-surface", y && "shadow-soft-card", w), H = b ? /* @__PURE__ */ d(a, { size: _ ? "xs" : g }) : _ ? /* @__PURE__ */ d("span", {
|
|
22
|
+
className: e("inline-flex shrink-0 items-center justify-center text-inherit [&>svg]:size-full", c[z ?? "md"]),
|
|
23
|
+
"aria-hidden": !0,
|
|
24
|
+
children: u
|
|
25
|
+
}) : /* @__PURE__ */ d(i, {
|
|
26
|
+
size: g,
|
|
27
|
+
children: u
|
|
28
|
+
});
|
|
29
|
+
return f({
|
|
30
|
+
render: C,
|
|
31
|
+
ref: F,
|
|
32
|
+
defaultTagName: "button",
|
|
33
|
+
props: C ? {
|
|
34
|
+
...P,
|
|
35
|
+
className: V,
|
|
36
|
+
"aria-label": m,
|
|
37
|
+
"aria-current": D,
|
|
38
|
+
"aria-haspopup": O,
|
|
39
|
+
"aria-expanded": k,
|
|
40
|
+
"aria-controls": A,
|
|
41
|
+
"aria-busy": b || void 0,
|
|
42
|
+
"aria-disabled": L ? !0 : void 0,
|
|
43
|
+
"data-disabled": L ? "" : void 0,
|
|
44
|
+
"data-role": I,
|
|
45
|
+
"data-size": g,
|
|
46
|
+
"data-pattern": y ? "fab" : _ ? "inset" : "icon",
|
|
47
|
+
"data-loading": b || void 0,
|
|
48
|
+
title: R === "" ? void 0 : R,
|
|
49
|
+
tabIndex: L ? -1 : P.tabIndex,
|
|
50
|
+
onClick: T,
|
|
51
|
+
onKeyDown: E,
|
|
52
|
+
id: j,
|
|
53
|
+
name: M,
|
|
54
|
+
form: N,
|
|
55
|
+
style: k && I === "ghost" ? o : void 0,
|
|
56
|
+
children: H
|
|
57
|
+
} : {
|
|
58
|
+
...P,
|
|
59
|
+
className: V,
|
|
60
|
+
type: S,
|
|
61
|
+
disabled: L,
|
|
62
|
+
"aria-busy": b || void 0,
|
|
63
|
+
"aria-label": m,
|
|
64
|
+
"aria-current": D,
|
|
65
|
+
"aria-haspopup": O,
|
|
66
|
+
"aria-expanded": k,
|
|
67
|
+
"aria-controls": A,
|
|
68
|
+
title: R === "" ? void 0 : R,
|
|
69
|
+
onClick: T,
|
|
70
|
+
onKeyDown: E,
|
|
71
|
+
id: j,
|
|
72
|
+
name: M,
|
|
73
|
+
form: N,
|
|
74
|
+
style: k && I === "ghost" ? o : void 0,
|
|
75
|
+
"data-role": I,
|
|
76
|
+
"data-size": g,
|
|
77
|
+
"data-pattern": y ? "fab" : _ ? "inset" : "icon",
|
|
78
|
+
"data-loading": b || void 0,
|
|
79
|
+
children: H
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
export { m as IconButton };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Circular icon-only control — square hit target from {@link iconButtonSizeClasses}. */
|
|
2
|
+
export declare const iconButtonShapeClass = "shrink-0 rounded-full";
|
|
3
|
+
/** Expanded disclosure/menu trigger — retain the ghost hover surface while open. */
|
|
4
|
+
export declare const iconButtonExpandedStyle: {
|
|
5
|
+
backgroundColor: "color-mix(in srgb, currentColor 5%, transparent)";
|
|
6
|
+
};
|
|
7
|
+
/** FAB pattern — raised elevation on primary fill. */
|
|
8
|
+
export declare const iconButtonFabClasses = "shadow-soft-card";
|
|
9
|
+
/** Pill shell for a compact row of ghost IconButtons — Pattern: toolbar group. */
|
|
10
|
+
export declare const iconButtonToolbarGroupClasses = "inline-flex items-center gap-1 rounded-full border border-border bg-surface p-1";
|
|
11
|
+
/** Inset dismiss hit targets — removable Chip trailing × (pairs with sm | md | lg). */
|
|
12
|
+
export declare const iconButtonInsetHitClasses: Record<"sm" | "md" | "lg", string>;
|
|
13
|
+
/** Inset dismiss glyph scale — paired with {@link iconButtonInsetHitClasses}. */
|
|
14
|
+
export declare const iconButtonInsetIconSizeClasses: Record<"sm" | "md" | "lg", string>;
|
|
15
|
+
/** Tighter focus ring when nested inside a chip or compact row shell. */
|
|
16
|
+
export declare const iconButtonInsetFocusClasses = "focus-visible:ring-offset-1 focus-visible:ring-offset-surface";
|
|
17
|
+
//# sourceMappingURL=iconButtonStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iconButtonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton/iconButtonStyles.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,oFAAoF;AACpF,eAAO,MAAM,uBAAuB;;CAEX,CAAC;AAE1B,sDAAsD;AACtD,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD,kFAAkF;AAClF,eAAO,MAAM,6BAA6B,oFACyC,CAAC;AAEpF,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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/components/atoms/IconButton/iconButtonStyles.ts
|
|
3
|
+
var e = "shrink-0 rounded-full", t = { backgroundColor: "color-mix(in srgb, currentColor 5%, transparent)" }, n = "shadow-soft-card", r = {
|
|
4
|
+
sm: "size-5",
|
|
5
|
+
md: "size-6",
|
|
6
|
+
lg: "size-7"
|
|
7
|
+
}, i = {
|
|
8
|
+
sm: "size-2.5 shrink-0 stroke-current",
|
|
9
|
+
md: "size-3 shrink-0 stroke-current",
|
|
10
|
+
lg: "size-3.5 shrink-0 stroke-current"
|
|
11
|
+
}, a = "focus-visible:ring-offset-1 focus-visible:ring-offset-surface";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as iconButtonExpandedStyle, n as iconButtonFabClasses, a as iconButtonInsetFocusClasses, r as iconButtonInsetHitClasses, i as iconButtonInsetIconSizeClasses, e as iconButtonShapeClass };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type InputHTMLAttributes, type ReactElement } from "react";
|
|
2
|
+
import { type InputMessagePosition, type InputSize, type InputStatus } from "./inputShellStyles";
|
|
3
|
+
export type { InputMessagePosition, InputSize, InputStatus } from "./inputShellStyles";
|
|
4
|
+
export { inputMessagePositions, inputSizes, inputStatuses } from "./inputShellStyles";
|
|
5
|
+
/** Layout-only — not for colors, borders, or typography overrides. */
|
|
6
|
+
export type InputLayoutClassName = string;
|
|
7
|
+
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
8
|
+
size?: InputSize;
|
|
9
|
+
/** Optional visible label — omit for bare inputs. No label asterisk; use `endBadge` for Required. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Neutral helper below the control — hidden when validation `message` is shown. */
|
|
12
|
+
description?: string;
|
|
13
|
+
/** Validation status — border + trailing icon. */
|
|
14
|
+
status?: InputStatus;
|
|
15
|
+
/** Validation copy in integrated status band — requires `status`; omit for status-only (border + icon). */
|
|
16
|
+
message?: string;
|
|
17
|
+
/** Status band placement when `message` is set — default `bottom`. */
|
|
18
|
+
messagePosition?: InputMessagePosition;
|
|
19
|
+
/** Trailing spinner — async validation. Combinable with `endBadge`. */
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
/** Leading Lucide icon. */
|
|
22
|
+
icon?: ReactElement;
|
|
23
|
+
/**
|
|
24
|
+
* Trailing inset inside the shell — pass {@link Badge} (e.g. Required).
|
|
25
|
+
* Atoms cannot import Badge; compose at call site. Combinable with `status` / `loading`.
|
|
26
|
+
*/
|
|
27
|
+
endBadge?: ReactElement;
|
|
28
|
+
/** Inside Search — no outer shell; parent pill owns border and focus ring. */
|
|
29
|
+
inline?: boolean;
|
|
30
|
+
className?: InputLayoutClassName;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Single-line pill text input — validation via `status`, `message`, and trailing icon.
|
|
34
|
+
* Bare by default; optional `label` (ADR-0006). Required fields: `endBadge` + `required`, not asterisks.
|
|
35
|
+
*/
|
|
36
|
+
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
37
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +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,EAClB,MAAM,OAAO,CAAC;AAKf,OAAO,EA0BL,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,qGAAqG;IACrG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,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;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAyCD;;;GAGG;AACH,eAAO,MAAM,KAAK,yGAqKhB,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
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 ee, inputEndBadgeAndStatusGapClasses as c, inputEndBadgeGapClasses as l, inputEndBadgeWrapperClasses as u, inputFieldStackClasses as d, inputIconGapClasses as f, inputIconPositionClasses as p, inputIconSizeClasses as m, inputInlineClasses as h, inputMessagePositions as g, inputShellClasses as _, inputSizeClasses as v, inputSizes as y, inputSoloFocusRingBaseClasses as b, inputSoloFocusRingColorClasses as x, inputSoloRadiusClasses as S, inputStatusGapClasses as C, inputStatusShellClasses as w, inputStatuses as T, inputTrailingInsetClasses as E, inputTrailingInsetPositionClasses as te } from "./inputShellStyles.js";
|
|
5
|
+
import { InputStatusBanner as ne } from "../inputShared/InputStatusBanner.js";
|
|
6
|
+
import { InputTrailingAffordance as re } from "../inputShared/InputTrailingAffordance.js";
|
|
7
|
+
import { forwardRef as D, useId as ie } from "react";
|
|
8
|
+
import { Fragment as ae, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/atoms/Input/Input.tsx
|
|
10
|
+
function A(e) {
|
|
11
|
+
e.label == null && e["aria-label"] == null && e["aria-labelledby"] == null && console.warn("[WMDS Input] Provide `label`, `aria-label`, or `aria-labelledby`.");
|
|
12
|
+
}
|
|
13
|
+
function j(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 Search rows only — omit label, description, and validation.");
|
|
15
|
+
}
|
|
16
|
+
function M(e, t, n) {
|
|
17
|
+
return t && n ? c[e] : t ? l[e] : n ? C[e] : !1;
|
|
18
|
+
}
|
|
19
|
+
var N = D(function({ size: c = "md", label: l, description: g, status: y, message: C, messagePosition: T = "bottom", loading: D = !1, icon: N, endBadge: P, inline: F = !1, className: I, disabled: L, id: R, "aria-describedby": z, ...B }, V) {
|
|
20
|
+
let H = ie(), U = R ?? H;
|
|
21
|
+
A({
|
|
22
|
+
label: l,
|
|
23
|
+
"aria-label": B["aria-label"],
|
|
24
|
+
"aria-labelledby": B["aria-labelledby"]
|
|
25
|
+
}), j({
|
|
26
|
+
status: y,
|
|
27
|
+
message: C,
|
|
28
|
+
messagePosition: T,
|
|
29
|
+
loading: D,
|
|
30
|
+
inline: F,
|
|
31
|
+
label: l,
|
|
32
|
+
description: g
|
|
33
|
+
});
|
|
34
|
+
let W = C != null && C.length > 0 && y != null, G = P != null, K = !W && (D || y != null), q = N != null, J = M(c, G, K), Y = g != null && !W ? `${U}-description` : void 0, X = W ? `${U}-message` : void 0, oe = [
|
|
35
|
+
z,
|
|
36
|
+
Y,
|
|
37
|
+
X
|
|
38
|
+
].filter(Boolean).join(" ") || void 0, Z = /* @__PURE__ */ k(ae, { children: [
|
|
39
|
+
q ? /* @__PURE__ */ O("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", p[c], m[c]),
|
|
41
|
+
"aria-hidden": !0,
|
|
42
|
+
children: N
|
|
43
|
+
}) : null,
|
|
44
|
+
/* @__PURE__ */ O("input", {
|
|
45
|
+
...B,
|
|
46
|
+
ref: V,
|
|
47
|
+
id: U,
|
|
48
|
+
disabled: L,
|
|
49
|
+
"aria-invalid": y === "error" || void 0,
|
|
50
|
+
"aria-describedby": oe,
|
|
51
|
+
className: e(ee, W ? e(n, v[c], q && f[c], J, r) : e(i, F ? e(h, q && f[c], I ?? v[c]) : e(v[c], q && f[c], J, y == null ? _[c] : e("border", w[y]), S[c], b, y == null ? x.default : x[y], I)))
|
|
52
|
+
}),
|
|
53
|
+
G || K ? /* @__PURE__ */ k("span", {
|
|
54
|
+
className: e(E, te[c]),
|
|
55
|
+
children: [G ? /* @__PURE__ */ O("span", {
|
|
56
|
+
className: u,
|
|
57
|
+
children: P
|
|
58
|
+
}) : null, K ? /* @__PURE__ */ O(re, {
|
|
59
|
+
size: c,
|
|
60
|
+
status: D ? void 0 : y,
|
|
61
|
+
loading: D
|
|
62
|
+
}) : null]
|
|
63
|
+
}) : null
|
|
64
|
+
] }), Q = W && y != null && X != null ? /* @__PURE__ */ O(ne, {
|
|
65
|
+
status: y,
|
|
66
|
+
message: C,
|
|
67
|
+
messageId: X,
|
|
68
|
+
size: c,
|
|
69
|
+
messagePosition: T
|
|
70
|
+
}) : null, $ = W && y != null ? /* @__PURE__ */ k("div", {
|
|
71
|
+
className: o(c, y),
|
|
72
|
+
children: [
|
|
73
|
+
T === "top" ? Q : null,
|
|
74
|
+
/* @__PURE__ */ O("div", {
|
|
75
|
+
className: a(c, y, T),
|
|
76
|
+
children: Z
|
|
77
|
+
}),
|
|
78
|
+
T === "bottom" ? Q : null
|
|
79
|
+
]
|
|
80
|
+
}) : /* @__PURE__ */ O("div", {
|
|
81
|
+
className: e(F ? "relative flex min-w-0 flex-1 items-center" : s),
|
|
82
|
+
children: /* @__PURE__ */ O("div", {
|
|
83
|
+
className: "relative flex w-full items-center",
|
|
84
|
+
children: Z
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
return F || l == null && g == null ? $ : /* @__PURE__ */ k("div", {
|
|
88
|
+
className: d,
|
|
89
|
+
children: [
|
|
90
|
+
l == null ? null : /* @__PURE__ */ O("label", {
|
|
91
|
+
htmlFor: U,
|
|
92
|
+
className: e(t("ui-label"), L && "opacity-50"),
|
|
93
|
+
children: l
|
|
94
|
+
}),
|
|
95
|
+
$,
|
|
96
|
+
Y == null ? null : /* @__PURE__ */ O("p", {
|
|
97
|
+
id: Y,
|
|
98
|
+
className: t("caption"),
|
|
99
|
+
children: g
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
//#endregion
|
|
105
|
+
export { N as Input, g as inputMessagePositions, y as inputSizes, T as inputStatuses };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export declare const inputSizes: readonly ["sm", "md", "lg"];
|
|
2
|
+
export type InputSize = (typeof inputSizes)[number];
|
|
3
|
+
export declare const inputStatuses: readonly ["error", "warning", "success"];
|
|
4
|
+
export type InputStatus = (typeof inputStatuses)[number];
|
|
5
|
+
export declare const inputMessagePositions: readonly ["top", "bottom"];
|
|
6
|
+
export type InputMessagePosition = (typeof inputMessagePositions)[number];
|
|
7
|
+
/** Input shell — text + focus ring share one eased fade (`slow` ≈ 280ms). */
|
|
8
|
+
export declare const inputShellTransitionClasses: string;
|
|
9
|
+
export declare const inputBaseClasses: string;
|
|
10
|
+
/** Solo shell — ring sits on the input with page offset. */
|
|
11
|
+
export declare const inputSoloFocusRingBaseClasses = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-body";
|
|
12
|
+
export declare const inputSoloFocusRingColorClasses: {
|
|
13
|
+
readonly default: "focus-visible:ring-focus-ring";
|
|
14
|
+
readonly error: "focus-visible:ring-error-focus-ring";
|
|
15
|
+
readonly warning: "focus-visible:ring-warning-focus-ring";
|
|
16
|
+
readonly success: "focus-visible:ring-success-focus-ring";
|
|
17
|
+
};
|
|
18
|
+
/** Focus ring on compound validation shell ([Astryx ChatComposer](https://astryx.atmeta.com/components/ChatComposer)). */
|
|
19
|
+
export declare const inputCompoundShellFocusRingClasses: Record<InputStatus, string>;
|
|
20
|
+
/** @deprecated Use {@link inputCompoundShellFocusRingClasses}. */
|
|
21
|
+
export declare const inputValidationShellFocusRingClasses: Record<"success" | "warning" | "error", string>;
|
|
22
|
+
/** @deprecated Use {@link inputCompoundShellFocusRingClasses}. */
|
|
23
|
+
export declare const inputCompoundInnerFocusRingClasses: Record<"success" | "warning" | "error", string>;
|
|
24
|
+
/** @deprecated Use {@link inputCompoundShellFocusRingClasses}. */
|
|
25
|
+
export declare const inputCompoundFocusRingClasses: Record<"success" | "warning" | "error", string>;
|
|
26
|
+
export declare const inputSizeClasses: Record<InputSize, string>;
|
|
27
|
+
export declare const inputShellBorderClasses = "border border-border-control";
|
|
28
|
+
export declare const inputShellElevationClasses = "shadow-raised";
|
|
29
|
+
export declare const inputShellClasses: Record<InputSize, string>;
|
|
30
|
+
/** Solo shell — pill only. */
|
|
31
|
+
export declare const inputSoloRadiusClasses: Record<InputSize, string>;
|
|
32
|
+
export declare const inputStatusShellClasses: Record<InputStatus, string>;
|
|
33
|
+
/** Compound outer radius — capsule around the pill + message band. */
|
|
34
|
+
export declare const inputCompoundOuterRadiusClasses: Record<InputSize, string>;
|
|
35
|
+
/** Banner tucks under the pill equator (~half field height). */
|
|
36
|
+
export declare const inputCompoundBannerOverlapBottomClasses: Record<InputSize, string>;
|
|
37
|
+
export declare const inputCompoundBannerOverlapTopPadClasses: Record<InputSize, string>;
|
|
38
|
+
export declare const inputCompoundFieldOverlapTopClasses: Record<InputSize, string>;
|
|
39
|
+
/** @deprecated Use {@link inputCompoundBannerOverlapBottomClasses}. */
|
|
40
|
+
export declare const inputCompoundBannerOverlapClasses: string;
|
|
41
|
+
/** @deprecated Use {@link inputCompoundBannerOverlapTopPadClasses}. */
|
|
42
|
+
export declare const inputCompoundBannerOverlapTopClasses: string;
|
|
43
|
+
/** Compound stack — field floats above banner; focus ring stays on the field only. */
|
|
44
|
+
export declare function inputCompoundShellClassesFor(_size?: InputSize, _status?: InputStatus): string;
|
|
45
|
+
/** Inner field — full pill radius on all four corners; owns focus ring when message is set. */
|
|
46
|
+
export declare function inputCompoundInnerFieldClassesFor(size: InputSize, status: InputStatus, messagePosition: InputMessagePosition): string;
|
|
47
|
+
/** Tinted status band — layered behind the field; overlap keeps the field's bottom radius visible. */
|
|
48
|
+
export declare function inputStatusBannerClassesFor(status: InputStatus, size: InputSize, messagePosition: InputMessagePosition): string;
|
|
49
|
+
/** Status band fills — shared with **TextArea** overlap variants. */
|
|
50
|
+
export declare const inputStatusBannerSurfaceClasses: Record<InputStatus, string>;
|
|
51
|
+
/** @deprecated Use {@link inputStatusBannerClassesFor}. */
|
|
52
|
+
export declare const inputStatusBannerClasses: Record<InputStatus, string>;
|
|
53
|
+
export declare const inputStatusBannerIconClasses: Record<InputStatus, string>;
|
|
54
|
+
/** @deprecated Use {@link inputCompoundShellClassesFor}. */
|
|
55
|
+
export declare function inputValidationShellClassesFor(size: InputSize, status: InputStatus): string;
|
|
56
|
+
/** @deprecated Use {@link inputCompoundShellClassesFor}. */
|
|
57
|
+
export declare function inputCompoundOuterClassesFor(size: InputSize): string;
|
|
58
|
+
/** @deprecated Nested tray removed. */
|
|
59
|
+
export declare const inputCompoundOuterPaddingClasses: Record<InputSize, string>;
|
|
60
|
+
/** @deprecated Use {@link inputCompoundInnerFieldClassesFor}. */
|
|
61
|
+
export declare const inputCompoundInnerClasses = "relative flex w-full items-center rounded-full border border-border-control bg-surface";
|
|
62
|
+
/** @deprecated Use {@link inputStatusShellClasses}. */
|
|
63
|
+
export declare const inputCompoundInnerBorderClasses: Record<InputStatus, string>;
|
|
64
|
+
/** @deprecated Status copy lives in {@link inputStatusBannerClasses}. */
|
|
65
|
+
export declare const inputCompoundFooterClasses: Record<InputStatus, string>;
|
|
66
|
+
/** @deprecated Flat compound — use {@link inputCompoundOuterClassesFor}. */
|
|
67
|
+
export declare const inputCompoundWrapperRadiusClasses: Record<InputSize, string>;
|
|
68
|
+
/** @deprecated Flat compound — use {@link inputCompoundOuterClassesFor}. */
|
|
69
|
+
export declare function inputCompoundWrapperClassesFor(size: InputSize): string;
|
|
70
|
+
export declare const inputIconGapClasses: Record<InputSize, string>;
|
|
71
|
+
export declare const inputStatusGapClasses: Record<InputSize, string>;
|
|
72
|
+
/** Right inset when trailing {@link Badge} sits inside the shell (e.g. Required). */
|
|
73
|
+
export declare const inputEndBadgeGapClasses: Record<InputSize, string>;
|
|
74
|
+
/** Right inset when both end badge and status/loading show. */
|
|
75
|
+
export declare const inputEndBadgeAndStatusGapClasses: Record<InputSize, string>;
|
|
76
|
+
export declare const inputTrailingInsetPositionClasses: Record<InputSize, string>;
|
|
77
|
+
export declare const inputTrailingInsetClasses = "pointer-events-none absolute top-1/2 flex -translate-y-1/2 items-center gap-1.5";
|
|
78
|
+
export declare const inputEndBadgeWrapperClasses = "pointer-events-none shrink-0";
|
|
79
|
+
export declare const inputIconPositionClasses: Record<InputSize, string>;
|
|
80
|
+
export declare const inputIconSizeClasses: Record<InputSize, string>;
|
|
81
|
+
export declare const inputStatusIconSizeClasses: Record<InputSize, string>;
|
|
82
|
+
export declare const inputSpinnerSizeClasses: Record<InputSize, string>;
|
|
83
|
+
export declare const inputStatusIconClasses: Record<InputStatus, string>;
|
|
84
|
+
export declare const inputStatusFooterClasses: Record<InputStatus, string>;
|
|
85
|
+
/** Single shell when input + validation footer attach — border on wrapper only (no shadow-raised stack). */
|
|
86
|
+
export declare const inputCompoundWrapperClasses: Record<InputSize, string>;
|
|
87
|
+
export declare const inputCompoundStatusBorderClasses: Record<InputStatus, string>;
|
|
88
|
+
/** Input inside validation shell — shell owns border, bg, and focus ring. */
|
|
89
|
+
export declare const inputAttachedFieldClasses: string;
|
|
90
|
+
export declare const inputAttachedInputClasses = "rounded-none border-0 shadow-none focus-visible:outline-none focus-visible:ring-0";
|
|
91
|
+
/** 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:outline-none focus-visible:ring-0";
|
|
93
|
+
/** @deprecated Split shells removed — use {@link inputCompoundWrapperClasses}. */
|
|
94
|
+
export declare const inputAttachedShellClasses = "border-b-0";
|
|
95
|
+
export declare const inputDisabledClasses = "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50";
|
|
96
|
+
export declare const inputFieldStackClasses = "flex w-full flex-col gap-1.5";
|
|
97
|
+
export declare const inputControlStackClasses = "flex w-full flex-col gap-1.5";
|
|
98
|
+
export declare const inputDisabledLabelClasses = "opacity-50";
|
|
99
|
+
//# sourceMappingURL=inputShellStyles.d.ts.map
|
|
@@ -0,0 +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,gBAAgB,QAGA,CAAC;AAE9B,4DAA4D;AAC5D,eAAO,MAAM,6BAA6B,+GACoE,CAAC;AAE/G,eAAO,MAAM,8BAA8B;;;;;CAKjC,CAAC;AAEX,0HAA0H;AAC1H,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAO1E,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,oCAAoC,iDAAqC,CAAC;AAEvF,kEAAkE;AAClE,eAAO,MAAM,kCAAkC,iDAAqC,CAAC;AAErF,kEAAkE;AAClE,eAAO,MAAM,6BAA6B,iDAAqC,CAAC;AAEhF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAItD,CAAC;AAEF,eAAO,MAAM,uBAAuB,iCAAiC,CAAC;AAEtE,eAAO,MAAM,0BAA0B,kBAAkB,CAAC;AAE1D,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIvD,CAAC;AAEF,8BAA8B;AAC9B,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAI/D,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIrE,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,uCAAuC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI7E,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI7E,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIzE,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,iCAAiC,QAA6C,CAAC;AAE5F,uEAAuE;AACvE,eAAO,MAAM,oCAAoC,QAA6C,CAAC;AAE/F,sFAAsF;AACtF,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAE7F;AAED,+FAA+F;AAC/F,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,WAAW,EACnB,eAAe,EAAE,oBAAoB,GACpC,MAAM,CASR;AAED,sGAAsG;AACtG,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,SAAS,EACf,eAAe,EAAE,oBAAoB,GACpC,MAAM,CAgBR;AAED,qEAAqE;AACrE,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIvE,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIhE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIpE,CAAC;AAEF,4DAA4D;AAC5D,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAE3F;AAED,4DAA4D;AAC5D,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAEpE;AAED,uCAAuC;AACvC,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAItE,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,yBAAyB,2FACoD,CAAC;AAE3F,uDAAuD;AACvD,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAA2B,CAAC;AAEpG,yEAAyE;AACzE,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIlE,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIvE,CAAC;AAEF,4EAA4E;AAC5E,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAEtE;AAED,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIzD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI3D,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI7D,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAItE,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIvE,CAAC;AAEF,eAAO,MAAM,yBAAyB,oFAC6C,CAAC;AAEpF,eAAO,MAAM,2BAA2B,iCAAiC,CAAC;AAE1E,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI9D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI1D,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIhE,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI7D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAI9D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAA8B,CAAC;AAEhG,4GAA4G;AAC5G,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIjE,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAmC,CAAC;AAE7G,6EAA6E;AAC7E,eAAO,MAAM,yBAAyB,QAET,CAAC;AAE9B,eAAO,MAAM,yBAAyB,sFAC+C,CAAC;AAEtF,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,qGACqE,CAAC;AAErG,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,eAAe,CAAC;AAEtD,eAAO,MAAM,oBAAoB,iFAAiF,CAAC;AAEnH,eAAO,MAAM,sBAAsB,iCAAiC,CAAC;AAErE,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AAEvE,eAAO,MAAM,yBAAyB,eAAe,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { motionTransition as t } from "../../../lib/motion.js";
|
|
4
|
+
//#region src/components/atoms/Input/inputShellStyles.ts
|
|
5
|
+
var n = [
|
|
6
|
+
"sm",
|
|
7
|
+
"md",
|
|
8
|
+
"lg"
|
|
9
|
+
], r = [
|
|
10
|
+
"error",
|
|
11
|
+
"warning",
|
|
12
|
+
"success"
|
|
13
|
+
], i = ["top", "bottom"], a = `transition-[color,background-color,box-shadow,border-color,outline-color] ${t("fast")}`, o = "w-full min-w-0 bg-surface font-sans font-normal tracking-normal text-fg placeholder:text-disabled " + a, s = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-body", c = {
|
|
14
|
+
default: "focus-visible:ring-focus-ring",
|
|
15
|
+
error: "focus-visible:ring-error-focus-ring",
|
|
16
|
+
warning: "focus-visible:ring-warning-focus-ring",
|
|
17
|
+
success: "focus-visible:ring-success-focus-ring"
|
|
18
|
+
}, l = {
|
|
19
|
+
error: "focus-within:outline-none focus-within:ring-2 focus-within:ring-error-focus-ring focus-within:ring-offset-2 focus-within:ring-offset-body",
|
|
20
|
+
warning: "focus-within:outline-none focus-within:ring-2 focus-within:ring-warning-focus-ring focus-within:ring-offset-2 focus-within:ring-offset-body",
|
|
21
|
+
success: "focus-within:outline-none focus-within:ring-2 focus-within:ring-success-focus-ring focus-within:ring-offset-2 focus-within:ring-offset-body"
|
|
22
|
+
}, u = {
|
|
23
|
+
sm: "h-8 px-2.5 text-xs leading-none",
|
|
24
|
+
md: "h-11 px-3 text-sm leading-none",
|
|
25
|
+
lg: "min-h-12 px-4 text-base leading-none"
|
|
26
|
+
}, d = "border border-border-control", f = "shadow-raised", p = {
|
|
27
|
+
sm: e(d, f),
|
|
28
|
+
md: e(d, f),
|
|
29
|
+
lg: e(d, f)
|
|
30
|
+
}, m = {
|
|
31
|
+
sm: "rounded-full",
|
|
32
|
+
md: "rounded-full",
|
|
33
|
+
lg: "rounded-full"
|
|
34
|
+
}, h = {
|
|
35
|
+
error: "border-error",
|
|
36
|
+
warning: "border-warning",
|
|
37
|
+
success: "border-success"
|
|
38
|
+
}, g = {
|
|
39
|
+
sm: "-mt-4 pt-6",
|
|
40
|
+
md: "-mt-[1.375rem] pt-8",
|
|
41
|
+
lg: "-mt-6 pt-8"
|
|
42
|
+
}, _ = {
|
|
43
|
+
sm: "pb-6",
|
|
44
|
+
md: "pb-8",
|
|
45
|
+
lg: "pb-8"
|
|
46
|
+
}, v = {
|
|
47
|
+
sm: "-mt-4",
|
|
48
|
+
md: "-mt-[1.375rem]",
|
|
49
|
+
lg: "-mt-6"
|
|
50
|
+
};
|
|
51
|
+
g.md, _.md;
|
|
52
|
+
function y(t, n) {
|
|
53
|
+
return e("relative flex w-full flex-col", a);
|
|
54
|
+
}
|
|
55
|
+
function b(t, n, r) {
|
|
56
|
+
return e("relative z-10 flex w-full items-center border bg-surface shadow-sm", m[t], h[n], l[n], r === "top" && v[t], a);
|
|
57
|
+
}
|
|
58
|
+
function x(t, n, r) {
|
|
59
|
+
return r === "bottom" ? e("relative z-0 flex w-full items-center gap-2 px-3 pb-3 leading-snug", g[n], "rounded-b-[1.375rem]", S[t]) : e("relative z-0 flex w-full items-center gap-2 px-3 pt-2.5 leading-snug", _[n], "rounded-t-[1.375rem]", S[t]);
|
|
60
|
+
}
|
|
61
|
+
var S = {
|
|
62
|
+
error: "bg-error-muted text-error",
|
|
63
|
+
warning: "bg-warning-muted text-warning",
|
|
64
|
+
success: "bg-success-muted text-success"
|
|
65
|
+
};
|
|
66
|
+
e("flex items-center gap-2 px-3 py-2.5 leading-snug", S.error), e("flex items-center gap-2 px-3 py-2.5 leading-snug", S.warning), e("flex items-center gap-2 px-3 py-2.5 leading-snug", S.success);
|
|
67
|
+
var C = {
|
|
68
|
+
error: "size-4 shrink-0 stroke-current",
|
|
69
|
+
warning: "size-4 shrink-0 stroke-current",
|
|
70
|
+
success: "size-4 shrink-0 stroke-current"
|
|
71
|
+
};
|
|
72
|
+
function w(e) {
|
|
73
|
+
return y(e, "error");
|
|
74
|
+
}
|
|
75
|
+
var T = {
|
|
76
|
+
sm: "pl-8",
|
|
77
|
+
md: "pl-10",
|
|
78
|
+
lg: "pl-11"
|
|
79
|
+
}, E = {
|
|
80
|
+
sm: "pr-8",
|
|
81
|
+
md: "pr-10",
|
|
82
|
+
lg: "pr-11"
|
|
83
|
+
}, D = {
|
|
84
|
+
sm: "pr-[4.5rem]",
|
|
85
|
+
md: "pr-20",
|
|
86
|
+
lg: "pr-24"
|
|
87
|
+
}, O = {
|
|
88
|
+
sm: "pr-[6.5rem]",
|
|
89
|
+
md: "pr-28",
|
|
90
|
+
lg: "pr-32"
|
|
91
|
+
}, k = {
|
|
92
|
+
sm: "right-2.5",
|
|
93
|
+
md: "right-3",
|
|
94
|
+
lg: "right-3.5"
|
|
95
|
+
}, A = "pointer-events-none absolute top-1/2 flex -translate-y-1/2 items-center gap-1.5", j = "pointer-events-none shrink-0", M = {
|
|
96
|
+
sm: "left-2.5",
|
|
97
|
+
md: "left-3",
|
|
98
|
+
lg: "left-3.5"
|
|
99
|
+
}, N = {
|
|
100
|
+
sm: "size-3.5 shrink-0 stroke-current text-muted",
|
|
101
|
+
md: "size-4 shrink-0 stroke-current text-muted",
|
|
102
|
+
lg: "size-4 shrink-0 stroke-current text-muted"
|
|
103
|
+
}, P = {
|
|
104
|
+
sm: "size-4 shrink-0 stroke-current",
|
|
105
|
+
md: "size-4 shrink-0 stroke-current",
|
|
106
|
+
lg: "size-5 shrink-0 stroke-current"
|
|
107
|
+
}, F = {
|
|
108
|
+
sm: "size-3.5 shrink-0",
|
|
109
|
+
md: "size-4 shrink-0",
|
|
110
|
+
lg: "size-4 shrink-0"
|
|
111
|
+
}, I = {
|
|
112
|
+
error: "text-error",
|
|
113
|
+
warning: "text-warning",
|
|
114
|
+
success: "text-success"
|
|
115
|
+
};
|
|
116
|
+
w("sm"), w("md"), w("lg");
|
|
117
|
+
var L = "w-full min-w-0 bg-transparent font-sans font-normal tracking-normal text-fg placeholder:text-disabled " + a, R = "rounded-none border-0 shadow-none focus-visible:outline-none focus-visible:ring-0", z = "rounded-none border-0 bg-transparent shadow-none focus-visible:outline-none focus-visible:ring-0", B = "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", V = "flex w-full flex-col gap-1.5", H = "flex w-full flex-col gap-1.5", U = "opacity-50";
|
|
118
|
+
//#endregion
|
|
119
|
+
export { L as inputAttachedFieldClasses, R as inputAttachedInputClasses, o as inputBaseClasses, g as inputCompoundBannerOverlapBottomClasses, _ as inputCompoundBannerOverlapTopPadClasses, v as inputCompoundFieldOverlapTopClasses, b as inputCompoundInnerFieldClassesFor, w as inputCompoundOuterClassesFor, y as inputCompoundShellClassesFor, l as inputCompoundShellFocusRingClasses, H as inputControlStackClasses, B as inputDisabledClasses, U as inputDisabledLabelClasses, O as inputEndBadgeAndStatusGapClasses, D as inputEndBadgeGapClasses, j as inputEndBadgeWrapperClasses, V as inputFieldStackClasses, T as inputIconGapClasses, M as inputIconPositionClasses, N as inputIconSizeClasses, z as inputInlineClasses, i as inputMessagePositions, d as inputShellBorderClasses, p as inputShellClasses, f as inputShellElevationClasses, a as inputShellTransitionClasses, u as inputSizeClasses, n as inputSizes, s as inputSoloFocusRingBaseClasses, c as inputSoloFocusRingColorClasses, m as inputSoloRadiusClasses, F as inputSpinnerSizeClasses, x as inputStatusBannerClassesFor, C as inputStatusBannerIconClasses, S as inputStatusBannerSurfaceClasses, E as inputStatusGapClasses, I as inputStatusIconClasses, P as inputStatusIconSizeClasses, h as inputStatusShellClasses, r as inputStatuses, A as inputTrailingInsetClasses, k as inputTrailingInsetPositionClasses };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type KbdSize } from "./kbdStyles";
|
|
3
|
+
export type { KbdSize } from "./kbdStyles";
|
|
4
|
+
export { kbdSizes } from "./kbdStyles";
|
|
5
|
+
/** Layout-only — margin or flex placement; not for re-theming the keycap. */
|
|
6
|
+
export type KbdLayoutClassName = string;
|
|
7
|
+
export interface KbdProps {
|
|
8
|
+
/** Visible key label, such as `K`, `⌘`, `Enter`, or `Esc`. */
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
size?: KbdSize;
|
|
11
|
+
/** Accessible expansion for symbolic key labels when needed. */
|
|
12
|
+
"aria-label"?: string;
|
|
13
|
+
/** Layout-only: margin or flex placement. */
|
|
14
|
+
className?: KbdLayoutClassName;
|
|
15
|
+
}
|
|
16
|
+
/** Semantic keyboard keycap for shortcuts and command hints. */
|
|
17
|
+
export declare function Kbd({ children, size, "aria-label": ariaLabel, className, }: KbdProps): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=Kbd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Kbd/Kbd.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,6EAA6E;AAC7E,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC,MAAM,WAAW,QAAQ;IACvB,8DAA8D;IAC9D,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAChC;AAED,gEAAgE;AAChE,wBAAgB,GAAG,CAAC,EAClB,QAAQ,EACR,IAAW,EACX,YAAY,EAAE,SAAS,EACvB,SAAS,GACV,EAAE,QAAQ,+BAUV"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { kbdBaseClasses as t, kbdSizeClasses as n, kbdSizes as r } from "./kbdStyles.js";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/atoms/Kbd/Kbd.tsx
|
|
6
|
+
function a({ children: r, size: a = "sm", "aria-label": o, className: s }) {
|
|
7
|
+
return /* @__PURE__ */ i("kbd", {
|
|
8
|
+
"aria-label": o,
|
|
9
|
+
className: e(t, n[a], s),
|
|
10
|
+
"data-size": a,
|
|
11
|
+
children: r
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { a as Kbd, r as kbdSizes };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const kbdSizes: readonly ["sm", "md"];
|
|
2
|
+
export type KbdSize = (typeof kbdSizes)[number];
|
|
3
|
+
export declare const kbdBaseClasses = "inline-flex shrink-0 items-center justify-center rounded-md border border-border bg-body font-mono font-medium leading-none text-fg shadow-[0_1px_0_0_var(--color-border-emphasized)]";
|
|
4
|
+
export declare const kbdSizeClasses: Record<KbdSize, string>;
|
|
5
|
+
//# sourceMappingURL=kbdStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbdStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Kbd/kbdStyles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,uBAAwB,CAAC;AAE9C,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhD,eAAO,MAAM,cAAc,0LAC8J,CAAC;AAE1L,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAGlD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/components/atoms/Kbd/kbdStyles.ts
|
|
3
|
+
var e = ["sm", "md"], t = "inline-flex shrink-0 items-center justify-center rounded-md border border-border bg-body font-mono font-medium leading-none text-fg shadow-[0_1px_0_0_var(--color-border-emphasized)]", n = {
|
|
4
|
+
sm: "h-5 min-w-5 px-1 text-[0.625rem]",
|
|
5
|
+
md: "h-6 min-w-6 px-1.5 text-xs"
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as kbdBaseClasses, n as kbdSizeClasses, e as kbdSizes };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface UseKbdChoiceKeysOptions {
|
|
2
|
+
/**
|
|
3
|
+
* When false, digit listeners stay idle. Use while the numbered choices are
|
|
4
|
+
* on screen (for example, step 1 of a starter gate).
|
|
5
|
+
*/
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* `KeyboardEvent.key` → select handler. Keys are usually `"1"`…`"4"`.
|
|
9
|
+
* Each handler must match the click path for that choice (toggle / select).
|
|
10
|
+
*/
|
|
11
|
+
choices: Readonly<Record<string, () => void>>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Window-level shortcuts for numbered choices documented with **Kbd**.
|
|
15
|
+
*
|
|
16
|
+
* **Kbd** stays display-only — this hook owns the select behavior so Pattern
|
|
17
|
+
* Show code can copy both. Ignores editable targets (`input`, `textarea`,
|
|
18
|
+
* `select`, contenteditable) and meta/ctrl/alt chords.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useKbdChoiceKeys({ enabled, choices, }: UseKbdChoiceKeysOptions): void;
|
|
21
|
+
//# sourceMappingURL=useKbdChoiceKeys.d.ts.map
|