@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,109 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { motionTransitionProp as t } from "../../../lib/motion.js";
|
|
4
|
+
import "../Input/inputShellStyles.js";
|
|
5
|
+
import { InputStatusBanner as ee } from "../inputShared/InputStatusBanner.js";
|
|
6
|
+
import { switchDescriptionClasses as n, switchDescriptionRowClasses as te, switchHiddenInputClasses as ne, switchHitTargetDescriptionAlignClasses as r, switchHitTargetSizeClasses as i, switchLabelClassesFor as a, switchLayouts as o, switchRowBaseClasses as re, switchRowLabelOnlyClasses as ie, switchRowSizeClasses as s, switchSettingsRowClasses as c, switchSizes as l, switchStatusBannerClassesFor as u, switchTextColumnClasses as d, switchThumbClasses as f, switchThumbOffsetPx as p, switchThumbSizeClasses as m, switchTrackClassesFor as ae } from "./switchStyles.js";
|
|
7
|
+
import { forwardRef as h, useId as oe, useState as g } from "react";
|
|
8
|
+
import { Loader2 as _ } from "lucide-react";
|
|
9
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
10
|
+
import { motion as x } from "motion/react";
|
|
11
|
+
//#region src/components/atoms/Switch/Switch.tsx
|
|
12
|
+
var S = {
|
|
13
|
+
sm: "sm",
|
|
14
|
+
md: "md"
|
|
15
|
+
};
|
|
16
|
+
function se(e) {
|
|
17
|
+
e.message != null && e.status == null && console.warn("[WMDS Switch] `message` requires `status`.");
|
|
18
|
+
}
|
|
19
|
+
var C = h(function({ size: o = "md", layout: l = "inline", label: h, labelHidden: C = !1, description: w, status: T, message: E, loading: D = !1, className: O, disabled: k, readOnly: A, checked: j, defaultChecked: M, id: N, onChange: P, ...F }, I) {
|
|
20
|
+
let L = oe(), R = N ?? L;
|
|
21
|
+
se({
|
|
22
|
+
status: T,
|
|
23
|
+
message: E
|
|
24
|
+
});
|
|
25
|
+
let z = j !== void 0, [B, V] = g(M ?? !1), H = z ? !!j : B, U = k || D, W = E != null && E.length > 0 && T != null, G = W ? `${R}-message` : void 0, K = w != null && !C ? `${R}-description` : void 0, ce = [
|
|
26
|
+
F["aria-describedby"],
|
|
27
|
+
K,
|
|
28
|
+
G
|
|
29
|
+
].filter(Boolean).join(" ") || void 0, le = (e) => {
|
|
30
|
+
if (A) {
|
|
31
|
+
e.preventDefault();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
z || V(e.target.checked), P?.(e);
|
|
35
|
+
}, q = ae(o, H, U, W ? void 0 : T), J = w != null && !C, Y = t("fast"), X = p[o], Z = (t) => /* @__PURE__ */ b("span", {
|
|
36
|
+
className: e("relative flex shrink-0 items-center justify-center", i[o], t),
|
|
37
|
+
children: [/* @__PURE__ */ y("input", {
|
|
38
|
+
...F,
|
|
39
|
+
ref: I,
|
|
40
|
+
id: R,
|
|
41
|
+
type: "checkbox",
|
|
42
|
+
role: "switch",
|
|
43
|
+
checked: z ? j : void 0,
|
|
44
|
+
defaultChecked: z ? void 0 : M,
|
|
45
|
+
disabled: U,
|
|
46
|
+
readOnly: A,
|
|
47
|
+
"aria-invalid": T === "error" || void 0,
|
|
48
|
+
"aria-describedby": ce,
|
|
49
|
+
"aria-busy": D || void 0,
|
|
50
|
+
onChange: le,
|
|
51
|
+
className: ne
|
|
52
|
+
}), /* @__PURE__ */ y("span", {
|
|
53
|
+
className: q,
|
|
54
|
+
"aria-hidden": !0,
|
|
55
|
+
children: D ? /* @__PURE__ */ y(x.span, {
|
|
56
|
+
className: e(m[o], "flex items-center justify-center"),
|
|
57
|
+
animate: { x: H ? X : 0 },
|
|
58
|
+
transition: Y,
|
|
59
|
+
children: /* @__PURE__ */ y(_, {
|
|
60
|
+
className: "size-full animate-spin text-fg",
|
|
61
|
+
strokeWidth: 2
|
|
62
|
+
})
|
|
63
|
+
}) : /* @__PURE__ */ y(x.span, {
|
|
64
|
+
className: e(f, m[o]),
|
|
65
|
+
animate: { x: H ? X : 0 },
|
|
66
|
+
transition: Y
|
|
67
|
+
})
|
|
68
|
+
})]
|
|
69
|
+
}), Q = C ? /* @__PURE__ */ y("span", {
|
|
70
|
+
className: "sr-only",
|
|
71
|
+
children: h
|
|
72
|
+
}) : /* @__PURE__ */ b("span", {
|
|
73
|
+
className: d,
|
|
74
|
+
children: [/* @__PURE__ */ y("span", {
|
|
75
|
+
className: a(U, J),
|
|
76
|
+
children: h
|
|
77
|
+
}), J ? /* @__PURE__ */ y("span", {
|
|
78
|
+
id: K,
|
|
79
|
+
className: n,
|
|
80
|
+
children: w
|
|
81
|
+
}) : null]
|
|
82
|
+
}), $ = /* @__PURE__ */ y("label", {
|
|
83
|
+
htmlFor: R,
|
|
84
|
+
className: e(re, l === "settings" ? c : ie, l === "inline" && !J && s[o], l === "inline" && J && void 0, U && "cursor-not-allowed", O),
|
|
85
|
+
children: C ? /* @__PURE__ */ b(v, { children: [Z(), /* @__PURE__ */ y("span", {
|
|
86
|
+
className: "sr-only",
|
|
87
|
+
children: h
|
|
88
|
+
})] }) : l === "settings" ? /* @__PURE__ */ b(v, { children: [Q, Z()] }) : J ? /* @__PURE__ */ b("span", {
|
|
89
|
+
className: te[o],
|
|
90
|
+
children: [Z(r[o]), Q]
|
|
91
|
+
}) : /* @__PURE__ */ b(v, { children: [Z(), C ? null : /* @__PURE__ */ y("span", {
|
|
92
|
+
className: a(U),
|
|
93
|
+
children: h
|
|
94
|
+
})] })
|
|
95
|
+
});
|
|
96
|
+
return !W || T == null || G == null ? $ : /* @__PURE__ */ b("div", {
|
|
97
|
+
className: "flex w-full flex-col gap-1.5",
|
|
98
|
+
children: [$, /* @__PURE__ */ y(ee, {
|
|
99
|
+
status: T,
|
|
100
|
+
message: E,
|
|
101
|
+
messageId: G,
|
|
102
|
+
size: S[o],
|
|
103
|
+
messagePosition: "bottom",
|
|
104
|
+
bannerClassName: u(T)
|
|
105
|
+
})]
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
109
|
+
export { C as Switch, o as switchLayouts, l as switchSizes };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type InputStatus } from "../Input/inputShellStyles";
|
|
2
|
+
export declare const switchSizes: readonly ["sm", "md"];
|
|
3
|
+
export type SwitchSize = (typeof switchSizes)[number];
|
|
4
|
+
export declare const switchLayouts: readonly ["inline", "settings"];
|
|
5
|
+
export type SwitchLayout = (typeof switchLayouts)[number];
|
|
6
|
+
/** Row rhythm — aligns with cluster sm (28px) / md (36px) tiers. */
|
|
7
|
+
export declare const switchRowSizeClasses: Record<SwitchSize, string>;
|
|
8
|
+
export declare const switchHitTargetSizeClasses: Record<SwitchSize, string>;
|
|
9
|
+
/** Pill track — [Astryx Switch](https://astryx.atmeta.com/components/Switch). */
|
|
10
|
+
export declare const switchTrackSizeClasses: Record<SwitchSize, string>;
|
|
11
|
+
export declare const switchThumbSizeClasses: Record<SwitchSize, string>;
|
|
12
|
+
export declare const switchThumbOffsetPx: Record<SwitchSize, number>;
|
|
13
|
+
export declare const switchTrackBaseClasses: string;
|
|
14
|
+
/** Off — recessed body well (SegmentedControl track family). */
|
|
15
|
+
export declare const switchTrackUncheckedClasses = "bg-body shadow-hairline";
|
|
16
|
+
/** On — filled primary track so state reads at a glance (reference switch pattern). */
|
|
17
|
+
export declare const switchTrackCheckedClasses = "border-primary bg-primary shadow-none";
|
|
18
|
+
/** Raised knob — surface + shadow; position animated via Motion (same tier as **SegmentedControl** thumb). */
|
|
19
|
+
export declare const switchThumbClasses = "block rounded-full bg-surface shadow-raised";
|
|
20
|
+
export declare const switchTrackDisabledClasses = "opacity-50";
|
|
21
|
+
export declare const switchLabelClasses: string;
|
|
22
|
+
export declare const switchDescriptionClasses: string;
|
|
23
|
+
export declare const switchTextColumnClasses = "flex min-w-0 flex-col gap-px";
|
|
24
|
+
export declare const switchLabelWithDescriptionClasses: string;
|
|
25
|
+
export declare const switchDescriptionRowClasses: Record<SwitchSize, string>;
|
|
26
|
+
export declare const switchHitTargetDescriptionAlignClasses: Record<SwitchSize, string>;
|
|
27
|
+
export declare const switchRowBaseClasses = "group/switch relative flex w-full cursor-pointer";
|
|
28
|
+
export declare const switchRowLabelOnlyClasses = "items-center";
|
|
29
|
+
export declare const switchSettingsRowClasses = "items-center justify-between gap-4";
|
|
30
|
+
export declare const switchRowDisabledClasses = "cursor-not-allowed";
|
|
31
|
+
export declare const switchHiddenInputClasses = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed";
|
|
32
|
+
export declare const switchFocusRingClasses = "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 switchTrackClassesFor(size: SwitchSize, checked: boolean, disabled?: boolean, status?: InputStatus): string;
|
|
34
|
+
export declare function switchLabelClassesFor(disabled?: boolean, withDescription?: boolean): string;
|
|
35
|
+
export declare function switchStatusBannerClassesFor(status: InputStatus): string;
|
|
36
|
+
//# sourceMappingURL=switchStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switchStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Switch/switchStyles.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,WAAW,uBAAwB,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,eAAO,MAAM,aAAa,iCAAkC,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG3D,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAGjE,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG7D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG7D,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAIlC,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,4BAA4B,CAAC;AAErE,uFAAuF;AACvF,eAAO,MAAM,yBAAyB,0CAA0C,CAAC;AAEjF,8GAA8G;AAC9G,eAAO,MAAM,kBAAkB,gDAAgD,CAAC;AAEhF,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAE9D,eAAO,MAAM,wBAAwB,QAAiD,CAAC;AAEvF,eAAO,MAAM,uBAAuB,iCAAiC,CAAC;AAEtE,eAAO,MAAM,iCAAiC,QAA0C,CAAC;AAEzF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAGlE,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG7E,CAAC;AAEF,eAAO,MAAM,oBAAoB,qDAAqD,CAAC;AAEvF,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD,eAAO,MAAM,wBAAwB,uCAAuC,CAAC;AAE7E,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D,eAAO,MAAM,wBAAwB,8FACwD,CAAC;AAE9F,eAAO,MAAM,sBAAsB,sKACkI,CAAC;AAEtK,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,OAAO,EAClB,MAAM,CAAC,EAAE,WAAW,GACnB,MAAM,CASR;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM,CAK3F;AAED,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAKxE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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/Switch/switchStyles.ts
|
|
7
|
+
var a = ["sm", "md"], o = ["inline", "settings"], s = {
|
|
8
|
+
sm: "min-h-7 gap-2",
|
|
9
|
+
md: "min-h-9 gap-2.5"
|
|
10
|
+
}, c = {
|
|
11
|
+
sm: "size-7",
|
|
12
|
+
md: "size-9"
|
|
13
|
+
}, l = {
|
|
14
|
+
sm: "h-[18px] w-8 rounded-full p-0.5",
|
|
15
|
+
md: "h-[22px] w-10 rounded-full p-0.5"
|
|
16
|
+
}, u = {
|
|
17
|
+
sm: "size-3.5",
|
|
18
|
+
md: "size-[18px]"
|
|
19
|
+
}, d = {
|
|
20
|
+
sm: 14,
|
|
21
|
+
md: 18
|
|
22
|
+
}, f = e("pointer-events-none relative flex shrink-0 items-center border border-transparent", "transition-[background-color,border-color,box-shadow]", n("fast")), p = "bg-body shadow-hairline", m = "border-primary bg-primary shadow-none", h = "block rounded-full bg-surface shadow-raised", g = "opacity-50", _ = t("ui-label"), v = e(t("caption"), "leading-snug"), y = "flex min-w-0 flex-col gap-px", b = e(_, "leading-tight"), x = {
|
|
23
|
+
sm: "flex min-w-0 items-start gap-2",
|
|
24
|
+
md: "flex min-w-0 items-start gap-2.5"
|
|
25
|
+
}, S = {
|
|
26
|
+
sm: "mt-px",
|
|
27
|
+
md: "mt-0.5"
|
|
28
|
+
}, C = "group/switch relative flex w-full cursor-pointer", w = "items-center", T = "items-center justify-between gap-4", E = "cursor-not-allowed", D = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed", O = "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";
|
|
29
|
+
function k(t, n, r, a) {
|
|
30
|
+
return e(f, l[t], O, n ? m : p, a != null && i[a], r && "opacity-50");
|
|
31
|
+
}
|
|
32
|
+
function A(t, n) {
|
|
33
|
+
return e(n ? b : _, t && "opacity-50");
|
|
34
|
+
}
|
|
35
|
+
function j(t) {
|
|
36
|
+
return e("flex w-full items-start gap-2 rounded-lg px-2.5 py-2 leading-snug", r[t]);
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { v as switchDescriptionClasses, x as switchDescriptionRowClasses, O as switchFocusRingClasses, D as switchHiddenInputClasses, S as switchHitTargetDescriptionAlignClasses, c as switchHitTargetSizeClasses, _ as switchLabelClasses, A as switchLabelClassesFor, b as switchLabelWithDescriptionClasses, o as switchLayouts, C as switchRowBaseClasses, E as switchRowDisabledClasses, w as switchRowLabelOnlyClasses, s as switchRowSizeClasses, T as switchSettingsRowClasses, a as switchSizes, j as switchStatusBannerClassesFor, y as switchTextColumnClasses, h as switchThumbClasses, d as switchThumbOffsetPx, u as switchThumbSizeClasses, f as switchTrackBaseClasses, m as switchTrackCheckedClasses, k as switchTrackClassesFor, g as switchTrackDisabledClasses, l as switchTrackSizeClasses, p as switchTrackUncheckedClasses };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type TextareaHTMLAttributes } from "react";
|
|
2
|
+
import { type InputMessagePosition, type InputSize, type InputStatus, type TextAreaResize } from "./textareaShellStyles";
|
|
3
|
+
export type { InputMessagePosition, InputSize, InputStatus, TextAreaResize } from "./textareaShellStyles";
|
|
4
|
+
export { inputMessagePositions, inputSizes, inputStatuses, textareaResizes } from "./textareaShellStyles";
|
|
5
|
+
/** Layout-only — not for colors, borders, or typography overrides. */
|
|
6
|
+
export type TextAreaLayoutClassName = string;
|
|
7
|
+
export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
8
|
+
size?: InputSize;
|
|
9
|
+
/** Optional visible label — omit for bare controls. */
|
|
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`. */
|
|
16
|
+
message?: string;
|
|
17
|
+
/** Status band placement when `message` is set — default `bottom`. */
|
|
18
|
+
messagePosition?: InputMessagePosition;
|
|
19
|
+
/** Trailing spinner — async validation. */
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
/** Visible row count — default **4**. */
|
|
22
|
+
rows?: number;
|
|
23
|
+
/** Native resize — default **`vertical`**. */
|
|
24
|
+
resize?: TextAreaResize;
|
|
25
|
+
/**
|
|
26
|
+
* Inside **PromptBar** — no outer shell. The parent pill owns border, radius, and focus.
|
|
27
|
+
* Not for standalone forms.
|
|
28
|
+
*/
|
|
29
|
+
inline?: boolean;
|
|
30
|
+
className?: TextAreaLayoutClassName;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Multiline text control — same optional label / validation chrome as **Input** (ADR-0006).
|
|
34
|
+
* Element-radius shell (not pill); status band + trailing icon match Input patterns.
|
|
35
|
+
*/
|
|
36
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
37
|
+
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAKvE,OAAO,EAoBL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE1G,sEAAsE;AACtE,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACjE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAqBD;;;GAGG;AACH,eAAO,MAAM,QAAQ,+GAuJnB,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
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, inputCompoundShellClassesFor as r, inputControlStackClasses as i, inputDisabledClasses as a, inputFieldStackClasses as o, inputStatusGapClasses as s } from "../Input/inputShellStyles.js";
|
|
5
|
+
import { InputStatusBanner as c } from "../inputShared/InputStatusBanner.js";
|
|
6
|
+
import { InputTrailingAffordance as l } from "../inputShared/InputTrailingAffordance.js";
|
|
7
|
+
import { textareaBaseClasses as u, textareaCompoundFieldPaddingClasses as d, textareaCompoundInnerFieldClassesFor as f, textareaFixedPaddingClasses as ee, textareaInlineClasses as p, textareaMinHeightClasses as m, textareaResizeClasses as h, textareaResizes as g, textareaSoloShellClassesFor as _, textareaStatusBannerClassesFor as v, textareaTrailingInsetClasses as y, textareaTrailingInsetPositionClasses as b } from "./textareaShellStyles.js";
|
|
8
|
+
import { forwardRef as x, useId as S } from "react";
|
|
9
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
10
|
+
//#region src/components/atoms/TextArea/TextArea.tsx
|
|
11
|
+
function E(e) {
|
|
12
|
+
e.label == null && e["aria-label"] == null && e["aria-labelledby"] == null && console.warn("[WMDS TextArea] Provide `label`, `aria-label`, or `aria-labelledby`.");
|
|
13
|
+
}
|
|
14
|
+
function D(e) {
|
|
15
|
+
e.message != null && e.status == null && console.warn("[WMDS TextArea] `message` requires `status`."), e.inline && (e.label != null || e.description != null || e.status != null || e.message != null) && console.warn("[WMDS TextArea] `inline` is for PromptBar only — omit label, description, and validation.");
|
|
16
|
+
}
|
|
17
|
+
var O = x(function({ size: c = "md", label: g, description: v, status: x, message: O, messagePosition: k = "bottom", loading: A = !1, rows: j = 4, resize: M = "vertical", inline: N = !1, className: P, disabled: F, id: I, "aria-describedby": L, ...R }, z) {
|
|
18
|
+
let B = S(), V = I ?? B;
|
|
19
|
+
E({
|
|
20
|
+
label: g,
|
|
21
|
+
"aria-label": R["aria-label"],
|
|
22
|
+
"aria-labelledby": R["aria-labelledby"]
|
|
23
|
+
}), D({
|
|
24
|
+
status: x,
|
|
25
|
+
message: O,
|
|
26
|
+
inline: N,
|
|
27
|
+
label: g,
|
|
28
|
+
description: v
|
|
29
|
+
});
|
|
30
|
+
let H = O != null && O.length > 0 && x != null, U = !H && (A || x != null), W = v != null && !H ? `${V}-description` : void 0, G = H ? `${V}-message` : void 0, K = [
|
|
31
|
+
L,
|
|
32
|
+
W,
|
|
33
|
+
G
|
|
34
|
+
].filter(Boolean).join(" ") || void 0;
|
|
35
|
+
if (N) return /* @__PURE__ */ w("textarea", {
|
|
36
|
+
...R,
|
|
37
|
+
ref: z,
|
|
38
|
+
id: V,
|
|
39
|
+
rows: j,
|
|
40
|
+
disabled: F,
|
|
41
|
+
"aria-invalid": x === "error" || void 0,
|
|
42
|
+
"aria-describedby": K,
|
|
43
|
+
className: e(a, p, P)
|
|
44
|
+
});
|
|
45
|
+
let q = /* @__PURE__ */ w("textarea", {
|
|
46
|
+
...R,
|
|
47
|
+
ref: z,
|
|
48
|
+
id: V,
|
|
49
|
+
rows: j,
|
|
50
|
+
disabled: F,
|
|
51
|
+
"aria-invalid": x === "error" || void 0,
|
|
52
|
+
"aria-describedby": K,
|
|
53
|
+
className: e(a, h[M], u, ee[c], m[c], "w-full border-0 bg-transparent shadow-none", U && s[c], H && e(n, "rounded-none border-0 shadow-none focus-visible:outline-none focus-visible:ring-0", "rounded-none"))
|
|
54
|
+
}), J = U ? /* @__PURE__ */ w("span", {
|
|
55
|
+
className: e(y, b[c]),
|
|
56
|
+
children: /* @__PURE__ */ w(l, {
|
|
57
|
+
size: c,
|
|
58
|
+
status: A ? void 0 : x,
|
|
59
|
+
loading: A
|
|
60
|
+
})
|
|
61
|
+
}) : null, Y = /* @__PURE__ */ T(C, { children: [q, J] }), X = /* @__PURE__ */ w("div", {
|
|
62
|
+
className: e(_(c, x, M), P),
|
|
63
|
+
children: Y
|
|
64
|
+
}), Z = /* @__PURE__ */ w("div", {
|
|
65
|
+
className: e("relative w-full", d(M, c)),
|
|
66
|
+
children: Y
|
|
67
|
+
}), Q = H && x != null && G != null ? /* @__PURE__ */ w(te, {
|
|
68
|
+
status: x,
|
|
69
|
+
message: O,
|
|
70
|
+
messageId: G,
|
|
71
|
+
size: c,
|
|
72
|
+
messagePosition: k
|
|
73
|
+
}) : null, $ = H && x != null ? /* @__PURE__ */ T("div", {
|
|
74
|
+
className: r(c, x),
|
|
75
|
+
children: [
|
|
76
|
+
k === "top" ? Q : null,
|
|
77
|
+
/* @__PURE__ */ w("div", {
|
|
78
|
+
className: f(c, x, k),
|
|
79
|
+
children: Z
|
|
80
|
+
}),
|
|
81
|
+
k === "bottom" ? Q : null
|
|
82
|
+
]
|
|
83
|
+
}) : /* @__PURE__ */ w("div", {
|
|
84
|
+
className: i,
|
|
85
|
+
children: X
|
|
86
|
+
});
|
|
87
|
+
return g == null && v == null ? $ : /* @__PURE__ */ T("div", {
|
|
88
|
+
className: o,
|
|
89
|
+
children: [
|
|
90
|
+
g == null ? null : /* @__PURE__ */ w("label", {
|
|
91
|
+
htmlFor: V,
|
|
92
|
+
className: e(t("ui-label"), F && "opacity-50"),
|
|
93
|
+
children: g
|
|
94
|
+
}),
|
|
95
|
+
$,
|
|
96
|
+
W == null ? null : /* @__PURE__ */ w("p", {
|
|
97
|
+
id: W,
|
|
98
|
+
className: t("caption"),
|
|
99
|
+
children: v
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
function te({ status: e, message: t, messageId: n, size: r, messagePosition: i }) {
|
|
105
|
+
return /* @__PURE__ */ w(c, {
|
|
106
|
+
status: e,
|
|
107
|
+
message: t,
|
|
108
|
+
messageId: n,
|
|
109
|
+
size: r,
|
|
110
|
+
messagePosition: i,
|
|
111
|
+
bannerClassName: v(e, r, i)
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
export { O as TextArea, g as textareaResizes };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { inputAttachedFieldClasses, inputAttachedInputClasses, inputCompoundShellClassesFor, inputControlStackClasses, inputDisabledClasses, inputDisabledLabelClasses, inputFieldStackClasses, inputSoloFocusRingBaseClasses, inputSoloFocusRingColorClasses, inputStatusGapClasses, inputStatusShellClasses, type InputMessagePosition, type InputSize, type InputStatus } from "../Input/inputShellStyles";
|
|
2
|
+
export type { InputMessagePosition, InputSize, InputStatus } from "../Input/inputShellStyles";
|
|
3
|
+
export { inputMessagePositions, inputSizes, inputStatuses } from "../Input/inputShellStyles";
|
|
4
|
+
export declare const textareaResizes: readonly ["none", "vertical", "both"];
|
|
5
|
+
export type TextAreaResize = (typeof textareaResizes)[number];
|
|
6
|
+
/** Multiline shell — element radius (Astryx `--radius-element` / 12px), not pill. */
|
|
7
|
+
export declare const textareaSoloRadiusClasses: Record<InputSize, string>;
|
|
8
|
+
export declare const textareaResizeClasses: Record<TextAreaResize, string>;
|
|
9
|
+
export declare const textareaMinHeightClasses: Record<InputSize, string>;
|
|
10
|
+
export declare const textareaFixedPaddingClasses: Record<InputSize, string>;
|
|
11
|
+
/**
|
|
12
|
+
* Bottom-right padding on the **shell wrapper** — native resize grip tracks the
|
|
13
|
+
* textarea box corner; inset the field inside the bordered shell so the grip
|
|
14
|
+
* clears the rounded corner (content padding alone does not move the grip).
|
|
15
|
+
*/
|
|
16
|
+
export declare const textareaShellResizePaddingClasses: Record<InputSize, string>;
|
|
17
|
+
export declare const textareaShellFocusRingBaseClasses = "focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-offset-body";
|
|
18
|
+
export declare const textareaShellFocusRingColorClasses: {
|
|
19
|
+
readonly default: "focus-within:ring-focus-ring";
|
|
20
|
+
readonly error: "focus-within:ring-error-focus-ring";
|
|
21
|
+
readonly warning: "focus-within:ring-warning-focus-ring";
|
|
22
|
+
readonly success: "focus-within:ring-success-focus-ring";
|
|
23
|
+
};
|
|
24
|
+
export declare function textareaSoloShellClassesFor(size: InputSize, status: InputStatus | undefined, resize: TextAreaResize): string;
|
|
25
|
+
export declare function textareaCompoundFieldPaddingClasses(resize: TextAreaResize, size: InputSize): string | undefined;
|
|
26
|
+
export declare const textareaShellClasses: Record<InputSize, string>;
|
|
27
|
+
export declare const textareaCompoundBannerOverlapBottomClasses: Record<InputSize, string>;
|
|
28
|
+
export declare const textareaCompoundBannerOverlapTopPadClasses: Record<InputSize, string>;
|
|
29
|
+
export declare const textareaCompoundFieldOverlapTopClasses: Record<InputSize, string>;
|
|
30
|
+
export declare const textareaTrailingInsetPositionClasses: Record<InputSize, string>;
|
|
31
|
+
export declare const textareaTrailingInsetClasses = "pointer-events-none absolute flex items-center gap-1.5";
|
|
32
|
+
export declare function textareaCompoundInnerFieldClassesFor(size: InputSize, status: InputStatus, messagePosition: InputMessagePosition): string;
|
|
33
|
+
export declare function textareaStatusBannerClassesFor(status: InputStatus, size: InputSize, messagePosition: InputMessagePosition): string;
|
|
34
|
+
export declare const textareaBaseClasses: string;
|
|
35
|
+
/**
|
|
36
|
+
* Inside **PromptBar** — the parent pill owns border, radius, and focus ring.
|
|
37
|
+
* No element shell, no min-height, no resize grip.
|
|
38
|
+
*/
|
|
39
|
+
export declare const textareaInlineClasses: string;
|
|
40
|
+
export { inputAttachedFieldClasses, inputAttachedInputClasses, inputCompoundShellClassesFor, inputControlStackClasses, inputDisabledClasses, inputDisabledLabelClasses, inputFieldStackClasses, inputSoloFocusRingBaseClasses, inputSoloFocusRingColorClasses, inputStatusGapClasses, inputStatusShellClasses, };
|
|
41
|
+
//# sourceMappingURL=textareaShellStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textareaShellStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextArea/textareaShellStyles.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAEzB,4BAA4B,EAE5B,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EAItB,6BAA6B,EAC7B,8BAA8B,EAE9B,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE7F,eAAO,MAAM,eAAe,uCAAwC,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,qFAAqF;AACrF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI/D,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAIhE,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI9D,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIvE,CAAC;AAEF,eAAO,MAAM,iCAAiC,2GAC4D,CAAC;AAE3G,eAAO,MAAM,kCAAkC;;;;;CAKrC,CAAC;AAEX,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,MAAM,EAAE,cAAc,GACrB,MAAM,CAgBR;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,SAAS,GACd,MAAM,GAAG,SAAS,CAEpB;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI1D,CAAC;AAEF,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIhF,CAAC;AAEF,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIhF,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI5E,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAI1E,CAAC;AAEF,eAAO,MAAM,4BAA4B,2DACiB,CAAC;AAE3D,wBAAgB,oCAAoC,CAClD,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,WAAW,EACnB,eAAe,EAAE,oBAAoB,GACpC,MAAM,CASR;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,SAAS,EACf,eAAe,EAAE,oBAAoB,GACpC,MAAM,CAgBR;AAED,eAAO,MAAM,mBAAmB,QAA+C,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAE2C,CAAC;AAE9E,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,EAC9B,qBAAqB,EACrB,uBAAuB,GACxB,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { inputAttachedFieldClasses as t, inputAttachedInputClasses as n, inputBaseClasses as r, inputCompoundShellClassesFor as i, inputCompoundShellFocusRingClasses as a, inputControlStackClasses as o, inputDisabledClasses as s, inputDisabledLabelClasses as c, inputFieldStackClasses as l, inputShellBorderClasses as u, inputShellElevationClasses as d, inputShellTransitionClasses as f, inputStatusBannerSurfaceClasses as p, inputStatusGapClasses as m, inputStatusShellClasses as h } from "../Input/inputShellStyles.js";
|
|
4
|
+
//#region src/components/atoms/TextArea/textareaShellStyles.ts
|
|
5
|
+
var g = [
|
|
6
|
+
"none",
|
|
7
|
+
"vertical",
|
|
8
|
+
"both"
|
|
9
|
+
], _ = {
|
|
10
|
+
sm: "rounded-xl",
|
|
11
|
+
md: "rounded-xl",
|
|
12
|
+
lg: "rounded-xl"
|
|
13
|
+
}, v = {
|
|
14
|
+
none: "resize-none",
|
|
15
|
+
vertical: "resize-y",
|
|
16
|
+
both: "resize"
|
|
17
|
+
}, y = {
|
|
18
|
+
sm: "min-h-20",
|
|
19
|
+
md: "min-h-24",
|
|
20
|
+
lg: "min-h-28"
|
|
21
|
+
}, b = {
|
|
22
|
+
sm: "px-2.5 py-2 text-xs leading-normal",
|
|
23
|
+
md: "px-3 py-2.5 text-sm leading-normal",
|
|
24
|
+
lg: "px-4 py-3 text-base leading-normal"
|
|
25
|
+
}, x = {
|
|
26
|
+
sm: "pr-2.5 pb-2.5",
|
|
27
|
+
md: "pr-3 pb-3",
|
|
28
|
+
lg: "pr-3.5 pb-3.5"
|
|
29
|
+
}, S = "focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-offset-body", C = {
|
|
30
|
+
default: "focus-within:ring-focus-ring",
|
|
31
|
+
error: "focus-within:ring-error-focus-ring",
|
|
32
|
+
warning: "focus-within:ring-warning-focus-ring",
|
|
33
|
+
success: "focus-within:ring-success-focus-ring"
|
|
34
|
+
};
|
|
35
|
+
function w(t, n, r) {
|
|
36
|
+
let i = n == null ? C.default : C[n];
|
|
37
|
+
return e("relative w-full", E[t], _[t], S, i, n != null && e("border", h[n]), r !== "none" && x[t], f);
|
|
38
|
+
}
|
|
39
|
+
function T(e, t) {
|
|
40
|
+
return e === "none" ? void 0 : x[t];
|
|
41
|
+
}
|
|
42
|
+
var E = {
|
|
43
|
+
sm: e(u, d),
|
|
44
|
+
md: e(u, d),
|
|
45
|
+
lg: e(u, d)
|
|
46
|
+
}, D = {
|
|
47
|
+
sm: "-mt-5 pt-7",
|
|
48
|
+
md: "-mt-6 pt-8",
|
|
49
|
+
lg: "-mt-7 pt-9"
|
|
50
|
+
}, O = {
|
|
51
|
+
sm: "pb-7",
|
|
52
|
+
md: "pb-8",
|
|
53
|
+
lg: "pb-9"
|
|
54
|
+
}, k = {
|
|
55
|
+
sm: "-mt-5",
|
|
56
|
+
md: "-mt-6",
|
|
57
|
+
lg: "-mt-7"
|
|
58
|
+
}, A = {
|
|
59
|
+
sm: "right-2.5 top-2",
|
|
60
|
+
md: "right-3 top-2.5",
|
|
61
|
+
lg: "right-3.5 top-3"
|
|
62
|
+
}, j = "pointer-events-none absolute flex items-center gap-1.5";
|
|
63
|
+
function M(t, n, r) {
|
|
64
|
+
return e("relative z-10 flex w-full border bg-surface shadow-sm", _[t], h[n], a[n], r === "top" && k[t], f);
|
|
65
|
+
}
|
|
66
|
+
function N(t, n, r) {
|
|
67
|
+
return r === "bottom" ? e("relative z-0 flex w-full items-center gap-2 px-3 pb-3 leading-snug", D[n], "rounded-b-[1.375rem]", p[t]) : e("relative z-0 flex w-full items-center gap-2 px-3 pt-2.5 leading-snug", O[n], "rounded-t-[1.375rem]", p[t]);
|
|
68
|
+
}
|
|
69
|
+
var P = e(r, "block leading-normal"), F = "block w-full min-w-0 resize-none rounded-none border-0 bg-transparent font-sans font-normal tracking-normal text-fg shadow-none placeholder:text-disabled focus-visible:outline-none focus-visible:ring-0";
|
|
70
|
+
//#endregion
|
|
71
|
+
export { t as inputAttachedFieldClasses, n as inputAttachedInputClasses, i as inputCompoundShellClassesFor, o as inputControlStackClasses, s as inputDisabledClasses, c as inputDisabledLabelClasses, l as inputFieldStackClasses, m as inputStatusGapClasses, h as inputStatusShellClasses, P as textareaBaseClasses, D as textareaCompoundBannerOverlapBottomClasses, O as textareaCompoundBannerOverlapTopPadClasses, k as textareaCompoundFieldOverlapTopClasses, T as textareaCompoundFieldPaddingClasses, M as textareaCompoundInnerFieldClassesFor, b as textareaFixedPaddingClasses, F as textareaInlineClasses, y as textareaMinHeightClasses, v as textareaResizeClasses, g as textareaResizes, E as textareaShellClasses, S as textareaShellFocusRingBaseClasses, C as textareaShellFocusRingColorClasses, x as textareaShellResizePaddingClasses, _ as textareaSoloRadiusClasses, w as textareaSoloShellClassesFor, N as textareaStatusBannerClassesFor, j as textareaTrailingInsetClasses, A as textareaTrailingInsetPositionClasses };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
/** Layout-only — margin or placement; not for changing the link treatment. */
|
|
3
|
+
export type TextLinkLayoutClassName = string;
|
|
4
|
+
export interface TextLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "className" | "href" | "target"> {
|
|
5
|
+
href: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Opens in a new tab and appends the external-destination icon. */
|
|
8
|
+
external?: boolean;
|
|
9
|
+
/** Layout-only: margin or placement. */
|
|
10
|
+
className?: TextLinkLayoutClassName;
|
|
11
|
+
}
|
|
12
|
+
/** Inline text navigation with the canonical solid underline treatment. */
|
|
13
|
+
export declare function TextLink({ href, children, external, className, rel, ...anchorProps }: TextLinkProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=TextLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextLink/TextLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ7D,8EAA8E;AAC9E,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAC7C;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAED,2EAA2E;AAC3E,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,QAAQ,EACR,QAAgB,EAChB,SAAS,EACT,GAAG,EACH,GAAG,WAAW,EACf,EAAE,aAAa,+BAwBf"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../../lib/cn.js";
|
|
3
|
+
import { textLinkClasses as t, textLinkExternalIconClasses as n } from "./textLinkStyles.js";
|
|
4
|
+
import { SquareArrowOutUpRight as r } from "lucide-react";
|
|
5
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/atoms/TextLink/TextLink.tsx
|
|
7
|
+
function s({ href: s, children: c, external: l = !1, className: u, rel: d, ...f }) {
|
|
8
|
+
let p = l && d == null ? "noopener noreferrer" : d;
|
|
9
|
+
return /* @__PURE__ */ o("a", {
|
|
10
|
+
...f,
|
|
11
|
+
href: s,
|
|
12
|
+
target: l ? "_blank" : void 0,
|
|
13
|
+
rel: p,
|
|
14
|
+
className: e(t, u),
|
|
15
|
+
children: [c, l ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(r, {
|
|
16
|
+
className: n,
|
|
17
|
+
strokeWidth: 2,
|
|
18
|
+
"aria-hidden": !0
|
|
19
|
+
}), /* @__PURE__ */ a("span", {
|
|
20
|
+
className: "sr-only",
|
|
21
|
+
children: " (opens in a new tab)"
|
|
22
|
+
})] }) : null]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { s as TextLink };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textLinkStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextLink/textLinkStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,QAKqF,CAAC;AAElH,eAAO,MAAM,2BAA2B,oEAC2B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { motionTransition as e } from "../../../lib/motion.js";
|
|
3
|
+
//#region src/components/atoms/TextLink/textLinkStyles.ts
|
|
4
|
+
var t = "font-medium text-fg underline decoration-solid decoration-border-emphasized underline-offset-4 transition-[color,text-decoration-color] " + e("fast") + " hover:decoration-fg focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-body", n = "ml-0.5 inline-block size-[0.85em] align-[0.05em] stroke-current";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { t as textLinkClasses, n as textLinkExternalIconClasses };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { textSequenceShapeTones, textSequenceShapeVariants, type TextSequenceShapeTone, type TextSequenceShapeVariant } from "./textSequenceShapeStyles";
|
|
2
|
+
export { textSequenceShapeTones, textSequenceShapeVariants, type TextSequenceShapeTone, type TextSequenceShapeVariant, };
|
|
3
|
+
/** Layout only — margin. Not for recoloring or resizing. */
|
|
4
|
+
export type TextSequenceShapeLayoutClassName = string;
|
|
5
|
+
export interface TextSequenceShapeProps {
|
|
6
|
+
variant: TextSequenceShapeVariant;
|
|
7
|
+
/**
|
|
8
|
+
* Token fill. Default `brand` (`--color-brand`).
|
|
9
|
+
* `brand-soft` and `info-muted` paint a two-stop gradient between tokens.
|
|
10
|
+
*/
|
|
11
|
+
tone?: TextSequenceShapeTone;
|
|
12
|
+
/** Layout only. */
|
|
13
|
+
className?: TextSequenceShapeLayoutClassName;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Inline decorative mark that wraps with the surrounding text.
|
|
17
|
+
* Decorative — always `aria-hidden`. The sentence lives on TextSequence.
|
|
18
|
+
* The layout gap is zero-height so the line box stays the type leading.
|
|
19
|
+
*/
|
|
20
|
+
export declare function TextSequenceShape({ variant, tone, className }: TextSequenceShapeProps): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=TextSequenceShape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextSequenceShape.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextSequenceShape/TextSequenceShape.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,sBAAsB,EACtB,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC9B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,CAAC;AAEF,4DAA4D;AAC5D,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,wBAAwB,CAAC;IAClC;;;OAGG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,mBAAmB;IACnB,SAAS,CAAC,EAAE,gCAAgC,CAAC;CAC9C;AAqHD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,IAAc,EAAE,SAAS,EAAE,EAAE,sBAAsB,+BAkB/F"}
|