@mindlogic-ai/logician-ui 4.0.0-alpha.9 → 4.0.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/USAGE.md +17 -0
- package/dist/components/Appear/Appear.d.ts +45 -0
- package/dist/components/Appear/Appear.d.ts.map +1 -0
- package/dist/components/Appear/Appear.js +61 -0
- package/dist/components/Appear/Appear.js.map +1 -0
- package/dist/components/Appear/Appear.mjs +59 -0
- package/dist/components/Appear/Appear.mjs.map +1 -0
- package/dist/components/Appear/Appear.styles.d.ts +18 -0
- package/dist/components/Appear/Appear.styles.d.ts.map +1 -0
- package/dist/components/Appear/Appear.styles.js +32 -0
- package/dist/components/Appear/Appear.styles.js.map +1 -0
- package/dist/components/Appear/Appear.styles.mjs +30 -0
- package/dist/components/Appear/Appear.styles.mjs.map +1 -0
- package/dist/components/Appear/Appear.types.d.ts +18 -0
- package/dist/components/Appear/Appear.types.d.ts.map +1 -0
- package/dist/components/Appear/index.d.ts +3 -0
- package/dist/components/Appear/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +2 -15
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +5 -2
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/Badge.mjs +5 -2
- package/dist/components/Badge/Badge.mjs.map +1 -1
- package/dist/components/Badge/Badge.types.d.ts +15 -2
- package/dist/components/Badge/Badge.types.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Banner/Banner.js +2 -1
- package/dist/components/Banner/Banner.js.map +1 -1
- package/dist/components/Banner/Banner.mjs +2 -1
- package/dist/components/Banner/Banner.mjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.d.ts +28 -0
- package/dist/components/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.js +38 -0
- package/dist/components/BottomSheet/BottomSheet.js.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.mjs +36 -0
- package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.styles.d.ts +32 -0
- package/dist/components/BottomSheet/BottomSheet.styles.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.styles.js +164 -0
- package/dist/components/BottomSheet/BottomSheet.styles.js.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.styles.mjs +161 -0
- package/dist/components/BottomSheet/BottomSheet.styles.mjs.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.types.d.ts +43 -0
- package/dist/components/BottomSheet/BottomSheet.types.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheetBody.d.ts +8 -0
- package/dist/components/BottomSheet/BottomSheetBody.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheetBody.js +17 -0
- package/dist/components/BottomSheet/BottomSheetBody.js.map +1 -0
- package/dist/components/BottomSheet/BottomSheetBody.mjs +15 -0
- package/dist/components/BottomSheet/BottomSheetBody.mjs.map +1 -0
- package/dist/components/BottomSheet/BottomSheetCloseButton.d.ts +11 -0
- package/dist/components/BottomSheet/BottomSheetCloseButton.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheetCloseButton.js +27 -0
- package/dist/components/BottomSheet/BottomSheetCloseButton.js.map +1 -0
- package/dist/components/BottomSheet/BottomSheetCloseButton.mjs +25 -0
- package/dist/components/BottomSheet/BottomSheetCloseButton.mjs.map +1 -0
- package/dist/components/BottomSheet/BottomSheetContent.d.ts +12 -0
- package/dist/components/BottomSheet/BottomSheetContent.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheetContent.js +25 -0
- package/dist/components/BottomSheet/BottomSheetContent.js.map +1 -0
- package/dist/components/BottomSheet/BottomSheetContent.mjs +23 -0
- package/dist/components/BottomSheet/BottomSheetContent.mjs.map +1 -0
- package/dist/components/BottomSheet/BottomSheetContext.d.ts +28 -0
- package/dist/components/BottomSheet/BottomSheetContext.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheetContext.js +53 -0
- package/dist/components/BottomSheet/BottomSheetContext.js.map +1 -0
- package/dist/components/BottomSheet/BottomSheetContext.mjs +40 -0
- package/dist/components/BottomSheet/BottomSheetContext.mjs.map +1 -0
- package/dist/components/BottomSheet/BottomSheetFooter.d.ts +4 -0
- package/dist/components/BottomSheet/BottomSheetFooter.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheetFooter.js +13 -0
- package/dist/components/BottomSheet/BottomSheetFooter.js.map +1 -0
- package/dist/components/BottomSheet/BottomSheetFooter.mjs +11 -0
- package/dist/components/BottomSheet/BottomSheetFooter.mjs.map +1 -0
- package/dist/components/BottomSheet/BottomSheetHeader.d.ts +8 -0
- package/dist/components/BottomSheet/BottomSheetHeader.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheetHeader.js +19 -0
- package/dist/components/BottomSheet/BottomSheetHeader.js.map +1 -0
- package/dist/components/BottomSheet/BottomSheetHeader.mjs +17 -0
- package/dist/components/BottomSheet/BottomSheetHeader.mjs.map +1 -0
- package/dist/components/BottomSheet/BottomSheetOverlay.d.ts +8 -0
- package/dist/components/BottomSheet/BottomSheetOverlay.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheetOverlay.js +17 -0
- package/dist/components/BottomSheet/BottomSheetOverlay.js.map +1 -0
- package/dist/components/BottomSheet/BottomSheetOverlay.mjs +15 -0
- package/dist/components/BottomSheet/BottomSheetOverlay.mjs.map +1 -0
- package/dist/components/BottomSheet/index.d.ts +11 -0
- package/dist/components/BottomSheet/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +2 -18
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +66 -4
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.mjs +67 -5
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Button/Button.styles.d.ts +1 -0
- package/dist/components/Button/Button.styles.d.ts.map +1 -1
- package/dist/components/Button/Button.styles.js +123 -42
- package/dist/components/Button/Button.styles.js.map +1 -1
- package/dist/components/Button/Button.styles.mjs +123 -43
- package/dist/components/Button/Button.styles.mjs.map +1 -1
- package/dist/components/Button/Button.types.d.ts +38 -1
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +2 -5
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +12 -4
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/Card.mjs +12 -4
- package/dist/components/Card/Card.mjs.map +1 -1
- package/dist/components/Card/Card.styles.d.ts +26 -3
- package/dist/components/Card/Card.styles.d.ts.map +1 -1
- package/dist/components/Card/Card.styles.js +36 -5
- package/dist/components/Card/Card.styles.js.map +1 -1
- package/dist/components/Card/Card.styles.mjs +36 -5
- package/dist/components/Card/Card.styles.mjs.map +1 -1
- package/dist/components/Card/Card.types.d.ts +20 -2
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.styles.d.ts +16 -0
- package/dist/components/Checkbox/Checkbox.styles.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.js +30 -0
- package/dist/components/Checkbox/Checkbox.styles.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.mjs +28 -0
- package/dist/components/Checkbox/Checkbox.styles.mjs.map +1 -0
- package/dist/components/Checkbox/CheckboxControl.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxControl.js +6 -1
- package/dist/components/Checkbox/CheckboxControl.js.map +1 -1
- package/dist/components/Checkbox/CheckboxControl.mjs +6 -1
- package/dist/components/Checkbox/CheckboxControl.mjs.map +1 -1
- package/dist/components/Chip/Chip.d.ts +3 -16
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/Chip.js +5 -2
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/Chip/Chip.mjs +5 -2
- package/dist/components/Chip/Chip.mjs.map +1 -1
- package/dist/components/Chip/Chip.types.d.ts +11 -2
- package/dist/components/Chip/Chip.types.d.ts.map +1 -1
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/CodeTabs/CodeTabs.js +1 -0
- package/dist/components/CodeTabs/CodeTabs.js.map +1 -1
- package/dist/components/CodeTabs/CodeTabs.mjs +1 -0
- package/dist/components/CodeTabs/CodeTabs.mjs.map +1 -1
- package/dist/components/Collapsible/CollapsibleContent.d.ts.map +1 -1
- package/dist/components/Collapsible/CollapsibleContent.js +5 -1
- package/dist/components/Collapsible/CollapsibleContent.js.map +1 -1
- package/dist/components/Collapsible/CollapsibleContent.mjs +5 -1
- package/dist/components/Collapsible/CollapsibleContent.mjs.map +1 -1
- package/dist/components/ColorMode/ColorModeToggle.d.ts.map +1 -1
- package/dist/components/ColorMode/ColorModeToggle.js +4 -2
- package/dist/components/ColorMode/ColorModeToggle.js.map +1 -1
- package/dist/components/ColorMode/ColorModeToggle.mjs +5 -3
- package/dist/components/ColorMode/ColorModeToggle.mjs.map +1 -1
- package/dist/components/Confetti/Confetti.d.ts +50 -0
- package/dist/components/Confetti/Confetti.d.ts.map +1 -0
- package/dist/components/Confetti/Confetti.js +149 -0
- package/dist/components/Confetti/Confetti.js.map +1 -0
- package/dist/components/Confetti/Confetti.mjs +147 -0
- package/dist/components/Confetti/Confetti.mjs.map +1 -0
- package/dist/components/Confetti/Confetti.styles.d.ts +32 -0
- package/dist/components/Confetti/Confetti.styles.d.ts.map +1 -0
- package/dist/components/Confetti/Confetti.styles.js +60 -0
- package/dist/components/Confetti/Confetti.styles.js.map +1 -0
- package/dist/components/Confetti/Confetti.styles.mjs +58 -0
- package/dist/components/Confetti/Confetti.styles.mjs.map +1 -0
- package/dist/components/Confetti/Confetti.types.d.ts +13 -0
- package/dist/components/Confetti/Confetti.types.d.ts.map +1 -0
- package/dist/components/Confetti/index.d.ts +3 -0
- package/dist/components/Confetti/index.d.ts.map +1 -0
- package/dist/components/Container/Container.d.ts +3 -4
- package/dist/components/Container/Container.d.ts.map +1 -1
- package/dist/components/Container/Container.js +5 -1
- package/dist/components/Container/Container.js.map +1 -1
- package/dist/components/Container/Container.mjs +5 -1
- package/dist/components/Container/Container.mjs.map +1 -1
- package/dist/components/Container/Container.types.d.ts +16 -0
- package/dist/components/Container/Container.types.d.ts.map +1 -0
- package/dist/components/Container/index.d.ts +1 -0
- package/dist/components/Container/index.d.ts.map +1 -1
- package/dist/components/CopyableCode/CopyableCode.d.ts +6 -0
- package/dist/components/CopyableCode/CopyableCode.d.ts.map +1 -1
- package/dist/components/CopyableCode/CopyableCode.js +49 -1
- package/dist/components/CopyableCode/CopyableCode.js.map +1 -1
- package/dist/components/CopyableCode/CopyableCode.mjs +50 -2
- package/dist/components/CopyableCode/CopyableCode.mjs.map +1 -1
- package/dist/components/CountUp/CountUp.d.ts +30 -0
- package/dist/components/CountUp/CountUp.d.ts.map +1 -0
- package/dist/components/CountUp/CountUp.js +95 -0
- package/dist/components/CountUp/CountUp.js.map +1 -0
- package/dist/components/CountUp/CountUp.mjs +93 -0
- package/dist/components/CountUp/CountUp.mjs.map +1 -0
- package/dist/components/CountUp/CountUp.types.d.ts +19 -0
- package/dist/components/CountUp/CountUp.types.d.ts.map +1 -0
- package/dist/components/CountUp/index.d.ts +3 -0
- package/dist/components/CountUp/index.d.ts.map +1 -0
- package/dist/components/ErrorFallback/ErrorFallback.d.ts.map +1 -1
- package/dist/components/ErrorFallback/ErrorFallback.js +17 -2
- package/dist/components/ErrorFallback/ErrorFallback.js.map +1 -1
- package/dist/components/ErrorFallback/ErrorFallback.mjs +17 -2
- package/dist/components/ErrorFallback/ErrorFallback.mjs.map +1 -1
- package/dist/components/ExpandableText/ExpandableText.d.ts +31 -10
- package/dist/components/ExpandableText/ExpandableText.d.ts.map +1 -1
- package/dist/components/ExpandableText/ExpandableText.js +22 -3
- package/dist/components/ExpandableText/ExpandableText.js.map +1 -1
- package/dist/components/ExpandableText/ExpandableText.mjs +22 -3
- package/dist/components/ExpandableText/ExpandableText.mjs.map +1 -1
- package/dist/components/ExpandableText/useExpandableText.d.ts +28 -3
- package/dist/components/ExpandableText/useExpandableText.d.ts.map +1 -1
- package/dist/components/ExpandableText/useExpandableText.js +74 -72
- package/dist/components/ExpandableText/useExpandableText.js.map +1 -1
- package/dist/components/ExpandableText/useExpandableText.mjs +75 -73
- package/dist/components/ExpandableText/useExpandableText.mjs.map +1 -1
- package/dist/components/FileInput/FileInput.d.ts.map +1 -1
- package/dist/components/FileInput/FileInput.js +11 -1
- package/dist/components/FileInput/FileInput.js.map +1 -1
- package/dist/components/FileInput/FileInput.mjs +12 -2
- package/dist/components/FileInput/FileInput.mjs.map +1 -1
- package/dist/components/FileItem/FileItem.js +2 -1
- package/dist/components/FileItem/FileItem.js.map +1 -1
- package/dist/components/FileItem/FileItem.mjs +3 -2
- package/dist/components/FileItem/FileItem.mjs.map +1 -1
- package/dist/components/FileList/FileList.d.ts +1 -1
- package/dist/components/FileList/FileList.d.ts.map +1 -1
- package/dist/components/FileList/FileList.js +11 -3
- package/dist/components/FileList/FileList.js.map +1 -1
- package/dist/components/FileList/FileList.mjs +12 -4
- package/dist/components/FileList/FileList.mjs.map +1 -1
- package/dist/components/FileList/FileList.types.d.ts +9 -0
- package/dist/components/FileList/FileList.types.d.ts.map +1 -1
- package/dist/components/FlyTo/FlyTo.d.ts +35 -0
- package/dist/components/FlyTo/FlyTo.d.ts.map +1 -0
- package/dist/components/FlyTo/FlyTo.js +69 -0
- package/dist/components/FlyTo/FlyTo.js.map +1 -0
- package/dist/components/FlyTo/FlyTo.mjs +67 -0
- package/dist/components/FlyTo/FlyTo.mjs.map +1 -0
- package/dist/components/FlyTo/FlyTo.styles.d.ts +19 -0
- package/dist/components/FlyTo/FlyTo.styles.d.ts.map +1 -0
- package/dist/components/FlyTo/FlyTo.styles.js +35 -0
- package/dist/components/FlyTo/FlyTo.styles.js.map +1 -0
- package/dist/components/FlyTo/FlyTo.styles.mjs +33 -0
- package/dist/components/FlyTo/FlyTo.styles.mjs.map +1 -0
- package/dist/components/FlyTo/FlyTo.types.d.ts +15 -0
- package/dist/components/FlyTo/FlyTo.types.d.ts.map +1 -0
- package/dist/components/FlyTo/index.d.ts +3 -0
- package/dist/components/FlyTo/index.d.ts.map +1 -0
- package/dist/components/Form/FieldError/FieldError.d.ts +15 -0
- package/dist/components/Form/FieldError/FieldError.d.ts.map +1 -0
- package/dist/components/Form/FieldError/FieldError.js +22 -0
- package/dist/components/Form/FieldError/FieldError.js.map +1 -0
- package/dist/components/Form/FieldError/FieldError.mjs +20 -0
- package/dist/components/Form/FieldError/FieldError.mjs.map +1 -0
- package/dist/components/Form/FieldError/index.d.ts +3 -0
- package/dist/components/Form/FieldError/index.d.ts.map +1 -0
- package/dist/components/Form/FieldHelp/FieldHelp.d.ts +14 -0
- package/dist/components/Form/FieldHelp/FieldHelp.d.ts.map +1 -0
- package/dist/components/Form/FieldHelp/FieldHelp.js +19 -0
- package/dist/components/Form/FieldHelp/FieldHelp.js.map +1 -0
- package/dist/components/Form/FieldHelp/FieldHelp.mjs +17 -0
- package/dist/components/Form/FieldHelp/FieldHelp.mjs.map +1 -0
- package/dist/components/Form/FieldHelp/index.d.ts +3 -0
- package/dist/components/Form/FieldHelp/index.d.ts.map +1 -0
- package/dist/components/Form/FieldLabel/FieldLabel.d.ts +12 -0
- package/dist/components/Form/FieldLabel/FieldLabel.d.ts.map +1 -0
- package/dist/components/Form/FieldLabel/FieldLabel.js +33 -0
- package/dist/components/Form/FieldLabel/FieldLabel.js.map +1 -0
- package/dist/components/Form/FieldLabel/FieldLabel.mjs +31 -0
- package/dist/components/Form/FieldLabel/FieldLabel.mjs.map +1 -0
- package/dist/components/Form/FieldLabel/FieldLabel.types.d.ts +21 -0
- package/dist/components/Form/FieldLabel/FieldLabel.types.d.ts.map +1 -0
- package/dist/components/Form/FieldLabel/index.d.ts +3 -0
- package/dist/components/Form/FieldLabel/index.d.ts.map +1 -0
- package/dist/components/Form/FieldRow/FieldRow.d.ts +15 -0
- package/dist/components/Form/FieldRow/FieldRow.d.ts.map +1 -0
- package/dist/components/Form/FieldRow/FieldRow.js +27 -0
- package/dist/components/Form/FieldRow/FieldRow.js.map +1 -0
- package/dist/components/Form/FieldRow/FieldRow.mjs +25 -0
- package/dist/components/Form/FieldRow/FieldRow.mjs.map +1 -0
- package/dist/components/Form/FieldRow/FieldRow.types.d.ts +27 -0
- package/dist/components/Form/FieldRow/FieldRow.types.d.ts.map +1 -0
- package/dist/components/Form/FieldRow/index.d.ts +3 -0
- package/dist/components/Form/FieldRow/index.d.ts.map +1 -0
- package/dist/components/Form/FormFooter/FormFooter.d.ts +11 -0
- package/dist/components/Form/FormFooter/FormFooter.d.ts.map +1 -0
- package/dist/components/Form/FormFooter/FormFooter.js +20 -0
- package/dist/components/Form/FormFooter/FormFooter.js.map +1 -0
- package/dist/components/Form/FormFooter/FormFooter.mjs +18 -0
- package/dist/components/Form/FormFooter/FormFooter.mjs.map +1 -0
- package/dist/components/Form/FormFooter/FormFooter.types.d.ts +23 -0
- package/dist/components/Form/FormFooter/FormFooter.types.d.ts.map +1 -0
- package/dist/components/Form/FormFooter/index.d.ts +3 -0
- package/dist/components/Form/FormFooter/index.d.ts.map +1 -0
- package/dist/components/Form/FormModalFooter/FormModalFooter.d.ts +19 -0
- package/dist/components/Form/FormModalFooter/FormModalFooter.d.ts.map +1 -0
- package/dist/components/Form/FormModalFooter/FormModalFooter.js +42 -0
- package/dist/components/Form/FormModalFooter/FormModalFooter.js.map +1 -0
- package/dist/components/Form/FormModalFooter/FormModalFooter.mjs +40 -0
- package/dist/components/Form/FormModalFooter/FormModalFooter.mjs.map +1 -0
- package/dist/components/Form/FormModalFooter/FormModalFooter.types.d.ts +49 -0
- package/dist/components/Form/FormModalFooter/FormModalFooter.types.d.ts.map +1 -0
- package/dist/components/Form/FormModalFooter/index.d.ts +3 -0
- package/dist/components/Form/FormModalFooter/index.d.ts.map +1 -0
- package/dist/components/Form/FormScrollArea/FormScrollArea.d.ts +14 -0
- package/dist/components/Form/FormScrollArea/FormScrollArea.d.ts.map +1 -0
- package/dist/components/Form/FormScrollArea/FormScrollArea.js +18 -0
- package/dist/components/Form/FormScrollArea/FormScrollArea.js.map +1 -0
- package/dist/components/Form/FormScrollArea/FormScrollArea.mjs +16 -0
- package/dist/components/Form/FormScrollArea/FormScrollArea.mjs.map +1 -0
- package/dist/components/Form/FormScrollArea/index.d.ts +2 -0
- package/dist/components/Form/FormScrollArea/index.d.ts.map +1 -0
- package/dist/components/Form/FormSection/CollapsibleFormSection.d.ts +10 -0
- package/dist/components/Form/FormSection/CollapsibleFormSection.d.ts.map +1 -0
- package/dist/components/Form/FormSection/CollapsibleFormSection.js +46 -0
- package/dist/components/Form/FormSection/CollapsibleFormSection.js.map +1 -0
- package/dist/components/Form/FormSection/CollapsibleFormSection.mjs +44 -0
- package/dist/components/Form/FormSection/CollapsibleFormSection.mjs.map +1 -0
- package/dist/components/Form/FormSection/FlatFormSection.d.ts +6 -0
- package/dist/components/Form/FormSection/FlatFormSection.d.ts.map +1 -0
- package/dist/components/Form/FormSection/FlatFormSection.js +12 -0
- package/dist/components/Form/FormSection/FlatFormSection.js.map +1 -0
- package/dist/components/Form/FormSection/FlatFormSection.mjs +10 -0
- package/dist/components/Form/FormSection/FlatFormSection.mjs.map +1 -0
- package/dist/components/Form/FormSection/FormSection.d.ts +13 -0
- package/dist/components/Form/FormSection/FormSection.d.ts.map +1 -0
- package/dist/components/Form/FormSection/FormSection.js +21 -0
- package/dist/components/Form/FormSection/FormSection.js.map +1 -0
- package/dist/components/Form/FormSection/FormSection.mjs +19 -0
- package/dist/components/Form/FormSection/FormSection.mjs.map +1 -0
- package/dist/components/Form/FormSection/FormSection.types.d.ts +34 -0
- package/dist/components/Form/FormSection/FormSection.types.d.ts.map +1 -0
- package/dist/components/Form/FormSection/index.d.ts +3 -0
- package/dist/components/Form/FormSection/index.d.ts.map +1 -0
- package/dist/components/Form/FormSectionHeader/FormSectionHeader.d.ts +13 -0
- package/dist/components/Form/FormSectionHeader/FormSectionHeader.d.ts.map +1 -0
- package/dist/components/Form/FormSectionHeader/FormSectionHeader.js +31 -0
- package/dist/components/Form/FormSectionHeader/FormSectionHeader.js.map +1 -0
- package/dist/components/Form/FormSectionHeader/FormSectionHeader.mjs +29 -0
- package/dist/components/Form/FormSectionHeader/FormSectionHeader.mjs.map +1 -0
- package/dist/components/Form/FormSectionHeader/FormSectionHeader.types.d.ts +17 -0
- package/dist/components/Form/FormSectionHeader/FormSectionHeader.types.d.ts.map +1 -0
- package/dist/components/Form/FormSectionHeader/index.d.ts +3 -0
- package/dist/components/Form/FormSectionHeader/index.d.ts.map +1 -0
- package/dist/components/Form/index.d.ts +18 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/Icon/_constants/iconList.d.ts +2 -1
- package/dist/components/Icon/_constants/iconList.d.ts.map +1 -1
- package/dist/components/Icon/_constants/iconList.js +309 -134
- package/dist/components/Icon/_constants/iconList.js.map +1 -1
- package/dist/components/Icon/_constants/iconList.mjs +337 -162
- package/dist/components/Icon/_constants/iconList.mjs.map +1 -1
- package/dist/components/Icon/_utils/createIcon.d.ts.map +1 -1
- package/dist/components/Icon/_utils/createIcon.js +1 -0
- package/dist/components/Icon/_utils/createIcon.js.map +1 -1
- package/dist/components/Icon/_utils/createIcon.mjs +1 -0
- package/dist/components/Icon/_utils/createIcon.mjs.map +1 -1
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +205 -42
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Icon/index.mjs +3 -43
- package/dist/components/Icon/index.mjs.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +2 -17
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +11 -3
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/IconButton/IconButton.mjs +11 -3
- package/dist/components/IconButton/IconButton.mjs.map +1 -1
- package/dist/components/IconButton/IconButton.types.d.ts +15 -1
- package/dist/components/IconButton/IconButton.types.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/InfoSprinkle/InfoSprinkle.d.ts.map +1 -1
- package/dist/components/InfoSprinkle/InfoSprinkle.js +1 -1
- package/dist/components/InfoSprinkle/InfoSprinkle.js.map +1 -1
- package/dist/components/InfoSprinkle/InfoSprinkle.mjs +1 -1
- package/dist/components/InfoSprinkle/InfoSprinkle.mjs.map +1 -1
- package/dist/components/InlineCode/InlineCode.d.ts.map +1 -1
- package/dist/components/InlineCode/InlineCode.js +10 -1
- package/dist/components/InlineCode/InlineCode.js.map +1 -1
- package/dist/components/InlineCode/InlineCode.mjs +10 -1
- package/dist/components/InlineCode/InlineCode.mjs.map +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.js +2 -1
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Input/Input.mjs +2 -1
- package/dist/components/Input/Input.mjs.map +1 -1
- package/dist/components/Loaders/PageLoader.d.ts.map +1 -1
- package/dist/components/Loaders/PageLoader.js +4 -1
- package/dist/components/Loaders/PageLoader.js.map +1 -1
- package/dist/components/Loaders/PageLoader.mjs +4 -1
- package/dist/components/Loaders/PageLoader.mjs.map +1 -1
- package/dist/components/Loaders/SectionLoader.d.ts.map +1 -1
- package/dist/components/Loaders/SectionLoader.js +1 -1
- package/dist/components/Loaders/SectionLoader.js.map +1 -1
- package/dist/components/Loaders/SectionLoader.mjs +1 -1
- package/dist/components/Loaders/SectionLoader.mjs.map +1 -1
- package/dist/components/Markdown/Markdown.d.ts.map +1 -1
- package/dist/components/Markdown/Markdown.js +7 -1
- package/dist/components/Markdown/Markdown.js.map +1 -1
- package/dist/components/Markdown/Markdown.mjs +7 -1
- package/dist/components/Markdown/Markdown.mjs.map +1 -1
- package/dist/components/MaxLengthIndicator/MaxLengthIndicator.js +1 -0
- package/dist/components/MaxLengthIndicator/MaxLengthIndicator.js.map +1 -1
- package/dist/components/MaxLengthIndicator/MaxLengthIndicator.mjs +1 -0
- package/dist/components/MaxLengthIndicator/MaxLengthIndicator.mjs.map +1 -1
- package/dist/components/Menu/Menu.d.ts +2 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/MenuItem.d.ts +2 -2
- package/dist/components/Menu/MenuItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuItem.js +8 -2
- package/dist/components/Menu/MenuItem.js.map +1 -1
- package/dist/components/Menu/MenuItem.mjs +8 -2
- package/dist/components/Menu/MenuItem.mjs.map +1 -1
- package/dist/components/Menu/MenuItem.types.d.ts +17 -2
- package/dist/components/Menu/MenuItem.types.d.ts.map +1 -1
- package/dist/components/Menu/MenuItem.types.js.map +1 -1
- package/dist/components/Menu/MenuItem.types.mjs.map +1 -1
- package/dist/components/Menu/MenuList.d.ts +20 -0
- package/dist/components/Menu/MenuList.d.ts.map +1 -1
- package/dist/components/Menu/MenuList.js +20 -2
- package/dist/components/Menu/MenuList.js.map +1 -1
- package/dist/components/Menu/MenuList.mjs +21 -3
- package/dist/components/Menu/MenuList.mjs.map +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/Modal.mjs +2 -2
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Modal/Modal.styles.d.ts +22 -0
- package/dist/components/Modal/Modal.styles.d.ts.map +1 -1
- package/dist/components/Modal/Modal.styles.js +24 -0
- package/dist/components/Modal/Modal.styles.js.map +1 -0
- package/dist/components/Modal/Modal.styles.mjs +22 -0
- package/dist/components/Modal/Modal.styles.mjs.map +1 -0
- package/dist/components/Modal/Modal.types.d.ts +10 -2
- package/dist/components/Modal/Modal.types.d.ts.map +1 -1
- package/dist/components/Modal/ModalContent/ModalContent.d.ts.map +1 -1
- package/dist/components/Modal/ModalContent/ModalContent.js +2 -1
- package/dist/components/Modal/ModalContent/ModalContent.js.map +1 -1
- package/dist/components/Modal/ModalContent/ModalContent.mjs +2 -1
- package/dist/components/Modal/ModalContent/ModalContent.mjs.map +1 -1
- package/dist/components/Modal/ModalContext.js +1 -1
- package/dist/components/Modal/ModalContext.js.map +1 -1
- package/dist/components/Modal/ModalContext.mjs +1 -1
- package/dist/components/Modal/ModalContext.mjs.map +1 -1
- package/dist/components/Modal/ModalOverlay.d.ts.map +1 -1
- package/dist/components/Modal/ModalOverlay.js +3 -1
- package/dist/components/Modal/ModalOverlay.js.map +1 -1
- package/dist/components/Modal/ModalOverlay.mjs +3 -1
- package/dist/components/Modal/ModalOverlay.mjs.map +1 -1
- package/dist/components/MonthPicker/MonthPicker.js +1 -0
- package/dist/components/MonthPicker/MonthPicker.js.map +1 -1
- package/dist/components/MonthPicker/MonthPicker.mjs +1 -0
- package/dist/components/MonthPicker/MonthPicker.mjs.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +8 -2
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Pagination/Pagination.mjs +9 -3
- package/dist/components/Pagination/Pagination.mjs.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.mjs +2 -2
- package/dist/components/PasswordInput/PasswordInput.mjs.map +1 -1
- package/dist/components/PinInput/PinInput.d.ts +1 -4
- package/dist/components/PinInput/PinInput.d.ts.map +1 -1
- package/dist/components/PinInput/PinInput.js +5 -22
- package/dist/components/PinInput/PinInput.js.map +1 -1
- package/dist/components/PinInput/PinInput.mjs +8 -25
- package/dist/components/PinInput/PinInput.mjs.map +1 -1
- package/dist/components/PinInput/PinInput.types.d.ts +7 -24
- package/dist/components/PinInput/PinInput.types.d.ts.map +1 -1
- package/dist/components/Popover/PopoverContent.d.ts.map +1 -1
- package/dist/components/Popover/PopoverContent.js +4 -1
- package/dist/components/Popover/PopoverContent.js.map +1 -1
- package/dist/components/Popover/PopoverContent.mjs +4 -1
- package/dist/components/Popover/PopoverContent.mjs.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +19 -2
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.mjs +20 -3
- package/dist/components/ProgressBar/ProgressBar.mjs.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.styles.d.ts +18 -0
- package/dist/components/ProgressBar/ProgressBar.styles.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.styles.js +24 -0
- package/dist/components/ProgressBar/ProgressBar.styles.js.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.styles.mjs +24 -1
- package/dist/components/ProgressBar/ProgressBar.styles.mjs.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +10 -0
- package/dist/components/ProgressBar/ProgressBar.types.d.ts.map +1 -1
- package/dist/components/Pulse/Pulse.d.ts +40 -0
- package/dist/components/Pulse/Pulse.d.ts.map +1 -0
- package/dist/components/Pulse/Pulse.js +64 -0
- package/dist/components/Pulse/Pulse.js.map +1 -0
- package/dist/components/Pulse/Pulse.mjs +62 -0
- package/dist/components/Pulse/Pulse.mjs.map +1 -0
- package/dist/components/Pulse/Pulse.styles.d.ts +35 -0
- package/dist/components/Pulse/Pulse.styles.d.ts.map +1 -0
- package/dist/components/Pulse/Pulse.styles.js +46 -0
- package/dist/components/Pulse/Pulse.styles.js.map +1 -0
- package/dist/components/Pulse/Pulse.styles.mjs +44 -0
- package/dist/components/Pulse/Pulse.styles.mjs.map +1 -0
- package/dist/components/Pulse/Pulse.types.d.ts +12 -0
- package/dist/components/Pulse/Pulse.types.d.ts.map +1 -0
- package/dist/components/Pulse/index.d.ts +3 -0
- package/dist/components/Pulse/index.d.ts.map +1 -0
- package/dist/components/RadialProgress/RadialProgress.js +1 -0
- package/dist/components/RadialProgress/RadialProgress.js.map +1 -1
- package/dist/components/RadialProgress/RadialProgress.mjs +1 -0
- package/dist/components/RadialProgress/RadialProgress.mjs.map +1 -1
- package/dist/components/Radio/Radio.styles.d.ts +13 -0
- package/dist/components/Radio/Radio.styles.d.ts.map +1 -0
- package/dist/components/Radio/Radio.styles.js +28 -0
- package/dist/components/Radio/Radio.styles.js.map +1 -0
- package/dist/components/Radio/Radio.styles.mjs +26 -0
- package/dist/components/Radio/Radio.styles.mjs.map +1 -0
- package/dist/components/Radio/RadioControl.d.ts.map +1 -1
- package/dist/components/Radio/RadioControl.js +19 -1
- package/dist/components/Radio/RadioControl.js.map +1 -1
- package/dist/components/Radio/RadioControl.mjs +20 -2
- package/dist/components/Radio/RadioControl.mjs.map +1 -1
- package/dist/components/Reveal/Reveal.d.ts +33 -0
- package/dist/components/Reveal/Reveal.d.ts.map +1 -0
- package/dist/components/Reveal/Reveal.js +46 -0
- package/dist/components/Reveal/Reveal.js.map +1 -0
- package/dist/components/Reveal/Reveal.mjs +44 -0
- package/dist/components/Reveal/Reveal.mjs.map +1 -0
- package/dist/components/Reveal/Reveal.styles.d.ts +25 -0
- package/dist/components/Reveal/Reveal.styles.d.ts.map +1 -0
- package/dist/components/Reveal/Reveal.styles.js +42 -0
- package/dist/components/Reveal/Reveal.styles.js.map +1 -0
- package/dist/components/Reveal/Reveal.styles.mjs +40 -0
- package/dist/components/Reveal/Reveal.styles.mjs.map +1 -0
- package/dist/components/Reveal/Reveal.types.d.ts +6 -0
- package/dist/components/Reveal/Reveal.types.d.ts.map +1 -0
- package/dist/components/Reveal/index.d.ts +3 -0
- package/dist/components/Reveal/index.d.ts.map +1 -0
- package/dist/components/SeeMoreButton/SeeMoreButton.d.ts +3 -10
- package/dist/components/SeeMoreButton/SeeMoreButton.d.ts.map +1 -1
- package/dist/components/SeeMoreButton/SeeMoreButton.js +6 -2
- package/dist/components/SeeMoreButton/SeeMoreButton.js.map +1 -1
- package/dist/components/SeeMoreButton/SeeMoreButton.mjs +7 -3
- package/dist/components/SeeMoreButton/SeeMoreButton.mjs.map +1 -1
- package/dist/components/SeeMoreButton/SeeMoreButton.types.d.ts +10 -3
- package/dist/components/SeeMoreButton/SeeMoreButton.types.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +5 -1
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.mjs +5 -1
- package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.styles.d.ts +16 -0
- package/dist/components/SegmentedControl/SegmentedControl.styles.d.ts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.styles.js +26 -0
- package/dist/components/SegmentedControl/SegmentedControl.styles.js.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.styles.mjs +24 -0
- package/dist/components/SegmentedControl/SegmentedControl.styles.mjs.map +1 -0
- package/dist/components/Select/Combobox.d.ts.map +1 -1
- package/dist/components/Select/Combobox.js +9 -2
- package/dist/components/Select/Combobox.js.map +1 -1
- package/dist/components/Select/Combobox.mjs +9 -2
- package/dist/components/Select/Combobox.mjs.map +1 -1
- package/dist/components/Select/ComboboxField.d.ts +1 -1
- package/dist/components/Select/ComboboxField.d.ts.map +1 -1
- package/dist/components/Select/ComboboxField.js +2 -2
- package/dist/components/Select/ComboboxField.js.map +1 -1
- package/dist/components/Select/ComboboxField.mjs +2 -2
- package/dist/components/Select/ComboboxField.mjs.map +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +4 -1
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Select/Select.mjs +4 -1
- package/dist/components/Select/Select.mjs.map +1 -1
- package/dist/components/Select/Select.types.d.ts +26 -1
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/SelectField.d.ts +1 -1
- package/dist/components/Select/SelectField.d.ts.map +1 -1
- package/dist/components/Select/SelectField.js +3 -2
- package/dist/components/Select/SelectField.js.map +1 -1
- package/dist/components/Select/SelectField.mjs +3 -2
- package/dist/components/Select/SelectField.mjs.map +1 -1
- package/dist/components/Shake/Shake.d.ts +35 -0
- package/dist/components/Shake/Shake.d.ts.map +1 -0
- package/dist/components/Shake/Shake.js +61 -0
- package/dist/components/Shake/Shake.js.map +1 -0
- package/dist/components/Shake/Shake.mjs +59 -0
- package/dist/components/Shake/Shake.mjs.map +1 -0
- package/dist/components/Shake/Shake.styles.d.ts +24 -0
- package/dist/components/Shake/Shake.styles.d.ts.map +1 -0
- package/dist/components/Shake/Shake.styles.js +35 -0
- package/dist/components/Shake/Shake.styles.js.map +1 -0
- package/dist/components/Shake/Shake.styles.mjs +33 -0
- package/dist/components/Shake/Shake.styles.mjs.map +1 -0
- package/dist/components/Shake/Shake.types.d.ts +11 -0
- package/dist/components/Shake/Shake.types.d.ts.map +1 -0
- package/dist/components/Shake/index.d.ts +3 -0
- package/dist/components/Shake/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/Slider.js.map +1 -1
- package/dist/components/Slider/Slider.mjs +3 -3
- package/dist/components/Slider/Slider.mjs.map +1 -1
- package/dist/components/Slider/Slider.types.d.ts +15 -0
- package/dist/components/Slider/Slider.types.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.js +7 -2
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/Spinner/Spinner.mjs +7 -2
- package/dist/components/Spinner/Spinner.mjs.map +1 -1
- package/dist/components/Spinner/Spinner.styles.d.ts +23 -0
- package/dist/components/Spinner/Spinner.styles.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.styles.js +36 -0
- package/dist/components/Spinner/Spinner.styles.js.map +1 -0
- package/dist/components/Spinner/Spinner.styles.mjs +34 -0
- package/dist/components/Spinner/Spinner.styles.mjs.map +1 -0
- package/dist/components/SwapTransition/SwapTransition.d.ts +43 -0
- package/dist/components/SwapTransition/SwapTransition.d.ts.map +1 -0
- package/dist/components/SwapTransition/SwapTransition.js +82 -0
- package/dist/components/SwapTransition/SwapTransition.js.map +1 -0
- package/dist/components/SwapTransition/SwapTransition.mjs +80 -0
- package/dist/components/SwapTransition/SwapTransition.mjs.map +1 -0
- package/dist/components/SwapTransition/SwapTransition.styles.d.ts +24 -0
- package/dist/components/SwapTransition/SwapTransition.styles.d.ts.map +1 -0
- package/dist/components/SwapTransition/SwapTransition.styles.js +42 -0
- package/dist/components/SwapTransition/SwapTransition.styles.js.map +1 -0
- package/dist/components/SwapTransition/SwapTransition.styles.mjs +38 -0
- package/dist/components/SwapTransition/SwapTransition.styles.mjs.map +1 -0
- package/dist/components/SwapTransition/SwapTransition.types.d.ts +22 -0
- package/dist/components/SwapTransition/SwapTransition.types.d.ts.map +1 -0
- package/dist/components/SwapTransition/index.d.ts +3 -0
- package/dist/components/SwapTransition/index.d.ts.map +1 -0
- package/dist/components/Switch/SwitchControl.d.ts.map +1 -1
- package/dist/components/Switch/SwitchControl.js +13 -1
- package/dist/components/Switch/SwitchControl.js.map +1 -1
- package/dist/components/Switch/SwitchControl.mjs +13 -1
- package/dist/components/Switch/SwitchControl.mjs.map +1 -1
- package/dist/components/Table/TableContext.d.ts +8 -0
- package/dist/components/Table/TableContext.d.ts.map +1 -1
- package/dist/components/Table/TableContext.js +79 -28
- package/dist/components/Table/TableContext.js.map +1 -1
- package/dist/components/Table/TableContext.mjs +80 -29
- package/dist/components/Table/TableContext.mjs.map +1 -1
- package/dist/components/Table/Td.d.ts.map +1 -1
- package/dist/components/Table/Td.js +12 -8
- package/dist/components/Table/Td.js.map +1 -1
- package/dist/components/Table/Td.mjs +13 -9
- package/dist/components/Table/Td.mjs.map +1 -1
- package/dist/components/Table/Th.d.ts.map +1 -1
- package/dist/components/Table/Th.js +12 -8
- package/dist/components/Table/Th.js.map +1 -1
- package/dist/components/Table/Th.mjs +13 -9
- package/dist/components/Table/Th.mjs.map +1 -1
- package/dist/components/Table/useRegisterStickyWidth.d.ts +48 -0
- package/dist/components/Table/useRegisterStickyWidth.d.ts.map +1 -0
- package/dist/components/Table/useRegisterStickyWidth.js +54 -0
- package/dist/components/Table/useRegisterStickyWidth.js.map +1 -0
- package/dist/components/Table/useRegisterStickyWidth.mjs +52 -0
- package/dist/components/Table/useRegisterStickyWidth.mjs.map +1 -0
- package/dist/components/Tabs/Tab/Tab.styles.d.ts +36 -3
- package/dist/components/Tabs/Tab/Tab.styles.d.ts.map +1 -1
- package/dist/components/Tabs/Tab/Tab.styles.js +48 -5
- package/dist/components/Tabs/Tab/Tab.styles.js.map +1 -1
- package/dist/components/Tabs/Tab/Tab.styles.mjs +48 -6
- package/dist/components/Tabs/Tab/Tab.styles.mjs.map +1 -1
- package/dist/components/Tabs/Tab/index.d.ts +1 -0
- package/dist/components/Tabs/Tab/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +3 -21
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/Tag/Tag.js +6 -3
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Tag/Tag.mjs +6 -3
- package/dist/components/Tag/Tag.mjs.map +1 -1
- package/dist/components/Tag/Tag.styles.d.ts.map +1 -1
- package/dist/components/Tag/Tag.styles.js +27 -21
- package/dist/components/Tag/Tag.styles.js.map +1 -1
- package/dist/components/Tag/Tag.styles.mjs +27 -21
- package/dist/components/Tag/Tag.styles.mjs.map +1 -1
- package/dist/components/Tag/Tag.types.d.ts +9 -2
- package/dist/components/Tag/Tag.types.d.ts.map +1 -1
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.js +2 -1
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/components/Textarea/Textarea.mjs +2 -1
- package/dist/components/Textarea/Textarea.mjs.map +1 -1
- package/dist/components/Toast/Toast.d.ts +7 -3
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +7 -3
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/Toast.mjs +8 -4
- package/dist/components/Toast/Toast.mjs.map +1 -1
- package/dist/components/Toast/Toast.styles.d.ts +8 -0
- package/dist/components/Toast/Toast.styles.d.ts.map +1 -1
- package/dist/components/Toast/Toast.styles.js +59 -0
- package/dist/components/Toast/Toast.styles.js.map +1 -1
- package/dist/components/Toast/Toast.styles.mjs +57 -1
- package/dist/components/Toast/Toast.styles.mjs.map +1 -1
- package/dist/components/Toast/Toast.types.d.ts +25 -1
- package/dist/components/Toast/Toast.types.d.ts.map +1 -1
- package/dist/components/Toast/ToastIcon/ToastIcon.js +4 -4
- package/dist/components/Toast/ToastIcon/ToastIcon.js.map +1 -1
- package/dist/components/Toast/ToastIcon/ToastIcon.mjs +5 -5
- package/dist/components/Toast/ToastIcon/ToastIcon.mjs.map +1 -1
- package/dist/components/Toast/Toaster.d.ts.map +1 -1
- package/dist/components/Toast/Toaster.js +9 -1
- package/dist/components/Toast/Toaster.js.map +1 -1
- package/dist/components/Toast/Toaster.mjs +9 -1
- package/dist/components/Toast/Toaster.mjs.map +1 -1
- package/dist/components/Toast/useToast.d.ts +2 -2
- package/dist/components/Toast/useToast.d.ts.map +1 -1
- package/dist/components/Toast/useToast.js +9 -1
- package/dist/components/Toast/useToast.js.map +1 -1
- package/dist/components/Toast/useToast.mjs +10 -2
- package/dist/components/Toast/useToast.mjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +15 -1
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.mjs +15 -1
- package/dist/components/Tooltip/Tooltip.mjs.map +1 -1
- package/dist/components/Tree/TreeBranchIndicator.js +1 -1
- package/dist/components/Tree/TreeBranchIndicator.js.map +1 -1
- package/dist/components/Tree/TreeBranchIndicator.mjs +2 -2
- package/dist/components/Tree/TreeBranchIndicator.mjs.map +1 -1
- package/dist/components/Typography/Caption.d.ts +4 -0
- package/dist/components/Typography/Caption.d.ts.map +1 -0
- package/dist/components/Typography/Caption.js +33 -0
- package/dist/components/Typography/Caption.js.map +1 -0
- package/dist/components/Typography/Caption.mjs +31 -0
- package/dist/components/Typography/Caption.mjs.map +1 -0
- package/dist/components/Typography/H1.d.ts +3 -2
- package/dist/components/Typography/H1.d.ts.map +1 -1
- package/dist/components/Typography/H1.js +6 -3
- package/dist/components/Typography/H1.js.map +1 -1
- package/dist/components/Typography/H1.mjs +6 -3
- package/dist/components/Typography/H1.mjs.map +1 -1
- package/dist/components/Typography/H2.d.ts +3 -2
- package/dist/components/Typography/H2.d.ts.map +1 -1
- package/dist/components/Typography/H2.js +6 -3
- package/dist/components/Typography/H2.js.map +1 -1
- package/dist/components/Typography/H2.mjs +6 -3
- package/dist/components/Typography/H2.mjs.map +1 -1
- package/dist/components/Typography/H3.d.ts +3 -2
- package/dist/components/Typography/H3.d.ts.map +1 -1
- package/dist/components/Typography/H3.js +6 -3
- package/dist/components/Typography/H3.js.map +1 -1
- package/dist/components/Typography/H3.mjs +6 -3
- package/dist/components/Typography/H3.mjs.map +1 -1
- package/dist/components/Typography/H4.d.ts +3 -2
- package/dist/components/Typography/H4.d.ts.map +1 -1
- package/dist/components/Typography/H4.js +6 -3
- package/dist/components/Typography/H4.js.map +1 -1
- package/dist/components/Typography/H4.mjs +6 -3
- package/dist/components/Typography/H4.mjs.map +1 -1
- package/dist/components/Typography/H5.d.ts +3 -2
- package/dist/components/Typography/H5.d.ts.map +1 -1
- package/dist/components/Typography/H5.js +6 -3
- package/dist/components/Typography/H5.js.map +1 -1
- package/dist/components/Typography/H5.mjs +6 -3
- package/dist/components/Typography/H5.mjs.map +1 -1
- package/dist/components/Typography/Link.d.ts +39 -3
- package/dist/components/Typography/Link.d.ts.map +1 -1
- package/dist/components/Typography/Link.js +55 -10
- package/dist/components/Typography/Link.js.map +1 -1
- package/dist/components/Typography/Link.mjs +55 -11
- package/dist/components/Typography/Link.mjs.map +1 -1
- package/dist/components/Typography/Overline.d.ts +3 -13
- package/dist/components/Typography/Overline.d.ts.map +1 -1
- package/dist/components/Typography/Overline.js +5 -2
- package/dist/components/Typography/Overline.js.map +1 -1
- package/dist/components/Typography/Overline.mjs +5 -2
- package/dist/components/Typography/Overline.mjs.map +1 -1
- package/dist/components/Typography/Subtext.d.ts +3 -3
- package/dist/components/Typography/Subtext.d.ts.map +1 -1
- package/dist/components/Typography/Subtext.js +5 -2
- package/dist/components/Typography/Subtext.js.map +1 -1
- package/dist/components/Typography/Subtext.mjs +5 -2
- package/dist/components/Typography/Subtext.mjs.map +1 -1
- package/dist/components/Typography/Subtitle.d.ts +3 -2
- package/dist/components/Typography/Subtitle.d.ts.map +1 -1
- package/dist/components/Typography/Subtitle.js +23 -3
- package/dist/components/Typography/Subtitle.js.map +1 -1
- package/dist/components/Typography/Subtitle.mjs +23 -3
- package/dist/components/Typography/Subtitle.mjs.map +1 -1
- package/dist/components/Typography/Text.d.ts +3 -3
- package/dist/components/Typography/Text.d.ts.map +1 -1
- package/dist/components/Typography/Text.js +5 -2
- package/dist/components/Typography/Text.js.map +1 -1
- package/dist/components/Typography/Text.mjs +5 -2
- package/dist/components/Typography/Text.mjs.map +1 -1
- package/dist/components/Typography/Typography.types.d.ts +35 -2
- package/dist/components/Typography/Typography.types.d.ts.map +1 -1
- package/dist/components/Typography/index.d.ts +4 -3
- package/dist/components/Typography/index.d.ts.map +1 -1
- package/dist/components/Workflow/Workflow.d.ts +1 -1
- package/dist/components/Workflow/Workflow.d.ts.map +1 -1
- package/dist/components/Workflow/Workflow.js +2 -2
- package/dist/components/Workflow/Workflow.js.map +1 -1
- package/dist/components/Workflow/Workflow.mjs +2 -2
- package/dist/components/Workflow/Workflow.mjs.map +1 -1
- package/dist/components/Workflow/Workflow.types.d.ts +9 -0
- package/dist/components/Workflow/Workflow.types.d.ts.map +1 -1
- package/dist/components/Workflow/Workflow.types.js.map +1 -1
- package/dist/components/Workflow/Workflow.types.mjs.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.js +1 -1
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.js.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.mjs +2 -2
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.mjs.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/Canvas.d.ts +6 -2
- package/dist/components/Workflow/canvas/Canvas/Canvas.d.ts.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/Canvas.js +29 -23
- package/dist/components/Workflow/canvas/Canvas/Canvas.js.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/Canvas.mjs +31 -25
- package/dist/components/Workflow/canvas/Canvas/Canvas.mjs.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.js +1 -1
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.js.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.mjs +2 -2
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.mjs.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.js +2 -1
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.js.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.mjs +3 -2
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.mjs.map +1 -1
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.d.ts.map +1 -1
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.js +2 -1
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.js.map +1 -1
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.mjs +3 -2
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.mjs.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.js +3 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.js.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.mjs +4 -2
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.mjs.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.js +2 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.js.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.mjs +3 -2
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.mjs.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.js +3 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.js.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.mjs +4 -2
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.mjs.map +1 -1
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.js +1 -0
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.js.map +1 -1
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.mjs +1 -0
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.mjs.map +1 -1
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.js +2 -1
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.mjs +3 -2
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.mjs.map +1 -1
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.js +1 -1
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.js.map +1 -1
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.mjs +2 -2
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.mjs.map +1 -1
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.d.ts.map +1 -1
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.js +2 -1
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.js.map +1 -1
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.mjs +3 -2
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.mjs.map +1 -1
- package/dist/components/Workflow/canvas/IssueList/IssueList.js +1 -0
- package/dist/components/Workflow/canvas/IssueList/IssueList.js.map +1 -1
- package/dist/components/Workflow/canvas/IssueList/IssueList.mjs +1 -0
- package/dist/components/Workflow/canvas/IssueList/IssueList.mjs.map +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.d.ts.map +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.js +21 -3
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.js.map +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.mjs +22 -4
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.mjs.map +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.js +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.js.map +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.mjs +2 -2
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.mjs.map +1 -1
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.js +4 -3
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.js.map +1 -1
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.mjs +5 -4
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.mjs.map +1 -1
- package/dist/components/Workflow/createNode.d.ts +25 -1
- package/dist/components/Workflow/createNode.d.ts.map +1 -1
- package/dist/components/Workflow/createNode.js +39 -1
- package/dist/components/Workflow/createNode.js.map +1 -1
- package/dist/components/Workflow/createNode.mjs +38 -2
- package/dist/components/Workflow/createNode.mjs.map +1 -1
- package/dist/components/Workflow/index.d.ts +2 -0
- package/dist/components/Workflow/index.d.ts.map +1 -1
- package/dist/components/Workflow/layout/autoLayout.d.ts +10 -0
- package/dist/components/Workflow/layout/autoLayout.d.ts.map +1 -1
- package/dist/components/Workflow/layout/autoLayout.js +4 -0
- package/dist/components/Workflow/layout/autoLayout.js.map +1 -1
- package/dist/components/Workflow/layout/autoLayout.mjs +1 -1
- package/dist/components/Workflow/layout/autoLayout.mjs.map +1 -1
- package/dist/components/Workflow/placement.d.ts +65 -0
- package/dist/components/Workflow/placement.d.ts.map +1 -0
- package/dist/components/Workflow/placement.js +100 -0
- package/dist/components/Workflow/placement.js.map +1 -0
- package/dist/components/Workflow/placement.mjs +96 -0
- package/dist/components/Workflow/placement.mjs.map +1 -0
- package/dist/components/Workflow/useWorkflowActions.d.ts +54 -0
- package/dist/components/Workflow/useWorkflowActions.d.ts.map +1 -0
- package/dist/components/Workflow/useWorkflowActions.js +105 -0
- package/dist/components/Workflow/useWorkflowActions.js.map +1 -0
- package/dist/components/Workflow/useWorkflowActions.mjs +103 -0
- package/dist/components/Workflow/useWorkflowActions.mjs.map +1 -0
- package/dist/icons.js +203 -0
- package/dist/icons.js.map +1 -1
- package/dist/icons.mjs +1 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -2
- package/dist/index.mjs.map +1 -1
- package/dist/styles.d.ts +21 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +9 -0
- package/dist/styles.js.map +1 -0
- package/dist/styles.mjs +3 -0
- package/dist/styles.mjs.map +1 -0
- package/dist/theme/colors.d.ts +168 -49
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/colors.js +150 -82
- package/dist/theme/colors.js.map +1 -1
- package/dist/theme/colors.mjs +150 -82
- package/dist/theme/colors.mjs.map +1 -1
- package/dist/theme/formControls.d.ts +56 -0
- package/dist/theme/formControls.d.ts.map +1 -0
- package/dist/theme/formControls.js +62 -0
- package/dist/theme/formControls.js.map +1 -0
- package/dist/theme/formControls.mjs +60 -0
- package/dist/theme/formControls.mjs.map +1 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +77 -4
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/index.mjs +78 -5
- package/dist/theme/index.mjs.map +1 -1
- package/dist/theme/motion.d.ts +648 -0
- package/dist/theme/motion.d.ts.map +1 -0
- package/dist/theme/motion.js +629 -0
- package/dist/theme/motion.js.map +1 -0
- package/dist/theme/motion.mjs +617 -0
- package/dist/theme/motion.mjs.map +1 -0
- package/dist/theme/recipes/accordion.d.ts +12 -0
- package/dist/theme/recipes/accordion.d.ts.map +1 -0
- package/dist/theme/recipes/accordion.js +25 -0
- package/dist/theme/recipes/accordion.js.map +1 -0
- package/dist/theme/recipes/accordion.mjs +23 -0
- package/dist/theme/recipes/accordion.mjs.map +1 -0
- package/dist/translations/Defaults.translations.json.js +10 -1
- package/dist/translations/Defaults.translations.json.js.map +1 -1
- package/dist/translations/Defaults.translations.json.mjs +10 -2
- package/dist/translations/Defaults.translations.json.mjs.map +1 -1
- package/dist/types/polymorphic.d.ts +101 -0
- package/dist/types/polymorphic.d.ts.map +1 -0
- package/dist/types/polymorphic.js +57 -0
- package/dist/types/polymorphic.js.map +1 -0
- package/dist/types/polymorphic.mjs +55 -0
- package/dist/types/polymorphic.mjs.map +1 -0
- package/dist/utils/cubicBezier.d.ts +30 -0
- package/dist/utils/cubicBezier.d.ts.map +1 -0
- package/dist/utils/cubicBezier.js +67 -0
- package/dist/utils/cubicBezier.js.map +1 -0
- package/dist/utils/cubicBezier.mjs +65 -0
- package/dist/utils/cubicBezier.mjs.map +1 -0
- package/dist/utils/focusRing.d.ts +7 -6
- package/dist/utils/focusRing.d.ts.map +1 -1
- package/dist/utils/focusRing.js +7 -4
- package/dist/utils/focusRing.js.map +1 -1
- package/dist/utils/focusRing.mjs +7 -4
- package/dist/utils/focusRing.mjs.map +1 -1
- package/dist/utils/mergeCss.js +2 -2
- package/dist/utils/mergeCss.js.map +1 -1
- package/dist/utils/mergeCss.mjs +1 -1
- package/dist/utils/staggerProps.d.ts +52 -0
- package/dist/utils/staggerProps.d.ts.map +1 -0
- package/dist/utils/staggerProps.js +62 -0
- package/dist/utils/staggerProps.js.map +1 -0
- package/dist/utils/staggerProps.mjs +59 -0
- package/dist/utils/staggerProps.mjs.map +1 -0
- package/package.json +9 -2
- package/src/components/Accordion/Accordion.presence.test.tsx +54 -0
- package/src/components/Appear/Appear.stories.tsx +219 -0
- package/src/components/Appear/Appear.styles.ts +28 -0
- package/src/components/Appear/Appear.tsx +85 -0
- package/src/components/Appear/Appear.types.ts +18 -0
- package/src/components/Appear/index.ts +2 -0
- package/src/components/Badge/Badge.tsx +8 -4
- package/src/components/Badge/Badge.types.ts +19 -2
- package/src/components/Badge/index.ts +1 -1
- package/src/components/Banner/Banner.tsx +1 -1
- package/src/components/BottomSheet/BottomSheet.stories.tsx +205 -0
- package/src/components/BottomSheet/BottomSheet.styles.ts +162 -0
- package/src/components/BottomSheet/BottomSheet.test.tsx +129 -0
- package/src/components/BottomSheet/BottomSheet.tsx +47 -0
- package/src/components/BottomSheet/BottomSheet.types.ts +50 -0
- package/src/components/BottomSheet/BottomSheetBody.tsx +15 -0
- package/src/components/BottomSheet/BottomSheetCloseButton.tsx +40 -0
- package/src/components/BottomSheet/BottomSheetContent.tsx +43 -0
- package/src/components/BottomSheet/BottomSheetContext.ts +79 -0
- package/src/components/BottomSheet/BottomSheetFooter.tsx +12 -0
- package/src/components/BottomSheet/BottomSheetHeader.tsx +22 -0
- package/src/components/BottomSheet/BottomSheetOverlay.tsx +16 -0
- package/src/components/BottomSheet/index.tsx +22 -0
- package/src/components/Button/Button.cursor.test.tsx +60 -0
- package/src/components/Button/Button.lift.test.tsx +150 -0
- package/src/components/Button/Button.press.test.tsx +54 -0
- package/src/components/Button/Button.stories.tsx +80 -1
- package/src/components/Button/Button.styles.ts +124 -42
- package/src/components/Button/Button.tsx +88 -9
- package/src/components/Button/Button.types.ts +47 -2
- package/src/components/Button/index.tsx +1 -0
- package/src/components/Card/Card.stories.tsx +33 -3
- package/src/components/Card/Card.styles.ts +37 -5
- package/src/components/Card/Card.tsx +13 -6
- package/src/components/Card/Card.types.ts +26 -2
- package/src/components/Card/index.ts +1 -1
- package/src/components/Checkbox/Checkbox.styles.ts +26 -0
- package/src/components/Checkbox/CheckboxControl.tsx +10 -1
- package/src/components/Chip/Chip.tsx +8 -4
- package/src/components/Chip/Chip.types.ts +19 -4
- package/src/components/Chip/index.ts +6 -1
- package/src/components/Collapsible/Collapsible.presence.test.tsx +83 -0
- package/src/components/Collapsible/CollapsibleContent.tsx +13 -1
- package/src/components/ColorMode/ColorModeToggle.tsx +33 -2
- package/src/components/Confetti/Confetti.stories.tsx +88 -0
- package/src/components/Confetti/Confetti.styles.ts +57 -0
- package/src/components/Confetti/Confetti.tsx +182 -0
- package/src/components/Confetti/Confetti.types.ts +13 -0
- package/src/components/Confetti/index.ts +2 -0
- package/src/components/Container/Container.tsx +10 -3
- package/src/components/Container/Container.types.ts +20 -0
- package/src/components/Container/index.ts +1 -0
- package/src/components/CopyableCode/CopyableCode.tsx +99 -4
- package/src/components/CountUp/CountUp.stories.tsx +127 -0
- package/src/components/CountUp/CountUp.tsx +122 -0
- package/src/components/CountUp/CountUp.types.ts +19 -0
- package/src/components/CountUp/index.ts +2 -0
- package/src/components/ErrorFallback/ErrorFallback.tsx +32 -3
- package/src/components/ExpandableText/ExpandableText.stories.tsx +7 -7
- package/src/components/ExpandableText/ExpandableText.tsx +41 -7
- package/src/components/ExpandableText/useExpandableText.ts +90 -103
- package/src/components/FileInput/FileInput.tsx +17 -5
- package/src/components/FileItem/FileItem.tsx +10 -10
- package/src/components/FileList/FileList.tsx +15 -4
- package/src/components/FileList/FileList.types.ts +9 -0
- package/src/components/FlyTo/FlyTo.stories.tsx +157 -0
- package/src/components/FlyTo/FlyTo.styles.ts +31 -0
- package/src/components/FlyTo/FlyTo.tsx +88 -0
- package/src/components/FlyTo/FlyTo.types.ts +15 -0
- package/src/components/FlyTo/index.ts +2 -0
- package/src/components/Form/FieldError/FieldError.test.tsx +33 -0
- package/src/components/Form/FieldError/FieldError.tsx +20 -0
- package/src/components/Form/FieldError/index.ts +2 -0
- package/src/components/Form/FieldHelp/FieldHelp.tsx +18 -0
- package/src/components/Form/FieldHelp/index.ts +2 -0
- package/src/components/Form/FieldLabel/FieldLabel.tsx +46 -0
- package/src/components/Form/FieldLabel/FieldLabel.types.ts +21 -0
- package/src/components/Form/FieldLabel/index.ts +2 -0
- package/src/components/Form/FieldRow/FieldRow.stories.tsx +85 -0
- package/src/components/Form/FieldRow/FieldRow.test.tsx +89 -0
- package/src/components/Form/FieldRow/FieldRow.tsx +46 -0
- package/src/components/Form/FieldRow/FieldRow.types.ts +32 -0
- package/src/components/Form/FieldRow/index.ts +2 -0
- package/src/components/Form/FormFooter/FormFooter.stories.tsx +70 -0
- package/src/components/Form/FormFooter/FormFooter.test.tsx +67 -0
- package/src/components/Form/FormFooter/FormFooter.tsx +46 -0
- package/src/components/Form/FormFooter/FormFooter.types.ts +23 -0
- package/src/components/Form/FormFooter/index.ts +2 -0
- package/src/components/Form/FormModalFooter/FormModalFooter.stories.tsx +64 -0
- package/src/components/Form/FormModalFooter/FormModalFooter.test.tsx +155 -0
- package/src/components/Form/FormModalFooter/FormModalFooter.tsx +83 -0
- package/src/components/Form/FormModalFooter/FormModalFooter.types.ts +53 -0
- package/src/components/Form/FormModalFooter/index.ts +2 -0
- package/src/components/Form/FormScrollArea/FormScrollArea.tsx +27 -0
- package/src/components/Form/FormScrollArea/index.ts +1 -0
- package/src/components/Form/FormSection/CollapsibleFormSection.tsx +35 -0
- package/src/components/Form/FormSection/FlatFormSection.tsx +41 -0
- package/src/components/Form/FormSection/FormSection.stories.tsx +115 -0
- package/src/components/Form/FormSection/FormSection.test.tsx +89 -0
- package/src/components/Form/FormSection/FormSection.tsx +33 -0
- package/src/components/Form/FormSection/FormSection.types.ts +34 -0
- package/src/components/Form/FormSection/index.ts +2 -0
- package/src/components/Form/FormSectionHeader/FormSectionHeader.stories.tsx +53 -0
- package/src/components/Form/FormSectionHeader/FormSectionHeader.test.tsx +74 -0
- package/src/components/Form/FormSectionHeader/FormSectionHeader.tsx +48 -0
- package/src/components/Form/FormSectionHeader/FormSectionHeader.types.ts +17 -0
- package/src/components/Form/FormSectionHeader/index.ts +2 -0
- package/src/components/Form/index.ts +17 -0
- package/src/components/Icon/ICON_MANAGEMENT.md +1 -0
- package/src/components/Icon/Icon.stories.tsx +6 -2
- package/src/components/Icon/_constants/iconList.ts +523 -299
- package/src/components/Icon/_utils/createIcon.tsx +1 -0
- package/src/components/Icon/index.tsx +210 -27
- package/src/components/IconButton/IconButton.tsx +14 -3
- package/src/components/IconButton/IconButton.types.ts +19 -2
- package/src/components/IconButton/index.tsx +1 -0
- package/src/components/InfoSprinkle/InfoSprinkle.tsx +0 -1
- package/src/components/InlineCode/InlineCode.tsx +9 -2
- package/src/components/Input/Input.stories.tsx +5 -5
- package/src/components/Input/Input.tsx +2 -0
- package/src/components/Loaders/PageLoader.tsx +5 -2
- package/src/components/Loaders/SectionLoader.tsx +2 -1
- package/src/components/Markdown/Markdown.tsx +6 -1
- package/src/components/Menu/MenuItem.tsx +11 -3
- package/src/components/Menu/MenuItem.types.ts +23 -2
- package/src/components/Menu/MenuList.tsx +35 -3
- package/src/components/Modal/Modal.stories.tsx +7 -6
- package/src/components/Modal/Modal.styles.ts +19 -0
- package/src/components/Modal/Modal.tsx +8 -2
- package/src/components/Modal/Modal.types.ts +10 -2
- package/src/components/Modal/ModalContent/ModalContent.tsx +10 -1
- package/src/components/Modal/ModalContext.ts +1 -1
- package/src/components/Modal/ModalOverlay.tsx +9 -1
- package/src/components/Pagination/Pagination.tsx +8 -3
- package/src/components/PasswordInput/PasswordInput.tsx +3 -2
- package/src/components/PinInput/PinInput.stories.tsx +36 -9
- package/src/components/PinInput/PinInput.tsx +54 -45
- package/src/components/PinInput/PinInput.types.ts +17 -25
- package/src/components/Popover/PopoverContent.tsx +3 -0
- package/src/components/ProgressBar/ProgressBar.indeterminate.test.tsx +55 -0
- package/src/components/ProgressBar/ProgressBar.styles.ts +26 -0
- package/src/components/ProgressBar/ProgressBar.tsx +34 -7
- package/src/components/ProgressBar/ProgressBar.types.ts +10 -0
- package/src/components/Pulse/Pulse.remount.test.tsx +179 -0
- package/src/components/Pulse/Pulse.stories.tsx +74 -0
- package/src/components/Pulse/Pulse.styles.ts +42 -0
- package/src/components/Pulse/Pulse.tsx +82 -0
- package/src/components/Pulse/Pulse.types.ts +12 -0
- package/src/components/Pulse/index.ts +2 -0
- package/src/components/Radio/Radio.stories.tsx +34 -22
- package/src/components/Radio/Radio.styles.ts +24 -0
- package/src/components/Radio/RadioControl.tsx +33 -6
- package/src/components/Reveal/Reveal.stories.tsx +61 -0
- package/src/components/Reveal/Reveal.styles.ts +38 -0
- package/src/components/Reveal/Reveal.test.tsx +80 -0
- package/src/components/Reveal/Reveal.tsx +62 -0
- package/src/components/Reveal/Reveal.types.ts +6 -0
- package/src/components/Reveal/index.ts +2 -0
- package/src/components/SeeMoreButton/SeeMoreButton.tsx +12 -5
- package/src/components/SeeMoreButton/SeeMoreButton.types.ts +14 -3
- package/src/components/SegmentedControl/SegmentedControl.styles.ts +22 -0
- package/src/components/SegmentedControl/SegmentedControl.timing.test.tsx +81 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +7 -1
- package/src/components/Select/Combobox.tsx +7 -1
- package/src/components/Select/ComboboxField.tsx +11 -1
- package/src/components/Select/Comparison.stories.tsx +19 -0
- package/src/components/Select/Select.tsx +3 -0
- package/src/components/Select/Select.types.ts +26 -1
- package/src/components/Select/SelectField.tsx +23 -3
- package/src/components/Shake/Shake.stories.tsx +155 -0
- package/src/components/Shake/Shake.styles.ts +31 -0
- package/src/components/Shake/Shake.tsx +79 -0
- package/src/components/Shake/Shake.types.ts +11 -0
- package/src/components/Shake/index.ts +2 -0
- package/src/components/Slider/Slider.tsx +16 -1
- package/src/components/Slider/Slider.types.ts +15 -0
- package/src/components/Spinner/Spinner.styles.ts +32 -0
- package/src/components/Spinner/Spinner.tsx +9 -2
- package/src/components/SwapTransition/SwapTransition.stories.tsx +229 -0
- package/src/components/SwapTransition/SwapTransition.styles.ts +38 -0
- package/src/components/SwapTransition/SwapTransition.test.tsx +127 -0
- package/src/components/SwapTransition/SwapTransition.tsx +130 -0
- package/src/components/SwapTransition/SwapTransition.types.ts +22 -0
- package/src/components/SwapTransition/index.ts +2 -0
- package/src/components/Switch/SwitchControl.tsx +11 -1
- package/src/components/Table/Table.stories.tsx +253 -0
- package/src/components/Table/TableContext.tsx +101 -35
- package/src/components/Table/Td.tsx +13 -8
- package/src/components/Table/Th.tsx +13 -8
- package/src/components/Table/contextStability.test.tsx +140 -0
- package/src/components/Table/stickyWidth.test.tsx +138 -0
- package/src/components/Table/useRegisterStickyWidth.ts +83 -0
- package/src/components/Tabs/Tab/Tab.styles.ts +48 -5
- package/src/components/Tabs/Tab/index.ts +1 -0
- package/src/components/Tabs/index.tsx +1 -1
- package/src/components/Tag/Tag.styles.ts +27 -21
- package/src/components/Tag/Tag.tsx +14 -4
- package/src/components/Tag/Tag.types.ts +17 -4
- package/src/components/Tag/index.ts +6 -1
- package/src/components/Textarea/Textarea.tsx +2 -0
- package/src/components/Toast/Toast.action.test.tsx +135 -0
- package/src/components/Toast/Toast.stories.tsx +111 -0
- package/src/components/Toast/Toast.styles.ts +60 -0
- package/src/components/Toast/Toast.tsx +16 -3
- package/src/components/Toast/Toast.types.ts +26 -1
- package/src/components/Toast/ToastIcon/ToastIcon.tsx +8 -8
- package/src/components/Toast/Toaster.tsx +11 -0
- package/src/components/Toast/useToast.tsx +17 -2
- package/src/components/Tooltip/Tooltip.instant.test.tsx +43 -0
- package/src/components/Tooltip/Tooltip.tsx +15 -1
- package/src/components/Tree/TreeBranchIndicator.tsx +4 -4
- package/src/components/Typography/Caption.tsx +41 -0
- package/src/components/Typography/H1.tsx +10 -3
- package/src/components/Typography/H2.tsx +10 -3
- package/src/components/Typography/H3.tsx +10 -4
- package/src/components/Typography/H4.tsx +10 -3
- package/src/components/Typography/H5.tsx +10 -3
- package/src/components/Typography/Link.tsx +71 -12
- package/src/components/Typography/Overline.tsx +9 -3
- package/src/components/Typography/Subtext.tsx +9 -3
- package/src/components/Typography/Subtitle.tsx +26 -4
- package/src/components/Typography/Text.tsx +9 -3
- package/src/components/Typography/Typography.stories.tsx +69 -1
- package/src/components/Typography/Typography.types.ts +47 -2
- package/src/components/Typography/index.ts +9 -2
- package/src/components/Workflow/README.md +64 -0
- package/src/components/Workflow/Workflow.tsx +2 -0
- package/src/components/Workflow/Workflow.types.ts +10 -0
- package/src/components/Workflow/canvas/Canvas/BranchLabelBadge.tsx +3 -3
- package/src/components/Workflow/canvas/Canvas/Canvas.tsx +57 -53
- package/src/components/Workflow/canvas/Canvas/CanvasControls.tsx +15 -15
- package/src/components/Workflow/canvas/Canvas/LabeledEdge.tsx +2 -2
- package/src/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.tsx +8 -4
- package/src/components/Workflow/canvas/DrawerShell/DrawerHeader.tsx +3 -3
- package/src/components/Workflow/canvas/DrawerShell/DrawerIssues.tsx +2 -2
- package/src/components/Workflow/canvas/DrawerShell/DrawerShell.tsx +2 -2
- package/src/components/Workflow/canvas/FieldWrapper/FieldWrapper.tsx +3 -3
- package/src/components/Workflow/canvas/GenericNode/GenericNode.tsx +2 -2
- package/src/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.tsx +8 -5
- package/src/components/Workflow/canvas/NodePalette/NodePalette.tsx +15 -5
- package/src/components/Workflow/canvas/NodePalette/NodePaletteToggle.tsx +2 -2
- package/src/components/Workflow/canvas/NodeShell/NodeShell.tsx +4 -4
- package/src/components/Workflow/createNode.test.ts +40 -2
- package/src/components/Workflow/createNode.ts +70 -2
- package/src/components/Workflow/index.ts +8 -0
- package/src/components/Workflow/layout/autoLayout.ts +4 -4
- package/src/components/Workflow/placement.test.ts +156 -0
- package/src/components/Workflow/placement.ts +172 -0
- package/src/components/Workflow/stories/Workflow.stories.tsx +79 -0
- package/src/components/Workflow/stories/toyNodeTypes.tsx +4 -4
- package/src/components/Workflow/useWorkflowActions.test.tsx +345 -0
- package/src/components/Workflow/useWorkflowActions.ts +196 -0
- package/src/components/a11y.kwcag.test.tsx +502 -0
- package/src/components/componentMotion.test.ts +110 -0
- package/src/guidelines/FeedbackActions.mdx +133 -0
- package/src/index.ts +60 -0
- package/src/styles.ts +20 -0
- package/src/test-support/setup.ts +13 -0
- package/src/theme/Motion.stories.tsx +1613 -0
- package/src/theme/MotionCases.stories.tsx +679 -0
- package/src/theme/Palette.stories.tsx +72 -23
- package/src/theme/animationStyles.test.ts +185 -0
- package/src/theme/claude.md +121 -2
- package/src/theme/colors.ts +154 -83
- package/src/theme/formControls.ts +58 -0
- package/src/theme/index.ts +82 -4
- package/src/theme/motion.test.ts +50 -0
- package/src/theme/motion.ts +668 -0
- package/src/theme/motionGuards.test.ts +137 -0
- package/src/theme/recipes/accordion.ts +20 -0
- package/src/translations/Defaults.translations.json +8 -1
- package/src/types/polymorphic.ts +114 -0
- package/src/utils/cubicBezier.ts +69 -0
- package/src/utils/focusRing.ts +7 -4
- package/src/utils/mergeCss.ts +1 -1
- package/src/utils/staggerProps.test.ts +105 -0
- package/src/utils/staggerProps.ts +63 -0
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Motion tokens — the timing layer of the design system.
|
|
6
|
+
*
|
|
7
|
+
* Laid out like the type layer: a primitive scale ({@link durations},
|
|
8
|
+
* {@link easings}) plus a named composition on top of it ({@link animationStyles}),
|
|
9
|
+
* both registered in the theme. Component code names the intent and the timing
|
|
10
|
+
* comes with it, the same way `textStyle="h3"` carries a family, size, weight,
|
|
11
|
+
* leading and tracking.
|
|
12
|
+
*
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Switch.Thumb animationStyle="spring" transitionProperty="translate" />
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Why the durations carry a `motion.` prefix
|
|
18
|
+
*
|
|
19
|
+
* Chakra already ships a duration scale, and two of the names we want are taken
|
|
20
|
+
* with *different* values — `slow` is 300ms there and 500ms here, `slower` is
|
|
21
|
+
* 400ms there and 700ms here. Its `dialog`, `drawer` and `progress` recipes read
|
|
22
|
+
* those, so redefining them would retime components we do not own. The easings
|
|
23
|
+
* need no prefix: Chakra's are `ease-in` / `ease-out` / `ease-in-out` /
|
|
24
|
+
* `ease-in-smooth`, so ours collide with nothing.
|
|
25
|
+
*
|
|
26
|
+
* 150ms and 200ms are deliberately absent — Chakra's `fast` and `moderate`
|
|
27
|
+
* already are those numbers, and two names for one value is worse than a
|
|
28
|
+
* prefix.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The duration scale. Pick a preset from {@link animationStyles} rather than one
|
|
32
|
+
* of these directly; these are the raw material the presets are built from.
|
|
33
|
+
*/
|
|
34
|
+
const durations = {
|
|
35
|
+
// Nested rather than flat `'motion.base'` keys: both spellings give the same
|
|
36
|
+
// `motion.base` token path, but a literal dot in the key is escaped into the
|
|
37
|
+
// variable name (`--chakra-durations-motion\.base`), which is unusable in
|
|
38
|
+
// hand-written CSS. Nesting flattens to a clean `--chakra-durations-motion-base`.
|
|
39
|
+
motion: {
|
|
40
|
+
/** No transition — the "off" value a reduced-motion guard swaps in. */
|
|
41
|
+
instant: { value: '0ms' },
|
|
42
|
+
/**
|
|
43
|
+
* The gap that turns one event into two beats — the checkbox's tick waits
|
|
44
|
+
* this long after the box fills, the radio's dot after its ring. Short
|
|
45
|
+
* enough to read as one gesture, long enough that the second half is not
|
|
46
|
+
* lost in the first. It was written as a literal `60ms` in two presets
|
|
47
|
+
* before it had a name; a third would have invented a fourth number.
|
|
48
|
+
*/
|
|
49
|
+
beat: { value: '60ms' },
|
|
50
|
+
/** Contact: a pointer going down. Shorter than `fast` so it reads as touch. */
|
|
51
|
+
press: { value: '120ms' },
|
|
52
|
+
/** The default for enters, leaves and reveals. */
|
|
53
|
+
base: { value: '300ms' },
|
|
54
|
+
/** Deliberate moves that carry the eye across the UI. */
|
|
55
|
+
slow: { value: '500ms' },
|
|
56
|
+
/** Count-ups that should feel earned. */
|
|
57
|
+
slower: { value: '700ms' },
|
|
58
|
+
/**
|
|
59
|
+
* Celebration — the only band above `slower` that is not a loop.
|
|
60
|
+
*
|
|
61
|
+
* The rest of the scale answers "how long before the interface has
|
|
62
|
+
* responded", and its ceiling is `slower` because past ~700ms a response
|
|
63
|
+
* stops reading as an answer and starts reading as a wait. A celebration
|
|
64
|
+
* inverts that: the point *is* to be watched, and a burst that is over
|
|
65
|
+
* before the eye finds it has not celebrated anything.
|
|
66
|
+
*
|
|
67
|
+
* Two values for the same reason `loop` has three — the period is set by
|
|
68
|
+
* how far the thing travels, and one number for both leaves the burst
|
|
69
|
+
* sluggish or the fall frantic.
|
|
70
|
+
*/
|
|
71
|
+
celebrate: {
|
|
72
|
+
/** A pop that stays near where it started: a badge, a node, a chip. */
|
|
73
|
+
burst: { value: '900ms' },
|
|
74
|
+
/**
|
|
75
|
+
* A piece crossing the whole container it was thrown into. Slower than
|
|
76
|
+
* anything else in the scale on purpose: this is the one motion that is
|
|
77
|
+
* modelling gravity rather than an interface responding, and a piece that
|
|
78
|
+
* clears a dialog in under a second reads as flicked rather than dropped.
|
|
79
|
+
*/
|
|
80
|
+
fall: { value: '1800ms' },
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* Continuous motion. Three values rather than one, because a loop's period
|
|
84
|
+
* is set by how far it travels: the spinner covers 360° in a 16px circle,
|
|
85
|
+
* the shimmer crosses the full width of whatever it is laid on. One number
|
|
86
|
+
* for both would leave the spinner leisurely or the sweep frantic.
|
|
87
|
+
*
|
|
88
|
+
* All three are well over the ~200ms of a finite transition. A loop is
|
|
89
|
+
* ambient — it has to stay readable without asking to be watched, and
|
|
90
|
+
* anything quick enough to be *noticed* in peripheral vision reads as
|
|
91
|
+
* agitation.
|
|
92
|
+
*/
|
|
93
|
+
loop: {
|
|
94
|
+
/** One full rotation of a spinner. Preserves the 0.65s it was born with. */
|
|
95
|
+
turn: { value: '650ms' },
|
|
96
|
+
/** One pass of something crossing its whole container. */
|
|
97
|
+
sweep: { value: '1800ms' },
|
|
98
|
+
},
|
|
99
|
+
stagger: {
|
|
100
|
+
/**
|
|
101
|
+
* The gap between one list item arriving and the next. Nested a level
|
|
102
|
+
* deeper than the rest of the scale so the token path flattens to
|
|
103
|
+
* `--chakra-durations-motion-stagger-step`, which `staggerProps` can name
|
|
104
|
+
* in a hand-written `calc()`.
|
|
105
|
+
*
|
|
106
|
+
* 35ms is the width of the window where a list reads as *dealt* rather
|
|
107
|
+
* than as either one block (below ~20ms) or a queue the reader is waiting
|
|
108
|
+
* on (above ~50ms).
|
|
109
|
+
*/
|
|
110
|
+
step: { value: '35ms' },
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* How many steps of {@link durations}`.motion.stagger.step` a list may accrue
|
|
116
|
+
* before the delay stops growing.
|
|
117
|
+
*
|
|
118
|
+
* The cap is the whole reason the stagger is usable. Without it the delay is
|
|
119
|
+
* linear in the index, so a 40-row list finishes arriving 1.4s after the first
|
|
120
|
+
* row — the last rows are not staggered, they are *late*, and any list long
|
|
121
|
+
* enough to be worth staggering is long enough to feel broken. Six steps is
|
|
122
|
+
* 210ms, which is under the ~250ms at which a delay stops reading as rhythm and
|
|
123
|
+
* starts reading as lag; everything past the sixth item arrives together, which
|
|
124
|
+
* nobody notices because by then the eye is at the top of the list.
|
|
125
|
+
*/
|
|
126
|
+
const MOTION_STAGGER_MAX = 6;
|
|
127
|
+
/**
|
|
128
|
+
* The easing curves.
|
|
129
|
+
*
|
|
130
|
+
* - `standard` — symmetric and unremarkable; utilitarian transitions
|
|
131
|
+
* - `emphasized` — decisive ease-out, the house curve for arriving at a value.
|
|
132
|
+
* Covers ~96% of the distance in the first half of its duration
|
|
133
|
+
* - `overshoot` — passes the target and settles back. Because it reverses
|
|
134
|
+
* direction it stays legible over a few pixels, which the other two do not
|
|
135
|
+
*/
|
|
136
|
+
const easings = {
|
|
137
|
+
standard: { value: 'cubic-bezier(0.4, 0, 0.2, 1)' },
|
|
138
|
+
emphasized: { value: 'cubic-bezier(0.22, 1, 0.36, 1)' },
|
|
139
|
+
overshoot: { value: 'cubic-bezier(0.34, 1.56, 0.64, 1)' },
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Reduced motion, applied once per preset rather than per component.
|
|
143
|
+
*
|
|
144
|
+
* `prefers-reduced-motion` is an OS accessibility setting, not a taste — for
|
|
145
|
+
* someone with a vestibular disorder on-screen movement causes nausea. Zeroing
|
|
146
|
+
* the duration keeps the *result* (the switch still flips, the colour still
|
|
147
|
+
* changes) and removes only the travel between states.
|
|
148
|
+
*
|
|
149
|
+
* It lives inside the presets because "anything that animates must honour this"
|
|
150
|
+
* is a policy, not a per-component decision.
|
|
151
|
+
*/
|
|
152
|
+
const REDUCED = { _motionReduce: { transitionDuration: 'motion.instant' } };
|
|
153
|
+
/**
|
|
154
|
+
* Enter and exit are not the same length, and that is a policy rather than a
|
|
155
|
+
* per-component taste.
|
|
156
|
+
*
|
|
157
|
+
* An enter has to be *read* — something new arrived and the reader has to find
|
|
158
|
+
* it — so it gets the full `motion.base` and the `emphasized` curve that covers
|
|
159
|
+
* most of the distance early and settles. An exit has already been decided:
|
|
160
|
+
* the reader dismissed the thing and is looking at what is behind it, so every
|
|
161
|
+
* millisecond the leaving element still owns the screen is a millisecond of
|
|
162
|
+
* waiting. Half the time, on the same ease-out — a symmetric curve would
|
|
163
|
+
* start the exit slowly, which is the one place a dismissal must not lag.
|
|
164
|
+
*
|
|
165
|
+
* Only the *clock* is here, never `animation-name`. Each Chakra recipe already
|
|
166
|
+
* names the right movement for its part — the menu slides from its trigger,
|
|
167
|
+
* the popover scales from its origin, the collapsible interpolates the `--height`
|
|
168
|
+
* Ark measures — and those names are the one thing a shared policy must not
|
|
169
|
+
* overwrite. Declaring the timing and nothing else lets the same preset sit on
|
|
170
|
+
* six unrelated parts: our longhands land in the `styles` layer and beat the
|
|
171
|
+
* recipe's per property, while `animation-name`, which we never declare, falls
|
|
172
|
+
* through untouched. A preset that also set the name would have flattened the
|
|
173
|
+
* collapsible's height animation into a fade.
|
|
174
|
+
*
|
|
175
|
+
* Reduced motion keeps a plain fade rather than zeroing the duration, for the
|
|
176
|
+
* reason the Modal already had one: a surface that appears with no transition
|
|
177
|
+
* at all reads as a page swap. The movement is what has to go, not the fact
|
|
178
|
+
* that something changed.
|
|
179
|
+
*/
|
|
180
|
+
const PRESENCE_TIMING = {
|
|
181
|
+
_open: {
|
|
182
|
+
animationDuration: 'motion.base',
|
|
183
|
+
animationTimingFunction: 'emphasized',
|
|
184
|
+
},
|
|
185
|
+
_closed: {
|
|
186
|
+
animationDuration: 'fast',
|
|
187
|
+
animationTimingFunction: 'emphasized',
|
|
188
|
+
},
|
|
189
|
+
_motionReduce: {
|
|
190
|
+
_open: { animationName: 'fade-in' },
|
|
191
|
+
_closed: { animationName: 'fade-out' },
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* The same policy, on a shorter clock, for parts anchored to a trigger —
|
|
196
|
+
* Menu, Select, Combobox, Popover, Tooltip.
|
|
197
|
+
*
|
|
198
|
+
* These open tens of times a day, under a pointer that is already on its way
|
|
199
|
+
* to the first item, so the enter has much less to be read than a dialog does:
|
|
200
|
+
* the reader asked for it and knows where it will appear. 300ms there is twice
|
|
201
|
+
* Chakra's stock 150ms and feels like waiting; 200ms keeps a visible slide from
|
|
202
|
+
* the trigger and finishes before the pointer arrives. The exit keeps the
|
|
203
|
+
* half-the-enter ratio. Curves and the reduced-motion fade come from
|
|
204
|
+
* {@link PRESENCE_TIMING}, so the two cannot drift apart.
|
|
205
|
+
*
|
|
206
|
+
* Modal, BottomSheet and Collapsible stay on the full `presence` clock — they
|
|
207
|
+
* move more of the screen and are not anchored to anything.
|
|
208
|
+
*/
|
|
209
|
+
const ANCHORED_PRESENCE_TIMING = {
|
|
210
|
+
...PRESENCE_TIMING,
|
|
211
|
+
_open: { ...PRESENCE_TIMING._open, animationDuration: 'moderate' },
|
|
212
|
+
_closed: { ...PRESENCE_TIMING._closed, animationDuration: 'faster' },
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Dash length for the `checkmark-draw` keyframe. Declared once so the pattern
|
|
216
|
+
* the tick is hidden behind and the offset the keyframe animates away are the
|
|
217
|
+
* same number. Chakra's polyline measures ~22.6 user units; 24 clears it.
|
|
218
|
+
*/
|
|
219
|
+
const CHECKMARK_DASH = 24;
|
|
220
|
+
/**
|
|
221
|
+
* The motion vocabulary — four intents, plus two escape hatches.
|
|
222
|
+
*
|
|
223
|
+
* Applied as `animationStyle="<name>"`, the same shape as `textStyle="h3"`, so
|
|
224
|
+
* a consuming app can remap one in its own config without forking anything.
|
|
225
|
+
*
|
|
226
|
+
* Each transition preset leaves `transition-property` at `none` and expects the
|
|
227
|
+
* call site to name what moves, because that part genuinely varies per element —
|
|
228
|
+
* the Switch moves its thumb, the ProgressBar its width. `none` rather than an
|
|
229
|
+
* omission is deliberate: CSS defaults `transition-property` to `all`, so a
|
|
230
|
+
* preset with no property would quietly animate every property on the element
|
|
231
|
+
* (this is how Button once animated a consumer's width and padding on hover).
|
|
232
|
+
* Forgetting the prop now means *nothing* moves, which is visible, instead of
|
|
233
|
+
* *everything* moving, which is not.
|
|
234
|
+
*
|
|
235
|
+
* ```tsx
|
|
236
|
+
* <SegmentGroup.Indicator animationStyle="travel" transitionProperty="left, width" />
|
|
237
|
+
* ```
|
|
238
|
+
*/
|
|
239
|
+
const animationStyles = {
|
|
240
|
+
press: {
|
|
241
|
+
value: {
|
|
242
|
+
// The one preset with a real default: a press is a scale, always.
|
|
243
|
+
transitionProperty: 'scale',
|
|
244
|
+
transitionDuration: 'motion.press',
|
|
245
|
+
// Ease-out, not `standard`: `standard` starts slowly, so the first frames
|
|
246
|
+
// of the press lag behind the finger.
|
|
247
|
+
transitionTimingFunction: 'emphasized',
|
|
248
|
+
...REDUCED,
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
feedback: {
|
|
252
|
+
value: {
|
|
253
|
+
transitionProperty: 'none',
|
|
254
|
+
transitionDuration: 'fast',
|
|
255
|
+
transitionTimingFunction: 'standard',
|
|
256
|
+
...REDUCED,
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
travel: {
|
|
260
|
+
value: {
|
|
261
|
+
transitionProperty: 'none',
|
|
262
|
+
transitionDuration: 'motion.base',
|
|
263
|
+
transitionTimingFunction: 'emphasized',
|
|
264
|
+
...REDUCED,
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
spring: {
|
|
268
|
+
value: {
|
|
269
|
+
transitionProperty: 'none',
|
|
270
|
+
transitionDuration: 'motion.base',
|
|
271
|
+
transitionTimingFunction: 'overshoot',
|
|
272
|
+
...REDUCED,
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
* For an element that needs two clocks at once, which a single duration cannot
|
|
277
|
+
* express — `Button` presses on `motion.press` while its colour and shadow run
|
|
278
|
+
* on `fast`. Write the composed `transition` shorthand yourself and take the
|
|
279
|
+
* reduced-motion guard from here.
|
|
280
|
+
*/
|
|
281
|
+
composite: {
|
|
282
|
+
value: { _motionReduce: { transition: 'none' } },
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
* The enter/exit clock, for any part that has an open and a closed state.
|
|
286
|
+
*
|
|
287
|
+
* Applied as `animationStyle="presence"` to a Chakra or Ark presence part —
|
|
288
|
+
* menu content, popover, tooltip, select content, collapsible content — it
|
|
289
|
+
* retimes what that part already does without touching *what* it does. See
|
|
290
|
+
* {@link PRESENCE_TIMING} for why the ratio is what it is and why the preset
|
|
291
|
+
* deliberately declares no `animation-name`.
|
|
292
|
+
*
|
|
293
|
+
* Not every surface with an open state is reachable this way. Chakra's toast
|
|
294
|
+
* moves on a `transition` shorthand rather than a keyframe animation, so an
|
|
295
|
+
* `animation-*` clock lands on it and does nothing at all — retiming that one
|
|
296
|
+
* means rewriting the shorthand, which is a `composite` job and a separate
|
|
297
|
+
* decision.
|
|
298
|
+
*/
|
|
299
|
+
presence: {
|
|
300
|
+
value: { ...PRESENCE_TIMING },
|
|
301
|
+
},
|
|
302
|
+
/**
|
|
303
|
+
* `presence` for a part anchored to its trigger — menu, select, combobox,
|
|
304
|
+
* popover and tooltip content. 200ms in, 100ms out; see
|
|
305
|
+
* {@link ANCHORED_PRESENCE_TIMING}.
|
|
306
|
+
*/
|
|
307
|
+
'presence-anchored': {
|
|
308
|
+
value: { ...ANCHORED_PRESENCE_TIMING },
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* List items arriving one after another instead of all at once.
|
|
312
|
+
*
|
|
313
|
+
* Applied through {@link staggerProps}, which supplies the per-item
|
|
314
|
+
* `--stagger-index`; this preset supplies everything else, including the cap.
|
|
315
|
+
*
|
|
316
|
+
* **An animation, not a `transition-delay`.** A transition needs a previous
|
|
317
|
+
* value to interpolate from, and a list item that has just mounted has none,
|
|
318
|
+
* so the delay would have nothing to delay. Worse, `transition-delay` is
|
|
319
|
+
* unconditional: it applies to *every* later property change on that element,
|
|
320
|
+
* so a hover would wait its index out, and a filter keystroke that re-renders
|
|
321
|
+
* the list would re-delay all of it. An `animation` runs once, when the
|
|
322
|
+
* element mounts — which is precisely the enter, and only the enter.
|
|
323
|
+
*
|
|
324
|
+
* For a part that stays mounted while closed (Ark keeps menu and select
|
|
325
|
+
* content in the DOM after the first open), mounting is not enough on its own,
|
|
326
|
+
* so the closed branch parks `animation-name` at `none`. Reopening flips the
|
|
327
|
+
* name back and a changed `animation-name` restarts the animation — the same
|
|
328
|
+
* gate, expressed in the only vocabulary CSS has for "again".
|
|
329
|
+
*/
|
|
330
|
+
stagger: {
|
|
331
|
+
value: {
|
|
332
|
+
'--stagger-max': String(MOTION_STAGGER_MAX),
|
|
333
|
+
animationName: 'stagger-in',
|
|
334
|
+
animationDuration: 'motion.base',
|
|
335
|
+
animationTimingFunction: 'emphasized',
|
|
336
|
+
// `both` so the item holds the keyframe's opening frame through its
|
|
337
|
+
// delay. Without it every item is fully painted first and then jumps back
|
|
338
|
+
// to invisible when its turn comes.
|
|
339
|
+
animationFillMode: 'both',
|
|
340
|
+
animationDelay: 'calc(min(var(--stagger-index, 0), var(--stagger-max)) * var(--chakra-durations-motion-stagger-step))',
|
|
341
|
+
// The ancestor's closed state, not the item's — a list item has no
|
|
342
|
+
// open/closed state of its own.
|
|
343
|
+
'[data-state="closed"] &': { animationName: 'none' },
|
|
344
|
+
// Not `animationName: none` alone: dropping the delay is the point, and
|
|
345
|
+
// the item still has to end up visible, which `both` + a live name would
|
|
346
|
+
// otherwise decide. Killing the name does that in one.
|
|
347
|
+
_motionReduce: { animationName: 'none', animationDelay: '0ms' },
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Keyframes owned by the motion layer.
|
|
353
|
+
*
|
|
354
|
+
* Chakra's checkmark is already stroke-based (`fill: none`,
|
|
355
|
+
* `stroke: currentColor`, `polyline points="20 6 9 17 4 12"`), so a dash offset
|
|
356
|
+
* draws it without swapping in a custom icon.
|
|
357
|
+
*/
|
|
358
|
+
const keyframes = {
|
|
359
|
+
// Enter from slightly below and smaller; leave by shrinking in place. The
|
|
360
|
+
// exit deliberately drops the translate — travelling away draws the eye to
|
|
361
|
+
// something that is leaving.
|
|
362
|
+
'modal-in': {
|
|
363
|
+
from: { opacity: '0', scale: '0.94', translate: '0 10px' },
|
|
364
|
+
to: { opacity: '1', scale: '1', translate: '0 0' },
|
|
365
|
+
},
|
|
366
|
+
'modal-out': {
|
|
367
|
+
from: { opacity: '1', scale: '1' },
|
|
368
|
+
to: { opacity: '0', scale: '0.97' },
|
|
369
|
+
},
|
|
370
|
+
// The dot only mounts on check. It starts small and transparent rather than
|
|
371
|
+
// at `scale: 0` — nothing real appears from nothing, and a dot growing from a
|
|
372
|
+
// point reads as a glitch. `0.4` is where Chakra's radiomark recipe rests it;
|
|
373
|
+
// ending anywhere else would make the dot jump when the animation hands back.
|
|
374
|
+
'dot-pop': {
|
|
375
|
+
from: { scale: '0.25', opacity: '0' },
|
|
376
|
+
to: { scale: '0.4', opacity: '1' },
|
|
377
|
+
},
|
|
378
|
+
'checkmark-draw': {
|
|
379
|
+
// Negative, not positive. Chakra's polyline runs `20 6 → 9 17 → 4 12`, so
|
|
380
|
+
// its *start* is the long stroke's top-right tip. A positive offset reveals
|
|
381
|
+
// from the path start, which draws the tick backwards — right tip down to
|
|
382
|
+
// the left one. A negative offset reveals from the path *end* instead, so
|
|
383
|
+
// the stroke grows out of the short left tip and up to the right, the way a
|
|
384
|
+
// tick is written.
|
|
385
|
+
from: { strokeDashoffset: String(-CHECKMARK_DASH) },
|
|
386
|
+
to: { strokeDashoffset: '0' },
|
|
387
|
+
},
|
|
388
|
+
// `spin` and `pulse` are deliberately absent: Chakra already defines both
|
|
389
|
+
// (0deg→360deg, and 50% { opacity: 0.5 }), and its own Spinner and Skeleton
|
|
390
|
+
// read them by name. Re-declaring a keyframe under a name we did not author
|
|
391
|
+
// replaces it everywhere, so two identical definitions today become a silent
|
|
392
|
+
// retime of someone else's component the day one of them is edited. The
|
|
393
|
+
// `spin` and `pulse` *presets* above name Chakra's keyframes and own only the
|
|
394
|
+
// timing, which is the part we actually have an opinion about.
|
|
395
|
+
// A highlight crossing a gradient the call site owns. Moves the background
|
|
396
|
+
// position rather than a pseudo-element, so it composites on the GPU and
|
|
397
|
+
// needs no extra node inside every skeleton block. Right-to-left over a
|
|
398
|
+
// 400%-wide gradient — the direction a sweep is read in, and wide enough that
|
|
399
|
+
// the bright band is off-screen at both ends instead of parked at the edge.
|
|
400
|
+
// A bar of unknown length crossing its track. Starts fully off the left edge
|
|
401
|
+
// and ends fully off the right, so neither end of the cycle shows the bar
|
|
402
|
+
// sitting still at a boundary — the frame that makes an indeterminate bar
|
|
403
|
+
// look stalled rather than working.
|
|
404
|
+
indeterminate: {
|
|
405
|
+
from: { translate: '-100% 0' },
|
|
406
|
+
to: { translate: '250% 0' },
|
|
407
|
+
},
|
|
408
|
+
// Deliberately small: 6px, not the 10px the modal rises. A staggered list
|
|
409
|
+
// plays this once per item, so travel that reads as purposeful on one dialog
|
|
410
|
+
// reads as the whole list swimming when it happens eight times in sequence.
|
|
411
|
+
'stagger-in': {
|
|
412
|
+
from: { opacity: '0', translate: '0 6px' },
|
|
413
|
+
to: { opacity: '1', translate: '0 0' },
|
|
414
|
+
},
|
|
415
|
+
// ── entrances and gestures ──────────────────────────────────────────────
|
|
416
|
+
// Four more that need a midpoint or a mount, which is what puts them in
|
|
417
|
+
// keyframes rather than in a transition preset.
|
|
418
|
+
// A mount entrance: fade, plus an optional scale (a *stamp* landing on
|
|
419
|
+
// something) or vertical travel (content *arriving*). Both are custom
|
|
420
|
+
// properties defaulting to the identity, so one keyframe covers a plain fade,
|
|
421
|
+
// a stamp, an arrival, or all three at once.
|
|
422
|
+
//
|
|
423
|
+
// `scale` and `translate` rather than a `transform` shorthand: the individual
|
|
424
|
+
// properties compose, so a call site that is already transforming the element
|
|
425
|
+
// keeps its transform.
|
|
426
|
+
'appear-in': {
|
|
427
|
+
from: {
|
|
428
|
+
opacity: '0',
|
|
429
|
+
scale: 'var(--appear-scale, 1)',
|
|
430
|
+
translate: '0 var(--appear-rise, 0px)',
|
|
431
|
+
},
|
|
432
|
+
to: { opacity: '1', scale: '1', translate: '0 0' },
|
|
433
|
+
},
|
|
434
|
+
// A decaying horizontal swing that settles back to centre — refusal, not
|
|
435
|
+
// emphasis. Decaying rather than symmetric because a constant-amplitude
|
|
436
|
+
// wobble reads as broken, and settling *back* rather than overshooting
|
|
437
|
+
// because an overshoot at the end reads as bounce, which is celebratory.
|
|
438
|
+
'shake-x': {
|
|
439
|
+
'0%, 100%': { translate: '0 0' },
|
|
440
|
+
'20%': { translate: 'calc(var(--shake-distance, 6px) * -1) 0' },
|
|
441
|
+
'40%': { translate: 'var(--shake-distance, 6px) 0' },
|
|
442
|
+
'60%': { translate: 'calc(var(--shake-distance, 6px) * -0.6) 0' },
|
|
443
|
+
'80%': { translate: 'calc(var(--shake-distance, 6px) * 0.6) 0' },
|
|
444
|
+
},
|
|
445
|
+
/** Identical to `shake-x` — see `pulse-pop-alt` for why there are two. */
|
|
446
|
+
'shake-x-alt': {
|
|
447
|
+
'0%, 100%': { translate: '0 0' },
|
|
448
|
+
'20%': { translate: 'calc(var(--shake-distance, 6px) * -1) 0' },
|
|
449
|
+
'40%': { translate: 'var(--shake-distance, 6px) 0' },
|
|
450
|
+
'60%': { translate: 'calc(var(--shake-distance, 6px) * -0.6) 0' },
|
|
451
|
+
'80%': { translate: 'calc(var(--shake-distance, 6px) * 0.6) 0' },
|
|
452
|
+
},
|
|
453
|
+
// Opening a block out of nothing, through the grid track rather than through
|
|
454
|
+
// `height`. `height: auto` is not interpolable, which is why the framer-motion
|
|
455
|
+
// version has to measure; `grid-template-rows: 0fr → 1fr` interpolates and
|
|
456
|
+
// gets `auto` for free. Same trick the Accordion and ExpandableText already
|
|
457
|
+
// use, so this is the library's existing answer rather than a new one.
|
|
458
|
+
//
|
|
459
|
+
// Still a layout property, and that is inherent to opening to content-height:
|
|
460
|
+
// keep it on small blocks.
|
|
461
|
+
'reveal-open': {
|
|
462
|
+
from: { gridTemplateRows: '0fr', opacity: '0' },
|
|
463
|
+
to: { gridTemplateRows: '1fr', opacity: '1' },
|
|
464
|
+
},
|
|
465
|
+
// The two halves of a directional swap. The outgoing content leaves *against*
|
|
466
|
+
// the travel direction so the pair reads as one movement rather than as two
|
|
467
|
+
// things passing each other.
|
|
468
|
+
'swap-in': {
|
|
469
|
+
from: { opacity: '0', translate: 'var(--swap-distance, 24px) 0' },
|
|
470
|
+
to: { opacity: '1', translate: '0 0' },
|
|
471
|
+
},
|
|
472
|
+
'swap-out': {
|
|
473
|
+
from: { opacity: '1', translate: '0 0' },
|
|
474
|
+
to: {
|
|
475
|
+
opacity: '0',
|
|
476
|
+
translate: 'calc(var(--swap-distance, 24px) * -1) 0',
|
|
477
|
+
},
|
|
478
|
+
},
|
|
479
|
+
// ── celebration ─────────────────────────────────────────────────────────
|
|
480
|
+
// Three keyframes that exist because CSS cannot express a there-and-back, an
|
|
481
|
+
// arc, or a tumble as a transition: all three need a midpoint. They are
|
|
482
|
+
// global because `@keyframes` always is — the *compositions* that read them
|
|
483
|
+
// live next to `Pulse`, `FlyTo` and `Confetti`.
|
|
484
|
+
// Overshoot and settle. `scale` rather than `transform: scale()` so a call
|
|
485
|
+
// site that is already translating the element keeps its translate.
|
|
486
|
+
'pulse-pop': {
|
|
487
|
+
'0%': { scale: '1' },
|
|
488
|
+
'50%': { scale: 'var(--pulse-peak, 1.12)' },
|
|
489
|
+
'100%': { scale: '1' },
|
|
490
|
+
},
|
|
491
|
+
/**
|
|
492
|
+
* Byte-identical to `pulse-pop`, and that is the whole point.
|
|
493
|
+
*
|
|
494
|
+
* A CSS animation restarts when its *name* changes. `Pulse` alternates
|
|
495
|
+
* between the two on each replay, which restarts the pop without remounting
|
|
496
|
+
* anything — the earlier approach, a changed React `key`, threw away the
|
|
497
|
+
* subtree and with it the user's focus and any uncontrolled state inside.
|
|
498
|
+
* Two names is the price of not doing that.
|
|
499
|
+
*/
|
|
500
|
+
'pulse-pop-alt': {
|
|
501
|
+
'0%': { scale: '1' },
|
|
502
|
+
'50%': { scale: 'var(--pulse-peak, 1.12)' },
|
|
503
|
+
'100%': { scale: '1' },
|
|
504
|
+
},
|
|
505
|
+
// A ghost travelling between two rects the caller measured. The midpoint
|
|
506
|
+
// lifts above the straight line, which is what separates "this was sent
|
|
507
|
+
// there" from "this slid there" — a straight interpolation between two points
|
|
508
|
+
// on a page reads as a layout change rather than as an object in flight.
|
|
509
|
+
//
|
|
510
|
+
// Every value is a custom property because the distance is only known at
|
|
511
|
+
// runtime, and because a keyframe cannot take arguments.
|
|
512
|
+
'fly-arc': {
|
|
513
|
+
'0%': { translate: '0 0', scale: '1', opacity: '1' },
|
|
514
|
+
'50%': {
|
|
515
|
+
translate: 'calc(var(--fly-dx) * 0.5) calc(var(--fly-dy) * 0.5 - var(--fly-lift))',
|
|
516
|
+
scale: '0.92',
|
|
517
|
+
opacity: '1',
|
|
518
|
+
},
|
|
519
|
+
'100%': {
|
|
520
|
+
translate: 'var(--fly-dx) var(--fly-dy)',
|
|
521
|
+
scale: '0.4',
|
|
522
|
+
opacity: '0',
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
// One piece falling past the bottom of its container while tumbling. The
|
|
526
|
+
// drift, the spin and the rate are custom properties so fifty pieces share
|
|
527
|
+
// one keyframe and one class; only the numbers differ per piece.
|
|
528
|
+
//
|
|
529
|
+
// The fall is measured in `cqh` — container query height — and that detail is
|
|
530
|
+
// load-bearing. A percentage inside `translate` resolves against the
|
|
531
|
+
// *element's own* box, so `110%` on a 10px piece is eleven pixels: the first
|
|
532
|
+
// version of this keyframe used one and the confetti trembled in place
|
|
533
|
+
// instead of falling. `top: 110%` would resolve correctly, since `top`
|
|
534
|
+
// percentages are relative to the containing block, but animating `top` is a
|
|
535
|
+
// layout property and this runs on fifty elements at once. `cqh` gives the
|
|
536
|
+
// containing block's height to a compositor-only property.
|
|
537
|
+
//
|
|
538
|
+
// Fades out at 65% rather than at the end. A piece that is still opaque when
|
|
539
|
+
// it reaches the bottom edge reads as landing — as litter the container is
|
|
540
|
+
// now holding — and fifty of those read as a mess to be cleaned up. Gone
|
|
541
|
+
// before the floor is what makes it dissolve instead.
|
|
542
|
+
//
|
|
543
|
+
// A full 720°: two turns, not a fraction of one. A piece that rotates less
|
|
544
|
+
// than once has not tumbled, it has tilted.
|
|
545
|
+
'confetti-fall': {
|
|
546
|
+
// `-150%` of the piece's own height, not a pixel literal: pieces vary in
|
|
547
|
+
// size, and a fixed offset that clears a 9px piece leaves a 13px one
|
|
548
|
+
// peeking over the rim before it moves. Percentages in `translate` resolve
|
|
549
|
+
// against the element, which is exactly what is wanted on this axis and
|
|
550
|
+
// exactly what was wrong on the other one (see `110cqh` below).
|
|
551
|
+
'0%': { translate: '0 -150%', rotate: '0deg', opacity: '1' },
|
|
552
|
+
'65%': { opacity: '0' },
|
|
553
|
+
'100%': {
|
|
554
|
+
translate: 'var(--confetti-drift) 110cqh',
|
|
555
|
+
rotate: 'var(--confetti-spin)',
|
|
556
|
+
opacity: '0',
|
|
557
|
+
},
|
|
558
|
+
},
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* The duration scale in milliseconds, for animation tech that cannot read a CSS
|
|
562
|
+
* variable — framer-motion, `Element.animate`, `setTimeout`-driven sequences.
|
|
563
|
+
*
|
|
564
|
+
* Includes `fast` (150) and `moderate` (200), which have no `motion.*` token
|
|
565
|
+
* because Chakra already provides them: a JS consumer still needs the numbers.
|
|
566
|
+
*/
|
|
567
|
+
const MOTION_DURATION_MS = {
|
|
568
|
+
instant: 0,
|
|
569
|
+
beat: 60,
|
|
570
|
+
press: 120,
|
|
571
|
+
fast: 150,
|
|
572
|
+
moderate: 200,
|
|
573
|
+
base: 300,
|
|
574
|
+
slow: 500,
|
|
575
|
+
slower: 700,
|
|
576
|
+
celebrateBurst: 900,
|
|
577
|
+
celebrateFall: 1800,
|
|
578
|
+
loopTurn: 650,
|
|
579
|
+
loopSweep: 1800,
|
|
580
|
+
staggerStep: 35,
|
|
581
|
+
};
|
|
582
|
+
/** The same scale in seconds — framer-motion's `transition.duration` unit. */
|
|
583
|
+
const MOTION_DURATION_S = {
|
|
584
|
+
instant: 0,
|
|
585
|
+
beat: 0.06,
|
|
586
|
+
press: 0.12,
|
|
587
|
+
fast: 0.15,
|
|
588
|
+
moderate: 0.2,
|
|
589
|
+
base: 0.3,
|
|
590
|
+
slow: 0.5,
|
|
591
|
+
slower: 0.7,
|
|
592
|
+
celebrateBurst: 0.9,
|
|
593
|
+
celebrateFall: 1.8,
|
|
594
|
+
loopTurn: 0.65,
|
|
595
|
+
loopSweep: 1.8,
|
|
596
|
+
staggerStep: 0.035,
|
|
597
|
+
};
|
|
598
|
+
/**
|
|
599
|
+
* The curves as `[x1, y1, x2, y2]` tuples — the shape framer-motion's `ease`
|
|
600
|
+
* prop accepts directly.
|
|
601
|
+
*/
|
|
602
|
+
const MOTION_EASE = {
|
|
603
|
+
standard: [0.4, 0, 0.2, 1],
|
|
604
|
+
emphasized: [0.22, 1, 0.36, 1],
|
|
605
|
+
overshoot: [0.34, 1.56, 0.64, 1],
|
|
606
|
+
};
|
|
607
|
+
/**
|
|
608
|
+
* The same curves as CSS strings, for the rare case where the `easings` token
|
|
609
|
+
* cannot be reached (a keyframes string assembled outside a Chakra style
|
|
610
|
+
* context). Prefer `var(--chakra-easings-emphasized)` where a variable resolves.
|
|
611
|
+
*/
|
|
612
|
+
const MOTION_EASE_CSS = {
|
|
613
|
+
standard: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
614
|
+
emphasized: 'cubic-bezier(0.22, 1, 0.36, 1)',
|
|
615
|
+
overshoot: 'cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
exports.CHECKMARK_DASH = CHECKMARK_DASH;
|
|
619
|
+
exports.MOTION_DURATION_MS = MOTION_DURATION_MS;
|
|
620
|
+
exports.MOTION_DURATION_S = MOTION_DURATION_S;
|
|
621
|
+
exports.MOTION_EASE = MOTION_EASE;
|
|
622
|
+
exports.MOTION_EASE_CSS = MOTION_EASE_CSS;
|
|
623
|
+
exports.MOTION_STAGGER_MAX = MOTION_STAGGER_MAX;
|
|
624
|
+
exports.PRESENCE_TIMING = PRESENCE_TIMING;
|
|
625
|
+
exports.animationStyles = animationStyles;
|
|
626
|
+
exports.durations = durations;
|
|
627
|
+
exports.easings = easings;
|
|
628
|
+
exports.keyframes = keyframes;
|
|
629
|
+
//# sourceMappingURL=motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.js","sources":["../../src/theme/motion.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAcA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AAEH;;;AAGG;AACI,MAAM,SAAS,GAAG;;;;;AAKvB,IAAA,MAAM,EAAE;;AAEN,QAAA,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;AACzB;;;;;;AAMG;AACH,QAAA,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;;AAEvB,QAAA,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;;AAEzB,QAAA,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;;AAExB,QAAA,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;;AAExB,QAAA,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;AAC1B;;;;;;;;;;;;AAYG;AACH,QAAA,SAAS,EAAE;;AAET,YAAA,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;AACzB;;;;;AAKG;AACH,YAAA,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE;AAC1B,SAAA;AACD;;;;;;;;;;AAUG;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