@telus-uds/components-base 1.8.1 → 1.8.4

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 (288) hide show
  1. package/CHANGELOG.md +35 -2
  2. package/component-docs.json +711 -669
  3. package/lib/A11yInfoProvider/index.js +4 -3
  4. package/lib/A11yText/index.js +6 -5
  5. package/lib/ActivityIndicator/Spinner.js +14 -13
  6. package/lib/ActivityIndicator/Spinner.native.js +10 -8
  7. package/lib/ActivityIndicator/index.js +6 -5
  8. package/lib/ActivityIndicator/shared.js +1 -1
  9. package/lib/BaseProvider/index.js +13 -10
  10. package/lib/Box/Box.js +20 -19
  11. package/lib/Button/Button.js +7 -6
  12. package/lib/Button/ButtonBase.js +97 -79
  13. package/lib/Button/ButtonGroup.js +34 -32
  14. package/lib/Button/ButtonLink.js +9 -7
  15. package/lib/Button/index.js +4 -4
  16. package/lib/Button/propTypes.js +1 -1
  17. package/lib/Card/Card.js +8 -7
  18. package/lib/Card/CardBase.js +35 -31
  19. package/lib/Card/PressableCardBase.js +14 -12
  20. package/lib/Checkbox/Checkbox.js +97 -83
  21. package/lib/Checkbox/CheckboxGroup.js +29 -27
  22. package/lib/Checkbox/CheckboxInput.js +12 -10
  23. package/lib/Divider/Divider.js +10 -9
  24. package/lib/ExpandCollapse/Control.js +42 -36
  25. package/lib/ExpandCollapse/ExpandCollapse.js +11 -10
  26. package/lib/ExpandCollapse/Panel.js +29 -40
  27. package/lib/Feedback/Feedback.js +48 -35
  28. package/lib/Fieldset/Fieldset.js +16 -15
  29. package/lib/Fieldset/FieldsetContainer.js +16 -13
  30. package/lib/Fieldset/FieldsetContainer.native.js +11 -8
  31. package/lib/Fieldset/Legend.js +10 -7
  32. package/lib/Fieldset/Legend.native.js +10 -7
  33. package/lib/FlexGrid/Col/Col.js +18 -17
  34. package/lib/FlexGrid/FlexGrid.js +15 -14
  35. package/lib/FlexGrid/Row/Row.js +13 -12
  36. package/lib/HorizontalScroll/HorizontalScroll.js +25 -20
  37. package/lib/HorizontalScroll/HorizontalScrollButton.js +18 -14
  38. package/lib/HorizontalScroll/ScrollViewEnd.js +6 -5
  39. package/lib/HorizontalScroll/ScrollViewEnd.native.js +12 -9
  40. package/lib/HorizontalScroll/itemPositions.js +19 -13
  41. package/lib/Icon/Icon.js +11 -10
  42. package/lib/Icon/IconText.js +8 -7
  43. package/lib/Icon/index.js +5 -5
  44. package/lib/IconButton/IconButton.js +50 -42
  45. package/lib/InputLabel/InputLabel.js +37 -30
  46. package/lib/InputLabel/LabelContent.js +12 -9
  47. package/lib/InputLabel/LabelContent.native.js +9 -6
  48. package/lib/InputSupports/InputSupports.js +11 -10
  49. package/lib/InputSupports/useInputSupports.js +7 -6
  50. package/lib/Link/ChevronLink.js +9 -8
  51. package/lib/Link/InlinePressable.js +13 -10
  52. package/lib/Link/InlinePressable.native.js +20 -16
  53. package/lib/Link/Link.js +10 -9
  54. package/lib/Link/LinkBase.js +96 -78
  55. package/lib/Link/TextButton.js +9 -8
  56. package/lib/List/List.js +20 -13
  57. package/lib/List/ListItem.js +103 -79
  58. package/lib/Modal/Modal.js +74 -60
  59. package/lib/Notification/Notification.js +46 -33
  60. package/lib/Pagination/PageButton.js +13 -12
  61. package/lib/Pagination/Pagination.js +43 -30
  62. package/lib/Pagination/SideButton.js +21 -18
  63. package/lib/Pagination/usePagination.js +7 -6
  64. package/lib/Progress/Progress.js +23 -19
  65. package/lib/Progress/ProgressBar.js +25 -21
  66. package/lib/Progress/ProgressBarBackground.js +7 -6
  67. package/lib/Radio/Radio.js +80 -69
  68. package/lib/Radio/RadioButton.js +63 -53
  69. package/lib/Radio/RadioGroup.js +30 -28
  70. package/lib/Radio/RadioInput.js +12 -10
  71. package/lib/RadioCard/RadioCard.js +16 -15
  72. package/lib/RadioCard/RadioCardGroup.js +30 -28
  73. package/lib/Search/Search.js +52 -32
  74. package/lib/Select/Group.js +5 -4
  75. package/lib/Select/Group.native.js +4 -3
  76. package/lib/Select/Item.js +10 -7
  77. package/lib/Select/Item.native.js +1 -9
  78. package/lib/Select/Picker.js +16 -15
  79. package/lib/Select/Picker.native.js +49 -38
  80. package/lib/Select/Select.js +134 -113
  81. package/lib/SideNav/Item.js +39 -33
  82. package/lib/SideNav/ItemContent.js +15 -12
  83. package/lib/SideNav/ItemsGroup.js +13 -11
  84. package/lib/SideNav/SideNav.js +21 -18
  85. package/lib/Skeleton/Skeleton.js +60 -44
  86. package/lib/Skeleton/skeleton.constant.js +1 -1
  87. package/lib/Skeleton/skeletonWebAnimation.js +1 -1
  88. package/lib/Spacer/Spacer.js +6 -5
  89. package/lib/StackView/StackView.js +12 -11
  90. package/lib/StackView/StackWrap.js +5 -3
  91. package/lib/StackView/StackWrapBox.js +12 -11
  92. package/lib/StackView/StackWrapGap.js +11 -10
  93. package/lib/StackView/common.js +14 -11
  94. package/lib/StackView/getStackedContent.js +10 -9
  95. package/lib/StackView/index.js +1 -1
  96. package/lib/StepTracker/Step.js +122 -103
  97. package/lib/StepTracker/StepTracker.js +48 -38
  98. package/lib/Tabs/Tabs.js +57 -27
  99. package/lib/Tabs/TabsItem.js +78 -68
  100. package/lib/Tags/Tags.js +68 -62
  101. package/lib/TextInput/TextArea.js +26 -20
  102. package/lib/TextInput/TextInput.js +20 -15
  103. package/lib/TextInput/TextInputBase.js +74 -62
  104. package/lib/TextInput/index.js +4 -4
  105. package/lib/ThemeProvider/ThemeProvider.js +6 -5
  106. package/lib/ThemeProvider/index.js +5 -5
  107. package/lib/ThemeProvider/useSetTheme.js +6 -3
  108. package/lib/ThemeProvider/useThemeTokens.js +7 -2
  109. package/lib/ThemeProvider/utils/styles.js +50 -43
  110. package/lib/ThemeProvider/utils/theme-tokens.js +33 -21
  111. package/lib/ToggleSwitch/ToggleSwitch.js +90 -74
  112. package/lib/ToggleSwitch/ToggleSwitchGroup.js +37 -35
  113. package/lib/Tooltip/Backdrop.js +6 -13
  114. package/lib/Tooltip/Backdrop.native.js +5 -4
  115. package/lib/Tooltip/Tooltip.js +81 -65
  116. package/lib/Tooltip/getTooltipPosition.js +29 -18
  117. package/lib/TooltipButton/TooltipButton.js +28 -21
  118. package/lib/Typography/Typography.js +37 -33
  119. package/lib/ViewportProvider/ViewportProvider.js +4 -3
  120. package/lib/ViewportProvider/useViewportListener.js +6 -3
  121. package/lib/index.js +54 -54
  122. package/lib/utils/a11y/semantics.js +5 -2
  123. package/lib/utils/a11y/textSize.js +8 -6
  124. package/lib/utils/animation/useVerticalExpandAnimation.js +46 -19
  125. package/lib/utils/children.js +4 -3
  126. package/lib/utils/index.js +10 -10
  127. package/lib/utils/input.js +28 -29
  128. package/lib/utils/pressability.js +36 -22
  129. package/lib/utils/props/clickProps.js +2 -1
  130. package/lib/utils/props/componentPropType.js +3 -3
  131. package/lib/utils/props/getPropSelector.js +6 -3
  132. package/lib/utils/props/handlerProps.js +25 -19
  133. package/lib/utils/props/hrefAttrsProp.js +14 -11
  134. package/lib/utils/props/index.js +12 -12
  135. package/lib/utils/props/inputSupportsProps.js +15 -12
  136. package/lib/utils/props/linkProps.js +7 -6
  137. package/lib/utils/props/pressProps.js +1 -1
  138. package/lib/utils/props/selectSystemProps.js +2 -2
  139. package/lib/utils/props/tokens.js +29 -15
  140. package/lib/utils/ssr.js +6 -2
  141. package/lib/utils/useCopy.js +6 -4
  142. package/lib/utils/useHash.js +2 -1
  143. package/lib/utils/useResponsiveProp.js +1 -1
  144. package/lib/utils/useSpacingScale.js +3 -1
  145. package/lib/utils/useUniqueId.js +3 -2
  146. package/lib/utils/withLinkRouter.js +6 -5
  147. package/lib-module/A11yInfoProvider/index.js +4 -3
  148. package/lib-module/A11yText/index.js +6 -5
  149. package/lib-module/ActivityIndicator/Spinner.js +14 -13
  150. package/lib-module/ActivityIndicator/Spinner.native.js +9 -8
  151. package/lib-module/ActivityIndicator/index.js +6 -5
  152. package/lib-module/BaseProvider/index.js +13 -10
  153. package/lib-module/Box/Box.js +20 -19
  154. package/lib-module/Button/Button.js +7 -6
  155. package/lib-module/Button/ButtonBase.js +96 -79
  156. package/lib-module/Button/ButtonGroup.js +34 -32
  157. package/lib-module/Button/ButtonLink.js +8 -7
  158. package/lib-module/Card/Card.js +8 -7
  159. package/lib-module/Card/CardBase.js +35 -31
  160. package/lib-module/Card/PressableCardBase.js +12 -11
  161. package/lib-module/Checkbox/Checkbox.js +97 -83
  162. package/lib-module/Checkbox/CheckboxGroup.js +29 -27
  163. package/lib-module/Checkbox/CheckboxInput.js +12 -10
  164. package/lib-module/Divider/Divider.js +10 -9
  165. package/lib-module/ExpandCollapse/Control.js +42 -36
  166. package/lib-module/ExpandCollapse/ExpandCollapse.js +11 -10
  167. package/lib-module/ExpandCollapse/Panel.js +29 -37
  168. package/lib-module/Feedback/Feedback.js +46 -33
  169. package/lib-module/Fieldset/Fieldset.js +16 -15
  170. package/lib-module/Fieldset/FieldsetContainer.js +16 -13
  171. package/lib-module/Fieldset/FieldsetContainer.native.js +11 -8
  172. package/lib-module/Fieldset/Legend.js +10 -7
  173. package/lib-module/Fieldset/Legend.native.js +10 -7
  174. package/lib-module/FlexGrid/Col/Col.js +18 -17
  175. package/lib-module/FlexGrid/FlexGrid.js +15 -14
  176. package/lib-module/FlexGrid/Row/Row.js +13 -12
  177. package/lib-module/HorizontalScroll/HorizontalScroll.js +24 -19
  178. package/lib-module/HorizontalScroll/HorizontalScrollButton.js +18 -14
  179. package/lib-module/HorizontalScroll/ScrollViewEnd.js +6 -5
  180. package/lib-module/HorizontalScroll/ScrollViewEnd.native.js +12 -9
  181. package/lib-module/HorizontalScroll/itemPositions.js +18 -12
  182. package/lib-module/Icon/Icon.js +10 -9
  183. package/lib-module/Icon/IconText.js +9 -7
  184. package/lib-module/IconButton/IconButton.js +48 -41
  185. package/lib-module/InputLabel/InputLabel.js +37 -30
  186. package/lib-module/InputLabel/LabelContent.js +12 -9
  187. package/lib-module/InputLabel/LabelContent.native.js +9 -6
  188. package/lib-module/InputSupports/InputSupports.js +11 -10
  189. package/lib-module/InputSupports/useInputSupports.js +7 -6
  190. package/lib-module/Link/ChevronLink.js +9 -8
  191. package/lib-module/Link/InlinePressable.js +13 -10
  192. package/lib-module/Link/InlinePressable.native.js +20 -16
  193. package/lib-module/Link/Link.js +10 -9
  194. package/lib-module/Link/LinkBase.js +94 -77
  195. package/lib-module/Link/TextButton.js +9 -8
  196. package/lib-module/List/List.js +20 -13
  197. package/lib-module/List/ListItem.js +103 -78
  198. package/lib-module/Modal/Modal.js +74 -60
  199. package/lib-module/Notification/Notification.js +46 -33
  200. package/lib-module/Pagination/PageButton.js +13 -12
  201. package/lib-module/Pagination/Pagination.js +43 -30
  202. package/lib-module/Pagination/SideButton.js +21 -18
  203. package/lib-module/Pagination/usePagination.js +7 -6
  204. package/lib-module/Progress/Progress.js +23 -19
  205. package/lib-module/Progress/ProgressBar.js +25 -21
  206. package/lib-module/Progress/ProgressBarBackground.js +7 -6
  207. package/lib-module/Radio/Radio.js +80 -69
  208. package/lib-module/Radio/RadioButton.js +62 -52
  209. package/lib-module/Radio/RadioGroup.js +30 -28
  210. package/lib-module/Radio/RadioInput.js +12 -10
  211. package/lib-module/RadioCard/RadioCard.js +16 -15
  212. package/lib-module/RadioCard/RadioCardGroup.js +30 -28
  213. package/lib-module/Search/Search.js +52 -32
  214. package/lib-module/Select/Group.js +5 -4
  215. package/lib-module/Select/Group.native.js +4 -3
  216. package/lib-module/Select/Item.js +10 -7
  217. package/lib-module/Select/Item.native.js +1 -7
  218. package/lib-module/Select/Picker.js +16 -15
  219. package/lib-module/Select/Picker.native.js +46 -36
  220. package/lib-module/Select/Select.js +134 -113
  221. package/lib-module/SideNav/Item.js +39 -33
  222. package/lib-module/SideNav/ItemContent.js +14 -11
  223. package/lib-module/SideNav/ItemsGroup.js +13 -11
  224. package/lib-module/SideNav/SideNav.js +21 -18
  225. package/lib-module/Skeleton/Skeleton.js +60 -44
  226. package/lib-module/Skeleton/skeletonWebAnimation.js +1 -1
  227. package/lib-module/Spacer/Spacer.js +6 -5
  228. package/lib-module/StackView/StackView.js +12 -11
  229. package/lib-module/StackView/StackWrap.js +5 -3
  230. package/lib-module/StackView/StackWrapBox.js +12 -11
  231. package/lib-module/StackView/StackWrapGap.js +11 -10
  232. package/lib-module/StackView/common.js +14 -11
  233. package/lib-module/StackView/getStackedContent.js +10 -9
  234. package/lib-module/StepTracker/Step.js +122 -103
  235. package/lib-module/StepTracker/StepTracker.js +48 -38
  236. package/lib-module/Tabs/Tabs.js +57 -27
  237. package/lib-module/Tabs/TabsItem.js +77 -68
  238. package/lib-module/Tags/Tags.js +68 -62
  239. package/lib-module/TextInput/TextArea.js +26 -20
  240. package/lib-module/TextInput/TextInput.js +19 -15
  241. package/lib-module/TextInput/TextInputBase.js +74 -62
  242. package/lib-module/ThemeProvider/ThemeProvider.js +5 -4
  243. package/lib-module/ThemeProvider/useSetTheme.js +6 -3
  244. package/lib-module/ThemeProvider/useThemeTokens.js +7 -2
  245. package/lib-module/ThemeProvider/utils/styles.js +48 -41
  246. package/lib-module/ThemeProvider/utils/theme-tokens.js +32 -20
  247. package/lib-module/ToggleSwitch/ToggleSwitch.js +90 -74
  248. package/lib-module/ToggleSwitch/ToggleSwitchGroup.js +37 -35
  249. package/lib-module/Tooltip/Backdrop.js +6 -13
  250. package/lib-module/Tooltip/Backdrop.native.js +5 -4
  251. package/lib-module/Tooltip/Tooltip.js +81 -65
  252. package/lib-module/Tooltip/getTooltipPosition.js +29 -18
  253. package/lib-module/TooltipButton/TooltipButton.js +28 -21
  254. package/lib-module/Typography/Typography.js +35 -31
  255. package/lib-module/ViewportProvider/ViewportProvider.js +4 -3
  256. package/lib-module/ViewportProvider/useViewportListener.js +6 -3
  257. package/lib-module/utils/a11y/semantics.js +4 -1
  258. package/lib-module/utils/a11y/textSize.js +7 -5
  259. package/lib-module/utils/animation/useVerticalExpandAnimation.js +47 -20
  260. package/lib-module/utils/children.js +4 -3
  261. package/lib-module/utils/input.js +28 -29
  262. package/lib-module/utils/pressability.js +35 -21
  263. package/lib-module/utils/props/clickProps.js +2 -1
  264. package/lib-module/utils/props/componentPropType.js +3 -3
  265. package/lib-module/utils/props/getPropSelector.js +6 -3
  266. package/lib-module/utils/props/handlerProps.js +24 -18
  267. package/lib-module/utils/props/hrefAttrsProp.js +14 -11
  268. package/lib-module/utils/props/inputSupportsProps.js +15 -12
  269. package/lib-module/utils/props/linkProps.js +7 -6
  270. package/lib-module/utils/props/selectSystemProps.js +2 -2
  271. package/lib-module/utils/props/tokens.js +27 -14
  272. package/lib-module/utils/ssr.js +5 -2
  273. package/lib-module/utils/useCopy.js +6 -4
  274. package/lib-module/utils/useHash.js +2 -1
  275. package/lib-module/utils/useSpacingScale.js +3 -1
  276. package/lib-module/utils/useUniqueId.js +3 -2
  277. package/lib-module/utils/withLinkRouter.js +6 -5
  278. package/package.json +13 -11
  279. package/src/ExpandCollapse/Panel.jsx +2 -19
  280. package/src/List/List.jsx +34 -19
  281. package/src/List/ListItem.jsx +12 -2
  282. package/src/Modal/Modal.jsx +2 -1
  283. package/src/Pagination/Pagination.jsx +3 -0
  284. package/src/Search/Search.jsx +11 -0
  285. package/src/Select/Item.native.jsx +0 -7
  286. package/src/Tabs/Tabs.jsx +24 -2
  287. package/src/Tabs/TabsItem.jsx +6 -5
  288. package/src/utils/animation/useVerticalExpandAnimation.js +47 -13
@@ -38,33 +38,45 @@ const selectContainerStyles = tokens => ({ ...tokens
38
38
 
39
39
  const selectTextStyles = tokens => (0, _ThemeProvider.applyTextStyles)((0, _utils.selectTokens)('Typography', tokens));
40
40
 
41
- const selectIconProps = ({
42
- iconSize,
43
- iconColor
44
- }) => ({
45
- size: iconSize,
46
- color: iconColor
47
- });
41
+ const selectIconProps = _ref => {
42
+ let {
43
+ iconSize,
44
+ iconColor
45
+ } = _ref;
46
+ return {
47
+ size: iconSize,
48
+ color: iconColor
49
+ };
50
+ };
48
51
 
49
- const selectIconContainerStyles = ({
50
- iconGap
51
- }) => ({
52
- paddingRight: iconGap
53
- });
52
+ const selectIconContainerStyles = _ref2 => {
53
+ let {
54
+ iconGap
55
+ } = _ref2;
56
+ return {
57
+ paddingRight: iconGap
58
+ };
59
+ };
54
60
 
55
- const selectDismissIconProps = ({
56
- dismissIconSize,
57
- dismissIconColor
58
- }) => ({
59
- size: dismissIconSize,
60
- color: dismissIconColor
61
- });
61
+ const selectDismissIconProps = _ref3 => {
62
+ let {
63
+ dismissIconSize,
64
+ dismissIconColor
65
+ } = _ref3;
66
+ return {
67
+ size: dismissIconSize,
68
+ color: dismissIconColor
69
+ };
70
+ };
62
71
 
63
- const selectDismissButtonContainerStyles = ({
64
- dismissButtonGap
65
- }) => ({
66
- paddingLeft: dismissButtonGap
67
- });
72
+ const selectDismissButtonContainerStyles = _ref4 => {
73
+ let {
74
+ dismissButtonGap
75
+ } = _ref4;
76
+ return {
77
+ paddingLeft: dismissButtonGap
78
+ };
79
+ };
68
80
  /**
69
81
  * A banner that highlights important messages:
70
82
  * - Status message to show there is an error or outage of services
@@ -118,15 +130,16 @@ const selectDismissButtonContainerStyles = ({
118
130
  */
119
131
 
120
132
 
121
- const Notification = /*#__PURE__*/(0, _react.forwardRef)(({
122
- children,
123
- system,
124
- dismissible,
125
- copy = 'en',
126
- tokens,
127
- variant,
128
- ...rest
129
- }, ref) => {
133
+ const Notification = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
134
+ let {
135
+ children,
136
+ system,
137
+ dismissible,
138
+ copy = 'en',
139
+ tokens,
140
+ variant,
141
+ ...rest
142
+ } = _ref5;
130
143
  const [isDismissed, setIsDismissed] = (0, _react.useState)(false);
131
144
  const themeTokens = (0, _ThemeProvider.useThemeTokens)('Notification', tokens, variant, {
132
145
  system
@@ -27,16 +27,17 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
27
 
28
28
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
29
 
30
- const PageButton = /*#__PURE__*/(0, _react.forwardRef)(({
31
- label,
32
- onPress,
33
- href,
34
- isActive,
35
- copy,
36
- variant,
37
- tokens,
38
- ...props
39
- }, ref) => {
30
+ const PageButton = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
31
+ let {
32
+ label,
33
+ onPress,
34
+ href,
35
+ isActive,
36
+ copy,
37
+ variant,
38
+ tokens,
39
+ ...props
40
+ } = _ref;
40
41
  const getTokens = (0, _ThemeProvider.useThemeTokensCallback)('PaginationPageButton', tokens, variant);
41
42
  const getCopy = (0, _useCopy.default)({
42
43
  dictionary: _dictionary.default,
@@ -53,8 +54,8 @@ const PageButton = /*#__PURE__*/(0, _react.forwardRef)(({
53
54
  key: 'active-item'
54
55
  } : {};
55
56
  const accessibilityRole = href !== undefined ? 'link' : 'button';
56
- const activeLabel = isActive ? ` ${getCopy('currentLabel')}` : '';
57
- const accessibilityLabel = `${getCopy('goToLabel')} ${label}${activeLabel}`;
57
+ const activeLabel = isActive ? " ".concat(getCopy('currentLabel')) : '';
58
+ const accessibilityLabel = "".concat(getCopy('goToLabel'), " ").concat(label).concat(activeLabel);
58
59
 
59
60
  const {
60
61
  hrefAttrs,
@@ -37,31 +37,35 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
37
37
 
38
38
  const [selectProps, selectedSystemPropTypes] = (0, _utils.selectSystemProps)([_utils.a11yProps, _utils.viewProps]);
39
39
 
40
- const selectTextStyles = ({
41
- color,
42
- fontName,
43
- fontSize,
44
- fontWeight,
45
- lineHeight
46
- }) => (0, _ThemeProvider.applyTextStyles)({
47
- color,
48
- fontName,
49
- fontSize,
50
- fontWeight,
51
- lineHeight
52
- });
40
+ const selectTextStyles = _ref => {
41
+ let {
42
+ color,
43
+ fontName,
44
+ fontSize,
45
+ fontWeight,
46
+ lineHeight
47
+ } = _ref;
48
+ return (0, _ThemeProvider.applyTextStyles)({
49
+ color,
50
+ fontName,
51
+ fontSize,
52
+ fontWeight,
53
+ lineHeight
54
+ });
55
+ };
53
56
 
54
- const Pagination = /*#__PURE__*/(0, _react.forwardRef)(({
55
- children,
56
- copy = 'en',
57
- variant,
58
- tokens,
59
- sideButtonVariant,
60
- sideButtonTokens,
61
- LinkRouter,
62
- linkRouterProps,
63
- ...rest
64
- }, ref) => {
57
+ const Pagination = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
58
+ let {
59
+ children,
60
+ copy = 'en',
61
+ variant,
62
+ tokens,
63
+ sideButtonVariant,
64
+ sideButtonTokens,
65
+ LinkRouter,
66
+ linkRouterProps,
67
+ ...rest
68
+ } = _ref2;
65
69
  const viewport = (0, _ViewportProvider.useViewport)();
66
70
  const {
67
71
  truncateAbove,
@@ -102,9 +106,11 @@ const Pagination = /*#__PURE__*/(0, _react.forwardRef)(({
102
106
  LinkRouter: LinkRouter,
103
107
  linkRouterProps: linkRouterProps
104
108
  }), ...items.map((_child, itemIndex) => {
105
- const buttonLabel = `${itemIndex + 1}`;
109
+ var _itemProps$LinkRouter;
110
+
111
+ const buttonLabel = "".concat(itemIndex + 1);
106
112
  const itemProps = getItemProps(itemIndex);
107
- const ItemLinkRouter = itemProps.LinkRouter ?? LinkRouter;
113
+ const ItemLinkRouter = (_itemProps$LinkRouter = itemProps.LinkRouter) !== null && _itemProps$LinkRouter !== void 0 ? _itemProps$LinkRouter : LinkRouter;
108
114
  const itemLinkRouterProps = { ...linkRouterProps,
109
115
  ...itemProps.linkRouterProps
110
116
  };
@@ -140,12 +146,19 @@ const Pagination = /*#__PURE__*/(0, _react.forwardRef)(({
140
146
  ref: ref,
141
147
  ...selectProps(rest),
142
148
  children: buttons // keep the keys in-line with the page numbers regardless of which buttons are actually rendered
143
- .map((element, index) => [element, `page-${index + 1}`]).filter(([element]) => element !== null).map(([element, key]) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
144
- right: gap,
145
- children: element
146
- }, key))
149
+ .map((element, index) => [element, "page-".concat(index + 1)]).filter(_ref3 => {
150
+ let [element] = _ref3;
151
+ return element !== null;
152
+ }).map(_ref4 => {
153
+ let [element, key] = _ref4;
154
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
155
+ right: gap,
156
+ children: element
157
+ }, key);
158
+ })
147
159
  });
148
160
  });
161
+ Pagination.displayName = 'Pagination';
149
162
  _PageButton.default.displayName = 'PageButton';
150
163
  Pagination.PageButton = _PageButton.default;
151
164
  Pagination.propTypes = { ...selectedSystemPropTypes,
@@ -33,11 +33,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
33
33
 
34
34
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
35
 
36
- const selectIconTokens = ({
37
- color,
38
- iconSize,
39
- iconDisplace
40
- }, direction) => {
36
+ const selectIconTokens = (_ref, direction) => {
37
+ let {
38
+ color,
39
+ iconSize,
40
+ iconDisplace
41
+ } = _ref;
41
42
  return {
42
43
  color,
43
44
  size: iconSize,
@@ -49,15 +50,16 @@ const directionToSide = {
49
50
  previous: 'left',
50
51
  next: 'right'
51
52
  };
52
- const SideButton = /*#__PURE__*/(0, _react.forwardRef)(({
53
- direction = 'previous',
54
- onPress,
55
- href,
56
- copy,
57
- variant,
58
- tokens,
59
- ...props
60
- }, ref) => {
53
+ const SideButton = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
54
+ let {
55
+ direction = 'previous',
56
+ onPress,
57
+ href,
58
+ copy,
59
+ variant,
60
+ tokens,
61
+ ...props
62
+ } = _ref2;
61
63
  const viewport = (0, _ViewportProvider.useViewport)();
62
64
  const buttonVariant = {
63
65
  direction,
@@ -99,10 +101,11 @@ const SideButton = /*#__PURE__*/(0, _react.forwardRef)(({
99
101
  ref: ref,
100
102
  ...buttonProps,
101
103
  tokens: getButtonTokens,
102
- children: ({
103
- textStyles,
104
- ...buttonState
105
- }) => {
104
+ children: _ref3 => {
105
+ let {
106
+ textStyles,
107
+ ...buttonState
108
+ } = _ref3;
106
109
  const iconProps = {
107
110
  tokens: getIconTokens(buttonState)
108
111
  };
@@ -12,15 +12,16 @@ exports.default = void 0;
12
12
  * @param {React.Element[]} items
13
13
  * @param {number} truncateAbove
14
14
  */
15
- function usePagination({
16
- items,
17
- truncateAbove
18
- }) {
15
+ function usePagination(_ref) {
16
+ let {
17
+ items,
18
+ truncateAbove
19
+ } = _ref;
19
20
  const activeItemIndex = Math.max(items.findIndex(item => item.props.isActive), 0 // default to the first item if none is marked as active
20
21
  );
21
22
 
22
23
  const getItemProps = index => {
23
- var _items$index;
24
+ var _items$index$props, _items$index;
24
25
 
25
26
  const {
26
27
  onPress,
@@ -28,7 +29,7 @@ function usePagination({
28
29
  hrefAttrs,
29
30
  variant,
30
31
  tokens
31
- } = ((_items$index = items[index]) === null || _items$index === void 0 ? void 0 : _items$index.props) ?? {};
32
+ } = (_items$index$props = (_items$index = items[index]) === null || _items$index === void 0 ? void 0 : _items$index.props) !== null && _items$index$props !== void 0 ? _items$index$props : {};
32
33
  return {
33
34
  onPress,
34
35
  href,
@@ -25,19 +25,22 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
25
25
 
26
26
  const [selectProps, selectedSystemPropTypes] = (0, _utils.selectSystemProps)([_utils.a11yProps, _utils.viewProps]);
27
27
 
28
- const selectProgressStyles = ({
29
- backgroundColor,
30
- borderWidth,
31
- borderColor,
32
- borderRadius,
33
- height
34
- }) => ({
35
- backgroundColor,
36
- borderWidth,
37
- borderColor,
38
- borderRadius,
39
- height
40
- });
28
+ const selectProgressStyles = _ref => {
29
+ let {
30
+ backgroundColor,
31
+ borderWidth,
32
+ borderColor,
33
+ borderRadius,
34
+ height
35
+ } = _ref;
36
+ return {
37
+ backgroundColor,
38
+ borderWidth,
39
+ borderColor,
40
+ borderRadius,
41
+ height
42
+ };
43
+ };
41
44
  /**
42
45
  * The `Progress` is a container for displaying one or several `ProgressBar`s.
43
46
  *
@@ -69,12 +72,13 @@ const selectProgressStyles = ({
69
72
  */
70
73
 
71
74
 
72
- const Progress = /*#__PURE__*/(0, _react.forwardRef)(({
73
- children,
74
- tokens,
75
- variant,
76
- ...rest
77
- }, ref) => {
75
+ const Progress = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
76
+ let {
77
+ children,
78
+ tokens,
79
+ variant,
80
+ ...rest
81
+ } = _ref2;
78
82
  const themeTokens = (0, _ThemeProvider.useThemeTokens)('Progress', tokens, variant);
79
83
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_View.default, {
80
84
  ref: ref,
@@ -31,18 +31,21 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
31
31
 
32
32
  const [selectProps, selectedSystemPropTypes] = (0, _utils.selectSystemProps)([_utils.a11yProps, _utils.viewProps]);
33
33
 
34
- const selectBarStyles = ({
35
- backgroundColor,
36
- borderRadius,
37
- outlineWidth,
38
- outlineColor
39
- }, percentage) => ({
40
- backgroundColor,
41
- borderRadius,
42
- outlineWidth,
43
- outlineColor,
44
- width: `${percentage}%`
45
- });
34
+ const selectBarStyles = (_ref, percentage) => {
35
+ let {
36
+ backgroundColor,
37
+ borderRadius,
38
+ outlineWidth,
39
+ outlineColor
40
+ } = _ref;
41
+ return {
42
+ backgroundColor,
43
+ borderRadius,
44
+ outlineWidth,
45
+ outlineColor,
46
+ width: "".concat(percentage, "%")
47
+ };
48
+ };
46
49
  /**
47
50
  * The `ProgressBar` is a visual representation of linear progression.
48
51
  * It provides simple but important information at a quick glance.
@@ -79,13 +82,14 @@ const selectBarStyles = ({
79
82
  */
80
83
 
81
84
 
82
- const ProgressBar = /*#__PURE__*/(0, _react.forwardRef)(({
83
- children = null,
84
- percentage = 0,
85
- tokens,
86
- variant,
87
- ...rest
88
- }, ref) => {
85
+ const ProgressBar = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
86
+ let {
87
+ children = null,
88
+ percentage = 0,
89
+ tokens,
90
+ variant,
91
+ ...rest
92
+ } = _ref2;
89
93
  const themeTokens = (0, _ThemeProvider.useThemeTokens)('ProgressBar', tokens, variant);
90
94
 
91
95
  if (percentage < 0) {
@@ -100,7 +104,7 @@ const ProgressBar = /*#__PURE__*/(0, _react.forwardRef)(({
100
104
  min: 0,
101
105
  max: 100,
102
106
  now: percentage,
103
- text: `${percentage}%`
107
+ text: "".concat(percentage, "%")
104
108
  },
105
109
  ...rest
106
110
  });
@@ -108,7 +112,7 @@ const ProgressBar = /*#__PURE__*/(0, _react.forwardRef)(({
108
112
  ref: ref,
109
113
  style: [staticStyles.bar, selectBarStyles(themeTokens, percentage)],
110
114
  ...selectedProps,
111
- children: children ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBarBackground.default, {
115
+ children: children !== null && children !== void 0 ? children : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBarBackground.default, {
112
116
  variant: variant
113
117
  })
114
118
  }) : null;
@@ -21,11 +21,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
21
 
22
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
23
 
24
- const inactiveBackground = `%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='24'%3E%3Cdefs%3E%3Cpattern id='DisabledProgress7' patternUnits='userSpaceOnUse' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23B2B9BF'%3E%3C/rect%3E%3Ccircle cx='4' cy='4' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3Ccircle cx='0' cy='0' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3Ccircle cx='0' cy='8' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3Ccircle cx='8' cy='0' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3Ccircle cx='8' cy='8' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M 0 0 L 0 140 L 2000 2000 L 2000 0 Z' style='fill: url(&quot;%23DisabledProgress7&quot;);'%3E%3C/path%3E%3C/svg%3E`;
25
- const negativeBackground = `%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='24'%3E%3Cdefs%3E%3Cpattern id='NegativeProgress6' patternUnits='userSpaceOnUse' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23C12335'%3E%3C/rect%3E%3Cpath d='M 0,8 l 8,-8 M -2,2 l 4,-4 M 6,10 l 4,-4' stroke-width='2' shape-rendering='auto' stroke='%23e7adb4' stroke-linecap='square'%3E%3C/path%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M 0 0 L 0 140 L 2000 2000 L 2000 0 Z' style='fill: url(&quot;%23NegativeProgress6&quot;);'%3E%3C/path%3E%3C/svg%3E`;
26
- const ProgressBarBackground = /*#__PURE__*/(0, _react.forwardRef)(({
27
- variant
28
- }, ref) => {
24
+ const inactiveBackground = "%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='24'%3E%3Cdefs%3E%3Cpattern id='DisabledProgress7' patternUnits='userSpaceOnUse' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23B2B9BF'%3E%3C/rect%3E%3Ccircle cx='4' cy='4' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3Ccircle cx='0' cy='0' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3Ccircle cx='0' cy='8' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3Ccircle cx='8' cy='0' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3Ccircle cx='8' cy='8' r='2' fill='%23676E73' stroke='%23676E73' stroke-width='0'%3E%3C/circle%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M 0 0 L 0 140 L 2000 2000 L 2000 0 Z' style='fill: url(&quot;%23DisabledProgress7&quot;);'%3E%3C/path%3E%3C/svg%3E";
25
+ const negativeBackground = "%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='24'%3E%3Cdefs%3E%3Cpattern id='NegativeProgress6' patternUnits='userSpaceOnUse' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23C12335'%3E%3C/rect%3E%3Cpath d='M 0,8 l 8,-8 M -2,2 l 4,-4 M 6,10 l 4,-4' stroke-width='2' shape-rendering='auto' stroke='%23e7adb4' stroke-linecap='square'%3E%3C/path%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M 0 0 L 0 140 L 2000 2000 L 2000 0 Z' style='fill: url(&quot;%23NegativeProgress6&quot;);'%3E%3C/path%3E%3C/svg%3E";
26
+ const ProgressBarBackground = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
27
+ let {
28
+ variant
29
+ } = _ref;
29
30
  let source = null;
30
31
 
31
32
  if (variant !== null && variant !== void 0 && variant.inactive) {
@@ -39,7 +40,7 @@ const ProgressBarBackground = /*#__PURE__*/(0, _react.forwardRef)(({
39
40
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageBackground.default, {
40
41
  ref: ref,
41
42
  source: {
42
- uri: `data:image/svg+xml,${source}`
43
+ uri: "data:image/svg+xml,".concat(source)
43
44
  },
44
45
  style: staticStyles.imageBackground
45
46
  });
@@ -37,56 +37,65 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
37
37
 
38
38
  const [selectProps, selectedSystemPropTypes] = (0, _utils.selectSystemProps)([_utils.a11yProps, _utils.focusHandlerProps, _utils.viewProps]);
39
39
 
40
- const selectContainerStyles = ({
41
- containerBackgroundColor,
42
- containerBorderRadius,
43
- containerOpacity,
44
- containerPaddingBottom,
45
- containerPaddingLeft,
46
- containerPaddingRight,
47
- containerPaddingTop,
48
- containerShadow
49
- }) => ({
50
- backgroundColor: containerBackgroundColor,
51
- borderRadius: containerBorderRadius,
52
- opacity: containerOpacity,
53
- paddingBottom: containerPaddingBottom,
54
- paddingLeft: containerPaddingLeft,
55
- paddingRight: containerPaddingRight,
56
- paddingTop: containerPaddingTop,
57
- ...(0, _ThemeProvider.applyShadowToken)(containerShadow)
58
- });
40
+ const selectContainerStyles = _ref => {
41
+ let {
42
+ containerBackgroundColor,
43
+ containerBorderRadius,
44
+ containerOpacity,
45
+ containerPaddingBottom,
46
+ containerPaddingLeft,
47
+ containerPaddingRight,
48
+ containerPaddingTop,
49
+ containerShadow
50
+ } = _ref;
51
+ return {
52
+ backgroundColor: containerBackgroundColor,
53
+ borderRadius: containerBorderRadius,
54
+ opacity: containerOpacity,
55
+ paddingBottom: containerPaddingBottom,
56
+ paddingLeft: containerPaddingLeft,
57
+ paddingRight: containerPaddingRight,
58
+ paddingTop: containerPaddingTop,
59
+ ...(0, _ThemeProvider.applyShadowToken)(containerShadow)
60
+ };
61
+ };
59
62
 
60
- const selectDescriptionStyles = ({
61
- containerPaddingLeft = 0,
62
- descriptionFontSize,
63
- descriptionLineHeight,
64
- descriptionMarginLeft,
65
- inputSize,
66
- labelMarginLeft = 0
67
- }) => ({
68
- marginLeft: descriptionMarginLeft ?? containerPaddingLeft + inputSize + labelMarginLeft,
69
- ...(0, _ThemeProvider.applyTextStyles)({
70
- fontSize: descriptionFontSize,
71
- lineHeight: descriptionLineHeight
72
- })
73
- });
63
+ const selectDescriptionStyles = _ref2 => {
64
+ let {
65
+ containerPaddingLeft = 0,
66
+ descriptionFontSize,
67
+ descriptionLineHeight,
68
+ descriptionMarginLeft,
69
+ inputSize,
70
+ labelMarginLeft = 0
71
+ } = _ref2;
72
+ return {
73
+ marginLeft: descriptionMarginLeft !== null && descriptionMarginLeft !== void 0 ? descriptionMarginLeft : containerPaddingLeft + inputSize + labelMarginLeft,
74
+ ...(0, _ThemeProvider.applyTextStyles)({
75
+ fontSize: descriptionFontSize,
76
+ lineHeight: descriptionLineHeight
77
+ })
78
+ };
79
+ };
74
80
 
75
- const selectLabelStyles = ({
76
- labelColor,
77
- labelFontName,
78
- labelFontSize,
79
- labelFontWeight,
80
- labelMarginLeft,
81
- labelLineHeight
82
- }) => (0, _ThemeProvider.applyTextStyles)({
83
- color: labelColor,
84
- fontName: labelFontName,
85
- fontWeight: labelFontWeight,
86
- fontSize: labelFontSize,
87
- lineHeight: labelLineHeight,
88
- marginLeft: labelMarginLeft
89
- });
81
+ const selectLabelStyles = _ref3 => {
82
+ let {
83
+ labelColor,
84
+ labelFontName,
85
+ labelFontSize,
86
+ labelFontWeight,
87
+ labelMarginLeft,
88
+ labelLineHeight
89
+ } = _ref3;
90
+ return (0, _ThemeProvider.applyTextStyles)({
91
+ color: labelColor,
92
+ fontName: labelFontName,
93
+ fontWeight: labelFontWeight,
94
+ fontSize: labelFontSize,
95
+ lineHeight: labelLineHeight,
96
+ marginLeft: labelMarginLeft
97
+ });
98
+ };
90
99
  /**
91
100
  * Basic Radio component.
92
101
  *
@@ -121,21 +130,22 @@ const selectLabelStyles = ({
121
130
  */
122
131
 
123
132
 
124
- const Radio = /*#__PURE__*/(0, _react.forwardRef)(({
125
- checked,
126
- defaultChecked,
127
- description,
128
- error = false,
129
- id,
130
- inactive,
131
- label,
132
- name: inputName,
133
- onChange,
134
- tokens,
135
- value,
136
- variant,
137
- ...rest
138
- }, ref) => {
133
+ const Radio = /*#__PURE__*/(0, _react.forwardRef)((_ref4, ref) => {
134
+ let {
135
+ checked,
136
+ defaultChecked,
137
+ description,
138
+ error = false,
139
+ id,
140
+ inactive,
141
+ label,
142
+ name: inputName,
143
+ onChange,
144
+ tokens,
145
+ value,
146
+ variant,
147
+ ...rest
148
+ } = _ref4;
139
149
  const {
140
150
  currentValue: isChecked,
141
151
  setValue: setIsChecked,
@@ -164,7 +174,7 @@ const Radio = /*#__PURE__*/(0, _react.forwardRef)(({
164
174
  };
165
175
 
166
176
  const uniqueId = (0, _utils.useUniqueId)('radio');
167
- const inputId = id ?? uniqueId;
177
+ const inputId = id !== null && id !== void 0 ? id : uniqueId;
168
178
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pressable.default, {
169
179
  ref: ref,
170
180
  disabled: inactive,
@@ -176,11 +186,12 @@ const Radio = /*#__PURE__*/(0, _react.forwardRef)(({
176
186
  disabled: inactive
177
187
  },
178
188
  ...selectProps(rest),
179
- children: ({
180
- focused: focus,
181
- hovered: hover,
182
- pressed
183
- }) => {
189
+ children: _ref5 => {
190
+ let {
191
+ focused: focus,
192
+ hovered: hover,
193
+ pressed
194
+ } = _ref5;
184
195
  const stateTokens = getTokens({
185
196
  focus,
186
197
  hover,