@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,10 @@
|
|
|
1
|
+
import { type ButtonSize } from "./buttonStyles";
|
|
2
|
+
import type { ButtonStatus } from "./buttonStatusStyles";
|
|
3
|
+
export declare function ButtonStatusIcon({ status, size }: {
|
|
4
|
+
status: ButtonStatus;
|
|
5
|
+
size: ButtonSize;
|
|
6
|
+
}): import("react").JSX.Element | null;
|
|
7
|
+
export declare function ButtonStatusLabel({ label }: {
|
|
8
|
+
label: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=ButtonStatusContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonStatusContent.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/ButtonStatusContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAKxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAwCzD,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,sCAsB5F;AAED,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAkB7D"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { buttonIconSizeClasses as t } from "./buttonStyles.js";
|
|
4
|
+
import { statusIconSpring as n, statusLabelSpring as r } from "./buttonStatusMotion.js";
|
|
5
|
+
import { Check as i, Loader2 as a, X as o } from "lucide-react";
|
|
6
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
7
|
+
import { AnimatePresence as c, motion as l, useTime as u, useTransform as d } from "motion/react";
|
|
8
|
+
//#region src/components/atoms/Button/ButtonStatusContent.tsx
|
|
9
|
+
function f({ size: n }) {
|
|
10
|
+
let r = u(), i = d(r, [0, 1e3], [0, 360], { clamp: !1 });
|
|
11
|
+
return /* @__PURE__ */ s(l.span, {
|
|
12
|
+
className: "inline-flex shrink-0",
|
|
13
|
+
style: { rotate: i },
|
|
14
|
+
"aria-hidden": !0,
|
|
15
|
+
children: /* @__PURE__ */ s(a, {
|
|
16
|
+
className: e("stroke-current", t[n]),
|
|
17
|
+
strokeWidth: 2
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function p({ status: n, size: r }) {
|
|
22
|
+
let a = e("shrink-0 stroke-current", t[r]);
|
|
23
|
+
return n === "loading" ? /* @__PURE__ */ s(f, { size: r }) : s(n === "success" ? i : o, {
|
|
24
|
+
className: a,
|
|
25
|
+
strokeWidth: 2.5,
|
|
26
|
+
"aria-hidden": !0
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function m({ status: e, size: t }) {
|
|
30
|
+
return e === "idle" ? null : /* @__PURE__ */ s(c, {
|
|
31
|
+
mode: "popLayout",
|
|
32
|
+
initial: !1,
|
|
33
|
+
children: /* @__PURE__ */ s(l.span, {
|
|
34
|
+
layout: !0,
|
|
35
|
+
layoutId: "status-icon",
|
|
36
|
+
className: "inline-flex shrink-0 items-center justify-center",
|
|
37
|
+
initial: {
|
|
38
|
+
opacity: 0,
|
|
39
|
+
scale: .5,
|
|
40
|
+
filter: "blur(4px)"
|
|
41
|
+
},
|
|
42
|
+
animate: {
|
|
43
|
+
opacity: 1,
|
|
44
|
+
scale: 1,
|
|
45
|
+
filter: "blur(0px)"
|
|
46
|
+
},
|
|
47
|
+
exit: {
|
|
48
|
+
opacity: 0,
|
|
49
|
+
scale: .5,
|
|
50
|
+
filter: "blur(4px)"
|
|
51
|
+
},
|
|
52
|
+
transition: n,
|
|
53
|
+
"aria-hidden": !0,
|
|
54
|
+
children: /* @__PURE__ */ s(p, {
|
|
55
|
+
status: e,
|
|
56
|
+
size: t
|
|
57
|
+
})
|
|
58
|
+
}, e)
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function h({ label: e }) {
|
|
62
|
+
return /* @__PURE__ */ s("span", {
|
|
63
|
+
className: "relative inline-flex items-center justify-center overflow-hidden",
|
|
64
|
+
children: /* @__PURE__ */ s(c, {
|
|
65
|
+
mode: "popLayout",
|
|
66
|
+
initial: !1,
|
|
67
|
+
children: /* @__PURE__ */ s(l.span, {
|
|
68
|
+
layout: !0,
|
|
69
|
+
className: "inline-block whitespace-nowrap",
|
|
70
|
+
initial: {
|
|
71
|
+
opacity: 0,
|
|
72
|
+
y: 8,
|
|
73
|
+
filter: "blur(6px)"
|
|
74
|
+
},
|
|
75
|
+
animate: {
|
|
76
|
+
opacity: 1,
|
|
77
|
+
y: 0,
|
|
78
|
+
filter: "blur(0px)"
|
|
79
|
+
},
|
|
80
|
+
exit: {
|
|
81
|
+
opacity: 0,
|
|
82
|
+
y: -8,
|
|
83
|
+
filter: "blur(6px)"
|
|
84
|
+
},
|
|
85
|
+
transition: r,
|
|
86
|
+
children: e
|
|
87
|
+
}, e)
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
export { m as ButtonStatusIcon, h as ButtonStatusLabel };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ButtonRole } from "./buttonStyles";
|
|
2
|
+
import type { ButtonStatus } from "./buttonStatusStyles";
|
|
3
|
+
/** Motion `animate` targets — CSS vars resolve at runtime for smooth crossfades. */
|
|
4
|
+
export type StatusPaint = {
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
/** Non-animated shell utilities paired with `animate` paint. */
|
|
9
|
+
export declare const statusShellClasses: Record<ButtonStatus, string>;
|
|
10
|
+
export declare const roleIdleShellClasses: Record<ButtonRole, string>;
|
|
11
|
+
export declare function getStatusPaint(status: ButtonStatus, role: ButtonRole): StatusPaint;
|
|
12
|
+
export declare function getStatusShellClass(status: ButtonStatus, role: ButtonRole): string;
|
|
13
|
+
/** Shared layout transition for pill width + paint — matches Motion example feel. */
|
|
14
|
+
export declare const statusMorphTransition: {
|
|
15
|
+
layout: {
|
|
16
|
+
duration: number;
|
|
17
|
+
ease: readonly [0.16, 1, 0.3, 1];
|
|
18
|
+
};
|
|
19
|
+
backgroundColor: {
|
|
20
|
+
duration: number;
|
|
21
|
+
ease: readonly [0.16, 1, 0.3, 1];
|
|
22
|
+
};
|
|
23
|
+
color: {
|
|
24
|
+
duration: number;
|
|
25
|
+
ease: readonly [0.16, 1, 0.3, 1];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const statusIconSpring: {
|
|
29
|
+
type: "spring";
|
|
30
|
+
stiffness: number;
|
|
31
|
+
damping: number;
|
|
32
|
+
mass: number;
|
|
33
|
+
};
|
|
34
|
+
export declare const statusLabelSpring: {
|
|
35
|
+
type: "spring";
|
|
36
|
+
stiffness: number;
|
|
37
|
+
damping: number;
|
|
38
|
+
mass: number;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=buttonStatusMotion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonStatusMotion.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/buttonStatusMotion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,oFAAoF;AACpF,MAAM,MAAM,WAAW,GAAG;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA4CF,gEAAgE;AAChE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAK3D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAO3D,CAAC;AAEF,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,GAAG,WAAW,CAElF;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CAElF;AAED,qFAAqF;AACrF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;CAK7B,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/components/atoms/Button/buttonStatusMotion.ts
|
|
3
|
+
var e = {
|
|
4
|
+
primary: {
|
|
5
|
+
backgroundColor: "var(--color-primary)",
|
|
6
|
+
color: "var(--color-on-primary)"
|
|
7
|
+
},
|
|
8
|
+
secondary: {
|
|
9
|
+
backgroundColor: "var(--color-secondary)",
|
|
10
|
+
color: "var(--color-secondary-foreground)"
|
|
11
|
+
},
|
|
12
|
+
ghost: {
|
|
13
|
+
backgroundColor: "transparent",
|
|
14
|
+
color: "var(--color-ghost-foreground)"
|
|
15
|
+
},
|
|
16
|
+
destructive: {
|
|
17
|
+
backgroundColor: "var(--color-error)",
|
|
18
|
+
color: "var(--color-on-error)"
|
|
19
|
+
},
|
|
20
|
+
inverse: {
|
|
21
|
+
backgroundColor: "var(--color-on-brand)",
|
|
22
|
+
color: "var(--color-brand)"
|
|
23
|
+
},
|
|
24
|
+
outline: {
|
|
25
|
+
backgroundColor: "transparent",
|
|
26
|
+
color: "var(--color-fg)"
|
|
27
|
+
}
|
|
28
|
+
}, t = {
|
|
29
|
+
loading: {
|
|
30
|
+
backgroundColor: "var(--color-secondary)",
|
|
31
|
+
color: "var(--color-secondary-foreground)"
|
|
32
|
+
},
|
|
33
|
+
success: {
|
|
34
|
+
backgroundColor: "var(--color-success)",
|
|
35
|
+
color: "var(--color-on-success)"
|
|
36
|
+
},
|
|
37
|
+
error: {
|
|
38
|
+
backgroundColor: "var(--color-error)",
|
|
39
|
+
color: "var(--color-on-error)"
|
|
40
|
+
}
|
|
41
|
+
}, n = {
|
|
42
|
+
idle: "",
|
|
43
|
+
loading: "shadow-raised",
|
|
44
|
+
success: "shadow-inset-highlight",
|
|
45
|
+
error: ""
|
|
46
|
+
}, r = {
|
|
47
|
+
primary: "",
|
|
48
|
+
secondary: "shadow-raised",
|
|
49
|
+
ghost: "",
|
|
50
|
+
destructive: "",
|
|
51
|
+
inverse: "shadow-raised",
|
|
52
|
+
outline: ""
|
|
53
|
+
};
|
|
54
|
+
function i(n, r) {
|
|
55
|
+
return n === "idle" ? e[r] : t[n];
|
|
56
|
+
}
|
|
57
|
+
function a(e, t) {
|
|
58
|
+
return e === "idle" ? r[t] : n[e];
|
|
59
|
+
}
|
|
60
|
+
var o = {
|
|
61
|
+
layout: {
|
|
62
|
+
duration: .28,
|
|
63
|
+
ease: [
|
|
64
|
+
.16,
|
|
65
|
+
1,
|
|
66
|
+
.3,
|
|
67
|
+
1
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
backgroundColor: {
|
|
71
|
+
duration: .2,
|
|
72
|
+
ease: [
|
|
73
|
+
.16,
|
|
74
|
+
1,
|
|
75
|
+
.3,
|
|
76
|
+
1
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
color: {
|
|
80
|
+
duration: .2,
|
|
81
|
+
ease: [
|
|
82
|
+
.16,
|
|
83
|
+
1,
|
|
84
|
+
.3,
|
|
85
|
+
1
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}, s = {
|
|
89
|
+
type: "spring",
|
|
90
|
+
stiffness: 520,
|
|
91
|
+
damping: 32,
|
|
92
|
+
mass: .85
|
|
93
|
+
}, c = {
|
|
94
|
+
type: "spring",
|
|
95
|
+
stiffness: 480,
|
|
96
|
+
damping: 34,
|
|
97
|
+
mass: .9
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { i as getStatusPaint, a as getStatusShellClass, r as roleIdleShellClasses, s as statusIconSpring, c as statusLabelSpring, o as statusMorphTransition, n as statusShellClasses };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/** Multi-state pill cycle — inspired by [Motion multi-state badge](https://motion.dev/examples/react-multi-state-badge). */
|
|
3
|
+
export type ButtonStatus = "idle" | "loading" | "success" | "error";
|
|
4
|
+
export declare const buttonStatusCycle: ButtonStatus[];
|
|
5
|
+
export declare const defaultStatusLabels: Record<ButtonStatus, string>;
|
|
6
|
+
export declare function getNextButtonStatus(current: ButtonStatus): ButtonStatus;
|
|
7
|
+
export declare function resolveStatusLabels(children: ReactNode, overrides?: Partial<Record<ButtonStatus, string>>): Record<ButtonStatus, string>;
|
|
8
|
+
/** Status morph sizing — aligns with cluster scale for xs/sm/md (ADR-0011). */
|
|
9
|
+
export declare const buttonStatusSizeClasses: {
|
|
10
|
+
readonly xs: `${string} ${string} py-1 text-sm leading-none`;
|
|
11
|
+
readonly sm: `${string} ${string} py-1.5 text-sm leading-none`;
|
|
12
|
+
readonly md: `${string} ${string} py-2.5 text-sm leading-none`;
|
|
13
|
+
readonly lg: `min-h-12 ${string} py-3 text-base leading-none`;
|
|
14
|
+
};
|
|
15
|
+
export declare const buttonStatusIconGapClasses: {
|
|
16
|
+
readonly xs: "gap-1.5";
|
|
17
|
+
readonly sm: "gap-1.5";
|
|
18
|
+
readonly md: "gap-2";
|
|
19
|
+
readonly lg: "gap-2";
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=buttonStatusStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonStatusStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/buttonStatusStyles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,4HAA4H;AAC5H,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,eAAO,MAAM,iBAAiB,EAAE,YAAY,EAA4C,CAAC;AAEzF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAK5D,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,YAAY,CAGvE;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,SAAS,EACnB,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,GAChD,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAW9B;AAED,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB;;;;;CAKW,CAAC;AAEhD,eAAO,MAAM,0BAA0B;;;;;CAKQ,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { clusterHeightClasses as e } from "../../../lib/clusterScale.js";
|
|
3
|
+
import { buttonHorizontalPadding as t } from "./buttonStyles.js";
|
|
4
|
+
//#region src/components/atoms/Button/buttonStatusStyles.ts
|
|
5
|
+
var n = [
|
|
6
|
+
"idle",
|
|
7
|
+
"loading",
|
|
8
|
+
"success",
|
|
9
|
+
"error"
|
|
10
|
+
], r = {
|
|
11
|
+
idle: "Start",
|
|
12
|
+
loading: "Processing",
|
|
13
|
+
success: "Success",
|
|
14
|
+
error: "Error"
|
|
15
|
+
};
|
|
16
|
+
function i(e) {
|
|
17
|
+
return n[(n.indexOf(e) + 1) % n.length];
|
|
18
|
+
}
|
|
19
|
+
function a(e, t) {
|
|
20
|
+
return {
|
|
21
|
+
idle: t?.idle ?? (typeof e == "string" || typeof e == "number" ? String(e) : r.idle),
|
|
22
|
+
loading: t?.loading ?? r.loading,
|
|
23
|
+
success: t?.success ?? r.success,
|
|
24
|
+
error: t?.error ?? r.error
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
var o = {
|
|
28
|
+
xs: `${e.sm} ${t.xs} py-1 text-sm leading-none`,
|
|
29
|
+
sm: `${e.md} ${t.sm} py-1.5 text-sm leading-none`,
|
|
30
|
+
md: `${e.lg} ${t.md} py-2.5 text-sm leading-none`,
|
|
31
|
+
lg: `min-h-12 ${t.lg} py-3 text-base leading-none`
|
|
32
|
+
}, s = {
|
|
33
|
+
xs: "gap-1.5",
|
|
34
|
+
sm: "gap-1.5",
|
|
35
|
+
md: "gap-2",
|
|
36
|
+
lg: "gap-2"
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { n as buttonStatusCycle, s as buttonStatusIconGapClasses, o as buttonStatusSizeClasses, r as defaultStatusLabels, i as getNextButtonStatus, a as resolveStatusLabels };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Prescribed action roles — not a semantic color picker. ADR-0004. */
|
|
2
|
+
export declare const buttonRoles: readonly ["primary", "secondary", "ghost", "destructive", "inverse", "outline"];
|
|
3
|
+
export type ButtonRole = (typeof buttonRoles)[number];
|
|
4
|
+
export type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
5
|
+
export type IconButtonSize = ButtonSize;
|
|
6
|
+
/** All action buttons are pills by default — `layout="row"` for flat full-width detail lines. */
|
|
7
|
+
export declare const buttonPillClass = "rounded-full";
|
|
8
|
+
export declare const buttonLayouts: readonly ["pill", "row", "nav"];
|
|
9
|
+
export type ButtonLayout = (typeof buttonLayouts)[number];
|
|
10
|
+
/** `layout="row"` width: `fill` (default) spans the container; `hug` sizes to its content. */
|
|
11
|
+
export declare const buttonWidths: readonly ["fill", "hug"];
|
|
12
|
+
export type ButtonWidth = (typeof buttonWidths)[number];
|
|
13
|
+
/** Pill content alignment: `center` (default) or `start` for full-width suggestion and choice rows. */
|
|
14
|
+
export declare const buttonAligns: readonly ["center", "start"];
|
|
15
|
+
export type ButtonAlign = (typeof buttonAligns)[number];
|
|
16
|
+
/** `role="outline"` border: `strong` (default, `border-fg`) or `quiet` (`border-border` hairline). */
|
|
17
|
+
export declare const buttonEmphases: readonly ["strong", "quiet"];
|
|
18
|
+
export type ButtonEmphasis = (typeof buttonEmphases)[number];
|
|
19
|
+
export declare const buttonBaseClasses: string;
|
|
20
|
+
export declare const buttonRoleClasses: Record<ButtonRole, string>;
|
|
21
|
+
/** `role="outline"` with `emphasis="quiet"` — the same outline on the quiet `border-border` hairline. */
|
|
22
|
+
export declare const buttonOutlineQuietClasses = "border border-border bg-transparent text-fg hover:bg-ghost-hover active:bg-ghost-active";
|
|
23
|
+
/** Content alignment inside a pill (and IconButton / status pills, which stay centered). */
|
|
24
|
+
export declare const buttonAlignClasses: Record<ButtonAlign, string>;
|
|
25
|
+
/**
|
|
26
|
+
* Mono uppercase label. `!` beats the sans medium shell.
|
|
27
|
+
* Size is `--font-size-sm` (12px) — small, still a control label.
|
|
28
|
+
*/
|
|
29
|
+
export declare const buttonMonoLabelClasses = "!font-mono !text-[length:var(--font-size-sm)] !font-normal !uppercase !leading-none !tracking-[0.14em]";
|
|
30
|
+
/** Trailing accent square for a Lucide glyph (`endIcon`). */
|
|
31
|
+
export declare const buttonEndIconSquareClasses = "inline-flex size-5 shrink-0 items-center justify-center rounded-none bg-accent text-on-accent";
|
|
32
|
+
/** Horizontal padding per size — md = 20px (`px-5`). Shared by action and status modes. */
|
|
33
|
+
export declare const buttonHorizontalPadding: Record<ButtonSize, string>;
|
|
34
|
+
/** Touch-friendly heights — xs/sm/md align to cluster sm/md/lg (ADR-0011); lg is extended. */
|
|
35
|
+
export declare const buttonSizeClasses: Record<ButtonSize, string>;
|
|
36
|
+
export declare const buttonIconSizeClasses: Record<ButtonSize, string>;
|
|
37
|
+
/** Square hit targets — xs/sm/md align to cluster sm/md/lg; lg is FAB extended (48px). */
|
|
38
|
+
export declare const iconButtonSizeClasses: Record<IconButtonSize, string>;
|
|
39
|
+
/** Flat row — TaskRows detail lines, settings rows (not a pill CTA). Width comes from `buttonRowWidthClasses`. */
|
|
40
|
+
export declare const buttonRowBaseClasses: string;
|
|
41
|
+
export declare const buttonRowLayoutClasses: string;
|
|
42
|
+
/** `fill` — label and value pushed apart across the row. `hug` — content width, label and value close together. */
|
|
43
|
+
export declare const buttonRowWidthClasses: Record<ButtonWidth, string>;
|
|
44
|
+
/** Inset nav row — **NavList** rows (icon + label + optional count as children). */
|
|
45
|
+
export declare const buttonNavLayoutClasses: string;
|
|
46
|
+
export declare function buttonNavStateClasses(selected: boolean): string;
|
|
47
|
+
//# sourceMappingURL=buttonStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/buttonStyles.ts"],"names":[],"mappings":"AAMA,uEAAuE;AACvE,eAAO,MAAM,WAAW,iFAAkF,CAAC;AAE3G,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC;AAExC,iGAAiG;AACjG,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,eAAO,MAAM,aAAa,iCAAkC,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,8FAA8F;AAC9F,eAAO,MAAM,YAAY,0BAA2B,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,uGAAuG;AACvG,eAAO,MAAM,YAAY,8BAA+B,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,sGAAsG;AACtG,eAAO,MAAM,cAAc,8BAA+B,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,eAAO,MAAM,iBAAiB,QAUd,CAAC;AAEjB,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAaxD,CAAC;AAEF,yGAAyG;AACzG,eAAO,MAAM,yBAAyB,4FACqD,CAAC;AAE5F,4FAA4F;AAC5F,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAG1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,2GACuE,CAAC;AAE3G,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,kGAC0D,CAAC;AAElG,2FAA2F;AAC3F,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAK9D,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAKxD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAK5D,CAAC;AAEF,0FAA0F;AAC1F,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKhE,CAAC;AAEF,kHAAkH;AAClH,eAAO,MAAM,oBAAoB,QAK+C,CAAC;AAEjF,eAAO,MAAM,sBAAsB,QAEqB,CAAC;AAEzD,mHAAmH;AACnH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAG7D,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,sBAAsB,QAGqB,CAAC;AAEzD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAI/D"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { motionTransition as e, pressScaleClass as t } from "../../../lib/motion.js";
|
|
3
|
+
import { clusterHeightClasses as n, clusterSquareClasses as r } from "../../../lib/clusterScale.js";
|
|
4
|
+
//#region src/components/atoms/Button/buttonStyles.ts
|
|
5
|
+
var i = [
|
|
6
|
+
"primary",
|
|
7
|
+
"secondary",
|
|
8
|
+
"ghost",
|
|
9
|
+
"destructive",
|
|
10
|
+
"inverse",
|
|
11
|
+
"outline"
|
|
12
|
+
], a = "rounded-full", o = [
|
|
13
|
+
"pill",
|
|
14
|
+
"row",
|
|
15
|
+
"nav"
|
|
16
|
+
], s = ["fill", "hug"], c = ["center", "start"], l = ["strong", "quiet"], u = "inline-flex cursor-pointer items-center font-sans font-medium tracking-normal transition-[color,transform,box-shadow,border-color,outline-color,background-color] " + e("fast") + " " + t + " focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-body disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:pointer-events-none aria-disabled:opacity-50 no-underline", d = {
|
|
17
|
+
primary: "bg-primary text-primary-foreground hover:bg-primary-hover active:bg-primary-active",
|
|
18
|
+
secondary: "bg-secondary text-secondary-foreground shadow-raised hover:bg-secondary-hover active:bg-secondary-active",
|
|
19
|
+
ghost: "bg-transparent text-ghost-foreground hover:bg-ghost-hover active:bg-ghost-active",
|
|
20
|
+
destructive: "bg-error text-on-error hover:bg-error-hover active:bg-error-active",
|
|
21
|
+
inverse: "bg-on-brand text-brand shadow-raised hover:bg-on-brand-hover active:bg-on-brand-hover",
|
|
22
|
+
outline: "border border-fg bg-transparent text-fg hover:bg-ghost-hover active:bg-ghost-active"
|
|
23
|
+
}, f = "border border-border bg-transparent text-fg hover:bg-ghost-hover active:bg-ghost-active", p = {
|
|
24
|
+
center: "justify-center",
|
|
25
|
+
start: "justify-start text-left"
|
|
26
|
+
}, m = "!font-mono !text-[length:var(--font-size-sm)] !font-normal !uppercase !leading-none !tracking-[0.14em]", h = "inline-flex size-5 shrink-0 items-center justify-center rounded-none bg-accent text-on-accent", g = {
|
|
27
|
+
xs: "px-3.5",
|
|
28
|
+
sm: "px-4",
|
|
29
|
+
md: "px-5",
|
|
30
|
+
lg: "px-7"
|
|
31
|
+
}, _ = {
|
|
32
|
+
xs: `${n.sm} ${g.xs} py-1 text-sm leading-none`,
|
|
33
|
+
sm: `${n.md} ${g.sm} py-1.5 text-sm leading-none`,
|
|
34
|
+
md: `${n.lg} ${g.md} py-2.5 text-sm leading-none`,
|
|
35
|
+
lg: `min-h-12 ${g.lg} py-3 text-base leading-none`
|
|
36
|
+
}, v = {
|
|
37
|
+
xs: "size-3.5",
|
|
38
|
+
sm: "size-4",
|
|
39
|
+
md: "size-4",
|
|
40
|
+
lg: "size-[1.125rem]"
|
|
41
|
+
}, y = {
|
|
42
|
+
xs: r.sm,
|
|
43
|
+
sm: r.md,
|
|
44
|
+
md: r.lg,
|
|
45
|
+
lg: "size-12 shrink-0"
|
|
46
|
+
}, b = "flex cursor-pointer items-center font-sans tracking-normal transition-[color,background-color,outline-color] " + e("fast") + " focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50", x = "h-auto min-h-0 rounded-md px-1.5 py-1 text-left font-normal focus-visible:ring-inset focus-visible:ring-offset-0", S = {
|
|
47
|
+
fill: "w-full justify-between gap-3",
|
|
48
|
+
hug: "w-auto justify-start gap-1.5"
|
|
49
|
+
}, C = "h-auto min-h-0 w-full justify-start gap-2.5 rounded-xl px-2.5 py-2 text-left text-sm font-normal leading-[var(--line-height-sm)] focus-visible:ring-inset focus-visible:ring-offset-0";
|
|
50
|
+
function w(e) {
|
|
51
|
+
return e ? "bg-secondary text-secondary-foreground" : "bg-transparent text-muted hover:bg-ghost-hover hover:text-fg";
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { p as buttonAlignClasses, c as buttonAligns, u as buttonBaseClasses, l as buttonEmphases, h as buttonEndIconSquareClasses, g as buttonHorizontalPadding, v as buttonIconSizeClasses, o as buttonLayouts, m as buttonMonoLabelClasses, C as buttonNavLayoutClasses, w as buttonNavStateClasses, f as buttonOutlineQuietClasses, a as buttonPillClass, d as buttonRoleClasses, i as buttonRoles, b as buttonRowBaseClasses, x as buttonRowLayoutClasses, S as buttonRowWidthClasses, _ as buttonSizeClasses, s as buttonWidths, y as iconButtonSizeClasses };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type InputHTMLAttributes } from "react";
|
|
2
|
+
import { type CheckboxSize } from "./checkboxStyles";
|
|
3
|
+
import type { InputStatus } from "../Input/inputShellStyles";
|
|
4
|
+
export { checkboxSizes, type CheckboxSize } from "./checkboxStyles";
|
|
5
|
+
export { inputStatuses, type InputStatus } from "../Input/inputShellStyles";
|
|
6
|
+
/** Layout-only — width/margin on the row wrapper. */
|
|
7
|
+
export type CheckboxLayoutClassName = string;
|
|
8
|
+
export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
|
|
9
|
+
size?: CheckboxSize;
|
|
10
|
+
/** Visible label — always rendered; use `labelHidden` to visually hide. */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Visually hide label — still available to assistive tech. */
|
|
13
|
+
labelHidden?: boolean;
|
|
14
|
+
/** Neutral helper below the label. */
|
|
15
|
+
description?: string;
|
|
16
|
+
/** Mixed selection — sets native `indeterminate` on the input. */
|
|
17
|
+
indeterminate?: boolean;
|
|
18
|
+
/** Validation status — tints box border; pair with `message`. */
|
|
19
|
+
status?: InputStatus;
|
|
20
|
+
/** Validation copy below the row — requires `status`. */
|
|
21
|
+
message?: string;
|
|
22
|
+
/** Spinner inside the box — async validation. */
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
className?: CheckboxLayoutClassName;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Boolean toggle — box + label row.
|
|
28
|
+
* Label + optional description beside the box; validation message below the row.
|
|
29
|
+
*/
|
|
30
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
31
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,mBAAmB,EACzB,MAAM,OAAO,CAAC;AAIf,OAAO,EAiBL,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE5E,qDAAqD;AACrD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpE,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iEAAiE;IACjE,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAcD;;;GAGG;AACH,eAAO,MAAM,QAAQ,4GAgLnB,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import "../Input/inputShellStyles.js";
|
|
4
|
+
import { InputStatusBanner as t } from "../inputShared/InputStatusBanner.js";
|
|
5
|
+
import { checkboxBoxClassesFor as n, checkboxCheckIconSizeClasses as r, checkboxDescriptionClasses as i, checkboxDescriptionRowClasses as ee, checkboxHiddenInputClasses as a, checkboxHitTargetDescriptionAlignClasses as o, checkboxHitTargetSizeClasses as s, checkboxIndeterminateBarSizeClasses as c, checkboxLabelClassesFor as l, checkboxMarkClasses as u, checkboxRowBaseClasses as d, checkboxRowSizeClasses as f, checkboxSizes as p, checkboxStatusBannerClassesFor as m, checkboxTextColumnClasses as h } from "./checkboxStyles.js";
|
|
6
|
+
import { forwardRef as g, useCallback as _, useId as v, useState as y } from "react";
|
|
7
|
+
import { Check as te, Loader2 as ne } from "lucide-react";
|
|
8
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/atoms/Checkbox/Checkbox.tsx
|
|
10
|
+
var C = {
|
|
11
|
+
sm: "sm",
|
|
12
|
+
md: "md"
|
|
13
|
+
};
|
|
14
|
+
function w(e) {
|
|
15
|
+
e.message != null && e.status == null && console.warn("[WMDS Checkbox] `message` requires `status`.");
|
|
16
|
+
}
|
|
17
|
+
var T = g(function({ size: p = "md", label: g, labelHidden: T = !1, description: E, indeterminate: D = !1, status: O, message: k, loading: A = !1, className: j, disabled: M, readOnly: N, checked: P, defaultChecked: F, id: I, onChange: L, ...R }, z) {
|
|
18
|
+
let B = v(), V = I ?? B;
|
|
19
|
+
w({
|
|
20
|
+
status: O,
|
|
21
|
+
message: k
|
|
22
|
+
});
|
|
23
|
+
let H = P !== void 0, [U, W] = y(F ?? !1), G = H ? !!P : U, K = M || A, q = k != null && k.length > 0 && O != null, J = q ? `${V}-message` : void 0, Y = E != null && !T ? `${V}-description` : void 0, X = [
|
|
24
|
+
R["aria-describedby"],
|
|
25
|
+
Y,
|
|
26
|
+
J
|
|
27
|
+
].filter(Boolean).join(" ") || void 0, re = _((e) => {
|
|
28
|
+
e && (e.indeterminate = D), typeof z == "function" ? z(e) : z != null && (z.current = e);
|
|
29
|
+
}, [D, z]), ie = (e) => {
|
|
30
|
+
if (N) {
|
|
31
|
+
e.preventDefault();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
H || W(e.target.checked), L?.(e);
|
|
35
|
+
}, ae = n(p, G, D, K, q ? void 0 : O), Z = E != null && !T, Q = (t) => /* @__PURE__ */ S("span", {
|
|
36
|
+
className: e("relative flex shrink-0 items-center justify-center", s[p], t),
|
|
37
|
+
children: [/* @__PURE__ */ x("input", {
|
|
38
|
+
...R,
|
|
39
|
+
ref: re,
|
|
40
|
+
id: V,
|
|
41
|
+
type: "checkbox",
|
|
42
|
+
checked: H ? P : void 0,
|
|
43
|
+
defaultChecked: H ? void 0 : F,
|
|
44
|
+
disabled: K,
|
|
45
|
+
readOnly: N,
|
|
46
|
+
"aria-invalid": O === "error" || void 0,
|
|
47
|
+
"aria-describedby": X,
|
|
48
|
+
"aria-checked": D ? "mixed" : void 0,
|
|
49
|
+
"aria-busy": A || void 0,
|
|
50
|
+
onChange: ie,
|
|
51
|
+
className: a
|
|
52
|
+
}), /* @__PURE__ */ x("span", {
|
|
53
|
+
className: ae,
|
|
54
|
+
"aria-hidden": !0,
|
|
55
|
+
children: A ? /* @__PURE__ */ x(ne, {
|
|
56
|
+
className: e(r[p], u, "animate-spin"),
|
|
57
|
+
strokeWidth: 2
|
|
58
|
+
}) : D ? /* @__PURE__ */ x("span", { className: e(c[p], u, "rounded-full bg-current") }) : G ? /* @__PURE__ */ x(te, {
|
|
59
|
+
className: e(r[p], u),
|
|
60
|
+
strokeWidth: 3,
|
|
61
|
+
"aria-hidden": !0
|
|
62
|
+
}) : null
|
|
63
|
+
})]
|
|
64
|
+
}), $ = /* @__PURE__ */ x("label", {
|
|
65
|
+
htmlFor: V,
|
|
66
|
+
className: e(d, !Z && "items-center", !Z && f[p], K && "cursor-not-allowed", j),
|
|
67
|
+
children: T ? /* @__PURE__ */ S(b, { children: [Q(), /* @__PURE__ */ x("span", {
|
|
68
|
+
className: "sr-only",
|
|
69
|
+
children: g
|
|
70
|
+
})] }) : Z ? /* @__PURE__ */ S("span", {
|
|
71
|
+
className: ee[p],
|
|
72
|
+
children: [Q(o[p]), /* @__PURE__ */ S("span", {
|
|
73
|
+
className: h,
|
|
74
|
+
children: [/* @__PURE__ */ x("span", {
|
|
75
|
+
className: l(K, !0),
|
|
76
|
+
children: g
|
|
77
|
+
}), /* @__PURE__ */ x("span", {
|
|
78
|
+
id: Y,
|
|
79
|
+
className: i,
|
|
80
|
+
children: E
|
|
81
|
+
})]
|
|
82
|
+
})]
|
|
83
|
+
}) : /* @__PURE__ */ S(b, { children: [Q(), /* @__PURE__ */ x("span", {
|
|
84
|
+
className: l(K),
|
|
85
|
+
children: g
|
|
86
|
+
})] })
|
|
87
|
+
});
|
|
88
|
+
return !q || O == null || J == null ? $ : /* @__PURE__ */ S("div", {
|
|
89
|
+
className: "flex w-full flex-col gap-1.5",
|
|
90
|
+
children: [$, /* @__PURE__ */ x(t, {
|
|
91
|
+
status: O,
|
|
92
|
+
message: k,
|
|
93
|
+
messageId: J,
|
|
94
|
+
size: C[p],
|
|
95
|
+
messagePosition: "bottom",
|
|
96
|
+
bannerClassName: m(O)
|
|
97
|
+
})]
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
101
|
+
export { T as Checkbox, p as checkboxSizes };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type InputStatus } from "../Input/inputShellStyles";
|
|
2
|
+
export declare const checkboxSizes: readonly ["sm", "md"];
|
|
3
|
+
export type CheckboxSize = (typeof checkboxSizes)[number];
|
|
4
|
+
/** Row rhythm — aligns with cluster sm (28px) / md (36px) tiers. */
|
|
5
|
+
export declare const checkboxRowSizeClasses: Record<CheckboxSize, string>;
|
|
6
|
+
/** Touch target wrapper — centers the visual box ([Astryx CheckboxInput](https://astryx.atmeta.com/components/CheckboxInput)). */
|
|
7
|
+
export declare const checkboxHitTargetSizeClasses: Record<CheckboxSize, string>;
|
|
8
|
+
export declare const checkboxBoxSizeClasses: Record<CheckboxSize, string>;
|
|
9
|
+
export declare const checkboxCheckIconSizeClasses: Record<CheckboxSize, string>;
|
|
10
|
+
export declare const checkboxIndeterminateBarSizeClasses: Record<CheckboxSize, string>;
|
|
11
|
+
export declare const checkboxBoxBaseClasses: string;
|
|
12
|
+
export declare const checkboxBoxUncheckedClasses = "border-border-emphasized bg-surface group-hover/checkbox:border-border-emphasized group-hover/checkbox:bg-body";
|
|
13
|
+
export declare const checkboxBoxCheckedClasses = "border-primary bg-primary text-primary-foreground group-hover/checkbox:border-primary group-hover/checkbox:bg-primary";
|
|
14
|
+
/** Check / indeterminate / spinner marks on the filled box. */
|
|
15
|
+
export declare const checkboxMarkClasses = "stroke-current text-inherit";
|
|
16
|
+
export declare const checkboxBoxDisabledClasses = "opacity-50";
|
|
17
|
+
export declare const checkboxLabelClasses: string;
|
|
18
|
+
/** Tighter than global `type-supporting` leading — checkbox description only. */
|
|
19
|
+
export declare const checkboxDescriptionClasses: string;
|
|
20
|
+
/** Label + description column beside the box — tight title/subtitle rhythm. */
|
|
21
|
+
export declare const checkboxTextColumnClasses = "flex min-w-0 flex-col gap-px";
|
|
22
|
+
export declare const checkboxLabelWithDescriptionClasses: string;
|
|
23
|
+
export declare const checkboxDescriptionRowClasses: Record<CheckboxSize, string>;
|
|
24
|
+
/** Optical center — box with single-line title cap (not full text column). */
|
|
25
|
+
export declare const checkboxHitTargetDescriptionAlignClasses: Record<CheckboxSize, string>;
|
|
26
|
+
export declare const checkboxRowBaseClasses = "group/checkbox relative flex w-full cursor-pointer";
|
|
27
|
+
/** Single-line label — vertically center with the box. */
|
|
28
|
+
export declare const checkboxRowLabelOnlyClasses = "items-center";
|
|
29
|
+
export declare const checkboxRowClasses: string;
|
|
30
|
+
export declare const checkboxRowDisabledClasses = "cursor-not-allowed";
|
|
31
|
+
export declare const checkboxHiddenInputClasses = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed";
|
|
32
|
+
export declare const checkboxFocusRingClasses = "peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-focus-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-body";
|
|
33
|
+
export declare function checkboxBoxClassesFor(size: CheckboxSize, checked: boolean, indeterminate: boolean, disabled?: boolean, status?: InputStatus): string;
|
|
34
|
+
export declare function checkboxLabelClassesFor(disabled?: boolean, withDescription?: boolean): string;
|
|
35
|
+
/** Flat status row below the checkbox — no pill overlap band. */
|
|
36
|
+
export declare function checkboxStatusBannerClassesFor(status: InputStatus): string;
|
|
37
|
+
//# sourceMappingURL=checkboxStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkboxStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Checkbox/checkboxStyles.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,aAAa,uBAAwB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,oEAAoE;AACpE,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAG/D,CAAC;AAEF,kIAAkI;AAClI,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAGrE,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAG/D,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAGrE,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAG5E,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAIlC,CAAC;AAEF,eAAO,MAAM,2BAA2B,mHAC0E,CAAC;AAEnH,eAAO,MAAM,yBAAyB,0HACmF,CAAC;AAE1H,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,gCAAgC,CAAC;AAEjE,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD,eAAO,MAAM,oBAAoB,QAA8B,CAAC;AAEhE,iFAAiF;AACjF,eAAO,MAAM,0BAA0B,QAAiD,CAAC;AAEzF,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AAExE,eAAO,MAAM,mCAAmC,QAA4C,CAAC;AAE7F,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAGtE,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,wCAAwC,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAGjF,CAAC;AAEF,eAAO,MAAM,sBAAsB,uDACmB,CAAC;AAEvD,0DAA0D;AAC1D,eAAO,MAAM,2BAA2B,iBAAiB,CAAC;AAE1D,eAAO,MAAM,kBAAkB,QAA0D,CAAC;AAE1F,eAAO,MAAM,0BAA0B,uBAAuB,CAAC;AAE/D,eAAO,MAAM,0BAA0B,8FACsD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,sKACgI,CAAC;AAEtK,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,OAAO,EACtB,QAAQ,CAAC,EAAE,OAAO,EAClB,MAAM,CAAC,EAAE,WAAW,GACnB,MAAM,CAWR;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM,CAK7F;AAED,iEAAiE;AACjE,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAK1E"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { typographyClass as t } from "../../../lib/typography.js";
|
|
4
|
+
import { motionTransition as n } from "../../../lib/motion.js";
|
|
5
|
+
import { inputStatusBannerSurfaceClasses as r, inputStatusShellClasses as i } from "../Input/inputShellStyles.js";
|
|
6
|
+
//#region src/components/atoms/Checkbox/checkboxStyles.ts
|
|
7
|
+
var a = ["sm", "md"], o = {
|
|
8
|
+
sm: "min-h-7 gap-2",
|
|
9
|
+
md: "min-h-9 gap-2.5"
|
|
10
|
+
}, s = {
|
|
11
|
+
sm: "size-7",
|
|
12
|
+
md: "size-9"
|
|
13
|
+
}, c = {
|
|
14
|
+
sm: "size-[18px] rounded",
|
|
15
|
+
md: "size-[22px] rounded-md"
|
|
16
|
+
}, l = {
|
|
17
|
+
sm: "size-3",
|
|
18
|
+
md: "size-3.5"
|
|
19
|
+
}, u = {
|
|
20
|
+
sm: "h-0.5 w-2.5",
|
|
21
|
+
md: "h-0.5 w-3"
|
|
22
|
+
}, d = e("pointer-events-none flex items-center justify-center border shadow-none", "transition-[background-color,border-color,color]", n("fast")), f = "border-border-emphasized bg-surface group-hover/checkbox:border-border-emphasized group-hover/checkbox:bg-body", p = "border-primary bg-primary text-primary-foreground group-hover/checkbox:border-primary group-hover/checkbox:bg-primary", m = "stroke-current text-inherit", h = "opacity-50", g = t("ui-label"), _ = e(t("caption"), "leading-snug"), v = "flex min-w-0 flex-col gap-px", y = e(g, "leading-tight"), b = {
|
|
23
|
+
sm: "flex min-w-0 items-start gap-2",
|
|
24
|
+
md: "flex min-w-0 items-start gap-2.5"
|
|
25
|
+
}, x = {
|
|
26
|
+
sm: "mt-px",
|
|
27
|
+
md: "mt-0.5"
|
|
28
|
+
}, S = "group/checkbox relative flex w-full cursor-pointer", C = "items-center";
|
|
29
|
+
e(S, C);
|
|
30
|
+
var w = "cursor-not-allowed", T = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed", E = "peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-focus-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-body";
|
|
31
|
+
function D(t, n, r, a, o) {
|
|
32
|
+
let s = n || r;
|
|
33
|
+
return e(d, c[t], E, s ? p : f, o != null && i[o], a && "opacity-50");
|
|
34
|
+
}
|
|
35
|
+
function O(t, n) {
|
|
36
|
+
return e(n ? y : g, t && "opacity-50");
|
|
37
|
+
}
|
|
38
|
+
function k(t) {
|
|
39
|
+
return e("flex w-full items-start gap-2 rounded-lg px-2.5 py-2 leading-snug", r[t]);
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { d as checkboxBoxBaseClasses, p as checkboxBoxCheckedClasses, D as checkboxBoxClassesFor, h as checkboxBoxDisabledClasses, c as checkboxBoxSizeClasses, f as checkboxBoxUncheckedClasses, l as checkboxCheckIconSizeClasses, _ as checkboxDescriptionClasses, b as checkboxDescriptionRowClasses, E as checkboxFocusRingClasses, T as checkboxHiddenInputClasses, x as checkboxHitTargetDescriptionAlignClasses, s as checkboxHitTargetSizeClasses, u as checkboxIndeterminateBarSizeClasses, g as checkboxLabelClasses, O as checkboxLabelClassesFor, y as checkboxLabelWithDescriptionClasses, m as checkboxMarkClasses, S as checkboxRowBaseClasses, w as checkboxRowDisabledClasses, C as checkboxRowLabelOnlyClasses, o as checkboxRowSizeClasses, a as checkboxSizes, k as checkboxStatusBannerClassesFor, v as checkboxTextColumnClasses };
|