@mailstep/design-system 0.6.17 → 0.6.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.6.17",
3
+ "version": "0.6.18",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -16,7 +16,8 @@
16
16
  "build-storybook": "storybook build",
17
17
  "deploy": "npm run build && npm publish ./build",
18
18
  "dev": "yarn storybook",
19
- "test": "echo \"The tests are still waiting to be written, but it seems like they're really good at procrastinating!\""
19
+ "test": "echo \"The tests are still waiting to be written, but it seems like they're really good at procrastinating!\"",
20
+ "chromatic": "npx chromatic --project-token=chpt_cbebab21ab70358"
20
21
  },
21
22
  "devDependencies": {
22
23
  "@babel/core": "^7.20.12",
@@ -30,8 +31,8 @@
30
31
  "@fortawesome/pro-regular-svg-icons": "^6.0.0",
31
32
  "@fortawesome/pro-solid-svg-icons": "^6.3.0",
32
33
  "@fortawesome/react-fontawesome": "^0.2.0",
33
- "@lingui/react": "3.17.2",
34
34
  "@lingui/core": "3.17.2",
35
+ "@lingui/react": "3.17.2",
35
36
  "@popperjs/core": "^2.11.8",
36
37
  "@storybook/addon-controls": "7.6.8",
37
38
  "@storybook/addon-essentials": "7.6.8",
@@ -57,6 +58,7 @@
57
58
  "babel-loader": "^9.1.3",
58
59
  "babel-plugin-macros": "^3.1.0",
59
60
  "babel-plugin-named-exports-order": "^0.0.2",
61
+ "chromatic": "^11.3.5",
60
62
  "eslint-plugin-storybook": "0.6.15",
61
63
  "faker": "^5.1.0",
62
64
  "immer": "9.0.7",
@@ -98,8 +100,8 @@
98
100
  "@fortawesome/pro-regular-svg-icons": "^6.0.0",
99
101
  "@fortawesome/pro-solid-svg-icons": "^6.3.0",
100
102
  "@fortawesome/react-fontawesome": "^0.2.0",
101
- "@lingui/react": "3.17.2",
102
103
  "@lingui/core": "3.17.2",
104
+ "@lingui/react": "3.17.2",
103
105
  "@popperjs/core": "^2.11.8",
104
106
  "@xstyled/styled-components": "^3.8.0",
105
107
  "babel-plugin-macros": "^3.1.0",
@@ -22,7 +22,7 @@ var FilterSetter = function (_a) {
22
22
  };
23
23
  var ConnectedFilterSetter = withReduxActions('testGrid')(FilterSetter);
24
24
  export default {
25
- title: '@Blocks/CommonGrid',
25
+ title: 'Blocks/CommonGrid',
26
26
  decorators: [withRedux],
27
27
  };
28
28
  export var ComplexWithPaginationAndRedux = function () { return (_jsxs(LinguiContainer, { children: [_jsx(ConnectedFilterSetter, { gridActions: gridDummyActions }), _jsx(ReduxGrid, { columnsDefinitions: columnDefinitions, actionColumnDefinition: ActionColumnButtons, rowsData: createRandomData(10), onRowAction: onRowAction, onRowReadClick: onRowReadClick, onRowEditClick: onRowEditClick, totalRowsCount: 200, onBatchAction: onBatchAction, confirmOnReset: function () { return window.confirm('Are you sure you want to reset grid?'); } })] })); };
@@ -7,7 +7,7 @@ import withRouter from '../utils/withRouter';
7
7
  import withRedux from '../utils/withRedux';
8
8
  import { LinguiContainer } from '../utils/linguiContainer';
9
9
  export default {
10
- title: '@Blocks/CommonGrid',
10
+ title: 'Blocks/CommonGrid',
11
11
  decorators: [withTheme, withRouter, withRedux],
12
12
  };
13
13
  export var Default = function () {
@@ -4,7 +4,7 @@ import { createRandomData, gridSelectors, gridDummyActions } from '../utils/util
4
4
  import { columnDefinitions } from '../utils/columnDefinition';
5
5
  import { LinguiContainer } from '../utils/linguiContainer';
6
6
  export default {
7
- title: '@Blocks/CommonGrid',
7
+ title: 'Blocks/CommonGrid',
8
8
  };
9
9
  export var LoadingState = function () { return (_jsx(LinguiContainer, { children: _jsx(CommonGrid, { columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), gridSelectors: gridSelectors, gridActions: gridDummyActions, isLoading: true }) })); };
10
10
  LoadingState.story = {
@@ -4,7 +4,7 @@ import { createOversizedRandomData, gridSelectors, gridDummyActions } from '../u
4
4
  import { oversizedColumnDefinition } from '../utils/columnDefinition';
5
5
  import { LinguiContainer } from '../utils/linguiContainer';
6
6
  export default {
7
- title: '@Blocks/CommonGrid',
7
+ title: 'Blocks/CommonGrid',
8
8
  };
9
9
  export var ManyColumnsNoScrollLayout = function () { return (_jsx(LinguiContainer, { children: _jsx(CommonGrid, { rowsData: createOversizedRandomData(5), columnsDefinitions: oversizedColumnDefinition, columnLayout: "no-scroll", gridSelectors: gridSelectors, gridActions: gridDummyActions }) })); };
10
10
  ManyColumnsNoScrollLayout.story = {
@@ -4,7 +4,7 @@ import { createOversizedRandomData, gridSelectors, gridDummyActions } from '../u
4
4
  import { oversizedColumnDefinition } from '../utils/columnDefinition';
5
5
  import { LinguiContainer } from '../utils/linguiContainer';
6
6
  export default {
7
- title: '@Blocks/CommonGrid',
7
+ title: 'Blocks/CommonGrid',
8
8
  };
9
9
  export var ManyColumnsNormalLayoutANoControls = function () { return (_jsx(LinguiContainer, { children: _jsx(CommonGrid, { rowsData: createOversizedRandomData(5), columnsDefinitions: oversizedColumnDefinition, gridSelectors: gridSelectors, gridActions: gridDummyActions }) })); };
10
10
  ManyColumnsNormalLayoutANoControls.story = {
@@ -7,7 +7,7 @@ import withRouter from '../utils/withRouter';
7
7
  import withRedux from '../utils/withRedux';
8
8
  import { LinguiContainer } from '../utils/linguiContainer';
9
9
  export default {
10
- title: '@Blocks/CommonGrid',
10
+ title: 'Blocks/CommonGrid',
11
11
  decorators: [withTheme, withRouter, withRedux],
12
12
  };
13
13
  export var Styled = function () {
@@ -5,7 +5,7 @@ import { columnDefinitions } from '../utils/columnDefinition';
5
5
  import { onRowAction } from '../utils/actions';
6
6
  import { LinguiContainer } from '../utils/linguiContainer';
7
7
  export default {
8
- title: '@Blocks/CommonGrid',
8
+ title: 'Blocks/CommonGrid',
9
9
  };
10
10
  export var WithCustomGridActions = function () {
11
11
  return (_jsx(LinguiContainer, { children: _jsx(CommonGrid, { columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), onRowAction: onRowAction, gridSelectors: gridSelectors, gridActions: gridDummyActions }) }));
@@ -15,7 +15,7 @@ var components = {
15
15
  },
16
16
  };
17
17
  export default {
18
- title: '@Blocks/CommonGrid',
18
+ title: 'Blocks/CommonGrid',
19
19
  decorators: [withRedux],
20
20
  excludeStories: ['ActionColumnCheckboxes'],
21
21
  };