@medusajs/ui 0.0.0-alpha-20230713141422
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/README.md +3 -0
- package/build/cjs/components/alert-dialog/alert-dialog.js +151 -0
- package/build/cjs/components/avatar/avatar.js +97 -0
- package/build/cjs/components/badge/badge.js +98 -0
- package/build/cjs/components/button/button.js +104 -0
- package/build/cjs/components/checkbox/checkbox.js +45 -0
- package/build/cjs/components/container/container.js +36 -0
- package/build/cjs/components/drawer/drawer.js +136 -0
- package/build/cjs/components/dropdown-menu/dropdown-menu.js +168 -0
- package/build/cjs/components/focus-modal/focus-modal.js +102 -0
- package/build/cjs/components/heading/heading.js +52 -0
- package/build/cjs/components/input/input.js +50 -0
- package/build/cjs/components/kbd/kbd.js +39 -0
- package/build/cjs/components/label/label.js +63 -0
- package/build/cjs/components/radio-group/radio-group.js +60 -0
- package/build/cjs/components/switch/switch.js +67 -0
- package/build/cjs/components/text/text.js +71 -0
- package/build/cjs/components/textarea/textarea.js +39 -0
- package/build/cjs/components/toast/toast.js +130 -0
- package/build/cjs/components/toaster/toaster.js +42 -0
- package/build/cjs/components/tooltip/tooltip.js +68 -0
- package/build/cjs/hooks/use-alert-dialog/dialog.js +97 -0
- package/build/cjs/hooks/use-alert-dialog/use-alert-dialog.js +54 -0
- package/build/cjs/hooks/use-toast/use-toast.js +163 -0
- package/build/cjs/hooks/use-toggle-state/use-toggle-state.js +43 -0
- package/build/cjs/index.js +53 -0
- package/build/cjs/utils/clx.js +10 -0
- package/build/esm/components/alert-dialog/alert-dialog.js +129 -0
- package/build/esm/components/avatar/avatar.js +75 -0
- package/build/esm/components/badge/badge.js +77 -0
- package/build/esm/components/button/button.js +83 -0
- package/build/esm/components/checkbox/checkbox.js +23 -0
- package/build/esm/components/container/container.js +15 -0
- package/build/esm/components/drawer/drawer.js +114 -0
- package/build/esm/components/dropdown-menu/dropdown-menu.js +146 -0
- package/build/esm/components/focus-modal/focus-modal.js +80 -0
- package/build/esm/components/heading/heading.js +30 -0
- package/build/esm/components/input/input.js +29 -0
- package/build/esm/components/kbd/kbd.js +18 -0
- package/build/esm/components/label/label.js +40 -0
- package/build/esm/components/radio-group/radio-group.js +38 -0
- package/build/esm/components/switch/switch.js +45 -0
- package/build/esm/components/text/text.js +49 -0
- package/build/esm/components/textarea/textarea.js +18 -0
- package/build/esm/components/toast/toast.js +106 -0
- package/build/esm/components/toaster/toaster.js +21 -0
- package/build/esm/components/tooltip/tooltip.js +46 -0
- package/build/esm/hooks/use-alert-dialog/dialog.js +74 -0
- package/build/esm/hooks/use-alert-dialog/use-alert-dialog.js +33 -0
- package/build/esm/hooks/use-toast/use-toast.js +140 -0
- package/build/esm/hooks/use-toggle-state/use-toggle-state.js +22 -0
- package/build/esm/index.js +24 -0
- package/build/esm/utils/clx.js +8 -0
- package/build/types/src/components/alert-dialog/alert-dialog.d.ts +14 -0
- package/build/types/src/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/build/types/src/components/alert-dialog/index.d.ts +2 -0
- package/build/types/src/components/alert-dialog/index.d.ts.map +1 -0
- package/build/types/src/components/avatar/avatar.d.ts +14 -0
- package/build/types/src/components/avatar/avatar.d.ts.map +1 -0
- package/build/types/src/components/avatar/index.d.ts +2 -0
- package/build/types/src/components/avatar/index.d.ts.map +1 -0
- package/build/types/src/components/badge/badge.d.ts +13 -0
- package/build/types/src/components/badge/badge.d.ts.map +1 -0
- package/build/types/src/components/badge/index.d.ts +2 -0
- package/build/types/src/components/badge/index.d.ts.map +1 -0
- package/build/types/src/components/button/button.d.ts +14 -0
- package/build/types/src/components/button/button.d.ts.map +1 -0
- package/build/types/src/components/button/index.d.ts +2 -0
- package/build/types/src/components/button/index.d.ts.map +1 -0
- package/build/types/src/components/checkbox/checkbox.d.ts +5 -0
- package/build/types/src/components/checkbox/checkbox.d.ts.map +1 -0
- package/build/types/src/components/checkbox/index.d.ts +2 -0
- package/build/types/src/components/checkbox/index.d.ts.map +1 -0
- package/build/types/src/components/container/container.d.ts +4 -0
- package/build/types/src/components/container/container.d.ts.map +1 -0
- package/build/types/src/components/container/index.d.ts +2 -0
- package/build/types/src/components/container/index.d.ts.map +1 -0
- package/build/types/src/components/drawer/drawer.d.ts +22 -0
- package/build/types/src/components/drawer/drawer.d.ts.map +1 -0
- package/build/types/src/components/drawer/index.d.ts +2 -0
- package/build/types/src/components/drawer/index.d.ts.map +1 -0
- package/build/types/src/components/dropdown-menu/dropdown-menu.d.ts +26 -0
- package/build/types/src/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/build/types/src/components/dropdown-menu/index.d.ts +2 -0
- package/build/types/src/components/dropdown-menu/index.d.ts.map +1 -0
- package/build/types/src/components/focus-modal/focus-modal.d.ts +16 -0
- package/build/types/src/components/focus-modal/focus-modal.d.ts.map +1 -0
- package/build/types/src/components/focus-modal/index.d.ts +2 -0
- package/build/types/src/components/focus-modal/index.d.ts.map +1 -0
- package/build/types/src/components/heading/heading.d.ts +9 -0
- package/build/types/src/components/heading/heading.d.ts.map +1 -0
- package/build/types/src/components/heading/index.d.ts +2 -0
- package/build/types/src/components/heading/index.d.ts.map +1 -0
- package/build/types/src/components/input/index.d.ts +2 -0
- package/build/types/src/components/input/index.d.ts.map +1 -0
- package/build/types/src/components/input/input.d.ts +4 -0
- package/build/types/src/components/input/input.d.ts.map +1 -0
- package/build/types/src/components/kbd/index.d.ts +2 -0
- package/build/types/src/components/kbd/index.d.ts.map +1 -0
- package/build/types/src/components/kbd/kbd.d.ts +4 -0
- package/build/types/src/components/kbd/kbd.d.ts.map +1 -0
- package/build/types/src/components/label/index.d.ts +2 -0
- package/build/types/src/components/label/index.d.ts.map +1 -0
- package/build/types/src/components/label/label.d.ts +11 -0
- package/build/types/src/components/label/label.d.ts.map +1 -0
- package/build/types/src/components/radio-group/index.d.ts +2 -0
- package/build/types/src/components/radio-group/index.d.ts.map +1 -0
- package/build/types/src/components/radio-group/radio-group.d.ts +7 -0
- package/build/types/src/components/radio-group/radio-group.d.ts.map +1 -0
- package/build/types/src/components/switch/index.d.ts +2 -0
- package/build/types/src/components/switch/index.d.ts.map +1 -0
- package/build/types/src/components/switch/switch.d.ts +11 -0
- package/build/types/src/components/switch/switch.d.ts.map +1 -0
- package/build/types/src/components/text/index.d.ts +2 -0
- package/build/types/src/components/text/index.d.ts.map +1 -0
- package/build/types/src/components/text/text.d.ts +13 -0
- package/build/types/src/components/text/text.d.ts.map +1 -0
- package/build/types/src/components/textarea/index.d.ts +2 -0
- package/build/types/src/components/textarea/index.d.ts.map +1 -0
- package/build/types/src/components/textarea/textarea.d.ts +4 -0
- package/build/types/src/components/textarea/textarea.d.ts.map +1 -0
- package/build/types/src/components/toast/index.d.ts +2 -0
- package/build/types/src/components/toast/index.d.ts.map +1 -0
- package/build/types/src/components/toast/toast.d.ts +20 -0
- package/build/types/src/components/toast/toast.d.ts.map +1 -0
- package/build/types/src/components/toaster/index.d.ts +2 -0
- package/build/types/src/components/toaster/index.d.ts.map +1 -0
- package/build/types/src/components/toaster/toaster.d.ts +4 -0
- package/build/types/src/components/toaster/toaster.d.ts.map +1 -0
- package/build/types/src/components/tooltip/index.d.ts +2 -0
- package/build/types/src/components/tooltip/index.d.ts.map +1 -0
- package/build/types/src/components/tooltip/tooltip.d.ts +11 -0
- package/build/types/src/components/tooltip/tooltip.d.ts.map +1 -0
- package/build/types/src/hooks/use-alert-dialog/dialog.d.ts +14 -0
- package/build/types/src/hooks/use-alert-dialog/dialog.d.ts.map +1 -0
- package/build/types/src/hooks/use-alert-dialog/index.d.ts +2 -0
- package/build/types/src/hooks/use-alert-dialog/index.d.ts.map +1 -0
- package/build/types/src/hooks/use-alert-dialog/use-alert-dialog.d.ts +5 -0
- package/build/types/src/hooks/use-alert-dialog/use-alert-dialog.d.ts.map +1 -0
- package/build/types/src/hooks/use-toast/index.d.ts +2 -0
- package/build/types/src/hooks/use-toast/index.d.ts.map +1 -0
- package/build/types/src/hooks/use-toast/use-toast.d.ts +45 -0
- package/build/types/src/hooks/use-toast/use-toast.d.ts.map +1 -0
- package/build/types/src/hooks/use-toggle-state/index.d.ts +2 -0
- package/build/types/src/hooks/use-toggle-state/index.d.ts.map +1 -0
- package/build/types/src/hooks/use-toggle-state/use-toggle-state.d.ts +9 -0
- package/build/types/src/hooks/use-toggle-state/use-toggle-state.d.ts.map +1 -0
- package/build/types/src/index.d.ts +25 -0
- package/build/types/src/index.d.ts.map +1 -0
- package/build/types/src/utils/clx.d.ts +3 -0
- package/build/types/src/utils/clx.d.ts.map +1 -0
- package/package.json +111 -0
package/README.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Primitives = require('@radix-ui/react-alert-dialog');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var clx = require('../../utils/clx.js');
|
|
6
|
+
var heading = require('../heading/heading.js');
|
|
7
|
+
var button = require('../button/button.js');
|
|
8
|
+
var label = require('../label/label.js');
|
|
9
|
+
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var Primitives__namespace = /*#__PURE__*/_interopNamespaceDefault(Primitives);
|
|
28
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
29
|
+
|
|
30
|
+
const Root = Primitives__namespace.Root;
|
|
31
|
+
Root.displayName = "AlertDialog.Root";
|
|
32
|
+
const Trigger = Primitives__namespace.Trigger;
|
|
33
|
+
Trigger.displayName = "AlertDialog.Trigger";
|
|
34
|
+
const Portal = ({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}) => {
|
|
38
|
+
return /*#__PURE__*/React__namespace.createElement(Primitives__namespace.AlertDialogPortal, Object.assign({
|
|
39
|
+
className: clx.clx(className)
|
|
40
|
+
}, props));
|
|
41
|
+
};
|
|
42
|
+
Portal.displayName = "AlertDialog.Portal";
|
|
43
|
+
const Overlay = /*#__PURE__*/React__namespace.forwardRef(({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}, ref) => {
|
|
47
|
+
return /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Overlay, Object.assign({
|
|
48
|
+
ref: ref,
|
|
49
|
+
className: clx.clx("bg-ui-bg-overlay fixed inset-0 z-50 backdrop-blur-sm",
|
|
50
|
+
// "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", // Re-enable when Admin UI has been cleaned up
|
|
51
|
+
className)
|
|
52
|
+
}, props));
|
|
53
|
+
});
|
|
54
|
+
Overlay.displayName = "AlertDialog.Overlay";
|
|
55
|
+
const Title = /*#__PURE__*/React__namespace.forwardRef(({
|
|
56
|
+
className,
|
|
57
|
+
children,
|
|
58
|
+
...props
|
|
59
|
+
}, ref) => {
|
|
60
|
+
return /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Title, Object.assign({
|
|
61
|
+
ref: ref,
|
|
62
|
+
className: clx.clx(className)
|
|
63
|
+
}, props, {
|
|
64
|
+
asChild: true
|
|
65
|
+
}), /*#__PURE__*/React__namespace.createElement(heading.Heading, {
|
|
66
|
+
level: "h2"
|
|
67
|
+
}, children));
|
|
68
|
+
});
|
|
69
|
+
Title.displayName = "AlertDialog.Title";
|
|
70
|
+
const Content = /*#__PURE__*/React__namespace.forwardRef(({
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}, ref) => {
|
|
74
|
+
return /*#__PURE__*/React__namespace.createElement(Portal, null, /*#__PURE__*/React__namespace.createElement(Overlay, null), /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Content, Object.assign({
|
|
75
|
+
ref: ref,
|
|
76
|
+
className: clx.clx("bg-ui-bg-base shadow-elevation-flyout fixed left-[50%] top-[50%] z-50 flex w-full max-w-[400px] translate-x-[-50%] translate-y-[-50%] flex-col rounded-lg border focus:outline-none",
|
|
77
|
+
// "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] duration-200", // Re-enable when Admin UI has been cleaned up
|
|
78
|
+
className)
|
|
79
|
+
}, props)));
|
|
80
|
+
});
|
|
81
|
+
Content.displayName = "AlertDialog.Content";
|
|
82
|
+
const Description = /*#__PURE__*/React__namespace.forwardRef(({
|
|
83
|
+
className,
|
|
84
|
+
...props
|
|
85
|
+
}, ref) => {
|
|
86
|
+
return /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Description, Object.assign({
|
|
87
|
+
ref: ref,
|
|
88
|
+
className: clx.clx("text-subtle", label.labelVariants({
|
|
89
|
+
size: "base"
|
|
90
|
+
}), className)
|
|
91
|
+
}, props));
|
|
92
|
+
});
|
|
93
|
+
Description.displayName = "AlertDialog.Description";
|
|
94
|
+
const Action = /*#__PURE__*/React__namespace.forwardRef(({
|
|
95
|
+
className,
|
|
96
|
+
children,
|
|
97
|
+
...props
|
|
98
|
+
}, ref) => {
|
|
99
|
+
return /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Action, Object.assign({
|
|
100
|
+
ref: ref,
|
|
101
|
+
className: clx.clx("", className)
|
|
102
|
+
}, props, {
|
|
103
|
+
asChild: true
|
|
104
|
+
}), /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
105
|
+
variant: "danger"
|
|
106
|
+
}, children));
|
|
107
|
+
});
|
|
108
|
+
Action.displayName = "AlertDialog.Action";
|
|
109
|
+
const Cancel = /*#__PURE__*/React__namespace.forwardRef(({
|
|
110
|
+
className,
|
|
111
|
+
children,
|
|
112
|
+
...props
|
|
113
|
+
}, ref) => {
|
|
114
|
+
return /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Cancel, Object.assign({
|
|
115
|
+
ref: ref,
|
|
116
|
+
className: clx.clx(className)
|
|
117
|
+
}, props, {
|
|
118
|
+
asChild: true
|
|
119
|
+
}), /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
120
|
+
variant: "secondary"
|
|
121
|
+
}, children));
|
|
122
|
+
});
|
|
123
|
+
Cancel.displayName = "AlertDialog.Cancel";
|
|
124
|
+
const Header = ({
|
|
125
|
+
className,
|
|
126
|
+
...props
|
|
127
|
+
}) => {
|
|
128
|
+
return /*#__PURE__*/React__namespace.createElement("div", Object.assign({
|
|
129
|
+
className: clx.clx("flex flex-col gap-y-1 px-6 pt-6", className)
|
|
130
|
+
}, props));
|
|
131
|
+
};
|
|
132
|
+
const Footer = ({
|
|
133
|
+
className,
|
|
134
|
+
...props
|
|
135
|
+
}) => {
|
|
136
|
+
return /*#__PURE__*/React__namespace.createElement("div", Object.assign({
|
|
137
|
+
className: clx.clx("flex items-center justify-end gap-x-2 p-6", className)
|
|
138
|
+
}, props));
|
|
139
|
+
};
|
|
140
|
+
const AlertDialog = Object.assign(Root, {
|
|
141
|
+
Trigger,
|
|
142
|
+
Content,
|
|
143
|
+
Title,
|
|
144
|
+
Description,
|
|
145
|
+
Action,
|
|
146
|
+
Cancel,
|
|
147
|
+
Header,
|
|
148
|
+
Footer
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
exports.AlertDialog = AlertDialog;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Primitives = require('@radix-ui/react-avatar');
|
|
4
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var clx = require('../../utils/clx.js');
|
|
7
|
+
var label = require('../label/label.js');
|
|
8
|
+
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var Primitives__namespace = /*#__PURE__*/_interopNamespaceDefault(Primitives);
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
28
|
+
|
|
29
|
+
const avatarVariants = classVarianceAuthority.cva("border-ui-border-strong flex shrink-0 items-center justify-center overflow-hidden border", {
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
squared: "rounded-lg",
|
|
33
|
+
rounded: "rounded-full"
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
base: "h-8 w-8",
|
|
37
|
+
large: "h-10 w-10"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
variant: "rounded",
|
|
42
|
+
size: "base"
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const innerVariants = classVarianceAuthority.cva("aspect-square object-cover object-center", {
|
|
46
|
+
variants: {
|
|
47
|
+
variant: {
|
|
48
|
+
squared: "rounded-lg",
|
|
49
|
+
rounded: "rounded-full"
|
|
50
|
+
},
|
|
51
|
+
size: {
|
|
52
|
+
base: clx.clx(label.labelVariants({
|
|
53
|
+
size: "small",
|
|
54
|
+
weight: "plus"
|
|
55
|
+
}), "h-6 w-6"),
|
|
56
|
+
large: clx.clx(label.labelVariants({
|
|
57
|
+
size: "base",
|
|
58
|
+
weight: "plus"
|
|
59
|
+
}), "h-8 w-8")
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
defaultVariants: {
|
|
63
|
+
variant: "rounded",
|
|
64
|
+
size: "base"
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
const Avatar = /*#__PURE__*/React__namespace.forwardRef(({
|
|
68
|
+
src,
|
|
69
|
+
fallback,
|
|
70
|
+
variant = "rounded",
|
|
71
|
+
size = "base",
|
|
72
|
+
className,
|
|
73
|
+
...props
|
|
74
|
+
}, ref) => {
|
|
75
|
+
return /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Root, Object.assign({
|
|
76
|
+
ref: ref
|
|
77
|
+
}, props, {
|
|
78
|
+
className: clx.clx(avatarVariants({
|
|
79
|
+
variant,
|
|
80
|
+
size
|
|
81
|
+
}), className)
|
|
82
|
+
}), src && /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Image, {
|
|
83
|
+
src: src,
|
|
84
|
+
className: innerVariants({
|
|
85
|
+
variant,
|
|
86
|
+
size
|
|
87
|
+
})
|
|
88
|
+
}), /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Fallback, {
|
|
89
|
+
className: clx.clx(innerVariants({
|
|
90
|
+
variant,
|
|
91
|
+
size
|
|
92
|
+
}), "bg-ui-bg-component text-ui-fg-subtle pointer-events-none flex select-none items-center justify-center")
|
|
93
|
+
}, fallback));
|
|
94
|
+
});
|
|
95
|
+
Avatar.displayName = "Avatar";
|
|
96
|
+
|
|
97
|
+
exports.Avatar = Avatar;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
4
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var clx = require('../../utils/clx.js');
|
|
7
|
+
var label = require('../label/label.js');
|
|
8
|
+
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
27
|
+
|
|
28
|
+
const badgeVariants = classVarianceAuthority.cva("inline-flex items-center gap-x-0.5 border", {
|
|
29
|
+
variants: {
|
|
30
|
+
type: {
|
|
31
|
+
default: "rounded-md",
|
|
32
|
+
rounded: "rounded-full",
|
|
33
|
+
icon: "rounded-md"
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
sm: clx.clx("px-1.5", label.labelVariants({
|
|
37
|
+
size: "xsmall",
|
|
38
|
+
weight: "plus"
|
|
39
|
+
})),
|
|
40
|
+
md: clx.clx("px-2 py-0.5", label.labelVariants({
|
|
41
|
+
size: "small",
|
|
42
|
+
weight: "plus"
|
|
43
|
+
})),
|
|
44
|
+
lg: clx.clx("px-2.5 py-1", label.labelVariants({
|
|
45
|
+
size: "base",
|
|
46
|
+
weight: "plus"
|
|
47
|
+
}))
|
|
48
|
+
},
|
|
49
|
+
color: {
|
|
50
|
+
green: "bg-ui-tag-green-bg text-ui-tag-green-text [&_svg]:text-ui-tag-green-icon border-ui-tag-green-border",
|
|
51
|
+
red: "bg-ui-tag-red-bg text-ui-tag-red-text [&_svg]:text-ui-tag-red-icon border-ui-tag-red-border",
|
|
52
|
+
blue: "bg-ui-tag-blue-bg text-ui-tag-blue-text [&_svg]:text-ui-tag-blue-icon border-ui-tag-blue-border",
|
|
53
|
+
orange: "bg-ui-tag-orange-bg text-ui-tag-orange-text [&_svg]:text-ui-tag-orange-icon border-ui-tag-orange-border",
|
|
54
|
+
grey: "bg-ui-tag-neutral-bg text-ui-tag-neutral-text [&_svg]:text-ui-tag-neutral-icon border-ui-tag-neutral-border",
|
|
55
|
+
purple: "bg-ui-tag-purple-bg text-ui-tag-purple-text [&_svg]:text-ui-tag-purple-icon border-ui-tag-purple-border"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
compoundVariants: [{
|
|
59
|
+
type: "icon",
|
|
60
|
+
size: "lg",
|
|
61
|
+
className: "p-1"
|
|
62
|
+
}, {
|
|
63
|
+
type: "icon",
|
|
64
|
+
size: "md",
|
|
65
|
+
className: "p-0.5"
|
|
66
|
+
}, {
|
|
67
|
+
type: "icon",
|
|
68
|
+
size: "sm",
|
|
69
|
+
className: "p-0.5" // Icon does not get any smaller than `md`
|
|
70
|
+
}],
|
|
71
|
+
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
size: "md",
|
|
74
|
+
type: "default",
|
|
75
|
+
color: "grey"
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
const Badge = /*#__PURE__*/React__namespace.forwardRef(({
|
|
79
|
+
className,
|
|
80
|
+
size,
|
|
81
|
+
type,
|
|
82
|
+
color,
|
|
83
|
+
asChild = false,
|
|
84
|
+
...props
|
|
85
|
+
}, ref) => {
|
|
86
|
+
const Component = asChild ? reactSlot.Slot : "span";
|
|
87
|
+
return /*#__PURE__*/React__namespace.createElement(Component, Object.assign({
|
|
88
|
+
ref: ref,
|
|
89
|
+
className: clx.clx(badgeVariants({
|
|
90
|
+
size,
|
|
91
|
+
type,
|
|
92
|
+
color
|
|
93
|
+
}), className)
|
|
94
|
+
}, props));
|
|
95
|
+
});
|
|
96
|
+
Badge.displayName = "Badge";
|
|
97
|
+
|
|
98
|
+
exports.Badge = Badge;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
4
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var clx = require('../../utils/clx.js');
|
|
7
|
+
var label = require('../label/label.js');
|
|
8
|
+
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
27
|
+
|
|
28
|
+
const buttonVariants = classVarianceAuthority.cva("disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled relative inline-flex w-fit items-center overflow-hidden rounded-lg border outline-none transition-all after:absolute after:inset-0 after:content-[''] disabled:!shadow-none", {
|
|
29
|
+
variants: {
|
|
30
|
+
variant: {
|
|
31
|
+
primary: "shadow-buttons-primary text-ui-fg-on-inverted border-ui-border-loud bg-ui-button-inverted after:button-inverted-gradient hover:bg-ui-button-inverted-hover hover:after:button-inverted-hover-gradient active:bg-ui-button-inverted-pressed active:after:button-inverted-pressed-gradient focus:shadow-buttons-primary-focus",
|
|
32
|
+
secondary: "shadow-buttons-secondary text-ui-fg-base border-ui-border-loud-muted bg-ui-button-neutral after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus:shadow-buttons-secondary-focus bg-clip-padding",
|
|
33
|
+
transparent: "text-ui-fg-base border-ui-border-loud-transparent bg-ui-button-transparent hover:bg-ui-button-transparent-hover hover:border-ui-border-loud-muted active:bg-ui-button-transparent-pressed active:border-ui-border-base focus:shadow-borders-focus focus:bg-ui-bg-base focus:border-ui-border-base",
|
|
34
|
+
danger: "shadow-buttons-danger text-ui-fg-on-inverted border-ui-border-danger bg-ui-button-danger after:button-danger-gradient hover:bg-ui-button-danger-hover hover:after:button-danger-hover-gradient active:bg-ui-button-danger-pressed active:after:button-danger-pressed-gradient focus:shadow-buttons-danger-focus"
|
|
35
|
+
},
|
|
36
|
+
size: {
|
|
37
|
+
sm: clx.clx("gap-x-0.5 px-[7px] py-[1px]", label.labelVariants({
|
|
38
|
+
size: "xsmall",
|
|
39
|
+
weight: "plus"
|
|
40
|
+
})),
|
|
41
|
+
md: clx.clx("gap-x-1.5 px-[11px] py-[5px]", label.labelVariants({
|
|
42
|
+
size: "small",
|
|
43
|
+
weight: "plus"
|
|
44
|
+
})),
|
|
45
|
+
lg: clx.clx("gap-x-2 px-[15px] py-[9px]", label.labelVariants({
|
|
46
|
+
size: "base",
|
|
47
|
+
weight: "plus"
|
|
48
|
+
})),
|
|
49
|
+
xl: clx.clx("gap-x-2 px-[19px] py-[13px]", label.labelVariants({
|
|
50
|
+
size: "large",
|
|
51
|
+
weight: "plus"
|
|
52
|
+
}))
|
|
53
|
+
},
|
|
54
|
+
format: {
|
|
55
|
+
default: "",
|
|
56
|
+
icon: ""
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
variant: "primary",
|
|
61
|
+
size: "md",
|
|
62
|
+
format: "default"
|
|
63
|
+
},
|
|
64
|
+
compoundVariants: [{
|
|
65
|
+
size: "sm",
|
|
66
|
+
format: "icon",
|
|
67
|
+
className: "px-px py-px"
|
|
68
|
+
}, {
|
|
69
|
+
size: "md",
|
|
70
|
+
format: "icon",
|
|
71
|
+
className: "px-[5px] py-[5px]"
|
|
72
|
+
}, {
|
|
73
|
+
size: "lg",
|
|
74
|
+
format: "icon",
|
|
75
|
+
className: "px-[9px] py-[9px]"
|
|
76
|
+
}, {
|
|
77
|
+
size: "xl",
|
|
78
|
+
format: "icon",
|
|
79
|
+
className: "px-[13px] py-[13px]"
|
|
80
|
+
}]
|
|
81
|
+
});
|
|
82
|
+
const Button = /*#__PURE__*/React__namespace.forwardRef(({
|
|
83
|
+
size,
|
|
84
|
+
variant,
|
|
85
|
+
format,
|
|
86
|
+
className,
|
|
87
|
+
asChild = false,
|
|
88
|
+
children,
|
|
89
|
+
...props
|
|
90
|
+
}, ref) => {
|
|
91
|
+
const Component = asChild ? reactSlot.Slot : "button";
|
|
92
|
+
return /*#__PURE__*/React__namespace.createElement(Component, Object.assign({
|
|
93
|
+
ref: ref
|
|
94
|
+
}, props, {
|
|
95
|
+
className: clx.clx(buttonVariants({
|
|
96
|
+
variant,
|
|
97
|
+
size,
|
|
98
|
+
format
|
|
99
|
+
}), className)
|
|
100
|
+
}), children);
|
|
101
|
+
});
|
|
102
|
+
Button.displayName = "Button";
|
|
103
|
+
|
|
104
|
+
exports.Button = Button;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var icons = require('@medusajs/icons');
|
|
4
|
+
var Primitives = require('@radix-ui/react-checkbox');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var clx = require('../../utils/clx.js');
|
|
7
|
+
|
|
8
|
+
function _interopNamespaceDefault(e) {
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var Primitives__namespace = /*#__PURE__*/_interopNamespaceDefault(Primitives);
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
27
|
+
|
|
28
|
+
const Checkbox = /*#__PURE__*/React__namespace.forwardRef(({
|
|
29
|
+
className,
|
|
30
|
+
checked,
|
|
31
|
+
...props
|
|
32
|
+
}, ref) => {
|
|
33
|
+
return /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Root, Object.assign({}, props, {
|
|
34
|
+
ref: ref,
|
|
35
|
+
checked: checked,
|
|
36
|
+
className: clx.clx("group relative inline-flex h-5 w-5 items-center justify-center outline-none ", className)
|
|
37
|
+
}), /*#__PURE__*/React__namespace.createElement("div", {
|
|
38
|
+
className: "text-ui-fg-on-color bg-ui-bg-base shadow-borders-base-w-shadow group-hover:shadow-borders-strong-w-shadow group-focus:!shadow-borders-interactive-w-focus group-data-[state=checked]:bg-ui-bg-interactive group-data-[state=checked]:shadow-borders-interactive group-data-[state=indeterminate]:bg-ui-bg-interactive group-data-[state=indeterminate]:shadow-borders-interactive [&_path]:shadow-details-contrast-on-bg-interactive group-disabled:text-ui-fg-disabled group-disabled:!bg-ui-bg-disabled group-disabled:!shadow-borders-base h-[14px] w-[14px] rounded-[3px] transition-all"
|
|
39
|
+
}, /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Indicator, {
|
|
40
|
+
className: "absolute inset-0"
|
|
41
|
+
}, checked === "indeterminate" ? /*#__PURE__*/React__namespace.createElement(icons.MinusMini, null) : /*#__PURE__*/React__namespace.createElement(icons.CheckMini, null))));
|
|
42
|
+
});
|
|
43
|
+
Checkbox.displayName = "Checkbox";
|
|
44
|
+
|
|
45
|
+
exports.Checkbox = Checkbox;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var clx = require('../../utils/clx.js');
|
|
5
|
+
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
24
|
+
|
|
25
|
+
const Container = /*#__PURE__*/React__namespace.forwardRef(({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}, ref) => {
|
|
29
|
+
return /*#__PURE__*/React__namespace.createElement("div", Object.assign({
|
|
30
|
+
ref: ref,
|
|
31
|
+
className: clx.clx("shadow-elevation-card-rest bg-ui-bg-base w-full rounded-lg px-8 pb-8 pt-6", className)
|
|
32
|
+
}, props));
|
|
33
|
+
});
|
|
34
|
+
Container.displayName = "Container";
|
|
35
|
+
|
|
36
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var icons = require('@medusajs/icons');
|
|
4
|
+
var Primitives = require('@radix-ui/react-dialog');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var clx = require('../../utils/clx.js');
|
|
7
|
+
var badge = require('../badge/badge.js');
|
|
8
|
+
var text = require('../text/text.js');
|
|
9
|
+
var button = require('../button/button.js');
|
|
10
|
+
var heading = require('../heading/heading.js');
|
|
11
|
+
|
|
12
|
+
function _interopNamespaceDefault(e) {
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var Primitives__namespace = /*#__PURE__*/_interopNamespaceDefault(Primitives);
|
|
30
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
31
|
+
|
|
32
|
+
const Root = Primitives__namespace.Root;
|
|
33
|
+
Root.displayName = "Drawer.Root";
|
|
34
|
+
const Trigger = Primitives__namespace.Trigger;
|
|
35
|
+
Trigger.displayName = "Drawer.Trigger";
|
|
36
|
+
const Close = Primitives__namespace.Close;
|
|
37
|
+
Close.displayName = "Drawer.Close";
|
|
38
|
+
const Portal = Primitives__namespace.Portal;
|
|
39
|
+
Portal.displayName = "Drawer.Portal";
|
|
40
|
+
const Overlay = /*#__PURE__*/React__namespace.forwardRef(({
|
|
41
|
+
className,
|
|
42
|
+
...props
|
|
43
|
+
}, ref) => {
|
|
44
|
+
return /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Overlay, Object.assign({
|
|
45
|
+
ref: ref,
|
|
46
|
+
className: clx.clx("fixed inset-0 z-50", className)
|
|
47
|
+
}, props));
|
|
48
|
+
});
|
|
49
|
+
Overlay.displayName = "Drawer.Overlay";
|
|
50
|
+
const Content = /*#__PURE__*/React__namespace.forwardRef(({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}, ref) => {
|
|
54
|
+
return /*#__PURE__*/React__namespace.createElement(Portal, null, /*#__PURE__*/React__namespace.createElement(Overlay, null), /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Content, Object.assign({
|
|
55
|
+
ref: ref,
|
|
56
|
+
className: clx.clx("bg-ui-bg-base shadow-elevation-modal fixed inset-y-2 right-2 z-50 flex w-full max-w-[560px] flex-1 flex-col rounded-lg border focus:outline-none",
|
|
57
|
+
// "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-right-1/2 data-[state=open]:slide-in-from-right-1/2 duration-200", // Re-enable when Admin UI has been cleaned up
|
|
58
|
+
className)
|
|
59
|
+
}, props)));
|
|
60
|
+
});
|
|
61
|
+
Content.displayName = "Drawer.Content";
|
|
62
|
+
const Header = ({
|
|
63
|
+
children,
|
|
64
|
+
className,
|
|
65
|
+
...props
|
|
66
|
+
}) => {
|
|
67
|
+
return /*#__PURE__*/React__namespace.createElement("div", Object.assign({
|
|
68
|
+
className: "border-ui-border-base flex items-start justify-between gap-x-4 border-b px-8 py-6"
|
|
69
|
+
}, props), /*#__PURE__*/React__namespace.createElement("div", {
|
|
70
|
+
className: clx.clx("flex flex-col gap-y-1", className)
|
|
71
|
+
}, children), /*#__PURE__*/React__namespace.createElement("div", {
|
|
72
|
+
className: "flex items-center gap-x-2"
|
|
73
|
+
}, /*#__PURE__*/React__namespace.createElement(badge.Badge, {
|
|
74
|
+
size: "sm",
|
|
75
|
+
color: "grey"
|
|
76
|
+
}, "esc"), /*#__PURE__*/React__namespace.createElement(Close, {
|
|
77
|
+
asChild: true
|
|
78
|
+
}, /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
79
|
+
variant: "transparent",
|
|
80
|
+
size: "sm",
|
|
81
|
+
format: "icon"
|
|
82
|
+
}, /*#__PURE__*/React__namespace.createElement(icons.XMark, null)))));
|
|
83
|
+
};
|
|
84
|
+
Header.displayName = "Drawer.Header";
|
|
85
|
+
const Body = ({
|
|
86
|
+
className,
|
|
87
|
+
...props
|
|
88
|
+
}) => {
|
|
89
|
+
return /*#__PURE__*/React__namespace.createElement("div", Object.assign({
|
|
90
|
+
className: clx.clx("flex-1 px-8 pb-16 pt-6", className)
|
|
91
|
+
}, props));
|
|
92
|
+
};
|
|
93
|
+
Body.displayName = "Drawer.Body";
|
|
94
|
+
const Footer = ({
|
|
95
|
+
className,
|
|
96
|
+
...props
|
|
97
|
+
}) => {
|
|
98
|
+
return /*#__PURE__*/React__namespace.createElement("div", Object.assign({
|
|
99
|
+
className: clx.clx("border-ui-border-base flex items-center justify-end space-x-2 overflow-y-scroll border-t px-8 pb-6 pt-4", className)
|
|
100
|
+
}, props));
|
|
101
|
+
};
|
|
102
|
+
Footer.displayName = "Drawer.Footer";
|
|
103
|
+
const Title = /*#__PURE__*/React__namespace.forwardRef(({
|
|
104
|
+
className,
|
|
105
|
+
children,
|
|
106
|
+
...props
|
|
107
|
+
}, ref) => /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Title, Object.assign({
|
|
108
|
+
ref: ref,
|
|
109
|
+
className: clx.clx(className),
|
|
110
|
+
asChild: true
|
|
111
|
+
}, props), /*#__PURE__*/React__namespace.createElement(heading.Heading, {
|
|
112
|
+
level: "h1"
|
|
113
|
+
}, children)));
|
|
114
|
+
Title.displayName = "Drawer.Title";
|
|
115
|
+
const Description = /*#__PURE__*/React__namespace.forwardRef(({
|
|
116
|
+
className,
|
|
117
|
+
children,
|
|
118
|
+
...props
|
|
119
|
+
}, ref) => /*#__PURE__*/React__namespace.createElement(Primitives__namespace.Description, Object.assign({
|
|
120
|
+
ref: ref,
|
|
121
|
+
className: clx.clx(className),
|
|
122
|
+
asChild: true
|
|
123
|
+
}, props), /*#__PURE__*/React__namespace.createElement(text.Text, null, children)));
|
|
124
|
+
Description.displayName = "Drawer.Description";
|
|
125
|
+
const Drawer = Object.assign(Root, {
|
|
126
|
+
Body,
|
|
127
|
+
Close,
|
|
128
|
+
Content,
|
|
129
|
+
Description,
|
|
130
|
+
Footer,
|
|
131
|
+
Header,
|
|
132
|
+
Title,
|
|
133
|
+
Trigger
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
exports.Drawer = Drawer;
|