@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
|
@@ -1,83 +1,85 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useState,
|
|
2
|
+
import { useRef, useState, useLayoutEffect, useEffect, useCallback } from 'react';
|
|
3
|
+
import { MOTION_DURATION_MS } from '../../theme/motion.mjs';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
if (truncated !== null) {
|
|
41
|
-
truncatedChildren.push(truncated);
|
|
42
|
-
}
|
|
43
|
-
totalLength = length;
|
|
44
|
-
}
|
|
45
|
-
return { truncated: truncatedChildren, length: totalLength };
|
|
46
|
-
}
|
|
47
|
-
if (isValidElement(node)) {
|
|
48
|
-
const { truncated: truncatedChildren, length } = truncateReactNode(node.props.children, charLimit, currentLength);
|
|
49
|
-
if (truncatedChildren === null) {
|
|
50
|
-
return { truncated: null, length };
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
truncated: {
|
|
54
|
-
...node,
|
|
55
|
-
props: {
|
|
56
|
-
...node.props,
|
|
57
|
-
children: truncatedChildren,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
length,
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
return { truncated: node, length: currentLength };
|
|
64
|
-
};
|
|
65
|
-
const useExpandableText = (children, charLimit = 100) => {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the OS is asking for less movement, read when it matters rather than
|
|
7
|
+
* subscribed to — this only decides how long to wait before tidying up, and a
|
|
8
|
+
* member who flips the setting mid-click is not a case worth a listener for.
|
|
9
|
+
*/
|
|
10
|
+
const prefersReducedMotion = () => typeof window !== 'undefined' &&
|
|
11
|
+
window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
|
|
12
|
+
/** Two frames, so React has committed the first value before the second lands. */
|
|
13
|
+
const afterPaint = (fn) => requestAnimationFrame(() => requestAnimationFrame(fn));
|
|
14
|
+
/**
|
|
15
|
+
* Collapsed/expanded state for text clipped to a number of lines.
|
|
16
|
+
*
|
|
17
|
+
* Both states render the same children and the clipping is a `max-height`, which
|
|
18
|
+
* is what makes the change animatable at all — the previous character-count
|
|
19
|
+
* version swapped one node tree for another, so there was never anything on the
|
|
20
|
+
* page for a transition to reveal.
|
|
21
|
+
*
|
|
22
|
+
* ## Why not `-webkit-line-clamp`
|
|
23
|
+
*
|
|
24
|
+
* The clamp would give the cut line an ellipsis, but it takes the height with
|
|
25
|
+
* it: under a clamp `scrollHeight` collapses to the clipped height, so there is
|
|
26
|
+
* no way left to ask whether anything is hidden, and the link that opens the
|
|
27
|
+
* text can never appear. A `max-height` of whole `lh` units cuts on the same
|
|
28
|
+
* line boundary, keeps `scrollHeight` honest, and is the thing being animated
|
|
29
|
+
* anyway.
|
|
30
|
+
*
|
|
31
|
+
* ## Why two commits per direction
|
|
32
|
+
*
|
|
33
|
+
* `max-height` only animates between two lengths, and each direction begins on a
|
|
34
|
+
* value that is not one. Opening ends at `none` so a later reflow — a resize, a
|
|
35
|
+
* font swap — is not trapped under a stale pixel count; closing therefore has to
|
|
36
|
+
* pin the height it is leaving for one frame before releasing it.
|
|
37
|
+
*/
|
|
38
|
+
const useExpandableText = (lineClamp) => {
|
|
39
|
+
const contentRef = useRef(null);
|
|
40
|
+
const settleTimer = useRef(undefined);
|
|
66
41
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
42
|
+
/** `undefined` means "rest at the line multiple" — see the component. */
|
|
43
|
+
const [maxHeight, setMaxHeight] = useState();
|
|
44
|
+
/** Until we know something is hidden, no link is offered. */
|
|
45
|
+
const [isOverflowing, setIsOverflowing] = useState(false);
|
|
46
|
+
useLayoutEffect(() => {
|
|
47
|
+
const el = contentRef.current;
|
|
48
|
+
if (!el)
|
|
49
|
+
return;
|
|
50
|
+
// Only meaningful while collapsed; open, the two heights are equal.
|
|
51
|
+
const check = () => {
|
|
52
|
+
if (!isExpanded)
|
|
53
|
+
setIsOverflowing(el.scrollHeight > el.clientHeight + 1);
|
|
54
|
+
};
|
|
55
|
+
check();
|
|
56
|
+
// How many lines the text takes depends on width, so a resize can create or
|
|
57
|
+
// remove the overflow entirely.
|
|
58
|
+
const observer = new ResizeObserver(check);
|
|
59
|
+
observer.observe(el);
|
|
60
|
+
return () => observer.disconnect();
|
|
61
|
+
}, [lineClamp, isExpanded]);
|
|
62
|
+
useEffect(() => () => clearTimeout(settleTimer.current), []);
|
|
75
63
|
const handleToggle = useCallback((event) => {
|
|
76
64
|
event.preventDefault();
|
|
77
65
|
event.stopPropagation();
|
|
78
|
-
|
|
66
|
+
const el = contentRef.current;
|
|
67
|
+
if (!el)
|
|
68
|
+
return;
|
|
69
|
+
clearTimeout(settleTimer.current);
|
|
70
|
+
const settle = prefersReducedMotion() ? 0 : MOTION_DURATION_MS.base;
|
|
71
|
+
setIsExpanded((wasExpanded) => {
|
|
72
|
+
if (wasExpanded) {
|
|
73
|
+
setMaxHeight(`${el.scrollHeight}px`); // pin the height being left
|
|
74
|
+
afterPaint(() => setMaxHeight(undefined)); // → line multiple; animates
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
setMaxHeight(`${el.scrollHeight}px`); // full height; animates open
|
|
78
|
+
settleTimer.current = setTimeout(() => setMaxHeight('none'), settle);
|
|
79
|
+
return true;
|
|
80
|
+
});
|
|
79
81
|
}, []);
|
|
80
|
-
return { isExpanded,
|
|
82
|
+
return { contentRef, isExpanded, isOverflowing, maxHeight, handleToggle };
|
|
81
83
|
};
|
|
82
84
|
|
|
83
85
|
export { useExpandableText };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExpandableText.mjs","sources":["../../../src/components/ExpandableText/useExpandableText.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useExpandableText.mjs","sources":["../../../src/components/ExpandableText/useExpandableText.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAUA;;;;AAIG;AACH,MAAM,oBAAoB,GAAG,MAC3B,OAAO,MAAM,KAAK,WAAW;IAC7B,MAAM,CAAC,UAAU,GAAG,kCAAkC,CAAC,CAAC,OAAO;AAEjE;AACA,MAAM,UAAU,GAAG,CAAC,EAAc,KAChC,qBAAqB,CAAC,MAAM,qBAAqB,CAAC,EAAE,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACI,MAAM,iBAAiB,GAAG,CAAC,SAAiB,KAAI;AACrD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC;AAC/C,IAAA,MAAM,WAAW,GAAG,MAAM,CAAgC,SAAS,CAAC;IAEpE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;;IAEnD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU;;IAEpD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEzD,eAAe,CAAC,MAAK;AACnB,QAAA,MAAM,EAAE,GAAG,UAAU,CAAC,OAAO;AAC7B,QAAA,IAAI,CAAC,EAAE;YAAE;;QAGT,MAAM,KAAK,GAAG,MAAK;AACjB,YAAA,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AA,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC;IAEN,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE;AAC3E;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/FileInput.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;
|
|
1
|
+
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/FileInput.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;oDA0GrB,CAAC"}
|
|
@@ -6,6 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var react = require('@chakra-ui/react');
|
|
7
7
|
var index = require('../Icon/index.js');
|
|
8
8
|
var Spinner = require('../Spinner/Spinner.js');
|
|
9
|
+
require('../Typography/Caption.js');
|
|
9
10
|
require('../Typography/H1.js');
|
|
10
11
|
require('../Typography/H2.js');
|
|
11
12
|
require('../Typography/H3.js');
|
|
@@ -23,7 +24,16 @@ const FileInput = React.forwardRef(({ fileInputLabel, containerStyle = {}, bgIma
|
|
|
23
24
|
const handleChange = (event) => {
|
|
24
25
|
onChange(event.currentTarget.files);
|
|
25
26
|
};
|
|
26
|
-
return (
|
|
27
|
+
return (
|
|
28
|
+
// No `role="button"` on this wrapper. It is not a button — the `<label>`
|
|
29
|
+
// inside is what activates the file input — and claiming the role put an
|
|
30
|
+
// interactive element inside another (axe `nested-interactive`), which is
|
|
31
|
+
// a state screen readers have no sensible way to announce
|
|
32
|
+
// (KWCAG 2.1 5.4.2.1 웹 애플리케이션 접근성 준수).
|
|
33
|
+
jsxRuntime.jsx(react.Flex, { w: "100%", h: "100%", maxH: 32, flexDir: "column", align: "center", justify: "center", border: "1px dashed", borderColor: "border.default", position: "relative", overflow: "hidden", borderRadius: "md", ...containerStyle, children: jsxRuntime.jsxs("label", { className: "group", style: { width: '100%', height: '100%', cursor: 'pointer' }, children: [bgImage && (jsxRuntime.jsx(react.Box, { position: "absolute", top: "0", left: "0", right: "0", bottom: "0", backgroundImage: bgImage, backgroundSize: "cover", backgroundPosition: "center", filter: "grayscale(50%) brightness(80%)", zIndex: "-1" })), jsxRuntime.jsx(react.Input, { type: "file", hidden: true, ref: ref, onChange: handleChange, ...rest }), jsxRuntime.jsx(react.Flex, { w: "100%", h: "100%", p: 7, flexDir: "column", justify: "center", align: "center", bgColor: "color-mix(in srgb, var(--chakra-colors-bg-surface) 85%, transparent)", opacity: bgImage ? 0 : 1,
|
|
34
|
+
// Was `transition="ease-in"` — a shorthand with only a timing
|
|
35
|
+
// function resolves to 0s, so the hover fade snapped in one frame.
|
|
36
|
+
animationStyle: "feedback", transitionProperty: "opacity", _groupHover: { opacity: 1 }, children: isLoading ? (jsxRuntime.jsx(Spinner.Spinner, {})) : (jsxRuntime.jsxs(react.Flex, { w: "100%", flexDir: "column", align: "center", justify: "center", children: [jsxRuntime.jsx(react.Box, { borderRadius: "lg", bgColor: bgImage ? 'transparent' : 'bg.muted', p: 3, mb: 2, w: "fit-content", children: jsxRuntime.jsx(index.UploadIcon, { color: bgImage ? 'fg.default' : 'fg.subtle' }) }), jsxRuntime.jsx(Text.Text, { color: bgImage ? 'fg.default' : 'fg.subtle', children: fileInputLabel || translate('upload_your_file') })] })) })] }) }));
|
|
27
37
|
});
|
|
28
38
|
FileInput.displayName = 'FileInput';
|
|
29
39
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.js","sources":["../../../src/components/FileInput/FileInput.tsx"],"sourcesContent":[null],"names":["forwardRef","useTranslate","_jsx","Flex","_jsxs","Box","Input","Spinner","
|
|
1
|
+
{"version":3,"file":"FileInput.js","sources":["../../../src/components/FileInput/FileInput.tsx"],"sourcesContent":[null],"names":["forwardRef","useTranslate","_jsx","Flex","_jsxs","Box","Input","Spinner","UploadIcon","Text"],"mappings":";;;;;;;;;;;;;;;;;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, Box, Input } from '@chakra-ui/react';
|
|
5
|
-
import {
|
|
5
|
+
import { UploadIcon } from '../Icon/index.mjs';
|
|
6
6
|
import { Spinner } from '../Spinner/Spinner.mjs';
|
|
7
|
+
import '../Typography/Caption.mjs';
|
|
7
8
|
import '../Typography/H1.mjs';
|
|
8
9
|
import '../Typography/H2.mjs';
|
|
9
10
|
import '../Typography/H3.mjs';
|
|
@@ -21,7 +22,16 @@ const FileInput = forwardRef(({ fileInputLabel, containerStyle = {}, bgImage, on
|
|
|
21
22
|
const handleChange = (event) => {
|
|
22
23
|
onChange(event.currentTarget.files);
|
|
23
24
|
};
|
|
24
|
-
return (
|
|
25
|
+
return (
|
|
26
|
+
// No `role="button"` on this wrapper. It is not a button — the `<label>`
|
|
27
|
+
// inside is what activates the file input — and claiming the role put an
|
|
28
|
+
// interactive element inside another (axe `nested-interactive`), which is
|
|
29
|
+
// a state screen readers have no sensible way to announce
|
|
30
|
+
// (KWCAG 2.1 5.4.2.1 웹 애플리케이션 접근성 준수).
|
|
31
|
+
jsx(Flex, { w: "100%", h: "100%", maxH: 32, flexDir: "column", align: "center", justify: "center", border: "1px dashed", borderColor: "border.default", position: "relative", overflow: "hidden", borderRadius: "md", ...containerStyle, children: jsxs("label", { className: "group", style: { width: '100%', height: '100%', cursor: 'pointer' }, children: [bgImage && (jsx(Box, { position: "absolute", top: "0", left: "0", right: "0", bottom: "0", backgroundImage: bgImage, backgroundSize: "cover", backgroundPosition: "center", filter: "grayscale(50%) brightness(80%)", zIndex: "-1" })), jsx(Input, { type: "file", hidden: true, ref: ref, onChange: handleChange, ...rest }), jsx(Flex, { w: "100%", h: "100%", p: 7, flexDir: "column", justify: "center", align: "center", bgColor: "color-mix(in srgb, var(--chakra-colors-bg-surface) 85%, transparent)", opacity: bgImage ? 0 : 1,
|
|
32
|
+
// Was `transition="ease-in"` — a shorthand with only a timing
|
|
33
|
+
// function resolves to 0s, so the hover fade snapped in one frame.
|
|
34
|
+
animationStyle: "feedback", transitionProperty: "opacity", _groupHover: { opacity: 1 }, children: isLoading ? (jsx(Spinner, {})) : (jsxs(Flex, { w: "100%", flexDir: "column", align: "center", justify: "center", children: [jsx(Box, { borderRadius: "lg", bgColor: bgImage ? 'transparent' : 'bg.muted', p: 3, mb: 2, w: "fit-content", children: jsx(UploadIcon, { color: bgImage ? 'fg.default' : 'fg.subtle' }) }), jsx(Text, { color: bgImage ? 'fg.default' : 'fg.subtle', children: fileInputLabel || translate('upload_your_file') })] })) })] }) }));
|
|
25
35
|
});
|
|
26
36
|
FileInput.displayName = 'FileInput';
|
|
27
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.mjs","sources":["../../../src/components/FileInput/FileInput.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileInput.mjs","sources":["../../../src/components/FileInput/FileInput.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;AAUO,MAAM,SAAS,GAAG,UAAU,CACjC,CACE,EACE,cAAc,EACd,cAAc,GAAG,EAAE,EACnB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EACD,GAAG,KACD;AACF,IAAA,MAAM,SAAS,GAAG,YAAY,EAAE;AAEhC,IAAA,MAAM,YAAY,GAAyC,CAAC,KAAK,KAAI;AACnE,QAAA,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC;AACrC,IAAA,CAAC;IAED;;;;;;AAME,IAAAA,GAAA,CAAC,IAAI,EAAA,EACH,CAAC,EAAC,MAAM,EACR,CAAC,EAAC,MAAM,EACR,IAAI,EAAE,EAAE,EACR,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,QAAQ,EACd,OAAO,EAAC,QAAQ,EAChB,MAAM,EAAC,YAAY,EACnB,WAAW,EAAC,gBAAgB,EAC5B,QAAQ,EAAC,UAAU,EACnB,QAAQ,EAAC,QAAQ,E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AO,EAAE,OAAO,GAAG,aAAa,GAAG,UAAU,EAC7C,CAAC,EAAE,CAAC,EACJ,EAAE,EAAE,CAAC,EACL,CAAC,EAAC,aAAa,EAAA,QAAA,EAEfA,GAAA,CAAC,UAAU,EAAA,EAAC,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,WAAW,EAAA,CAAI,EAAA,CACvD,EACNA,GAAA,CAAC,IAAI,EAAA,EAAC,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,WAAW,EAAA,QAAA,EAC9C,cAAc,IAAI,SAAS,CAAC,kBAAkB,CAAC,EAAA,CAC3C,CAAA,EAAA,CACF,CACR,EAAA,CACI,CAAA,EAAA,CACD,EAAA,CACH;AAEX,CAAC;AAGH,SAAS,CAAC,WAAW,GAAG,WAAW;;;;"}
|
|
@@ -8,6 +8,7 @@ var index = require('../Icon/index.js');
|
|
|
8
8
|
var IconButton = require('../IconButton/IconButton.js');
|
|
9
9
|
require('../IconButton/IconButton.styles.js');
|
|
10
10
|
var ProgressBar = require('../ProgressBar/ProgressBar.js');
|
|
11
|
+
require('../Typography/Caption.js');
|
|
11
12
|
require('../Typography/H1.js');
|
|
12
13
|
require('../Typography/H2.js');
|
|
13
14
|
require('../Typography/H3.js');
|
|
@@ -36,7 +37,7 @@ const FileItem = ({ fileName, error, onFileDownload, onFileDelete, progress, fil
|
|
|
36
37
|
left: 0,
|
|
37
38
|
width: '3px',
|
|
38
39
|
backgroundColor: error ? errorColor : 'transparent',
|
|
39
|
-
}, ...rest, children: [jsxRuntime.jsxs(react.Flex, { w: "60%", alignItems: "center", gap: 2, children: [jsxRuntime.jsx(react.Box, { minW: 5, children: jsxRuntime.jsx(index.
|
|
40
|
+
}, ...rest, children: [jsxRuntime.jsxs(react.Flex, { w: "60%", alignItems: "center", gap: 2, children: [jsxRuntime.jsx(react.Box, { minW: 5, children: jsxRuntime.jsx(index.FileIcon, { color: error ? errorColor : 'fg.muted' }) }), jsxRuntime.jsx(Text.Text, { truncate: true, color: error ? errorColor : undefined, children: fileName })] }), jsxRuntime.jsxs(react.Flex, { align: "center", gap: 2, flex: 1, children: [error ? (jsxRuntime.jsx(react.Flex, { w: "100%", justify: "flex-end", align: "center", gap: 2, children: jsxRuntime.jsx(Tooltip.Tooltip, { content: error, placement: "top", children: jsxRuntime.jsx(index.AlertCircleFilledIcon, { color: errorColor }) }) })) : (jsxRuntime.jsx(react.Box, { w: "100%", children: isUploadingFile && (jsxRuntime.jsxs(react.Flex, { align: "center", justify: "flex-end", gap: 2, children: [jsxRuntime.jsxs(Subtext.Subtext, { children: [progress, "%"] }), jsxRuntime.jsx(ProgressBar.ProgressBar, { w: "100%", minW: 3, maxW: 20, value: progress }), jsxRuntime.jsx(Spinner.Spinner, { size: "xs" }), jsxRuntime.jsx(IconButton.IconButton, { "aria-label": 'remove uploading file button', onClick: onFileDelete, size: "2xs", disabled: isDeleting, colorPalette: "neutral", variant: "ghost", children: jsxRuntime.jsx(index.CloseIcon, { color: "fg.subtle", boxSize: "md" }) })] })) })), !isUploadingFile && isFileUploadComplete && (jsxRuntime.jsxs(React.Fragment, { children: [fileSize && jsxRuntime.jsx(Subtitle.Subtitle, { mr: 4, children: formatFileSize.formatFileSize(fileSize) }), onFileDownload && !error && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: isDownloading ? (jsxRuntime.jsx(Tooltip.Tooltip, { content: translate('downloading'), placement: "top", children: jsxRuntime.jsx(Spinner.Spinner, { size: "xs" }) })) : (jsxRuntime.jsx(Tooltip.Tooltip, { content: translate('download'), placement: "top", children: jsxRuntime.jsx(IconButton.IconButton, { "aria-label": translate('download'), onClick: onFileDownload, size: "2xs", colorPalette: "neutral", variant: "ghost", children: jsxRuntime.jsx(index.DownloadIcon, { color: "fg.muted" }) }) })) })), onFileDelete && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: isDeleting ? (jsxRuntime.jsx(Tooltip.Tooltip, { content: translate('deleting'), placement: "top", children: jsxRuntime.jsx(Spinner.Spinner, { size: "xs" }) })) : (jsxRuntime.jsx(Tooltip.Tooltip, { content: translate('delete'), placement: "top", children: jsxRuntime.jsx(IconButton.IconButton, { "aria-label": translate('delete'), onClick: onFileDelete, size: "2xs", colorPalette: "neutral", variant: "ghost", children: jsxRuntime.jsx(index.TrashIcon, { boxSize: "sm", color: "fg.muted" }) }) })) }))] }))] })] }));
|
|
40
41
|
};
|
|
41
42
|
FileItem.displayName = 'FileItem';
|
|
42
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileItem.js","sources":["../../../src/components/FileItem/FileItem.tsx"],"sourcesContent":[null],"names":["useTranslate","_jsxs","Flex","_jsx","Box","
|
|
1
|
+
{"version":3,"file":"FileItem.js","sources":["../../../src/components/FileItem/FileItem.tsx"],"sourcesContent":[null],"names":["useTranslate","_jsxs","Flex","_jsx","Box","FileIcon","Text","Tooltip","AlertCircleFilledIcon","Subtext","ProgressBar","Spinner","IconButton","CloseIcon","Fragment","Subtitle","formatFileSize","_Fragment","DownloadIcon","TrashIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoBO,MAAM,QAAQ,GAAG,CAAC,EACvB,QAAQ,EACR,KAAK,EACL,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,aAAa,GAAG,KAAK,EACrB,GAAG,IAAI,EACO,KAAI;AAClB,IAAA,MAAM,SAAS,GAAGA,yBAAY,EAAE;IAChC,MAAM,UAAU,GAAG,aAAa;AAEhC,IAAA,MAAM,eAAe,GACnB,CAAC,KAAK,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,IAAI,CAAC,IAAI,QAAQ,GAAG,GAAG;IAC3E,MAAM,oBAAoB,GAAG,CAAC,QAAQ,IAAI,KAAK,IAAI,QAAQ,KAAK,GAAG;AAEnE,IAAA,QACEC,eAAA,CAACC,UAAI,IACH,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,CAAC,EACL,GAAG,EAAE,CA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,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
3
3
|
import { Fragment } from 'react';
|
|
4
4
|
import { Flex, Box } from '@chakra-ui/react';
|
|
5
|
-
import {
|
|
5
|
+
import { FileIcon, AlertCircleFilledIcon, CloseIcon, DownloadIcon, TrashIcon } from '../Icon/index.mjs';
|
|
6
6
|
import { IconButton } from '../IconButton/IconButton.mjs';
|
|
7
7
|
import '../IconButton/IconButton.styles.mjs';
|
|
8
8
|
import { ProgressBar } from '../ProgressBar/ProgressBar.mjs';
|
|
9
|
+
import '../Typography/Caption.mjs';
|
|
9
10
|
import '../Typography/H1.mjs';
|
|
10
11
|
import '../Typography/H2.mjs';
|
|
11
12
|
import '../Typography/H3.mjs';
|
|
@@ -34,7 +35,7 @@ const FileItem = ({ fileName, error, onFileDownload, onFileDelete, progress, fil
|
|
|
34
35
|
left: 0,
|
|
35
36
|
width: '3px',
|
|
36
37
|
backgroundColor: error ? errorColor : 'transparent',
|
|
37
|
-
}, ...rest, children: [jsxs(Flex, { w: "60%", alignItems: "center", gap: 2, children: [jsx(Box, { minW: 5, children: jsx(
|
|
38
|
+
}, ...rest, children: [jsxs(Flex, { w: "60%", alignItems: "center", gap: 2, children: [jsx(Box, { minW: 5, children: jsx(FileIcon, { color: error ? errorColor : 'fg.muted' }) }), jsx(Text, { truncate: true, color: error ? errorColor : undefined, children: fileName })] }), jsxs(Flex, { align: "center", gap: 2, flex: 1, children: [error ? (jsx(Flex, { w: "100%", justify: "flex-end", align: "center", gap: 2, children: jsx(Tooltip, { content: error, placement: "top", children: jsx(AlertCircleFilledIcon, { color: errorColor }) }) })) : (jsx(Box, { w: "100%", children: isUploadingFile && (jsxs(Flex, { align: "center", justify: "flex-end", gap: 2, children: [jsxs(Subtext, { children: [progress, "%"] }), jsx(ProgressBar, { w: "100%", minW: 3, maxW: 20, value: progress }), jsx(Spinner, { size: "xs" }), jsx(IconButton, { "aria-label": 'remove uploading file button', onClick: onFileDelete, size: "2xs", disabled: isDeleting, colorPalette: "neutral", variant: "ghost", children: jsx(CloseIcon, { color: "fg.subtle", boxSize: "md" }) })] })) })), !isUploadingFile && isFileUploadComplete && (jsxs(Fragment, { children: [fileSize && jsx(Subtitle, { mr: 4, children: formatFileSize(fileSize) }), onFileDownload && !error && (jsx(Fragment$1, { children: isDownloading ? (jsx(Tooltip, { content: translate('downloading'), placement: "top", children: jsx(Spinner, { size: "xs" }) })) : (jsx(Tooltip, { content: translate('download'), placement: "top", children: jsx(IconButton, { "aria-label": translate('download'), onClick: onFileDownload, size: "2xs", colorPalette: "neutral", variant: "ghost", children: jsx(DownloadIcon, { color: "fg.muted" }) }) })) })), onFileDelete && (jsx(Fragment$1, { children: isDeleting ? (jsx(Tooltip, { content: translate('deleting'), placement: "top", children: jsx(Spinner, { size: "xs" }) })) : (jsx(Tooltip, { content: translate('delete'), placement: "top", children: jsx(IconButton, { "aria-label": translate('delete'), onClick: onFileDelete, size: "2xs", colorPalette: "neutral", variant: "ghost", children: jsx(TrashIcon, { boxSize: "sm", color: "fg.muted" }) }) })) }))] }))] })] }));
|
|
38
39
|
};
|
|
39
40
|
FileItem.displayName = 'FileItem';
|
|
40
41
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileItem.mjs","sources":["../../../src/components/FileItem/FileItem.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","_Fragment"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileItem.mjs","sources":["../../../src/components/FileItem/FileItem.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","_Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoBO,MAAM,QAAQ,GAAG,CAAC,EACvB,QAAQ,EACR,KAAK,EACL,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,aAAa,GAAG,KAAK,E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A,QAAA,EACpDA,GAAA,CAAC,UAAU,EAAA,EAAA,YAAA,EACG,SAAS,CAAC,QAAQ,CAAW,EACzC,OAAO,EAAE,YAAY,EACrB,IAAI,EAAC,KAAK,EACV,YAAY,EAAC,SAAS,EACtB,OAAO,EAAC,OAAO,EAAA,QAAA,EAEfA,GAAA,CAAC,SAAS,IAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAC,UAAU,EAAA,CAAG,EAAA,CAChC,EAAA,CACL,CACX,EAAA,CACA,CACJ,IACQ,CACZ,CAAA,EAAA,CACI,CAAA,EAAA,CACF;AAEX;AAEA,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileGroupProps } from '@/components/FileList/FileList.types';
|
|
2
2
|
export declare const FileList: {
|
|
3
|
-
({ files, onFileDelete, onFileDownload, visibleCount, }: FileGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ files, onFileDelete, onFileDownload, visibleCount, stagger, }: FileGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=FileList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileList.d.ts","sourceRoot":"","sources":["../../../src/components/FileList/FileList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"FileList.d.ts","sourceRoot":"","sources":["../../../src/components/FileList/FileList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAMtE,eAAO,MAAM,QAAQ;sEAMlB,cAAc;;CAgGhB,CAAC"}
|
|
@@ -6,6 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var react = require('@chakra-ui/react');
|
|
7
7
|
var FileItem = require('../FileItem/FileItem.js');
|
|
8
8
|
var index = require('../Icon/index.js');
|
|
9
|
+
require('../Typography/Caption.js');
|
|
9
10
|
require('../Typography/H1.js');
|
|
10
11
|
require('../Typography/H2.js');
|
|
11
12
|
require('../Typography/H3.js');
|
|
@@ -17,8 +18,9 @@ require('../Typography/Subtext.js');
|
|
|
17
18
|
var Subtitle = require('../Typography/Subtitle.js');
|
|
18
19
|
require('../Typography/Text.js');
|
|
19
20
|
var useTranslate = require('../../hooks/useTranslate.js');
|
|
21
|
+
var staggerProps = require('../../utils/staggerProps.js');
|
|
20
22
|
|
|
21
|
-
const FileList = ({ files, onFileDelete, onFileDownload, visibleCount = 3, }) => {
|
|
23
|
+
const FileList = ({ files, onFileDelete, onFileDownload, visibleCount = 3, stagger = false, }) => {
|
|
22
24
|
const [currentVisibleCount, setCurrentVisibleCount] = React.useState(visibleCount ?? 3);
|
|
23
25
|
const [deletingFileIds, setDeletingFileIds] = React.useState(new Set());
|
|
24
26
|
const translate = useTranslate.useTranslate();
|
|
@@ -43,14 +45,20 @@ const FileList = ({ files, onFileDelete, onFileDownload, visibleCount = 3, }) =>
|
|
|
43
45
|
};
|
|
44
46
|
if (files?.length <= 0)
|
|
45
47
|
return null;
|
|
46
|
-
return (jsxRuntime.jsxs(react.Box, { w: "100%", border: "1px solid", borderColor: "border.subtle", borderRadius: "md", overflow: "hidden", children: [jsxRuntime.jsx(react.List.Root, { children: files?.slice(0, currentVisibleCount).map((file
|
|
48
|
+
return (jsxRuntime.jsxs(react.Box, { w: "100%", border: "1px solid", borderColor: "border.subtle", borderRadius: "md", overflow: "hidden", children: [jsxRuntime.jsx(react.List.Root, { children: files?.slice(0, currentVisibleCount).map((file, index) => (
|
|
49
|
+
// The stagger sits on the row, not on `FileItem`, so a row that is
|
|
50
|
+
// only revealed by "see more" animates in on its own index rather
|
|
51
|
+
// than inheriting the delay of the row above it.
|
|
52
|
+
jsxRuntime.jsx(react.List.Item, { listStyle: "none", ...(stagger ? staggerProps.staggerProps(index) : {}), children: jsxRuntime.jsx(FileItem.FileItem, { fileName: file.name, onFileDelete: onFileDelete ? () => handleFileDelete(file) : undefined, onFileDownload: onFileDownload && file.fileUrl
|
|
47
53
|
? () => onFileDownload?.(file)
|
|
48
54
|
: undefined, border: 0, borderBottom: "1px solid", borderBottomColor: "border.subtle", progress: file.progress, error: file.error, fileSize: file.size, isDeleting: deletingFileIds.has(file.id) }) }, file.id))) }), shouldShowLoadMoreButton && (jsxRuntime.jsxs(react.Button, { onClick: handleFileLoadMore, alignSelf: "stretch", w: "100%", variant: "ghost", display: "flex", gap: 1, css: {
|
|
49
55
|
all: 'unset',
|
|
50
56
|
display: 'flex',
|
|
57
|
+
width: '100%',
|
|
58
|
+
justifyContent: 'center',
|
|
51
59
|
gap: '0.25rem',
|
|
52
60
|
cursor: 'pointer',
|
|
53
|
-
}, children: [jsxRuntime.jsxs(Subtitle.Subtitle, { color: "fg.subtle", children: [translate('see_more'), " (", visibleCount, "/", files.length, ")"] }), jsxRuntime.jsx(index.
|
|
61
|
+
}, children: [jsxRuntime.jsxs(Subtitle.Subtitle, { color: "fg.subtle", children: [translate('see_more'), " (", visibleCount, "/", files.length, ")"] }), jsxRuntime.jsx(index.ChevronDownIcon, { color: "fg.subtle" })] }))] }));
|
|
54
62
|
};
|
|
55
63
|
FileList.displayName = 'FileList';
|
|
56
64
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileList.js","sources":["../../../src/components/FileList/FileList.tsx"],"sourcesContent":[null],"names":["useState","useTranslate","_jsxs","Box","_jsx","List","FileItem","Button","Subtitle","
|
|
1
|
+
{"version":3,"file":"FileList.js","sources":["../../../src/components/FileList/FileList.tsx"],"sourcesContent":[null],"names":["useState","useTranslate","_jsxs","Box","_jsx","List","staggerProps","FileItem","Button","Subtitle","ChevronDownIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MAUa,QAAQ,GAAG,CAAC,EACvB,KAAK,EACL,YAAY,EACZ,cAAc,EACd,YAAY,GAAG,CAAC,EAChB,OAAO,GAAG,KAA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EAAE,SAAS;AAClB,iBAAA,EAAA,QAAA,EAAA,CAEDN,eAAA,CAACO,iBAAQ,EAAA,EAAC,KAAK,EAAC,WAAW,EAAA,QAAA,EAAA,CACxB,SAAS,CAAC,UAAU,CAAC,EAAA,IAAA,EAAI,YAAY,EAAA,GAAA,EAAG,KAAK,CAAC,MAAM,EAAA,GAAA,CAAA,EAAA,CAC5C,EACXL,cAAA,CAACM,qBAAe,EAAA,EAAC,KAAK,EAAC,WAAW,EAAA,CAAG,CAAA,EAAA,CAC9B,CACV,CAAA,EAAA,CACG;AAEV;AAEA,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -3,7 +3,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { Box, List, Button } from '@chakra-ui/react';
|
|
5
5
|
import { FileItem } from '../FileItem/FileItem.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { ChevronDownIcon } from '../Icon/index.mjs';
|
|
7
|
+
import '../Typography/Caption.mjs';
|
|
7
8
|
import '../Typography/H1.mjs';
|
|
8
9
|
import '../Typography/H2.mjs';
|
|
9
10
|
import '../Typography/H3.mjs';
|
|
@@ -15,8 +16,9 @@ import '../Typography/Subtext.mjs';
|
|
|
15
16
|
import { Subtitle } from '../Typography/Subtitle.mjs';
|
|
16
17
|
import '../Typography/Text.mjs';
|
|
17
18
|
import { useTranslate } from '../../hooks/useTranslate.mjs';
|
|
19
|
+
import { staggerProps } from '../../utils/staggerProps.mjs';
|
|
18
20
|
|
|
19
|
-
const FileList = ({ files, onFileDelete, onFileDownload, visibleCount = 3, }) => {
|
|
21
|
+
const FileList = ({ files, onFileDelete, onFileDownload, visibleCount = 3, stagger = false, }) => {
|
|
20
22
|
const [currentVisibleCount, setCurrentVisibleCount] = useState(visibleCount ?? 3);
|
|
21
23
|
const [deletingFileIds, setDeletingFileIds] = useState(new Set());
|
|
22
24
|
const translate = useTranslate();
|
|
@@ -41,14 +43,20 @@ const FileList = ({ files, onFileDelete, onFileDownload, visibleCount = 3, }) =>
|
|
|
41
43
|
};
|
|
42
44
|
if (files?.length <= 0)
|
|
43
45
|
return null;
|
|
44
|
-
return (jsxs(Box, { w: "100%", border: "1px solid", borderColor: "border.subtle", borderRadius: "md", overflow: "hidden", children: [jsx(List.Root, { children: files?.slice(0, currentVisibleCount).map((file
|
|
46
|
+
return (jsxs(Box, { w: "100%", border: "1px solid", borderColor: "border.subtle", borderRadius: "md", overflow: "hidden", children: [jsx(List.Root, { children: files?.slice(0, currentVisibleCount).map((file, index) => (
|
|
47
|
+
// The stagger sits on the row, not on `FileItem`, so a row that is
|
|
48
|
+
// only revealed by "see more" animates in on its own index rather
|
|
49
|
+
// than inheriting the delay of the row above it.
|
|
50
|
+
jsx(List.Item, { listStyle: "none", ...(stagger ? staggerProps(index) : {}), children: jsx(FileItem, { fileName: file.name, onFileDelete: onFileDelete ? () => handleFileDelete(file) : undefined, onFileDownload: onFileDownload && file.fileUrl
|
|
45
51
|
? () => onFileDownload?.(file)
|
|
46
52
|
: undefined, border: 0, borderBottom: "1px solid", borderBottomColor: "border.subtle", progress: file.progress, error: file.error, fileSize: file.size, isDeleting: deletingFileIds.has(file.id) }) }, file.id))) }), shouldShowLoadMoreButton && (jsxs(Button, { onClick: handleFileLoadMore, alignSelf: "stretch", w: "100%", variant: "ghost", display: "flex", gap: 1, css: {
|
|
47
53
|
all: 'unset',
|
|
48
54
|
display: 'flex',
|
|
55
|
+
width: '100%',
|
|
56
|
+
justifyContent: 'center',
|
|
49
57
|
gap: '0.25rem',
|
|
50
58
|
cursor: 'pointer',
|
|
51
|
-
}, children: [jsxs(Subtitle, { color: "fg.subtle", children: [translate('see_more'), " (", visibleCount, "/", files.length, ")"] }), jsx(
|
|
59
|
+
}, children: [jsxs(Subtitle, { color: "fg.subtle", children: [translate('see_more'), " (", visibleCount, "/", files.length, ")"] }), jsx(ChevronDownIcon, { color: "fg.subtle" })] }))] }));
|
|
52
60
|
};
|
|
53
61
|
FileList.displayName = 'FileList';
|
|
54
62
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileList.mjs","sources":["../../../src/components/FileList/FileList.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileList.mjs","sources":["../../../src/components/FileList/FileList.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;MAUa,QAAQ,GAAG,CAAC,EACvB,KAAK,EACL,YAAY,EACZ,cAAc,EACd,YAAY,GAAG,CAAC,EAChB,OAAO,GAAG,KAAK,GACA,KAAI;AACnB,IAAA,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAC5D,YAAY,IAAI,CAAC,CAClB;AACD,IAAA,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CACpD,IAAI,GAAG,EAAE,CACV;AACD,IAAA,MAAM,SAAS,GAAG,YAAY,EAAE;IAChC,MAAM,wBAAwB,GAAG,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,mBAAmB;IAE5E,MAAM,kBAAkB,GAAG,MAAK;QAC9B,sBAAsB,CAAC,CAAC,IAAI,KAAK,IAAI,GAAG,CAAC,CAAC;AAC5C,IAAA,CAAC;AAED,IAAA,MAAM,gBAAgB,GAAG,OAAO,IAAgC,KAAI;QAClE,IAAI,CAAC,YAAY,IAAI,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAAE;AAEnD,QAAA,kBAAkB,CAAC,CAAC,IAAI,KAAK,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAExD,QAAA,IAAI;AACF,YAAA,MAAM,YAAY,CAAC,IAAI,CAAC;QAC1B;gBAAU;AACR,YAAA,kBAAkB,CAAC,CAAC,IAAI,KAAI;AAC1B,gBAAA,MAAM,MAA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ACb,CAAC,EAAA,CACQ,EACX,wBAAwB,KACvBD,IAAA,CAAC,MAAM,IACL,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAC,SAAS,EACnB,CAAC,EAAC,MAAM,EACR,OAAO,EAAC,OAAO,EACf,OAAO,EAAC,MAAM,EACd,GAAG,EAAE,CAAC,EACN,GAAG,EAAE;AACH,oBAAA,GAAG,EAAE,OAAO;AACZ,oBAAA,OAAO,EAAE,MAAM;AACf,oBAAA,KAAK,EAAE,MAAM;AACb,oBAAA,cAAc,EAAE,QAAQ;AACxB,oBAAA,GAAG,EAAE,SAAS;AACd,oBAAA,MAAM,EAAE,SAAS;AAClB,iBAAA,EAAA,QAAA,EAAA,CAEDA,IAAA,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAC,WAAW,EAAA,QAAA,EAAA,CACxB,SAAS,CAAC,UAAU,CAAC,EAAA,IAAA,EAAI,YAAY,EAAA,GAAA,EAAG,KAAK,CAAC,MAAM,EAAA,GAAA,CAAA,EAAA,CAC5C,EACXC,GAAA,CAAC,eAAe,EAAA,EAAC,KAAK,EAAC,WAAW,EAAA,CAAG,CAAA,EAAA,CAC9B,CACV,CAAA,EAAA,CACG;AAEV;AAEA,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -14,5 +14,14 @@ export interface FileGroupProps {
|
|
|
14
14
|
onFileDelete?: (file: FileItemData) => void;
|
|
15
15
|
onFileDownload?: (file: FileItemData) => void;
|
|
16
16
|
visibleCount?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Deal the rows in one after another as they mount — on first render, and
|
|
19
|
+
* again for each batch revealed by "see more".
|
|
20
|
+
*
|
|
21
|
+
* Opt-in because a file list is often *edited* rather than displayed: a list
|
|
22
|
+
* the reader is uploading into wants each new row to arrive on its own, not
|
|
23
|
+
* behind six others.
|
|
24
|
+
*/
|
|
25
|
+
stagger?: boolean;
|
|
17
26
|
}
|
|
18
27
|
//# sourceMappingURL=FileList.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileList.types.d.ts","sourceRoot":"","sources":["../../../src/components/FileList/FileList.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"FileList.types.d.ts","sourceRoot":"","sources":["../../../src/components/FileList/FileList.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FlyToProps } from './FlyTo.types';
|
|
2
|
+
/**
|
|
3
|
+
* Sends a ghost arcing from one rect to another — "this went there". A reward
|
|
4
|
+
* chip flying into a balance, a file into a folder, a row into a bin.
|
|
5
|
+
*
|
|
6
|
+
* Mount it to fly; it calls `onDone` on landing and the caller unmounts it. The
|
|
7
|
+
* caller owns the lifecycle because only the caller knows what the flight
|
|
8
|
+
* means: a reward that landed has to update a balance, and that has to happen
|
|
9
|
+
* when the ghost arrives rather than when it left.
|
|
10
|
+
*
|
|
11
|
+
* **JavaScript measures; CSS animates.** The two rects are only knowable at
|
|
12
|
+
* runtime, so the distance is computed here — but it is handed to the keyframe
|
|
13
|
+
* as three custom properties, and the arc itself runs on the compositor with no
|
|
14
|
+
* frame loop and no animation library. FactChat's version drives the same arc
|
|
15
|
+
* through framer-motion's `animate` arrays; the flight is identical and the
|
|
16
|
+
* dependency is not needed.
|
|
17
|
+
*
|
|
18
|
+
* Under reduced motion nothing flies and `onDone` fires on the next tick, so
|
|
19
|
+
* whatever the flight was sequencing still completes.
|
|
20
|
+
*
|
|
21
|
+
* **Adds nothing where you write it.** Unlike the wrapping primitives here, the
|
|
22
|
+
* ghost renders into a portal and is positioned against the viewport, so mounting
|
|
23
|
+
* it never moves the layout it was written into — and it is free to fly across
|
|
24
|
+
* ancestors that clip or scroll.
|
|
25
|
+
*
|
|
26
|
+
* ```tsx
|
|
27
|
+
* {flight && (
|
|
28
|
+
* <FlyTo from={flight.from} to={flight.to} onDone={clearFlight}>
|
|
29
|
+
* <RewardChip credit={flight.reward} />
|
|
30
|
+
* </FlyTo>
|
|
31
|
+
* )}
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const FlyTo: import("react").ForwardRefExoticComponent<FlyToProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
|
+
//# sourceMappingURL=FlyTo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlyTo.d.ts","sourceRoot":"","sources":["../../../src/components/FlyTo/FlyTo.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,KAAK,uGA+CjB,CAAC"}
|