@autoguru/overdrive 4.44.4-next.0 → 4.44.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 (86) hide show
  1. package/dist/components/Actions/Actions.js +12 -15
  2. package/dist/components/Alert/Alert.js +8 -9
  3. package/dist/components/AutoSuggest/AutoSuggest.js +114 -126
  4. package/dist/components/Badge/Badge.js +8 -9
  5. package/dist/components/BulletList/Bullet.js +4 -5
  6. package/dist/components/BulletList/BulletList.js +4 -5
  7. package/dist/components/BulletText/BulletText.js +44 -47
  8. package/dist/components/Button/Button.js +23 -24
  9. package/dist/components/CheckBox/CheckBox.js +11 -12
  10. package/dist/components/DateTimePicker/CalendarGrid.js +7 -8
  11. package/dist/components/DateTimePicker/DateTimePicker.js +9 -10
  12. package/dist/components/DividerLine/DividerLine.js +16 -19
  13. package/dist/components/DropDown/DropDownOptionsList.js +15 -18
  14. package/dist/components/Flex/flex.js +35 -41
  15. package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.js +12 -13
  16. package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.js +7 -8
  17. package/dist/components/Icon/Icon.js +6 -7
  18. package/dist/components/Image/ImageServerProvider.js +17 -21
  19. package/dist/components/Inline/Inline.js +13 -15
  20. package/dist/components/IntentStripe/IntentStripe.js +10 -13
  21. package/dist/components/LinearProgressIndicator/LinearProgressIndicator.js +3 -4
  22. package/dist/components/Meta/Meta.js +18 -21
  23. package/dist/components/Modal/Modal.js +13 -14
  24. package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -1
  25. package/dist/components/NumberBubble/NumberBubble.js +28 -29
  26. package/dist/components/NumberInput/useNumberInputBehaviours.js +8 -9
  27. package/dist/components/OptionGrid/OptionGrid.js +53 -57
  28. package/dist/components/OptionList/OptionListItem.js +4 -5
  29. package/dist/components/OrderedList/OrderedList.js +14 -18
  30. package/dist/components/OutsideClick/OutsideClick.js +4 -5
  31. package/dist/components/OverdriveProvider/FallbackProvider.js +3 -4
  32. package/dist/components/OverdriveProvider/OverdriveProvider.js +8 -9
  33. package/dist/components/Pagination/Bubble.js +8 -9
  34. package/dist/components/Pagination/Pagination.js +56 -63
  35. package/dist/components/Portal/Portal.js +5 -6
  36. package/dist/components/ProgressBar/ProgressBar.js +16 -19
  37. package/dist/components/ProgressBarGroup/ProgressBarGroup.js +7 -8
  38. package/dist/components/ProgressSpinner/ProgressSpinner.js +23 -26
  39. package/dist/components/Radio/Radio.js +6 -7
  40. package/dist/components/Radio/RadioGroup.js +7 -8
  41. package/dist/components/Section/Section.js +12 -15
  42. package/dist/components/SimplePagination/SimplePagination.js +5 -6
  43. package/dist/components/SliderProgress/ProgressStep.js +9 -10
  44. package/dist/components/SliderProgress/SliderProgress.js +25 -28
  45. package/dist/components/Stack/Stack.js +9 -10
  46. package/dist/components/StandardModal/StandardModal.js +11 -12
  47. package/dist/components/StarRating/StarRating.js +32 -36
  48. package/dist/components/Stepper/Stepper.js +45 -50
  49. package/dist/components/Table/Table.js +20 -23
  50. package/dist/components/Table/TableCell.js +8 -9
  51. package/dist/components/Table/TableHeadCell.js +10 -11
  52. package/dist/components/Table/TableRow.js +10 -13
  53. package/dist/components/Table/TableRowGroup.js +8 -11
  54. package/dist/components/Table/context.js +5 -6
  55. package/dist/components/Tabs/Tab.js +6 -7
  56. package/dist/components/Tabs/TabList.js +5 -6
  57. package/dist/components/Tabs/TabPane.js +4 -5
  58. package/dist/components/Tabs/TabPanes.js +18 -21
  59. package/dist/components/Tabs/Tabs.js +7 -8
  60. package/dist/components/TextContainer/TextContainer.js +21 -24
  61. package/dist/components/Toaster/Toast.js +65 -98
  62. package/dist/components/Tooltip/Tooltip.js +10 -11
  63. package/dist/components/Tooltip/useTooltip/useTooltip.js +11 -13
  64. package/dist/components/private/CheckableBase/CheckableBase.js +12 -13
  65. package/dist/components/private/InputBase/HintText.js +7 -8
  66. package/dist/components/private/InputBase/NotchedBase.js +17 -18
  67. package/dist/components/private/InputBase/withEnhancedInput.js +182 -187
  68. package/dist/hooks/useAnimationEvents/useAnimationEvents.js +5 -6
  69. package/dist/hooks/useAttachedBoxes/useAttachedBoxes.js +9 -10
  70. package/dist/hooks/useMedia/useMedia.js +1 -2
  71. package/dist/hooks/useWindowHeightFill/useWindowHeightFill.js +8 -9
  72. package/dist/styles/sprinkles.css.js +9 -18
  73. package/dist/styles/typography.js +28 -31
  74. package/dist/themes/helpers.js +13 -15
  75. package/dist/themes/makeTheme.js +8 -15
  76. package/dist/utils/css.js +1 -2
  77. package/dist/utils/dataAttrs.js +1 -2
  78. package/dist/utils/index.js +3 -9
  79. package/dist/utils/mapTokenToProperty.js +5 -14
  80. package/dist/utils/number.js +1 -2
  81. package/dist/utils/responsiveProps.css.js +1 -2
  82. package/dist/utils/sprinkles.js +1 -2
  83. package/package.json +2 -2
  84. package/dist/components/NumberBubble/NumberBubble.css.d.ts +0 -2
  85. package/dist/components/NumberBubble/NumberBubble.css.d.ts.map +0 -1
  86. package/dist/components/NumberBubble/NumberBubble.css.js +0 -11
@@ -25,37 +25,34 @@ var EStarType = /*#__PURE__*/function (EStarType) {
25
25
  }(EStarType || {});
26
26
  const starSizeMap = new Map([[EStarRatingSize.Medium, 'medium'], [EStarRatingSize.Small, 'small']]);
27
27
  const labelSizeMap = new Map([[EStarRatingSize.Small, '3'], [EStarRatingSize.Medium, '4']]);
28
- export const StarRating = /*#__PURE__*/memo(_ref => {
29
- let {
30
- className = '',
31
- rating,
32
- label = rating,
33
- size = EStarRatingSize.Medium
34
- } = _ref;
35
- return /*#__PURE__*/_jsx(Box, {
36
- className: className,
37
- odComponent: "star-rating",
38
- children: /*#__PURE__*/_jsxs(Inline, {
39
- space: "4",
28
+ export const StarRating = /*#__PURE__*/memo(({
29
+ className = '',
30
+ rating,
31
+ label = rating,
32
+ size = EStarRatingSize.Medium
33
+ }) => /*#__PURE__*/_jsx(Box, {
34
+ className: className,
35
+ odComponent: "star-rating",
36
+ children: /*#__PURE__*/_jsxs(Inline, {
37
+ space: "4",
38
+ alignY: "center",
39
+ children: [/*#__PURE__*/_jsx(Inline, {
40
+ space: "none",
40
41
  alignY: "center",
41
- children: [/*#__PURE__*/_jsx(Inline, {
42
- space: "none",
43
- alignY: "center",
44
- children: Array.from({
45
- length: totalStars
46
- }).fill(0).map((_, index) => /*#__PURE__*/_jsx(Star, {
47
- index: index,
48
- rating: rating,
49
- size: size
50
- }, index))
51
- }), label === null ? null : /*#__PURE__*/_jsx(Text, {
52
- size: labelSizeMap.get(size),
53
- testId: "star-rating-label",
54
- children: label
55
- })]
56
- })
57
- });
58
- });
42
+ children: Array.from({
43
+ length: totalStars
44
+ }).fill(0).map((_, index) => /*#__PURE__*/_jsx(Star, {
45
+ index: index,
46
+ rating: rating,
47
+ size: size
48
+ }, index))
49
+ }), label === null ? null : /*#__PURE__*/_jsx(Text, {
50
+ size: labelSizeMap.get(size),
51
+ testId: "star-rating-label",
52
+ children: label
53
+ })]
54
+ })
55
+ }));
59
56
  StarRating.displayName = 'StarRating';
60
57
  const getStarIconType = (index, rating) => {
61
58
  if (index + 1 <= Math.floor(rating)) {
@@ -75,12 +72,11 @@ const getStarIconType = (index, rating) => {
75
72
  }
76
73
  return EStarType.Half;
77
74
  };
78
- const Star = _ref2 => {
79
- let {
80
- index,
81
- rating = 0,
82
- size = EStarRatingSize.Medium
83
- } = _ref2;
75
+ const Star = ({
76
+ index,
77
+ rating = 0,
78
+ size = EStarRatingSize.Medium
79
+ }) => {
84
80
  const starType = getStarIconType(index, rating);
85
81
  const star = starType === EStarType.Half ? StarHalfIcon : StarIcon;
86
82
  return /*#__PURE__*/_jsx(Icon, {
@@ -13,59 +13,54 @@ import { Inline } from "../Inline/Inline.js";
13
13
  import { Text } from "../Text/Text.js";
14
14
  import * as styles from "./Stepper.css.js";
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
- const takeStep = _ref => {
17
- let {
18
- min,
19
- max,
20
- value,
21
- step,
22
- direction
23
- } = _ref;
16
+ const takeStep = ({
17
+ min,
18
+ max,
19
+ value,
20
+ step,
21
+ direction
22
+ }) => {
24
23
  const directionChange = (direction === 'DOWN' ? -1 : 1) * step;
25
24
  return clamp(addWithSafeDecimal(value, directionChange), min, max);
26
25
  };
27
- const Handle = _ref2 => {
28
- let {
29
- disabled,
30
- icon,
31
- label,
32
- onClick
33
- } = _ref2;
34
- return /*#__PURE__*/_jsx(Box, {
35
- as: "button",
36
- className: [styles.handle.default, {
37
- [styles.handle.disabled]: disabled
38
- }, textStyles({
39
- colour: 'white'
40
- })],
41
- backgroundColour: disabled ? 'neutral' : 'primary',
42
- "aria-label": label,
43
- padding: "none",
44
- borderRadius: "full",
45
- display: "flex",
46
- alignItems: "center",
47
- justifyContent: "center",
48
- disabled: disabled,
49
- tabIndex: -1,
50
- onClick: onClick,
51
- children: /*#__PURE__*/_jsx(Icon, {
52
- icon: icon,
53
- size: "small"
54
- })
55
- });
56
- };
57
- export const Stepper = _ref3 => {
58
- let {
59
- className = '',
60
- disabled: incomingDisabled = false,
61
- isFullWidth = false,
62
- step = 1,
63
- min = Number.MIN_SAFE_INTEGER,
64
- max = Number.MAX_SAFE_INTEGER,
65
- value: incomingValue = 0,
66
- format = value => value.toString(),
67
- onChange = () => void 0
68
- } = _ref3;
26
+ const Handle = ({
27
+ disabled,
28
+ icon,
29
+ label,
30
+ onClick
31
+ }) => /*#__PURE__*/_jsx(Box, {
32
+ as: "button",
33
+ className: [styles.handle.default, {
34
+ [styles.handle.disabled]: disabled
35
+ }, textStyles({
36
+ colour: 'white'
37
+ })],
38
+ backgroundColour: disabled ? 'neutral' : 'primary',
39
+ "aria-label": label,
40
+ padding: "none",
41
+ borderRadius: "full",
42
+ display: "flex",
43
+ alignItems: "center",
44
+ justifyContent: "center",
45
+ disabled: disabled,
46
+ tabIndex: -1,
47
+ onClick: onClick,
48
+ children: /*#__PURE__*/_jsx(Icon, {
49
+ icon: icon,
50
+ size: "small"
51
+ })
52
+ });
53
+ export const Stepper = ({
54
+ className = '',
55
+ disabled: incomingDisabled = false,
56
+ isFullWidth = false,
57
+ step = 1,
58
+ min = Number.MIN_SAFE_INTEGER,
59
+ max = Number.MAX_SAFE_INTEGER,
60
+ value: incomingValue = 0,
61
+ format = value => value.toString(),
62
+ onChange = () => void 0
63
+ }) => {
69
64
  const value = clamp(incomingValue, min, max);
70
65
  const disabled = incomingDisabled || value === undefined || value === null;
71
66
  const onDecrement = useCallback(() => onChange(takeStep({
@@ -12,27 +12,24 @@ Worth noting we use the aria role grid here instead of table, as we have areas
12
12
 
13
13
  @see https://www.w3.org/TR/wai-aria-1.1/#table
14
14
  */
15
- export const Table = /*#__PURE__*/forwardRef((_ref, ref) => {
16
- let {
17
- children,
18
- padding = '4',
19
- stickyHead = false,
20
- columnTemplate
21
- } = _ref;
22
- return /*#__PURE__*/_jsx(TableContextProvider, {
23
- padding: padding,
24
- stickyHead: stickyHead,
25
- children: /*#__PURE__*/_jsx(Box, {
26
- ref: ref,
27
- role: "grid",
28
- width: "full",
29
- style: {
30
- gridTemplateColumns: columnTemplate
31
- },
32
- className: styles.root,
33
- odComponent: "table",
34
- children: children
35
- })
36
- });
37
- });
15
+ export const Table = /*#__PURE__*/forwardRef(({
16
+ children,
17
+ padding = '4',
18
+ stickyHead = false,
19
+ columnTemplate
20
+ }, ref) => /*#__PURE__*/_jsx(TableContextProvider, {
21
+ padding: padding,
22
+ stickyHead: stickyHead,
23
+ children: /*#__PURE__*/_jsx(Box, {
24
+ ref: ref,
25
+ role: "grid",
26
+ width: "full",
27
+ style: {
28
+ gridTemplateColumns: columnTemplate
29
+ },
30
+ className: styles.root,
31
+ odComponent: "table",
32
+ children: children
33
+ })
34
+ }));
38
35
  Table.displayName = 'Table';
@@ -8,16 +8,15 @@ import { Text } from "../Text/Text.js";
8
8
  import * as styles from "./TableCell.css.js";
9
9
  import { useTableContext } from "./context.js";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
- export const TableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
12
- var _ref2;
13
- let {
14
- padding: incomingPadding,
15
- align = 'left',
16
- 'aria-label': ariaLabel,
17
- children
18
- } = _ref;
11
+ export const TableCell = /*#__PURE__*/forwardRef(({
12
+ padding: incomingPadding,
13
+ align = 'left',
14
+ 'aria-label': ariaLabel,
15
+ children
16
+ }, ref) => {
17
+ var _ref;
19
18
  const tableContext = useTableContext();
20
- const padding = (_ref2 = incomingPadding !== null && incomingPadding !== void 0 ? incomingPadding : tableContext === null || tableContext === void 0 ? void 0 : tableContext.padding) !== null && _ref2 !== void 0 ? _ref2 : 'none';
19
+ const padding = (_ref = incomingPadding !== null && incomingPadding !== void 0 ? incomingPadding : tableContext === null || tableContext === void 0 ? void 0 : tableContext.padding) !== null && _ref !== void 0 ? _ref : 'none';
21
20
  return /*#__PURE__*/_jsx(Box, {
22
21
  ref: ref,
23
22
  role: "gridcell"
@@ -18,18 +18,17 @@ const sortToAria = sort => {
18
18
  if (sort === 'desc') return 'descending';
19
19
  return 'none';
20
20
  };
21
- export const TableHeadCell = /*#__PURE__*/forwardRef((_ref, ref) => {
22
- var _ref2;
23
- let {
24
- align = 'left',
25
- onSort,
26
- sort,
27
- padding: incomingPadding,
28
- 'aria-label': ariaLabel,
29
- children
30
- } = _ref;
21
+ export const TableHeadCell = /*#__PURE__*/forwardRef(({
22
+ align = 'left',
23
+ onSort,
24
+ sort,
25
+ padding: incomingPadding,
26
+ 'aria-label': ariaLabel,
27
+ children
28
+ }, ref) => {
29
+ var _ref;
31
30
  const tableContext = useTableContext();
32
- const padding = (_ref2 = incomingPadding !== null && incomingPadding !== void 0 ? incomingPadding : tableContext === null || tableContext === void 0 ? void 0 : tableContext.padding) !== null && _ref2 !== void 0 ? _ref2 : 'none';
31
+ const padding = (_ref = incomingPadding !== null && incomingPadding !== void 0 ? incomingPadding : tableContext === null || tableContext === void 0 ? void 0 : tableContext.padding) !== null && _ref !== void 0 ? _ref : 'none';
33
32
  const sortClickHandler = useCallback(event => {
34
33
  if (typeof onSort === 'function') {
35
34
  onSort(event);
@@ -4,17 +4,14 @@ import * as React from 'react';
4
4
  import { forwardRef } from 'react';
5
5
  import { Box } from "../Box/Box.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
- export const TableRow = /*#__PURE__*/forwardRef((_ref, ref) => {
8
- let {
9
- children,
10
- onClick
11
- } = _ref;
12
- return /*#__PURE__*/_jsx(Box, {
13
- ref: ref,
14
- display: "contents",
15
- role: "row",
16
- onClick: onClick,
17
- children: children
18
- });
19
- });
7
+ export const TableRow = /*#__PURE__*/forwardRef(({
8
+ children,
9
+ onClick
10
+ }, ref) => /*#__PURE__*/_jsx(Box, {
11
+ ref: ref,
12
+ display: "contents",
13
+ role: "row",
14
+ onClick: onClick,
15
+ children: children
16
+ }));
20
17
  TableRow.displayName = 'TableRow';
@@ -4,15 +4,12 @@ import * as React from 'react';
4
4
  import { forwardRef } from 'react';
5
5
  import { Box } from "../Box/Box.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
- export const TableRowGroup = /*#__PURE__*/forwardRef((_ref, ref) => {
8
- let {
9
- children
10
- } = _ref;
11
- return /*#__PURE__*/_jsx(Box, {
12
- ref: ref,
13
- role: "rowgroup",
14
- display: "contents",
15
- children: children
16
- });
17
- });
7
+ export const TableRowGroup = /*#__PURE__*/forwardRef(({
8
+ children
9
+ }, ref) => /*#__PURE__*/_jsx(Box, {
10
+ ref: ref,
11
+ role: "rowgroup",
12
+ display: "contents",
13
+ children: children
14
+ }));
18
15
  TableRowGroup.displayName = 'TableRowGroup';
@@ -5,12 +5,11 @@ import * as React from 'react';
5
5
  import { createContext, useContext, useMemo } from 'react';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const tableContext = /*#__PURE__*/createContext(null);
8
- export const TableContextProvider = _ref => {
9
- let {
10
- padding,
11
- stickyHead,
12
- children
13
- } = _ref;
8
+ export const TableContextProvider = ({
9
+ padding,
10
+ stickyHead,
11
+ children
12
+ }) => {
14
13
  const value = useMemo(() => ({
15
14
  padding,
16
15
  stickyHead
@@ -12,13 +12,12 @@ import * as styles from "./Tab.css.js";
12
12
  import { TabListContext } from "./TabList.js";
13
13
  import { TabsContext } from "./Tabs.js";
14
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
- export const Tab = /*#__PURE__*/forwardRef((_ref, ref) => {
16
- let {
17
- children,
18
- id: incomingId = null,
19
- indication = null,
20
- as: Component = 'button'
21
- } = _ref;
15
+ export const Tab = /*#__PURE__*/forwardRef(({
16
+ children,
17
+ id: incomingId = null,
18
+ indication = null,
19
+ as: Component = 'button'
20
+ }, ref) => {
22
21
  const tabsContext = useContext(TabsContext);
23
22
  const tabListContext = useContext(TabListContext);
24
23
  !(tabsContext !== null && tabListContext !== null) ? process.env.NODE_ENV !== "production" ? invariant(false, 'This tab pane isnt nested beneath <Tabs /> or <TabPanes />>') : invariant(false) : void 0;
@@ -17,12 +17,11 @@ const defaultEnglish = {
17
17
  prev: 'scroll tabs left'
18
18
  };
19
19
  export const TabListContext = /*#__PURE__*/createContext(null);
20
- export const TabList = _ref => {
21
- let {
22
- children,
23
- stretch = false,
24
- scrollable = false
25
- } = _ref;
20
+ export const TabList = ({
21
+ children,
22
+ stretch = false,
23
+ scrollable = false
24
+ }) => {
26
25
  !!(stretch && scrollable) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Tabs: `stretch={true}` and `scrollable={true}` cannot be used at the same time.') : invariant(false) : void 0;
27
26
  const wrapperRef = useRef(null);
28
27
  const innerRef = useRef(null);
@@ -8,11 +8,10 @@ import * as styles from "./TabPane.css.js";
8
8
  import { TabPanesContext } from "./TabPanes.js";
9
9
  import { TabsContext } from "./Tabs.js";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
- export const TabPane = _ref => {
12
- let {
13
- children,
14
- id: incomingId = null
15
- } = _ref;
11
+ export const TabPane = ({
12
+ children,
13
+ id: incomingId = null
14
+ }) => {
16
15
  const tabPanesContext = useContext(TabPanesContext);
17
16
  const tabsContext = useContext(TabsContext);
18
17
  !(tabPanesContext !== null && tabsContext !== null) ? process.env.NODE_ENV !== "production" ? invariant(false, 'TabPane rendered outside Tabs or TabPanes') : invariant(false) : void 0;
@@ -7,24 +7,21 @@ import { Box } from "../Box/Box.js";
7
7
  import * as styles from "./TabPanes.css.js";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  export const TabPanesContext = /*#__PURE__*/createContext(null);
10
- export const TabPanes = _ref => {
11
- let {
12
- renderInactivePanes = false,
13
- children,
14
- paddingTop = '6',
15
- paddingBottom = '6'
16
- } = _ref;
17
- return /*#__PURE__*/_jsx(Box, {
18
- paddingTop: paddingTop,
19
- paddingBottom: paddingBottom,
20
- className: styles.root,
21
- width: "full",
22
- children: Children.map(flattenChildren(children), (child, index) => /*#__PURE__*/_jsx(TabPanesContext.Provider, {
23
- value: {
24
- paneIndex: index,
25
- renderInactive: renderInactivePanes
26
- },
27
- children: child
28
- }))
29
- });
30
- };
10
+ export const TabPanes = ({
11
+ renderInactivePanes = false,
12
+ children,
13
+ paddingTop = '6',
14
+ paddingBottom = '6'
15
+ }) => /*#__PURE__*/_jsx(Box, {
16
+ paddingTop: paddingTop,
17
+ paddingBottom: paddingBottom,
18
+ className: styles.root,
19
+ width: "full",
20
+ children: Children.map(flattenChildren(children), (child, index) => /*#__PURE__*/_jsx(TabPanesContext.Provider, {
21
+ value: {
22
+ paneIndex: index,
23
+ renderInactive: renderInactivePanes
24
+ },
25
+ children: child
26
+ }))
27
+ });
@@ -5,14 +5,13 @@ import { createContext, useMemo } from 'react';
5
5
  import { useId, useUncontrolledState } from "../../utils/index.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  export const TabsContext = /*#__PURE__*/createContext(null);
8
- export const Tabs = _ref => {
9
- let {
10
- id: incomingId,
11
- active = 0,
12
- appearance = 'underlined',
13
- onChange,
14
- children
15
- } = _ref;
8
+ export const Tabs = ({
9
+ id: incomingId,
10
+ active = 0,
11
+ appearance = 'underlined',
12
+ onChange,
13
+ children
14
+ }) => {
16
15
  const [activeState, setActiveState] = useUncontrolledState(active, onChange);
17
16
  const id = useId(incomingId !== null && incomingId !== void 0 ? incomingId : undefined);
18
17
  return /*#__PURE__*/_jsx(TabsContext.Provider, {
@@ -4,27 +4,24 @@ import * as React from 'react';
4
4
  import { Box } from "../Box/Box.js";
5
5
  import { Stack } from "../Stack/Stack.js";
6
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- export const TextContainer = _ref => {
8
- let {
9
- heading,
10
- className = '',
11
- children,
12
- action
13
- } = _ref;
14
- return /*#__PURE__*/_jsxs(Stack, {
15
- as: "article",
16
- space: "2",
17
- className: className,
18
- children: [/*#__PURE__*/_jsxs(Box, {
19
- alignItems: "center",
20
- display: "flex",
21
- justifyContent: "space-between",
22
- width: "full",
23
- children: [/*#__PURE__*/_jsx(Box, {
24
- children: heading
25
- }), action && /*#__PURE__*/_jsx(Box, {
26
- children: action
27
- })]
28
- }), children]
29
- });
30
- };
7
+ export const TextContainer = ({
8
+ heading,
9
+ className = '',
10
+ children,
11
+ action
12
+ }) => /*#__PURE__*/_jsxs(Stack, {
13
+ as: "article",
14
+ space: "2",
15
+ className: className,
16
+ children: [/*#__PURE__*/_jsxs(Box, {
17
+ alignItems: "center",
18
+ display: "flex",
19
+ justifyContent: "space-between",
20
+ width: "full",
21
+ children: [/*#__PURE__*/_jsx(Box, {
22
+ children: heading
23
+ }), action && /*#__PURE__*/_jsx(Box, {
24
+ children: action
25
+ })]
26
+ }), children]
27
+ });