@autoguru/overdrive 4.34.0 → 4.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/dist/components/Alert/Alert.js +1 -2
  2. package/dist/components/Anchor/Anchor.js +3 -4
  3. package/dist/components/AutoSuggest/AutoSuggest.css.js +3 -3
  4. package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -1
  5. package/dist/components/AutoSuggest/AutoSuggest.js +8 -9
  6. package/dist/components/Box/Box.js +2 -2
  7. package/dist/components/Box/argTypes.d.ts.map +1 -1
  8. package/dist/components/Box/argTypes.js +2 -2
  9. package/dist/components/Box/useBoxStyles.css.d.ts +1 -1
  10. package/dist/components/Box/useBoxStyles.css.d.ts.map +1 -1
  11. package/dist/components/Box/useBoxStyles.css.js +5 -11
  12. package/dist/components/BulletList/Bullet.css.js +3 -3
  13. package/dist/components/BulletList/Bullet.d.ts.map +1 -1
  14. package/dist/components/BulletList/Bullet.js +12 -4
  15. package/dist/components/BulletText/BulletText.js +1 -2
  16. package/dist/components/Button/Button.css.js +21 -21
  17. package/dist/components/Button/Button.js +3 -5
  18. package/dist/components/CheckBox/CheckBox.css.js +3 -3
  19. package/dist/components/CheckBox/CheckBox.js +1 -2
  20. package/dist/components/ColourInput/ColourInput.css.js +2 -2
  21. package/dist/components/ColourInput/ColourInput.js +3 -4
  22. package/dist/components/Columns/Column.css.js +1 -1
  23. package/dist/components/Columns/Column.js +2 -2
  24. package/dist/components/Columns/Columns.js +2 -2
  25. package/dist/components/DateInput/DateInput.js +2 -2
  26. package/dist/components/DatePicker/DatePicker.js +3 -4
  27. package/dist/components/DividerLine/DividerLine.d.ts +1 -1
  28. package/dist/components/DividerLine/DividerLine.d.ts.map +1 -1
  29. package/dist/components/DividerLine/DividerLine.js +1 -1
  30. package/dist/components/DropDown/DropDown.js +3 -5
  31. package/dist/components/DropDown/DropDownOption.css.js +2 -2
  32. package/dist/components/DropDown/DropDownOption.js +3 -4
  33. package/dist/components/EditableText/EditableText.css.js +1 -1
  34. package/dist/components/EditableText/EditableText.d.ts.map +1 -1
  35. package/dist/components/EditableText/EditableText.js +5 -6
  36. package/dist/components/FillHeightBox/FillHeightBox.js +2 -2
  37. package/dist/components/Flyout/Flyout.js +2 -2
  38. package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.js +1 -1
  39. package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts +1 -1
  40. package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts.map +1 -1
  41. package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.js +5 -7
  42. package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.d.ts.map +1 -1
  43. package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.js +5 -9
  44. package/dist/components/Image/Image.js +2 -2
  45. package/dist/components/Image/ImageServerProvider.js +9 -8
  46. package/dist/components/Image/ResponsiveImage.js +2 -2
  47. package/dist/components/Image/SimpleImage.js +2 -2
  48. package/dist/components/Inline/Inline.js +1 -3
  49. package/dist/components/LoadingBox/LoadingBox.js +3 -3
  50. package/dist/components/Meta/Meta.js +2 -3
  51. package/dist/components/MinimalModal/MinimalModal.js +2 -2
  52. package/dist/components/Modal/Modal.css.js +1 -1
  53. package/dist/components/Modal/Modal.d.ts.map +1 -1
  54. package/dist/components/Modal/Modal.js +16 -9
  55. package/dist/components/NumberBubble/NumberBubble.js +2 -2
  56. package/dist/components/NumberInput/NumberInput.js +3 -3
  57. package/dist/components/OrderedList/OrderedList.css.js +1 -1
  58. package/dist/components/OutsideClick/OutsideClick.js +1 -1
  59. package/dist/components/Pagination/Pagination.css.js +6 -6
  60. package/dist/components/Pagination/Pagination.js +1 -2
  61. package/dist/components/Positioner/Positioner.d.ts.map +1 -1
  62. package/dist/components/Positioner/Positioner.js +17 -7
  63. package/dist/components/Positioner/alignment.js +3 -3
  64. package/dist/components/ProgressBar/ProgressBar.css.js +1 -1
  65. package/dist/components/ProgressBar/ProgressBar.js +1 -1
  66. package/dist/components/ProgressBarGroup/ProgressBarGroup.css.js +1 -1
  67. package/dist/components/ProgressBarGroup/ProgressBarGroup.js +2 -3
  68. package/dist/components/Radio/Radio.css.js +4 -4
  69. package/dist/components/Radio/Radio.js +1 -2
  70. package/dist/components/ScrollPane/ScrollPane.css.js +3 -3
  71. package/dist/components/ScrollPane/ScrollPane.js +2 -2
  72. package/dist/components/SelectInput/SelectInput.css.js +3 -3
  73. package/dist/components/SelectInput/SelectInput.d.ts +1 -1
  74. package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
  75. package/dist/components/SelectInput/SelectInput.js +5 -5
  76. package/dist/components/SimplePagination/SimplePagination.js +4 -5
  77. package/dist/components/SliderProgress/ProgressStep.js +1 -2
  78. package/dist/components/SliderProgress/SliderProgress.css.js +1 -1
  79. package/dist/components/SliderProgress/SliderProgress.js +1 -1
  80. package/dist/components/Stack/Divider.css.js +1 -1
  81. package/dist/components/Stack/Stack.js +1 -3
  82. package/dist/components/StandardModal/StandardModal.css.js +8 -8
  83. package/dist/components/StandardModal/StandardModal.js +4 -5
  84. package/dist/components/StarRating/StarRating.js +7 -8
  85. package/dist/components/Stepper/Stepper.css.js +4 -4
  86. package/dist/components/Stepper/Stepper.d.ts.map +1 -1
  87. package/dist/components/Stepper/Stepper.js +19 -10
  88. package/dist/components/StickyBox/StickyBox.css.js +4 -4
  89. package/dist/components/StickyBox/StickyBox.js +3 -3
  90. package/dist/components/Switch/Switch.css.js +18 -18
  91. package/dist/components/Switch/Switch.js +4 -5
  92. package/dist/components/Table/TableCell.css.js +1 -1
  93. package/dist/components/Table/TableHeadCell.css.js +5 -5
  94. package/dist/components/Table/TableHeadCell.js +1 -2
  95. package/dist/components/Tabs/Tab.css.js +4 -4
  96. package/dist/components/Tabs/Tab.js +2 -3
  97. package/dist/components/Tabs/TabList.css.js +1 -1
  98. package/dist/components/Tabs/TabList.js +1 -2
  99. package/dist/components/Tabs/TabPane.js +1 -1
  100. package/dist/components/Text/useTextStyles.css.js +2 -2
  101. package/dist/components/TextAreaInput/TextAreaInput.js +2 -2
  102. package/dist/components/TextBubble/TextBubble.d.ts.map +1 -1
  103. package/dist/components/TextBubble/TextBubble.js +14 -6
  104. package/dist/components/TextContainer/TextContainer.js +1 -2
  105. package/dist/components/TextInput/TextInput.js +2 -2
  106. package/dist/components/TextLink/TextLink.css.js +4 -4
  107. package/dist/components/TextLink/TextLink.js +3 -4
  108. package/dist/components/ThemeOverrideProvider/ThemeOverrideDebugger.js +1 -2
  109. package/dist/components/ThemeOverrideProvider/ThemeOverrideProvider.js +2 -2
  110. package/dist/components/ThemeOverrideProvider/useBuildThemeOverrides.d.ts.map +1 -1
  111. package/dist/components/ThemeOverrideProvider/useBuildThemeOverrides.js +5 -3
  112. package/dist/components/Toaster/Toast.css.js +1 -1
  113. package/dist/components/Toaster/Toast.d.ts.map +1 -1
  114. package/dist/components/Toaster/Toast.js +24 -20
  115. package/dist/components/Tooltip/Tooltip.css.js +2 -2
  116. package/dist/components/Tooltip/Tooltip.js +1 -3
  117. package/dist/components/private/CheckableBase/CheckableBase.css.js +8 -8
  118. package/dist/components/private/CheckableBase/CheckableBase.js +1 -2
  119. package/dist/components/private/InputBase/HintText.css.js +1 -1
  120. package/dist/components/private/InputBase/NotchedBase.css.js +20 -20
  121. package/dist/components/private/InputBase/NotchedBase.js +1 -2
  122. package/dist/components/private/InputBase/withEnhancedInput.css.js +16 -16
  123. package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
  124. package/dist/components/private/InputBase/withEnhancedInput.js +3 -4
  125. package/dist/hooks/useAttachedBoxes/useAttachedBoxes.d.ts +1 -1
  126. package/dist/hooks/useAttachedBoxes/useAttachedBoxes.d.ts.map +1 -1
  127. package/dist/hooks/useAttachedBoxes/useAttachedBoxes.js +5 -5
  128. package/dist/hooks/useMedia/useMedia.js +4 -4
  129. package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.js +2 -2
  130. package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.js +1 -1
  131. package/dist/hooks/useNullCheck/useNullCheck.js +1 -1
  132. package/dist/hooks/useWindowHeightFill/useWindowHeightFill.d.ts.map +1 -1
  133. package/dist/hooks/useWindowHeightFill/useWindowHeightFill.js +4 -3
  134. package/dist/reset/globalFonts.css.js +3 -3
  135. package/dist/reset/reset.css.js +2 -2
  136. package/dist/themes/base/tokens.js +3 -3
  137. package/dist/themes/flat_red/tokens.js +2 -2
  138. package/dist/themes/helpers.d.ts.map +1 -1
  139. package/dist/themes/helpers.js +2 -2
  140. package/dist/themes/makeTheme.js +3 -3
  141. package/dist/themes/neutral/tokens.js +3 -3
  142. package/dist/themes/theme.css.js +2 -2
  143. package/dist/utils/css.js +1 -1
  144. package/dist/utils/index.d.ts +1 -1
  145. package/dist/utils/index.d.ts.map +1 -1
  146. package/dist/utils/index.js +6 -5
  147. package/dist/utils/mapTokenToProperty.js +2 -2
  148. package/dist/utils/number.js +1 -1
  149. package/dist/utils/responsiveProps.css.d.ts.map +1 -1
  150. package/dist/utils/responsiveProps.css.js +2 -2
  151. package/dist/utils/responsiveStyle.js +3 -3
  152. package/package.json +118 -26
  153. package/dist/components/Actions/stories.js +0 -53
  154. package/dist/components/Alert/stories.js +0 -106
  155. package/dist/components/Anchor/stories.js +0 -65
  156. package/dist/components/AutoSuggest/stories.js +0 -213
  157. package/dist/components/Badge/stories.js +0 -64
  158. package/dist/components/Box/stories.js +0 -43
  159. package/dist/components/BulletList/stories.js +0 -72
  160. package/dist/components/BulletText/stories.js +0 -88
  161. package/dist/components/Button/stories.js +0 -291
  162. package/dist/components/CheckBox/stories.js +0 -206
  163. package/dist/components/ColourInput/stories.js +0 -173
  164. package/dist/components/Columns/stories.js +0 -209
  165. package/dist/components/DateInput/stories.js +0 -181
  166. package/dist/components/DatePicker/stories.js +0 -89
  167. package/dist/components/DividerLine/stories.js +0 -117
  168. package/dist/components/DropDown/stories.js +0 -117
  169. package/dist/components/EditableText/stories.js +0 -84
  170. package/dist/components/FillHeightBox/stories.js +0 -47
  171. package/dist/components/Flyout/stories.js +0 -88
  172. package/dist/components/Heading/stories.js +0 -127
  173. package/dist/components/HorizontalAutoScroller/stories.js +0 -88
  174. package/dist/components/Icon/stories.js +0 -62
  175. package/dist/components/Image/stories.js +0 -183
  176. package/dist/components/Inline/stories.js +0 -122
  177. package/dist/components/IntentStripe/stories.js +0 -76
  178. package/dist/components/LinearProgressIndicator/stories.js +0 -26
  179. package/dist/components/LoadingBox/stories.js +0 -41
  180. package/dist/components/Meta/stories.js +0 -45
  181. package/dist/components/MinimalModal/stories.js +0 -83
  182. package/dist/components/Modal/stories.js +0 -52
  183. package/dist/components/NumberBubble/stories.js +0 -23
  184. package/dist/components/NumberInput/stories.js +0 -218
  185. package/dist/components/OrderedList/stories.js +0 -58
  186. package/dist/components/OutsideClick/stories.js +0 -39
  187. package/dist/components/Pagination/stories.js +0 -112
  188. package/dist/components/Portal/stories.js +0 -72
  189. package/dist/components/Positioner/stories.js +0 -124
  190. package/dist/components/ProgressBar/stories.js +0 -44
  191. package/dist/components/ProgressBarGroup/stories.js +0 -21
  192. package/dist/components/ProgressSpinner/stories.js +0 -36
  193. package/dist/components/Radio/stories.js +0 -215
  194. package/dist/components/ScrollPane/stories.js +0 -55
  195. package/dist/components/Section/stories.js +0 -43
  196. package/dist/components/SelectInput/stories.js +0 -188
  197. package/dist/components/SimplePagination/stories.js +0 -42
  198. package/dist/components/SliderProgress/stories.js +0 -44
  199. package/dist/components/Stack/stories.js +0 -75
  200. package/dist/components/StandardModal/stories.js +0 -62
  201. package/dist/components/StarRating/stories.js +0 -50
  202. package/dist/components/Stepper/stories.js +0 -61
  203. package/dist/components/StickyBox/stories.js +0 -70
  204. package/dist/components/Switch/stories.js +0 -42
  205. package/dist/components/Table/stories.js +0 -302
  206. package/dist/components/Tabs/stories.js +0 -253
  207. package/dist/components/Text/stories.js +0 -154
  208. package/dist/components/TextAreaInput/stories.js +0 -129
  209. package/dist/components/TextBubble/stories.js +0 -30
  210. package/dist/components/TextContainer/stories.js +0 -128
  211. package/dist/components/TextInput/stories.js +0 -260
  212. package/dist/components/TextLink/stories.js +0 -111
  213. package/dist/components/Toaster/stories.js +0 -59
  214. package/dist/components/Tooltip/stories.js +0 -90
  215. package/dist/components/VisuallyHidden/stories.js +0 -36
  216. package/dist/hooks/useAttachedBoxes/stories.js +0 -94
  217. package/dist/hooks/useMedia/stories.js +0 -46
  218. package/dist/hooks/useResponsiveValue/stories.js +0 -38
@@ -9,7 +9,7 @@ export const root = styleVariants({
9
9
  listStyle: 'outside lower-roman'
10
10
  },
11
11
  firstOccurrence: {
12
- paddingLeft: "calc(".concat(vars.space['6'], " * 2)")
12
+ paddingLeft: `calc(${vars.space['6']} * 2)`
13
13
  }
14
14
  }, "root");
15
15
  __vanilla_filescope__.endFileScope();
@@ -9,7 +9,7 @@ export const useOutsideClick = (refs, onClickAway) => {
9
9
  callbackRef.current = onClickAway;
10
10
  }, [onClickAway]);
11
11
  useEffect(() => {
12
- if (typeof document === 'undefined' || typeof onClickAway !== 'function') return undefined;
12
+ if (typeof document === 'undefined' || typeof onClickAway !== 'function') return;
13
13
  return bindEvent(document, 'mouseup', event => {
14
14
  const shouldClose = refs.map(item => item.current).every(element => !(element !== null && element !== void 0 && element.contains(event.target)));
15
15
  if (shouldClose) {
@@ -12,19 +12,19 @@ export const selectedItem = style({
12
12
  transition: 'none'
13
13
  }, "selectedItem");
14
14
  export const activeItem = style({
15
- lineHeight: "calc(".concat(paginationBubbleSize, " - 3px)"),
15
+ lineHeight: `calc(${paginationBubbleSize} - 3px)`,
16
16
  width: paginationBubbleSize,
17
17
  height: paginationBubbleSize,
18
18
  cursor: 'pointer',
19
- transition: "background-color 0.2s ".concat(vars.animation.easing.decelerate, " 0s, box-shadow 0.2s ").concat(vars.animation.easing.decelerate, " 0s"),
19
+ transition: `background-color 0.2s ${vars.animation.easing.decelerate} 0s, box-shadow 0.2s ${vars.animation.easing.decelerate} 0s`,
20
20
  selectors: {
21
- ["&:not(".concat(selectedItem, "):hover")]: {
21
+ [`&:not(${selectedItem}):hover`]: {
22
22
  backgroundColor: vars.colours.background.body,
23
- boxShadow: "inset 0 0 0 1px ".concat(vars.colours.intent.primary.background.strong, ", ").concat(vars.elevation['1'])
23
+ boxShadow: `inset 0 0 0 1px ${vars.colours.intent.primary.background.strong}, ${vars.elevation['1']}`
24
24
  },
25
- ["&:not(".concat(selectedItem, "):active")]: {
25
+ [`&:not(${selectedItem}):active`]: {
26
26
  backgroundColor: vars.colours.background.body,
27
- boxShadow: "inset 0 0 0 1px ".concat(vars.colours.intent.primary.background.strong, ", ").concat(vars.elevation['1'])
27
+ boxShadow: `inset 0 0 0 1px ${vars.colours.intent.primary.background.strong}, ${vars.elevation['1']}`
28
28
  }
29
29
  }
30
30
  }, "activeItem");
@@ -11,8 +11,7 @@ import { Inline } from "../Inline/index.js";
11
11
  import { useTextStyles } from "../Text/index.js";
12
12
  import { Bubble } from "./Bubble.js";
13
13
  import * as styles from "./Pagination.css.js";
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
15
  const NavButton = _ref => {
17
16
  let {
18
17
  icon,
@@ -1 +1 @@
1
- {"version":3,"file":"Positioner.d.ts","sourceRoot":"","sources":["../../../lib/components/Positioner/Positioner.tsx"],"names":[],"mappings":"AAIA,OAAO,EACN,wBAAwB,EACxB,iBAAiB,EACjB,SAAS,EACT,SAAS,EAIT,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAI7B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAqBzC,MAAM,WAAW,KAChB,SAAQ,OAAO,CACd,wBAAwB,CAAC,OAAO,GAAG,CAAC,EACpC,aAAa,GAAG,WAAW,CAC3B;IACD,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,KAAK,CA8F/C,CAAC;AAiBF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Positioner.d.ts","sourceRoot":"","sources":["../../../lib/components/Positioner/Positioner.tsx"],"names":[],"mappings":"AAIA,OAAO,EACN,wBAAwB,EACxB,iBAAiB,EACjB,SAAS,EACT,SAAS,EAIT,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAI7B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAqBzC,MAAM,WAAW,KAChB,SAAQ,OAAO,CACd,wBAAwB,CAAC,OAAO,GAAG,CAAC,EACpC,aAAa,GAAG,WAAW,CAC3B;IACD,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,KAAK,CA8F/C,CAAC;AAsBF,eAAe,UAAU,CAAC"}
@@ -4,8 +4,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
4
4
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
5
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
6
6
  const _excluded = ["alignment", "isOpen", "triggerRef", "triggerOffset", "children"];
7
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9
9
  import { flip, offset, popperGenerator, preventOverflow } from '@popperjs/core';
10
10
  import { defaultModifiers } from '@popperjs/core/lib/popper';
11
11
  import * as React from 'react';
@@ -92,15 +92,25 @@ export const Positioner = _ref => {
92
92
  const convertPlacement = alignment => {
93
93
  switch (alignment) {
94
94
  case EAlignment.BOTTOM_LEFT:
95
- return 'bottom-start';
95
+ {
96
+ return 'bottom-start';
97
+ }
96
98
  case EAlignment.BOTTOM_RIGHT:
97
- return 'bottom-end';
99
+ {
100
+ return 'bottom-end';
101
+ }
98
102
  case EAlignment.TOP_LEFT:
99
- return 'top-start';
103
+ {
104
+ return 'top-start';
105
+ }
100
106
  case EAlignment.TOP_RIGHT:
101
- return 'top-end';
107
+ {
108
+ return 'top-end';
109
+ }
102
110
  default:
103
- return alignment;
111
+ {
112
+ return alignment;
113
+ }
104
114
  }
105
115
  };
106
116
  export default Positioner;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
- export let EAlignment;
4
- (function (EAlignment) {
3
+ export let EAlignment = function (EAlignment) {
5
4
  EAlignment["TOP"] = "top";
6
5
  EAlignment["TOP_LEFT"] = "top_left";
7
6
  EAlignment["TOP_RIGHT"] = "top_right";
@@ -10,4 +9,5 @@ export let EAlignment;
10
9
  EAlignment["BOTTOM_RIGHT"] = "bottom_right";
11
10
  EAlignment["LEFT"] = "left";
12
11
  EAlignment["RIGHT"] = "right";
13
- })(EAlignment || (EAlignment = {}));
12
+ return EAlignment;
13
+ }({});
@@ -8,7 +8,7 @@ export const container = style({
8
8
  height: vars.space['2']
9
9
  }, "container");
10
10
  export const bar = style({
11
- transition: "width 0.2s ".concat(vars.animation.easing.standard, " 0s"),
11
+ transition: `width 0.2s ${vars.animation.easing.standard} 0s`,
12
12
  willChange: 'width'
13
13
  }, "bar");
14
14
  __vanilla_filescope__.endFileScope();
@@ -27,7 +27,7 @@ export const ProgressBar = _ref => {
27
27
  backgroundColour: backgroundColorMap[colour],
28
28
  className: [styles.bar, styles.container],
29
29
  style: {
30
- width: "".concat(clamp(value, 0, 1) * 100, "%")
30
+ width: `${clamp(value, 0, 1) * 100}%`
31
31
  }
32
32
  })
33
33
  });
@@ -6,6 +6,6 @@ import { style } from '@vanilla-extract/css';
6
6
  import { themeContractVars as vars } from "../../themes/theme.css.js";
7
7
  export const root = style({
8
8
  display: 'grid',
9
- gridGap: "".concat(vars.space['1'], " ").concat(vars.space['5'])
9
+ gridGap: `${vars.space['1']} ${vars.space['5']}`
10
10
  }, "root");
11
11
  __vanilla_filescope__.endFileScope();
@@ -6,8 +6,7 @@ import { Box } from "../Box/index.js";
6
6
  import { ProgressBar } from "../ProgressBar/index.js";
7
7
  import { Text } from "../Text/index.js";
8
8
  import * as styles from "./ProgressBarGroup.css.js";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
10
  export const ProgressBarGroup = _ref => {
12
11
  let {
13
12
  prefixLabels,
@@ -22,7 +21,7 @@ export const ProgressBarGroup = _ref => {
22
21
  className: styles.root,
23
22
  alignItems: "center",
24
23
  style: {
25
- gridTemplateColumns: "".concat(hasPrefixLabels ? 'auto ' : '', "1fr").concat(hasSuffixLabels ? ' auto' : '')
24
+ gridTemplateColumns: `${hasPrefixLabels ? 'auto ' : ''}1fr${hasSuffixLabels ? ' auto' : ''}`
26
25
  },
27
26
  children: values.map((value, idx) => _jsxs(Fragment, {
28
27
  children: [_jsx(Text, {
@@ -6,7 +6,7 @@ import { styleVariants } from '@vanilla-extract/css';
6
6
  import { themeContractVars as vars } from "../../themes/theme.css.js";
7
7
  export const circle = styleVariants({
8
8
  default: {
9
- transition: "border-color 0.2s ".concat(vars.animation.easing.decelerate, " 0s")
9
+ transition: `border-color 0.2s ${vars.animation.easing.decelerate} 0s`
10
10
  },
11
11
  outer: {
12
12
  top: vars.space['3'],
@@ -15,13 +15,13 @@ export const circle = styleVariants({
15
15
  height: vars.space['4']
16
16
  },
17
17
  inner: {
18
- top: "calc(".concat(vars.space['3'], " + (").concat(vars.space['4'], " - ").concat(vars.space['2'], ") * 0.5)"),
19
- left: "calc(".concat(vars.space['3'], " + (").concat(vars.space['4'], " - ").concat(vars.space['2'], ") * 0.5)"),
18
+ top: `calc(${vars.space['3']} + (${vars.space['4']} - ${vars.space['2']}) * 0.5)`,
19
+ left: `calc(${vars.space['3']} + (${vars.space['4']} - ${vars.space['2']}) * 0.5)`,
20
20
  width: vars.space['2'],
21
21
  height: vars.space['2']
22
22
  },
23
23
  selectedInner: {
24
- borderWidth: "calc(".concat(vars.space['2'], " / 2)")
24
+ borderWidth: `calc(${vars.space['2']} / 2)`
25
25
  },
26
26
  selected: {
27
27
  borderColor: vars.typography.colour.primary
@@ -8,8 +8,7 @@ import { CheckableBase } from "../private/CheckableBase/index.js";
8
8
  import { useCheckableStyles } from "../private/CheckableBase/useCheckableStyles.js";
9
9
  import * as styles from "./Radio.css.js";
10
10
  import { useRadioContext } from "./RadioGroup.js";
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  export const Radio = forwardRef((_ref, ref) => {
14
13
  let {
15
14
  value,
@@ -19,7 +19,7 @@ export const root = style({
19
19
  '::-webkit-scrollbar-track': {
20
20
  position: 'absolute',
21
21
  backgroundColor: vars.colours.gamut.gray100,
22
- border: "1px solid ".concat(vars.colours.gamut.gray200)
22
+ border: `1px solid ${vars.colours.gamut.gray200}`
23
23
  },
24
24
  '::-webkit-scrollbar-button': {
25
25
  display: 'none'
@@ -30,7 +30,7 @@ export const root = style({
30
30
  },
31
31
  ['&::-webkit-scrollbar-thumb:hover']: {
32
32
  backgroundColor: vars.colours.gamut.gray400,
33
- border: "1px solid ".concat(vars.colours.gamut.gray400)
33
+ border: `1px solid ${vars.colours.gamut.gray400}`
34
34
  }
35
35
  }
36
36
  }, "root");
@@ -39,7 +39,7 @@ export const rounded = style({
39
39
  borderRadius: vars.border.radius['1']
40
40
  },
41
41
  '::-webkit-scrollbar-track': {
42
- borderRadius: "0 ".concat(vars.border.radius['1'], " ").concat(vars.border.radius['1'], " 0")
42
+ borderRadius: `0 ${vars.border.radius['1']} ${vars.border.radius['1']} 0`
43
43
  }
44
44
  }, "rounded");
45
45
  __vanilla_filescope__.endFileScope();
@@ -3,8 +3,8 @@
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  const _excluded = ["className", "rounded"];
6
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  import clsx from 'clsx';
9
9
  import * as React from 'react';
10
10
  import { forwardRef } from 'react';
@@ -5,12 +5,12 @@ __vanilla_filescope__.setFileScope("lib/components/SelectInput/SelectInput.css.t
5
5
  import { style } from '@vanilla-extract/css';
6
6
  import { themeContractVars as vars } from "../../themes/theme.css.js";
7
7
  export const input = style({
8
- marginTop: "calc(-1 * ".concat(vars.border.width['1'], ")"),
9
- marginBottom: "calc(-1 * ".concat(vars.border.width['1'], ")")
8
+ marginTop: `calc(-1 * ${vars.border.width['1']})`,
9
+ marginBottom: `calc(-1 * ${vars.border.width['1']})`
10
10
  }, "input");
11
11
  export const paddedInput = style({
12
12
  selectors: {
13
- ["".concat(input, "&")]: {
13
+ [`${input}&`]: {
14
14
  paddingRight: vars.space['8']
15
15
  }
16
16
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export declare const SelectInput: React.ForwardRefExoticComponent<{
3
- children?: React.ReactNode[] | undefined;
3
+ children?: React.ReactNode;
4
4
  } & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLSelectElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLSelectElement>>;
5
5
  export default SelectInput;
6
6
  //# sourceMappingURL=SelectInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,eAAO,MAAM,WAAW;;gRAqDvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,WAAW;eAEX,MAAM,SAAS;gRAoD3B,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -2,17 +2,16 @@
2
2
 
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
- const _excluded = ["field", "eventHandlers", "suffixed", "prefixed", "validation", "isLoading", "size", "fieldIcon"];
6
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ const _excluded = ["field", "eventHandlers", "suffixed", "prefixed", "validation", "isFocused", "isLoading", "size", "fieldIcon"];
6
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  import { ChevronDownIcon } from '@autoguru/icons';
9
9
  import * as React from 'react';
10
10
  import { Box } from "../Box/index.js";
11
11
  import { Icon } from "../Icon/index.js";
12
12
  import { withEnhancedInput } from "../private/InputBase/index.js";
13
13
  import * as styles from "./SelectInput.css.js";
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
15
  export const SelectInput = withEnhancedInput(_ref => {
17
16
  let {
18
17
  field,
@@ -20,6 +19,7 @@ export const SelectInput = withEnhancedInput(_ref => {
20
19
  suffixed,
21
20
  prefixed,
22
21
  validation,
22
+ isFocused,
23
23
  isLoading,
24
24
  size,
25
25
  fieldIcon = ChevronDownIcon
@@ -6,13 +6,12 @@ import { noop } from "../../utils/index.js";
6
6
  import { Button } from "../Button/index.js";
7
7
  import { Icon } from "../Icon/index.js";
8
8
  import { Inline } from "../Inline/index.js";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
- export let EChangeDirection;
12
- (function (EChangeDirection) {
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ export let EChangeDirection = function (EChangeDirection) {
13
11
  EChangeDirection["Previous"] = "previous";
14
12
  EChangeDirection["Next"] = "next";
15
- })(EChangeDirection || (EChangeDirection = {}));
13
+ return EChangeDirection;
14
+ }({});
16
15
  export const SimplePagination = _ref => {
17
16
  let {
18
17
  hasNext = false,
@@ -5,8 +5,7 @@ import { memo, useCallback } from 'react';
5
5
  import { useAnimationEvents } from "../../hooks/useAnimationEvents/index.js";
6
6
  import { Box } from "../Box/index.js";
7
7
  import * as styles from "./ProgressStep.css.js";
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  export const ProgressStep = memo(_ref => {
11
10
  let {
12
11
  className = '',
@@ -7,7 +7,7 @@ import { themeContractVars as vars } from "../../themes/theme.css.js";
7
7
  export const root = style({
8
8
  display: 'grid',
9
9
  gridGap: vars.space['1'],
10
- padding: "".concat(vars.space['3'], " ").concat(vars.space['4']),
10
+ padding: `${vars.space['3']} ${vars.space['4']}`,
11
11
  alignContent: 'center',
12
12
  justifyContent: 'center',
13
13
  alignItems: 'center'
@@ -19,7 +19,7 @@ export const SliderProgress = memo(_ref => {
19
19
  return _jsx("div", {
20
20
  className: clsx(className, styles.root),
21
21
  style: {
22
- gridTemplateColumns: "repeat(".concat(totalCount, ", 1fr)")
22
+ gridTemplateColumns: `repeat(${totalCount}, 1fr)`
23
23
  },
24
24
  children: Array.from({
25
25
  length: totalCount
@@ -6,6 +6,6 @@ import { style } from '@vanilla-extract/css';
6
6
  import { themeContractVars as vars } from "../../themes/theme.css.js";
7
7
  export const line = style({
8
8
  height: '1px',
9
- boxShadow: "inset 0 0 0 1px ".concat(vars.colours.background.neutral)
9
+ boxShadow: `inset 0 0 0 1px ${vars.colours.background.neutral}`
10
10
  }, "line");
11
11
  __vanilla_filescope__.endFileScope();
@@ -6,9 +6,7 @@ import flattenChildren from 'react-keyed-flatten-children';
6
6
  import { Box } from "../Box/index.js";
7
7
  import { Divider } from "./Divider.js";
8
8
  import * as styles from "./Stack.css.js";
9
- import { Fragment as _Fragment } from "react/jsx-runtime";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
10
  const supportedListTypes = ['ul', 'ol'];
13
11
  export const Stack = _ref => {
14
12
  let {
@@ -3,8 +3,8 @@
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
4
  import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
5
5
  __vanilla_filescope__.setFileScope("lib/components/StandardModal/StandardModal.css.ts", "@autoguru/overdrive");
6
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  import { style } from '@vanilla-extract/css';
9
9
  import { themeContractVars as vars } from "../../themes/theme.css.js";
10
10
  import { responsiveStyle } from "../../utils/responsiveStyle.js";
@@ -15,18 +15,18 @@ export const modal = style(_objectSpread({
15
15
  width: '100vw',
16
16
  height: 'auto',
17
17
  alignSelf: 'flex-end',
18
- minHeight: "calc(3 * ".concat(vars.space['8'], ")"),
19
- maxHeight: "calc(100vh - ".concat(vars.space['8'], ")"),
20
- borderRadius: "".concat(vars.space['2'], " ").concat(vars.space['2'], " 0 0")
18
+ minHeight: `calc(3 * ${vars.space['8']})`,
19
+ maxHeight: `calc(100vh - ${vars.space['8']})`,
20
+ borderRadius: `${vars.space['2']} ${vars.space['2']} 0 0`
21
21
  }, responsiveStyle({
22
22
  tablet: {
23
23
  alignSelf: 'center',
24
- borderRadius: "".concat(vars.space['1'])
24
+ borderRadius: `${vars.space['1']}`
25
25
  },
26
26
  desktop: {
27
- maxWidth: "calc(100% - ".concat(vars.space['9'], " * 2)"),
27
+ maxWidth: `calc(100% - ${vars.space['9']} * 2)`,
28
28
  height: 'auto',
29
- maxHeight: "calc(100vh - ".concat(vars.space['9'], " * 2)"),
29
+ maxHeight: `calc(100vh - ${vars.space['9']} * 2)`,
30
30
  boxShadow: '0 0 32px 0 rgba(0,0,0, 0.012), 0 24px 96px 0 rgba(0,0,0, 0.08)',
31
31
  marginTop: 0
32
32
  }
@@ -12,14 +12,13 @@ import { Icon } from "../Icon/index.js";
12
12
  import { Modal } from "../Modal/index.js";
13
13
  import { useTextStyles } from "../Text/index.js";
14
14
  import * as styles from "./StandardModal.css.js";
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { jsxs as _jsxs } from "react/jsx-runtime";
17
- export let ESize;
18
- (function (ESize) {
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
+ export let ESize = function (ESize) {
19
17
  ESize["Skinny"] = "skinny";
20
18
  ESize["Narrow"] = "narrow";
21
19
  ESize["Standard"] = "standard";
22
- })(ESize || (ESize = {}));
20
+ return ESize;
21
+ }({});
23
22
  export const StandardModal = _ref => {
24
23
  let {
25
24
  isOpen,
@@ -9,20 +9,19 @@ import { Icon } from "../Icon/index.js";
9
9
  import { Inline } from "../Inline/index.js";
10
10
  import { Text } from "../Text/index.js";
11
11
  import * as styles from "./StarRating.css.js";
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const totalStars = 5;
15
- export let EStarRatingSize;
16
- (function (EStarRatingSize) {
14
+ export let EStarRatingSize = function (EStarRatingSize) {
17
15
  EStarRatingSize["Medium"] = "medium";
18
16
  EStarRatingSize["Small"] = "small";
19
- })(EStarRatingSize || (EStarRatingSize = {}));
20
- var EStarType;
21
- (function (EStarType) {
17
+ return EStarRatingSize;
18
+ }({});
19
+ var EStarType = function (EStarType) {
22
20
  EStarType[EStarType["Full"] = 0] = "Full";
23
21
  EStarType[EStarType["Half"] = 1] = "Half";
24
22
  EStarType[EStarType["Empty"] = 2] = "Empty";
25
- })(EStarType || (EStarType = {}));
23
+ return EStarType;
24
+ }(EStarType || {});
26
25
  const starSizeMap = new Map([[EStarRatingSize.Medium, 'medium'], [EStarRatingSize.Small, 'small']]);
27
26
  const labelSizeMap = new Map([[EStarRatingSize.Small, '3'], [EStarRatingSize.Medium, '4']]);
28
27
  export const StarRating = memo(_ref => {
@@ -10,7 +10,7 @@ export const disabled = style({
10
10
  export const root = style({
11
11
  width: 'max-content',
12
12
  selectors: {
13
- ["&:not(".concat(disabled, "):focus")]: {
13
+ [`&:not(${disabled}):focus`]: {
14
14
  borderColor: vars.colours.intent.information.background.standard
15
15
  }
16
16
  }
@@ -27,12 +27,12 @@ export const handle = styleVariants({
27
27
  default: {
28
28
  width: vars.space[6],
29
29
  height: vars.space[6],
30
- transition: "background-color 0.1s ".concat(vars.animation.easing.standard),
30
+ transition: `background-color 0.1s ${vars.animation.easing.standard}`,
31
31
  selectors: {
32
- ["".concat(root, ":not(").concat(disabled, ") &:hover")]: {
32
+ [`${root}:not(${disabled}) &:hover`]: {
33
33
  backgroundColor: vars.colours.intent.primary.background.strong
34
34
  },
35
- ["".concat(root, ":not(").concat(disabled, ") &:active")]: {
35
+ [`${root}:not(${disabled}) &:active`]: {
36
36
  backgroundColor: vars.colours.intent.primary.background.strong
37
37
  }
38
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../lib/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAIA,OAAO,EACN,iBAAiB,EAIjB,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,KAAK;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAE/B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAkDD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,CA6H5C,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../lib/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAIA,OAAO,EACN,iBAAiB,EAIjB,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,KAAK;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAE/B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAkDD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAkI5C,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -11,8 +11,7 @@ import { Column, Columns } from "../Columns/index.js";
11
11
  import { Icon } from "../Icon/index.js";
12
12
  import { Text, useTextStyles } from "../Text/index.js";
13
13
  import * as styles from "./Stepper.css.js";
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
15
  const takeStep = _ref => {
17
16
  let {
18
17
  min,
@@ -85,18 +84,28 @@ export const Stepper = _ref3 => {
85
84
  const keyDownHandler = useCallback(event => {
86
85
  switch (event.key) {
87
86
  case 'ArrowLeft':
88
- return onDecrement();
87
+ {
88
+ return onDecrement();
89
+ }
89
90
  case 'ArrowRight':
90
- return onIncrement();
91
+ {
92
+ return onIncrement();
93
+ }
91
94
  case 'Home':
92
- event.preventDefault();
93
- return onChange(min);
95
+ {
96
+ event.preventDefault();
97
+ return onChange(min);
98
+ }
94
99
  case 'End':
95
- event.preventDefault();
96
- return onChange(max);
100
+ {
101
+ event.preventDefault();
102
+ return onChange(max);
103
+ }
97
104
  case 'Escape':
98
- event.currentTarget.blur();
99
- break;
105
+ {
106
+ event.currentTarget.blur();
107
+ break;
108
+ }
100
109
  }
101
110
  }, [min, max, onDecrement, onIncrement, onChange]);
102
111
  return _jsx(Box, {
@@ -7,7 +7,7 @@ import { themeContractVars as vars } from "../../themes/theme.css.js";
7
7
  import { mapTokenToProperty } from "../../utils/mapTokenToProperty.js";
8
8
  export const root = style({
9
9
  position: 'sticky',
10
- transition: "box-shadow 0.3s ".concat(vars.animation.easing.standard, " 0s")
10
+ transition: `box-shadow 0.3s ${vars.animation.easing.standard} 0s`
11
11
  }, "root");
12
12
  export const simpleRoot = style({
13
13
  position: 'sticky',
@@ -15,7 +15,7 @@ export const simpleRoot = style({
15
15
  }, "simpleRoot");
16
16
  export const content = style({
17
17
  height: 'fit-content',
18
- transition: "transform 0.3s ".concat(vars.animation.easing.standard, " 0s")
18
+ transition: `transform 0.3s ${vars.animation.easing.standard} 0s`
19
19
  }, "content");
20
20
  export const popped = style({
21
21
  transform: 'scale(1.01)'
@@ -25,11 +25,11 @@ export const zIndex = styleVariants(mapTokenToProperty([0, 1, 2, 3, 99].reduce((
25
25
  return tokens;
26
26
  }, {}), 'zIndex'), "zIndex");
27
27
  export const top = styleVariants(mapTokenToProperty(['none', '1', '3', '5', '7', 'subHeader'].reduce((tokens, current) => {
28
- if (current === 'subHeader') tokens[current] = '72px';else tokens[current] = vars.space[current];
28
+ tokens[current] = current === 'subHeader' ? '72px' : vars.space[current];
29
29
  return tokens;
30
30
  }, {}), 'top'), "top");
31
31
  export const bottom = styleVariants(mapTokenToProperty(['none', '1', '3', '5', '7', 'subHeader'].reduce((tokens, current) => {
32
- if (current === 'subHeader') tokens[current] = '72px';else tokens[current] = vars.space[current];
32
+ tokens[current] = current === 'subHeader' ? '72px' : vars.space[current];
33
33
  return tokens;
34
34
  }, {}), 'bottom'), "bottom");
35
35
  __vanilla_filescope__.endFileScope();