@seed-design/react 0.0.4 → 0.0.5

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 (131) 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/MannerTempBadge/MannerTempBadge.cjs +4 -7
  49. package/lib/components/MannerTempBadge/MannerTempBadge.d.ts +1 -1
  50. package/lib/components/MannerTempBadge/MannerTempBadge.d.ts.map +1 -1
  51. package/lib/components/MannerTempBadge/MannerTempBadge.js +4 -7
  52. package/lib/components/ProgressCircle/ProgressCircle.cjs +2 -2
  53. package/lib/components/ProgressCircle/ProgressCircle.js +2 -2
  54. package/lib/components/PullToRefresh/PullToRefresh.cjs +2 -2
  55. package/lib/components/PullToRefresh/PullToRefresh.js +2 -2
  56. package/lib/components/ReactionButton/ReactionButton.cjs +5 -5
  57. package/lib/components/ReactionButton/ReactionButton.js +5 -5
  58. package/lib/components/SegmentedControl/SegmentedControl.cjs +2 -2
  59. package/lib/components/SegmentedControl/SegmentedControl.js +2 -2
  60. package/lib/components/SelectBox/CheckSelectBox.cjs +8 -8
  61. package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
  62. package/lib/components/SelectBox/CheckSelectBox.js +8 -8
  63. package/lib/components/SelectBox/RadioSelectBox.cjs +7 -7
  64. package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
  65. package/lib/components/SelectBox/RadioSelectBox.js +7 -7
  66. package/lib/components/Skeleton/Skeleton.cjs +3 -6
  67. package/lib/components/Skeleton/Skeleton.d.ts.map +1 -1
  68. package/lib/components/Skeleton/Skeleton.js +3 -6
  69. package/lib/components/Snackbar/Snackbar.cjs +9 -9
  70. package/lib/components/Snackbar/Snackbar.d.ts +1 -1
  71. package/lib/components/Snackbar/Snackbar.d.ts.map +1 -1
  72. package/lib/components/Snackbar/Snackbar.js +9 -9
  73. package/lib/components/Switch/Switch.cjs +2 -2
  74. package/lib/components/Switch/Switch.js +2 -2
  75. package/lib/components/Tabs/Tabs.cjs +2 -2
  76. package/lib/components/Tabs/Tabs.js +2 -2
  77. package/lib/components/Text/Text.cjs +2 -2
  78. package/lib/components/Text/Text.js +2 -2
  79. package/lib/components/TextField/TextField.cjs +2 -2
  80. package/lib/components/TextField/TextField.js +2 -2
  81. package/lib/components/ToggleButton/ToggleButton.cjs +5 -5
  82. package/lib/components/ToggleButton/ToggleButton.js +5 -5
  83. package/lib/components/VisuallyHidden/VisuallyHidden.cjs +3 -6
  84. package/lib/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
  85. package/lib/components/VisuallyHidden/VisuallyHidden.js +3 -6
  86. package/lib/components/private/useDismissible.d.ts +3 -3
  87. package/lib/utils/createRecipeContext.cjs +74 -0
  88. package/lib/utils/createRecipeContext.d.ts +24 -0
  89. package/lib/utils/createRecipeContext.d.ts.map +1 -0
  90. package/lib/utils/createRecipeContext.js +70 -0
  91. package/lib/utils/{createStyleContext.cjs → createSlotRecipeContext.cjs} +2 -2
  92. package/lib/utils/{createStyleContext.d.ts → createSlotRecipeContext.d.ts} +3 -3
  93. package/lib/utils/createSlotRecipeContext.d.ts.map +1 -0
  94. package/lib/utils/{createStyleContext.js → createSlotRecipeContext.js} +2 -2
  95. package/package.json +3 -3
  96. package/src/components/ActionButton/ActionButton.tsx +7 -7
  97. package/src/components/ActionChip/ActionChip.tsx +4 -4
  98. package/src/components/ActionSheet/ActionSheet.tsx +6 -6
  99. package/src/components/Avatar/Avatar.tsx +2 -2
  100. package/src/components/Badge/Badge.tsx +3 -3
  101. package/src/components/BottomSheet/BottomSheet.tsx +2 -2
  102. package/src/components/Callout/Callout.tsx +2 -2
  103. package/src/components/Checkbox/Checkbox.tsx +2 -2
  104. package/src/components/ChipTabs/ChipTabs.tsx +2 -2
  105. package/src/components/ControlChip/ControlChip.tsx +3 -3
  106. package/src/components/Dialog/Dialog.tsx +2 -2
  107. package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +5 -4
  108. package/src/components/ExtendedFab/ExtendedFab.tsx +7 -11
  109. package/src/components/Fab/Fab.tsx +3 -3
  110. package/src/components/HelpBubble/HelpBubble.tsx +7 -4
  111. package/src/components/IdentityPlaceholder/IdentityPlaceholder.tsx +2 -2
  112. package/src/components/InlineBanner/InlineBanner.tsx +2 -2
  113. package/src/components/LinkContent/LinkContent.tsx +2 -4
  114. package/src/components/MannerTempBadge/MannerTempBadge.tsx +4 -7
  115. package/src/components/ProgressCircle/ProgressCircle.tsx +2 -2
  116. package/src/components/PullToRefresh/PullToRefresh.tsx +2 -2
  117. package/src/components/ReactionButton/ReactionButton.tsx +6 -6
  118. package/src/components/SegmentedControl/SegmentedControl.tsx +2 -2
  119. package/src/components/SelectBox/CheckSelectBox.tsx +7 -7
  120. package/src/components/SelectBox/RadioSelectBox.tsx +6 -6
  121. package/src/components/Skeleton/Skeleton.tsx +3 -6
  122. package/src/components/Snackbar/Snackbar.tsx +8 -8
  123. package/src/components/Switch/Switch.tsx +2 -2
  124. package/src/components/Tabs/Tabs.tsx +2 -2
  125. package/src/components/Text/Text.tsx +2 -2
  126. package/src/components/TextField/TextField.tsx +2 -2
  127. package/src/components/ToggleButton/ToggleButton.tsx +6 -6
  128. package/src/components/VisuallyHidden/VisuallyHidden.tsx +3 -6
  129. package/src/utils/createRecipeContext.tsx +114 -0
  130. package/src/utils/{createStyleContext.tsx → createSlotRecipeContext.tsx} +3 -3
  131. package/lib/utils/createStyleContext.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { Primitive } from '@seed-design/react-primitive';
2
2
  import { fab } from '@seed-design/css/recipes/fab';
3
- import { createStyleContext } from '../../utils/createStyleContext.js';
3
+ import { createRecipeContext } from '../../utils/createRecipeContext.js';
4
4
 
5
- const { withProvider } = createStyleContext(fab);
6
- const Fab = withProvider(Primitive.button, "root");
5
+ const { withProvider } = createRecipeContext(fab);
6
+ const Fab = withProvider(Primitive.button);
7
7
 
8
8
  export { Fab };
@@ -7,16 +7,17 @@ const reactPopover = require('@seed-design/react-popover');
7
7
  const reactPrimitive = require('@seed-design/react-primitive');
8
8
  const helpBubble = require('@seed-design/css/recipes/help-bubble');
9
9
  const React = require('react');
10
- const createStyleContext = require('../../utils/createStyleContext.cjs');
10
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
11
11
  const createWithStateProps = require('../../utils/createWithStateProps.cjs');
12
12
  const styled = require('../../utils/styled.cjs');
13
13
 
14
- const { withRootProvider, withContext } = createStyleContext.createStyleContext(helpBubble.helpBubble);
14
+ const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(helpBubble.helpBubble);
15
15
  const withStateProps = createWithStateProps.createWithStateProps([reactPopover.usePopoverContext]);
16
16
  const HelpBubbleRoot = withRootProvider(reactPopover.Popover.Root, {
17
17
  defaultProps: {
18
18
  placement: "top",
19
19
  gutter: 4,
20
+ // TODO: get value from rootage spec
20
21
  overflowPadding: 16,
21
22
  arrowPadding: 14,
22
23
  flip: true,
@@ -44,7 +45,11 @@ const HelpBubbleArrow = withContext(
44
45
  );
45
46
  const HelpBubbleArrowTip = React.forwardRef(
46
47
  (props, ref) => {
47
- const { tipRadius = 1, ...otherProps } = props;
48
+ const {
49
+ tipRadius = 2,
50
+ // TODO: get value from rootage spec
51
+ ...otherProps
52
+ } = props;
48
53
  const api = reactPopover.usePopoverContext();
49
54
  const width = api.rects.arrow?.width || 0;
50
55
  const height = api.rects.arrow?.height || 0;
@@ -1 +1 @@
1
- {"version":3,"file":"HelpBubble.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/HelpBubble.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAqB,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAI/F,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOrE,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB,EAAE,gBAAgB,CAAC,SAAS;CAAG;AAElG,eAAO,MAAM,cAAc,gEAUzB,CAAC;AAIH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,WAAW;CAAG;AAE9E,eAAO,MAAM,gBAAgB,yHAA0B,CAAC;AAIxD,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB,CAAC,YAAY;CAAG;AAEhF,eAAO,MAAM,iBAAiB,6HAA2B,CAAC;AAI1D,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB,CAAC,eAAe;CAAG;AAEtF,eAAO,MAAM,oBAAoB,sHAGhC,CAAC;AAIF,MAAM,WAAW,uBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,kBAAkB,oHAG9B,CAAC;AAIF,MAAM,WAAW,sBACf,SAAQ,cAAc,EACpB,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,EAC5B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,iBAAiB,mHAG7B,CAAC;AAIF,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB,CAAC,UAAU;CAAG;AAE5E,eAAO,MAAM,eAAe,iHAG3B,CAAC;AAIF,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC5E;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,gIA0B9B,CAAC;AAIF,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB,CAAC,gBAAgB;CAAG;AAExF,eAAO,MAAM,qBAAqB,0HAGjC,CAAC;AAIF,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,eAAe,kHAG3B,CAAC;AAIF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,qBAAqB,uHAGjC,CAAC"}
1
+ {"version":3,"file":"HelpBubble.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/HelpBubble.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAqB,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAI/F,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOrE,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB,EAAE,gBAAgB,CAAC,SAAS;CAAG;AAElG,eAAO,MAAM,cAAc,gEAUzB,CAAC;AAIH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,WAAW;CAAG;AAE9E,eAAO,MAAM,gBAAgB,yHAA0B,CAAC;AAIxD,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB,CAAC,YAAY;CAAG;AAEhF,eAAO,MAAM,iBAAiB,6HAA2B,CAAC;AAI1D,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB,CAAC,eAAe;CAAG;AAEtF,eAAO,MAAM,oBAAoB,sHAGhC,CAAC;AAIF,MAAM,WAAW,uBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,kBAAkB,oHAG9B,CAAC;AAIF,MAAM,WAAW,sBACf,SAAQ,cAAc,EACpB,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,EAC5B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,iBAAiB,mHAG7B,CAAC;AAIF,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB,CAAC,UAAU;CAAG;AAE5E,eAAO,MAAM,eAAe,iHAG3B,CAAC;AAIF,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC5E;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,gIA6B9B,CAAC;AAIF,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB,CAAC,gBAAgB;CAAG;AAExF,eAAO,MAAM,qBAAqB,0HAGjC,CAAC;AAIF,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,eAAe,kHAG3B,CAAC;AAIF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,qBAAqB,uHAGjC,CAAC"}
@@ -3,16 +3,17 @@ import { Popover, usePopoverContext } from '@seed-design/react-popover';
3
3
  import { Primitive } from '@seed-design/react-primitive';
4
4
  import { helpBubble } from '@seed-design/css/recipes/help-bubble';
5
5
  import { forwardRef } from 'react';
6
- import { createStyleContext } from '../../utils/createStyleContext.js';
6
+ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
7
7
  import { createWithStateProps } from '../../utils/createWithStateProps.js';
8
8
  import { withStyleProps } from '../../utils/styled.js';
9
9
 
10
- const { withRootProvider, withContext } = createStyleContext(helpBubble);
10
+ const { withRootProvider, withContext } = createSlotRecipeContext(helpBubble);
11
11
  const withStateProps = createWithStateProps([usePopoverContext]);
12
12
  const HelpBubbleRoot = withRootProvider(Popover.Root, {
13
13
  defaultProps: {
14
14
  placement: "top",
15
15
  gutter: 4,
16
+ // TODO: get value from rootage spec
16
17
  overflowPadding: 16,
17
18
  arrowPadding: 14,
18
19
  flip: true,
@@ -40,7 +41,11 @@ const HelpBubbleArrow = withContext(
40
41
  );
41
42
  const HelpBubbleArrowTip = forwardRef(
42
43
  (props, ref) => {
43
- const { tipRadius = 1, ...otherProps } = props;
44
+ const {
45
+ tipRadius = 2,
46
+ // TODO: get value from rootage spec
47
+ ...otherProps
48
+ } = props;
44
49
  const api = usePopoverContext();
45
50
  const width = api.rects.arrow?.width || 0;
46
51
  const height = api.rects.arrow?.height || 0;
@@ -7,7 +7,7 @@ const identityPlaceholder = require('@seed-design/css/recipes/identity-placehold
7
7
  const domUtils = require('@seed-design/dom-utils');
8
8
  const reactPrimitive = require('@seed-design/react-primitive');
9
9
  const React = require('react');
10
- const createStyleContext = require('../../utils/createStyleContext.cjs');
10
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
11
11
 
12
12
  function _interopNamespaceDefault(e) {
13
13
  const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
@@ -28,7 +28,7 @@ function _interopNamespaceDefault(e) {
28
28
 
29
29
  const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
30
30
 
31
- const { useClassNames, withProvider } = createStyleContext.createStyleContext(identityPlaceholder.identityPlaceholder);
31
+ const { useClassNames, withProvider } = createSlotRecipeContext.createSlotRecipeContext(identityPlaceholder.identityPlaceholder);
32
32
  const IdentityPlaceholderRoot = withProvider(
33
33
  reactPrimitive.Primitive.div,
34
34
  "root"
@@ -3,9 +3,9 @@ import { identityPlaceholder } from '@seed-design/css/recipes/identity-placehold
3
3
  import { mergeProps } from '@seed-design/dom-utils';
4
4
  import { Primitive } from '@seed-design/react-primitive';
5
5
  import * as React from 'react';
6
- import { createStyleContext } from '../../utils/createStyleContext.js';
6
+ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
7
7
 
8
- const { useClassNames, withProvider } = createStyleContext(identityPlaceholder);
8
+ const { useClassNames, withProvider } = createSlotRecipeContext(identityPlaceholder);
9
9
  const IdentityPlaceholderRoot = withProvider(
10
10
  Primitive.div,
11
11
  "root"
@@ -4,10 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  const inlineBanner = require('@seed-design/css/recipes/inline-banner');
6
6
  const reactPrimitive = require('@seed-design/react-primitive');
7
- const createStyleContext = require('../../utils/createStyleContext.cjs');
7
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
8
8
  const useDismissible = require('../private/useDismissible.cjs');
9
9
 
10
- const { withContext, withProvider } = createStyleContext.createStyleContext(inlineBanner.inlineBanner);
10
+ const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(inlineBanner.inlineBanner);
11
11
  const InlineBannerRoot = withProvider(
12
12
  useDismissible.DismissibleRoot,
13
13
  "root"
@@ -1,9 +1,9 @@
1
1
  import { inlineBanner } from '@seed-design/css/recipes/inline-banner';
2
2
  import { Primitive } from '@seed-design/react-primitive';
3
- import { createStyleContext } from '../../utils/createStyleContext.js';
3
+ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
4
4
  import { DismissibleCloseButton, DismissibleRoot } from '../private/useDismissible.js';
5
5
 
6
- const { withContext, withProvider } = createStyleContext(inlineBanner);
6
+ const { withContext, withProvider } = createSlotRecipeContext(inlineBanner);
7
7
  const InlineBannerRoot = withProvider(
8
8
  DismissibleRoot,
9
9
  "root"
@@ -4,13 +4,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  const linkContent = require('@seed-design/css/recipes/link-content');
6
6
  const reactPrimitive = require('@seed-design/react-primitive');
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(linkContent.linkContent);
10
+ const { withProvider } = createRecipeContext.createRecipeContext(linkContent.linkContent);
11
11
  const LinkContent = withProvider(
12
- styled.withStyleProps(reactPrimitive.Primitive.span),
13
- "root"
12
+ styled.withStyleProps(reactPrimitive.Primitive.span)
14
13
  );
15
14
 
16
15
  exports.LinkContent = LinkContent;
@@ -1 +1 @@
1
- {"version":3,"file":"LinkContent.d.ts","sourceRoot":"","sources":["../../../src/components/LinkContent/LinkContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrE,MAAM,WAAW,gBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EACzB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CAAG;AAE3D,eAAO,MAAM,WAAW,4FAGvB,CAAC"}
1
+ {"version":3,"file":"LinkContent.d.ts","sourceRoot":"","sources":["../../../src/components/LinkContent/LinkContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrE,MAAM,WAAW,gBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EACzB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CAAG;AAE3D,eAAO,MAAM,WAAW,4FAEvB,CAAC"}
@@ -1,12 +1,11 @@
1
1
  import { linkContent } from '@seed-design/css/recipes/link-content';
2
2
  import { Primitive } from '@seed-design/react-primitive';
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(linkContent);
6
+ const { withProvider } = createRecipeContext(linkContent);
7
7
  const LinkContent = withProvider(
8
- withStyleProps(Primitive.span),
9
- "root"
8
+ withStyleProps(Primitive.span)
10
9
  );
11
10
 
12
11
  export { LinkContent };
@@ -2,14 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const reactPrimitive = require('@seed-design/react-primitive');
6
5
  const mannerTempBadge = require('@seed-design/css/recipes/manner-temp-badge');
7
- const createStyleContext = require('../../utils/createStyleContext.cjs');
6
+ const reactPrimitive = require('@seed-design/react-primitive');
7
+ const createRecipeContext = require('../../utils/createRecipeContext.cjs');
8
8
 
9
- const { withProvider } = createStyleContext.createStyleContext(mannerTempBadge.mannerTempBadge);
10
- const MannerTempBadge = withProvider(
11
- reactPrimitive.Primitive.span,
12
- "root"
13
- );
9
+ const { withProvider } = createRecipeContext.createRecipeContext(mannerTempBadge.mannerTempBadge);
10
+ const MannerTempBadge = withProvider(reactPrimitive.Primitive.span);
14
11
 
15
12
  exports.MannerTempBadge = MannerTempBadge;
@@ -1,5 +1,5 @@
1
- import { PrimitiveProps } from '@seed-design/react-primitive';
2
1
  import { MannerTempBadgeVariantProps } from '@seed-design/css/recipes/manner-temp-badge';
2
+ import { PrimitiveProps } from '@seed-design/react-primitive';
3
3
  import type * as React from "react";
4
4
  export interface MannerTempBadgeProps extends MannerTempBadgeVariantProps, PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MannerTempBadge.d.ts","sourceRoot":"","sources":["../../../src/components/MannerTempBadge/MannerTempBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC,MAAM,WAAW,oBACf,SAAQ,2BAA2B,EACjC,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,eAAe,8FAG3B,CAAC"}
1
+ {"version":3,"file":"MannerTempBadge.d.ts","sourceRoot":"","sources":["../../../src/components/MannerTempBadge/MannerTempBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC,MAAM,WAAW,oBACf,SAAQ,2BAA2B,EACjC,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,eAAe,8FAAsE,CAAC"}
@@ -1,11 +1,8 @@
1
- import { Primitive } from '@seed-design/react-primitive';
2
1
  import { mannerTempBadge } from '@seed-design/css/recipes/manner-temp-badge';
3
- import { createStyleContext } from '../../utils/createStyleContext.js';
2
+ import { Primitive } from '@seed-design/react-primitive';
3
+ import { createRecipeContext } from '../../utils/createRecipeContext.js';
4
4
 
5
- const { withProvider } = createStyleContext(mannerTempBadge);
6
- const MannerTempBadge = withProvider(
7
- Primitive.span,
8
- "root"
9
- );
5
+ const { withProvider } = createRecipeContext(mannerTempBadge);
6
+ const MannerTempBadge = withProvider(Primitive.span);
10
7
 
11
8
  export { MannerTempBadge };
@@ -4,9 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  const reactProgress = require('@seed-design/react-progress');
6
6
  const progressCircle = require('@seed-design/css/recipes/progress-circle');
7
- const createStyleContext = require('../../utils/createStyleContext.cjs');
7
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
8
8
 
9
- const { withContext, withProvider } = createStyleContext.createStyleContext(progressCircle.progressCircle);
9
+ const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(progressCircle.progressCircle);
10
10
  const ProgressCircleRoot = withProvider(
11
11
  reactProgress.ProgressCircle.Root,
12
12
  "root"
@@ -1,8 +1,8 @@
1
1
  import { ProgressCircle } from '@seed-design/react-progress';
2
2
  import { progressCircle } from '@seed-design/css/recipes/progress-circle';
3
- import { createStyleContext } from '../../utils/createStyleContext.js';
3
+ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
4
4
 
5
- const { withContext, withProvider } = createStyleContext(progressCircle);
5
+ const { withContext, withProvider } = createSlotRecipeContext(progressCircle);
6
6
  const ProgressCircleRoot = withProvider(
7
7
  ProgressCircle.Root,
8
8
  "root"
@@ -4,9 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  const reactPullToRefresh = require('@seed-design/react-pull-to-refresh');
6
6
  const pullToRefresh = require('@seed-design/css/recipes/pull-to-refresh');
7
- const createStyleContext = require('../../utils/createStyleContext.cjs');
7
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
8
8
 
9
- const { withContext, withProvider } = createStyleContext.createStyleContext(pullToRefresh.pullToRefresh);
9
+ const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(pullToRefresh.pullToRefresh);
10
10
  const PullToRefreshRoot = withProvider(
11
11
  reactPullToRefresh.PullToRefresh.Root,
12
12
  "root"
@@ -1,8 +1,8 @@
1
1
  import { PullToRefresh } from '@seed-design/react-pull-to-refresh';
2
2
  import { pullToRefresh } from '@seed-design/css/recipes/pull-to-refresh';
3
- import { createStyleContext } from '../../utils/createStyleContext.js';
3
+ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
4
4
 
5
- const { withContext, withProvider } = createStyleContext(pullToRefresh);
5
+ const { withContext, withProvider } = createSlotRecipeContext(pullToRefresh);
6
6
  const PullToRefreshRoot = withProvider(
7
7
  PullToRefresh.Root,
8
8
  "root"
@@ -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;AAE3C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qHAK/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
+ {"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 { 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;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
+ {"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 { 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,22 @@
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
8
  const visuallyHidden = require('@seed-design/css/recipes/visually-hidden');
9
+ const reactPrimitive = require('@seed-design/react-primitive');
10
+ const reactSnackbar = require('@seed-design/react-snackbar');
11
11
  const clsx = require('clsx');
12
12
  const React = require('react');
13
- const createStyleContext = require('../../utils/createStyleContext.cjs');
13
+ const createRecipeContext = require('../../utils/createRecipeContext.cjs');
14
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
14
15
  const Icon = require('../private/Icon.cjs');
15
16
 
16
- const { withProvider: withRegionProvider } = createStyleContext.createStyleContext(snackbarRegion.snackbarRegion);
17
- const { withProvider, withContext } = createStyleContext.createStyleContext(snackbar.snackbar);
17
+ const { withProvider: withRegionProvider } = createRecipeContext.createRecipeContext(snackbarRegion.snackbarRegion);
18
+ const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(snackbar.snackbar);
18
19
  const SnackbarRootProvider = reactSnackbar.Snackbar.RootProvider;
19
20
  const SnackbarRegion = withRegionProvider(
20
- reactSnackbar.Snackbar.Region,
21
- "root"
21
+ reactSnackbar.Snackbar.Region
22
22
  );
23
23
  const SnackbarRoot = withProvider(
24
24
  reactSnackbar.Snackbar.Root,
@@ -39,12 +39,12 @@ const SnackbarActionButton = withContext(
39
39
  const SnackbarCloseButton = React.forwardRef(
40
40
  (props, ref) => {
41
41
  const { className, ...otherProps } = props;
42
- const classNames = React.useMemo(() => visuallyHidden.visuallyHidden(), []);
42
+ const visuallyHiddenClassName = React.useMemo(() => visuallyHidden.visuallyHidden(), []);
43
43
  return /* @__PURE__ */ jsxRuntime.jsx(
44
44
  reactSnackbar.Snackbar.CloseButton,
45
45
  {
46
46
  ref,
47
- className: clsx(classNames.root, className),
47
+ className: clsx(visuallyHiddenClassName, className),
48
48
  ...otherProps
49
49
  }
50
50
  );
@@ -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 {