@seed-design/react 1.1.24 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_virtual/_rolldown/runtime.cjs +34 -0
- package/lib/_virtual/_rolldown/runtime.js +14 -0
- package/lib/components/ActionButton/ActionButton.cjs +46 -72
- package/lib/components/ActionButton/ActionButton.js +43 -49
- package/lib/components/ActionButton/index.cjs +3 -9
- package/lib/components/ActionButton/index.js +2 -1
- package/lib/components/ActionChip/ActionChip.cjs +13 -16
- package/lib/components/ActionChip/ActionChip.js +12 -12
- package/lib/components/ActionChip/index.cjs +3 -9
- package/lib/components/ActionChip/index.js +2 -1
- package/lib/components/ActionSheet/ActionSheet.cjs +61 -56
- package/lib/components/ActionSheet/ActionSheet.js +60 -52
- package/lib/components/ActionSheet/ActionSheet.namespace.cjs +23 -19
- package/lib/components/ActionSheet/ActionSheet.namespace.js +18 -1
- package/lib/components/ActionSheet/index.cjs +20 -21
- package/lib/components/ActionSheet/index.js +3 -3
- package/lib/components/Article/Article.cjs +19 -44
- package/lib/components/Article/Article.js +16 -21
- package/lib/components/Article/index.cjs +3 -9
- package/lib/components/Article/index.js +2 -1
- package/lib/components/Avatar/Avatar.cjs +35 -58
- package/lib/components/Avatar/Avatar.js +33 -36
- package/lib/components/Avatar/Avatar.namespace.cjs +17 -13
- package/lib/components/Avatar/Avatar.namespace.js +12 -1
- package/lib/components/Avatar/index.cjs +14 -15
- package/lib/components/Avatar/index.js +3 -3
- package/lib/components/Badge/Badge.cjs +23 -19
- package/lib/components/Badge/Badge.js +21 -15
- package/lib/components/Badge/index.cjs +3 -9
- package/lib/components/Badge/index.js +2 -1
- package/lib/components/BottomSheet/BottomSheet.cjs +21 -52
- package/lib/components/BottomSheet/BottomSheet.js +20 -48
- package/lib/components/BottomSheet/BottomSheet.namespace.cjs +25 -21
- package/lib/components/BottomSheet/BottomSheet.namespace.js +20 -2
- package/lib/components/BottomSheet/index.cjs +20 -21
- package/lib/components/BottomSheet/index.js +3 -3
- package/lib/components/BottomSheetHandle/BottomSheetHandle.cjs +24 -19
- package/lib/components/BottomSheetHandle/BottomSheetHandle.js +21 -15
- package/lib/components/BottomSheetHandle/index.cjs +3 -9
- package/lib/components/BottomSheetHandle/index.js +2 -1
- package/lib/components/Box/Box.cjs +26 -38
- package/lib/components/Box/Box.js +23 -15
- package/lib/components/Box/index.cjs +3 -9
- package/lib/components/Box/index.js +2 -1
- package/lib/components/Callout/Callout.cjs +15 -33
- package/lib/components/Callout/Callout.js +14 -29
- package/lib/components/Callout/Callout.namespace.cjs +18 -14
- package/lib/components/Callout/Callout.namespace.js +13 -1
- package/lib/components/Callout/index.cjs +15 -16
- package/lib/components/Callout/index.js +3 -3
- package/lib/components/Celsius/Celsius.cjs +5 -8
- package/lib/components/Celsius/Celsius.js +5 -4
- package/lib/components/Celsius/index.cjs +3 -9
- package/lib/components/Celsius/index.js +2 -1
- package/lib/components/Checkbox/Checkbox.cjs +66 -89
- package/lib/components/Checkbox/Checkbox.js +64 -85
- package/lib/components/Checkbox/Checkbox.namespace.cjs +17 -13
- package/lib/components/Checkbox/Checkbox.namespace.js +12 -1
- package/lib/components/Checkbox/index.cjs +14 -15
- package/lib/components/Checkbox/index.js +3 -3
- package/lib/components/Chip/Chip.cjs +24 -39
- package/lib/components/Chip/Chip.js +23 -35
- package/lib/components/Chip/Chip.namespace.cjs +17 -13
- package/lib/components/Chip/Chip.namespace.js +12 -1
- package/lib/components/Chip/index.cjs +14 -15
- package/lib/components/Chip/index.js +3 -3
- package/lib/components/ChipTabs/ChipTabs.cjs +30 -53
- package/lib/components/ChipTabs/ChipTabs.js +28 -49
- package/lib/components/ChipTabs/ChipTabs.namespace.cjs +18 -14
- package/lib/components/ChipTabs/ChipTabs.namespace.js +13 -1
- package/lib/components/ChipTabs/index.cjs +15 -16
- package/lib/components/ChipTabs/index.js +3 -3
- package/lib/components/Columns/Columns.cjs +34 -55
- package/lib/components/Columns/Columns.js +32 -32
- package/lib/components/Columns/index.cjs +4 -10
- package/lib/components/Columns/index.js +2 -1
- package/lib/components/ConsistentWidth/ConsistentWidth.cjs +17 -22
- package/lib/components/ConsistentWidth/ConsistentWidth.js +15 -18
- package/lib/components/ConsistentWidth/index.cjs +3 -9
- package/lib/components/ConsistentWidth/index.js +2 -1
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.cjs +36 -51
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.js +33 -28
- package/lib/components/ContextualFloatingButton/index.cjs +3 -9
- package/lib/components/ContextualFloatingButton/index.js +2 -1
- package/lib/components/ControlChip/ControlChip.cjs +13 -16
- package/lib/components/ControlChip/ControlChip.js +12 -12
- package/lib/components/ControlChip/index.cjs +3 -9
- package/lib/components/ControlChip/index.js +2 -1
- package/lib/components/Count/Count.cjs +16 -14
- package/lib/components/Count/Count.js +14 -10
- package/lib/components/Count/index.cjs +3 -9
- package/lib/components/Count/index.js +2 -1
- package/lib/components/Dialog/Dialog.cjs +24 -44
- package/lib/components/Dialog/Dialog.js +23 -40
- package/lib/components/Dialog/Dialog.namespace.cjs +22 -18
- package/lib/components/Dialog/Dialog.namespace.js +17 -1
- package/lib/components/Dialog/index.cjs +19 -20
- package/lib/components/Dialog/index.js +3 -3
- package/lib/components/Divider/Divider.cjs +32 -68
- package/lib/components/Divider/Divider.js +30 -45
- package/lib/components/Divider/index.cjs +3 -9
- package/lib/components/Divider/index.js +2 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +65 -43
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +64 -39
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.cjs +24 -20
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.js +19 -1
- package/lib/components/ExtendedActionSheet/index.cjs +21 -22
- package/lib/components/ExtendedActionSheet/index.js +3 -3
- package/lib/components/ExtendedFab/ExtendedFab.cjs +15 -17
- package/lib/components/ExtendedFab/ExtendedFab.js +14 -13
- package/lib/components/ExtendedFab/index.cjs +3 -9
- package/lib/components/ExtendedFab/index.js +2 -1
- package/lib/components/Fab/Fab.cjs +12 -12
- package/lib/components/Fab/Fab.js +11 -8
- package/lib/components/Fab/index.cjs +3 -9
- package/lib/components/Fab/index.js +2 -1
- package/lib/components/Field/Field.cjs +62 -107
- package/lib/components/Field/Field.js +60 -103
- package/lib/components/Field/Field.namespace.cjs +21 -17
- package/lib/components/Field/Field.namespace.js +16 -1
- package/lib/components/Field/index.cjs +18 -19
- package/lib/components/Field/index.js +3 -3
- package/lib/components/FieldButton/FieldButton.cjs +94 -177
- package/lib/components/FieldButton/FieldButton.js +91 -154
- package/lib/components/FieldButton/FieldButton.namespace.cjs +30 -26
- package/lib/components/FieldButton/FieldButton.namespace.js +25 -1
- package/lib/components/FieldButton/index.cjs +27 -28
- package/lib/components/FieldButton/index.js +3 -3
- package/lib/components/Flex/Flex.cjs +21 -45
- package/lib/components/Flex/Flex.js +19 -22
- package/lib/components/Flex/index.cjs +3 -9
- package/lib/components/Flex/index.js +2 -1
- package/lib/components/Float/Float.cjs +70 -104
- package/lib/components/Float/Float.js +68 -81
- package/lib/components/Float/index.cjs +3 -9
- package/lib/components/Float/index.js +2 -1
- package/lib/components/FloatingActionButton/FloatingActionButton.cjs +12 -15
- package/lib/components/FloatingActionButton/FloatingActionButton.js +11 -11
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.cjs +15 -11
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.js +10 -1
- package/lib/components/FloatingActionButton/index.cjs +12 -13
- package/lib/components/FloatingActionButton/index.js +3 -3
- package/lib/components/HelpBubble/HelpBubble.cjs +51 -81
- package/lib/components/HelpBubble/HelpBubble.js +49 -77
- package/lib/components/HelpBubble/HelpBubble.namespace.cjs +23 -19
- package/lib/components/HelpBubble/HelpBubble.namespace.js +18 -1
- package/lib/components/HelpBubble/index.cjs +20 -21
- package/lib/components/HelpBubble/index.js +3 -3
- package/lib/components/Icon/Icon.cjs +99 -120
- package/lib/components/Icon/Icon.js +98 -116
- package/lib/components/Icon/index.cjs +5 -11
- package/lib/components/Icon/index.js +2 -1
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.cjs +50 -71
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.js +48 -48
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.cjs +14 -10
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.js +9 -1
- package/lib/components/IdentityPlaceholder/index.cjs +11 -12
- package/lib/components/IdentityPlaceholder/index.js +3 -3
- package/lib/components/Inline/Inline.cjs +21 -42
- package/lib/components/Inline/Inline.js +19 -19
- package/lib/components/Inline/index.cjs +3 -9
- package/lib/components/Inline/index.js +2 -1
- package/lib/components/InlineBanner/InlineBanner.cjs +33 -36
- package/lib/components/InlineBanner/InlineBanner.js +32 -32
- package/lib/components/InlineBanner/InlineBanner.namespace.cjs +18 -14
- package/lib/components/InlineBanner/InlineBanner.namespace.js +13 -1
- package/lib/components/InlineBanner/index.cjs +15 -16
- package/lib/components/InlineBanner/index.js +3 -3
- package/lib/components/LinkContent/LinkContent.cjs +13 -15
- package/lib/components/LinkContent/LinkContent.js +12 -11
- package/lib/components/LinkContent/index.cjs +3 -9
- package/lib/components/LinkContent/index.js +2 -1
- package/lib/components/List/List.cjs +46 -63
- package/lib/components/List/List.js +45 -59
- package/lib/components/List/List.namespace.cjs +19 -15
- package/lib/components/List/List.namespace.js +14 -1
- package/lib/components/List/ListHeader.cjs +18 -18
- package/lib/components/List/ListHeader.js +16 -14
- package/lib/components/List/index.cjs +18 -19
- package/lib/components/List/index.js +4 -4
- package/lib/components/LoadingIndicator/LoadingIndicator.cjs +24 -26
- package/lib/components/LoadingIndicator/LoadingIndicator.js +23 -22
- package/lib/components/LoadingIndicator/index.cjs +3 -9
- package/lib/components/LoadingIndicator/index.js +2 -1
- package/lib/components/LoadingIndicator/usePendingButton.cjs +22 -46
- package/lib/components/LoadingIndicator/usePendingButton.js +20 -23
- package/lib/components/MannerTemp/MannerTemp.cjs +20 -18
- package/lib/components/MannerTemp/MannerTemp.js +19 -14
- package/lib/components/MannerTemp/MannerTempEmote.cjs +130 -96
- package/lib/components/MannerTemp/MannerTempEmote.js +129 -92
- package/lib/components/MannerTemp/index.cjs +5 -11
- package/lib/components/MannerTemp/index.js +3 -2
- package/lib/components/MannerTempBadge/MannerTempBadge.cjs +9 -12
- package/lib/components/MannerTempBadge/MannerTempBadge.js +8 -8
- package/lib/components/MannerTempBadge/index.cjs +3 -9
- package/lib/components/MannerTempBadge/index.js +2 -1
- package/lib/components/MenuSheet/MenuSheet.cjs +61 -106
- package/lib/components/MenuSheet/MenuSheet.js +59 -83
- package/lib/components/MenuSheet/MenuSheet.namespace.cjs +24 -20
- package/lib/components/MenuSheet/MenuSheet.namespace.js +19 -1
- package/lib/components/MenuSheet/index.cjs +21 -22
- package/lib/components/MenuSheet/index.js +3 -3
- package/lib/components/NotificationBadge/NotificationBadge.cjs +29 -41
- package/lib/components/NotificationBadge/NotificationBadge.js +27 -19
- package/lib/components/NotificationBadge/index.cjs +4 -10
- package/lib/components/NotificationBadge/index.js +2 -1
- package/lib/components/PageBanner/PageBanner.cjs +32 -51
- package/lib/components/PageBanner/PageBanner.js +30 -47
- package/lib/components/PageBanner/PageBanner.namespace.cjs +19 -15
- package/lib/components/PageBanner/PageBanner.namespace.js +14 -1
- package/lib/components/PageBanner/index.cjs +16 -17
- package/lib/components/PageBanner/index.js +3 -3
- package/lib/components/Portal/index.cjs +7 -10
- package/lib/components/Portal/index.js +2 -1
- package/lib/components/ProgressCircle/ProgressCircle.cjs +11 -23
- package/lib/components/ProgressCircle/ProgressCircle.js +10 -19
- package/lib/components/ProgressCircle/ProgressCircle.namespace.cjs +15 -11
- package/lib/components/ProgressCircle/ProgressCircle.namespace.js +10 -1
- package/lib/components/ProgressCircle/index.cjs +12 -13
- package/lib/components/ProgressCircle/index.js +3 -3
- package/lib/components/PullToRefresh/PullToRefresh.cjs +11 -20
- package/lib/components/PullToRefresh/PullToRefresh.js +10 -16
- package/lib/components/PullToRefresh/PullToRefresh.namespace.cjs +16 -15
- package/lib/components/PullToRefresh/PullToRefresh.namespace.js +12 -2
- package/lib/components/PullToRefresh/index.cjs +18 -16
- package/lib/components/PullToRefresh/index.js +4 -4
- package/lib/components/RadioGroup/RadioGroup.cjs +66 -72
- package/lib/components/RadioGroup/RadioGroup.js +64 -68
- package/lib/components/RadioGroup/RadioGroup.namespace.cjs +18 -14
- package/lib/components/RadioGroup/RadioGroup.namespace.js +13 -1
- package/lib/components/RadioGroup/index.cjs +15 -16
- package/lib/components/RadioGroup/index.js +3 -3
- package/lib/components/ReactionButton/ReactionButton.cjs +28 -47
- package/lib/components/ReactionButton/ReactionButton.js +25 -24
- package/lib/components/ReactionButton/index.cjs +3 -9
- package/lib/components/ReactionButton/index.js +2 -1
- package/lib/components/ResponsivePair/ResponsivePair.cjs +34 -57
- package/lib/components/ResponsivePair/ResponsivePair.js +32 -34
- package/lib/components/ResponsivePair/index.cjs +3 -9
- package/lib/components/ResponsivePair/index.js +2 -1
- package/lib/components/ScrollFog/ScrollFog.cjs +49 -61
- package/lib/components/ScrollFog/ScrollFog.js +47 -57
- package/lib/components/ScrollFog/index.cjs +3 -9
- package/lib/components/ScrollFog/index.js +2 -1
- package/lib/components/SegmentedControl/SegmentedControl.cjs +13 -22
- package/lib/components/SegmentedControl/SegmentedControl.js +12 -18
- package/lib/components/SegmentedControl/SegmentedControl.namespace.cjs +16 -12
- package/lib/components/SegmentedControl/SegmentedControl.namespace.js +11 -1
- package/lib/components/SegmentedControl/index.cjs +13 -14
- package/lib/components/SegmentedControl/index.js +3 -3
- package/lib/components/SelectBox/CheckSelectBox.cjs +29 -35
- package/lib/components/SelectBox/CheckSelectBox.js +28 -31
- package/lib/components/SelectBox/CheckSelectBox.namespace.cjs +17 -13
- package/lib/components/SelectBox/CheckSelectBox.namespace.js +12 -1
- package/lib/components/SelectBox/RadioSelectBox.cjs +19 -33
- package/lib/components/SelectBox/RadioSelectBox.js +18 -29
- package/lib/components/SelectBox/RadioSelectBox.namespace.cjs +17 -13
- package/lib/components/SelectBox/RadioSelectBox.namespace.js +12 -1
- package/lib/components/SelectBox/index.cjs +27 -23
- package/lib/components/SelectBox/index.js +5 -6
- package/lib/components/Skeleton/Skeleton.cjs +10 -13
- package/lib/components/Skeleton/Skeleton.js +9 -9
- package/lib/components/Skeleton/index.cjs +3 -9
- package/lib/components/Skeleton/index.js +2 -1
- package/lib/components/Slider/Slider.cjs +69 -90
- package/lib/components/Slider/Slider.js +67 -86
- package/lib/components/Slider/Slider.namespace.cjs +25 -21
- package/lib/components/Slider/Slider.namespace.js +20 -1
- package/lib/components/Slider/index.cjs +22 -23
- package/lib/components/Slider/index.js +3 -3
- package/lib/components/Snackbar/Snackbar.cjs +38 -55
- package/lib/components/Snackbar/Snackbar.js +37 -51
- package/lib/components/Snackbar/Snackbar.namespace.cjs +22 -18
- package/lib/components/Snackbar/Snackbar.namespace.js +17 -1
- package/lib/components/Snackbar/index.cjs +26 -24
- package/lib/components/Snackbar/index.js +5 -5
- package/lib/components/Snackbar/useSnackbarAdapter.cjs +22 -26
- package/lib/components/Snackbar/useSnackbarAdapter.js +21 -22
- package/lib/components/Stack/Stack.cjs +32 -35
- package/lib/components/Stack/Stack.js +30 -12
- package/lib/components/Stack/index.cjs +5 -11
- package/lib/components/Stack/index.js +2 -1
- package/lib/components/Switch/Switch.cjs +45 -63
- package/lib/components/Switch/Switch.js +42 -59
- package/lib/components/Switch/Switch.namespace.cjs +17 -13
- package/lib/components/Switch/Switch.namespace.js +12 -1
- package/lib/components/Switch/index.cjs +14 -15
- package/lib/components/Switch/index.js +3 -3
- package/lib/components/Tabs/Tabs.cjs +15 -33
- package/lib/components/Tabs/Tabs.js +14 -29
- package/lib/components/Tabs/Tabs.namespace.cjs +20 -19
- package/lib/components/Tabs/Tabs.namespace.js +16 -2
- package/lib/components/Tabs/index.cjs +22 -20
- package/lib/components/Tabs/index.js +4 -4
- package/lib/components/TagGroup/TagGroup.cjs +44 -35
- package/lib/components/TagGroup/TagGroup.js +42 -31
- package/lib/components/TagGroup/TagGroup.namespace.cjs +14 -10
- package/lib/components/TagGroup/TagGroup.namespace.js +9 -1
- package/lib/components/TagGroup/index.cjs +11 -12
- package/lib/components/TagGroup/index.js +3 -3
- package/lib/components/Text/Text.cjs +49 -85
- package/lib/components/Text/Text.js +47 -81
- package/lib/components/Text/index.cjs +3 -9
- package/lib/components/Text/index.js +2 -1
- package/lib/components/TextField/TextField.cjs +82 -122
- package/lib/components/TextField/TextField.js +80 -118
- package/lib/components/TextField/TextField.namespace.cjs +19 -15
- package/lib/components/TextField/TextField.namespace.js +14 -1
- package/lib/components/TextField/index.cjs +18 -19
- package/lib/components/TextField/index.js +4 -4
- package/lib/components/TextField/memoize.cjs +10 -15
- package/lib/components/TextField/memoize.js +10 -11
- package/lib/components/TextField/useTextFieldWithGraphemes.cjs +40 -50
- package/lib/components/TextField/useTextFieldWithGraphemes.js +39 -46
- package/lib/components/ToggleButton/ToggleButton.cjs +31 -47
- package/lib/components/ToggleButton/ToggleButton.js +28 -24
- package/lib/components/ToggleButton/index.cjs +3 -9
- package/lib/components/ToggleButton/index.js +2 -1
- package/lib/components/VisuallyHidden/VisuallyHidden.cjs +18 -14
- package/lib/components/VisuallyHidden/VisuallyHidden.js +17 -10
- package/lib/components/VisuallyHidden/index.cjs +3 -9
- package/lib/components/VisuallyHidden/index.js +2 -1
- package/lib/components/index.cjs +554 -401
- package/lib/components/index.js +100 -129
- package/lib/components/private/Icon.cjs +15 -15
- package/lib/components/private/Icon.js +14 -11
- package/lib/components/private/useDismissible.cjs +54 -73
- package/lib/components/private/useDismissible.js +53 -48
- package/lib/index.cjs +554 -401
- package/lib/index.js +100 -129
- package/lib/primitive.cjs +73 -55
- package/lib/primitive.js +12 -12
- package/lib/utils/createRecipeContext.cjs +46 -37
- package/lib/utils/createRecipeContext.js +44 -33
- package/lib/utils/createSlotRecipeContext.cjs +91 -74
- package/lib/utils/createSlotRecipeContext.js +89 -70
- package/lib/utils/createWithStateProps.cjs +23 -25
- package/lib/utils/createWithStateProps.js +22 -21
- package/lib/utils/splitMultipleVariantsProps.cjs +16 -29
- package/lib/utils/splitMultipleVariantsProps.js +16 -25
- package/lib/utils/styled.cjs +141 -273
- package/lib/utils/styled.js +141 -269
- package/lib/vars.cjs +7 -11
- package/lib/vars.js +1 -1
- package/package.json +2 -2
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref,
|
|
18
|
-
className: clsx("seed-consistent-width", className),
|
|
19
|
-
...otherProps
|
|
20
|
-
}
|
|
21
|
-
);
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
4
|
+
let clsx = require("clsx");
|
|
5
|
+
clsx = require_runtime.__toESM(clsx);
|
|
6
|
+
let react = require("react");
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
//#region src/components/ConsistentWidth/ConsistentWidth.tsx
|
|
9
|
+
var ConsistentWidth = (0, react.forwardRef)((props, ref) => {
|
|
10
|
+
const { className, ...otherProps } = props;
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.span, {
|
|
12
|
+
"data-text": props.children,
|
|
13
|
+
ref,
|
|
14
|
+
className: (0, clsx.default)("seed-consistent-width", className),
|
|
15
|
+
...otherProps
|
|
16
|
+
});
|
|
22
17
|
});
|
|
23
|
-
|
|
18
|
+
//#endregion
|
|
24
19
|
exports.ConsistentWidth = ConsistentWidth;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
...otherProps
|
|
16
|
-
}
|
|
17
|
-
);
|
|
1
|
+
"use client";
|
|
2
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ConsistentWidth/ConsistentWidth.tsx
|
|
7
|
+
var ConsistentWidth = forwardRef((props, ref) => {
|
|
8
|
+
const { className, ...otherProps } = props;
|
|
9
|
+
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
10
|
+
"data-text": props.children,
|
|
11
|
+
ref,
|
|
12
|
+
className: clsx("seed-consistent-width", className),
|
|
13
|
+
...otherProps
|
|
14
|
+
});
|
|
18
15
|
});
|
|
19
|
-
|
|
16
|
+
//#endregion
|
|
20
17
|
export { ConsistentWidth };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const ConsistentWidth = require('./ConsistentWidth.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.ConsistentWidth = ConsistentWidth.ConsistentWidth;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_ConsistentWidth = require("./ConsistentWidth.cjs");
|
|
3
|
+
exports.ConsistentWidth = require_ConsistentWidth.ConsistentWidth;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ConsistentWidth } from "./ConsistentWidth.js";
|
|
2
|
+
export { ConsistentWidth };
|
|
@@ -1,54 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
37
|
-
console.warn(
|
|
38
|
-
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
return /* @__PURE__ */ jsxRuntime.jsx(usePendingButton.PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(Icon.IconRequired, { enabled: layout === "iconOnly", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
-
reactPrimitive.Primitive.button,
|
|
43
|
-
{
|
|
44
|
-
ref,
|
|
45
|
-
className: clsx(recipeClassName, className),
|
|
46
|
-
...api.stateProps,
|
|
47
|
-
...otherProps,
|
|
48
|
-
children
|
|
49
|
-
}
|
|
50
|
-
) }) });
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_Icon = require("../Icon/Icon.cjs");
|
|
4
|
+
const require_usePendingButton = require("../LoadingIndicator/usePendingButton.cjs");
|
|
5
|
+
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
6
|
+
let clsx = require("clsx");
|
|
7
|
+
clsx = require_runtime.__toESM(clsx);
|
|
8
|
+
let react = require("react");
|
|
9
|
+
react = require_runtime.__toESM(react);
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
let _seed_design_css_recipes_contextual_floating_button = require("@seed-design/css/recipes/contextual-floating-button");
|
|
12
|
+
//#region src/components/ContextualFloatingButton/ContextualFloatingButton.tsx
|
|
13
|
+
var ContextualFloatingButton = react.forwardRef(({ variant, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
14
|
+
const recipeClassName = (0, _seed_design_css_recipes_contextual_floating_button.contextualFloatingButton)({
|
|
15
|
+
variant,
|
|
16
|
+
layout
|
|
17
|
+
});
|
|
18
|
+
const api = require_usePendingButton.usePendingButton({
|
|
19
|
+
loading,
|
|
20
|
+
disabled: otherProps.disabled
|
|
21
|
+
});
|
|
22
|
+
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) console.warn("When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided.");
|
|
23
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_usePendingButton.PendingButtonProvider, {
|
|
24
|
+
value: api,
|
|
25
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.IconRequired, {
|
|
26
|
+
enabled: layout === "iconOnly",
|
|
27
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.button, {
|
|
28
|
+
ref,
|
|
29
|
+
className: (0, clsx.default)(recipeClassName, className),
|
|
30
|
+
...api.stateProps,
|
|
31
|
+
...otherProps,
|
|
32
|
+
children
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
});
|
|
51
36
|
});
|
|
52
37
|
ContextualFloatingButton.displayName = "ContextualFloatingButton";
|
|
53
|
-
|
|
38
|
+
//#endregion
|
|
54
39
|
exports.ContextualFloatingButton = ContextualFloatingButton;
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Primitive } from
|
|
5
|
-
import clsx from
|
|
6
|
-
import * as React from
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { IconRequired } from "../Icon/Icon.js";
|
|
3
|
+
import { PendingButtonProvider, usePendingButton } from "../LoadingIndicator/usePendingButton.js";
|
|
4
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
5
|
+
import clsx from "clsx";
|
|
6
|
+
import * as React$1 from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { contextualFloatingButton } from "@seed-design/css/recipes/contextual-floating-button";
|
|
9
|
+
//#region src/components/ContextualFloatingButton/ContextualFloatingButton.tsx
|
|
10
|
+
var ContextualFloatingButton = React$1.forwardRef(({ variant, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
11
|
+
const recipeClassName = contextualFloatingButton({
|
|
12
|
+
variant,
|
|
13
|
+
layout
|
|
14
|
+
});
|
|
15
|
+
const api = usePendingButton({
|
|
16
|
+
loading,
|
|
17
|
+
disabled: otherProps.disabled
|
|
18
|
+
});
|
|
19
|
+
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) console.warn("When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided.");
|
|
20
|
+
return /* @__PURE__ */ jsx(PendingButtonProvider, {
|
|
21
|
+
value: api,
|
|
22
|
+
children: /* @__PURE__ */ jsx(IconRequired, {
|
|
23
|
+
enabled: layout === "iconOnly",
|
|
24
|
+
children: /* @__PURE__ */ jsx(Primitive.button, {
|
|
25
|
+
ref,
|
|
26
|
+
className: clsx(recipeClassName, className),
|
|
27
|
+
...api.stateProps,
|
|
28
|
+
...otherProps,
|
|
29
|
+
children
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
});
|
|
28
33
|
});
|
|
29
34
|
ContextualFloatingButton.displayName = "ContextualFloatingButton";
|
|
30
|
-
|
|
35
|
+
//#endregion
|
|
31
36
|
export { ContextualFloatingButton };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const ContextualFloatingButton = require('./ContextualFloatingButton.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.ContextualFloatingButton = ContextualFloatingButton.ContextualFloatingButton;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_ContextualFloatingButton = require("./ContextualFloatingButton.cjs");
|
|
3
|
+
exports.ContextualFloatingButton = require_ContextualFloatingButton.ContextualFloatingButton;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ContextualFloatingButton } from "./ContextualFloatingButton.js";
|
|
2
|
+
export { ContextualFloatingButton };
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
withContext(reactPrimitive.Primitive.button),
|
|
14
|
-
(props) => props.layout === "iconOnly"
|
|
15
|
-
);
|
|
1
|
+
"use client";
|
|
2
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_Icon = require("../Icon/Icon.cjs");
|
|
4
|
+
const require_createRecipeContext = require("../../utils/createRecipeContext.cjs");
|
|
5
|
+
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
6
|
+
let _seed_design_css_recipes_control_chip = require("@seed-design/css/recipes/control-chip");
|
|
7
|
+
//#region src/components/ControlChip/ControlChip.tsx
|
|
8
|
+
var { withContext } = require_createRecipeContext.createRecipeContext(_seed_design_css_recipes_control_chip.controlChip);
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated ControlChip is deprecated. Use Chip.Toggle or Chip.Button instead.
|
|
11
|
+
*/
|
|
12
|
+
var ControlChip = require_Icon.withIconRequired(withContext(_seed_design_react_primitive.Primitive.button), (props) => props.layout === "iconOnly");
|
|
16
13
|
ControlChip.displayName = "ControlChip";
|
|
17
|
-
|
|
14
|
+
//#endregion
|
|
18
15
|
exports.ControlChip = ControlChip;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
);
|
|
1
|
+
"use client";
|
|
2
|
+
import { withIconRequired } from "../Icon/Icon.js";
|
|
3
|
+
import { createRecipeContext } from "../../utils/createRecipeContext.js";
|
|
4
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
5
|
+
import { controlChip } from "@seed-design/css/recipes/control-chip";
|
|
6
|
+
//#region src/components/ControlChip/ControlChip.tsx
|
|
7
|
+
var { withContext } = createRecipeContext(controlChip);
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated ControlChip is deprecated. Use Chip.Toggle or Chip.Button instead.
|
|
10
|
+
*/
|
|
11
|
+
var ControlChip = withIconRequired(withContext(Primitive.button), (props) => props.layout === "iconOnly");
|
|
12
12
|
ControlChip.displayName = "ControlChip";
|
|
13
|
-
|
|
13
|
+
//#endregion
|
|
14
14
|
export { ControlChip };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const ControlChip = require('./ControlChip.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.ControlChip = ControlChip.ControlChip;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_ControlChip = require("./ControlChip.cjs");
|
|
3
|
+
exports.ControlChip = require_ControlChip.ControlChip;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ControlChip } from "./ControlChip.js";
|
|
2
|
+
export { ControlChip };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
4
|
+
let clsx = require("clsx");
|
|
5
|
+
clsx = require_runtime.__toESM(clsx);
|
|
6
|
+
let react = require("react");
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
//#region src/components/Count/Count.tsx
|
|
9
|
+
var Count = (0, react.forwardRef)((props, ref) => {
|
|
10
|
+
const { className, ...otherProps } = props;
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.span, {
|
|
12
|
+
ref,
|
|
13
|
+
className: (0, clsx.default)("seed-count", className),
|
|
14
|
+
...otherProps
|
|
15
|
+
});
|
|
14
16
|
});
|
|
15
|
-
|
|
17
|
+
//#endregion
|
|
16
18
|
exports.Count = Count;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/Count/Count.tsx
|
|
7
|
+
var Count = forwardRef((props, ref) => {
|
|
8
|
+
const { className, ...otherProps } = props;
|
|
9
|
+
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
10
|
+
ref,
|
|
11
|
+
className: clsx("seed-count", className),
|
|
12
|
+
...otherProps
|
|
13
|
+
});
|
|
10
14
|
});
|
|
11
|
-
|
|
15
|
+
//#endregion
|
|
12
16
|
export { Count };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const Count = require('./Count.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.Count = Count.Count;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_Count = require("./Count.cjs");
|
|
3
|
+
exports.Count = require_Count.Count;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Count } from "./Count.js";
|
|
2
|
+
export { Count };
|
|
@@ -1,47 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const DialogBackdrop = withContext(
|
|
26
|
-
reactDialog.Dialog.Backdrop,
|
|
27
|
-
"backdrop"
|
|
28
|
-
);
|
|
29
|
-
const DialogContent = withContext(
|
|
30
|
-
reactDialog.Dialog.Content,
|
|
31
|
-
"content"
|
|
32
|
-
);
|
|
33
|
-
const DialogHeader = withContext(reactPrimitive.Primitive.div, "header");
|
|
34
|
-
const DialogTitle = withContext(
|
|
35
|
-
withStateProps(reactPrimitive.Primitive.span),
|
|
36
|
-
"title"
|
|
37
|
-
);
|
|
38
|
-
const DialogDescription = withContext(
|
|
39
|
-
withStateProps(reactPrimitive.Primitive.div),
|
|
40
|
-
"description"
|
|
41
|
-
);
|
|
42
|
-
const DialogFooter = withContext(reactPrimitive.Primitive.div, "footer");
|
|
43
|
-
const DialogAction = reactDialog.Dialog.CloseButton;
|
|
44
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
+
const require_createWithStateProps = require("../../utils/createWithStateProps.cjs");
|
|
5
|
+
let _seed_design_react_dialog = require("@seed-design/react-dialog");
|
|
6
|
+
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
7
|
+
let _seed_design_css_recipes_dialog = require("@seed-design/css/recipes/dialog");
|
|
8
|
+
//#region src/components/Dialog/Dialog.tsx
|
|
9
|
+
var { withRootProvider, withContext } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_dialog.dialog);
|
|
10
|
+
var withStateProps = require_createWithStateProps.createWithStateProps([_seed_design_react_dialog.useDialogContext]);
|
|
11
|
+
var DialogRoot = withRootProvider(_seed_design_react_dialog.Dialog.Root, { defaultProps: {
|
|
12
|
+
lazyMount: true,
|
|
13
|
+
unmountOnExit: true
|
|
14
|
+
} });
|
|
15
|
+
var DialogTrigger = _seed_design_react_dialog.Dialog.Trigger;
|
|
16
|
+
var DialogPositioner = withContext(_seed_design_react_dialog.Dialog.Positioner, "positioner");
|
|
17
|
+
var DialogBackdrop = withContext(_seed_design_react_dialog.Dialog.Backdrop, "backdrop");
|
|
18
|
+
var DialogContent = withContext(_seed_design_react_dialog.Dialog.Content, "content");
|
|
19
|
+
var DialogHeader = withContext(_seed_design_react_primitive.Primitive.div, "header");
|
|
20
|
+
var DialogTitle = withContext(withStateProps(_seed_design_react_primitive.Primitive.span), "title");
|
|
21
|
+
var DialogDescription = withContext(withStateProps(_seed_design_react_primitive.Primitive.div), "description");
|
|
22
|
+
var DialogFooter = withContext(_seed_design_react_primitive.Primitive.div, "footer");
|
|
23
|
+
var DialogAction = _seed_design_react_dialog.Dialog.CloseButton;
|
|
24
|
+
//#endregion
|
|
45
25
|
exports.DialogAction = DialogAction;
|
|
46
26
|
exports.DialogBackdrop = DialogBackdrop;
|
|
47
27
|
exports.DialogContent = DialogContent;
|
|
@@ -1,41 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
);
|
|
25
|
-
const DialogContent = withContext(
|
|
26
|
-
Dialog.Content,
|
|
27
|
-
"content"
|
|
28
|
-
);
|
|
29
|
-
const DialogHeader = withContext(Primitive.div, "header");
|
|
30
|
-
const DialogTitle = withContext(
|
|
31
|
-
withStateProps(Primitive.span),
|
|
32
|
-
"title"
|
|
33
|
-
);
|
|
34
|
-
const DialogDescription = withContext(
|
|
35
|
-
withStateProps(Primitive.div),
|
|
36
|
-
"description"
|
|
37
|
-
);
|
|
38
|
-
const DialogFooter = withContext(Primitive.div, "footer");
|
|
39
|
-
const DialogAction = Dialog.CloseButton;
|
|
40
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
|
+
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
|
+
import { Dialog, useDialogContext } from "@seed-design/react-dialog";
|
|
5
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
6
|
+
import { dialog } from "@seed-design/css/recipes/dialog";
|
|
7
|
+
//#region src/components/Dialog/Dialog.tsx
|
|
8
|
+
var { withRootProvider, withContext } = createSlotRecipeContext(dialog);
|
|
9
|
+
var withStateProps = createWithStateProps([useDialogContext]);
|
|
10
|
+
var DialogRoot = withRootProvider(Dialog.Root, { defaultProps: {
|
|
11
|
+
lazyMount: true,
|
|
12
|
+
unmountOnExit: true
|
|
13
|
+
} });
|
|
14
|
+
var DialogTrigger = Dialog.Trigger;
|
|
15
|
+
var DialogPositioner = withContext(Dialog.Positioner, "positioner");
|
|
16
|
+
var DialogBackdrop = withContext(Dialog.Backdrop, "backdrop");
|
|
17
|
+
var DialogContent = withContext(Dialog.Content, "content");
|
|
18
|
+
var DialogHeader = withContext(Primitive.div, "header");
|
|
19
|
+
var DialogTitle = withContext(withStateProps(Primitive.span), "title");
|
|
20
|
+
var DialogDescription = withContext(withStateProps(Primitive.div), "description");
|
|
21
|
+
var DialogFooter = withContext(Primitive.div, "footer");
|
|
22
|
+
var DialogAction = Dialog.CloseButton;
|
|
23
|
+
//#endregion
|
|
41
24
|
export { DialogAction, DialogBackdrop, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger };
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports
|
|
18
|
-
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_Dialog = require("./Dialog.cjs");
|
|
3
|
+
//#region src/components/Dialog/Dialog.namespace.ts
|
|
4
|
+
var Dialog_namespace_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
5
|
+
Action: () => require_Dialog.DialogAction,
|
|
6
|
+
Backdrop: () => require_Dialog.DialogBackdrop,
|
|
7
|
+
Content: () => require_Dialog.DialogContent,
|
|
8
|
+
Description: () => require_Dialog.DialogDescription,
|
|
9
|
+
Footer: () => require_Dialog.DialogFooter,
|
|
10
|
+
Header: () => require_Dialog.DialogHeader,
|
|
11
|
+
Positioner: () => require_Dialog.DialogPositioner,
|
|
12
|
+
Root: () => require_Dialog.DialogRoot,
|
|
13
|
+
Title: () => require_Dialog.DialogTitle,
|
|
14
|
+
Trigger: () => require_Dialog.DialogTrigger
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
Object.defineProperty(exports, "Dialog_namespace_exports", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return Dialog_namespace_exports;
|
|
21
|
+
}
|
|
22
|
+
});
|