@seed-design/react 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/ActionButton/ActionButton.cjs +2 -4
- package/lib/components/ActionButton/ActionButton.d.ts.map +1 -1
- package/lib/components/ActionButton/ActionButton.js +2 -4
- package/lib/components/ActionChip/ActionChip.cjs +2 -2
- package/lib/components/ActionChip/ActionChip.js +2 -2
- package/lib/components/ActionSheet/ActionSheet.cjs +2 -2
- package/lib/components/ActionSheet/ActionSheet.js +2 -2
- package/lib/components/Badge/Badge.cjs +2 -2
- package/lib/components/Badge/Badge.d.ts.map +1 -1
- package/lib/components/Badge/Badge.js +2 -2
- package/lib/components/ControlChip/ControlChip.cjs +2 -2
- package/lib/components/ControlChip/ControlChip.js +2 -2
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +2 -2
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +2 -2
- package/lib/components/ExtendedFab/ExtendedFab.cjs +2 -2
- package/lib/components/ExtendedFab/ExtendedFab.js +2 -2
- package/lib/components/Fab/Fab.cjs +2 -2
- package/lib/components/Fab/Fab.d.ts.map +1 -1
- package/lib/components/Fab/Fab.js +2 -2
- package/lib/components/LinkContent/LinkContent.cjs +2 -2
- package/lib/components/LinkContent/LinkContent.js +2 -2
- package/lib/components/MannerTemp/MannerTemp.cjs +19 -0
- package/lib/components/MannerTemp/MannerTemp.d.ts +7 -0
- package/lib/components/MannerTemp/MannerTemp.d.ts.map +1 -0
- package/lib/components/MannerTemp/MannerTemp.js +15 -0
- package/lib/components/MannerTemp/MannerTempEmote.cjs +632 -0
- package/lib/components/MannerTemp/MannerTempEmote.d.ts +7 -0
- package/lib/components/MannerTemp/MannerTempEmote.d.ts.map +1 -0
- package/lib/components/MannerTemp/MannerTempEmote.js +627 -0
- package/lib/components/MannerTemp/index.cjs +11 -0
- package/lib/components/MannerTemp/index.d.ts +3 -0
- package/lib/components/MannerTemp/index.d.ts.map +1 -0
- package/lib/components/MannerTemp/index.js +2 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.cjs +2 -2
- package/lib/components/MannerTempBadge/MannerTempBadge.d.ts.map +1 -1
- package/lib/components/MannerTempBadge/MannerTempBadge.js +2 -2
- package/lib/components/NotificationBadge/NotificationBadge.cjs +43 -0
- package/lib/components/NotificationBadge/NotificationBadge.d.ts +11 -0
- package/lib/components/NotificationBadge/NotificationBadge.d.ts.map +1 -0
- package/lib/components/NotificationBadge/NotificationBadge.js +20 -0
- package/lib/components/NotificationBadge/index.cjs +10 -0
- package/lib/components/NotificationBadge/index.d.ts +2 -0
- package/lib/components/NotificationBadge/index.d.ts.map +1 -0
- package/lib/components/NotificationBadge/index.js +1 -0
- package/lib/components/ReactionButton/ReactionButton.cjs +2 -4
- package/lib/components/ReactionButton/ReactionButton.d.ts.map +1 -1
- package/lib/components/ReactionButton/ReactionButton.js +2 -4
- package/lib/components/SelectBox/CheckSelectBox.cjs +3 -3
- package/lib/components/SelectBox/CheckSelectBox.js +3 -3
- package/lib/components/SelectBox/RadioSelectBox.cjs +3 -3
- package/lib/components/SelectBox/RadioSelectBox.js +3 -3
- package/lib/components/Skeleton/Skeleton.cjs +2 -2
- package/lib/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/lib/components/Skeleton/Skeleton.js +2 -2
- package/lib/components/Snackbar/Snackbar.cjs +2 -2
- package/lib/components/Snackbar/Snackbar.js +2 -2
- package/lib/components/Tabs/Tabs.cjs +1 -11
- package/lib/components/Tabs/Tabs.d.ts +9 -13
- package/lib/components/Tabs/Tabs.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.js +2 -11
- package/lib/components/Tabs/Tabs.namespace.cjs +0 -1
- package/lib/components/Tabs/Tabs.namespace.d.ts +1 -1
- package/lib/components/Tabs/Tabs.namespace.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.namespace.js +1 -1
- package/lib/components/Tabs/index.cjs +0 -1
- package/lib/components/Tabs/index.d.ts +1 -1
- package/lib/components/Tabs/index.d.ts.map +1 -1
- package/lib/components/Tabs/index.js +1 -1
- package/lib/components/ToggleButton/ToggleButton.cjs +3 -5
- package/lib/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/lib/components/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.js +3 -5
- package/lib/components/index.cjs +7 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +4 -1
- package/lib/index.cjs +7 -1
- package/lib/index.js +4 -1
- package/lib/utils/createRecipeContext.cjs +6 -41
- package/lib/utils/createRecipeContext.d.ts +4 -12
- package/lib/utils/createRecipeContext.d.ts.map +1 -1
- package/lib/utils/createRecipeContext.js +6 -41
- package/lib/utils/createWithStateProps.cjs +1 -1
- package/lib/utils/createWithStateProps.js +1 -1
- package/package.json +3 -3
- package/src/components/ActionButton/ActionButton.tsx +12 -17
- package/src/components/ActionChip/ActionChip.tsx +2 -2
- package/src/components/ActionSheet/ActionSheet.tsx +2 -2
- package/src/components/Badge/Badge.tsx +2 -2
- package/src/components/ControlChip/ControlChip.tsx +2 -2
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +2 -2
- package/src/components/ExtendedFab/ExtendedFab.tsx +2 -2
- package/src/components/Fab/Fab.tsx +2 -2
- package/src/components/LinkContent/LinkContent.tsx +2 -2
- package/src/components/MannerTemp/MannerTemp.tsx +25 -0
- package/src/components/MannerTemp/MannerTempEmote.tsx +464 -0
- package/src/components/MannerTemp/index.ts +2 -0
- package/src/components/MannerTempBadge/MannerTempBadge.tsx +2 -2
- package/src/components/NotificationBadge/NotificationBadge.tsx +47 -0
- package/src/components/NotificationBadge/index.ts +6 -0
- package/src/components/ReactionButton/ReactionButton.tsx +8 -13
- package/src/components/SelectBox/CheckSelectBox.tsx +3 -3
- package/src/components/SelectBox/RadioSelectBox.tsx +3 -3
- package/src/components/Skeleton/Skeleton.tsx +2 -2
- package/src/components/Snackbar/Snackbar.tsx +2 -2
- package/src/components/Tabs/Tabs.namespace.ts +0 -2
- package/src/components/Tabs/Tabs.tsx +1 -22
- package/src/components/Tabs/index.ts +0 -2
- package/src/components/ToggleButton/ToggleButton.tsx +9 -14
- package/src/components/index.ts +2 -0
- package/src/utils/createRecipeContext.tsx +12 -72
|
@@ -6,7 +6,7 @@ const mannerTempBadge = require('@seed-design/css/recipes/manner-temp-badge');
|
|
|
6
6
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
7
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
|
|
9
|
-
const {
|
|
10
|
-
const MannerTempBadge =
|
|
9
|
+
const { withContext } = createRecipeContext.createRecipeContext(mannerTempBadge.mannerTempBadge);
|
|
10
|
+
const MannerTempBadge = withContext(reactPrimitive.Primitive.span);
|
|
11
11
|
|
|
12
12
|
exports.MannerTempBadge = MannerTempBadge;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,8FAAqE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { mannerTempBadge } from '@seed-design/css/recipes/manner-temp-badge';
|
|
|
2
2
|
import { Primitive } from '@seed-design/react-primitive';
|
|
3
3
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
4
|
|
|
5
|
-
const {
|
|
6
|
-
const MannerTempBadge =
|
|
5
|
+
const { withContext } = createRecipeContext(mannerTempBadge);
|
|
6
|
+
const MannerTempBadge = withContext(Primitive.span);
|
|
7
7
|
|
|
8
8
|
export { MannerTempBadge };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
const notificationBadge = require('@seed-design/css/recipes/notification-badge');
|
|
7
|
+
const notificationBadgePositioner = require('@seed-design/css/recipes/notification-badge-positioner');
|
|
8
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
9
|
+
const clsx = require('clsx');
|
|
10
|
+
const React = require('react');
|
|
11
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
12
|
+
|
|
13
|
+
function _interopNamespaceDefault(e) {
|
|
14
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
15
|
+
if (e) {
|
|
16
|
+
for (const k in e) {
|
|
17
|
+
if (k !== 'default') {
|
|
18
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: () => e[k]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
n.default = e;
|
|
27
|
+
return Object.freeze(n);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
31
|
+
|
|
32
|
+
const { withContext, PropsProvider } = createRecipeContext.createRecipeContext(notificationBadge.notificationBadge);
|
|
33
|
+
const NotificationBadge = withContext(
|
|
34
|
+
reactPrimitive.Primitive.span
|
|
35
|
+
);
|
|
36
|
+
const NotificationBadgePositioner = React__namespace.forwardRef((props, ref) => {
|
|
37
|
+
const { attach, size, className, ...otherProps } = props;
|
|
38
|
+
const positionerClassName = notificationBadgePositioner.notificationBadgePositioner({ attach, size });
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PropsProvider, { value: React.useMemo(() => ({ size }), [size]), children: /* @__PURE__ */ jsxRuntime.jsx(reactPrimitive.Primitive.span, { ref, className: clsx(positionerClassName, className), ...otherProps }) });
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
exports.NotificationBadge = NotificationBadge;
|
|
43
|
+
exports.NotificationBadgePositioner = NotificationBadgePositioner;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NotificationBadgeVariantProps } from '@seed-design/css/recipes/notification-badge';
|
|
2
|
+
import { NotificationBadgePositionerVariantProps } from '@seed-design/css/recipes/notification-badge-positioner';
|
|
3
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
export interface NotificationBadgeProps extends NotificationBadgeVariantProps, PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
6
|
+
}
|
|
7
|
+
export declare const NotificationBadge: React.ForwardRefExoticComponent<NotificationBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export interface NotificationBadgePositionerProps extends NotificationBadgePositionerVariantProps, PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const NotificationBadgePositioner: React.ForwardRefExoticComponent<NotificationBadgePositionerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
//# sourceMappingURL=NotificationBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationBadge.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationBadge/NotificationBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAEL,KAAK,uCAAuC,EAC7C,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,sBACf,SAAQ,6BAA6B,EACnC,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,iBAAiB,gGAE7B,CAAC;AAIF,MAAM,WAAW,gCACf,SAAQ,uCAAuC,EAC7C,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,2BAA2B,0GAYtC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { notificationBadge } from '@seed-design/css/recipes/notification-badge';
|
|
3
|
+
import { notificationBadgePositioner } from '@seed-design/css/recipes/notification-badge-positioner';
|
|
4
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { useMemo } from 'react';
|
|
8
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
9
|
+
|
|
10
|
+
const { withContext, PropsProvider } = createRecipeContext(notificationBadge);
|
|
11
|
+
const NotificationBadge = withContext(
|
|
12
|
+
Primitive.span
|
|
13
|
+
);
|
|
14
|
+
const NotificationBadgePositioner = React.forwardRef((props, ref) => {
|
|
15
|
+
const { attach, size, className, ...otherProps } = props;
|
|
16
|
+
const positionerClassName = notificationBadgePositioner({ attach, size });
|
|
17
|
+
return /* @__PURE__ */ jsx(PropsProvider, { value: useMemo(() => ({ size }), [size]), children: /* @__PURE__ */ jsx(Primitive.span, { ref, className: clsx(positionerClassName, className), ...otherProps }) });
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export { NotificationBadge, NotificationBadgePositioner };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const NotificationBadge = require('./NotificationBadge.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.NotificationBadge = NotificationBadge.NotificationBadge;
|
|
10
|
+
exports.NotificationBadgePositioner = NotificationBadge.NotificationBadgePositioner;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationBadge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,2BAA2B,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,GACtC,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationBadge, NotificationBadgePositioner } from './NotificationBadge.js';
|
|
@@ -7,7 +7,6 @@ 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 createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
11
10
|
const usePendingButton = require('../LoadingIndicator/usePendingButton.cjs');
|
|
12
11
|
|
|
13
12
|
function _interopNamespaceDefault(e) {
|
|
@@ -29,12 +28,11 @@ function _interopNamespaceDefault(e) {
|
|
|
29
28
|
|
|
30
29
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
31
30
|
|
|
32
|
-
const { ClassNameProvider } = createRecipeContext.createRecipeContext(reactionButton.reactionButton);
|
|
33
31
|
const ReactionButton = React__namespace.forwardRef(
|
|
34
32
|
({ size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
35
33
|
const recipeClassName = reactionButton.reactionButton({ size });
|
|
36
34
|
const api = usePendingButton.usePendingButton({ loading, disabled: otherProps.disabled });
|
|
37
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsx(usePendingButton.PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
36
|
reactToggle.Toggle.Root,
|
|
39
37
|
{
|
|
40
38
|
ref,
|
|
@@ -42,7 +40,7 @@ const ReactionButton = React__namespace.forwardRef(
|
|
|
42
40
|
...api.stateProps,
|
|
43
41
|
...otherProps
|
|
44
42
|
}
|
|
45
|
-
) })
|
|
43
|
+
) });
|
|
46
44
|
}
|
|
47
45
|
);
|
|
48
46
|
ReactionButton.displayName = "ReactionButton";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ReactionButton/ReactionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ReactionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ReactionButton/ReactionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,mBACf,SAAQ,0BAA0B,EAChC,qBAAqB,EACrB,eAAe,CAAC,SAAS;CAAG;AAEhC,eAAO,MAAM,cAAc,+FAgB1B,CAAC"}
|
|
@@ -3,15 +3,13 @@ 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 { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
7
6
|
import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
|
|
8
7
|
|
|
9
|
-
const { ClassNameProvider } = createRecipeContext(reactionButton);
|
|
10
8
|
const ReactionButton = React.forwardRef(
|
|
11
9
|
({ size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
12
10
|
const recipeClassName = reactionButton({ size });
|
|
13
11
|
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
+
return /* @__PURE__ */ jsx(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx(
|
|
15
13
|
Toggle.Root,
|
|
16
14
|
{
|
|
17
15
|
ref,
|
|
@@ -19,7 +17,7 @@ const ReactionButton = React.forwardRef(
|
|
|
19
17
|
...api.stateProps,
|
|
20
18
|
...otherProps
|
|
21
19
|
}
|
|
22
|
-
) })
|
|
20
|
+
) });
|
|
23
21
|
}
|
|
24
22
|
);
|
|
25
23
|
ReactionButton.displayName = "ReactionButton";
|
|
@@ -13,10 +13,10 @@ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs
|
|
|
13
13
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
14
14
|
const Icon = require('../private/Icon.cjs');
|
|
15
15
|
|
|
16
|
-
const {
|
|
17
|
-
const {
|
|
16
|
+
const { withContext: withGroupContext } = createRecipeContext.createRecipeContext(selectBoxGroup.selectBoxGroup);
|
|
17
|
+
const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(selectBox.selectBox);
|
|
18
18
|
const withStateProps = createWithStateProps.createWithStateProps([reactCheckbox.useCheckboxContext]);
|
|
19
|
-
const CheckSelectBoxGroup =
|
|
19
|
+
const CheckSelectBoxGroup = withGroupContext(
|
|
20
20
|
React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(reactPrimitive.Primitive.div, { ref, role: "group", ...props }))
|
|
21
21
|
);
|
|
22
22
|
const CheckSelectBoxRoot = withProvider(
|
|
@@ -9,10 +9,10 @@ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js'
|
|
|
9
9
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
10
10
|
import { InternalIcon } from '../private/Icon.js';
|
|
11
11
|
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
12
|
+
const { withContext: withGroupContext } = createRecipeContext(selectBoxGroup);
|
|
13
|
+
const { withContext, withProvider } = createSlotRecipeContext(selectBox);
|
|
14
14
|
const withStateProps = createWithStateProps([useCheckboxContext]);
|
|
15
|
-
const CheckSelectBoxGroup =
|
|
15
|
+
const CheckSelectBoxGroup = withGroupContext(
|
|
16
16
|
forwardRef((props, ref) => /* @__PURE__ */ jsx(Primitive.div, { ref, role: "group", ...props }))
|
|
17
17
|
);
|
|
18
18
|
const CheckSelectBoxRoot = withProvider(
|
|
@@ -11,10 +11,10 @@ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs
|
|
|
11
11
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
12
12
|
const Icon = require('../private/Icon.cjs');
|
|
13
13
|
|
|
14
|
-
const {
|
|
15
|
-
const {
|
|
14
|
+
const { withContext: withGroupContext } = createRecipeContext.createRecipeContext(selectBoxGroup.selectBoxGroup);
|
|
15
|
+
const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(selectBox.selectBox);
|
|
16
16
|
const withStateProps = createWithStateProps.createWithStateProps([reactRadioGroup.useRadioGroupItemContext]);
|
|
17
|
-
const RadioSelectBoxRoot =
|
|
17
|
+
const RadioSelectBoxRoot = withGroupContext(
|
|
18
18
|
reactRadioGroup.RadioGroup.Root
|
|
19
19
|
);
|
|
20
20
|
const RadioSelectBoxItem = withProvider(
|
|
@@ -7,10 +7,10 @@ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js'
|
|
|
7
7
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
8
8
|
import { InternalIcon } from '../private/Icon.js';
|
|
9
9
|
|
|
10
|
-
const {
|
|
11
|
-
const {
|
|
10
|
+
const { withContext: withGroupContext } = createRecipeContext(selectBoxGroup);
|
|
11
|
+
const { withContext, withProvider } = createSlotRecipeContext(selectBox);
|
|
12
12
|
const withStateProps = createWithStateProps([useRadioGroupItemContext]);
|
|
13
|
-
const RadioSelectBoxRoot =
|
|
13
|
+
const RadioSelectBoxRoot = withGroupContext(
|
|
14
14
|
RadioGroup.Root
|
|
15
15
|
);
|
|
16
16
|
const RadioSelectBoxItem = withProvider(
|
|
@@ -7,7 +7,7 @@ const skeleton = require('@seed-design/css/recipes/skeleton');
|
|
|
7
7
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
const styled = require('../../utils/styled.cjs');
|
|
9
9
|
|
|
10
|
-
const {
|
|
11
|
-
const Skeleton =
|
|
10
|
+
const { withContext } = createRecipeContext.createRecipeContext(skeleton.skeleton);
|
|
11
|
+
const Skeleton = withContext(styled.withStyleProps(reactPrimitive.Primitive.div));
|
|
12
12
|
|
|
13
13
|
exports.Skeleton = Skeleton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrE,MAAM,WAAW,aACf,SAAQ,oBAAoB,EAC1B,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,OAAO,CAAC,EACpC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrE,MAAM,WAAW,aACf,SAAQ,oBAAoB,EAC1B,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,OAAO,CAAC,EACpC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,QAAQ,sFAA4E,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { skeleton } from '@seed-design/css/recipes/skeleton';
|
|
|
3
3
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
4
|
import { withStyleProps } from '../../utils/styled.js';
|
|
5
5
|
|
|
6
|
-
const {
|
|
7
|
-
const Skeleton =
|
|
6
|
+
const { withContext } = createRecipeContext(skeleton);
|
|
7
|
+
const Skeleton = withContext(withStyleProps(Primitive.div));
|
|
8
8
|
|
|
9
9
|
export { Skeleton };
|
|
@@ -13,10 +13,10 @@ const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
|
13
13
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
14
14
|
const Icon = require('../private/Icon.cjs');
|
|
15
15
|
|
|
16
|
-
const {
|
|
16
|
+
const { withContext: withRegionContext } = createRecipeContext.createRecipeContext(snackbarRegion.snackbarRegion);
|
|
17
17
|
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(snackbar.snackbar);
|
|
18
18
|
const SnackbarRootProvider = reactSnackbar.Snackbar.RootProvider;
|
|
19
|
-
const SnackbarRegion =
|
|
19
|
+
const SnackbarRegion = withRegionContext(
|
|
20
20
|
reactSnackbar.Snackbar.Region
|
|
21
21
|
);
|
|
22
22
|
const SnackbarRoot = withProvider(
|
|
@@ -9,10 +9,10 @@ import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
|
9
9
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
10
10
|
import { InternalIcon } from '../private/Icon.js';
|
|
11
11
|
|
|
12
|
-
const {
|
|
12
|
+
const { withContext: withRegionContext } = createRecipeContext(snackbarRegion);
|
|
13
13
|
const { withProvider, withContext } = createSlotRecipeContext(snackbar);
|
|
14
14
|
const SnackbarRootProvider = Snackbar.RootProvider;
|
|
15
|
-
const SnackbarRegion =
|
|
15
|
+
const SnackbarRegion = withRegionContext(
|
|
16
16
|
Snackbar.Region
|
|
17
17
|
);
|
|
18
18
|
const SnackbarRoot = withProvider(
|
|
@@ -2,26 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
|
-
const reactTabs = require('@seed-design/react-tabs');
|
|
7
5
|
const tabs = require('@seed-design/css/recipes/tabs');
|
|
6
|
+
const reactTabs = require('@seed-design/react-tabs');
|
|
8
7
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
9
|
-
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
10
8
|
|
|
11
9
|
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(tabs.tabs);
|
|
12
|
-
const withStateProps = createWithStateProps.createWithStateProps([reactTabs.useTabsContext, reactTabs.useTabsTriggerContext], {
|
|
13
|
-
strict: false
|
|
14
|
-
});
|
|
15
10
|
const TabsRoot = withProvider(reactTabs.Tabs.Root, "root");
|
|
16
11
|
const TabsList = withContext(reactTabs.Tabs.List, "list");
|
|
17
12
|
const TabsTrigger = withContext(
|
|
18
13
|
reactTabs.Tabs.Trigger,
|
|
19
14
|
"trigger"
|
|
20
15
|
);
|
|
21
|
-
const TabsTriggerNotification = withContext(
|
|
22
|
-
withStateProps(reactPrimitive.Primitive.div),
|
|
23
|
-
"triggerNotification"
|
|
24
|
-
);
|
|
25
16
|
const TabsIndicator = withContext(
|
|
26
17
|
reactTabs.Tabs.Indicator,
|
|
27
18
|
"indicator"
|
|
@@ -46,4 +37,3 @@ exports.TabsIndicator = TabsIndicator;
|
|
|
46
37
|
exports.TabsList = TabsList;
|
|
47
38
|
exports.TabsRoot = TabsRoot;
|
|
48
39
|
exports.TabsTrigger = TabsTrigger;
|
|
49
|
-
exports.TabsTriggerNotification = TabsTriggerNotification;
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
2
|
-
import { Tabs as TabsPrimitive } from '@seed-design/react-tabs';
|
|
3
1
|
import { TabsVariantProps } from '@seed-design/css/recipes/tabs';
|
|
4
|
-
import {
|
|
2
|
+
import { Tabs as TabsPrimitive } from '@seed-design/react-tabs';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
4
|
export interface TabsRootProps extends TabsVariantProps, TabsPrimitive.RootProps {
|
|
6
5
|
}
|
|
7
|
-
export declare const TabsRoot:
|
|
6
|
+
export declare const TabsRoot: ForwardRefExoticComponent<TabsRootProps & RefAttributes<HTMLDivElement>>;
|
|
8
7
|
export interface TabsListProps extends TabsPrimitive.ListProps {
|
|
9
8
|
}
|
|
10
|
-
export declare const TabsList:
|
|
9
|
+
export declare const TabsList: ForwardRefExoticComponent<TabsListProps & RefAttributes<HTMLDivElement>>;
|
|
11
10
|
export interface TabsTriggerProps extends TabsPrimitive.TriggerProps {
|
|
12
11
|
}
|
|
13
|
-
export declare const TabsTrigger:
|
|
14
|
-
export interface TabsTriggerNotificationProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
-
}
|
|
16
|
-
export declare const TabsTriggerNotification: React.ForwardRefExoticComponent<TabsTriggerNotificationProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const TabsTrigger: ForwardRefExoticComponent<TabsTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
17
13
|
export interface TabsIndicatorProps extends TabsPrimitive.IndicatorProps {
|
|
18
14
|
}
|
|
19
|
-
export declare const TabsIndicator:
|
|
15
|
+
export declare const TabsIndicator: ForwardRefExoticComponent<TabsIndicatorProps & RefAttributes<HTMLSpanElement>>;
|
|
20
16
|
export interface TabsContentProps extends TabsPrimitive.ContentProps {
|
|
21
17
|
}
|
|
22
|
-
export declare const TabsContent:
|
|
18
|
+
export declare const TabsContent: ForwardRefExoticComponent<TabsContentProps & RefAttributes<HTMLSpanElement>>;
|
|
23
19
|
export interface TabsCarouselProps extends TabsPrimitive.CarouselProps {
|
|
24
20
|
}
|
|
25
|
-
export declare const TabsCarousel:
|
|
21
|
+
export declare const TabsCarousel: ForwardRefExoticComponent<TabsCarouselProps & RefAttributes<HTMLDivElement>>;
|
|
26
22
|
export interface TabsCarouselCameraProps extends TabsPrimitive.CarouselCameraProps {
|
|
27
23
|
}
|
|
28
|
-
export declare const TabsCarouselCamera:
|
|
24
|
+
export declare const TabsCarouselCamera: ForwardRefExoticComponent<TabsCarouselCameraProps & RefAttributes<HTMLDivElement>>;
|
|
29
25
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAOhE,MAAM,WAAW,aAAc,SAAQ,gBAAgB,EAAE,aAAa,CAAC,SAAS;CAAG;AAEnF,eAAO,MAAM,QAAQ,0GAA0E,CAAC;AAIhG,MAAM,WAAW,aAAc,SAAQ,aAAa,CAAC,SAAS;CAAG;AAEjE,eAAO,MAAM,QAAQ,0GAAyE,CAAC;AAI/F,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,YAAY;CAAG;AAEvE,eAAO,MAAM,WAAW,gHAGvB,CAAC;AAIF,MAAM,WAAW,kBAAmB,SAAQ,aAAa,CAAC,cAAc;CAAG;AAE3E,eAAO,MAAM,aAAa,gHAGzB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,YAAY;CAAG;AAEvE,eAAO,MAAM,WAAW,8GAGvB,CAAC;AAIF,MAAM,WAAW,iBAAkB,SAAQ,aAAa,CAAC,aAAa;CAAG;AAEzE,eAAO,MAAM,YAAY,8GAGxB,CAAC;AAIF,MAAM,WAAW,uBAAwB,SAAQ,aAAa,CAAC,mBAAmB;CAAG;AAErF,eAAO,MAAM,kBAAkB,oHAG9B,CAAC"}
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import { Primitive } from '@seed-design/react-primitive';
|
|
2
|
-
import { Tabs, useTabsContext, useTabsTriggerContext } from '@seed-design/react-tabs';
|
|
3
1
|
import { tabs } from '@seed-design/css/recipes/tabs';
|
|
2
|
+
import { Tabs } from '@seed-design/react-tabs';
|
|
4
3
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
5
|
-
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
6
4
|
|
|
7
5
|
const { withProvider, withContext } = createSlotRecipeContext(tabs);
|
|
8
|
-
const withStateProps = createWithStateProps([useTabsContext, useTabsTriggerContext], {
|
|
9
|
-
strict: false
|
|
10
|
-
});
|
|
11
6
|
const TabsRoot = withProvider(Tabs.Root, "root");
|
|
12
7
|
const TabsList = withContext(Tabs.List, "list");
|
|
13
8
|
const TabsTrigger = withContext(
|
|
14
9
|
Tabs.Trigger,
|
|
15
10
|
"trigger"
|
|
16
11
|
);
|
|
17
|
-
const TabsTriggerNotification = withContext(
|
|
18
|
-
withStateProps(Primitive.div),
|
|
19
|
-
"triggerNotification"
|
|
20
|
-
);
|
|
21
12
|
const TabsIndicator = withContext(
|
|
22
13
|
Tabs.Indicator,
|
|
23
14
|
"indicator"
|
|
@@ -35,4 +26,4 @@ const TabsCarouselCamera = withContext(
|
|
|
35
26
|
"carouselCamera"
|
|
36
27
|
);
|
|
37
28
|
|
|
38
|
-
export { TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger
|
|
29
|
+
export { TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsCarouselCamera as CarouselCamera, TabsCarousel as Carousel, TabsTrigger as Trigger,
|
|
1
|
+
export { TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsCarouselCamera as CarouselCamera, TabsCarousel as Carousel, TabsTrigger as Trigger, type TabsContentProps as ContentProps, type TabsIndicatorProps as IndicatorProps, type TabsListProps as ListProps, type TabsRootProps as RootProps, type TabsCarouselCameraProps as CarouselCameraProps, type TabsCarouselProps as CarouselProps, type TabsTriggerProps as TriggerProps, } from './Tabs';
|
|
2
2
|
//# sourceMappingURL=Tabs.namespace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,OAAO,EACtB,aAAa,IAAI,SAAS,EAC1B,QAAQ,IAAI,IAAI,EAChB,QAAQ,IAAI,IAAI,EAChB,kBAAkB,IAAI,cAAc,EACpC,YAAY,IAAI,QAAQ,EACxB,WAAW,IAAI,OAAO,EACtB,
|
|
1
|
+
{"version":3,"file":"Tabs.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,OAAO,EACtB,aAAa,IAAI,SAAS,EAC1B,QAAQ,IAAI,IAAI,EAChB,QAAQ,IAAI,IAAI,EAChB,kBAAkB,IAAI,cAAc,EACpC,YAAY,IAAI,QAAQ,EACxB,WAAW,IAAI,OAAO,EACtB,KAAK,gBAAgB,IAAI,YAAY,EACrC,KAAK,kBAAkB,IAAI,cAAc,EACzC,KAAK,aAAa,IAAI,SAAS,EAC/B,KAAK,aAAa,IAAI,SAAS,EAC/B,KAAK,uBAAuB,IAAI,mBAAmB,EACnD,KAAK,iBAAiB,IAAI,aAAa,EACvC,KAAK,gBAAgB,IAAI,YAAY,GACtC,MAAM,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TabsCarousel as Carousel, TabsCarouselCamera as CarouselCamera, TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsTrigger as Trigger
|
|
1
|
+
export { TabsCarousel as Carousel, TabsCarouselCamera as CarouselCamera, TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsTrigger as Trigger } from './Tabs.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TabsContent, TabsIndicator, TabsList, TabsRoot, TabsCarouselCamera, TabsCarousel, TabsTrigger,
|
|
1
|
+
export { TabsContent, TabsIndicator, TabsList, TabsRoot, TabsCarouselCamera, TabsCarousel, TabsTrigger, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootProps, type TabsCarouselCameraProps, type TabsCarouselProps, type TabsTriggerProps, } from './Tabs';
|
|
2
2
|
export * as Tabs from './Tabs.namespace';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,QAAQ,CAAC;AAEhB,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger
|
|
1
|
+
export { TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger } from './Tabs.js';
|
|
2
2
|
import * as Tabs_namespace from './Tabs.namespace.js';
|
|
3
3
|
export { Tabs_namespace as Tabs };
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const reactToggle = require('@seed-design/react-toggle');
|
|
7
6
|
const toggleButton = require('@seed-design/css/recipes/toggle-button');
|
|
7
|
+
const reactToggle = require('@seed-design/react-toggle');
|
|
8
8
|
const clsx = require('clsx');
|
|
9
9
|
const React = require('react');
|
|
10
|
-
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
11
10
|
const usePendingButton = require('../LoadingIndicator/usePendingButton.cjs');
|
|
12
11
|
|
|
13
12
|
function _interopNamespaceDefault(e) {
|
|
@@ -29,12 +28,11 @@ function _interopNamespaceDefault(e) {
|
|
|
29
28
|
|
|
30
29
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
31
30
|
|
|
32
|
-
const { ClassNameProvider } = createRecipeContext.createRecipeContext(toggleButton.toggleButton);
|
|
33
31
|
const ToggleButton = React__namespace.forwardRef(
|
|
34
32
|
({ variant = "brandSolid", size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
35
33
|
const recipeClassName = toggleButton.toggleButton({ variant, size });
|
|
36
34
|
const api = usePendingButton.usePendingButton({ loading, disabled: otherProps.disabled });
|
|
37
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsx(usePendingButton.PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
36
|
reactToggle.Toggle.Root,
|
|
39
37
|
{
|
|
40
38
|
ref,
|
|
@@ -42,7 +40,7 @@ const ToggleButton = React__namespace.forwardRef(
|
|
|
42
40
|
...api.stateProps,
|
|
43
41
|
...otherProps
|
|
44
42
|
}
|
|
45
|
-
) })
|
|
43
|
+
) });
|
|
46
44
|
}
|
|
47
45
|
);
|
|
48
46
|
ToggleButton.displayName = "ToggleButton";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Toggle as TogglePrimitive } from '@seed-design/react-toggle';
|
|
2
1
|
import { ToggleButtonVariantProps } from '@seed-design/css/recipes/toggle-button';
|
|
2
|
+
import { Toggle as TogglePrimitive } from '@seed-design/react-toggle';
|
|
3
3
|
import { UsePendingButtonProps } from '../LoadingIndicator/usePendingButton';
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
export interface ToggleButtonProps extends ToggleButtonVariantProps, UsePendingButtonProps, TogglePrimitive.RootProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleButton.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleButton/ToggleButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ToggleButton.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleButton/ToggleButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,iBACf,SAAQ,wBAAwB,EAC9B,qBAAqB,EACrB,eAAe,CAAC,SAAS;CAAG;AAEhC,eAAO,MAAM,YAAY,6FAgBxB,CAAC"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Toggle } from '@seed-design/react-toggle';
|
|
3
2
|
import { toggleButton } from '@seed-design/css/recipes/toggle-button';
|
|
3
|
+
import { Toggle } from '@seed-design/react-toggle';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
7
6
|
import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
|
|
8
7
|
|
|
9
|
-
const { ClassNameProvider } = createRecipeContext(toggleButton);
|
|
10
8
|
const ToggleButton = React.forwardRef(
|
|
11
9
|
({ variant = "brandSolid", size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
12
10
|
const recipeClassName = toggleButton({ variant, size });
|
|
13
11
|
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
+
return /* @__PURE__ */ jsx(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx(
|
|
15
13
|
Toggle.Root,
|
|
16
14
|
{
|
|
17
15
|
ref,
|
|
@@ -19,7 +17,7 @@ const ToggleButton = React.forwardRef(
|
|
|
19
17
|
...api.stateProps,
|
|
20
18
|
...otherProps
|
|
21
19
|
}
|
|
22
|
-
) })
|
|
20
|
+
) });
|
|
23
21
|
}
|
|
24
22
|
);
|
|
25
23
|
ToggleButton.displayName = "ToggleButton";
|
package/lib/components/index.cjs
CHANGED
|
@@ -40,7 +40,10 @@ const InlineBanner = require('./InlineBanner/InlineBanner.cjs');
|
|
|
40
40
|
const InlineBanner_namespace = require('./InlineBanner/InlineBanner.namespace.cjs');
|
|
41
41
|
const LinkContent = require('./LinkContent/LinkContent.cjs');
|
|
42
42
|
const LoadingIndicator = require('./LoadingIndicator/LoadingIndicator.cjs');
|
|
43
|
+
const MannerTemp = require('./MannerTemp/MannerTemp.cjs');
|
|
44
|
+
const MannerTempEmote = require('./MannerTemp/MannerTempEmote.cjs');
|
|
43
45
|
const MannerTempBadge = require('./MannerTempBadge/MannerTempBadge.cjs');
|
|
46
|
+
const NotificationBadge = require('./NotificationBadge/NotificationBadge.cjs');
|
|
44
47
|
const ProgressCircle = require('./ProgressCircle/ProgressCircle.cjs');
|
|
45
48
|
const ProgressCircle_namespace = require('./ProgressCircle/ProgressCircle.namespace.cjs');
|
|
46
49
|
const PullToRefresh = require('./PullToRefresh/PullToRefresh.cjs');
|
|
@@ -185,7 +188,11 @@ exports.InlineBannerTitle = InlineBanner.InlineBannerTitle;
|
|
|
185
188
|
exports.InlineBanner = InlineBanner_namespace;
|
|
186
189
|
exports.LinkContent = LinkContent.LinkContent;
|
|
187
190
|
exports.LoadingIndicator = LoadingIndicator.LoadingIndicator;
|
|
191
|
+
exports.MannerTemp = MannerTemp.MannerTemp;
|
|
192
|
+
exports.MannerTempEmote = MannerTempEmote.MannerTempEmote;
|
|
188
193
|
exports.MannerTempBadge = MannerTempBadge.MannerTempBadge;
|
|
194
|
+
exports.NotificationBadge = NotificationBadge.NotificationBadge;
|
|
195
|
+
exports.NotificationBadgePositioner = NotificationBadge.NotificationBadgePositioner;
|
|
189
196
|
exports.ProgressCircleRange = ProgressCircle.ProgressCircleRange;
|
|
190
197
|
exports.ProgressCircleRoot = ProgressCircle.ProgressCircleRoot;
|
|
191
198
|
exports.ProgressCircleTrack = ProgressCircle.ProgressCircleTrack;
|
|
@@ -248,7 +255,6 @@ exports.TabsIndicator = Tabs.TabsIndicator;
|
|
|
248
255
|
exports.TabsList = Tabs.TabsList;
|
|
249
256
|
exports.TabsRoot = Tabs.TabsRoot;
|
|
250
257
|
exports.TabsTrigger = Tabs.TabsTrigger;
|
|
251
|
-
exports.TabsTriggerNotification = Tabs.TabsTriggerNotification;
|
|
252
258
|
exports.Tabs = Tabs_namespace;
|
|
253
259
|
exports.Text = Text.Text;
|
|
254
260
|
exports.TextFieldCharacterCount = TextField.TextFieldCharacterCount;
|
|
@@ -25,7 +25,9 @@ export * from './Inline';
|
|
|
25
25
|
export * from './InlineBanner';
|
|
26
26
|
export * from './LinkContent';
|
|
27
27
|
export * from './LoadingIndicator';
|
|
28
|
+
export * from './MannerTemp';
|
|
28
29
|
export * from './MannerTempBadge';
|
|
30
|
+
export * from './NotificationBadge';
|
|
29
31
|
export * from './ProgressCircle';
|
|
30
32
|
export * from './PullToRefresh';
|
|
31
33
|
export * from './ReactionButton';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|