@seed-design/react 0.0.1-rc.2 → 0.0.1-rc.3
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/components/ActionButton/ActionButton.cjs +57 -0
- package/lib/components/ActionButton/ActionButton.d.ts +3 -3
- package/lib/components/ActionButton/ActionButton.js +34 -0
- package/lib/components/ActionButton/index.cjs +9 -0
- package/lib/components/ActionButton/index.d.ts +1 -1
- package/lib/components/ActionButton/index.js +1 -0
- package/lib/components/ActionChip/ActionChip.cjs +17 -0
- package/lib/components/ActionChip/ActionChip.d.ts +2 -2
- package/lib/components/ActionChip/ActionChip.js +13 -0
- package/lib/components/ActionChip/index.cjs +9 -0
- package/lib/components/ActionChip/index.d.ts +1 -1
- package/lib/components/ActionChip/index.js +1 -0
- package/lib/components/ActionSheet/ActionSheet.cjs +66 -0
- package/lib/components/ActionSheet/ActionSheet.d.ts +4 -4
- package/lib/components/ActionSheet/ActionSheet.js +52 -0
- package/lib/components/ActionSheet/ActionSheet.namespace.cjs +19 -0
- package/lib/components/ActionSheet/ActionSheet.namespace.d.ts +1 -1
- package/lib/components/ActionSheet/ActionSheet.namespace.js +1 -0
- package/lib/components/ActionSheet/index.cjs +21 -0
- package/lib/components/ActionSheet/index.d.ts +2 -2
- package/lib/components/ActionSheet/index.js +3 -0
- package/lib/components/Avatar/Avatar.cjs +62 -0
- package/lib/components/Avatar/Avatar.d.ts +4 -4
- package/lib/components/Avatar/Avatar.js +36 -0
- package/lib/components/Avatar/Avatar.namespace.cjs +13 -0
- package/lib/components/Avatar/Avatar.namespace.d.ts +1 -1
- package/lib/components/Avatar/Avatar.namespace.js +1 -0
- package/lib/components/Avatar/index.cjs +15 -0
- package/lib/components/Avatar/index.d.ts +2 -2
- package/lib/components/Avatar/index.js +3 -0
- package/lib/components/Badge/Badge.cjs +12 -0
- package/lib/components/Badge/Badge.d.ts +2 -2
- package/lib/components/Badge/Badge.js +8 -0
- package/lib/components/Badge/index.cjs +9 -0
- package/lib/components/Badge/index.d.ts +1 -1
- package/lib/components/Badge/index.js +1 -0
- package/lib/components/BottomSheet/BottomSheet.cjs +65 -0
- package/lib/components/BottomSheet/BottomSheet.d.ts +16 -15
- package/lib/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/components/BottomSheet/BottomSheet.js +51 -0
- package/lib/components/BottomSheet/BottomSheet.namespace.cjs +19 -0
- package/lib/components/BottomSheet/BottomSheet.namespace.d.ts +1 -1
- package/lib/components/BottomSheet/BottomSheet.namespace.js +1 -0
- package/lib/components/BottomSheet/index.cjs +21 -0
- package/lib/components/BottomSheet/index.d.ts +2 -2
- package/lib/components/BottomSheet/index.js +3 -0
- package/lib/components/Box/Box.cjs +35 -0
- package/lib/components/Box/Box.d.ts +1 -1
- package/lib/components/Box/Box.js +12 -0
- package/lib/components/Box/index.cjs +9 -0
- package/lib/components/Box/index.d.ts +1 -1
- package/lib/components/Box/index.js +1 -0
- package/lib/components/Callout/Callout.cjs +38 -0
- package/lib/components/Callout/Callout.d.ts +3 -3
- package/lib/components/Callout/Callout.js +29 -0
- package/lib/components/Callout/Callout.namespace.cjs +14 -0
- package/lib/components/Callout/Callout.namespace.d.ts +1 -1
- package/lib/components/Callout/Callout.namespace.js +1 -0
- package/lib/components/Callout/index.cjs +16 -0
- package/lib/components/Callout/index.d.ts +2 -2
- package/lib/components/Callout/index.js +3 -0
- package/lib/components/Celcius/Celcius.cjs +9 -0
- package/lib/components/Celcius/Celcius.js +5 -0
- package/lib/components/Celcius/index.cjs +9 -0
- package/lib/components/Celcius/index.d.ts +1 -1
- package/lib/components/Celcius/index.js +1 -0
- package/lib/components/Checkbox/Checkbox.cjs +61 -0
- package/lib/components/Checkbox/Checkbox.d.ts +9 -8
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +53 -0
- package/lib/components/Checkbox/Checkbox.namespace.cjs +13 -0
- package/lib/components/Checkbox/Checkbox.namespace.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.namespace.js +1 -0
- package/lib/components/Checkbox/index.cjs +15 -0
- package/lib/components/Checkbox/index.d.ts +2 -2
- package/lib/components/Checkbox/index.js +3 -0
- package/lib/components/ChipTabs/ChipTabs.cjs +40 -0
- package/lib/components/ChipTabs/ChipTabs.d.ts +9 -8
- package/lib/components/ChipTabs/ChipTabs.d.ts.map +1 -1
- package/lib/components/ChipTabs/ChipTabs.js +31 -0
- package/lib/components/ChipTabs/ChipTabs.namespace.cjs +14 -0
- package/lib/components/ChipTabs/ChipTabs.namespace.d.ts +1 -1
- package/lib/components/ChipTabs/ChipTabs.namespace.js +1 -0
- package/lib/components/ChipTabs/index.cjs +16 -0
- package/lib/components/ChipTabs/index.d.ts +2 -2
- package/lib/components/ChipTabs/index.js +3 -0
- package/lib/components/Columns/Columns.cjs +58 -0
- package/lib/components/Columns/Columns.d.ts +1 -1
- package/lib/components/Columns/Columns.js +34 -0
- package/lib/components/Columns/index.cjs +10 -0
- package/lib/components/Columns/index.d.ts +1 -1
- package/lib/components/Columns/index.js +1 -0
- package/lib/components/ConsistentWidth/ConsistentWidth.cjs +23 -0
- package/lib/components/ConsistentWidth/ConsistentWidth.d.ts +3 -2
- package/lib/components/ConsistentWidth/ConsistentWidth.d.ts.map +1 -1
- package/lib/components/ConsistentWidth/ConsistentWidth.js +19 -0
- package/lib/components/ConsistentWidth/index.cjs +9 -0
- package/lib/components/ConsistentWidth/index.d.ts +1 -1
- package/lib/components/ConsistentWidth/index.js +1 -0
- package/lib/components/ControlChip/ControlChip.cjs +16 -0
- package/lib/components/ControlChip/ControlChip.d.ts +2 -2
- package/lib/components/ControlChip/ControlChip.js +12 -0
- package/lib/components/ControlChip/index.cjs +9 -0
- package/lib/components/ControlChip/index.d.ts +1 -1
- package/lib/components/ControlChip/index.js +1 -0
- package/lib/components/Count/Count.cjs +15 -0
- package/lib/components/Count/Count.d.ts +2 -1
- package/lib/components/Count/Count.d.ts.map +1 -1
- package/lib/components/Count/Count.js +11 -0
- package/lib/components/Count/index.cjs +9 -0
- package/lib/components/Count/index.d.ts +1 -1
- package/lib/components/Count/index.d.ts.map +1 -1
- package/lib/components/Count/index.js +1 -0
- package/lib/components/Dialog/Dialog.cjs +58 -0
- package/lib/components/Dialog/Dialog.d.ts +14 -13
- package/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.js +45 -0
- package/lib/components/Dialog/Dialog.namespace.cjs +18 -0
- package/lib/components/Dialog/Dialog.namespace.d.ts +1 -1
- package/lib/components/Dialog/Dialog.namespace.js +1 -0
- package/lib/components/Dialog/index.cjs +20 -0
- package/lib/components/Dialog/index.d.ts +2 -2
- package/lib/components/Dialog/index.js +3 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +53 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts +4 -4
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +38 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.cjs +20 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts +1 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.js +1 -0
- package/lib/components/ExtendedActionSheet/index.cjs +22 -0
- package/lib/components/ExtendedActionSheet/index.d.ts +2 -2
- package/lib/components/ExtendedActionSheet/index.js +3 -0
- package/lib/components/ExtendedFab/ExtendedFab.cjs +21 -0
- package/lib/components/ExtendedFab/ExtendedFab.d.ts +4 -3
- package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +1 -1
- package/lib/components/ExtendedFab/ExtendedFab.js +17 -0
- package/lib/components/ExtendedFab/index.cjs +9 -0
- package/lib/components/ExtendedFab/index.d.ts +1 -1
- package/lib/components/ExtendedFab/index.js +1 -0
- package/lib/components/Fab/Fab.cjs +12 -0
- package/lib/components/Fab/Fab.d.ts +2 -2
- package/lib/components/Fab/Fab.js +8 -0
- package/lib/components/Fab/index.cjs +9 -0
- package/lib/components/Fab/index.d.ts +1 -1
- package/lib/components/Fab/index.js +1 -0
- package/lib/components/Flex/Flex.cjs +33 -0
- package/lib/components/Flex/Flex.d.ts +1 -1
- package/lib/components/Flex/Flex.js +10 -0
- package/lib/components/Flex/index.cjs +9 -0
- package/lib/components/Flex/index.d.ts +1 -1
- package/lib/components/Flex/index.js +1 -0
- package/lib/components/HelpBubble/HelpBubble.cjs +93 -0
- package/lib/components/HelpBubble/HelpBubble.d.ts +16 -15
- package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.js +79 -0
- package/lib/components/HelpBubble/HelpBubble.namespace.cjs +19 -0
- package/lib/components/HelpBubble/HelpBubble.namespace.d.ts +1 -1
- package/lib/components/HelpBubble/HelpBubble.namespace.js +1 -0
- package/lib/components/HelpBubble/index.cjs +21 -0
- package/lib/components/HelpBubble/index.d.ts +2 -2
- package/lib/components/HelpBubble/index.js +3 -0
- package/lib/components/Icon/Icon.cjs +118 -0
- package/lib/components/Icon/Icon.d.ts +5 -4
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/Icon/Icon.js +110 -0
- package/lib/components/Icon/index.cjs +11 -0
- package/lib/components/Icon/index.d.ts +1 -1
- package/lib/components/Icon/index.d.ts.map +1 -1
- package/lib/components/Icon/index.js +1 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.cjs +62 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.d.ts +2 -2
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.js +38 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.cjs +10 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.d.ts +1 -1
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.js +1 -0
- package/lib/components/IdentityPlaceholder/index.cjs +12 -0
- package/lib/components/IdentityPlaceholder/index.d.ts +2 -2
- package/lib/components/IdentityPlaceholder/index.js +3 -0
- package/lib/components/Inline/Inline.cjs +43 -0
- package/lib/components/Inline/Inline.d.ts +1 -1
- package/lib/components/Inline/Inline.js +20 -0
- package/lib/components/Inline/index.cjs +9 -0
- package/lib/components/Inline/index.d.ts +1 -1
- package/lib/components/Inline/index.js +1 -0
- package/lib/components/InlineBanner/InlineBanner.cjs +41 -0
- package/lib/components/InlineBanner/InlineBanner.d.ts +3 -3
- package/lib/components/InlineBanner/InlineBanner.js +32 -0
- package/lib/components/InlineBanner/InlineBanner.namespace.cjs +14 -0
- package/lib/components/InlineBanner/InlineBanner.namespace.d.ts +1 -1
- package/lib/components/InlineBanner/InlineBanner.namespace.js +1 -0
- package/lib/components/InlineBanner/index.cjs +16 -0
- package/lib/components/InlineBanner/index.d.ts +2 -2
- package/lib/components/InlineBanner/index.js +3 -0
- package/lib/components/LinkContent/LinkContent.cjs +16 -0
- package/lib/components/LinkContent/LinkContent.d.ts +8 -0
- package/lib/components/LinkContent/LinkContent.d.ts.map +1 -0
- package/lib/components/LinkContent/LinkContent.js +12 -0
- package/lib/components/LinkContent/index.cjs +9 -0
- package/lib/components/LinkContent/index.d.ts +2 -0
- package/lib/components/LinkContent/index.d.ts.map +1 -0
- package/lib/components/LinkContent/index.js +1 -0
- package/lib/components/LoadingIndicator/LoadingIndicator.cjs +27 -0
- package/lib/components/LoadingIndicator/LoadingIndicator.d.ts +2 -1
- package/lib/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
- package/lib/components/LoadingIndicator/LoadingIndicator.js +23 -0
- package/lib/components/LoadingIndicator/index.cjs +9 -0
- package/lib/components/LoadingIndicator/index.d.ts +1 -1
- package/lib/components/LoadingIndicator/index.js +1 -0
- package/lib/components/LoadingIndicator/usePendingButton.cjs +51 -0
- package/lib/components/LoadingIndicator/usePendingButton.js +26 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.cjs +15 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.d.ts +2 -2
- package/lib/components/MannerTempBadge/MannerTempBadge.js +11 -0
- package/lib/components/MannerTempBadge/index.cjs +9 -0
- package/lib/components/MannerTempBadge/index.d.ts +1 -1
- package/lib/components/MannerTempBadge/index.js +1 -0
- package/lib/components/ProgressCircle/ProgressCircle.cjs +25 -0
- package/lib/components/ProgressCircle/ProgressCircle.d.ts +6 -5
- package/lib/components/ProgressCircle/ProgressCircle.d.ts.map +1 -1
- package/lib/components/ProgressCircle/ProgressCircle.js +19 -0
- package/lib/components/ProgressCircle/ProgressCircle.namespace.cjs +11 -0
- package/lib/components/ProgressCircle/ProgressCircle.namespace.d.ts +1 -1
- package/lib/components/ProgressCircle/ProgressCircle.namespace.js +1 -0
- package/lib/components/ProgressCircle/index.cjs +13 -0
- package/lib/components/ProgressCircle/index.d.ts +2 -2
- package/lib/components/ProgressCircle/index.js +3 -0
- package/lib/components/PullToRefresh/PullToRefresh.cjs +22 -0
- package/lib/components/PullToRefresh/PullToRefresh.d.ts +6 -5
- package/lib/components/PullToRefresh/PullToRefresh.d.ts.map +1 -1
- package/lib/components/PullToRefresh/PullToRefresh.js +16 -0
- package/lib/components/PullToRefresh/PullToRefresh.namespace.cjs +11 -0
- package/lib/components/PullToRefresh/PullToRefresh.namespace.d.ts +1 -1
- package/lib/components/PullToRefresh/PullToRefresh.namespace.js +1 -0
- package/lib/components/PullToRefresh/index.cjs +13 -0
- package/lib/components/PullToRefresh/index.d.ts +2 -2
- package/lib/components/PullToRefresh/index.js +3 -0
- package/lib/components/ReactionButton/ReactionButton.cjs +50 -0
- package/lib/components/ReactionButton/ReactionButton.d.ts +3 -3
- package/lib/components/ReactionButton/ReactionButton.js +27 -0
- package/lib/components/ReactionButton/index.cjs +9 -0
- package/lib/components/ReactionButton/index.d.ts +1 -1
- package/lib/components/ReactionButton/index.js +1 -0
- package/lib/components/SegmentedControl/SegmentedControl.cjs +25 -0
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +8 -7
- package/lib/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.js +18 -0
- package/lib/components/SegmentedControl/SegmentedControl.namespace.cjs +12 -0
- package/lib/components/SegmentedControl/SegmentedControl.namespace.d.ts +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.namespace.js +1 -0
- package/lib/components/SegmentedControl/index.cjs +14 -0
- package/lib/components/SegmentedControl/index.d.ts +2 -2
- package/lib/components/SegmentedControl/index.js +3 -0
- package/lib/components/SelectBox/CheckSelectBox.cjs +52 -0
- package/lib/components/SelectBox/CheckSelectBox.d.ts +12 -11
- package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/CheckSelectBox.js +41 -0
- package/lib/components/SelectBox/CheckSelectBox.namespace.cjs +16 -0
- package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts +1 -1
- package/lib/components/SelectBox/CheckSelectBox.namespace.js +1 -0
- package/lib/components/SelectBox/RadioSelectBox.cjs +50 -0
- package/lib/components/SelectBox/RadioSelectBox.d.ts +12 -11
- package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/RadioSelectBox.js +39 -0
- package/lib/components/SelectBox/RadioSelectBox.namespace.cjs +16 -0
- package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts +1 -1
- package/lib/components/SelectBox/RadioSelectBox.namespace.js +1 -0
- package/lib/components/SelectBox/index.cjs +29 -0
- package/lib/components/SelectBox/index.d.ts +4 -4
- package/lib/components/SelectBox/index.js +6 -0
- package/lib/components/Skeleton/Skeleton.cjs +16 -0
- package/lib/components/Skeleton/Skeleton.d.ts +3 -3
- package/lib/components/Skeleton/Skeleton.js +12 -0
- package/lib/components/Skeleton/index.cjs +9 -0
- package/lib/components/Skeleton/index.d.ts +1 -1
- package/lib/components/Skeleton/index.js +1 -0
- package/lib/components/Snackbar/Snackbar.cjs +64 -0
- package/lib/components/Snackbar/Snackbar.d.ts +13 -12
- package/lib/components/Snackbar/Snackbar.d.ts.map +1 -1
- package/lib/components/Snackbar/Snackbar.js +52 -0
- package/lib/components/Snackbar/Snackbar.namespace.cjs +17 -0
- package/lib/components/Snackbar/Snackbar.namespace.d.ts +1 -1
- package/lib/components/Snackbar/Snackbar.namespace.js +1 -0
- package/lib/components/Snackbar/index.cjs +26 -0
- package/lib/components/Snackbar/index.d.ts +4 -4
- package/lib/components/Snackbar/index.js +5 -0
- package/lib/components/Snackbar/useSnackbarAdapter.cjs +28 -0
- package/lib/components/Snackbar/useSnackbarAdapter.d.ts +1 -1
- package/lib/components/Snackbar/useSnackbarAdapter.js +24 -0
- package/lib/components/Stack/Stack.cjs +32 -0
- package/lib/components/Stack/Stack.d.ts +1 -1
- package/lib/components/Stack/Stack.js +9 -0
- package/lib/components/Stack/index.cjs +9 -0
- package/lib/components/Stack/index.d.ts +1 -1
- package/lib/components/Stack/index.js +1 -0
- package/lib/components/Switch/Switch.cjs +35 -0
- package/lib/components/Switch/Switch.d.ts +9 -8
- package/lib/components/Switch/Switch.d.ts.map +1 -1
- package/lib/components/Switch/Switch.js +27 -0
- package/lib/components/Switch/Switch.namespace.cjs +13 -0
- package/lib/components/Switch/Switch.namespace.d.ts +1 -1
- package/lib/components/Switch/Switch.namespace.js +1 -0
- package/lib/components/Switch/index.cjs +15 -0
- package/lib/components/Switch/index.d.ts +2 -2
- package/lib/components/Switch/index.js +3 -0
- package/lib/components/Tabs/Tabs.cjs +49 -0
- package/lib/components/Tabs/Tabs.d.ts +4 -4
- package/lib/components/Tabs/Tabs.js +38 -0
- package/lib/components/Tabs/Tabs.namespace.cjs +16 -0
- package/lib/components/Tabs/Tabs.namespace.d.ts +1 -1
- package/lib/components/Tabs/Tabs.namespace.js +1 -0
- package/lib/components/Tabs/index.cjs +18 -0
- package/lib/components/Tabs/index.d.ts +2 -2
- package/lib/components/Tabs/index.js +3 -0
- package/lib/components/Text/Text.cjs +85 -0
- package/lib/components/Text/Text.d.ts +2 -2
- package/lib/components/Text/Text.js +81 -0
- package/lib/components/Text/index.cjs +9 -0
- package/lib/components/Text/index.d.ts +1 -1
- package/lib/components/Text/index.d.ts.map +1 -1
- package/lib/components/Text/index.js +1 -0
- package/lib/components/TextField/TextField.cjs +150 -0
- package/lib/components/TextField/TextField.d.ts +4 -4
- package/lib/components/TextField/TextField.js +129 -0
- package/lib/components/TextField/TextField.namespace.cjs +26 -0
- package/lib/components/TextField/TextField.namespace.d.ts +1 -1
- package/lib/components/TextField/TextField.namespace.d.ts.map +1 -1
- package/lib/components/TextField/TextField.namespace.js +1 -0
- package/lib/components/TextField/index.cjs +28 -0
- package/lib/components/TextField/index.d.ts +2 -2
- package/lib/components/TextField/index.d.ts.map +1 -1
- package/lib/components/TextField/index.js +3 -0
- package/lib/components/ToggleButton/ToggleButton.cjs +50 -0
- package/lib/components/ToggleButton/ToggleButton.d.ts +3 -3
- package/lib/components/ToggleButton/ToggleButton.js +27 -0
- package/lib/components/ToggleButton/index.cjs +9 -0
- package/lib/components/ToggleButton/index.d.ts +1 -1
- package/lib/components/ToggleButton/index.js +1 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.cjs +15 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/lib/components/VisuallyHidden/VisuallyHidden.js +11 -0
- package/lib/components/VisuallyHidden/index.cjs +9 -0
- package/lib/components/VisuallyHidden/index.d.ts +1 -1
- package/lib/components/VisuallyHidden/index.d.ts.map +1 -1
- package/lib/components/VisuallyHidden/index.js +1 -0
- package/lib/components/index.cjs +274 -0
- package/lib/components/index.d.ts +42 -42
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +85 -0
- package/lib/components/private/Icon.cjs +15 -0
- package/lib/components/private/Icon.d.ts +2 -1
- package/lib/components/private/Icon.d.ts.map +1 -1
- package/lib/components/private/Icon.js +11 -0
- package/lib/components/private/useDismissible.cjs +78 -0
- package/lib/components/private/useDismissible.d.ts +1 -1
- package/lib/components/private/useDismissible.js +51 -0
- package/lib/index.cjs +274 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +85 -2174
- package/lib/primitive.cjs +84 -0
- package/lib/primitive.d.ts +11 -11
- package/lib/primitive.js +11 -31
- package/lib/utils/createStyleContext.cjs +76 -0
- package/lib/utils/createStyleContext.js +72 -0
- package/lib/utils/createWithStateProps.cjs +23 -0
- package/lib/utils/createWithStateProps.d.ts +2 -1
- package/lib/utils/createWithStateProps.d.ts.map +1 -1
- package/lib/utils/createWithStateProps.js +19 -0
- package/lib/utils/styled.cjs +190 -0
- package/lib/utils/styled.d.ts +3 -2
- package/lib/utils/styled.d.ts.map +1 -1
- package/lib/utils/styled.js +185 -0
- package/lib/vars.cjs +14 -0
- package/lib/vars.d.ts +1 -1
- package/lib/vars.js +1 -21
- package/package.json +16 -25
- package/src/components/LinkContent/LinkContent.tsx +19 -0
- package/src/components/LinkContent/index.ts +4 -0
- package/src/components/index.ts +1 -1
- package/lib/components/LinkWithIcon/LinkWithIcon.d.ts +0 -8
- package/lib/components/LinkWithIcon/LinkWithIcon.d.ts.map +0 -1
- package/lib/components/LinkWithIcon/index.d.ts +0 -2
- package/lib/components/LinkWithIcon/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -7
- package/lib/index.mjs +0 -2184
- package/lib/index.mjs.map +0 -7
- package/lib/primitive.js.map +0 -7
- package/lib/primitive.mjs +0 -13
- package/lib/primitive.mjs.map +0 -7
- package/lib/seed.css +0 -5017
- package/lib/seed.min.css +0 -1
- package/lib/vars.js.map +0 -7
- package/lib/vars.mjs +0 -3
- package/lib/vars.mjs.map +0 -7
- package/src/components/LinkWithIcon/LinkWithIcon.tsx +0 -22
- package/src/components/LinkWithIcon/index.ts +0 -4
- /package/src/components/Count/{index.tsx → index.ts} +0 -0
- /package/src/components/Icon/{index.tsx → index.ts} +0 -0
- /package/src/components/Text/{index.tsx → index.ts} +0 -0
- /package/src/components/TextField/{TextField.namespace.tsx → TextField.namespace.ts} +0 -0
- /package/src/components/TextField/{index.tsx → index.ts} +0 -0
- /package/src/components/VisuallyHidden/{index.tsx → index.ts} +0 -0
- /package/src/{index.tsx → index.ts} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
const actionButton = require('@seed-design/css/recipes/action-button');
|
|
7
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
8
|
+
const clsx = require('clsx');
|
|
9
|
+
const React = require('react');
|
|
10
|
+
const createStyleContext = require('../../utils/createStyleContext.cjs');
|
|
11
|
+
const usePendingButton = require('../LoadingIndicator/usePendingButton.cjs');
|
|
12
|
+
const Icon = require('../Icon/Icon.cjs');
|
|
13
|
+
|
|
14
|
+
function _interopNamespaceDefault(e) {
|
|
15
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
16
|
+
if (e) {
|
|
17
|
+
for (const k in e) {
|
|
18
|
+
if (k !== 'default') {
|
|
19
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: () => e[k]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
n.default = e;
|
|
28
|
+
return Object.freeze(n);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
32
|
+
|
|
33
|
+
const { ClassNamesProvider } = createStyleContext.createStyleContext(actionButton.actionButton);
|
|
34
|
+
const ActionButton = React__namespace.forwardRef(
|
|
35
|
+
({ variant, size, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
36
|
+
const classNames = actionButton.actionButton({ variant, layout, size });
|
|
37
|
+
const api = usePendingButton.usePendingButton({ loading, disabled: otherProps.disabled });
|
|
38
|
+
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
39
|
+
console.warn(
|
|
40
|
+
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsxRuntime.jsx(usePendingButton.PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(Icon.IconRequired, { enabled: layout === "iconOnly", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
+
reactPrimitive.Primitive.button,
|
|
45
|
+
{
|
|
46
|
+
ref,
|
|
47
|
+
className: clsx(classNames.root, className),
|
|
48
|
+
...api.stateProps,
|
|
49
|
+
...otherProps,
|
|
50
|
+
children
|
|
51
|
+
}
|
|
52
|
+
) }) }) });
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
ActionButton.displayName = "ActionButton";
|
|
56
|
+
|
|
57
|
+
exports.ActionButton = ActionButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ActionButtonVariantProps } from '@seed-design/css/recipes/action-button';
|
|
2
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
|
+
import { UsePendingButtonProps } from '../LoadingIndicator/usePendingButton';
|
|
3
4
|
import * as React from "react";
|
|
4
|
-
import { type UsePendingButtonProps } from "../LoadingIndicator/usePendingButton";
|
|
5
5
|
export interface ActionButtonProps extends ActionButtonVariantProps, UsePendingButtonProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
6
|
}
|
|
7
7
|
export declare const ActionButton: React.ForwardRefExoticComponent<ActionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { actionButton } from '@seed-design/css/recipes/action-button';
|
|
3
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { createStyleContext } from '../../utils/createStyleContext.js';
|
|
7
|
+
import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
|
|
8
|
+
import { IconRequired } from '../Icon/Icon.js';
|
|
9
|
+
|
|
10
|
+
const { ClassNamesProvider } = createStyleContext(actionButton);
|
|
11
|
+
const ActionButton = React.forwardRef(
|
|
12
|
+
({ variant, size, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
13
|
+
const classNames = actionButton({ variant, layout, size });
|
|
14
|
+
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
15
|
+
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
16
|
+
console.warn(
|
|
17
|
+
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
return /* @__PURE__ */ jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsx(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx(IconRequired, { enabled: layout === "iconOnly", children: /* @__PURE__ */ jsx(
|
|
21
|
+
Primitive.button,
|
|
22
|
+
{
|
|
23
|
+
ref,
|
|
24
|
+
className: clsx(classNames.root, className),
|
|
25
|
+
...api.stateProps,
|
|
26
|
+
...otherProps,
|
|
27
|
+
children
|
|
28
|
+
}
|
|
29
|
+
) }) }) });
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
ActionButton.displayName = "ActionButton";
|
|
33
|
+
|
|
34
|
+
export { ActionButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ActionButton, type ActionButtonProps, } from
|
|
1
|
+
export { ActionButton, type ActionButtonProps, } from './ActionButton';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionButton } from './ActionButton.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
|
+
const actionChip = require('@seed-design/css/recipes/action-chip');
|
|
7
|
+
const createStyleContext = require('../../utils/createStyleContext.cjs');
|
|
8
|
+
const Icon = require('../Icon/Icon.cjs');
|
|
9
|
+
|
|
10
|
+
const { withProvider } = createStyleContext.createStyleContext(actionChip.actionChip);
|
|
11
|
+
const ActionChip = Icon.withIconRequired(
|
|
12
|
+
withProvider(reactPrimitive.Primitive.button, "root"),
|
|
13
|
+
(props) => props.layout === "iconOnly"
|
|
14
|
+
);
|
|
15
|
+
ActionChip.displayName = "ActionChip";
|
|
16
|
+
|
|
17
|
+
exports.ActionChip = ActionChip;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
2
|
+
import { ActionChipVariantProps } from '@seed-design/css/recipes/action-chip';
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
export interface ActionChipProps extends ActionChipVariantProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
2
|
+
import { actionChip } from '@seed-design/css/recipes/action-chip';
|
|
3
|
+
import { createStyleContext } from '../../utils/createStyleContext.js';
|
|
4
|
+
import { withIconRequired } from '../Icon/Icon.js';
|
|
5
|
+
|
|
6
|
+
const { withProvider } = createStyleContext(actionChip);
|
|
7
|
+
const ActionChip = withIconRequired(
|
|
8
|
+
withProvider(Primitive.button, "root"),
|
|
9
|
+
(props) => props.layout === "iconOnly"
|
|
10
|
+
);
|
|
11
|
+
ActionChip.displayName = "ActionChip";
|
|
12
|
+
|
|
13
|
+
export { ActionChip };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ActionChip, type ActionChipProps, } from
|
|
1
|
+
export { ActionChip, type ActionChipProps, } from './ActionChip';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionChip } from './ActionChip.js';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const reactDialog = require('@seed-design/react-dialog');
|
|
6
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
|
+
const actionSheet = require('@seed-design/css/recipes/action-sheet');
|
|
8
|
+
const actionSheetItem = require('@seed-design/css/recipes/action-sheet-item');
|
|
9
|
+
const createStyleContext = require('../../utils/createStyleContext.cjs');
|
|
10
|
+
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
11
|
+
|
|
12
|
+
const { withRootProvider, withContext } = createStyleContext.createStyleContext(actionSheet.actionSheet);
|
|
13
|
+
const { withProvider: withItemProvider } = createStyleContext.createStyleContext(actionSheetItem.actionSheetItem);
|
|
14
|
+
const withStateProps = createWithStateProps.createWithStateProps([reactDialog.useDialogContext]);
|
|
15
|
+
const ActionSheetRoot = withRootProvider(reactDialog.Dialog.Root, {
|
|
16
|
+
defaultProps: {
|
|
17
|
+
lazyMount: true,
|
|
18
|
+
unmountOnExit: true
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const ActionSheetTrigger = reactDialog.Dialog.Trigger;
|
|
22
|
+
const ActionSheetPositioner = withContext(
|
|
23
|
+
reactDialog.Dialog.Positioner,
|
|
24
|
+
"positioner"
|
|
25
|
+
);
|
|
26
|
+
const ActionSheetBackdrop = withContext(
|
|
27
|
+
reactDialog.Dialog.Backdrop,
|
|
28
|
+
"backdrop"
|
|
29
|
+
);
|
|
30
|
+
const ActionSheetContent = withContext(
|
|
31
|
+
reactDialog.Dialog.Content,
|
|
32
|
+
"content"
|
|
33
|
+
);
|
|
34
|
+
const ActionSheetHeader = withContext(
|
|
35
|
+
withStateProps(reactPrimitive.Primitive.div),
|
|
36
|
+
"header"
|
|
37
|
+
);
|
|
38
|
+
const ActionSheetTitle = withContext(
|
|
39
|
+
withStateProps(reactPrimitive.Primitive.h2),
|
|
40
|
+
"title"
|
|
41
|
+
);
|
|
42
|
+
const ActionSheetDescription = withContext(withStateProps(reactPrimitive.Primitive.p), "description");
|
|
43
|
+
const ActionSheetList = withContext(
|
|
44
|
+
withStateProps(reactPrimitive.Primitive.div),
|
|
45
|
+
"list"
|
|
46
|
+
);
|
|
47
|
+
const ActionSheetItem = withItemProvider(
|
|
48
|
+
withStateProps(reactPrimitive.Primitive.button),
|
|
49
|
+
"root"
|
|
50
|
+
);
|
|
51
|
+
const ActionSheetCloseButton = withContext(
|
|
52
|
+
reactDialog.Dialog.CloseButton,
|
|
53
|
+
"closeButton"
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
exports.ActionSheetBackdrop = ActionSheetBackdrop;
|
|
57
|
+
exports.ActionSheetCloseButton = ActionSheetCloseButton;
|
|
58
|
+
exports.ActionSheetContent = ActionSheetContent;
|
|
59
|
+
exports.ActionSheetDescription = ActionSheetDescription;
|
|
60
|
+
exports.ActionSheetHeader = ActionSheetHeader;
|
|
61
|
+
exports.ActionSheetItem = ActionSheetItem;
|
|
62
|
+
exports.ActionSheetList = ActionSheetList;
|
|
63
|
+
exports.ActionSheetPositioner = ActionSheetPositioner;
|
|
64
|
+
exports.ActionSheetRoot = ActionSheetRoot;
|
|
65
|
+
exports.ActionSheetTitle = ActionSheetTitle;
|
|
66
|
+
exports.ActionSheetTrigger = ActionSheetTrigger;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Dialog as DialogPrimitive } from '@seed-design/react-dialog';
|
|
2
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
|
+
import { ActionSheetVariantProps } from '@seed-design/css/recipes/action-sheet';
|
|
4
|
+
import { ActionSheetItemVariantProps } from '@seed-design/css/recipes/action-sheet-item';
|
|
5
5
|
import type * as React from "react";
|
|
6
6
|
export interface ActionSheetRootProps extends ActionSheetVariantProps, DialogPrimitive.RootProps {
|
|
7
7
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Dialog, useDialogContext } from '@seed-design/react-dialog';
|
|
2
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
3
|
+
import { actionSheet } from '@seed-design/css/recipes/action-sheet';
|
|
4
|
+
import { actionSheetItem } from '@seed-design/css/recipes/action-sheet-item';
|
|
5
|
+
import { createStyleContext } from '../../utils/createStyleContext.js';
|
|
6
|
+
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
7
|
+
|
|
8
|
+
const { withRootProvider, withContext } = createStyleContext(actionSheet);
|
|
9
|
+
const { withProvider: withItemProvider } = createStyleContext(actionSheetItem);
|
|
10
|
+
const withStateProps = createWithStateProps([useDialogContext]);
|
|
11
|
+
const ActionSheetRoot = withRootProvider(Dialog.Root, {
|
|
12
|
+
defaultProps: {
|
|
13
|
+
lazyMount: true,
|
|
14
|
+
unmountOnExit: true
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const ActionSheetTrigger = Dialog.Trigger;
|
|
18
|
+
const ActionSheetPositioner = withContext(
|
|
19
|
+
Dialog.Positioner,
|
|
20
|
+
"positioner"
|
|
21
|
+
);
|
|
22
|
+
const ActionSheetBackdrop = withContext(
|
|
23
|
+
Dialog.Backdrop,
|
|
24
|
+
"backdrop"
|
|
25
|
+
);
|
|
26
|
+
const ActionSheetContent = withContext(
|
|
27
|
+
Dialog.Content,
|
|
28
|
+
"content"
|
|
29
|
+
);
|
|
30
|
+
const ActionSheetHeader = withContext(
|
|
31
|
+
withStateProps(Primitive.div),
|
|
32
|
+
"header"
|
|
33
|
+
);
|
|
34
|
+
const ActionSheetTitle = withContext(
|
|
35
|
+
withStateProps(Primitive.h2),
|
|
36
|
+
"title"
|
|
37
|
+
);
|
|
38
|
+
const ActionSheetDescription = withContext(withStateProps(Primitive.p), "description");
|
|
39
|
+
const ActionSheetList = withContext(
|
|
40
|
+
withStateProps(Primitive.div),
|
|
41
|
+
"list"
|
|
42
|
+
);
|
|
43
|
+
const ActionSheetItem = withItemProvider(
|
|
44
|
+
withStateProps(Primitive.button),
|
|
45
|
+
"root"
|
|
46
|
+
);
|
|
47
|
+
const ActionSheetCloseButton = withContext(
|
|
48
|
+
Dialog.CloseButton,
|
|
49
|
+
"closeButton"
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
export { ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const ActionSheet = require('./ActionSheet.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Backdrop = ActionSheet.ActionSheetBackdrop;
|
|
10
|
+
exports.CloseButton = ActionSheet.ActionSheetCloseButton;
|
|
11
|
+
exports.Content = ActionSheet.ActionSheetContent;
|
|
12
|
+
exports.Description = ActionSheet.ActionSheetDescription;
|
|
13
|
+
exports.Header = ActionSheet.ActionSheetHeader;
|
|
14
|
+
exports.Item = ActionSheet.ActionSheetItem;
|
|
15
|
+
exports.List = ActionSheet.ActionSheetList;
|
|
16
|
+
exports.Positioner = ActionSheet.ActionSheetPositioner;
|
|
17
|
+
exports.Root = ActionSheet.ActionSheetRoot;
|
|
18
|
+
exports.Title = ActionSheet.ActionSheetTitle;
|
|
19
|
+
exports.Trigger = ActionSheet.ActionSheetTrigger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ActionSheetBackdrop as Backdrop, ActionSheetPositioner as Positioner, ActionSheetContent as Content, ActionSheetHeader as Header, ActionSheetRoot as Root, ActionSheetTitle as Title, ActionSheetDescription as Description, ActionSheetTrigger as Trigger, ActionSheetList as List, ActionSheetItem as Item, ActionSheetCloseButton as CloseButton, type ActionSheetBackdropProps as BackdropProps, type ActionSheetPositionerProps as PositionerProps, type ActionSheetContentProps as ContentProps, type ActionSheetHeaderProps as HeaderProps, type ActionSheetRootProps as RootProps, type ActionSheetTitleProps as TitleProps, type ActionSheetDescriptionProps as DescriptionProps, type ActionSheetTriggerProps as TriggerProps, type ActionSheetListProps as ListProps, type ActionSheetItemProps as ItemProps, type ActionSheetCloseButtonProps as CloseButtonProps, } from
|
|
1
|
+
export { ActionSheetBackdrop as Backdrop, ActionSheetPositioner as Positioner, ActionSheetContent as Content, ActionSheetHeader as Header, ActionSheetRoot as Root, ActionSheetTitle as Title, ActionSheetDescription as Description, ActionSheetTrigger as Trigger, ActionSheetList as List, ActionSheetItem as Item, ActionSheetCloseButton as CloseButton, type ActionSheetBackdropProps as BackdropProps, type ActionSheetPositionerProps as PositionerProps, type ActionSheetContentProps as ContentProps, type ActionSheetHeaderProps as HeaderProps, type ActionSheetRootProps as RootProps, type ActionSheetTitleProps as TitleProps, type ActionSheetDescriptionProps as DescriptionProps, type ActionSheetTriggerProps as TriggerProps, type ActionSheetListProps as ListProps, type ActionSheetItemProps as ItemProps, type ActionSheetCloseButtonProps as CloseButtonProps, } from './ActionSheet';
|
|
2
2
|
//# sourceMappingURL=ActionSheet.namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionSheetBackdrop as Backdrop, ActionSheetCloseButton as CloseButton, ActionSheetContent as Content, ActionSheetDescription as Description, ActionSheetHeader as Header, ActionSheetItem as Item, ActionSheetList as List, ActionSheetPositioner as Positioner, ActionSheetRoot as Root, ActionSheetTitle as Title, ActionSheetTrigger as Trigger } from './ActionSheet.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const ActionSheet = require('./ActionSheet.cjs');
|
|
6
|
+
const ActionSheet_namespace = require('./ActionSheet.namespace.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.ActionSheetBackdrop = ActionSheet.ActionSheetBackdrop;
|
|
11
|
+
exports.ActionSheetCloseButton = ActionSheet.ActionSheetCloseButton;
|
|
12
|
+
exports.ActionSheetContent = ActionSheet.ActionSheetContent;
|
|
13
|
+
exports.ActionSheetDescription = ActionSheet.ActionSheetDescription;
|
|
14
|
+
exports.ActionSheetHeader = ActionSheet.ActionSheetHeader;
|
|
15
|
+
exports.ActionSheetItem = ActionSheet.ActionSheetItem;
|
|
16
|
+
exports.ActionSheetList = ActionSheet.ActionSheetList;
|
|
17
|
+
exports.ActionSheetPositioner = ActionSheet.ActionSheetPositioner;
|
|
18
|
+
exports.ActionSheetRoot = ActionSheet.ActionSheetRoot;
|
|
19
|
+
exports.ActionSheetTitle = ActionSheet.ActionSheetTitle;
|
|
20
|
+
exports.ActionSheetTrigger = ActionSheet.ActionSheetTrigger;
|
|
21
|
+
exports.ActionSheet = ActionSheet_namespace;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ActionSheetBackdrop, ActionSheetPositioner, ActionSheetContent, ActionSheetHeader, ActionSheetRoot, ActionSheetTitle, ActionSheetDescription, ActionSheetTrigger, ActionSheetList, ActionSheetItem, ActionSheetCloseButton, type ActionSheetBackdropProps, type ActionSheetPositionerProps, type ActionSheetContentProps, type ActionSheetHeaderProps, type ActionSheetRootProps, type ActionSheetTitleProps, type ActionSheetDescriptionProps, type ActionSheetTriggerProps, type ActionSheetListProps, type ActionSheetItemProps, type ActionSheetCloseButtonProps, } from
|
|
2
|
-
export * as ActionSheet from
|
|
1
|
+
export { ActionSheetBackdrop, ActionSheetPositioner, ActionSheetContent, ActionSheetHeader, ActionSheetRoot, ActionSheetTitle, ActionSheetDescription, ActionSheetTrigger, ActionSheetList, ActionSheetItem, ActionSheetCloseButton, type ActionSheetBackdropProps, type ActionSheetPositionerProps, type ActionSheetContentProps, type ActionSheetHeaderProps, type ActionSheetRootProps, type ActionSheetTitleProps, type ActionSheetDescriptionProps, type ActionSheetTriggerProps, type ActionSheetListProps, type ActionSheetItemProps, type ActionSheetCloseButtonProps, } from './ActionSheet';
|
|
2
|
+
export * as ActionSheet from './ActionSheet.namespace';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger } from './ActionSheet.js';
|
|
2
|
+
import * as ActionSheet_namespace from './ActionSheet.namespace.js';
|
|
3
|
+
export { ActionSheet_namespace as ActionSheet };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
const reactAvatar = require('@seed-design/react-avatar');
|
|
7
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
8
|
+
const avatar = require('@seed-design/css/recipes/avatar');
|
|
9
|
+
const avatarStack = require('@seed-design/css/recipes/avatar-stack');
|
|
10
|
+
const clsx = require('clsx');
|
|
11
|
+
const React = require('react');
|
|
12
|
+
const createStyleContext = require('../../utils/createStyleContext.cjs');
|
|
13
|
+
|
|
14
|
+
function _interopNamespaceDefault(e) {
|
|
15
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
16
|
+
if (e) {
|
|
17
|
+
for (const k in e) {
|
|
18
|
+
if (k !== 'default') {
|
|
19
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: () => e[k]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
n.default = e;
|
|
28
|
+
return Object.freeze(n);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
32
|
+
|
|
33
|
+
const { PropsProvider, withProvider, withContext } = createStyleContext.createStyleContext(avatar.avatar);
|
|
34
|
+
const AvatarRoot = withProvider(
|
|
35
|
+
reactAvatar.Avatar.Root,
|
|
36
|
+
"root"
|
|
37
|
+
);
|
|
38
|
+
const AvatarImage = withContext(
|
|
39
|
+
reactAvatar.Avatar.Image,
|
|
40
|
+
"image"
|
|
41
|
+
);
|
|
42
|
+
const AvatarFallback = withContext(
|
|
43
|
+
reactAvatar.Avatar.Fallback,
|
|
44
|
+
"fallback"
|
|
45
|
+
);
|
|
46
|
+
const AvatarBadge = withContext(reactPrimitive.Primitive.div, "badge");
|
|
47
|
+
const AvatarStack = React__namespace.forwardRef(
|
|
48
|
+
({ className, children, size, ...otherProps }, ref) => {
|
|
49
|
+
const classNames = avatarStack.avatarStack({ size });
|
|
50
|
+
const avatars = React__namespace.Children.toArray(children);
|
|
51
|
+
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) => (
|
|
52
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: There is no unique key for each child
|
|
53
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames.item, children: avatar2 }, index)
|
|
54
|
+
)) }) });
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
exports.AvatarBadge = AvatarBadge;
|
|
59
|
+
exports.AvatarFallback = AvatarFallback;
|
|
60
|
+
exports.AvatarImage = AvatarImage;
|
|
61
|
+
exports.AvatarRoot = AvatarRoot;
|
|
62
|
+
exports.AvatarStack = AvatarStack;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Avatar as AvatarPrimitive } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Avatar as AvatarPrimitive } from '@seed-design/react-avatar';
|
|
2
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
|
+
import { AvatarVariantProps } from '@seed-design/css/recipes/avatar';
|
|
4
|
+
import { AvatarStackVariantProps } from '@seed-design/css/recipes/avatar-stack';
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
export interface AvatarRootProps extends AvatarVariantProps, AvatarPrimitive.RootProps {
|
|
7
7
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Avatar } from '@seed-design/react-avatar';
|
|
3
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
4
|
+
import { avatar } from '@seed-design/css/recipes/avatar';
|
|
5
|
+
import { avatarStack } from '@seed-design/css/recipes/avatar-stack';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { useMemo } from 'react';
|
|
9
|
+
import { createStyleContext } from '../../utils/createStyleContext.js';
|
|
10
|
+
|
|
11
|
+
const { PropsProvider, withProvider, withContext } = createStyleContext(avatar);
|
|
12
|
+
const AvatarRoot = withProvider(
|
|
13
|
+
Avatar.Root,
|
|
14
|
+
"root"
|
|
15
|
+
);
|
|
16
|
+
const AvatarImage = withContext(
|
|
17
|
+
Avatar.Image,
|
|
18
|
+
"image"
|
|
19
|
+
);
|
|
20
|
+
const AvatarFallback = withContext(
|
|
21
|
+
Avatar.Fallback,
|
|
22
|
+
"fallback"
|
|
23
|
+
);
|
|
24
|
+
const AvatarBadge = withContext(Primitive.div, "badge");
|
|
25
|
+
const AvatarStack = React.forwardRef(
|
|
26
|
+
({ className, children, size, ...otherProps }, ref) => {
|
|
27
|
+
const classNames = avatarStack({ size });
|
|
28
|
+
const avatars = React.Children.toArray(children);
|
|
29
|
+
return /* @__PURE__ */ jsx(PropsProvider, { value: useMemo(() => ({ size }), [size]), children: /* @__PURE__ */ jsx("div", { ref, className: clsx(classNames.root, className), ...otherProps, children: avatars.map((avatar2, index) => (
|
|
30
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: There is no unique key for each child
|
|
31
|
+
/* @__PURE__ */ jsx("div", { className: classNames.item, children: avatar2 }, index)
|
|
32
|
+
)) }) });
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
export { AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const Avatar = require('./Avatar.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Badge = Avatar.AvatarBadge;
|
|
10
|
+
exports.Fallback = Avatar.AvatarFallback;
|
|
11
|
+
exports.Image = Avatar.AvatarImage;
|
|
12
|
+
exports.Root = Avatar.AvatarRoot;
|
|
13
|
+
exports.Stack = Avatar.AvatarStack;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AvatarBadge as Badge, AvatarFallback as Fallback, AvatarImage as Image, AvatarRoot as Root, AvatarStack as Stack, type AvatarBadgeProps as BadgeProps, type AvatarFallbackProps as FallbackProps, type AvatarImageProps as ImageProps, type AvatarRootProps as RootProps, type AvatarStackProps as StackProps, } from
|
|
1
|
+
export { AvatarBadge as Badge, AvatarFallback as Fallback, AvatarImage as Image, AvatarRoot as Root, AvatarStack as Stack, type AvatarBadgeProps as BadgeProps, type AvatarFallbackProps as FallbackProps, type AvatarImageProps as ImageProps, type AvatarRootProps as RootProps, type AvatarStackProps as StackProps, } from './Avatar';
|
|
2
2
|
//# sourceMappingURL=Avatar.namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AvatarBadge as Badge, AvatarFallback as Fallback, AvatarImage as Image, AvatarRoot as Root, AvatarStack as Stack } from './Avatar.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const Avatar = require('./Avatar.cjs');
|
|
6
|
+
const Avatar_namespace = require('./Avatar.namespace.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.AvatarBadge = Avatar.AvatarBadge;
|
|
11
|
+
exports.AvatarFallback = Avatar.AvatarFallback;
|
|
12
|
+
exports.AvatarImage = Avatar.AvatarImage;
|
|
13
|
+
exports.AvatarRoot = Avatar.AvatarRoot;
|
|
14
|
+
exports.AvatarStack = Avatar.AvatarStack;
|
|
15
|
+
exports.Avatar = Avatar_namespace;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack, type AvatarBadgeProps, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootProps, type AvatarStackProps, } from
|
|
2
|
-
export * as Avatar from
|
|
1
|
+
export { AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack, type AvatarBadgeProps, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootProps, type AvatarStackProps, } from './Avatar';
|
|
2
|
+
export * as Avatar from './Avatar.namespace';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
|
+
const badge = require('@seed-design/css/recipes/badge');
|
|
7
|
+
const createStyleContext = require('../../utils/createStyleContext.cjs');
|
|
8
|
+
|
|
9
|
+
const { withProvider } = createStyleContext.createStyleContext(badge.badge);
|
|
10
|
+
const Badge = withProvider(reactPrimitive.Primitive.span, "root");
|
|
11
|
+
|
|
12
|
+
exports.Badge = Badge;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
2
|
+
import { BadgeVariantProps } from '@seed-design/css/recipes/badge';
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
export interface BadgeProps extends BadgeVariantProps, PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
5
5
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
2
|
+
import { badge } from '@seed-design/css/recipes/badge';
|
|
3
|
+
import { createStyleContext } from '../../utils/createStyleContext.js';
|
|
4
|
+
|
|
5
|
+
const { withProvider } = createStyleContext(badge);
|
|
6
|
+
const Badge = withProvider(Primitive.span, "root");
|
|
7
|
+
|
|
8
|
+
export { Badge };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Badge, type BadgeProps } from
|
|
1
|
+
export { Badge, type BadgeProps } from './Badge';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from './Badge.js';
|