@mindlogic-ai/logician-ui 4.0.0-alpha.26 → 4.0.0-alpha.28
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/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/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +42 -3
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.mjs +43 -4
- 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 +101 -30
- package/dist/components/Button/Button.styles.js.map +1 -1
- package/dist/components/Button/Button.styles.mjs +101 -31
- package/dist/components/Button/Button.styles.mjs.map +1 -1
- package/dist/components/Button/Button.types.d.ts +16 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +5 -1
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/Card.mjs +5 -1
- package/dist/components/Card/Card.mjs.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/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 +3 -1
- package/dist/components/ColorMode/ColorModeToggle.js.map +1 -1
- package/dist/components/ColorMode/ColorModeToggle.mjs +4 -2
- 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/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/ExpandableText/ExpandableText.d.ts +23 -1
- package/dist/components/ExpandableText/ExpandableText.d.ts.map +1 -1
- package/dist/components/ExpandableText/ExpandableText.js +21 -3
- package/dist/components/ExpandableText/ExpandableText.js.map +1 -1
- package/dist/components/ExpandableText/ExpandableText.mjs +21 -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 +4 -1
- package/dist/components/FileInput/FileInput.js.map +1 -1
- package/dist/components/FileInput/FileInput.mjs +4 -1
- package/dist/components/FileInput/FileInput.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 +7 -2
- package/dist/components/FileList/FileList.js.map +1 -1
- package/dist/components/FileList/FileList.mjs +7 -2
- 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/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/Menu/Menu.d.ts +1 -0
- package/dist/components/Menu/Menu.d.ts.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 +1 -1
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/Modal.mjs +1 -1
- 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/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/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/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 +35 -0
- package/dist/components/Pulse/Pulse.d.ts.map +1 -0
- package/dist/components/Pulse/Pulse.js +65 -0
- package/dist/components/Pulse/Pulse.js.map +1 -0
- package/dist/components/Pulse/Pulse.mjs +63 -0
- package/dist/components/Pulse/Pulse.mjs.map +1 -0
- package/dist/components/Pulse/Pulse.styles.d.ts +22 -0
- package/dist/components/Pulse/Pulse.styles.d.ts.map +1 -0
- package/dist/components/Pulse/Pulse.styles.js +33 -0
- package/dist/components/Pulse/Pulse.styles.js.map +1 -0
- package/dist/components/Pulse/Pulse.styles.mjs +31 -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/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 +6 -1
- package/dist/components/Radio/RadioControl.js.map +1 -1
- package/dist/components/Radio/RadioControl.mjs +6 -1
- 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/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 +4 -1
- package/dist/components/Select/Combobox.js.map +1 -1
- package/dist/components/Select/Combobox.mjs +4 -1
- package/dist/components/Select/Combobox.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 +10 -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 +32 -0
- package/dist/components/Shake/Shake.d.ts.map +1 -0
- package/dist/components/Shake/Shake.js +57 -0
- package/dist/components/Shake/Shake.js.map +1 -0
- package/dist/components/Shake/Shake.mjs +55 -0
- package/dist/components/Shake/Shake.mjs.map +1 -0
- package/dist/components/Shake/Shake.styles.d.ts +19 -0
- package/dist/components/Shake/Shake.styles.d.ts.map +1 -0
- package/dist/components/Shake/Shake.styles.js +30 -0
- package/dist/components/Shake/Shake.styles.js.map +1 -0
- package/dist/components/Shake/Shake.styles.mjs +28 -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/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 +36 -0
- package/dist/components/SwapTransition/SwapTransition.d.ts.map +1 -0
- package/dist/components/SwapTransition/SwapTransition.js +75 -0
- package/dist/components/SwapTransition/SwapTransition.js.map +1 -0
- package/dist/components/SwapTransition/SwapTransition.mjs +73 -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/Tabs/Tab/Tab.styles.d.ts +25 -27
- package/dist/components/Tabs/Tab/Tab.styles.d.ts.map +1 -1
- package/dist/components/Tabs/Tab/Tab.styles.js +28 -21
- package/dist/components/Tabs/Tab/Tab.styles.js.map +1 -1
- package/dist/components/Tabs/Tab/Tab.styles.mjs +28 -21
- package/dist/components/Tabs/Tab/Tab.styles.mjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +6 -1
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.mjs +6 -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 +1 -1
- package/dist/components/Tree/TreeBranchIndicator.mjs.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +10 -0
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/index.mjs +10 -0
- package/dist/theme/index.mjs.map +1 -1
- package/dist/theme/motion.d.ts +538 -0
- package/dist/theme/motion.d.ts.map +1 -0
- package/dist/theme/motion.js +574 -0
- package/dist/theme/motion.js.map +1 -0
- package/dist/theme/motion.mjs +563 -0
- package/dist/theme/motion.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/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 +1 -1
- 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/Button/Button.lift.test.tsx +150 -0
- package/src/components/Button/Button.press.test.tsx +54 -0
- package/src/components/Button/Button.stories.tsx +48 -1
- package/src/components/Button/Button.styles.ts +102 -30
- package/src/components/Button/Button.tsx +57 -6
- package/src/components/Button/Button.types.ts +16 -0
- package/src/components/Card/Card.tsx +4 -2
- package/src/components/Checkbox/Checkbox.styles.ts +26 -0
- package/src/components/Checkbox/CheckboxControl.tsx +10 -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 +32 -1
- 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/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/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 +4 -1
- package/src/components/FileList/FileList.tsx +11 -2
- 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/Loaders/SectionLoader.tsx +1 -1
- package/src/components/Menu/MenuList.tsx +35 -3
- package/src/components/Modal/Modal.styles.ts +19 -0
- package/src/components/Modal/Modal.tsx +7 -1
- package/src/components/Modal/ModalContent/ModalContent.tsx +10 -1
- package/src/components/Modal/ModalOverlay.tsx +9 -1
- 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.stories.tsx +74 -0
- package/src/components/Pulse/Pulse.styles.ts +29 -0
- package/src/components/Pulse/Pulse.tsx +83 -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 +15 -2
- package/src/components/Reveal/Reveal.stories.tsx +61 -0
- package/src/components/Reveal/Reveal.styles.ts +38 -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/SegmentedControl/SegmentedControl.styles.ts +22 -0
- package/src/components/SegmentedControl/SegmentedControl.timing.test.tsx +74 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +7 -1
- package/src/components/Select/Combobox.tsx +3 -0
- package/src/components/Select/Select.tsx +3 -0
- package/src/components/Select/Select.types.ts +10 -1
- package/src/components/Select/SelectField.tsx +9 -2
- package/src/components/Shake/Shake.stories.tsx +155 -0
- package/src/components/Shake/Shake.styles.ts +26 -0
- package/src/components/Shake/Shake.tsx +77 -0
- package/src/components/Shake/Shake.types.ts +11 -0
- package/src/components/Shake/index.ts +2 -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 +134 -0
- package/src/components/SwapTransition/SwapTransition.styles.ts +38 -0
- package/src/components/SwapTransition/SwapTransition.tsx +127 -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/Tabs/Tab/Tab.styles.ts +28 -21
- package/src/components/Tooltip/Tooltip.tsx +5 -0
- package/src/components/Tree/TreeBranchIndicator.tsx +2 -2
- package/src/components/a11y.kwcag.test.tsx +59 -2
- package/src/components/componentMotion.test.ts +110 -0
- package/src/index.ts +27 -0
- package/src/test-support/setup.ts +13 -0
- package/src/theme/Motion.stories.tsx +1607 -0
- package/src/theme/MotionCases.stories.tsx +680 -0
- package/src/theme/animationStyles.test.ts +169 -0
- package/src/theme/claude.md +119 -2
- package/src/theme/index.ts +10 -0
- package/src/theme/motion.test.ts +50 -0
- package/src/theme/motion.ts +612 -0
- package/src/theme/motionGuards.test.ts +135 -0
- package/src/utils/cubicBezier.ts +69 -0
- package/src/utils/staggerProps.test.ts +105 -0
- package/src/utils/staggerProps.ts +63 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AppearProps } from './Appear.types';
|
|
2
|
+
/**
|
|
3
|
+
* Brings an element in on mount — a fade, plus an optional scale (a *stamp*
|
|
4
|
+
* landing on something) or vertical travel (content *arriving*).
|
|
5
|
+
*
|
|
6
|
+
* ## Which of the three entrances this is
|
|
7
|
+
*
|
|
8
|
+
* The library has three, and they are not interchangeable:
|
|
9
|
+
*
|
|
10
|
+
* - `animationStyle="presence"` — a part that **has both states**. Menus,
|
|
11
|
+
* popovers, modals: the node stays mounted and Chakra flips `_open` /
|
|
12
|
+
* `_closed`, so it can animate *out* as well as in.
|
|
13
|
+
* - `staggerProps(index)` — items of **one list**, where the index is the
|
|
14
|
+
* cadence and the whole point is the rhythm between siblings.
|
|
15
|
+
* - `Appear` — a **single element entering once**, on its own schedule, usually
|
|
16
|
+
* as a response to something the reader just did. The delay is hand-set per
|
|
17
|
+
* call site because there is no list to derive it from.
|
|
18
|
+
*
|
|
19
|
+
* The rule of thumb: if the element can close, use `presence`; if it has
|
|
20
|
+
* siblings arriving with it, use `stagger`; otherwise this.
|
|
21
|
+
*
|
|
22
|
+
* ## What it does not do
|
|
23
|
+
*
|
|
24
|
+
* It does not animate out. CSS cannot animate an element that is being removed
|
|
25
|
+
* from the DOM, which is exactly the gap `presence` fills by keeping the node
|
|
26
|
+
* mounted. FactChat's version accepts an `exit` too, but only inside an
|
|
27
|
+
* `AnimatePresence` ancestor — standalone it is a no-op there as well, so
|
|
28
|
+
* nothing that actually ran is lost in the port.
|
|
29
|
+
*
|
|
30
|
+
* ## What it puts in the DOM
|
|
31
|
+
*
|
|
32
|
+
* **One `div` around `children`**, and layout props land on that wrapper rather
|
|
33
|
+
* than on the child. Usually the same result — but the child is no longer a
|
|
34
|
+
* *direct* child of what surrounds it, so animate the inner element instead of
|
|
35
|
+
* wrapping when the parent needs its children directly: a `<tr>` needs `<td>`s,
|
|
36
|
+
* and Ark parts (`Menu.List`, `Tree`) walk their own children for focus and
|
|
37
|
+
* typeahead.
|
|
38
|
+
*
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <Appear scaleFrom={0.5}>✓</Appear>
|
|
41
|
+
* <Appear rise={6} delayMs={120}>정답입니다</Appear>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare const Appear: import("react").ForwardRefExoticComponent<AppearProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
45
|
+
//# sourceMappingURL=Appear.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Appear.d.ts","sourceRoot":"","sources":["../../../src/components/Appear/Appear.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,MAAM,wGAgClB,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var react = require('@chakra-ui/react');
|
|
7
|
+
var mergeCss = require('../../utils/mergeCss.js');
|
|
8
|
+
var Appear_styles = require('./Appear.styles.js');
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Brings an element in on mount — a fade, plus an optional scale (a *stamp*
|
|
12
|
+
* landing on something) or vertical travel (content *arriving*).
|
|
13
|
+
*
|
|
14
|
+
* ## Which of the three entrances this is
|
|
15
|
+
*
|
|
16
|
+
* The library has three, and they are not interchangeable:
|
|
17
|
+
*
|
|
18
|
+
* - `animationStyle="presence"` — a part that **has both states**. Menus,
|
|
19
|
+
* popovers, modals: the node stays mounted and Chakra flips `_open` /
|
|
20
|
+
* `_closed`, so it can animate *out* as well as in.
|
|
21
|
+
* - `staggerProps(index)` — items of **one list**, where the index is the
|
|
22
|
+
* cadence and the whole point is the rhythm between siblings.
|
|
23
|
+
* - `Appear` — a **single element entering once**, on its own schedule, usually
|
|
24
|
+
* as a response to something the reader just did. The delay is hand-set per
|
|
25
|
+
* call site because there is no list to derive it from.
|
|
26
|
+
*
|
|
27
|
+
* The rule of thumb: if the element can close, use `presence`; if it has
|
|
28
|
+
* siblings arriving with it, use `stagger`; otherwise this.
|
|
29
|
+
*
|
|
30
|
+
* ## What it does not do
|
|
31
|
+
*
|
|
32
|
+
* It does not animate out. CSS cannot animate an element that is being removed
|
|
33
|
+
* from the DOM, which is exactly the gap `presence` fills by keeping the node
|
|
34
|
+
* mounted. FactChat's version accepts an `exit` too, but only inside an
|
|
35
|
+
* `AnimatePresence` ancestor — standalone it is a no-op there as well, so
|
|
36
|
+
* nothing that actually ran is lost in the port.
|
|
37
|
+
*
|
|
38
|
+
* ## What it puts in the DOM
|
|
39
|
+
*
|
|
40
|
+
* **One `div` around `children`**, and layout props land on that wrapper rather
|
|
41
|
+
* than on the child. Usually the same result — but the child is no longer a
|
|
42
|
+
* *direct* child of what surrounds it, so animate the inner element instead of
|
|
43
|
+
* wrapping when the parent needs its children directly: a `<tr>` needs `<td>`s,
|
|
44
|
+
* and Ark parts (`Menu.List`, `Tree`) walk their own children for focus and
|
|
45
|
+
* typeahead.
|
|
46
|
+
*
|
|
47
|
+
* ```tsx
|
|
48
|
+
* <Appear scaleFrom={0.5}>✓</Appear>
|
|
49
|
+
* <Appear rise={6} delayMs={120}>정답입니다</Appear>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
const Appear = React.forwardRef(({ scaleFrom, rise, delayMs, durationMs, children, css, ...rest }, ref) => (jsxRuntime.jsx(react.Box, { ref: ref, ...rest, css: mergeCss.mergeCss(Appear_styles.appearIn,
|
|
53
|
+
// Omitted props leave the keyframe's identity defaults in place, so one
|
|
54
|
+
// keyframe serves a plain fade, a stamp, an arrival, or all three.
|
|
55
|
+
scaleFrom === undefined ? undefined : { '--appear-scale': scaleFrom }, rise === undefined ? undefined : { '--appear-rise': `${rise}px` }, delayMs === undefined ? undefined : { animationDelay: `${delayMs}ms` }, durationMs === undefined
|
|
56
|
+
? undefined
|
|
57
|
+
: { animationDuration: `${durationMs}ms` }, css), children: children })));
|
|
58
|
+
Appear.displayName = 'Appear';
|
|
59
|
+
|
|
60
|
+
exports.Appear = Appear;
|
|
61
|
+
//# sourceMappingURL=Appear.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Appear.js","sources":["../../../src/components/Appear/Appear.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Box","mergeCss","appearIn"],"mappings":";;;;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCG;AACI,MAAM,MAAM,GAAGA,gBAAU,CAC9B,CACE,EACE,SAAS,EACT,IAAI,EACJ,OAAO,EACP,UAAU,EACV,QAAQ,EACR,GAAG,EACH,GAAG,IAAI,EACK,EACd,GAAkC,MAElCC,eAACC,SAAG,EAAA,EACF,GAAG,EAAE,GAAG,KACJ,IAAI,EACR,GAAG,EAAEC,iBAAQ,CACXC,sBAAQ;;;IAGR,SAAS,KAAK,SAAS,GAAG,SAAS,GAAG,EAAE,gBAAgB,EAAE,SAAS,EAAE,EACrE,IAAI,KAAK,SAAS,GAAG,SAAS,GAAG,EAAE,eAAe,EAAE,CAAA,EAAG,IAAI,CAAA,EAAA,CAAI,EAAE,EACjE,OAAO,KAAK,SAAS,GAAG,SAAS,GAAG,EAAE,cAAc,EAAE,CAAA,EAAG,OAAO,CAAA,EAAA,CAAI,EAAE,EACtE,UAAU,KAAK;AACb,UAAE;AACF,UAAE,EAAE,iBAAiB,EAAE,CAAA,EAAG,UAAU,CAAA,EAAA,CAAI,EAAE,EAC5C,GAAG,CACJ,EAAA,QAAA,EAEA,QAAQ,EAAA,CACL,CACP;AAGH,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Box } from '@chakra-ui/react';
|
|
5
|
+
import { mergeCss } from '../../utils/mergeCss.mjs';
|
|
6
|
+
import { appearIn } from './Appear.styles.mjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Brings an element in on mount — a fade, plus an optional scale (a *stamp*
|
|
10
|
+
* landing on something) or vertical travel (content *arriving*).
|
|
11
|
+
*
|
|
12
|
+
* ## Which of the three entrances this is
|
|
13
|
+
*
|
|
14
|
+
* The library has three, and they are not interchangeable:
|
|
15
|
+
*
|
|
16
|
+
* - `animationStyle="presence"` — a part that **has both states**. Menus,
|
|
17
|
+
* popovers, modals: the node stays mounted and Chakra flips `_open` /
|
|
18
|
+
* `_closed`, so it can animate *out* as well as in.
|
|
19
|
+
* - `staggerProps(index)` — items of **one list**, where the index is the
|
|
20
|
+
* cadence and the whole point is the rhythm between siblings.
|
|
21
|
+
* - `Appear` — a **single element entering once**, on its own schedule, usually
|
|
22
|
+
* as a response to something the reader just did. The delay is hand-set per
|
|
23
|
+
* call site because there is no list to derive it from.
|
|
24
|
+
*
|
|
25
|
+
* The rule of thumb: if the element can close, use `presence`; if it has
|
|
26
|
+
* siblings arriving with it, use `stagger`; otherwise this.
|
|
27
|
+
*
|
|
28
|
+
* ## What it does not do
|
|
29
|
+
*
|
|
30
|
+
* It does not animate out. CSS cannot animate an element that is being removed
|
|
31
|
+
* from the DOM, which is exactly the gap `presence` fills by keeping the node
|
|
32
|
+
* mounted. FactChat's version accepts an `exit` too, but only inside an
|
|
33
|
+
* `AnimatePresence` ancestor — standalone it is a no-op there as well, so
|
|
34
|
+
* nothing that actually ran is lost in the port.
|
|
35
|
+
*
|
|
36
|
+
* ## What it puts in the DOM
|
|
37
|
+
*
|
|
38
|
+
* **One `div` around `children`**, and layout props land on that wrapper rather
|
|
39
|
+
* than on the child. Usually the same result — but the child is no longer a
|
|
40
|
+
* *direct* child of what surrounds it, so animate the inner element instead of
|
|
41
|
+
* wrapping when the parent needs its children directly: a `<tr>` needs `<td>`s,
|
|
42
|
+
* and Ark parts (`Menu.List`, `Tree`) walk their own children for focus and
|
|
43
|
+
* typeahead.
|
|
44
|
+
*
|
|
45
|
+
* ```tsx
|
|
46
|
+
* <Appear scaleFrom={0.5}>✓</Appear>
|
|
47
|
+
* <Appear rise={6} delayMs={120}>정답입니다</Appear>
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
const Appear = forwardRef(({ scaleFrom, rise, delayMs, durationMs, children, css, ...rest }, ref) => (jsx(Box, { ref: ref, ...rest, css: mergeCss(appearIn,
|
|
51
|
+
// Omitted props leave the keyframe's identity defaults in place, so one
|
|
52
|
+
// keyframe serves a plain fade, a stamp, an arrival, or all three.
|
|
53
|
+
scaleFrom === undefined ? undefined : { '--appear-scale': scaleFrom }, rise === undefined ? undefined : { '--appear-rise': `${rise}px` }, delayMs === undefined ? undefined : { animationDelay: `${delayMs}ms` }, durationMs === undefined
|
|
54
|
+
? undefined
|
|
55
|
+
: { animationDuration: `${durationMs}ms` }, css), children: children })));
|
|
56
|
+
Appear.displayName = 'Appear';
|
|
57
|
+
|
|
58
|
+
export { Appear };
|
|
59
|
+
//# sourceMappingURL=Appear.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Appear.mjs","sources":["../../../src/components/Appear/Appear.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCG;AACI,MAAM,MAAM,GAAG,UAAU,CAC9B,CACE,EACE,SAAS,EACT,IAAI,EACJ,OAAO,EACP,UAAU,EACV,QAAQ,EACR,GAAG,EACH,GAAG,IAAI,EACK,EACd,GAAkC,MAElCA,IAAC,GAAG,EAAA,EACF,GAAG,EAAE,GAAG,KACJ,IAAI,EACR,GAAG,EAAE,QAAQ,CACX,QAAQ;;;IAGR,SAAS,KAAK,SAAS,GAAG,SAAS,GAAG,EAAE,gBAAgB,EAAE,SAAS,EAAE,EACrE,IAAI,KAAK,SAAS,GAAG,SAAS,GAAG,EAAE,eAAe,EAAE,CAAA,EAAG,IAAI,CAAA,EAAA,CAAI,EAAE,EACjE,OAAO,KAAK,SAAS,GAAG,SAAS,GAAG,EAAE,cAAc,EAAE,CAAA,EAAG,OAAO,CAAA,EAAA,CAAI,EAAE,EACtE,UAAU,KAAK;AACb,UAAE;AACF,UAAE,EAAE,iBAAiB,EAAE,CAAA,EAAG,UAAU,CAAA,EAAA,CAAI,EAAE,EAC5C,GAAG,CACJ,EAAA,QAAA,EAEA,QAAQ,EAAA,CACL,CACP;AAGH,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SystemStyleObject } from '@chakra-ui/react';
|
|
2
|
+
/**
|
|
3
|
+
* A mount entrance.
|
|
4
|
+
*
|
|
5
|
+
* `overshoot`, and that is the whole reason this is not just a fade: an entrance
|
|
6
|
+
* that settles slightly past its resting state reads as something *landing*,
|
|
7
|
+
* which is what a stamp is. On `standard` the same scale reads as a rendering
|
|
8
|
+
* hiccup — the curve is doing more work here than the amplitude.
|
|
9
|
+
*
|
|
10
|
+
* `motion.base`, the default for anything arriving.
|
|
11
|
+
*
|
|
12
|
+
* Under reduced motion the fade stays and the movement goes. The element still
|
|
13
|
+
* has to become visible — it was not there a moment ago — but neither the scale
|
|
14
|
+
* nor the travel carries information, so both are dropped by resetting their
|
|
15
|
+
* custom properties to identity rather than by killing the animation.
|
|
16
|
+
*/
|
|
17
|
+
export declare const appearIn: SystemStyleObject;
|
|
18
|
+
//# sourceMappingURL=Appear.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Appear.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Appear/Appear.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,QAAQ,EAAE,iBAUtB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A mount entrance.
|
|
6
|
+
*
|
|
7
|
+
* `overshoot`, and that is the whole reason this is not just a fade: an entrance
|
|
8
|
+
* that settles slightly past its resting state reads as something *landing*,
|
|
9
|
+
* which is what a stamp is. On `standard` the same scale reads as a rendering
|
|
10
|
+
* hiccup — the curve is doing more work here than the amplitude.
|
|
11
|
+
*
|
|
12
|
+
* `motion.base`, the default for anything arriving.
|
|
13
|
+
*
|
|
14
|
+
* Under reduced motion the fade stays and the movement goes. The element still
|
|
15
|
+
* has to become visible — it was not there a moment ago — but neither the scale
|
|
16
|
+
* nor the travel carries information, so both are dropped by resetting their
|
|
17
|
+
* custom properties to identity rather than by killing the animation.
|
|
18
|
+
*/
|
|
19
|
+
const appearIn = {
|
|
20
|
+
animationName: 'appear-in',
|
|
21
|
+
animationDuration: 'motion.base',
|
|
22
|
+
animationTimingFunction: 'overshoot',
|
|
23
|
+
animationFillMode: 'both',
|
|
24
|
+
_motionReduce: {
|
|
25
|
+
'--appear-scale': '1',
|
|
26
|
+
'--appear-rise': '0px',
|
|
27
|
+
animationTimingFunction: 'standard',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.appearIn = appearIn;
|
|
32
|
+
//# sourceMappingURL=Appear.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Appear.styles.js","sources":["../../../src/components/Appear/Appear.styles.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;AAcG;AACI,MAAM,QAAQ,GAAsB;AACzC,IAAA,aAAa,EAAE,WAAW;AAC1B,IAAA,iBAAiB,EAAE,aAAa;AAChC,IAAA,uBAAuB,EAAE,WAAW;AACpC,IAAA,iBAAiB,EAAE,MAAM;AACzB,IAAA,aAAa,EAAE;AACb,QAAA,gBAAgB,EAAE,GAAG;AACrB,QAAA,eAAe,EAAE,KAAK;AACtB,QAAA,uBAAuB,EAAE,UAAU;AACpC,KAAA;;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/**
|
|
3
|
+
* A mount entrance.
|
|
4
|
+
*
|
|
5
|
+
* `overshoot`, and that is the whole reason this is not just a fade: an entrance
|
|
6
|
+
* that settles slightly past its resting state reads as something *landing*,
|
|
7
|
+
* which is what a stamp is. On `standard` the same scale reads as a rendering
|
|
8
|
+
* hiccup — the curve is doing more work here than the amplitude.
|
|
9
|
+
*
|
|
10
|
+
* `motion.base`, the default for anything arriving.
|
|
11
|
+
*
|
|
12
|
+
* Under reduced motion the fade stays and the movement goes. The element still
|
|
13
|
+
* has to become visible — it was not there a moment ago — but neither the scale
|
|
14
|
+
* nor the travel carries information, so both are dropped by resetting their
|
|
15
|
+
* custom properties to identity rather than by killing the animation.
|
|
16
|
+
*/
|
|
17
|
+
const appearIn = {
|
|
18
|
+
animationName: 'appear-in',
|
|
19
|
+
animationDuration: 'motion.base',
|
|
20
|
+
animationTimingFunction: 'overshoot',
|
|
21
|
+
animationFillMode: 'both',
|
|
22
|
+
_motionReduce: {
|
|
23
|
+
'--appear-scale': '1',
|
|
24
|
+
'--appear-rise': '0px',
|
|
25
|
+
animationTimingFunction: 'standard',
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { appearIn };
|
|
30
|
+
//# sourceMappingURL=Appear.styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Appear.styles.mjs","sources":["../../../src/components/Appear/Appear.styles.ts"],"sourcesContent":[null],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;AAcG;AACI,MAAM,QAAQ,GAAsB;AACzC,IAAA,aAAa,EAAE,WAAW;AAC1B,IAAA,iBAAiB,EAAE,aAAa;AAChC,IAAA,uBAAuB,EAAE,WAAW;AACpC,IAAA,iBAAiB,EAAE,MAAM;AACzB,IAAA,aAAa,EAAE;AACb,QAAA,gBAAgB,EAAE,GAAG;AACrB,QAAA,eAAe,EAAE,KAAK;AACtB,QAAA,uBAAuB,EAAE,UAAU;AACpC,KAAA;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BoxProps } from '@chakra-ui/react';
|
|
2
|
+
export interface AppearProps extends Omit<BoxProps, 'scale' | 'translate'> {
|
|
3
|
+
/**
|
|
4
|
+
* Scale to grow from — for a **stamp**: a mark that lands on something, like a
|
|
5
|
+
* ✓ on a correct answer or a reward medallion. Omit for a plain fade.
|
|
6
|
+
*/
|
|
7
|
+
scaleFrom?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Vertical travel in px — for content **arriving**: a row, a card, a banner.
|
|
10
|
+
* Positive values rise from below.
|
|
11
|
+
*/
|
|
12
|
+
rise?: number;
|
|
13
|
+
/** Delay before it appears. */
|
|
14
|
+
delayMs?: number;
|
|
15
|
+
/** Defaults to `motion.base` (300ms). */
|
|
16
|
+
durationMs?: number;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Appear.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Appear.types.d.ts","sourceRoot":"","sources":["../../../src/components/Appear/Appear.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,CAAC;IACxE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Appear/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAC;AAqH7D,eAAO,MAAM,MAAM,gEAA0C,CAAC"}
|
|
@@ -20,14 +20,39 @@ var Button_styles = require('./Button.styles.js');
|
|
|
20
20
|
* <Button colorPalette="danger" variant="solid">Delete</Button>
|
|
21
21
|
* <Button colorPalette="secondary" variant="outline">Cancel</Button>
|
|
22
22
|
* <Button colorPalette="neutral" variant="ghost">Close</Button>
|
|
23
|
+
* <Button colorPalette="primary" variant="solid" lift>Get started</Button>
|
|
23
24
|
*
|
|
24
25
|
* // `as` carries the element's own props (see Button.types.ts):
|
|
25
26
|
* <Button as="a" href="/docs" target="_blank">문서</Button>
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
|
-
const ButtonImpl = React.forwardRef(({ colorPalette, variant = 'soft', size, children, ...rest }, ref) => {
|
|
29
|
+
const ButtonImpl = React.forwardRef(({ colorPalette, variant = 'soft', size, lift, children, _hover: hoverProp, _active: activeProp, ...rest }, ref) => {
|
|
29
30
|
const palette = colorPalette ?? 'primary';
|
|
30
|
-
const
|
|
31
|
+
const base = Button_styles.getButtonStyles(palette, variant);
|
|
32
|
+
// Merged rather than spread after: each variant already owns `_hover` and
|
|
33
|
+
// `_active` for its colours, and replacing either would drop them.
|
|
34
|
+
const styles = lift
|
|
35
|
+
? {
|
|
36
|
+
...base,
|
|
37
|
+
_hover: {
|
|
38
|
+
...base._hover,
|
|
39
|
+
translate: '0 -1px',
|
|
40
|
+
// `drop-shadow`, not `box-shadow`. The keyboard focus ring is a
|
|
41
|
+
// box-shadow, and Chakra emits `:hover` after `:focus-visible`, so
|
|
42
|
+
// a focused button being hovered would lose its ring to this. A
|
|
43
|
+
// different property cannot collide with it at all — and unlike a
|
|
44
|
+
// box-shadow it follows the border radius for free.
|
|
45
|
+
filter: 'drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18))',
|
|
46
|
+
// A black shadow does nothing on a dark canvas; deepen it there.
|
|
47
|
+
_dark: { filter: 'drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55))' },
|
|
48
|
+
},
|
|
49
|
+
// Pressing puts it back on the surface, under the `scale`.
|
|
50
|
+
_active: { ...base._active, translate: '0 0', filter: 'none' },
|
|
51
|
+
// `:hover` still matches a disabled button, so the lift has to be
|
|
52
|
+
// switched off here rather than left to pointer-events.
|
|
53
|
+
_disabled: { translate: '0 0', filter: 'none' },
|
|
54
|
+
}
|
|
55
|
+
: base;
|
|
31
56
|
/**
|
|
32
57
|
* Chakra Button automatically maps size prop to textStyle:
|
|
33
58
|
* - 2xs, xs → textStyle="xs" (10.5px with 14px base)
|
|
@@ -38,7 +63,21 @@ const ButtonImpl = React.forwardRef(({ colorPalette, variant = 'soft', size, chi
|
|
|
38
63
|
* We override fontSize for xs size to 'sm' (12.25px) for better readability.
|
|
39
64
|
* Other sizes use Chakra's default textStyle mapping.
|
|
40
65
|
*/
|
|
41
|
-
return (jsxRuntime.jsx(react.Button, { border: "1px solid", lineHeight: "1.2", fontWeight: "semibold", size: size, borderRadius: "md", ...styles,
|
|
66
|
+
return (jsxRuntime.jsx(react.Button, { border: "1px solid", lineHeight: "1.2", fontWeight: "semibold", size: size, borderRadius: "md", ...styles,
|
|
67
|
+
// Merged, not left to `{...rest}`. A prop spread later replaces the
|
|
68
|
+
// whole object, so a call site adding one line — the 2px press ledge
|
|
69
|
+
// FactChat puts on its quiz buttons — used to silently drop the
|
|
70
|
+
// variant's pressed colour *and* the scale with it, and the button
|
|
71
|
+
// stopped reading as pressed at all. Its own keys still win; it just
|
|
72
|
+
// no longer erases the ones it did not mention.
|
|
73
|
+
_hover: { ...styles._hover, ...hoverProp }, _active: { ...styles._active, ...activeProp }, ...focusRing.focusRing, cursor: "pointer",
|
|
74
|
+
// Explicit identity so the press transitions from a definite value
|
|
75
|
+
// rather than relying on `scale: none` being read as 1.
|
|
76
|
+
scale: "1",
|
|
77
|
+
// Two clocks on one element — the press is faster than the colour
|
|
78
|
+
// change — so the shorthand is written out and only the reduced-motion
|
|
79
|
+
// guard comes from the vocabulary.
|
|
80
|
+
transition: Button_styles.buttonTransition, animationStyle: "composite", ref: ref, ...rest, children: children }));
|
|
42
81
|
});
|
|
43
82
|
/**
|
|
44
83
|
* Type-level polymorphism over the same runtime — see `polymorphic` in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":["forwardRef","getButtonStyles","_jsx","ChakraButton","focusRing","polymorphic"],"mappings":";;;;;;;;;;AASA
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":["forwardRef","getButtonStyles","_jsx","ChakraButton","focusRing","buttonTransition","polymorphic"],"mappings":";;;;;;;;;;AASA;;;;;;;;;;;;;;;;;AAiBG;AACH,MAAM,UAAU,GAAGA,gBAAU,CAC3B,CACE,EACE,YAAY,EACZ,OAAO,GAAG,MAAM,EAChB,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,EACnB,GAAG,IAAI,EACR,EACD,GAAG,KACD;AACF,IAAA,MAAM,OAAO,GAAG,YAAY,IAAI,SAAS;IAEzC,MAAM,IAAI,GAAGC,6BAAe,CAAC,OAAO,EAAE,OAAO,CAAC;;;IAI9C,MAAM,MAAM,GAAG;AACb,UAAE;AACE,YAAA,GAAG,IAAI;AACP,YAAA,MAAM,EAAE;gBACN,GAAG,IAAI,CAAC,MAAM;AACd,gBAAA,SAAS,EAAE,QAAQ;;;;;;AAMnB,gBAAA,MAAM,EAAE,4CAA4C;;AAEpD,gBAAA,KAAK,EAAE,EAAE,MAAM,EAAE,4CAA4C,EAAE;AAChE,aAAA;;AAED,YAAA,OAAO,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;;;YAG9D,SAAS,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;AAChD;UACD,IAAI;AAER;;;;;;;;;AASG;IACH,QACEC,cAAA,CAACC,YAAY,EAAA,EACX,MAAM,EAAC,WAAW,EAClB,UAAU,EAAC,KAAK,EAChB,UAAU,EAAC,UAAU,EACrB,IAAI,EAAE,IAAI,EACV,YAAY,EAAC,IAAI,EAAA,GACb,MAAM;;;;;;;QAOV,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,SAAS,EAAE,EAC1C,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,UAAU,EAAE,EAAA,GACzCC,mBAAS,EACb,MAAM,EAAC,SAAS;;;AAGhB,QAAA,KAAK,EAAC,GAAG;;;;AAIT,QAAA,UAAU,EAAEC,8BAAgB,EAC5B,cAAc,EAAC,WAAW,EAC1B,GAAG,EAAE,GAAG,KACJ,IAAI,EAAA,QAAA,EAEP,QAAQ,EAAA,CACI;AAEnB,CAAC,CACF;AAED;;;;;;AAMG;AACH,UAAU,CAAC,WAAW,GAAG,QAAQ;MAEpB,MAAM,GAAGC,uBAAW,CAAiB,UAAU;;;;"}
|
|
@@ -4,7 +4,7 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import { Button as Button$1 } from '@chakra-ui/react';
|
|
5
5
|
import { focusRing } from '../../utils/focusRing.mjs';
|
|
6
6
|
import { polymorphic } from '../../types/polymorphic.mjs';
|
|
7
|
-
import { getButtonStyles } from './Button.styles.mjs';
|
|
7
|
+
import { getButtonStyles, buttonTransition } from './Button.styles.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Button component with two-dimensional variant system.
|
|
@@ -18,14 +18,39 @@ import { getButtonStyles } from './Button.styles.mjs';
|
|
|
18
18
|
* <Button colorPalette="danger" variant="solid">Delete</Button>
|
|
19
19
|
* <Button colorPalette="secondary" variant="outline">Cancel</Button>
|
|
20
20
|
* <Button colorPalette="neutral" variant="ghost">Close</Button>
|
|
21
|
+
* <Button colorPalette="primary" variant="solid" lift>Get started</Button>
|
|
21
22
|
*
|
|
22
23
|
* // `as` carries the element's own props (see Button.types.ts):
|
|
23
24
|
* <Button as="a" href="/docs" target="_blank">문서</Button>
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
|
-
const ButtonImpl = forwardRef(({ colorPalette, variant = 'soft', size, children, ...rest }, ref) => {
|
|
27
|
+
const ButtonImpl = forwardRef(({ colorPalette, variant = 'soft', size, lift, children, _hover: hoverProp, _active: activeProp, ...rest }, ref) => {
|
|
27
28
|
const palette = colorPalette ?? 'primary';
|
|
28
|
-
const
|
|
29
|
+
const base = getButtonStyles(palette, variant);
|
|
30
|
+
// Merged rather than spread after: each variant already owns `_hover` and
|
|
31
|
+
// `_active` for its colours, and replacing either would drop them.
|
|
32
|
+
const styles = lift
|
|
33
|
+
? {
|
|
34
|
+
...base,
|
|
35
|
+
_hover: {
|
|
36
|
+
...base._hover,
|
|
37
|
+
translate: '0 -1px',
|
|
38
|
+
// `drop-shadow`, not `box-shadow`. The keyboard focus ring is a
|
|
39
|
+
// box-shadow, and Chakra emits `:hover` after `:focus-visible`, so
|
|
40
|
+
// a focused button being hovered would lose its ring to this. A
|
|
41
|
+
// different property cannot collide with it at all — and unlike a
|
|
42
|
+
// box-shadow it follows the border radius for free.
|
|
43
|
+
filter: 'drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18))',
|
|
44
|
+
// A black shadow does nothing on a dark canvas; deepen it there.
|
|
45
|
+
_dark: { filter: 'drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55))' },
|
|
46
|
+
},
|
|
47
|
+
// Pressing puts it back on the surface, under the `scale`.
|
|
48
|
+
_active: { ...base._active, translate: '0 0', filter: 'none' },
|
|
49
|
+
// `:hover` still matches a disabled button, so the lift has to be
|
|
50
|
+
// switched off here rather than left to pointer-events.
|
|
51
|
+
_disabled: { translate: '0 0', filter: 'none' },
|
|
52
|
+
}
|
|
53
|
+
: base;
|
|
29
54
|
/**
|
|
30
55
|
* Chakra Button automatically maps size prop to textStyle:
|
|
31
56
|
* - 2xs, xs → textStyle="xs" (10.5px with 14px base)
|
|
@@ -36,7 +61,21 @@ const ButtonImpl = forwardRef(({ colorPalette, variant = 'soft', size, children,
|
|
|
36
61
|
* We override fontSize for xs size to 'sm' (12.25px) for better readability.
|
|
37
62
|
* Other sizes use Chakra's default textStyle mapping.
|
|
38
63
|
*/
|
|
39
|
-
return (jsx(Button$1, { border: "1px solid", lineHeight: "1.2", fontWeight: "semibold", size: size, borderRadius: "md", ...styles,
|
|
64
|
+
return (jsx(Button$1, { border: "1px solid", lineHeight: "1.2", fontWeight: "semibold", size: size, borderRadius: "md", ...styles,
|
|
65
|
+
// Merged, not left to `{...rest}`. A prop spread later replaces the
|
|
66
|
+
// whole object, so a call site adding one line — the 2px press ledge
|
|
67
|
+
// FactChat puts on its quiz buttons — used to silently drop the
|
|
68
|
+
// variant's pressed colour *and* the scale with it, and the button
|
|
69
|
+
// stopped reading as pressed at all. Its own keys still win; it just
|
|
70
|
+
// no longer erases the ones it did not mention.
|
|
71
|
+
_hover: { ...styles._hover, ...hoverProp }, _active: { ...styles._active, ...activeProp }, ...focusRing, cursor: "pointer",
|
|
72
|
+
// Explicit identity so the press transitions from a definite value
|
|
73
|
+
// rather than relying on `scale: none` being read as 1.
|
|
74
|
+
scale: "1",
|
|
75
|
+
// Two clocks on one element — the press is faster than the colour
|
|
76
|
+
// change — so the shorthand is written out and only the reduced-motion
|
|
77
|
+
// guard comes from the vocabulary.
|
|
78
|
+
transition: buttonTransition, animationStyle: "composite", ref: ref, ...rest, children: children }));
|
|
40
79
|
});
|
|
41
80
|
/**
|
|
42
81
|
* Type-level polymorphism over the same runtime — see `polymorphic` in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.mjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraButton"],"mappings":";;;;;;;;AASA
|
|
1
|
+
{"version":3,"file":"Button.mjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraButton"],"mappings":";;;;;;;;AASA;;;;;;;;;;;;;;;;;AAiBG;AACH,MAAM,UAAU,GAAG,UAAU,CAC3B,CACE,EACE,YAAY,EACZ,OAAO,GAAG,MAAM,EAChB,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,EACnB,GAAG,IAAI,EACR,EACD,GAAG,KACD;AACF,IAAA,MAAM,OAAO,GAAG,YAAY,IAAI,SAAS;IAEzC,MAAM,IAAI,GAAG,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC;;;IAI9C,MAAM,MAAM,GAAG;AACb,UAAE;AACE,YAAA,GAAG,IAAI;AACP,YAAA,MAAM,EAAE;gBACN,GAAG,IAAI,CAAC,MAAM;AACd,gBAAA,SAAS,EAAE,QAAQ;;;;;;AAMnB,gBAAA,MAAM,EAAE,4CAA4C;;AAEpD,gBAAA,KAAK,EAAE,EAAE,MAAM,EAAE,4CAA4C,EAAE;AAChE,aAAA;;AAED,YAAA,OAAO,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;;;YAG9D,SAAS,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;AAChD;UACD,IAAI;AAER;;;;;;;;;AASG;IACH,QACEA,GAAA,CAACC,QAAY,EAAA,EACX,MAAM,EAAC,WAAW,EAClB,UAAU,EAAC,KAAK,EAChB,UAAU,EAAC,UAAU,EACrB,IAAI,EAAE,IAAI,EACV,YAAY,EAAC,IAAI,EAAA,GACb,MAAM;;;;;;;QAOV,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,SAAS,EAAE,EAC1C,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,UAAU,EAAE,EAAA,GACzC,SAAS,EACb,MAAM,EAAC,SAAS;;;AAGhB,QAAA,KAAK,EAAC,GAAG;;;;AAIT,QAAA,UAAU,EAAE,gBAAgB,EAC5B,cAAc,EAAC,WAAW,EAC1B,GAAG,EAAE,GAAG,KACJ,IAAI,EAAA,QAAA,EAEP,QAAQ,EAAA,CACI;AAEnB,CAAC,CACF;AAED;;;;;;AAMG;AACH,UAAU,CAAC,WAAW,GAAG,QAAQ;MAEpB,MAAM,GAAG,WAAW,CAAiB,UAAU;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ButtonProps as ChakraButtonProps } from '@chakra-ui/react';
|
|
2
2
|
import { ButtonColorPalette, ButtonVariant } from './Button.types';
|
|
3
3
|
type StyleProps = Partial<ChakraButtonProps>;
|
|
4
|
+
export declare const buttonTransition: string;
|
|
4
5
|
/**
|
|
5
6
|
* Two-dimensional Button styles using the Golden Ratio color system.
|
|
6
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEnE,KAAK,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEnE,KAAK,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AA8B7C,eAAO,MAAM,gBAAgB,QAoBjB,CAAC;AAEb;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,kBAAkB,EAClB,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAmXlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,eAAc,kBAA8B,EAC5C,UAAS,aAAuB,KAC/B,UAEF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,kBAAkB,EAOnD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,uBAAuB,+EAA2B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,aAAa,EAKzC,CAAC"}
|