@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
package/lib/index.mjs
ADDED
|
@@ -0,0 +1,2318 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// src/components/ActionButton/ActionButton.tsx
|
|
8
|
+
import { Primitive as Primitive2 } from "@seed-design/react-primitive";
|
|
9
|
+
import { actionButton } from "@seed-design/recipe/actionButton";
|
|
10
|
+
import clsx2 from "clsx";
|
|
11
|
+
import * as React2 from "react";
|
|
12
|
+
|
|
13
|
+
// src/utils/createStyleContext.tsx
|
|
14
|
+
import clsx from "clsx";
|
|
15
|
+
import { createContext, forwardRef, useContext } from "react";
|
|
16
|
+
import { jsx } from "react/jsx-runtime";
|
|
17
|
+
function createStyleContext(recipe) {
|
|
18
|
+
const ClassNamesContext = createContext(null);
|
|
19
|
+
const PropsContext = createContext(null);
|
|
20
|
+
const ClassNamesProvider4 = ({
|
|
21
|
+
children,
|
|
22
|
+
value
|
|
23
|
+
}) => {
|
|
24
|
+
return /* @__PURE__ */ jsx(ClassNamesContext.Provider, { value, children });
|
|
25
|
+
};
|
|
26
|
+
const PropsProvider2 = ({ children, value }) => {
|
|
27
|
+
return /* @__PURE__ */ jsx(PropsContext.Provider, { value, children });
|
|
28
|
+
};
|
|
29
|
+
function useClassNames5() {
|
|
30
|
+
const context = useContext(ClassNamesContext);
|
|
31
|
+
if (context === null) {
|
|
32
|
+
throw new Error(
|
|
33
|
+
"useClassNames must be used within a ClassNamesProvider. Did you forget to wrap your component in a ClassNamesProvider?"
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
return context;
|
|
37
|
+
}
|
|
38
|
+
function useProps() {
|
|
39
|
+
return useContext(PropsContext);
|
|
40
|
+
}
|
|
41
|
+
const withRootProvider6 = (Component, options) => {
|
|
42
|
+
const { defaultProps } = options != null ? options : {};
|
|
43
|
+
const StyledComponent = (innerProps) => {
|
|
44
|
+
const props = { ...defaultProps != null ? defaultProps : {}, ...useProps(), ...innerProps };
|
|
45
|
+
const [variantProps, otherProps] = recipe.splitVariantProps(props);
|
|
46
|
+
const classNames = recipe(variantProps);
|
|
47
|
+
return /* @__PURE__ */ jsx(ClassNamesProvider4, { value: classNames, children: /* @__PURE__ */ jsx(Component, { ...otherProps }) });
|
|
48
|
+
};
|
|
49
|
+
StyledComponent.displayName = Component.displayName || Component.name;
|
|
50
|
+
return StyledComponent;
|
|
51
|
+
};
|
|
52
|
+
const withProvider24 = (Component, slot, options) => {
|
|
53
|
+
const { defaultProps } = options != null ? options : {};
|
|
54
|
+
const StyledComponent = forwardRef((innerProps, ref) => {
|
|
55
|
+
const props = { ...defaultProps != null ? defaultProps : {}, ...useProps(), ...innerProps };
|
|
56
|
+
const [variantProps, otherProps] = recipe.splitVariantProps(props);
|
|
57
|
+
const classNames = recipe(variantProps);
|
|
58
|
+
const className = classNames[slot];
|
|
59
|
+
return /* @__PURE__ */ jsx(ClassNamesProvider4, { value: classNames, children: /* @__PURE__ */ jsx(Component, { ref, ...otherProps, className: clsx(className, props.className) }) });
|
|
60
|
+
});
|
|
61
|
+
StyledComponent.displayName = Component.displayName || Component.name;
|
|
62
|
+
return StyledComponent;
|
|
63
|
+
};
|
|
64
|
+
const withContext30 = (Component, slot) => {
|
|
65
|
+
const StyledComponent = forwardRef((props, ref) => {
|
|
66
|
+
const classNames = useClassNames5();
|
|
67
|
+
const className = classNames == null ? void 0 : classNames[slot];
|
|
68
|
+
return /* @__PURE__ */ jsx(Component, { ref, ...props, className: clsx(className, props.className) });
|
|
69
|
+
});
|
|
70
|
+
StyledComponent.displayName = Component.displayName || Component.name;
|
|
71
|
+
return StyledComponent;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
ClassNamesProvider: ClassNamesProvider4,
|
|
75
|
+
PropsProvider: PropsProvider2,
|
|
76
|
+
useClassNames: useClassNames5,
|
|
77
|
+
useProps,
|
|
78
|
+
withRootProvider: withRootProvider6,
|
|
79
|
+
withProvider: withProvider24,
|
|
80
|
+
withContext: withContext30
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// src/utils/createWithStateProps.tsx
|
|
85
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
86
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
87
|
+
function createWithStateProps(useContexts, options) {
|
|
88
|
+
var _a;
|
|
89
|
+
const strict = (_a = options == null ? void 0 : options.strict) != null ? _a : true;
|
|
90
|
+
return function withStateProps18(Component) {
|
|
91
|
+
const Node = forwardRef2((props, ref) => {
|
|
92
|
+
var _a2;
|
|
93
|
+
const stateProps = {};
|
|
94
|
+
for (const useContext4 of useContexts) {
|
|
95
|
+
Object.assign(stateProps, (_a2 = useContext4({ strict })) == null ? void 0 : _a2.stateProps);
|
|
96
|
+
}
|
|
97
|
+
return /* @__PURE__ */ jsx2(Component, { ref, ...stateProps, ...props });
|
|
98
|
+
});
|
|
99
|
+
Node.displayName = Component.displayName || Component.name;
|
|
100
|
+
return Node;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// src/components/private/Icon.tsx
|
|
105
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
106
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
107
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
108
|
+
var Icon = forwardRef3(({ svg, ...otherProps }, ref) => {
|
|
109
|
+
return (
|
|
110
|
+
// biome-ignore lint/a11y/noSvgWithoutTitle: SVG is used as a child of a button element, so it is not required to have a title
|
|
111
|
+
/* @__PURE__ */ jsx3(Primitive.svg, { ref, "aria-hidden": true, asChild: true, ...otherProps, children: svg })
|
|
112
|
+
);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// src/components/private/usePendingButton.tsx
|
|
116
|
+
import { elementProps } from "@seed-design/dom-utils";
|
|
117
|
+
import * as React from "react";
|
|
118
|
+
function usePendingButton(props) {
|
|
119
|
+
const { loading, disabled } = props;
|
|
120
|
+
const stateProps = elementProps({
|
|
121
|
+
"data-loading": loading ? "" : void 0,
|
|
122
|
+
"data-disabled": disabled ? "" : void 0
|
|
123
|
+
});
|
|
124
|
+
return {
|
|
125
|
+
loading,
|
|
126
|
+
disabled,
|
|
127
|
+
stateProps
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
var PendingButtonContext = React.createContext(null);
|
|
131
|
+
var PendingButtonProvider = PendingButtonContext.Provider;
|
|
132
|
+
var usePendingButtonContext = () => {
|
|
133
|
+
const context = React.useContext(PendingButtonContext);
|
|
134
|
+
if (context === null) {
|
|
135
|
+
throw new Error("usePendingButtonContext should be used within UsePendingButtonProvider");
|
|
136
|
+
}
|
|
137
|
+
return context;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// src/components/ActionButton/ActionButton.tsx
|
|
141
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
142
|
+
var { ClassNamesProvider, withContext } = createStyleContext(actionButton);
|
|
143
|
+
var withStateProps = createWithStateProps([usePendingButtonContext]);
|
|
144
|
+
var ActionButtonRoot = React2.forwardRef(
|
|
145
|
+
({
|
|
146
|
+
variant = "brandSolid",
|
|
147
|
+
size = "medium",
|
|
148
|
+
loading = false,
|
|
149
|
+
layout = "withText",
|
|
150
|
+
className,
|
|
151
|
+
...otherProps
|
|
152
|
+
}, ref) => {
|
|
153
|
+
const classNames = actionButton({ variant, layout, size });
|
|
154
|
+
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
155
|
+
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
156
|
+
console.warn(
|
|
157
|
+
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
return /* @__PURE__ */ jsx4(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsx4(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx4(
|
|
161
|
+
Primitive2.button,
|
|
162
|
+
{
|
|
163
|
+
ref,
|
|
164
|
+
className: clsx2(classNames.root, className),
|
|
165
|
+
...api.stateProps,
|
|
166
|
+
...otherProps
|
|
167
|
+
}
|
|
168
|
+
) }) });
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
ActionButtonRoot.displayName = "ActionButton";
|
|
172
|
+
var ActionButtonLabel = withContext(
|
|
173
|
+
withStateProps(Primitive2.span),
|
|
174
|
+
"label"
|
|
175
|
+
);
|
|
176
|
+
var ActionButtonPrefixIcon = withContext(
|
|
177
|
+
withStateProps(Icon),
|
|
178
|
+
"prefixIcon"
|
|
179
|
+
);
|
|
180
|
+
var ActionButtonSuffixIcon = withContext(
|
|
181
|
+
withStateProps(Icon),
|
|
182
|
+
"suffixIcon"
|
|
183
|
+
);
|
|
184
|
+
var ActionButtonIcon = withContext(
|
|
185
|
+
withStateProps(Icon),
|
|
186
|
+
"icon"
|
|
187
|
+
);
|
|
188
|
+
var ActionButtonProgressIndicator = withContext(withStateProps(Primitive2.div), "progressIndicator");
|
|
189
|
+
|
|
190
|
+
// src/components/ActionButton/ActionButton.namespace.ts
|
|
191
|
+
var ActionButton_namespace_exports = {};
|
|
192
|
+
__export(ActionButton_namespace_exports, {
|
|
193
|
+
Icon: () => ActionButtonIcon,
|
|
194
|
+
Label: () => ActionButtonLabel,
|
|
195
|
+
PrefixIcon: () => ActionButtonPrefixIcon,
|
|
196
|
+
ProgressIndicator: () => ActionButtonProgressIndicator,
|
|
197
|
+
Root: () => ActionButtonRoot,
|
|
198
|
+
SuffixIcon: () => ActionButtonSuffixIcon
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
// src/components/ActionChip/ActionChip.tsx
|
|
202
|
+
import { Primitive as Primitive3 } from "@seed-design/react-primitive";
|
|
203
|
+
import { actionChip } from "@seed-design/recipe/actionChip";
|
|
204
|
+
var { withProvider, withContext: withContext2 } = createStyleContext(actionChip);
|
|
205
|
+
var ActionChipRoot = withProvider(
|
|
206
|
+
Primitive3.button,
|
|
207
|
+
"root"
|
|
208
|
+
);
|
|
209
|
+
ActionChipRoot.displayName = "ActionChip";
|
|
210
|
+
var ActionChipLabel = withContext2(
|
|
211
|
+
Primitive3.span,
|
|
212
|
+
"label"
|
|
213
|
+
);
|
|
214
|
+
var ActionChipPrefixIcon = withContext2(
|
|
215
|
+
Icon,
|
|
216
|
+
"prefixIcon"
|
|
217
|
+
);
|
|
218
|
+
var ActionChipSuffixIcon = withContext2(
|
|
219
|
+
Icon,
|
|
220
|
+
"suffixIcon"
|
|
221
|
+
);
|
|
222
|
+
var ActionChipIcon = withContext2(Icon, "icon");
|
|
223
|
+
var ActionChipCount = withContext2(
|
|
224
|
+
Primitive3.span,
|
|
225
|
+
"count"
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
// src/components/ActionChip/ActionChip.namespace.ts
|
|
229
|
+
var ActionChip_namespace_exports = {};
|
|
230
|
+
__export(ActionChip_namespace_exports, {
|
|
231
|
+
Count: () => ActionChipCount,
|
|
232
|
+
Icon: () => ActionChipIcon,
|
|
233
|
+
Label: () => ActionChipLabel,
|
|
234
|
+
PrefixIcon: () => ActionChipPrefixIcon,
|
|
235
|
+
Root: () => ActionChipRoot,
|
|
236
|
+
SuffixIcon: () => ActionChipSuffixIcon
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
// src/components/ActionSheet/ActionSheet.tsx
|
|
240
|
+
import { Dialog as DialogPrimitive, useDialogContext } from "@seed-design/react-dialog";
|
|
241
|
+
import { Primitive as Primitive4 } from "@seed-design/react-primitive";
|
|
242
|
+
import { actionSheet } from "@seed-design/recipe/actionSheet";
|
|
243
|
+
import {
|
|
244
|
+
actionSheetCloseButton
|
|
245
|
+
} from "@seed-design/recipe/actionSheetCloseButton";
|
|
246
|
+
import {
|
|
247
|
+
actionSheetItem
|
|
248
|
+
} from "@seed-design/recipe/actionSheetItem";
|
|
249
|
+
var { withRootProvider, withContext: withContext3 } = createStyleContext(actionSheet);
|
|
250
|
+
var { withProvider: withItemProvider, withContext: withItemContext } = createStyleContext(actionSheetItem);
|
|
251
|
+
var { withProvider: withCloseButtonProvider, withContext: withCloseButtonContext } = createStyleContext(actionSheetCloseButton);
|
|
252
|
+
var withStateProps2 = createWithStateProps([useDialogContext]);
|
|
253
|
+
var ActionSheetRoot = withRootProvider(DialogPrimitive.Root, {
|
|
254
|
+
defaultProps: {
|
|
255
|
+
lazyMount: true,
|
|
256
|
+
unmountOnExit: true
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
var ActionSheetTrigger = DialogPrimitive.Trigger;
|
|
260
|
+
var ActionSheetPositioner = withContext3(
|
|
261
|
+
DialogPrimitive.Positioner,
|
|
262
|
+
"positioner"
|
|
263
|
+
);
|
|
264
|
+
var ActionSheetBackdrop = withContext3(
|
|
265
|
+
DialogPrimitive.Backdrop,
|
|
266
|
+
"backdrop"
|
|
267
|
+
);
|
|
268
|
+
var ActionSheetContent = withContext3(
|
|
269
|
+
DialogPrimitive.Content,
|
|
270
|
+
"content"
|
|
271
|
+
);
|
|
272
|
+
var ActionSheetHeader = withContext3(
|
|
273
|
+
withStateProps2(Primitive4.div),
|
|
274
|
+
"header"
|
|
275
|
+
);
|
|
276
|
+
var ActionSheetTitle = withContext3(
|
|
277
|
+
withStateProps2(Primitive4.h2),
|
|
278
|
+
"title"
|
|
279
|
+
);
|
|
280
|
+
var ActionSheetDescription = withContext3(withStateProps2(Primitive4.p), "description");
|
|
281
|
+
var ActionSheetList = withContext3(
|
|
282
|
+
withStateProps2(Primitive4.div),
|
|
283
|
+
"list"
|
|
284
|
+
);
|
|
285
|
+
var ActionSheetItem = withItemProvider(
|
|
286
|
+
withStateProps2(Primitive4.button),
|
|
287
|
+
"root"
|
|
288
|
+
);
|
|
289
|
+
var ActionSheetItemLabel = withItemContext(
|
|
290
|
+
withStateProps2(Primitive4.span),
|
|
291
|
+
"label"
|
|
292
|
+
);
|
|
293
|
+
var ActionSheetCloseButton = withCloseButtonProvider(DialogPrimitive.CloseButton, "root");
|
|
294
|
+
var ActionSheetCloseButtonLabel = withCloseButtonContext(Primitive4.span, "label");
|
|
295
|
+
|
|
296
|
+
// src/components/ActionSheet/ActionSheet.namespace.ts
|
|
297
|
+
var ActionSheet_namespace_exports = {};
|
|
298
|
+
__export(ActionSheet_namespace_exports, {
|
|
299
|
+
Backdrop: () => ActionSheetBackdrop,
|
|
300
|
+
CloseButton: () => ActionSheetCloseButton,
|
|
301
|
+
CloseButtonLabel: () => ActionSheetCloseButtonLabel,
|
|
302
|
+
Content: () => ActionSheetContent,
|
|
303
|
+
Description: () => ActionSheetDescription,
|
|
304
|
+
Header: () => ActionSheetHeader,
|
|
305
|
+
Item: () => ActionSheetItem,
|
|
306
|
+
ItemLabel: () => ActionSheetItemLabel,
|
|
307
|
+
List: () => ActionSheetList,
|
|
308
|
+
Positioner: () => ActionSheetPositioner,
|
|
309
|
+
Root: () => ActionSheetRoot,
|
|
310
|
+
Title: () => ActionSheetTitle,
|
|
311
|
+
Trigger: () => ActionSheetTrigger
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
// src/components/Avatar/Avatar.tsx
|
|
315
|
+
import { Avatar as AvatarPrimitive } from "@seed-design/react-avatar";
|
|
316
|
+
import { Primitive as Primitive5 } from "@seed-design/react-primitive";
|
|
317
|
+
import { avatar } from "@seed-design/recipe/avatar";
|
|
318
|
+
import { avatarStack } from "@seed-design/recipe/avatarStack";
|
|
319
|
+
import clsx3 from "clsx";
|
|
320
|
+
import * as React3 from "react";
|
|
321
|
+
import { useMemo } from "react";
|
|
322
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
323
|
+
var { PropsProvider, withProvider: withProvider2, withContext: withContext4 } = createStyleContext(avatar);
|
|
324
|
+
var AvatarRoot = withProvider2(
|
|
325
|
+
AvatarPrimitive.Root,
|
|
326
|
+
"root"
|
|
327
|
+
);
|
|
328
|
+
var AvatarImage = withContext4(
|
|
329
|
+
AvatarPrimitive.Image,
|
|
330
|
+
"image"
|
|
331
|
+
);
|
|
332
|
+
var AvatarFallback = withContext4(
|
|
333
|
+
AvatarPrimitive.Fallback,
|
|
334
|
+
"fallback"
|
|
335
|
+
);
|
|
336
|
+
var AvatarBadge = withContext4(Primitive5.div, "badge");
|
|
337
|
+
var AvatarStack = React3.forwardRef(
|
|
338
|
+
({ className, children, size, ...otherProps }, ref) => {
|
|
339
|
+
const classNames = avatarStack({ size });
|
|
340
|
+
const avatars = React3.Children.toArray(children);
|
|
341
|
+
return /* @__PURE__ */ jsx5(PropsProvider, { value: useMemo(() => ({ size }), [size]), children: /* @__PURE__ */ jsx5("div", { ref, className: clsx3(classNames.root, className), ...otherProps, children: avatars.map((avatar2, index) => (
|
|
342
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: There is no unique key for each child
|
|
343
|
+
/* @__PURE__ */ jsx5("div", { className: classNames.item, children: avatar2 }, index)
|
|
344
|
+
)) }) });
|
|
345
|
+
}
|
|
346
|
+
);
|
|
347
|
+
|
|
348
|
+
// src/components/Avatar/Avatar.namespace.ts
|
|
349
|
+
var Avatar_namespace_exports = {};
|
|
350
|
+
__export(Avatar_namespace_exports, {
|
|
351
|
+
Badge: () => AvatarBadge,
|
|
352
|
+
Fallback: () => AvatarFallback,
|
|
353
|
+
Image: () => AvatarImage,
|
|
354
|
+
Root: () => AvatarRoot,
|
|
355
|
+
Stack: () => AvatarStack
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
// src/components/Badge/Badge.tsx
|
|
359
|
+
import { Primitive as Primitive6 } from "@seed-design/react-primitive";
|
|
360
|
+
import { badge } from "@seed-design/recipe/badge";
|
|
361
|
+
var { withProvider: withProvider3, withContext: withContext5 } = createStyleContext(badge);
|
|
362
|
+
var BadgeRoot = withProvider3(Primitive6.span, "root");
|
|
363
|
+
var BadgeLabel = withContext5(Primitive6.span, "label");
|
|
364
|
+
|
|
365
|
+
// src/components/Badge/Badge.namespace.ts
|
|
366
|
+
var Badge_namespace_exports = {};
|
|
367
|
+
__export(Badge_namespace_exports, {
|
|
368
|
+
Label: () => BadgeLabel,
|
|
369
|
+
Root: () => BadgeRoot
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
// src/components/BottomSheet/BottomSheet.tsx
|
|
373
|
+
import { Dialog as DialogPrimitive2, useDialogContext as useDialogContext2 } from "@seed-design/react-dialog";
|
|
374
|
+
import { Primitive as Primitive7 } from "@seed-design/react-primitive";
|
|
375
|
+
import { bottomSheet } from "@seed-design/recipe/bottomSheet";
|
|
376
|
+
|
|
377
|
+
// src/components/Box/Box.tsx
|
|
378
|
+
import { vars } from "@seed-design/vars";
|
|
379
|
+
import clsx4 from "clsx";
|
|
380
|
+
import * as React4 from "react";
|
|
381
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
382
|
+
function handleColor(color) {
|
|
383
|
+
var _a;
|
|
384
|
+
if (!color) {
|
|
385
|
+
return void 0;
|
|
386
|
+
}
|
|
387
|
+
const [type, value] = color.split(".");
|
|
388
|
+
return (_a = vars.$color[type][value]) != null ? _a : void 0;
|
|
389
|
+
}
|
|
390
|
+
function handleDimension(dimension) {
|
|
391
|
+
var _a, _b;
|
|
392
|
+
if (!dimension) {
|
|
393
|
+
return void 0;
|
|
394
|
+
}
|
|
395
|
+
const [type, value] = dimension.split(".");
|
|
396
|
+
return (_b = (_a = vars.$dimension[dimension]) != null ? _a : vars.$dimension[type][value]) != null ? _b : void 0;
|
|
397
|
+
}
|
|
398
|
+
function handleSize(size) {
|
|
399
|
+
var _a;
|
|
400
|
+
if (!size) {
|
|
401
|
+
return void 0;
|
|
402
|
+
}
|
|
403
|
+
if (size === "full") {
|
|
404
|
+
return "100%";
|
|
405
|
+
}
|
|
406
|
+
return (_a = vars.$dimension[size]) != null ? _a : size;
|
|
407
|
+
}
|
|
408
|
+
function handleRadius(radius) {
|
|
409
|
+
var _a;
|
|
410
|
+
if (!radius) {
|
|
411
|
+
return void 0;
|
|
412
|
+
}
|
|
413
|
+
return (_a = vars.$radius[radius]) != null ? _a : void 0;
|
|
414
|
+
}
|
|
415
|
+
function handleDisplay(display) {
|
|
416
|
+
if (!display) {
|
|
417
|
+
return void 0;
|
|
418
|
+
}
|
|
419
|
+
return {
|
|
420
|
+
block: "block",
|
|
421
|
+
flex: "flex",
|
|
422
|
+
inlineFlex: "inline-flex",
|
|
423
|
+
inline: "inline",
|
|
424
|
+
inlineBlock: "inline-block",
|
|
425
|
+
none: "none"
|
|
426
|
+
}[display];
|
|
427
|
+
}
|
|
428
|
+
function handleFlexDirection(flexDirection) {
|
|
429
|
+
if (!flexDirection) {
|
|
430
|
+
return void 0;
|
|
431
|
+
}
|
|
432
|
+
return {
|
|
433
|
+
row: "row",
|
|
434
|
+
column: "column",
|
|
435
|
+
rowReverse: "row-reverse",
|
|
436
|
+
columnReverse: "column-reverse"
|
|
437
|
+
}[flexDirection];
|
|
438
|
+
}
|
|
439
|
+
function handleJustifyContent(justifyContent) {
|
|
440
|
+
if (!justifyContent) {
|
|
441
|
+
return void 0;
|
|
442
|
+
}
|
|
443
|
+
return {
|
|
444
|
+
flexStart: "flex-start",
|
|
445
|
+
flexEnd: "flex-end",
|
|
446
|
+
center: "center",
|
|
447
|
+
spaceBetween: "space-between",
|
|
448
|
+
spaceAround: "space-around"
|
|
449
|
+
}[justifyContent];
|
|
450
|
+
}
|
|
451
|
+
function handleAlignItems(alignItems) {
|
|
452
|
+
if (!alignItems) {
|
|
453
|
+
return void 0;
|
|
454
|
+
}
|
|
455
|
+
return {
|
|
456
|
+
flexStart: "flex-start",
|
|
457
|
+
flexEnd: "flex-end",
|
|
458
|
+
center: "center",
|
|
459
|
+
stretch: "stretch"
|
|
460
|
+
}[alignItems];
|
|
461
|
+
}
|
|
462
|
+
var Box = React4.forwardRef((props, ref) => {
|
|
463
|
+
const {
|
|
464
|
+
as: Comp = "div",
|
|
465
|
+
background,
|
|
466
|
+
color,
|
|
467
|
+
borderColor,
|
|
468
|
+
borderWidth,
|
|
469
|
+
borderTopWidth,
|
|
470
|
+
borderRightWidth,
|
|
471
|
+
borderBottomWidth,
|
|
472
|
+
borderLeftWidth,
|
|
473
|
+
borderRadius,
|
|
474
|
+
borderTopLeftRadius,
|
|
475
|
+
borderTopRightRadius,
|
|
476
|
+
borderBottomRightRadius,
|
|
477
|
+
borderBottomLeftRadius,
|
|
478
|
+
width,
|
|
479
|
+
minWidth,
|
|
480
|
+
maxWidth,
|
|
481
|
+
height,
|
|
482
|
+
minHeight,
|
|
483
|
+
maxHeight,
|
|
484
|
+
padding,
|
|
485
|
+
paddingX,
|
|
486
|
+
paddingY,
|
|
487
|
+
paddingTop,
|
|
488
|
+
paddingRight,
|
|
489
|
+
paddingBottom,
|
|
490
|
+
paddingLeft,
|
|
491
|
+
display,
|
|
492
|
+
position,
|
|
493
|
+
overflowX,
|
|
494
|
+
overflowY,
|
|
495
|
+
flexGrow,
|
|
496
|
+
flexShrink,
|
|
497
|
+
flexDirection,
|
|
498
|
+
flexWrap,
|
|
499
|
+
justifyContent,
|
|
500
|
+
alignItems,
|
|
501
|
+
alignContent,
|
|
502
|
+
alignSelf,
|
|
503
|
+
gap,
|
|
504
|
+
className,
|
|
505
|
+
style,
|
|
506
|
+
...nativeProps
|
|
507
|
+
} = props;
|
|
508
|
+
return /* @__PURE__ */ jsx6(
|
|
509
|
+
Comp,
|
|
510
|
+
{
|
|
511
|
+
ref,
|
|
512
|
+
className: clsx4("seed-box", className),
|
|
513
|
+
style: {
|
|
514
|
+
"--seed-box-background": handleColor(background),
|
|
515
|
+
"--seed-box-color": handleColor(color),
|
|
516
|
+
"--seed-box-border-color": handleColor(borderColor),
|
|
517
|
+
"--seed-box-border-width": borderWidth !== void 0 ? `${borderWidth}px` : void 0,
|
|
518
|
+
"--seed-box-border-top-width": borderTopWidth !== void 0 ? `${borderTopWidth}px` : void 0,
|
|
519
|
+
"--seed-box-border-right-width": borderRightWidth !== void 0 ? `${borderRightWidth}px` : void 0,
|
|
520
|
+
"--seed-box-border-bottom-width": borderBottomWidth !== void 0 ? `${borderBottomWidth}px` : void 0,
|
|
521
|
+
"--seed-box-border-left-width": borderLeftWidth !== void 0 ? `${borderLeftWidth}px` : void 0,
|
|
522
|
+
"--seed-box-border-radius": handleRadius(borderRadius),
|
|
523
|
+
"--seed-box-border-top-left-radius": handleRadius(borderTopLeftRadius),
|
|
524
|
+
"--seed-box-border-top-right-radius": handleRadius(borderTopRightRadius),
|
|
525
|
+
"--seed-box-border-bottom-right-radius": handleRadius(borderBottomRightRadius),
|
|
526
|
+
"--seed-box-border-bottom-left-radius": handleRadius(borderBottomLeftRadius),
|
|
527
|
+
"--seed-box-width": handleSize(width),
|
|
528
|
+
"--seed-box-min-width": handleSize(minWidth),
|
|
529
|
+
"--seed-box-max-width": handleSize(maxWidth),
|
|
530
|
+
"--seed-box-height": handleSize(height),
|
|
531
|
+
"--seed-box-min-height": handleSize(minHeight),
|
|
532
|
+
"--seed-box-max-height": handleSize(maxHeight),
|
|
533
|
+
"--seed-box-padding": handleDimension(padding),
|
|
534
|
+
"--seed-box-padding-x": handleDimension(paddingX),
|
|
535
|
+
"--seed-box-padding-y": handleDimension(paddingY),
|
|
536
|
+
"--seed-box-padding-top": handleDimension(paddingTop),
|
|
537
|
+
"--seed-box-padding-right": handleDimension(paddingRight),
|
|
538
|
+
"--seed-box-padding-bottom": handleDimension(paddingBottom),
|
|
539
|
+
"--seed-box-padding-left": handleDimension(paddingLeft),
|
|
540
|
+
"--seed-box-gap": handleDimension(gap),
|
|
541
|
+
"--seed-box-display": handleDisplay(display),
|
|
542
|
+
"--seed-box-position": position,
|
|
543
|
+
"--seed-box-overflow-x": overflowX,
|
|
544
|
+
"--seed-box-overflow-y": overflowY,
|
|
545
|
+
"--seed-box-flex-grow": flexGrow,
|
|
546
|
+
"--seed-box-flex-shrink": flexShrink,
|
|
547
|
+
"--seed-box-flex-direction": handleFlexDirection(flexDirection),
|
|
548
|
+
"--seed-box-flex-wrap": flexWrap,
|
|
549
|
+
"--seed-box-justify-content": handleJustifyContent(justifyContent),
|
|
550
|
+
"--seed-box-align-items": handleAlignItems(alignItems),
|
|
551
|
+
"--seed-box-align-content": handleAlignItems(alignContent),
|
|
552
|
+
"--seed-box-align-self": handleAlignItems(alignSelf),
|
|
553
|
+
...style
|
|
554
|
+
},
|
|
555
|
+
...nativeProps
|
|
556
|
+
}
|
|
557
|
+
);
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
// src/components/BottomSheet/BottomSheet.tsx
|
|
561
|
+
var { withRootProvider: withRootProvider2, withContext: withContext6 } = createStyleContext(bottomSheet);
|
|
562
|
+
var withStateProps3 = createWithStateProps([useDialogContext2]);
|
|
563
|
+
var BottomSheetRoot = withRootProvider2(DialogPrimitive2.Root, {
|
|
564
|
+
defaultProps: {
|
|
565
|
+
lazyMount: true,
|
|
566
|
+
unmountOnExit: true
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
var BottomSheetTrigger = DialogPrimitive2.Trigger;
|
|
570
|
+
var BottomSheetPositioner = withContext6(
|
|
571
|
+
DialogPrimitive2.Positioner,
|
|
572
|
+
"positioner"
|
|
573
|
+
);
|
|
574
|
+
var BottomSheetBackdrop = withContext6(
|
|
575
|
+
DialogPrimitive2.Backdrop,
|
|
576
|
+
"backdrop"
|
|
577
|
+
);
|
|
578
|
+
var BottomSheetContent = withContext6(
|
|
579
|
+
DialogPrimitive2.Content,
|
|
580
|
+
"content"
|
|
581
|
+
);
|
|
582
|
+
var BottomSheetHeader = withContext6(
|
|
583
|
+
withStateProps3(Primitive7.div),
|
|
584
|
+
"header"
|
|
585
|
+
);
|
|
586
|
+
var BottomSheetTitle = withContext6(
|
|
587
|
+
withStateProps3(Primitive7.h2),
|
|
588
|
+
"title"
|
|
589
|
+
);
|
|
590
|
+
var BottomSheetDescription = withContext6(withStateProps3(Primitive7.p), "description");
|
|
591
|
+
var BottomSheetBody = withContext6(
|
|
592
|
+
withStateProps3(Box),
|
|
593
|
+
"body"
|
|
594
|
+
);
|
|
595
|
+
var BottomSheetFooter = withContext6(
|
|
596
|
+
withStateProps3(Primitive7.div),
|
|
597
|
+
"footer"
|
|
598
|
+
);
|
|
599
|
+
var BottomSheetCloseButton = withContext6(
|
|
600
|
+
withStateProps3(Primitive7.button),
|
|
601
|
+
"closeButton"
|
|
602
|
+
);
|
|
603
|
+
var BottomSheetCloseIcon = withContext6(
|
|
604
|
+
Icon,
|
|
605
|
+
"closeIcon"
|
|
606
|
+
);
|
|
607
|
+
|
|
608
|
+
// src/components/BottomSheet/BottomSheet.namespace.ts
|
|
609
|
+
var BottomSheet_namespace_exports = {};
|
|
610
|
+
__export(BottomSheet_namespace_exports, {
|
|
611
|
+
Backdrop: () => BottomSheetBackdrop,
|
|
612
|
+
Body: () => BottomSheetBody,
|
|
613
|
+
CloseButton: () => BottomSheetCloseButton,
|
|
614
|
+
CloseIcon: () => BottomSheetCloseIcon,
|
|
615
|
+
Content: () => BottomSheetContent,
|
|
616
|
+
Description: () => BottomSheetDescription,
|
|
617
|
+
Footer: () => BottomSheetFooter,
|
|
618
|
+
Header: () => BottomSheetHeader,
|
|
619
|
+
Positioner: () => BottomSheetPositioner,
|
|
620
|
+
Root: () => BottomSheetRoot,
|
|
621
|
+
Title: () => BottomSheetTitle,
|
|
622
|
+
Trigger: () => BottomSheetTrigger
|
|
623
|
+
});
|
|
624
|
+
|
|
625
|
+
// src/components/Callout/Callout.tsx
|
|
626
|
+
import clsx5 from "clsx";
|
|
627
|
+
import * as React6 from "react";
|
|
628
|
+
import { Primitive as Primitive9 } from "@seed-design/react-primitive";
|
|
629
|
+
import { callout } from "@seed-design/recipe/callout";
|
|
630
|
+
|
|
631
|
+
// src/components/private/useDismissible.tsx
|
|
632
|
+
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
633
|
+
import { buttonProps, elementProps as elementProps2, mergeProps } from "@seed-design/dom-utils";
|
|
634
|
+
import { Primitive as Primitive8 } from "@seed-design/react-primitive";
|
|
635
|
+
import * as React5 from "react";
|
|
636
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
637
|
+
function useDismissible(props) {
|
|
638
|
+
const [open = true, setOpen] = useControllableState({
|
|
639
|
+
prop: props.open,
|
|
640
|
+
defaultProp: props.defaultOpen,
|
|
641
|
+
onChange: (open2) => {
|
|
642
|
+
var _a;
|
|
643
|
+
if (!open2) {
|
|
644
|
+
(_a = props.onDismiss) == null ? void 0 : _a.call(props);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
const dismiss = React5.useCallback(() => setOpen(false), [setOpen]);
|
|
649
|
+
return {
|
|
650
|
+
open,
|
|
651
|
+
dismiss,
|
|
652
|
+
rootProps: elementProps2({}),
|
|
653
|
+
dismissButtonProps: buttonProps({
|
|
654
|
+
onClick: (e) => {
|
|
655
|
+
if (e.defaultPrevented) return;
|
|
656
|
+
dismiss();
|
|
657
|
+
}
|
|
658
|
+
})
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
var DismissibleContext = React5.createContext(null);
|
|
662
|
+
var DismissibleProvider = DismissibleContext.Provider;
|
|
663
|
+
var useDismissibleContext = () => {
|
|
664
|
+
const context = React5.useContext(DismissibleContext);
|
|
665
|
+
if (context === null) {
|
|
666
|
+
throw new Error("useDismissibleContext should be used within DismissibleProvider");
|
|
667
|
+
}
|
|
668
|
+
return context;
|
|
669
|
+
};
|
|
670
|
+
var DismissibleRoot = React5.forwardRef(
|
|
671
|
+
({ defaultOpen, open, onDismiss, ...otherProps }, ref) => {
|
|
672
|
+
const api = useDismissible({ defaultOpen, open, onDismiss });
|
|
673
|
+
if (!api.open) return null;
|
|
674
|
+
return /* @__PURE__ */ jsx7(DismissibleProvider, { value: api, children: /* @__PURE__ */ jsx7(Primitive8.div, { ref, ...otherProps }) });
|
|
675
|
+
}
|
|
676
|
+
);
|
|
677
|
+
var DismissibleDismissButton = React5.forwardRef((props, ref) => {
|
|
678
|
+
const { dismissButtonProps } = useDismissibleContext();
|
|
679
|
+
return /* @__PURE__ */ jsx7(Primitive8.button, { ref, ...mergeProps(dismissButtonProps, props) });
|
|
680
|
+
});
|
|
681
|
+
|
|
682
|
+
// src/components/Callout/Callout.tsx
|
|
683
|
+
import { Fragment, jsx as jsx8, jsxs } from "react/jsx-runtime";
|
|
684
|
+
var { withContext: withContext7, withProvider: withProvider4, useClassNames } = createStyleContext(callout);
|
|
685
|
+
var CalloutRoot = withProvider4(DismissibleRoot, "root");
|
|
686
|
+
var CalloutIcon = withContext7(Icon, "icon");
|
|
687
|
+
var CalloutTextContent = withContext7(
|
|
688
|
+
Primitive9.div,
|
|
689
|
+
"textContent"
|
|
690
|
+
);
|
|
691
|
+
var CalloutTitle = React6.forwardRef(
|
|
692
|
+
({ className, ...otherProps }, ref) => {
|
|
693
|
+
const classNames = useClassNames();
|
|
694
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
695
|
+
/* @__PURE__ */ jsx8(Primitive9.span, { ref, className: clsx5(classNames.title, className), ...otherProps }),
|
|
696
|
+
/* @__PURE__ */ jsx8(Primitive9.span, { className: classNames.spacer, children: " " })
|
|
697
|
+
] });
|
|
698
|
+
}
|
|
699
|
+
);
|
|
700
|
+
CalloutTitle.displayName = "CalloutTitle";
|
|
701
|
+
var CalloutDescription = withContext7(
|
|
702
|
+
Primitive9.span,
|
|
703
|
+
"description"
|
|
704
|
+
);
|
|
705
|
+
var CalloutLink = React6.forwardRef(
|
|
706
|
+
({ className, ...otherProps }, ref) => {
|
|
707
|
+
const classNames = useClassNames();
|
|
708
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
709
|
+
/* @__PURE__ */ jsx8(Primitive9.span, { className: classNames.spacer, children: " " }),
|
|
710
|
+
/* @__PURE__ */ jsx8(
|
|
711
|
+
Primitive9.button,
|
|
712
|
+
{
|
|
713
|
+
ref,
|
|
714
|
+
className: clsx5(classNames.linkLabel, className),
|
|
715
|
+
...otherProps
|
|
716
|
+
}
|
|
717
|
+
)
|
|
718
|
+
] });
|
|
719
|
+
}
|
|
720
|
+
);
|
|
721
|
+
CalloutLink.displayName = "CalloutLink";
|
|
722
|
+
var CalloutDismissButton = withContext7(
|
|
723
|
+
DismissibleDismissButton,
|
|
724
|
+
"dismissButton"
|
|
725
|
+
);
|
|
726
|
+
var CalloutDismissIcon = withContext7(
|
|
727
|
+
Icon,
|
|
728
|
+
"dismissIcon"
|
|
729
|
+
);
|
|
730
|
+
var CalloutActionableIcon = withContext7(
|
|
731
|
+
Icon,
|
|
732
|
+
"actionableIcon"
|
|
733
|
+
);
|
|
734
|
+
|
|
735
|
+
// src/components/Callout/Callout.namespace.ts
|
|
736
|
+
var Callout_namespace_exports = {};
|
|
737
|
+
__export(Callout_namespace_exports, {
|
|
738
|
+
ActionableIcon: () => CalloutActionableIcon,
|
|
739
|
+
Description: () => CalloutDescription,
|
|
740
|
+
DismissButton: () => CalloutDismissButton,
|
|
741
|
+
DismissIcon: () => CalloutDismissIcon,
|
|
742
|
+
Icon: () => CalloutIcon,
|
|
743
|
+
Link: () => CalloutLink,
|
|
744
|
+
Root: () => CalloutRoot,
|
|
745
|
+
TextContent: () => CalloutTextContent,
|
|
746
|
+
Title: () => CalloutTitle
|
|
747
|
+
});
|
|
748
|
+
|
|
749
|
+
// src/components/Celcius/Celcius.tsx
|
|
750
|
+
var Celcius = (props) => {
|
|
751
|
+
return `${props.value}\xB0C`;
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
// src/components/Checkbox/Checkbox.tsx
|
|
755
|
+
import { mergeProps as mergeProps2 } from "@seed-design/dom-utils";
|
|
756
|
+
import { Checkbox as CheckboxPrimitive, useCheckboxContext } from "@seed-design/react-checkbox";
|
|
757
|
+
import { Primitive as Primitive10 } from "@seed-design/react-primitive";
|
|
758
|
+
import { checkbox } from "@seed-design/recipe/checkbox";
|
|
759
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
760
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
761
|
+
var { withProvider: withProvider5, withContext: withContext8, useClassNames: useClassNames2 } = createStyleContext(checkbox);
|
|
762
|
+
var withStateProps4 = createWithStateProps([useCheckboxContext]);
|
|
763
|
+
var CheckboxRoot = withProvider5(
|
|
764
|
+
CheckboxPrimitive.Root,
|
|
765
|
+
"root"
|
|
766
|
+
);
|
|
767
|
+
var CheckboxControl = withContext8(
|
|
768
|
+
CheckboxPrimitive.Control,
|
|
769
|
+
"control"
|
|
770
|
+
);
|
|
771
|
+
var CheckboxIndicator = forwardRef9(
|
|
772
|
+
({
|
|
773
|
+
unchecked: uncheckedSvg,
|
|
774
|
+
checked: checkedSvg,
|
|
775
|
+
indeterminate: indeterminateSvg,
|
|
776
|
+
...otherProps
|
|
777
|
+
}, ref) => {
|
|
778
|
+
const { stateProps, checked, indeterminate } = useCheckboxContext();
|
|
779
|
+
const classNames = useClassNames2();
|
|
780
|
+
const mergedProps = mergeProps2(
|
|
781
|
+
stateProps,
|
|
782
|
+
{ className: classNames.icon },
|
|
783
|
+
otherProps
|
|
784
|
+
);
|
|
785
|
+
if (indeterminate && !indeterminateSvg) {
|
|
786
|
+
console.warn(
|
|
787
|
+
"CheckboxIndicator: the `indeterminate` prop must be provided when the checkbox is in an indeterminate state."
|
|
788
|
+
);
|
|
789
|
+
}
|
|
790
|
+
if (indeterminate) return /* @__PURE__ */ jsx9(Icon, { ref, svg: indeterminateSvg, ...mergedProps });
|
|
791
|
+
if (checked) return /* @__PURE__ */ jsx9(Icon, { ref, svg: checkedSvg, ...mergedProps });
|
|
792
|
+
if (uncheckedSvg) return /* @__PURE__ */ jsx9(Icon, { ref, svg: uncheckedSvg, ...mergedProps });
|
|
793
|
+
return null;
|
|
794
|
+
}
|
|
795
|
+
);
|
|
796
|
+
CheckboxIndicator.displayName = "CheckboxIndicator";
|
|
797
|
+
var CheckboxLabel = withContext8(
|
|
798
|
+
withStateProps4(Primitive10.span),
|
|
799
|
+
"label"
|
|
800
|
+
);
|
|
801
|
+
var CheckboxHiddenInput = CheckboxPrimitive.HiddenInput;
|
|
802
|
+
|
|
803
|
+
// src/components/Checkbox/Checkbox.namespace.ts
|
|
804
|
+
var Checkbox_namespace_exports = {};
|
|
805
|
+
__export(Checkbox_namespace_exports, {
|
|
806
|
+
Control: () => CheckboxControl,
|
|
807
|
+
HiddenInput: () => CheckboxHiddenInput,
|
|
808
|
+
Indicator: () => CheckboxIndicator,
|
|
809
|
+
Label: () => CheckboxLabel,
|
|
810
|
+
Root: () => CheckboxRoot
|
|
811
|
+
});
|
|
812
|
+
|
|
813
|
+
// src/components/ChipTabs/ChipTabs.tsx
|
|
814
|
+
import { Primitive as Primitive11 } from "@seed-design/react-primitive";
|
|
815
|
+
import {
|
|
816
|
+
Tabs as TabsPrimitive,
|
|
817
|
+
useTabsContext,
|
|
818
|
+
useTabsTriggerContext
|
|
819
|
+
} from "@seed-design/react-tabs";
|
|
820
|
+
import { chipTabs } from "@seed-design/recipe/chipTabs";
|
|
821
|
+
var { withProvider: withProvider6, withContext: withContext9 } = createStyleContext(chipTabs);
|
|
822
|
+
var withStateProps5 = createWithStateProps([useTabsContext, useTabsTriggerContext], {
|
|
823
|
+
strict: false
|
|
824
|
+
});
|
|
825
|
+
var ChipTabsRoot = withProvider6(
|
|
826
|
+
TabsPrimitive.Root,
|
|
827
|
+
"root"
|
|
828
|
+
);
|
|
829
|
+
var ChipTabsList = withContext9(
|
|
830
|
+
TabsPrimitive.List,
|
|
831
|
+
"list"
|
|
832
|
+
);
|
|
833
|
+
var ChipTabsTrigger = withContext9(
|
|
834
|
+
TabsPrimitive.Trigger,
|
|
835
|
+
"trigger"
|
|
836
|
+
);
|
|
837
|
+
var ChipTabsTriggerLabel = withContext9(
|
|
838
|
+
withStateProps5(Primitive11.span),
|
|
839
|
+
"triggerLabel"
|
|
840
|
+
);
|
|
841
|
+
var ChipTabsContent = withContext9(
|
|
842
|
+
TabsPrimitive.Content,
|
|
843
|
+
"content"
|
|
844
|
+
);
|
|
845
|
+
var ChipTabsCarousel = withContext9(
|
|
846
|
+
TabsPrimitive.Carousel,
|
|
847
|
+
"carousel"
|
|
848
|
+
);
|
|
849
|
+
var ChipTabsCarouselCamera = withContext9(
|
|
850
|
+
TabsPrimitive.CarouselCamera,
|
|
851
|
+
"carouselCamera"
|
|
852
|
+
);
|
|
853
|
+
|
|
854
|
+
// src/components/ChipTabs/ChipTabs.namespace.ts
|
|
855
|
+
var ChipTabs_namespace_exports = {};
|
|
856
|
+
__export(ChipTabs_namespace_exports, {
|
|
857
|
+
Carousel: () => ChipTabsCarousel,
|
|
858
|
+
CarouselCamera: () => ChipTabsCarouselCamera,
|
|
859
|
+
Content: () => ChipTabsContent,
|
|
860
|
+
List: () => ChipTabsList,
|
|
861
|
+
Root: () => ChipTabsRoot,
|
|
862
|
+
Trigger: () => ChipTabsTrigger,
|
|
863
|
+
TriggerLabel: () => ChipTabsTriggerLabel
|
|
864
|
+
});
|
|
865
|
+
|
|
866
|
+
// src/components/Columns/Columns.tsx
|
|
867
|
+
import * as React7 from "react";
|
|
868
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
869
|
+
var Columns = React7.forwardRef((props, ref) => {
|
|
870
|
+
return /* @__PURE__ */ jsx10(
|
|
871
|
+
Box,
|
|
872
|
+
{
|
|
873
|
+
ref,
|
|
874
|
+
display: "flex",
|
|
875
|
+
flexDirection: "row",
|
|
876
|
+
flexWrap: "nowrap",
|
|
877
|
+
justifyContent: "flexStart",
|
|
878
|
+
...props
|
|
879
|
+
}
|
|
880
|
+
);
|
|
881
|
+
});
|
|
882
|
+
var Column = React7.forwardRef((props, ref) => {
|
|
883
|
+
const { width, ...otherProps } = props;
|
|
884
|
+
return /* @__PURE__ */ jsx10(
|
|
885
|
+
Box,
|
|
886
|
+
{
|
|
887
|
+
ref,
|
|
888
|
+
display: "flex",
|
|
889
|
+
flexDirection: "column",
|
|
890
|
+
width: width !== "content" ? "full" : void 0,
|
|
891
|
+
flexShrink: width ? 0 : void 0,
|
|
892
|
+
flexGrow: width ? 0 : 1,
|
|
893
|
+
...otherProps
|
|
894
|
+
}
|
|
895
|
+
);
|
|
896
|
+
});
|
|
897
|
+
|
|
898
|
+
// src/components/ControlChip/ControlChip.tsx
|
|
899
|
+
import { useCheckboxContext as useCheckboxContext2 } from "@seed-design/react-checkbox";
|
|
900
|
+
import { Primitive as Primitive12 } from "@seed-design/react-primitive";
|
|
901
|
+
import { useRadioGroupItemContext } from "@seed-design/react-radio-group";
|
|
902
|
+
import { controlChip } from "@seed-design/recipe/controlChip";
|
|
903
|
+
var { withProvider: withProvider7, withContext: withContext10 } = createStyleContext(controlChip);
|
|
904
|
+
var withStateProps6 = createWithStateProps([useCheckboxContext2, useRadioGroupItemContext], {
|
|
905
|
+
strict: false
|
|
906
|
+
});
|
|
907
|
+
var ControlChipRoot = withProvider7(
|
|
908
|
+
Primitive12.button,
|
|
909
|
+
"root"
|
|
910
|
+
);
|
|
911
|
+
var ControlChipLabel = withContext10(
|
|
912
|
+
withStateProps6(Primitive12.span),
|
|
913
|
+
"label"
|
|
914
|
+
);
|
|
915
|
+
var ControlChipPrefixIcon = withContext10(
|
|
916
|
+
withStateProps6(Icon),
|
|
917
|
+
"prefixIcon"
|
|
918
|
+
);
|
|
919
|
+
var ControlChipSuffixIcon = withContext10(
|
|
920
|
+
withStateProps6(Icon),
|
|
921
|
+
"suffixIcon"
|
|
922
|
+
);
|
|
923
|
+
var ControlChipIcon = withContext10(
|
|
924
|
+
withStateProps6(Icon),
|
|
925
|
+
"icon"
|
|
926
|
+
);
|
|
927
|
+
var ControlChipCount = withContext10(
|
|
928
|
+
withStateProps6(Primitive12.span),
|
|
929
|
+
"count"
|
|
930
|
+
);
|
|
931
|
+
|
|
932
|
+
// src/components/ControlChip/ControlChip.namespace.ts
|
|
933
|
+
var ControlChip_namespace_exports = {};
|
|
934
|
+
__export(ControlChip_namespace_exports, {
|
|
935
|
+
Count: () => ControlChipCount,
|
|
936
|
+
Icon: () => ControlChipIcon,
|
|
937
|
+
Label: () => ControlChipLabel,
|
|
938
|
+
PrefixIcon: () => ControlChipPrefixIcon,
|
|
939
|
+
Root: () => ControlChipRoot,
|
|
940
|
+
SuffixIcon: () => ControlChipSuffixIcon
|
|
941
|
+
});
|
|
942
|
+
|
|
943
|
+
// src/components/Dialog/Dialog.tsx
|
|
944
|
+
import { Dialog as DialogPrimitive3, useDialogContext as useDialogContext3 } from "@seed-design/react-dialog";
|
|
945
|
+
import { Primitive as Primitive13 } from "@seed-design/react-primitive";
|
|
946
|
+
import { dialog } from "@seed-design/recipe/dialog";
|
|
947
|
+
import { forwardRef as forwardRef11 } from "react";
|
|
948
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
949
|
+
var { withRootProvider: withRootProvider3, withContext: withContext11 } = createStyleContext(dialog);
|
|
950
|
+
var withStateProps7 = createWithStateProps([useDialogContext3]);
|
|
951
|
+
var DialogRoot = withRootProvider3(DialogPrimitive3.Root, {
|
|
952
|
+
defaultProps: {
|
|
953
|
+
lazyMount: true,
|
|
954
|
+
unmountOnExit: true
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
var DialogTrigger = DialogPrimitive3.Trigger;
|
|
958
|
+
var DialogPositioner = withContext11(
|
|
959
|
+
DialogPrimitive3.Positioner,
|
|
960
|
+
"positioner"
|
|
961
|
+
);
|
|
962
|
+
var DialogBackdrop = withContext11(
|
|
963
|
+
DialogPrimitive3.Backdrop,
|
|
964
|
+
"backdrop"
|
|
965
|
+
);
|
|
966
|
+
var DialogContent = withContext11(
|
|
967
|
+
DialogPrimitive3.Content,
|
|
968
|
+
"content"
|
|
969
|
+
);
|
|
970
|
+
var DialogHeader = withContext11(Primitive13.div, "header");
|
|
971
|
+
var DialogTitle = withContext11(
|
|
972
|
+
withStateProps7(Primitive13.span),
|
|
973
|
+
"title"
|
|
974
|
+
);
|
|
975
|
+
var DialogDescription = withContext11(
|
|
976
|
+
withStateProps7(Primitive13.div),
|
|
977
|
+
"description"
|
|
978
|
+
);
|
|
979
|
+
var DialogFooter = withContext11(Primitive13.div, "footer");
|
|
980
|
+
var DialogAction = forwardRef11((props, ref) => {
|
|
981
|
+
const api = useDialogContext3();
|
|
982
|
+
return /* @__PURE__ */ jsx11(Primitive13.button, { ...props, ref, onClick: () => api.setOpen(false) });
|
|
983
|
+
});
|
|
984
|
+
|
|
985
|
+
// src/components/Dialog/Dialog.namespace.ts
|
|
986
|
+
var Dialog_namespace_exports = {};
|
|
987
|
+
__export(Dialog_namespace_exports, {
|
|
988
|
+
Action: () => DialogAction,
|
|
989
|
+
Backdrop: () => DialogBackdrop,
|
|
990
|
+
Content: () => DialogContent,
|
|
991
|
+
Description: () => DialogDescription,
|
|
992
|
+
Footer: () => DialogFooter,
|
|
993
|
+
Header: () => DialogHeader,
|
|
994
|
+
Positioner: () => DialogPositioner,
|
|
995
|
+
Root: () => DialogRoot,
|
|
996
|
+
Title: () => DialogTitle,
|
|
997
|
+
Trigger: () => DialogTrigger
|
|
998
|
+
});
|
|
999
|
+
|
|
1000
|
+
// src/components/ExtendedActionSheet/ExtendedActionSheet.tsx
|
|
1001
|
+
import { Dialog as DialogPrimitive4, useDialogContext as useDialogContext4 } from "@seed-design/react-dialog";
|
|
1002
|
+
import { Primitive as Primitive14 } from "@seed-design/react-primitive";
|
|
1003
|
+
import {
|
|
1004
|
+
extendedActionSheet
|
|
1005
|
+
} from "@seed-design/recipe/extendedActionSheet";
|
|
1006
|
+
import {
|
|
1007
|
+
extendedActionSheetCloseButton
|
|
1008
|
+
} from "@seed-design/recipe/extendedActionSheetCloseButton";
|
|
1009
|
+
import {
|
|
1010
|
+
extendedActionSheetItem
|
|
1011
|
+
} from "@seed-design/recipe/extendedActionSheetItem";
|
|
1012
|
+
var { withRootProvider: withRootProvider4, withContext: withContext12 } = createStyleContext(extendedActionSheet);
|
|
1013
|
+
var { withProvider: withItemProvider2, withContext: withItemContext2 } = createStyleContext(extendedActionSheetItem);
|
|
1014
|
+
var { withProvider: withCloseButtonProvider2, withContext: withCloseButtonContext2 } = createStyleContext(extendedActionSheetCloseButton);
|
|
1015
|
+
var withStateProps8 = createWithStateProps([useDialogContext4]);
|
|
1016
|
+
var ExtendedActionSheetRoot = withRootProvider4(
|
|
1017
|
+
DialogPrimitive4.Root,
|
|
1018
|
+
{
|
|
1019
|
+
defaultProps: {
|
|
1020
|
+
lazyMount: true,
|
|
1021
|
+
unmountOnExit: true
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
);
|
|
1025
|
+
var ExtendedActionSheetTrigger = DialogPrimitive4.Trigger;
|
|
1026
|
+
var ExtendedActionSheetPositioner = withContext12(DialogPrimitive4.Positioner, "positioner");
|
|
1027
|
+
var ExtendedActionSheetBackdrop = withContext12(DialogPrimitive4.Backdrop, "backdrop");
|
|
1028
|
+
var ExtendedActionSheetContent = withContext12(DialogPrimitive4.Content, "content");
|
|
1029
|
+
var ExtendedActionSheetHeader = withContext12(withStateProps8(Primitive14.div), "header");
|
|
1030
|
+
var ExtendedActionSheetTitle = withContext12(withStateProps8(Primitive14.h2), "title");
|
|
1031
|
+
var ExtendedActionSheetList = withContext12(
|
|
1032
|
+
withStateProps8(Primitive14.div),
|
|
1033
|
+
"list"
|
|
1034
|
+
);
|
|
1035
|
+
var ExtendedActionSheetGroup = withContext12(
|
|
1036
|
+
withStateProps8(Primitive14.div),
|
|
1037
|
+
"group"
|
|
1038
|
+
);
|
|
1039
|
+
var ExtendedActionSheetItem = withItemProvider2(withStateProps8(Primitive14.button), "root");
|
|
1040
|
+
var ExtendedActionSheetItemLabel = withItemContext2(withStateProps8(Primitive14.span), "label");
|
|
1041
|
+
var ExtendedActionSheetItemPrefixIcon = withItemContext2(withStateProps8(Icon), "prefixIcon");
|
|
1042
|
+
var ExtendedActionSheetFooter = withContext12(withStateProps8(Primitive14.div), "footer");
|
|
1043
|
+
var ExtendedActionSheetCloseButton = withCloseButtonProvider2(DialogPrimitive4.CloseButton, "root");
|
|
1044
|
+
var ExtendedActionSheetCloseButtonLabel = withCloseButtonContext2(Primitive14.span, "label");
|
|
1045
|
+
|
|
1046
|
+
// src/components/ExtendedActionSheet/ExtendedActionSheet.namespace.ts
|
|
1047
|
+
var ExtendedActionSheet_namespace_exports = {};
|
|
1048
|
+
__export(ExtendedActionSheet_namespace_exports, {
|
|
1049
|
+
Backdrop: () => ExtendedActionSheetBackdrop,
|
|
1050
|
+
CloseButton: () => ExtendedActionSheetCloseButton,
|
|
1051
|
+
CloseButtonLabel: () => ExtendedActionSheetCloseButtonLabel,
|
|
1052
|
+
Content: () => ExtendedActionSheetContent,
|
|
1053
|
+
Footer: () => ExtendedActionSheetFooter,
|
|
1054
|
+
Group: () => ExtendedActionSheetGroup,
|
|
1055
|
+
Header: () => ExtendedActionSheetHeader,
|
|
1056
|
+
Item: () => ExtendedActionSheetItem,
|
|
1057
|
+
ItemLabel: () => ExtendedActionSheetItemLabel,
|
|
1058
|
+
ItemPrefixIcon: () => ExtendedActionSheetItemPrefixIcon,
|
|
1059
|
+
List: () => ExtendedActionSheetList,
|
|
1060
|
+
Positioner: () => ExtendedActionSheetPositioner,
|
|
1061
|
+
Root: () => ExtendedActionSheetRoot,
|
|
1062
|
+
Title: () => ExtendedActionSheetTitle,
|
|
1063
|
+
Trigger: () => ExtendedActionSheetTrigger
|
|
1064
|
+
});
|
|
1065
|
+
|
|
1066
|
+
// src/components/ExtendedFab/ExtendedFab.tsx
|
|
1067
|
+
import { Primitive as Primitive15 } from "@seed-design/react-primitive";
|
|
1068
|
+
import { extendedFab } from "@seed-design/recipe/extendedFab";
|
|
1069
|
+
var { withContext: withContext13, withProvider: withProvider8 } = createStyleContext(extendedFab);
|
|
1070
|
+
var ExtendedFabRoot = withProvider8(
|
|
1071
|
+
Primitive15.button,
|
|
1072
|
+
"root",
|
|
1073
|
+
{
|
|
1074
|
+
defaultProps: {
|
|
1075
|
+
variant: "neutralSolid",
|
|
1076
|
+
size: "medium"
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
);
|
|
1080
|
+
var ExtendedFabLabel = withContext13(
|
|
1081
|
+
Primitive15.span,
|
|
1082
|
+
"label"
|
|
1083
|
+
);
|
|
1084
|
+
var ExtendedFabPrefixIcon = withContext13(
|
|
1085
|
+
Icon,
|
|
1086
|
+
"prefixIcon"
|
|
1087
|
+
);
|
|
1088
|
+
|
|
1089
|
+
// src/components/ExtendedFab/ExtendedFab.namespace.ts
|
|
1090
|
+
var ExtendedFab_namespace_exports = {};
|
|
1091
|
+
__export(ExtendedFab_namespace_exports, {
|
|
1092
|
+
Label: () => ExtendedFabLabel,
|
|
1093
|
+
PrefixIcon: () => ExtendedFabPrefixIcon,
|
|
1094
|
+
Root: () => ExtendedFabRoot
|
|
1095
|
+
});
|
|
1096
|
+
|
|
1097
|
+
// src/components/Fab/Fab.tsx
|
|
1098
|
+
import { Primitive as Primitive16 } from "@seed-design/react-primitive";
|
|
1099
|
+
import { fab } from "@seed-design/recipe/fab";
|
|
1100
|
+
var { withContext: withContext14, withProvider: withProvider9 } = createStyleContext(fab);
|
|
1101
|
+
var FabRoot = withProvider9(Primitive16.button, "root");
|
|
1102
|
+
var FabIcon = withContext14(Icon, "icon");
|
|
1103
|
+
|
|
1104
|
+
// src/components/Fab/Fab.namespace.ts
|
|
1105
|
+
var Fab_namespace_exports = {};
|
|
1106
|
+
__export(Fab_namespace_exports, {
|
|
1107
|
+
Icon: () => FabIcon,
|
|
1108
|
+
Root: () => FabRoot
|
|
1109
|
+
});
|
|
1110
|
+
|
|
1111
|
+
// src/components/Flex/Flex.tsx
|
|
1112
|
+
import * as React8 from "react";
|
|
1113
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1114
|
+
var Flex = React8.forwardRef((props, ref) => {
|
|
1115
|
+
const { direction, wrap, ...rest } = props;
|
|
1116
|
+
return /* @__PURE__ */ jsx12(Box, { ref, display: "flex", flexDirection: direction, flexWrap: wrap, ...rest });
|
|
1117
|
+
});
|
|
1118
|
+
|
|
1119
|
+
// src/components/HelpBubble/HelpBubble.tsx
|
|
1120
|
+
import { Popover as PopoverPrimitive, usePopoverContext } from "@seed-design/react-popover";
|
|
1121
|
+
import { Primitive as Primitive17 } from "@seed-design/react-primitive";
|
|
1122
|
+
import { helpBubble } from "@seed-design/recipe/helpBubble";
|
|
1123
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
1124
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1125
|
+
var { withRootProvider: withRootProvider5, withContext: withContext15 } = createStyleContext(helpBubble);
|
|
1126
|
+
var withStateProps9 = createWithStateProps([usePopoverContext]);
|
|
1127
|
+
var HelpBubbleRoot = withRootProvider5(PopoverPrimitive.Root, {
|
|
1128
|
+
defaultProps: {
|
|
1129
|
+
placement: "top",
|
|
1130
|
+
gutter: 4,
|
|
1131
|
+
overflowPadding: 16,
|
|
1132
|
+
arrowPadding: 14,
|
|
1133
|
+
flip: true,
|
|
1134
|
+
slide: true,
|
|
1135
|
+
strategy: "absolute"
|
|
1136
|
+
}
|
|
1137
|
+
});
|
|
1138
|
+
var HelpBubbleAnchor = PopoverPrimitive.Anchor;
|
|
1139
|
+
var HelpBubbleTrigger = PopoverPrimitive.Trigger;
|
|
1140
|
+
var HelpBubblePositioner = withContext15(
|
|
1141
|
+
PopoverPrimitive.Positioner,
|
|
1142
|
+
"positioner"
|
|
1143
|
+
);
|
|
1144
|
+
var HelpBubbleBackdrop = withContext15(
|
|
1145
|
+
withStateProps9(Primitive17.div),
|
|
1146
|
+
"backdrop"
|
|
1147
|
+
);
|
|
1148
|
+
var HelpBubbleContent = withContext15(
|
|
1149
|
+
withStateProps9(Box),
|
|
1150
|
+
"content"
|
|
1151
|
+
);
|
|
1152
|
+
var HelpBubbleArrow = withContext15(
|
|
1153
|
+
PopoverPrimitive.Arrow,
|
|
1154
|
+
"arrow"
|
|
1155
|
+
);
|
|
1156
|
+
var HelpBubbleArrowTip = forwardRef13(
|
|
1157
|
+
(props, ref) => {
|
|
1158
|
+
var _a, _b;
|
|
1159
|
+
const { tipRadius = 1, ...otherProps } = props;
|
|
1160
|
+
const api = usePopoverContext();
|
|
1161
|
+
const width = ((_a = api.rects.arrow) == null ? void 0 : _a.width) || 0;
|
|
1162
|
+
const height = ((_b = api.rects.arrow) == null ? void 0 : _b.height) || 0;
|
|
1163
|
+
const pathData = `M0,0
|
|
1164
|
+
H${width}
|
|
1165
|
+
L${width / 2 + tipRadius},${height - tipRadius}
|
|
1166
|
+
Q${width / 2},${height} ${width / 2 - tipRadius},${height - tipRadius}
|
|
1167
|
+
Z`;
|
|
1168
|
+
return /* @__PURE__ */ jsx13(
|
|
1169
|
+
"svg",
|
|
1170
|
+
{
|
|
1171
|
+
"aria-hidden": "true",
|
|
1172
|
+
width,
|
|
1173
|
+
height: width,
|
|
1174
|
+
viewBox: `0 0 ${width} ${height > width ? height : width}`,
|
|
1175
|
+
ref,
|
|
1176
|
+
...otherProps,
|
|
1177
|
+
children: /* @__PURE__ */ jsx13("path", { stroke: "none", d: pathData })
|
|
1178
|
+
}
|
|
1179
|
+
);
|
|
1180
|
+
}
|
|
1181
|
+
);
|
|
1182
|
+
var HelpBubbleCloseButton = withContext15(
|
|
1183
|
+
PopoverPrimitive.CloseButton,
|
|
1184
|
+
"closeButton"
|
|
1185
|
+
);
|
|
1186
|
+
var HelpBubbleCloseIcon = withContext15(
|
|
1187
|
+
withStateProps9(Icon),
|
|
1188
|
+
"closeIcon"
|
|
1189
|
+
);
|
|
1190
|
+
var HelpBubbleTitle = withContext15(
|
|
1191
|
+
withStateProps9(Primitive17.span),
|
|
1192
|
+
"title"
|
|
1193
|
+
);
|
|
1194
|
+
var HelpBubbleDescription = withContext15(
|
|
1195
|
+
withStateProps9(Primitive17.div),
|
|
1196
|
+
"description"
|
|
1197
|
+
);
|
|
1198
|
+
|
|
1199
|
+
// src/components/HelpBubble/HelpBubble.namespace.ts
|
|
1200
|
+
var HelpBubble_namespace_exports = {};
|
|
1201
|
+
__export(HelpBubble_namespace_exports, {
|
|
1202
|
+
Anchor: () => HelpBubbleAnchor,
|
|
1203
|
+
Arrow: () => HelpBubbleArrow,
|
|
1204
|
+
ArrowTip: () => HelpBubbleArrowTip,
|
|
1205
|
+
Backdrop: () => HelpBubbleBackdrop,
|
|
1206
|
+
CloseButton: () => HelpBubbleCloseButton,
|
|
1207
|
+
CloseIcon: () => HelpBubbleCloseIcon,
|
|
1208
|
+
Content: () => HelpBubbleContent,
|
|
1209
|
+
Description: () => HelpBubbleDescription,
|
|
1210
|
+
Positioner: () => HelpBubblePositioner,
|
|
1211
|
+
Root: () => HelpBubbleRoot,
|
|
1212
|
+
Title: () => HelpBubbleTitle,
|
|
1213
|
+
Trigger: () => HelpBubbleTrigger
|
|
1214
|
+
});
|
|
1215
|
+
|
|
1216
|
+
// src/components/Inline/Inline.tsx
|
|
1217
|
+
import * as React9 from "react";
|
|
1218
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1219
|
+
var Inline = React9.forwardRef((props, ref) => {
|
|
1220
|
+
return /* @__PURE__ */ jsx14(
|
|
1221
|
+
Box,
|
|
1222
|
+
{
|
|
1223
|
+
ref,
|
|
1224
|
+
display: "flex",
|
|
1225
|
+
flexDirection: "row",
|
|
1226
|
+
flexWrap: "wrap",
|
|
1227
|
+
alignItems: "flexStart",
|
|
1228
|
+
justifyContent: "flexStart",
|
|
1229
|
+
...props
|
|
1230
|
+
}
|
|
1231
|
+
);
|
|
1232
|
+
});
|
|
1233
|
+
|
|
1234
|
+
// src/components/InlineBanner/InlineBanner.tsx
|
|
1235
|
+
import clsx6 from "clsx";
|
|
1236
|
+
import * as React10 from "react";
|
|
1237
|
+
import { Primitive as Primitive18 } from "@seed-design/react-primitive";
|
|
1238
|
+
import { inlineBanner } from "@seed-design/recipe/inlineBanner";
|
|
1239
|
+
import { Fragment as Fragment2, jsx as jsx15, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1240
|
+
var { withContext: withContext16, withProvider: withProvider10, useClassNames: useClassNames3 } = createStyleContext(inlineBanner);
|
|
1241
|
+
var InlineBannerRoot = withProvider10(
|
|
1242
|
+
DismissibleRoot,
|
|
1243
|
+
"root"
|
|
1244
|
+
);
|
|
1245
|
+
var InlineBannerContent = withContext16(
|
|
1246
|
+
Primitive18.div,
|
|
1247
|
+
"content"
|
|
1248
|
+
);
|
|
1249
|
+
var InlineBannerIcon = withContext16(Icon, "icon");
|
|
1250
|
+
var InlineBannerTextContent = React10.forwardRef((props, ref) => {
|
|
1251
|
+
return /* @__PURE__ */ jsx15(Primitive18.div, { ref, ...props });
|
|
1252
|
+
});
|
|
1253
|
+
InlineBannerTextContent.displayName = "InlineBannerTextContent";
|
|
1254
|
+
var InlineBannerTitle = React10.forwardRef(
|
|
1255
|
+
({ className, ...otherProps }, ref) => {
|
|
1256
|
+
const classNames = useClassNames3();
|
|
1257
|
+
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
1258
|
+
/* @__PURE__ */ jsx15(Primitive18.span, { ref, className: clsx6(classNames.title, className), ...otherProps }),
|
|
1259
|
+
/* @__PURE__ */ jsx15(Primitive18.span, { className: classNames.spacer, children: " " })
|
|
1260
|
+
] });
|
|
1261
|
+
}
|
|
1262
|
+
);
|
|
1263
|
+
InlineBannerTitle.displayName = "InlineBannerTitle";
|
|
1264
|
+
var InlineBannerDescription = withContext16(
|
|
1265
|
+
Primitive18.span,
|
|
1266
|
+
"description"
|
|
1267
|
+
);
|
|
1268
|
+
var InlineBannerLink = withContext16(
|
|
1269
|
+
Primitive18.button,
|
|
1270
|
+
"linkLabel"
|
|
1271
|
+
);
|
|
1272
|
+
var InlineBannerDismissButton = withContext16(DismissibleDismissButton, "dismissButton");
|
|
1273
|
+
var InlineBannerDismissIcon = withContext16(
|
|
1274
|
+
Icon,
|
|
1275
|
+
"dismissIcon"
|
|
1276
|
+
);
|
|
1277
|
+
var InlineBannerActionableIcon = withContext16(Icon, "actionableIcon");
|
|
1278
|
+
|
|
1279
|
+
// src/components/InlineBanner/InlineBanner.namespace.ts
|
|
1280
|
+
var InlineBanner_namespace_exports = {};
|
|
1281
|
+
__export(InlineBanner_namespace_exports, {
|
|
1282
|
+
ActionableIcon: () => InlineBannerActionableIcon,
|
|
1283
|
+
Content: () => InlineBannerContent,
|
|
1284
|
+
Description: () => InlineBannerDescription,
|
|
1285
|
+
DismissButton: () => InlineBannerDismissButton,
|
|
1286
|
+
DismissIcon: () => InlineBannerDismissIcon,
|
|
1287
|
+
Icon: () => InlineBannerIcon,
|
|
1288
|
+
Link: () => InlineBannerLink,
|
|
1289
|
+
Root: () => InlineBannerRoot,
|
|
1290
|
+
TextContent: () => InlineBannerTextContent,
|
|
1291
|
+
Title: () => InlineBannerTitle
|
|
1292
|
+
});
|
|
1293
|
+
|
|
1294
|
+
// src/components/MannerTempBadge/MannerTempBadge.tsx
|
|
1295
|
+
import { Primitive as Primitive19 } from "@seed-design/react-primitive";
|
|
1296
|
+
import {
|
|
1297
|
+
mannerTempBadge
|
|
1298
|
+
} from "@seed-design/recipe/mannerTempBadge";
|
|
1299
|
+
var { withProvider: withProvider11, withContext: withContext17 } = createStyleContext(mannerTempBadge);
|
|
1300
|
+
var MannerTempBadgeRoot = withProvider11(
|
|
1301
|
+
Primitive19.span,
|
|
1302
|
+
"root"
|
|
1303
|
+
);
|
|
1304
|
+
var MannerTempBadgeLabel = withContext17(
|
|
1305
|
+
Primitive19.span,
|
|
1306
|
+
"label"
|
|
1307
|
+
);
|
|
1308
|
+
|
|
1309
|
+
// src/components/MannerTempBadge/MannerTempBadge.namespace.ts
|
|
1310
|
+
var MannerTempBadge_namespace_exports = {};
|
|
1311
|
+
__export(MannerTempBadge_namespace_exports, {
|
|
1312
|
+
Label: () => MannerTempBadgeLabel,
|
|
1313
|
+
Root: () => MannerTempBadgeRoot
|
|
1314
|
+
});
|
|
1315
|
+
|
|
1316
|
+
// src/components/ProgressCircle/ProgressCircle.tsx
|
|
1317
|
+
import { ProgressCircle as ProgressCirclePrimitive } from "@seed-design/react-progress";
|
|
1318
|
+
import {
|
|
1319
|
+
progressCircle
|
|
1320
|
+
} from "@seed-design/recipe/progressCircle";
|
|
1321
|
+
var { withContext: withContext18, withProvider: withProvider12 } = createStyleContext(progressCircle);
|
|
1322
|
+
var ProgressCircleRoot = withProvider12(
|
|
1323
|
+
ProgressCirclePrimitive.Root,
|
|
1324
|
+
"root"
|
|
1325
|
+
);
|
|
1326
|
+
var ProgressCircleTrack = withContext18(
|
|
1327
|
+
ProgressCirclePrimitive.Track,
|
|
1328
|
+
"track"
|
|
1329
|
+
);
|
|
1330
|
+
var ProgressCircleRange = withContext18(
|
|
1331
|
+
ProgressCirclePrimitive.Range,
|
|
1332
|
+
"range"
|
|
1333
|
+
);
|
|
1334
|
+
|
|
1335
|
+
// src/components/ProgressCircle/ProgressCircle.namespace.ts
|
|
1336
|
+
var ProgressCircle_namespace_exports = {};
|
|
1337
|
+
__export(ProgressCircle_namespace_exports, {
|
|
1338
|
+
Range: () => ProgressCircleRange,
|
|
1339
|
+
Root: () => ProgressCircleRoot,
|
|
1340
|
+
Track: () => ProgressCircleTrack
|
|
1341
|
+
});
|
|
1342
|
+
|
|
1343
|
+
// src/components/PullToRefresh/PullToRefresh.tsx
|
|
1344
|
+
import { PullToRefresh as PullToRefreshPrimitive } from "@seed-design/react-pull-to-refresh";
|
|
1345
|
+
import { pullToRefresh } from "@seed-design/recipe/pullToRefresh";
|
|
1346
|
+
var { withContext: withContext19, withProvider: withProvider13 } = createStyleContext(pullToRefresh);
|
|
1347
|
+
var PullToRefreshRoot = withProvider13(
|
|
1348
|
+
PullToRefreshPrimitive.Root,
|
|
1349
|
+
"root"
|
|
1350
|
+
);
|
|
1351
|
+
var PullToRefreshIndicator = withContext19(
|
|
1352
|
+
PullToRefreshPrimitive.Indicator,
|
|
1353
|
+
"indicator"
|
|
1354
|
+
);
|
|
1355
|
+
var PullToRefreshContent = PullToRefreshPrimitive.Content;
|
|
1356
|
+
|
|
1357
|
+
// src/components/PullToRefresh/PullToRefresh.namespace.ts
|
|
1358
|
+
var PullToRefresh_namespace_exports = {};
|
|
1359
|
+
__export(PullToRefresh_namespace_exports, {
|
|
1360
|
+
Content: () => PullToRefreshContent,
|
|
1361
|
+
Indicator: () => PullToRefreshIndicator,
|
|
1362
|
+
Root: () => PullToRefreshRoot
|
|
1363
|
+
});
|
|
1364
|
+
|
|
1365
|
+
// src/components/ReactionButton/ReactionButton.tsx
|
|
1366
|
+
import { Primitive as Primitive20 } from "@seed-design/react-primitive";
|
|
1367
|
+
import { Toggle as TogglePrimitive, useToggleContext } from "@seed-design/react-toggle";
|
|
1368
|
+
import {
|
|
1369
|
+
reactionButton
|
|
1370
|
+
} from "@seed-design/recipe/reactionButton";
|
|
1371
|
+
import clsx7 from "clsx";
|
|
1372
|
+
import * as React11 from "react";
|
|
1373
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1374
|
+
var { ClassNamesProvider: ClassNamesProvider2, withContext: withContext20 } = createStyleContext(reactionButton);
|
|
1375
|
+
var withStateProps10 = createWithStateProps([usePendingButtonContext, useToggleContext]);
|
|
1376
|
+
var ReactionButtonRoot = React11.forwardRef(
|
|
1377
|
+
({ size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
1378
|
+
const classNames = reactionButton({ size });
|
|
1379
|
+
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
1380
|
+
return /* @__PURE__ */ jsx16(ClassNamesProvider2, { value: classNames, children: /* @__PURE__ */ jsx16(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx16(
|
|
1381
|
+
TogglePrimitive.Root,
|
|
1382
|
+
{
|
|
1383
|
+
ref,
|
|
1384
|
+
className: clsx7(classNames.root, className),
|
|
1385
|
+
...api.stateProps,
|
|
1386
|
+
...otherProps
|
|
1387
|
+
}
|
|
1388
|
+
) }) });
|
|
1389
|
+
}
|
|
1390
|
+
);
|
|
1391
|
+
ReactionButtonRoot.displayName = "ReactionButton";
|
|
1392
|
+
var ReactionButtonLabel = withContext20(
|
|
1393
|
+
withStateProps10(Primitive20.span),
|
|
1394
|
+
"label"
|
|
1395
|
+
);
|
|
1396
|
+
var ReactionButtonCount = withContext20(
|
|
1397
|
+
withStateProps10(Primitive20.span),
|
|
1398
|
+
"count"
|
|
1399
|
+
);
|
|
1400
|
+
var ReactionButtonPrefixIcon = withContext20(
|
|
1401
|
+
withStateProps10(Icon),
|
|
1402
|
+
"prefixIcon"
|
|
1403
|
+
);
|
|
1404
|
+
var ReactionButtonProgressIndicator = withContext20(withStateProps10(Primitive20.div), "progressIndicator");
|
|
1405
|
+
|
|
1406
|
+
// src/components/ReactionButton/ReactionButton.namespace.ts
|
|
1407
|
+
var ReactionButton_namespace_exports = {};
|
|
1408
|
+
__export(ReactionButton_namespace_exports, {
|
|
1409
|
+
Count: () => ReactionButtonCount,
|
|
1410
|
+
Label: () => ReactionButtonLabel,
|
|
1411
|
+
PrefixIcon: () => ReactionButtonPrefixIcon,
|
|
1412
|
+
ProgressIndicator: () => ReactionButtonProgressIndicator,
|
|
1413
|
+
Root: () => ReactionButtonRoot
|
|
1414
|
+
});
|
|
1415
|
+
|
|
1416
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
1417
|
+
import { Primitive as Primitive21 } from "@seed-design/react-primitive";
|
|
1418
|
+
import {
|
|
1419
|
+
SegmentedControl as SegmentedControlPrimitive,
|
|
1420
|
+
useSegmentedControlItemContext
|
|
1421
|
+
} from "@seed-design/react-segmented-control";
|
|
1422
|
+
import {
|
|
1423
|
+
segmentedControl
|
|
1424
|
+
} from "@seed-design/recipe/segmentedControl";
|
|
1425
|
+
var { withProvider: withProvider14, withContext: withContext21 } = createStyleContext(segmentedControl);
|
|
1426
|
+
var withStateProps11 = createWithStateProps([useSegmentedControlItemContext]);
|
|
1427
|
+
var SegmentedControlRoot = withProvider14(
|
|
1428
|
+
SegmentedControlPrimitive.Root,
|
|
1429
|
+
"root"
|
|
1430
|
+
);
|
|
1431
|
+
var SegmentedControlIndicator = withContext21(Primitive21.div, "indicator");
|
|
1432
|
+
var SegmentedControlItem = withContext21(
|
|
1433
|
+
SegmentedControlPrimitive.Item,
|
|
1434
|
+
"item"
|
|
1435
|
+
);
|
|
1436
|
+
var SegmentedControlItemHiddenInput = SegmentedControlPrimitive.ItemHiddenInput;
|
|
1437
|
+
var SegmentedControlItemLabel = withContext21(withStateProps11(Primitive21.span), "itemLabel");
|
|
1438
|
+
|
|
1439
|
+
// src/components/SegmentedControl/SegmentedControl.namespace.ts
|
|
1440
|
+
var SegmentedControl_namespace_exports = {};
|
|
1441
|
+
__export(SegmentedControl_namespace_exports, {
|
|
1442
|
+
Indicator: () => SegmentedControlIndicator,
|
|
1443
|
+
Item: () => SegmentedControlItem,
|
|
1444
|
+
Root: () => SegmentedControlRoot,
|
|
1445
|
+
SegmentHiddenInput: () => SegmentedControlItemHiddenInput,
|
|
1446
|
+
SegmentLabel: () => SegmentedControlItemLabel
|
|
1447
|
+
});
|
|
1448
|
+
|
|
1449
|
+
// src/components/SelectBox/CheckSelectBox.tsx
|
|
1450
|
+
import { Checkbox as CheckboxPrimitive2, useCheckboxContext as useCheckboxContext3 } from "@seed-design/react-checkbox";
|
|
1451
|
+
import { Primitive as Primitive22 } from "@seed-design/react-primitive";
|
|
1452
|
+
import { selectBox } from "@seed-design/recipe/selectBox";
|
|
1453
|
+
import { selectBoxGroup } from "@seed-design/recipe/selectBoxGroup";
|
|
1454
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
1455
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1456
|
+
var { withProvider: withGroupProvider } = createStyleContext(selectBoxGroup);
|
|
1457
|
+
var { withProvider: withProvider15, withContext: withContext22 } = createStyleContext(selectBox);
|
|
1458
|
+
var withStateProps12 = createWithStateProps([useCheckboxContext3]);
|
|
1459
|
+
var CheckSelectBoxGroup = withGroupProvider(
|
|
1460
|
+
forwardRef17((props, ref) => /* @__PURE__ */ jsx17(Primitive22.div, { ref, role: "group", ...props })),
|
|
1461
|
+
"root"
|
|
1462
|
+
);
|
|
1463
|
+
var CheckSelectBoxRoot = withProvider15(
|
|
1464
|
+
CheckboxPrimitive2.Root,
|
|
1465
|
+
"root"
|
|
1466
|
+
);
|
|
1467
|
+
var CheckSelectBoxContent = withContext22(
|
|
1468
|
+
withStateProps12(Primitive22.div),
|
|
1469
|
+
"content"
|
|
1470
|
+
);
|
|
1471
|
+
var CheckSelectBoxLabel = withContext22(
|
|
1472
|
+
withStateProps12(Primitive22.span),
|
|
1473
|
+
"label"
|
|
1474
|
+
);
|
|
1475
|
+
var CheckSelectBoxDescription = withContext22(withStateProps12(Primitive22.span), "description");
|
|
1476
|
+
var CheckSelectBoxControl = withContext22(
|
|
1477
|
+
CheckboxPrimitive2.Control,
|
|
1478
|
+
"checkboxControl"
|
|
1479
|
+
);
|
|
1480
|
+
var CheckSelectBoxIcon = withContext22(
|
|
1481
|
+
withStateProps12(Icon),
|
|
1482
|
+
"checkboxIcon"
|
|
1483
|
+
);
|
|
1484
|
+
var CheckSelectBoxHiddenInput = CheckboxPrimitive2.HiddenInput;
|
|
1485
|
+
|
|
1486
|
+
// src/components/SelectBox/RadioSelectBox.tsx
|
|
1487
|
+
import { Primitive as Primitive23 } from "@seed-design/react-primitive";
|
|
1488
|
+
import {
|
|
1489
|
+
RadioGroup as RadioGroupPrimitive,
|
|
1490
|
+
useRadioGroupItemContext as useRadioGroupItemContext2
|
|
1491
|
+
} from "@seed-design/react-radio-group";
|
|
1492
|
+
import { selectBox as selectBox2 } from "@seed-design/recipe/selectBox";
|
|
1493
|
+
import { selectBoxGroup as selectBoxGroup2 } from "@seed-design/recipe/selectBoxGroup";
|
|
1494
|
+
var { withProvider: withGroupProvider2 } = createStyleContext(selectBoxGroup2);
|
|
1495
|
+
var { withProvider: withProvider16, withContext: withContext23 } = createStyleContext(selectBox2);
|
|
1496
|
+
var withStateProps13 = createWithStateProps([useRadioGroupItemContext2]);
|
|
1497
|
+
var RadioSelectBoxRoot = withGroupProvider2(
|
|
1498
|
+
RadioGroupPrimitive.Root,
|
|
1499
|
+
"root"
|
|
1500
|
+
);
|
|
1501
|
+
var RadioSelectBoxItem = withProvider16(
|
|
1502
|
+
RadioGroupPrimitive.Item,
|
|
1503
|
+
"root"
|
|
1504
|
+
);
|
|
1505
|
+
var RadioSelectBoxContent = withContext23(
|
|
1506
|
+
withStateProps13(Primitive23.div),
|
|
1507
|
+
"content"
|
|
1508
|
+
);
|
|
1509
|
+
var RadioSelectBoxLabel = withContext23(
|
|
1510
|
+
withStateProps13(Primitive23.span),
|
|
1511
|
+
"label"
|
|
1512
|
+
);
|
|
1513
|
+
var RadioSelectBoxDescription = withContext23(withStateProps13(Primitive23.span), "description");
|
|
1514
|
+
var RadioSelectBoxControl = withContext23(
|
|
1515
|
+
RadioGroupPrimitive.ItemControl,
|
|
1516
|
+
"radioControl"
|
|
1517
|
+
);
|
|
1518
|
+
var RadioSelectBoxIcon = withContext23(
|
|
1519
|
+
withStateProps13(Icon),
|
|
1520
|
+
"radioIcon"
|
|
1521
|
+
);
|
|
1522
|
+
var RadioSelectBoxHiddenInput = RadioGroupPrimitive.ItemHiddenInput;
|
|
1523
|
+
|
|
1524
|
+
// src/components/SelectBox/CheckSelectBox.namespace.ts
|
|
1525
|
+
var CheckSelectBox_namespace_exports = {};
|
|
1526
|
+
__export(CheckSelectBox_namespace_exports, {
|
|
1527
|
+
Content: () => CheckSelectBoxContent,
|
|
1528
|
+
Control: () => CheckSelectBoxControl,
|
|
1529
|
+
Description: () => CheckSelectBoxDescription,
|
|
1530
|
+
Group: () => CheckSelectBoxGroup,
|
|
1531
|
+
HiddenInput: () => CheckSelectBoxHiddenInput,
|
|
1532
|
+
Icon: () => CheckSelectBoxIcon,
|
|
1533
|
+
Label: () => CheckSelectBoxLabel,
|
|
1534
|
+
Root: () => CheckSelectBoxRoot
|
|
1535
|
+
});
|
|
1536
|
+
|
|
1537
|
+
// src/components/SelectBox/RadioSelectBox.namespace.ts
|
|
1538
|
+
var RadioSelectBox_namespace_exports = {};
|
|
1539
|
+
__export(RadioSelectBox_namespace_exports, {
|
|
1540
|
+
Content: () => RadioSelectBoxContent,
|
|
1541
|
+
Control: () => RadioSelectBoxControl,
|
|
1542
|
+
Description: () => RadioSelectBoxDescription,
|
|
1543
|
+
HiddenInput: () => RadioSelectBoxHiddenInput,
|
|
1544
|
+
Icon: () => RadioSelectBoxIcon,
|
|
1545
|
+
Item: () => RadioSelectBoxItem,
|
|
1546
|
+
Label: () => RadioSelectBoxLabel,
|
|
1547
|
+
Root: () => RadioSelectBoxRoot
|
|
1548
|
+
});
|
|
1549
|
+
|
|
1550
|
+
// src/components/Skeleton/Skeleton.tsx
|
|
1551
|
+
import { skeleton } from "@seed-design/recipe/skeleton";
|
|
1552
|
+
var { withProvider: withProvider17 } = createStyleContext(skeleton);
|
|
1553
|
+
var Skeleton = withProvider17(Box, "root");
|
|
1554
|
+
|
|
1555
|
+
// src/components/Snackbar/Snackbar.tsx
|
|
1556
|
+
import { Primitive as Primitive24 } from "@seed-design/react-primitive";
|
|
1557
|
+
import { Snackbar as SnackbarPrimitive } from "@seed-design/react-snackbar";
|
|
1558
|
+
import { snackbar } from "@seed-design/recipe/snackbar";
|
|
1559
|
+
import { snackbarRegion } from "@seed-design/recipe/snackbarRegion";
|
|
1560
|
+
import { visuallyHidden } from "@seed-design/recipe/visuallyHidden";
|
|
1561
|
+
import clsx8 from "clsx";
|
|
1562
|
+
import { forwardRef as forwardRef18, useMemo as useMemo2 } from "react";
|
|
1563
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1564
|
+
var { withProvider: withRegionProvider } = createStyleContext(snackbarRegion);
|
|
1565
|
+
var { withProvider: withProvider18, withContext: withContext24 } = createStyleContext(snackbar);
|
|
1566
|
+
var SnackbarRootProvider = SnackbarPrimitive.RootProvider;
|
|
1567
|
+
var SnackbarRegion = withRegionProvider(
|
|
1568
|
+
SnackbarPrimitive.Region,
|
|
1569
|
+
"root"
|
|
1570
|
+
);
|
|
1571
|
+
var SnackbarRoot = withProvider18(
|
|
1572
|
+
SnackbarPrimitive.Root,
|
|
1573
|
+
"root"
|
|
1574
|
+
);
|
|
1575
|
+
var SnackbarMessage = withContext24(
|
|
1576
|
+
Primitive24.span,
|
|
1577
|
+
"message"
|
|
1578
|
+
);
|
|
1579
|
+
var SnackbarPrefixIcon = withContext24(
|
|
1580
|
+
Icon,
|
|
1581
|
+
"prefixIcon"
|
|
1582
|
+
);
|
|
1583
|
+
var SnackbarActionButton = withContext24(
|
|
1584
|
+
Primitive24.button,
|
|
1585
|
+
"actionButton"
|
|
1586
|
+
);
|
|
1587
|
+
var SnackbarCloseButton = forwardRef18(
|
|
1588
|
+
(props, ref) => {
|
|
1589
|
+
const { className, ...otherProps } = props;
|
|
1590
|
+
const classNames = useMemo2(() => visuallyHidden(), []);
|
|
1591
|
+
return /* @__PURE__ */ jsx18(
|
|
1592
|
+
SnackbarPrimitive.CloseButton,
|
|
1593
|
+
{
|
|
1594
|
+
ref,
|
|
1595
|
+
className: clsx8(classNames.root, className),
|
|
1596
|
+
...otherProps
|
|
1597
|
+
}
|
|
1598
|
+
);
|
|
1599
|
+
}
|
|
1600
|
+
);
|
|
1601
|
+
var SnackbarRenderer = SnackbarPrimitive.Renderer;
|
|
1602
|
+
var SnackbarAvoidOverlap = SnackbarPrimitive.AvoidOverlap;
|
|
1603
|
+
|
|
1604
|
+
// src/components/Snackbar/index.ts
|
|
1605
|
+
import {
|
|
1606
|
+
useSnackbarContext as useSnackbarContext2
|
|
1607
|
+
} from "@seed-design/react-snackbar";
|
|
1608
|
+
|
|
1609
|
+
// src/components/Snackbar/useSnackbarAdapter.ts
|
|
1610
|
+
import { useSnackbarContext } from "@seed-design/react-snackbar";
|
|
1611
|
+
import { useMemo as useMemo3 } from "react";
|
|
1612
|
+
function useSnackbarAdapter() {
|
|
1613
|
+
const api = useSnackbarContext();
|
|
1614
|
+
const adapter = useMemo3(
|
|
1615
|
+
() => ({
|
|
1616
|
+
visible: api.visible,
|
|
1617
|
+
create: (options) => {
|
|
1618
|
+
var _a, _b;
|
|
1619
|
+
return api.create({
|
|
1620
|
+
timeout: (_a = options.timeout) != null ? _a : 5e3,
|
|
1621
|
+
removeDelay: (_b = options.removeDelay) != null ? _b : 200,
|
|
1622
|
+
onClose: options.onClose,
|
|
1623
|
+
render: options.render
|
|
1624
|
+
});
|
|
1625
|
+
},
|
|
1626
|
+
dismiss: api.dismiss
|
|
1627
|
+
}),
|
|
1628
|
+
[api]
|
|
1629
|
+
);
|
|
1630
|
+
return adapter;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
// src/components/Snackbar/Snackbar.namespace.ts
|
|
1634
|
+
var Snackbar_namespace_exports = {};
|
|
1635
|
+
__export(Snackbar_namespace_exports, {
|
|
1636
|
+
ActionButton: () => SnackbarActionButton,
|
|
1637
|
+
AvoidOverlap: () => SnackbarAvoidOverlap,
|
|
1638
|
+
CloseButton: () => SnackbarCloseButton,
|
|
1639
|
+
Message: () => SnackbarMessage,
|
|
1640
|
+
PrefixIcon: () => SnackbarPrefixIcon,
|
|
1641
|
+
Region: () => SnackbarRegion,
|
|
1642
|
+
Renderer: () => SnackbarRenderer,
|
|
1643
|
+
Root: () => SnackbarRoot,
|
|
1644
|
+
RootProvider: () => SnackbarRootProvider
|
|
1645
|
+
});
|
|
1646
|
+
|
|
1647
|
+
// src/components/Stack/Stack.tsx
|
|
1648
|
+
import * as React12 from "react";
|
|
1649
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1650
|
+
var Stack = React12.forwardRef((props, ref) => {
|
|
1651
|
+
return /* @__PURE__ */ jsx19(Box, { ref, display: "flex", flexDirection: "column", ...props });
|
|
1652
|
+
});
|
|
1653
|
+
|
|
1654
|
+
// src/components/Switch/Switch.tsx
|
|
1655
|
+
import { Switch as SwitchPrimitive, useSwitchContext } from "@seed-design/react-switch";
|
|
1656
|
+
import { switchStyle } from "@seed-design/recipe/switch";
|
|
1657
|
+
import { Primitive as Primitive25 } from "@seed-design/react-primitive";
|
|
1658
|
+
var { withProvider: withProvider19, withContext: withContext25 } = createStyleContext(switchStyle);
|
|
1659
|
+
var withStateProps14 = createWithStateProps([useSwitchContext]);
|
|
1660
|
+
var SwitchRoot = withProvider19(
|
|
1661
|
+
SwitchPrimitive.Root,
|
|
1662
|
+
"root"
|
|
1663
|
+
);
|
|
1664
|
+
var SwitchControl = withContext25(
|
|
1665
|
+
SwitchPrimitive.Control,
|
|
1666
|
+
"control"
|
|
1667
|
+
);
|
|
1668
|
+
var SwitchThumb = withContext25(
|
|
1669
|
+
SwitchPrimitive.Thumb,
|
|
1670
|
+
"thumb"
|
|
1671
|
+
);
|
|
1672
|
+
var SwitchLabel = withContext25(
|
|
1673
|
+
withStateProps14(Primitive25.span),
|
|
1674
|
+
"label"
|
|
1675
|
+
);
|
|
1676
|
+
var SwitchHiddenInput = SwitchPrimitive.HiddenInput;
|
|
1677
|
+
|
|
1678
|
+
// src/components/Switch/Switch.namespace.ts
|
|
1679
|
+
var Switch_namespace_exports = {};
|
|
1680
|
+
__export(Switch_namespace_exports, {
|
|
1681
|
+
Control: () => SwitchControl,
|
|
1682
|
+
HiddenInput: () => SwitchHiddenInput,
|
|
1683
|
+
Label: () => SwitchLabel,
|
|
1684
|
+
Root: () => SwitchRoot,
|
|
1685
|
+
Thumb: () => SwitchThumb
|
|
1686
|
+
});
|
|
1687
|
+
|
|
1688
|
+
// src/components/Tabs/Tabs.tsx
|
|
1689
|
+
import { Primitive as Primitive26 } from "@seed-design/react-primitive";
|
|
1690
|
+
import {
|
|
1691
|
+
Tabs as TabsPrimitive2,
|
|
1692
|
+
useTabsContext as useTabsContext2,
|
|
1693
|
+
useTabsTriggerContext as useTabsTriggerContext2
|
|
1694
|
+
} from "@seed-design/react-tabs";
|
|
1695
|
+
import { tabs } from "@seed-design/recipe/tabs";
|
|
1696
|
+
var { withProvider: withProvider20, withContext: withContext26 } = createStyleContext(tabs);
|
|
1697
|
+
var withStateProps15 = createWithStateProps([useTabsContext2, useTabsTriggerContext2], {
|
|
1698
|
+
strict: false
|
|
1699
|
+
});
|
|
1700
|
+
var TabsRoot = withProvider20(TabsPrimitive2.Root, "root");
|
|
1701
|
+
var TabsList = withContext26(TabsPrimitive2.List, "list");
|
|
1702
|
+
var TabsTrigger = withContext26(
|
|
1703
|
+
TabsPrimitive2.Trigger,
|
|
1704
|
+
"trigger"
|
|
1705
|
+
);
|
|
1706
|
+
var TabsTriggerLabel = withContext26(
|
|
1707
|
+
withStateProps15(Primitive26.span),
|
|
1708
|
+
"triggerLabel"
|
|
1709
|
+
);
|
|
1710
|
+
var TabsTriggerNotification = withContext26(
|
|
1711
|
+
withStateProps15(Primitive26.div),
|
|
1712
|
+
"triggerNotification"
|
|
1713
|
+
);
|
|
1714
|
+
var TabsIndicator = withContext26(
|
|
1715
|
+
TabsPrimitive2.Indicator,
|
|
1716
|
+
"indicator"
|
|
1717
|
+
);
|
|
1718
|
+
var TabsContent = withContext26(
|
|
1719
|
+
TabsPrimitive2.Content,
|
|
1720
|
+
"content"
|
|
1721
|
+
);
|
|
1722
|
+
var TabsCarousel = withContext26(
|
|
1723
|
+
TabsPrimitive2.Carousel,
|
|
1724
|
+
"carousel"
|
|
1725
|
+
);
|
|
1726
|
+
var TabsCarouselCamera = withContext26(
|
|
1727
|
+
TabsPrimitive2.CarouselCamera,
|
|
1728
|
+
"carouselCamera"
|
|
1729
|
+
);
|
|
1730
|
+
|
|
1731
|
+
// src/components/Tabs/Tabs.namespace.ts
|
|
1732
|
+
var Tabs_namespace_exports = {};
|
|
1733
|
+
__export(Tabs_namespace_exports, {
|
|
1734
|
+
Carousel: () => TabsCarousel,
|
|
1735
|
+
CarouselCamera: () => TabsCarouselCamera,
|
|
1736
|
+
Content: () => TabsContent,
|
|
1737
|
+
Indicator: () => TabsIndicator,
|
|
1738
|
+
List: () => TabsList,
|
|
1739
|
+
Root: () => TabsRoot,
|
|
1740
|
+
Trigger: () => TabsTrigger,
|
|
1741
|
+
TriggerLabel: () => TabsTriggerLabel,
|
|
1742
|
+
TriggerNotification: () => TabsTriggerNotification
|
|
1743
|
+
});
|
|
1744
|
+
|
|
1745
|
+
// src/components/Text/Text.tsx
|
|
1746
|
+
import { text } from "@seed-design/recipe/text";
|
|
1747
|
+
import {
|
|
1748
|
+
vars as vars2
|
|
1749
|
+
} from "@seed-design/vars";
|
|
1750
|
+
import clsx9 from "clsx";
|
|
1751
|
+
import { useMemo as useMemo4 } from "react";
|
|
1752
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1753
|
+
function handleColor2(color) {
|
|
1754
|
+
var _a;
|
|
1755
|
+
if (!color) {
|
|
1756
|
+
return void 0;
|
|
1757
|
+
}
|
|
1758
|
+
const [type, value] = color.split(".");
|
|
1759
|
+
return (_a = vars2.$color[type][value]) != null ? _a : void 0;
|
|
1760
|
+
}
|
|
1761
|
+
function handleFontWeight(fontWeight) {
|
|
1762
|
+
var _a;
|
|
1763
|
+
if (!fontWeight) {
|
|
1764
|
+
return void 0;
|
|
1765
|
+
}
|
|
1766
|
+
return (_a = vars2.$fontWeight[fontWeight]) != null ? _a : void 0;
|
|
1767
|
+
}
|
|
1768
|
+
function handleFontSize(size) {
|
|
1769
|
+
var _a;
|
|
1770
|
+
if (!size) {
|
|
1771
|
+
return void 0;
|
|
1772
|
+
}
|
|
1773
|
+
return (_a = vars2.$fontSize[size]) != null ? _a : size;
|
|
1774
|
+
}
|
|
1775
|
+
function handleLineHeight(lineHeight) {
|
|
1776
|
+
var _a;
|
|
1777
|
+
if (!lineHeight) {
|
|
1778
|
+
return void 0;
|
|
1779
|
+
}
|
|
1780
|
+
return (_a = vars2.$lineHeight[lineHeight]) != null ? _a : lineHeight;
|
|
1781
|
+
}
|
|
1782
|
+
function mapMaxLines(maxLines) {
|
|
1783
|
+
if (maxLines === void 0) {
|
|
1784
|
+
return "none";
|
|
1785
|
+
}
|
|
1786
|
+
if (maxLines === 1) {
|
|
1787
|
+
return "single";
|
|
1788
|
+
}
|
|
1789
|
+
return "multi";
|
|
1790
|
+
}
|
|
1791
|
+
var Text = ({
|
|
1792
|
+
as,
|
|
1793
|
+
color,
|
|
1794
|
+
textStyle,
|
|
1795
|
+
fontSize,
|
|
1796
|
+
lineHeight,
|
|
1797
|
+
fontWeight,
|
|
1798
|
+
maxLines,
|
|
1799
|
+
children,
|
|
1800
|
+
className,
|
|
1801
|
+
style,
|
|
1802
|
+
...otherProps
|
|
1803
|
+
}) => {
|
|
1804
|
+
const Comp = as || "span";
|
|
1805
|
+
const classNames = useMemo4(
|
|
1806
|
+
() => text({
|
|
1807
|
+
textStyle,
|
|
1808
|
+
maxLines: mapMaxLines(maxLines)
|
|
1809
|
+
}),
|
|
1810
|
+
[textStyle, maxLines]
|
|
1811
|
+
);
|
|
1812
|
+
return /* @__PURE__ */ jsx20(
|
|
1813
|
+
Comp,
|
|
1814
|
+
{
|
|
1815
|
+
className: clsx9(classNames.root, className),
|
|
1816
|
+
style: {
|
|
1817
|
+
"--seed-max-lines": maxLines,
|
|
1818
|
+
"--seed-text-color": handleColor2(color),
|
|
1819
|
+
"--seed-font-size": handleFontSize(fontSize),
|
|
1820
|
+
"--seed-line-height": handleLineHeight(lineHeight != null ? lineHeight : fontSize),
|
|
1821
|
+
"--seed-font-weight": handleFontWeight(fontWeight),
|
|
1822
|
+
"--seed-text-align": otherProps.align,
|
|
1823
|
+
...style
|
|
1824
|
+
},
|
|
1825
|
+
...otherProps,
|
|
1826
|
+
children
|
|
1827
|
+
}
|
|
1828
|
+
);
|
|
1829
|
+
};
|
|
1830
|
+
|
|
1831
|
+
// src/components/TextButton/TextButton.tsx
|
|
1832
|
+
import { Primitive as Primitive27 } from "@seed-design/react-primitive";
|
|
1833
|
+
import { textButton } from "@seed-design/recipe/textButton";
|
|
1834
|
+
var { withProvider: withProvider21, withContext: withContext27 } = createStyleContext(textButton);
|
|
1835
|
+
var TextButtonRoot = withProvider21(
|
|
1836
|
+
Primitive27.button,
|
|
1837
|
+
"root"
|
|
1838
|
+
);
|
|
1839
|
+
var TextButtonLabel = withContext27(
|
|
1840
|
+
Primitive27.span,
|
|
1841
|
+
"label"
|
|
1842
|
+
);
|
|
1843
|
+
var TextButtonPrefixIcon = withContext27(
|
|
1844
|
+
Icon,
|
|
1845
|
+
"prefixIcon"
|
|
1846
|
+
);
|
|
1847
|
+
var TextButtonSuffixIcon = withContext27(
|
|
1848
|
+
Icon,
|
|
1849
|
+
"suffixIcon"
|
|
1850
|
+
);
|
|
1851
|
+
|
|
1852
|
+
// src/components/TextButton/TextButton.namespace.ts
|
|
1853
|
+
var TextButton_namespace_exports = {};
|
|
1854
|
+
__export(TextButton_namespace_exports, {
|
|
1855
|
+
Label: () => TextButtonLabel,
|
|
1856
|
+
PrefixIcon: () => TextButtonPrefixIcon,
|
|
1857
|
+
Root: () => TextButtonRoot,
|
|
1858
|
+
SuffixIcon: () => TextButtonSuffixIcon
|
|
1859
|
+
});
|
|
1860
|
+
|
|
1861
|
+
// src/components/TextField/TextField.tsx
|
|
1862
|
+
import { useLayoutEffect } from "@radix-ui/react-use-layout-effect";
|
|
1863
|
+
import { Primitive as Primitive28 } from "@seed-design/react-primitive";
|
|
1864
|
+
import { TextField, useTextFieldContext } from "@seed-design/react-text-field";
|
|
1865
|
+
import { textField } from "@seed-design/recipe/textField";
|
|
1866
|
+
import clsx10 from "clsx";
|
|
1867
|
+
import { forwardRef as forwardRef20, useCallback as useCallback2, useRef } from "react";
|
|
1868
|
+
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
1869
|
+
import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1870
|
+
var { withProvider: withProvider22, withContext: withContext28, useClassNames: useClassNames4 } = createStyleContext(textField);
|
|
1871
|
+
var withStateProps16 = createWithStateProps([useTextFieldContext]);
|
|
1872
|
+
var TextFieldRoot = withProvider22(
|
|
1873
|
+
TextField.Root,
|
|
1874
|
+
"root"
|
|
1875
|
+
);
|
|
1876
|
+
var TextFieldHeader = withContext28(
|
|
1877
|
+
withStateProps16(Primitive28.div),
|
|
1878
|
+
"header"
|
|
1879
|
+
);
|
|
1880
|
+
var TextFieldLabel = withContext28(
|
|
1881
|
+
TextField.Label,
|
|
1882
|
+
"label"
|
|
1883
|
+
);
|
|
1884
|
+
var TextFieldIndicator = forwardRef20(
|
|
1885
|
+
(props, ref) => {
|
|
1886
|
+
const { className, ...otherProps } = props;
|
|
1887
|
+
const classNames = useClassNames4();
|
|
1888
|
+
return /* @__PURE__ */ jsxs3(Fragment3, { children: [
|
|
1889
|
+
/* @__PURE__ */ jsx21(Primitive28.span, { children: " " }),
|
|
1890
|
+
/* @__PURE__ */ jsx21(
|
|
1891
|
+
Primitive28.span,
|
|
1892
|
+
{
|
|
1893
|
+
ref,
|
|
1894
|
+
className: clsx10(classNames.indicator, className),
|
|
1895
|
+
...otherProps
|
|
1896
|
+
}
|
|
1897
|
+
)
|
|
1898
|
+
] });
|
|
1899
|
+
}
|
|
1900
|
+
);
|
|
1901
|
+
var TextFieldField = withContext28(
|
|
1902
|
+
withStateProps16(Primitive28.div),
|
|
1903
|
+
"field"
|
|
1904
|
+
);
|
|
1905
|
+
var TextFieldPrefixIcon = withContext28(
|
|
1906
|
+
withStateProps16(Icon),
|
|
1907
|
+
"prefixIcon"
|
|
1908
|
+
);
|
|
1909
|
+
var TextFieldPrefixText = withContext28(
|
|
1910
|
+
withStateProps16(Primitive28.span),
|
|
1911
|
+
"prefixText"
|
|
1912
|
+
);
|
|
1913
|
+
var TextFieldSuffixIcon = withContext28(
|
|
1914
|
+
withStateProps16(Icon),
|
|
1915
|
+
"suffixIcon"
|
|
1916
|
+
);
|
|
1917
|
+
var TextFieldSuffixText = withContext28(
|
|
1918
|
+
withStateProps16(Primitive28.span),
|
|
1919
|
+
"suffixText"
|
|
1920
|
+
);
|
|
1921
|
+
var TextFieldInput = withContext28(
|
|
1922
|
+
TextField.Input,
|
|
1923
|
+
"value"
|
|
1924
|
+
);
|
|
1925
|
+
var TextFieldTextarea = forwardRef20(
|
|
1926
|
+
(props, ref) => {
|
|
1927
|
+
var _a;
|
|
1928
|
+
const { className, autoresize = true, ...otherProps } = props;
|
|
1929
|
+
const classNames = useClassNames4();
|
|
1930
|
+
const { value } = useTextFieldContext();
|
|
1931
|
+
const inputRef = useRef(null);
|
|
1932
|
+
const onHeightChange = useCallback2(() => {
|
|
1933
|
+
var _a2;
|
|
1934
|
+
if (!inputRef.current) return;
|
|
1935
|
+
if ((_a2 = otherProps.style) == null ? void 0 : _a2.height) return;
|
|
1936
|
+
if (!autoresize) return;
|
|
1937
|
+
const input = inputRef.current;
|
|
1938
|
+
const prevAlignment = input.style.alignSelf;
|
|
1939
|
+
const prevOverflow = input.style.overflow;
|
|
1940
|
+
const isFirefox = "MozAppearance" in input.style;
|
|
1941
|
+
if (!isFirefox) {
|
|
1942
|
+
input.style.overflow = "hidden";
|
|
1943
|
+
}
|
|
1944
|
+
input.style.alignSelf = "start";
|
|
1945
|
+
input.style.height = "auto";
|
|
1946
|
+
input.style.height = `${input.scrollHeight + (input.offsetHeight - input.clientHeight)}px`;
|
|
1947
|
+
input.style.overflow = prevOverflow;
|
|
1948
|
+
input.style.alignSelf = prevAlignment;
|
|
1949
|
+
}, [inputRef, (_a = otherProps.style) == null ? void 0 : _a.height, autoresize]);
|
|
1950
|
+
useLayoutEffect(() => {
|
|
1951
|
+
if (inputRef.current) {
|
|
1952
|
+
onHeightChange();
|
|
1953
|
+
}
|
|
1954
|
+
}, [onHeightChange, value, inputRef]);
|
|
1955
|
+
return /* @__PURE__ */ jsx21(
|
|
1956
|
+
TextField.Textarea,
|
|
1957
|
+
{
|
|
1958
|
+
ref: composeRefs(inputRef, ref),
|
|
1959
|
+
...otherProps,
|
|
1960
|
+
className: clsx10(classNames.value, className)
|
|
1961
|
+
}
|
|
1962
|
+
);
|
|
1963
|
+
}
|
|
1964
|
+
);
|
|
1965
|
+
var TextFieldFooter = withContext28(
|
|
1966
|
+
withStateProps16(Primitive28.div),
|
|
1967
|
+
"footer"
|
|
1968
|
+
);
|
|
1969
|
+
var TextFieldDescription = withContext28(
|
|
1970
|
+
TextField.Description,
|
|
1971
|
+
"description"
|
|
1972
|
+
);
|
|
1973
|
+
var TextFieldErrorMessage = withContext28(
|
|
1974
|
+
TextField.ErrorMessage,
|
|
1975
|
+
"errorMessage"
|
|
1976
|
+
);
|
|
1977
|
+
var TextFieldErrorIcon = withContext28(
|
|
1978
|
+
withStateProps16(Icon),
|
|
1979
|
+
"errorIcon"
|
|
1980
|
+
);
|
|
1981
|
+
var TextFieldCharacterCountArea = withContext28(withStateProps16(Primitive28.div), "characterCountArea");
|
|
1982
|
+
var TextFieldCharacterCount = withContext28(
|
|
1983
|
+
TextField.GraphemeCount,
|
|
1984
|
+
"characterCount"
|
|
1985
|
+
);
|
|
1986
|
+
var TextFieldMaxCharacterCount = withContext28(withStateProps16(Primitive28.span), "maxCharacterCount");
|
|
1987
|
+
|
|
1988
|
+
// src/components/TextField/TextField.namespace.tsx
|
|
1989
|
+
var TextField_namespace_exports = {};
|
|
1990
|
+
__export(TextField_namespace_exports, {
|
|
1991
|
+
CharacterCount: () => TextFieldCharacterCount,
|
|
1992
|
+
CharacterCountArea: () => TextFieldCharacterCountArea,
|
|
1993
|
+
Description: () => TextFieldDescription,
|
|
1994
|
+
ErrorIcon: () => TextFieldErrorIcon,
|
|
1995
|
+
ErrorMessage: () => TextFieldErrorMessage,
|
|
1996
|
+
Field: () => TextFieldField,
|
|
1997
|
+
Footer: () => TextFieldFooter,
|
|
1998
|
+
Header: () => TextFieldHeader,
|
|
1999
|
+
Indicator: () => TextFieldIndicator,
|
|
2000
|
+
Input: () => TextFieldInput,
|
|
2001
|
+
Label: () => TextFieldLabel,
|
|
2002
|
+
MaxCharacterCount: () => TextFieldMaxCharacterCount,
|
|
2003
|
+
PrefixIcon: () => TextFieldPrefixIcon,
|
|
2004
|
+
PrefixText: () => TextFieldPrefixText,
|
|
2005
|
+
Root: () => TextFieldRoot,
|
|
2006
|
+
SuffixIcon: () => TextFieldSuffixIcon,
|
|
2007
|
+
SuffixText: () => TextFieldSuffixText,
|
|
2008
|
+
Textarea: () => TextFieldTextarea
|
|
2009
|
+
});
|
|
2010
|
+
|
|
2011
|
+
// src/components/ToggleButton/ToggleButton.tsx
|
|
2012
|
+
import { Primitive as Primitive29 } from "@seed-design/react-primitive";
|
|
2013
|
+
import { Toggle as TogglePrimitive2, useToggleContext as useToggleContext2 } from "@seed-design/react-toggle";
|
|
2014
|
+
import { toggleButton } from "@seed-design/recipe/toggleButton";
|
|
2015
|
+
import clsx11 from "clsx";
|
|
2016
|
+
import * as React13 from "react";
|
|
2017
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2018
|
+
var { ClassNamesProvider: ClassNamesProvider3, withContext: withContext29 } = createStyleContext(toggleButton);
|
|
2019
|
+
var withStateProps17 = createWithStateProps([usePendingButtonContext, useToggleContext2]);
|
|
2020
|
+
var ToggleButtonRoot = React13.forwardRef(
|
|
2021
|
+
({ variant = "brandSolid", size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
2022
|
+
const classNames = toggleButton({ variant, size });
|
|
2023
|
+
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
2024
|
+
return /* @__PURE__ */ jsx22(ClassNamesProvider3, { value: classNames, children: /* @__PURE__ */ jsx22(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx22(
|
|
2025
|
+
TogglePrimitive2.Root,
|
|
2026
|
+
{
|
|
2027
|
+
ref,
|
|
2028
|
+
className: clsx11(classNames.root, className),
|
|
2029
|
+
...api.stateProps,
|
|
2030
|
+
...otherProps
|
|
2031
|
+
}
|
|
2032
|
+
) }) });
|
|
2033
|
+
}
|
|
2034
|
+
);
|
|
2035
|
+
ToggleButtonRoot.displayName = "ToggleButton";
|
|
2036
|
+
var ToggleButtonLabel = withContext29(
|
|
2037
|
+
withStateProps17(Primitive29.span),
|
|
2038
|
+
"label"
|
|
2039
|
+
);
|
|
2040
|
+
var ToggleButtonPrefixIcon = withContext29(
|
|
2041
|
+
withStateProps17(Icon),
|
|
2042
|
+
"prefixIcon"
|
|
2043
|
+
);
|
|
2044
|
+
var ToggleButtonSuffixIcon = withContext29(
|
|
2045
|
+
withStateProps17(Icon),
|
|
2046
|
+
"suffixIcon"
|
|
2047
|
+
);
|
|
2048
|
+
var ToggleButtonProgressIndicator = withContext29(withStateProps17(Primitive29.div), "progressIndicator");
|
|
2049
|
+
|
|
2050
|
+
// src/components/ToggleButton/ToggleButton.namespace.ts
|
|
2051
|
+
var ToggleButton_namespace_exports = {};
|
|
2052
|
+
__export(ToggleButton_namespace_exports, {
|
|
2053
|
+
Label: () => ToggleButtonLabel,
|
|
2054
|
+
PrefixIcon: () => ToggleButtonPrefixIcon,
|
|
2055
|
+
ProgressIndicator: () => ToggleButtonProgressIndicator,
|
|
2056
|
+
Root: () => ToggleButtonRoot,
|
|
2057
|
+
SuffixIcon: () => ToggleButtonSuffixIcon
|
|
2058
|
+
});
|
|
2059
|
+
|
|
2060
|
+
// src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
2061
|
+
import { Primitive as Primitive30 } from "@seed-design/react-primitive";
|
|
2062
|
+
import { visuallyHidden as visuallyHidden2 } from "@seed-design/recipe/visuallyHidden";
|
|
2063
|
+
var { withProvider: withProvider23 } = createStyleContext(visuallyHidden2);
|
|
2064
|
+
var VisuallyHidden = withProvider23(
|
|
2065
|
+
Primitive30.div,
|
|
2066
|
+
"root"
|
|
2067
|
+
);
|
|
2068
|
+
export {
|
|
2069
|
+
ActionButton_namespace_exports as ActionButton,
|
|
2070
|
+
ActionButtonIcon,
|
|
2071
|
+
ActionButtonLabel,
|
|
2072
|
+
ActionButtonPrefixIcon,
|
|
2073
|
+
ActionButtonProgressIndicator,
|
|
2074
|
+
ActionButtonRoot,
|
|
2075
|
+
ActionButtonSuffixIcon,
|
|
2076
|
+
ActionChip_namespace_exports as ActionChip,
|
|
2077
|
+
ActionChipCount,
|
|
2078
|
+
ActionChipIcon,
|
|
2079
|
+
ActionChipLabel,
|
|
2080
|
+
ActionChipPrefixIcon,
|
|
2081
|
+
ActionChipRoot,
|
|
2082
|
+
ActionChipSuffixIcon,
|
|
2083
|
+
ActionSheet_namespace_exports as ActionSheet,
|
|
2084
|
+
ActionSheetBackdrop,
|
|
2085
|
+
ActionSheetCloseButton,
|
|
2086
|
+
ActionSheetCloseButtonLabel,
|
|
2087
|
+
ActionSheetContent,
|
|
2088
|
+
ActionSheetDescription,
|
|
2089
|
+
ActionSheetHeader,
|
|
2090
|
+
ActionSheetItem,
|
|
2091
|
+
ActionSheetItemLabel,
|
|
2092
|
+
ActionSheetList,
|
|
2093
|
+
ActionSheetPositioner,
|
|
2094
|
+
ActionSheetRoot,
|
|
2095
|
+
ActionSheetTitle,
|
|
2096
|
+
ActionSheetTrigger,
|
|
2097
|
+
Avatar_namespace_exports as Avatar,
|
|
2098
|
+
AvatarBadge,
|
|
2099
|
+
AvatarFallback,
|
|
2100
|
+
AvatarImage,
|
|
2101
|
+
AvatarRoot,
|
|
2102
|
+
AvatarStack,
|
|
2103
|
+
Badge_namespace_exports as Badge,
|
|
2104
|
+
BadgeLabel,
|
|
2105
|
+
BadgeRoot,
|
|
2106
|
+
BottomSheet_namespace_exports as BottomSheet,
|
|
2107
|
+
BottomSheetBackdrop,
|
|
2108
|
+
BottomSheetBody,
|
|
2109
|
+
BottomSheetCloseButton,
|
|
2110
|
+
BottomSheetCloseIcon,
|
|
2111
|
+
BottomSheetContent,
|
|
2112
|
+
BottomSheetDescription,
|
|
2113
|
+
BottomSheetFooter,
|
|
2114
|
+
BottomSheetHeader,
|
|
2115
|
+
BottomSheetPositioner,
|
|
2116
|
+
BottomSheetRoot,
|
|
2117
|
+
BottomSheetTitle,
|
|
2118
|
+
BottomSheetTrigger,
|
|
2119
|
+
Box,
|
|
2120
|
+
Callout_namespace_exports as Callout,
|
|
2121
|
+
CalloutActionableIcon,
|
|
2122
|
+
CalloutDescription,
|
|
2123
|
+
CalloutDismissButton,
|
|
2124
|
+
CalloutDismissIcon,
|
|
2125
|
+
CalloutIcon,
|
|
2126
|
+
CalloutLink,
|
|
2127
|
+
CalloutRoot,
|
|
2128
|
+
CalloutTextContent,
|
|
2129
|
+
CalloutTitle,
|
|
2130
|
+
Celcius,
|
|
2131
|
+
CheckSelectBox_namespace_exports as CheckSelectBox,
|
|
2132
|
+
CheckSelectBoxContent,
|
|
2133
|
+
CheckSelectBoxControl,
|
|
2134
|
+
CheckSelectBoxDescription,
|
|
2135
|
+
CheckSelectBoxGroup,
|
|
2136
|
+
CheckSelectBoxHiddenInput,
|
|
2137
|
+
CheckSelectBoxIcon,
|
|
2138
|
+
CheckSelectBoxLabel,
|
|
2139
|
+
CheckSelectBoxRoot,
|
|
2140
|
+
Checkbox_namespace_exports as Checkbox,
|
|
2141
|
+
CheckboxControl,
|
|
2142
|
+
CheckboxHiddenInput,
|
|
2143
|
+
CheckboxIndicator,
|
|
2144
|
+
CheckboxLabel,
|
|
2145
|
+
CheckboxRoot,
|
|
2146
|
+
ChipTabs_namespace_exports as ChipTabs,
|
|
2147
|
+
ChipTabsCarousel,
|
|
2148
|
+
ChipTabsCarouselCamera,
|
|
2149
|
+
ChipTabsContent,
|
|
2150
|
+
ChipTabsList,
|
|
2151
|
+
ChipTabsRoot,
|
|
2152
|
+
ChipTabsTrigger,
|
|
2153
|
+
ChipTabsTriggerLabel,
|
|
2154
|
+
Column,
|
|
2155
|
+
Columns,
|
|
2156
|
+
ControlChip_namespace_exports as ControlChip,
|
|
2157
|
+
ControlChipCount,
|
|
2158
|
+
ControlChipIcon,
|
|
2159
|
+
ControlChipLabel,
|
|
2160
|
+
ControlChipPrefixIcon,
|
|
2161
|
+
ControlChipRoot,
|
|
2162
|
+
ControlChipSuffixIcon,
|
|
2163
|
+
Dialog_namespace_exports as Dialog,
|
|
2164
|
+
DialogAction,
|
|
2165
|
+
DialogBackdrop,
|
|
2166
|
+
DialogContent,
|
|
2167
|
+
DialogDescription,
|
|
2168
|
+
DialogFooter,
|
|
2169
|
+
DialogHeader,
|
|
2170
|
+
DialogPositioner,
|
|
2171
|
+
DialogRoot,
|
|
2172
|
+
DialogTitle,
|
|
2173
|
+
DialogTrigger,
|
|
2174
|
+
ExtendedActionSheet_namespace_exports as ExtendedActionSheet,
|
|
2175
|
+
ExtendedActionSheetBackdrop,
|
|
2176
|
+
ExtendedActionSheetCloseButton,
|
|
2177
|
+
ExtendedActionSheetCloseButtonLabel,
|
|
2178
|
+
ExtendedActionSheetContent,
|
|
2179
|
+
ExtendedActionSheetFooter,
|
|
2180
|
+
ExtendedActionSheetGroup,
|
|
2181
|
+
ExtendedActionSheetHeader,
|
|
2182
|
+
ExtendedActionSheetItem,
|
|
2183
|
+
ExtendedActionSheetItemLabel,
|
|
2184
|
+
ExtendedActionSheetItemPrefixIcon,
|
|
2185
|
+
ExtendedActionSheetList,
|
|
2186
|
+
ExtendedActionSheetPositioner,
|
|
2187
|
+
ExtendedActionSheetRoot,
|
|
2188
|
+
ExtendedActionSheetTitle,
|
|
2189
|
+
ExtendedActionSheetTrigger,
|
|
2190
|
+
ExtendedFab_namespace_exports as ExtendedFab,
|
|
2191
|
+
ExtendedFabLabel,
|
|
2192
|
+
ExtendedFabPrefixIcon,
|
|
2193
|
+
ExtendedFabRoot,
|
|
2194
|
+
Fab_namespace_exports as Fab,
|
|
2195
|
+
FabIcon,
|
|
2196
|
+
FabRoot,
|
|
2197
|
+
Flex,
|
|
2198
|
+
HelpBubble_namespace_exports as HelpBubble,
|
|
2199
|
+
HelpBubbleAnchor,
|
|
2200
|
+
HelpBubbleArrow,
|
|
2201
|
+
HelpBubbleArrowTip,
|
|
2202
|
+
HelpBubbleBackdrop,
|
|
2203
|
+
HelpBubbleCloseButton,
|
|
2204
|
+
HelpBubbleCloseIcon,
|
|
2205
|
+
HelpBubbleContent,
|
|
2206
|
+
HelpBubbleDescription,
|
|
2207
|
+
HelpBubblePositioner,
|
|
2208
|
+
HelpBubbleRoot,
|
|
2209
|
+
HelpBubbleTitle,
|
|
2210
|
+
HelpBubbleTrigger,
|
|
2211
|
+
Inline,
|
|
2212
|
+
InlineBanner_namespace_exports as InlineBanner,
|
|
2213
|
+
InlineBannerActionableIcon,
|
|
2214
|
+
InlineBannerContent,
|
|
2215
|
+
InlineBannerDescription,
|
|
2216
|
+
InlineBannerDismissButton,
|
|
2217
|
+
InlineBannerDismissIcon,
|
|
2218
|
+
InlineBannerIcon,
|
|
2219
|
+
InlineBannerLink,
|
|
2220
|
+
InlineBannerRoot,
|
|
2221
|
+
InlineBannerTextContent,
|
|
2222
|
+
InlineBannerTitle,
|
|
2223
|
+
MannerTempBadge_namespace_exports as MannerTempBadge,
|
|
2224
|
+
MannerTempBadgeLabel,
|
|
2225
|
+
MannerTempBadgeRoot,
|
|
2226
|
+
ProgressCircle_namespace_exports as ProgressCircle,
|
|
2227
|
+
ProgressCircleRange,
|
|
2228
|
+
ProgressCircleRoot,
|
|
2229
|
+
ProgressCircleTrack,
|
|
2230
|
+
PullToRefresh_namespace_exports as PullToRefresh,
|
|
2231
|
+
PullToRefreshContent,
|
|
2232
|
+
PullToRefreshIndicator,
|
|
2233
|
+
PullToRefreshRoot,
|
|
2234
|
+
RadioSelectBox_namespace_exports as RadioSelectBox,
|
|
2235
|
+
RadioSelectBoxContent,
|
|
2236
|
+
RadioSelectBoxControl,
|
|
2237
|
+
RadioSelectBoxDescription,
|
|
2238
|
+
RadioSelectBoxHiddenInput,
|
|
2239
|
+
RadioSelectBoxIcon,
|
|
2240
|
+
RadioSelectBoxItem,
|
|
2241
|
+
RadioSelectBoxLabel,
|
|
2242
|
+
RadioSelectBoxRoot,
|
|
2243
|
+
ReactionButton_namespace_exports as ReactionButton,
|
|
2244
|
+
ReactionButtonCount,
|
|
2245
|
+
ReactionButtonLabel,
|
|
2246
|
+
ReactionButtonPrefixIcon,
|
|
2247
|
+
ReactionButtonProgressIndicator,
|
|
2248
|
+
ReactionButtonRoot,
|
|
2249
|
+
SegmentedControl_namespace_exports as SegmentedControl,
|
|
2250
|
+
SegmentedControlIndicator,
|
|
2251
|
+
SegmentedControlItem,
|
|
2252
|
+
SegmentedControlItemHiddenInput,
|
|
2253
|
+
SegmentedControlItemLabel,
|
|
2254
|
+
SegmentedControlRoot,
|
|
2255
|
+
Skeleton,
|
|
2256
|
+
Snackbar_namespace_exports as Snackbar,
|
|
2257
|
+
SnackbarActionButton,
|
|
2258
|
+
SnackbarAvoidOverlap,
|
|
2259
|
+
SnackbarCloseButton,
|
|
2260
|
+
SnackbarMessage,
|
|
2261
|
+
SnackbarPrefixIcon,
|
|
2262
|
+
SnackbarRegion,
|
|
2263
|
+
SnackbarRenderer,
|
|
2264
|
+
SnackbarRoot,
|
|
2265
|
+
SnackbarRootProvider,
|
|
2266
|
+
Stack,
|
|
2267
|
+
Switch_namespace_exports as Switch,
|
|
2268
|
+
SwitchControl,
|
|
2269
|
+
SwitchHiddenInput,
|
|
2270
|
+
SwitchLabel,
|
|
2271
|
+
SwitchRoot,
|
|
2272
|
+
SwitchThumb,
|
|
2273
|
+
Tabs_namespace_exports as Tabs,
|
|
2274
|
+
TabsCarousel,
|
|
2275
|
+
TabsCarouselCamera,
|
|
2276
|
+
TabsContent,
|
|
2277
|
+
TabsIndicator,
|
|
2278
|
+
TabsList,
|
|
2279
|
+
TabsRoot,
|
|
2280
|
+
TabsTrigger,
|
|
2281
|
+
TabsTriggerLabel,
|
|
2282
|
+
TabsTriggerNotification,
|
|
2283
|
+
Text,
|
|
2284
|
+
TextButton_namespace_exports as TextButton,
|
|
2285
|
+
TextButtonLabel,
|
|
2286
|
+
TextButtonPrefixIcon,
|
|
2287
|
+
TextButtonRoot,
|
|
2288
|
+
TextButtonSuffixIcon,
|
|
2289
|
+
TextField_namespace_exports as TextField,
|
|
2290
|
+
TextFieldCharacterCount,
|
|
2291
|
+
TextFieldCharacterCountArea,
|
|
2292
|
+
TextFieldDescription,
|
|
2293
|
+
TextFieldErrorIcon,
|
|
2294
|
+
TextFieldErrorMessage,
|
|
2295
|
+
TextFieldField,
|
|
2296
|
+
TextFieldFooter,
|
|
2297
|
+
TextFieldHeader,
|
|
2298
|
+
TextFieldIndicator,
|
|
2299
|
+
TextFieldInput,
|
|
2300
|
+
TextFieldLabel,
|
|
2301
|
+
TextFieldMaxCharacterCount,
|
|
2302
|
+
TextFieldPrefixIcon,
|
|
2303
|
+
TextFieldPrefixText,
|
|
2304
|
+
TextFieldRoot,
|
|
2305
|
+
TextFieldSuffixIcon,
|
|
2306
|
+
TextFieldSuffixText,
|
|
2307
|
+
TextFieldTextarea,
|
|
2308
|
+
ToggleButton_namespace_exports as ToggleButton,
|
|
2309
|
+
ToggleButtonLabel,
|
|
2310
|
+
ToggleButtonPrefixIcon,
|
|
2311
|
+
ToggleButtonProgressIndicator,
|
|
2312
|
+
ToggleButtonRoot,
|
|
2313
|
+
ToggleButtonSuffixIcon,
|
|
2314
|
+
VisuallyHidden,
|
|
2315
|
+
useSnackbarAdapter,
|
|
2316
|
+
useSnackbarContext2 as useSnackbarContext
|
|
2317
|
+
};
|
|
2318
|
+
//# sourceMappingURL=index.mjs.map
|