@ultraviolet/ui 1.28.0 → 1.29.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 (111) hide show
  1. package/README.md +14 -7
  2. package/dist/index.d.ts +51 -2
  3. package/dist/src/components/ActionBar/index.js +22 -37
  4. package/dist/src/components/Alert/index.js +27 -41
  5. package/dist/src/components/Avatar/index.js +48 -69
  6. package/dist/src/components/Badge/index.js +29 -49
  7. package/dist/src/components/Banner/index.js +42 -62
  8. package/dist/src/components/BarChart/Tooltip.js +35 -50
  9. package/dist/src/components/BarChart/index.js +13 -14
  10. package/dist/src/components/BarStack/index.js +100 -191
  11. package/dist/src/components/Breadcrumbs/index.js +29 -39
  12. package/dist/src/components/Bullet/index.js +42 -55
  13. package/dist/src/components/Button/index.js +73 -99
  14. package/dist/src/components/Card/index.js +39 -57
  15. package/dist/src/components/Carousel/index.js +32 -60
  16. package/dist/src/components/Checkbox/index.js +153 -341
  17. package/dist/src/components/CheckboxGroup/index.js +25 -27
  18. package/dist/src/components/CopyButton/index.js +11 -12
  19. package/dist/src/components/DateInput/index.js +141 -268
  20. package/dist/src/components/EmptyState/index.js +68 -83
  21. package/dist/src/components/Expandable/index.js +13 -20
  22. package/dist/src/components/GlobalAlert/GlobalAlertLink.js +12 -13
  23. package/dist/src/components/GlobalAlert/index.js +19 -32
  24. package/dist/src/components/LineChart/CustomLegend.js +80 -89
  25. package/dist/src/components/LineChart/Tooltip.js +32 -47
  26. package/dist/src/components/LineChart/helpers.js +15 -50
  27. package/dist/src/components/LineChart/index.js +23 -33
  28. package/dist/src/components/Link/index.js +46 -65
  29. package/dist/src/components/List/Body.js +9 -15
  30. package/dist/src/components/List/Cell.js +6 -7
  31. package/dist/src/components/List/HeaderCell.js +28 -56
  32. package/dist/src/components/List/HeaderRow.js +9 -16
  33. package/dist/src/components/List/ListContext.js +5 -6
  34. package/dist/src/components/List/Row.js +44 -90
  35. package/dist/src/components/List/SelectBar.js +9 -13
  36. package/dist/src/components/List/SkeletonRows.js +5 -6
  37. package/dist/src/components/List/index.js +15 -25
  38. package/dist/src/components/Loader/index.js +18 -25
  39. package/dist/src/components/Menu/Item.js +39 -49
  40. package/dist/src/components/Menu/index.js +31 -56
  41. package/dist/src/components/MenuV2/Item.js +39 -49
  42. package/dist/src/components/MenuV2/index.js +28 -47
  43. package/dist/src/components/Meter/index.js +25 -47
  44. package/dist/src/components/Modal/Dialog.js +33 -58
  45. package/dist/src/components/Modal/Disclosure.js +8 -9
  46. package/dist/src/components/Modal/index.js +26 -33
  47. package/dist/src/components/Notice/index.js +21 -27
  48. package/dist/src/components/NumberInput/index.js +73 -137
  49. package/dist/src/components/Pagination/getPageNumbers.js +1 -4
  50. package/dist/src/components/Pagination/index.js +17 -27
  51. package/dist/src/components/PasswordCheck/index.js +26 -32
  52. package/dist/src/components/PasswordStrengthMeter/index.js +25 -44
  53. package/dist/src/components/PieChart/Legends.js +71 -107
  54. package/dist/src/components/PieChart/Tooltip.js +33 -36
  55. package/dist/src/components/PieChart/index.js +13 -17
  56. package/dist/src/components/Popover/index.js +58 -75
  57. package/dist/src/components/Popup/helpers.js +13 -15
  58. package/dist/src/components/Popup/index.js +55 -98
  59. package/dist/src/components/ProgressBar/index.js +31 -49
  60. package/dist/src/components/Radio/index.js +58 -113
  61. package/dist/src/components/RadioGroup/index.js +26 -28
  62. package/dist/src/components/Row/index.js +25 -31
  63. package/dist/src/components/SelectInput/index.js +357 -410
  64. package/dist/src/components/SelectableCard/index.js +73 -115
  65. package/dist/src/components/Separator/index.js +52 -73
  66. package/dist/src/components/Skeleton/Block.js +23 -41
  67. package/dist/src/components/Skeleton/Blocks.js +23 -41
  68. package/dist/src/components/Skeleton/BoxWithIcon.js +21 -36
  69. package/dist/src/components/Skeleton/Donut.js +3 -6
  70. package/dist/src/components/Skeleton/IconSkeleton.js +13 -31
  71. package/dist/src/components/Skeleton/Line.js +5 -11
  72. package/dist/src/components/Skeleton/List.js +22 -31
  73. package/dist/src/components/Skeleton/Slider.js +25 -46
  74. package/dist/src/components/Skeleton/Square.js +3 -6
  75. package/dist/src/components/Skeleton/index.js +17 -33
  76. package/dist/src/components/Snippet/index.js +82 -137
  77. package/dist/src/components/Stack/index.js +11 -14
  78. package/dist/src/components/Status/index.js +48 -78
  79. package/dist/src/components/StepList/index.js +45 -63
  80. package/dist/src/components/Stepper/index.js +74 -129
  81. package/dist/src/components/SwitchButton/FocusOverlay.js +13 -23
  82. package/dist/src/components/SwitchButton/index.js +36 -62
  83. package/dist/src/components/Table/Body.js +5 -8
  84. package/dist/src/components/Table/Cell.js +14 -20
  85. package/dist/src/components/Table/Header.js +8 -14
  86. package/dist/src/components/Table/HeaderCell.js +40 -56
  87. package/dist/src/components/Table/HeaderRow.js +4 -5
  88. package/dist/src/components/Table/Row.js +10 -14
  89. package/dist/src/components/Table/SelectBar.js +9 -13
  90. package/dist/src/components/Table/SkeletonRows.js +5 -6
  91. package/dist/src/components/Table/TableContext.js +6 -7
  92. package/dist/src/components/Table/index.js +44 -50
  93. package/dist/src/components/Tabs/Tab.js +57 -118
  94. package/dist/src/components/Tabs/TabMenu.js +32 -38
  95. package/dist/src/components/Tabs/TabMenuItem.js +9 -13
  96. package/dist/src/components/Tabs/index.js +24 -43
  97. package/dist/src/components/Tag/index.js +57 -74
  98. package/dist/src/components/TagInput/index.js +63 -94
  99. package/dist/src/components/TagList/index.js +22 -35
  100. package/dist/src/components/Text/index.js +29 -31
  101. package/dist/src/components/TextArea/index.js +240 -0
  102. package/dist/src/components/TextInput/index.js +166 -260
  103. package/dist/src/components/TimeInput/index.js +10 -13
  104. package/dist/src/components/Toaster/index.js +51 -67
  105. package/dist/src/components/Toggle/index.js +62 -129
  106. package/dist/src/components/ToggleGroup/index.js +21 -23
  107. package/dist/src/components/Tooltip/index.js +28 -31
  108. package/dist/src/components/VerificationCode/index.js +55 -90
  109. package/dist/src/index.js +1 -0
  110. package/dist/src/utils/ids.js +1 -6
  111. package/package.json +3 -3
@@ -3,20 +3,14 @@ import { jsx } from '@emotion/react/jsx-runtime';
3
3
 
4
4
  const StyledBody = /*#__PURE__*/_styled("div", {
5
5
  target: "e1wm4no70"
6
- })("display:flex;flex-direction:column;gap:", _ref => {
7
- let {
8
- theme
9
- } = _ref;
10
- return theme.space['2'];
11
- }, ";");
12
- const Body = _ref2 => {
13
- let {
14
- children
15
- } = _ref2;
16
- return jsx(StyledBody, {
17
- role: "rowgroup",
18
- children: children
19
- });
20
- };
6
+ })("display:flex;flex-direction:column;gap:", ({
7
+ theme
8
+ }) => theme.space['2'], ";");
9
+ const Body = ({
10
+ children
11
+ }) => jsx(StyledBody, {
12
+ role: "rowgroup",
13
+ children: children
14
+ });
21
15
 
22
16
  export { Body };
@@ -13,13 +13,12 @@ const StyledCell = /*#__PURE__*/_styled("div", {
13
13
  styles: "display:flex;justify-content:center;flex-direction:column;min-height:60px",
14
14
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15
15
  });
16
- const Cell = /*#__PURE__*/forwardRef((_ref, ref) => {
17
- let {
18
- children,
19
- className,
20
- preventClick,
21
- 'data-testid': dataTestid
22
- } = _ref;
16
+ const Cell = /*#__PURE__*/forwardRef(({
17
+ children,
18
+ className,
19
+ preventClick,
20
+ 'data-testid': dataTestid
21
+ }, ref) => {
23
22
  const handleClick = event => {
24
23
  if (preventClick) {
25
24
  event.stopPropagation();
@@ -12,12 +12,9 @@ const ArrowUpIcon = /*#__PURE__*/_styled(Icon, {
12
12
  })();
13
13
  const StyledIconContainer = /*#__PURE__*/_styled(Stack, {
14
14
  target: "e1q5cnom1"
15
- })("color:", _ref => {
16
- let {
17
- theme
18
- } = _ref;
19
- return theme.colors.neutral.text;
20
- }, ";&[aria-disabled='true']{cursor:not-allowed;}");
15
+ })("color:", ({
16
+ theme
17
+ }) => theme.colors.neutral.text, ";&[aria-disabled='true']{cursor:not-allowed;}");
21
18
  const SortIcon = () => jsxs(StyledIconContainer, {
22
19
  children: [jsx(ArrowUpIcon, {
23
20
  name: "arrow-up",
@@ -29,56 +26,31 @@ const SortIcon = () => jsxs(StyledIconContainer, {
29
26
  });
30
27
  const StyledHeaderCell = /*#__PURE__*/_styled("div", {
31
28
  target: "e1q5cnom0"
32
- })("display:flex;text-align:left;flex-direction:row;align-items:center;font-size:", _ref2 => {
33
- let {
34
- theme
35
- } = _ref2;
36
- return theme.typography.bodySmall.fontSize;
37
- }, ";font-weight:", _ref3 => {
38
- let {
39
- theme
40
- } = _ref3;
41
- return theme.typography.bodySmall.weight;
42
- }, ";font-family:", _ref4 => {
43
- let {
44
- theme
45
- } = _ref4;
46
- return theme.typography.bodySmall.fontFamily;
47
- }, ";color:", _ref5 => {
48
- let {
49
- theme
50
- } = _ref5;
51
- return theme.colors.neutral.text;
52
- }, ";gap:", _ref6 => {
53
- let {
54
- theme
55
- } = _ref6;
56
- return theme.space['1'];
57
- }, ";&[role*='button']{cursor:pointer;user-select:none;}&[aria-sort]{color:", _ref7 => {
58
- let {
59
- theme
60
- } = _ref7;
61
- return theme.colors.primary.text;
62
- }, ";}&[aria-sort='ascending'] ", ArrowUpIcon, "{color:", _ref8 => {
63
- let {
64
- theme
65
- } = _ref8;
66
- return theme.colors.primary.text;
67
- }, ";}&[aria-sort='descending'] ", ArrowDownIcon, "{color:", _ref9 => {
68
- let {
69
- theme
70
- } = _ref9;
71
- return theme.colors.primary.text;
72
- }, ";}");
73
- const HeaderCell = _ref10 => {
74
- let {
75
- children,
76
- isOrdered,
77
- orderDirection,
78
- onOrder,
79
- className,
80
- info
81
- } = _ref10;
29
+ })("display:flex;text-align:left;flex-direction:row;align-items:center;font-size:", ({
30
+ theme
31
+ }) => theme.typography.bodySmall.fontSize, ";font-weight:", ({
32
+ theme
33
+ }) => theme.typography.bodySmall.weight, ";font-family:", ({
34
+ theme
35
+ }) => theme.typography.bodySmall.fontFamily, ";color:", ({
36
+ theme
37
+ }) => theme.colors.neutral.text, ";gap:", ({
38
+ theme
39
+ }) => theme.space['1'], ";&[role*='button']{cursor:pointer;user-select:none;}&[aria-sort]{color:", ({
40
+ theme
41
+ }) => theme.colors.primary.text, ";}&[aria-sort='ascending'] ", ArrowUpIcon, "{color:", ({
42
+ theme
43
+ }) => theme.colors.primary.text, ";}&[aria-sort='descending'] ", ArrowDownIcon, "{color:", ({
44
+ theme
45
+ }) => theme.colors.primary.text, ";}");
46
+ const HeaderCell = ({
47
+ children,
48
+ isOrdered,
49
+ orderDirection,
50
+ onOrder,
51
+ className,
52
+ info
53
+ }) => {
82
54
  let order;
83
55
  if (isOrdered && orderDirection === 'asc') {
84
56
  order = 'ascending';
@@ -6,22 +6,15 @@ import { jsxs, jsx } from '@emotion/react/jsx-runtime';
6
6
 
7
7
  const StyledHeaderRow = /*#__PURE__*/_styled("div", {
8
8
  target: "epvvdb70"
9
- })("column-gap:", _ref => {
10
- let {
11
- theme
12
- } = _ref;
13
- return theme.space['2'];
14
- }, ";padding:0 ", _ref2 => {
15
- let {
16
- theme
17
- } = _ref2;
18
- return theme.space['2'];
19
- }, ";");
20
- const HeaderRow = _ref3 => {
21
- let {
22
- children,
23
- hasSelectAllColumn
24
- } = _ref3;
9
+ })("column-gap:", ({
10
+ theme
11
+ }) => theme.space['2'], ";padding:0 ", ({
12
+ theme
13
+ }) => theme.space['2'], ";");
14
+ const HeaderRow = ({
15
+ children,
16
+ hasSelectAllColumn
17
+ }) => {
25
18
  const {
26
19
  allRowSelectValue,
27
20
  selectAll,
@@ -2,12 +2,11 @@ import { useContext, createContext, useState, useCallback, useMemo } from 'react
2
2
  import { jsx } from '@emotion/react/jsx-runtime';
3
3
 
4
4
  const ListContext = /*#__PURE__*/createContext(undefined);
5
- const ListProvider = _ref => {
6
- let {
7
- children,
8
- autoCollapse,
9
- selectable
10
- } = _ref;
5
+ const ListProvider = ({
6
+ children,
7
+ autoCollapse,
8
+ selectable
9
+ }) => {
11
10
  const [expandedRowIds, setExpandedRowIds] = useState({});
12
11
  const [selectedRowIds, setSelectedRowIds] = useState({});
13
12
  const registerExpandableRow = useCallback(rowId => {
@@ -9,61 +9,32 @@ import { jsxs, jsx } from '@emotion/react/jsx-runtime';
9
9
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10
10
  const ExpandableWrapper = /*#__PURE__*/_styled("div", {
11
11
  target: "ei4uyz12"
12
- })("grid-column:1/-1;grid-column-start:1;border-top:1px solid ", _ref => {
13
- let {
14
- theme
15
- } = _ref;
16
- return theme.colors.neutral.border;
17
- }, ";margin:0 -", _ref2 => {
18
- let {
19
- theme
20
- } = _ref2;
21
- return theme.space['2'];
22
- }, ";padding:", _ref3 => {
23
- let {
24
- theme
25
- } = _ref3;
26
- return theme.space['2'];
27
- }, ";cursor:auto;");
12
+ })("grid-column:1/-1;grid-column-start:1;border-top:1px solid ", ({
13
+ theme
14
+ }) => theme.colors.neutral.border, ";margin:0 -", ({
15
+ theme
16
+ }) => theme.space['2'], ";padding:", ({
17
+ theme
18
+ }) => theme.space['2'], ";cursor:auto;");
28
19
  const StyledRow = /*#__PURE__*/_styled('div', {
29
20
  shouldForwardProp: prop => !['sentiment'].includes(prop),
30
21
  target: "ei4uyz11"
31
- })("position:relative;border:1px solid ", _ref4 => {
32
- let {
33
- theme
34
- } = _ref4;
35
- return theme.colors.neutral.border;
36
- }, ";border-radius:", _ref5 => {
37
- let {
38
- theme
39
- } = _ref5;
40
- return theme.radii.default;
41
- }, ";transition:box-shadow 200ms ease,border-color 200ms ease;box-shadow:none;background-color:", _ref6 => {
42
- let {
43
- theme
44
- } = _ref6;
45
- return theme.colors.neutral.background;
46
- }, ";font-size:", _ref7 => {
47
- let {
48
- theme
49
- } = _ref7;
50
- return theme.typography.bodySmall.fontSize;
51
- }, ";column-gap:", _ref8 => {
52
- let {
53
- theme
54
- } = _ref8;
55
- return theme.space['2'];
56
- }, ";padding:0 ", _ref9 => {
57
- let {
58
- theme
59
- } = _ref9;
60
- return theme.space['2'];
61
- }, ";&[role='button row']{cursor:pointer;}", _ref10 => {
62
- let {
63
- theme,
64
- sentiment
65
- } = _ref10;
66
- return `
22
+ })("position:relative;border:1px solid ", ({
23
+ theme
24
+ }) => theme.colors.neutral.border, ";border-radius:", ({
25
+ theme
26
+ }) => theme.radii.default, ";transition:box-shadow 200ms ease,border-color 200ms ease;box-shadow:none;background-color:", ({
27
+ theme
28
+ }) => theme.colors.neutral.background, ";font-size:", ({
29
+ theme
30
+ }) => theme.typography.bodySmall.fontSize, ";column-gap:", ({
31
+ theme
32
+ }) => theme.space['2'], ";padding:0 ", ({
33
+ theme
34
+ }) => theme.space['2'], ";&[role='button row']{cursor:pointer;}", ({
35
+ theme,
36
+ sentiment
37
+ }) => `
67
38
  color: ${theme.colors[sentiment].text};
68
39
  border-color: ${theme.colors[sentiment].border};
69
40
  background-color: ${theme.colors[sentiment].background};
@@ -76,33 +47,17 @@ const StyledRow = /*#__PURE__*/_styled('div', {
76
47
  box-shadow: ${theme.shadows.hoverPrimary};
77
48
  }
78
49
  ` : ''}
79
- `;
80
- }, " &[data-highlight='true']{border-color:", _ref11 => {
81
- let {
82
- theme
83
- } = _ref11;
84
- return theme.colors.primary.border;
85
- }, ";box-shadow:", _ref12 => {
86
- let {
87
- theme
88
- } = _ref12;
89
- return theme.shadows.hoverPrimary;
90
- }, ";}&[aria-disabled='true']{border:1px solid ", _ref13 => {
91
- let {
92
- theme
93
- } = _ref13;
94
- return theme.colors.neutral.borderDisabled;
95
- }, ";background-color:", _ref14 => {
96
- let {
97
- theme
98
- } = _ref14;
99
- return theme.colors.neutral.backgroundDisabled;
100
- }, ";color:", _ref15 => {
101
- let {
102
- theme
103
- } = _ref15;
104
- return theme.colors.neutral.textDisabled;
105
- }, ";cursor:not-allowed;}& [data-visibility='hover']{opacity:0;}&:hover:not([aria-disabled='true']) [data-visibility='hover']{opacity:1;}");
50
+ `, " &[data-highlight='true']{border-color:", ({
51
+ theme
52
+ }) => theme.colors.primary.border, ";box-shadow:", ({
53
+ theme
54
+ }) => theme.shadows.hoverPrimary, ";}&[aria-disabled='true']{border:1px solid ", ({
55
+ theme
56
+ }) => theme.colors.neutral.borderDisabled, ";background-color:", ({
57
+ theme
58
+ }) => theme.colors.neutral.backgroundDisabled, ";color:", ({
59
+ theme
60
+ }) => theme.colors.neutral.textDisabled, ";cursor:not-allowed;}& [data-visibility='hover']{opacity:0;}&:hover:not([aria-disabled='true']) [data-visibility='hover']{opacity:1;}");
106
61
  const StyledCheckboxContainer = /*#__PURE__*/_styled("div", {
107
62
  target: "ei4uyz10"
108
63
  })(process.env.NODE_ENV === "production" ? {
@@ -113,17 +68,16 @@ const StyledCheckboxContainer = /*#__PURE__*/_styled("div", {
113
68
  styles: "display:flex",
114
69
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
115
70
  });
116
- const Row = /*#__PURE__*/forwardRef((_ref16, ref) => {
117
- let {
118
- children,
119
- id,
120
- expandable,
121
- disabled,
122
- selectDisabled,
123
- sentiment = 'neutral',
124
- className,
125
- 'data-testid': dataTestid
126
- } = _ref16;
71
+ const Row = /*#__PURE__*/forwardRef(({
72
+ children,
73
+ id,
74
+ expandable,
75
+ disabled,
76
+ selectDisabled,
77
+ sentiment = 'neutral',
78
+ className,
79
+ 'data-testid': dataTestid
80
+ }, ref) => {
127
81
  const {
128
82
  allRowSelectValue,
129
83
  selectable,
@@ -7,12 +7,9 @@ import { jsx } from '@emotion/react/jsx-runtime';
7
7
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
8
8
  const StyledActionBar = /*#__PURE__*/_styled(ActionBar, {
9
9
  target: "eo69e461"
10
- })("display:flex;align-items:center;padding:0 ", _ref => {
11
- let {
12
- theme
13
- } = _ref;
14
- return theme.space['1'];
15
- }, ";");
10
+ })("display:flex;align-items:center;padding:0 ", ({
11
+ theme
12
+ }) => theme.space['1'], ";");
16
13
  const FlexDiv = /*#__PURE__*/_styled("div", {
17
14
  target: "eo69e460"
18
15
  })(process.env.NODE_ENV === "production" ? {
@@ -23,13 +20,12 @@ const FlexDiv = /*#__PURE__*/_styled("div", {
23
20
  styles: "flex:1",
24
21
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
22
  });
26
- function SelectBar(_ref2) {
27
- let {
28
- children,
29
- data,
30
- idKey,
31
- className
32
- } = _ref2;
23
+ function SelectBar({
24
+ children,
25
+ data,
26
+ idKey,
27
+ className
28
+ }) {
33
29
  const {
34
30
  selectedRowIds,
35
31
  unselectAll
@@ -25,12 +25,11 @@ const StyledSkeleton = /*#__PURE__*/_styled(Skeleton, {
25
25
  styles: "width:80%;max-width:100%",
26
26
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
27
27
  });
28
- const SkeletonRows = _ref => {
29
- let {
30
- selectable,
31
- rows,
32
- cols
33
- } = _ref;
28
+ const SkeletonRows = ({
29
+ selectable,
30
+ rows,
31
+ cols
32
+ }) => {
34
33
  const rowArray = Array.from({
35
34
  length: rows
36
35
  }, (_, index) => index);
@@ -14,31 +14,21 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
14
14
  const StyledList = /*#__PURE__*/_styled('div', {
15
15
  shouldForwardProp: prop => !['template'].includes(prop),
16
16
  target: "ef5qi0"
17
- })("display:flex;flex-flow:column nowrap;width:100%;gap:", _ref => {
18
- let {
19
- theme
20
- } = _ref;
21
- return theme.space['1'];
22
- }, ";[role='row'],[role='button row']{display:grid;width:100%;grid-template-columns:", _ref2 => {
23
- let {
24
- template
25
- } = _ref2;
26
- return template;
27
- }, ";align-items:center;}");
28
- const BaseList = /*#__PURE__*/forwardRef((_ref3, ref) => {
29
- let {
30
- selectable = false,
31
- columns,
32
- children,
33
- loading,
34
- autoCollapse = false
35
- } = _ref3;
36
- const computeTemplate = `${selectable ? `${SELECTABLE_CHECKBOX_SIZE}px ` : ''}${columns.map(_ref4 => {
37
- let {
38
- width
39
- } = _ref4;
40
- return width ?? 'minmax(0, 1fr)';
41
- }).join(' ')}`;
17
+ })("display:flex;flex-flow:column nowrap;width:100%;gap:", ({
18
+ theme
19
+ }) => theme.space['1'], ";[role='row'],[role='button row']{display:grid;width:100%;grid-template-columns:", ({
20
+ template
21
+ }) => template, ";align-items:center;}");
22
+ const BaseList = /*#__PURE__*/forwardRef(({
23
+ selectable = false,
24
+ columns,
25
+ children,
26
+ loading,
27
+ autoCollapse = false
28
+ }, ref) => {
29
+ const computeTemplate = `${selectable ? `${SELECTABLE_CHECKBOX_SIZE}px ` : ''}${columns.map(({
30
+ width
31
+ }) => width ?? 'minmax(0, 1fr)').join(' ')}`;
42
32
  return jsx(ListProvider, {
43
33
  selectable: selectable,
44
34
  autoCollapse: autoCollapse,
@@ -10,11 +10,9 @@ const HALF_VIEWBOX_HEIGHT = VIEWBOX_HEIGHT / 2;
10
10
  const StyledSvg = /*#__PURE__*/_styled('svg', {
11
11
  shouldForwardProp: prop => !['active'].includes(prop),
12
12
  target: "e1y1n78x1"
13
- })(_ref2 => {
14
- let {
15
- active
16
- } = _ref2;
17
- return active ? `
13
+ })(({
14
+ active
15
+ }) => active ? `
18
16
  animation: spin 0.75s linear infinite;
19
17
 
20
18
  @keyframes spin {
@@ -25,18 +23,14 @@ const StyledSvg = /*#__PURE__*/_styled('svg', {
25
23
  transform: rotate(360deg);
26
24
  }
27
25
  }
28
- ` : '';
29
- }, ";");
26
+ ` : '', ";");
30
27
  const Text = /*#__PURE__*/_styled('text', {
31
28
  shouldForwardProp: prop => !['color'].includes(prop),
32
29
  target: "e1y1n78x0"
33
- })("fill:", _ref3 => {
34
- let {
35
- theme,
36
- color
37
- } = _ref3;
38
- return theme.colors[color]?.backgroundStrong || color;
39
- }, ";font-size:26px;dominant-baseline:middle;text-anchor:middle;");
30
+ })("fill:", ({
31
+ theme,
32
+ color
33
+ }) => theme.colors[color]?.backgroundStrong || color, ";font-size:26px;dominant-baseline:middle;text-anchor:middle;");
40
34
 
41
35
  /**
42
36
  * Loader is a circular progress indicator that can be used to indicate that an action is being performed.
@@ -49,17 +43,16 @@ var _ref = process.env.NODE_ENV === "production" ? {
49
43
  styles: "transition:stroke-dashoffset 0.5s ease 0s",
50
44
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
51
45
  };
52
- const Loader = _ref4 => {
53
- let {
54
- percentage = 20,
55
- text,
56
- size = 40,
57
- strokeWidth = 16,
58
- color = 'primary',
59
- trailColor = 'neutral',
60
- active = false,
61
- label = 'Loading'
62
- } = _ref4;
46
+ const Loader = ({
47
+ percentage = 20,
48
+ text,
49
+ size = 40,
50
+ strokeWidth = 16,
51
+ color = 'primary',
52
+ trailColor = 'neutral',
53
+ active = false,
54
+ label = 'Loading'
55
+ }) => {
63
56
  const theme = useTheme();
64
57
  const circleRadius = HALF_VIEWBOX_HEIGHT - strokeWidth / 2;
65
58
  const boundedPercentage = Math.min(Math.max(percentage, 0), 100) / 100;
@@ -3,14 +3,12 @@ import { forwardRef } from 'react';
3
3
  import { Tooltip } from '../Tooltip/index.js';
4
4
  import { jsx } from '@emotion/react/jsx-runtime';
5
5
 
6
- const itemCoreStyle = _ref => {
7
- let {
8
- theme,
9
- borderless,
10
- sentiment,
11
- disabled
12
- } = _ref;
13
- return `
6
+ const itemCoreStyle = ({
7
+ theme,
8
+ borderless,
9
+ sentiment,
10
+ disabled
11
+ }) => `
14
12
  display: inline-block;
15
13
  font-size: ${theme.typography.bodySmall.fontSize};
16
14
  line-height: ${theme.typography.bodySmall.lineHeight};
@@ -37,53 +35,45 @@ const itemCoreStyle = _ref => {
37
35
  }
38
36
  }`}
39
37
  `;
40
- };
41
38
  const StyledItem = /*#__PURE__*/_styled('button', {
42
39
  shouldForwardProp: prop => !['borderless', 'sentiment'].includes(prop),
43
40
  target: "e10f690h1"
44
- })(_ref2 => {
45
- let {
46
- theme,
47
- borderless,
48
- sentiment,
49
- disabled
50
- } = _ref2;
51
- return itemCoreStyle({
52
- theme,
53
- borderless,
54
- sentiment,
55
- disabled
56
- });
57
- }, " background:none;");
41
+ })(({
42
+ theme,
43
+ borderless,
44
+ sentiment,
45
+ disabled
46
+ }) => itemCoreStyle({
47
+ theme,
48
+ borderless,
49
+ sentiment,
50
+ disabled
51
+ }), " background:none;");
58
52
  const StyledLinkItem = /*#__PURE__*/_styled('a', {
59
53
  shouldForwardProp: prop => !['borderless', 'sentiment'].includes(prop),
60
54
  target: "e10f690h0"
61
- })(_ref3 => {
62
- let {
63
- theme,
64
- borderless,
65
- sentiment,
66
- disabled
67
- } = _ref3;
68
- return itemCoreStyle({
69
- theme,
70
- borderless,
71
- sentiment,
72
- disabled
73
- });
74
- }, " text-decoration:none;&:focus{text-decoration:none;}");
75
- const Item = /*#__PURE__*/forwardRef((_ref4, ref) => {
76
- let {
77
- borderless = false,
78
- disabled = false,
79
- onClick,
80
- sentiment = 'neutral',
81
- href,
82
- children,
83
- tooltip,
84
- className,
85
- 'data-testid': dataTestId
86
- } = _ref4;
55
+ })(({
56
+ theme,
57
+ borderless,
58
+ sentiment,
59
+ disabled
60
+ }) => itemCoreStyle({
61
+ theme,
62
+ borderless,
63
+ sentiment,
64
+ disabled
65
+ }), " text-decoration:none;&:focus{text-decoration:none;}");
66
+ const Item = /*#__PURE__*/forwardRef(({
67
+ borderless = false,
68
+ disabled = false,
69
+ onClick,
70
+ sentiment = 'neutral',
71
+ href,
72
+ children,
73
+ tooltip,
74
+ className,
75
+ 'data-testid': dataTestId
76
+ }, ref) => {
87
77
  if (href && !disabled) {
88
78
  return jsx(Tooltip, {
89
79
  text: tooltip,