@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.
Files changed (146) hide show
  1. package/lib/components/ActionButton/ActionButton.cjs +6 -6
  2. package/lib/components/ActionButton/ActionButton.d.ts.map +1 -1
  3. package/lib/components/ActionButton/ActionButton.js +6 -6
  4. package/lib/components/ActionChip/ActionChip.cjs +4 -4
  5. package/lib/components/ActionChip/ActionChip.d.ts +1 -1
  6. package/lib/components/ActionChip/ActionChip.d.ts.map +1 -1
  7. package/lib/components/ActionChip/ActionChip.js +4 -4
  8. package/lib/components/ActionSheet/ActionSheet.cjs +7 -7
  9. package/lib/components/ActionSheet/ActionSheet.d.ts +2 -2
  10. package/lib/components/ActionSheet/ActionSheet.d.ts.map +1 -1
  11. package/lib/components/ActionSheet/ActionSheet.js +7 -7
  12. package/lib/components/Avatar/Avatar.cjs +2 -2
  13. package/lib/components/Avatar/Avatar.js +2 -2
  14. package/lib/components/Badge/Badge.cjs +3 -3
  15. package/lib/components/Badge/Badge.d.ts.map +1 -1
  16. package/lib/components/Badge/Badge.js +3 -3
  17. package/lib/components/BottomSheet/BottomSheet.cjs +2 -2
  18. package/lib/components/BottomSheet/BottomSheet.js +2 -2
  19. package/lib/components/Callout/Callout.cjs +2 -2
  20. package/lib/components/Callout/Callout.js +2 -2
  21. package/lib/components/Checkbox/Checkbox.cjs +2 -2
  22. package/lib/components/Checkbox/Checkbox.js +2 -2
  23. package/lib/components/ChipTabs/ChipTabs.cjs +2 -2
  24. package/lib/components/ChipTabs/ChipTabs.js +2 -2
  25. package/lib/components/ControlChip/ControlChip.cjs +3 -3
  26. package/lib/components/ControlChip/ControlChip.js +3 -3
  27. package/lib/components/Dialog/Dialog.cjs +2 -2
  28. package/lib/components/Dialog/Dialog.js +2 -2
  29. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +5 -4
  30. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts.map +1 -1
  31. package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +5 -4
  32. package/lib/components/ExtendedFab/ExtendedFab.cjs +7 -11
  33. package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +1 -1
  34. package/lib/components/ExtendedFab/ExtendedFab.js +7 -11
  35. package/lib/components/Fab/Fab.cjs +3 -3
  36. package/lib/components/Fab/Fab.d.ts.map +1 -1
  37. package/lib/components/Fab/Fab.js +3 -3
  38. package/lib/components/HelpBubble/HelpBubble.cjs +8 -3
  39. package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -1
  40. package/lib/components/HelpBubble/HelpBubble.js +8 -3
  41. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.cjs +2 -2
  42. package/lib/components/IdentityPlaceholder/IdentityPlaceholder.js +2 -2
  43. package/lib/components/InlineBanner/InlineBanner.cjs +2 -2
  44. package/lib/components/InlineBanner/InlineBanner.js +2 -2
  45. package/lib/components/LinkContent/LinkContent.cjs +3 -4
  46. package/lib/components/LinkContent/LinkContent.d.ts.map +1 -1
  47. package/lib/components/LinkContent/LinkContent.js +3 -4
  48. package/lib/components/LoadingIndicator/usePendingButton.d.ts +57 -57
  49. package/lib/components/MannerTempBadge/MannerTempBadge.cjs +4 -7
  50. package/lib/components/MannerTempBadge/MannerTempBadge.d.ts +1 -1
  51. package/lib/components/MannerTempBadge/MannerTempBadge.d.ts.map +1 -1
  52. package/lib/components/MannerTempBadge/MannerTempBadge.js +4 -7
  53. package/lib/components/ProgressCircle/ProgressCircle.cjs +2 -2
  54. package/lib/components/ProgressCircle/ProgressCircle.js +2 -2
  55. package/lib/components/PullToRefresh/PullToRefresh.cjs +2 -2
  56. package/lib/components/PullToRefresh/PullToRefresh.js +2 -2
  57. package/lib/components/ReactionButton/ReactionButton.cjs +5 -5
  58. package/lib/components/ReactionButton/ReactionButton.js +5 -5
  59. package/lib/components/SegmentedControl/SegmentedControl.cjs +2 -2
  60. package/lib/components/SegmentedControl/SegmentedControl.js +2 -2
  61. package/lib/components/SelectBox/CheckSelectBox.cjs +8 -8
  62. package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
  63. package/lib/components/SelectBox/CheckSelectBox.js +8 -8
  64. package/lib/components/SelectBox/RadioSelectBox.cjs +7 -7
  65. package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
  66. package/lib/components/SelectBox/RadioSelectBox.js +7 -7
  67. package/lib/components/Skeleton/Skeleton.cjs +3 -6
  68. package/lib/components/Skeleton/Skeleton.d.ts.map +1 -1
  69. package/lib/components/Skeleton/Skeleton.js +3 -6
  70. package/lib/components/Snackbar/Snackbar.cjs +20 -24
  71. package/lib/components/Snackbar/Snackbar.d.ts +3 -3
  72. package/lib/components/Snackbar/Snackbar.d.ts.map +1 -1
  73. package/lib/components/Snackbar/Snackbar.js +21 -25
  74. package/lib/components/Snackbar/Snackbar.namespace.cjs +1 -1
  75. package/lib/components/Snackbar/Snackbar.namespace.d.ts +1 -1
  76. package/lib/components/Snackbar/Snackbar.namespace.d.ts.map +1 -1
  77. package/lib/components/Snackbar/Snackbar.namespace.js +1 -1
  78. package/lib/components/Snackbar/index.cjs +1 -1
  79. package/lib/components/Snackbar/index.d.ts +1 -1
  80. package/lib/components/Snackbar/index.d.ts.map +1 -1
  81. package/lib/components/Snackbar/index.js +1 -1
  82. package/lib/components/Switch/Switch.cjs +2 -2
  83. package/lib/components/Switch/Switch.js +2 -2
  84. package/lib/components/Tabs/Tabs.cjs +2 -2
  85. package/lib/components/Tabs/Tabs.js +2 -2
  86. package/lib/components/Text/Text.cjs +2 -2
  87. package/lib/components/Text/Text.js +2 -2
  88. package/lib/components/TextField/TextField.cjs +2 -2
  89. package/lib/components/TextField/TextField.js +2 -2
  90. package/lib/components/ToggleButton/ToggleButton.cjs +5 -5
  91. package/lib/components/ToggleButton/ToggleButton.js +5 -5
  92. package/lib/components/VisuallyHidden/VisuallyHidden.cjs +8 -8
  93. package/lib/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
  94. package/lib/components/VisuallyHidden/VisuallyHidden.js +7 -7
  95. package/lib/components/index.cjs +1 -1
  96. package/lib/components/index.js +1 -1
  97. package/lib/components/private/useDismissible.d.ts +123 -123
  98. package/lib/index.cjs +1 -1
  99. package/lib/index.js +1 -1
  100. package/lib/utils/createRecipeContext.cjs +74 -0
  101. package/lib/utils/createRecipeContext.d.ts +24 -0
  102. package/lib/utils/createRecipeContext.d.ts.map +1 -0
  103. package/lib/utils/createRecipeContext.js +70 -0
  104. package/lib/utils/{createStyleContext.cjs → createSlotRecipeContext.cjs} +2 -2
  105. package/lib/utils/{createStyleContext.d.ts → createSlotRecipeContext.d.ts} +3 -3
  106. package/lib/utils/createSlotRecipeContext.d.ts.map +1 -0
  107. package/lib/utils/{createStyleContext.js → createSlotRecipeContext.js} +2 -2
  108. package/package.json +3 -3
  109. package/src/components/ActionButton/ActionButton.tsx +7 -7
  110. package/src/components/ActionChip/ActionChip.tsx +4 -4
  111. package/src/components/ActionSheet/ActionSheet.tsx +6 -6
  112. package/src/components/Avatar/Avatar.tsx +2 -2
  113. package/src/components/Badge/Badge.tsx +3 -3
  114. package/src/components/BottomSheet/BottomSheet.tsx +2 -2
  115. package/src/components/Callout/Callout.tsx +2 -2
  116. package/src/components/Checkbox/Checkbox.tsx +2 -2
  117. package/src/components/ChipTabs/ChipTabs.tsx +2 -2
  118. package/src/components/ControlChip/ControlChip.tsx +3 -3
  119. package/src/components/Dialog/Dialog.tsx +2 -2
  120. package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +5 -4
  121. package/src/components/ExtendedFab/ExtendedFab.tsx +7 -11
  122. package/src/components/Fab/Fab.tsx +3 -3
  123. package/src/components/HelpBubble/HelpBubble.tsx +7 -4
  124. package/src/components/IdentityPlaceholder/IdentityPlaceholder.tsx +2 -2
  125. package/src/components/InlineBanner/InlineBanner.tsx +2 -2
  126. package/src/components/LinkContent/LinkContent.tsx +2 -4
  127. package/src/components/MannerTempBadge/MannerTempBadge.tsx +4 -7
  128. package/src/components/ProgressCircle/ProgressCircle.tsx +2 -2
  129. package/src/components/PullToRefresh/PullToRefresh.tsx +2 -2
  130. package/src/components/ReactionButton/ReactionButton.tsx +6 -6
  131. package/src/components/SegmentedControl/SegmentedControl.tsx +2 -2
  132. package/src/components/SelectBox/CheckSelectBox.tsx +7 -7
  133. package/src/components/SelectBox/RadioSelectBox.tsx +6 -6
  134. package/src/components/Skeleton/Skeleton.tsx +3 -6
  135. package/src/components/Snackbar/Snackbar.namespace.ts +2 -2
  136. package/src/components/Snackbar/Snackbar.tsx +22 -23
  137. package/src/components/Snackbar/index.ts +2 -2
  138. package/src/components/Switch/Switch.tsx +2 -2
  139. package/src/components/Tabs/Tabs.tsx +2 -2
  140. package/src/components/Text/Text.tsx +2 -2
  141. package/src/components/TextField/TextField.tsx +2 -2
  142. package/src/components/ToggleButton/ToggleButton.tsx +6 -6
  143. package/src/components/VisuallyHidden/VisuallyHidden.tsx +6 -8
  144. package/src/utils/createRecipeContext.tsx +114 -0
  145. package/src/utils/{createStyleContext.tsx → createSlotRecipeContext.tsx} +3 -3
  146. 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 createStyleContext = require('../../utils/createStyleContext.cjs');
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 { ClassNamesProvider } = createStyleContext.createStyleContext(reactionButton.reactionButton);
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 classNames = reactionButton.reactionButton({ size });
35
+ const recipeClassName = reactionButton.reactionButton({ size });
36
36
  const api = usePendingButton.usePendingButton({ loading, disabled: otherProps.disabled });
37
- return /* @__PURE__ */ jsxRuntime.jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsxRuntime.jsx(usePendingButton.PendingButtonProvider, { value: api, children: /* @__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(classNames.root, className),
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 { createStyleContext } from '../../utils/createStyleContext.js';
6
+ import { createRecipeContext } from '../../utils/createRecipeContext.js';
7
7
  import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
8
8
 
9
- const { ClassNamesProvider } = createStyleContext(reactionButton);
9
+ const { ClassNameProvider } = createRecipeContext(reactionButton);
10
10
  const ReactionButton = React.forwardRef(
11
11
  ({ size = "small", loading = false, className, ...otherProps }, ref) => {
12
- const classNames = reactionButton({ size });
12
+ const recipeClassName = reactionButton({ size });
13
13
  const api = usePendingButton({ loading, disabled: otherProps.disabled });
14
- return /* @__PURE__ */ jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsx(PendingButtonProvider, { value: api, children: /* @__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(classNames.root, className),
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 createStyleContext = require('../../utils/createStyleContext.cjs');
8
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
9
9
 
10
- const { withProvider, withContext } = createStyleContext.createStyleContext(segmentedControl.segmentedControl);
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 { createStyleContext } from '../../utils/createStyleContext.js';
4
+ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
5
5
 
6
- const { withProvider, withContext } = createStyleContext(segmentedControl);
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 createStyleContext = require('../../utils/createStyleContext.cjs');
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 } = createStyleContext.createStyleContext(selectBoxGroup.selectBoxGroup);
16
- const { withProvider, withContext } = createStyleContext.createStyleContext(selectBox.selectBox);
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":";AAAA,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;AAOvE,MAAM,WAAW,wBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG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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 { createStyleContext } from '../../utils/createStyleContext.js';
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 } = createStyleContext(selectBoxGroup);
12
- const { withProvider, withContext } = createStyleContext(selectBox);
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 createStyleContext = require('../../utils/createStyleContext.cjs');
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 } = createStyleContext.createStyleContext(selectBoxGroup.selectBoxGroup);
14
- const { withProvider, withContext } = createStyleContext.createStyleContext(selectBox.selectBox);
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":";AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,UAAU,IAAI,mBAAmB,EAElC,MAAM,gCAAgC,CAAC;AAKxC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMvE,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB,CAAC,SAAS;CAAG;AAEjF,eAAO,MAAM,kBAAkB,oHAG9B,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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M,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 { createStyleContext } from '../../utils/createStyleContext.js';
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 } = createStyleContext(selectBoxGroup);
10
- const { withProvider, withContext } = createStyleContext(selectBox);
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 createStyleContext = require('../../utils/createStyleContext.cjs');
7
+ const createRecipeContext = require('../../utils/createRecipeContext.cjs');
8
8
  const styled = require('../../utils/styled.cjs');
9
9
 
10
- const { withProvider } = createStyleContext.createStyleContext(skeleton.skeleton);
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,sFAGpB,CAAC"}
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 { createStyleContext } from '../../utils/createStyleContext.js';
3
+ import { createRecipeContext } from '../../utils/createRecipeContext.js';
4
4
  import { withStyleProps } from '../../utils/styled.js';
5
5
 
6
- const { withProvider } = createStyleContext(skeleton);
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 visuallyHidden = require('@seed-design/css/recipes/visually-hidden');
11
- const clsx = require('clsx');
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 createStyleContext = require('../../utils/createStyleContext.cjs');
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 } = createStyleContext.createStyleContext(snackbarRegion.snackbarRegion);
17
- const { withProvider, withContext } = createStyleContext.createStyleContext(snackbar.snackbar);
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 SnackbarCloseButton = React.forwardRef(
40
- (props, ref) => {
41
- const { className, ...otherProps } = props;
42
- const classNames = React.useMemo(() => visuallyHidden.visuallyHidden(), []);
43
- return /* @__PURE__ */ jsxRuntime.jsx(
44
- reactSnackbar.Snackbar.CloseButton,
45
- {
46
- ref,
47
- className: clsx(classNames.root, className),
48
- ...otherProps
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.SnackbarCloseButton = SnackbarCloseButton;
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 SnackbarCloseButtonProps extends SnackbarPrimitive.CloseButtonProps {
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 SnackbarCloseButton: ForwardRefExoticComponent<SnackbarCloseButtonProps & RefAttributes<HTMLButtonElement>>;
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,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAMxF,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAA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';
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/css/recipes/visually-hidden';
7
- import clsx from 'clsx';
8
- import { forwardRef, useMemo } from 'react';
9
- import { createStyleContext } from '../../utils/createStyleContext.js';
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 } = createStyleContext(snackbarRegion);
13
- const { withProvider, withContext } = createStyleContext(snackbar);
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 SnackbarCloseButton = forwardRef(
36
- (props, ref) => {
37
- const { className, ...otherProps } = props;
38
- const classNames = useMemo(() => visuallyHidden(), []);
39
- return /* @__PURE__ */ jsx(
40
- Snackbar.CloseButton,
41
- {
42
- ref,
43
- className: clsx(classNames.root, className),
44
- ...otherProps
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, SnackbarCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider };
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.CloseButton = Snackbar.SnackbarCloseButton;
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, SnackbarCloseButton as CloseButton, 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 SnackbarCloseButtonProps as CloseButtonProps, 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';
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,mBAAmB,IAAI,WAAW,EAClC,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,wBAAwB,IAAI,gBAAgB,EACjD,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
+ {"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, SnackbarCloseButton as CloseButton, SnackbarMessage as Message, SnackbarPrefixIcon as PrefixIcon, SnackbarRegion as Region, SnackbarRenderer as Renderer, SnackbarRoot as Root, SnackbarRootProvider as RootProvider } from './Snackbar.js';
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.SnackbarCloseButton = Snackbar.SnackbarCloseButton;
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, SnackbarCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider, type SnackbarActionButtonProps, type SnackbarAvoidOverlapProps, type SnackbarCloseButtonProps, type SnackbarMessageProps, type SnackbarPrefixIconProps, type SnackbarRegionProps, type SnackbarRendererProps, type SnackbarRootProps, type SnackbarRootProviderProps, } from './Snackbar';
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,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,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
+ {"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, SnackbarCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider } from './Snackbar.js';
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 createStyleContext = require('../../utils/createStyleContext.cjs');
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 } = createStyleContext.createStyleContext(_switch.switchStyle);
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 { createStyleContext } from '../../utils/createStyleContext.js';
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 } = createStyleContext(switchStyle);
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 createStyleContext = require('../../utils/createStyleContext.cjs');
8
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
9
9
  const createWithStateProps = require('../../utils/createWithStateProps.cjs');
10
10
 
11
- const { withProvider, withContext } = createStyleContext.createStyleContext(tabs.tabs);
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 { createStyleContext } from '../../utils/createStyleContext.js';
4
+ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
5
5
  import { createWithStateProps } from '../../utils/createWithStateProps.js';
6
6
 
7
- const { withProvider, withContext } = createStyleContext(tabs);
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 classNames = React.useMemo(
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(classNames.root, className),
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 classNames = useMemo(
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(classNames.root, className),
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 createStyleContext = require('../../utils/createStyleContext.cjs');
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 } = createStyleContext.createStyleContext(textField.textField);
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,