@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,7 +7,7 @@ const reactionButton = require('@seed-design/css/recipes/reaction-button');
|
|
|
7
7
|
const reactToggle = require('@seed-design/react-toggle');
|
|
8
8
|
const clsx = require('clsx');
|
|
9
9
|
const React = require('react');
|
|
10
|
-
const
|
|
10
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
11
11
|
const usePendingButton = require('../LoadingIndicator/usePendingButton.cjs');
|
|
12
12
|
|
|
13
13
|
function _interopNamespaceDefault(e) {
|
|
@@ -29,16 +29,16 @@ function _interopNamespaceDefault(e) {
|
|
|
29
29
|
|
|
30
30
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
31
31
|
|
|
32
|
-
const {
|
|
32
|
+
const { ClassNameProvider } = createRecipeContext.createRecipeContext(reactionButton.reactionButton);
|
|
33
33
|
const ReactionButton = React__namespace.forwardRef(
|
|
34
34
|
({ size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
35
|
-
const
|
|
35
|
+
const recipeClassName = reactionButton.reactionButton({ size });
|
|
36
36
|
const api = usePendingButton.usePendingButton({ loading, disabled: otherProps.disabled });
|
|
37
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClassNameProvider, { value: recipeClassName, children: /* @__PURE__ */ jsxRuntime.jsx(usePendingButton.PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
38
|
reactToggle.Toggle.Root,
|
|
39
39
|
{
|
|
40
40
|
ref,
|
|
41
|
-
className: clsx(
|
|
41
|
+
className: clsx(recipeClassName, className),
|
|
42
42
|
...api.stateProps,
|
|
43
43
|
...otherProps
|
|
44
44
|
}
|
|
@@ -3,19 +3,19 @@ import { reactionButton } from '@seed-design/css/recipes/reaction-button';
|
|
|
3
3
|
import { Toggle } from '@seed-design/react-toggle';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
7
7
|
import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
|
|
8
8
|
|
|
9
|
-
const {
|
|
9
|
+
const { ClassNameProvider } = createRecipeContext(reactionButton);
|
|
10
10
|
const ReactionButton = React.forwardRef(
|
|
11
11
|
({ size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
12
|
-
const
|
|
12
|
+
const recipeClassName = reactionButton({ size });
|
|
13
13
|
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
+
return /* @__PURE__ */ jsx(ClassNameProvider, { value: recipeClassName, children: /* @__PURE__ */ jsx(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx(
|
|
15
15
|
Toggle.Root,
|
|
16
16
|
{
|
|
17
17
|
ref,
|
|
18
|
-
className: clsx(
|
|
18
|
+
className: clsx(recipeClassName, className),
|
|
19
19
|
...api.stateProps,
|
|
20
20
|
...otherProps
|
|
21
21
|
}
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const segmentedControl = require('@seed-design/css/recipes/segmented-control');
|
|
6
6
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
7
|
const reactSegmentedControl = require('@seed-design/react-segmented-control');
|
|
8
|
-
const
|
|
8
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
9
9
|
|
|
10
|
-
const { withProvider, withContext } =
|
|
10
|
+
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(segmentedControl.segmentedControl);
|
|
11
11
|
const SegmentedControlRoot = withProvider(
|
|
12
12
|
reactSegmentedControl.SegmentedControl.Root,
|
|
13
13
|
"root"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { segmentedControl } from '@seed-design/css/recipes/segmented-control';
|
|
2
2
|
import { Primitive } from '@seed-design/react-primitive';
|
|
3
3
|
import { SegmentedControl } from '@seed-design/react-segmented-control';
|
|
4
|
-
import {
|
|
4
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
5
5
|
|
|
6
|
-
const { withProvider, withContext } =
|
|
6
|
+
const { withProvider, withContext } = createSlotRecipeContext(segmentedControl);
|
|
7
7
|
const SegmentedControlRoot = withProvider(
|
|
8
8
|
SegmentedControl.Root,
|
|
9
9
|
"root"
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const reactCheckbox = require('@seed-design/react-checkbox');
|
|
7
|
-
const reactPrimitive = require('@seed-design/react-primitive');
|
|
8
6
|
const selectBox = require('@seed-design/css/recipes/select-box');
|
|
9
7
|
const selectBoxGroup = require('@seed-design/css/recipes/select-box-group');
|
|
10
|
-
const
|
|
8
|
+
const reactCheckbox = require('@seed-design/react-checkbox');
|
|
9
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
10
|
+
const React = require('react');
|
|
11
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
12
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
11
13
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
12
14
|
const Icon = require('../private/Icon.cjs');
|
|
13
|
-
const React = require('react');
|
|
14
15
|
|
|
15
|
-
const { withProvider: withGroupProvider } =
|
|
16
|
-
const { withProvider, withContext } =
|
|
16
|
+
const { withProvider: withGroupProvider } = createRecipeContext.createRecipeContext(selectBoxGroup.selectBoxGroup);
|
|
17
|
+
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(selectBox.selectBox);
|
|
17
18
|
const withStateProps = createWithStateProps.createWithStateProps([reactCheckbox.useCheckboxContext]);
|
|
18
19
|
const CheckSelectBoxGroup = withGroupProvider(
|
|
19
|
-
React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(reactPrimitive.Primitive.div, { ref, role: "group", ...props }))
|
|
20
|
-
"root"
|
|
20
|
+
React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(reactPrimitive.Primitive.div, { ref, role: "group", ...props }))
|
|
21
21
|
);
|
|
22
22
|
const CheckSelectBoxRoot = withProvider(
|
|
23
23
|
reactCheckbox.Checkbox.Root,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckSelectBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/CheckSelectBox.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CheckSelectBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/CheckSelectBox.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAsB,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9E,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMvE,MAAM,WAAW,wBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qHAI/B,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB,CAAC,SAAS;CAAG;AAE/E,eAAO,MAAM,kBAAkB,sHAG9B,CAAC;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,qBAAqB,uHAGjC,CAAC;AAEF,MAAM,WAAW,wBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,mBAAmB,sHAG/B,CAAC;AAEF,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,yBAAyB,4HAGU,CAAC;AAEjD,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB,CAAC,YAAY;CAAG;AAErF,eAAO,MAAM,qBAAqB,uHAGjC,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;CAAG;AAErE,eAAO,MAAM,kBAAkB,mHAG9B,CAAC;AAEF,MAAM,WAAW,8BAA+B,SAAQ,iBAAiB,CAAC,gBAAgB;CAAG;AAE7F,eAAO,MAAM,yBAAyB,iIAAgC,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Checkbox, useCheckboxContext } from '@seed-design/react-checkbox';
|
|
3
|
-
import { Primitive } from '@seed-design/react-primitive';
|
|
4
2
|
import { selectBox } from '@seed-design/css/recipes/select-box';
|
|
5
3
|
import { selectBoxGroup } from '@seed-design/css/recipes/select-box-group';
|
|
6
|
-
import {
|
|
4
|
+
import { Checkbox, useCheckboxContext } from '@seed-design/react-checkbox';
|
|
5
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
8
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
7
9
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
8
10
|
import { InternalIcon } from '../private/Icon.js';
|
|
9
|
-
import { forwardRef } from 'react';
|
|
10
11
|
|
|
11
|
-
const { withProvider: withGroupProvider } =
|
|
12
|
-
const { withProvider, withContext } =
|
|
12
|
+
const { withProvider: withGroupProvider } = createRecipeContext(selectBoxGroup);
|
|
13
|
+
const { withProvider, withContext } = createSlotRecipeContext(selectBox);
|
|
13
14
|
const withStateProps = createWithStateProps([useCheckboxContext]);
|
|
14
15
|
const CheckSelectBoxGroup = withGroupProvider(
|
|
15
|
-
forwardRef((props, ref) => /* @__PURE__ */ jsx(Primitive.div, { ref, role: "group", ...props }))
|
|
16
|
-
"root"
|
|
16
|
+
forwardRef((props, ref) => /* @__PURE__ */ jsx(Primitive.div, { ref, role: "group", ...props }))
|
|
17
17
|
);
|
|
18
18
|
const CheckSelectBoxRoot = withProvider(
|
|
19
19
|
Checkbox.Root,
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
|
-
const reactRadioGroup = require('@seed-design/react-radio-group');
|
|
7
5
|
const selectBox = require('@seed-design/css/recipes/select-box');
|
|
8
6
|
const selectBoxGroup = require('@seed-design/css/recipes/select-box-group');
|
|
9
|
-
const
|
|
7
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
8
|
+
const reactRadioGroup = require('@seed-design/react-radio-group');
|
|
9
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
10
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
10
11
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
11
12
|
const Icon = require('../private/Icon.cjs');
|
|
12
13
|
|
|
13
|
-
const { withProvider: withGroupProvider } =
|
|
14
|
-
const { withProvider, withContext } =
|
|
14
|
+
const { withProvider: withGroupProvider } = createRecipeContext.createRecipeContext(selectBoxGroup.selectBoxGroup);
|
|
15
|
+
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(selectBox.selectBox);
|
|
15
16
|
const withStateProps = createWithStateProps.createWithStateProps([reactRadioGroup.useRadioGroupItemContext]);
|
|
16
17
|
const RadioSelectBoxRoot = withGroupProvider(
|
|
17
|
-
reactRadioGroup.RadioGroup.Root
|
|
18
|
-
"root"
|
|
18
|
+
reactRadioGroup.RadioGroup.Root
|
|
19
19
|
);
|
|
20
20
|
const RadioSelectBoxItem = withProvider(
|
|
21
21
|
reactRadioGroup.RadioGroup.Item,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioSelectBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/RadioSelectBox.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RadioSelectBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/RadioSelectBox.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,UAAU,IAAI,mBAAmB,EAElC,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMvE,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB,CAAC,SAAS;CAAG;AAEjF,eAAO,MAAM,kBAAkB,oHAE9B,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB,CAAC,SAAS;CAAG;AAEjF,eAAO,MAAM,kBAAkB,sHAG9B,CAAC;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,qBAAqB,uHAGjC,CAAC;AAEF,MAAM,WAAW,wBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,mBAAmB,sHAG/B,CAAC;AAEF,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,yBAAyB,4HAGU,CAAC;AAEjD,MAAM,WAAW,0BAA2B,SAAQ,mBAAmB,CAAC,gBAAgB;CAAG;AAE3F,eAAO,MAAM,qBAAqB,uHAGjC,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;CAAG;AAErE,eAAO,MAAM,kBAAkB,mHAG9B,CAAC;AAEF,MAAM,WAAW,8BAA+B,SAAQ,mBAAmB,CAAC,oBAAoB;CAAG;AAEnG,eAAO,MAAM,yBAAyB,uIAAsC,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Primitive } from '@seed-design/react-primitive';
|
|
2
|
-
import { RadioGroup, useRadioGroupItemContext } from '@seed-design/react-radio-group';
|
|
3
1
|
import { selectBox } from '@seed-design/css/recipes/select-box';
|
|
4
2
|
import { selectBoxGroup } from '@seed-design/css/recipes/select-box-group';
|
|
5
|
-
import {
|
|
3
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
4
|
+
import { RadioGroup, useRadioGroupItemContext } from '@seed-design/react-radio-group';
|
|
5
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
6
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
6
7
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
7
8
|
import { InternalIcon } from '../private/Icon.js';
|
|
8
9
|
|
|
9
|
-
const { withProvider: withGroupProvider } =
|
|
10
|
-
const { withProvider, withContext } =
|
|
10
|
+
const { withProvider: withGroupProvider } = createRecipeContext(selectBoxGroup);
|
|
11
|
+
const { withProvider, withContext } = createSlotRecipeContext(selectBox);
|
|
11
12
|
const withStateProps = createWithStateProps([useRadioGroupItemContext]);
|
|
12
13
|
const RadioSelectBoxRoot = withGroupProvider(
|
|
13
|
-
RadioGroup.Root
|
|
14
|
-
"root"
|
|
14
|
+
RadioGroup.Root
|
|
15
15
|
);
|
|
16
16
|
const RadioSelectBoxItem = withProvider(
|
|
17
17
|
RadioGroup.Item,
|
|
@@ -4,13 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
6
|
const skeleton = require('@seed-design/css/recipes/skeleton');
|
|
7
|
-
const
|
|
7
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
const styled = require('../../utils/styled.cjs');
|
|
9
9
|
|
|
10
|
-
const { withProvider } =
|
|
11
|
-
const Skeleton = withProvider(
|
|
12
|
-
styled.withStyleProps(reactPrimitive.Primitive.div),
|
|
13
|
-
"root"
|
|
14
|
-
);
|
|
10
|
+
const { withProvider } = createRecipeContext.createRecipeContext(skeleton.skeleton);
|
|
11
|
+
const Skeleton = withProvider(styled.withStyleProps(reactPrimitive.Primitive.div));
|
|
15
12
|
|
|
16
13
|
exports.Skeleton = Skeleton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrE,MAAM,WAAW,aACf,SAAQ,oBAAoB,EAC1B,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,OAAO,CAAC,EACpC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrE,MAAM,WAAW,aACf,SAAQ,oBAAoB,EAC1B,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,OAAO,CAAC,EACpC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,QAAQ,sFAA6E,CAAC"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Primitive } from '@seed-design/react-primitive';
|
|
2
2
|
import { skeleton } from '@seed-design/css/recipes/skeleton';
|
|
3
|
-
import {
|
|
3
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
4
|
import { withStyleProps } from '../../utils/styled.js';
|
|
5
5
|
|
|
6
|
-
const { withProvider } =
|
|
7
|
-
const Skeleton = withProvider(
|
|
8
|
-
withStyleProps(Primitive.div),
|
|
9
|
-
"root"
|
|
10
|
-
);
|
|
6
|
+
const { withProvider } = createRecipeContext(skeleton);
|
|
7
|
+
const Skeleton = withProvider(withStyleProps(Primitive.div));
|
|
11
8
|
|
|
12
9
|
export { Skeleton };
|
|
@@ -3,22 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
|
-
const reactSnackbar = require('@seed-design/react-snackbar');
|
|
8
6
|
const snackbar = require('@seed-design/css/recipes/snackbar');
|
|
9
7
|
const snackbarRegion = require('@seed-design/css/recipes/snackbar-region');
|
|
10
|
-
const
|
|
11
|
-
const
|
|
8
|
+
const domUtils = require('@seed-design/dom-utils');
|
|
9
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
10
|
+
const reactSnackbar = require('@seed-design/react-snackbar');
|
|
12
11
|
const React = require('react');
|
|
13
|
-
const
|
|
12
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
13
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
14
14
|
const Icon = require('../private/Icon.cjs');
|
|
15
15
|
|
|
16
|
-
const { withProvider: withRegionProvider } =
|
|
17
|
-
const { withProvider, withContext } =
|
|
16
|
+
const { withProvider: withRegionProvider } = createRecipeContext.createRecipeContext(snackbarRegion.snackbarRegion);
|
|
17
|
+
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(snackbar.snackbar);
|
|
18
18
|
const SnackbarRootProvider = reactSnackbar.Snackbar.RootProvider;
|
|
19
19
|
const SnackbarRegion = withRegionProvider(
|
|
20
|
-
reactSnackbar.Snackbar.Region
|
|
21
|
-
"root"
|
|
20
|
+
reactSnackbar.Snackbar.Region
|
|
22
21
|
);
|
|
23
22
|
const SnackbarRoot = withProvider(
|
|
24
23
|
reactSnackbar.Snackbar.Root,
|
|
@@ -36,26 +35,23 @@ const SnackbarActionButton = withContext(
|
|
|
36
35
|
reactPrimitive.Primitive.button,
|
|
37
36
|
"actionButton"
|
|
38
37
|
);
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
);
|
|
38
|
+
const SnackbarHiddenCloseButton = React.forwardRef((props, ref) => {
|
|
39
|
+
const { style, ...otherProps } = props;
|
|
40
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
+
reactSnackbar.Snackbar.CloseButton,
|
|
42
|
+
{
|
|
43
|
+
ref,
|
|
44
|
+
style: { ...domUtils.visuallyHidden, ...style },
|
|
45
|
+
...otherProps
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
});
|
|
53
49
|
const SnackbarRenderer = reactSnackbar.Snackbar.Renderer;
|
|
54
50
|
const SnackbarAvoidOverlap = reactSnackbar.Snackbar.AvoidOverlap;
|
|
55
51
|
|
|
56
52
|
exports.SnackbarActionButton = SnackbarActionButton;
|
|
57
53
|
exports.SnackbarAvoidOverlap = SnackbarAvoidOverlap;
|
|
58
|
-
exports.
|
|
54
|
+
exports.SnackbarHiddenCloseButton = SnackbarHiddenCloseButton;
|
|
59
55
|
exports.SnackbarMessage = SnackbarMessage;
|
|
60
56
|
exports.SnackbarPrefixIcon = SnackbarPrefixIcon;
|
|
61
57
|
exports.SnackbarRegion = SnackbarRegion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { SnackbarVariantProps } from '@seed-design/css/recipes/snackbar';
|
|
1
2
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
2
3
|
import { Snackbar as SnackbarPrimitive } from '@seed-design/react-snackbar';
|
|
3
|
-
import { SnackbarVariantProps } from '@seed-design/css/recipes/snackbar';
|
|
4
4
|
import { InternalIconProps } from '../private/Icon';
|
|
5
5
|
import { ForwardRefExoticComponent, RefAttributes, ReactNode, ReactElement, JSXElementConstructor } from 'react';
|
|
6
6
|
export interface SnackbarRootProviderProps extends SnackbarPrimitive.RootProviderProps {
|
|
@@ -21,12 +21,12 @@ export declare const SnackbarPrefixIcon: ForwardRefExoticComponent<SnackbarPrefi
|
|
|
21
21
|
export interface SnackbarActionButtonProps extends PrimitiveProps, React.HTMLAttributes<HTMLButtonElement> {
|
|
22
22
|
}
|
|
23
23
|
export declare const SnackbarActionButton: ForwardRefExoticComponent<SnackbarActionButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
24
|
-
export interface
|
|
24
|
+
export interface SnackbarHiddenCloseButtonProps extends SnackbarPrimitive.CloseButtonProps {
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Visually hidden button that closes the snackbar (for screen readers).
|
|
28
28
|
*/
|
|
29
|
-
export declare const
|
|
29
|
+
export declare const SnackbarHiddenCloseButton: ForwardRefExoticComponent<SnackbarHiddenCloseButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
30
30
|
export interface SnackbarRendererProps extends SnackbarPrimitive.RendererProps {
|
|
31
31
|
}
|
|
32
32
|
export declare const SnackbarRenderer: (_props: SnackbarPrimitive.RendererProps) => ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/Snackbar.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/Snackbar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAGxF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAI5E,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOvE,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,CAAC,iBAAiB;CAAG;AAEzF,eAAO,MAAM,oBAAoB,qHAAiC,CAAC;AAInE,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB,EAAE,iBAAiB,CAAC,WAAW;CAAG;AAEnG,eAAO,MAAM,cAAc,gHAE1B,CAAC;AAIF,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB,EAAE,iBAAiB,CAAC,SAAS;CAAG;AAE/F,eAAO,MAAM,YAAY,8GAGxB,CAAC;AAIF,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,eAAe,iHAG3B,CAAC;AAIF,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;CAAG;AAErE,eAAO,MAAM,kBAAkB,oHAG9B,CAAC;AAIF,MAAM,WAAW,yBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC;CAAG;AAE9C,eAAO,MAAM,oBAAoB,yHAGhC,CAAC;AAIF,MAAM,WAAW,8BAA+B,SAAQ,iBAAiB,CAAC,gBAAgB;CAAG;AAE7F;;GAEG;AACH,eAAO,MAAM,yBAAyB,8HAYpC,CAAC;AAIH,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB,CAAC,aAAa;CAAG;AAEjF,eAAO,MAAM,gBAAgB,wEAA6B,CAAC;AAI3D,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,CAAC,iBAAiB;CAAG;AAEzF,eAAO,MAAM,oBAAoB,wIAAiC,CAAC"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Primitive } from '@seed-design/react-primitive';
|
|
3
|
-
import { Snackbar } from '@seed-design/react-snackbar';
|
|
4
2
|
import { snackbar } from '@seed-design/css/recipes/snackbar';
|
|
5
3
|
import { snackbarRegion } from '@seed-design/css/recipes/snackbar-region';
|
|
6
|
-
import { visuallyHidden } from '@seed-design/
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { visuallyHidden } from '@seed-design/dom-utils';
|
|
5
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
6
|
+
import { Snackbar } from '@seed-design/react-snackbar';
|
|
7
|
+
import { forwardRef } from 'react';
|
|
8
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
9
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
10
10
|
import { InternalIcon } from '../private/Icon.js';
|
|
11
11
|
|
|
12
|
-
const { withProvider: withRegionProvider } =
|
|
13
|
-
const { withProvider, withContext } =
|
|
12
|
+
const { withProvider: withRegionProvider } = createRecipeContext(snackbarRegion);
|
|
13
|
+
const { withProvider, withContext } = createSlotRecipeContext(snackbar);
|
|
14
14
|
const SnackbarRootProvider = Snackbar.RootProvider;
|
|
15
15
|
const SnackbarRegion = withRegionProvider(
|
|
16
|
-
Snackbar.Region
|
|
17
|
-
"root"
|
|
16
|
+
Snackbar.Region
|
|
18
17
|
);
|
|
19
18
|
const SnackbarRoot = withProvider(
|
|
20
19
|
Snackbar.Root,
|
|
@@ -32,21 +31,18 @@ const SnackbarActionButton = withContext(
|
|
|
32
31
|
Primitive.button,
|
|
33
32
|
"actionButton"
|
|
34
33
|
);
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
);
|
|
34
|
+
const SnackbarHiddenCloseButton = forwardRef((props, ref) => {
|
|
35
|
+
const { style, ...otherProps } = props;
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
Snackbar.CloseButton,
|
|
38
|
+
{
|
|
39
|
+
ref,
|
|
40
|
+
style: { ...visuallyHidden, ...style },
|
|
41
|
+
...otherProps
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
});
|
|
49
45
|
const SnackbarRenderer = Snackbar.Renderer;
|
|
50
46
|
const SnackbarAvoidOverlap = Snackbar.AvoidOverlap;
|
|
51
47
|
|
|
52
|
-
export { SnackbarActionButton, SnackbarAvoidOverlap,
|
|
48
|
+
export { SnackbarActionButton, SnackbarAvoidOverlap, SnackbarHiddenCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider };
|
|
@@ -8,7 +8,7 @@ const Snackbar = require('./Snackbar.cjs');
|
|
|
8
8
|
|
|
9
9
|
exports.ActionButton = Snackbar.SnackbarActionButton;
|
|
10
10
|
exports.AvoidOverlap = Snackbar.SnackbarAvoidOverlap;
|
|
11
|
-
exports.
|
|
11
|
+
exports.HiddenCloseButton = Snackbar.SnackbarHiddenCloseButton;
|
|
12
12
|
exports.Message = Snackbar.SnackbarMessage;
|
|
13
13
|
exports.PrefixIcon = Snackbar.SnackbarPrefixIcon;
|
|
14
14
|
exports.Region = Snackbar.SnackbarRegion;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SnackbarActionButton as ActionButton, SnackbarAvoidOverlap as AvoidOverlap,
|
|
1
|
+
export { SnackbarActionButton as ActionButton, SnackbarAvoidOverlap as AvoidOverlap, SnackbarHiddenCloseButton as HiddenCloseButton, SnackbarMessage as Message, SnackbarPrefixIcon as PrefixIcon, SnackbarRegion as Region, SnackbarRenderer as Renderer, SnackbarRoot as Root, SnackbarRootProvider as RootProvider, type SnackbarActionButtonProps as ActionButtonProps, type SnackbarAvoidOverlapProps as AvoidOverlapProps, type SnackbarHiddenCloseButtonProps as HiddenCloseButtonProps, type SnackbarMessageProps as MessageProps, type SnackbarPrefixIconProps as PrefixIconProps, type SnackbarRegionProps as RegionProps, type SnackbarRendererProps as RendererProps, type SnackbarRootProps as RootProps, type SnackbarRootProviderProps as RootProviderProps, } from './Snackbar';
|
|
2
2
|
//# sourceMappingURL=Snackbar.namespace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snackbar.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/Snackbar.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,IAAI,YAAY,EACpC,oBAAoB,IAAI,YAAY,EACpC,
|
|
1
|
+
{"version":3,"file":"Snackbar.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/Snackbar.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,IAAI,YAAY,EACpC,oBAAoB,IAAI,YAAY,EACpC,yBAAyB,IAAI,iBAAiB,EAC9C,eAAe,IAAI,OAAO,EAC1B,kBAAkB,IAAI,UAAU,EAChC,cAAc,IAAI,MAAM,EACxB,gBAAgB,IAAI,QAAQ,EAC5B,YAAY,IAAI,IAAI,EACpB,oBAAoB,IAAI,YAAY,EACpC,KAAK,yBAAyB,IAAI,iBAAiB,EACnD,KAAK,yBAAyB,IAAI,iBAAiB,EACnD,KAAK,8BAA8B,IAAI,sBAAsB,EAC7D,KAAK,oBAAoB,IAAI,YAAY,EACzC,KAAK,uBAAuB,IAAI,eAAe,EAC/C,KAAK,mBAAmB,IAAI,WAAW,EACvC,KAAK,qBAAqB,IAAI,aAAa,EAC3C,KAAK,iBAAiB,IAAI,SAAS,EACnC,KAAK,yBAAyB,IAAI,iBAAiB,GACpD,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SnackbarActionButton as ActionButton, SnackbarAvoidOverlap as AvoidOverlap,
|
|
1
|
+
export { SnackbarActionButton as ActionButton, SnackbarAvoidOverlap as AvoidOverlap, SnackbarHiddenCloseButton as HiddenCloseButton, SnackbarMessage as Message, SnackbarPrefixIcon as PrefixIcon, SnackbarRegion as Region, SnackbarRenderer as Renderer, SnackbarRoot as Root, SnackbarRootProvider as RootProvider } from './Snackbar.js';
|
|
@@ -11,7 +11,7 @@ const Snackbar_namespace = require('./Snackbar.namespace.cjs');
|
|
|
11
11
|
|
|
12
12
|
exports.SnackbarActionButton = Snackbar.SnackbarActionButton;
|
|
13
13
|
exports.SnackbarAvoidOverlap = Snackbar.SnackbarAvoidOverlap;
|
|
14
|
-
exports.
|
|
14
|
+
exports.SnackbarHiddenCloseButton = Snackbar.SnackbarHiddenCloseButton;
|
|
15
15
|
exports.SnackbarMessage = Snackbar.SnackbarMessage;
|
|
16
16
|
exports.SnackbarPrefixIcon = Snackbar.SnackbarPrefixIcon;
|
|
17
17
|
exports.SnackbarRegion = Snackbar.SnackbarRegion;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SnackbarActionButton, SnackbarAvoidOverlap,
|
|
1
|
+
export { SnackbarActionButton, SnackbarAvoidOverlap, SnackbarHiddenCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider, type SnackbarActionButtonProps, type SnackbarAvoidOverlapProps, type SnackbarHiddenCloseButtonProps, type SnackbarMessageProps, type SnackbarPrefixIconProps, type SnackbarRegionProps, type SnackbarRendererProps, type SnackbarRootProps, type SnackbarRootProviderProps, } from './Snackbar';
|
|
2
2
|
export { useSnackbarContext, type UseSnackbarContext, type CreateSnackbarOptions, } from '@seed-design/react-snackbar';
|
|
3
3
|
export { useSnackbarAdapter, type UseSnackbarAdapterReturn, } from './useSnackbarAdapter';
|
|
4
4
|
export * as Snackbar from './Snackbar.namespace';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,GAC/B,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,kBAAkB,EAClB,KAAK,wBAAwB,GAC9B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SnackbarActionButton, SnackbarAvoidOverlap,
|
|
1
|
+
export { SnackbarActionButton, SnackbarAvoidOverlap, SnackbarHiddenCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider } from './Snackbar.js';
|
|
2
2
|
export { useSnackbarContext } from '@seed-design/react-snackbar';
|
|
3
3
|
export { useSnackbarAdapter } from './useSnackbarAdapter.js';
|
|
4
4
|
import * as Snackbar_namespace from './Snackbar.namespace.js';
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const reactSwitch = require('@seed-design/react-switch');
|
|
6
6
|
const _switch = require('@seed-design/css/recipes/switch');
|
|
7
|
-
const
|
|
7
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
8
8
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
9
9
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
10
10
|
|
|
11
|
-
const { withProvider, withContext } =
|
|
11
|
+
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(_switch.switchStyle);
|
|
12
12
|
const withStateProps = createWithStateProps.createWithStateProps([reactSwitch.useSwitchContext]);
|
|
13
13
|
const SwitchRoot = withProvider(
|
|
14
14
|
reactSwitch.Switch.Root,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Switch, useSwitchContext } from '@seed-design/react-switch';
|
|
2
2
|
import { switchStyle } from '@seed-design/css/recipes/switch';
|
|
3
|
-
import {
|
|
3
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
4
4
|
import { Primitive } from '@seed-design/react-primitive';
|
|
5
5
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
6
6
|
|
|
7
|
-
const { withProvider, withContext } =
|
|
7
|
+
const { withProvider, withContext } = createSlotRecipeContext(switchStyle);
|
|
8
8
|
const withStateProps = createWithStateProps([useSwitchContext]);
|
|
9
9
|
const SwitchRoot = withProvider(
|
|
10
10
|
Switch.Root,
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
6
|
const reactTabs = require('@seed-design/react-tabs');
|
|
7
7
|
const tabs = require('@seed-design/css/recipes/tabs');
|
|
8
|
-
const
|
|
8
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
9
9
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
10
10
|
|
|
11
|
-
const { withProvider, withContext } =
|
|
11
|
+
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(tabs.tabs);
|
|
12
12
|
const withStateProps = createWithStateProps.createWithStateProps([reactTabs.useTabsContext, reactTabs.useTabsTriggerContext], {
|
|
13
13
|
strict: false
|
|
14
14
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Primitive } from '@seed-design/react-primitive';
|
|
2
2
|
import { Tabs, useTabsContext, useTabsTriggerContext } from '@seed-design/react-tabs';
|
|
3
3
|
import { tabs } from '@seed-design/css/recipes/tabs';
|
|
4
|
-
import {
|
|
4
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
5
5
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
6
6
|
|
|
7
|
-
const { withProvider, withContext } =
|
|
7
|
+
const { withProvider, withContext } = createSlotRecipeContext(tabs);
|
|
8
8
|
const withStateProps = createWithStateProps([useTabsContext, useTabsTriggerContext], {
|
|
9
9
|
strict: false
|
|
10
10
|
});
|
|
@@ -56,7 +56,7 @@ const Text = ({
|
|
|
56
56
|
...otherProps
|
|
57
57
|
}) => {
|
|
58
58
|
const Comp = as || "span";
|
|
59
|
-
const
|
|
59
|
+
const textClassName = React.useMemo(
|
|
60
60
|
() => text.text({
|
|
61
61
|
textStyle,
|
|
62
62
|
maxLines: mapMaxLines(maxLines)
|
|
@@ -66,7 +66,7 @@ const Text = ({
|
|
|
66
66
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
67
|
Comp,
|
|
68
68
|
{
|
|
69
|
-
className: clsx(
|
|
69
|
+
className: clsx(textClassName, className),
|
|
70
70
|
style: {
|
|
71
71
|
"--seed-max-lines": maxLines,
|
|
72
72
|
"--seed-text-color": handleColor(color),
|
|
@@ -52,7 +52,7 @@ const Text = ({
|
|
|
52
52
|
...otherProps
|
|
53
53
|
}) => {
|
|
54
54
|
const Comp = as || "span";
|
|
55
|
-
const
|
|
55
|
+
const textClassName = useMemo(
|
|
56
56
|
() => text({
|
|
57
57
|
textStyle,
|
|
58
58
|
maxLines: mapMaxLines(maxLines)
|
|
@@ -62,7 +62,7 @@ const Text = ({
|
|
|
62
62
|
return /* @__PURE__ */ jsx(
|
|
63
63
|
Comp,
|
|
64
64
|
{
|
|
65
|
-
className: clsx(
|
|
65
|
+
className: clsx(textClassName, className),
|
|
66
66
|
style: {
|
|
67
67
|
"--seed-max-lines": maxLines,
|
|
68
68
|
"--seed-text-color": handleColor(color),
|
|
@@ -9,12 +9,12 @@ const reactTextField = require('@seed-design/react-text-field');
|
|
|
9
9
|
const textField = require('@seed-design/css/recipes/text-field');
|
|
10
10
|
const clsx = require('clsx');
|
|
11
11
|
const React = require('react');
|
|
12
|
-
const
|
|
12
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
13
13
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
14
14
|
const Icon = require('../private/Icon.cjs');
|
|
15
15
|
const reactComposeRefs = require('@radix-ui/react-compose-refs');
|
|
16
16
|
|
|
17
|
-
const { withProvider, withContext, useClassNames } =
|
|
17
|
+
const { withProvider, withContext, useClassNames } = createSlotRecipeContext.createSlotRecipeContext(textField.textField);
|
|
18
18
|
const withStateProps = createWithStateProps.createWithStateProps([reactTextField.useTextFieldContext]);
|
|
19
19
|
const TextFieldRoot = withProvider(
|
|
20
20
|
reactTextField.TextField.Root,
|