@appquality/unguess-design-system 2.8.36 β†’ 2.10.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/CHANGELOG.md CHANGED
@@ -1,3 +1,44 @@
1
+ # v2.10.0 (Mon May 02 2022)
2
+
3
+ #### πŸš€ Enhancement
4
+
5
+ - feat(stepper): add stepper component with unguess color scheme [#47](https://github.com/AppQuality/unguess-design-system/pull/47) ([@cannarocks](https://github.com/cannarocks))
6
+
7
+ #### πŸ› Bug Fix
8
+
9
+ - Cup 648 checkbox cards [#46](https://github.com/AppQuality/unguess-design-system/pull/46) ([@marcbon](https://github.com/marcbon) [@cannarocks](https://github.com/cannarocks))
10
+
11
+ #### Authors: 2
12
+
13
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
14
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
15
+
16
+ ---
17
+
18
+ # v2.9.0 (Fri Apr 29 2022)
19
+
20
+ #### πŸš€ Enhancement
21
+
22
+ - Cup 646 allow creation on select [#45](https://github.com/AppQuality/unguess-design-system/pull/45) ([@cannarocks](https://github.com/cannarocks))
23
+
24
+ #### Authors: 1
25
+
26
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
27
+
28
+ ---
29
+
30
+ # v2.8.37 (Thu Apr 28 2022)
31
+
32
+ #### πŸ› Bug Fix
33
+
34
+ - Cup 642 modal fullscreen [#44](https://github.com/AppQuality/unguess-design-system/pull/44) ([@marcbon](https://github.com/marcbon))
35
+
36
+ #### Authors: 1
37
+
38
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
39
+
40
+ ---
41
+
1
42
  # v2.8.36 (Thu Apr 28 2022)
2
43
 
3
44
  #### ⚠️ Pushed to `master`
@@ -0,0 +1,2 @@
1
+ declare function useDebounce<T>(value: T, delay?: number): T;
2
+ export default useDebounce;
package/build/index.d.ts CHANGED
@@ -18,7 +18,9 @@ export * from "./stories/dropdowns/item";
18
18
  export * from "./stories/dropdowns/menu";
19
19
  export * from "./stories/dropdowns/multiselect";
20
20
  export * from "./stories/dropdowns/select";
21
+ export * from "./stories/dropdowns/autocomplete";
21
22
  export * from "./stories/forms/checkbox";
23
+ export * from "./stories/forms/checkbox/cards";
22
24
  export * as FormField from "./stories/forms/field";
23
25
  export * from "./stories/forms/input";
24
26
  export * from "./stories/forms/mediaInput";
@@ -50,6 +52,7 @@ export * from "./stories/navigation/chrome";
50
52
  export * from "./stories/notifications";
51
53
  export * from "./stories/pagination";
52
54
  export * from "./stories/profile-modal";
55
+ export * from "./stories/stepper";
53
56
  export { Table, Head as TableHead, HeaderRow, HeaderCell, Body as TableBody, Row as TableRow, Cell as TableCell, Caption, } from "./stories/table";
54
57
  export { GroupRow, GroupedTable, } from "./stories/table/grouped";
55
58
  export * from "./stories/tags";
package/build/index.js CHANGED
@@ -236,8 +236,8 @@ var components = __assign(__assign({}, reactTheming.DEFAULT_THEME.components), {
236
236
 
237
237
  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' }), fontWeights: __assign(__assign({}, reactTheming.DEFAULT_THEME.fontWeights), { semibold: 500 }), 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 }) });
238
238
 
239
- var GlobalStyle = styled.createGlobalStyle(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject(["\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 margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\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 margin: 0;\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);
240
- var templateObject_1$Q;
239
+ var GlobalStyle = styled.createGlobalStyle(templateObject_1$S || (templateObject_1$S = __makeTemplateObject(["\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 margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\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 margin: 0;\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);
240
+ var templateObject_1$S;
241
241
 
242
242
  /**
243
243
  * Accordions are headers that can be expanded to reveal content or collapsed to hide it.
@@ -253,7 +253,7 @@ Accordion.Label = reactAccordions.Accordion.Label;
253
253
  Accordion.Panel = reactAccordions.Accordion.Panel;
254
254
 
255
255
  // import useWindowSize from "../../hooks/useWindowSize";
256
- var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
256
+ var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
257
257
  return props.avatarType &&
258
258
  props.avatarType !== "image" &&
259
259
  "background: ".concat(props.backgroundColor || theme.gradients.dark, ";");
@@ -278,7 +278,7 @@ var Avatar = function (props) {
278
278
  return (jsxRuntime.jsx(UgAvatar, __assign({}, props, { badge: fixedBadge, children: wrapChildren(props.avatarType || "text"), size: props.size || "small" })));
279
279
  };
280
280
  Avatar.Text = UgAvatar.Text;
281
- var templateObject_1$P;
281
+ var templateObject_1$R;
282
282
 
283
283
  /**
284
284
  * Breadcrumbs mark and communicate a user’s location in the product.
@@ -299,7 +299,7 @@ var Breadcrumb = function (props) { return jsxRuntime.jsx(reactBreadcrumbs.Bread
299
299
  */
300
300
  var Anchor = function (props) { return jsxRuntime.jsx(reactButtons.Anchor, __assign({}, props)); };
301
301
 
302
- var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$O || (templateObject_1$O = __makeTemplateObject([""], [""])));
302
+ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject([""], [""])));
303
303
  /**
304
304
  * Buttons let users take action quickly.
305
305
  * Use a Button to enable actions or decisions that are important to a user’s workflow.
@@ -311,7 +311,7 @@ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
311
311
  var Button = function (props) { return jsxRuntime.jsx(UgButton, __assign({}, props)); };
312
312
  Button.StartIcon = UgButton.StartIcon;
313
313
  Button.EndIcon = UgButton.EndIcon;
314
- var templateObject_1$O;
314
+ var templateObject_1$Q;
315
315
 
316
316
  /**
317
317
  A Button group lets users make a selection from a set of options.
@@ -364,13 +364,13 @@ var Tag = function (props) { return jsxRuntime.jsx(reactTags.Tag, __assign({}, p
364
364
  Tag.Avatar = reactTags.Tag.Avatar;
365
365
  Tag.Close = reactTags.Tag.Close;
366
366
 
367
- var UgLabel = styled__default["default"](reactForms.Label)(templateObject_1$N || (templateObject_1$N = __makeTemplateObject([""], [""])));
367
+ var UgLabel$1 = styled__default["default"](reactForms.Label)(templateObject_1$P || (templateObject_1$P = __makeTemplateObject([""], [""])));
368
368
  /**
369
369
  * A Label is used to specify a title for an input.
370
370
  * <hr>
371
371
  **/
372
- var Label = function (props) { return jsxRuntime.jsx(UgLabel, __assign({}, props)); };
373
- var templateObject_1$N;
372
+ var Label = function (props) { return jsxRuntime.jsx(UgLabel$1, __assign({}, props)); };
373
+ var templateObject_1$P;
374
374
 
375
375
  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;
376
376
 
@@ -577,7 +577,7 @@ var SvgArrivalStatusRoundIcon = function SvgArrivalStatusRoundIcon(props) {
577
577
  })));
578
578
  };
579
579
 
580
- 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; });
580
+ var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$O || (templateObject_1$O = __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; });
581
581
  /**
582
582
  * 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.
583
583
  * <hr>
@@ -592,12 +592,33 @@ var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObjec
592
592
  - To communicate a typing status, use Inline instead
593
593
  */
594
594
  var Skeleton = function (props) { return jsxRuntime.jsx(UgSkeleton, __assign({}, props)); };
595
- var templateObject_1$M;
595
+ var templateObject_1$O;
596
596
 
597
597
  var CampaignCardSkeleton = function () {
598
598
  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%" } })] })] }));
599
599
  };
600
600
 
601
+ var flexCenter = styled.css(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
602
+ var flexColumnCenter = styled.css(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n ", ";\n flex-direction: column;\n"], ["\n ", ";\n flex-direction: column;\n"])), flexCenter);
603
+ var flexStart = styled.css(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: ", ";\n"])), function (_a) {
604
+ var theme = _a.theme;
605
+ return (theme.rtl ? "flex-end" : "flex-start");
606
+ });
607
+ var cardStyle = styled.css(templateObject_4$6 || (templateObject_4$6 = __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) {
608
+ var theme = _a.theme;
609
+ return theme.borderRadii.lg;
610
+ }, function (_a) {
611
+ var theme = _a.theme;
612
+ return theme.components.notification.card.padding;
613
+ }, function (_a) {
614
+ var theme = _a.theme;
615
+ return theme.palette.grey["200"];
616
+ }, function (_a) {
617
+ var theme = _a.theme;
618
+ return theme.shadows.boxShadow(theme);
619
+ });
620
+ var templateObject_1$N, templateObject_2$f, templateObject_3$a, templateObject_4$6;
621
+
601
622
  var getStatusIcon = function (status) {
602
623
  switch (status) {
603
624
  case "COMPLETED":
@@ -620,24 +641,12 @@ var getTypeDataIcon = function (type) {
620
641
  return SvgFunctionalTestRoundIcon;
621
642
  }
622
643
  };
623
- 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) {
624
- var theme = _a.theme;
625
- return theme.borderRadii.lg;
626
- }, function (_a) {
627
- var theme = _a.theme;
628
- return theme.components.notification.card.padding;
629
- }, function (_a) {
630
- var theme = _a.theme;
631
- return theme.palette.grey["200"];
632
- }, function (_a) {
633
- var theme = _a.theme;
634
- return theme.shadows.boxShadow(theme);
635
- });
636
- 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) {
644
+ var Wrapper$1 = styled__default["default"](Card)(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), cardStyle);
645
+ var StyledTag$1 = styled__default["default"](Tag)(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n color: ", ";\n max-width: 75%;\n cursor: pointer;\n"], ["\n color: ", ";\n max-width: 75%;\n cursor: pointer;\n"])), function (_a) {
637
646
  var theme = _a.theme;
638
647
  return theme.palette.grey["700"];
639
648
  });
640
- 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) {
649
+ var StyledTagNew$1 = styled__default["default"](Tag)(templateObject_3$9 || (templateObject_3$9 = __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) {
641
650
  var theme = _a.theme;
642
651
  return theme.space.base * 6;
643
652
  }, function (_a) {
@@ -650,7 +659,7 @@ var StyledTagNew$1 = styled__default["default"](Tag)(templateObject_3$8 || (temp
650
659
  var theme = _a.theme;
651
660
  return theme.palette.white;
652
661
  });
653
- 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) {
662
+ var StyledLabel$2 = styled__default["default"](Label)(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"], ["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"])), function (_a) {
654
663
  var theme = _a.theme;
655
664
  return theme.fontSizes.sm;
656
665
  }, function (_a) {
@@ -692,11 +701,11 @@ var CampaignCard = function (props) {
692
701
  if (campaignTitle.length > 29) {
693
702
  campaignTitleCut = "".concat(campaignTitle.substring(0, 26), "...");
694
703
  }
695
- 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: [props.pillText && (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, {})] })] })));
704
+ return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper$1, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel$2, __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$2, __assign({ isRegular: true }, { children: projectTitleCut })), jsxRuntime.jsx(StyledTitleLabel$1, __assign({ isRegular: true }, { children: campaignTitleCut }))] }), jsxRuntime.jsx(Divider$1, {}), jsxRuntime.jsxs(CardFooter$1, { children: [props.pillText && (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, {})] })] })));
696
705
  };
697
- 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;
706
+ var templateObject_1$M, templateObject_2$e, templateObject_3$9, templateObject_4$5, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9;
698
707
 
699
- 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) {
708
+ var Wrapper = 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\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) {
700
709
  var theme = _a.theme;
701
710
  return theme.borderRadii.lg;
702
711
  }, function (_a) {
@@ -709,7 +718,7 @@ var Wrapper = styled__default["default"](Card)(templateObject_1$K || (templateOb
709
718
  var theme = _a.theme;
710
719
  return theme.shadows.boxShadow(theme);
711
720
  });
712
- 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) {
721
+ var StyledTagNew = styled__default["default"](Tag)(templateObject_2$d || (templateObject_2$d = __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) {
713
722
  var theme = _a.theme;
714
723
  return theme.space.base * 6;
715
724
  }, function (_a) {
@@ -722,14 +731,14 @@ var StyledTagNew = styled__default["default"](Tag)(templateObject_2$c || (templa
722
731
  var theme = _a.theme;
723
732
  return theme.palette.white;
724
733
  });
725
- 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) {
734
+ var StyledLabel$1 = styled__default["default"](Label)(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"], ["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"])), function (_a) {
726
735
  var theme = _a.theme;
727
736
  return theme.fontSizes.sm;
728
737
  }, function (_a) {
729
738
  var theme = _a.theme;
730
739
  return theme.palette.grey["500"];
731
740
  });
732
- 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) {
741
+ var StyledTitleLabel = styled__default["default"](Label)(templateObject_4$4 || (templateObject_4$4 = __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) {
733
742
  var theme = _a.theme;
734
743
  return theme.palette.blue["600"];
735
744
  }, function (_a) {
@@ -755,9 +764,9 @@ var ProductCard = function (props) {
755
764
  if (productTitle.length > 42) {
756
765
  productTitleCut = "".concat(productTitle.substring(0, 39), "...");
757
766
  }
758
- 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 })) })] })));
767
+ 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$1, __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 })) })] })));
759
768
  };
760
- var templateObject_1$K, templateObject_2$c, templateObject_3$7, templateObject_4$3, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8;
769
+ var templateObject_1$L, templateObject_2$d, templateObject_3$8, templateObject_4$4, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8;
761
770
 
762
771
  var Drawer = function (props) { return jsxRuntime.jsx(reactModals.DrawerModal, __assign({}, props)); };
763
772
  Drawer.Header = reactModals.DrawerModal.Header;
@@ -970,7 +979,7 @@ var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
970
979
  })));
971
980
  };
972
981
 
973
- var StyledTag = styled__default["default"](Tag)(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n background-color: transparent;\n pointer-events: none;\n font-weight: ", ";\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n span {\n font-weight: ", ";\n margin-left: ", ";\n color: ", ";\n }\n"], ["\n background-color: transparent;\n pointer-events: none;\n font-weight: ", ";\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n span {\n font-weight: ", ";\n margin-left: ", ";\n color: ", ";\n }\n"])), function (_a) {
982
+ var StyledTag = styled__default["default"](Tag)(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n background-color: transparent;\n pointer-events: none;\n font-weight: ", ";\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n span {\n font-weight: ", ";\n margin-left: ", ";\n color: ", ";\n }\n"], ["\n background-color: transparent;\n pointer-events: none;\n font-weight: ", ";\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n span {\n font-weight: ", ";\n margin-left: ", ";\n color: ", ";\n }\n"])), function (_a) {
974
983
  var theme = _a.theme;
975
984
  return theme.fontWeights.regular;
976
985
  }, function (_a) {
@@ -1006,24 +1015,24 @@ var Counter = function (props) {
1006
1015
  return (jsxRuntime.jsxs(StyledTag, __assign({}, props, { size: props.size || "large" }, { children: [jsxRuntime.jsx(StyledTag.Avatar, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [status === "completed" && jsxRuntime.jsx(SvgCampaignCompleted, {}), status === "progress" && jsxRuntime.jsx(SvgCampaignProgress, {}), status === "incoming" && jsxRuntime.jsx(SvgCampaignIncoming, {}), status === "functional" && jsxRuntime.jsx(SvgCampaignFunctional, {}), status === "experiential" && jsxRuntime.jsx(SvgCampaignExperiential, {})] }) }), props.children, counter !== undefined && jsxRuntime.jsx("span", { children: counter.toString() })] })));
1007
1016
  };
1008
1017
  Counter.Avatar = StyledTag.Avatar;
1009
- var templateObject_1$J;
1018
+ var templateObject_1$K;
1010
1019
 
1011
- var Field$1 = styled__default["default"](reactDropdowns.Field)(templateObject_1$I || (templateObject_1$I = __makeTemplateObject([""], [""])));
1012
- var templateObject_1$I;
1020
+ var Field$1 = styled__default["default"](reactDropdowns.Field)(templateObject_1$J || (templateObject_1$J = __makeTemplateObject([""], [""])));
1021
+ var templateObject_1$J;
1013
1022
 
1014
1023
  var index$1 = /*#__PURE__*/Object.freeze({
1015
1024
  __proto__: null,
1016
1025
  Field: Field$1
1017
1026
  });
1018
1027
 
1019
- var UgItem = styled__default["default"](reactDropdowns.Item)(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n &[disabled] svg {\n opacity: 0.5;\n }\n &:hover {\n background-color: ", ";\n }\n"], ["\n &[disabled] svg {\n opacity: 0.5;\n }\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
1028
+ var UgItem = styled__default["default"](reactDropdowns.Item)(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n &[disabled] svg {\n opacity: 0.5;\n }\n &:hover {\n background-color: ", ";\n }\n"], ["\n &[disabled] svg {\n opacity: 0.5;\n }\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
1020
1029
  var theme = _a.theme;
1021
1030
  return theme.palette.blue[100];
1022
1031
  });
1023
1032
  var Item = function (props) { return jsxRuntime.jsx(UgItem, __assign({}, props)); };
1024
- var templateObject_1$H;
1033
+ var templateObject_1$I;
1025
1034
 
1026
- var UgMenu = styled__default["default"](reactDropdowns.Menu)(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n width: auto !important;\n min-width: 100%;\n"], ["\n width: auto !important;\n min-width: 100%;\n"])));
1035
+ var UgMenu = styled__default["default"](reactDropdowns.Menu)(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n width: auto !important;\n min-width: 100%;\n"], ["\n width: auto !important;\n min-width: 100%;\n"])));
1027
1036
  /**
1028
1037
  * A Menu is a wrapper for items elements
1029
1038
  **/
@@ -1036,7 +1045,7 @@ var ItemMeta = function (props) { return jsxRuntime.jsx(reactDropdowns.ItemMeta,
1036
1045
  var MediaBody = function (props) { return jsxRuntime.jsx(reactDropdowns.MediaBody, __assign({}, props)); };
1037
1046
  var MediaFigure = function (props) { return jsxRuntime.jsx(reactDropdowns.MediaFigure, __assign({}, props)); };
1038
1047
  var MediaItem = function (props) { return jsxRuntime.jsx(reactDropdowns.MediaItem, __assign({}, props)); };
1039
- var templateObject_1$G;
1048
+ var templateObject_1$H;
1040
1049
 
1041
1050
  /**
1042
1051
  * Multiselect lets users select multiple items from a list. Options are dynamically filtered as a user types in the input field and their selections appear as tags in the input field.
@@ -1047,7 +1056,7 @@ var templateObject_1$G;
1047
1056
  */
1048
1057
  var Multiselect = function (props) { return (jsxRuntime.jsx(reactDropdowns.Multiselect, __assign({}, props))); };
1049
1058
 
1050
- var UgSelect = styled__default["default"](reactDropdowns.Select)(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
1059
+ var UgSelect = styled__default["default"](reactDropdowns.Select)(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
1051
1060
  return props.isPrimary &&
1052
1061
  "\n background-color: ".concat(props.theme.palette.blue[600], ";\n color: white;\n & svg[data-garden-id=\"forms.media_figure\"] {\n color: white;\n }\n ");
1053
1062
  });
@@ -1064,9 +1073,20 @@ var UgSelect = styled__default["default"](reactDropdowns.Select)(templateObject_
1064
1073
  var Select = function (props) { return jsxRuntime.jsx(UgSelect, __assign({}, props)); };
1065
1074
  var Dropdown = function (props) { return (jsxRuntime.jsx(reactDropdowns.Dropdown, __assign({}, props))); };
1066
1075
  var Message = function (props) { return jsxRuntime.jsx(reactDropdowns.Message, __assign({}, props)); };
1067
- var templateObject_1$F;
1076
+ var templateObject_1$G;
1077
+
1078
+ /**
1079
+ * Autocomplete is an input field that filters results as users type. This helps users find something quickly in a large list of options.
1080
+ * <hr>
1081
+ * Used for this:
1082
+ - To filter down a large list of options
1083
+ - To quickly find a known option
1084
+ * Not for this:
1085
+ - To make more than one selection, use Multiselect instead
1086
+ */
1087
+ var Autocomplete = function (props) { return jsxRuntime.jsx(reactDropdowns.Autocomplete, __assign({}, props)); };
1068
1088
 
1069
- var UgCheckbox = styled__default["default"](reactForms.Checkbox)(templateObject_1$E || (templateObject_1$E = __makeTemplateObject([""], [""])));
1089
+ var UgCheckbox = styled__default["default"](reactForms.Checkbox)(templateObject_1$F || (templateObject_1$F = __makeTemplateObject([""], [""])));
1070
1090
  /**
1071
1091
  * A Checkbox lets users select and unselect options from a list.
1072
1092
  * <hr>
@@ -1078,7 +1098,35 @@ var UgCheckbox = styled__default["default"](reactForms.Checkbox)(templateObject_
1078
1098
  * - To let users activate an option that takes effect immediately, use a Toggle instead
1079
1099
  **/
1080
1100
  var Checkbox = function (props) { return jsxRuntime.jsx(UgCheckbox, __assign({}, props)); };
1081
- var templateObject_1$E;
1101
+ var templateObject_1$F;
1102
+
1103
+ var StyledCard = styled__default["default"](Card)(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n ", "\n text-align: center;\n justify-content: center;\n align-items: center;\n\n &.card-active {\n border-color: ", ";\n }\n"], ["\n ", "\n text-align: center;\n justify-content: center;\n align-items: center;\n\n &.card-active {\n border-color: ", ";\n }\n"])), cardStyle, function (_a) {
1104
+ var theme = _a.theme;
1105
+ return theme.palette.blue[300];
1106
+ });
1107
+ var IconWrapper = styled__default["default"].div(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n margin: ", "px auto;\n"], ["\n margin: ", "px auto;\n"])), function (_a) {
1108
+ var theme = _a.theme;
1109
+ return theme.space.base;
1110
+ });
1111
+ var LabelWrapper = styled__default["default"](Label)(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n margin: ", "px auto;\n color: ", ";\n user-select: none;\n\n &:focus {\n outline: 0;\n }\n"], ["\n margin: ", "px auto;\n color: ", ";\n user-select: none;\n\n &:focus {\n outline: 0;\n }\n"])), function (_a) {
1112
+ var theme = _a.theme;
1113
+ return theme.space.base;
1114
+ }, function (_a) {
1115
+ var theme = _a.theme;
1116
+ return theme.palette.grey[600];
1117
+ });
1118
+ var StyledLabel = styled__default["default"](Label)(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n margin: ", "px auto;\n"], ["\n margin: ", "px auto;\n"])), function (_a) {
1119
+ var theme = _a.theme;
1120
+ return theme.space.base;
1121
+ });
1122
+ var CheckboxCard = function (props) {
1123
+ var _a = React.useState(props.defaultChecked || false), checked = _a[0], setChecked = _a[1];
1124
+ var handleToggle = function () {
1125
+ setChecked(!checked);
1126
+ };
1127
+ return (jsxRuntime.jsxs(StyledCard, __assign({}, props.card, props, props && !props.disabled && { onClick: handleToggle }, { className: checked ? "card-active" : "" }, { children: [jsxRuntime.jsx(IconWrapper, { children: (props.iconActive && checked) ? props.iconActive : props.icon }), jsxRuntime.jsx(LabelWrapper, { children: props.label }), jsxRuntime.jsx(Checkbox, __assign({}, props, { checked: checked, onClick: function (e) { return e.stopPropagation(); } }, { children: jsxRuntime.jsx(StyledLabel, __assign({ hidden: true }, { children: props.label })) }))] })));
1128
+ };
1129
+ var templateObject_1$E, templateObject_2$c, templateObject_3$7, templateObject_4$3;
1082
1130
 
1083
1131
  var UgField = styled__default["default"](reactForms.Field)(templateObject_1$D || (templateObject_1$D = __makeTemplateObject([""], [""])));
1084
1132
  /**
@@ -1795,25 +1843,17 @@ var StyledMenuItemIcon = styled__default["default"].div(templateObject_1$d || (t
1795
1843
  var MenuItemIcon = function (props) { return (jsxRuntime.jsx(StyledMenuItemIcon, __assign({ isVisible: true }, props, { children: jsxRuntime.jsx(SvgChevronRightStroke, {}) }))); };
1796
1844
  var templateObject_1$d;
1797
1845
 
1798
- var flexCenter = styled.css(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
1799
- var flexColumnCenter = styled.css(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n ", ";\n flex-direction: column;\n"], ["\n ", ";\n flex-direction: column;\n"])), flexCenter);
1800
- var flexStart = styled.css(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: ", ";\n"])), function (_a) {
1801
- var theme = _a.theme;
1802
- return (theme.rtl ? "flex-end" : "flex-start");
1803
- });
1804
- var templateObject_1$c, templateObject_2$7, templateObject_3$5;
1805
-
1806
1846
  /**
1807
1847
  * 1. Allows an item to contain a positioned sub-menu.
1808
1848
  * 2. Reset stacking context for sub-menu css-arrows.
1809
1849
  **/
1810
- var StyledItem = styled__default["default"].li(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n display: block;\n position: relative; /* [1] */\n z-index: 0; /* [2] */\n cursor: ", ";\n text-decoration: none;\n line-height: ", "px;\n word-wrap: break-word;\n user-select: none;\n &:first-child {\n margin-top: ", "px;\n }\n &:last-child {\n margin-bottom: ", "px;\n }\n &:focus {\n outline: none;\n }\n\n width: fill-available;\n ", "\n height: ", ";\n padding: ", " ", ";\n\n ", ";\n\n ", " {\n right: ", ";\n left: ", ";\n }\n"], ["\n display: block;\n position: relative; /* [1] */\n z-index: 0; /* [2] */\n cursor: ", ";\n text-decoration: none;\n line-height: ", "px;\n word-wrap: break-word;\n user-select: none;\n &:first-child {\n margin-top: ", "px;\n }\n &:last-child {\n margin-bottom: ", "px;\n }\n &:focus {\n outline: none;\n }\n\n width: fill-available;\n ", "\n height: ", ";\n padding: ", " ", ";\n\n ", ";\n\n ", " {\n right: ", ";\n left: ", ";\n }\n"])), function (props) { return (props.disabled ? "default" : "pointer"); }, function (props) { return props.theme.space.base * 5; }, function (props) { return props.theme.space.base; }, function (props) { return props.theme.space.base; }, flexCenter, theme.space.xxl, theme.space.xs, theme.space.md, function (props) { return "\n &:hover,\n &:focus,\n &:active {\n background-color: ".concat(theme.palette.kale[100], ";\n color: ").concat(props.isDanger ? theme.palette.red[500] : theme.palette.grey[800], ";\n }"); }, StyledMenuItemIcon, function (props) {
1850
+ var StyledItem = styled__default["default"].li(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n display: block;\n position: relative; /* [1] */\n z-index: 0; /* [2] */\n cursor: ", ";\n text-decoration: none;\n line-height: ", "px;\n word-wrap: break-word;\n user-select: none;\n &:first-child {\n margin-top: ", "px;\n }\n &:last-child {\n margin-bottom: ", "px;\n }\n &:focus {\n outline: none;\n }\n\n width: fill-available;\n ", "\n height: ", ";\n padding: ", " ", ";\n\n ", ";\n\n ", " {\n right: ", ";\n left: ", ";\n }\n"], ["\n display: block;\n position: relative; /* [1] */\n z-index: 0; /* [2] */\n cursor: ", ";\n text-decoration: none;\n line-height: ", "px;\n word-wrap: break-word;\n user-select: none;\n &:first-child {\n margin-top: ", "px;\n }\n &:last-child {\n margin-bottom: ", "px;\n }\n &:focus {\n outline: none;\n }\n\n width: fill-available;\n ", "\n height: ", ";\n padding: ", " ", ";\n\n ", ";\n\n ", " {\n right: ", ";\n left: ", ";\n }\n"])), function (props) { return (props.disabled ? "default" : "pointer"); }, function (props) { return props.theme.space.base * 5; }, function (props) { return props.theme.space.base; }, function (props) { return props.theme.space.base; }, flexCenter, theme.space.xxl, theme.space.xs, theme.space.md, function (props) { return "\n &:hover,\n &:focus,\n &:active {\n background-color: ".concat(theme.palette.kale[100], ";\n color: ").concat(props.isDanger ? theme.palette.red[500] : theme.palette.grey[800], ";\n }"); }, StyledMenuItemIcon, function (props) {
1811
1851
  return props.theme.rtl ? "auto" : "".concat(props.theme.space.base * 3, "px");
1812
1852
  }, function (props) {
1813
1853
  return props.theme.rtl ? "".concat(props.theme.space.base * 3, "px") : "auto";
1814
1854
  });
1815
- var StyledBody$3 = styled__default["default"].li(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n"])));
1816
- var IconContainer = styled__default["default"].div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n margin-right: ", ";\n margin-top: 3px;\n"], ["\n margin-right: ", ";\n margin-top: 3px;\n"])), function (_a) {
1855
+ var StyledBody$3 = styled__default["default"].li(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n"])));
1856
+ var IconContainer = styled__default["default"].div(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n margin-right: ", ";\n margin-top: 3px;\n"], ["\n margin-right: ", ";\n margin-top: 3px;\n"])), function (_a) {
1817
1857
  var theme = _a.theme;
1818
1858
  return theme.space.sm;
1819
1859
  });
@@ -1826,7 +1866,7 @@ var MenuItem = function (_a) {
1826
1866
  return jsxRuntime.jsx(jsxRuntime.Fragment, {});
1827
1867
  return isActive && content ? (jsxRuntime.jsx(StyledBody$3, { children: content }, props.value)) : (jsxRuntime.jsxs(StyledItem, __assign({}, props, { onClick: function () { return props.setActive(props.value); } }, { children: [props.icon && jsxRuntime.jsx(IconContainer, { children: props.icon }), children, content && jsxRuntime.jsx(MenuItemIcon, {})] }), props.value));
1828
1868
  };
1829
- var templateObject_1$b, templateObject_2$6, templateObject_3$4, templateObject_4$2;
1869
+ var templateObject_1$c, templateObject_2$7, templateObject_3$5, templateObject_4$2;
1830
1870
 
1831
1871
  var _path$4;
1832
1872
 
@@ -1883,16 +1923,16 @@ var SvgInfoFill = function SvgInfoFill(props) {
1883
1923
  })));
1884
1924
  };
1885
1925
 
1886
- var StyledButton$2 = styled__default["default"](Button)(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n color: ", ";\n font-weight: ", ";\n padding-left: 0;\n justify-content: flex-start;\n\n ", ";\n"], ["\n color: ", ";\n font-weight: ", ";\n padding-left: 0;\n justify-content: flex-start;\n\n ", ";\n"])), function (props) { return props.theme.palette.grey[800]; }, function (props) { return props.theme.fontWeights.bold; }, function (props) { return "\n &:hover,\n &:focus,\n &:active {\n background-color: ".concat(props.theme.palette.kale[100], ";\n color: ").concat(props.isDanger ? props.theme.palette.red[500] : props.theme.palette.grey[800], ";\n }"); });
1926
+ var StyledButton$2 = styled__default["default"](Button)(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n color: ", ";\n font-weight: ", ";\n padding-left: 0;\n justify-content: flex-start;\n\n ", ";\n"], ["\n color: ", ";\n font-weight: ", ";\n padding-left: 0;\n justify-content: flex-start;\n\n ", ";\n"])), function (props) { return props.theme.palette.grey[800]; }, function (props) { return props.theme.fontWeights.bold; }, function (props) { return "\n &:hover,\n &:focus,\n &:active {\n background-color: ".concat(props.theme.palette.kale[100], ";\n color: ").concat(props.isDanger ? props.theme.palette.red[500] : props.theme.palette.grey[800], ";\n }"); });
1887
1927
  var PreviousButton = function (props) { return (jsxRuntime.jsxs(StyledButton$2, __assign({}, props, { isStretched: true }, { children: [jsxRuntime.jsx(StyledButton$2.StartIcon, { children: jsxRuntime.jsx(SvgChevronLeftStroke, {}) }), props.children] }))); };
1888
- var templateObject_1$a;
1928
+ var templateObject_1$b;
1889
1929
 
1890
- var UgParagraph = styled__default["default"](reactTypography.Paragraph)(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject([""], [""])));
1930
+ var UgParagraph = styled__default["default"](reactTypography.Paragraph)(templateObject_1$a || (templateObject_1$a = __makeTemplateObject([""], [""])));
1891
1931
  /**
1892
1932
  * Use Paragraph to render blocks of text with Garden styling.
1893
1933
  */
1894
1934
  var Paragraph = function (props) { return jsxRuntime.jsx(UgParagraph, __assign({}, props)); };
1895
- var templateObject_1$9;
1935
+ var templateObject_1$a;
1896
1936
 
1897
1937
  var getInitials = function (name) {
1898
1938
  var names = name.split(" ");
@@ -1900,9 +1940,9 @@ var getInitials = function (name) {
1900
1940
  return initials;
1901
1941
  };
1902
1942
 
1903
- var StyledButton$1 = styled__default["default"](Button)(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (props) { return "\n &:hover,\n &:focus,\n &:active {\n background-color: ".concat(props.theme.palette.kale[100], ";\n color: ").concat(props.isDanger ? props.theme.palette.red[500] : props.theme.palette.grey[800], ";\n }"); });
1904
- var StyledFooterButton = styled__default["default"](StyledButton$1)(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n color: ", ";\n padding-left: 0;\n justify-content: flex-start;\n"], ["\n color: ", ";\n padding-left: 0;\n justify-content: flex-start;\n"])), function (props) { return props.theme.palette.grey[800]; });
1905
- var StyledBody$2 = styled__default["default"].div(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n margin: ", "px\n ", "px;\n"], ["\n margin: ", "px\n ", "px;\n"])), function (_a) {
1943
+ var StyledButton$1 = styled__default["default"](Button)(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (props) { return "\n &:hover,\n &:focus,\n &:active {\n background-color: ".concat(props.theme.palette.kale[100], ";\n color: ").concat(props.isDanger ? props.theme.palette.red[500] : props.theme.palette.grey[800], ";\n }"); });
1944
+ var StyledFooterButton = styled__default["default"](StyledButton$1)(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n color: ", ";\n padding-left: 0;\n justify-content: flex-start;\n"], ["\n color: ", ";\n padding-left: 0;\n justify-content: flex-start;\n"])), function (props) { return props.theme.palette.grey[800]; });
1945
+ var StyledBody$2 = styled__default["default"].div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n margin: ", "px\n ", "px;\n"], ["\n margin: ", "px\n ", "px;\n"])), function (_a) {
1906
1946
  var theme = _a.theme;
1907
1947
  return theme.space.base * 6;
1908
1948
  }, function (_a) {
@@ -1929,7 +1969,7 @@ var HelpItem = function (props) {
1929
1969
  var content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, __assign({ onClick: function () { return props.setActive(""); }, isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledBody$2, { children: [jsxRuntime.jsx(Paragraph, __assign({ style: { color: theme.palette.grey[600] } }, { children: jsxRuntime.jsx(SM, { children: props.contactLabel }) })), jsxRuntime.jsx(StyledParagraph, { children: jsxRuntime.jsx(Avatar, { children: (_a = props.csm.picture) !== null && _a !== void 0 ? _a : getInitials(props.csm.name), avatarType: props.csm.picture ? "image" : "text", size: "large" }) }), jsxRuntime.jsxs(StyledParagraph, { children: [jsxRuntime.jsx(MD, __assign({ isBold: true }, { children: props.csm.name })), jsxRuntime.jsxs(Description, { children: [jsxRuntime.jsx(Anchor, __assign({ href: "mailto:".concat(props.csm.email), style: { color: theme.palette.grey[600] } }, { children: csmEmailCut })), jsxRuntime.jsxs(StyledButton$1, __assign({ isBasic: true, onClick: copyToClipBoard, size: "small", variant: "isBasic" }, { children: [jsxRuntime.jsx(StyledButton$1.StartIcon, { children: jsxRuntime.jsx(SvgCopy, {}) }), (_b = props.copyLabel) !== null && _b !== void 0 ? _b : "Copy"] }))] })] })] }), jsxRuntime.jsxs(Footer, { children: [jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledFooterButton, __assign({ isStretched: true, isBasic: true, onClick: props.toggleChat, style: { paddingLeft: theme.space.xxs } }, { children: [jsxRuntime.jsx(StyledFooterButton.StartIcon, { children: jsxRuntime.jsx(SvgInfoFill, { fill: theme.palette.blue[600] }) }), (_c = props.chatSupportLabel) !== null && _c !== void 0 ? _c : "Report a technical issue"] }))] })] }));
1930
1970
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, __assign({ content: content, value: props.value, selectedItem: props.selectedItem, setActive: props.setActive, icon: jsxRuntime.jsx(SvgQuestionMark, { fill: theme.palette.grey[600] }) }, { children: props.title })) }));
1931
1971
  };
1932
- var templateObject_1$8, templateObject_2$5, templateObject_3$3, templateObject_4$1, templateObject_5, templateObject_6;
1972
+ var templateObject_1$9, templateObject_2$6, templateObject_3$4, templateObject_4$1, templateObject_5, templateObject_6;
1933
1973
 
1934
1974
  var _path$1;
1935
1975
 
@@ -1979,30 +2019,30 @@ var SvgTranslationExists = function SvgTranslationExists(props) {
1979
2019
  })));
1980
2020
  };
1981
2021
 
1982
- var StyledBody$1 = styled__default["default"].div(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n margin: ", "px\n ", "px;\n"], ["\n margin: ", "px\n ", "px;\n"])), function (_a) {
2022
+ var StyledBody$1 = styled__default["default"].div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n margin: ", "px\n ", "px;\n"], ["\n margin: ", "px\n ", "px;\n"])), function (_a) {
1983
2023
  var theme = _a.theme;
1984
2024
  return theme.space.base * 6;
1985
2025
  }, function (_a) {
1986
2026
  var theme = _a.theme;
1987
2027
  return theme.space.base * 4;
1988
2028
  });
1989
- var StyledButtonContainer = styled__default["default"].div(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n ", "\n & button { \n justify-content: flex-start;\n }\n"], ["\n ", "\n & button { \n justify-content: flex-start;\n }\n"])), flexStart);
1990
- var StyledButton = styled__default["default"](Button)(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (props) { return "\n &:hover,\n &:focus,\n &:active {\n background-color: ".concat(props.theme.palette.kale[100], ";\n color: ").concat(props.isDanger ? props.theme.palette.red[500] : props.theme.palette.grey[800], ";\n }"); });
2029
+ var StyledButtonContainer = styled__default["default"].div(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n ", "\n & button { \n justify-content: flex-start;\n }\n"], ["\n ", "\n & button { \n justify-content: flex-start;\n }\n"])), flexStart);
2030
+ var StyledButton = styled__default["default"](Button)(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (props) { return "\n &:hover,\n &:focus,\n &:active {\n background-color: ".concat(props.theme.palette.kale[100], ";\n color: ").concat(props.isDanger ? props.theme.palette.red[500] : props.theme.palette.grey[800], ";\n }"); });
1991
2031
  var LanguageItem = function (props) {
1992
2032
  var _a;
1993
2033
  var content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, __assign({ onClick: function () { return props.setActive(""); }, isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(StyledBody$1, { children: jsxRuntime.jsx(StyledButtonContainer, { children: Object.keys(props.languages).map(function (key) { return (jsxRuntime.jsxs(StyledButton, __assign({ isBasic: true, isStretched: true, value: key, onClick: function () { return props.onSelectLanguage(key); } }, { children: [jsxRuntime.jsx(StyledButton.StartIcon, { children: props.currentLanguage === key ? jsxRuntime.jsx(SvgCheckLg, {}) : jsxRuntime.jsx(SvgEmpty, {}) }), jsxRuntime.jsx(Span, __assign({ isBold: props.currentLanguage === key }, { children: props.languages[key].label }))] }))); }) }) })] }));
1994
2034
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, __assign({ content: content, value: props.value, selectedItem: props.selectedItem, setActive: props.setActive, icon: jsxRuntime.jsx(SvgTranslationExists, { fill: theme.palette.blue[600] }) }, { children: jsxRuntime.jsxs(MenuItemBody, { children: [props.title, jsxRuntime.jsxs(MD, __assign({ style: { color: theme.palette.grey[600] } }, { children: [(_a = props.currentLanguageLabel) !== null && _a !== void 0 ? _a : "Now:", " " + props.languages[props.currentLanguage].label] }))] }) })) }));
1995
2035
  };
1996
- var templateObject_1$7, templateObject_2$4, templateObject_3$2;
2036
+ var templateObject_1$8, templateObject_2$5, templateObject_3$3;
1997
2037
 
1998
- var ProfileContainer = styled__default["default"].div(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n ", "\n padding-top: ", "px;\n margin-bottom: ", "px;\n"], ["\n ", "\n padding-top: ", "px;\n margin-bottom: ", "px;\n"])), flexColumnCenter, function (_a) {
2038
+ var ProfileContainer = styled__default["default"].div(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n ", "\n padding-top: ", "px;\n margin-bottom: ", "px;\n"], ["\n ", "\n padding-top: ", "px;\n margin-bottom: ", "px;\n"])), flexColumnCenter, function (_a) {
1999
2039
  var theme = _a.theme;
2000
2040
  return theme.space.base * 2;
2001
2041
  }, function (_a) {
2002
2042
  var theme = _a.theme;
2003
2043
  return theme.space.base * 6;
2004
2044
  });
2005
- var CompanyHolder = styled__default["default"](SM)(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n text-transform: uppercase;\n margin-top: ", "px;\n margin-bottom: ", "px;\n color: ", ";\n"], ["\n text-transform: uppercase;\n margin-top: ", "px;\n margin-bottom: ", "px;\n color: ", ";\n"])), function (_a) {
2045
+ var CompanyHolder = styled__default["default"](SM)(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n text-transform: uppercase;\n margin-top: ", "px;\n margin-bottom: ", "px;\n color: ", ";\n"], ["\n text-transform: uppercase;\n margin-top: ", "px;\n margin-bottom: ", "px;\n color: ", ";\n"])), function (_a) {
2006
2046
  var theme = _a.theme;
2007
2047
  return theme.space.base * 2;
2008
2048
  }, function (_a) {
@@ -2012,7 +2052,7 @@ var CompanyHolder = styled__default["default"](SM)(templateObject_2$3 || (templa
2012
2052
  var theme = _a.theme;
2013
2053
  return theme.palette.blue["600"];
2014
2054
  });
2015
- var UserDetails = styled__default["default"].div(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n text-align: center;\n"], ["\n margin-top: ", "px;\n margin-bottom: ", "px;\n text-align: center;\n"])), function (_a) {
2055
+ var UserDetails = styled__default["default"].div(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n text-align: center;\n"], ["\n margin-top: ", "px;\n margin-bottom: ", "px;\n text-align: center;\n"])), function (_a) {
2016
2056
  var theme = _a.theme;
2017
2057
  return theme.space.base * 4;
2018
2058
  }, function (_a) {
@@ -2023,9 +2063,9 @@ var UserContainer = function (props) {
2023
2063
  var _a;
2024
2064
  return (jsxRuntime.jsxs(ProfileContainer, { children: [props.company && jsxRuntime.jsx(CompanyHolder, __assign({ isBold: true }, { children: props.company })), jsxRuntime.jsx(Avatar, { children: (_a = props.picture) !== null && _a !== void 0 ? _a : getInitials(props.name), avatarType: props.picture ? "image" : "text", size: "large" }), jsxRuntime.jsxs(UserDetails, { children: [jsxRuntime.jsx(MD, __assign({ isBold: true, style: { color: theme.palette.blue[600] } }, { children: props.name })), jsxRuntime.jsx(SM, __assign({ style: { color: theme.palette.grey[600] } }, { children: props.email }))] })] }));
2025
2065
  };
2026
- var templateObject_1$6, templateObject_2$3, templateObject_3$1;
2066
+ var templateObject_1$7, templateObject_2$4, templateObject_3$2;
2027
2067
 
2028
- var StyledList = styled__default["default"].ul(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n padding: 0;\n margin: 0;\n"], ["\n padding: 0;\n margin: 0;\n"])));
2068
+ var StyledList = styled__default["default"].ul(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n padding: 0;\n margin: 0;\n"], ["\n padding: 0;\n margin: 0;\n"])));
2029
2069
  var UserMenu = function (props) {
2030
2070
  var _a = React.useState(""), item = _a[0], setActiveItem = _a[1];
2031
2071
  var toggleItem = function (item) {
@@ -2033,7 +2073,7 @@ var UserMenu = function (props) {
2033
2073
  };
2034
2074
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [item === "" && jsxRuntime.jsx(UserContainer, __assign({}, props.user)), jsxRuntime.jsxs(StyledList, { children: [item === "" && props.onFeedbackClick && jsxRuntime.jsx(Separator, {}), props.onFeedbackClick && (jsxRuntime.jsx(MenuItem, __assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgThumbsUp, {}), setActive: function () { return props.onFeedbackClick ? props.onFeedbackClick() : console.log("feedback fired"); } }, { children: jsxRuntime.jsxs(MenuItemBody, { children: [props.feedbackTitle || "Give us your feedback", jsxRuntime.jsx(MD, __assign({ style: { color: theme.palette.grey[600] } }, { children: props.feedbackSubTitle || "Help us improve UNGUESS!" }))] }) }))), item === "" && jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(HelpItem, { value: "csm", selectedItem: item, setActive: function (i) { return toggleItem(i); }, title: props.csmTitle || "Need Help?", contactLabel: props.csmContactLabel || "Contact your CSM", csm: props.csm, toggleChat: props.onToggleChat, chatSupportLabel: props === null || props === void 0 ? void 0 : props.chatSupportLabel, copyLabel: props === null || props === void 0 ? void 0 : props.copyLabel }), jsxRuntime.jsx(LanguageItem, { title: props.languageTitle || "Change Language", value: "language-selector", selectedItem: item, setActive: function (i) { return toggleItem(i); }, languages: props.languages, currentLanguage: props.currentLanguage, currentLanguageLabel: props.currentLanguageLabel, onSelectLanguage: function (lang) { return props.onSelectLanguage(lang); } }), jsxRuntime.jsx(MenuItem, __assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgExit, { fill: theme.palette.red[600] }), setActive: function () { return props.onLogout(); } }, { children: props.logoutTitle || "Log out" }))] })] }));
2035
2075
  };
2036
- var templateObject_1$5;
2076
+ var templateObject_1$6;
2037
2077
 
2038
2078
  function debounce(callback, wait) {
2039
2079
  var timer;
@@ -2062,7 +2102,7 @@ function useWindowSize() {
2062
2102
  return size;
2063
2103
  }
2064
2104
 
2065
- var StyledModal = styled__default["default"](Modal)(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n margin: 0;\n left: auto;\n right: auto;\n top: auto;\n bottom: auto;\n\n max-height: calc(100vh - ", ");\n\n @media (min-width: ", ") {\n margin-top: calc(\n ", "\n );\n margin-right: ", "px;\n }\n"], ["\n margin: 0;\n left: auto;\n right: auto;\n top: auto;\n bottom: auto;\n\n max-height: calc(100vh - ", ");\n\n @media (min-width: ", ") {\n margin-top: calc(\n ", "\n );\n margin-right: ", "px;\n }\n"])), function (_a) {
2105
+ var StyledModal = styled__default["default"](Modal)(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n margin: 0;\n left: auto;\n right: auto;\n top: auto;\n bottom: auto;\n\n max-height: calc(100vh - ", ");\n\n @media (min-width: ", ") {\n margin-top: calc(\n ", "\n );\n margin-right: ", "px;\n }\n"], ["\n margin: 0;\n left: auto;\n right: auto;\n top: auto;\n bottom: auto;\n\n max-height: calc(100vh - ", ");\n\n @media (min-width: ", ") {\n margin-top: calc(\n ", "\n );\n margin-right: ", "px;\n }\n"])), function (_a) {
2066
2106
  var theme = _a.theme;
2067
2107
  return theme.space.xxl;
2068
2108
  }, function (_a) {
@@ -2075,7 +2115,7 @@ var StyledModal = styled__default["default"](Modal)(templateObject_1$4 || (templ
2075
2115
  var theme = _a.theme;
2076
2116
  return theme.space.base * 3;
2077
2117
  });
2078
- var StyledBody = styled__default["default"](Modal.Body)(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n margin: ", ";\n padding: 0;\n"], ["\n margin: ", ";\n padding: 0;\n"])), function (_a) {
2118
+ var StyledBody = styled__default["default"](Modal.Body)(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n margin: ", ";\n padding: 0;\n"], ["\n margin: ", ";\n padding: 0;\n"])), function (_a) {
2079
2119
  var theme = _a.theme;
2080
2120
  return theme.space.xxs + " " + theme.space.xs;
2081
2121
  });
@@ -2100,7 +2140,37 @@ var ProfileModal = function (_a) {
2100
2140
  };
2101
2141
  return (jsxRuntime.jsx(StyledModal, __assign({}, args, { style: { width: "300px" }, backdropProps: backDrop }, { children: jsxRuntime.jsx(StyledBody, { children: jsxRuntime.jsx(UserMenu, __assign({}, menuArgs)) }) })));
2102
2142
  };
2103
- var templateObject_1$4, templateObject_2$2;
2143
+ var templateObject_1$5, templateObject_2$3;
2144
+
2145
+ var UgStep = styled__default["default"](reactAccordions.Stepper.Step)(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n svg {\n color: ", ";\n }\n"], ["\n svg {\n color: ", ";\n }\n"])), function (_a) {
2146
+ var theme = _a.theme;
2147
+ return theme.palette.green[700];
2148
+ });
2149
+ var UgLabel = styled__default["default"](reactAccordions.Stepper.Label)(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject([""], [""])));
2150
+ var UgStepper = styled__default["default"](reactAccordions.Stepper)(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n ", "\n\n div[data-garden-id=\"accordions.step_icon\"] {\n background-color: ", ";\n color: ", ";\n font-weight: bold;\n }\n\n ", "\n"], ["\n ", "\n\n div[data-garden-id=\"accordions.step_icon\"] {\n background-color: ", ";\n color: ", ";\n font-weight: bold;\n }\n\n ", "\n"])), function (props) {
2151
+ console.log("Active index: ", props.activeIndex);
2152
+ return "";
2153
+ }, function (_a) {
2154
+ var theme = _a.theme;
2155
+ return theme.palette.grey[200];
2156
+ }, function (_a) {
2157
+ var theme = _a.theme;
2158
+ return theme.palette.grey[800];
2159
+ }, function (props) {
2160
+ return props.activeIndex !== undefined &&
2161
+ "\n ".concat(UgStep, ":nth-child(").concat(props.activeIndex + 1, ") {\n \n div[data-garden-id=\"accordions.step_icon\"] {\n background-color: ").concat(props.theme.palette.blue[600], ";\n color: white;\n }\n\n ").concat(UgLabel, " {\n font-weight: 500;\n color: ").concat(props.theme.palette.blue[600], ";\n }\n }\n ");
2162
+ });
2163
+ /**
2164
+ * A Stepper guides users through steps of a task in sequential order.
2165
+
2166
+ * Used for this:
2167
+ - For multi-step flows that must be completed in order
2168
+ */
2169
+ var Stepper = function (props) { return jsxRuntime.jsx(UgStepper, __assign({}, props)); };
2170
+ Stepper.Step = UgStep;
2171
+ Stepper.Label = UgLabel;
2172
+ Stepper.Content = UgStepper.Content;
2173
+ var templateObject_1$4, templateObject_2$2, templateObject_3$1;
2104
2174
 
2105
2175
  var UgTable = styled__default["default"](reactTables.Table)(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([""], [""])));
2106
2176
  /**
@@ -2211,6 +2281,7 @@ Object.defineProperty(exports, 'ModalClose', {
2211
2281
  exports.Accordion = Accordion;
2212
2282
  exports.Anchor = Anchor;
2213
2283
  exports.AppHeader = AppHeader;
2284
+ exports.Autocomplete = Autocomplete;
2214
2285
  exports.Avatar = Avatar;
2215
2286
  exports.Blockquote = Blockquote;
2216
2287
  exports.Body = Body$1;
@@ -2225,6 +2296,7 @@ exports.CardBody = CardBody$1;
2225
2296
  exports.CardFooter = CardFooter$1;
2226
2297
  exports.CardHeader = CardHeader;
2227
2298
  exports.Checkbox = Checkbox;
2299
+ exports.CheckboxCard = CheckboxCard;
2228
2300
  exports.Chrome = Chrome;
2229
2301
  exports.Close = Close;
2230
2302
  exports.Code = Code;
@@ -2295,6 +2367,7 @@ exports.Skeleton = Skeleton;
2295
2367
  exports.Span = Span;
2296
2368
  exports.Spinner = Spinner;
2297
2369
  exports.SplitButton = SplitButton;
2370
+ exports.Stepper = Stepper;
2298
2371
  exports.Table = Table;
2299
2372
  exports.TableBody = Body;
2300
2373
  exports.TableCell = Cell;
@@ -0,0 +1,3 @@
1
+ import { IAutocompleteProps } from "@zendeskgarden/react-dropdowns";
2
+ export interface AutocompleteArgs extends IAutocompleteProps {
3
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { AutocompleteArgs } from "./_types";
3
+ /**
4
+ * Autocomplete is an input field that filters results as users type. This helps users find something quickly in a large list of options.
5
+ * <hr>
6
+ * Used for this:
7
+ - To filter down a large list of options
8
+ - To quickly find a known option
9
+ * Not for this:
10
+ - To make more than one selection, use Multiselect instead
11
+ */
12
+ declare const Autocomplete: (props: AutocompleteArgs) => JSX.Element;
13
+ export { Autocomplete };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { AutocompleteArgs } from "./_types";
4
+ interface AutocompleteStoryArgs extends AutocompleteArgs {
5
+ allowNew?: boolean;
6
+ }
7
+ export declare const Default: Story<AutocompleteStoryArgs>;
8
+ declare const _default: ComponentMeta<(props: AutocompleteArgs) => JSX.Element>;
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { CardProps } from "../../../cards/_types";
3
+ import { CheckboxArgs } from "../_types";
4
+ export interface CheckboxCardArgs extends CheckboxArgs {
5
+ card?: CardProps;
6
+ label: string;
7
+ icon: React.ReactNode;
8
+ iconActive?: React.ReactNode;
9
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { CheckboxCardArgs } from "./_types";
3
+ declare const CheckboxCard: (props: CheckboxCardArgs) => JSX.Element;
4
+ export { CheckboxCard };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { CheckboxCardArgs } from "./_types";
4
+ interface FormProps {
5
+ cards: CheckboxCardArgs[];
6
+ form: {
7
+ onSubmit: (e: any) => void;
8
+ };
9
+ }
10
+ export declare const SingleCard: Story<CheckboxCardArgs>;
11
+ export declare const MultipleCards: Story<FormProps>;
12
+ declare const _default: ComponentMeta<(props: CheckboxCardArgs) => JSX.Element>;
13
+ export default _default;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { ModalArgs } from "../_types";
3
+ declare const ModalFullScreen: {
4
+ (props: ModalArgs): JSX.Element;
5
+ Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-modals/dist/typings/elements/Header").IHeaderProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
6
+ Body: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
7
+ Footer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
8
+ Close: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
9
+ FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
10
+ };
11
+ export { ModalFullScreen };
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { ModalArgs } from "../_types";
3
+ import { ComponentMeta, Story } from "@storybook/react";
4
+ interface ModalStoryArgs extends ModalArgs {
5
+ breadcrumbs?: any;
6
+ isDanger?: boolean;
7
+ }
8
+ export declare const Default: Story<ModalStoryArgs>;
9
+ declare const _default: ComponentMeta<{
10
+ (props: ModalArgs): JSX.Element;
11
+ Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-modals/dist/typings/elements/Header").IHeaderProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
12
+ Body: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
13
+ Footer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
14
+ Close: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
15
+ FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
16
+ }>;
17
+ export default _default;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { IStepperProps, IStepperLabelProps } from "@zendeskgarden/react-accordions";
3
+ export interface StepperArgs extends IStepperProps {
4
+ /** Defines the currently active step, starting at 0 */
5
+ activeIndex?: number;
6
+ /** Applies horizontal layout styling */
7
+ isHorizontal?: boolean;
8
+ }
9
+ export interface StepperLabelArgs extends IStepperLabelProps {
10
+ /** Replaces the label number with an icon */
11
+ icon?: React.ReactNode;
12
+ /** Hides the label text */
13
+ isHidden?: boolean;
14
+ }
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { StepperArgs } from "./_types";
3
+ /**
4
+ * A Stepper guides users through steps of a task in sequential order.
5
+
6
+ * Used for this:
7
+ - For multi-step flows that must be completed in order
8
+ */
9
+ declare const Stepper: {
10
+ (props: StepperArgs): JSX.Element;
11
+ Step: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>, any, {}, never>;
12
+ Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-accordions").IStepperLabelProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
13
+ Content: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
14
+ };
15
+ export { Stepper };
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { StepperArgs } from "./_types";
4
+ interface StepperStoryProps extends StepperArgs {
5
+ currentStep: number;
6
+ }
7
+ export declare const Default: Story<StepperStoryProps>;
8
+ export declare const SeparateContent: Story<StepperStoryProps>;
9
+ declare const _default: ComponentMeta<{
10
+ (props: StepperArgs): JSX.Element;
11
+ Step: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>, any, {}, never>;
12
+ Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-accordions").IStepperLabelProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
13
+ Content: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
14
+ }>;
15
+ export default _default;
@@ -1,3 +1,4 @@
1
1
  export declare const flexCenter: import("styled-components").FlattenSimpleInterpolation;
2
2
  export declare const flexColumnCenter: import("styled-components").FlattenSimpleInterpolation;
3
3
  export declare const flexStart: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
4
+ export declare const cardStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.8.36",
3
+ "version": "2.10.0",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/css-bedrock": "^9.0.0",
6
6
  "@zendeskgarden/react-accordions": "^8.49.0",