@deskpro/deskpro-ui 0.1.13 → 0.2.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/README.md +11 -8
- package/dist/cjs/components/AttachmentTag/AttachmentTag.d.ts.map +1 -1
- package/dist/cjs/components/AttachmentTag/AttachmentTag.js +1 -3
- package/dist/cjs/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/cjs/components/Avatar/Avatar.js +5 -11
- package/dist/cjs/components/Avatar/AvatarGroup.d.ts +1 -1
- package/dist/cjs/components/Avatar/AvatarGroup.d.ts.map +1 -1
- package/dist/cjs/components/Button/Button.d.ts +17 -9
- package/dist/cjs/components/Button/Button.d.ts.map +1 -1
- package/dist/cjs/components/Button/Button.js +93 -27
- package/dist/cjs/components/Button/styles.d.ts +6 -5
- package/dist/cjs/components/Button/styles.d.ts.map +1 -1
- package/dist/cjs/components/Button/styles.js +59 -39
- package/dist/cjs/components/Button/types.d.ts +19 -9
- package/dist/cjs/components/Button/types.d.ts.map +1 -1
- package/dist/cjs/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/cjs/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.js +1 -3
- package/dist/cjs/components/ColorInput/ColorInput.d.ts.map +1 -1
- package/dist/cjs/components/ColorInput/ColorInput.js +4 -8
- package/dist/cjs/components/DatePicker/index.d.ts +1 -1
- package/dist/cjs/components/DatePicker/index.d.ts.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.d.ts +1 -1
- package/dist/cjs/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.js +1 -0
- package/dist/cjs/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/cjs/components/Dropdown/Dropdown.js +5 -11
- package/dist/cjs/components/Dropdown/types.d.ts.map +1 -1
- package/dist/cjs/components/Icon/DeskproCustomIcon.d.ts +5 -4
- package/dist/cjs/components/Icon/DeskproCustomIcon.d.ts.map +1 -1
- package/dist/cjs/components/Icon/DeskproCustomIcon.js +2 -2
- package/dist/cjs/components/Icon/HeroIcon.d.ts +2 -2
- package/dist/cjs/components/Icon/HeroIcon.d.ts.map +1 -1
- package/dist/cjs/components/Icon/Icon.d.ts.map +1 -1
- package/dist/cjs/components/Icon/Icon.js +8 -16
- package/dist/cjs/components/Infinite/Infinite.d.ts.map +1 -1
- package/dist/cjs/components/Infinite/Infinite.js +5 -10
- package/dist/cjs/components/Infinite/InfiniteTopBottom.d.ts.map +1 -1
- package/dist/cjs/components/Infinite/InfiniteTopBottom.js +4 -8
- package/dist/cjs/components/IntlPhoneInput/IntlPhoneInput.d.ts +1 -1
- package/dist/cjs/components/IntlPhoneInput/IntlPhoneInput.d.ts.map +1 -1
- package/dist/cjs/components/IntlPhoneInput/IntlPhoneInput.js +2 -6
- package/dist/cjs/components/LabelTag/Tag.d.ts +1 -1
- package/dist/cjs/components/LabelTag/Tag.d.ts.map +1 -1
- package/dist/cjs/components/LabelTag/Tag.js +7 -6
- package/dist/cjs/components/Menu/Menu.d.ts +8 -16
- package/dist/cjs/components/Menu/Menu.d.ts.map +1 -1
- package/dist/cjs/components/Menu/Menu.js +2 -2
- package/dist/cjs/components/Modal/Modal.d.ts +1 -1
- package/dist/cjs/components/Modal/Modal.d.ts.map +1 -1
- package/dist/cjs/components/Modal/Modal.js +3 -9
- package/dist/cjs/components/OptionTag/OptionTag.d.ts.map +1 -1
- package/dist/cjs/components/OptionTag/OptionTag.js +1 -1
- package/dist/cjs/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +3 -4
- package/dist/cjs/components/Select/Select.d.ts.map +1 -1
- package/dist/cjs/components/Select/Select.js +5 -11
- package/dist/cjs/components/TabbedSection/Tabs.d.ts.map +1 -1
- package/dist/cjs/components/TabbedSection/Tabs.js +2 -2
- package/dist/cjs/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/cjs/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/cjs/components/Toggle/Toggle.js +4 -16
- package/dist/cjs/components/Tooltip/Tooltip.d.ts +4 -2
- package/dist/cjs/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js +21 -8
- package/dist/cjs/nav/NavSidebar/NavSidebar.d.ts +1 -1
- package/dist/cjs/nav/NavSidebar/NavSidebar.d.ts.map +1 -1
- package/dist/cjs/nav/NavSidebar/NavSidebar.js +2 -6
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/components/AttachmentTag/AttachmentTag.js +1 -3
- package/dist/esm/components/Avatar/Avatar.js +5 -11
- package/dist/esm/components/Button/Button.js +92 -27
- package/dist/esm/components/Button/styles.js +58 -38
- package/dist/esm/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js +1 -3
- package/dist/esm/components/ColorInput/ColorInput.js +4 -8
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Dialog/Dialog.js +1 -0
- package/dist/esm/components/Dropdown/Dropdown.js +6 -12
- package/dist/esm/components/Icon/DeskproCustomIcon.js +3 -3
- package/dist/esm/components/Icon/Icon.js +8 -16
- package/dist/esm/components/Infinite/Infinite.js +6 -11
- package/dist/esm/components/Infinite/InfiniteTopBottom.js +5 -9
- package/dist/esm/components/IntlPhoneInput/IntlPhoneInput.js +3 -7
- package/dist/esm/components/LabelTag/Tag.js +7 -6
- package/dist/esm/components/Menu/Menu.js +3 -3
- package/dist/esm/components/Modal/Modal.js +3 -9
- package/dist/esm/components/OptionTag/OptionTag.js +1 -1
- package/dist/esm/components/Pagination/Pagination.js +4 -5
- package/dist/esm/components/Select/Select.js +5 -11
- package/dist/esm/components/TabbedSection/Tabs.js +2 -2
- package/dist/esm/components/Toggle/Toggle.js +4 -16
- package/dist/esm/components/Tooltip/Tooltip.js +23 -10
- package/dist/esm/nav/NavSidebar/NavSidebar.js +2 -6
- package/package.json +20 -11
package/README.md
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
# @deskpro/deskpro-ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Deskpro UI components
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
<ul>
|
|
8
|
+
<li><a href="https://deskpro.github.io/deskpro-ui/storybook/?path=/story/component-gallery--component-gallery">Storybook</a></li>
|
|
9
|
+
<li><a href="https://deskpro.github.io/deskpro-ui/typedoc">Typedoc</a></li>
|
|
10
|
+
</ul>
|
|
4
11
|
|
|
5
12
|
## Usage
|
|
6
13
|
|
|
7
14
|
```tsx
|
|
8
15
|
import React from 'react'
|
|
9
16
|
|
|
10
|
-
import { Stack } from '@deskpro
|
|
17
|
+
import { Stack } from '@deskpro/deskpro-ui'
|
|
11
18
|
import "modern-normalize/modern-normalize.css";
|
|
12
19
|
import "flatpickr/dist/themes/light.css";
|
|
13
20
|
import "notyf/notyf.min.css";
|
|
@@ -15,8 +22,8 @@ import "tippy.js/dist/tippy.css";
|
|
|
15
22
|
import "simplebar/dist/simplebar.min.css";
|
|
16
23
|
import "flag-icon-css/css/flag-icons.min.css";
|
|
17
24
|
|
|
18
|
-
import "@deskpro
|
|
19
|
-
import "@deskpro
|
|
25
|
+
import "@deskpro/deskpro-ui/dist/deskpro-ui.css";
|
|
26
|
+
import "@deskpro/deskpro-ui/dist/deskpro-custom-icons.css";
|
|
20
27
|
|
|
21
28
|
class Example extends Component {
|
|
22
29
|
render() {
|
|
@@ -24,7 +31,3 @@ class Example extends Component {
|
|
|
24
31
|
}
|
|
25
32
|
}
|
|
26
33
|
```
|
|
27
|
-
|
|
28
|
-
## License
|
|
29
|
-
|
|
30
|
-
Commercial © [deskpro](https://github.com/deskpro)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentTag.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentTag/AttachmentTag.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAoC,UAAU,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,OAAO,EAAQ,MAAM,SAAS,CAAC;AA2CxC,eAAO,MAAM,IAAI;aAAyB,SAAS,GAAG,OAAO;SAO5D,CAAC;AAiBF,eAAO,MAAM,aAAa;cAVd,MAAM;cACN,MAAM;UACV,OAAO;mBACC,WAAW,iBAAiB,CAAC,KAAK,IAAI;;;;;
|
|
1
|
+
{"version":3,"file":"AttachmentTag.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentTag/AttachmentTag.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAoC,UAAU,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,OAAO,EAAQ,MAAM,SAAS,CAAC;AA2CxC,eAAO,MAAM,IAAI;aAAyB,SAAS,GAAG,OAAO;SAO5D,CAAC;AAiBF,eAAO,MAAM,aAAa;cAVd,MAAM;cACN,MAAM;UACV,OAAO;mBACC,WAAW,iBAAiB,CAAC,KAAK,IAAI;;;;;2CAuDpD,CAAC"}
|
|
@@ -29,9 +29,7 @@ exports.Name = (0, styled_components_1.default)(Typography_1.P6)(templateObject_
|
|
|
29
29
|
var Size = (0, styled_components_1.default)(Typography_1.P8)(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n white-space: nowrap;\n"], ["\n white-space: nowrap;\n"])));
|
|
30
30
|
exports.AttachmentTag = (0, react_1.forwardRef)(function AttachmentTag(_a, ref) {
|
|
31
31
|
var filename = _a.filename, fileSize = _a.fileSize, icon = _a.icon, onClose = _a.onClose, withClose = _a.withClose, _b = _a.variant, variant = _b === void 0 ? "default" : _b, maxWidth = _a.maxWidth, isLoading = _a.isLoading, rest = (0, tslib_1.__rest)(_a, ["filename", "fileSize", "icon", "onClose", "withClose", "variant", "maxWidth", "isLoading"]);
|
|
32
|
-
var displayFileSize = fileSize
|
|
33
|
-
? (0, pretty_bytes_1.default)(fileSize, { locale: true })
|
|
34
|
-
: undefined;
|
|
32
|
+
var displayFileSize = fileSize ? (0, pretty_bytes_1.default)(fileSize, { locale: true }) : undefined;
|
|
35
33
|
return (React.createElement(StyledContainer, (0, tslib_1.__assign)({}, (0, utils_1.dpNameProp)("AttachmentTag"), { gap: 6, variant: variant, style: { maxWidth: maxWidth } }),
|
|
36
34
|
React.createElement(AttachmentLink, (0, tslib_1.__assign)({ ref: ref }, rest, { title: filename, target: "_blank", rel: "noopener nofollow noreferrer" }),
|
|
37
35
|
React.createElement(Icon_1.Icon, { icon: icon }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAW,MAAM,OAAO,CAAC;AAI/C,OAAO,EAAE,OAAO,EAAQ,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,cAAc,EAAiB,MAAM,aAAa,CAAC;AAsC5D,eAAO,MAAM,YAAY;;;;;;;;SAcxB,CAAC;AAEF,oBAAY,UAAU,GAClB,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,GAAG,GACH,GAAG,CAAC;AAER,oBAAY,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtE,oBAAY,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAW,MAAM,OAAO,CAAC;AAI/C,OAAO,EAAE,OAAO,EAAQ,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,cAAc,EAAiB,MAAM,aAAa,CAAC;AAsC5D,eAAO,MAAM,YAAY;;;;;;;;SAcxB,CAAC;AAEF,oBAAY,UAAU,GAClB,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,GAAG,GACH,GAAG,CAAC;AAER,oBAAY,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtE,oBAAY,WAAW,GAAG,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,gBAAgB,CAAC,GACjF,eAAe,CAAC;AAElB,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,UAAU,iBAAiB;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,UAAU,eAAe;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,MAAM,iJAYd,WAAW,iBAkHf,CAAC;AAMF,eAAO,MAAM,mBAAmB,gBACjB,WAAW,uDAC+D,CAAC;AAC1F,eAAO,MAAM,kBAAkB,gBAChB,WAAW,sDACuD,CAAC;AAElF,eAAO,MAAM,eAAe;;;;;UAIjB,MAAM;kCAGhB,CAAC"}
|
|
@@ -110,7 +110,7 @@ exports.Avatar = React.memo(function (_a) {
|
|
|
110
110
|
}, [imageStyles, props, randomColors.backgroundColor]);
|
|
111
111
|
var AvatarComponent = (0, react_1.useMemo)(function () {
|
|
112
112
|
if (isEmojiAvatarProps(props)) {
|
|
113
|
-
return
|
|
113
|
+
return React.createElement(Emoji, { title: name, size: size, style: props.emojiStyles, rounded: rounded });
|
|
114
114
|
}
|
|
115
115
|
if ((0, exports.isFaIconAvatarProps)(props)) {
|
|
116
116
|
var Component = (React.createElement(FaIcon, { title: name, size: size, className: props.faIconClassName, style: props.iconStyles, rounded: rounded }));
|
|
@@ -130,7 +130,7 @@ exports.Avatar = React.memo(function (_a) {
|
|
|
130
130
|
if (name && initials) {
|
|
131
131
|
return React.createElement(LabelTag_1.TagCircleLetter, { name: name, size: size });
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return React.createElement(LabelTag_1.TagCircleIcon, { icon: backupIcon, color: themeColor !== null && themeColor !== void 0 ? themeColor : "brandShade", size: size });
|
|
134
134
|
}
|
|
135
135
|
else {
|
|
136
136
|
return React.createElement(Icon_1.Icon, { icon: backupIcon, size: size });
|
|
@@ -151,16 +151,10 @@ exports.Avatar = React.memo(function (_a) {
|
|
|
151
151
|
AvatarComponent,
|
|
152
152
|
statusColor && showOnlineBadge && (React.createElement(exports.StatusCircle, { themeColor: statusColor, rounded: rounded })))));
|
|
153
153
|
});
|
|
154
|
-
var isEmojiAvatarProps = function (avatarProps) {
|
|
155
|
-
|
|
156
|
-
};
|
|
157
|
-
var isFaIconAvatarProps = function (avatarProps) {
|
|
158
|
-
return "faIconClassName" in avatarProps;
|
|
159
|
-
};
|
|
154
|
+
var isEmojiAvatarProps = function (avatarProps) { return "emojiStyles" in avatarProps; };
|
|
155
|
+
var isFaIconAvatarProps = function (avatarProps) { return "faIconClassName" in avatarProps; };
|
|
160
156
|
exports.isFaIconAvatarProps = isFaIconAvatarProps;
|
|
161
|
-
var isImageAvatarProps = function (avatarProps) {
|
|
162
|
-
return "imageUrl" in avatarProps;
|
|
163
|
-
};
|
|
157
|
+
var isImageAvatarProps = function (avatarProps) { return "imageUrl" in avatarProps; };
|
|
164
158
|
exports.isImageAvatarProps = isImageAvatarProps;
|
|
165
159
|
exports.AvatarContainer = (0, styled_components_1.default)(layout_1.Stack).attrs({
|
|
166
160
|
inline: true,
|
|
@@ -11,7 +11,7 @@ declare type Props = {
|
|
|
11
11
|
overlapBackgroundColor?: ThemeColorKey;
|
|
12
12
|
withTooltip?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export declare const AvatarGroup: ({ avatarArray, displayNumber, size
|
|
14
|
+
export declare const AvatarGroup: ({ avatarArray, displayNumber, size }: Props) => JSX.Element;
|
|
15
15
|
export declare const AvatarGroupOverLap: ({ avatarArray, displayNumber, size, overlapBackgroundColor, withTooltip, }: Props) => JSX.Element;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=AvatarGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/AvatarGroup.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAU,WAAW,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,oBAAY,gBAAgB,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/AvatarGroup.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAU,WAAW,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,oBAAY,gBAAgB,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,EAAE,CAAC;AAEpF,aAAK,KAAK,GAAG;IACX,WAAW,EAAE,gBAAgB,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB,CAAC,EAAE,aAAa,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,WAAW,yCAAmD,KAAK,gBAc/E,CAAC;AAwCF,eAAO,MAAM,kBAAkB,+EAM5B,KAAK,gBAoCP,CAAC"}
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
/// <reference types="@typescript/lib-dom" />
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { AvatarSize } from "../Avatar";
|
|
4
|
+
import { AllButtonIntents } from "./types";
|
|
4
5
|
/**
|
|
5
6
|
* Button
|
|
6
7
|
*/
|
|
7
|
-
export declare const Button: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & import("./types").CommonButtonProps
|
|
8
|
+
export declare const Button: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & Omit<import("./types").CommonButtonProps, "intent"> & {
|
|
9
|
+
intent?: import("./types").ButtonIntent | undefined;
|
|
10
|
+
} & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
8
11
|
/**
|
|
9
12
|
* Icon Button
|
|
10
13
|
*/
|
|
11
|
-
export declare const IconButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & Omit<import("./types").CommonButtonProps, "text" | "icon" | "fill" | "alignText"> & {
|
|
14
|
+
export declare const IconButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & Omit<import("./types").CommonButtonProps, "text" | "icon" | "fill" | "alignText" | "intent"> & {
|
|
12
15
|
icon: import("../Icon").AnyIcon | import("../Icon").IconProps | import("../../lib").Maybe<JSX.Element>;
|
|
13
|
-
|
|
16
|
+
intent?: import("./types").IconButtonIntent | undefined;
|
|
14
17
|
} & {
|
|
15
18
|
themeColor?: "brandPrimary" | "brandSecondary" | "white" | "systemShade100" | "systemShade80" | "systemShade40" | "systemShade30" | "systemShade20" | "systemShade10" | "grey500" | "grey100" | "grey80" | "grey40" | "grey20" | "grey10" | "grey5" | "grey3" | "brandShade100" | "brandShade80" | "brandShade60" | "brandShade50" | "brandShade40" | "brandShade20" | "brandShade10" | "cyan100" | "cyan80" | "cyan40" | "cyan20" | "cyan10" | "red100" | "red80" | "red60" | "red40" | "red20" | "red10" | "pink100" | "pink80" | "pink40" | "pink20" | "pink10" | "orange100" | "orange80" | "orange40" | "orange20" | "orange10" | "yellow100" | "yellow80" | "yellow40" | "yellow20" | "yellow10" | "purple100" | "purple80" | "purple40" | "purple20" | "purple10" | "amethyst100" | "amethyst80" | "amethyst40" | "amethyst20" | "amethyst10" | "turquoise100" | "turquoise80" | "turquoise40" | "turquoise20" | "turquoise10" | "green100" | "green80" | "green40" | "green20" | "green10" | "jasper100" | "jasper80" | "jasper40" | "jasper20" | "jasper10" | "ochre100" | "ochre80" | "ochre40" | "ochre20" | "ochre10" | "amber100" | "amber10" | "beige100" | "beige10" | "brown100" | "brown10" | "burgundy100" | "burgundy10" | "coral100" | "coral10" | "grey_black100" | "grey_black10" | "lavender100" | "lavender10" | "lemon100" | "lemon10" | "lime100" | "lime10" | "magenta100" | "magenta10" | "myrtle100" | "myrtle10" | "olive100" | "olive10" | "pink_light100" | "pink_light10" | "purple_light100" | "purple_light10" | "rose_dawn100" | "rose_dawn10" | "sage100" | "sage20" | "sage10" | "sky_blue100" | "sky_blue10" | "turquoise_light100" | "turquoise_light10" | "vermilion100" | "vermilion10" | "violet100" | "violet10" | "navy100" | "scarlett100" | "scarlett80" | "scarlett40" | "scarlett20" | "scarlett10" | undefined;
|
|
16
19
|
} & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
export declare const AvatarButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & Omit<import("./types").CommonButtonProps, "text" | "icon" | "fill" | "alignText"> & {
|
|
20
|
+
export declare const AvatarButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & Omit<import("./types").CommonButtonProps, "text" | "icon" | "fill" | "alignText" | "intent"> & {
|
|
18
21
|
icon: import("../Icon").AnyIcon | import("../Icon").IconProps | import("../../lib").Maybe<JSX.Element>;
|
|
19
|
-
|
|
22
|
+
intent?: import("./types").IconButtonIntent | undefined;
|
|
20
23
|
} & {
|
|
21
24
|
themeColor?: "brandPrimary" | "brandSecondary" | "white" | "systemShade100" | "systemShade80" | "systemShade40" | "systemShade30" | "systemShade20" | "systemShade10" | "grey500" | "grey100" | "grey80" | "grey40" | "grey20" | "grey10" | "grey5" | "grey3" | "brandShade100" | "brandShade80" | "brandShade60" | "brandShade50" | "brandShade40" | "brandShade20" | "brandShade10" | "cyan100" | "cyan80" | "cyan40" | "cyan20" | "cyan10" | "red100" | "red80" | "red60" | "red40" | "red20" | "red10" | "pink100" | "pink80" | "pink40" | "pink20" | "pink10" | "orange100" | "orange80" | "orange40" | "orange20" | "orange10" | "yellow100" | "yellow80" | "yellow40" | "yellow20" | "yellow10" | "purple100" | "purple80" | "purple40" | "purple20" | "purple10" | "amethyst100" | "amethyst80" | "amethyst40" | "amethyst20" | "amethyst10" | "turquoise100" | "turquoise80" | "turquoise40" | "turquoise20" | "turquoise10" | "green100" | "green80" | "green40" | "green20" | "green10" | "jasper100" | "jasper80" | "jasper40" | "jasper20" | "jasper10" | "ochre100" | "ochre80" | "ochre40" | "ochre20" | "ochre10" | "amber100" | "amber10" | "beige100" | "beige10" | "brown100" | "brown10" | "burgundy100" | "burgundy10" | "coral100" | "coral10" | "grey_black100" | "grey_black10" | "lavender100" | "lavender10" | "lemon100" | "lemon10" | "lime100" | "lime10" | "magenta100" | "magenta10" | "myrtle100" | "myrtle10" | "olive100" | "olive10" | "pink_light100" | "pink_light10" | "purple_light100" | "purple_light10" | "rose_dawn100" | "rose_dawn10" | "sage100" | "sage20" | "sage10" | "sky_blue100" | "sky_blue10" | "turquoise_light100" | "turquoise_light10" | "vermilion100" | "vermilion10" | "violet100" | "violet10" | "navy100" | "scarlett100" | "scarlett80" | "scarlett40" | "scarlett20" | "scarlett10" | undefined;
|
|
22
25
|
} & {
|
|
23
26
|
avatarSize: AvatarSize;
|
|
24
27
|
} & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
25
|
-
export declare const AvatarGroupButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & Omit<import("./types").CommonButtonProps, "text" | "icon" | "fill" | "alignText"> & {
|
|
28
|
+
export declare const AvatarGroupButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & Omit<import("./types").CommonButtonProps, "text" | "icon" | "fill" | "alignText" | "intent"> & {
|
|
26
29
|
icon: import("../Icon").AnyIcon | import("../Icon").IconProps | import("../../lib").Maybe<JSX.Element>;
|
|
27
|
-
|
|
30
|
+
intent?: import("./types").IconButtonIntent | undefined;
|
|
28
31
|
} & {
|
|
29
32
|
themeColor?: "brandPrimary" | "brandSecondary" | "white" | "systemShade100" | "systemShade80" | "systemShade40" | "systemShade30" | "systemShade20" | "systemShade10" | "grey500" | "grey100" | "grey80" | "grey40" | "grey20" | "grey10" | "grey5" | "grey3" | "brandShade100" | "brandShade80" | "brandShade60" | "brandShade50" | "brandShade40" | "brandShade20" | "brandShade10" | "cyan100" | "cyan80" | "cyan40" | "cyan20" | "cyan10" | "red100" | "red80" | "red60" | "red40" | "red20" | "red10" | "pink100" | "pink80" | "pink40" | "pink20" | "pink10" | "orange100" | "orange80" | "orange40" | "orange20" | "orange10" | "yellow100" | "yellow80" | "yellow40" | "yellow20" | "yellow10" | "purple100" | "purple80" | "purple40" | "purple20" | "purple10" | "amethyst100" | "amethyst80" | "amethyst40" | "amethyst20" | "amethyst10" | "turquoise100" | "turquoise80" | "turquoise40" | "turquoise20" | "turquoise10" | "green100" | "green80" | "green40" | "green20" | "green10" | "jasper100" | "jasper80" | "jasper40" | "jasper20" | "jasper10" | "ochre100" | "ochre80" | "ochre40" | "ochre20" | "ochre10" | "amber100" | "amber10" | "beige100" | "beige10" | "brown100" | "brown10" | "burgundy100" | "burgundy10" | "coral100" | "coral10" | "grey_black100" | "grey_black10" | "lavender100" | "lavender10" | "lemon100" | "lemon10" | "lime100" | "lime10" | "magenta100" | "magenta10" | "myrtle100" | "myrtle10" | "olive100" | "olive10" | "pink_light100" | "pink_light10" | "purple_light100" | "purple_light10" | "rose_dawn100" | "rose_dawn10" | "sage100" | "sage20" | "sage10" | "sky_blue100" | "sky_blue10" | "turquoise_light100" | "turquoise_light10" | "vermilion100" | "vermilion10" | "violet100" | "violet10" | "navy100" | "scarlett100" | "scarlett80" | "scarlett40" | "scarlett20" | "scarlett10" | undefined;
|
|
30
33
|
} & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -316,12 +319,17 @@ export declare const NavButton: import("styled-components").StyledComponent<Reac
|
|
|
316
319
|
/**
|
|
317
320
|
* OverlayButton requires `position: relative` wrapper to overlay unless position set to relative
|
|
318
321
|
*/
|
|
319
|
-
export declare const OverlayButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & Omit<import("./types").CommonButtonProps, "icon" | "fill" | "rightIcon"> & {
|
|
322
|
+
export declare const OverlayButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("./types").HTMLButtonProps & Omit<import("./types").CommonButtonProps, "icon" | "size" | "fill" | "rightIcon" | "minimal"> & {
|
|
320
323
|
icon?: import("../Icon").AnyIcon | import("../Icon").IconProps | import("../../lib").Maybe<JSX.Element> | undefined;
|
|
321
|
-
minimal?: boolean | undefined;
|
|
322
324
|
placement?: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "middle-top" | "middle-bottom" | undefined;
|
|
323
325
|
rightIcon?: import("../Icon").AnyIcon | import("../Icon").IconProps | import("../../lib").Maybe<JSX.Element> | undefined;
|
|
324
326
|
} & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {
|
|
325
327
|
position?: "absolute" | "relative" | undefined;
|
|
326
328
|
}, never>;
|
|
329
|
+
export declare type IntentApi = {
|
|
330
|
+
minimal?: boolean;
|
|
331
|
+
noMinimalUnderline?: boolean;
|
|
332
|
+
intent?: AllButtonIntents;
|
|
333
|
+
};
|
|
334
|
+
export declare const calculateIntent: ({ minimal, noMinimalUnderline, intent, }: IntentApi) => AllButtonIntents;
|
|
327
335
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AA4BvC,OAAO,EACL,gBAAgB,EAOjB,MAAM,SAAS,CAAC;AAIjB;;GAEG;AACH,eAAO,MAAM,MAAM;;iGA4ElB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;iGAkEtB,CAAC;AAIF,eAAO,MAAM,YAAY;;;;;;gBAFgC,UAAU;iGA6ClE,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;iGAO7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iGAgFxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW;;gGAkFvB,CAAC;AAIF,eAAO,MAAM,oBAAoB;;UAShC,CAAC;AAEF,eAAO,MAAM,SAAS;;;;iGAuDrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;SAyDzB,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,eAAe,6CAIzB,SAAS,qBAQX,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OverlayButton = exports.NavButton = exports.LabelButtonFileInput = exports.LabelButton = exports.AnchorButton = exports.AvatarGroupButton = exports.AvatarButton = exports.IconButton = exports.Button = void 0;
|
|
3
|
+
exports.calculateIntent = exports.OverlayButton = exports.NavButton = exports.LabelButtonFileInput = exports.LabelButton = exports.AnchorButton = exports.AvatarGroupButton = exports.AvatarButton = exports.IconButton = exports.Button = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var React = (0, tslib_1.__importStar)(require("react"));
|
|
6
6
|
var react_1 = require("react");
|
|
@@ -18,44 +18,75 @@ exports.Button = (0, styled_components_1.default)((0, react_1.forwardRef)(functi
|
|
|
18
18
|
return (React.createElement("button", (0, tslib_1.__assign)({ type: type }, (0, utils_1.dpNameProp)("Button"), { ref: ref, disabled: disabled || loading }, rest),
|
|
19
19
|
loading && (React.createElement(styles_1.ButtonLoaderContainer, null,
|
|
20
20
|
React.createElement(Spinner_1.Spinner, { size: "small" }))),
|
|
21
|
-
(0, Icon_1.isAnyIcon)(icon) ? React.createElement(Icon_1.Icon, { icon: icon }) : (0, Icon_1.isIconProps)(icon) ? React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon)) : icon,
|
|
21
|
+
(0, Icon_1.isAnyIcon)(icon) ? (React.createElement(Icon_1.Icon, { icon: icon })) : (0, Icon_1.isIconProps)(icon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon))) : (icon),
|
|
22
22
|
text && React.createElement(styles_1.ButtonText, null, text),
|
|
23
23
|
(0, Icon_1.isAnyIcon)(rightIcon) ? (React.createElement(Icon_1.Icon, { icon: rightIcon })) : (0, Icon_1.isIconProps)(rightIcon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, rightIcon))) : (rightIcon)));
|
|
24
|
-
}))(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n text-align: ", ";\n ", "\n ", "\n ", "\n ", "\n
|
|
24
|
+
}))(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n text-align: ", ";\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", ";\n ", "\n"], ["\n text-align: ", ";\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", ";\n ", "\n"])), function (props) { var _a; return (_a = props.alignText) !== null && _a !== void 0 ? _a : "left"; }, styles_1.buttonBaseCss, function (props) { return props.size === "large" && styles_1.buttonLarge; }, function (props) { return props.size === "small" && styles_1.buttonSmall; }, function (props) { return props.size === "tiny" && styles_1.buttonTiny; }, function (props) {
|
|
25
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
26
|
+
return (0, styles_1.getIntentBase)({ intent: calculatedIntent });
|
|
27
|
+
}, function (props) {
|
|
28
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
29
|
+
return props.danger && (0, styles_1.getDangerIntent)({ intent: calculatedIntent });
|
|
30
|
+
}, function (props) {
|
|
31
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
32
|
+
return (props.active &&
|
|
33
|
+
(0, styles_1.getActiveIntent)({ intent: calculatedIntent, danger: props.danger }));
|
|
34
|
+
}, function (props) { return props.loading && styles_1.buttonLoading; }, function (props) { return props.fill && styles_1.buttonFill; });
|
|
25
35
|
/**
|
|
26
36
|
* Icon Button
|
|
27
37
|
*/
|
|
28
38
|
exports.IconButton = (0, styled_components_1.default)((0, react_1.forwardRef)(function IconButton(_a, ref) {
|
|
29
39
|
var icon = _a.icon, rightIcon = _a.rightIcon, minimal = _a.minimal, active = _a.active, danger = _a.danger, loading = _a.loading, themeColor = _a.themeColor, noMinimalUnderline = _a.noMinimalUnderline, iconSubsection = _a.iconSubsection, _b = _a.type, type = _b === void 0 ? "button" : _b, disabled = _a.disabled, rest = (0, tslib_1.__rest)(_a, ["icon", "rightIcon", "minimal", "active", "danger", "loading", "themeColor", "noMinimalUnderline", "iconSubsection", "type", "disabled"]);
|
|
30
|
-
return (React.createElement("button", (0, tslib_1.__assign)({}, (0, utils_1.dpNameProp)("IconButton"), { ref: ref, type: type }, rest, { disabled: disabled || loading }),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}, function (props) {
|
|
40
|
+
return (React.createElement("button", (0, tslib_1.__assign)({}, (0, utils_1.dpNameProp)("IconButton"), { ref: ref, type: type }, rest, { disabled: disabled || loading }), loading ? (React.createElement(styles_1.ButtonLoaderContainer, null,
|
|
41
|
+
React.createElement(Spinner_1.Spinner, { size: "small" }))) : (0, Icon_1.isAnyIcon)(icon) ? (React.createElement(Icon_1.Icon, { themeColor: themeColor, icon: icon })) : (0, Icon_1.isIconProps)(icon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({ themeColor: themeColor }, icon))) : (icon)));
|
|
42
|
+
}))(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n height: 28px;\n max-height: 28px;\n width: 28px;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", ";\n"], ["\n height: 28px;\n max-height: 28px;\n width: 28px;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", ";\n"])), styles_1.buttonBaseCss, styles_1.iconButtonBase, function (props) { return props.size === "small" && styles_1.iconButtonSmall; }, function (props) { return props.size === "tiny" && styles_1.buttonTiny; }, function (props) { return props.size === "large" && styles_1.buttonLarge; }, function (props) {
|
|
43
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
44
|
+
return (0, styles_1.getIntentBase)({
|
|
45
|
+
intent: calculatedIntent === "minimalUnderline" ? "minimal" : calculatedIntent,
|
|
46
|
+
});
|
|
47
|
+
}, function (props) {
|
|
48
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
49
|
+
return props.danger && (0, styles_1.getDangerIntent)({ intent: calculatedIntent });
|
|
50
|
+
}, function (props) {
|
|
51
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
52
|
+
return props.active && (0, styles_1.getActiveIntent)({ intent: calculatedIntent });
|
|
53
|
+
}, function (props) { return props.loading && styles_1.buttonLoading; }, function (props) { return props.iconSubsection && styles_1.buttonIconSubsection; });
|
|
38
54
|
exports.AvatarButton = (0, styled_components_1.default)((0, react_1.forwardRef)(function AvatarButton(_a, ref) {
|
|
39
55
|
var avatarSize = _a.avatarSize, _b = _a.type, type = _b === void 0 ? "button" : _b, rest = (0, tslib_1.__rest)(_a, ["avatarSize", "type"]);
|
|
40
56
|
return React.createElement(exports.IconButton, (0, tslib_1.__assign)({ ref: ref, type: type }, rest));
|
|
41
|
-
}))(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n width: ", "px;\n height: ", "px;\n max-height: ", "px;\n min-height: ", "px;\n max-width: ", "px;\n min-width: ", "px;\n > div {\n flex: 1;\n max-height: ", "px;\n min-height: ", "px;\n max-width: ", "px;\n min-width: ", "px;\n }\n & > :not(:last-child) {\n margin-right: 0;\n }\n"], ["\n width: ", "px;\n height: ", "px;\n max-height: ", "px;\n min-height: ", "px;\n max-width: ", "px;\n min-width: ", "px;\n > div {\n flex: 1;\n max-height: ", "px;\n min-height: ", "px;\n max-width: ", "px;\n min-width: ", "px;\n }\n & > :not(:last-child) {\n margin-right: 0;\n }\n"])), function (_a) {
|
|
57
|
+
}))(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n width: ", "px;\n height: ", "px;\n max-height: ", "px;\n min-height: ", "px;\n max-width: ", "px;\n min-width: ", "px;\n border: 2px solid ", ";\n border-radius: 50%;\n position: relative;\n :hover {\n border: 2px solid ", ";\n }\n\n ", "\n :active,\n :focus {\n border: 2px solid ", ";\n }\n\n ", "\n :disabled {\n cursor: not-allowed;\n }\n\n > div {\n flex: 1;\n max-height: ", "px;\n min-height: ", "px;\n max-width: ", "px;\n min-width: ", "px;\n }\n & > :not(:last-child) {\n margin-right: 0;\n }\n"], ["\n width: ", "px;\n height: ", "px;\n max-height: ", "px;\n min-height: ", "px;\n max-width: ", "px;\n min-width: ", "px;\n border: 2px solid ", ";\n border-radius: 50%;\n position: relative;\n :hover {\n border: 2px solid ", ";\n }\n\n ", "\n :active,\n :focus {\n border: 2px solid ", ";\n }\n\n ", "\n :disabled {\n cursor: not-allowed;\n }\n\n > div {\n flex: 1;\n max-height: ", "px;\n min-height: ", "px;\n max-width: ", "px;\n min-width: ", "px;\n }\n & > :not(:last-child) {\n margin-right: 0;\n }\n"])), function (_a) {
|
|
42
58
|
var avatarSize = _a.avatarSize;
|
|
43
|
-
return avatarSize;
|
|
59
|
+
return avatarSize + 4;
|
|
44
60
|
}, function (_a) {
|
|
45
61
|
var avatarSize = _a.avatarSize;
|
|
46
|
-
return avatarSize;
|
|
62
|
+
return avatarSize + 4;
|
|
47
63
|
}, function (_a) {
|
|
48
64
|
var avatarSize = _a.avatarSize;
|
|
49
|
-
return avatarSize;
|
|
65
|
+
return avatarSize + 4;
|
|
50
66
|
}, function (_a) {
|
|
51
67
|
var avatarSize = _a.avatarSize;
|
|
52
|
-
return avatarSize;
|
|
68
|
+
return avatarSize + 4;
|
|
53
69
|
}, function (_a) {
|
|
54
70
|
var avatarSize = _a.avatarSize;
|
|
55
|
-
return avatarSize;
|
|
71
|
+
return avatarSize + 4;
|
|
56
72
|
}, function (_a) {
|
|
57
73
|
var avatarSize = _a.avatarSize;
|
|
58
|
-
return avatarSize;
|
|
74
|
+
return avatarSize + 4;
|
|
75
|
+
}, function (_a) {
|
|
76
|
+
var theme = _a.theme;
|
|
77
|
+
return theme.colors.white;
|
|
78
|
+
}, function (_a) {
|
|
79
|
+
var theme = _a.theme;
|
|
80
|
+
return theme.colors.brandShade60;
|
|
81
|
+
}, function (_a) {
|
|
82
|
+
var active = _a.active, theme = _a.theme;
|
|
83
|
+
return active ? "border: 2px solid ".concat(theme.colors.cyan100, ";") : "";
|
|
84
|
+
}, function (_a) {
|
|
85
|
+
var theme = _a.theme;
|
|
86
|
+
return theme.colors.cyan100;
|
|
87
|
+
}, function (_a) {
|
|
88
|
+
var disabled = _a.disabled;
|
|
89
|
+
return (disabled ? "cursor: not-allowed;" : "");
|
|
59
90
|
}, function (_a) {
|
|
60
91
|
var avatarSize = _a.avatarSize;
|
|
61
92
|
return avatarSize;
|
|
@@ -80,10 +111,19 @@ exports.AnchorButton = (0, styled_components_1.default)((0, react_1.forwardRef)(
|
|
|
80
111
|
} }, rest),
|
|
81
112
|
loading && (React.createElement(styles_1.ButtonLoaderContainer, null,
|
|
82
113
|
React.createElement(Spinner_1.Spinner, { size: "small" }))),
|
|
83
|
-
(0, Icon_1.isAnyIcon)(icon) ? React.createElement(Icon_1.Icon, { icon: icon }) : (0, Icon_1.isIconProps)(icon) ? React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon)) : icon,
|
|
114
|
+
(0, Icon_1.isAnyIcon)(icon) ? (React.createElement(Icon_1.Icon, { icon: icon })) : (0, Icon_1.isIconProps)(icon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon))) : (icon),
|
|
84
115
|
text && React.createElement(styles_1.ButtonText, null, text),
|
|
85
116
|
(0, Icon_1.isAnyIcon)(rightIcon) ? (React.createElement(Icon_1.Icon, { icon: rightIcon })) : (0, Icon_1.isIconProps)(rightIcon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, rightIcon))) : (rightIcon)));
|
|
86
|
-
}))(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n text-align: ", ";\n text-decoration: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "
|
|
117
|
+
}))(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n text-align: ", ";\n text-decoration: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n :active,\n :focus,\n :hover {\n ", ";\n }\n ", "\n ", ";\n"], ["\n text-align: ", ";\n text-decoration: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n :active,\n :focus,\n :hover {\n ", ";\n }\n ", "\n ", ";\n"])), function (props) { var _a; return (_a = props.alignText) !== null && _a !== void 0 ? _a : "left"; }, styles_1.buttonBaseCss, function (props) { return props.size === "large" && styles_1.buttonLarge; }, function (props) { return props.size === "small" && styles_1.buttonSmall; }, function (props) { return props.size === "tiny" && styles_1.buttonTiny; }, function (props) {
|
|
118
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
119
|
+
return (0, styles_1.getIntentBase)({ intent: calculatedIntent });
|
|
120
|
+
}, function (props) {
|
|
121
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
122
|
+
return props.danger && (0, styles_1.getDangerIntent)({ intent: calculatedIntent });
|
|
123
|
+
}, function (props) {
|
|
124
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
125
|
+
return props.active && (0, styles_1.getActiveIntent)({ intent: calculatedIntent });
|
|
126
|
+
}, function (props) { return props.disabled && (0, styles_1.getDisabledIntent)(props); }, function (props) { return props.disabled && (0, styles_1.getDisabledIntent)(props); }, function (props) { return props.fill && styles_1.buttonFill; }, function (props) { return props.loading && styles_1.buttonLoading; });
|
|
87
127
|
/**
|
|
88
128
|
* Label component styled like a button - useful for wrapping around file input for example
|
|
89
129
|
*/
|
|
@@ -95,10 +135,20 @@ exports.LabelButton = (0, styled_components_1.default)((0, react_1.forwardRef)(f
|
|
|
95
135
|
loading && (React.createElement(styles_1.ButtonLoaderContainer, null,
|
|
96
136
|
React.createElement(Spinner_1.Spinner, { size: "small" }))),
|
|
97
137
|
children,
|
|
98
|
-
(0, Icon_1.isAnyIcon)(icon) ? React.createElement(Icon_1.Icon, { icon: icon }) : (0, Icon_1.isIconProps)(icon) ? React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon)) : icon,
|
|
138
|
+
(0, Icon_1.isAnyIcon)(icon) ? (React.createElement(Icon_1.Icon, { icon: icon })) : (0, Icon_1.isIconProps)(icon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon))) : (icon),
|
|
99
139
|
text && React.createElement(styles_1.ButtonText, null, text),
|
|
100
140
|
(0, Icon_1.isAnyIcon)(rightIcon) ? (React.createElement(Icon_1.Icon, { icon: rightIcon })) : (0, Icon_1.isIconProps)(rightIcon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, rightIcon))) : (rightIcon)));
|
|
101
|
-
}))(templateObject_6 || (templateObject_6 = (0, tslib_1.__makeTemplateObject)(["\n text-align: ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "
|
|
141
|
+
}))(templateObject_6 || (templateObject_6 = (0, tslib_1.__makeTemplateObject)(["\n text-align: ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n :active,\n :focus,\n :hover {\n ", ";\n }\n ", "\n ", ";\n"], ["\n text-align: ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n :active,\n :focus,\n :hover {\n ", ";\n }\n ", "\n ", ";\n"])), function (props) { var _a; return (_a = props.alignText) !== null && _a !== void 0 ? _a : "left"; }, styles_1.buttonBaseCss, function (props) { return props.size === "large" && styles_1.buttonLarge; }, function (props) { return props.size === "small" && styles_1.buttonSmall; }, function (props) { return props.size === "tiny" && styles_1.buttonTiny; }, function (props) {
|
|
142
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
143
|
+
return (0, styles_1.getIntentBase)({ intent: calculatedIntent });
|
|
144
|
+
}, function (props) {
|
|
145
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
146
|
+
return props.danger && (0, styles_1.getDangerIntent)({ intent: calculatedIntent });
|
|
147
|
+
}, function (props) {
|
|
148
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
149
|
+
return props.active && (0, styles_1.getActiveIntent)({ intent: calculatedIntent });
|
|
150
|
+
}, function (props) { return props.disabled && (0, styles_1.getDisabledIntent)(props); }, function (props) { return props.disabled && (0, styles_1.getDisabledIntent)(props); }, function (props) { return props.fill && styles_1.buttonFill; }, function (props) { return props.loading && styles_1.buttonLoading; });
|
|
151
|
+
// ${(props) => props.noMinimalUnderline && buttonNoMinimalUnderline} ^^^^
|
|
102
152
|
exports.LabelButtonFileInput = styled_components_1.default.input.attrs({
|
|
103
153
|
type: "file",
|
|
104
154
|
})(templateObject_7 || (templateObject_7 = (0, tslib_1.__makeTemplateObject)(["\n width: 0;\n height: 0;\n opacity: 0;\n overflow: hidden;\n position: absolute;\n z-index: -1;\n"], ["\n width: 0;\n height: 0;\n opacity: 0;\n overflow: hidden;\n position: absolute;\n z-index: -1;\n"])));
|
|
@@ -107,19 +157,25 @@ exports.NavButton = (0, styled_components_1.default)((0, react_1.forwardRef)(fun
|
|
|
107
157
|
return (React.createElement("button", (0, tslib_1.__assign)({ type: type, ref: ref }, (0, utils_1.dpNameProp)("NavButton"), rest),
|
|
108
158
|
reverse && (React.createElement(React.Fragment, null,
|
|
109
159
|
text && React.createElement(styles_1.ButtonText, { overflow: "ellipsis" }, text),
|
|
110
|
-
(0, Icon_1.isAnyIcon)(icon) ? React.createElement(Icon_1.Icon, { icon: icon }) : (0, Icon_1.isIconProps)(icon) ? React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon)) : icon)),
|
|
160
|
+
(0, Icon_1.isAnyIcon)(icon) ? (React.createElement(Icon_1.Icon, { icon: icon })) : (0, Icon_1.isIconProps)(icon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon))) : (icon))),
|
|
111
161
|
!reverse && (React.createElement(React.Fragment, null,
|
|
112
|
-
(0, Icon_1.isAnyIcon)(icon) ? React.createElement(Icon_1.Icon, { icon: icon }) : (0, Icon_1.isIconProps)(icon) ? React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon)) : icon,
|
|
162
|
+
(0, Icon_1.isAnyIcon)(icon) ? (React.createElement(Icon_1.Icon, { icon: icon })) : (0, Icon_1.isIconProps)(icon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({}, icon))) : (icon),
|
|
113
163
|
text && React.createElement(styles_1.ButtonText, { overflow: "ellipsis" }, text)))));
|
|
114
|
-
}))(templateObject_8 || (templateObject_8 = (0, tslib_1.__makeTemplateObject)(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), styles_1.navButtonBase, function (props) {
|
|
164
|
+
}))(templateObject_8 || (templateObject_8 = (0, tslib_1.__makeTemplateObject)(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), styles_1.navButtonBase, function (props) {
|
|
165
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
166
|
+
return (0, styles_1.getIntentBase)({ intent: calculatedIntent });
|
|
167
|
+
}, function (props) { return props.size === "small" && styles_1.navButtonSmall; }, function (props) {
|
|
168
|
+
var calculatedIntent = (0, exports.calculateIntent)(props);
|
|
169
|
+
return props.active && (0, styles_1.getActiveIntent)({ intent: calculatedIntent });
|
|
170
|
+
});
|
|
115
171
|
/**
|
|
116
172
|
* OverlayButton requires `position: relative` wrapper to overlay unless position set to relative
|
|
117
173
|
*/
|
|
118
174
|
exports.OverlayButton = (0, styled_components_1.default)((0, react_1.forwardRef)(function OverlayButton(_a, ref) {
|
|
119
|
-
var icon = _a.icon,
|
|
175
|
+
var icon = _a.icon, active = _a.active, danger = _a.danger, loading = _a.loading, text = _a.text, _b = _a.type, type = _b === void 0 ? "button" : _b, alignText = _a.alignText, placement = _a.placement, rightIcon = _a.rightIcon, rest = (0, tslib_1.__rest)(_a, ["icon", "active", "danger", "loading", "text", "type", "alignText", "placement", "rightIcon"]);
|
|
120
176
|
return (React.createElement("button", (0, tslib_1.__assign)({ type: type }, (0, utils_1.dpNameProp)("OverlayButton"), { ref: ref }, rest),
|
|
121
177
|
loading && (React.createElement(styles_1.ButtonLoaderContainer, null,
|
|
122
|
-
React.createElement(Spinner_1.Spinner,
|
|
178
|
+
React.createElement(Spinner_1.Spinner, { size: "small" }))),
|
|
123
179
|
(0, Icon_1.isAnyIcon)(icon) ? (React.createElement(Icon_1.Icon, { icon: icon, size: 10 })) : (0, Icon_1.isIconProps)(icon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({ size: 10 }, icon))) : (icon),
|
|
124
180
|
text && React.createElement(styles_1.ButtonText, null, text),
|
|
125
181
|
(0, Icon_1.isAnyIcon)(rightIcon) ? (React.createElement(Icon_1.Icon, { icon: rightIcon, size: 10 })) : (0, Icon_1.isIconProps)(rightIcon) ? (React.createElement(Icon_1.Icon, (0, tslib_1.__assign)({ size: 10 }, rightIcon))) : (rightIcon)));
|
|
@@ -137,4 +193,14 @@ exports.OverlayButton = (0, styled_components_1.default)((0, react_1.forwardRef)
|
|
|
137
193
|
var position = _a.position;
|
|
138
194
|
return (position ? position : "absolute");
|
|
139
195
|
});
|
|
196
|
+
var calculateIntent = function (_a) {
|
|
197
|
+
var minimal = _a.minimal, noMinimalUnderline = _a.noMinimalUnderline, intent = _a.intent;
|
|
198
|
+
var newIntent = minimal
|
|
199
|
+
? noMinimalUnderline
|
|
200
|
+
? "minimal"
|
|
201
|
+
: "minimalUnderline"
|
|
202
|
+
: intent;
|
|
203
|
+
return newIntent !== null && newIntent !== void 0 ? newIntent : "primary";
|
|
204
|
+
};
|
|
205
|
+
exports.calculateIntent = calculateIntent;
|
|
140
206
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -17,17 +17,18 @@ export declare const secondaryActive: import("styled-components").FlattenInterpo
|
|
|
17
17
|
export declare const buttonSecondaryBase: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
18
18
|
export declare const tertiaryActive: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
19
19
|
export declare const buttonTertiaryBase: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
20
|
+
export declare const buttonMinimal: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
21
|
+
export declare const buttonMinimalUnderline: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
22
|
+
export declare const minimalBLock: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
20
23
|
export declare const dangerPrimaryActive: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
21
24
|
export declare const dangerPrimary: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
22
25
|
export declare const dangerSecondaryTeritaryActive: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
23
26
|
export declare const dangerSecondaryTertiary: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
24
|
-
export declare const buttonMinimal: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
25
|
-
export declare const buttonNoMinimalUnderline: import("styled-components").FlattenSimpleInterpolation;
|
|
26
27
|
export declare const buttonFill: import("styled-components").FlattenSimpleInterpolation;
|
|
27
28
|
export declare function getIntentBase(props: CommonButtonProps | IconButtonProps): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
28
|
-
export declare function getDangerIntent(props: CommonButtonProps | IconButtonProps): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme
|
|
29
|
-
export declare function getActiveIntent(props: CommonButtonProps | IconButtonProps): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme
|
|
30
|
-
export declare const getDisabledIntent: (props: CommonButtonProps | IconButtonProps) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme
|
|
29
|
+
export declare function getDangerIntent(props: CommonButtonProps | IconButtonProps): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>> | undefined;
|
|
30
|
+
export declare function getActiveIntent(props: CommonButtonProps | IconButtonProps): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>> | undefined;
|
|
31
|
+
export declare const getDisabledIntent: (props: CommonButtonProps | IconButtonProps) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>> | undefined;
|
|
31
32
|
export declare const ButtonLoaderContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../utils").DpNameProp, keyof import("../../utils").DpNameProp>;
|
|
32
33
|
export declare const buttonLoading: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
33
34
|
export declare const navButtonBase: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/styles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,eAAO,MAAM,UAAU;;SAgBtB,CAAC;AAEF,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/styles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,eAAO,MAAM,UAAU;;SAgBtB,CAAC;AAEF,eAAO,MAAM,aAAa,oIA2CzB,CAAC;AAEF,eAAO,MAAM,WAAW,oIAWvB,CAAC;AAEF,eAAO,MAAM,WAAW,oIAYvB,CAAC;AAEF,eAAO,MAAM,UAAU,oIActB,CAAC;AAEF,eAAO,MAAM,cAAc,oIAM1B,CAAC;AAEF,eAAO,MAAM,eAAe,oIAsB3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,oIAK7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,oIAiC7B,CAAC;AAKF,eAAO,MAAM,aAAa,oIAIzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,oIAqB7B,CAAC;AAIF,eAAO,MAAM,eAAe,oIAI3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,oIAsB/B,CAAC;AAIF,eAAO,MAAM,cAAc,oIAI1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,oIAqB9B,CAAC;AAkBF,eAAO,MAAM,aAAa,oIAmBzB,CAAC;AAIF,eAAO,MAAM,sBAAsB,oIAclC,CAAC;AAiBF,eAAO,MAAM,YAAY,oIAwCxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,oIAK/B,CAAC;AAEF,eAAO,MAAM,aAAa,oIAUzB,CAAC;AAEF,eAAO,MAAM,6BAA6B,oIAKzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,oIAiBnC,CAAC;AAyBF,eAAO,MAAM,UAAU,wDAStB,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,GAAG,eAAe,sIAgBvE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,GAAG,eAAe,kJASzE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,GAAG,eAAe,kJAuBzE;AAED,eAAO,MAAM,iBAAiB,UAAW,iBAAiB,GAAG,eAAe,mJAiB3E,CAAC;AAEF,eAAO,MAAM,qBAAqB,wKAYjC,CAAC;AAEF,eAAO,MAAM,aAAa,oIAUzB,CAAC;AAEF,eAAO,MAAM,aAAa,oIAwCzB,CAAC;AAEF,eAAO,MAAM,cAAc,wDAK1B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;SAKpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,oIAuC9B,CAAC;AAEF,eAAO,MAAM,qBAAqB,wDASjC,CAAC;AACF,eAAO,MAAM,wBAAwB,wDAQpC,CAAC;AACF,eAAO,MAAM,oBAAoB,wDAQhC,CAAC;AACF,eAAO,MAAM,uBAAuB,wDAQnC,CAAC;AAEF,eAAO,MAAM,yBAAyB,wDAOrC,CAAC;AAEF,eAAO,MAAM,sBAAsB,wDAYlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,wDAOhC,CAAC"}
|