@appquality/unguess-design-system 3.1.1-nav-beta → 3.1.2-nav-beta

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.
Files changed (72) hide show
  1. package/build/index.d.ts +1 -1
  2. package/build/index.js +448 -440
  3. package/build/stories/alerts/index.d.ts +1 -1
  4. package/build/stories/breadcrumbs/index.stories.d.ts +2 -2
  5. package/build/stories/buttons/anchor/index.d.ts +2 -2
  6. package/build/stories/buttons/anchor/index.stories.d.ts +5 -5
  7. package/build/stories/buttons/button/_types.d.ts +2 -29
  8. package/build/stories/buttons/button/index.d.ts +1 -1
  9. package/build/stories/buttons/button/index.stories.d.ts +5 -1217
  10. package/build/stories/buttons/button-group/index.d.ts +2 -2
  11. package/build/stories/buttons/button-group/index.stories.d.ts +10 -11
  12. package/build/stories/buttons/icon-button/_types.d.ts +2 -16
  13. package/build/stories/buttons/icon-button/index.stories.d.ts +2 -2
  14. package/build/stories/buttons/utils.d.ts +12 -0
  15. package/build/stories/cards/index.d.ts +6 -0
  16. package/build/stories/charts/ChartContainer.d.ts +1 -1
  17. package/build/stories/dropdowns/field/index.d.ts +1 -1
  18. package/build/stories/dropdowns/select/index.d.ts +1 -1
  19. package/build/stories/dropdowns/select/index.stories.d.ts +0 -1
  20. package/build/stories/editor/editorStyle.d.ts +1 -1
  21. package/build/stories/editor/index.stories.d.ts +0 -1
  22. package/build/stories/forms/input/index.d.ts +1 -1
  23. package/build/stories/forms/input-toggle/index.d.ts +1 -1
  24. package/build/stories/label/index.d.ts +1 -1
  25. package/build/stories/lightbox/parts/body.d.ts +3 -3
  26. package/build/stories/lightbox/parts/footer.d.ts +1 -1
  27. package/build/stories/modals/fullscreen/index.d.ts +4 -4
  28. package/build/stories/modals/index.d.ts +1 -1
  29. package/build/stories/navigation/header/header-item/brandItem.d.ts +1 -1
  30. package/build/stories/navigation/nav/nav-item/accordionItem.d.ts +3 -3
  31. package/build/stories/navigation/nav/nav-item/index.d.ts +2 -1
  32. package/build/stories/navigation/nav/nav-item/navItemProject.d.ts +1 -1
  33. package/build/stories/navigation/page-header/index.d.ts +8 -4
  34. package/build/stories/navigation/page-header/styled/main.d.ts +9 -4
  35. package/build/stories/player/parts/container.d.ts +1 -1
  36. package/build/stories/player/parts/controls.d.ts +2 -2
  37. package/build/stories/player/parts/floatingControls.d.ts +1 -1
  38. package/build/stories/player/parts/video.d.ts +1 -1
  39. package/build/stories/profile-modal/menuItem.d.ts +1 -1
  40. package/build/stories/profile-modal/menuItemIcon.d.ts +1 -1
  41. package/build/stories/slider/index.d.ts +2 -0
  42. package/build/stories/slider/parts/container.d.ts +1 -1
  43. package/build/stories/slider/parts/slickSlider.d.ts +1 -1
  44. package/build/stories/special-cards/index.d.ts +12 -5
  45. package/build/stories/special-cards/styled/header.d.ts +10 -3
  46. package/build/stories/special-cards/styled/meta.d.ts +1 -1
  47. package/build/stories/special-cards/styled/thumbnail.d.ts +1 -1
  48. package/build/stories/stepper/index.d.ts +3 -3
  49. package/build/stories/tags/index.d.ts +3 -3
  50. package/build/stories/theme/charts.d.ts +1 -17
  51. package/build/stories/theme/colors.d.ts +5 -10
  52. package/build/stories/theme/components.d.ts +116 -42
  53. package/build/stories/theme/gradients.d.ts +0 -1
  54. package/build/stories/theme/index.d.ts +158 -85
  55. package/build/stories/theme/mixins.d.ts +2 -2
  56. package/build/stories/theme/palette.d.ts +35 -36
  57. package/build/stories/theme/palette.stories.d.ts +19 -5
  58. package/build/stories/theme/utils.d.ts +6 -2
  59. package/build/stories/timeline/index.d.ts +2 -2
  60. package/build/stories/tooltip/index.d.ts +1 -1
  61. package/build/stories/tooltip/index.stories.d.ts +1 -2
  62. package/build/stories/typography/paragraph/index.d.ts +2 -2
  63. package/build/stories/typography/paragraph/index.stories.d.ts +3 -3
  64. package/build/stories/typography/typescale/anchortag/index.stories.d.ts +10 -1
  65. package/build/stories/typography/typescale/index.d.ts +26 -8
  66. package/build/stories/typography/typescale/index.stories.d.ts +10 -1
  67. package/package.json +1 -1
  68. package/build/stories/buttons/anchor/_types.d.ts +0 -11
  69. package/build/stories/buttons/button-group/_types.d.ts +0 -5
  70. package/build/stories/buttons/utils/useButtonVariant.d.ts +0 -5
  71. package/build/stories/typography/paragraph/_types.d.ts +0 -5
  72. package/build/stories/typography/typescale/_types.d.ts +0 -43
package/build/index.js CHANGED
@@ -7,9 +7,9 @@ require('@zendeskgarden/css-bedrock');
7
7
  var reactTheming = require('@zendeskgarden/react-theming');
8
8
  var UAParser = require('ua-parser-js');
9
9
  var jsxRuntime = require('react/jsx-runtime');
10
+ var reactNotifications = require('@zendeskgarden/react-notifications');
10
11
  var reactAccordions = require('@zendeskgarden/react-accordions');
11
12
  var React = require('react');
12
- var reactNotifications = require('@zendeskgarden/react-notifications');
13
13
  var reactAvatars = require('@zendeskgarden/react-avatars');
14
14
  var reactBreadcrumbs = require('@zendeskgarden/react-breadcrumbs');
15
15
  var reactButtons = require('@zendeskgarden/react-buttons');
@@ -69,26 +69,31 @@ var Placeholder__default = /*#__PURE__*/_interopDefaultLegacy(Placeholder);
69
69
  var CharacterCount__default = /*#__PURE__*/_interopDefaultLegacy(CharacterCount);
70
70
  var SlickSlider__default = /*#__PURE__*/_interopDefaultLegacy(SlickSlider);
71
71
 
72
- const palette = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.palette), { black: "#000", white: "#fff", product: {
73
- support: "#00a656",
74
- message: "#37b8af",
75
- explore: "#30aabc",
76
- gather: "#f6c8be",
77
- guide: "#ff6224",
78
- connect: "#ff6224",
79
- chat: "#f79a3e",
80
- talk: "#efc93d",
81
- sell: "#c38f00",
82
- }, grey: {
83
- "100": "#F6F6F8",
72
+ /*
73
+ * Design principles https://garden.zendesk.com/design/color (accessed 28 apr 2023)
74
+ * Full DEFAULT_THEME.palette copied here to force the type, reference https://garden.zendesk.com/components/palette (accessed 28 apr 2023)
75
+ */
76
+ const palette = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.palette), { "black": "#000000", "white": "#FFFFFF", "product": {
77
+ "support": "#00a656",
78
+ "message": "#37b8af",
79
+ "explore": "#30aabc",
80
+ "gather": "#f6c8be",
81
+ "guide": "#ff6224",
82
+ "connect": "#ff6224",
83
+ "chat": "#f79a3e",
84
+ "talk": "#efc93d",
85
+ "sell": "#c38f00"
86
+ }, "grey": {
87
+ "100": "#f8f9f9",
84
88
  "200": "#e9ebed",
85
89
  "300": "#d8dcde",
86
90
  "400": "#c2c8cc",
87
91
  "500": "#87929d",
88
92
  "600": "#68737d",
89
93
  "700": "#49545c",
90
- "800": "#2f3941",
91
- }, blue: {
94
+ "800": "#2f3941"
95
+ }, "blue": {
96
+ "50": "#F0F3F5",
92
97
  "100": "#E6EBEE",
93
98
  "200": "#B0C2CB",
94
99
  "300": "#8AA4B2",
@@ -97,116 +102,118 @@ const palette = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.palet
97
102
  "600": "#003A57",
98
103
  "700": "#00293E",
99
104
  "800": "#001825",
100
- }, red: {
101
- "100": "#F9E2E1",
102
- "200": "#F3C5C4",
103
- "300": "#EA9B99",
104
- "400": "#E2716F",
105
- "500": "#DB4D50",
106
- "600": "#D53032",
107
- "700": "#A92329",
108
- "800": "#771823",
109
- }, yellow: {
110
- "100": "#FEF6E7",
111
- "200": "#FDEDCE",
112
- "300": "#FBE1AC",
113
- "400": "#F9CF7B",
114
- "500": "#F7BF50",
115
- "600": "#F4AC1A",
116
- "700": "#D1820A",
117
- "800": "#A15908",
118
- }, green: {
119
- "100": "#D7F9E5",
120
- "200": "#ABF2C7",
121
- "300": "#7FEBAA",
122
- "400": "#53E48D",
123
- "500": "#27DD70",
124
- "600": "#1CB559",
125
- "700": "#158944",
126
- "800": "#0E5D2E",
127
- }, kale: {
128
- "100": "#f1f9f3",
129
- "200": "#d3ecdb",
130
- "300": "#9fd7b1",
131
- "400": "#70c38a",
132
- "500": "#66b17e",
133
- "600": "#508a62",
134
- "700": "#3e6b4c",
135
- "800": "#2f523a",
136
- }, fuschia: {
105
+ }, "red": {
106
+ "100": "#FBEAEB",
107
+ "200": "#F2C1C3",
108
+ "300": "#E9979B",
109
+ "400": "#E06D73",
110
+ "500": "#D7444B",
111
+ "600": "#D22F37",
112
+ "700": "#BD2A32",
113
+ "800": "#A8262C",
114
+ "900": "#932127",
115
+ }, "yellow": {
116
+ "100": "#FFF7EE",
117
+ "200": "#FFE7C9",
118
+ "300": "#FFD7A4",
119
+ "400": "#FFD7A4",
120
+ "500": "#FFB65A",
121
+ "600": "#C57F12",
122
+ "700": "#955F1B",
123
+ "800": "#845418",
124
+ "900": "#734A15",
125
+ }, "green": {
126
+ "50": "#B3E8D9",
127
+ "100": "#80D9C0",
128
+ "200": "#66D1B3",
129
+ "300": "#4DC9A6",
130
+ "400": "#00B280",
131
+ "500": "#00A073",
132
+ "600": "#007D5A",
133
+ "700": "#006B4D",
134
+ "800": "#005940",
135
+ }, "azure": {
136
+ "100": "#E3F2F9",
137
+ "200": "#BBDDF2",
138
+ "300": "#92C9EB",
139
+ "400": "#6AB4E2",
140
+ "500": "#4CA4DE",
141
+ "600": "#1466A9",
142
+ "700": "#125C98",
143
+ "800": "#105287",
144
+ "900": "#0E4776",
145
+ }, "kale": {
146
+ "100": "#D4FFF7",
147
+ "200": "#ABEBDF",
148
+ "300": "#6FD1BE",
149
+ "600": "#2B8473",
150
+ "700": "#206E6A",
151
+ "800": "#0C4D5E",
152
+ }, "pink": {
153
+ "600": "#d81e57",
154
+ "700": "#c31a53",
155
+ "800": "#ae1550",
156
+ "900": "#8A0C49",
157
+ }, "crimson": {
158
+ "200": "#e69b96",
159
+ "300": "#d9776f",
160
+ "400": "#e05b4b",
161
+ "500": "#e34f32",
162
+ }, "fuschia": {
137
163
  "400": "#d653c2",
138
164
  "600": "#a81897",
139
- M400: "#cf62a8",
140
- M600: "#a8458c",
141
- }, pink: {
142
- "400": "#ec4d63",
143
- "600": "#d42054",
144
- M400: "#d57287",
145
- M600: "#b23a5d",
146
- }, crimson: {
147
- "400": "#e34f32",
148
- "600": "#c72a1c",
149
- M400: "#cc6c5b",
150
- M600: "#b24a3c",
151
- }, orange: {
165
+ "M400": "#cf62a8",
166
+ "M600": "#a8458c",
167
+ }, "lemon": {
168
+ "400": "#ddda49",
169
+ "500": "#d8d427",
170
+ "600": "#d7c21f",
171
+ "700": "#D6AD13",
172
+ }, "teal": {
173
+ "400": "#28adaa",
174
+ "500": "#029e99",
175
+ "600": "#02908b",
176
+ "700": "#02807a",
177
+ }, "royal": {
178
+ "600": "#3c3695",
179
+ "700": "#342c8a",
180
+ "800": "#2d227e",
181
+ "900": "#1F0F69",
182
+ }, "purple": {
183
+ "200": "#b5a5fe",
184
+ "300": "#957fff",
185
+ "400": "#7761fe",
186
+ "500": "#5847f6",
187
+ }, "lime": {
188
+ "400": '#43b324',
189
+ "600": '#2e8200',
190
+ "M400": '#519e2d',
191
+ "M600": '#47782c'
192
+ }, "mint": {
193
+ "400": '#00a656',
194
+ "600": '#058541',
195
+ "M400": '#299c66',
196
+ "M600": '#2e8057'
197
+ }, "orange": {
152
198
  "400": "#de701d",
153
199
  "600": "#bf5000",
154
- M400: "#d4772c",
155
- M600: "#b35827",
156
- }, lemon: {
157
- "400": "#ffd424",
158
- "600": "#ffbb10",
159
- M400: "#e7a500",
160
- M600: "#c38f00",
161
- }, lime: {
162
- "400": "#43b324",
163
- "600": "#2e8200",
164
- M400: "#519e2d",
165
- M600: "#47782c",
166
- }, mint: {
167
- "400": "#00a656",
168
- "600": "#058541",
169
- M400: "#299c66",
170
- M600: "#2e8057",
171
- }, teal: {
172
- "400": "#02a191",
173
- "600": "#028079",
174
- M400: "#2d9e8f",
175
- M600: "#3c7873",
176
- }, azure: {
177
- "400": "#3091ec",
178
- "600": "#1371d6",
179
- M400: "#5f8dcf",
180
- M600: "#3a70b2",
181
- }, royal: {
182
- "400": "#5d7df5",
183
- "600": "#3353e2",
184
- M400: "#7986d8",
185
- M600: "#4b61c3",
186
- }, purple: {
187
- "400": "#b552e2",
188
- "600": "#6a27b8",
189
- M400: "#b072cc",
190
- M600: "#9358b0",
191
- }, water: {
192
- 100: "#D4FFF7",
193
- 200: "#ABEBDF",
194
- 300: "#6FD1BE",
195
- 600: "#2B8473",
196
- 700: "#206E6A",
197
- 800: "#0C4D5E",
200
+ "M400": "#d4772c",
201
+ "M600": "#b35827",
198
202
  } });
199
203
 
204
+ const getColor = (hue, shade, theme$1 = theme, transparency) => {
205
+ return reactTheming.getColor(hue, shade, theme$1, transparency);
206
+ };
200
207
  const hex2rgba = (hex, alpha = 1) => {
201
208
  const rgb = hex.match(/\w\w/g);
202
209
  const [r, g, b] = rgb ? rgb.map((x) => parseInt(x, 16)) : [0, 0, 0];
203
210
  return `rgba(${r},${g},${b},${alpha})`;
204
211
  };
205
- const boxShadow = (theme) => {
206
- const { space, shadows, palette } = theme;
212
+ const boxShadow = (theme$1) => {
213
+ const { space, shadows, palette } = theme$1;
207
214
  const offsetY = `${space.base}px`;
208
215
  const blurRadius = `${space.base * 2}px`;
209
- const shadowColor = reactTheming.getColor(palette.grey, 800, theme, 0.15);
216
+ const shadowColor = getColor(palette.grey, 800, theme, 0.15);
210
217
  return shadows.lg(offsetY, blurRadius, shadowColor);
211
218
  };
212
219
  const isMac = () => {
@@ -229,7 +236,6 @@ const sidebarNavItemHidden = styled.css `
229
236
  `;
230
237
 
231
238
  const gradients = {
232
- horizontal: `linear-gradient(90.81deg, ${hex2rgba(palette.blue[600])} 11.98%, ${hex2rgba(palette.kale[400])} 100%);`,
233
239
  dark: `linear-gradient(90.81deg, ${hex2rgba(palette.blue[800])} 0%, ${hex2rgba(palette.blue[600])} 100%);`,
234
240
  };
235
241
 
@@ -272,28 +278,89 @@ function __awaiter(thisArg, _arguments, P, generator) {
272
278
 
273
279
  const fontWeights = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.fontWeights), { semibold: 500 });
274
280
 
275
- const colors = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600], warningHue: palette.yellow[600], successHue: palette.teal["M600"], dangerHue: palette.red[600], accentHue: palette.water[600] });
281
+ const colors = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.colors), { base: 'light', background: "#fff", foreground: palette.grey[800], primaryHue: "blue", dangerHue: "red", warningHue: "yellow", successHue: "green", neutralHue: "grey", infoHue: "azure", chromeHue: "blue", accentHue: "kale" });
282
+
283
+ const CARD_COMPONENT_ID = "cards.card";
284
+ const cardCmponentStyle = {
285
+ [CARD_COMPONENT_ID]: {
286
+ border: `1px solid ${palette.grey["200"]};`,
287
+ }
288
+ };
289
+ const UgCard = styled__default["default"](reactNotifications.Well) `
290
+ border-radius: ${({ theme }) => theme.borderRadii.lg};
291
+ padding: ${({ theme }) => theme.space.xxl};
292
+ cursor: pointer;
293
+
294
+ ${({ isFloating, theme }) => !isFloating &&
295
+ `
296
+ &:hover {
297
+ box-shadow: ${theme.shadows.boxShadow(theme)};
298
+ }`}
299
+ ${(props) => reactTheming.retrieveComponentStyles(CARD_COMPONENT_ID, props)};
300
+ `;
301
+ /**
302
+ * A Card is a container that groups related content.
303
+ * <hr>
304
+ * Used for this:
305
+ - To group related content
306
+ */
307
+ const Card = (props) => jsxRuntime.jsx(UgCard, Object.assign({}, props));
308
+ const UgContainerCard = styled__default["default"](reactNotifications.Well) `
309
+ border-radius: ${({ theme }) => theme.borderRadii.xl};
310
+ padding: ${({ theme }) => theme.space.xxl};
311
+ cursor: default;
312
+
313
+ @media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
314
+ padding: ${({ theme }) => `${theme.space.xl} ${theme.space.md}`};
315
+ }
316
+ ${(props) => reactTheming.retrieveComponentStyles(CARD_COMPONENT_ID, props)};
317
+ `;
318
+ const ContainerCard = (props) => jsxRuntime.jsx(UgContainerCard, Object.assign({}, props));
276
319
 
277
320
  var _a, _b, _c, _d, _e, _f, _g$8, _h;
278
- const components = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.components), { chrome: Object.assign(Object.assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: Object.assign(Object.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" }), nav: Object.assign(Object.assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: Object.assign(Object.assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: Object.assign(Object.assign({}, (_h = (_g$8 = reactTheming.DEFAULT_THEME.components) === null || _g$8 === void 0 ? void 0 : _g$8.notification) === null || _h === void 0 ? void 0 : _h.well), { padding: "16px" }) }), "notifications.notification": ({ type, isPrimary, }) => {
321
+ const components = Object.assign(Object.assign(Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.components), { chrome: Object.assign(Object.assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: Object.assign(Object.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" }), nav: Object.assign(Object.assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: Object.assign(Object.assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: Object.assign(Object.assign({}, (_h = (_g$8 = reactTheming.DEFAULT_THEME.components) === null || _g$8 === void 0 ? void 0 : _g$8.notification) === null || _h === void 0 ? void 0 : _h.well), { padding: "16px" }) }) }), cardCmponentStyle), { "text.primary": () => ({
322
+ color: getColor(colors.primaryHue, 600),
323
+ }), "text.success": () => ({
324
+ color: getColor(colors.successHue, 700),
325
+ }), "text.warning": () => ({
326
+ color: getColor(colors.warningHue, 700),
327
+ }), "text.danger": () => ({
328
+ color: getColor(colors.dangerHue, 700),
329
+ }), "navigation.hoverableItem": ({ isCurrent }) => {
330
+ return Object.assign({ "border-top-left-radius": "24px", "border-bottom-left-radius": "24px", color: getColor(colors.primaryHue, 600), "font-weight": fontWeights.medium, "&:hover, &.hover": {
331
+ "background-color": getColor(colors.primaryHue, 600, undefined, 0.08),
332
+ color: getColor(colors.primaryHue, 700),
333
+ }, "&:active, &.active": {
334
+ "background-color": getColor(colors.primaryHue, 600, undefined, 0.2),
335
+ color: getColor(colors.primaryHue, 700),
336
+ }, "&.isCurrent": {
337
+ color: getColor(colors.primaryHue, 700),
338
+ "font-weight": fontWeights.semibold,
339
+ "background-color": getColor(colors.primaryHue, 600, undefined, 0.08),
340
+ } }, (isCurrent && {
341
+ color: getColor(colors.primaryHue, 700),
342
+ "font-weight": fontWeights.semibold,
343
+ "background-color": getColor(colors.primaryHue, 600, undefined, 0.08),
344
+ }));
345
+ }, "notifications.notification": ({ type, isPrimary, }) => {
279
346
  const svgCss = {
280
347
  marginTop: "-1px",
281
348
  };
282
349
  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (type === "success" &&
283
350
  isPrimary && {
284
- backgroundColor: palette.green[700],
351
+ backgroundColor: getColor(colors.successHue, 700),
285
352
  svg: Object.assign(Object.assign({}, svgCss), { color: palette.white }),
286
353
  })), (type === "warning" &&
287
354
  isPrimary && {
288
- backgroundColor: palette.yellow[700],
355
+ backgroundColor: getColor(colors.warningHue, 700),
289
356
  svg: Object.assign(Object.assign({}, svgCss), { color: palette.white }),
290
357
  })), (type === "error" &&
291
358
  isPrimary && {
292
- backgroundColor: palette.red[700],
359
+ backgroundColor: getColor(colors.dangerHue, 700),
293
360
  svg: Object.assign(Object.assign({}, svgCss), { color: palette.white }),
294
361
  })), (type === "info" &&
295
362
  isPrimary && {
296
- backgroundColor: palette.blue[700],
363
+ backgroundColor: getColor(colors.infoHue, 700),
297
364
  svg: Object.assign(Object.assign({}, svgCss), { color: palette.white }),
298
365
  })), !isPrimary && {
299
366
  svg: svgCss,
@@ -352,63 +419,123 @@ const components = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.co
352
419
  thumbSize: "60px",
353
420
  }, "tabs.tab": ({ isSelected }) => {
354
421
  return isSelected ? { fontWeight: fontWeights.semibold } : undefined;
355
- }, "forms.input": ({ isFocused }) => {
356
- return isFocused
357
- ? {
358
- boxShadow: `0 0 0 3px ${palette.kale[200]}}`,
359
- }
360
- : undefined;
361
422
  }, "dropdowns.item": (_a) => {
362
423
  var { addable, checked } = _a; __rest(_a, ["addable", "checked"]);
363
- return Object.assign(Object.assign(Object.assign({}, (addable
424
+ return Object.assign(Object.assign({}, (addable
364
425
  ? {
365
- color: colors.primaryHue,
426
+ color: getColor(colors.primaryHue, 600),
366
427
  cursor: "pointer",
367
428
  }
368
429
  : {})), (checked
369
430
  ? {
370
431
  fontWeight: fontWeights.semibold,
371
432
  }
372
- : {})), { "&:hover": {
373
- backgroundColor: palette.kale[100],
374
- } });
375
- }, "buttons.icon_button": ({ isDanger, isBasic, isPrimary, isHovered, isNeutral, isBright, disabled, }) => {
376
- if (isNeutral || isPrimary || isDanger)
377
- return {};
378
- return Object.assign(Object.assign(Object.assign({}, (isBasic && {
379
- backgroundColor: palette.white,
433
+ : {}));
434
+ }, "buttons.icon_button": ({ disabled, isBright, isAccent, isPrimary, isBasic, }) => {
435
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (isAccent && !isPrimary && !isBasic && {
436
+ borderColor: getColor(colors.accentHue, 700),
437
+ color: getColor(colors.accentHue, 700),
438
+ "&:hover": {
439
+ borderColor: getColor(colors.accentHue, 800),
440
+ color: getColor(colors.accentHue, 800),
441
+ backgroundColor: palette.blue[50],
442
+ },
443
+ "&:active": {
444
+ borderColor: getColor(colors.accentHue, 800),
445
+ color: getColor(colors.accentHue, 800),
446
+ backgroundColor: palette.blue[100],
447
+ },
448
+ })), (isAccent && isBasic && {
449
+ color: getColor(colors.accentHue, 700),
380
450
  "&:hover": {
381
- backgroundColor: palette.kale[200],
451
+ backgroundColor: palette.blue[50],
452
+ color: getColor(colors.accentHue, 800),
453
+ },
454
+ "&:active": {
455
+ backgroundColor: palette.blue[100],
456
+ color: getColor(colors.accentHue, 800),
457
+ },
458
+ })), (isAccent && isPrimary && {
459
+ backgroundColor: getColor(colors.accentHue, 600),
460
+ color: "white",
461
+ "&:hover": {
462
+ backgroundColor: getColor(colors.accentHue, 700),
463
+ color: "white",
464
+ },
465
+ "&:active": {
466
+ backgroundColor: getColor(colors.accentHue, 800),
467
+ color: "white",
382
468
  },
383
469
  })), (isBright && {
384
470
  backgroundColor: "transparent",
385
471
  color: "white",
472
+ border: "none",
386
473
  "&:hover": {
387
474
  backgroundColor: palette.grey[500],
388
- color: palette.kale[100],
475
+ color: "white",
476
+ "& svg": {
477
+ color: "white",
478
+ },
389
479
  },
390
480
  "&:active": {
391
481
  backgroundColor: palette.grey[600],
392
- color: palette.kale[200],
393
- },
394
- })), (disabled && { pointerEvents: "none" }));
395
- }, "buttons.button": ({ isDanger, isPrimary, isHovered, isNeutral, isBright, }) => {
396
- if (isBright) {
397
- return {
398
- backgroundColor: "transparent",
399
482
  color: "white",
400
- border: "none",
401
- "&:hover": {
402
- backgroundColor: palette.grey[500],
403
- color: palette.kale[100],
483
+ "& svg": {
484
+ color: "white",
404
485
  },
405
- "&:active": {
406
- backgroundColor: palette.grey[600],
407
- color: palette.kale[200],
408
- },
409
- };
410
- }
411
- return {};
486
+ },
487
+ })), (disabled && { pointerEvents: "none" }));
488
+ }, "buttons.button": ({ isAccent, isBright, isPrimary, isBasic, isLink, }) => {
489
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (isAccent && !isPrimary && !isBasic && !isLink && {
490
+ borderColor: getColor(colors.accentHue, 700),
491
+ color: getColor(colors.accentHue, 700),
492
+ "&:hover": {
493
+ borderColor: getColor(colors.accentHue, 800),
494
+ color: getColor(colors.accentHue, 800),
495
+ backgroundColor: palette.blue[50],
496
+ },
497
+ "&:active": {
498
+ borderColor: getColor(colors.accentHue, 800),
499
+ color: getColor(colors.accentHue, 800),
500
+ backgroundColor: palette.blue[100],
501
+ },
502
+ })), (isAccent && isPrimary && {
503
+ backgroundColor: getColor(colors.accentHue, 600),
504
+ "&:hover": {
505
+ backgroundColor: getColor(colors.accentHue, 700),
506
+ },
507
+ "&:active": {
508
+ backgroundColor: getColor(colors.accentHue, 800),
509
+ },
510
+ })), (isAccent && isBasic && {
511
+ color: getColor(colors.accentHue, 700),
512
+ "&:hover": {
513
+ backgroundColor: palette.blue[50],
514
+ color: getColor(colors.accentHue, 800),
515
+ },
516
+ "&:active": {
517
+ backgroundColor: palette.blue[100],
518
+ color: getColor(colors.accentHue, 800),
519
+ },
520
+ })), (isAccent && isLink && {
521
+ color: getColor(colors.accentHue, 700),
522
+ "&:hover": {
523
+ color: getColor(colors.accentHue, 800),
524
+ },
525
+ "&:active": {
526
+ color: getColor(colors.accentHue, 800),
527
+ },
528
+ })), (isBright && {
529
+ backgroundColor: "transparent",
530
+ color: "white",
531
+ border: "none",
532
+ "&:hover": {
533
+ backgroundColor: palette.grey[500],
534
+ },
535
+ "&:active": {
536
+ backgroundColor: palette.grey[600],
537
+ },
538
+ }));
412
539
  } });
413
540
 
414
541
  const theme = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME), { breakpoints: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.breakpoints), { xxl: "1440px" }), colors, palette: palette, fonts: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), fontWeights: fontWeights, gradients: gradients, borderRadii: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }), lineHeights: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.lineHeights), { xs: "16px" }), components: components, shadows: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }), levels: {
@@ -570,16 +697,6 @@ const Breadcrumb = (_a) => {
570
697
  */
571
698
  const Anchor = React.forwardRef((props, ref) => jsxRuntime.jsx(reactButtons.Anchor, Object.assign({ ref: ref }, props)));
572
699
 
573
- let customTheme = Object.assign({}, theme);
574
- // Define theme override
575
- const getThemeStyle = (props) => {
576
- const { themeColor } = props;
577
- if (themeColor) {
578
- customTheme = Object.assign(Object.assign({}, theme), { colors: Object.assign(Object.assign({}, theme.colors), { primaryHue: themeColor }) });
579
- return customTheme;
580
- }
581
- return theme;
582
- };
583
700
  const UgButton = styled__default["default"](reactButtons.Button) ``;
584
701
  /**
585
702
  * Buttons let users take action quickly.
@@ -590,11 +707,7 @@ const UgButton = styled__default["default"](reactButtons.Button) ``;
590
707
  - To draw attention to relevant actions in a user's workflow
591
708
  */
592
709
  const ButtonComponent = React.forwardRef((props, ref) => {
593
- if (props.themeColor) {
594
- const currentTheme = getThemeStyle(props);
595
- return jsxRuntime.jsx(UgButton, Object.assign({}, props, { ref: ref, theme: currentTheme }));
596
- }
597
- return jsxRuntime.jsx(UgButton, Object.assign({ ref: ref }, props));
710
+ return jsxRuntime.jsx(UgButton, Object.assign({ ref: ref, isPill: true }, props));
598
711
  });
599
712
  const Button = ButtonComponent;
600
713
  Button.StartIcon = UgButton.StartIcon;
@@ -628,37 +741,6 @@ Used for this:
628
741
  **/
629
742
  const SplitButton = React.forwardRef((props, ref) => jsxRuntime.jsx(reactButtons.SplitButton, Object.assign({ ref: ref }, props)));
630
743
 
631
- const UgCard = styled__default["default"](reactNotifications.Well) `
632
- border-radius: ${({ theme }) => theme.borderRadii.lg};
633
- padding: ${({ theme }) => theme.space.xxl};
634
- border: 1px solid ${({ theme }) => theme.palette.grey["200"]};
635
- cursor: pointer;
636
-
637
- ${({ isFloating, theme }) => !isFloating &&
638
- `
639
- &:hover {
640
- box-shadow: ${theme.shadows.boxShadow(theme)};
641
- }`}
642
- `;
643
- /**
644
- * A Card is a container that groups related content.
645
- * <hr>
646
- * Used for this:
647
- - To group related content
648
- */
649
- const Card = (props) => jsxRuntime.jsx(UgCard, Object.assign({}, props));
650
- const UgContainerCard = styled__default["default"](reactNotifications.Well) `
651
- border-radius: ${({ theme }) => theme.borderRadii.xl};
652
- padding: ${({ theme }) => theme.space.xxl};
653
- border: 1px solid ${({ theme }) => theme.palette.grey["200"]};
654
- cursor: default;
655
-
656
- @media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
657
- padding: ${({ theme }) => `${theme.space.xl} ${theme.space.md}`};
658
- }
659
- `;
660
- const ContainerCard = (props) => jsxRuntime.jsx(UgContainerCard, Object.assign({}, props));
661
-
662
744
  /**
663
745
  * Use Span to style and format inline text elements.
664
746
  * <hr>
@@ -1067,18 +1149,39 @@ CardThumbnail.defaultProps = {
1067
1149
  /**
1068
1150
  * Type components come in small, medium, large, extra-large, extra-extra-large, and extra-extra-extra-large.
1069
1151
  */
1070
- const SM = (props) => jsxRuntime.jsx(reactTypography.SM, Object.assign({ style: props.isMonospace ? { lineHeight: theme.lineHeights.sm } : {} }, props));
1071
- const MD = (props) => jsxRuntime.jsx(reactTypography.MD, Object.assign({ style: props.isMonospace ? { lineHeight: theme.lineHeights.md } : {} }, props));
1072
- const LG = (props) => jsxRuntime.jsx(reactTypography.LG, Object.assign({ style: props.isMonospace ? { lineHeight: theme.lineHeights.lg } : {} }, props));
1073
- const XL = (props) => jsxRuntime.jsx(reactTypography.XL, Object.assign({}, props));
1074
- const XXL = (props) => jsxRuntime.jsx(reactTypography.XXL, Object.assign({}, props));
1075
- const XXXL = (props) => jsxRuntime.jsx(reactTypography.XXXL, Object.assign({}, props));
1152
+ const SM = styled__default["default"](reactTypography.SM) `
1153
+ ${p => p.color && `color: ${p.color}`};
1154
+ `;
1155
+ const MD = styled__default["default"](reactTypography.MD) `
1156
+ ${p => p.color && `color: ${p.color}`};
1157
+ `;
1158
+ const LG = styled__default["default"](reactTypography.LG) `
1159
+ ${p => p.color && `color: ${p.color}`};
1160
+ `;
1161
+ const XL = styled__default["default"](reactTypography.XL) `
1162
+ ${p => p.color && `color: ${p.color}`};
1163
+ `;
1164
+ const XXL = styled__default["default"](reactTypography.XXL) `
1165
+ ${p => p.color && `color: ${p.color}`};
1166
+ `;
1167
+ const XXXL = styled__default["default"](reactTypography.XXXL) `
1168
+ color: ${p => p.color || p.theme.palette.blue[600]};
1169
+ `;
1170
+ const TextLabel = styled__default["default"](reactTypography.SM) `
1171
+ color: ${p => p.theme.palette.grey[600]};
1172
+ `;
1173
+ const TextDescription = (_a) => {
1174
+ var { isSmall } = _a, props = __rest(_a, ["isSmall"]);
1175
+ return ({ isSmall }
1176
+ ? jsxRuntime.jsx(SM, Object.assign({ color: theme.palette.grey[700] }, props))
1177
+ : jsxRuntime.jsx(MD, Object.assign({ color: theme.palette.grey[700] }, props)));
1178
+ };
1076
1179
 
1077
1180
  const Label$2 = styled__default["default"](SM) `
1078
1181
  color: ${({ theme }) => theme.palette.grey[500]};
1079
1182
  `;
1080
1183
  const Title$2 = styled__default["default"](LG) `
1081
- color: ${({ theme }) => theme.colors.primaryHue};
1184
+ ${props => reactTheming.retrieveComponentStyles("text.primary", props)}
1082
1185
  font-weight: ${({ theme }) => theme.fontWeights.semibold};
1083
1186
  margin-top: ${({ theme }) => theme.space.xxs};
1084
1187
  `;
@@ -1131,7 +1234,6 @@ const CardFooter = (props) => (jsxRuntime.jsxs(Footer$3, { children: [!props.noD
1131
1234
  const UgContentCard = styled__default["default"](reactNotifications.Well) `
1132
1235
  border-radius: ${({ theme }) => theme.borderRadii.lg};
1133
1236
  padding: ${({ theme }) => `${theme.space.sm} ${theme.space.base * 4}px`};
1134
- border: 1px solid ${({ theme }) => theme.palette.grey["200"]};
1135
1237
  height: 100%;
1136
1238
  display: flex;
1137
1239
  flex-direction: column;
@@ -1148,6 +1250,7 @@ const UgContentCard = styled__default["default"](reactNotifications.Well) `
1148
1250
  pointer-events: none;
1149
1251
  opacity: 0.7;
1150
1252
  `}
1253
+ ${(props) => reactTheming.retrieveComponentStyles(CARD_COMPONENT_ID, props)};
1151
1254
  `;
1152
1255
  /**
1153
1256
  * A SpecialCard is a spefic type of card with an opinionated set of default spaces and subcomponents order.
@@ -1223,7 +1326,7 @@ const StyledTagNew = styled__default["default"](Tag) `
1223
1326
  `;
1224
1327
  const ProductCard = (props) => {
1225
1328
  const { isNew, productTitle, labelNew } = props;
1226
- return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(SpecialCard, Object.assign({ title: productTitle }, props, { children: [jsxRuntime.jsx(SpecialCard.Meta, { children: isNew && (jsxRuntime.jsx(StyledTagNew, Object.assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" }))) }), props.icon && jsxRuntime.jsx(SpecialCard.Thumb, Object.assign({ align: "center" }, { children: props.icon })), jsxRuntime.jsxs(SpecialCard.Header, Object.assign({ onClick: props.onCtaClick, align: "center" }, { children: [props.preTitle && (jsxRuntime.jsx(SpecialCard.Header.Label, { children: props.preTitle })), jsxRuntime.jsx(SpecialCard.Header.Title, { children: productTitle })] })), jsxRuntime.jsx(SpecialCard.Footer, Object.assign({ direction: "column", justifyContent: "center" }, { children: jsxRuntime.jsx(Button, Object.assign({ isPill: true, isPrimary: true, onClick: props.onCtaClick, themeColor: theme.colors.accentHue, size: "small" }, { children: props.ctaLabel })) }))] })));
1329
+ return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(SpecialCard, Object.assign({ title: productTitle }, props, { children: [jsxRuntime.jsx(SpecialCard.Meta, { children: isNew && (jsxRuntime.jsx(StyledTagNew, Object.assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" }))) }), props.icon && jsxRuntime.jsx(SpecialCard.Thumb, Object.assign({ align: "center" }, { children: props.icon })), jsxRuntime.jsxs(SpecialCard.Header, Object.assign({ onClick: props.onCtaClick, align: "center" }, { children: [props.preTitle && (jsxRuntime.jsx(SpecialCard.Header.Label, { children: props.preTitle })), jsxRuntime.jsx(SpecialCard.Header.Title, { children: productTitle })] })), jsxRuntime.jsx(SpecialCard.Footer, Object.assign({ direction: "column", justifyContent: "center" }, { children: jsxRuntime.jsx(Button, Object.assign({ isPill: true, isPrimary: true, onClick: props.onCtaClick, isAccent: true, size: "small" }, { children: props.ctaLabel })) }))] })));
1227
1330
  };
1228
1331
 
1229
1332
  const ServiceSubtitle = styled__default["default"](SM) `
@@ -1324,27 +1427,27 @@ const DEFAULT_CHARTS_THEME = {
1324
1427
  annotations: {
1325
1428
  text: {
1326
1429
  fontSize: Number(theme.fontSizes.sm),
1327
- fill: theme.colors.primaryHue,
1430
+ fill: getColor(theme.colors.primaryHue, 600) || theme.palette.blue[600],
1328
1431
  outlineWidth: 2,
1329
1432
  outlineColor: theme.palette.white,
1330
1433
  outlineOpacity: 1,
1331
1434
  },
1332
1435
  link: {
1333
- stroke: theme.colors.primaryHue,
1436
+ stroke: getColor(theme.colors.primaryHue, 600) || theme.palette.blue[600],
1334
1437
  strokeWidth: 1,
1335
1438
  outlineWidth: 2,
1336
1439
  outlineColor: theme.palette.white,
1337
1440
  outlineOpacity: 1,
1338
1441
  },
1339
1442
  outline: {
1340
- stroke: theme.colors.primaryHue,
1443
+ stroke: getColor(theme.colors.primaryHue, 600) || theme.palette.blue[600],
1341
1444
  strokeWidth: 2,
1342
1445
  outlineWidth: 2,
1343
1446
  outlineColor: theme.palette.white,
1344
1447
  outlineOpacity: 1,
1345
1448
  },
1346
1449
  symbol: {
1347
- fill: theme.colors.primaryHue,
1450
+ fill: getColor(theme.colors.primaryHue, 600) || theme.palette.blue[600],
1348
1451
  outlineWidth: 2,
1349
1452
  outlineColor: theme.palette.white,
1350
1453
  outlineOpacity: 1,
@@ -1443,7 +1546,7 @@ const DEFAULT_CHARTS_THEME = {
1443
1546
  tooltip: {
1444
1547
  container: {
1445
1548
  background: theme.palette.white,
1446
- color: theme.colors.primaryHue,
1549
+ color: getColor(theme.colors.primaryHue, 600),
1447
1550
  fontSize: Number(theme.fontSizes.sm),
1448
1551
  },
1449
1552
  basic: {},
@@ -1453,57 +1556,24 @@ const DEFAULT_CHARTS_THEME = {
1453
1556
  tableCellValue: {},
1454
1557
  },
1455
1558
  };
1456
- const CHARTS_COLOR_PALETTE = {
1457
- darkPine: "#02807A",
1458
- lightGrey: theme.palette.grey[200],
1459
- darkGrey: theme.palette.grey[600],
1460
- mattone: "#800208",
1461
- gubbioLight: "#C78430",
1462
- blueRoyal: "#024780",
1463
- greenLight: "#5FA41C",
1464
- blue: "#020880",
1465
- fucsia: "#CE2A7A",
1466
- violet: "#573ECF",
1467
- orchidea: "#B75CAD",
1468
- sky: "#3392CE",
1469
- };
1470
1559
  const CHARTS_COLOR_SCHEME_MONO = [
1471
- CHARTS_COLOR_PALETTE.darkPine,
1472
- CHARTS_COLOR_PALETTE.lightGrey,
1473
- ];
1474
- [
1475
- CHARTS_COLOR_PALETTE.mattone,
1476
- CHARTS_COLOR_PALETTE.gubbioLight,
1477
- CHARTS_COLOR_PALETTE.blueRoyal,
1478
- CHARTS_COLOR_PALETTE.darkPine,
1479
- CHARTS_COLOR_PALETTE.lightGrey,
1560
+ theme.palette.teal[700],
1561
+ theme.palette.grey[200],
1480
1562
  ];
1481
1563
  [
1482
- CHARTS_COLOR_PALETTE.greenLight,
1483
- CHARTS_COLOR_PALETTE.blue,
1484
- CHARTS_COLOR_PALETTE.fucsia,
1485
- CHARTS_COLOR_PALETTE.violet,
1486
- CHARTS_COLOR_PALETTE.orchidea, // Orchidea 300
1564
+ theme.palette.red[900],
1565
+ theme.palette.yellow[700],
1566
+ theme.palette.azure[900],
1567
+ theme.palette.teal[700],
1568
+ theme.palette.grey[200]
1487
1569
  ];
1488
- const CHARTS_COLOR_SCHEME_CATEGORICAL_8_A = [
1489
- CHARTS_COLOR_PALETTE.darkPine,
1490
- CHARTS_COLOR_PALETTE.fucsia,
1491
- CHARTS_COLOR_PALETTE.violet,
1492
- CHARTS_COLOR_PALETTE.greenLight,
1493
- CHARTS_COLOR_PALETTE.mattone,
1494
- CHARTS_COLOR_PALETTE.sky,
1495
- CHARTS_COLOR_PALETTE.orchidea,
1496
- CHARTS_COLOR_PALETTE.blue, // Blue 900
1497
- ];
1498
- [
1499
- CHARTS_COLOR_PALETTE.sky,
1500
- CHARTS_COLOR_PALETTE.orchidea,
1501
- CHARTS_COLOR_PALETTE.blue,
1502
- CHARTS_COLOR_PALETTE.darkPine,
1503
- CHARTS_COLOR_PALETTE.fucsia,
1504
- CHARTS_COLOR_PALETTE.violet,
1505
- CHARTS_COLOR_PALETTE.greenLight,
1506
- CHARTS_COLOR_PALETTE.mattone, // Mattone 900
1570
+ const CHARTS_COLOR_SCHEME_CATEGORICAL = [
1571
+ theme.palette.teal[700],
1572
+ theme.palette.pink[900],
1573
+ theme.palette.purple[300],
1574
+ theme.palette.crimson[500],
1575
+ theme.palette.royal[900],
1576
+ theme.palette.lemon[700],
1507
1577
  ];
1508
1578
 
1509
1579
  const ChartContainer = styled__default["default"].div `
@@ -1562,7 +1632,7 @@ const DEFAULT_CHART_MARGINS = { top: 0, right: 0, bottom: 30, left: 30 };
1562
1632
  const BarChart = ({ data, width, height, padding, margin, axisLeftLabel, axisBottomLabel, colors, tooltip, legend, }) => {
1563
1633
  const theme = React.useContext(styled.ThemeContext);
1564
1634
  const keys = [...new Set(data.map(({ keys }) => Object.keys(keys)).flat())];
1565
- const actualColors = colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL_8_A;
1635
+ const actualColors = colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL;
1566
1636
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height }, { children: jsxRuntime.jsx(bar.ResponsiveBar, Object.assign({ data: data.map((d) => {
1567
1637
  const { keys } = d, rest = __rest(d, ["keys"]);
1568
1638
  return Object.assign(Object.assign({}, rest), keys);
@@ -1621,7 +1691,7 @@ const CustomBulletChartMarkers = ({ x, y, size, animatedProps: { color, transfor
1621
1691
  return (jsxRuntime.jsx(web.animated.circle, { transform: transform, cx: x, cy: y, fill: color, stroke: color, r: size }));
1622
1692
  };
1623
1693
 
1624
- const CustomMeasure = ({ x, y, width, height }) => (jsxRuntime.jsx(web.animated.rect, { x: x + 2, y: y + 2, width: width - 4, height: height - 4, fill: CHARTS_COLOR_PALETTE.darkGrey }));
1694
+ const CustomMeasure = ({ x, y, width, height }) => (jsxRuntime.jsx(web.animated.rect, { x: x + 2, y: y + 2, width: width - 4, height: height - 4, fill: theme.palette.grey[600] }));
1625
1695
 
1626
1696
  const CustomTooltip = ({ v0, v1, color }) => {
1627
1697
  return (jsxRuntime.jsx(tooltip.BasicTooltip, { id: v1 ? (jsxRuntime.jsxs("span", { children: [jsxRuntime.jsx("strong", { children: v0 }), "-", jsxRuntime.jsx("strong", { children: v1 }), "%"] })) : (jsxRuntime.jsx("strong", { children: v0 })), enableChip: true, color: color }));
@@ -1632,7 +1702,7 @@ const UgBulletChart = styled__default["default"](bullet.ResponsiveBullet) `
1632
1702
  height: 100%;
1633
1703
  `;
1634
1704
  const BulletChart = ({ width, height, ranges, values }) => {
1635
- return (jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height }, { children: jsxRuntime.jsx("div", Object.assign({ style: { width: "100%", height: height } }, { children: jsxRuntime.jsx(UgBulletChart, { theme: DEFAULT_CHARTS_THEME, data: [
1705
+ return (jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height }, { children: jsxRuntime.jsx("div", Object.assign({ style: { width: "100%", height: height } }, { children: jsxRuntime.jsx(UgBulletChart, { data: [
1636
1706
  {
1637
1707
  id: "",
1638
1708
  title: "",
@@ -1640,10 +1710,10 @@ const BulletChart = ({ width, height, ranges, values }) => {
1640
1710
  measures: values,
1641
1711
  markers: values,
1642
1712
  },
1643
- ], animate: false, measureComponent: CustomMeasure, markerColors: CHARTS_COLOR_PALETTE.darkPine, markerComponent: (_a) => {
1713
+ ], animate: false, measureComponent: CustomMeasure, markerColors: theme.palette.teal[700], markerComponent: (_a) => {
1644
1714
  var markerProps = __rest(_a, ["size"]);
1645
1715
  return (jsxRuntime.jsx(CustomBulletChartMarkers, Object.assign({}, markerProps, { size: 4 })));
1646
- }, tooltip: CustomTooltip, rangeColors: CHARTS_COLOR_PALETTE.lightGrey, rangeBorderColor: "white", rangeBorderWidth: 2, margin: { top: 0, right: 5, bottom: -1, left: 0 } }) })) })));
1716
+ }, tooltip: CustomTooltip, rangeColors: theme.palette.grey[200], rangeBorderColor: "white", rangeBorderWidth: 2, margin: { top: 0, right: 5, bottom: -1, left: 0 } }) })) })));
1647
1717
  };
1648
1718
 
1649
1719
  const CenteredItem = ({ centerX, centerY, theme, radius, label, value, fontSizeMultiplier, }) => {
@@ -1664,7 +1734,7 @@ const CenteredItem = ({ centerX, centerY, theme, radius, label, value, fontSizeM
1664
1734
  const PieChart = ({ theme, colors, width, height, data, centerItem, margin, tooltip, legend, arcLinkLabelsSkipAngle, labelFormatter, }) => {
1665
1735
  var _a;
1666
1736
  const themeContext = React.useContext(styled.ThemeContext);
1667
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height }, { children: jsxRuntime.jsx(pie.ResponsivePie, { theme: Object.assign({}, Object.assign(Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), theme), { labels: Object.assign(Object.assign({}, theme === null || theme === void 0 ? void 0 : theme.labels), { text: Object.assign({ fontWeight: themeContext.fontWeights.semibold, fill: themeContext.palette.grey[800] }, (_a = theme === null || theme === void 0 ? void 0 : theme.labels) === null || _a === void 0 ? void 0 : _a.text) }) })), colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL_8_A, enableArcLabels: false, arcLinkLabelsColor: { from: "color" }, arcLinkLabelsSkipAngle: arcLinkLabelsSkipAngle !== null && arcLinkLabelsSkipAngle !== void 0 ? arcLinkLabelsSkipAngle : 10, arcLinkLabelsThickness: 2, arcLinkLabel: (d) => labelFormatter
1737
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height }, { children: jsxRuntime.jsx(pie.ResponsivePie, { theme: Object.assign({}, Object.assign(Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), theme), { labels: Object.assign(Object.assign({}, theme === null || theme === void 0 ? void 0 : theme.labels), { text: Object.assign({ fontWeight: themeContext.fontWeights.semibold, fill: themeContext.palette.grey[800] }, (_a = theme === null || theme === void 0 ? void 0 : theme.labels) === null || _a === void 0 ? void 0 : _a.text) }) })), colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, enableArcLabels: false, arcLinkLabelsColor: { from: "color" }, arcLinkLabelsSkipAngle: arcLinkLabelsSkipAngle !== null && arcLinkLabelsSkipAngle !== void 0 ? arcLinkLabelsSkipAngle : 10, arcLinkLabelsThickness: 2, arcLinkLabel: (d) => labelFormatter
1668
1738
  ? labelFormatter({
1669
1739
  label: d.label,
1670
1740
  id: d.id,
@@ -1688,7 +1758,7 @@ const PieChart = ({ theme, colors, width, height, data, centerItem, margin, tool
1688
1758
  (props) => (jsxRuntime.jsx(CenteredItem, Object.assign({}, props, { theme: themeContext, label: centerItem.label, value: centerItem.value, fontSizeMultiplier: centerItem.fontSizeMultiplier }))),
1689
1759
  ]
1690
1760
  : []),
1691
- ], activeOuterRadiusOffset: 12 }) })), jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: "auto" }, { children: legend ? (jsxRuntime.jsx(Legend, Object.assign({ colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL_8_A, data: data.map((d) => labelFormatter
1761
+ ], activeOuterRadiusOffset: 12 }) })), jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: "auto" }, { children: legend ? (jsxRuntime.jsx(Legend, Object.assign({ colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, data: data.map((d) => labelFormatter
1692
1762
  ? labelFormatter({
1693
1763
  label: d.label,
1694
1764
  id: d.id,
@@ -1710,7 +1780,7 @@ const AbsoluteChartContainer = styled__default["default"](ChartContainer) `
1710
1780
  `;
1711
1781
  const HalfPieChartComponent = ({ theme, colors, height, data, onMouseEnter, onMouseLeave, mode, showArcLinks, margin, }) => {
1712
1782
  const themeContext = React.useContext(styled.ThemeContext);
1713
- return (jsxRuntime.jsx(AbsoluteChartContainer, Object.assign({ mode: mode, height: height }, { children: jsxRuntime.jsx(pie.ResponsivePie, { theme: Object.assign(Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), theme), { background: mode === "front" ? "transparent" : undefined }), colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL_8_A, enableArcLabels: false, arcLinkLabelsColor: { from: "color" }, padAngle: 2, data: data, margin: margin, innerRadius: mode === "front" ? 0.835 : 0.8, arcLinkLabelsThickness: 2, arcLinkLabelsTextColor: themeContext.palette.grey[600], layers: [
1783
+ return (jsxRuntime.jsx(AbsoluteChartContainer, Object.assign({ mode: mode, height: height }, { children: jsxRuntime.jsx(pie.ResponsivePie, { theme: Object.assign(Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), theme), { background: mode === "front" ? "transparent" : undefined }), colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, enableArcLabels: false, arcLinkLabelsColor: { from: "color" }, padAngle: 2, data: data, margin: margin, innerRadius: mode === "front" ? 0.835 : 0.8, arcLinkLabelsThickness: 2, arcLinkLabelsTextColor: themeContext.palette.grey[600], layers: [
1714
1784
  "arcs",
1715
1785
  ...(showArcLinks
1716
1786
  ? ["arcLabels", "arcLinkLabels"]
@@ -1720,7 +1790,7 @@ const HalfPieChartComponent = ({ theme, colors, height, data, onMouseEnter, onMo
1720
1790
 
1721
1791
  const HalfPieChart = ({ theme, colors, width, height, data, margin, showArcLinks, }) => {
1722
1792
  const themeContext = React.useContext(styled.ThemeContext);
1723
- const activeColors = colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL_8_A;
1793
+ const activeColors = colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL;
1724
1794
  while (activeColors.length < data.length) {
1725
1795
  activeColors.push(...activeColors);
1726
1796
  }
@@ -1797,7 +1867,7 @@ const SunburstChart = ({ colors, width, height, data, centerItem, margin, onChan
1797
1867
  padding: 0,
1798
1868
  } }) }) : DEFAULT_CHARTS_THEME, colors: currentColor
1799
1869
  ? () => currentColor
1800
- : colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL_8_A, borderWidth: 4, cornerRadius: 4, onMouseEnter: (node) => {
1870
+ : colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, borderWidth: 4, cornerRadius: 4, onMouseEnter: (node) => {
1801
1871
  if (node.data.children) {
1802
1872
  setIsHovering(true);
1803
1873
  }
@@ -1827,7 +1897,7 @@ const SunburstChart = ({ colors, width, height, data, centerItem, margin, onChan
1827
1897
  } })),
1828
1898
  ]
1829
1899
  : []),
1830
- ], id: "name", value: "value", margin: Object.assign({ top: 40, bottom: 40 }, margin), data: currentData, childColor: { from: "color", modifiers: [["brighter", 0.5]] }, onClick: (clickedData) => {
1900
+ ], id: "name", value: "value", margin: Object.assign({ top: 40, bottom: 40 }, margin), data: currentData, childColor: { from: "color", modifiers: [["brighter", 0.6]] }, onClick: (clickedData) => {
1831
1901
  const foundObject = findChildrenByName(currentData, clickedData.id.toString());
1832
1902
  if (foundObject && foundObject.children) {
1833
1903
  changeDataSlice({
@@ -1835,7 +1905,7 @@ const SunburstChart = ({ colors, width, height, data, centerItem, margin, onChan
1835
1905
  color: clickedData.color,
1836
1906
  });
1837
1907
  }
1838
- } }) })), jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: "auto" }, { children: legend ? (jsxRuntime.jsx(Legend, Object.assign({ colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL_8_A, data: data.children.map((d) => d.label || d.name) }, (typeof legend === "object" && legend)))) : undefined }))] }));
1908
+ } }) })), jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: "auto" }, { children: legend ? (jsxRuntime.jsx(Legend, Object.assign({ colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, data: data.children.map((d) => d.label || d.name) }, (typeof legend === "object" && legend)))) : undefined }))] }));
1839
1909
  };
1840
1910
 
1841
1911
  const CustomCell = ({ position, size, x, y, color, fill, opacity, borderWidth, borderColor, data, onHover, onLeave, onClick, }) => (jsxRuntime.jsx("circle", { r: size / 2, cx: x + size / 2, cy: y + size / 2, fill: fill || color, strokeWidth: borderWidth, stroke: borderColor, opacity: opacity, onMouseEnter: onHover, onMouseMove: onHover, onMouseLeave: onLeave, onClick: event => {
@@ -2044,11 +2114,11 @@ Dropdown.Separator = Separator;
2044
2114
  const StyledAutocomplete = styled__default["default"](Autocomplete) `
2045
2115
  ${(props) => props.hasSelectedItems &&
2046
2116
  `
2047
- border-color: ${props.theme.colors.primaryHue};
2048
- background-color: ${props.theme.colors.primaryHue};
2117
+ border-color: ${getColor(theme.colors.primaryHue, 600)};
2118
+ background-color: ${getColor(theme.colors.primaryHue, 600)};
2049
2119
  color: white;
2050
2120
  & > input, & > svg {
2051
- color: white;
2121
+ color: ${props.theme.palette.white};
2052
2122
  }
2053
2123
  `}
2054
2124
  `;
@@ -2518,20 +2588,10 @@ const Header$1 = styled__default["default"].div `
2518
2588
  border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
2519
2589
  `;
2520
2590
  const Title$1 = styled__default["default"](MD) `
2521
- ${({ validation, theme }) => {
2522
- if (validation === "success") {
2523
- return `color: ${theme.colors.successHue};`;
2524
- }
2525
- else if (validation === "warning") {
2526
- return `color: ${theme.colors.warningHue};`;
2527
- }
2528
- else if (validation === "error") {
2529
- return `color: ${theme.palette.dangerHue};`;
2530
- }
2531
- else {
2532
- return `color: ${theme.colors.primaryHue};`;
2533
- }
2534
- }}
2591
+ ${props => reactTheming.retrieveComponentStyles("text.primary", props)}
2592
+ ${props => props.validation === "success" && reactTheming.retrieveComponentStyles("text.success", props)}
2593
+ ${props => props.validation === "warning" && reactTheming.retrieveComponentStyles("text.warning", props)}
2594
+ ${props => props.validation === "error" && reactTheming.retrieveComponentStyles("text.danger", props)}
2535
2595
  `;
2536
2596
  const EditorHeader = (props) => {
2537
2597
  const { title, validation } = props;
@@ -2551,29 +2611,8 @@ const EditorFooter = ({ saveText }) => {
2551
2611
  return jsxRuntime.jsxs(Footer$2, { children: [jsxRuntime.jsxs(Tag, { children: [isMac() ? "Cmd" : "Ctrl", "+enter"] }), "\u00A0", jsxRuntime.jsx(Text, { children: saveText || "to save" })] });
2552
2612
  };
2553
2613
 
2554
- const EditorContainer = styled__default["default"].div `
2555
- border: 2px solid;
2556
- border-radius: ${({ theme }) => theme.borderRadii.md};
2557
- &:focus-within {
2558
- outline: ${({ theme }) => theme.palette.blue["300"]};
2559
- outline-style: solid;
2560
- }
2561
-
2562
- ${({ validation, theme }) => {
2563
- if (validation === "success") {
2564
- return `border-color: ${theme.colors.successHue};`;
2565
- }
2566
- else if (validation === "warning") {
2567
- return `border-color: ${theme.colors.warningHue};`;
2568
- }
2569
- else if (validation === "error") {
2570
- return `border-color: ${theme.colors.dangerHue};`;
2571
- }
2572
- else {
2573
- return `border-color: ${theme.colors.primaryHue};`;
2574
- }
2575
- }}
2576
-
2614
+ const EditorContainer = styled__default["default"](reactForms.FauxInput) `
2615
+
2577
2616
  ${({ editable }) => !editable &&
2578
2617
  `
2579
2618
  border: none;
@@ -2671,7 +2710,7 @@ const CheckboxCard = (props) => {
2671
2710
  setChecked(!checked);
2672
2711
  props.onToggle && props.onToggle(!checked);
2673
2712
  };
2674
- return (jsxRuntime.jsxs(SpecialCard, Object.assign({ title: props.label }, cardArgs, (props && !props.disabled && { onClick: handleToggle }), { className: checked ? "card-active" : "" }, { children: [jsxRuntime.jsx(SpecialCard.Thumb, Object.assign({ isStretched: true }, { children: props.iconActive && checked ? props.iconActive : props.icon })), jsxRuntime.jsx(SpecialCard.Header, Object.assign({ align: "center" }, { children: jsxRuntime.jsx(SpecialCard.Header.Text, { children: jsxRuntime.jsx(MD, Object.assign({ isBold: true, style: checked ? { color: theme.colors.primaryHue } : {} }, { children: props.label })) }) })), jsxRuntime.jsx(SpecialCard.Footer, Object.assign({ direction: "column", justifyContent: "center", noDivider: true }, { children: jsxRuntime.jsx(Checkbox, Object.assign({}, props, { checked: checked, value: checked ? 1 : 0, onClick: (e) => e.stopPropagation() }, { children: jsxRuntime.jsx(StyledLabel$1, Object.assign({ hidden: true }, { children: props.label })) })) }))] })));
2713
+ return (jsxRuntime.jsxs(SpecialCard, Object.assign({ title: props.label }, cardArgs, (props && !props.disabled && { onClick: handleToggle }), { className: checked ? "card-active" : "" }, { children: [jsxRuntime.jsx(SpecialCard.Thumb, Object.assign({ isStretched: true }, { children: props.iconActive && checked ? props.iconActive : props.icon })), jsxRuntime.jsx(SpecialCard.Header, Object.assign({ align: "center" }, { children: jsxRuntime.jsx(SpecialCard.Header.Text, { children: jsxRuntime.jsx(MD, Object.assign({ isBold: true, style: checked ? { color: getColor(theme.colors.primaryHue, 600) } : {} }, { children: props.label })) }) })), jsxRuntime.jsx(SpecialCard.Footer, Object.assign({ direction: "column", justifyContent: "center", noDivider: true }, { children: jsxRuntime.jsx(Checkbox, Object.assign({}, props, { checked: checked, value: checked ? 1 : 0, onClick: (e) => e.stopPropagation() }, { children: jsxRuntime.jsx(StyledLabel$1, Object.assign({ hidden: true }, { children: props.label })) })) }))] })));
2675
2714
  };
2676
2715
 
2677
2716
  const UgField = styled__default["default"](reactForms.Field) ``;
@@ -2750,7 +2789,6 @@ const Wrapper$1 = styled__default["default"].div `
2750
2789
 
2751
2790
  svg {
2752
2791
  margin-left: ${({ theme }) => theme.space.xs};
2753
- flex-shrink: 0;
2754
2792
  }
2755
2793
  }
2756
2794
  `;
@@ -2851,7 +2889,7 @@ const Circle = styled__default["default"].div `
2851
2889
  height: ${({ theme }) => theme.space.base * 6}px;
2852
2890
  padding: ${({ theme }) => theme.space.base * 1.25}px;
2853
2891
  border-radius: 50%;
2854
- background-color: ${({ theme }) => theme.colors.primaryHue};
2892
+ background-color: ${({ theme }) => getColor(theme.colors.primaryHue, 600)};
2855
2893
  display: flex;
2856
2894
  flex-direction: column;
2857
2895
  justify-content: center;
@@ -2868,7 +2906,7 @@ const RadioCard = (_a) => {
2868
2906
  var { card, icon, iconActive } = _a, props = __rest(_a, ["card", "icon", "iconActive"]);
2869
2907
  return (jsxRuntime.jsxs(SpecialCard, Object.assign({ title: props.label }, card, props, { className: props.checked ? "card-active" : "", onClick: () => {
2870
2908
  props.onChecked && props.onChecked(props.value);
2871
- } }, { children: [jsxRuntime.jsx(SpecialCard.Meta, Object.assign({ justifyContent: "end" }, { children: jsxRuntime.jsx(Circle, Object.assign({ checked: (_b = props.checked) !== null && _b !== void 0 ? _b : false }, { children: jsxRuntime.jsx(SvgCheckLg, { fill: "white" }) })) })), jsxRuntime.jsx(SpecialCard.Thumb, Object.assign({ isStretched: true }, { children: iconActive && props.checked ? iconActive : icon })), jsxRuntime.jsx("input", { hidden: true, type: "radio", value: props.value, name: props.name, checked: props.checked }), jsxRuntime.jsx(SpecialCard.Footer, Object.assign({ direction: "column", justifyContent: "center" }, { children: jsxRuntime.jsx(StyledText, Object.assign({ style: props.checked ? { color: theme.colors.primaryHue } : {} }, { children: props.label })) }))] })));
2909
+ } }, { children: [jsxRuntime.jsx(SpecialCard.Meta, Object.assign({ justifyContent: "end" }, { children: jsxRuntime.jsx(Circle, Object.assign({ checked: (_b = props.checked) !== null && _b !== void 0 ? _b : false }, { children: jsxRuntime.jsx(SvgCheckLg, { fill: "white" }) })) })), jsxRuntime.jsx(SpecialCard.Thumb, Object.assign({ isStretched: true }, { children: iconActive && props.checked ? iconActive : icon })), jsxRuntime.jsx("input", { hidden: true, type: "radio", value: props.value, name: props.name, checked: props.checked }), jsxRuntime.jsx(SpecialCard.Footer, Object.assign({ direction: "column", justifyContent: "center" }, { children: jsxRuntime.jsx(StyledText, Object.assign({ style: props.checked ? { color: getColor(theme.colors.primaryHue, 600) } : {} }, { children: props.label })) }))] })));
2872
2910
  };
2873
2911
 
2874
2912
  const UgTextarea = styled__default["default"](reactForms.Textarea) ``;
@@ -3109,7 +3147,7 @@ const WorkspacesDropdown = (props) => {
3109
3147
  props.onWorkspaceChange && props.onWorkspaceChange(workspace);
3110
3148
  }, downshiftProps: {
3111
3149
  itemToString: (item) => item && item.company,
3112
- } }, { children: [jsxRuntime.jsx(reactDropdowns.Field, { children: jsxRuntime.jsx(Select, Object.assign({ style: { color: theme.colors.primaryHue } }, { children: jsxRuntime.jsx(StyledEllipsis, Object.assign({ isCompact: props.isCompact }, { children: selectedWorkspace
3150
+ } }, { children: [jsxRuntime.jsx(reactDropdowns.Field, { children: jsxRuntime.jsx(Select, Object.assign({ style: { color: getColor(theme.colors.primaryHue, 600) } }, { children: jsxRuntime.jsx(StyledEllipsis, Object.assign({ isCompact: props.isCompact }, { children: selectedWorkspace
3113
3151
  ? selectedWorkspace.company + "'s workspace"
3114
3152
  : "Select workspace" })) })) }), jsxRuntime.jsxs(Menu, { children: [jsxRuntime.jsx(MenuHeaderItem, { children: jsxRuntime.jsx(MD, Object.assign({ isBold: true, style: { color: theme.palette.grey[800] } }, { children: props.workspacesLabel || "Workspaces" })) }), jsxRuntime.jsx(Separator, {}), props.workspaces && props.workspaces.map((item) => (jsxRuntime.jsx(Item$1, Object.assign({ value: item }, { children: item.company }))))] })] })));
3115
3153
  };
@@ -3129,30 +3167,30 @@ const LogoIconContainer = styled__default["default"](reactChrome.HeaderItem) `
3129
3167
  const BrandName = styled__default["default"](reactChrome.HeaderItem) `
3130
3168
  margin-right: auto;
3131
3169
  margin-left: -8px;
3132
- color: ${({ theme }) => theme.colors.primaryHue};
3133
3170
  pointer-events: none;
3134
3171
  font-family: ${({ theme }) => theme.fonts.system};
3135
3172
  @media (max-width: ${({ theme }) => theme.breakpoints.md}) {
3136
3173
  display: none;
3137
3174
  }
3175
+ ${props => reactTheming.retrieveComponentStyles("text.primary", props)}
3138
3176
  `;
3139
3177
  const DropdownItem = styled__default["default"](reactChrome.HeaderItem) `
3140
3178
  margin-right: auto;
3141
3179
  margin-left: -8px;
3142
- color: ${({ theme }) => theme.colors.primaryHue};
3143
3180
  font-family: ${({ theme }) => theme.fonts.system};
3144
3181
  z-index: 2;
3145
3182
  @media (max-width: ${({ theme }) => theme.breakpoints.md}) {
3146
3183
  display: none;
3147
3184
  }
3185
+ ${props => reactTheming.retrieveComponentStyles("text.primary", props)}
3148
3186
  `;
3149
3187
  const MenuItem$1 = styled__default["default"](reactChrome.HeaderItem) `
3150
- color: ${({ theme }) => theme.colors.primaryHue};
3151
3188
  position: absolute;
3152
3189
  left: 0;
3153
3190
  @media (min-width: ${({ theme }) => theme.breakpoints.md}) {
3154
3191
  display: none;
3155
3192
  }
3193
+ ${props => reactTheming.retrieveComponentStyles("text.primary", props)}
3156
3194
  `;
3157
3195
  const BrandItem = (props) => {
3158
3196
  const { menuLabel, toggleMenu } = props, rest = __rest(props, ["menuLabel", "toggleMenu"]);
@@ -3198,7 +3236,7 @@ const UgNav = styled__default["default"](reactChrome.Nav) `
3198
3236
 
3199
3237
  @media (min-width: ${p => p.theme.breakpoints.md}) {
3200
3238
  border-right: ${({ theme }) => theme.borders.sm};
3201
- border-color: ${({ theme }) => reactTheming.getColor(theme.colors.neutralHue, 300)};
3239
+ border-color: ${({ theme }) => getColor(theme.colors.neutralHue, 300)};
3202
3240
  width: ${p => p.theme.components.chrome.nav.openWidth}px;
3203
3241
  margin-left: ${p => p.isExpanded
3204
3242
  ? 0
@@ -3215,30 +3253,11 @@ const UgNav = styled__default["default"](reactChrome.Nav) `
3215
3253
  */
3216
3254
  const Nav = (props) => jsxRuntime.jsx(UgNav, Object.assign({}, props));
3217
3255
 
3218
- const SelectedItemStyle = styled.css `
3219
- background-color: ${({ theme }) => theme.palette.kale["100"]};
3220
- `;
3221
3256
  const UgNavItem$2 = styled__default["default"](reactChrome.NavItem) `
3222
- border-top-left-radius: ${(props) => props.theme.space.base * 6}px;
3223
- border-bottom-left-radius: ${(props) => props.theme.space.base * 6}px;
3224
- font-family: ${({ theme }) => theme.fonts.system};
3225
3257
  ${sidebarNavItemExpanded}
3226
3258
  ${(props) => !props.isExpanded && sidebarNavItemHidden}
3227
- ${(props) => props.isCurrent && SelectedItemStyle}
3228
- &:focus {
3229
- ${SelectedItemStyle}
3230
- }
3231
- &:hover {
3232
- background-color: ${({ theme }) => theme.palette.kale["200"]};
3233
- }
3234
- color: ${(props) => props.theme.colors.primaryHue};
3235
- font-weight: ${(props) => props.theme.fontWeights.medium};
3236
- ${(props) => props.isCurrent &&
3237
- `
3238
- color: ${props.theme.palette.blue["700"]};
3239
- font-weight: ${props.theme.fontWeights.semibold};
3240
- `}
3241
3259
  margin: ${({ theme }) => theme.space.xs} 0;
3260
+ ${(props) => reactTheming.retrieveComponentStyles("navigation.hoverableItem", props)};
3242
3261
  `;
3243
3262
  const NavItem = React.forwardRef((props, ref) => jsxRuntime.jsx(UgNavItem$2, Object.assign({ ref: ref }, props)));
3244
3263
 
@@ -3340,6 +3359,48 @@ const NavItemProject = NavItemComponent;
3340
3359
  NavItemProject.Title = NavItemText;
3341
3360
  NavItemProject.SubTitle = UgProjectSubtitle;
3342
3361
 
3362
+ const NavAccordionItem = styled__default["default"](Accordion) `
3363
+ opacity: 1;
3364
+ ${sidebarNavItemExpanded}
3365
+ ${(props) => !props.isExpanded && sidebarNavItemHidden}
3366
+ order: 1;
3367
+ margin-top: ${({ theme }) => theme.space.xs}px;
3368
+ `;
3369
+ const AccordionItemHeader = styled__default["default"](Accordion.Header) `
3370
+ flex-direction: row;
3371
+ border-top-left-radius: ${({ theme }) => theme.space.base * 6}px;
3372
+ border-bottom-left-radius: ${({ theme }) => theme.space.base * 6}px;
3373
+
3374
+ > button {
3375
+ padding-right: 2px;
3376
+ }
3377
+
3378
+ svg {
3379
+ width: 26px;
3380
+ }
3381
+ `;
3382
+ const AccordionItemPanel = styled__default["default"](Accordion.Panel) `
3383
+ max-height: 180px;
3384
+ padding: 0;
3385
+ padding-left: 5px;
3386
+ overflow-y: hidden;
3387
+ opacity: 1;
3388
+ &:hover {
3389
+ overflow-y: auto;
3390
+ }
3391
+ `;
3392
+ const AccordionItemLabel = styled__default["default"](Accordion.Label) `
3393
+ padding: 12px 9px;
3394
+ ${({ theme }) => `
3395
+ fill: ${getColor(theme.colors.primaryHue, 600)};
3396
+ font-weight: ${theme.fontWeights.medium};
3397
+ `}
3398
+ ${props => reactTheming.retrieveComponentStyles("text.primary", props)}
3399
+ `;
3400
+ NavAccordionItem.Panel = AccordionItemPanel;
3401
+ NavAccordionItem.Header = AccordionItemHeader;
3402
+ NavAccordionItem.Label = AccordionItemLabel;
3403
+
3343
3404
  var _path$j;
3344
3405
  function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
3345
3406
  var SvgHomeFill = function SvgHomeFill(props) {
@@ -3421,17 +3482,19 @@ var SvgToken = function SvgToken(props) {
3421
3482
 
3422
3483
  var _path$h;
3423
3484
  function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
3424
- var SvgFolderIcon = function SvgFolderIcon(props) {
3485
+ var SvgProjectsIcon = function SvgProjectsIcon(props) {
3425
3486
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
3426
- width: 12,
3427
- height: 12,
3428
- viewBox: "0 0 12 12",
3487
+ width: 22,
3488
+ height: 22,
3489
+ viewBox: "0 0 22 22",
3490
+ fill: "none",
3429
3491
  xmlns: "http://www.w3.org/2000/svg"
3430
3492
  }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
3431
3493
  fillRule: "evenodd",
3432
3494
  clipRule: "evenodd",
3433
- d: "M9.99976 4H6.99976V3.5C6.99976 2.62386 6.3759 2 5.49976 2H2.49976C1.62362 2 0.999758 2.62386 0.999758 3.5V6H0.499758C0.174472 6 -0.0642066 6.30569 0.0146868 6.62127L1.01469 10.6213C1.07033 10.8439 1.27032 11 1.49976 11H10.4998C10.7292 11 10.9292 10.8439 10.9848 10.6213L11.9848 6.62127C12.0637 6.30569 11.825 6 11.4998 6H10.9998V5C10.9998 4.42386 10.5759 4 9.99976 4ZM10.8594 7H1.14015L1.89015 10H10.1094L10.8594 7ZM1.99976 6H9.99976V5H5.99976V3.5C5.99976 3.17614 5.82362 3 5.49976 3H2.49976C2.1759 3 1.99976 3.17614 1.99976 3.5V6Z",
3434
- fill: "currentColor"
3495
+ d: "M18.5 5H12.25V4.375C12.25 3.34232 11.4077 2.5 10.375 2.5H4.125C3.09232 2.5 2.25 3.34232 2.25 4.375V10.005C1.53426 10.0685 1.01354 10.7329 1.1335 11.4527L2.171 17.7027C2.27098 18.3026 2.79293 18.75 3.4 18.75H18.6C19.2071 18.75 19.729 18.3026 19.829 17.7027L20.8666 11.4523C20.9865 10.7329 20.4657 10.0685 19.75 10.005V6.25C19.75 5.55482 19.1952 5 18.5 5ZM19.633 11.25H2.36695L3.404 17.4973C3.40404 17.4974 18.6 17.5 18.6 17.5C18.5929 17.5 19.633 11.25 19.633 11.25ZM3.5 10H18.5V6.25H11V4.375C11 4.03268 10.7173 3.75 10.375 3.75H4.125C3.78268 3.75 3.5 4.03268 3.5 4.375V10Z",
3496
+ fill: "#336179",
3497
+ stroke: "#336179"
3435
3498
  })));
3436
3499
  };
3437
3500
 
@@ -3502,52 +3565,6 @@ const LoadingSidebar = (props) => {
3502
3565
  return (jsxRuntime.jsxs(StyledNav, Object.assign({}, props, { isExpanded: isExpanded }, { children: [jsxRuntime.jsx(NavToggle, { isExpanded: isExpanded }), jsxRuntime.jsxs(NavItem, Object.assign({ isExpanded: isExpanded, isCurrent: true }, { children: [jsxRuntime.jsx(NavItemIcon, Object.assign({ isStyled: true }, { children: jsxRuntime.jsx(Skeleton, { width: "32px", height: "32px", style: { borderRadius: "100%" } }) })), jsxRuntime.jsx(Skeleton, { height: "12px", width: "60%" }), jsxRuntime.jsx(NavItemText, {})] })), jsxRuntime.jsx(NavDivider, { isExpanded: isExpanded }), jsxRuntime.jsxs(NavItemProject, Object.assign({ isExpanded: isExpanded, isCurrent: false }, { children: [jsxRuntime.jsx(Skeleton, { width: "60%", style: { marginBottom: "6px" } }), jsxRuntime.jsx(Skeleton, { height: "12px", width: "80%" })] }), 1), jsxRuntime.jsxs(NavItemProject, Object.assign({ isExpanded: isExpanded, isCurrent: false }, { children: [jsxRuntime.jsx(Skeleton, { width: "60%", style: { marginBottom: "6px" } }), jsxRuntime.jsx(Skeleton, { height: "12px", width: "80%" })] }), 2), jsxRuntime.jsxs(NavItemProject, Object.assign({ isExpanded: isExpanded, isCurrent: false }, { children: [jsxRuntime.jsx(Skeleton, { width: "60%", style: { marginBottom: "6px" } }), jsxRuntime.jsx(Skeleton, { height: "12px", width: "80%" })] }), 3), jsxRuntime.jsxs(NavItemProject, Object.assign({ isExpanded: isExpanded, isCurrent: false }, { children: [jsxRuntime.jsx(Skeleton, { width: "60%", style: { marginBottom: "6px" } }), jsxRuntime.jsx(Skeleton, { height: "12px", width: "80%" })] }), 4), jsxRuntime.jsxs(NavItem, Object.assign({ isExpanded: isExpanded, hasBrandmark: true, title: "Be smart from the start", style: { pointerEvents: "none" } }, { children: [jsxRuntime.jsx(NavItemIcon, { children: jsxRuntime.jsx(Skeleton, { width: "32px", height: "32px", style: { borderRadius: "100%" } }) }), jsxRuntime.jsx(NavItemText, { children: "UNGUESS" })] }))] })));
3503
3566
  };
3504
3567
 
3505
- const AccordionItem = styled__default["default"](Accordion) `
3506
- opacity: 1;
3507
- ${sidebarNavItemExpanded}
3508
- ${(props) => !props.isExpanded && sidebarNavItemHidden}
3509
- order: 1;
3510
- margin-top: ${({ theme }) => theme.space.xs}px;
3511
- `;
3512
- const AccordionItemHeader = styled__default["default"](Accordion.Header) `
3513
- flex-direction: row-reverse;
3514
- border-top-left-radius: ${({ theme }) => theme.space.base * 6}px;
3515
- border-bottom-left-radius: ${({ theme }) => theme.space.base * 6}px;
3516
-
3517
- > button {
3518
- padding-left: 2px;
3519
- }
3520
-
3521
- svg {
3522
- width: 26px;
3523
- }
3524
-
3525
- &:hover {
3526
- background-color: ${(props) => props.theme.palette.kale["200"]};
3527
- }
3528
- `;
3529
- const AccordionItemPanel = styled__default["default"](Accordion.Panel) `
3530
- max-height: 180px;
3531
- padding: 0;
3532
- padding-left: 5px;
3533
- overflow-y: hidden;
3534
- opacity: 1;
3535
- &:hover {
3536
- overflow-y: auto;
3537
- }
3538
- `;
3539
- const AccordionItemLabel = styled__default["default"](Accordion.Label) `
3540
- padding: 12px 9px;
3541
- ${({ theme }) => `
3542
- color: ${theme.colors.primaryHue};
3543
- fill: ${theme.colors.primaryHue};
3544
- font-weight: ${theme.fontWeights.medium};
3545
- `}
3546
- `;
3547
- AccordionItem.Panel = AccordionItemPanel;
3548
- AccordionItem.Header = AccordionItemHeader;
3549
- AccordionItem.Label = AccordionItemLabel;
3550
-
3551
3568
  const TokenContainer = styled__default["default"].div `
3552
3569
  display: flex;
3553
3570
  align-items: center;
@@ -3616,7 +3633,7 @@ const Sidebar = (_a) => {
3616
3633
  }, [props.isExpanded]);
3617
3634
  return props.isLoading ? (jsxRuntime.jsx(LoadingSidebar, Object.assign({}, props))) : (jsxRuntime.jsxs(Nav, Object.assign({}, props, { children: [jsxRuntime.jsxs(ScrollingContainer, { children: [jsxRuntime.jsx(NavToggle, { onClick: toggleNav, isExpanded: props.isExpanded }), showWorkspacesDropdown &&
3618
3635
  props.workspaces &&
3619
- props.workspaces.length > 1 && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(StyledNavItem, Object.assign({ title: "Workspaces", hasLogo: true, isExpanded: props.isExpanded, style: padding }, { children: jsxRuntime.jsx(WorkspacesDropdown, { workspaces: props.workspaces, workspacesLabel: props.workspacesLabel, activeWorkspace: props.activeWorkspace, onWorkspaceChange: props.onWorkspaceChange, isCompact: true }) })) })), props.tokens && (jsxRuntime.jsx(SidebarLabel, Object.assign({ isExpanded: props.isExpanded }, { children: props.activityLabel || "My activity" }))), jsxRuntime.jsxs(NavItem, Object.assign({ className: "sidebar-first-level-item", title: "Home", isExpanded: props.isExpanded, isCurrent: nav === "home", onClick: () => navigate("home") }, { children: [jsxRuntime.jsx(NavItemIcon, Object.assign({ isStyled: true }, { children: nav === "home" ? jsxRuntime.jsx(SvgHomeFillStyled, {}) : jsxRuntime.jsx(SvgHomeFill, {}) })), jsxRuntime.jsx(NavItemText, { children: props.homeItemLabel || "My Campaigns" })] })), projects && projects.length ? (jsxRuntime.jsx(AccordionItem, Object.assign({ className: "sidebar-project-accordion-first-item", level: 4, defaultExpandedSections: defaultAccordionPanels, isExpanded: props.isExpanded, isAnimated: false }, { children: jsxRuntime.jsxs(AccordionItem.Section, { children: [jsxRuntime.jsx(AccordionItem.Header, { children: jsxRuntime.jsxs(AccordionItem.Label, { children: [props.dividerLabel || "", " ", jsxRuntime.jsx(SvgFolderIcon, { style: { marginLeft: theme.space.xs } })] }) }), jsxRuntime.jsx(AccordionItem.Panel, { children: projects.map((project) => (jsxRuntime.jsxs(NavItemProject, Object.assign({ className: "sidebar-project-item", isExpanded: props.isExpanded, isCurrent: nav === `projects/${project.id}` }, (nav === `projects/${project.id}` && { ref: prjRef }), { onClick: () => navigate("projects", project.id) }, { children: [jsxRuntime.jsx(NavItemProject.Title, { title: project.title, children: project.title }), jsxRuntime.jsx(NavItemProject.SubTitle, { children: project.campaigns })] }), project.id))) })] }) }))) : null, jsxRuntime.jsx(NavDivider, { isExpanded: props.isExpanded }), jsxRuntime.jsxs(NavItem, Object.assign({ className: "sidebar-first-level-item", title: "Services", isExpanded: props.isExpanded, isCurrent: nav === "services", onClick: () => navigate("services"), style: { marginBottom: "16px" } }, { children: [jsxRuntime.jsx(NavItemIcon, Object.assign({ isStyled: true }, { children: nav === "services" ? jsxRuntime.jsx(SvgTemplatesActive, {}) : jsxRuntime.jsx(SvgTemplates, {}) })), jsxRuntime.jsx(NavItemText, { children: props.servicesItemLabel || "Services" })] })), props.tokens && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SidebarLabel, Object.assign({ isExpanded: props.isExpanded }, { children: props.walletLabel || "Wallet" })), jsxRuntime.jsx(StyledNavItem, Object.assign({ title: "Tokens", isExpanded: props.isExpanded, style: { pointerEvents: "none", paddingTop: 0 } }, { children: jsxRuntime.jsx(Card, Object.assign({ style: { padding: theme.space.sm } }, { children: jsxRuntime.jsxs(TokenContainer, { children: [jsxRuntime.jsx(SvgToken, { width: 32 }), jsxRuntime.jsx(Span, Object.assign({ isBold: true, style: {
3636
+ props.workspaces.length > 1 && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(StyledNavItem, Object.assign({ title: "Workspaces", hasLogo: true, isExpanded: props.isExpanded, style: padding }, { children: jsxRuntime.jsx(WorkspacesDropdown, { workspaces: props.workspaces, workspacesLabel: props.workspacesLabel, activeWorkspace: props.activeWorkspace, onWorkspaceChange: props.onWorkspaceChange, isCompact: true }) })) })), props.tokens && (jsxRuntime.jsx(SidebarLabel, Object.assign({ isExpanded: props.isExpanded }, { children: props.activityLabel || "My activity" }))), jsxRuntime.jsxs(NavItem, Object.assign({ className: "sidebar-first-level-item", title: "Home", isExpanded: props.isExpanded, isCurrent: nav === "home", onClick: () => navigate("home") }, { children: [jsxRuntime.jsx(NavItemIcon, Object.assign({ isStyled: true }, { children: nav === "home" ? jsxRuntime.jsx(SvgHomeFillStyled, {}) : jsxRuntime.jsx(SvgHomeFill, {}) })), jsxRuntime.jsx(NavItemText, { children: props.homeItemLabel || "My Campaigns" })] })), projects && projects.length ? (jsxRuntime.jsx(NavAccordionItem, Object.assign({ className: "sidebar-project-accordion-first-item", level: 4, defaultExpandedSections: defaultAccordionPanels, isExpanded: props.isExpanded, isAnimated: false }, { children: jsxRuntime.jsxs(NavAccordionItem.Section, { children: [jsxRuntime.jsxs(NavAccordionItem.Header, { children: [jsxRuntime.jsx(SvgProjectsIcon, { style: { marginLeft: theme.space.xs } }), jsxRuntime.jsxs(NavAccordionItem.Label, { children: [props.dividerLabel || "", " "] })] }), jsxRuntime.jsx(NavAccordionItem.Panel, { children: projects.map((project) => (jsxRuntime.jsxs(NavItemProject, Object.assign({ className: "sidebar-project-item", isExpanded: props.isExpanded, isCurrent: nav === `projects/${project.id}` }, (nav === `projects/${project.id}` && { ref: prjRef }), { onClick: () => navigate("projects", project.id) }, { children: [jsxRuntime.jsx(NavItemProject.Title, { title: project.title, children: project.title }), jsxRuntime.jsx(NavItemProject.SubTitle, { children: project.campaigns })] }), project.id))) })] }) }))) : null, jsxRuntime.jsx(NavDivider, { isExpanded: props.isExpanded }), jsxRuntime.jsxs(NavItem, Object.assign({ className: "sidebar-first-level-item", title: "Services", isExpanded: props.isExpanded, isCurrent: nav === "services", onClick: () => navigate("services"), style: { marginBottom: "16px" } }, { children: [jsxRuntime.jsx(NavItemIcon, Object.assign({ isStyled: true }, { children: nav === "services" ? jsxRuntime.jsx(SvgTemplatesActive, {}) : jsxRuntime.jsx(SvgTemplates, {}) })), jsxRuntime.jsx(NavItemText, { children: props.servicesItemLabel || "Services" })] })), props.tokens && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SidebarLabel, Object.assign({ isExpanded: props.isExpanded }, { children: props.walletLabel || "Wallet" })), jsxRuntime.jsx(StyledNavItem, Object.assign({ title: "Tokens", isExpanded: props.isExpanded, style: { pointerEvents: "none", paddingTop: 0 } }, { children: jsxRuntime.jsx(Card, Object.assign({ style: { padding: theme.space.sm } }, { children: jsxRuntime.jsxs(TokenContainer, { children: [jsxRuntime.jsx(SvgToken, { width: 32 }), jsxRuntime.jsx(Span, Object.assign({ isBold: true, style: {
3620
3637
  marginLeft: theme.space.xs,
3621
3638
  color: theme.palette.grey[800],
3622
3639
  } }, { children: props.tokens + " " + (props.tokensLabel || "tokens") }))] }) })) }))] }))] }), jsxRuntime.jsxs(NavItem, Object.assign({ isExpanded: props.isExpanded, hasBrandmark: true, title: "Be smart from the start", style: { pointerEvents: "none", paddingBottom: theme.space.md } }, { children: [jsxRuntime.jsx(NavItemIcon, { children: jsxRuntime.jsx(Logo, { type: "icon", size: 150 }) }), jsxRuntime.jsx(NavItemText, { children: "UNGUESS" })] }))] })));
@@ -3713,7 +3730,7 @@ const LoginForm = (props) => {
3713
3730
  ? true
3714
3731
  : isSubmitting
3715
3732
  ? true
3716
- : false, isPrimary: true, isPill: true, themeColor: theme.colors.accentHue, style: { marginBottom: theme.space.md } }, { children: props.buttonText })), status && (jsxRuntime.jsx("div", Object.assign({ style: { textAlign: "center" } }, { children: jsxRuntime.jsx(Message, Object.assign({ validation: "error" }, { children: status.message })) })))] })));
3733
+ : false, isPrimary: true, isAccent: true, style: { marginBottom: theme.space.md } }, { children: props.buttonText })), status && (jsxRuntime.jsx("div", Object.assign({ style: { textAlign: "center" } }, { children: jsxRuntime.jsx(Message, Object.assign({ validation: "error" }, { children: status.message })) })))] })));
3717
3734
  } }))] })), props.onBackClick && (jsxRuntime.jsxs(Button, Object.assign({ onClick: props.onBackClick, isBasic: true, style: { marginTop: theme.space.md } }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgChevronLeftStroke, {}) }), props.backToLabel || "Back to UNGUESS"] })))] }));
3718
3735
  };
3719
3736
 
@@ -3926,12 +3943,12 @@ const MainOverline = styled__default["default"](MD) `
3926
3943
  margin-bottom: ${({ theme }) => theme.space.md};
3927
3944
  `;
3928
3945
  const MainTitle = styled__default["default"].h1 `
3929
- color: ${({ theme }) => theme.colors.primaryHue};
3930
3946
  font-size: ${({ theme }) => theme.fontSizes.xxxl};
3931
3947
  font-weight: ${({ theme }) => theme.fontWeights.semibold};
3932
3948
  line-height: ${({ theme }) => theme.lineHeights.xxxl};
3933
3949
  width: 100%;
3934
3950
  margin-bottom: ${({ theme }) => theme.space.sm};
3951
+ ${props => reactTheming.retrieveComponentStyles("text.primary", props)}
3935
3952
  `;
3936
3953
  const MainDescription = styled__default["default"](LG) `
3937
3954
  color: ${({ theme }) => theme.palette.grey[600]};
@@ -4206,7 +4223,7 @@ const ControlsGroupCenter = ({ videoRef, isPlaying, onPlayChange, }) => {
4206
4223
  } }, { children: jsxRuntime.jsx(SvgBackSecondsFill, {}) })), jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, size: "large", onClick: handlePlay }, { children: isPlaying ? (jsxRuntime.jsx(SvgPauseFill, { style: { width: "24px", height: "24px" } })) : (jsxRuntime.jsx(SvgPlayFill, { style: { width: "24px", height: "24px" } })) })), jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
4207
4224
  onForward();
4208
4225
  e.stopPropagation();
4209
- } }, { children: jsxRuntime.jsx(SvgForwardSecondsFill, {}) })), jsxRuntime.jsx(Button, Object.assign({ isBright: true, isPill: true, onClick: (e) => {
4226
+ } }, { children: jsxRuntime.jsx(SvgForwardSecondsFill, {}) })), jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, isPill: true, onClick: (e) => {
4210
4227
  const newSpeed = getNextPlaybackRate(playBackRate);
4211
4228
  if (videoRef === null || videoRef === void 0 ? void 0 : videoRef.playbackRate) {
4212
4229
  setPlayBackRate(newSpeed);
@@ -4376,7 +4393,7 @@ const ControlsWrapper = styled__default["default"].div `
4376
4393
  const StyledProgress = styled__default["default"](Progress) `
4377
4394
  width: 100%;
4378
4395
  border-radius: 0;
4379
- color: ${({ theme }) => theme.palette.kale[400]};
4396
+ color: ${({ theme }) => theme.palette.kale[700]};
4380
4397
  cursor: pointer;
4381
4398
  > div {
4382
4399
  border-radius: 0;
@@ -4724,7 +4741,7 @@ const StyledItem = styled__default["default"].li `
4724
4741
  &:hover,
4725
4742
  &:focus,
4726
4743
  &:active {
4727
- background-color: ${theme.palette.kale[100]};
4744
+ background-color: ${getColor(props.theme.colors.primaryHue, 600, undefined, 0.08)};
4728
4745
  color: ${props.isDanger ? theme.palette.red[500] : theme.palette.grey[800]};
4729
4746
  }`};
4730
4747
 
@@ -4803,23 +4820,21 @@ var SvgInfoFill = function SvgInfoFill(props) {
4803
4820
  })));
4804
4821
  };
4805
4822
 
4806
- const StyledButton$2 = styled__default["default"](Button) `
4823
+ const StyledButton$1 = styled__default["default"](Button) `
4807
4824
  color: ${(props) => props.theme.palette.grey[800]};
4808
4825
  font-weight: ${(props) => props.theme.fontWeights.semibold};
4809
4826
  padding-left: 0;
4810
4827
  justify-content: flex-start;
4811
-
4812
- ${(props) => `
4813
- &:hover,
4814
- &:focus,
4815
- &:active {
4816
- background-color: ${props.theme.palette.kale[100]};
4817
- color: ${props.isDanger ? props.theme.palette.red[500] : props.theme.palette.grey[800]};
4818
- }`};
4819
4828
  `;
4820
- const PreviousButton = (props) => (jsxRuntime.jsxs(StyledButton$2, Object.assign({}, props, { isStretched: true }, { children: [jsxRuntime.jsx(StyledButton$2.StartIcon, { children: jsxRuntime.jsx(SvgChevronLeftStroke, {}) }), props.children] })));
4829
+ const PreviousButton = (props) => (jsxRuntime.jsxs(StyledButton$1, Object.assign({}, props, { isStretched: true }, { children: [jsxRuntime.jsx(StyledButton$1.StartIcon, { children: jsxRuntime.jsx(SvgChevronLeftStroke, {}) }), props.children] })));
4821
4830
 
4822
- const UgParagraph = styled__default["default"](reactTypography.Paragraph) ``;
4831
+ const UgParagraph = styled__default["default"](reactTypography.Paragraph) `
4832
+ ${p => p.color && `
4833
+ > div {
4834
+ color: ${p.color};
4835
+ }
4836
+ `};
4837
+ `;
4823
4838
  /**
4824
4839
  * Use Paragraph to render blocks of text with Garden styling.
4825
4840
  */
@@ -4831,18 +4846,18 @@ const getInitials = (name) => {
4831
4846
  return initials;
4832
4847
  };
4833
4848
 
4834
- const StyledButton$1 = styled__default["default"](Button) `
4849
+ const StyledButton = styled__default["default"](Button) `
4835
4850
  ${(props) => `
4836
4851
  &:hover,
4837
4852
  &:focus,
4838
4853
  &:active {
4839
- background-color: ${props.theme.palette.kale[100]};
4854
+ background-color: ${getColor(props.theme.colors.primaryHue, 600, undefined, 0.08)};
4840
4855
  color: ${props.isDanger
4841
4856
  ? props.theme.palette.red[500]
4842
4857
  : props.theme.palette.grey[800]};
4843
4858
  }`};
4844
4859
  `;
4845
- const StyledFooterButton = styled__default["default"](StyledButton$1) `
4860
+ const StyledFooterButton = styled__default["default"](StyledButton) `
4846
4861
  color: ${(props) => props.theme.palette.grey[800]};
4847
4862
  padding-left: 0;
4848
4863
  justify-content: flex-start;
@@ -4879,11 +4894,11 @@ const HelpItem = (props) => {
4879
4894
  if (email.length > 24) {
4880
4895
  csmEmailCut = `${email.substring(0, 21)}...`;
4881
4896
  }
4882
- const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledBody$2, { children: [jsxRuntime.jsx(Paragraph, Object.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, Object.assign({ isBold: true }, { children: props.csm.name })), jsxRuntime.jsxs(Description, { children: [jsxRuntime.jsx(Anchor, Object.assign({ href: `mailto:${props.csm.email}`, style: { color: theme.palette.grey[600] } }, { children: csmEmailCut })), jsxRuntime.jsxs(StyledButton$1, Object.assign({ isBasic: true, onClick: () => {
4897
+ const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledBody$2, { children: [jsxRuntime.jsx(Paragraph, Object.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, Object.assign({ isBold: true }, { children: props.csm.name })), jsxRuntime.jsxs(Description, { children: [jsxRuntime.jsx(Anchor, Object.assign({ href: `mailto:${props.csm.email}`, style: { color: theme.palette.grey[600] } }, { children: csmEmailCut })), jsxRuntime.jsxs(StyledButton, Object.assign({ isBasic: true, onClick: () => {
4883
4898
  var _a;
4884
4899
  copyToClipBoard();
4885
4900
  (_a = props.onCopyEmail) === null || _a === void 0 ? void 0 : _a.call(props);
4886
- }, size: "small", variant: "isBasic" }, { children: [jsxRuntime.jsx(StyledButton$1.StartIcon, { children: jsxRuntime.jsx(SvgCopy, {}) }), (_b = props.copyLabel) !== null && _b !== void 0 ? _b : "Copy"] }))] })] })] }), props.chatSupport && (jsxRuntime.jsxs(Footer, { children: [jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledFooterButton, Object.assign({ isStretched: true, isBasic: true, onClick: props.toggleChat, style: { paddingLeft: theme.space.xxs } }, { children: [jsxRuntime.jsx(StyledFooterButton.StartIcon, { children: jsxRuntime.jsx(SvgInfoFill, { color: theme.palette.blue[600] }) }), (_c = props.chatSupportLabel) !== null && _c !== void 0 ? _c : "Report a technical issue"] }))] }))] }));
4901
+ }, size: "small" }, { children: [jsxRuntime.jsx(StyledButton.StartIcon, { children: jsxRuntime.jsx(SvgCopy, {}) }), (_b = props.copyLabel) !== null && _b !== void 0 ? _b : "Copy"] }))] })] })] }), props.chatSupport && (jsxRuntime.jsxs(Footer, { children: [jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledFooterButton, Object.assign({ isStretched: true, isBasic: true, onClick: props.toggleChat, style: { paddingLeft: theme.space.xxs } }, { children: [jsxRuntime.jsx(StyledFooterButton.StartIcon, { children: jsxRuntime.jsx(SvgInfoFill, { color: theme.palette.blue[600] }) }), (_c = props.chatSupportLabel) !== null && _c !== void 0 ? _c : "Report a technical issue"] }))] }))] }));
4887
4902
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, Object.assign({ content: content, value: props.value, selectedItem: props.selectedItem, setActive: props.setActive, icon: jsxRuntime.jsx(SvgQuestionMark, { color: theme.palette.blue[600] }) }, { children: props.title })) }));
4888
4903
  };
4889
4904
 
@@ -4924,18 +4939,9 @@ const StyledButtonContainer = styled__default["default"].div `
4924
4939
  justify-content: flex-start;
4925
4940
  }
4926
4941
  `;
4927
- const StyledButton = styled__default["default"](Button) `
4928
- ${(props) => `
4929
- &:hover,
4930
- &:focus,
4931
- &:active {
4932
- background-color: ${props.theme.palette.kale[100]};
4933
- color: ${props.isDanger ? props.theme.palette.red[500] : props.theme.palette.grey[800]};
4934
- }`};
4935
- `;
4936
4942
  const LanguageItem = (props) => {
4937
4943
  var _a;
4938
- const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(StyledBody$1, { children: jsxRuntime.jsx(StyledButtonContainer, { children: Object.keys(props.languages).map((key) => (jsxRuntime.jsxs(StyledButton, Object.assign({ isBasic: true, isStretched: true, value: key, onClick: () => props.onSelectLanguage(key) }, { children: [jsxRuntime.jsx(StyledButton.StartIcon, { children: props.currentLanguage === key ? jsxRuntime.jsx(SvgCheckLg, {}) : jsxRuntime.jsx(SvgEmpty, {}) }), jsxRuntime.jsx(Span, Object.assign({ isBold: props.currentLanguage === key }, { children: props.languages[key].label }))] })))) }) })] }));
4944
+ const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(StyledBody$1, { children: jsxRuntime.jsx(StyledButtonContainer, { children: Object.keys(props.languages).map((key) => (jsxRuntime.jsxs(Button, Object.assign({ isBasic: true, isStretched: true, value: key, onClick: () => props.onSelectLanguage(key) }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: props.currentLanguage === key ? jsxRuntime.jsx(SvgCheckLg, {}) : jsxRuntime.jsx(SvgEmpty, {}) }), jsxRuntime.jsx(Span, Object.assign({ isBold: props.currentLanguage === key }, { children: props.languages[key].label }))] })))) }) })] }));
4939
4945
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, Object.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, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: [(_a = props.currentLanguageLabel) !== null && _a !== void 0 ? _a : "Now:", " " + props.languages[props.currentLanguage].label] }))] }) })) }));
4940
4946
  };
4941
4947
 
@@ -4948,7 +4954,7 @@ const CompanyHolder = styled__default["default"](SM) `
4948
4954
  text-transform: uppercase;
4949
4955
  margin-top: ${({ theme }) => theme.space.base * 2}px;
4950
4956
  margin-bottom: ${({ theme }) => theme.space.base * 4}px;
4951
- color: ${({ theme }) => theme.colors.primaryHue};
4957
+ ${props => reactTheming.retrieveComponentStyles("text.primary", props)}
4952
4958
  `;
4953
4959
  const UserDetails = styled__default["default"].div `
4954
4960
  margin-top: ${({ theme }) => theme.space.base * 4}px;
@@ -4964,11 +4970,6 @@ const StyledList = styled__default["default"].ul `
4964
4970
  padding: 0;
4965
4971
  margin: 0;
4966
4972
  `;
4967
- styled__default["default"](Anchor) `
4968
- &:hover {
4969
- text-decoration: none;
4970
- }
4971
- `;
4972
4973
  const UserMenu = (props) => {
4973
4974
  var _a;
4974
4975
  const [item, setActiveItem] = React.useState("");
@@ -5078,7 +5079,7 @@ const StyledTag = styled__default["default"](Tag) `
5078
5079
  const StyledSM = styled__default["default"](SM) `
5079
5080
  color: ${({ theme }) => theme.palette.grey[600]};
5080
5081
  span {
5081
- color: ${({ theme }) => theme.colors.primaryHue};
5082
+ ${props => reactTheming.retrieveComponentStyles("text.primary", props)}
5082
5083
  }
5083
5084
  `;
5084
5085
  const SliderCounter = ({ current, total, }) => {
@@ -5216,7 +5217,9 @@ const Slider = (props) => {
5216
5217
  }, [current]);
5217
5218
  return (jsxRuntime.jsxs(SliderContextProvider, { children: [settings.counter && jsxRuntime.jsx(SliderCounter, { current: current, total: slides }), jsxRuntime.jsx(StyledSlick, Object.assign({}, settings, { beforeChange: updateSlide }))] }));
5218
5219
  };
5219
- Slider.Slide = Slide;
5220
+ Slider.Slide = Slide;
5221
+ Slider.PrevButton = PrevButton;
5222
+ Slider.NextButton = NextButton;
5220
5223
 
5221
5224
  const UgStep = styled__default["default"](reactAccordions.Stepper.Step) `
5222
5225
  svg {
@@ -5395,10 +5398,10 @@ const StyledNavButton = styled__default["default"](reactButtons.Button) `
5395
5398
 
5396
5399
  ${({ theme, isSelected }) => isSelected &&
5397
5400
  `
5398
- color: ${theme.colors.primaryHue};
5401
+ color: ${getColor(theme.colors.primaryHue, 600)};
5399
5402
  background-color: transparent;
5400
5403
 
5401
- border-color: ${theme.colors.primaryHue};
5404
+ border-color: ${getColor(theme.colors.primaryHue, 600)};
5402
5405
  font-weight: ${theme.fontWeights.semibold};
5403
5406
  `}
5404
5407
 
@@ -5410,7 +5413,7 @@ const StyledNavButton = styled__default["default"](reactButtons.Button) `
5410
5413
 
5411
5414
  &:hover {
5412
5415
  background-color: transparent;
5413
- color: ${({ theme }) => theme.colors.primaryHue};
5416
+ $
5414
5417
  }
5415
5418
  `;
5416
5419
  const StyledTabList = styled__default["default"].div `
@@ -5532,7 +5535,7 @@ const TooltipComponent = (props) => {
5532
5535
  return jsxRuntime.jsx(reactTooltips.Tooltip, Object.assign({}, props, { zIndex: (_a = props.zIndex) !== null && _a !== void 0 ? _a : theme.levels.front }));
5533
5536
  };
5534
5537
  const Tooltip = styled__default["default"](TooltipComponent) `
5535
- box-shadow: ${({ theme }) => theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, reactTheming.getColor("neutralHue", 600, theme, 0.15))};
5538
+ box-shadow: ${({ theme }) => theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColor("neutralHue", 600, theme, 0.15))};
5536
5539
  `;
5537
5540
 
5538
5541
  const StyledTooltipModal = styled__default["default"](reactModals.TooltipModal) `
@@ -5598,7 +5601,7 @@ exports.Breadcrumb = Breadcrumb;
5598
5601
  exports.BulletChart = BulletChart;
5599
5602
  exports.Button = Button;
5600
5603
  exports.ButtonGroup = ButtonGroup;
5601
- exports.CHARTS_COLOR_PALETTE = CHARTS_COLOR_PALETTE;
5604
+ exports.CARD_COMPONENT_ID = CARD_COMPONENT_ID;
5602
5605
  exports.CampaignCard = CampaignCard;
5603
5606
  exports.CampaignExperientialIcon = SvgCampaignExperiential;
5604
5607
  exports.CampaignFunctionalIcon = SvgCampaignFunctional;
@@ -5660,6 +5663,7 @@ exports.Modal = Modal;
5660
5663
  exports.ModalFullScreen = ModalFullScreen;
5661
5664
  exports.MultiSelect = MultiSelect;
5662
5665
  exports.Nav = Nav;
5666
+ exports.NavAccordionItem = NavAccordionItem;
5663
5667
  exports.NavDivider = NavDivider;
5664
5668
  exports.NavItem = NavItem;
5665
5669
  exports.NavItemIcon = NavItemIcon;
@@ -5707,6 +5711,8 @@ exports.TableHead = Head;
5707
5711
  exports.TableRow = Row;
5708
5712
  exports.Tabs = Tabs;
5709
5713
  exports.Tag = Tag;
5714
+ exports.TextDescription = TextDescription;
5715
+ exports.TextLabel = TextLabel;
5710
5716
  exports.Textarea = Textarea;
5711
5717
  exports.Tiles = Tiles;
5712
5718
  exports.Timeline = Timeline;
@@ -5721,5 +5727,7 @@ exports.WaffleChart = WaffleChart;
5721
5727
  exports.XL = XL;
5722
5728
  exports.XXL = XXL;
5723
5729
  exports.XXXL = XXXL;
5730
+ exports.cardCmponentStyle = cardCmponentStyle;
5731
+ exports.getColor = getColor;
5724
5732
  exports.theme = theme;
5725
5733
  exports.useToast = useToast;