@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
|
@@ -7,137 +7,95 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
|
7
7
|
|
|
8
8
|
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)."; }
|
|
9
9
|
const Container = /*#__PURE__*/_styled("div", {
|
|
10
|
-
target: "
|
|
11
|
-
})("display:inline-flex;flex-direction:column;align-items:start;padding:",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, "
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}, ";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, ";&[data-checked='true']{border:1px solid ", _ref6 => {
|
|
37
|
-
let {
|
|
38
|
-
theme
|
|
39
|
-
} = _ref6;
|
|
40
|
-
return theme.colors.primary.border;
|
|
41
|
-
}, ";}&[data-error='true']{border:1px solid ", _ref7 => {
|
|
42
|
-
let {
|
|
43
|
-
theme
|
|
44
|
-
} = _ref7;
|
|
45
|
-
return theme.colors.danger.border;
|
|
46
|
-
}, ";}&[data-disabled='true']{border:1px solid ", _ref8 => {
|
|
47
|
-
let {
|
|
48
|
-
theme
|
|
49
|
-
} = _ref8;
|
|
50
|
-
return theme.colors.neutral.borderDisabled;
|
|
51
|
-
}, ";color:", _ref9 => {
|
|
52
|
-
let {
|
|
53
|
-
theme
|
|
54
|
-
} = _ref9;
|
|
55
|
-
return theme.colors.neutral.textDisabled;
|
|
56
|
-
}, ";background:", _ref10 => {
|
|
57
|
-
let {
|
|
58
|
-
theme
|
|
59
|
-
} = _ref10;
|
|
60
|
-
return theme.colors.neutral.backgroundDisabled;
|
|
61
|
-
}, ";cursor:not-allowed;}&:hover,&:focus-within,&:active{&:not([data-error='true']):not([data-disabled='true']){border:1px solid ", _ref11 => {
|
|
62
|
-
let {
|
|
63
|
-
theme
|
|
64
|
-
} = _ref11;
|
|
65
|
-
return theme.colors.primary.border;
|
|
66
|
-
}, ";&[data-cheked='false']{box-shadow:", _ref12 => {
|
|
67
|
-
let {
|
|
68
|
-
theme
|
|
69
|
-
} = _ref12;
|
|
70
|
-
return theme.shadows.hoverPrimary;
|
|
71
|
-
}, ";}}}");
|
|
10
|
+
target: "e1s5n3hj3"
|
|
11
|
+
})("display:inline-flex;flex-direction:column;align-items:start;padding:", ({
|
|
12
|
+
theme
|
|
13
|
+
}) => theme.space['2'], ";border-radius:", ({
|
|
14
|
+
theme
|
|
15
|
+
}) => theme.radii.default, ";transition:border-color 200ms ease,box-shadow 200ms ease;cursor:pointer;background:", ({
|
|
16
|
+
theme
|
|
17
|
+
}) => theme.colors.neutral.background, ";border:1px solid ", ({
|
|
18
|
+
theme
|
|
19
|
+
}) => theme.colors.neutral.border, ";color:", ({
|
|
20
|
+
theme
|
|
21
|
+
}) => theme.colors.neutral.text, ";&[data-checked='true']{border:1px solid ", ({
|
|
22
|
+
theme
|
|
23
|
+
}) => theme.colors.primary.border, ";}&[data-error='true']{border:1px solid ", ({
|
|
24
|
+
theme
|
|
25
|
+
}) => theme.colors.danger.border, ";}&[data-disabled='true']{border:1px solid ", ({
|
|
26
|
+
theme
|
|
27
|
+
}) => theme.colors.neutral.borderDisabled, ";color:", ({
|
|
28
|
+
theme
|
|
29
|
+
}) => theme.colors.neutral.textDisabled, ";background:", ({
|
|
30
|
+
theme
|
|
31
|
+
}) => theme.colors.neutral.backgroundDisabled, ";cursor:not-allowed;}&:hover,&:focus-within,&:active{&:not([data-error='true']):not([data-disabled='true']){border:1px solid ", ({
|
|
32
|
+
theme
|
|
33
|
+
}) => theme.colors.primary.border, ";&[data-cheked='false']{box-shadow:", ({
|
|
34
|
+
theme
|
|
35
|
+
}) => theme.shadows.hoverPrimary, ";}}}");
|
|
72
36
|
const StyledElement = /*#__PURE__*/_styled('div', {
|
|
73
37
|
shouldForwardProp: prop => !['showTick', 'hasLabel'].includes(prop),
|
|
38
|
+
target: "e1s5n3hj2"
|
|
39
|
+
})("display:inline-flex;align-items:start;&[data-checked='true']{color:", ({
|
|
40
|
+
theme
|
|
41
|
+
}) => theme.colors.primary.text, ";}&[data-error='true']{color:", ({
|
|
42
|
+
theme
|
|
43
|
+
}) => theme.colors.danger.text, ";}&[aria-disabled='true']{color:", ({
|
|
44
|
+
theme
|
|
45
|
+
}) => theme.colors.neutral.textDisabled, ";}input+svg{", ({
|
|
46
|
+
showTick
|
|
47
|
+
}) => !showTick ? `display: none;` : null, ";}label{", ({
|
|
48
|
+
showTick,
|
|
49
|
+
hasLabel
|
|
50
|
+
}) => !showTick && !hasLabel ? `display: none;` : null, ";}");
|
|
51
|
+
const OverloadedRadio = /*#__PURE__*/StyledElement.withComponent(Radio, {
|
|
52
|
+
target: "e1s5n3hj4"
|
|
53
|
+
});
|
|
54
|
+
const StyledRadio = /*#__PURE__*/_styled(OverloadedRadio, {
|
|
74
55
|
target: "e1s5n3hj1"
|
|
75
|
-
})("
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
theme
|
|
83
|
-
} = _ref14;
|
|
84
|
-
return theme.colors.danger.text;
|
|
85
|
-
}, ";}&[aria-disabled='true']{color:", _ref15 => {
|
|
86
|
-
let {
|
|
87
|
-
theme
|
|
88
|
-
} = _ref15;
|
|
89
|
-
return theme.colors.neutral.textDisabled;
|
|
90
|
-
}, ";}input+svg{", _ref16 => {
|
|
91
|
-
let {
|
|
92
|
-
showTick
|
|
93
|
-
} = _ref16;
|
|
94
|
-
return !showTick ? `display: none;` : null;
|
|
95
|
-
}, ";}label{", _ref17 => {
|
|
96
|
-
let {
|
|
97
|
-
showTick,
|
|
98
|
-
hasLabel
|
|
99
|
-
} = _ref17;
|
|
100
|
-
return !showTick && !hasLabel ? `display: none;` : null;
|
|
101
|
-
}, ";}");
|
|
102
|
-
const StyledRadio = /*#__PURE__*/StyledElement.withComponent(Radio, {
|
|
103
|
-
target: "e1s5n3hj3"
|
|
56
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
57
|
+
name: "je8g23",
|
|
58
|
+
styles: "pointer-events:none"
|
|
59
|
+
} : {
|
|
60
|
+
name: "je8g23",
|
|
61
|
+
styles: "pointer-events:none",
|
|
62
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
104
63
|
});
|
|
105
64
|
const OverloadedCheckbox = /*#__PURE__*/StyledElement.withComponent(Checkbox, {
|
|
106
|
-
target: "
|
|
65
|
+
target: "e1s5n3hj5"
|
|
107
66
|
});
|
|
108
67
|
const StyledCheckbox = /*#__PURE__*/_styled(OverloadedCheckbox, {
|
|
109
68
|
target: "e1s5n3hj0"
|
|
110
69
|
})(process.env.NODE_ENV === "production" ? {
|
|
111
|
-
name: "
|
|
112
|
-
styles: "label{width:100%;}"
|
|
70
|
+
name: "1wopizl",
|
|
71
|
+
styles: "label{width:100%;}pointer-events:none"
|
|
113
72
|
} : {
|
|
114
|
-
name: "
|
|
115
|
-
styles: "label{width:100%;}",
|
|
73
|
+
name: "1wopizl",
|
|
74
|
+
styles: "label{width:100%;}pointer-events:none",
|
|
116
75
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
117
76
|
});
|
|
118
77
|
/**
|
|
119
78
|
* SelectableCard is a component that can be used to create a radio or checkbox card.
|
|
120
79
|
* It can be used to create a list of selectable items or a single selectable item.
|
|
121
80
|
*/
|
|
122
|
-
const SelectableCard = /*#__PURE__*/forwardRef((
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
} = _ref18;
|
|
81
|
+
const SelectableCard = /*#__PURE__*/forwardRef(({
|
|
82
|
+
name,
|
|
83
|
+
value,
|
|
84
|
+
onChange,
|
|
85
|
+
showTick = false,
|
|
86
|
+
type = 'radio',
|
|
87
|
+
checked = false,
|
|
88
|
+
disabled = false,
|
|
89
|
+
children,
|
|
90
|
+
className,
|
|
91
|
+
isError,
|
|
92
|
+
onFocus,
|
|
93
|
+
onBlur,
|
|
94
|
+
tooltip,
|
|
95
|
+
id,
|
|
96
|
+
label,
|
|
97
|
+
'data-testid': dataTestId
|
|
98
|
+
}, ref) => {
|
|
141
99
|
const innerRef = useRef(null);
|
|
142
100
|
return jsx(Tooltip, {
|
|
143
101
|
text: tooltip,
|
|
@@ -5,90 +5,69 @@ import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
|
5
5
|
const StyledIconWrapper = /*#__PURE__*/_styled('div', {
|
|
6
6
|
shouldForwardProp: prop => !['direction'].includes(prop),
|
|
7
7
|
target: "e1d1zom92"
|
|
8
|
-
})("display:flex;flex-direction:",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} = _ref;
|
|
12
|
-
return direction === 'vertical' ? 'column' : 'row';
|
|
13
|
-
}, ";align-items:center;");
|
|
8
|
+
})("display:flex;flex-direction:", ({
|
|
9
|
+
direction
|
|
10
|
+
}) => direction === 'vertical' ? 'column' : 'row', ";align-items:center;");
|
|
14
11
|
const StyledIcon = /*#__PURE__*/_styled(Icon, {
|
|
15
12
|
target: "e1d1zom91"
|
|
16
|
-
})("fill:",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} = _ref2;
|
|
21
|
-
return theme.colors[color].border;
|
|
22
|
-
}, ";");
|
|
13
|
+
})("fill:", ({
|
|
14
|
+
color,
|
|
15
|
+
theme
|
|
16
|
+
}) => theme.colors[color].border, ";");
|
|
23
17
|
const StyledHr = /*#__PURE__*/_styled('hr', {
|
|
24
18
|
shouldForwardProp: prop => !['direction', 'thickness', 'color', 'hasIcon'].includes(prop),
|
|
25
19
|
target: "e1d1zom90"
|
|
26
|
-
})("margin:0;border:0;width:",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, ";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}, ";flex-shrink:0;background-color:", _ref5 => {
|
|
39
|
-
let {
|
|
40
|
-
theme,
|
|
41
|
-
color
|
|
42
|
-
} = _ref5;
|
|
43
|
-
return theme.colors[color].border;
|
|
44
|
-
}, ";", _ref6 => {
|
|
45
|
-
let {
|
|
46
|
-
hasIcon
|
|
47
|
-
} = _ref6;
|
|
48
|
-
return hasIcon && `flex: 1;`;
|
|
49
|
-
}, ";");
|
|
20
|
+
})("margin:0;border:0;width:", ({
|
|
21
|
+
direction,
|
|
22
|
+
thickness = 1
|
|
23
|
+
}) => direction === 'vertical' ? `${thickness}px` : 'auto', ";height:", ({
|
|
24
|
+
direction,
|
|
25
|
+
thickness = 1
|
|
26
|
+
}) => direction === 'horizontal' ? `${thickness}px` : 'auto', ";flex-shrink:0;background-color:", ({
|
|
27
|
+
theme,
|
|
28
|
+
color
|
|
29
|
+
}) => theme.colors[color].border, ";", ({
|
|
30
|
+
hasIcon
|
|
31
|
+
}) => hasIcon && `flex: 1;`, ";");
|
|
50
32
|
/**
|
|
51
33
|
* Separator component used to separate content with a horizontal or vertical line.
|
|
52
34
|
*/
|
|
53
|
-
const Separator =
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
35
|
+
const Separator = ({
|
|
36
|
+
direction = 'horizontal',
|
|
37
|
+
thickness = 1,
|
|
38
|
+
color = 'neutral',
|
|
39
|
+
icon,
|
|
40
|
+
className,
|
|
41
|
+
'data-testid': dataTestId
|
|
42
|
+
}) => icon ? jsxs(StyledIconWrapper, {
|
|
43
|
+
role: "separator",
|
|
44
|
+
"aria-orientation": direction,
|
|
45
|
+
direction: direction,
|
|
46
|
+
className: className,
|
|
47
|
+
"data-testid": dataTestId,
|
|
48
|
+
children: [jsx(StyledHr, {
|
|
65
49
|
direction: direction,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
name: icon,
|
|
75
|
-
size: 24,
|
|
76
|
-
color: color
|
|
77
|
-
}), jsx(StyledHr, {
|
|
78
|
-
direction: direction,
|
|
79
|
-
thickness: thickness,
|
|
80
|
-
color: color,
|
|
81
|
-
hasIcon: true
|
|
82
|
-
})]
|
|
83
|
-
}) : jsx(StyledHr, {
|
|
84
|
-
role: "separator",
|
|
85
|
-
"aria-orientation": direction,
|
|
50
|
+
thickness: thickness,
|
|
51
|
+
color: color,
|
|
52
|
+
hasIcon: true
|
|
53
|
+
}), jsx(StyledIcon, {
|
|
54
|
+
name: icon,
|
|
55
|
+
size: 24,
|
|
56
|
+
color: color
|
|
57
|
+
}), jsx(StyledHr, {
|
|
86
58
|
direction: direction,
|
|
87
59
|
thickness: thickness,
|
|
88
60
|
color: color,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
61
|
+
hasIcon: true
|
|
62
|
+
})]
|
|
63
|
+
}) : jsx(StyledHr, {
|
|
64
|
+
role: "separator",
|
|
65
|
+
"aria-orientation": direction,
|
|
66
|
+
direction: direction,
|
|
67
|
+
thickness: thickness,
|
|
68
|
+
color: color,
|
|
69
|
+
className: className,
|
|
70
|
+
"data-testid": dataTestId
|
|
71
|
+
});
|
|
93
72
|
|
|
94
73
|
export { Separator };
|
|
@@ -6,48 +6,30 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
|
6
6
|
|
|
7
7
|
const StyledLine = /*#__PURE__*/_styled("li", {
|
|
8
8
|
target: "ez87ex11"
|
|
9
|
-
})("display:flex;align-items:center;padding:",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} = _ref;
|
|
13
|
-
return `${theme.space['3']} ${theme.space['2']}`;
|
|
14
|
-
}, ";");
|
|
9
|
+
})("display:flex;align-items:center;padding:", ({
|
|
10
|
+
theme
|
|
11
|
+
}) => `${theme.space['3']} ${theme.space['2']}`, ";");
|
|
15
12
|
const StyledList = /*#__PURE__*/_styled("ul", {
|
|
16
13
|
target: "ez87ex10"
|
|
17
|
-
})("min-height:200px;width:100%;height:100%;padding:",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
}, ";}");
|
|
38
|
-
const Block = _ref6 => {
|
|
39
|
-
let {
|
|
40
|
-
length = 3
|
|
41
|
-
} = _ref6;
|
|
42
|
-
return jsx(StyledList, {
|
|
43
|
-
children: Array.from({
|
|
44
|
-
length
|
|
45
|
-
}, (_, i) => jsx(Fragment, {
|
|
46
|
-
children: jsxs(StyledLine, {
|
|
47
|
-
children: [jsx(IconSkeleton, {}), jsx(Line, {})]
|
|
48
|
-
})
|
|
49
|
-
}, `skeleton-block-${i}`))
|
|
50
|
-
});
|
|
51
|
-
};
|
|
14
|
+
})("min-height:200px;width:100%;height:100%;padding:", ({
|
|
15
|
+
theme
|
|
16
|
+
}) => theme.space['2'], ";border:1px solid ", ({
|
|
17
|
+
theme
|
|
18
|
+
}) => theme.colors.neutral.borderWeak, ";border-radius:", ({
|
|
19
|
+
theme
|
|
20
|
+
}) => theme.radii.default, ";margin:0;>", StyledLine, ":not(:last-child){border-bottom:1px solid ", ({
|
|
21
|
+
theme
|
|
22
|
+
}) => theme.colors.neutral.border, ";}");
|
|
23
|
+
const Block = ({
|
|
24
|
+
length = 3
|
|
25
|
+
}) => jsx(StyledList, {
|
|
26
|
+
children: Array.from({
|
|
27
|
+
length
|
|
28
|
+
}, (_, i) => jsx(Fragment, {
|
|
29
|
+
children: jsxs(StyledLine, {
|
|
30
|
+
children: [jsx(IconSkeleton, {}), jsx(Line, {})]
|
|
31
|
+
})
|
|
32
|
+
}, `skeleton-block-${i}`))
|
|
33
|
+
});
|
|
52
34
|
|
|
53
35
|
export { Block };
|
|
@@ -5,48 +5,30 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
|
5
5
|
|
|
6
6
|
const StyledContainer = /*#__PURE__*/_styled("div", {
|
|
7
7
|
target: "esrnljb1"
|
|
8
|
-
})("display:grid;grid-template-columns:repeat(",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, ", 1fr);gap:", _ref2 => {
|
|
14
|
-
let {
|
|
15
|
-
theme
|
|
16
|
-
} = _ref2;
|
|
17
|
-
return theme.space['2'];
|
|
18
|
-
}, ";");
|
|
8
|
+
})("display:grid;grid-template-columns:repeat(", ({
|
|
9
|
+
col
|
|
10
|
+
}) => col, ", 1fr);gap:", ({
|
|
11
|
+
theme
|
|
12
|
+
}) => theme.space['2'], ";");
|
|
19
13
|
const Block = /*#__PURE__*/_styled("div", {
|
|
20
14
|
target: "esrnljb0"
|
|
21
|
-
})("width:100%;display:flex;align-items:center;padding:",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
col = 4,
|
|
40
|
-
length = 8
|
|
41
|
-
} = _ref6;
|
|
42
|
-
return jsx(StyledContainer, {
|
|
43
|
-
col: col,
|
|
44
|
-
children: Array.from({
|
|
45
|
-
length
|
|
46
|
-
}, (_, i) => jsxs(Block, {
|
|
47
|
-
children: [jsx(IconSkeleton, {}), jsx(Line, {})]
|
|
48
|
-
}, `skeleton-blocks-${i}`))
|
|
49
|
-
});
|
|
50
|
-
};
|
|
15
|
+
})("width:100%;display:flex;align-items:center;padding:", ({
|
|
16
|
+
theme
|
|
17
|
+
}) => `${theme.space['1']} ${theme.space['2']}`, ";border:1px solid ", ({
|
|
18
|
+
theme
|
|
19
|
+
}) => theme.colors.neutral.borderWeak, ";border-radius:", ({
|
|
20
|
+
theme
|
|
21
|
+
}) => theme.radii.default, ";overflow:hidden;");
|
|
22
|
+
const Blocks = ({
|
|
23
|
+
col = 4,
|
|
24
|
+
length = 8
|
|
25
|
+
}) => jsx(StyledContainer, {
|
|
26
|
+
col: col,
|
|
27
|
+
children: Array.from({
|
|
28
|
+
length
|
|
29
|
+
}, (_, i) => jsxs(Block, {
|
|
30
|
+
children: [jsx(IconSkeleton, {}), jsx(Line, {})]
|
|
31
|
+
}, `skeleton-blocks-${i}`))
|
|
32
|
+
});
|
|
51
33
|
|
|
52
34
|
export { Blocks };
|
|
@@ -5,43 +5,28 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
|
5
5
|
|
|
6
6
|
const StyledContainer = /*#__PURE__*/_styled("div", {
|
|
7
7
|
target: "e18cng8b1"
|
|
8
|
-
})("display:grid;grid-template-columns:repeat(",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, ", 1fr);gap:", _ref2 => {
|
|
14
|
-
let {
|
|
15
|
-
theme
|
|
16
|
-
} = _ref2;
|
|
17
|
-
return theme.space['2'];
|
|
18
|
-
}, ";");
|
|
8
|
+
})("display:grid;grid-template-columns:repeat(", ({
|
|
9
|
+
col
|
|
10
|
+
}) => col, ", 1fr);gap:", ({
|
|
11
|
+
theme
|
|
12
|
+
}) => theme.space['2'], ";");
|
|
19
13
|
const Block = /*#__PURE__*/_styled("div", {
|
|
20
14
|
target: "e18cng8b0"
|
|
21
|
-
})("height:130px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;border:1px solid ",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return jsx(StyledContainer, {
|
|
38
|
-
col: col,
|
|
39
|
-
children: Array.from({
|
|
40
|
-
length
|
|
41
|
-
}, (_, i) => jsxs(Block, {
|
|
42
|
-
children: [jsx(IconSkeleton, {}), jsx(Line, {})]
|
|
43
|
-
}, `skeleton-box-${i}`))
|
|
44
|
-
});
|
|
45
|
-
};
|
|
15
|
+
})("height:130px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;border:1px solid ", ({
|
|
16
|
+
theme
|
|
17
|
+
}) => theme.colors.neutral.borderWeak, ";border-radius:", ({
|
|
18
|
+
theme
|
|
19
|
+
}) => theme.radii.default, ";overflow:hidden;");
|
|
20
|
+
const BoxWithIcon = ({
|
|
21
|
+
col = 4,
|
|
22
|
+
length = 8
|
|
23
|
+
}) => jsx(StyledContainer, {
|
|
24
|
+
col: col,
|
|
25
|
+
children: Array.from({
|
|
26
|
+
length
|
|
27
|
+
}, (_, i) => jsxs(Block, {
|
|
28
|
+
children: [jsx(IconSkeleton, {}), jsx(Line, {})]
|
|
29
|
+
}, `skeleton-box-${i}`))
|
|
30
|
+
});
|
|
46
31
|
|
|
47
32
|
export { BoxWithIcon };
|
|
@@ -19,12 +19,9 @@ const StyledSVG = /*#__PURE__*/_styled("svg", {
|
|
|
19
19
|
})("height:", CIRCLE_SIZE, "px;width:", CIRCLE_SIZE, "px;transform:rotate(-90deg);");
|
|
20
20
|
const StyledCircle = /*#__PURE__*/_styled("circle", {
|
|
21
21
|
target: "e1bu753f1"
|
|
22
|
-
})("transform-origin:50% 50%;stroke:",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} = _ref;
|
|
26
|
-
return theme.colors.neutral.borderWeak;
|
|
27
|
-
}, ";stroke-width:18;stroke-linecap:butt;fill:none;");
|
|
22
|
+
})("transform-origin:50% 50%;stroke:", ({
|
|
23
|
+
theme
|
|
24
|
+
}) => theme.colors.neutral.borderWeak, ";stroke-width:18;stroke-linecap:butt;fill:none;");
|
|
28
25
|
const LineList = /*#__PURE__*/_styled("ul", {
|
|
29
26
|
target: "e1bu753f0"
|
|
30
27
|
})(process.env.NODE_ENV === "production" ? {
|
|
@@ -2,36 +2,18 @@ import _styled from '@emotion/styled/base';
|
|
|
2
2
|
|
|
3
3
|
const IconSkeleton = /*#__PURE__*/_styled("div", {
|
|
4
4
|
target: "e1kubpd30"
|
|
5
|
-
})("margin-right:",
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, ";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = _ref3;
|
|
19
|
-
return theme.space['4'];
|
|
20
|
-
}, ";min-width:", _ref4 => {
|
|
21
|
-
let {
|
|
22
|
-
theme
|
|
23
|
-
} = _ref4;
|
|
24
|
-
return theme.space['4'];
|
|
25
|
-
}, ";border-radius:", _ref5 => {
|
|
26
|
-
let {
|
|
27
|
-
theme
|
|
28
|
-
} = _ref5;
|
|
29
|
-
return theme.radii.large;
|
|
30
|
-
}, ";background-color:", _ref6 => {
|
|
31
|
-
let {
|
|
32
|
-
theme
|
|
33
|
-
} = _ref6;
|
|
34
|
-
return theme.colors.neutral.borderWeak;
|
|
35
|
-
}, ";");
|
|
5
|
+
})("margin-right:", ({
|
|
6
|
+
theme
|
|
7
|
+
}) => theme.space['1'], ";width:", ({
|
|
8
|
+
theme
|
|
9
|
+
}) => theme.space['4'], ";height:", ({
|
|
10
|
+
theme
|
|
11
|
+
}) => theme.space['4'], ";min-width:", ({
|
|
12
|
+
theme
|
|
13
|
+
}) => theme.space['4'], ";border-radius:", ({
|
|
14
|
+
theme
|
|
15
|
+
}) => theme.radii.large, ";background-color:", ({
|
|
16
|
+
theme
|
|
17
|
+
}) => theme.colors.neutral.borderWeak, ";");
|
|
36
18
|
|
|
37
19
|
export { IconSkeleton };
|
|
@@ -4,16 +4,10 @@ const sizes = [80, 120, 160, 200];
|
|
|
4
4
|
const randomSize = () => sizes[Math.floor(Math.random() * sizes.length)];
|
|
5
5
|
const Line = /*#__PURE__*/_styled("div", {
|
|
6
6
|
target: "e1denkbe0"
|
|
7
|
-
})("height:12px;width:", () => randomSize(), "px;max-width:100%;border-radius:",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, ";background-color:", _ref2 => {
|
|
13
|
-
let {
|
|
14
|
-
theme
|
|
15
|
-
} = _ref2;
|
|
16
|
-
return theme.colors.neutral.borderWeak;
|
|
17
|
-
}, ";");
|
|
7
|
+
})("height:12px;width:", () => randomSize(), "px;max-width:100%;border-radius:", ({
|
|
8
|
+
theme
|
|
9
|
+
}) => theme.radii.large, ";background-color:", ({
|
|
10
|
+
theme
|
|
11
|
+
}) => theme.colors.neutral.borderWeak, ";");
|
|
18
12
|
|
|
19
13
|
export { Line };
|