@appquality/unguess-design-system 2.8.27 → 2.8.29
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/CHANGELOG.md +31 -0
- package/build/index.d.ts +3 -1
- package/build/index.js +152 -32
- package/build/stories/{campaignCards → campaign-cards}/_types.d.ts +0 -0
- package/build/stories/{campaignCards → campaign-cards}/index.d.ts +0 -0
- package/build/stories/{campaignCards → campaign-cards}/index.stories.d.ts +0 -0
- package/build/stories/{campaignCards → campaign-cards}/skeleton.d.ts +0 -0
- package/build/stories/drawer/_types.d.ts +30 -0
- package/build/stories/drawer/index.d.ts +11 -0
- package/build/stories/drawer/index.stories.d.ts +13 -0
- package/build/stories/drawer/loremIpsum.d.ts +2 -0
- package/build/stories/drawers/_types.d.ts +30 -0
- package/build/stories/drawers/index.d.ts +11 -0
- package/build/stories/drawers/index.stories.d.ts +13 -0
- package/build/stories/drawers/loremIpsum.d.ts +2 -0
- package/build/stories/navigation/main/_types.d.ts +2 -1
- package/build/stories/product-cards/_types.d.ts +36 -0
- package/build/stories/product-cards/index.d.ts +4 -0
- package/build/stories/product-cards/index.stories.d.ts +7 -0
- package/build/stories/theme/components.d.ts +4 -0
- package/build/stories/theme/index.d.ts +13 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
# v2.8.29 (Fri Apr 22 2022)
|
|
2
|
+
|
|
3
|
+
#### ⚠️ Pushed to `master`
|
|
4
|
+
|
|
5
|
+
- fix(main): fix Main component interface ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v2.8.28 (Fri Apr 22 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Cup 627 new scrollbar design [#41](https://github.com/AppQuality/unguess-design-system/pull/41) ([@cicababba](https://github.com/cicababba) [@cannarocks](https://github.com/cannarocks))
|
|
18
|
+
- Add express card [#42](https://github.com/AppQuality/unguess-design-system/pull/42) ([@cannarocks](https://github.com/cannarocks))
|
|
19
|
+
|
|
20
|
+
#### ⚠️ Pushed to `master`
|
|
21
|
+
|
|
22
|
+
- Merge branch 'master' of github.com:AppQuality/unguess-design-system ([@cannarocks](https://github.com/cannarocks))
|
|
23
|
+
- fix(mainexport): rename drawer folder ([@cannarocks](https://github.com/cannarocks))
|
|
24
|
+
|
|
25
|
+
#### Authors: 2
|
|
26
|
+
|
|
27
|
+
- cicababba ([@cicababba](https://github.com/cicababba))
|
|
28
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
1
32
|
# v2.8.27 (Fri Apr 15 2022)
|
|
2
33
|
|
|
3
34
|
#### 🐛 Bug Fix
|
package/build/index.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ export * from "./stories/buttons/button-group";
|
|
|
8
8
|
export * from "./stories/buttons/icon-button";
|
|
9
9
|
export * from "./stories/buttons/split-button";
|
|
10
10
|
export * from "./stories/cards";
|
|
11
|
-
export * from "./stories/
|
|
11
|
+
export * from "./stories/campaign-cards";
|
|
12
|
+
export * from "./stories/product-cards";
|
|
13
|
+
export * from "./stories/drawers";
|
|
12
14
|
export * from "./stories/close";
|
|
13
15
|
export * from "./stories/counter";
|
|
14
16
|
export * as DropdownField from "./stories/dropdowns/field";
|
package/build/index.js
CHANGED
|
@@ -14,12 +14,12 @@ var reactTags = require('@zendeskgarden/react-tags');
|
|
|
14
14
|
var reactForms = require('@zendeskgarden/react-forms');
|
|
15
15
|
var React = require('react');
|
|
16
16
|
var reactLoaders = require('@zendeskgarden/react-loaders');
|
|
17
|
+
var reactModals = require('@zendeskgarden/react-modals');
|
|
17
18
|
var reactDropdowns = require('@zendeskgarden/react-dropdowns');
|
|
18
19
|
var reactGrid = require('@zendeskgarden/react-grid');
|
|
19
20
|
var reactChrome = require('@zendeskgarden/react-chrome');
|
|
20
21
|
var reactTypography = require('@zendeskgarden/react-typography');
|
|
21
22
|
var formik = require('formik');
|
|
22
|
-
var reactModals = require('@zendeskgarden/react-modals');
|
|
23
23
|
var reactPagination = require('@zendeskgarden/react-pagination');
|
|
24
24
|
var reactTables = require('@zendeskgarden/react-tables');
|
|
25
25
|
var reactSpring = require('react-spring');
|
|
@@ -230,10 +230,13 @@ var gradients = {
|
|
|
230
230
|
dark: "linear-gradient(90.81deg, ".concat(hex2rgba(palette.blue[800]), " 0%, ").concat(hex2rgba(palette.blue[600]), " 100%);"),
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
-
var
|
|
233
|
+
var _a, _b, _c, _d, _e, _f;
|
|
234
|
+
var components = __assign(__assign({}, reactTheming.DEFAULT_THEME.components), { chrome: __assign(__assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: __assign(__assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }) }), notification: __assign(__assign({}, (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.notification), { card: __assign(__assign({}, (_f = (_e = reactTheming.DEFAULT_THEME.components) === null || _e === void 0 ? void 0 : _e.notification) === null || _f === void 0 ? void 0 : _f.well), { padding: "16px" }) }) });
|
|
234
235
|
|
|
235
|
-
var
|
|
236
|
-
|
|
236
|
+
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600] }), palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), gradients: gradients, borderRadii: __assign(__assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }), components: components, shadows: __assign(__assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }) });
|
|
237
|
+
|
|
238
|
+
var GlobalStyle = styled.createGlobalStyle(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject(["\n\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n \n body {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"], ["\n\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n \n body {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"])), theme.palette.grey["200"], theme.palette.grey["200"], theme.palette.blue["200"], theme.palette.blue["200"], theme.fonts.system);
|
|
239
|
+
var templateObject_1$Q;
|
|
237
240
|
|
|
238
241
|
/**
|
|
239
242
|
* Accordions are headers that can be expanded to reveal content or collapsed to hide it.
|
|
@@ -249,7 +252,7 @@ Accordion.Label = reactAccordions.Accordion.Label;
|
|
|
249
252
|
Accordion.Panel = reactAccordions.Accordion.Panel;
|
|
250
253
|
|
|
251
254
|
// import useWindowSize from "../../hooks/useWindowSize";
|
|
252
|
-
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$
|
|
255
|
+
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
253
256
|
return "\n background: ".concat(props.backgroundColor || theme.gradients.dark, ";\n ");
|
|
254
257
|
});
|
|
255
258
|
/**
|
|
@@ -272,7 +275,7 @@ var Avatar = function (props) {
|
|
|
272
275
|
return (jsxRuntime.jsx(UgAvatar, __assign({}, props, { badge: fixedBadge, children: wrapChildren(props.avatarType || "text"), size: props.size || "small" })));
|
|
273
276
|
};
|
|
274
277
|
Avatar.Text = UgAvatar.Text;
|
|
275
|
-
var templateObject_1$
|
|
278
|
+
var templateObject_1$P;
|
|
276
279
|
|
|
277
280
|
/**
|
|
278
281
|
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
@@ -293,7 +296,7 @@ var Breadcrumb = function (props) { return jsxRuntime.jsx(reactBreadcrumbs.Bread
|
|
|
293
296
|
*/
|
|
294
297
|
var Anchor = function (props) { return jsxRuntime.jsx(reactButtons.Anchor, __assign({}, props)); };
|
|
295
298
|
|
|
296
|
-
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
|
|
299
|
+
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$O || (templateObject_1$O = __makeTemplateObject([""], [""])));
|
|
297
300
|
/**
|
|
298
301
|
* Buttons let users take action quickly.
|
|
299
302
|
* Use a Button to enable actions or decisions that are important to a user’s workflow.
|
|
@@ -305,7 +308,7 @@ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
|
|
|
305
308
|
var Button = function (props) { return jsxRuntime.jsx(UgButton, __assign({}, props)); };
|
|
306
309
|
Button.StartIcon = UgButton.StartIcon;
|
|
307
310
|
Button.EndIcon = UgButton.EndIcon;
|
|
308
|
-
var templateObject_1$
|
|
311
|
+
var templateObject_1$O;
|
|
309
312
|
|
|
310
313
|
/**
|
|
311
314
|
A Button group lets users make a selection from a set of options.
|
|
@@ -358,13 +361,13 @@ var Tag = function (props) { return jsxRuntime.jsx(reactTags.Tag, __assign({}, p
|
|
|
358
361
|
Tag.Avatar = reactTags.Tag.Avatar;
|
|
359
362
|
Tag.Close = reactTags.Tag.Close;
|
|
360
363
|
|
|
361
|
-
var UgLabel = styled__default["default"](reactForms.Label)(templateObject_1$
|
|
364
|
+
var UgLabel = styled__default["default"](reactForms.Label)(templateObject_1$N || (templateObject_1$N = __makeTemplateObject([""], [""])));
|
|
362
365
|
/**
|
|
363
366
|
* A Label is used to specify a title for an input.
|
|
364
367
|
* <hr>
|
|
365
368
|
**/
|
|
366
369
|
var Label = function (props) { return jsxRuntime.jsx(UgLabel, __assign({}, props)); };
|
|
367
|
-
var templateObject_1$
|
|
370
|
+
var templateObject_1$N;
|
|
368
371
|
|
|
369
372
|
var _g$4, _path$p, _path2$7, _path3$6, _path4$4, _path5$3, _path6$3, _path7$3, _path8$3, _path9$3, _path10$3, _path11$2;
|
|
370
373
|
|
|
@@ -571,7 +574,7 @@ var SvgArrivalStatusRoundIcon = function SvgArrivalStatusRoundIcon(props) {
|
|
|
571
574
|
})));
|
|
572
575
|
};
|
|
573
576
|
|
|
574
|
-
var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$
|
|
577
|
+
var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n"], ["\n background-color: ", ";\n border-radius: ", ";\n"])), function (props) { return props.theme.palette.grey[500]; }, function (props) { return props.theme.borderRadii.xxl; });
|
|
575
578
|
/**
|
|
576
579
|
* A Skeleton loader shows users a blank version of a page or section of a page into which content is gradually loaded. It provides a visual estimate of the space needed.
|
|
577
580
|
* <hr>
|
|
@@ -586,10 +589,10 @@ var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObjec
|
|
|
586
589
|
- To communicate a typing status, use Inline instead
|
|
587
590
|
*/
|
|
588
591
|
var Skeleton = function (props) { return jsxRuntime.jsx(UgSkeleton, __assign({}, props)); };
|
|
589
|
-
var templateObject_1$
|
|
592
|
+
var templateObject_1$M;
|
|
590
593
|
|
|
591
594
|
var CampaignCardSkeleton = function () {
|
|
592
|
-
return (jsxRuntime.jsxs(Wrapper, { children: [jsxRuntime.jsx(CardHeader, { children: jsxRuntime.jsx(Skeleton, { width: "30%" }) }), jsxRuntime.jsxs(CardBody, { children: [jsxRuntime.jsx(Skeleton, { height: "18px", width: "50%" }), jsxRuntime.jsx("br", {}), jsxRuntime.jsx(Skeleton, { height: "26px", style: { backgroundColor: theme.palette.blue[400] } })] }), jsxRuntime.jsx(Divider, {}), jsxRuntime.jsxs(CardFooter, { children: [jsxRuntime.jsx(Skeleton, { height: "18px", width: "45%" }), " ", jsxRuntime.jsx(Skeleton, { width: "26px", height: "26px", style: { borderRadius: "100%" } })] })] }));
|
|
595
|
+
return (jsxRuntime.jsxs(Wrapper$1, { children: [jsxRuntime.jsx(CardHeader, { children: jsxRuntime.jsx(Skeleton, { width: "30%" }) }), jsxRuntime.jsxs(CardBody$1, { children: [jsxRuntime.jsx(Skeleton, { height: "18px", width: "50%" }), jsxRuntime.jsx("br", {}), jsxRuntime.jsx(Skeleton, { height: "26px", style: { backgroundColor: theme.palette.blue[400] } })] }), jsxRuntime.jsx(Divider$1, {}), jsxRuntime.jsxs(CardFooter$1, { children: [jsxRuntime.jsx(Skeleton, { height: "18px", width: "45%" }), " ", jsxRuntime.jsx(Skeleton, { width: "26px", height: "26px", style: { borderRadius: "100%" } })] })] }));
|
|
593
596
|
};
|
|
594
597
|
|
|
595
598
|
var getStatusIcon = function (status) {
|
|
@@ -614,21 +617,66 @@ var getTypeData = function (type) {
|
|
|
614
617
|
};
|
|
615
618
|
}
|
|
616
619
|
};
|
|
617
|
-
var Wrapper = styled__default["default"](Card)(templateObject_1$
|
|
618
|
-
var
|
|
619
|
-
|
|
620
|
+
var Wrapper$1 = styled__default["default"](Card)(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"])), function (_a) {
|
|
621
|
+
var theme = _a.theme;
|
|
622
|
+
return theme.borderRadii.lg;
|
|
623
|
+
}, function (_a) {
|
|
624
|
+
var theme = _a.theme;
|
|
625
|
+
return theme.components.notification.card.padding;
|
|
626
|
+
}, function (_a) {
|
|
627
|
+
var theme = _a.theme;
|
|
628
|
+
return theme.palette.grey["200"];
|
|
629
|
+
}, function (_a) {
|
|
630
|
+
var theme = _a.theme;
|
|
631
|
+
return theme.shadows.boxShadow(theme);
|
|
632
|
+
});
|
|
633
|
+
var StyledTag$1 = styled__default["default"](Tag)(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n color: ", ";\n max-width: 75%;\n cursor: pointer;\n"], ["\n color: ", ";\n max-width: 75%;\n cursor: pointer;\n"])), function (_a) {
|
|
634
|
+
var theme = _a.theme;
|
|
635
|
+
return theme.palette.grey["700"];
|
|
636
|
+
});
|
|
637
|
+
var StyledTagNew$1 = styled__default["default"](Tag)(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n"], ["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n"])), function (_a) {
|
|
620
638
|
var theme = _a.theme;
|
|
621
639
|
return theme.space.base * 6;
|
|
622
|
-
},
|
|
640
|
+
}, function (_a) {
|
|
641
|
+
var theme = _a.theme;
|
|
642
|
+
return theme.space.base;
|
|
643
|
+
}, function (_a) {
|
|
623
644
|
var theme = _a.theme;
|
|
624
645
|
return theme.space.base * 2;
|
|
625
|
-
},
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
var
|
|
630
|
-
var
|
|
631
|
-
|
|
646
|
+
}, function (_a) {
|
|
647
|
+
var theme = _a.theme;
|
|
648
|
+
return theme.palette.white;
|
|
649
|
+
});
|
|
650
|
+
var StyledLabel$1 = styled__default["default"](Label)(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"], ["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
651
|
+
var theme = _a.theme;
|
|
652
|
+
return theme.fontSizes.sm;
|
|
653
|
+
}, function (_a) {
|
|
654
|
+
var theme = _a.theme;
|
|
655
|
+
return theme.palette.grey["500"];
|
|
656
|
+
});
|
|
657
|
+
var StyledTitleLabel$1 = styled__default["default"](Label)(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n word-wrap: break-word;\n cursor: pointer;\n"], ["\n color: ", ";\n font-size: ", ";\n word-wrap: break-word;\n cursor: pointer;\n"])), function (_a) {
|
|
658
|
+
var theme = _a.theme;
|
|
659
|
+
return theme.palette.blue["600"];
|
|
660
|
+
}, function (_a) {
|
|
661
|
+
var theme = _a.theme;
|
|
662
|
+
return theme.fontSizes.lg;
|
|
663
|
+
});
|
|
664
|
+
var Divider$1 = styled__default["default"].div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n width: 100%;\n height: 1px;\n margin: ", " 0;\n background-color: ", ";\n"], ["\n width: 100%;\n height: 1px;\n margin: ", " 0;\n background-color: ", ";\n"])), function (_a) {
|
|
665
|
+
var theme = _a.theme;
|
|
666
|
+
return theme.space.lg;
|
|
667
|
+
}, function (_a) {
|
|
668
|
+
var theme = _a.theme;
|
|
669
|
+
return theme.palette.grey["300"];
|
|
670
|
+
});
|
|
671
|
+
var CardHeader = styled__default["default"].div(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n height: ", "px;\n"], ["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n height: ", "px;\n"])), function (_a) {
|
|
672
|
+
var theme = _a.theme;
|
|
673
|
+
return theme.space.base * 6;
|
|
674
|
+
});
|
|
675
|
+
var CardBody$1 = styled__default["default"].div(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n margin-top: ", ";\n flex: 1;\n"], ["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n margin-top: ", ";\n flex: 1;\n"])), function (_a) {
|
|
676
|
+
var theme = _a.theme;
|
|
677
|
+
return theme.space.xxl;
|
|
678
|
+
});
|
|
679
|
+
var CardFooter$1 = styled__default["default"].div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n"], ["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n"])));
|
|
632
680
|
var CampaignCard = function (props) {
|
|
633
681
|
var isNew = props.isNew, date = props.date, projectTitle = props.projectTitle, campaignTitle = props.campaignTitle, status = props.status, type = props.type, labelNew = props.labelNew;
|
|
634
682
|
var StatusIcon = getStatusIcon(status !== null && status !== void 0 ? status : "PROGRESS");
|
|
@@ -642,9 +690,79 @@ var CampaignCard = function (props) {
|
|
|
642
690
|
if (campaignTitle.length > 29) {
|
|
643
691
|
campaignTitleCut = "".concat(campaignTitle.substring(0, 26), "...");
|
|
644
692
|
}
|
|
645
|
-
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel, __assign({ isRegular: true }, { children: date })), isNew && (jsxRuntime.jsx(StyledTagNew, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" })))] }), jsxRuntime.jsxs(CardBody, { children: [jsxRuntime.jsx(StyledLabel, __assign({ isRegular: true }, { children: projectTitleCut })), jsxRuntime.jsx(StyledTitleLabel, __assign({ isRegular: true }, { children: campaignTitleCut }))] }), jsxRuntime.jsx(Divider, {}), jsxRuntime.jsxs(CardFooter, { children: [typeData && (jsxRuntime.jsxs(StyledTag$1, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(Tag.Avatar, { children: jsxRuntime.jsx(PillIcon, {}) }), props.pillText] }))), jsxRuntime.jsx(StatusIcon, {})] })] })));
|
|
693
|
+
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper$1, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: date })), isNew && (jsxRuntime.jsx(StyledTagNew$1, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" })))] }), jsxRuntime.jsxs(CardBody$1, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: projectTitleCut })), jsxRuntime.jsx(StyledTitleLabel$1, __assign({ isRegular: true }, { children: campaignTitleCut }))] }), jsxRuntime.jsx(Divider$1, {}), jsxRuntime.jsxs(CardFooter$1, { children: [typeData && (jsxRuntime.jsxs(StyledTag$1, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(Tag.Avatar, { children: jsxRuntime.jsx(PillIcon, {}) }), props.pillText] }))), jsxRuntime.jsx(StatusIcon, {})] })] })));
|
|
646
694
|
};
|
|
647
|
-
var templateObject_1$
|
|
695
|
+
var templateObject_1$L, templateObject_2$d, templateObject_3$8, templateObject_4$4, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9;
|
|
696
|
+
|
|
697
|
+
var Wrapper = styled__default["default"](Card)(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"])), function (_a) {
|
|
698
|
+
var theme = _a.theme;
|
|
699
|
+
return theme.borderRadii.lg;
|
|
700
|
+
}, function (_a) {
|
|
701
|
+
var theme = _a.theme;
|
|
702
|
+
return theme.components.notification.card.padding;
|
|
703
|
+
}, function (_a) {
|
|
704
|
+
var theme = _a.theme;
|
|
705
|
+
return theme.palette.grey["200"];
|
|
706
|
+
}, function (_a) {
|
|
707
|
+
var theme = _a.theme;
|
|
708
|
+
return theme.shadows.boxShadow(theme);
|
|
709
|
+
});
|
|
710
|
+
var StyledTagNew = styled__default["default"](Tag)(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n position: absolute;\n right: 16px;\n top: 16px;\n"], ["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n position: absolute;\n right: 16px;\n top: 16px;\n"])), function (_a) {
|
|
711
|
+
var theme = _a.theme;
|
|
712
|
+
return theme.space.base * 6;
|
|
713
|
+
}, function (_a) {
|
|
714
|
+
var theme = _a.theme;
|
|
715
|
+
return theme.space.base;
|
|
716
|
+
}, function (_a) {
|
|
717
|
+
var theme = _a.theme;
|
|
718
|
+
return theme.space.base * 2;
|
|
719
|
+
}, function (_a) {
|
|
720
|
+
var theme = _a.theme;
|
|
721
|
+
return theme.palette.white;
|
|
722
|
+
});
|
|
723
|
+
var StyledLabel = styled__default["default"](Label)(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"], ["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
724
|
+
var theme = _a.theme;
|
|
725
|
+
return theme.fontSizes.sm;
|
|
726
|
+
}, function (_a) {
|
|
727
|
+
var theme = _a.theme;
|
|
728
|
+
return theme.palette.grey["500"];
|
|
729
|
+
});
|
|
730
|
+
var StyledTitleLabel = styled__default["default"](Label)(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n word-wrap: break-word;\n cursor: pointer;\n"], ["\n color: ", ";\n font-size: ", ";\n word-wrap: break-word;\n cursor: pointer;\n"])), function (_a) {
|
|
731
|
+
var theme = _a.theme;
|
|
732
|
+
return theme.palette.blue["600"];
|
|
733
|
+
}, function (_a) {
|
|
734
|
+
var theme = _a.theme;
|
|
735
|
+
return theme.fontSizes.lg;
|
|
736
|
+
});
|
|
737
|
+
var Divider = styled__default["default"].div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n width: 100%;\n height: 1px;\n margin: ", " 0;\n background-color: ", ";\n"], ["\n width: 100%;\n height: 1px;\n margin: ", " 0;\n background-color: ", ";\n"])), function (_a) {
|
|
738
|
+
var theme = _a.theme;
|
|
739
|
+
return theme.space.sm;
|
|
740
|
+
}, function (_a) {
|
|
741
|
+
var theme = _a.theme;
|
|
742
|
+
return theme.palette.grey["300"];
|
|
743
|
+
});
|
|
744
|
+
var IconContainer$1 = styled__default["default"].div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n padding: ", ";\n margin: auto;\n svg {\n max-width: 42px;\n width: 100%;\n height: auto;\n }\n"], ["\n padding: ", ";\n margin: auto;\n svg {\n max-width: 42px;\n width: 100%;\n height: auto;\n }\n"])), function (_a) {
|
|
745
|
+
var theme = _a.theme;
|
|
746
|
+
return theme.components.notification.card.padding;
|
|
747
|
+
});
|
|
748
|
+
var CardBody = styled__default["default"].div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n flex: 1;\n"], ["\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n flex: 1;\n"])));
|
|
749
|
+
var CardFooter = styled__default["default"].div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"], ["\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
750
|
+
var ProductCard = function (props) {
|
|
751
|
+
var isNew = props.isNew, productTitle = props.productTitle, labelNew = props.labelNew;
|
|
752
|
+
var productTitleCut = productTitle;
|
|
753
|
+
if (productTitle.length > 42) {
|
|
754
|
+
productTitleCut = "".concat(productTitle.substring(0, 39), "...");
|
|
755
|
+
}
|
|
756
|
+
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper, __assign({}, props, { children: [jsxRuntime.jsxs(CardBody, { children: [isNew && (jsxRuntime.jsx(StyledTagNew, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" }))), props.icon && jsxRuntime.jsx(IconContainer$1, { children: props.icon }), props.preTitle && (jsxRuntime.jsx(StyledLabel, __assign({ isRegular: true }, { children: props.preTitle }))), jsxRuntime.jsx(StyledTitleLabel, __assign({ isRegular: true }, { children: productTitleCut }))] }), jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(CardFooter, { children: jsxRuntime.jsx(Button, __assign({ isPill: true, isPrimary: true, onClick: props.onCtaClick }, { children: props.ctaLabel })) })] })));
|
|
757
|
+
};
|
|
758
|
+
var templateObject_1$K, templateObject_2$c, templateObject_3$7, templateObject_4$3, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8;
|
|
759
|
+
|
|
760
|
+
var Drawer = function (props) { return jsxRuntime.jsx(reactModals.DrawerModal, __assign({}, props)); };
|
|
761
|
+
Drawer.Header = reactModals.DrawerModal.Header;
|
|
762
|
+
Drawer.Body = reactModals.DrawerModal.Body;
|
|
763
|
+
Drawer.Footer = reactModals.DrawerModal.Footer;
|
|
764
|
+
Drawer.FooterItem = reactModals.DrawerModal.FooterItem;
|
|
765
|
+
Drawer.Close = reactModals.DrawerModal.Close;
|
|
648
766
|
|
|
649
767
|
/**
|
|
650
768
|
* Title is a basic component used to display a title. Often used in card headers.
|
|
@@ -1254,7 +1372,7 @@ var BrandItem = function (props) {
|
|
|
1254
1372
|
};
|
|
1255
1373
|
var templateObject_1$r, templateObject_2$b, templateObject_3$6;
|
|
1256
1374
|
|
|
1257
|
-
var UgHeader = styled__default["default"](reactChrome.Header)(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n height: ", ";\n"], ["\n height: ", ";\n"])), theme.components.
|
|
1375
|
+
var UgHeader = styled__default["default"](reactChrome.Header)(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n height: ", ";\n"], ["\n height: ", ";\n"])), theme.components.chrome.header.height);
|
|
1258
1376
|
/**
|
|
1259
1377
|
* An Header is a visual way to display general information.
|
|
1260
1378
|
* This can include navList Items, modal, profile settings.
|
|
@@ -1950,7 +2068,7 @@ var StyledModal = styled__default["default"](Modal)(templateObject_1$4 || (templ
|
|
|
1950
2068
|
return theme.breakpoints.sm;
|
|
1951
2069
|
}, function (_a) {
|
|
1952
2070
|
var theme = _a.theme;
|
|
1953
|
-
return "".concat(theme.components.
|
|
2071
|
+
return "".concat(theme.components.chrome.header.height, " - ").concat(theme.space.xs);
|
|
1954
2072
|
}, function (_a) {
|
|
1955
2073
|
var theme = _a.theme;
|
|
1956
2074
|
return theme.space.base * 3;
|
|
@@ -2101,8 +2219,8 @@ exports.ButtonGroup = ButtonGroup;
|
|
|
2101
2219
|
exports.CampaignCard = CampaignCard;
|
|
2102
2220
|
exports.Caption = Caption;
|
|
2103
2221
|
exports.Card = Card;
|
|
2104
|
-
exports.CardBody = CardBody;
|
|
2105
|
-
exports.CardFooter = CardFooter;
|
|
2222
|
+
exports.CardBody = CardBody$1;
|
|
2223
|
+
exports.CardFooter = CardFooter$1;
|
|
2106
2224
|
exports.CardHeader = CardHeader;
|
|
2107
2225
|
exports.Checkbox = Checkbox;
|
|
2108
2226
|
exports.Chrome = Chrome;
|
|
@@ -2112,7 +2230,8 @@ exports.Col = Col;
|
|
|
2112
2230
|
exports.Content = Content;
|
|
2113
2231
|
exports.Counter = Counter;
|
|
2114
2232
|
exports.CursorPagination = CursorPagination;
|
|
2115
|
-
exports.Divider = Divider;
|
|
2233
|
+
exports.Divider = Divider$1;
|
|
2234
|
+
exports.Drawer = Drawer;
|
|
2116
2235
|
exports.Dropdown = Dropdown;
|
|
2117
2236
|
exports.DropdownField = index$1;
|
|
2118
2237
|
exports.Ellipsis = Ellipsis;
|
|
@@ -2161,6 +2280,7 @@ exports.PageLoader = PageLoader;
|
|
|
2161
2280
|
exports.Pagination = Pagination;
|
|
2162
2281
|
exports.Paragraph = Paragraph;
|
|
2163
2282
|
exports.PreviousItem = PreviousItem;
|
|
2283
|
+
exports.ProductCard = ProductCard;
|
|
2164
2284
|
exports.ProfileModal = ProfileModal;
|
|
2165
2285
|
exports.Progress = Progress;
|
|
2166
2286
|
exports.Radio = Radio;
|
|
@@ -2186,7 +2306,7 @@ exports.ToastProvider = ToastProvider;
|
|
|
2186
2306
|
exports.Toggle = Toggle;
|
|
2187
2307
|
exports.Trigger = Trigger;
|
|
2188
2308
|
exports.UnorderedList = UnorderedList;
|
|
2189
|
-
exports.Wrapper = Wrapper;
|
|
2309
|
+
exports.Wrapper = Wrapper$1;
|
|
2190
2310
|
exports.XL = XL;
|
|
2191
2311
|
exports.XXL = XXL;
|
|
2192
2312
|
exports.XXXL = XXXL;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IDrawerModalProps } from "@zendeskgarden/react-modals";
|
|
2
|
+
import { KeyboardEvent, MouseEvent } from "react";
|
|
3
|
+
export interface DrawerArgs extends IDrawerModalProps {
|
|
4
|
+
/**
|
|
5
|
+
* Opens the modal
|
|
6
|
+
*/
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Passes HTML attributes to the backdrop element
|
|
10
|
+
*/
|
|
11
|
+
backdropProps?: any;
|
|
12
|
+
/**
|
|
13
|
+
* Handles close actions. Can be triggered from the backdrop and from the close icon.
|
|
14
|
+
*
|
|
15
|
+
* @param {Object} event The DOM event that triggered the close action
|
|
16
|
+
*/
|
|
17
|
+
onClose?: (event: KeyboardEvent | MouseEvent) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Defines the DOM element that the modal will attatch to
|
|
20
|
+
*/
|
|
21
|
+
appendToNode?: Element;
|
|
22
|
+
/**
|
|
23
|
+
* Directs keyboard focus to the modal on mount
|
|
24
|
+
*/
|
|
25
|
+
focusOnMount?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Returns keyboard focus to the element that triggered the modal
|
|
28
|
+
*/
|
|
29
|
+
restoreFocus?: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DrawerArgs } from "./_types";
|
|
3
|
+
declare const Drawer: {
|
|
4
|
+
(props: DrawerArgs): JSX.Element;
|
|
5
|
+
Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
|
+
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
};
|
|
11
|
+
export { Drawer };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DrawerArgs } from "./_types";
|
|
3
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
4
|
+
export declare const Default: Story<DrawerArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<{
|
|
6
|
+
(props: DrawerArgs): JSX.Element;
|
|
7
|
+
Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IDrawerModalProps } from "@zendeskgarden/react-modals";
|
|
2
|
+
import { KeyboardEvent, MouseEvent } from "react";
|
|
3
|
+
export interface DrawerArgs extends IDrawerModalProps {
|
|
4
|
+
/**
|
|
5
|
+
* Opens the modal
|
|
6
|
+
*/
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Passes HTML attributes to the backdrop element
|
|
10
|
+
*/
|
|
11
|
+
backdropProps?: any;
|
|
12
|
+
/**
|
|
13
|
+
* Handles close actions. Can be triggered from the backdrop and from the close icon.
|
|
14
|
+
*
|
|
15
|
+
* @param {Object} event The DOM event that triggered the close action
|
|
16
|
+
*/
|
|
17
|
+
onClose?: (event: KeyboardEvent | MouseEvent) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Defines the DOM element that the modal will attatch to
|
|
20
|
+
*/
|
|
21
|
+
appendToNode?: Element;
|
|
22
|
+
/**
|
|
23
|
+
* Directs keyboard focus to the modal on mount
|
|
24
|
+
*/
|
|
25
|
+
focusOnMount?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Returns keyboard focus to the element that triggered the modal
|
|
28
|
+
*/
|
|
29
|
+
restoreFocus?: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DrawerArgs } from "./_types";
|
|
3
|
+
declare const Drawer: {
|
|
4
|
+
(props: DrawerArgs): JSX.Element;
|
|
5
|
+
Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
|
+
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
};
|
|
11
|
+
export { Drawer };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DrawerArgs } from "./_types";
|
|
3
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
4
|
+
export declare const Default: Story<DrawerArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<{
|
|
6
|
+
(props: DrawerArgs): JSX.Element;
|
|
7
|
+
Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardProps } from "../cards/_types";
|
|
3
|
+
export interface ProductCardProps extends CardProps {
|
|
4
|
+
/**
|
|
5
|
+
* displays a new tag in the top right
|
|
6
|
+
*/
|
|
7
|
+
isNew?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* this renders the new flag label
|
|
10
|
+
*/
|
|
11
|
+
labelNew?: string;
|
|
12
|
+
/**
|
|
13
|
+
* displays product icon
|
|
14
|
+
*/
|
|
15
|
+
icon?: React.ReactElement;
|
|
16
|
+
/**
|
|
17
|
+
* Category, pre-header or any other useful information
|
|
18
|
+
*/
|
|
19
|
+
preTitle?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Card Title
|
|
22
|
+
*/
|
|
23
|
+
productTitle: string;
|
|
24
|
+
/**
|
|
25
|
+
* Display the skeleton
|
|
26
|
+
*/
|
|
27
|
+
isLoading?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Text inside the cta button
|
|
30
|
+
*/
|
|
31
|
+
ctaLabel: string;
|
|
32
|
+
/**
|
|
33
|
+
* On Cta click
|
|
34
|
+
*/
|
|
35
|
+
onCtaClick: () => void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProductCardProps } from "./_types";
|
|
3
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
4
|
+
export declare const SingleCard: Story<ProductCardProps>;
|
|
5
|
+
export declare const Grid: Story<ProductCardProps>;
|
|
6
|
+
declare const _default: ComponentMeta<(props: ProductCardProps) => JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
+
colors: {
|
|
3
|
+
primaryHue: string;
|
|
4
|
+
base: "light" | "dark";
|
|
5
|
+
background: string;
|
|
6
|
+
foreground: string;
|
|
7
|
+
dangerHue: string;
|
|
8
|
+
warningHue: string;
|
|
9
|
+
successHue: string;
|
|
10
|
+
neutralHue: string;
|
|
11
|
+
chromeHue: string;
|
|
12
|
+
};
|
|
2
13
|
palette: {
|
|
3
14
|
black: string;
|
|
4
15
|
white: string;
|
|
@@ -156,7 +167,8 @@ declare const theme: {
|
|
|
156
167
|
md: string;
|
|
157
168
|
};
|
|
158
169
|
components: {
|
|
159
|
-
|
|
170
|
+
chrome: any;
|
|
171
|
+
notification: any;
|
|
160
172
|
};
|
|
161
173
|
shadows: {
|
|
162
174
|
boxShadow: (theme: import("@zendeskgarden/react-theming").IGardenTheme) => string;
|
|
@@ -184,17 +196,6 @@ declare const theme: {
|
|
|
184
196
|
lg: string;
|
|
185
197
|
xl: string;
|
|
186
198
|
};
|
|
187
|
-
colors: {
|
|
188
|
-
base: "light" | "dark";
|
|
189
|
-
background: string;
|
|
190
|
-
foreground: string;
|
|
191
|
-
primaryHue: string;
|
|
192
|
-
dangerHue: string;
|
|
193
|
-
warningHue: string;
|
|
194
|
-
successHue: string;
|
|
195
|
-
neutralHue: string;
|
|
196
|
-
chromeHue: string;
|
|
197
|
-
};
|
|
198
199
|
fontSizes: {
|
|
199
200
|
xs: string;
|
|
200
201
|
sm: string;
|