@seed-design/react 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/ActionButton/ActionButton.cjs +6 -6
- package/lib/components/ActionButton/ActionButton.d.ts.map +1 -1
- package/lib/components/ActionButton/ActionButton.js +6 -6
- package/lib/components/ActionChip/ActionChip.cjs +4 -4
- package/lib/components/ActionChip/ActionChip.d.ts +1 -1
- package/lib/components/ActionChip/ActionChip.d.ts.map +1 -1
- package/lib/components/ActionChip/ActionChip.js +4 -4
- package/lib/components/ActionSheet/ActionSheet.cjs +7 -7
- package/lib/components/ActionSheet/ActionSheet.d.ts +2 -2
- package/lib/components/ActionSheet/ActionSheet.d.ts.map +1 -1
- package/lib/components/ActionSheet/ActionSheet.js +7 -7
- package/lib/components/Avatar/Avatar.cjs +2 -2
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/Badge/Badge.cjs +3 -3
- package/lib/components/Badge/Badge.d.ts.map +1 -1
- package/lib/components/Badge/Badge.js +3 -3
- package/lib/components/BottomSheet/BottomSheet.cjs +2 -2
- package/lib/components/BottomSheet/BottomSheet.js +2 -2
- package/lib/components/Callout/Callout.cjs +2 -2
- package/lib/components/Callout/Callout.js +2 -2
- package/lib/components/Checkbox/Checkbox.cjs +2 -2
- package/lib/components/Checkbox/Checkbox.js +2 -2
- package/lib/components/ChipTabs/ChipTabs.cjs +2 -2
- package/lib/components/ChipTabs/ChipTabs.js +2 -2
- package/lib/components/ControlChip/ControlChip.cjs +3 -3
- package/lib/components/ControlChip/ControlChip.js +3 -3
- package/lib/components/Dialog/Dialog.cjs +2 -2
- package/lib/components/Dialog/Dialog.js +2 -2
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +5 -4
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts.map +1 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +5 -4
- package/lib/components/ExtendedFab/ExtendedFab.cjs +7 -11
- package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +1 -1
- package/lib/components/ExtendedFab/ExtendedFab.js +7 -11
- package/lib/components/Fab/Fab.cjs +3 -3
- package/lib/components/Fab/Fab.d.ts.map +1 -1
- package/lib/components/Fab/Fab.js +3 -3
- package/lib/components/HelpBubble/HelpBubble.cjs +8 -3
- package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.js +8 -3
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.cjs +2 -2
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.js +2 -2
- package/lib/components/InlineBanner/InlineBanner.cjs +2 -2
- package/lib/components/InlineBanner/InlineBanner.js +2 -2
- package/lib/components/LinkContent/LinkContent.cjs +3 -4
- package/lib/components/LinkContent/LinkContent.d.ts.map +1 -1
- package/lib/components/LinkContent/LinkContent.js +3 -4
- package/lib/components/LoadingIndicator/usePendingButton.d.ts +57 -57
- package/lib/components/MannerTempBadge/MannerTempBadge.cjs +4 -7
- package/lib/components/MannerTempBadge/MannerTempBadge.d.ts +1 -1
- package/lib/components/MannerTempBadge/MannerTempBadge.d.ts.map +1 -1
- package/lib/components/MannerTempBadge/MannerTempBadge.js +4 -7
- package/lib/components/ProgressCircle/ProgressCircle.cjs +2 -2
- package/lib/components/ProgressCircle/ProgressCircle.js +2 -2
- package/lib/components/PullToRefresh/PullToRefresh.cjs +2 -2
- package/lib/components/PullToRefresh/PullToRefresh.js +2 -2
- package/lib/components/ReactionButton/ReactionButton.cjs +5 -5
- package/lib/components/ReactionButton/ReactionButton.js +5 -5
- package/lib/components/SegmentedControl/SegmentedControl.cjs +2 -2
- package/lib/components/SegmentedControl/SegmentedControl.js +2 -2
- package/lib/components/SelectBox/CheckSelectBox.cjs +8 -8
- package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/CheckSelectBox.js +8 -8
- package/lib/components/SelectBox/RadioSelectBox.cjs +7 -7
- package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/RadioSelectBox.js +7 -7
- package/lib/components/Skeleton/Skeleton.cjs +3 -6
- package/lib/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/lib/components/Skeleton/Skeleton.js +3 -6
- package/lib/components/Snackbar/Snackbar.cjs +20 -24
- package/lib/components/Snackbar/Snackbar.d.ts +3 -3
- package/lib/components/Snackbar/Snackbar.d.ts.map +1 -1
- package/lib/components/Snackbar/Snackbar.js +21 -25
- package/lib/components/Snackbar/Snackbar.namespace.cjs +1 -1
- package/lib/components/Snackbar/Snackbar.namespace.d.ts +1 -1
- package/lib/components/Snackbar/Snackbar.namespace.d.ts.map +1 -1
- package/lib/components/Snackbar/Snackbar.namespace.js +1 -1
- package/lib/components/Snackbar/index.cjs +1 -1
- package/lib/components/Snackbar/index.d.ts +1 -1
- package/lib/components/Snackbar/index.d.ts.map +1 -1
- package/lib/components/Snackbar/index.js +1 -1
- package/lib/components/Switch/Switch.cjs +2 -2
- package/lib/components/Switch/Switch.js +2 -2
- package/lib/components/Tabs/Tabs.cjs +2 -2
- package/lib/components/Tabs/Tabs.js +2 -2
- package/lib/components/Text/Text.cjs +2 -2
- package/lib/components/Text/Text.js +2 -2
- package/lib/components/TextField/TextField.cjs +2 -2
- package/lib/components/TextField/TextField.js +2 -2
- package/lib/components/ToggleButton/ToggleButton.cjs +5 -5
- package/lib/components/ToggleButton/ToggleButton.js +5 -5
- package/lib/components/VisuallyHidden/VisuallyHidden.cjs +8 -8
- package/lib/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/lib/components/VisuallyHidden/VisuallyHidden.js +7 -7
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/private/useDismissible.d.ts +123 -123
- package/lib/index.cjs +1 -1
- package/lib/index.js +1 -1
- package/lib/utils/createRecipeContext.cjs +74 -0
- package/lib/utils/createRecipeContext.d.ts +24 -0
- package/lib/utils/createRecipeContext.d.ts.map +1 -0
- package/lib/utils/createRecipeContext.js +70 -0
- package/lib/utils/{createStyleContext.cjs → createSlotRecipeContext.cjs} +2 -2
- package/lib/utils/{createStyleContext.d.ts → createSlotRecipeContext.d.ts} +3 -3
- package/lib/utils/createSlotRecipeContext.d.ts.map +1 -0
- package/lib/utils/{createStyleContext.js → createSlotRecipeContext.js} +2 -2
- package/package.json +3 -3
- package/src/components/ActionButton/ActionButton.tsx +7 -7
- package/src/components/ActionChip/ActionChip.tsx +4 -4
- package/src/components/ActionSheet/ActionSheet.tsx +6 -6
- package/src/components/Avatar/Avatar.tsx +2 -2
- package/src/components/Badge/Badge.tsx +3 -3
- package/src/components/BottomSheet/BottomSheet.tsx +2 -2
- package/src/components/Callout/Callout.tsx +2 -2
- package/src/components/Checkbox/Checkbox.tsx +2 -2
- package/src/components/ChipTabs/ChipTabs.tsx +2 -2
- package/src/components/ControlChip/ControlChip.tsx +3 -3
- package/src/components/Dialog/Dialog.tsx +2 -2
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +5 -4
- package/src/components/ExtendedFab/ExtendedFab.tsx +7 -11
- package/src/components/Fab/Fab.tsx +3 -3
- package/src/components/HelpBubble/HelpBubble.tsx +7 -4
- package/src/components/IdentityPlaceholder/IdentityPlaceholder.tsx +2 -2
- package/src/components/InlineBanner/InlineBanner.tsx +2 -2
- package/src/components/LinkContent/LinkContent.tsx +2 -4
- package/src/components/MannerTempBadge/MannerTempBadge.tsx +4 -7
- package/src/components/ProgressCircle/ProgressCircle.tsx +2 -2
- package/src/components/PullToRefresh/PullToRefresh.tsx +2 -2
- package/src/components/ReactionButton/ReactionButton.tsx +6 -6
- package/src/components/SegmentedControl/SegmentedControl.tsx +2 -2
- package/src/components/SelectBox/CheckSelectBox.tsx +7 -7
- package/src/components/SelectBox/RadioSelectBox.tsx +6 -6
- package/src/components/Skeleton/Skeleton.tsx +3 -6
- package/src/components/Snackbar/Snackbar.namespace.ts +2 -2
- package/src/components/Snackbar/Snackbar.tsx +22 -23
- package/src/components/Snackbar/index.ts +2 -2
- package/src/components/Switch/Switch.tsx +2 -2
- package/src/components/Tabs/Tabs.tsx +2 -2
- package/src/components/Text/Text.tsx +2 -2
- package/src/components/TextField/TextField.tsx +2 -2
- package/src/components/ToggleButton/ToggleButton.tsx +6 -6
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +6 -8
- package/src/utils/createRecipeContext.tsx +114 -0
- package/src/utils/{createStyleContext.tsx → createSlotRecipeContext.tsx} +3 -3
- package/lib/utils/createStyleContext.d.ts.map +0 -1
|
@@ -7,9 +7,9 @@ const actionButton = require('@seed-design/css/recipes/action-button');
|
|
|
7
7
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
8
8
|
const clsx = require('clsx');
|
|
9
9
|
const React = require('react');
|
|
10
|
-
const
|
|
11
|
-
const usePendingButton = require('../LoadingIndicator/usePendingButton.cjs');
|
|
10
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
12
11
|
const Icon = require('../Icon/Icon.cjs');
|
|
12
|
+
const usePendingButton = require('../LoadingIndicator/usePendingButton.cjs');
|
|
13
13
|
|
|
14
14
|
function _interopNamespaceDefault(e) {
|
|
15
15
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
@@ -30,21 +30,21 @@ function _interopNamespaceDefault(e) {
|
|
|
30
30
|
|
|
31
31
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
32
32
|
|
|
33
|
-
const {
|
|
33
|
+
const { ClassNameProvider } = createRecipeContext.createRecipeContext(actionButton.actionButton);
|
|
34
34
|
const ActionButton = React__namespace.forwardRef(
|
|
35
35
|
({ variant, size, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
36
|
-
const
|
|
36
|
+
const recipeClassName = actionButton.actionButton({ variant, layout, size });
|
|
37
37
|
const api = usePendingButton.usePendingButton({ loading, disabled: otherProps.disabled });
|
|
38
38
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
39
39
|
console.warn(
|
|
40
40
|
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClassNameProvider, { value: recipeClassName, children: /* @__PURE__ */ jsxRuntime.jsx(usePendingButton.PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(Icon.IconRequired, { enabled: layout === "iconOnly", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
44
|
reactPrimitive.Primitive.button,
|
|
45
45
|
{
|
|
46
46
|
ref,
|
|
47
|
-
className: clsx(
|
|
47
|
+
className: clsx(recipeClassName, className),
|
|
48
48
|
...api.stateProps,
|
|
49
49
|
...otherProps,
|
|
50
50
|
children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ActionButton/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ActionButton/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAC;AAI9C,MAAM,WAAW,iBACf,SAAQ,wBAAwB,EAC9B,qBAAqB,EACrB,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,YAAY,6FA+BxB,CAAC"}
|
|
@@ -3,25 +3,25 @@ import { actionButton } from '@seed-design/css/recipes/action-button';
|
|
|
3
3
|
import { Primitive } from '@seed-design/react-primitive';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import {
|
|
7
|
-
import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
|
|
6
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
8
7
|
import { IconRequired } from '../Icon/Icon.js';
|
|
8
|
+
import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
|
|
9
9
|
|
|
10
|
-
const {
|
|
10
|
+
const { ClassNameProvider } = createRecipeContext(actionButton);
|
|
11
11
|
const ActionButton = React.forwardRef(
|
|
12
12
|
({ variant, size, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
13
|
-
const
|
|
13
|
+
const recipeClassName = actionButton({ variant, layout, size });
|
|
14
14
|
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
15
15
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
16
16
|
console.warn(
|
|
17
17
|
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
+
return /* @__PURE__ */ jsx(ClassNameProvider, { value: recipeClassName, children: /* @__PURE__ */ jsx(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx(IconRequired, { enabled: layout === "iconOnly", children: /* @__PURE__ */ jsx(
|
|
21
21
|
Primitive.button,
|
|
22
22
|
{
|
|
23
23
|
ref,
|
|
24
|
-
className: clsx(
|
|
24
|
+
className: clsx(recipeClassName, className),
|
|
25
25
|
...api.stateProps,
|
|
26
26
|
...otherProps,
|
|
27
27
|
children
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
5
|
const actionChip = require('@seed-design/css/recipes/action-chip');
|
|
7
|
-
const
|
|
6
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
const Icon = require('../Icon/Icon.cjs');
|
|
9
9
|
|
|
10
|
-
const { withProvider } =
|
|
10
|
+
const { withProvider } = createRecipeContext.createRecipeContext(actionChip.actionChip);
|
|
11
11
|
const ActionChip = Icon.withIconRequired(
|
|
12
|
-
withProvider(reactPrimitive.Primitive.button
|
|
12
|
+
withProvider(reactPrimitive.Primitive.button),
|
|
13
13
|
(props) => props.layout === "iconOnly"
|
|
14
14
|
);
|
|
15
15
|
ActionChip.displayName = "ActionChip";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
2
1
|
import { ActionChipVariantProps } from '@seed-design/css/recipes/action-chip';
|
|
2
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
export interface ActionChipProps extends ActionChipVariantProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionChip.d.ts","sourceRoot":"","sources":["../../../src/components/ActionChip/ActionChip.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ActionChip.d.ts","sourceRoot":"","sources":["../../../src/components/ActionChip/ActionChip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,MAAM,WAAW,eACf,SAAQ,sBAAsB,EAC5B,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,UAAU,iJAGtB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Primitive } from '@seed-design/react-primitive';
|
|
2
1
|
import { actionChip } from '@seed-design/css/recipes/action-chip';
|
|
3
|
-
import {
|
|
2
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
3
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
4
|
import { withIconRequired } from '../Icon/Icon.js';
|
|
5
5
|
|
|
6
|
-
const { withProvider } =
|
|
6
|
+
const { withProvider } = createRecipeContext(actionChip);
|
|
7
7
|
const ActionChip = withIconRequired(
|
|
8
|
-
withProvider(Primitive.button
|
|
8
|
+
withProvider(Primitive.button),
|
|
9
9
|
(props) => props.layout === "iconOnly"
|
|
10
10
|
);
|
|
11
11
|
ActionChip.displayName = "ActionChip";
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const reactDialog = require('@seed-design/react-dialog');
|
|
6
|
-
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
5
|
const actionSheet = require('@seed-design/css/recipes/action-sheet');
|
|
8
6
|
const actionSheetItem = require('@seed-design/css/recipes/action-sheet-item');
|
|
9
|
-
const
|
|
7
|
+
const reactDialog = require('@seed-design/react-dialog');
|
|
8
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
9
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
10
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
10
11
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
11
12
|
|
|
12
|
-
const { withRootProvider, withContext } =
|
|
13
|
-
const { withProvider: withItemProvider } =
|
|
13
|
+
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(actionSheet.actionSheet);
|
|
14
|
+
const { withProvider: withItemProvider } = createRecipeContext.createRecipeContext(actionSheetItem.actionSheetItem);
|
|
14
15
|
const withStateProps = createWithStateProps.createWithStateProps([reactDialog.useDialogContext]);
|
|
15
16
|
const ActionSheetRoot = withRootProvider(reactDialog.Dialog.Root, {
|
|
16
17
|
defaultProps: {
|
|
@@ -45,8 +46,7 @@ const ActionSheetList = withContext(
|
|
|
45
46
|
"list"
|
|
46
47
|
);
|
|
47
48
|
const ActionSheetItem = withItemProvider(
|
|
48
|
-
withStateProps(reactPrimitive.Primitive.button)
|
|
49
|
-
"root"
|
|
49
|
+
withStateProps(reactPrimitive.Primitive.button)
|
|
50
50
|
);
|
|
51
51
|
const ActionSheetCloseButton = withContext(
|
|
52
52
|
reactDialog.Dialog.CloseButton,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from '@seed-design/react-dialog';
|
|
2
|
-
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
1
|
import { ActionSheetVariantProps } from '@seed-design/css/recipes/action-sheet';
|
|
4
2
|
import { ActionSheetItemVariantProps } from '@seed-design/css/recipes/action-sheet-item';
|
|
3
|
+
import { Dialog as DialogPrimitive } from '@seed-design/react-dialog';
|
|
4
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
5
5
|
import type * as React from "react";
|
|
6
6
|
export interface ActionSheetRootProps extends ActionSheetVariantProps, DialogPrimitive.RootProps {
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ActionSheet/ActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ActionSheet/ActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAWpC,MAAM,WAAW,oBAAqB,SAAQ,uBAAuB,EAAE,eAAe,CAAC,SAAS;CAAG;AAEnG,eAAO,MAAM,eAAe,uDAK1B,CAAC;AAIH,MAAM,WAAW,uBAAwB,SAAQ,eAAe,CAAC,YAAY;CAAG;AAEhF,eAAO,MAAM,kBAAkB,wGAA0B,CAAC;AAI1D,MAAM,WAAW,0BAA2B,SAAQ,eAAe,CAAC,eAAe;CAAG;AAEtF,eAAO,MAAM,qBAAqB,mGAGjC,CAAC;AAIF,MAAM,WAAW,wBAAyB,SAAQ,eAAe,CAAC,aAAa;CAAG;AAElF,eAAO,MAAM,mBAAmB,iGAG/B,CAAC;AAIF,MAAM,WAAW,uBAAwB,SAAQ,eAAe,CAAC,YAAY;CAAG;AAEhF,eAAO,MAAM,kBAAkB,gGAG9B,CAAC;AAIF,MAAM,WAAW,sBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,iBAAiB,+FAG7B,CAAC;AAIF,MAAM,WAAW,qBAAsB,SAAQ,eAAe,CAAC,UAAU;CAAG;AAE5E,eAAO,MAAM,gBAAgB,kGAG5B,CAAC;AAIF,MAAM,WAAW,2BAA4B,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAExF,eAAO,MAAM,sBAAsB,0GAGU,CAAC;AAI9C,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAErF,eAAO,MAAM,eAAe,6FAG3B,CAAC;AAIF,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,2BAA2B,EAC3B,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC;CAAG;AAE9C,eAAO,MAAM,eAAe,gGAE3B,CAAC;AAIF,MAAM,WAAW,2BAA4B,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAExF,eAAO,MAAM,sBAAsB,oGAGlC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Dialog, useDialogContext } from '@seed-design/react-dialog';
|
|
2
|
-
import { Primitive } from '@seed-design/react-primitive';
|
|
3
1
|
import { actionSheet } from '@seed-design/css/recipes/action-sheet';
|
|
4
2
|
import { actionSheetItem } from '@seed-design/css/recipes/action-sheet-item';
|
|
5
|
-
import {
|
|
3
|
+
import { Dialog, useDialogContext } from '@seed-design/react-dialog';
|
|
4
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
5
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
6
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
6
7
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
7
8
|
|
|
8
|
-
const { withRootProvider, withContext } =
|
|
9
|
-
const { withProvider: withItemProvider } =
|
|
9
|
+
const { withRootProvider, withContext } = createSlotRecipeContext(actionSheet);
|
|
10
|
+
const { withProvider: withItemProvider } = createRecipeContext(actionSheetItem);
|
|
10
11
|
const withStateProps = createWithStateProps([useDialogContext]);
|
|
11
12
|
const ActionSheetRoot = withRootProvider(Dialog.Root, {
|
|
12
13
|
defaultProps: {
|
|
@@ -41,8 +42,7 @@ const ActionSheetList = withContext(
|
|
|
41
42
|
"list"
|
|
42
43
|
);
|
|
43
44
|
const ActionSheetItem = withItemProvider(
|
|
44
|
-
withStateProps(Primitive.button)
|
|
45
|
-
"root"
|
|
45
|
+
withStateProps(Primitive.button)
|
|
46
46
|
);
|
|
47
47
|
const ActionSheetCloseButton = withContext(
|
|
48
48
|
Dialog.CloseButton,
|
|
@@ -9,7 +9,7 @@ const avatar = require('@seed-design/css/recipes/avatar');
|
|
|
9
9
|
const avatarStack = require('@seed-design/css/recipes/avatar-stack');
|
|
10
10
|
const clsx = require('clsx');
|
|
11
11
|
const React = require('react');
|
|
12
|
-
const
|
|
12
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
13
13
|
|
|
14
14
|
function _interopNamespaceDefault(e) {
|
|
15
15
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
@@ -30,7 +30,7 @@ function _interopNamespaceDefault(e) {
|
|
|
30
30
|
|
|
31
31
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
32
32
|
|
|
33
|
-
const { PropsProvider, withProvider, withContext } =
|
|
33
|
+
const { PropsProvider, withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(avatar.avatar);
|
|
34
34
|
const AvatarRoot = withProvider(
|
|
35
35
|
reactAvatar.Avatar.Root,
|
|
36
36
|
"root"
|
|
@@ -6,9 +6,9 @@ import { avatarStack } from '@seed-design/css/recipes/avatar-stack';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
|
-
import {
|
|
9
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
10
10
|
|
|
11
|
-
const { PropsProvider, withProvider, withContext } =
|
|
11
|
+
const { PropsProvider, withProvider, withContext } = createSlotRecipeContext(avatar);
|
|
12
12
|
const AvatarRoot = withProvider(
|
|
13
13
|
Avatar.Root,
|
|
14
14
|
"root"
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
6
|
const badge = require('@seed-design/css/recipes/badge');
|
|
7
|
-
const
|
|
7
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
|
|
9
|
-
const { withProvider } =
|
|
10
|
-
const Badge = withProvider(reactPrimitive.Primitive.span
|
|
9
|
+
const { withProvider } = createRecipeContext.createRecipeContext(badge.badge);
|
|
10
|
+
const Badge = withProvider(reactPrimitive.Primitive.span);
|
|
11
11
|
|
|
12
12
|
exports.Badge = Badge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC,MAAM,WAAW,UACf,SAAQ,iBAAiB,EACvB,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC,MAAM,WAAW,UACf,SAAQ,iBAAiB,EACvB,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,KAAK,oFAA4D,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Primitive } from '@seed-design/react-primitive';
|
|
2
2
|
import { badge } from '@seed-design/css/recipes/badge';
|
|
3
|
-
import {
|
|
3
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
4
|
|
|
5
|
-
const { withProvider } =
|
|
6
|
-
const Badge = withProvider(Primitive.span
|
|
5
|
+
const { withProvider } = createRecipeContext(badge);
|
|
6
|
+
const Badge = withProvider(Primitive.span);
|
|
7
7
|
|
|
8
8
|
export { Badge };
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const reactDialog = require('@seed-design/react-dialog');
|
|
6
6
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
7
|
const bottomSheet = require('@seed-design/css/recipes/bottom-sheet');
|
|
8
|
-
const
|
|
8
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
9
9
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
10
10
|
const styled = require('../../utils/styled.cjs');
|
|
11
11
|
|
|
12
|
-
const { withRootProvider, withContext } =
|
|
12
|
+
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(bottomSheet.bottomSheet);
|
|
13
13
|
const withStateProps = createWithStateProps.createWithStateProps([reactDialog.useDialogContext]);
|
|
14
14
|
const BottomSheetRoot = withRootProvider(reactDialog.Dialog.Root, {
|
|
15
15
|
defaultProps: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Dialog, useDialogContext } from '@seed-design/react-dialog';
|
|
2
2
|
import { Primitive } from '@seed-design/react-primitive';
|
|
3
3
|
import { bottomSheet } from '@seed-design/css/recipes/bottom-sheet';
|
|
4
|
-
import {
|
|
4
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
5
5
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
6
6
|
import { withStyleProps } from '../../utils/styled.js';
|
|
7
7
|
|
|
8
|
-
const { withRootProvider, withContext } =
|
|
8
|
+
const { withRootProvider, withContext } = createSlotRecipeContext(bottomSheet);
|
|
9
9
|
const withStateProps = createWithStateProps([useDialogContext]);
|
|
10
10
|
const BottomSheetRoot = withRootProvider(Dialog.Root, {
|
|
11
11
|
defaultProps: {
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
6
|
const callout = require('@seed-design/css/recipes/callout');
|
|
7
|
-
const
|
|
7
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
8
8
|
const useDismissible = require('../private/useDismissible.cjs');
|
|
9
9
|
|
|
10
|
-
const { withContext, withProvider } =
|
|
10
|
+
const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(callout.callout);
|
|
11
11
|
const CalloutRoot = withProvider(useDismissible.DismissibleRoot, "root");
|
|
12
12
|
const CalloutContent = withContext(
|
|
13
13
|
reactPrimitive.Primitive.div,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Primitive } from '@seed-design/react-primitive';
|
|
2
2
|
import { callout } from '@seed-design/css/recipes/callout';
|
|
3
|
-
import {
|
|
3
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
4
4
|
import { DismissibleCloseButton, DismissibleRoot } from '../private/useDismissible.js';
|
|
5
5
|
|
|
6
|
-
const { withContext, withProvider } =
|
|
6
|
+
const { withContext, withProvider } = createSlotRecipeContext(callout);
|
|
7
7
|
const CalloutRoot = withProvider(DismissibleRoot, "root");
|
|
8
8
|
const CalloutContent = withContext(
|
|
9
9
|
Primitive.div,
|
|
@@ -8,11 +8,11 @@ const reactCheckbox = require('@seed-design/react-checkbox');
|
|
|
8
8
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
9
9
|
const checkbox = require('@seed-design/css/recipes/checkbox');
|
|
10
10
|
const React = require('react');
|
|
11
|
-
const
|
|
11
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
12
12
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
13
13
|
const Icon = require('../private/Icon.cjs');
|
|
14
14
|
|
|
15
|
-
const { withProvider, withContext, useClassNames } =
|
|
15
|
+
const { withProvider, withContext, useClassNames } = createSlotRecipeContext.createSlotRecipeContext(checkbox.checkbox);
|
|
16
16
|
const withStateProps = createWithStateProps.createWithStateProps([reactCheckbox.useCheckboxContext]);
|
|
17
17
|
const CheckboxRoot = withProvider(
|
|
18
18
|
reactCheckbox.Checkbox.Root,
|
|
@@ -4,11 +4,11 @@ import { Checkbox, useCheckboxContext } from '@seed-design/react-checkbox';
|
|
|
4
4
|
import { Primitive } from '@seed-design/react-primitive';
|
|
5
5
|
import { checkbox } from '@seed-design/css/recipes/checkbox';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
8
8
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
9
9
|
import { InternalIcon } from '../private/Icon.js';
|
|
10
10
|
|
|
11
|
-
const { withProvider, withContext, useClassNames } =
|
|
11
|
+
const { withProvider, withContext, useClassNames } = createSlotRecipeContext(checkbox);
|
|
12
12
|
const withStateProps = createWithStateProps([useCheckboxContext]);
|
|
13
13
|
const CheckboxRoot = withProvider(
|
|
14
14
|
Checkbox.Root,
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const chipTabs = require('@seed-design/css/recipes/chip-tabs');
|
|
6
6
|
const reactTabs = require('@seed-design/react-tabs');
|
|
7
|
-
const
|
|
7
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
8
8
|
|
|
9
|
-
const { withProvider, withContext } =
|
|
9
|
+
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(chipTabs.chipTabs);
|
|
10
10
|
const ChipTabsRoot = withProvider(
|
|
11
11
|
reactTabs.Tabs.Root,
|
|
12
12
|
"root"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { chipTabs } from '@seed-design/css/recipes/chip-tabs';
|
|
2
2
|
import { Tabs } from '@seed-design/react-tabs';
|
|
3
|
-
import {
|
|
3
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
4
4
|
|
|
5
|
-
const { withProvider, withContext } =
|
|
5
|
+
const { withProvider, withContext } = createSlotRecipeContext(chipTabs);
|
|
6
6
|
const ChipTabsRoot = withProvider(
|
|
7
7
|
Tabs.Root,
|
|
8
8
|
"root"
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const controlChip = require('@seed-design/css/recipes/control-chip');
|
|
6
6
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
|
-
const
|
|
7
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
const Icon = require('../Icon/Icon.cjs');
|
|
9
9
|
|
|
10
|
-
const { withProvider } =
|
|
10
|
+
const { withProvider } = createRecipeContext.createRecipeContext(controlChip.controlChip);
|
|
11
11
|
const ControlChip = Icon.withIconRequired(
|
|
12
|
-
withProvider(reactPrimitive.Primitive.button
|
|
12
|
+
withProvider(reactPrimitive.Primitive.button),
|
|
13
13
|
(props) => props.layout === "iconOnly"
|
|
14
14
|
);
|
|
15
15
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { controlChip } from '@seed-design/css/recipes/control-chip';
|
|
2
2
|
import { Primitive } from '@seed-design/react-primitive';
|
|
3
|
-
import {
|
|
3
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
4
|
import { withIconRequired } from '../Icon/Icon.js';
|
|
5
5
|
|
|
6
|
-
const { withProvider } =
|
|
6
|
+
const { withProvider } = createRecipeContext(controlChip);
|
|
7
7
|
const ControlChip = withIconRequired(
|
|
8
|
-
withProvider(Primitive.button
|
|
8
|
+
withProvider(Primitive.button),
|
|
9
9
|
(props) => props.layout === "iconOnly"
|
|
10
10
|
);
|
|
11
11
|
|
|
@@ -7,10 +7,10 @@ const reactDialog = require('@seed-design/react-dialog');
|
|
|
7
7
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
8
8
|
const dialog = require('@seed-design/css/recipes/dialog');
|
|
9
9
|
const React = require('react');
|
|
10
|
-
const
|
|
10
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
11
11
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
12
12
|
|
|
13
|
-
const { withRootProvider, withContext } =
|
|
13
|
+
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(dialog.dialog);
|
|
14
14
|
const withStateProps = createWithStateProps.createWithStateProps([reactDialog.useDialogContext]);
|
|
15
15
|
const DialogRoot = withRootProvider(reactDialog.Dialog.Root, {
|
|
16
16
|
defaultProps: {
|
|
@@ -3,10 +3,10 @@ import { Dialog, useDialogContext } from '@seed-design/react-dialog';
|
|
|
3
3
|
import { Primitive } from '@seed-design/react-primitive';
|
|
4
4
|
import { dialog } from '@seed-design/css/recipes/dialog';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
7
7
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
8
8
|
|
|
9
|
-
const { withRootProvider, withContext } =
|
|
9
|
+
const { withRootProvider, withContext } = createSlotRecipeContext(dialog);
|
|
10
10
|
const withStateProps = createWithStateProps([useDialogContext]);
|
|
11
11
|
const DialogRoot = withRootProvider(Dialog.Root, {
|
|
12
12
|
defaultProps: {
|
|
@@ -6,11 +6,12 @@ const reactDialog = require('@seed-design/react-dialog');
|
|
|
6
6
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
7
|
const extendedActionSheet = require('@seed-design/css/recipes/extended-action-sheet');
|
|
8
8
|
const extendedActionSheetItem = require('@seed-design/css/recipes/extended-action-sheet-item');
|
|
9
|
-
const
|
|
9
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
10
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
10
11
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
11
12
|
|
|
12
|
-
const { withRootProvider, withContext } =
|
|
13
|
-
const { withProvider: withItemProvider } =
|
|
13
|
+
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(extendedActionSheet.extendedActionSheet);
|
|
14
|
+
const { withProvider: withItemProvider } = createRecipeContext.createRecipeContext(extendedActionSheetItem.extendedActionSheetItem);
|
|
14
15
|
const withStateProps = createWithStateProps.createWithStateProps([reactDialog.useDialogContext]);
|
|
15
16
|
const ExtendedActionSheetRoot = withRootProvider(
|
|
16
17
|
reactDialog.Dialog.Root,
|
|
@@ -35,7 +36,7 @@ const ExtendedActionSheetGroup = withContext(
|
|
|
35
36
|
withStateProps(reactPrimitive.Primitive.div),
|
|
36
37
|
"group"
|
|
37
38
|
);
|
|
38
|
-
const ExtendedActionSheetItem = withItemProvider(withStateProps(reactPrimitive.Primitive.button)
|
|
39
|
+
const ExtendedActionSheetItem = withItemProvider(withStateProps(reactPrimitive.Primitive.button));
|
|
39
40
|
const ExtendedActionSheetFooter = withContext(withStateProps(reactPrimitive.Primitive.div), "footer");
|
|
40
41
|
const ExtendedActionSheetCloseButton = withContext(reactDialog.Dialog.CloseButton, "closeButton");
|
|
41
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedActionSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ExtendedActionSheet/ExtendedActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAEL,KAAK,mCAAmC,EACzC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ExtendedActionSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ExtendedActionSheet/ExtendedActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAEL,KAAK,mCAAmC,EACzC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAWpC,MAAM,WAAW,4BACf,SAAQ,+BAA+B,EACrC,eAAe,CAAC,SAAS;CAAG;AAEhC,eAAO,MAAM,uBAAuB,+DAQnC,CAAC;AAIF,MAAM,WAAW,+BAAgC,SAAQ,eAAe,CAAC,YAAY;CAAG;AAExF,eAAO,MAAM,0BAA0B,wGAA0B,CAAC;AAIlE,MAAM,WAAW,kCAAmC,SAAQ,eAAe,CAAC,eAAe;CAAG;AAE9F,eAAO,MAAM,6BAA6B,2GAGC,CAAC;AAI5C,MAAM,WAAW,gCAAiC,SAAQ,eAAe,CAAC,aAAa;CAAG;AAE1F,eAAO,MAAM,2BAA2B,yGAGD,CAAC;AAIxC,MAAM,WAAW,+BAAgC,SAAQ,eAAe,CAAC,YAAY;CAAG;AAExF,eAAO,MAAM,0BAA0B,wGAGF,CAAC;AAItC,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,yBAAyB,uGAGI,CAAC;AAI3C,MAAM,WAAW,6BAA8B,SAAQ,eAAe,CAAC,UAAU;CAAG;AAEpF,eAAO,MAAM,wBAAwB,0GAGG,CAAC;AAIzC,MAAM,WAAW,4BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,uBAAuB,qGAGnC,CAAC;AAIF,MAAM,WAAW,6BAA8B,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE9F,eAAO,MAAM,wBAAwB,sGAGpC,CAAC;AAIF,MAAM,WAAW,4BACf,SAAQ,cAAc,EACpB,mCAAmC,EACnC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC;CAAG;AAE9C,eAAO,MAAM,uBAAuB,wGAGD,CAAC;AAIpC,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,yBAAyB,uGAGI,CAAC;AAI3C,MAAM,WAAW,mCAAoC,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAEhG,eAAO,MAAM,8BAA8B,4GAGE,CAAC"}
|
|
@@ -2,11 +2,12 @@ import { Dialog, useDialogContext } from '@seed-design/react-dialog';
|
|
|
2
2
|
import { Primitive } from '@seed-design/react-primitive';
|
|
3
3
|
import { extendedActionSheet } from '@seed-design/css/recipes/extended-action-sheet';
|
|
4
4
|
import { extendedActionSheetItem } from '@seed-design/css/recipes/extended-action-sheet-item';
|
|
5
|
-
import {
|
|
5
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
6
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
6
7
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
7
8
|
|
|
8
|
-
const { withRootProvider, withContext } =
|
|
9
|
-
const { withProvider: withItemProvider } =
|
|
9
|
+
const { withRootProvider, withContext } = createSlotRecipeContext(extendedActionSheet);
|
|
10
|
+
const { withProvider: withItemProvider } = createRecipeContext(extendedActionSheetItem);
|
|
10
11
|
const withStateProps = createWithStateProps([useDialogContext]);
|
|
11
12
|
const ExtendedActionSheetRoot = withRootProvider(
|
|
12
13
|
Dialog.Root,
|
|
@@ -31,7 +32,7 @@ const ExtendedActionSheetGroup = withContext(
|
|
|
31
32
|
withStateProps(Primitive.div),
|
|
32
33
|
"group"
|
|
33
34
|
);
|
|
34
|
-
const ExtendedActionSheetItem = withItemProvider(withStateProps(Primitive.button)
|
|
35
|
+
const ExtendedActionSheetItem = withItemProvider(withStateProps(Primitive.button));
|
|
35
36
|
const ExtendedActionSheetFooter = withContext(withStateProps(Primitive.div), "footer");
|
|
36
37
|
const ExtendedActionSheetCloseButton = withContext(Dialog.CloseButton, "closeButton");
|
|
37
38
|
|
|
@@ -4,18 +4,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
6
|
const extendedFab = require('@seed-design/css/recipes/extended-fab');
|
|
7
|
-
const
|
|
7
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
|
|
9
|
-
const { withProvider } =
|
|
10
|
-
const ExtendedFab = withProvider(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
defaultProps: {
|
|
15
|
-
variant: "neutralSolid",
|
|
16
|
-
size: "medium"
|
|
17
|
-
}
|
|
9
|
+
const { withProvider } = createRecipeContext.createRecipeContext(extendedFab.extendedFab);
|
|
10
|
+
const ExtendedFab = withProvider(reactPrimitive.Primitive.button, {
|
|
11
|
+
defaultProps: {
|
|
12
|
+
variant: "neutralSolid",
|
|
13
|
+
size: "medium"
|
|
18
14
|
}
|
|
19
|
-
);
|
|
15
|
+
});
|
|
20
16
|
|
|
21
17
|
exports.ExtendedFab = ExtendedFab;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedFab.d.ts","sourceRoot":"","sources":["../../../src/components/ExtendedFab/ExtendedFab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAOlG,MAAM,WAAW,gBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ExtendedFab.d.ts","sourceRoot":"","sources":["../../../src/components/ExtendedFab/ExtendedFab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAOlG,MAAM,WAAW,gBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,WAAW,gHAKtB,CAAC"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { Primitive } from '@seed-design/react-primitive';
|
|
2
2
|
import { extendedFab } from '@seed-design/css/recipes/extended-fab';
|
|
3
|
-
import {
|
|
3
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
4
|
|
|
5
|
-
const { withProvider } =
|
|
6
|
-
const ExtendedFab = withProvider(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
defaultProps: {
|
|
11
|
-
variant: "neutralSolid",
|
|
12
|
-
size: "medium"
|
|
13
|
-
}
|
|
5
|
+
const { withProvider } = createRecipeContext(extendedFab);
|
|
6
|
+
const ExtendedFab = withProvider(Primitive.button, {
|
|
7
|
+
defaultProps: {
|
|
8
|
+
variant: "neutralSolid",
|
|
9
|
+
size: "medium"
|
|
14
10
|
}
|
|
15
|
-
);
|
|
11
|
+
});
|
|
16
12
|
|
|
17
13
|
export { ExtendedFab };
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
6
|
const fab = require('@seed-design/css/recipes/fab');
|
|
7
|
-
const
|
|
7
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
|
|
9
|
-
const { withProvider } =
|
|
10
|
-
const Fab = withProvider(reactPrimitive.Primitive.button
|
|
9
|
+
const { withProvider } = createRecipeContext.createRecipeContext(fab.fab);
|
|
10
|
+
const Fab = withProvider(reactPrimitive.Primitive.button);
|
|
11
11
|
|
|
12
12
|
exports.Fab = Fab;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fab.d.ts","sourceRoot":"","sources":["../../../src/components/Fab/Fab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAO,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC,MAAM,WAAW,QACf,SAAQ,eAAe,EACrB,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"Fab.d.ts","sourceRoot":"","sources":["../../../src/components/Fab/Fab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAO,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC,MAAM,WAAW,QACf,SAAQ,eAAe,EACrB,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,GAAG,oFAA8D,CAAC"}
|