@seed-design/react 0.0.1-alpha-20250210081704
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/README.md +7 -0
- package/lib/components/ActionButton/ActionButton.d.ts +24 -0
- package/lib/components/ActionButton/ActionButton.d.ts.map +1 -0
- package/lib/components/ActionButton/ActionButton.namespace.d.ts +2 -0
- package/lib/components/ActionButton/ActionButton.namespace.d.ts.map +1 -0
- package/lib/components/ActionButton/index.d.ts +3 -0
- package/lib/components/ActionButton/index.d.ts.map +1 -0
- package/lib/components/ActionChip/ActionChip.d.ts +23 -0
- package/lib/components/ActionChip/ActionChip.d.ts.map +1 -0
- package/lib/components/ActionChip/ActionChip.namespace.d.ts +2 -0
- package/lib/components/ActionChip/ActionChip.namespace.d.ts.map +1 -0
- package/lib/components/ActionChip/index.d.ts +3 -0
- package/lib/components/ActionChip/index.d.ts.map +1 -0
- package/lib/components/ActionSheet/ActionSheet.d.ts +47 -0
- package/lib/components/ActionSheet/ActionSheet.d.ts.map +1 -0
- package/lib/components/ActionSheet/ActionSheet.namespace.d.ts +2 -0
- package/lib/components/ActionSheet/ActionSheet.namespace.d.ts.map +1 -0
- package/lib/components/ActionSheet/index.d.ts +3 -0
- package/lib/components/ActionSheet/index.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.d.ts +21 -0
- package/lib/components/Avatar/Avatar.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.namespace.d.ts +2 -0
- package/lib/components/Avatar/Avatar.namespace.d.ts.map +1 -0
- package/lib/components/Avatar/index.d.ts +3 -0
- package/lib/components/Avatar/index.d.ts.map +1 -0
- package/lib/components/Badge/Badge.d.ts +10 -0
- package/lib/components/Badge/Badge.d.ts.map +1 -0
- package/lib/components/Badge/Badge.namespace.d.ts +2 -0
- package/lib/components/Badge/Badge.namespace.d.ts.map +1 -0
- package/lib/components/Badge/index.d.ts +3 -0
- package/lib/components/Badge/index.d.ts.map +1 -0
- package/lib/components/BottomSheet/BottomSheet.d.ts +42 -0
- package/lib/components/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/components/BottomSheet/BottomSheet.namespace.d.ts +2 -0
- package/lib/components/BottomSheet/BottomSheet.namespace.d.ts.map +1 -0
- package/lib/components/BottomSheet/index.d.ts +3 -0
- package/lib/components/BottomSheet/index.d.ts.map +1 -0
- package/lib/components/Box/Box.d.ts +50 -0
- package/lib/components/Box/Box.d.ts.map +1 -0
- package/lib/components/Box/index.d.ts +2 -0
- package/lib/components/Box/index.d.ts.map +1 -0
- package/lib/components/Callout/Callout.d.ts +33 -0
- package/lib/components/Callout/Callout.d.ts.map +1 -0
- package/lib/components/Callout/Callout.namespace.d.ts +2 -0
- package/lib/components/Callout/Callout.namespace.d.ts.map +1 -0
- package/lib/components/Callout/index.d.ts +3 -0
- package/lib/components/Callout/index.d.ts.map +1 -0
- package/lib/components/Celcius/Celcius.d.ts +6 -0
- package/lib/components/Celcius/Celcius.d.ts.map +1 -0
- package/lib/components/Celcius/index.d.ts +2 -0
- package/lib/components/Celcius/index.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.d.ts +31 -0
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.namespace.d.ts +2 -0
- package/lib/components/Checkbox/Checkbox.namespace.d.ts.map +1 -0
- package/lib/components/Checkbox/index.d.ts +3 -0
- package/lib/components/Checkbox/index.d.ts.map +1 -0
- package/lib/components/ChipTabs/ChipTabs.d.ts +26 -0
- package/lib/components/ChipTabs/ChipTabs.d.ts.map +1 -0
- package/lib/components/ChipTabs/ChipTabs.namespace.d.ts +2 -0
- package/lib/components/ChipTabs/ChipTabs.namespace.d.ts.map +1 -0
- package/lib/components/ChipTabs/index.d.ts +3 -0
- package/lib/components/ChipTabs/index.d.ts.map +1 -0
- package/lib/components/Columns/Columns.d.ts +10 -0
- package/lib/components/Columns/Columns.d.ts.map +1 -0
- package/lib/components/Columns/index.d.ts +2 -0
- package/lib/components/Columns/index.d.ts.map +1 -0
- package/lib/components/ControlChip/ControlChip.d.ts +25 -0
- package/lib/components/ControlChip/ControlChip.d.ts.map +1 -0
- package/lib/components/ControlChip/ControlChip.namespace.d.ts +2 -0
- package/lib/components/ControlChip/ControlChip.namespace.d.ts.map +1 -0
- package/lib/components/ControlChip/index.d.ts +3 -0
- package/lib/components/ControlChip/index.d.ts.map +1 -0
- package/lib/components/Dialog/Dialog.d.ts +34 -0
- package/lib/components/Dialog/Dialog.d.ts.map +1 -0
- package/lib/components/Dialog/Dialog.namespace.d.ts +2 -0
- package/lib/components/Dialog/Dialog.namespace.d.ts.map +1 -0
- package/lib/components/Dialog/index.d.ts +3 -0
- package/lib/components/Dialog/index.d.ts.map +1 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts +54 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts.map +1 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts +2 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts.map +1 -0
- package/lib/components/ExtendedActionSheet/index.d.ts +3 -0
- package/lib/components/ExtendedActionSheet/index.d.ts.map +1 -0
- package/lib/components/ExtendedFab/ExtendedFab.d.ts +13 -0
- package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +1 -0
- package/lib/components/ExtendedFab/ExtendedFab.namespace.d.ts +2 -0
- package/lib/components/ExtendedFab/ExtendedFab.namespace.d.ts.map +1 -0
- package/lib/components/ExtendedFab/index.d.ts +3 -0
- package/lib/components/ExtendedFab/index.d.ts.map +1 -0
- package/lib/components/Fab/Fab.d.ts +11 -0
- package/lib/components/Fab/Fab.d.ts.map +1 -0
- package/lib/components/Fab/Fab.namespace.d.ts +2 -0
- package/lib/components/Fab/Fab.namespace.d.ts.map +1 -0
- package/lib/components/Fab/index.d.ts +3 -0
- package/lib/components/Fab/index.d.ts.map +1 -0
- package/lib/components/Flex/Flex.d.ts +12 -0
- package/lib/components/Flex/Flex.d.ts.map +1 -0
- package/lib/components/Flex/index.d.ts +2 -0
- package/lib/components/Flex/index.d.ts.map +1 -0
- package/lib/components/HelpBubble/HelpBubble.d.ts +47 -0
- package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -0
- package/lib/components/HelpBubble/HelpBubble.namespace.d.ts +2 -0
- package/lib/components/HelpBubble/HelpBubble.namespace.d.ts.map +1 -0
- package/lib/components/HelpBubble/index.d.ts +3 -0
- package/lib/components/HelpBubble/index.d.ts.map +1 -0
- package/lib/components/Inline/Inline.d.ts +6 -0
- package/lib/components/Inline/Inline.d.ts.map +1 -0
- package/lib/components/Inline/index.d.ts +2 -0
- package/lib/components/Inline/index.d.ts.map +1 -0
- package/lib/components/InlineBanner/InlineBanner.d.ts +36 -0
- package/lib/components/InlineBanner/InlineBanner.d.ts.map +1 -0
- package/lib/components/InlineBanner/InlineBanner.namespace.d.ts +2 -0
- package/lib/components/InlineBanner/InlineBanner.namespace.d.ts.map +1 -0
- package/lib/components/InlineBanner/index.d.ts +3 -0
- package/lib/components/InlineBanner/index.d.ts.map +1 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.d.ts +10 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.d.ts.map +1 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.namespace.d.ts +2 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.namespace.d.ts.map +1 -0
- package/lib/components/MannerTempBadge/index.d.ts +3 -0
- package/lib/components/MannerTempBadge/index.d.ts.map +1 -0
- package/lib/components/ProgressCircle/ProgressCircle.d.ts +12 -0
- package/lib/components/ProgressCircle/ProgressCircle.d.ts.map +1 -0
- package/lib/components/ProgressCircle/ProgressCircle.namespace.d.ts +2 -0
- package/lib/components/ProgressCircle/ProgressCircle.namespace.d.ts.map +1 -0
- package/lib/components/ProgressCircle/index.d.ts +3 -0
- package/lib/components/ProgressCircle/index.d.ts.map +1 -0
- package/lib/components/PullToRefresh/PullToRefresh.d.ts +12 -0
- package/lib/components/PullToRefresh/PullToRefresh.d.ts.map +1 -0
- package/lib/components/PullToRefresh/PullToRefresh.namespace.d.ts +2 -0
- package/lib/components/PullToRefresh/PullToRefresh.namespace.d.ts.map +1 -0
- package/lib/components/PullToRefresh/index.d.ts +3 -0
- package/lib/components/PullToRefresh/index.d.ts.map +1 -0
- package/lib/components/ReactionButton/ReactionButton.d.ts +22 -0
- package/lib/components/ReactionButton/ReactionButton.d.ts.map +1 -0
- package/lib/components/ReactionButton/ReactionButton.namespace.d.ts +2 -0
- package/lib/components/ReactionButton/ReactionButton.namespace.d.ts.map +1 -0
- package/lib/components/ReactionButton/index.d.ts +3 -0
- package/lib/components/ReactionButton/index.d.ts.map +1 -0
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +19 -0
- package/lib/components/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/lib/components/SegmentedControl/SegmentedControl.namespace.d.ts +2 -0
- package/lib/components/SegmentedControl/SegmentedControl.namespace.d.ts.map +1 -0
- package/lib/components/SegmentedControl/index.d.ts +3 -0
- package/lib/components/SegmentedControl/index.d.ts.map +1 -0
- package/lib/components/SelectBox/CheckSelectBox.d.ts +32 -0
- package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -0
- package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts +2 -0
- package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts.map +1 -0
- package/lib/components/SelectBox/RadioSelectBox.d.ts +28 -0
- package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -0
- package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts +2 -0
- package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts.map +1 -0
- package/lib/components/SelectBox/index.d.ts +5 -0
- package/lib/components/SelectBox/index.d.ts.map +1 -0
- package/lib/components/Skeleton/Skeleton.d.ts +7 -0
- package/lib/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/lib/components/Skeleton/index.d.ts +2 -0
- package/lib/components/Skeleton/index.d.ts.map +1 -0
- package/lib/components/Snackbar/Snackbar.d.ts +35 -0
- package/lib/components/Snackbar/Snackbar.d.ts.map +1 -0
- package/lib/components/Snackbar/Snackbar.namespace.d.ts +2 -0
- package/lib/components/Snackbar/Snackbar.namespace.d.ts.map +1 -0
- package/lib/components/Snackbar/index.d.ts +5 -0
- package/lib/components/Snackbar/index.d.ts.map +1 -0
- package/lib/components/Snackbar/useSnackbarAdapter.d.ts +11 -0
- package/lib/components/Snackbar/useSnackbarAdapter.d.ts.map +1 -0
- package/lib/components/Stack/Stack.d.ts +6 -0
- package/lib/components/Stack/Stack.d.ts.map +1 -0
- package/lib/components/Stack/index.d.ts +2 -0
- package/lib/components/Stack/index.d.ts.map +1 -0
- package/lib/components/Switch/Switch.d.ts +19 -0
- package/lib/components/Switch/Switch.d.ts.map +1 -0
- package/lib/components/Switch/Switch.namespace.d.ts +2 -0
- package/lib/components/Switch/Switch.namespace.d.ts.map +1 -0
- package/lib/components/Switch/index.d.ts +3 -0
- package/lib/components/Switch/index.d.ts.map +1 -0
- package/lib/components/Tabs/Tabs.d.ts +32 -0
- package/lib/components/Tabs/Tabs.d.ts.map +1 -0
- package/lib/components/Tabs/Tabs.namespace.d.ts +2 -0
- package/lib/components/Tabs/Tabs.namespace.d.ts.map +1 -0
- package/lib/components/Tabs/index.d.ts +3 -0
- package/lib/components/Tabs/index.d.ts.map +1 -0
- package/lib/components/Text/Text.d.ts +36 -0
- package/lib/components/Text/Text.d.ts.map +1 -0
- package/lib/components/Text/index.d.ts +2 -0
- package/lib/components/Text/index.d.ts.map +1 -0
- package/lib/components/TextButton/TextButton.d.ts +17 -0
- package/lib/components/TextButton/TextButton.d.ts.map +1 -0
- package/lib/components/TextButton/TextButton.namespace.d.ts +2 -0
- package/lib/components/TextButton/TextButton.namespace.d.ts.map +1 -0
- package/lib/components/TextButton/index.d.ts +3 -0
- package/lib/components/TextButton/index.d.ts.map +1 -0
- package/lib/components/TextField/TextField.d.ts +65 -0
- package/lib/components/TextField/TextField.d.ts.map +1 -0
- package/lib/components/TextField/TextField.namespace.d.ts +2 -0
- package/lib/components/TextField/TextField.namespace.d.ts.map +1 -0
- package/lib/components/TextField/index.d.ts +3 -0
- package/lib/components/TextField/index.d.ts.map +1 -0
- package/lib/components/ToggleButton/ToggleButton.d.ts +22 -0
- package/lib/components/ToggleButton/ToggleButton.d.ts.map +1 -0
- package/lib/components/ToggleButton/ToggleButton.namespace.d.ts +2 -0
- package/lib/components/ToggleButton/ToggleButton.namespace.d.ts.map +1 -0
- package/lib/components/ToggleButton/index.d.ts +3 -0
- package/lib/components/ToggleButton/index.d.ts.map +1 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.d.ts +6 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/lib/components/VisuallyHidden/index.d.ts +2 -0
- package/lib/components/VisuallyHidden/index.d.ts.map +1 -0
- package/lib/components/index.d.ts +38 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/private/Icon.d.ts +5 -0
- package/lib/components/private/Icon.d.ts.map +1 -0
- package/lib/components/private/useDismissible.d.ts +1665 -0
- package/lib/components/private/useDismissible.d.ts.map +1 -0
- package/lib/components/private/usePendingButton.d.ts +831 -0
- package/lib/components/private/usePendingButton.d.ts.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +2309 -0
- package/lib/index.js.map +7 -0
- package/lib/index.mjs +2318 -0
- package/lib/index.mjs.map +7 -0
- package/lib/primitive.d.ts +12 -0
- package/lib/primitive.d.ts.map +1 -0
- package/lib/primitive.js +31 -0
- package/lib/primitive.js.map +7 -0
- package/lib/primitive.mjs +13 -0
- package/lib/primitive.mjs.map +7 -0
- package/lib/utils/createStyleContext.d.ts +24 -0
- package/lib/utils/createStyleContext.d.ts.map +1 -0
- package/lib/utils/createWithStateProps.d.ts +10 -0
- package/lib/utils/createWithStateProps.d.ts.map +1 -0
- package/lib/vars.d.ts +2 -0
- package/lib/vars.d.ts.map +1 -0
- package/lib/vars.js +21 -0
- package/lib/vars.js.map +7 -0
- package/lib/vars.mjs +3 -0
- package/lib/vars.mjs.map +7 -0
- package/package.json +80 -0
- package/src/components/ActionButton/ActionButton.namespace.ts +14 -0
- package/src/components/ActionButton/ActionButton.tsx +98 -0
- package/src/components/ActionButton/index.ts +16 -0
- package/src/components/ActionChip/ActionChip.namespace.ts +14 -0
- package/src/components/ActionChip/ActionChip.tsx +54 -0
- package/src/components/ActionChip/index.ts +16 -0
- package/src/components/ActionSheet/ActionSheet.namespace.ts +28 -0
- package/src/components/ActionSheet/ActionSheet.tsx +150 -0
- package/src/components/ActionSheet/index.ts +30 -0
- package/src/components/Avatar/Avatar.namespace.ts +12 -0
- package/src/components/Avatar/Avatar.tsx +69 -0
- package/src/components/Avatar/index.ts +14 -0
- package/src/components/Badge/Badge.namespace.ts +6 -0
- package/src/components/Badge/Badge.tsx +21 -0
- package/src/components/Badge/index.ts +8 -0
- package/src/components/BottomSheet/BottomSheet.namespace.ts +26 -0
- package/src/components/BottomSheet/BottomSheet.tsx +123 -0
- package/src/components/BottomSheet/index.ts +28 -0
- package/src/components/Box/Box.tsx +303 -0
- package/src/components/Box/index.ts +1 -0
- package/src/components/Callout/Callout.namespace.ts +20 -0
- package/src/components/Callout/Callout.tsx +101 -0
- package/src/components/Callout/index.ts +22 -0
- package/src/components/Celcius/Celcius.tsx +9 -0
- package/src/components/Celcius/index.ts +4 -0
- package/src/components/Checkbox/Checkbox.namespace.ts +12 -0
- package/src/components/Checkbox/Checkbox.tsx +96 -0
- package/src/components/Checkbox/index.ts +14 -0
- package/src/components/ChipTabs/ChipTabs.namespace.ts +16 -0
- package/src/components/ChipTabs/ChipTabs.tsx +80 -0
- package/src/components/ChipTabs/index.ts +18 -0
- package/src/components/Columns/Columns.tsx +38 -0
- package/src/components/Columns/index.ts +1 -0
- package/src/components/ControlChip/ControlChip.namespace.ts +15 -0
- package/src/components/ControlChip/ControlChip.tsx +63 -0
- package/src/components/ControlChip/index.ts +17 -0
- package/src/components/Dialog/Dialog.namespace.ts +22 -0
- package/src/components/Dialog/Dialog.tsx +94 -0
- package/src/components/Dialog/index.ts +24 -0
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.namespace.ts +32 -0
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +181 -0
- package/src/components/ExtendedActionSheet/index.ts +34 -0
- package/src/components/ExtendedFab/ExtendedFab.namespace.ts +8 -0
- package/src/components/ExtendedFab/ExtendedFab.tsx +44 -0
- package/src/components/ExtendedFab/index.ts +10 -0
- package/src/components/Fab/Fab.namespace.ts +6 -0
- package/src/components/Fab/Fab.tsx +22 -0
- package/src/components/Fab/index.ts +8 -0
- package/src/components/Flex/Flex.tsx +19 -0
- package/src/components/Flex/index.ts +1 -0
- package/src/components/HelpBubble/HelpBubble.namespace.ts +25 -0
- package/src/components/HelpBubble/HelpBubble.tsx +158 -0
- package/src/components/HelpBubble/index.ts +28 -0
- package/src/components/Inline/Inline.tsx +18 -0
- package/src/components/Inline/index.ts +1 -0
- package/src/components/InlineBanner/InlineBanner.namespace.ts +22 -0
- package/src/components/InlineBanner/InlineBanner.tsx +105 -0
- package/src/components/InlineBanner/index.ts +24 -0
- package/src/components/MannerTempBadge/MannerTempBadge.namespace.ts +6 -0
- package/src/components/MannerTempBadge/MannerTempBadge.tsx +32 -0
- package/src/components/MannerTempBadge/index.ts +8 -0
- package/src/components/ProgressCircle/ProgressCircle.namespace.ts +8 -0
- package/src/components/ProgressCircle/ProgressCircle.tsx +31 -0
- package/src/components/ProgressCircle/index.ts +10 -0
- package/src/components/PullToRefresh/PullToRefresh.namespace.ts +8 -0
- package/src/components/PullToRefresh/PullToRefresh.tsx +25 -0
- package/src/components/PullToRefresh/index.ts +10 -0
- package/src/components/ReactionButton/ReactionButton.namespace.ts +12 -0
- package/src/components/ReactionButton/ReactionButton.tsx +80 -0
- package/src/components/ReactionButton/index.ts +14 -0
- package/src/components/SegmentedControl/SegmentedControl.namespace.ts +12 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +53 -0
- package/src/components/SegmentedControl/index.ts +14 -0
- package/src/components/SelectBox/CheckSelectBox.namespace.ts +18 -0
- package/src/components/SelectBox/CheckSelectBox.tsx +79 -0
- package/src/components/SelectBox/RadioSelectBox.namespace.ts +18 -0
- package/src/components/SelectBox/RadioSelectBox.tsx +73 -0
- package/src/components/SelectBox/index.ts +40 -0
- package/src/components/Skeleton/Skeleton.tsx +13 -0
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/Snackbar/Snackbar.namespace.ts +20 -0
- package/src/components/Snackbar/Snackbar.tsx +100 -0
- package/src/components/Snackbar/index.ts +32 -0
- package/src/components/Snackbar/useSnackbarAdapter.ts +28 -0
- package/src/components/Stack/Stack.tsx +8 -0
- package/src/components/Stack/index.ts +1 -0
- package/src/components/Switch/Switch.namespace.ts +12 -0
- package/src/components/Switch/Switch.tsx +50 -0
- package/src/components/Switch/index.ts +14 -0
- package/src/components/Tabs/Tabs.namespace.ts +20 -0
- package/src/components/Tabs/Tabs.tsx +94 -0
- package/src/components/Tabs/index.ts +22 -0
- package/src/components/Text/Text.tsx +139 -0
- package/src/components/Text/index.tsx +1 -0
- package/src/components/TextButton/TextButton.namespace.ts +10 -0
- package/src/components/TextButton/TextButton.tsx +41 -0
- package/src/components/TextButton/index.ts +12 -0
- package/src/components/TextField/TextField.namespace.tsx +38 -0
- package/src/components/TextField/TextField.tsx +258 -0
- package/src/components/TextField/index.tsx +40 -0
- package/src/components/ToggleButton/ToggleButton.namespace.ts +12 -0
- package/src/components/ToggleButton/ToggleButton.tsx +75 -0
- package/src/components/ToggleButton/index.ts +14 -0
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +13 -0
- package/src/components/VisuallyHidden/index.tsx +1 -0
- package/src/components/index.ts +37 -0
- package/src/components/private/Icon.tsx +15 -0
- package/src/components/private/useDismissible.tsx +86 -0
- package/src/components/private/usePendingButton.tsx +45 -0
- package/src/index.tsx +1 -0
- package/src/primitive.ts +11 -0
- package/src/utils/createStyleContext.tsx +125 -0
- package/src/utils/createWithStateProps.tsx +28 -0
- package/src/vars.ts +1 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive, useDialogContext } from "@seed-design/react-dialog";
|
|
2
|
+
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
3
|
+
import { dialog, type DialogVariantProps } from "@seed-design/recipe/dialog";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { createStyleContext } from "../../utils/createStyleContext";
|
|
6
|
+
import { createWithStateProps } from "../../utils/createWithStateProps";
|
|
7
|
+
|
|
8
|
+
const { withRootProvider, withContext } = createStyleContext(dialog);
|
|
9
|
+
const withStateProps = createWithStateProps([useDialogContext]);
|
|
10
|
+
|
|
11
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
12
|
+
|
|
13
|
+
export interface DialogRootProps extends DialogVariantProps, DialogPrimitive.RootProps {}
|
|
14
|
+
|
|
15
|
+
export const DialogRoot = withRootProvider<DialogRootProps>(DialogPrimitive.Root, {
|
|
16
|
+
defaultProps: {
|
|
17
|
+
lazyMount: true,
|
|
18
|
+
unmountOnExit: true,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
23
|
+
|
|
24
|
+
export interface DialogTriggerProps extends DialogPrimitive.TriggerProps {}
|
|
25
|
+
|
|
26
|
+
export const DialogTrigger = DialogPrimitive.Trigger;
|
|
27
|
+
|
|
28
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
29
|
+
|
|
30
|
+
export interface DialogPositionerProps extends DialogPrimitive.PositionerProps {}
|
|
31
|
+
|
|
32
|
+
export const DialogPositioner = withContext<HTMLDivElement, DialogPositionerProps>(
|
|
33
|
+
DialogPrimitive.Positioner,
|
|
34
|
+
"positioner",
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
38
|
+
|
|
39
|
+
export interface DialogBackdropProps extends DialogPrimitive.BackdropProps {}
|
|
40
|
+
|
|
41
|
+
export const DialogBackdrop = withContext<HTMLDivElement, DialogBackdropProps>(
|
|
42
|
+
DialogPrimitive.Backdrop,
|
|
43
|
+
"backdrop",
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
47
|
+
|
|
48
|
+
export interface DialogContentProps extends DialogPrimitive.ContentProps {}
|
|
49
|
+
|
|
50
|
+
export const DialogContent = withContext<HTMLDivElement, DialogContentProps>(
|
|
51
|
+
DialogPrimitive.Content,
|
|
52
|
+
"content",
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
56
|
+
|
|
57
|
+
export interface DialogHeaderProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {}
|
|
58
|
+
|
|
59
|
+
export const DialogHeader = withContext<HTMLDivElement, DialogHeaderProps>(Primitive.div, "header");
|
|
60
|
+
|
|
61
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
62
|
+
|
|
63
|
+
export interface DialogTitleProps extends DialogPrimitive.TitleProps {}
|
|
64
|
+
|
|
65
|
+
export const DialogTitle = withContext<HTMLHeadingElement, DialogTitleProps>(
|
|
66
|
+
withStateProps(Primitive.span),
|
|
67
|
+
"title",
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
71
|
+
|
|
72
|
+
export interface DialogDescriptionProps extends DialogPrimitive.DescriptionProps {}
|
|
73
|
+
|
|
74
|
+
export const DialogDescription = withContext<HTMLParagraphElement, DialogDescriptionProps>(
|
|
75
|
+
withStateProps(Primitive.div),
|
|
76
|
+
"description",
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
80
|
+
|
|
81
|
+
export interface DialogFooterProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {}
|
|
82
|
+
|
|
83
|
+
export const DialogFooter = withContext<HTMLDivElement, DialogFooterProps>(Primitive.div, "footer");
|
|
84
|
+
|
|
85
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
86
|
+
|
|
87
|
+
export interface DialogActionProps
|
|
88
|
+
extends PrimitiveProps,
|
|
89
|
+
React.HTMLAttributes<HTMLButtonElement> {}
|
|
90
|
+
|
|
91
|
+
export const DialogAction = forwardRef<HTMLButtonElement, DialogActionProps>((props, ref) => {
|
|
92
|
+
const api = useDialogContext();
|
|
93
|
+
return <Primitive.button {...props} ref={ref} onClick={() => api.setOpen(false)} />;
|
|
94
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export {
|
|
2
|
+
DialogBackdrop,
|
|
3
|
+
DialogPositioner,
|
|
4
|
+
DialogContent,
|
|
5
|
+
DialogDescription,
|
|
6
|
+
DialogFooter,
|
|
7
|
+
DialogHeader,
|
|
8
|
+
DialogRoot,
|
|
9
|
+
DialogTitle,
|
|
10
|
+
DialogTrigger,
|
|
11
|
+
DialogAction,
|
|
12
|
+
type DialogBackdropProps,
|
|
13
|
+
type DialogPositionerProps,
|
|
14
|
+
type DialogContentProps,
|
|
15
|
+
type DialogDescriptionProps,
|
|
16
|
+
type DialogFooterProps,
|
|
17
|
+
type DialogHeaderProps,
|
|
18
|
+
type DialogRootProps,
|
|
19
|
+
type DialogTitleProps,
|
|
20
|
+
type DialogTriggerProps,
|
|
21
|
+
type DialogActionProps,
|
|
22
|
+
} from "./Dialog";
|
|
23
|
+
|
|
24
|
+
export * as Dialog from "./Dialog.namespace";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export {
|
|
2
|
+
ExtendedActionSheetBackdrop as Backdrop,
|
|
3
|
+
ExtendedActionSheetPositioner as Positioner,
|
|
4
|
+
ExtendedActionSheetContent as Content,
|
|
5
|
+
ExtendedActionSheetFooter as Footer,
|
|
6
|
+
ExtendedActionSheetHeader as Header,
|
|
7
|
+
ExtendedActionSheetRoot as Root,
|
|
8
|
+
ExtendedActionSheetTitle as Title,
|
|
9
|
+
ExtendedActionSheetTrigger as Trigger,
|
|
10
|
+
ExtendedActionSheetList as List,
|
|
11
|
+
ExtendedActionSheetGroup as Group,
|
|
12
|
+
ExtendedActionSheetItem as Item,
|
|
13
|
+
ExtendedActionSheetItemLabel as ItemLabel,
|
|
14
|
+
ExtendedActionSheetItemPrefixIcon as ItemPrefixIcon,
|
|
15
|
+
ExtendedActionSheetCloseButton as CloseButton,
|
|
16
|
+
ExtendedActionSheetCloseButtonLabel as CloseButtonLabel,
|
|
17
|
+
type ExtendedActionSheetBackdropProps as BackdropProps,
|
|
18
|
+
type ExtendedActionSheetPositionerProps as PositionerProps,
|
|
19
|
+
type ExtendedActionSheetContentProps as ContentProps,
|
|
20
|
+
type ExtendedActionSheetFooterProps as FooterProps,
|
|
21
|
+
type ExtendedActionSheetHeaderProps as HeaderProps,
|
|
22
|
+
type ExtendedActionSheetRootProps as RootProps,
|
|
23
|
+
type ExtendedActionSheetTitleProps as TitleProps,
|
|
24
|
+
type ExtendedActionSheetTriggerProps as TriggerProps,
|
|
25
|
+
type ExtendedActionSheetListProps as ListProps,
|
|
26
|
+
type ExtendedActionSheetGroupProps as GroupProps,
|
|
27
|
+
type ExtendedActionSheetItemProps as ItemProps,
|
|
28
|
+
type ExtendedActionSheetItemLabelProps as ItemLabelProps,
|
|
29
|
+
type ExtendedActionSheetItemPrefixIconProps as ItemPrefixIconProps,
|
|
30
|
+
type ExtendedActionSheetCloseButtonProps as CloseButtonProps,
|
|
31
|
+
type ExtendedActionSheetCloseButtonLabelProps as CloseButtonLabelProps,
|
|
32
|
+
} from "./ExtendedActionSheet";
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive, useDialogContext } from "@seed-design/react-dialog";
|
|
2
|
+
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
3
|
+
import {
|
|
4
|
+
extendedActionSheet,
|
|
5
|
+
type ExtendedActionSheetVariantProps,
|
|
6
|
+
} from "@seed-design/recipe/extendedActionSheet";
|
|
7
|
+
import {
|
|
8
|
+
extendedActionSheetCloseButton,
|
|
9
|
+
type ExtendedActionSheetCloseButtonVariantProps,
|
|
10
|
+
} from "@seed-design/recipe/extendedActionSheetCloseButton";
|
|
11
|
+
import {
|
|
12
|
+
extendedActionSheetItem,
|
|
13
|
+
type ExtendedActionSheetItemVariantProps,
|
|
14
|
+
} from "@seed-design/recipe/extendedActionSheetItem";
|
|
15
|
+
import type * as React from "react";
|
|
16
|
+
import { createStyleContext } from "../../utils/createStyleContext";
|
|
17
|
+
import { createWithStateProps } from "../../utils/createWithStateProps";
|
|
18
|
+
import { Icon, type IconProps } from "../private/Icon";
|
|
19
|
+
|
|
20
|
+
const { withRootProvider, withContext } = createStyleContext(extendedActionSheet);
|
|
21
|
+
const { withProvider: withItemProvider, withContext: withItemContext } =
|
|
22
|
+
createStyleContext(extendedActionSheetItem);
|
|
23
|
+
const { withProvider: withCloseButtonProvider, withContext: withCloseButtonContext } =
|
|
24
|
+
createStyleContext(extendedActionSheetCloseButton);
|
|
25
|
+
const withStateProps = createWithStateProps([useDialogContext]);
|
|
26
|
+
|
|
27
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
28
|
+
|
|
29
|
+
export interface ExtendedActionSheetRootProps
|
|
30
|
+
extends ExtendedActionSheetVariantProps,
|
|
31
|
+
DialogPrimitive.RootProps {}
|
|
32
|
+
|
|
33
|
+
export const ExtendedActionSheetRoot = withRootProvider<ExtendedActionSheetRootProps>(
|
|
34
|
+
DialogPrimitive.Root,
|
|
35
|
+
{
|
|
36
|
+
defaultProps: {
|
|
37
|
+
lazyMount: true,
|
|
38
|
+
unmountOnExit: true,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
44
|
+
|
|
45
|
+
export interface ExtendedActionSheetTriggerProps extends DialogPrimitive.TriggerProps {}
|
|
46
|
+
|
|
47
|
+
export const ExtendedActionSheetTrigger = DialogPrimitive.Trigger;
|
|
48
|
+
|
|
49
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
50
|
+
|
|
51
|
+
export interface ExtendedActionSheetPositionerProps extends DialogPrimitive.PositionerProps {}
|
|
52
|
+
|
|
53
|
+
export const ExtendedActionSheetPositioner = withContext<
|
|
54
|
+
HTMLDivElement,
|
|
55
|
+
ExtendedActionSheetPositionerProps
|
|
56
|
+
>(DialogPrimitive.Positioner, "positioner");
|
|
57
|
+
|
|
58
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
59
|
+
|
|
60
|
+
export interface ExtendedActionSheetBackdropProps extends DialogPrimitive.BackdropProps {}
|
|
61
|
+
|
|
62
|
+
export const ExtendedActionSheetBackdrop = withContext<
|
|
63
|
+
HTMLDivElement,
|
|
64
|
+
ExtendedActionSheetBackdropProps
|
|
65
|
+
>(DialogPrimitive.Backdrop, "backdrop");
|
|
66
|
+
|
|
67
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
68
|
+
|
|
69
|
+
export interface ExtendedActionSheetContentProps extends DialogPrimitive.ContentProps {}
|
|
70
|
+
|
|
71
|
+
export const ExtendedActionSheetContent = withContext<
|
|
72
|
+
HTMLDivElement,
|
|
73
|
+
ExtendedActionSheetContentProps
|
|
74
|
+
>(DialogPrimitive.Content, "content");
|
|
75
|
+
|
|
76
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
77
|
+
|
|
78
|
+
export interface ExtendedActionSheetHeaderProps
|
|
79
|
+
extends PrimitiveProps,
|
|
80
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
81
|
+
|
|
82
|
+
export const ExtendedActionSheetHeader = withContext<
|
|
83
|
+
HTMLDivElement,
|
|
84
|
+
ExtendedActionSheetHeaderProps
|
|
85
|
+
>(withStateProps(Primitive.div), "header");
|
|
86
|
+
|
|
87
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
88
|
+
|
|
89
|
+
export interface ExtendedActionSheetTitleProps extends DialogPrimitive.TitleProps {}
|
|
90
|
+
|
|
91
|
+
export const ExtendedActionSheetTitle = withContext<
|
|
92
|
+
HTMLHeadingElement,
|
|
93
|
+
ExtendedActionSheetTitleProps
|
|
94
|
+
>(withStateProps(Primitive.h2), "title");
|
|
95
|
+
|
|
96
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
97
|
+
|
|
98
|
+
export interface ExtendedActionSheetListProps
|
|
99
|
+
extends PrimitiveProps,
|
|
100
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
101
|
+
|
|
102
|
+
export const ExtendedActionSheetList = withContext<HTMLDivElement, ExtendedActionSheetListProps>(
|
|
103
|
+
withStateProps(Primitive.div),
|
|
104
|
+
"list",
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
108
|
+
|
|
109
|
+
export interface ExtendedActionSheetGroupProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
110
|
+
|
|
111
|
+
export const ExtendedActionSheetGroup = withContext<HTMLDivElement, ExtendedActionSheetGroupProps>(
|
|
112
|
+
withStateProps(Primitive.div),
|
|
113
|
+
"group",
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
117
|
+
|
|
118
|
+
export interface ExtendedActionSheetItemProps
|
|
119
|
+
extends PrimitiveProps,
|
|
120
|
+
ExtendedActionSheetItemVariantProps,
|
|
121
|
+
React.HTMLAttributes<HTMLButtonElement> {}
|
|
122
|
+
|
|
123
|
+
export const ExtendedActionSheetItem = withItemProvider<
|
|
124
|
+
HTMLButtonElement,
|
|
125
|
+
ExtendedActionSheetItemProps
|
|
126
|
+
>(withStateProps(Primitive.button), "root");
|
|
127
|
+
|
|
128
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
129
|
+
|
|
130
|
+
export interface ExtendedActionSheetItemLabelProps
|
|
131
|
+
extends PrimitiveProps,
|
|
132
|
+
React.HTMLAttributes<HTMLSpanElement> {
|
|
133
|
+
asChild?: boolean;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export const ExtendedActionSheetItemLabel = withItemContext<
|
|
137
|
+
HTMLSpanElement,
|
|
138
|
+
ExtendedActionSheetItemLabelProps
|
|
139
|
+
>(withStateProps(Primitive.span), "label");
|
|
140
|
+
|
|
141
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
142
|
+
|
|
143
|
+
export interface ExtendedActionSheetItemPrefixIconProps extends IconProps {}
|
|
144
|
+
|
|
145
|
+
export const ExtendedActionSheetItemPrefixIcon = withItemContext<
|
|
146
|
+
HTMLSpanElement,
|
|
147
|
+
ExtendedActionSheetItemPrefixIconProps
|
|
148
|
+
>(withStateProps(Icon), "prefixIcon");
|
|
149
|
+
|
|
150
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
151
|
+
|
|
152
|
+
export interface ExtendedActionSheetFooterProps
|
|
153
|
+
extends PrimitiveProps,
|
|
154
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
155
|
+
|
|
156
|
+
export const ExtendedActionSheetFooter = withContext<
|
|
157
|
+
HTMLDivElement,
|
|
158
|
+
ExtendedActionSheetFooterProps
|
|
159
|
+
>(withStateProps(Primitive.div), "footer");
|
|
160
|
+
|
|
161
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
162
|
+
|
|
163
|
+
export interface ExtendedActionSheetCloseButtonProps
|
|
164
|
+
extends DialogPrimitive.CloseButtonProps,
|
|
165
|
+
ExtendedActionSheetCloseButtonVariantProps {}
|
|
166
|
+
|
|
167
|
+
export const ExtendedActionSheetCloseButton = withCloseButtonProvider<
|
|
168
|
+
HTMLDivElement,
|
|
169
|
+
ExtendedActionSheetCloseButtonProps
|
|
170
|
+
>(DialogPrimitive.CloseButton, "root");
|
|
171
|
+
|
|
172
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
173
|
+
|
|
174
|
+
export interface ExtendedActionSheetCloseButtonLabelProps
|
|
175
|
+
extends PrimitiveProps,
|
|
176
|
+
React.HTMLAttributes<HTMLSpanElement> {}
|
|
177
|
+
|
|
178
|
+
export const ExtendedActionSheetCloseButtonLabel = withCloseButtonContext<
|
|
179
|
+
HTMLSpanElement,
|
|
180
|
+
ExtendedActionSheetCloseButtonLabelProps
|
|
181
|
+
>(Primitive.span, "label");
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export {
|
|
2
|
+
ExtendedActionSheetBackdrop,
|
|
3
|
+
ExtendedActionSheetPositioner,
|
|
4
|
+
ExtendedActionSheetContent,
|
|
5
|
+
ExtendedActionSheetFooter,
|
|
6
|
+
ExtendedActionSheetHeader,
|
|
7
|
+
ExtendedActionSheetRoot,
|
|
8
|
+
ExtendedActionSheetTitle,
|
|
9
|
+
ExtendedActionSheetTrigger,
|
|
10
|
+
ExtendedActionSheetList,
|
|
11
|
+
ExtendedActionSheetGroup,
|
|
12
|
+
ExtendedActionSheetItem,
|
|
13
|
+
ExtendedActionSheetItemLabel,
|
|
14
|
+
ExtendedActionSheetItemPrefixIcon,
|
|
15
|
+
ExtendedActionSheetCloseButton,
|
|
16
|
+
ExtendedActionSheetCloseButtonLabel,
|
|
17
|
+
type ExtendedActionSheetBackdropProps,
|
|
18
|
+
type ExtendedActionSheetPositionerProps,
|
|
19
|
+
type ExtendedActionSheetContentProps,
|
|
20
|
+
type ExtendedActionSheetFooterProps,
|
|
21
|
+
type ExtendedActionSheetHeaderProps,
|
|
22
|
+
type ExtendedActionSheetRootProps,
|
|
23
|
+
type ExtendedActionSheetTitleProps,
|
|
24
|
+
type ExtendedActionSheetTriggerProps,
|
|
25
|
+
type ExtendedActionSheetListProps,
|
|
26
|
+
type ExtendedActionSheetGroupProps,
|
|
27
|
+
type ExtendedActionSheetItemProps,
|
|
28
|
+
type ExtendedActionSheetItemLabelProps,
|
|
29
|
+
type ExtendedActionSheetItemPrefixIconProps,
|
|
30
|
+
type ExtendedActionSheetCloseButtonProps,
|
|
31
|
+
type ExtendedActionSheetCloseButtonLabelProps,
|
|
32
|
+
} from "./ExtendedActionSheet";
|
|
33
|
+
|
|
34
|
+
export * as ExtendedActionSheet from "./ExtendedActionSheet.namespace";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {
|
|
2
|
+
ExtendedFabRoot as Root,
|
|
3
|
+
ExtendedFabLabel as Label,
|
|
4
|
+
ExtendedFabPrefixIcon as PrefixIcon,
|
|
5
|
+
type ExtendedFabRootProps as RootProps,
|
|
6
|
+
type ExtendedFabLabelProps as LabelProps,
|
|
7
|
+
type ExtendedFabPrefixIconProps as PrefixIconProps,
|
|
8
|
+
} from "./ExtendedFab";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
2
|
+
import { extendedFab, type ExtendedFabVariantProps } from "@seed-design/recipe/extendedFab";
|
|
3
|
+
import { createStyleContext } from "../../utils/createStyleContext";
|
|
4
|
+
import { Icon, type IconProps } from "../private/Icon";
|
|
5
|
+
|
|
6
|
+
const { withContext, withProvider } = createStyleContext(extendedFab);
|
|
7
|
+
|
|
8
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
9
|
+
|
|
10
|
+
export interface ExtendedFabRootProps
|
|
11
|
+
extends ExtendedFabVariantProps,
|
|
12
|
+
PrimitiveProps,
|
|
13
|
+
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
14
|
+
|
|
15
|
+
export const ExtendedFabRoot = withProvider<HTMLButtonElement, ExtendedFabRootProps>(
|
|
16
|
+
Primitive.button,
|
|
17
|
+
"root",
|
|
18
|
+
{
|
|
19
|
+
defaultProps: {
|
|
20
|
+
variant: "neutralSolid",
|
|
21
|
+
size: "medium",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
27
|
+
|
|
28
|
+
export interface ExtendedFabLabelProps
|
|
29
|
+
extends PrimitiveProps,
|
|
30
|
+
React.HTMLAttributes<HTMLSpanElement> {}
|
|
31
|
+
|
|
32
|
+
export const ExtendedFabLabel = withContext<HTMLSpanElement, ExtendedFabLabelProps>(
|
|
33
|
+
Primitive.span,
|
|
34
|
+
"label",
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
38
|
+
|
|
39
|
+
export interface ExtendedFabPrefixIconProps extends IconProps {}
|
|
40
|
+
|
|
41
|
+
export const ExtendedFabPrefixIcon = withContext<SVGSVGElement, ExtendedFabPrefixIconProps>(
|
|
42
|
+
Icon,
|
|
43
|
+
"prefixIcon",
|
|
44
|
+
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
2
|
+
import { fab, type FabVariantProps } from "@seed-design/recipe/fab";
|
|
3
|
+
import type * as React from "react";
|
|
4
|
+
import { createStyleContext } from "../../utils/createStyleContext";
|
|
5
|
+
import { Icon, type IconProps } from "../private/Icon";
|
|
6
|
+
|
|
7
|
+
const { withContext, withProvider } = createStyleContext(fab);
|
|
8
|
+
|
|
9
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
10
|
+
|
|
11
|
+
export interface FabRootProps
|
|
12
|
+
extends FabVariantProps,
|
|
13
|
+
PrimitiveProps,
|
|
14
|
+
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
15
|
+
|
|
16
|
+
export const FabRoot = withProvider<HTMLButtonElement, FabRootProps>(Primitive.button, "root");
|
|
17
|
+
|
|
18
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
19
|
+
|
|
20
|
+
export interface FabIconProps extends IconProps {}
|
|
21
|
+
|
|
22
|
+
export const FabIcon = withContext<SVGSVGElement, FabIconProps>(Icon, "icon");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Box, type BoxProps } from "../Box/Box";
|
|
3
|
+
|
|
4
|
+
export interface FlexProps extends Omit<BoxProps, "display"> {
|
|
5
|
+
/**
|
|
6
|
+
* @default "flex"
|
|
7
|
+
*/
|
|
8
|
+
display?: "flex" | "none";
|
|
9
|
+
|
|
10
|
+
direction?: "row" | "column" | "rowReverse" | "columnReverse";
|
|
11
|
+
|
|
12
|
+
wrap?: "wrap" | "nowrap";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Flex = React.forwardRef<HTMLDivElement, FlexProps>((props, ref) => {
|
|
16
|
+
const { direction, wrap, ...rest } = props;
|
|
17
|
+
|
|
18
|
+
return <Box ref={ref} display="flex" flexDirection={direction} flexWrap={wrap} {...rest} />;
|
|
19
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Flex, type FlexProps } from "./Flex";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export {
|
|
2
|
+
HelpBubbleAnchor as Anchor,
|
|
3
|
+
HelpBubbleArrow as Arrow,
|
|
4
|
+
HelpBubbleArrowTip as ArrowTip,
|
|
5
|
+
HelpBubbleBackdrop as Backdrop,
|
|
6
|
+
HelpBubbleCloseButton as CloseButton,
|
|
7
|
+
HelpBubbleCloseIcon as CloseIcon,
|
|
8
|
+
HelpBubbleContent as Content,
|
|
9
|
+
HelpBubbleDescription as Description,
|
|
10
|
+
HelpBubblePositioner as Positioner,
|
|
11
|
+
HelpBubbleRoot as Root,
|
|
12
|
+
HelpBubbleTitle as Title,
|
|
13
|
+
HelpBubbleTrigger as Trigger,
|
|
14
|
+
type HelpBubbleArrowProps as ArrowProps,
|
|
15
|
+
type HelpBubbleArrowTipProps as ArrowTipProps,
|
|
16
|
+
type HelpBubbleBackdropProps as BackdropProps,
|
|
17
|
+
type HelpBubbleCloseButtonProps as CloseButtonProps,
|
|
18
|
+
type HelpBubbleCloseIconProps as CloseIconProps,
|
|
19
|
+
type HelpBubbleContentProps as ContentProps,
|
|
20
|
+
type HelpBubbleDescriptionProps as DescriptionProps,
|
|
21
|
+
type HelpBubblePositionerProps as PositionerProps,
|
|
22
|
+
type HelpBubbleRootProps as RootProps,
|
|
23
|
+
type HelpBubbleTitleProps as TitleProps,
|
|
24
|
+
type HelpBubbleTriggerProps as TriggerProps,
|
|
25
|
+
} from "./HelpBubble";
|