orcs-design-system 3.2.36 → 3.2.39

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 (37) hide show
  1. package/es/assets/Colour/index.js +1 -1
  2. package/es/components/ActionsMenu/index.js +48 -39
  3. package/es/components/ActionsMenu/useActionMenu.js +2 -2
  4. package/es/components/Avatar/index.js +5 -5
  5. package/es/components/Badge/index.js +1 -1
  6. package/es/components/Button/index.js +5 -5
  7. package/es/components/ButtonGroup/index.js +1 -1
  8. package/es/components/Checkbox/index.js +3 -3
  9. package/es/components/DatePicker/index.js +2 -2
  10. package/es/components/Divider/index.js +1 -1
  11. package/es/components/Header/Header.stories.js +6 -6
  12. package/es/components/Header/index.js +2 -2
  13. package/es/components/HeaderSimple/HeaderSimple.stories.js +2 -2
  14. package/es/components/Icon/index.js +1 -1
  15. package/es/components/Modal/Modal.stories.js +226 -4
  16. package/es/components/Modal/index.js +1 -1
  17. package/es/components/Popover/index.js +45 -25
  18. package/es/components/ProgressBar/index.js +2 -2
  19. package/es/components/RadioButton/index.js +2 -2
  20. package/es/components/Range/index.js +17 -2
  21. package/es/components/Select/index.js +11 -12
  22. package/es/components/SideNav/SideNav.stories.js +22 -33
  23. package/es/components/SideNav/index.js +9 -30
  24. package/es/components/Sidebar/index.js +1 -1
  25. package/es/components/StyledLink/StyledLink.stories.js +3 -4
  26. package/es/components/Table/Table.stories.js +2 -2
  27. package/es/components/Table/getExpandColumnConfig.js +5 -5
  28. package/es/components/Table/muiStyleOverrides.js +1 -2
  29. package/es/components/Tabs/index.js +3 -3
  30. package/es/components/Tag/index.js +4 -4
  31. package/es/components/TextArea/index.js +2 -2
  32. package/es/components/TextInput/index.js +11 -11
  33. package/es/components.test.js +72 -1
  34. package/es/systemThemeCollapsed.js +9 -9
  35. package/es/systemtheme.js +9 -9
  36. package/es/utils/floatingUiHelpers.js +3 -8
  37. package/package.json +18 -13
@@ -8,7 +8,7 @@ export const Colour = styled("div").withConfig({
8
8
  componentId: "sc-uyvdow-0"
9
9
  })(props => {
10
10
  return css({
11
- backgroundColor: themeGet("colors.".concat(props.bg))(props),
11
+ backgroundColor: themeGet(`colors.${props.bg}`)(props),
12
12
  width: "75px",
13
13
  height: "75px"
14
14
  });
@@ -14,7 +14,7 @@ const crossTransform2 = keyframes(["0%{transform:translate(0,6px);border-radius:
14
14
  const StyledActionsMenuContainer = styled.div.withConfig({
15
15
  displayName: "ActionsMenu__StyledActionsMenuContainer",
16
16
  componentId: "sc-yvbni2-0"
17
- })(["pointer-events:none;opacity:0;visibility:hidden;&.visible{visibility:visible;opacity:1;pointer-events:auto;}"]);
17
+ })(["pointer-events:none;opacity:0;visibility:hidden;&.hack-for-legacy-tests{position:absolute;pointer-events:none;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border-width:0;}&.visible{visibility:visible;opacity:1;pointer-events:auto;}"]);
18
18
  const Wrapper = styled.div.withConfig({
19
19
  displayName: "ActionsMenu__Wrapper",
20
20
  componentId: "sc-yvbni2-1"
@@ -40,18 +40,14 @@ export const ActionsMenuHeading = styled(props => {
40
40
  // // Only sets `aria-labelledby` on the Popover root element
41
41
  // // if this component is mounted inside it.
42
42
  useLayoutEffect(() => {
43
- var _actionMenu$setLabelI;
44
- actionMenu === null || actionMenu === void 0 || (_actionMenu$setLabelI = actionMenu.setLabelId) === null || _actionMenu$setLabelI === void 0 || _actionMenu$setLabelI.call(actionMenu, id);
45
- return () => {
46
- var _actionMenu$setLabelI2;
47
- return actionMenu === null || actionMenu === void 0 || (_actionMenu$setLabelI2 = actionMenu.setLabelId) === null || _actionMenu$setLabelI2 === void 0 ? void 0 : _actionMenu$setLabelI2.call(actionMenu, undefined);
48
- };
43
+ actionMenu?.setLabelId?.(id);
44
+ return () => actionMenu?.setLabelId?.(undefined);
49
45
  }, [id, actionMenu]);
50
46
  return /*#__PURE__*/_jsx("div", {
51
47
  ...props,
52
48
  onKeyUp: e => {
53
- if (e.key === commonKeys.ENTER && props !== null && props !== void 0 && props.canClick) {
54
- props === null || props === void 0 || props.onClick();
49
+ if (e.key === commonKeys.ENTER && props?.canClick) {
50
+ props?.onClick();
55
51
  }
56
52
  }
57
53
  });
@@ -63,7 +59,6 @@ export const ActionsMenuHeading = styled(props => {
63
59
  componentId: "sc-yvbni2-5"
64
60
  })(["color:", ";padding:8px;width:100%;font-size:", ";font-weight:", ";border-bottom:solid 1px ", ";white-space:nowrap;cursor:", ";"], props => themeGet("colors.white")(props), props => themeGet("fontSizes.1")(props), props => themeGet("fontWeights.1")(props), props => themeGet("colors.greyDarkest")(props), props => props.canClick ? "pointer" : "default");
65
61
  export const ActionsMenuItem = styled(props => {
66
- var _actionMenu$getItemPr;
67
62
  const {
68
63
  id,
69
64
  onItemClick,
@@ -77,14 +72,14 @@ export const ActionsMenuItem = styled(props => {
77
72
  const disabled = props.disabled;
78
73
  let newProps = {
79
74
  ...others,
80
- ...((actionMenu === null || actionMenu === void 0 || (_actionMenu$getItemPr = actionMenu.getItemProps) === null || _actionMenu$getItemPr === void 0 ? void 0 : _actionMenu$getItemPr.call(actionMenu)) || {})
75
+ ...(actionMenu?.getItemProps?.() || {})
81
76
  };
82
77
  const {
83
78
  onClick: originalOnClick
84
79
  } = newProps;
85
80
  const onClick = useMemo(() => e => {
86
- onItemClick === null || onItemClick === void 0 || onItemClick(e);
87
- originalOnClick === null || originalOnClick === void 0 || originalOnClick(e);
81
+ onItemClick?.(e);
82
+ originalOnClick?.(e);
88
83
  }, [originalOnClick, onItemClick]);
89
84
  if (Component === "button") {
90
85
  newProps = {
@@ -127,14 +122,14 @@ export const ActionsMenuBody = _ref => {
127
122
  open: toggleState,
128
123
  onOpenChange: (_, e) => {
129
124
  if (e) {
130
- onToggle === null || onToggle === void 0 || onToggle(e);
125
+ onToggle?.(e);
131
126
  }
132
127
  }
133
128
  });
134
129
  const childrenRef = children.ref;
135
130
  const triggerRef = useMergeRefs([actionMenu.refs.setReference, childrenRef]);
136
131
  const ref = useMergeRefs([actionMenu.refs.setFloating]);
137
- const triggerProps = {
132
+ const triggerProps = useMemo(() => ({
138
133
  ariaLabel,
139
134
  "aria-label": ariaLabel,
140
135
  onFocus: onTriggerFocus,
@@ -146,7 +141,7 @@ export const ActionsMenuBody = _ref => {
146
141
  "data-state": actionMenu.open ? "open" : "closed",
147
142
  "data-testid": dataTestId
148
143
  })
149
- };
144
+ }), [ariaLabel, onTriggerFocus, id, actionMenu, onToggle, props, triggerRef, dataTestId]);
150
145
  let triggerComponent = /*#__PURE__*/_jsx(Control, {
151
146
  ...triggerProps,
152
147
  children: /*#__PURE__*/_jsx(Icon, {
@@ -154,9 +149,9 @@ export const ActionsMenuBody = _ref => {
154
149
  })
155
150
  });
156
151
  if (customTriggerComponent) {
157
- triggerComponent = /*#__PURE__*/React.cloneElement(customTriggerComponent, {
152
+ triggerComponent = /*#__PURE__*/_jsx("div", {
158
153
  ...triggerProps,
159
- ...((customTriggerComponent === null || customTriggerComponent === void 0 ? void 0 : customTriggerComponent.props) || {})
154
+ children: customTriggerComponent
160
155
  });
161
156
  }
162
157
  const value = useMemo(() => ({
@@ -168,24 +163,15 @@ export const ActionsMenuBody = _ref => {
168
163
  },
169
164
  actionMenu
170
165
  }), [closeOnClick, closeMenu, id, actionMenu]);
171
- const visible = actionMenu.context.open;
172
- const ActionMenuContent = /*#__PURE__*/_jsx(StyledActionsMenuContainer, {
173
- ref: ref,
174
- style: {
175
- ...actionMenu.floatingStyles,
176
- zIndex: getFloatingUiZIndex(actionMenu.refs.reference)
177
- },
178
- "aria-labelledby": actionMenu.labelId,
179
- ...actionMenu.getFloatingProps(props),
180
- className: "actionMenu-content ".concat(visible ? "visible" : ""),
181
- "aria-hidden": visible ? "false" : "true",
182
- "data-testid": "".concat(dataTestId, "__menu"),
183
- children: /*#__PURE__*/_jsx(Menu, {
184
- menuWidth: menuWidth,
185
- isOpen: toggleState,
186
- children: children
187
- })
188
- });
166
+ const style = useMemo(() => ({
167
+ ...actionMenu.floatingStyles,
168
+ zIndex: getFloatingUiZIndex(actionMenu.refs.reference)
169
+ }), [actionMenu.floatingStyles, actionMenu.refs.reference]);
170
+ const menuDataTestId = useMemo(() => `${dataTestId}__menu`, [dataTestId]);
171
+ const {
172
+ getFloatingProps
173
+ } = actionMenu;
174
+ const floatingProps = useMemo(() => getFloatingProps(props), [getFloatingProps, props]);
189
175
  const component = /*#__PURE__*/_jsx(ActionMenuContext.Provider, {
190
176
  value: value,
191
177
  children: /*#__PURE__*/_jsxs(Wrapper, {
@@ -195,16 +181,39 @@ export const ActionsMenuBody = _ref => {
195
181
  children: /*#__PURE__*/_jsx(FloatingFocusManager, {
196
182
  context: actionMenu.context,
197
183
  modal: true,
198
- children: ActionMenuContent
184
+ children: /*#__PURE__*/_jsx(StyledActionsMenuContainer, {
185
+ "aria-labelledby": actionMenu.labelId,
186
+ "data-testid": menuDataTestId,
187
+ ...floatingProps,
188
+ style: style,
189
+ className: "actionMenu-content visible",
190
+ "aria-hidden": "false",
191
+ ref: ref,
192
+ children: /*#__PURE__*/_jsx(Menu, {
193
+ menuWidth: menuWidth,
194
+ isOpen: toggleState,
195
+ children: children
196
+ })
197
+ })
199
198
  })
200
- }) : (
199
+ }) :
200
+ /*#__PURE__*/
201
201
  /* * HACK: Fixing all the broken tests in teamform-app-ui is too
202
202
  time consuming * right this moment with a lot of the tests asserting
203
203
  against ActionsMenu items. * Rendering the markup even when closed
204
204
  but in a hidden state ensures that tests pass. * Ideally, we would
205
205
  update all the tests in teamform-app-ui to open the ActionsMenu *
206
206
  before assertion. **/
207
- ActionMenuContent)]
207
+ _jsx(StyledActionsMenuContainer, {
208
+ "aria-labelledby": actionMenu.labelId,
209
+ "data-testid": menuDataTestId,
210
+ className: "actionMenu-content hack-for-legacy-tests",
211
+ children: /*#__PURE__*/_jsx(Menu, {
212
+ menuWidth: menuWidth,
213
+ isOpen: toggleState,
214
+ children: children
215
+ })
216
+ })]
208
217
  })
209
218
  });
210
219
  return theme ? /*#__PURE__*/_jsx(ThemeProvider, {
@@ -14,8 +14,8 @@ export default function useActionMenu(_ref) {
14
14
  const [labelId, setLabelId] = useState();
15
15
  const [descriptionId, setDescriptionId] = useState();
16
16
  const arrowRef = useRef();
17
- const open = controlledOpen !== null && controlledOpen !== void 0 ? controlledOpen : uncontrolledOpen;
18
- const setOpen = setControlledOpen !== null && setControlledOpen !== void 0 ? setControlledOpen : setUncontrolledOpen;
17
+ const open = controlledOpen ?? uncontrolledOpen;
18
+ const setOpen = setControlledOpen ?? setUncontrolledOpen;
19
19
  const data = useFloating({
20
20
  placement,
21
21
  open,
@@ -114,7 +114,7 @@ const Shape = styled("div").withConfig({
114
114
  alignItems: "center",
115
115
  justifyContent: "center",
116
116
  textAlign: "center",
117
- textTransform: "".concat(props => props.uppercase ? "uppercase" : "none"),
117
+ textTransform: `${props => props.uppercase ? "uppercase" : "none"}`,
118
118
  a: {
119
119
  color: themeGet("colors.greyDarkest")(props)
120
120
  },
@@ -166,7 +166,7 @@ const Title = styled(_ref => {
166
166
  ...props
167
167
  } = _ref;
168
168
  const Heading = Header[titleLevel];
169
- return /*#__PURE__*/React.cloneElement( /*#__PURE__*/_jsx(Heading, {}), props);
169
+ return /*#__PURE__*/React.cloneElement(/*#__PURE__*/_jsx(Heading, {}), props);
170
170
  }).withConfig({
171
171
  displayName: "Avatar__Title",
172
172
  componentId: "sc-1wtet2j-4"
@@ -276,7 +276,7 @@ const Avatar = _ref2 => {
276
276
  if (imageAlt) {
277
277
  return imageAlt;
278
278
  } else if (typeof title === "string") {
279
- return "Avatar for ".concat(title);
279
+ return `Avatar for ${title}`;
280
280
  }
281
281
  }, [imageAlt, title]);
282
282
  const component = /*#__PURE__*/_jsxs(AvatarWrapper, {
@@ -351,10 +351,10 @@ Avatar.propTypes = {
351
351
  /** Specifies the alt text for an image. This must be specified if image prop is used and title prop is not a string. */
352
352
  imageAlt: (props, propName) => {
353
353
  if (props.image && props.title && typeof props.title !== "string" && (props[propName] == null || props[propName] === "")) {
354
- return new Error("Missing prop `".concat(propName, "` not specified for Avatar component. When `image` is provided, `").concat(propName, "` is required."));
354
+ return new Error(`Missing prop \`${propName}\` not specified for Avatar component. When \`image\` is provided, \`${propName}\` is required.`);
355
355
  }
356
356
  if (props[propName] && typeof props[propName] !== "string") {
357
- return new Error("Invalid propType `".concat(propName, "` supplied to Avatar component. Expected `string`, received `").concat(typeof props[propName], "`."));
357
+ return new Error(`Invalid propType \`${propName}\` supplied to Avatar component. Expected \`string\`, received \`${typeof props[propName]}\`.`);
358
358
  }
359
359
  return null;
360
360
  },
@@ -20,7 +20,7 @@ const Item = styled("span").withConfig({
20
20
  display: "inline-block",
21
21
  position: "relative",
22
22
  pt: themeGet("space.2")(props),
23
- pb: "calc(".concat(themeGet("space.2")(props), " + 1px)"),
23
+ pb: `calc(${themeGet("space.2")(props)} + 1px)`,
24
24
  px: themeGet("space.3")(props),
25
25
  cursor: "default",
26
26
  borderRadius: 1,
@@ -109,18 +109,18 @@ const getVariantStyle = props => {
109
109
  if (props.disabled) return styles.disabled;
110
110
  return styles[props.variant] || styles.default;
111
111
  };
112
- const getSpace = getter => props => themeGet("space.".concat(getter(props)))(props);
112
+ const getSpace = getter => props => themeGet(`space.${getter(props)}`)(props);
113
113
  const buttonStyles = css(["background:", ";color:", ";border-color:", ";display:flex;align-items:center;justify-content:center;appearance:none;box-shadow:none;margin:0;text-decoration:none;text-align:center;font-family:", ";font-weight:", ";border-radius:", ";transition:", ";border-width:", ";cursor:", ";width:", ";height:auto;font-size:", ";padding:", " ", ";svg{margin-right:", ";margin-left:", ";}&:hover{background:", ";border-color:", ";border-width:", ";border-style:solid;}&:focus{outline:0;box-shadow:", " ", ";}", " ", ""], themeGet(VARIANT_COLORS.default.background), themeGet(VARIANT_COLORS.default.color), themeGet("colors.primary"), themeGet("fonts.main"), themeGet("fontWeights.2"), themeGet("radii.2"), themeGet("transition.transitionDefault"), themeGet("borderWidths.1"), props => props.disabled ? "not-allowed" : props.isLoading ? "progress" : "pointer", props => props.fullWidth ? "100%" : "auto", props => {
114
114
  let fontSize = 2;
115
115
  if (props.large && props.iconOnly) fontSize = 5;
116
116
  if (props.large) fontSize = 3;
117
117
  if (props.small) fontSize = 1;
118
- return themeGet("fontSizes.".concat(fontSize))(props);
118
+ return themeGet(`fontSizes.${fontSize}`)(props);
119
119
  }, getSpace(props => props.large ? "s" : props.small ? "xxs" : "xs"), getSpace(props => props.large ? "r" : props.small ? "s" : "between"), getSpace(props => !props.iconLeft ? "" : props.small ? "xs" : "s"), getSpace(props => !props.iconRight ? "" : props.small ? "xs" : "s"), themeGet(VARIANT_COLORS.default.hovered.background), themeGet("colors.primaryDark"), themeGet("borderWidths.1"), themeGet("shadows.thinOutline"), themeGet("colors.primaryDarker"), getVariantStyle, compose(space, layout, color, border));
120
120
  const attrs = props => ({
121
121
  "data-testid": props.dataTestId || props["data-testid"],
122
122
  disabled: props.disabled || props.variant == "disabled",
123
- className: "".concat(props.className || "", " variant-").concat(props.variant || "default")
123
+ className: `${props.className || ""} variant-${props.variant || "default"}`
124
124
  });
125
125
  const StyledButton = styled("button").withConfig({
126
126
  shouldForwardProp
@@ -173,10 +173,10 @@ const buttonPropTypes = {
173
173
  /** Specifies aria-label for iconOnly buttons. This is only required if the iconOnly button is used, as it doesn't have supporting text for accessibility.*/
174
174
  ariaLabel: (props, propName) => {
175
175
  if (props.iconOnly && (props[propName] == null || props[propName] === "")) {
176
- return new Error("Missing prop `".concat(propName, "` not specified for Button component. When `iconOnly` is true, `").concat(propName, "` is required."));
176
+ return new Error(`Missing prop \`${propName}\` not specified for Button component. When \`iconOnly\` is true, \`${propName}\` is required.`);
177
177
  }
178
178
  if (props[propName] && typeof props[propName] !== "string") {
179
- return new Error("Invalid propType for `".concat(propName, "` supplied to Button component. Expected `string`, received `").concat(typeof props[propName], "`."));
179
+ return new Error(`Invalid propType for \`${propName}\` supplied to Button component. Expected \`string\`, received \`${typeof props[propName]}\`.`);
180
180
  }
181
181
  return null;
182
182
  },
@@ -56,7 +56,7 @@ const ButtonGroupLabel = styled("label").withConfig({
56
56
  borderRadius: themeGet("radii.2")(props),
57
57
  display: "flex",
58
58
  alignItems: "center",
59
- padding: "0 ".concat(themeGet("space.3")(props)),
59
+ padding: `0 ${themeGet("space.3")(props)}`,
60
60
  transition: themeGet("transition.transitionDefault")(props),
61
61
  fontSize: themeGet("fontSizes.1")(props),
62
62
  fontWeight: themeGet("fontWeights.2")(props),
@@ -24,7 +24,7 @@ const Control = styled.input.attrs({
24
24
  }).withConfig({
25
25
  displayName: "Checkbox__Control",
26
26
  componentId: "sc-p4d19b-2"
27
- })(["opacity:0;position:absolute;margin:0;z-index:-1;width:0;height:0;overflow:hidden;pointer-events:none;&:focus{+ div{border-radius:2px;box-shadow:", ";}}+ div{transition:", ";&:before{background-color:", ";}> div{color:", ";}}:focus + div div:after{opacity:0.2;}:checked{+ div div:before{box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0px 0 20px,0px 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px;.animate&{animation:", " 300ms forwards ease-out;}}}&:not(:checked) + div div:before{.animate&{animation:", " 300ms forwards ease-out;}}"], props => props.colour ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors." + props.colour + "30")(props) : themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.black20")(props), themeGet("transition.transitionDefault"), props => props.colour ? themeGet("colors.".concat(props.colour))(props) : themeGet("colors.greyDarker")(props), props => props.colour ? themeGet("colors.".concat(props.colour))(props) : themeGet("colors.greyDarker")(props), checkboxOn, checkboxOff);
27
+ })(["opacity:0;position:absolute;margin:0;z-index:-1;width:0;height:0;overflow:hidden;pointer-events:none;&:focus{+ div{border-radius:2px;box-shadow:", ";}}+ div{transition:", ";&:before{background-color:", ";}> div{color:", ";}}:focus + div div:after{opacity:0.2;}:checked{+ div div:before{box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0px 0 20px,0px 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px;.animate&{animation:", " 300ms forwards ease-out;}}}&:not(:checked) + div div:before{.animate&{animation:", " 300ms forwards ease-out;}}"], props => props.colour ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors." + props.colour + "30")(props) : themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.black20")(props), themeGet("transition.transitionDefault"), props => props.colour ? themeGet(`colors.${props.colour}`)(props) : themeGet("colors.greyDarker")(props), props => props.colour ? themeGet(`colors.${props.colour}`)(props) : themeGet("colors.greyDarker")(props), checkboxOn, checkboxOff);
28
28
  const Box = styled.div.withConfig({
29
29
  displayName: "Checkbox__Box",
30
30
  componentId: "sc-p4d19b-3"
@@ -114,10 +114,10 @@ Checkbox.propTypes = {
114
114
  // ariaLabel prop must be specified if label is not provided
115
115
  ariaLabel: (props, propName) => {
116
116
  if (!props.label && (props[propName] == null || props[propName] === "")) {
117
- return new Error("Missing prop `".concat(propName, "` not specified for Checkbox component. When `label` is not provided, `").concat(propName, "` is required."));
117
+ return new Error(`Missing prop \`${propName}\` not specified for Checkbox component. When \`label\` is not provided, \`${propName}\` is required.`);
118
118
  }
119
119
  if (props[propName] && typeof props[propName] !== "string") {
120
- return new Error("Invalid propType `".concat(propName, "` supplied to Checkbox component. Expected `string`, received `").concat(typeof props[propName], "`."));
120
+ return new Error(`Invalid propType \`${propName}\` supplied to Checkbox component. Expected \`string\`, received \`${typeof props[propName]}\`.`);
121
121
  }
122
122
  return null;
123
123
  },
@@ -77,12 +77,12 @@ const DatePickerContainer = styled.div.withConfig({
77
77
  if (props.width) {
78
78
  if (props.width.includes("px")) {
79
79
  const widthValue = parseInt(props.width, 10);
80
- return "".concat(widthValue * 2, "px");
80
+ return `${widthValue * 2}px`;
81
81
  }
82
82
  return props.width;
83
83
  }
84
84
  return "calc(134px * 2)";
85
- }, props => props.width ? props.width : "134px", props => themeGet("colors.greyLight")(props), props => props.zIndex ? props.zIndex : "1", props => themeGet("fontSizes.2")(props), props => themeGet("fontWeights.1")(props), props => themeGet("transition.transitionDefault")(props), props => themeGet("colors.white")(props), props => themeGet("colors.greyDarkest")(props), props => props.height ? props.height : "40px", props => props.width ? props.width : "134px", props => themeGet("radii.2")(props), props => props.invalid ? themeGet("colors.danger")(props) : themeGet("colors.black30")(props), props => props.invalid ? themeGet("colors.danger")(props) : themeGet("colors.primary")(props), props => themeGet("shadows.thinOutline")(props), props => themeGet("colors.primary30")(props), props => props.invalid ? themeGet("colors.danger")(props) : themeGet("colors.primary")(props), props => themeGet("colors.grey")(props), props => themeGet("colors.greyLightest")(props), props => themeGet("colors.grey")(props), props => themeGet("shadows.thinOutline")(props), props => themeGet("colors.primary30")(props), props => themeGet("colors.primary")(props), props => "".concat(themeGet("radii.2")(props), " 0 0 ").concat(themeGet("radii.2")(props)), props => "0 ".concat(themeGet("radii.2")(props), " ").concat(themeGet("radii.2")(props), " 0"), props => "0 ".concat(themeGet("radii.2")(props), " ").concat(themeGet("radii.2")(props), " 0"), props => "0 ".concat(themeGet("radii.2")(props), " ").concat(themeGet("radii.2")(props), " 0"), props => props.height ? props.height : "40px", props => props.invalid ? themeGet("colors.danger")(props) : themeGet("colors.primary")(props), props => themeGet("colors.greyDarkest")(props), props => themeGet("transition.transitionDefault")(props), props => themeGet("colors.primary")(props), props => themeGet("colors.primary")(props), props => themeGet("colors.primary")(props), props => themeGet("transition.transitionDefault")(props), props => themeGet("colors.primaryDark")(props), props => themeGet("colors.primaryLight")(props), props => themeGet("colors.primaryLight")(props), props => themeGet("colors.white")(props), props => themeGet("colors.primary")(props), props => themeGet("colors.primary")(props), props => themeGet("colors.white")(props), props => themeGet("colors.primaryDarker")(props), props => themeGet("colors.primaryDarker")(props), props => props.zIndex ? props.zIndex + 1 : "2");
85
+ }, props => props.width ? props.width : "134px", props => themeGet("colors.greyLight")(props), props => props.zIndex ? props.zIndex : "1", props => themeGet("fontSizes.2")(props), props => themeGet("fontWeights.1")(props), props => themeGet("transition.transitionDefault")(props), props => themeGet("colors.white")(props), props => themeGet("colors.greyDarkest")(props), props => props.height ? props.height : "40px", props => props.width ? props.width : "134px", props => themeGet("radii.2")(props), props => props.invalid ? themeGet("colors.danger")(props) : themeGet("colors.black30")(props), props => props.invalid ? themeGet("colors.danger")(props) : themeGet("colors.primary")(props), props => themeGet("shadows.thinOutline")(props), props => themeGet("colors.primary30")(props), props => props.invalid ? themeGet("colors.danger")(props) : themeGet("colors.primary")(props), props => themeGet("colors.grey")(props), props => themeGet("colors.greyLightest")(props), props => themeGet("colors.grey")(props), props => themeGet("shadows.thinOutline")(props), props => themeGet("colors.primary30")(props), props => themeGet("colors.primary")(props), props => `${themeGet("radii.2")(props)} 0 0 ${themeGet("radii.2")(props)}`, props => `0 ${themeGet("radii.2")(props)} ${themeGet("radii.2")(props)} 0`, props => `0 ${themeGet("radii.2")(props)} ${themeGet("radii.2")(props)} 0`, props => `0 ${themeGet("radii.2")(props)} ${themeGet("radii.2")(props)} 0`, props => props.height ? props.height : "40px", props => props.invalid ? themeGet("colors.danger")(props) : themeGet("colors.primary")(props), props => themeGet("colors.greyDarkest")(props), props => themeGet("transition.transitionDefault")(props), props => themeGet("colors.primary")(props), props => themeGet("colors.primary")(props), props => themeGet("colors.primary")(props), props => themeGet("transition.transitionDefault")(props), props => themeGet("colors.primaryDark")(props), props => themeGet("colors.primaryLight")(props), props => themeGet("colors.primaryLight")(props), props => themeGet("colors.white")(props), props => themeGet("colors.primary")(props), props => themeGet("colors.primary")(props), props => themeGet("colors.white")(props), props => themeGet("colors.primaryDarker")(props), props => themeGet("colors.primaryDarker")(props), props => props.zIndex ? props.zIndex + 1 : "2");
86
86
 
87
87
  /**
88
88
  *
@@ -10,7 +10,7 @@ const Item = styled.div.withConfig({
10
10
  }).withConfig({
11
11
  displayName: "Divider__Item",
12
12
  componentId: "sc-106mlj-0"
13
- })(["", " ", " ", " display:block;width:100%;height:", ";grid-column:", ";border-bottom:", ";background-color:", ";"], space, layout, color, props => props.thick ? "3px" : "1px", props => props.spanGrid ? "1 / -1" : "auto", props => props.dash && props.thick && props.light ? "dashed 3px ".concat(themeGet("colors.black10")(props)) : props.dash && props.thick && props.inverted ? "dashed 3px ".concat(themeGet("colors.white20")(props)) : props.dash && props.inverted ? "dashed 1px ".concat(themeGet("colors.white20")(props)) : props.dash && props.light ? "dashed 1px ".concat(themeGet("colors.black10")(props)) : props.dash && props.thick ? "dashed 3px ".concat(themeGet("colors.black20")(props)) : props.dash ? "dashed 1px ".concat(themeGet("colors.black20")(props)) : "none", props => props.dash ? "transparent" : props.inverted ? themeGet("colors.white20")(props) : props.light ? themeGet("colors.black10")(props) : themeGet("colors.black20")(props));
13
+ })(["", " ", " ", " display:block;width:100%;height:", ";grid-column:", ";border-bottom:", ";background-color:", ";"], space, layout, color, props => props.thick ? "3px" : "1px", props => props.spanGrid ? "1 / -1" : "auto", props => props.dash && props.thick && props.light ? `dashed 3px ${themeGet("colors.black10")(props)}` : props.dash && props.thick && props.inverted ? `dashed 3px ${themeGet("colors.white20")(props)}` : props.dash && props.inverted ? `dashed 1px ${themeGet("colors.white20")(props)}` : props.dash && props.light ? `dashed 1px ${themeGet("colors.black10")(props)}` : props.dash && props.thick ? `dashed 3px ${themeGet("colors.black20")(props)}` : props.dash ? `dashed 1px ${themeGet("colors.black20")(props)}` : "none", props => props.dash ? "transparent" : props.inverted ? themeGet("colors.white20")(props) : props.light ? themeGet("colors.black10")(props) : themeGet("colors.black20")(props));
14
14
  export default function Divider(_ref) {
15
15
  let {
16
16
  light,
@@ -17,10 +17,10 @@ export default {
17
17
  component: Header
18
18
  };
19
19
  export const defaultHeader = () => /*#__PURE__*/_jsxs(Header, {
20
- appName: "App Name",
21
- userName: "Michael",
20
+ appName: `App Name`,
21
+ userName: `Michael`,
22
22
  avatarSource: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/62f1f587bc47b25676f9ed1d_bw_avatar_adam.png",
23
- clientInfo: "Tenant: ci2153 Workspace: 20k-v5 [lb5ctx] UI_Version: 8c315c2 [4412] Backend_Version: dabc261 [3578]",
23
+ clientInfo: `Tenant: ci2153 Workspace: 20k-v5 [lb5ctx] UI_Version: 8c315c2 [4412] Backend_Version: dabc261 [3578]`,
24
24
  logoutFunction: action("clicked-logout"),
25
25
  sideMenuContent: /*#__PURE__*/_jsxs(StyledLink, {
26
26
  href: "#",
@@ -150,11 +150,11 @@ export const headerWithWorkspaceSwitching = () => {
150
150
  })]
151
151
  });
152
152
  return /*#__PURE__*/_jsx(Header, {
153
- appName: "App Name",
153
+ appName: `App Name`,
154
154
  currentWorkspace: currentWorkspace,
155
- userName: "Michael",
155
+ userName: `Michael`,
156
156
  avatarSource: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/62f1f587bc47b25676f9ed1d_bw_avatar_adam.png",
157
- clientInfo: "Tenant: ci2153 Workspace: 20k-v5 [lb5ctx] UI_Version: 8c315c2 [4412] Backend_Version: dabc261 [3578]",
157
+ clientInfo: `Tenant: ci2153 Workspace: 20k-v5 [lb5ctx] UI_Version: 8c315c2 [4412] Backend_Version: dabc261 [3578]`,
158
158
  logoutFunction: action("clicked-logout"),
159
159
  workspaceSwitcherContent: select,
160
160
  navToggleId: "headerWithWorkspaceSwitching",
@@ -381,7 +381,7 @@ const MobileNavToggle = styled("input").withConfig({
381
381
  }
382
382
  }));
383
383
  const MobileNavMenu = styled("div").attrs(props => ({
384
- "aria-hidden": "".concat(!props.isOpen)
384
+ "aria-hidden": `${!props.isOpen}`
385
385
  })).withConfig({
386
386
  displayName: "Header__MobileNavMenu",
387
387
  componentId: "sc-yf04b-20"
@@ -596,7 +596,7 @@ export default function Header(_ref) {
596
596
  }), /*#__PURE__*/_jsx(MobileMenuToggle, {
597
597
  theme: theme,
598
598
  onClick: toggleMobileMenu,
599
- "aria-expanded": "".concat(mobileMenuIsOpen),
599
+ "aria-expanded": `${mobileMenuIsOpen}`,
600
600
  "aria-label": "Menu",
601
601
  children: /*#__PURE__*/_jsx(Hamburger, {
602
602
  id: "hamburger-menu-icon"
@@ -7,8 +7,8 @@ export default {
7
7
  component: HeaderSimple
8
8
  };
9
9
  export const defaultHeader = () => /*#__PURE__*/_jsx(HeaderSimple, {
10
- appName: "App Name",
11
- userName: "Michael",
10
+ appName: `App Name`,
11
+ userName: `Michael`,
12
12
  avatarSource: "https://api.dicebear.com/7.x/personas/svg?seed=mike",
13
13
  avatarAlt: "Avatar for Michael",
14
14
  currentWorskapce: "Org Design Workspace"
@@ -65,7 +65,7 @@ const Icon = /*#__PURE__*/React.forwardRef(function Icon(_ref, ref) {
65
65
  spin: spin,
66
66
  symbol: symbol,
67
67
  transform: transform,
68
- title: title && "Icon-".concat(title)
68
+ title: title && `Icon-${title}`
69
69
  })
70
70
  });
71
71
  return theme ? /*#__PURE__*/_jsx(ThemeProvider, {