@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.
- package/README.md +14 -7
- package/dist/index.d.ts +51 -2
- package/dist/src/components/ActionBar/index.js +22 -37
- package/dist/src/components/Alert/index.js +27 -41
- package/dist/src/components/Avatar/index.js +48 -69
- package/dist/src/components/Badge/index.js +29 -49
- package/dist/src/components/Banner/index.js +42 -62
- package/dist/src/components/BarChart/Tooltip.js +35 -50
- package/dist/src/components/BarChart/index.js +13 -14
- package/dist/src/components/BarStack/index.js +100 -191
- package/dist/src/components/Breadcrumbs/index.js +29 -39
- package/dist/src/components/Bullet/index.js +42 -55
- package/dist/src/components/Button/index.js +73 -99
- package/dist/src/components/Card/index.js +39 -57
- package/dist/src/components/Carousel/index.js +32 -60
- package/dist/src/components/Checkbox/index.js +153 -341
- package/dist/src/components/CheckboxGroup/index.js +25 -27
- package/dist/src/components/CopyButton/index.js +11 -12
- package/dist/src/components/DateInput/index.js +141 -268
- package/dist/src/components/EmptyState/index.js +68 -83
- package/dist/src/components/Expandable/index.js +13 -20
- package/dist/src/components/GlobalAlert/GlobalAlertLink.js +12 -13
- package/dist/src/components/GlobalAlert/index.js +19 -32
- package/dist/src/components/LineChart/CustomLegend.js +80 -89
- package/dist/src/components/LineChart/Tooltip.js +32 -47
- package/dist/src/components/LineChart/helpers.js +15 -50
- package/dist/src/components/LineChart/index.js +23 -33
- package/dist/src/components/Link/index.js +46 -65
- package/dist/src/components/List/Body.js +9 -15
- package/dist/src/components/List/Cell.js +6 -7
- package/dist/src/components/List/HeaderCell.js +28 -56
- package/dist/src/components/List/HeaderRow.js +9 -16
- package/dist/src/components/List/ListContext.js +5 -6
- package/dist/src/components/List/Row.js +44 -90
- package/dist/src/components/List/SelectBar.js +9 -13
- package/dist/src/components/List/SkeletonRows.js +5 -6
- package/dist/src/components/List/index.js +15 -25
- package/dist/src/components/Loader/index.js +18 -25
- package/dist/src/components/Menu/Item.js +39 -49
- package/dist/src/components/Menu/index.js +31 -56
- package/dist/src/components/MenuV2/Item.js +39 -49
- package/dist/src/components/MenuV2/index.js +28 -47
- package/dist/src/components/Meter/index.js +25 -47
- package/dist/src/components/Modal/Dialog.js +33 -58
- package/dist/src/components/Modal/Disclosure.js +8 -9
- package/dist/src/components/Modal/index.js +26 -33
- package/dist/src/components/Notice/index.js +21 -27
- package/dist/src/components/NumberInput/index.js +73 -137
- package/dist/src/components/Pagination/getPageNumbers.js +1 -4
- package/dist/src/components/Pagination/index.js +17 -27
- package/dist/src/components/PasswordCheck/index.js +26 -32
- package/dist/src/components/PasswordStrengthMeter/index.js +25 -44
- package/dist/src/components/PieChart/Legends.js +71 -107
- package/dist/src/components/PieChart/Tooltip.js +33 -36
- package/dist/src/components/PieChart/index.js +13 -17
- package/dist/src/components/Popover/index.js +58 -75
- package/dist/src/components/Popup/helpers.js +13 -15
- package/dist/src/components/Popup/index.js +55 -98
- package/dist/src/components/ProgressBar/index.js +31 -49
- package/dist/src/components/Radio/index.js +58 -113
- package/dist/src/components/RadioGroup/index.js +26 -28
- package/dist/src/components/Row/index.js +25 -31
- package/dist/src/components/SelectInput/index.js +357 -410
- package/dist/src/components/SelectableCard/index.js +73 -115
- package/dist/src/components/Separator/index.js +52 -73
- package/dist/src/components/Skeleton/Block.js +23 -41
- package/dist/src/components/Skeleton/Blocks.js +23 -41
- package/dist/src/components/Skeleton/BoxWithIcon.js +21 -36
- package/dist/src/components/Skeleton/Donut.js +3 -6
- package/dist/src/components/Skeleton/IconSkeleton.js +13 -31
- package/dist/src/components/Skeleton/Line.js +5 -11
- package/dist/src/components/Skeleton/List.js +22 -31
- package/dist/src/components/Skeleton/Slider.js +25 -46
- package/dist/src/components/Skeleton/Square.js +3 -6
- package/dist/src/components/Skeleton/index.js +17 -33
- package/dist/src/components/Snippet/index.js +82 -137
- package/dist/src/components/Stack/index.js +11 -14
- package/dist/src/components/Status/index.js +48 -78
- package/dist/src/components/StepList/index.js +45 -63
- package/dist/src/components/Stepper/index.js +74 -129
- package/dist/src/components/SwitchButton/FocusOverlay.js +13 -23
- package/dist/src/components/SwitchButton/index.js +36 -62
- package/dist/src/components/Table/Body.js +5 -8
- package/dist/src/components/Table/Cell.js +14 -20
- package/dist/src/components/Table/Header.js +8 -14
- package/dist/src/components/Table/HeaderCell.js +40 -56
- package/dist/src/components/Table/HeaderRow.js +4 -5
- package/dist/src/components/Table/Row.js +10 -14
- package/dist/src/components/Table/SelectBar.js +9 -13
- package/dist/src/components/Table/SkeletonRows.js +5 -6
- package/dist/src/components/Table/TableContext.js +6 -7
- package/dist/src/components/Table/index.js +44 -50
- package/dist/src/components/Tabs/Tab.js +57 -118
- package/dist/src/components/Tabs/TabMenu.js +32 -38
- package/dist/src/components/Tabs/TabMenuItem.js +9 -13
- package/dist/src/components/Tabs/index.js +24 -43
- package/dist/src/components/Tag/index.js +57 -74
- package/dist/src/components/TagInput/index.js +63 -94
- package/dist/src/components/TagList/index.js +22 -35
- package/dist/src/components/Text/index.js +29 -31
- package/dist/src/components/TextArea/index.js +240 -0
- package/dist/src/components/TextInput/index.js +166 -260
- package/dist/src/components/TimeInput/index.js +10 -13
- package/dist/src/components/Toaster/index.js +51 -67
- package/dist/src/components/Toggle/index.js +62 -129
- package/dist/src/components/ToggleGroup/index.js +21 -23
- package/dist/src/components/Tooltip/index.js +28 -31
- package/dist/src/components/VerificationCode/index.js +55 -90
- package/dist/src/index.js +1 -0
- package/dist/src/utils/ids.js +1 -6
- 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:",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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((
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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:",
|
|
16
|
-
|
|
17
|
-
|
|
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:",
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, ";
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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:",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 ",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 ",
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, ";
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}, ";
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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((
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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 ",
|
|
11
|
-
|
|
12
|
-
|
|
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(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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 =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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:",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
})(
|
|
14
|
-
|
|
15
|
-
|
|
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:",
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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 =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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 =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
})(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
})(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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,
|