@seed-design/react 0.1.4 → 0.1.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.
- package/lib/components/ActionSheet/ActionSheet.d.ts +66 -0
- package/lib/components/ActionSheet/ActionSheet.d.ts.map +1 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts +72 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts.map +1 -1
- package/lib/components/MenuSheet/MenuSheet.cjs +119 -0
- package/lib/components/MenuSheet/MenuSheet.d.ts +42 -0
- package/lib/components/MenuSheet/MenuSheet.d.ts.map +1 -0
- package/lib/components/MenuSheet/MenuSheet.js +85 -0
- package/lib/components/MenuSheet/MenuSheet.namespace.cjs +20 -0
- package/lib/components/MenuSheet/MenuSheet.namespace.d.ts +2 -0
- package/lib/components/MenuSheet/MenuSheet.namespace.d.ts.map +1 -0
- package/lib/components/MenuSheet/MenuSheet.namespace.js +1 -0
- package/lib/components/MenuSheet/index.cjs +22 -0
- package/lib/components/MenuSheet/index.d.ts +3 -0
- package/lib/components/MenuSheet/index.d.ts.map +1 -0
- package/lib/components/MenuSheet/index.js +3 -0
- package/lib/components/index.cjs +15 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +3 -0
- package/lib/index.cjs +15 -0
- package/lib/index.js +3 -0
- package/package.json +3 -3
- package/src/components/ActionSheet/ActionSheet.tsx +66 -0
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +72 -0
- package/src/components/MenuSheet/MenuSheet.namespace.ts +26 -0
- package/src/components/MenuSheet/MenuSheet.tsx +172 -0
- package/src/components/MenuSheet/index.ts +28 -0
- package/src/components/index.ts +1 -0
|
@@ -3,37 +3,103 @@ import { ActionSheetItemVariantProps } from '@seed-design/css/recipes/action-she
|
|
|
3
3
|
import { Dialog as DialogPrimitive } from '@seed-design/react-dialog';
|
|
4
4
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
5
5
|
import type * as React from "react";
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `MenuSheet` instead.
|
|
8
|
+
*/
|
|
6
9
|
export interface ActionSheetRootProps extends ActionSheetVariantProps, DialogPrimitive.RootProps {
|
|
7
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use `MenuSheet` instead.
|
|
13
|
+
*/
|
|
8
14
|
export declare const ActionSheetRoot: React.ForwardRefExoticComponent<ActionSheetRootProps>;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use `MenuSheet` instead.
|
|
17
|
+
*/
|
|
9
18
|
export interface ActionSheetTriggerProps extends DialogPrimitive.TriggerProps {
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `MenuSheet` instead.
|
|
22
|
+
*/
|
|
11
23
|
export declare const ActionSheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `MenuSheet` instead.
|
|
26
|
+
*/
|
|
12
27
|
export interface ActionSheetPositionerProps extends DialogPrimitive.PositionerProps {
|
|
13
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use `MenuSheet` instead.
|
|
31
|
+
*/
|
|
14
32
|
export declare const ActionSheetPositioner: React.ForwardRefExoticComponent<ActionSheetPositionerProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use `MenuSheet` instead.
|
|
35
|
+
*/
|
|
15
36
|
export interface ActionSheetBackdropProps extends DialogPrimitive.BackdropProps {
|
|
16
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use `MenuSheet` instead.
|
|
40
|
+
*/
|
|
17
41
|
export declare const ActionSheetBackdrop: React.ForwardRefExoticComponent<ActionSheetBackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use `MenuSheet` instead.
|
|
44
|
+
*/
|
|
18
45
|
export interface ActionSheetContentProps extends DialogPrimitive.ContentProps {
|
|
19
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated Use `MenuSheet` instead.
|
|
49
|
+
*/
|
|
20
50
|
export declare const ActionSheetContent: React.ForwardRefExoticComponent<ActionSheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Use `MenuSheet` instead.
|
|
53
|
+
*/
|
|
21
54
|
export interface ActionSheetHeaderProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
22
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use `MenuSheet` instead.
|
|
58
|
+
*/
|
|
23
59
|
export declare const ActionSheetHeader: React.ForwardRefExoticComponent<ActionSheetHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Use `MenuSheet` instead.
|
|
62
|
+
*/
|
|
24
63
|
export interface ActionSheetTitleProps extends DialogPrimitive.TitleProps {
|
|
25
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated Use `MenuSheet` instead.
|
|
67
|
+
*/
|
|
26
68
|
export declare const ActionSheetTitle: React.ForwardRefExoticComponent<ActionSheetTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated Use `MenuSheet` instead.
|
|
71
|
+
*/
|
|
27
72
|
export interface ActionSheetDescriptionProps extends DialogPrimitive.DescriptionProps {
|
|
28
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated Use `MenuSheet` instead.
|
|
76
|
+
*/
|
|
29
77
|
export declare const ActionSheetDescription: React.ForwardRefExoticComponent<ActionSheetDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated Use `MenuSheet` instead.
|
|
80
|
+
*/
|
|
30
81
|
export interface ActionSheetListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
31
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Use `MenuSheet` instead.
|
|
85
|
+
*/
|
|
32
86
|
export declare const ActionSheetList: React.ForwardRefExoticComponent<ActionSheetListProps & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated Use `MenuSheet` instead.
|
|
89
|
+
*/
|
|
33
90
|
export interface ActionSheetItemProps extends PrimitiveProps, ActionSheetItemVariantProps, React.HTMLAttributes<HTMLButtonElement> {
|
|
34
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated Use `MenuSheet` instead.
|
|
94
|
+
*/
|
|
35
95
|
export declare const ActionSheetItem: React.ForwardRefExoticComponent<ActionSheetItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated Use `MenuSheet` instead.
|
|
98
|
+
*/
|
|
36
99
|
export interface ActionSheetCloseButtonProps extends DialogPrimitive.CloseButtonProps {
|
|
37
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated Use `MenuSheet` instead.
|
|
103
|
+
*/
|
|
38
104
|
export declare const ActionSheetCloseButton: React.ForwardRefExoticComponent<ActionSheetCloseButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
105
|
//# sourceMappingURL=ActionSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ActionSheet/ActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,K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;CAAG;AAE5E;;GAEG;AACH,eAAO,MAAM,gBAAgB,kGAG5B,CAAC;AAIF;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAExF;;GAEG;AACH,eAAO,MAAM,sBAAsB,0GAGU,CAAC;AAI9C;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAErF;;GAEG;AACH,eAAO,MAAM,eAAe,6FAG3B,CAAC;AAIF;;GAEG;AACH,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,2BAA2B,EAC3B,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC;CAAG;AAE9C;;GAEG;AACH,eAAO,MAAM,eAAe,gGAE3B,CAAC;AAIF;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAExF;;GAEG;AACH,eAAO,MAAM,sBAAsB,oGAGlC,CAAC"}
|
|
@@ -3,40 +3,112 @@ import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
|
3
3
|
import { ExtendedActionSheetVariantProps } from '@seed-design/css/recipes/extended-action-sheet';
|
|
4
4
|
import { ExtendedActionSheetItemVariantProps } from '@seed-design/css/recipes/extended-action-sheet-item';
|
|
5
5
|
import type * as React from "react";
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `MenuSheet` instead.
|
|
8
|
+
*/
|
|
6
9
|
export interface ExtendedActionSheetRootProps extends ExtendedActionSheetVariantProps, DialogPrimitive.RootProps {
|
|
7
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use `MenuSheet` instead.
|
|
13
|
+
*/
|
|
8
14
|
export declare const ExtendedActionSheetRoot: React.ForwardRefExoticComponent<ExtendedActionSheetRootProps>;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use `MenuSheet` instead.
|
|
17
|
+
*/
|
|
9
18
|
export interface ExtendedActionSheetTriggerProps extends DialogPrimitive.TriggerProps {
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `MenuSheet` instead.
|
|
22
|
+
*/
|
|
11
23
|
export declare const ExtendedActionSheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `MenuSheet` instead.
|
|
26
|
+
*/
|
|
12
27
|
export interface ExtendedActionSheetPositionerProps extends DialogPrimitive.PositionerProps {
|
|
13
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use `MenuSheet` instead.
|
|
31
|
+
*/
|
|
14
32
|
export declare const ExtendedActionSheetPositioner: React.ForwardRefExoticComponent<ExtendedActionSheetPositionerProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use `MenuSheet` instead.
|
|
35
|
+
*/
|
|
15
36
|
export interface ExtendedActionSheetBackdropProps extends DialogPrimitive.BackdropProps {
|
|
16
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use `MenuSheet` instead.
|
|
40
|
+
*/
|
|
17
41
|
export declare const ExtendedActionSheetBackdrop: React.ForwardRefExoticComponent<ExtendedActionSheetBackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use `MenuSheet` instead.
|
|
44
|
+
*/
|
|
18
45
|
export interface ExtendedActionSheetContentProps extends DialogPrimitive.ContentProps {
|
|
19
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated Use `MenuSheet` instead.
|
|
49
|
+
*/
|
|
20
50
|
export declare const ExtendedActionSheetContent: React.ForwardRefExoticComponent<ExtendedActionSheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Use `MenuSheet` instead.
|
|
53
|
+
*/
|
|
21
54
|
export interface ExtendedActionSheetHeaderProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
22
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use `MenuSheet` instead.
|
|
58
|
+
*/
|
|
23
59
|
export declare const ExtendedActionSheetHeader: React.ForwardRefExoticComponent<ExtendedActionSheetHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Use `MenuSheet` instead.
|
|
62
|
+
*/
|
|
24
63
|
export interface ExtendedActionSheetTitleProps extends DialogPrimitive.TitleProps {
|
|
25
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated Use `MenuSheet` instead.
|
|
67
|
+
*/
|
|
26
68
|
export declare const ExtendedActionSheetTitle: React.ForwardRefExoticComponent<ExtendedActionSheetTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated Use `MenuSheet` instead.
|
|
71
|
+
*/
|
|
27
72
|
export interface ExtendedActionSheetListProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
28
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated Use `MenuSheet` instead.
|
|
76
|
+
*/
|
|
29
77
|
export declare const ExtendedActionSheetList: React.ForwardRefExoticComponent<ExtendedActionSheetListProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated Use `MenuSheet` instead.
|
|
80
|
+
*/
|
|
30
81
|
export interface ExtendedActionSheetGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
31
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Use `MenuSheet` instead.
|
|
85
|
+
*/
|
|
32
86
|
export declare const ExtendedActionSheetGroup: React.ForwardRefExoticComponent<ExtendedActionSheetGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated Use `MenuSheet` instead.
|
|
89
|
+
*/
|
|
33
90
|
export interface ExtendedActionSheetItemProps extends PrimitiveProps, ExtendedActionSheetItemVariantProps, React.HTMLAttributes<HTMLButtonElement> {
|
|
34
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated Use `MenuSheet` instead.
|
|
94
|
+
*/
|
|
35
95
|
export declare const ExtendedActionSheetItem: React.ForwardRefExoticComponent<ExtendedActionSheetItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated Use `MenuSheet` instead.
|
|
98
|
+
*/
|
|
36
99
|
export interface ExtendedActionSheetFooterProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
37
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated Use `MenuSheet` instead.
|
|
103
|
+
*/
|
|
38
104
|
export declare const ExtendedActionSheetFooter: React.ForwardRefExoticComponent<ExtendedActionSheetFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Use `MenuSheet` instead.
|
|
107
|
+
*/
|
|
39
108
|
export interface ExtendedActionSheetCloseButtonProps extends DialogPrimitive.CloseButtonProps {
|
|
40
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated Use `MenuSheet` instead.
|
|
112
|
+
*/
|
|
41
113
|
export declare const ExtendedActionSheetCloseButton: React.ForwardRefExoticComponent<ExtendedActionSheetCloseButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
114
|
//# sourceMappingURL=ExtendedActionSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedActionSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ExtendedActionSheet/ExtendedActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,gDAAgD,CAAC;AACxD,OAA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AM,0BAA0B,wGAGF,CAAC;AAItC;;GAEG;AACH,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C;;GAEG;AACH,eAAO,MAAM,yBAAyB,uGAGI,CAAC;AAI3C;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,eAAe,CAAC,UAAU;CAAG;AAEpF;;GAEG;AACH,eAAO,MAAM,wBAAwB,0GAGG,CAAC;AAIzC;;GAEG;AACH,MAAM,WAAW,4BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C;;GAEG;AACH,eAAO,MAAM,uBAAuB,qGAGnC,CAAC;AAIF;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE9F;;GAEG;AACH,eAAO,MAAM,wBAAwB,sGAGpC,CAAC;AAIF;;GAEG;AACH,MAAM,WAAW,4BACf,SAAQ,cAAc,EACpB,mCAAmC,EACnC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC;CAAG;AAE9C;;GAEG;AACH,eAAO,MAAM,uBAAuB,wGAGD,CAAC;AAIpC;;GAEG;AACH,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C;;GAEG;AACH,eAAO,MAAM,yBAAyB,uGAGI,CAAC;AAI3C;;GAEG;AACH,MAAM,WAAW,mCAAoC,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAEhG;;GAEG;AACH,eAAO,MAAM,8BAA8B,4GAGE,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const reactDialog = require('@seed-design/react-dialog');
|
|
8
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
9
|
+
const menuSheet = require('@seed-design/css/recipes/menu-sheet');
|
|
10
|
+
const menuSheetItem = require('@seed-design/css/recipes/menu-sheet-item');
|
|
11
|
+
const React = require('react');
|
|
12
|
+
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
13
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
14
|
+
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
15
|
+
|
|
16
|
+
function _interopNamespaceDefault(e) {
|
|
17
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
18
|
+
if (e) {
|
|
19
|
+
for (const k in e) {
|
|
20
|
+
if (k !== 'default') {
|
|
21
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
22
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: () => e[k]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
n.default = e;
|
|
30
|
+
return Object.freeze(n);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
34
|
+
|
|
35
|
+
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(menuSheet.menuSheet);
|
|
36
|
+
const {
|
|
37
|
+
withContext: withItemContext,
|
|
38
|
+
PropsProvider: ItemPropsProvider,
|
|
39
|
+
useProps: useItemProps
|
|
40
|
+
} = createRecipeContext.createRecipeContext(menuSheetItem.menuSheetItem);
|
|
41
|
+
const withStateProps = createWithStateProps.createWithStateProps([reactDialog.useDialogContext]);
|
|
42
|
+
const MenuSheetRoot = withRootProvider(reactDialog.Dialog.Root, {
|
|
43
|
+
defaultProps: {
|
|
44
|
+
lazyMount: true,
|
|
45
|
+
unmountOnExit: true
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
const MenuSheetTrigger = reactDialog.Dialog.Trigger;
|
|
49
|
+
const MenuSheetPositioner = withContext(
|
|
50
|
+
reactDialog.Dialog.Positioner,
|
|
51
|
+
"positioner"
|
|
52
|
+
);
|
|
53
|
+
const MenuSheetBackdrop = withContext(
|
|
54
|
+
reactDialog.Dialog.Backdrop,
|
|
55
|
+
"backdrop"
|
|
56
|
+
);
|
|
57
|
+
const MenuSheetContentBase = withContext(
|
|
58
|
+
reactDialog.Dialog.Content,
|
|
59
|
+
"content"
|
|
60
|
+
);
|
|
61
|
+
const MenuSheetContent = React__namespace.forwardRef(
|
|
62
|
+
({ labelAlign, children, ...props }, ref) => {
|
|
63
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ItemPropsProvider, { value: React__namespace.useMemo(() => ({ labelAlign }), [labelAlign]), children: /* @__PURE__ */ jsxRuntime.jsx(MenuSheetContentBase, { ref, ...props, children }) });
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
const MenuSheetHeader = withContext(
|
|
67
|
+
withStateProps(reactPrimitive.Primitive.div),
|
|
68
|
+
"header"
|
|
69
|
+
);
|
|
70
|
+
const MenuSheetTitle = withContext(
|
|
71
|
+
withStateProps(reactPrimitive.Primitive.h2),
|
|
72
|
+
"title"
|
|
73
|
+
);
|
|
74
|
+
const MenuSheetList = withContext(
|
|
75
|
+
withStateProps(reactPrimitive.Primitive.div),
|
|
76
|
+
"list"
|
|
77
|
+
);
|
|
78
|
+
const MenuSheetGroupBase = withContext(
|
|
79
|
+
withStateProps(reactPrimitive.Primitive.div),
|
|
80
|
+
"group"
|
|
81
|
+
);
|
|
82
|
+
const MenuSheetGroup = React__namespace.forwardRef(
|
|
83
|
+
({ labelAlign: overriddenLabelAlign, children, ...props }, ref) => {
|
|
84
|
+
const parentProps = useItemProps();
|
|
85
|
+
const labelAlign = overriddenLabelAlign ?? parentProps?.labelAlign;
|
|
86
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ItemPropsProvider, { value: React__namespace.useMemo(() => ({ labelAlign }), [labelAlign]), children: /* @__PURE__ */ jsxRuntime.jsx(MenuSheetGroupBase, { ref, ...props, children }) });
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
const MenuSheetItemBase = withItemContext(
|
|
90
|
+
withStateProps(reactPrimitive.Primitive.button)
|
|
91
|
+
);
|
|
92
|
+
const MenuSheetItem = React__namespace.forwardRef(
|
|
93
|
+
({ labelAlign: overriddenLabelAlign, ...props }, ref) => {
|
|
94
|
+
const parentProps = useItemProps();
|
|
95
|
+
const labelAlign = overriddenLabelAlign ?? parentProps?.labelAlign;
|
|
96
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MenuSheetItemBase, { ref, labelAlign, ...props });
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
const MenuSheetFooter = withContext(
|
|
100
|
+
withStateProps(reactPrimitive.Primitive.div),
|
|
101
|
+
"footer"
|
|
102
|
+
);
|
|
103
|
+
const MenuSheetCloseButton = withContext(
|
|
104
|
+
reactDialog.Dialog.CloseButton,
|
|
105
|
+
"closeButton"
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
exports.MenuSheetBackdrop = MenuSheetBackdrop;
|
|
109
|
+
exports.MenuSheetCloseButton = MenuSheetCloseButton;
|
|
110
|
+
exports.MenuSheetContent = MenuSheetContent;
|
|
111
|
+
exports.MenuSheetFooter = MenuSheetFooter;
|
|
112
|
+
exports.MenuSheetGroup = MenuSheetGroup;
|
|
113
|
+
exports.MenuSheetHeader = MenuSheetHeader;
|
|
114
|
+
exports.MenuSheetItem = MenuSheetItem;
|
|
115
|
+
exports.MenuSheetList = MenuSheetList;
|
|
116
|
+
exports.MenuSheetPositioner = MenuSheetPositioner;
|
|
117
|
+
exports.MenuSheetRoot = MenuSheetRoot;
|
|
118
|
+
exports.MenuSheetTitle = MenuSheetTitle;
|
|
119
|
+
exports.MenuSheetTrigger = MenuSheetTrigger;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from '@seed-design/react-dialog';
|
|
2
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
|
+
import { MenuSheetVariantProps } from '@seed-design/css/recipes/menu-sheet';
|
|
4
|
+
import { MenuSheetItemVariantProps } from '@seed-design/css/recipes/menu-sheet-item';
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
export interface MenuSheetRootProps extends MenuSheetVariantProps, DialogPrimitive.RootProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const MenuSheetRoot: React.ForwardRefExoticComponent<MenuSheetRootProps>;
|
|
9
|
+
export interface MenuSheetTriggerProps extends DialogPrimitive.TriggerProps {
|
|
10
|
+
}
|
|
11
|
+
export declare const MenuSheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export interface MenuSheetPositionerProps extends DialogPrimitive.PositionerProps {
|
|
13
|
+
}
|
|
14
|
+
export declare const MenuSheetPositioner: React.ForwardRefExoticComponent<MenuSheetPositionerProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export interface MenuSheetBackdropProps extends DialogPrimitive.BackdropProps {
|
|
16
|
+
}
|
|
17
|
+
export declare const MenuSheetBackdrop: React.ForwardRefExoticComponent<MenuSheetBackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export interface MenuSheetContentProps extends DialogPrimitive.ContentProps, Pick<MenuSheetItemVariantProps, "labelAlign"> {
|
|
19
|
+
}
|
|
20
|
+
export declare const MenuSheetContent: React.ForwardRefExoticComponent<MenuSheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export interface MenuSheetHeaderProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
}
|
|
23
|
+
export declare const MenuSheetHeader: React.ForwardRefExoticComponent<MenuSheetHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
export interface MenuSheetTitleProps extends DialogPrimitive.TitleProps {
|
|
25
|
+
}
|
|
26
|
+
export declare const MenuSheetTitle: React.ForwardRefExoticComponent<MenuSheetTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
27
|
+
export interface MenuSheetListProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
28
|
+
}
|
|
29
|
+
export declare const MenuSheetList: React.ForwardRefExoticComponent<MenuSheetListProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export interface MenuSheetGroupProps extends React.HTMLAttributes<HTMLDivElement>, Pick<MenuSheetItemVariantProps, "labelAlign"> {
|
|
31
|
+
}
|
|
32
|
+
export declare const MenuSheetGroup: React.ForwardRefExoticComponent<MenuSheetGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
export interface MenuSheetItemProps extends PrimitiveProps, MenuSheetItemVariantProps, React.HTMLAttributes<HTMLButtonElement> {
|
|
34
|
+
}
|
|
35
|
+
export declare const MenuSheetItem: React.ForwardRefExoticComponent<MenuSheetItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
export interface MenuSheetFooterProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
37
|
+
}
|
|
38
|
+
export declare const MenuSheetFooter: React.ForwardRefExoticComponent<MenuSheetFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
export interface MenuSheetCloseButtonProps extends DialogPrimitive.CloseButtonProps {
|
|
40
|
+
}
|
|
41
|
+
export declare const MenuSheetCloseButton: React.ForwardRefExoticComponent<MenuSheetCloseButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
//# sourceMappingURL=MenuSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuSheet.d.ts","sourceRoot":"","sources":["../../../src/components/MenuSheet/MenuSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;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,CAAC;CAAG;AAOpD,eAAO,MAAM,cAAc,4FAa1B,CAAC;AAIF,MAAM,WAAW,kBACf,SAAQ,cAAc,EACpB,yBAAyB,EACzB,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC;CAAG;AAM9C,eAAO,MAAM,aAAa,8FAOzB,CAAC;AAIF,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,eAAe,6FAG3B,CAAC;AAIF,MAAM,WAAW,yBAA0B,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAEtF,eAAO,MAAM,oBAAoB,kGAGhC,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Dialog, useDialogContext } from '@seed-design/react-dialog';
|
|
4
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
5
|
+
import { menuSheet } from '@seed-design/css/recipes/menu-sheet';
|
|
6
|
+
import { menuSheetItem } from '@seed-design/css/recipes/menu-sheet-item';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
9
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
10
|
+
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
11
|
+
|
|
12
|
+
const { withRootProvider, withContext } = createSlotRecipeContext(menuSheet);
|
|
13
|
+
const {
|
|
14
|
+
withContext: withItemContext,
|
|
15
|
+
PropsProvider: ItemPropsProvider,
|
|
16
|
+
useProps: useItemProps
|
|
17
|
+
} = createRecipeContext(menuSheetItem);
|
|
18
|
+
const withStateProps = createWithStateProps([useDialogContext]);
|
|
19
|
+
const MenuSheetRoot = withRootProvider(Dialog.Root, {
|
|
20
|
+
defaultProps: {
|
|
21
|
+
lazyMount: true,
|
|
22
|
+
unmountOnExit: true
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const MenuSheetTrigger = Dialog.Trigger;
|
|
26
|
+
const MenuSheetPositioner = withContext(
|
|
27
|
+
Dialog.Positioner,
|
|
28
|
+
"positioner"
|
|
29
|
+
);
|
|
30
|
+
const MenuSheetBackdrop = withContext(
|
|
31
|
+
Dialog.Backdrop,
|
|
32
|
+
"backdrop"
|
|
33
|
+
);
|
|
34
|
+
const MenuSheetContentBase = withContext(
|
|
35
|
+
Dialog.Content,
|
|
36
|
+
"content"
|
|
37
|
+
);
|
|
38
|
+
const MenuSheetContent = React.forwardRef(
|
|
39
|
+
({ labelAlign, children, ...props }, ref) => {
|
|
40
|
+
return /* @__PURE__ */ jsx(ItemPropsProvider, { value: React.useMemo(() => ({ labelAlign }), [labelAlign]), children: /* @__PURE__ */ jsx(MenuSheetContentBase, { ref, ...props, children }) });
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const MenuSheetHeader = withContext(
|
|
44
|
+
withStateProps(Primitive.div),
|
|
45
|
+
"header"
|
|
46
|
+
);
|
|
47
|
+
const MenuSheetTitle = withContext(
|
|
48
|
+
withStateProps(Primitive.h2),
|
|
49
|
+
"title"
|
|
50
|
+
);
|
|
51
|
+
const MenuSheetList = withContext(
|
|
52
|
+
withStateProps(Primitive.div),
|
|
53
|
+
"list"
|
|
54
|
+
);
|
|
55
|
+
const MenuSheetGroupBase = withContext(
|
|
56
|
+
withStateProps(Primitive.div),
|
|
57
|
+
"group"
|
|
58
|
+
);
|
|
59
|
+
const MenuSheetGroup = React.forwardRef(
|
|
60
|
+
({ labelAlign: overriddenLabelAlign, children, ...props }, ref) => {
|
|
61
|
+
const parentProps = useItemProps();
|
|
62
|
+
const labelAlign = overriddenLabelAlign ?? parentProps?.labelAlign;
|
|
63
|
+
return /* @__PURE__ */ jsx(ItemPropsProvider, { value: React.useMemo(() => ({ labelAlign }), [labelAlign]), children: /* @__PURE__ */ jsx(MenuSheetGroupBase, { ref, ...props, children }) });
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
const MenuSheetItemBase = withItemContext(
|
|
67
|
+
withStateProps(Primitive.button)
|
|
68
|
+
);
|
|
69
|
+
const MenuSheetItem = React.forwardRef(
|
|
70
|
+
({ labelAlign: overriddenLabelAlign, ...props }, ref) => {
|
|
71
|
+
const parentProps = useItemProps();
|
|
72
|
+
const labelAlign = overriddenLabelAlign ?? parentProps?.labelAlign;
|
|
73
|
+
return /* @__PURE__ */ jsx(MenuSheetItemBase, { ref, labelAlign, ...props });
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
const MenuSheetFooter = withContext(
|
|
77
|
+
withStateProps(Primitive.div),
|
|
78
|
+
"footer"
|
|
79
|
+
);
|
|
80
|
+
const MenuSheetCloseButton = withContext(
|
|
81
|
+
Dialog.CloseButton,
|
|
82
|
+
"closeButton"
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
export { MenuSheetBackdrop, MenuSheetCloseButton, MenuSheetContent, MenuSheetFooter, MenuSheetGroup, MenuSheetHeader, MenuSheetItem, MenuSheetList, MenuSheetPositioner, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const MenuSheet = require('./MenuSheet.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Backdrop = MenuSheet.MenuSheetBackdrop;
|
|
10
|
+
exports.CloseButton = MenuSheet.MenuSheetCloseButton;
|
|
11
|
+
exports.Content = MenuSheet.MenuSheetContent;
|
|
12
|
+
exports.Footer = MenuSheet.MenuSheetFooter;
|
|
13
|
+
exports.Group = MenuSheet.MenuSheetGroup;
|
|
14
|
+
exports.Header = MenuSheet.MenuSheetHeader;
|
|
15
|
+
exports.Item = MenuSheet.MenuSheetItem;
|
|
16
|
+
exports.List = MenuSheet.MenuSheetList;
|
|
17
|
+
exports.Positioner = MenuSheet.MenuSheetPositioner;
|
|
18
|
+
exports.Root = MenuSheet.MenuSheetRoot;
|
|
19
|
+
exports.Title = MenuSheet.MenuSheetTitle;
|
|
20
|
+
exports.Trigger = MenuSheet.MenuSheetTrigger;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { MenuSheetBackdrop as Backdrop, MenuSheetPositioner as Positioner, MenuSheetContent as Content, MenuSheetFooter as Footer, MenuSheetHeader as Header, MenuSheetRoot as Root, MenuSheetTitle as Title, MenuSheetTrigger as Trigger, MenuSheetList as List, MenuSheetGroup as Group, MenuSheetItem as Item, MenuSheetCloseButton as CloseButton, type MenuSheetBackdropProps as BackdropProps, type MenuSheetPositionerProps as PositionerProps, type MenuSheetContentProps as ContentProps, type MenuSheetFooterProps as FooterProps, type MenuSheetHeaderProps as HeaderProps, type MenuSheetRootProps as RootProps, type MenuSheetTitleProps as TitleProps, type MenuSheetTriggerProps as TriggerProps, type MenuSheetListProps as ListProps, type MenuSheetGroupProps as GroupProps, type MenuSheetItemProps as ItemProps, type MenuSheetCloseButtonProps as CloseButtonProps, } from './MenuSheet';
|
|
2
|
+
//# sourceMappingURL=MenuSheet.namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuSheet.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/MenuSheet/MenuSheet.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,QAAQ,EAC7B,mBAAmB,IAAI,UAAU,EACjC,gBAAgB,IAAI,OAAO,EAC3B,eAAe,IAAI,MAAM,EACzB,eAAe,IAAI,MAAM,EACzB,aAAa,IAAI,IAAI,EACrB,cAAc,IAAI,KAAK,EACvB,gBAAgB,IAAI,OAAO,EAC3B,aAAa,IAAI,IAAI,EACrB,cAAc,IAAI,KAAK,EACvB,aAAa,IAAI,IAAI,EACrB,oBAAoB,IAAI,WAAW,EACnC,KAAK,sBAAsB,IAAI,aAAa,EAC5C,KAAK,wBAAwB,IAAI,eAAe,EAChD,KAAK,qBAAqB,IAAI,YAAY,EAC1C,KAAK,oBAAoB,IAAI,WAAW,EACxC,KAAK,oBAAoB,IAAI,WAAW,EACxC,KAAK,kBAAkB,IAAI,SAAS,EACpC,KAAK,mBAAmB,IAAI,UAAU,EACtC,KAAK,qBAAqB,IAAI,YAAY,EAC1C,KAAK,kBAAkB,IAAI,SAAS,EACpC,KAAK,mBAAmB,IAAI,UAAU,EACtC,KAAK,kBAAkB,IAAI,SAAS,EACpC,KAAK,yBAAyB,IAAI,gBAAgB,GACnD,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MenuSheetBackdrop as Backdrop, MenuSheetCloseButton as CloseButton, MenuSheetContent as Content, MenuSheetFooter as Footer, MenuSheetGroup as Group, MenuSheetHeader as Header, MenuSheetItem as Item, MenuSheetList as List, MenuSheetPositioner as Positioner, MenuSheetRoot as Root, MenuSheetTitle as Title, MenuSheetTrigger as Trigger } from './MenuSheet.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const MenuSheet = require('./MenuSheet.cjs');
|
|
6
|
+
const MenuSheet_namespace = require('./MenuSheet.namespace.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.MenuSheetBackdrop = MenuSheet.MenuSheetBackdrop;
|
|
11
|
+
exports.MenuSheetCloseButton = MenuSheet.MenuSheetCloseButton;
|
|
12
|
+
exports.MenuSheetContent = MenuSheet.MenuSheetContent;
|
|
13
|
+
exports.MenuSheetFooter = MenuSheet.MenuSheetFooter;
|
|
14
|
+
exports.MenuSheetGroup = MenuSheet.MenuSheetGroup;
|
|
15
|
+
exports.MenuSheetHeader = MenuSheet.MenuSheetHeader;
|
|
16
|
+
exports.MenuSheetItem = MenuSheet.MenuSheetItem;
|
|
17
|
+
exports.MenuSheetList = MenuSheet.MenuSheetList;
|
|
18
|
+
exports.MenuSheetPositioner = MenuSheet.MenuSheetPositioner;
|
|
19
|
+
exports.MenuSheetRoot = MenuSheet.MenuSheetRoot;
|
|
20
|
+
exports.MenuSheetTitle = MenuSheet.MenuSheetTitle;
|
|
21
|
+
exports.MenuSheetTrigger = MenuSheet.MenuSheetTrigger;
|
|
22
|
+
exports.MenuSheet = MenuSheet_namespace;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MenuSheetBackdrop, MenuSheetPositioner, MenuSheetContent, MenuSheetFooter, MenuSheetHeader, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger, MenuSheetList, MenuSheetGroup, MenuSheetItem, MenuSheetCloseButton, type MenuSheetBackdropProps, type MenuSheetPositionerProps, type MenuSheetContentProps, type MenuSheetFooterProps, type MenuSheetHeaderProps, type MenuSheetRootProps, type MenuSheetTitleProps, type MenuSheetTriggerProps, type MenuSheetListProps, type MenuSheetGroupProps, type MenuSheetItemProps, type MenuSheetCloseButtonProps, } from './MenuSheet';
|
|
2
|
+
export * as MenuSheet from './MenuSheet.namespace';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MenuSheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MenuSheetBackdrop, MenuSheetCloseButton, MenuSheetContent, MenuSheetFooter, MenuSheetGroup, MenuSheetHeader, MenuSheetItem, MenuSheetList, MenuSheetPositioner, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger } from './MenuSheet.js';
|
|
2
|
+
import * as MenuSheet_namespace from './MenuSheet.namespace.js';
|
|
3
|
+
export { MenuSheet_namespace as MenuSheet };
|
package/lib/components/index.cjs
CHANGED
|
@@ -50,6 +50,8 @@ const LoadingIndicator = require('./LoadingIndicator/LoadingIndicator.cjs');
|
|
|
50
50
|
const MannerTemp = require('./MannerTemp/MannerTemp.cjs');
|
|
51
51
|
const MannerTempEmote = require('./MannerTemp/MannerTempEmote.cjs');
|
|
52
52
|
const MannerTempBadge = require('./MannerTempBadge/MannerTempBadge.cjs');
|
|
53
|
+
const MenuSheet = require('./MenuSheet/MenuSheet.cjs');
|
|
54
|
+
const MenuSheet_namespace = require('./MenuSheet/MenuSheet.namespace.cjs');
|
|
53
55
|
const NotificationBadge = require('./NotificationBadge/NotificationBadge.cjs');
|
|
54
56
|
const reactPortal = require('@seed-design/react-portal');
|
|
55
57
|
const ProgressCircle = require('./ProgressCircle/ProgressCircle.cjs');
|
|
@@ -213,6 +215,19 @@ exports.LoadingIndicator = LoadingIndicator.LoadingIndicator;
|
|
|
213
215
|
exports.MannerTemp = MannerTemp.MannerTemp;
|
|
214
216
|
exports.MannerTempEmote = MannerTempEmote.MannerTempEmote;
|
|
215
217
|
exports.MannerTempBadge = MannerTempBadge.MannerTempBadge;
|
|
218
|
+
exports.MenuSheetBackdrop = MenuSheet.MenuSheetBackdrop;
|
|
219
|
+
exports.MenuSheetCloseButton = MenuSheet.MenuSheetCloseButton;
|
|
220
|
+
exports.MenuSheetContent = MenuSheet.MenuSheetContent;
|
|
221
|
+
exports.MenuSheetFooter = MenuSheet.MenuSheetFooter;
|
|
222
|
+
exports.MenuSheetGroup = MenuSheet.MenuSheetGroup;
|
|
223
|
+
exports.MenuSheetHeader = MenuSheet.MenuSheetHeader;
|
|
224
|
+
exports.MenuSheetItem = MenuSheet.MenuSheetItem;
|
|
225
|
+
exports.MenuSheetList = MenuSheet.MenuSheetList;
|
|
226
|
+
exports.MenuSheetPositioner = MenuSheet.MenuSheetPositioner;
|
|
227
|
+
exports.MenuSheetRoot = MenuSheet.MenuSheetRoot;
|
|
228
|
+
exports.MenuSheetTitle = MenuSheet.MenuSheetTitle;
|
|
229
|
+
exports.MenuSheetTrigger = MenuSheet.MenuSheetTrigger;
|
|
230
|
+
exports.MenuSheet = MenuSheet_namespace;
|
|
216
231
|
exports.NotificationBadge = NotificationBadge.NotificationBadge;
|
|
217
232
|
exports.NotificationBadgePositioner = NotificationBadge.NotificationBadgePositioner;
|
|
218
233
|
Object.defineProperty(exports, "Portal", {
|
|
@@ -32,6 +32,7 @@ export * from './LinkContent';
|
|
|
32
32
|
export * from './LoadingIndicator';
|
|
33
33
|
export * from './MannerTemp';
|
|
34
34
|
export * from './MannerTempBadge';
|
|
35
|
+
export * from './MenuSheet';
|
|
35
36
|
export * from './NotificationBadge';
|
|
36
37
|
export * from './Portal';
|
|
37
38
|
export * from './ProgressCircle';
|
|
@@ -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;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/components/index.js
CHANGED
|
@@ -59,6 +59,9 @@ export { LoadingIndicator } from './LoadingIndicator/LoadingIndicator.js';
|
|
|
59
59
|
export { MannerTemp } from './MannerTemp/MannerTemp.js';
|
|
60
60
|
export { MannerTempEmote } from './MannerTemp/MannerTempEmote.js';
|
|
61
61
|
export { MannerTempBadge } from './MannerTempBadge/MannerTempBadge.js';
|
|
62
|
+
export { MenuSheetBackdrop, MenuSheetCloseButton, MenuSheetContent, MenuSheetFooter, MenuSheetGroup, MenuSheetHeader, MenuSheetItem, MenuSheetList, MenuSheetPositioner, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger } from './MenuSheet/MenuSheet.js';
|
|
63
|
+
import * as MenuSheet_namespace from './MenuSheet/MenuSheet.namespace.js';
|
|
64
|
+
export { MenuSheet_namespace as MenuSheet };
|
|
62
65
|
export { NotificationBadge, NotificationBadgePositioner } from './NotificationBadge/NotificationBadge.js';
|
|
63
66
|
export { Portal } from '@seed-design/react-portal';
|
|
64
67
|
export { ProgressCircleRange, ProgressCircleRoot, ProgressCircleTrack } from './ProgressCircle/ProgressCircle.js';
|