@ultraviolet/ui 1.28.0 → 1.29.1

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 (112) hide show
  1. package/README.md +14 -7
  2. package/dist/index.d.ts +61 -12
  3. package/dist/react-datepicker/dist/react-datepicker.min.css.js +1 -1
  4. package/dist/src/components/ActionBar/index.js +22 -37
  5. package/dist/src/components/Alert/index.js +27 -41
  6. package/dist/src/components/Avatar/index.js +48 -69
  7. package/dist/src/components/Badge/index.js +29 -49
  8. package/dist/src/components/Banner/index.js +42 -62
  9. package/dist/src/components/BarChart/Tooltip.js +35 -50
  10. package/dist/src/components/BarChart/index.js +13 -14
  11. package/dist/src/components/BarStack/index.js +100 -191
  12. package/dist/src/components/Breadcrumbs/index.js +29 -39
  13. package/dist/src/components/Bullet/index.js +42 -55
  14. package/dist/src/components/Button/index.js +73 -99
  15. package/dist/src/components/Card/index.js +39 -57
  16. package/dist/src/components/Carousel/index.js +32 -60
  17. package/dist/src/components/Checkbox/index.js +153 -341
  18. package/dist/src/components/CheckboxGroup/index.js +25 -27
  19. package/dist/src/components/CopyButton/index.js +11 -12
  20. package/dist/src/components/DateInput/index.js +141 -268
  21. package/dist/src/components/EmptyState/index.js +68 -83
  22. package/dist/src/components/Expandable/index.js +13 -20
  23. package/dist/src/components/GlobalAlert/GlobalAlertLink.js +12 -13
  24. package/dist/src/components/GlobalAlert/index.js +19 -32
  25. package/dist/src/components/LineChart/CustomLegend.js +80 -89
  26. package/dist/src/components/LineChart/Tooltip.js +32 -47
  27. package/dist/src/components/LineChart/helpers.js +15 -50
  28. package/dist/src/components/LineChart/index.js +23 -33
  29. package/dist/src/components/Link/index.js +46 -65
  30. package/dist/src/components/List/Body.js +9 -15
  31. package/dist/src/components/List/Cell.js +6 -7
  32. package/dist/src/components/List/HeaderCell.js +28 -56
  33. package/dist/src/components/List/HeaderRow.js +9 -16
  34. package/dist/src/components/List/ListContext.js +5 -6
  35. package/dist/src/components/List/Row.js +44 -90
  36. package/dist/src/components/List/SelectBar.js +9 -13
  37. package/dist/src/components/List/SkeletonRows.js +5 -6
  38. package/dist/src/components/List/index.js +15 -25
  39. package/dist/src/components/Loader/index.js +18 -25
  40. package/dist/src/components/Menu/Item.js +39 -49
  41. package/dist/src/components/Menu/index.js +31 -56
  42. package/dist/src/components/MenuV2/Item.js +39 -49
  43. package/dist/src/components/MenuV2/index.js +28 -47
  44. package/dist/src/components/Meter/index.js +25 -47
  45. package/dist/src/components/Modal/Dialog.js +33 -58
  46. package/dist/src/components/Modal/Disclosure.js +8 -9
  47. package/dist/src/components/Modal/index.js +26 -33
  48. package/dist/src/components/Notice/index.js +21 -27
  49. package/dist/src/components/NumberInput/index.js +73 -137
  50. package/dist/src/components/Pagination/getPageNumbers.js +1 -4
  51. package/dist/src/components/Pagination/index.js +17 -27
  52. package/dist/src/components/PasswordCheck/index.js +26 -32
  53. package/dist/src/components/PasswordStrengthMeter/index.js +25 -44
  54. package/dist/src/components/PieChart/Legends.js +71 -107
  55. package/dist/src/components/PieChart/Tooltip.js +33 -36
  56. package/dist/src/components/PieChart/index.js +13 -17
  57. package/dist/src/components/Popover/index.js +58 -75
  58. package/dist/src/components/Popup/helpers.js +13 -15
  59. package/dist/src/components/Popup/index.js +55 -98
  60. package/dist/src/components/ProgressBar/index.js +31 -49
  61. package/dist/src/components/Radio/index.js +58 -113
  62. package/dist/src/components/RadioGroup/index.js +26 -28
  63. package/dist/src/components/Row/index.js +25 -31
  64. package/dist/src/components/SelectInput/index.js +357 -410
  65. package/dist/src/components/SelectableCard/index.js +60 -111
  66. package/dist/src/components/Separator/index.js +52 -73
  67. package/dist/src/components/Skeleton/Block.js +23 -41
  68. package/dist/src/components/Skeleton/Blocks.js +23 -41
  69. package/dist/src/components/Skeleton/BoxWithIcon.js +21 -36
  70. package/dist/src/components/Skeleton/Donut.js +3 -6
  71. package/dist/src/components/Skeleton/IconSkeleton.js +13 -31
  72. package/dist/src/components/Skeleton/Line.js +5 -11
  73. package/dist/src/components/Skeleton/List.js +22 -31
  74. package/dist/src/components/Skeleton/Slider.js +25 -46
  75. package/dist/src/components/Skeleton/Square.js +3 -6
  76. package/dist/src/components/Skeleton/index.js +17 -33
  77. package/dist/src/components/Snippet/index.js +82 -137
  78. package/dist/src/components/Stack/index.js +11 -14
  79. package/dist/src/components/Status/index.js +48 -78
  80. package/dist/src/components/StepList/index.js +45 -63
  81. package/dist/src/components/Stepper/index.js +74 -129
  82. package/dist/src/components/SwitchButton/FocusOverlay.js +13 -23
  83. package/dist/src/components/SwitchButton/index.js +36 -62
  84. package/dist/src/components/Table/Body.js +5 -8
  85. package/dist/src/components/Table/Cell.js +14 -20
  86. package/dist/src/components/Table/Header.js +8 -14
  87. package/dist/src/components/Table/HeaderCell.js +40 -56
  88. package/dist/src/components/Table/HeaderRow.js +4 -5
  89. package/dist/src/components/Table/Row.js +10 -14
  90. package/dist/src/components/Table/SelectBar.js +9 -13
  91. package/dist/src/components/Table/SkeletonRows.js +5 -6
  92. package/dist/src/components/Table/TableContext.js +6 -7
  93. package/dist/src/components/Table/index.js +44 -50
  94. package/dist/src/components/Tabs/Tab.js +57 -118
  95. package/dist/src/components/Tabs/TabMenu.js +32 -38
  96. package/dist/src/components/Tabs/TabMenuItem.js +9 -13
  97. package/dist/src/components/Tabs/index.js +24 -43
  98. package/dist/src/components/Tag/index.js +57 -74
  99. package/dist/src/components/TagInput/index.js +63 -94
  100. package/dist/src/components/TagList/index.js +22 -35
  101. package/dist/src/components/Text/index.js +29 -31
  102. package/dist/src/components/TextArea/index.js +240 -0
  103. package/dist/src/components/TextInput/index.js +166 -260
  104. package/dist/src/components/TimeInput/index.js +10 -13
  105. package/dist/src/components/Toaster/index.js +51 -67
  106. package/dist/src/components/Toggle/index.js +62 -129
  107. package/dist/src/components/ToggleGroup/index.js +21 -23
  108. package/dist/src/components/Tooltip/index.js +28 -31
  109. package/dist/src/components/VerificationCode/index.js +55 -90
  110. package/dist/src/index.js +1 -0
  111. package/dist/src/utils/ids.js +1 -6
  112. package/package.json +6 -6
@@ -8,97 +8,46 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
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
10
  target: "e1s5n3hj2"
11
- })("display:inline-flex;flex-direction:column;align-items:start;padding:", _ref => {
12
- let {
13
- theme
14
- } = _ref;
15
- return theme.space['2'];
16
- }, ";border-radius:", _ref2 => {
17
- let {
18
- theme
19
- } = _ref2;
20
- return theme.radii.default;
21
- }, ";transition:border-color 200ms ease,box-shadow 200ms ease;cursor:pointer;background:", _ref3 => {
22
- let {
23
- theme
24
- } = _ref3;
25
- return theme.colors.neutral.background;
26
- }, ";border:1px solid ", _ref4 => {
27
- let {
28
- theme
29
- } = _ref4;
30
- return theme.colors.neutral.border;
31
- }, ";color:", _ref5 => {
32
- let {
33
- theme
34
- } = _ref5;
35
- return theme.colors.neutral.text;
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
- }, ";}}}");
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),
74
38
  target: "e1s5n3hj1"
75
- })("display:inline-flex;align-items:start;&[data-checked='true']{color:", _ref13 => {
76
- let {
77
- theme
78
- } = _ref13;
79
- return theme.colors.primary.text;
80
- }, ";}&[data-error='true']{color:", _ref14 => {
81
- let {
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
- }, ";}");
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, ";}");
102
51
  const StyledRadio = /*#__PURE__*/StyledElement.withComponent(Radio, {
103
52
  target: "e1s5n3hj3"
104
53
  });
@@ -108,36 +57,35 @@ const OverloadedCheckbox = /*#__PURE__*/StyledElement.withComponent(Checkbox, {
108
57
  const StyledCheckbox = /*#__PURE__*/_styled(OverloadedCheckbox, {
109
58
  target: "e1s5n3hj0"
110
59
  })(process.env.NODE_ENV === "production" ? {
111
- name: "qxc5j0",
112
- styles: "label{width:100%;}"
60
+ name: "1wopizl",
61
+ styles: "label{width:100%;}pointer-events:none"
113
62
  } : {
114
- name: "qxc5j0",
115
- styles: "label{width:100%;}",
63
+ name: "1wopizl",
64
+ styles: "label{width:100%;}pointer-events:none",
116
65
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
117
66
  });
118
67
  /**
119
68
  * SelectableCard is a component that can be used to create a radio or checkbox card.
120
69
  * It can be used to create a list of selectable items or a single selectable item.
121
70
  */
122
- const SelectableCard = /*#__PURE__*/forwardRef((_ref18, ref) => {
123
- let {
124
- name,
125
- value,
126
- onChange,
127
- showTick = false,
128
- type = 'radio',
129
- checked = false,
130
- disabled = false,
131
- children,
132
- className,
133
- isError,
134
- onFocus,
135
- onBlur,
136
- tooltip,
137
- id,
138
- label,
139
- 'data-testid': dataTestId
140
- } = _ref18;
71
+ const SelectableCard = /*#__PURE__*/forwardRef(({
72
+ name,
73
+ value,
74
+ onChange,
75
+ showTick = false,
76
+ type = 'radio',
77
+ checked = false,
78
+ disabled = false,
79
+ children,
80
+ className,
81
+ isError,
82
+ onFocus,
83
+ onBlur,
84
+ tooltip,
85
+ id,
86
+ label,
87
+ 'data-testid': dataTestId
88
+ }, ref) => {
141
89
  const innerRef = useRef(null);
142
90
  return jsx(Tooltip, {
143
91
  text: tooltip,
@@ -152,6 +100,7 @@ const SelectableCard = /*#__PURE__*/forwardRef((_ref18, ref) => {
152
100
  "data-disabled": disabled,
153
101
  "data-error": isError,
154
102
  "data-testid": dataTestId,
103
+ "data-type": type,
155
104
  ref: ref,
156
105
  children: [type === 'radio' ? jsx(StyledRadio, {
157
106
  name: name,
@@ -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:", _ref => {
9
- let {
10
- direction
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:", _ref2 => {
17
- let {
18
- color,
19
- theme
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:", _ref3 => {
27
- let {
28
- direction,
29
- thickness = 1
30
- } = _ref3;
31
- return direction === 'vertical' ? `${thickness}px` : 'auto';
32
- }, ";height:", _ref4 => {
33
- let {
34
- direction,
35
- thickness = 1
36
- } = _ref4;
37
- return direction === 'horizontal' ? `${thickness}px` : 'auto';
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 = _ref7 => {
54
- let {
55
- direction = 'horizontal',
56
- thickness = 1,
57
- color = 'neutral',
58
- icon,
59
- className,
60
- 'data-testid': dataTestId
61
- } = _ref7;
62
- return icon ? jsxs(StyledIconWrapper, {
63
- role: "separator",
64
- "aria-orientation": direction,
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
- className: className,
67
- "data-testid": dataTestId,
68
- children: [jsx(StyledHr, {
69
- direction: direction,
70
- thickness: thickness,
71
- color: color,
72
- hasIcon: true
73
- }), jsx(StyledIcon, {
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
- className: className,
90
- "data-testid": dataTestId
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:", _ref => {
10
- let {
11
- theme
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:", _ref2 => {
18
- let {
19
- theme
20
- } = _ref2;
21
- return theme.space['2'];
22
- }, ";border:1px solid ", _ref3 => {
23
- let {
24
- theme
25
- } = _ref3;
26
- return theme.colors.neutral.borderWeak;
27
- }, ";border-radius:", _ref4 => {
28
- let {
29
- theme
30
- } = _ref4;
31
- return theme.radii.default;
32
- }, ";margin:0;>", StyledLine, ":not(:last-child){border-bottom:1px solid ", _ref5 => {
33
- let {
34
- theme
35
- } = _ref5;
36
- return theme.colors.neutral.border;
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(", _ref => {
9
- let {
10
- col
11
- } = _ref;
12
- return col;
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:", _ref3 => {
22
- let {
23
- theme
24
- } = _ref3;
25
- return `${theme.space['1']} ${theme.space['2']}`;
26
- }, ";border:1px solid ", _ref4 => {
27
- let {
28
- theme
29
- } = _ref4;
30
- return theme.colors.neutral.borderWeak;
31
- }, ";border-radius:", _ref5 => {
32
- let {
33
- theme
34
- } = _ref5;
35
- return theme.radii.default;
36
- }, ";overflow:hidden;");
37
- const Blocks = _ref6 => {
38
- let {
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(", _ref => {
9
- let {
10
- col
11
- } = _ref;
12
- return col;
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 ", _ref3 => {
22
- let {
23
- theme
24
- } = _ref3;
25
- return theme.colors.neutral.borderWeak;
26
- }, ";border-radius:", _ref4 => {
27
- let {
28
- theme
29
- } = _ref4;
30
- return theme.radii.default;
31
- }, ";overflow:hidden;");
32
- const BoxWithIcon = _ref5 => {
33
- let {
34
- col = 4,
35
- length = 8
36
- } = _ref5;
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:", _ref => {
23
- let {
24
- theme
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:", _ref => {
6
- let {
7
- theme
8
- } = _ref;
9
- return theme.space['1'];
10
- }, ";width:", _ref2 => {
11
- let {
12
- theme
13
- } = _ref2;
14
- return theme.space['4'];
15
- }, ";height:", _ref3 => {
16
- let {
17
- theme
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:", _ref => {
8
- let {
9
- theme
10
- } = _ref;
11
- return theme.radii.large;
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 };