@seed-design/react 1.2.8 → 1.2.10
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/lib/_virtual/_rolldown/runtime.cjs +34 -0
- package/lib/_virtual/_rolldown/runtime.js +14 -0
- package/lib/components/ActionButton/ActionButton.cjs +46 -72
- package/lib/components/ActionButton/ActionButton.js +43 -49
- package/lib/components/ActionButton/index.cjs +3 -9
- package/lib/components/ActionButton/index.js +2 -1
- package/lib/components/ActionChip/ActionChip.cjs +13 -16
- package/lib/components/ActionChip/ActionChip.js +12 -12
- package/lib/components/ActionChip/index.cjs +3 -9
- package/lib/components/ActionChip/index.js +2 -1
- package/lib/components/ActionSheet/ActionSheet.cjs +61 -56
- package/lib/components/ActionSheet/ActionSheet.js +60 -52
- package/lib/components/ActionSheet/ActionSheet.namespace.cjs +23 -19
- package/lib/components/ActionSheet/ActionSheet.namespace.js +18 -1
- package/lib/components/ActionSheet/index.cjs +20 -21
- package/lib/components/ActionSheet/index.js +3 -3
- package/lib/components/Article/Article.cjs +19 -44
- package/lib/components/Article/Article.js +16 -21
- package/lib/components/Article/index.cjs +3 -9
- package/lib/components/Article/index.js +2 -1
- package/lib/components/AspectRatio/AspectRatio.cjs +27 -54
- package/lib/components/AspectRatio/AspectRatio.js +24 -31
- package/lib/components/AspectRatio/index.cjs +3 -9
- package/lib/components/AspectRatio/index.js +2 -1
- package/lib/components/Avatar/Avatar.cjs +35 -52
- package/lib/components/Avatar/Avatar.js +33 -30
- package/lib/components/Avatar/Avatar.namespace.cjs +17 -13
- package/lib/components/Avatar/Avatar.namespace.js +12 -1
- package/lib/components/Avatar/index.cjs +14 -15
- package/lib/components/Avatar/index.js +3 -3
- package/lib/components/Badge/Badge.cjs +23 -19
- package/lib/components/Badge/Badge.js +21 -15
- package/lib/components/Badge/index.cjs +3 -9
- package/lib/components/Badge/index.js +2 -1
- package/lib/components/BottomSheet/BottomSheet.cjs +31 -58
- package/lib/components/BottomSheet/BottomSheet.js +30 -54
- package/lib/components/BottomSheet/BottomSheet.namespace.cjs +25 -21
- package/lib/components/BottomSheet/BottomSheet.namespace.js +20 -2
- package/lib/components/BottomSheet/index.cjs +20 -21
- package/lib/components/BottomSheet/index.js +3 -3
- package/lib/components/BottomSheetHandle/BottomSheetHandle.cjs +24 -19
- package/lib/components/BottomSheetHandle/BottomSheetHandle.js +21 -15
- package/lib/components/BottomSheetHandle/index.cjs +3 -9
- package/lib/components/BottomSheetHandle/index.js +2 -1
- package/lib/components/Box/Box.cjs +26 -38
- package/lib/components/Box/Box.js +23 -15
- package/lib/components/Box/index.cjs +3 -9
- package/lib/components/Box/index.js +2 -1
- package/lib/components/Callout/Callout.cjs +15 -33
- package/lib/components/Callout/Callout.js +14 -29
- package/lib/components/Callout/Callout.namespace.cjs +18 -14
- package/lib/components/Callout/Callout.namespace.js +13 -1
- package/lib/components/Callout/index.cjs +15 -16
- package/lib/components/Callout/index.js +3 -3
- package/lib/components/Celsius/Celsius.cjs +5 -8
- package/lib/components/Celsius/Celsius.js +5 -4
- package/lib/components/Celsius/index.cjs +3 -9
- package/lib/components/Celsius/index.js +2 -1
- package/lib/components/Checkbox/Checkbox.cjs +70 -93
- package/lib/components/Checkbox/Checkbox.js +68 -89
- package/lib/components/Checkbox/Checkbox.namespace.cjs +18 -14
- package/lib/components/Checkbox/Checkbox.namespace.js +13 -1
- package/lib/components/Checkbox/index.cjs +15 -16
- package/lib/components/Checkbox/index.js +3 -3
- package/lib/components/Chip/Chip.cjs +24 -39
- package/lib/components/Chip/Chip.js +23 -35
- package/lib/components/Chip/Chip.namespace.cjs +17 -13
- package/lib/components/Chip/Chip.namespace.js +12 -1
- package/lib/components/Chip/index.cjs +14 -15
- package/lib/components/Chip/index.js +3 -3
- package/lib/components/ChipTabs/ChipTabs.cjs +30 -53
- package/lib/components/ChipTabs/ChipTabs.js +28 -49
- package/lib/components/ChipTabs/ChipTabs.namespace.cjs +18 -14
- package/lib/components/ChipTabs/ChipTabs.namespace.js +13 -1
- package/lib/components/ChipTabs/index.cjs +15 -16
- package/lib/components/ChipTabs/index.js +3 -3
- package/lib/components/Columns/Columns.cjs +34 -55
- package/lib/components/Columns/Columns.js +32 -32
- package/lib/components/Columns/index.cjs +4 -10
- package/lib/components/Columns/index.js +2 -1
- package/lib/components/ConsistentWidth/ConsistentWidth.cjs +17 -22
- package/lib/components/ConsistentWidth/ConsistentWidth.js +15 -18
- package/lib/components/ConsistentWidth/index.cjs +3 -9
- package/lib/components/ConsistentWidth/index.js +2 -1
- package/lib/components/ContentPlaceholder/ContentPlaceholder.cjs +43 -54
- package/lib/components/ContentPlaceholder/ContentPlaceholder.js +42 -32
- package/lib/components/ContentPlaceholder/ContentPlaceholder.namespace.cjs +14 -10
- package/lib/components/ContentPlaceholder/ContentPlaceholder.namespace.js +9 -1
- package/lib/components/ContentPlaceholder/index.cjs +11 -12
- package/lib/components/ContentPlaceholder/index.js +3 -3
- package/lib/components/ContentPlaceholder/presets.cjs +121 -76
- package/lib/components/ContentPlaceholder/presets.js +120 -72
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.cjs +36 -51
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.js +33 -28
- package/lib/components/ContextualFloatingButton/index.cjs +3 -9
- package/lib/components/ContextualFloatingButton/index.js +2 -1
- package/lib/components/ControlChip/ControlChip.cjs +13 -16
- package/lib/components/ControlChip/ControlChip.js +12 -12
- package/lib/components/ControlChip/index.cjs +3 -9
- package/lib/components/ControlChip/index.js +2 -1
- package/lib/components/Count/Count.cjs +16 -14
- package/lib/components/Count/Count.js +14 -10
- package/lib/components/Count/index.cjs +3 -9
- package/lib/components/Count/index.js +2 -1
- package/lib/components/Dialog/Dialog.cjs +24 -44
- package/lib/components/Dialog/Dialog.js +23 -40
- package/lib/components/Dialog/Dialog.namespace.cjs +22 -18
- package/lib/components/Dialog/Dialog.namespace.js +17 -1
- package/lib/components/Dialog/index.cjs +19 -20
- package/lib/components/Dialog/index.js +3 -3
- package/lib/components/Divider/Divider.cjs +32 -68
- package/lib/components/Divider/Divider.js +30 -45
- package/lib/components/Divider/index.cjs +3 -9
- package/lib/components/Divider/index.js +2 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +65 -43
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +64 -39
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.cjs +24 -20
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.js +19 -1
- package/lib/components/ExtendedActionSheet/index.cjs +21 -22
- package/lib/components/ExtendedActionSheet/index.js +3 -3
- package/lib/components/ExtendedFab/ExtendedFab.cjs +15 -17
- package/lib/components/ExtendedFab/ExtendedFab.js +14 -13
- package/lib/components/ExtendedFab/index.cjs +3 -9
- package/lib/components/ExtendedFab/index.js +2 -1
- package/lib/components/Fab/Fab.cjs +12 -12
- package/lib/components/Fab/Fab.js +11 -8
- package/lib/components/Fab/index.cjs +3 -9
- package/lib/components/Fab/index.js +2 -1
- package/lib/components/Field/Field.cjs +62 -107
- package/lib/components/Field/Field.js +60 -103
- package/lib/components/Field/Field.namespace.cjs +21 -17
- package/lib/components/Field/Field.namespace.js +16 -1
- package/lib/components/Field/index.cjs +18 -19
- package/lib/components/Field/index.js +3 -3
- package/lib/components/FieldButton/FieldButton.cjs +94 -177
- package/lib/components/FieldButton/FieldButton.js +91 -154
- package/lib/components/FieldButton/FieldButton.namespace.cjs +30 -26
- package/lib/components/FieldButton/FieldButton.namespace.js +25 -1
- package/lib/components/FieldButton/index.cjs +27 -28
- package/lib/components/FieldButton/index.js +3 -3
- package/lib/components/Fieldset/Fieldset.cjs +40 -78
- package/lib/components/Fieldset/Fieldset.js +38 -74
- package/lib/components/Fieldset/Fieldset.namespace.cjs +20 -16
- package/lib/components/Fieldset/Fieldset.namespace.js +15 -1
- package/lib/components/Fieldset/index.cjs +17 -18
- package/lib/components/Fieldset/index.js +3 -3
- package/lib/components/Flex/Flex.cjs +21 -45
- package/lib/components/Flex/Flex.js +19 -22
- package/lib/components/Flex/index.cjs +3 -9
- package/lib/components/Flex/index.js +2 -1
- package/lib/components/Float/Float.cjs +70 -104
- package/lib/components/Float/Float.js +68 -81
- package/lib/components/Float/index.cjs +3 -9
- package/lib/components/Float/index.js +2 -1
- package/lib/components/FloatingActionButton/FloatingActionButton.cjs +12 -15
- package/lib/components/FloatingActionButton/FloatingActionButton.js +11 -11
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.cjs +15 -11
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.js +10 -1
- package/lib/components/FloatingActionButton/index.cjs +12 -13
- package/lib/components/FloatingActionButton/index.js +3 -3
- package/lib/components/Grid/Grid.cjs +27 -54
- package/lib/components/Grid/Grid.js +25 -31
- package/lib/components/Grid/index.cjs +3 -9
- package/lib/components/Grid/index.js +2 -1
- package/lib/components/GridItem/GridItem.cjs +22 -40
- package/lib/components/GridItem/GridItem.js +20 -17
- package/lib/components/GridItem/index.cjs +3 -9
- package/lib/components/GridItem/index.js +2 -1
- package/lib/components/HelpBubble/HelpBubble.cjs +52 -85
- package/lib/components/HelpBubble/HelpBubble.js +50 -81
- package/lib/components/HelpBubble/HelpBubble.namespace.cjs +24 -20
- package/lib/components/HelpBubble/HelpBubble.namespace.js +19 -1
- package/lib/components/HelpBubble/index.cjs +21 -22
- package/lib/components/HelpBubble/index.js +3 -3
- package/lib/components/Icon/Icon.cjs +99 -120
- package/lib/components/Icon/Icon.js +98 -116
- package/lib/components/Icon/index.cjs +5 -11
- package/lib/components/Icon/index.js +2 -1
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.cjs +50 -71
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.js +48 -48
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.cjs +14 -10
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.js +9 -1
- package/lib/components/IdentityPlaceholder/index.cjs +11 -12
- package/lib/components/IdentityPlaceholder/index.js +3 -3
- package/lib/components/ImageFrame/ImageFrame.cjs +155 -171
- package/lib/components/ImageFrame/ImageFrame.d.ts +1 -1
- package/lib/components/ImageFrame/ImageFrame.js +152 -148
- package/lib/components/ImageFrame/index.cjs +8 -14
- package/lib/components/ImageFrame/index.js +2 -1
- package/lib/components/Inline/Inline.cjs +21 -42
- package/lib/components/Inline/Inline.js +19 -19
- package/lib/components/Inline/index.cjs +3 -9
- package/lib/components/Inline/index.js +2 -1
- package/lib/components/InlineBanner/InlineBanner.cjs +33 -36
- package/lib/components/InlineBanner/InlineBanner.js +32 -32
- package/lib/components/InlineBanner/InlineBanner.namespace.cjs +18 -14
- package/lib/components/InlineBanner/InlineBanner.namespace.js +13 -1
- package/lib/components/InlineBanner/index.cjs +15 -16
- package/lib/components/InlineBanner/index.js +3 -3
- package/lib/components/LinkContent/LinkContent.cjs +13 -15
- package/lib/components/LinkContent/LinkContent.js +12 -11
- package/lib/components/LinkContent/index.cjs +3 -9
- package/lib/components/LinkContent/index.js +2 -1
- package/lib/components/List/List.cjs +46 -63
- package/lib/components/List/List.js +45 -59
- package/lib/components/List/List.namespace.cjs +19 -15
- package/lib/components/List/List.namespace.js +14 -1
- package/lib/components/List/ListHeader.cjs +18 -18
- package/lib/components/List/ListHeader.js +16 -14
- package/lib/components/List/index.cjs +18 -19
- package/lib/components/List/index.js +4 -4
- package/lib/components/LoadingIndicator/LoadingIndicator.cjs +24 -26
- package/lib/components/LoadingIndicator/LoadingIndicator.js +23 -22
- package/lib/components/LoadingIndicator/index.cjs +3 -9
- package/lib/components/LoadingIndicator/index.js +2 -1
- package/lib/components/LoadingIndicator/usePendingButton.cjs +22 -46
- package/lib/components/LoadingIndicator/usePendingButton.js +20 -23
- package/lib/components/MannerTemp/MannerTemp.cjs +20 -18
- package/lib/components/MannerTemp/MannerTemp.js +19 -14
- package/lib/components/MannerTemp/MannerTempEmote.cjs +130 -96
- package/lib/components/MannerTemp/MannerTempEmote.js +129 -92
- package/lib/components/MannerTemp/index.cjs +5 -11
- package/lib/components/MannerTemp/index.js +3 -2
- package/lib/components/MannerTempBadge/MannerTempBadge.cjs +9 -12
- package/lib/components/MannerTempBadge/MannerTempBadge.js +8 -8
- package/lib/components/MannerTempBadge/index.cjs +3 -9
- package/lib/components/MannerTempBadge/index.js +2 -1
- package/lib/components/MenuSheet/MenuSheet.cjs +80 -138
- package/lib/components/MenuSheet/MenuSheet.js +77 -115
- package/lib/components/MenuSheet/MenuSheet.namespace.cjs +28 -24
- package/lib/components/MenuSheet/MenuSheet.namespace.js +23 -1
- package/lib/components/MenuSheet/index.cjs +25 -26
- package/lib/components/MenuSheet/index.js +3 -3
- package/lib/components/NotificationBadge/NotificationBadge.cjs +29 -41
- package/lib/components/NotificationBadge/NotificationBadge.js +27 -19
- package/lib/components/NotificationBadge/index.cjs +4 -10
- package/lib/components/NotificationBadge/index.js +2 -1
- package/lib/components/PageBanner/PageBanner.cjs +32 -51
- package/lib/components/PageBanner/PageBanner.js +30 -47
- package/lib/components/PageBanner/PageBanner.namespace.cjs +19 -15
- package/lib/components/PageBanner/PageBanner.namespace.js +14 -1
- package/lib/components/PageBanner/index.cjs +16 -17
- package/lib/components/PageBanner/index.js +3 -3
- package/lib/components/Portal/index.cjs +7 -10
- package/lib/components/Portal/index.js +2 -1
- package/lib/components/ProgressCircle/ProgressCircle.cjs +11 -23
- package/lib/components/ProgressCircle/ProgressCircle.js +10 -19
- package/lib/components/ProgressCircle/ProgressCircle.namespace.cjs +15 -11
- package/lib/components/ProgressCircle/ProgressCircle.namespace.js +10 -1
- package/lib/components/ProgressCircle/index.cjs +12 -13
- package/lib/components/ProgressCircle/index.js +3 -3
- package/lib/components/PullToRefresh/PullToRefresh.cjs +11 -20
- package/lib/components/PullToRefresh/PullToRefresh.js +10 -16
- package/lib/components/PullToRefresh/PullToRefresh.namespace.cjs +16 -15
- package/lib/components/PullToRefresh/PullToRefresh.namespace.js +12 -2
- package/lib/components/PullToRefresh/index.cjs +18 -16
- package/lib/components/PullToRefresh/index.js +4 -4
- package/lib/components/RadioGroup/RadioGroup.cjs +69 -75
- package/lib/components/RadioGroup/RadioGroup.js +67 -71
- package/lib/components/RadioGroup/RadioGroup.namespace.cjs +18 -14
- package/lib/components/RadioGroup/RadioGroup.namespace.js +13 -1
- package/lib/components/RadioGroup/index.cjs +15 -16
- package/lib/components/RadioGroup/index.js +3 -3
- package/lib/components/RadioGroupField/RadioGroupField.cjs +40 -69
- package/lib/components/RadioGroupField/RadioGroupField.js +38 -65
- package/lib/components/RadioGroupField/RadioGroupField.namespace.cjs +20 -16
- package/lib/components/RadioGroupField/RadioGroupField.namespace.js +15 -1
- package/lib/components/RadioGroupField/index.cjs +17 -18
- package/lib/components/RadioGroupField/index.js +3 -3
- package/lib/components/ReactionButton/ReactionButton.cjs +28 -47
- package/lib/components/ReactionButton/ReactionButton.js +25 -24
- package/lib/components/ReactionButton/index.cjs +3 -9
- package/lib/components/ReactionButton/index.js +2 -1
- package/lib/components/ResponsivePair/ResponsivePair.cjs +34 -57
- package/lib/components/ResponsivePair/ResponsivePair.js +32 -34
- package/lib/components/ResponsivePair/index.cjs +3 -9
- package/lib/components/ResponsivePair/index.js +2 -1
- package/lib/components/ScrollFog/ScrollFog.cjs +49 -61
- package/lib/components/ScrollFog/ScrollFog.js +47 -57
- package/lib/components/ScrollFog/index.cjs +3 -9
- package/lib/components/ScrollFog/index.js +2 -1
- package/lib/components/SegmentedControl/SegmentedControl.cjs +13 -22
- package/lib/components/SegmentedControl/SegmentedControl.js +12 -18
- package/lib/components/SegmentedControl/SegmentedControl.namespace.cjs +16 -12
- package/lib/components/SegmentedControl/SegmentedControl.namespace.js +11 -1
- package/lib/components/SegmentedControl/index.cjs +13 -14
- package/lib/components/SegmentedControl/index.js +3 -3
- package/lib/components/SelectBox/CheckSelectBox.cjs +115 -134
- package/lib/components/SelectBox/CheckSelectBox.js +113 -130
- package/lib/components/SelectBox/CheckSelectBox.namespace.cjs +23 -19
- package/lib/components/SelectBox/CheckSelectBox.namespace.js +18 -1
- package/lib/components/SelectBox/RadioSelectBox.cjs +109 -128
- package/lib/components/SelectBox/RadioSelectBox.js +107 -124
- package/lib/components/SelectBox/RadioSelectBox.namespace.cjs +21 -17
- package/lib/components/SelectBox/RadioSelectBox.namespace.js +16 -1
- package/lib/components/SelectBox/index.cjs +37 -33
- package/lib/components/SelectBox/index.js +5 -6
- package/lib/components/Skeleton/Skeleton.cjs +10 -13
- package/lib/components/Skeleton/Skeleton.js +9 -9
- package/lib/components/Skeleton/index.cjs +3 -9
- package/lib/components/Skeleton/index.js +2 -1
- package/lib/components/Slider/Slider.cjs +69 -90
- package/lib/components/Slider/Slider.js +67 -86
- package/lib/components/Slider/Slider.namespace.cjs +25 -21
- package/lib/components/Slider/Slider.namespace.js +20 -1
- package/lib/components/Slider/index.cjs +22 -23
- package/lib/components/Slider/index.js +3 -3
- package/lib/components/Snackbar/Snackbar.cjs +38 -55
- package/lib/components/Snackbar/Snackbar.d.ts +1 -1
- package/lib/components/Snackbar/Snackbar.d.ts.map +1 -1
- package/lib/components/Snackbar/Snackbar.js +37 -51
- package/lib/components/Snackbar/Snackbar.namespace.cjs +22 -18
- package/lib/components/Snackbar/Snackbar.namespace.js +17 -1
- package/lib/components/Snackbar/index.cjs +26 -24
- package/lib/components/Snackbar/index.js +5 -5
- package/lib/components/Snackbar/useSnackbarAdapter.cjs +23 -26
- package/lib/components/Snackbar/useSnackbarAdapter.d.ts.map +1 -1
- package/lib/components/Snackbar/useSnackbarAdapter.js +22 -22
- package/lib/components/Stack/Stack.cjs +32 -35
- package/lib/components/Stack/Stack.js +30 -12
- package/lib/components/Stack/index.cjs +5 -11
- package/lib/components/Stack/index.js +2 -1
- package/lib/components/Switch/Switch.cjs +45 -63
- package/lib/components/Switch/Switch.js +42 -59
- package/lib/components/Switch/Switch.namespace.cjs +17 -13
- package/lib/components/Switch/Switch.namespace.js +12 -1
- package/lib/components/Switch/index.cjs +14 -15
- package/lib/components/Switch/index.js +3 -3
- package/lib/components/Tabs/Tabs.cjs +15 -33
- package/lib/components/Tabs/Tabs.js +14 -29
- package/lib/components/Tabs/Tabs.namespace.cjs +20 -19
- package/lib/components/Tabs/Tabs.namespace.js +16 -2
- package/lib/components/Tabs/index.cjs +22 -20
- package/lib/components/Tabs/index.js +4 -4
- package/lib/components/TagGroup/TagGroup.cjs +54 -51
- package/lib/components/TagGroup/TagGroup.js +52 -47
- package/lib/components/TagGroup/TagGroup.namespace.cjs +15 -11
- package/lib/components/TagGroup/TagGroup.namespace.js +10 -1
- package/lib/components/TagGroup/index.cjs +12 -13
- package/lib/components/TagGroup/index.js +3 -3
- package/lib/components/Text/Text.cjs +49 -85
- package/lib/components/Text/Text.js +47 -81
- package/lib/components/Text/index.cjs +3 -9
- package/lib/components/Text/index.js +2 -1
- package/lib/components/TextField/TextField.cjs +82 -122
- package/lib/components/TextField/TextField.js +80 -118
- package/lib/components/TextField/TextField.namespace.cjs +19 -15
- package/lib/components/TextField/TextField.namespace.js +14 -1
- package/lib/components/TextField/index.cjs +18 -19
- package/lib/components/TextField/index.js +4 -4
- package/lib/components/TextField/memoize.cjs +10 -15
- package/lib/components/TextField/memoize.js +10 -11
- package/lib/components/TextField/useTextFieldWithGraphemes.cjs +40 -50
- package/lib/components/TextField/useTextFieldWithGraphemes.js +39 -46
- package/lib/components/ToggleButton/ToggleButton.cjs +31 -47
- package/lib/components/ToggleButton/ToggleButton.js +28 -24
- package/lib/components/ToggleButton/index.cjs +3 -9
- package/lib/components/ToggleButton/index.js +2 -1
- package/lib/components/VisuallyHidden/VisuallyHidden.cjs +18 -14
- package/lib/components/VisuallyHidden/VisuallyHidden.js +17 -10
- package/lib/components/VisuallyHidden/index.cjs +3 -9
- package/lib/components/VisuallyHidden/index.js +2 -1
- package/lib/components/index.cjs +626 -458
- package/lib/components/index.js +110 -142
- package/lib/components/private/Icon.cjs +15 -15
- package/lib/components/private/Icon.js +14 -11
- package/lib/components/private/useDismissible.cjs +54 -73
- package/lib/components/private/useDismissible.js +53 -48
- package/lib/index.cjs +626 -458
- package/lib/index.js +110 -142
- package/lib/primitive.cjs +73 -55
- package/lib/primitive.js +12 -12
- package/lib/utils/createRecipeContext.cjs +46 -37
- package/lib/utils/createRecipeContext.js +44 -33
- package/lib/utils/createSlotRecipeContext.cjs +91 -74
- package/lib/utils/createSlotRecipeContext.js +89 -70
- package/lib/utils/createWithStateProps.cjs +23 -25
- package/lib/utils/createWithStateProps.js +22 -21
- package/lib/utils/splitMultipleVariantsProps.cjs +16 -29
- package/lib/utils/splitMultipleVariantsProps.js +16 -25
- package/lib/utils/styled.cjs +144 -279
- package/lib/utils/styled.js +144 -275
- package/lib/vars.cjs +7 -11
- package/lib/vars.js +1 -1
- package/package.json +5 -5
- package/src/components/ImageFrame/ImageFrame.tsx +1 -1
- package/src/components/Snackbar/useSnackbarAdapter.ts +2 -1
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports
|
|
19
|
-
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_ActionSheet = require("./ActionSheet.cjs");
|
|
3
|
+
//#region src/components/ActionSheet/ActionSheet.namespace.ts
|
|
4
|
+
var ActionSheet_namespace_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
5
|
+
Backdrop: () => require_ActionSheet.ActionSheetBackdrop,
|
|
6
|
+
CloseButton: () => require_ActionSheet.ActionSheetCloseButton,
|
|
7
|
+
Content: () => require_ActionSheet.ActionSheetContent,
|
|
8
|
+
Description: () => require_ActionSheet.ActionSheetDescription,
|
|
9
|
+
Header: () => require_ActionSheet.ActionSheetHeader,
|
|
10
|
+
Item: () => require_ActionSheet.ActionSheetItem,
|
|
11
|
+
List: () => require_ActionSheet.ActionSheetList,
|
|
12
|
+
Positioner: () => require_ActionSheet.ActionSheetPositioner,
|
|
13
|
+
Root: () => require_ActionSheet.ActionSheetRoot,
|
|
14
|
+
Title: () => require_ActionSheet.ActionSheetTitle,
|
|
15
|
+
Trigger: () => require_ActionSheet.ActionSheetTrigger
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
Object.defineProperty(exports, "ActionSheet_namespace_exports", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function() {
|
|
21
|
+
return ActionSheet_namespace_exports;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger } from "./ActionSheet.js";
|
|
3
|
+
//#region src/components/ActionSheet/ActionSheet.namespace.ts
|
|
4
|
+
var ActionSheet_namespace_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
Backdrop: () => ActionSheetBackdrop,
|
|
6
|
+
CloseButton: () => ActionSheetCloseButton,
|
|
7
|
+
Content: () => ActionSheetContent,
|
|
8
|
+
Description: () => ActionSheetDescription,
|
|
9
|
+
Header: () => ActionSheetHeader,
|
|
10
|
+
Item: () => ActionSheetItem,
|
|
11
|
+
List: () => ActionSheetList,
|
|
12
|
+
Positioner: () => ActionSheetPositioner,
|
|
13
|
+
Root: () => ActionSheetRoot,
|
|
14
|
+
Title: () => ActionSheetTitle,
|
|
15
|
+
Trigger: () => ActionSheetTrigger
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ActionSheet_namespace_exports };
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.ActionSheetBackdrop =
|
|
11
|
-
exports.ActionSheetCloseButton =
|
|
12
|
-
exports.ActionSheetContent =
|
|
13
|
-
exports.ActionSheetDescription =
|
|
14
|
-
exports.ActionSheetHeader =
|
|
15
|
-
exports.ActionSheetItem =
|
|
16
|
-
exports.ActionSheetList =
|
|
17
|
-
exports.ActionSheetPositioner =
|
|
18
|
-
exports.ActionSheetRoot =
|
|
19
|
-
exports.ActionSheetTitle =
|
|
20
|
-
exports.ActionSheetTrigger =
|
|
21
|
-
exports.ActionSheet = ActionSheet_namespace;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_ActionSheet = require("./ActionSheet.cjs");
|
|
3
|
+
const require_ActionSheet_namespace = require("./ActionSheet.namespace.cjs");
|
|
4
|
+
Object.defineProperty(exports, "ActionSheet", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: function() {
|
|
7
|
+
return require_ActionSheet_namespace.ActionSheet_namespace_exports;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
exports.ActionSheetBackdrop = require_ActionSheet.ActionSheetBackdrop;
|
|
11
|
+
exports.ActionSheetCloseButton = require_ActionSheet.ActionSheetCloseButton;
|
|
12
|
+
exports.ActionSheetContent = require_ActionSheet.ActionSheetContent;
|
|
13
|
+
exports.ActionSheetDescription = require_ActionSheet.ActionSheetDescription;
|
|
14
|
+
exports.ActionSheetHeader = require_ActionSheet.ActionSheetHeader;
|
|
15
|
+
exports.ActionSheetItem = require_ActionSheet.ActionSheetItem;
|
|
16
|
+
exports.ActionSheetList = require_ActionSheet.ActionSheetList;
|
|
17
|
+
exports.ActionSheetPositioner = require_ActionSheet.ActionSheetPositioner;
|
|
18
|
+
exports.ActionSheetRoot = require_ActionSheet.ActionSheetRoot;
|
|
19
|
+
exports.ActionSheetTitle = require_ActionSheet.ActionSheetTitle;
|
|
20
|
+
exports.ActionSheetTrigger = require_ActionSheet.ActionSheetTrigger;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
export {
|
|
1
|
+
import { ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger } from "./ActionSheet.js";
|
|
2
|
+
import { ActionSheet_namespace_exports } from "./ActionSheet.namespace.js";
|
|
3
|
+
export { ActionSheet_namespace_exports as ActionSheet, ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger };
|
|
@@ -1,45 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
get: () => e[k]
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
n.default = e;
|
|
26
|
-
return Object.freeze(n);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
30
|
-
|
|
31
|
-
const Article = React__namespace.forwardRef(
|
|
32
|
-
({ as = "article", className, ...props }, ref) => {
|
|
33
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
-
Box.Box,
|
|
35
|
-
{
|
|
36
|
-
as,
|
|
37
|
-
ref,
|
|
38
|
-
className: clsx(article.article(), className),
|
|
39
|
-
...props
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_Box = require("../Box/Box.cjs");
|
|
4
|
+
let clsx = require("clsx");
|
|
5
|
+
clsx = require_runtime.__toESM(clsx);
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_runtime.__toESM(react);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let _seed_design_css_recipes_article = require("@seed-design/css/recipes/article");
|
|
10
|
+
//#region src/components/Article/Article.tsx
|
|
11
|
+
var Article = react.forwardRef(({ as = "article", className, ...props }, ref) => {
|
|
12
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
|
|
13
|
+
as,
|
|
14
|
+
ref,
|
|
15
|
+
className: (0, clsx.default)((0, _seed_design_css_recipes_article.article)(), className),
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
45
20
|
exports.Article = Article;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { article } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { Box } from "../Box/Box.js";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { article } from "@seed-design/css/recipes/article";
|
|
7
|
+
//#region src/components/Article/Article.tsx
|
|
8
|
+
var Article = React$1.forwardRef(({ as = "article", className, ...props }, ref) => {
|
|
9
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
10
|
+
as,
|
|
11
|
+
ref,
|
|
12
|
+
className: clsx$1(article(), className),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
22
17
|
export { Article };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const Article = require('./Article.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.Article = Article.Article;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_Article = require("./Article.cjs");
|
|
3
|
+
exports.Article = require_Article.Article;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Article } from "./Article.js";
|
|
2
|
+
export { Article };
|
|
@@ -1,56 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
30
|
-
|
|
31
|
-
const AspectRatio = React__namespace.forwardRef(
|
|
32
|
-
({ ratio = 4 / 3, children, className, style, ...rest }, ref) => {
|
|
33
|
-
const child = React__namespace.Children.only(children);
|
|
34
|
-
const aspectRatio$1 = aspectRatio.aspectRatio();
|
|
35
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
-
Box.Box,
|
|
37
|
-
{
|
|
38
|
-
ref,
|
|
39
|
-
className: clsx(aspectRatio$1, className),
|
|
40
|
-
position: "relative",
|
|
41
|
-
overflowX: "hidden",
|
|
42
|
-
overflowY: "hidden",
|
|
43
|
-
style: {
|
|
44
|
-
// NOTE: aspectRatio는 iOS 15+부터 지원하기 때문에 padding으로 ratio hack을 사용합니다.
|
|
45
|
-
"--seed-aspect-ratio-padding": `${1 / ratio * 100}%`,
|
|
46
|
-
...style
|
|
47
|
-
},
|
|
48
|
-
...rest,
|
|
49
|
-
children: child
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
);
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_Box = require("../Box/Box.cjs");
|
|
4
|
+
let clsx = require("clsx");
|
|
5
|
+
clsx = require_runtime.__toESM(clsx);
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_runtime.__toESM(react);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let _seed_design_css_recipes_aspect_ratio = require("@seed-design/css/recipes/aspect-ratio");
|
|
10
|
+
//#region src/components/AspectRatio/AspectRatio.tsx
|
|
11
|
+
var AspectRatio = react.forwardRef(({ ratio = 4 / 3, children, className, style, ...rest }, ref) => {
|
|
12
|
+
const child = react.Children.only(children);
|
|
13
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
|
|
14
|
+
ref,
|
|
15
|
+
className: (0, clsx.default)((0, _seed_design_css_recipes_aspect_ratio.aspectRatio)(), className),
|
|
16
|
+
position: "relative",
|
|
17
|
+
overflowX: "hidden",
|
|
18
|
+
overflowY: "hidden",
|
|
19
|
+
style: {
|
|
20
|
+
"--seed-aspect-ratio-padding": `${1 / ratio * 100}%`,
|
|
21
|
+
...style
|
|
22
|
+
},
|
|
23
|
+
...rest,
|
|
24
|
+
children: child
|
|
25
|
+
});
|
|
26
|
+
});
|
|
54
27
|
AspectRatio.displayName = "AspectRatio";
|
|
55
|
-
|
|
28
|
+
//#endregion
|
|
56
29
|
exports.AspectRatio = AspectRatio;
|
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
...rest,
|
|
26
|
-
children: child
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
);
|
|
1
|
+
"use client";
|
|
2
|
+
import { Box } from "../Box/Box.js";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { aspectRatio } from "@seed-design/css/recipes/aspect-ratio";
|
|
7
|
+
//#region src/components/AspectRatio/AspectRatio.tsx
|
|
8
|
+
var AspectRatio = React$1.forwardRef(({ ratio = 4 / 3, children, className, style, ...rest }, ref) => {
|
|
9
|
+
const child = React$1.Children.only(children);
|
|
10
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
11
|
+
ref,
|
|
12
|
+
className: clsx$1(aspectRatio(), className),
|
|
13
|
+
position: "relative",
|
|
14
|
+
overflowX: "hidden",
|
|
15
|
+
overflowY: "hidden",
|
|
16
|
+
style: {
|
|
17
|
+
"--seed-aspect-ratio-padding": `${1 / ratio * 100}%`,
|
|
18
|
+
...style
|
|
19
|
+
},
|
|
20
|
+
...rest,
|
|
21
|
+
children: child
|
|
22
|
+
});
|
|
23
|
+
});
|
|
31
24
|
AspectRatio.displayName = "AspectRatio";
|
|
32
|
-
|
|
25
|
+
//#endregion
|
|
33
26
|
export { AspectRatio };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const AspectRatio = require('./AspectRatio.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.AspectRatio = AspectRatio.AspectRatio;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_AspectRatio = require("./AspectRatio.cjs");
|
|
3
|
+
exports.AspectRatio = require_AspectRatio.AspectRatio;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { AspectRatio } from "./AspectRatio.js";
|
|
2
|
+
export { AspectRatio };
|
|
@@ -1,55 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
const AvatarImage = withContext(reactImage.Image.Content, "image");
|
|
37
|
-
const AvatarFallback = withContext(
|
|
38
|
-
reactImage.Image.Fallback,
|
|
39
|
-
"fallback"
|
|
40
|
-
);
|
|
41
|
-
const AvatarBadge = withContext(reactPrimitive.Primitive.div, "badge");
|
|
42
|
-
const AvatarStack = React__namespace.forwardRef(
|
|
43
|
-
({ className, children, size, ...otherProps }, ref) => {
|
|
44
|
-
const classNames = avatarStack.avatarStack({ size });
|
|
45
|
-
const avatars = React__namespace.Children.toArray(children);
|
|
46
|
-
return /* @__PURE__ */ jsxRuntime.jsx(PropsProvider, { value: React.useMemo(() => ({ size }), [size]), children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: clsx(classNames.root, className), ...otherProps, children: avatars.map((avatar2, index) => (
|
|
47
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: There is no unique key for each child
|
|
48
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames.item, children: avatar2 }, index)
|
|
49
|
-
)) }) });
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
+
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
5
|
+
let clsx = require("clsx");
|
|
6
|
+
clsx = require_runtime.__toESM(clsx);
|
|
7
|
+
let react = require("react");
|
|
8
|
+
react = require_runtime.__toESM(react);
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let _seed_design_react_image = require("@seed-design/react-image");
|
|
11
|
+
let _seed_design_css_recipes_avatar = require("@seed-design/css/recipes/avatar");
|
|
12
|
+
let _seed_design_css_recipes_avatar_stack = require("@seed-design/css/recipes/avatar-stack");
|
|
13
|
+
//#region src/components/Avatar/Avatar.tsx
|
|
14
|
+
var { PropsProvider, withProvider, withContext } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_avatar.avatar);
|
|
15
|
+
var AvatarRoot = withProvider(_seed_design_react_image.Image.Root, "root");
|
|
16
|
+
var AvatarImage = withContext(_seed_design_react_image.Image.Content, "image");
|
|
17
|
+
var AvatarFallback = withContext(_seed_design_react_image.Image.Fallback, "fallback");
|
|
18
|
+
var AvatarBadge = withContext(_seed_design_react_primitive.Primitive.div, "badge");
|
|
19
|
+
var AvatarStack = react.forwardRef(({ className, children, size, ...otherProps }, ref) => {
|
|
20
|
+
const classNames = (0, _seed_design_css_recipes_avatar_stack.avatarStack)({ size });
|
|
21
|
+
const avatars = react.Children.toArray(children);
|
|
22
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PropsProvider, {
|
|
23
|
+
value: (0, react.useMemo)(() => ({ size }), [size]),
|
|
24
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
25
|
+
ref,
|
|
26
|
+
className: (0, clsx.default)(classNames.root, className),
|
|
27
|
+
...otherProps,
|
|
28
|
+
children: avatars.map((avatar, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
29
|
+
className: classNames.item,
|
|
30
|
+
children: avatar
|
|
31
|
+
}, index))
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
53
36
|
exports.AvatarBadge = AvatarBadge;
|
|
54
37
|
exports.AvatarFallback = AvatarFallback;
|
|
55
38
|
exports.AvatarImage = AvatarImage;
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
);
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
)
|
|
30
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import * as React$1 from "react";
|
|
6
|
+
import { useMemo } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { Image } from "@seed-design/react-image";
|
|
9
|
+
import { avatar } from "@seed-design/css/recipes/avatar";
|
|
10
|
+
import { avatarStack } from "@seed-design/css/recipes/avatar-stack";
|
|
11
|
+
//#region src/components/Avatar/Avatar.tsx
|
|
12
|
+
var { PropsProvider, withProvider, withContext } = createSlotRecipeContext(avatar);
|
|
13
|
+
var AvatarRoot = withProvider(Image.Root, "root");
|
|
14
|
+
var AvatarImage = withContext(Image.Content, "image");
|
|
15
|
+
var AvatarFallback = withContext(Image.Fallback, "fallback");
|
|
16
|
+
var AvatarBadge = withContext(Primitive.div, "badge");
|
|
17
|
+
var AvatarStack = React$1.forwardRef(({ className, children, size, ...otherProps }, ref) => {
|
|
18
|
+
const classNames = avatarStack({ size });
|
|
19
|
+
const avatars = React$1.Children.toArray(children);
|
|
20
|
+
return /* @__PURE__ */ jsx(PropsProvider, {
|
|
21
|
+
value: useMemo(() => ({ size }), [size]),
|
|
22
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
23
|
+
ref,
|
|
24
|
+
className: clsx$1(classNames.root, className),
|
|
25
|
+
...otherProps,
|
|
26
|
+
children: avatars.map((avatar, index) => /* @__PURE__ */ jsx("div", {
|
|
27
|
+
className: classNames.item,
|
|
28
|
+
children: avatar
|
|
29
|
+
}, index))
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
31
34
|
export { AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack };
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports
|
|
13
|
-
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_Avatar = require("./Avatar.cjs");
|
|
3
|
+
//#region src/components/Avatar/Avatar.namespace.ts
|
|
4
|
+
var Avatar_namespace_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
5
|
+
Badge: () => require_Avatar.AvatarBadge,
|
|
6
|
+
Fallback: () => require_Avatar.AvatarFallback,
|
|
7
|
+
Image: () => require_Avatar.AvatarImage,
|
|
8
|
+
Root: () => require_Avatar.AvatarRoot,
|
|
9
|
+
Stack: () => require_Avatar.AvatarStack
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
Object.defineProperty(exports, "Avatar_namespace_exports", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return Avatar_namespace_exports;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack } from "./Avatar.js";
|
|
3
|
+
//#region src/components/Avatar/Avatar.namespace.ts
|
|
4
|
+
var Avatar_namespace_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
Badge: () => AvatarBadge,
|
|
6
|
+
Fallback: () => AvatarFallback,
|
|
7
|
+
Image: () => AvatarImage,
|
|
8
|
+
Root: () => AvatarRoot,
|
|
9
|
+
Stack: () => AvatarStack
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Avatar_namespace_exports };
|