@seed-design/react 0.0.1-rc.2 → 0.0.1-rc.4
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,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const reactSnackbar = require('@seed-design/react-snackbar');
|
|
6
|
+
const React = require('react');
|
|
7
|
+
|
|
8
|
+
function useSnackbarAdapter() {
|
|
9
|
+
const api = reactSnackbar.useSnackbarContext();
|
|
10
|
+
const adapter = React.useMemo(
|
|
11
|
+
() => ({
|
|
12
|
+
visible: api.visible,
|
|
13
|
+
create: (options) => {
|
|
14
|
+
return api.create({
|
|
15
|
+
timeout: options.timeout ?? 5e3,
|
|
16
|
+
removeDelay: options.removeDelay ?? 200,
|
|
17
|
+
onClose: options.onClose,
|
|
18
|
+
render: options.render
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
dismiss: api.dismiss
|
|
22
|
+
}),
|
|
23
|
+
[api]
|
|
24
|
+
);
|
|
25
|
+
return adapter;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.useSnackbarAdapter = useSnackbarAdapter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateSnackbarOptions } from '@seed-design/react-snackbar';
|
|
2
2
|
export type UseSnackbarAdapterReturn = ReturnType<typeof useSnackbarAdapter>;
|
|
3
3
|
/**
|
|
4
4
|
* wraps the snackbar context to provide a more user-friendly API
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useSnackbarContext } from '@seed-design/react-snackbar';
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
function useSnackbarAdapter() {
|
|
5
|
+
const api = useSnackbarContext();
|
|
6
|
+
const adapter = useMemo(
|
|
7
|
+
() => ({
|
|
8
|
+
visible: api.visible,
|
|
9
|
+
create: (options) => {
|
|
10
|
+
return api.create({
|
|
11
|
+
timeout: options.timeout ?? 5e3,
|
|
12
|
+
removeDelay: options.removeDelay ?? 200,
|
|
13
|
+
onClose: options.onClose,
|
|
14
|
+
render: options.render
|
|
15
|
+
});
|
|
16
|
+
},
|
|
17
|
+
dismiss: api.dismiss
|
|
18
|
+
}),
|
|
19
|
+
[api]
|
|
20
|
+
);
|
|
21
|
+
return adapter;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { useSnackbarAdapter };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
const React = require('react');
|
|
7
|
+
const Box = require('../Box/Box.cjs');
|
|
8
|
+
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
11
|
+
if (e) {
|
|
12
|
+
for (const k in e) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: () => e[k]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
27
|
+
|
|
28
|
+
const Stack = React__namespace.forwardRef((props, ref) => {
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { ref, display: "flex", flexDirection: "column", ...props });
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
exports.Stack = Stack;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { BoxProps } from '../Box/Box';
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import { type BoxProps } from "../Box/Box";
|
|
3
3
|
export interface StackProps extends Omit<BoxProps, "display" | "direction"> {
|
|
4
4
|
}
|
|
5
5
|
export declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Box } from '../Box/Box.js';
|
|
4
|
+
|
|
5
|
+
const Stack = React.forwardRef((props, ref) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(Box, { ref, display: "flex", flexDirection: "column", ...props });
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export { Stack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Stack, type StackProps } from
|
|
1
|
+
export { Stack, type StackProps } from './Stack';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Stack } from './Stack.js';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const reactSwitch = require('@seed-design/react-switch');
|
|
6
|
+
const _switch = require('@seed-design/css/recipes/switch');
|
|
7
|
+
const createStyleContext = require('../../utils/createStyleContext.cjs');
|
|
8
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
9
|
+
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
10
|
+
|
|
11
|
+
const { withProvider, withContext } = createStyleContext.createStyleContext(_switch.switchStyle);
|
|
12
|
+
const withStateProps = createWithStateProps.createWithStateProps([reactSwitch.useSwitchContext]);
|
|
13
|
+
const SwitchRoot = withProvider(
|
|
14
|
+
reactSwitch.Switch.Root,
|
|
15
|
+
"root"
|
|
16
|
+
);
|
|
17
|
+
const SwitchControl = withContext(
|
|
18
|
+
reactSwitch.Switch.Control,
|
|
19
|
+
"control"
|
|
20
|
+
);
|
|
21
|
+
const SwitchThumb = withContext(
|
|
22
|
+
reactSwitch.Switch.Thumb,
|
|
23
|
+
"thumb"
|
|
24
|
+
);
|
|
25
|
+
const SwitchLabel = withContext(
|
|
26
|
+
withStateProps(reactPrimitive.Primitive.span),
|
|
27
|
+
"label"
|
|
28
|
+
);
|
|
29
|
+
const SwitchHiddenInput = reactSwitch.Switch.HiddenInput;
|
|
30
|
+
|
|
31
|
+
exports.SwitchControl = SwitchControl;
|
|
32
|
+
exports.SwitchHiddenInput = SwitchHiddenInput;
|
|
33
|
+
exports.SwitchLabel = SwitchLabel;
|
|
34
|
+
exports.SwitchRoot = SwitchRoot;
|
|
35
|
+
exports.SwitchThumb = SwitchThumb;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { Switch as SwitchPrimitive } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Switch as SwitchPrimitive } from '@seed-design/react-switch';
|
|
2
|
+
import { SwitchVariantProps } from '@seed-design/css/recipes/switch';
|
|
3
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
4
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
5
|
export interface SwitchRootProps extends SwitchVariantProps, SwitchPrimitive.RootProps {
|
|
5
6
|
}
|
|
6
|
-
export declare const SwitchRoot:
|
|
7
|
+
export declare const SwitchRoot: ForwardRefExoticComponent<SwitchRootProps & RefAttributes<HTMLLabelElement>>;
|
|
7
8
|
export interface SwitchControlProps extends SwitchPrimitive.ControlProps {
|
|
8
9
|
}
|
|
9
|
-
export declare const SwitchControl:
|
|
10
|
+
export declare const SwitchControl: ForwardRefExoticComponent<SwitchControlProps & RefAttributes<HTMLDivElement>>;
|
|
10
11
|
export interface SwitchThumbProps extends SwitchPrimitive.ThumbProps {
|
|
11
12
|
}
|
|
12
|
-
export declare const SwitchThumb:
|
|
13
|
+
export declare const SwitchThumb: ForwardRefExoticComponent<SwitchThumbProps & RefAttributes<HTMLDivElement>>;
|
|
13
14
|
export interface SwitchLabelProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
14
15
|
}
|
|
15
|
-
export declare const SwitchLabel:
|
|
16
|
+
export declare const SwitchLabel: ForwardRefExoticComponent<SwitchLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
16
17
|
export interface SwitchHiddenInputProps extends SwitchPrimitive.HiddenInputProps {
|
|
17
18
|
}
|
|
18
|
-
export declare const SwitchHiddenInput:
|
|
19
|
+
export declare const SwitchHiddenInput: ForwardRefExoticComponent<SwitchPrimitive.HiddenInputProps & RefAttributes<HTMLInputElement>>;
|
|
19
20
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAEvF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQ9E,MAAM,WAAW,eAAgB,SAAQ,kBAAkB,EAAE,eAAe,CAAC,SAAS;CAAG;AAEzF,eAAO,MAAM,UAAU,8GAGtB,CAAC;AAIF,MAAM,WAAW,kBAAmB,SAAQ,eAAe,CAAC,YAAY;CAAG;AAE3E,eAAO,MAAM,aAAa,+GAGzB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,eAAe,CAAC,UAAU;CAAG;AAEvE,eAAO,MAAM,WAAW,6GAGvB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAElG,eAAO,MAAM,WAAW,8GAGvB,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAEnF,eAAO,MAAM,iBAAiB,+HAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAEvF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQ9E,MAAM,WAAW,eAAgB,SAAQ,kBAAkB,EAAE,eAAe,CAAC,SAAS;CAAG;AAEzF,eAAO,MAAM,UAAU,8GAGtB,CAAC;AAIF,MAAM,WAAW,kBAAmB,SAAQ,eAAe,CAAC,YAAY;CAAG;AAE3E,eAAO,MAAM,aAAa,+GAGzB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,eAAe,CAAC,UAAU;CAAG;AAEvE,eAAO,MAAM,WAAW,6GAGvB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAElG,eAAO,MAAM,WAAW,8GAGvB,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAEnF,eAAO,MAAM,iBAAiB,+HAA8B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Switch, useSwitchContext } from '@seed-design/react-switch';
|
|
2
|
+
import { switchStyle } from '@seed-design/css/recipes/switch';
|
|
3
|
+
import { createStyleContext } from '../../utils/createStyleContext.js';
|
|
4
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
5
|
+
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
6
|
+
|
|
7
|
+
const { withProvider, withContext } = createStyleContext(switchStyle);
|
|
8
|
+
const withStateProps = createWithStateProps([useSwitchContext]);
|
|
9
|
+
const SwitchRoot = withProvider(
|
|
10
|
+
Switch.Root,
|
|
11
|
+
"root"
|
|
12
|
+
);
|
|
13
|
+
const SwitchControl = withContext(
|
|
14
|
+
Switch.Control,
|
|
15
|
+
"control"
|
|
16
|
+
);
|
|
17
|
+
const SwitchThumb = withContext(
|
|
18
|
+
Switch.Thumb,
|
|
19
|
+
"thumb"
|
|
20
|
+
);
|
|
21
|
+
const SwitchLabel = withContext(
|
|
22
|
+
withStateProps(Primitive.span),
|
|
23
|
+
"label"
|
|
24
|
+
);
|
|
25
|
+
const SwitchHiddenInput = Switch.HiddenInput;
|
|
26
|
+
|
|
27
|
+
export { SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const Switch = require('./Switch.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Control = Switch.SwitchControl;
|
|
10
|
+
exports.HiddenInput = Switch.SwitchHiddenInput;
|
|
11
|
+
exports.Label = Switch.SwitchLabel;
|
|
12
|
+
exports.Root = Switch.SwitchRoot;
|
|
13
|
+
exports.Thumb = Switch.SwitchThumb;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SwitchControl as Control, SwitchHiddenInput as HiddenInput, SwitchLabel as Label, SwitchRoot as Root, SwitchThumb as Thumb, type SwitchControlProps as ControlProps, type SwitchHiddenInputProps as HiddenInputProps, type SwitchLabelProps as LabelProps, type SwitchRootProps as RootProps, type SwitchThumbProps as ThumbProps, } from
|
|
1
|
+
export { SwitchControl as Control, SwitchHiddenInput as HiddenInput, SwitchLabel as Label, SwitchRoot as Root, SwitchThumb as Thumb, type SwitchControlProps as ControlProps, type SwitchHiddenInputProps as HiddenInputProps, type SwitchLabelProps as LabelProps, type SwitchRootProps as RootProps, type SwitchThumbProps as ThumbProps, } from './Switch';
|
|
2
2
|
//# sourceMappingURL=Switch.namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SwitchControl as Control, SwitchHiddenInput as HiddenInput, SwitchLabel as Label, SwitchRoot as Root, SwitchThumb as Thumb } from './Switch.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const Switch = require('./Switch.cjs');
|
|
6
|
+
const Switch_namespace = require('./Switch.namespace.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.SwitchControl = Switch.SwitchControl;
|
|
11
|
+
exports.SwitchHiddenInput = Switch.SwitchHiddenInput;
|
|
12
|
+
exports.SwitchLabel = Switch.SwitchLabel;
|
|
13
|
+
exports.SwitchRoot = Switch.SwitchRoot;
|
|
14
|
+
exports.SwitchThumb = Switch.SwitchThumb;
|
|
15
|
+
exports.Switch = Switch_namespace;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb, type SwitchControlProps, type SwitchHiddenInputProps, type SwitchLabelProps, type SwitchRootProps, type SwitchThumbProps, } from
|
|
2
|
-
export * as Switch from
|
|
1
|
+
export { SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb, type SwitchControlProps, type SwitchHiddenInputProps, type SwitchLabelProps, type SwitchRootProps, type SwitchThumbProps, } from './Switch';
|
|
2
|
+
export * as Switch from './Switch.namespace';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
|
+
const reactTabs = require('@seed-design/react-tabs');
|
|
7
|
+
const tabs = require('@seed-design/css/recipes/tabs');
|
|
8
|
+
const createStyleContext = require('../../utils/createStyleContext.cjs');
|
|
9
|
+
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
10
|
+
|
|
11
|
+
const { withProvider, withContext } = createStyleContext.createStyleContext(tabs.tabs);
|
|
12
|
+
const withStateProps = createWithStateProps.createWithStateProps([reactTabs.useTabsContext, reactTabs.useTabsTriggerContext], {
|
|
13
|
+
strict: false
|
|
14
|
+
});
|
|
15
|
+
const TabsRoot = withProvider(reactTabs.Tabs.Root, "root");
|
|
16
|
+
const TabsList = withContext(reactTabs.Tabs.List, "list");
|
|
17
|
+
const TabsTrigger = withContext(
|
|
18
|
+
reactTabs.Tabs.Trigger,
|
|
19
|
+
"trigger"
|
|
20
|
+
);
|
|
21
|
+
const TabsTriggerNotification = withContext(
|
|
22
|
+
withStateProps(reactPrimitive.Primitive.div),
|
|
23
|
+
"triggerNotification"
|
|
24
|
+
);
|
|
25
|
+
const TabsIndicator = withContext(
|
|
26
|
+
reactTabs.Tabs.Indicator,
|
|
27
|
+
"indicator"
|
|
28
|
+
);
|
|
29
|
+
const TabsContent = withContext(
|
|
30
|
+
reactTabs.Tabs.Content,
|
|
31
|
+
"content"
|
|
32
|
+
);
|
|
33
|
+
const TabsCarousel = withContext(
|
|
34
|
+
reactTabs.Tabs.Carousel,
|
|
35
|
+
"carousel"
|
|
36
|
+
);
|
|
37
|
+
const TabsCarouselCamera = withContext(
|
|
38
|
+
reactTabs.Tabs.CarouselCamera,
|
|
39
|
+
"carouselCamera"
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
exports.TabsCarousel = TabsCarousel;
|
|
43
|
+
exports.TabsCarouselCamera = TabsCarouselCamera;
|
|
44
|
+
exports.TabsContent = TabsContent;
|
|
45
|
+
exports.TabsIndicator = TabsIndicator;
|
|
46
|
+
exports.TabsList = TabsList;
|
|
47
|
+
exports.TabsRoot = TabsRoot;
|
|
48
|
+
exports.TabsTrigger = TabsTrigger;
|
|
49
|
+
exports.TabsTriggerNotification = TabsTriggerNotification;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Tabs as TabsPrimitive } from
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
2
|
+
import { Tabs as TabsPrimitive } from '@seed-design/react-tabs';
|
|
3
|
+
import { TabsVariantProps } from '@seed-design/css/recipes/tabs';
|
|
4
|
+
import { default as React } from 'react';
|
|
5
5
|
export interface TabsRootProps extends TabsVariantProps, TabsPrimitive.RootProps {
|
|
6
6
|
}
|
|
7
7
|
export declare const TabsRoot: React.ForwardRefExoticComponent<TabsRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
2
|
+
import { Tabs, useTabsContext, useTabsTriggerContext } from '@seed-design/react-tabs';
|
|
3
|
+
import { tabs } from '@seed-design/css/recipes/tabs';
|
|
4
|
+
import { createStyleContext } from '../../utils/createStyleContext.js';
|
|
5
|
+
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
6
|
+
|
|
7
|
+
const { withProvider, withContext } = createStyleContext(tabs);
|
|
8
|
+
const withStateProps = createWithStateProps([useTabsContext, useTabsTriggerContext], {
|
|
9
|
+
strict: false
|
|
10
|
+
});
|
|
11
|
+
const TabsRoot = withProvider(Tabs.Root, "root");
|
|
12
|
+
const TabsList = withContext(Tabs.List, "list");
|
|
13
|
+
const TabsTrigger = withContext(
|
|
14
|
+
Tabs.Trigger,
|
|
15
|
+
"trigger"
|
|
16
|
+
);
|
|
17
|
+
const TabsTriggerNotification = withContext(
|
|
18
|
+
withStateProps(Primitive.div),
|
|
19
|
+
"triggerNotification"
|
|
20
|
+
);
|
|
21
|
+
const TabsIndicator = withContext(
|
|
22
|
+
Tabs.Indicator,
|
|
23
|
+
"indicator"
|
|
24
|
+
);
|
|
25
|
+
const TabsContent = withContext(
|
|
26
|
+
Tabs.Content,
|
|
27
|
+
"content"
|
|
28
|
+
);
|
|
29
|
+
const TabsCarousel = withContext(
|
|
30
|
+
Tabs.Carousel,
|
|
31
|
+
"carousel"
|
|
32
|
+
);
|
|
33
|
+
const TabsCarouselCamera = withContext(
|
|
34
|
+
Tabs.CarouselCamera,
|
|
35
|
+
"carouselCamera"
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export { TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, TabsTriggerNotification };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const Tabs = require('./Tabs.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Carousel = Tabs.TabsCarousel;
|
|
10
|
+
exports.CarouselCamera = Tabs.TabsCarouselCamera;
|
|
11
|
+
exports.Content = Tabs.TabsContent;
|
|
12
|
+
exports.Indicator = Tabs.TabsIndicator;
|
|
13
|
+
exports.List = Tabs.TabsList;
|
|
14
|
+
exports.Root = Tabs.TabsRoot;
|
|
15
|
+
exports.Trigger = Tabs.TabsTrigger;
|
|
16
|
+
exports.TriggerNotification = Tabs.TabsTriggerNotification;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsCarouselCamera as CarouselCamera, TabsCarousel as Carousel, TabsTrigger as Trigger, TabsTriggerNotification as TriggerNotification, type TabsContentProps as ContentProps, type TabsIndicatorProps as IndicatorProps, type TabsListProps as ListProps, type TabsRootProps as RootProps, type TabsCarouselCameraProps as CarouselCameraProps, type TabsCarouselProps as CarouselProps, type TabsTriggerNotificationProps as TriggerNotificationProps, type TabsTriggerProps as TriggerProps, } from
|
|
1
|
+
export { TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsCarouselCamera as CarouselCamera, TabsCarousel as Carousel, TabsTrigger as Trigger, TabsTriggerNotification as TriggerNotification, type TabsContentProps as ContentProps, type TabsIndicatorProps as IndicatorProps, type TabsListProps as ListProps, type TabsRootProps as RootProps, type TabsCarouselCameraProps as CarouselCameraProps, type TabsCarouselProps as CarouselProps, type TabsTriggerNotificationProps as TriggerNotificationProps, type TabsTriggerProps as TriggerProps, } from './Tabs';
|
|
2
2
|
//# sourceMappingURL=Tabs.namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabsCarousel as Carousel, TabsCarouselCamera as CarouselCamera, TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsTrigger as Trigger, TabsTriggerNotification as TriggerNotification } from './Tabs.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const Tabs = require('./Tabs.cjs');
|
|
6
|
+
const Tabs_namespace = require('./Tabs.namespace.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.TabsCarousel = Tabs.TabsCarousel;
|
|
11
|
+
exports.TabsCarouselCamera = Tabs.TabsCarouselCamera;
|
|
12
|
+
exports.TabsContent = Tabs.TabsContent;
|
|
13
|
+
exports.TabsIndicator = Tabs.TabsIndicator;
|
|
14
|
+
exports.TabsList = Tabs.TabsList;
|
|
15
|
+
exports.TabsRoot = Tabs.TabsRoot;
|
|
16
|
+
exports.TabsTrigger = Tabs.TabsTrigger;
|
|
17
|
+
exports.TabsTriggerNotification = Tabs.TabsTriggerNotification;
|
|
18
|
+
exports.Tabs = Tabs_namespace;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TabsContent, TabsIndicator, TabsList, TabsRoot, TabsCarouselCamera, TabsCarousel, TabsTrigger, TabsTriggerNotification, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootProps, type TabsCarouselCameraProps, type TabsCarouselProps, type TabsTriggerNotificationProps, type TabsTriggerProps, } from
|
|
2
|
-
export * as Tabs from
|
|
1
|
+
export { TabsContent, TabsIndicator, TabsList, TabsRoot, TabsCarouselCamera, TabsCarousel, TabsTrigger, TabsTriggerNotification, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootProps, type TabsCarouselCameraProps, type TabsCarouselProps, type TabsTriggerNotificationProps, type TabsTriggerProps, } from './Tabs';
|
|
2
|
+
export * as Tabs from './Tabs.namespace';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
const text = require('@seed-design/css/recipes/text');
|
|
7
|
+
const vars = require('@seed-design/css/vars');
|
|
8
|
+
const clsx = require('clsx');
|
|
9
|
+
const React = require('react');
|
|
10
|
+
|
|
11
|
+
function handleColor(color) {
|
|
12
|
+
if (!color) {
|
|
13
|
+
return void 0;
|
|
14
|
+
}
|
|
15
|
+
const [type, value] = color.split(".");
|
|
16
|
+
return vars.vars.$color[type][value] ?? void 0;
|
|
17
|
+
}
|
|
18
|
+
function handleFontWeight(fontWeight) {
|
|
19
|
+
if (!fontWeight) {
|
|
20
|
+
return void 0;
|
|
21
|
+
}
|
|
22
|
+
return vars.vars.$fontWeight[fontWeight] ?? void 0;
|
|
23
|
+
}
|
|
24
|
+
function handleFontSize(size) {
|
|
25
|
+
if (!size) {
|
|
26
|
+
return void 0;
|
|
27
|
+
}
|
|
28
|
+
return vars.vars.$fontSize[size] ?? size;
|
|
29
|
+
}
|
|
30
|
+
function handleLineHeight(lineHeight) {
|
|
31
|
+
if (!lineHeight) {
|
|
32
|
+
return void 0;
|
|
33
|
+
}
|
|
34
|
+
return vars.vars.$lineHeight[lineHeight] ?? lineHeight;
|
|
35
|
+
}
|
|
36
|
+
function mapMaxLines(maxLines) {
|
|
37
|
+
if (maxLines === void 0) {
|
|
38
|
+
return "none";
|
|
39
|
+
}
|
|
40
|
+
if (maxLines === 1) {
|
|
41
|
+
return "single";
|
|
42
|
+
}
|
|
43
|
+
return "multi";
|
|
44
|
+
}
|
|
45
|
+
const Text = ({
|
|
46
|
+
as,
|
|
47
|
+
color,
|
|
48
|
+
textStyle,
|
|
49
|
+
fontSize,
|
|
50
|
+
lineHeight,
|
|
51
|
+
fontWeight,
|
|
52
|
+
maxLines,
|
|
53
|
+
children,
|
|
54
|
+
className,
|
|
55
|
+
style,
|
|
56
|
+
...otherProps
|
|
57
|
+
}) => {
|
|
58
|
+
const Comp = as || "span";
|
|
59
|
+
const classNames = React.useMemo(
|
|
60
|
+
() => text.text({
|
|
61
|
+
textStyle,
|
|
62
|
+
maxLines: mapMaxLines(maxLines)
|
|
63
|
+
}),
|
|
64
|
+
[textStyle, maxLines]
|
|
65
|
+
);
|
|
66
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
Comp,
|
|
68
|
+
{
|
|
69
|
+
className: clsx(classNames.root, className),
|
|
70
|
+
style: {
|
|
71
|
+
"--seed-max-lines": maxLines,
|
|
72
|
+
"--seed-text-color": handleColor(color),
|
|
73
|
+
"--seed-font-size": handleFontSize(fontSize),
|
|
74
|
+
"--seed-line-height": handleLineHeight(lineHeight ?? fontSize),
|
|
75
|
+
"--seed-font-weight": handleFontWeight(fontWeight),
|
|
76
|
+
"--seed-text-align": otherProps.align,
|
|
77
|
+
...style
|
|
78
|
+
},
|
|
79
|
+
...otherProps,
|
|
80
|
+
children
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
exports.Text = Text;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TextVariantProps } from '@seed-design/css/recipes/text';
|
|
2
|
+
import { ColorFg, ColorPalette, FontSize, FontWeight, LineHeight } from '@seed-design/css/vars';
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
export interface TextProps extends Omit<TextVariantProps, "maxLines">, React.HTMLAttributes<HTMLSpanElement> {
|
|
5
5
|
/**
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { text } from '@seed-design/css/recipes/text';
|
|
3
|
+
import { vars } from '@seed-design/css/vars';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { useMemo } from 'react';
|
|
6
|
+
|
|
7
|
+
function handleColor(color) {
|
|
8
|
+
if (!color) {
|
|
9
|
+
return void 0;
|
|
10
|
+
}
|
|
11
|
+
const [type, value] = color.split(".");
|
|
12
|
+
return vars.$color[type][value] ?? void 0;
|
|
13
|
+
}
|
|
14
|
+
function handleFontWeight(fontWeight) {
|
|
15
|
+
if (!fontWeight) {
|
|
16
|
+
return void 0;
|
|
17
|
+
}
|
|
18
|
+
return vars.$fontWeight[fontWeight] ?? void 0;
|
|
19
|
+
}
|
|
20
|
+
function handleFontSize(size) {
|
|
21
|
+
if (!size) {
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
return vars.$fontSize[size] ?? size;
|
|
25
|
+
}
|
|
26
|
+
function handleLineHeight(lineHeight) {
|
|
27
|
+
if (!lineHeight) {
|
|
28
|
+
return void 0;
|
|
29
|
+
}
|
|
30
|
+
return vars.$lineHeight[lineHeight] ?? lineHeight;
|
|
31
|
+
}
|
|
32
|
+
function mapMaxLines(maxLines) {
|
|
33
|
+
if (maxLines === void 0) {
|
|
34
|
+
return "none";
|
|
35
|
+
}
|
|
36
|
+
if (maxLines === 1) {
|
|
37
|
+
return "single";
|
|
38
|
+
}
|
|
39
|
+
return "multi";
|
|
40
|
+
}
|
|
41
|
+
const Text = ({
|
|
42
|
+
as,
|
|
43
|
+
color,
|
|
44
|
+
textStyle,
|
|
45
|
+
fontSize,
|
|
46
|
+
lineHeight,
|
|
47
|
+
fontWeight,
|
|
48
|
+
maxLines,
|
|
49
|
+
children,
|
|
50
|
+
className,
|
|
51
|
+
style,
|
|
52
|
+
...otherProps
|
|
53
|
+
}) => {
|
|
54
|
+
const Comp = as || "span";
|
|
55
|
+
const classNames = useMemo(
|
|
56
|
+
() => text({
|
|
57
|
+
textStyle,
|
|
58
|
+
maxLines: mapMaxLines(maxLines)
|
|
59
|
+
}),
|
|
60
|
+
[textStyle, maxLines]
|
|
61
|
+
);
|
|
62
|
+
return /* @__PURE__ */ jsx(
|
|
63
|
+
Comp,
|
|
64
|
+
{
|
|
65
|
+
className: clsx(classNames.root, className),
|
|
66
|
+
style: {
|
|
67
|
+
"--seed-max-lines": maxLines,
|
|
68
|
+
"--seed-text-color": handleColor(color),
|
|
69
|
+
"--seed-font-size": handleFontSize(fontSize),
|
|
70
|
+
"--seed-line-height": handleLineHeight(lineHeight ?? fontSize),
|
|
71
|
+
"--seed-font-weight": handleFontWeight(fontWeight),
|
|
72
|
+
"--seed-text-align": otherProps.align,
|
|
73
|
+
...style
|
|
74
|
+
},
|
|
75
|
+
...otherProps,
|
|
76
|
+
children
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export { Text };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Text';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Text } from './Text.js';
|