@driveflux/beam 2.0.16 → 2.1.0
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/dist/badge/Badge.js +1 -1
- package/dist/badge/Badge.js.map +1 -1
- package/dist/button/Button.d.ts +1 -1
- package/dist/button/Button.js +12 -124
- package/dist/button/Button.js.map +1 -1
- package/dist/chip/Chip.js +3 -104
- package/dist/chip/Chip.js.map +1 -1
- package/dist/command/command.d.ts +7 -7
- package/dist/command/command.js +13 -170
- package/dist/datepicker/DatePickerDrawer.d.ts.map +1 -1
- package/dist/datepicker/DatePickerDrawer.js +14 -110
- package/dist/datepicker/DatePickerDrawer.js.map +1 -1
- package/dist/datepicker/DatePickerPopover.js +35 -207
- package/dist/datepicker/DatePickerPopover.js.map +1 -1
- package/dist/dialog/index.js +33 -180
- package/dist/dialog/index.js.map +1 -1
- package/dist/drawer/index.d.ts.map +1 -1
- package/dist/drawer/index.js +12 -157
- package/dist/drawer/index.js.map +1 -1
- package/dist/icons/IconCancel.js +77 -5
- package/dist/icons/IconCollapseAll.js +94 -5
- package/dist/icons/IconDownload.js +79 -5
- package/dist/icons/IconExpandAll.js +94 -5
- package/dist/icons/IconReport.js +89 -6
- package/dist/input/Input.js +11 -125
- package/dist/input/Input.js.map +1 -1
- package/dist/input-select/InputSelect.js +68 -357
- package/dist/input-select/InputSelect.js.map +1 -1
- package/dist/select/Select.js +2 -2
- package/dist/select/Select.js.map +1 -1
- package/package.json +1 -1
package/dist/dialog/index.js
CHANGED
|
@@ -1,193 +1,46 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _define_property(obj, key, value) {
|
|
3
|
-
if (key in obj) {
|
|
4
|
-
Object.defineProperty(obj, key, {
|
|
5
|
-
value: value,
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
writable: true
|
|
9
|
-
});
|
|
10
|
-
} else {
|
|
11
|
-
obj[key] = value;
|
|
12
|
-
}
|
|
13
|
-
return obj;
|
|
14
|
-
}
|
|
15
|
-
function _object_spread(target) {
|
|
16
|
-
for(var i = 1; i < arguments.length; i++){
|
|
17
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
18
|
-
var ownKeys = Object.keys(source);
|
|
19
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
20
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
21
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
ownKeys.forEach(function(key) {
|
|
25
|
-
_define_property(target, key, source[key]);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return target;
|
|
29
|
-
}
|
|
30
|
-
function ownKeys(object, enumerableOnly) {
|
|
31
|
-
var keys = Object.keys(object);
|
|
32
|
-
if (Object.getOwnPropertySymbols) {
|
|
33
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
34
|
-
if (enumerableOnly) {
|
|
35
|
-
symbols = symbols.filter(function(sym) {
|
|
36
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
keys.push.apply(keys, symbols);
|
|
40
|
-
}
|
|
41
|
-
return keys;
|
|
42
|
-
}
|
|
43
|
-
function _object_spread_props(target, source) {
|
|
44
|
-
source = source != null ? source : {};
|
|
45
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
46
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
47
|
-
} else {
|
|
48
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
49
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return target;
|
|
53
|
-
}
|
|
54
|
-
function _object_without_properties(source, excluded) {
|
|
55
|
-
if (source == null) return {};
|
|
56
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
57
|
-
var key, i;
|
|
58
|
-
if (Object.getOwnPropertySymbols) {
|
|
59
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
60
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
61
|
-
key = sourceSymbolKeys[i];
|
|
62
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
63
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
64
|
-
target[key] = source[key];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return target;
|
|
68
|
-
}
|
|
69
|
-
function _object_without_properties_loose(source, excluded) {
|
|
70
|
-
if (source == null) return {};
|
|
71
|
-
var target = {};
|
|
72
|
-
var sourceKeys = Object.keys(source);
|
|
73
|
-
var key, i;
|
|
74
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
75
|
-
key = sourceKeys[i];
|
|
76
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
77
|
-
target[key] = source[key];
|
|
78
|
-
}
|
|
79
|
-
return target;
|
|
80
|
-
}
|
|
81
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
82
3
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
83
4
|
import * as React from 'react';
|
|
84
5
|
import HStack from '../hstack/HStack';
|
|
85
6
|
import IconClose from '../icons/IconClose';
|
|
86
7
|
import { cn } from '../utils';
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
93
|
-
"className"
|
|
94
|
-
]);
|
|
95
|
-
return /*#__PURE__*/ _jsx(DialogPrimitive.Overlay, _object_spread({
|
|
96
|
-
ref: ref,
|
|
97
|
-
className: cn('fixed inset-0 z-50 bg-black/45 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className)
|
|
98
|
-
}, props));
|
|
99
|
-
});
|
|
8
|
+
const Dialog = DialogPrimitive.Root;
|
|
9
|
+
const DialogTrigger = DialogPrimitive.Trigger;
|
|
10
|
+
const DialogPortal = DialogPrimitive.Portal;
|
|
11
|
+
const DialogClose = DialogPrimitive.Close;
|
|
12
|
+
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Overlay, { ref: ref, className: cn('fixed inset-0 z-50 bg-black/45 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className), ...props })));
|
|
100
13
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
// >
|
|
124
|
-
// {children}
|
|
125
|
-
// </DialogPrimitive.Content>
|
|
126
|
-
// </DialogPortal>
|
|
127
|
-
/*#__PURE__*/ _jsxs(DialogPortal, {
|
|
128
|
-
"data-slot": "dialog-portal",
|
|
129
|
-
children: [
|
|
130
|
-
/*#__PURE__*/ _jsx(DialogOverlay, {}),
|
|
131
|
-
/*#__PURE__*/ _jsxs(DialogPrimitive.Content, _object_spread_props(_object_spread({
|
|
132
|
-
autoFocus: false,
|
|
133
|
-
"data-slot": "dialog-content",
|
|
134
|
-
className: cn('bg-white 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[628px] translate-x-[-50%] translate-y-[-50%] border duration-200', className)
|
|
135
|
-
}, props), {
|
|
136
|
-
children: [
|
|
137
|
-
children,
|
|
138
|
-
showCloseButton && /*#__PURE__*/ _jsxs(DialogPrimitive.Close, {
|
|
139
|
-
"data-slot": "dialog-close",
|
|
140
|
-
className: "ring-offset-black focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
141
|
-
children: [
|
|
142
|
-
/*#__PURE__*/ _jsx(IconClose, {}),
|
|
143
|
-
/*#__PURE__*/ _jsx("span", {
|
|
144
|
-
className: "sr-only",
|
|
145
|
-
children: "Close"
|
|
146
|
-
})
|
|
147
|
-
]
|
|
148
|
-
})
|
|
149
|
-
]
|
|
150
|
-
}))
|
|
151
|
-
]
|
|
152
|
-
}));
|
|
153
|
-
});
|
|
14
|
+
const DialogContent = React.forwardRef(({ className, children, showCloseButton, ...props }, ref) => (
|
|
15
|
+
// <DialogPortal>
|
|
16
|
+
// <DialogOverlay />
|
|
17
|
+
// <DialogPrimitive.Content
|
|
18
|
+
// ref={ref}
|
|
19
|
+
// className={cn(
|
|
20
|
+
// 'fixed left-[50%] top-[50%] z-50 w-full max-w-[628px] translate-x-[-50%] translate-y-[-50%]',
|
|
21
|
+
// 'border border-zinc-200 bg-white shadow-lg duration-200',
|
|
22
|
+
// 'data-[state=open]:animate-in data-[state=closed]:animate-out',
|
|
23
|
+
// 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
|
|
24
|
+
// 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
|
|
25
|
+
// 'data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]',
|
|
26
|
+
// 'data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]',
|
|
27
|
+
// 'dark:border-zinc-800 dark:bg-zinc-950',
|
|
28
|
+
// className,
|
|
29
|
+
// )}
|
|
30
|
+
// {...props}
|
|
31
|
+
// >
|
|
32
|
+
// {children}
|
|
33
|
+
// </DialogPrimitive.Content>
|
|
34
|
+
// </DialogPortal>
|
|
35
|
+
_jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { autoFocus: false, "data-slot": "dialog-content", className: cn('bg-white 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[628px] translate-x-[-50%] translate-y-[-50%] border duration-200 rounded-xl', className), ...props, children: [children, showCloseButton && (_jsxs(DialogPrimitive.Close, { "data-slot": "dialog-close", className: "ring-offset-black focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [_jsx(IconClose, {}), _jsx("span", { className: "sr-only", children: "Close" })] }))] })] })));
|
|
154
36
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
155
|
-
|
|
156
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
157
|
-
"className"
|
|
158
|
-
]);
|
|
159
|
-
return /*#__PURE__*/ _jsx(HStack, _object_spread({
|
|
160
|
-
className: cn('justify-between p-6 border-b border-b-primary1', className)
|
|
161
|
-
}, props));
|
|
162
|
-
};
|
|
37
|
+
const DialogHeader = ({ className, ...props }) => (_jsx(HStack, { className: cn('justify-between p-6 border-b border-b-primary1', className), ...props }));
|
|
163
38
|
DialogHeader.displayName = 'DialogHeader';
|
|
164
|
-
|
|
165
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
166
|
-
"className"
|
|
167
|
-
]);
|
|
168
|
-
return /*#__PURE__*/ _jsx(HStack, _object_spread({
|
|
169
|
-
className: cn('gap-6 p-6 border-t border-t-primary1', className)
|
|
170
|
-
}, props));
|
|
171
|
-
};
|
|
39
|
+
const DialogFooter = ({ className, ...props }) => (_jsx(HStack, { className: cn('gap-6 p-6 border-t border-t-primary1', className), ...props }));
|
|
172
40
|
DialogFooter.displayName = 'DialogFooter';
|
|
173
|
-
|
|
174
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
175
|
-
"className"
|
|
176
|
-
]);
|
|
177
|
-
return /*#__PURE__*/ _jsx(DialogPrimitive.Title, _object_spread({
|
|
178
|
-
ref: ref,
|
|
179
|
-
className: cn('text-lg font-semibold leading-none tracking-tight', className)
|
|
180
|
-
}, props));
|
|
181
|
-
});
|
|
41
|
+
const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Title, { ref: ref, className: cn('text-lg font-semibold leading-none tracking-tight', className), ...props })));
|
|
182
42
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
183
|
-
|
|
184
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
185
|
-
"className"
|
|
186
|
-
]);
|
|
187
|
-
return /*#__PURE__*/ _jsx(DialogPrimitive.Description, _object_spread({
|
|
188
|
-
ref: ref,
|
|
189
|
-
className: cn('text-sm text-zinc-500 dark:text-zinc-400', className)
|
|
190
|
-
}, props));
|
|
191
|
-
});
|
|
43
|
+
const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Description, { ref: ref, className: cn('text-sm text-zinc-500 dark:text-zinc-400', className), ...props })));
|
|
192
44
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
193
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger,
|
|
45
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
package/dist/dialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dialog/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,MAAM,MAAM,kBAAkB,CAAA;AACrC,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAA;AAE7B,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAA;AAEnC,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAA;AAE7C,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAA;AAE3C,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAA;AAEzC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAGpC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnC,KAAC,eAAe,CAAC,OAAO,IACvB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dialog/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,MAAM,MAAM,kBAAkB,CAAA;AACrC,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAA;AAE7B,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAA;AAEnC,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAA;AAE7C,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,C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Z,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/drawer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAA;AAKhD,QAAA,MAAM,MAAM;0CAGT,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;;CAKnD,CAAA;AAGD,QAAA,MAAM,aAAa,+HAA0B,CAAA;AAE7C,QAAA,MAAM,YAAY,8BAAyB,CAAA;AAE3C,QAAA,MAAM,WAAW,6HAAwB,CAAA;AAEzC,QAAA,MAAM,aAAa,kOASjB,CAAA;AAGF,QAAA,MAAM,aAAa;kBAGH,OAAO;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/drawer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAA;AAKhD,QAAA,MAAM,MAAM;0CAGT,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;;CAKnD,CAAA;AAGD,QAAA,MAAM,aAAa,+HAA0B,CAAA;AAE7C,QAAA,MAAM,YAAY,8BAAyB,CAAA;AAE3C,QAAA,MAAM,WAAW,6HAAwB,CAAA;AAEzC,QAAA,MAAM,aAAa,kOASjB,CAAA;AAGF,QAAA,MAAM,aAAa;kBAGH,OAAO;wCAmBrB,CAAA;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAKtC,CAAA;AAGD,QAAA,MAAM,WAAW,qLAYf,CAAA;AAGF,QAAA,MAAM,iBAAiB,+LASrB,CAAA;AAGF,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,CAAA"}
|
package/dist/drawer/index.js
CHANGED
|
@@ -1,170 +1,25 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _define_property(obj, key, value) {
|
|
3
|
-
if (key in obj) {
|
|
4
|
-
Object.defineProperty(obj, key, {
|
|
5
|
-
value: value,
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
writable: true
|
|
9
|
-
});
|
|
10
|
-
} else {
|
|
11
|
-
obj[key] = value;
|
|
12
|
-
}
|
|
13
|
-
return obj;
|
|
14
|
-
}
|
|
15
|
-
function _object_spread(target) {
|
|
16
|
-
for(var i = 1; i < arguments.length; i++){
|
|
17
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
18
|
-
var ownKeys = Object.keys(source);
|
|
19
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
20
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
21
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
ownKeys.forEach(function(key) {
|
|
25
|
-
_define_property(target, key, source[key]);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return target;
|
|
29
|
-
}
|
|
30
|
-
function ownKeys(object, enumerableOnly) {
|
|
31
|
-
var keys = Object.keys(object);
|
|
32
|
-
if (Object.getOwnPropertySymbols) {
|
|
33
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
34
|
-
if (enumerableOnly) {
|
|
35
|
-
symbols = symbols.filter(function(sym) {
|
|
36
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
keys.push.apply(keys, symbols);
|
|
40
|
-
}
|
|
41
|
-
return keys;
|
|
42
|
-
}
|
|
43
|
-
function _object_spread_props(target, source) {
|
|
44
|
-
source = source != null ? source : {};
|
|
45
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
46
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
47
|
-
} else {
|
|
48
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
49
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return target;
|
|
53
|
-
}
|
|
54
|
-
function _object_without_properties(source, excluded) {
|
|
55
|
-
if (source == null) return {};
|
|
56
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
57
|
-
var key, i;
|
|
58
|
-
if (Object.getOwnPropertySymbols) {
|
|
59
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
60
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
61
|
-
key = sourceSymbolKeys[i];
|
|
62
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
63
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
64
|
-
target[key] = source[key];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return target;
|
|
68
|
-
}
|
|
69
|
-
function _object_without_properties_loose(source, excluded) {
|
|
70
|
-
if (source == null) return {};
|
|
71
|
-
var target = {};
|
|
72
|
-
var sourceKeys = Object.keys(source);
|
|
73
|
-
var key, i;
|
|
74
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
75
|
-
key = sourceKeys[i];
|
|
76
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
77
|
-
target[key] = source[key];
|
|
78
|
-
}
|
|
79
|
-
return target;
|
|
80
|
-
}
|
|
81
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
82
3
|
import * as React from 'react';
|
|
83
4
|
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
84
5
|
import Box from '../box/Box';
|
|
85
6
|
import { cn } from '../utils';
|
|
86
|
-
|
|
87
|
-
var _param_shouldScaleBackground = _param.shouldScaleBackground, shouldScaleBackground = _param_shouldScaleBackground === void 0 ? true : _param_shouldScaleBackground, props = _object_without_properties(_param, [
|
|
88
|
-
"shouldScaleBackground"
|
|
89
|
-
]);
|
|
90
|
-
return /*#__PURE__*/ _jsx(DrawerPrimitive.Root, _object_spread({
|
|
91
|
-
shouldScaleBackground: shouldScaleBackground
|
|
92
|
-
}, props));
|
|
93
|
-
};
|
|
7
|
+
const Drawer = ({ shouldScaleBackground = true, ...props }) => (_jsx(DrawerPrimitive.Root, { shouldScaleBackground: shouldScaleBackground, ...props }));
|
|
94
8
|
Drawer.displayName = 'Drawer';
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
100
|
-
"className"
|
|
101
|
-
]);
|
|
102
|
-
return /*#__PURE__*/ _jsx(DrawerPrimitive.Overlay, _object_spread({
|
|
103
|
-
ref: ref,
|
|
104
|
-
className: cn('fixed inset-0 z-50 bg-black/50', className)
|
|
105
|
-
}, props));
|
|
106
|
-
});
|
|
9
|
+
const DrawerTrigger = DrawerPrimitive.Trigger;
|
|
10
|
+
const DrawerPortal = DrawerPrimitive.Portal;
|
|
11
|
+
const DrawerClose = DrawerPrimitive.Close;
|
|
12
|
+
const DrawerOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(DrawerPrimitive.Overlay, { ref: ref, className: cn('fixed inset-0 z-50 bg-black/50', className), ...props })));
|
|
107
13
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
108
|
-
|
|
109
|
-
var className = _param.className, _param_hideGrabber = _param.hideGrabber, hideGrabber = _param_hideGrabber === void 0 ? true : _param_hideGrabber, children = _param.children, props = _object_without_properties(_param, [
|
|
110
|
-
"className",
|
|
111
|
-
"hideGrabber",
|
|
112
|
-
"children"
|
|
113
|
-
]);
|
|
114
|
-
return /*#__PURE__*/ _jsxs(DrawerPortal, {
|
|
115
|
-
children: [
|
|
116
|
-
/*#__PURE__*/ _jsx(DrawerOverlay, {}),
|
|
117
|
-
/*#__PURE__*/ _jsxs(DrawerPrimitive.Content, _object_spread_props(_object_spread({
|
|
118
|
-
ref: ref,
|
|
119
|
-
className: cn('fixed inset-x-0 bottom-0 z-50 mt-50 flex h-auto flex-col bg-white outline-hidden dark:border-zinc-800 dark:bg-zinc-950', hideGrabber ? 'rounded-none' : 'rounded-t-3xl', className)
|
|
120
|
-
}, props), {
|
|
121
|
-
children: [
|
|
122
|
-
!hideGrabber && /*#__PURE__*/ _jsx(Box, {
|
|
123
|
-
className: "mx-auto mt-2 h-1 w-[44px] rounded-full bg-primary2 dark:bg-zinc-800"
|
|
124
|
-
}),
|
|
125
|
-
children
|
|
126
|
-
]
|
|
127
|
-
}))
|
|
128
|
-
]
|
|
129
|
-
});
|
|
130
|
-
});
|
|
14
|
+
const DrawerContent = React.forwardRef(({ className, hideGrabber = true, children, ...props }, ref) => (_jsxs(DrawerPortal, { children: [_jsx(DrawerOverlay, {}), _jsxs(DrawerPrimitive.Content, { ref: ref, className: cn('fixed inset-x-0 bottom-0 z-50 mt-50 flex h-auto flex-col bg-white outline-hidden dark:border-zinc-800 dark:bg-zinc-950 rounded-t-2xl', className), ...props, children: [!hideGrabber && (_jsx(Box, { className: "mx-auto mt-2 h-1 w-[44px] rounded-full bg-primary2 dark:bg-zinc-800" })), children] })] })));
|
|
131
15
|
DrawerContent.displayName = 'DrawerContent';
|
|
132
|
-
|
|
133
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
134
|
-
"className"
|
|
135
|
-
]);
|
|
136
|
-
return /*#__PURE__*/ _jsx("div", _object_spread({
|
|
137
|
-
className: cn('grid gap-1.5 p-4 text-left border-b border-b-primary1 sm:text-left', className)
|
|
138
|
-
}, props));
|
|
139
|
-
};
|
|
16
|
+
const DrawerHeader = ({ className, ...props }) => (_jsx("div", { className: cn('grid gap-1.5 p-4 text-left border-b border-b-primary1 sm:text-left', className), ...props }));
|
|
140
17
|
DrawerHeader.displayName = 'DrawerHeader';
|
|
141
|
-
|
|
142
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
143
|
-
"className"
|
|
144
|
-
]);
|
|
145
|
-
return /*#__PURE__*/ _jsx("div", _object_spread({
|
|
146
|
-
className: cn('mt-auto flex flex-col gap-2 p-4', className)
|
|
147
|
-
}, props));
|
|
148
|
-
};
|
|
18
|
+
const DrawerFooter = ({ className, ...props }) => (_jsx("div", { className: cn('mt-auto flex flex-col gap-2 p-4', className), ...props }));
|
|
149
19
|
DrawerFooter.displayName = 'DrawerFooter';
|
|
150
|
-
|
|
151
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
152
|
-
"className"
|
|
153
|
-
]);
|
|
154
|
-
return /*#__PURE__*/ _jsx(DrawerPrimitive.Title, _object_spread({
|
|
155
|
-
ref: ref,
|
|
156
|
-
className: cn('text-sm font-semibold leading-none tracking-tight', className)
|
|
157
|
-
}, props));
|
|
158
|
-
});
|
|
20
|
+
const DrawerTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(DrawerPrimitive.Title, { ref: ref, className: cn('text-sm font-semibold leading-none tracking-tight', className), ...props })));
|
|
159
21
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
160
|
-
|
|
161
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
162
|
-
"className"
|
|
163
|
-
]);
|
|
164
|
-
return /*#__PURE__*/ _jsx(DrawerPrimitive.Description, _object_spread({
|
|
165
|
-
ref: ref,
|
|
166
|
-
className: cn('text-sm text-zinc-500 dark:text-zinc-400', className)
|
|
167
|
-
}, props));
|
|
168
|
-
});
|
|
22
|
+
const DrawerDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(DrawerPrimitive.Description, { ref: ref, className: cn('text-sm text-zinc-500 dark:text-zinc-400', className), ...props })));
|
|
169
23
|
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
170
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger,
|
|
24
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, };
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
package/dist/drawer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/drawer/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAA;AAEhD,OAAO,GAAG,MAAM,YAAY,CAAA;AAC5B,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAA;AAE7B,MAAM,MAAM,GAAG,CAAC,EACf,qBAAqB,GAAG,IAAI,EAC5B,GAAG,KAAK,EAC2C,EAAE,EAAE,CAAC,CACxD,KAAC,eAAe,CAAC,IAAI,IACpB,qBAAqB,EAAE,qBAAqB,KACxC,KAAK,GACR,CACF,CAAA;AACD,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA;AAE7B,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAA;AAE7C,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAA;AAE3C,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAA;AAEzC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAGpC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnC,KAAC,eAAe,CAAC,OAAO,IACvB,GAAG,EAAE,GAAG,EACR,SAAS,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C,KAAC,eAAe,CAAC,KAAK,IACrB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACZ,mDAAmD,EACnD,SAAS,CACT,KACG,KAAK,GACR,CACF,CAAC,CAAA;AACF,WAAW,CAAC,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC,WAAW,CAAA;AAE3D,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAGxC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnC,KAAC,eAAe,CAAC,WAAW,IAC3B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,0CAA0C,EAAE,SAAS,CAAC,KAChE,KAAK,GACR,CACF,CAAC,CAAA;AACF,iBAAiB,CAAC,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC,WAAW,CAAA;AAEvE,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,CAAA"}
|
package/dist/icons/IconCancel.js
CHANGED
|
@@ -1,9 +1,81 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _object_without_properties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _object_without_properties_loose(source, excluded) {
|
|
45
|
+
if (source == null) return {};
|
|
46
|
+
var target = {};
|
|
47
|
+
var sourceKeys = Object.keys(source);
|
|
48
|
+
var key, i;
|
|
49
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
1
56
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
57
|
import { Icon } from './Icon';
|
|
3
|
-
|
|
4
|
-
filled:
|
|
5
|
-
|
|
58
|
+
var variants = {
|
|
59
|
+
filled: /*#__PURE__*/ _jsx(_Fragment, {
|
|
60
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
61
|
+
d: "M16 4C9.3824 4 4 9.3824 4 16C4 22.6176 9.3824 28 16 28C22.6176 28 28 22.6176 28 16C28 9.3824 22.6176 4 16 4ZM21.216 19.7824L19.776 21.2224L16 17.44L12.2176 21.2224L10.7776 19.7824L14.56 16L10.7776 12.2176L12.2176 10.7776L16 14.56L19.7824 10.7776L21.2224 12.2176L17.44 16L21.216 19.7824Z",
|
|
62
|
+
fill: "currentColor"
|
|
63
|
+
})
|
|
64
|
+
}),
|
|
65
|
+
outline: /*#__PURE__*/ _jsx(_Fragment, {
|
|
66
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
67
|
+
d: "M9 0.667969C4.0368 0.667969 0 4.70477 0 9.66797C0 14.6312 4.0368 18.668 9 18.668C13.9632 18.668 18 14.6312 18 9.66797C18 4.70477 13.9632 0.667969 9 0.667969ZM9 2.17037C13.152 2.17037 16.4976 5.52077 16.4976 9.66797C16.4976 13.8152 13.152 17.1656 9 17.1656C4.848 17.1656 1.5024 13.82 1.5024 9.66797C1.5024 5.51597 4.848 2.17037 9 2.17037ZM6.1632 5.75597L5.0832 6.83597L7.92 9.67277L5.0832 12.5096L6.1632 13.5896L9 10.7528L11.8368 13.5896L12.9168 12.5096L10.08 9.66797L12.9168 6.83117L11.8368 5.75117L9 8.58797L6.1632 5.75597Z",
|
|
68
|
+
fill: "currentColor"
|
|
69
|
+
})
|
|
70
|
+
})
|
|
71
|
+
};
|
|
72
|
+
var IconCancel = function(_param) {
|
|
73
|
+
var _param_variant = _param.variant, variant = _param_variant === void 0 ? 'outline' : _param_variant, props = _object_without_properties(_param, [
|
|
74
|
+
"variant"
|
|
75
|
+
]);
|
|
76
|
+
return /*#__PURE__*/ _jsx(Icon, _object_spread({
|
|
77
|
+
viewBox: variant === 'filled' ? '0 0 32 32' : '0 0 18 19',
|
|
78
|
+
element: variants[variant]
|
|
79
|
+
}, props));
|
|
6
80
|
};
|
|
7
|
-
const IconCancel = ({ variant = 'outline', ...props }) => (_jsx(Icon, { viewBox: variant === 'filled' ? '0 0 32 32' : '0 0 18 19', element: variants[variant], ...props }));
|
|
8
81
|
export default IconCancel;
|
|
9
|
-
//# sourceMappingURL=IconCancel.js.map
|
|
@@ -1,8 +1,97 @@
|
|
|
1
|
-
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _object_without_properties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _object_without_properties_loose(source, excluded) {
|
|
45
|
+
if (source == null) return {};
|
|
46
|
+
var target = {};
|
|
47
|
+
var sourceKeys = Object.keys(source);
|
|
48
|
+
var key, i;
|
|
49
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
57
|
import { Icon } from './Icon';
|
|
3
|
-
|
|
4
|
-
default:
|
|
58
|
+
var variants = {
|
|
59
|
+
default: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
60
|
+
children: [
|
|
61
|
+
/*#__PURE__*/ _jsx("mask", {
|
|
62
|
+
id: "mask0_6490_9460",
|
|
63
|
+
style: {
|
|
64
|
+
maskType: 'alpha'
|
|
65
|
+
},
|
|
66
|
+
maskUnits: "userSpaceOnUse",
|
|
67
|
+
x: "0",
|
|
68
|
+
y: "0",
|
|
69
|
+
width: "16",
|
|
70
|
+
height: "16",
|
|
71
|
+
children: /*#__PURE__*/ _jsx("rect", {
|
|
72
|
+
width: "16",
|
|
73
|
+
height: "16",
|
|
74
|
+
fill: "currentColor"
|
|
75
|
+
})
|
|
76
|
+
}),
|
|
77
|
+
/*#__PURE__*/ _jsx("g", {
|
|
78
|
+
mask: "url(#mask0_6490_9460)",
|
|
79
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
80
|
+
d: "M4.93333 14.6693L4 13.7359L8 9.73594L12 13.7359L11.0667 14.6693L8 11.6026L4.93333 14.6693ZM8 6.26927L4 2.26927L4.93333 1.33594L8 4.4026L11.0667 1.33594L12 2.26927L8 6.26927Z",
|
|
81
|
+
fill: "currentColor"
|
|
82
|
+
})
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
};
|
|
87
|
+
var IconCollapseAll = function(_param) {
|
|
88
|
+
var _param_viewBox = _param.viewBox, viewBox = _param_viewBox === void 0 ? '0 0 16 16' : _param_viewBox, _param_variant = _param.variant, variant = _param_variant === void 0 ? 'default' : _param_variant, props = _object_without_properties(_param, [
|
|
89
|
+
"viewBox",
|
|
90
|
+
"variant"
|
|
91
|
+
]);
|
|
92
|
+
return /*#__PURE__*/ _jsx(Icon, _object_spread({
|
|
93
|
+
viewBox: viewBox,
|
|
94
|
+
element: variants[variant]
|
|
95
|
+
}, props));
|
|
5
96
|
};
|
|
6
|
-
const IconCollapseAll = ({ viewBox = '0 0 16 16', variant = 'default', ...props }) => _jsx(Icon, { viewBox: viewBox, element: variants[variant], ...props });
|
|
7
97
|
export default IconCollapseAll;
|
|
8
|
-
//# sourceMappingURL=IconCollapseAll.js.map
|