@synerise/ds-empty-states 0.3.0 → 0.3.2
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/CHANGELOG.md +16 -0
- package/dist/EmptyStates.js +12 -15
- package/dist/EmptyStates.styles.js +0 -2
- package/dist/EmptyStates.types.js +0 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.3.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-empty-states@0.3.1...@synerise/ds-empty-states@0.3.2) (2024-11-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-empty-states
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.3.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-empty-states@0.3.0...@synerise/ds-empty-states@0.3.1) (2024-11-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-empty-states
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [0.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-empty-states@0.2.63...@synerise/ds-empty-states@0.3.0) (2024-11-14)
|
|
7
23
|
|
|
8
24
|
|
package/dist/EmptyStates.js
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
var _mapSizeToPx;
|
|
2
|
-
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import Icon from '@synerise/ds-icon';
|
|
5
4
|
import * as S from './EmptyStates.styles';
|
|
6
5
|
import { EmptyStatesSize } from './EmptyStates.types';
|
|
7
6
|
var mapSizeToPx = (_mapSizeToPx = {}, _mapSizeToPx[EmptyStatesSize.SMALL] = 48, _mapSizeToPx[EmptyStatesSize.MEDIUM] = 96, _mapSizeToPx);
|
|
8
|
-
|
|
9
7
|
var EmptyStates = function EmptyStates(_ref) {
|
|
10
8
|
var _ref$size = _ref.size,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
size = _ref$size === void 0 ? EmptyStatesSize.SMALL : _ref$size,
|
|
10
|
+
label = _ref.label,
|
|
11
|
+
text = _ref.text,
|
|
12
|
+
button = _ref.button,
|
|
13
|
+
fontSize = _ref.fontSize,
|
|
14
|
+
customIcon = _ref.customIcon,
|
|
15
|
+
className = _ref.className,
|
|
16
|
+
mode = _ref.mode,
|
|
17
|
+
_ref$iconPosition = _ref.iconPosition,
|
|
18
|
+
iconPosition = _ref$iconPosition === void 0 ? 'top' : _ref$iconPosition,
|
|
19
|
+
_ref$textAlign = _ref.textAlign,
|
|
20
|
+
textAlign = _ref$textAlign === void 0 ? 'center' : _ref$textAlign;
|
|
23
21
|
return /*#__PURE__*/React.createElement(S.EmptyStatesWrapper, {
|
|
24
22
|
iconPosition: iconPosition,
|
|
25
23
|
mode: mode,
|
|
@@ -39,5 +37,4 @@ var EmptyStates = function EmptyStates(_ref) {
|
|
|
39
37
|
"data-testid": "empty-states-label"
|
|
40
38
|
}, label), button && /*#__PURE__*/React.createElement(S.ButtonWrapper, null, button)));
|
|
41
39
|
};
|
|
42
|
-
|
|
43
40
|
export default EmptyStates;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { EmptyStatesSize, FontSize } from './EmptyStates.types';
|
|
3
3
|
var FONT_SIZE_DEFAULT = 14;
|
|
4
|
-
|
|
5
4
|
var getFlexStyle = function getFlexStyle(iconPosition) {
|
|
6
5
|
return iconPosition === 'top' ? css(["flex-direction:", ";align-items:center;"], mapIconPosition[iconPosition]) : css(["flex-direction:", ";gap:16px;align-items:flex-start;"], mapIconPosition[iconPosition]);
|
|
7
6
|
};
|
|
8
|
-
|
|
9
7
|
var mapIconPosition = {
|
|
10
8
|
right: 'row-reverse',
|
|
11
9
|
top: 'column',
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
var _IconSize, _FontSize;
|
|
2
|
-
|
|
3
2
|
export var EmptyStatesSize;
|
|
4
|
-
|
|
5
3
|
(function (EmptyStatesSize) {
|
|
6
4
|
EmptyStatesSize["SMALL"] = "small";
|
|
7
5
|
EmptyStatesSize["MEDIUM"] = "medium";
|
|
8
6
|
})(EmptyStatesSize || (EmptyStatesSize = {}));
|
|
9
|
-
|
|
10
7
|
export var IconSize = (_IconSize = {}, _IconSize[EmptyStatesSize.SMALL] = 48, _IconSize[EmptyStatesSize.MEDIUM] = 96, _IconSize);
|
|
11
8
|
export var FontSize = (_FontSize = {}, _FontSize[EmptyStatesSize.SMALL] = 14, _FontSize[EmptyStatesSize.MEDIUM] = 18, _FontSize);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-empty-states",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "EmptyStates UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-icon": "^0.
|
|
38
|
-
"@synerise/ds-utils": "^0.31.
|
|
37
|
+
"@synerise/ds-icon": "^0.67.1",
|
|
38
|
+
"@synerise/ds-utils": "^0.31.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@synerise/ds-core": "*",
|
|
42
42
|
"react": ">=16.9.0 <= 17.0.2",
|
|
43
43
|
"styled-components": "5.0.1"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "4a56ee7ef816c22341ce704154dc7aa65b7d1dcc"
|
|
46
46
|
}
|