@mailstep/design-system 0.5.0-beta.42 → 0.5.0-beta.43

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 (25) hide show
  1. package/README.md +76 -76
  2. package/package.json +134 -132
  3. package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.js +3 -3
  4. package/ui/Blocks/CommonGrid/storybook/stories/default.stories.js +3 -2
  5. package/ui/Blocks/CommonGrid/storybook/stories/loading.stories.js +3 -2
  6. package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNoScrollLayout.stories.js +3 -3
  7. package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNormalLayout.stories.js +3 -3
  8. package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.js +2 -2
  9. package/ui/Blocks/CommonGrid/storybook/stories/withCustomGridActions.stories.js +3 -3
  10. package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.js +2 -1
  11. package/ui/Blocks/CommonGrid/storybook/utils/linguiContainer.d.ts +1 -0
  12. package/ui/Blocks/CommonGrid/storybook/utils/linguiContainer.js +8 -0
  13. package/ui/Blocks/CommonGrid/storybook/utils/withTheme.js +1 -17
  14. package/ui/Elements/Logo/assets/mailship/mailship-logo.svg +12 -12
  15. package/ui/Elements/Logo/assets/mailstep/mailstep_black.svg +17 -17
  16. package/ui/Elements/Logo/assets/mailstep/mailstep_white.svg +17 -17
  17. package/ui/Elements/Logo/assets/mailstock/mailstock.svg +12 -12
  18. package/ui/Elements/Logo/assets/mailwise/mailwiseLogo.svg +46 -46
  19. package/ui/Elements/Logo/assets/mailwise/mailwiseLogoSmall.svg +19 -19
  20. package/ui/index.es.js +7137 -7134
  21. package/ui/index.umd.js +298 -298
  22. package/ui/Blocks/CommonGrid/storybook/stories/customControllButtons.stories.d.ts +0 -13
  23. package/ui/Blocks/CommonGrid/storybook/stories/customControllButtons.stories.js +0 -49
  24. package/ui/Blocks/CommonGrid/storybook/utils/filters.d.ts +0 -2
  25. package/ui/Blocks/CommonGrid/storybook/utils/filters.js +0 -23
package/README.md CHANGED
@@ -1,76 +1,76 @@
1
- # Mailstep Design-system
2
-
3
- Live demo here: https://mailstep.gitlab.io/mailwise/mw2/design-system/storybook
4
-
5
- ## Peer dependencies
6
- - @xstyled/styled-components
7
- - styled-component
8
- - react-router
9
- - react-router-dom
10
-
11
- ### How to develoop
12
- ```
13
- yarn install
14
- yarn dev
15
- ```
16
-
17
- ### How to use
18
- ```
19
- yarn add @mailstep/design-system
20
- ```
21
- and add `import 'swiper/css'` somewhere to the root app.
22
-
23
-
24
- #### How to publish
25
- In root folder run
26
-
27
- ```
28
- npm run build
29
- npm run deploy
30
- ```
31
-
32
- ## Components
33
- There are Elements, Blocks and Forms components. Also you can use ThemeProvider and Utils package
34
-
35
- ### Elements
36
- | Component | Description | Info |
37
- |----------|:-------------:|------:|
38
- | Alert | TBD | [More info](ui/Elements/Alert/README.md) |
39
- | Avatar | TBD | [More info](ui/Elements/Avatar/README.md) |
40
- | Badge | TBD | [More info](ui/Elements/Badge/README.md) |
41
- | BorderedBox | TBD | [More info](ui/Elements/BorderedBox/README.md) |
42
- | Button | TBD | [More info](ui/Elements/Button/README.md) |
43
- | Card | TBD | [More info](ui/Elements/Card/README.md) |
44
- | DialogOverlay | TBD | [More info](ui/Elements/DialogOverlay/README.md) |
45
- | Dropdown | TBD | [More info](ui/Elements/Dropdown/README.md) |
46
- | ErrorMessage | TBD | [More info](ui/Elements/ErrorMessage/README.md) |
47
- | Icon | TBD | [More info](ui/Elements/Icon/README.md) |
48
- | Image | TBD | [More info](ui/Elements/Image/README.md) |
49
- | Label | TBD | [More info](ui/Elements/Label/README.md) |
50
- | Link | TBD | [More info](ui/Elements/Link/README.md) |
51
- | Logo | TBD | [More info](ui/Elements/Logo/README.md) |
52
- | Overlay | TBD | [More info](ui/Elements/Overlay/README.md) |
53
- | Pagination | TBD | [More info](ui/Elements/Pagination/README.md) |
54
- | Paragraph | TBD | [More info](ui/Elements/Paragraph/README.md) |
55
- | Spinner | TBD | [More info](ui/Elements/Spinner/README.md) |
56
-
57
- ### Blocks
58
- | Component | Description | Info |
59
- |----------|:-------------:|------:|
60
- | TBD | TBD | TBD |
61
-
62
- ### Forms
63
- | Component | Description | Info |
64
- |----------|:-------------:|------:|
65
- | TBD | TBD | TBD |
66
-
67
- ### System
68
- | Component | Description | Info |
69
- |----------|:-------------:|------:|
70
- | Fonts | Import adjusted fonts of inter | TBD |
71
-
72
- ### Theme Provider
73
- | Component | Description | Info |
74
- |----------|:-------------:|------:|
75
- | Theme Provider | TBD | [More info](ui/ThemeProvider/README.md) |
76
-
1
+ # Mailstep Design-system
2
+
3
+ Live demo here: https://mailstep.gitlab.io/mailwise/mw2/design-system/storybook
4
+
5
+ ## Peer dependencies
6
+ - @xstyled/styled-components
7
+ - styled-component
8
+ - react-router
9
+ - react-router-dom
10
+
11
+ ### How to develoop
12
+ ```
13
+ yarn install
14
+ yarn dev
15
+ ```
16
+
17
+ ### How to use
18
+ ```
19
+ yarn add @mailstep/design-system
20
+ ```
21
+ and add `import 'swiper/css'` somewhere to the root app.
22
+
23
+
24
+ #### How to publish
25
+ In root folder run
26
+
27
+ ```
28
+ npm run build
29
+ npm run deploy
30
+ ```
31
+
32
+ ## Components
33
+ There are Elements, Blocks and Forms components. Also you can use ThemeProvider and Utils package
34
+
35
+ ### Elements
36
+ | Component | Description | Info |
37
+ |----------|:-------------:|------:|
38
+ | Alert | TBD | [More info](ui/Elements/Alert/README.md) |
39
+ | Avatar | TBD | [More info](ui/Elements/Avatar/README.md) |
40
+ | Badge | TBD | [More info](ui/Elements/Badge/README.md) |
41
+ | BorderedBox | TBD | [More info](ui/Elements/BorderedBox/README.md) |
42
+ | Button | TBD | [More info](ui/Elements/Button/README.md) |
43
+ | Card | TBD | [More info](ui/Elements/Card/README.md) |
44
+ | DialogOverlay | TBD | [More info](ui/Elements/DialogOverlay/README.md) |
45
+ | Dropdown | TBD | [More info](ui/Elements/Dropdown/README.md) |
46
+ | ErrorMessage | TBD | [More info](ui/Elements/ErrorMessage/README.md) |
47
+ | Icon | TBD | [More info](ui/Elements/Icon/README.md) |
48
+ | Image | TBD | [More info](ui/Elements/Image/README.md) |
49
+ | Label | TBD | [More info](ui/Elements/Label/README.md) |
50
+ | Link | TBD | [More info](ui/Elements/Link/README.md) |
51
+ | Logo | TBD | [More info](ui/Elements/Logo/README.md) |
52
+ | Overlay | TBD | [More info](ui/Elements/Overlay/README.md) |
53
+ | Pagination | TBD | [More info](ui/Elements/Pagination/README.md) |
54
+ | Paragraph | TBD | [More info](ui/Elements/Paragraph/README.md) |
55
+ | Spinner | TBD | [More info](ui/Elements/Spinner/README.md) |
56
+
57
+ ### Blocks
58
+ | Component | Description | Info |
59
+ |----------|:-------------:|------:|
60
+ | TBD | TBD | TBD |
61
+
62
+ ### Forms
63
+ | Component | Description | Info |
64
+ |----------|:-------------:|------:|
65
+ | TBD | TBD | TBD |
66
+
67
+ ### System
68
+ | Component | Description | Info |
69
+ |----------|:-------------:|------:|
70
+ | Fonts | Import adjusted fonts of inter | TBD |
71
+
72
+ ### Theme Provider
73
+ | Component | Description | Info |
74
+ |----------|:-------------:|------:|
75
+ | Theme Provider | TBD | [More info](ui/ThemeProvider/README.md) |
76
+
package/package.json CHANGED
@@ -1,132 +1,134 @@
1
- {
2
- "name": "@mailstep/design-system",
3
- "version": "0.5.0-beta.42",
4
- "license": "ISC",
5
- "type": "module",
6
- "main": "./ui/index.js",
7
- "module": "./ui/index.es.js",
8
- "types": "./ui/index.d.ts",
9
- "files": [
10
- "ui",
11
- "assets"
12
- ],
13
- "scripts": {
14
- "storybook": "storybook dev -p 6006",
15
- "build": "rm -rf ./build && tsc && vite build && cp package.json build && cp README.md build",
16
- "build-storybook": "storybook build",
17
- "deploy": "npm run build && npm publish ./build",
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!\""
20
- },
21
- "devDependencies": {
22
- "@babel/core": "^7.20.12",
23
- "@babel/preset-env": "^7.22.4",
24
- "@babel/preset-react": "^7.22.3",
25
- "@babel/preset-typescript": "^7.23.3",
26
- "@fortawesome/fontawesome-svg-core": "^6.3.0",
27
- "@fortawesome/free-brands-svg-icons": "^6.1.1",
28
- "@fortawesome/pro-duotone-svg-icons": "^6.0.0",
29
- "@fortawesome/pro-light-svg-icons": "^6.0.0",
30
- "@fortawesome/pro-regular-svg-icons": "^6.0.0",
31
- "@fortawesome/pro-solid-svg-icons": "^6.3.0",
32
- "@fortawesome/react-fontawesome": "^0.2.0",
33
- "@lingui/react": "3.17.2",
34
- "@popperjs/core": "^2.11.8",
35
- "@storybook/addon-controls": "7.6.8",
36
- "@storybook/addon-essentials": "7.6.8",
37
- "@storybook/addon-interactions": "7.6.8",
38
- "@storybook/addon-links": "7.6.8",
39
- "@storybook/blocks": "7.6.8",
40
- "@storybook/react": "7.6.8",
41
- "@storybook/react-webpack5": "7.6.8",
42
- "@storybook/testing-library": "0.2.2",
43
- "@svgr/rollup": "^8.0.1",
44
- "@types/faker": "^4.1.11",
45
- "@types/luxon": "^3.4.2",
46
- "@types/node": "^20.1.7",
47
- "@types/react": "^18.2.6",
48
- "@types/react-beautiful-dnd": "^13.1.2",
49
- "@types/react-dom": "^18.2.4",
50
- "@types/react-helmet": "^6.1.11",
51
- "@types/react-router": "^5.1.20",
52
- "@types/react-router-dom": "^5.3.3",
53
- "@types/styled-components": "^5.1.26",
54
- "@vitejs/plugin-react": "^4.2.1",
55
- "@xstyled/styled-components": "^3.8.0",
56
- "babel-loader": "^9.1.3",
57
- "babel-plugin-macros": "^3.1.0",
58
- "babel-plugin-named-exports-order": "^0.0.2",
59
- "eslint-plugin-storybook": "0.6.15",
60
- "faker": "^5.1.0",
61
- "immer": "9.0.7",
62
- "lodash": "^4.17.21",
63
- "luxon": "^3.4.4",
64
- "moment": "^2.30.1",
65
- "react": "^18.2.0",
66
- "react-beautiful-dnd": "^13.0.0",
67
- "react-dom": "^18.2.0",
68
- "react-helmet": "^6.1.0",
69
- "react-image": "^4.1.0",
70
- "react-onclickoutside": "^6.13.0",
71
- "react-popper": "^2.3.0",
72
- "react-redux": "*",
73
- "react-router": "^5.1.2",
74
- "react-router-dom": "^5.1.2",
75
- "react-script": "^2.0.5",
76
- "react-select": "^5.8.0",
77
- "react-toastify": "^9.1.3",
78
- "react-use-draggable-scroll": "^0.4.7",
79
- "redux": ">=4.0.5",
80
- "reselect": "5.0.0-alpha.2",
81
- "storybook": "7.6.8",
82
- "string-width": "6.1.0",
83
- "styled-components": "^5.3.10",
84
- "swiper": "^11.0.3",
85
- "tslib": "^2.6.2",
86
- "typescript": "^5.0.4",
87
- "vite": "^5.0.10",
88
- "vite-plugin-dts": "^3.6.4",
89
- "vite-plugin-static-copy": "^1.0.0",
90
- "webpack": "^5.82.1"
91
- },
92
- "peerDependencies": {
93
- "@fortawesome/fontawesome-svg-core": "^6.3.0",
94
- "@fortawesome/free-brands-svg-icons": "^6.1.1",
95
- "@fortawesome/pro-duotone-svg-icons": "^6.0.0",
96
- "@fortawesome/pro-light-svg-icons": "^6.0.0",
97
- "@fortawesome/pro-regular-svg-icons": "^6.0.0",
98
- "@fortawesome/pro-solid-svg-icons": "^6.3.0",
99
- "@fortawesome/react-fontawesome": "^0.2.0",
100
- "@lingui/react": "3.17.2",
101
- "@lingui/core": "3.17.2",
102
- "@popperjs/core": "^2.11.8",
103
- "@xstyled/styled-components": "^3.8.0",
104
- "babel-plugin-macros": "^3.1.0",
105
- "immer": "9.0.7",
106
- "lodash": "^4.17.21",
107
- "luxon": "^3.4.4",
108
- "moment": "^2.30.1",
109
- "react": "^18.2.0",
110
- "react-beautiful-dnd": "^13.0.0",
111
- "react-dom": "^18.2.0",
112
- "react-helmet": "^6.1.0",
113
- "react-image": "^4.1.0",
114
- "react-onclickoutside": "^6.13.0",
115
- "react-popper": "^2.3.0",
116
- "react-redux": ">=4.0.5",
117
- "react-router": "^5.1.2",
118
- "react-router-dom": "^5.1.2",
119
- "react-select": "^5.8.0",
120
- "react-toastify": "^9.1.3",
121
- "react-use-draggable-scroll": "^0.4.7",
122
- "redux": ">=4.0.5",
123
- "reselect": "5.0.0-alpha.2",
124
- "styled-components": "^5.3.10",
125
- "swiper": "^11.0.3",
126
- "tslib": "^2.6.2",
127
- "typescript": "^5.0.4"
128
- },
129
- "resolutions": {
130
- "jackspeak": "2.1.1"
131
- }
132
- }
1
+ {
2
+ "name": "@mailstep/design-system",
3
+ "version": "0.5.0-beta.43",
4
+ "license": "ISC",
5
+ "type": "module",
6
+ "main": "./ui/index.js",
7
+ "module": "./ui/index.es.js",
8
+ "types": "./ui/index.d.ts",
9
+ "files": [
10
+ "ui",
11
+ "assets"
12
+ ],
13
+ "scripts": {
14
+ "storybook": "storybook dev -p 6006",
15
+ "build": "tsc && vite build && copy package.json build && copy README.md build",
16
+ "build-storybook": "storybook build",
17
+ "deploy": "npm run build && npm publish ./build",
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!\""
20
+ },
21
+ "devDependencies": {
22
+ "@babel/core": "^7.20.12",
23
+ "@babel/preset-env": "^7.22.4",
24
+ "@babel/preset-react": "^7.22.3",
25
+ "@babel/preset-typescript": "^7.23.3",
26
+ "@fortawesome/fontawesome-svg-core": "^6.3.0",
27
+ "@fortawesome/free-brands-svg-icons": "^6.1.1",
28
+ "@fortawesome/pro-duotone-svg-icons": "^6.0.0",
29
+ "@fortawesome/pro-light-svg-icons": "^6.0.0",
30
+ "@fortawesome/pro-regular-svg-icons": "^6.0.0",
31
+ "@fortawesome/pro-solid-svg-icons": "^6.3.0",
32
+ "@fortawesome/react-fontawesome": "^0.2.0",
33
+ "@lingui/core": "3.17.2",
34
+ "@lingui/react": "3.17.2",
35
+ "@popperjs/core": "^2.11.8",
36
+ "@storybook/addon-controls": "7.6.8",
37
+ "@storybook/addon-essentials": "7.6.8",
38
+ "@storybook/addon-interactions": "7.6.8",
39
+ "@storybook/addon-links": "7.6.8",
40
+ "@storybook/blocks": "7.6.8",
41
+ "@storybook/react": "7.6.8",
42
+ "@storybook/react-webpack5": "7.6.8",
43
+ "@storybook/testing-library": "0.2.2",
44
+ "@svgr/rollup": "^8.0.1",
45
+ "@types/faker": "^4.1.11",
46
+ "@types/luxon": "^3.4.2",
47
+ "@types/node": "^20.1.7",
48
+ "@types/react": "^18.2.6",
49
+ "@types/react-beautiful-dnd": "^13.1.2",
50
+ "@types/react-dom": "^18.2.4",
51
+ "@types/react-helmet": "^6.1.11",
52
+ "@types/react-router": "^5.1.20",
53
+ "@types/react-router-dom": "^5.3.3",
54
+ "@types/styled-components": "^5.1.26",
55
+ "@vitejs/plugin-react": "^4.2.1",
56
+ "@xstyled/styled-components": "^3.8.0",
57
+ "babel-loader": "^9.1.3",
58
+ "babel-plugin-macros": "^3.1.0",
59
+ "babel-plugin-named-exports-order": "^0.0.2",
60
+ "eslint-plugin-storybook": "0.6.15",
61
+ "faker": "^5.1.0",
62
+ "immer": "9.0.7",
63
+ "lodash": "^4.17.21",
64
+ "luxon": "^3.4.4",
65
+ "moment": "^2.30.1",
66
+ "react": "^18.2.0",
67
+ "react-beautiful-dnd": "^13.0.0",
68
+ "react-dom": "^18.2.0",
69
+ "react-helmet": "^6.1.0",
70
+ "react-image": "^4.1.0",
71
+ "react-onclickoutside": "^6.13.0",
72
+ "react-popper": "^2.3.0",
73
+ "react-redux": "*",
74
+ "react-router": "^5.1.2",
75
+ "react-router-dom": "^5.1.2",
76
+ "react-script": "^2.0.5",
77
+ "react-select": "^5.8.0",
78
+ "react-toastify": "^9.1.3",
79
+ "react-use-draggable-scroll": "^0.4.7",
80
+ "redux": ">=4.0.5",
81
+ "reselect": "5.0.0-alpha.2",
82
+ "storybook": "7.6.8",
83
+ "string-width": "6.1.0",
84
+ "styled-components": "^5.3.10",
85
+ "swiper": "^11.0.3",
86
+ "tslib": "^2.6.2",
87
+ "typescript": "^5.0.4",
88
+ "vite": "^5.0.10",
89
+ "vite-plugin-dts": "^3.6.4",
90
+ "vite-plugin-static-copy": "^1.0.0",
91
+ "vite-require": "^0.2.3",
92
+ "webpack": "^5.82.1"
93
+ },
94
+ "peerDependencies": {
95
+ "@fortawesome/fontawesome-svg-core": "^6.3.0",
96
+ "@fortawesome/free-brands-svg-icons": "^6.1.1",
97
+ "@fortawesome/pro-duotone-svg-icons": "^6.0.0",
98
+ "@fortawesome/pro-light-svg-icons": "^6.0.0",
99
+ "@fortawesome/pro-regular-svg-icons": "^6.0.0",
100
+ "@fortawesome/pro-solid-svg-icons": "^6.3.0",
101
+ "@fortawesome/react-fontawesome": "^0.2.0",
102
+ "@lingui/core": "3.17.2",
103
+ "@lingui/react": "3.17.2",
104
+ "@popperjs/core": "^2.11.8",
105
+ "@xstyled/styled-components": "^3.8.0",
106
+ "babel-plugin-macros": "^3.1.0",
107
+ "immer": "9.0.7",
108
+ "lodash": "^4.17.21",
109
+ "luxon": "^3.4.4",
110
+ "moment": "^2.30.1",
111
+ "react": "^18.2.0",
112
+ "react-beautiful-dnd": "^13.0.0",
113
+ "react-dom": "^18.2.0",
114
+ "react-helmet": "^6.1.0",
115
+ "react-image": "^4.1.0",
116
+ "react-onclickoutside": "^6.13.0",
117
+ "react-popper": "^2.3.0",
118
+ "react-redux": ">=4.0.5",
119
+ "react-router": "^5.1.2",
120
+ "react-router-dom": "^5.1.2",
121
+ "react-select": "^5.8.0",
122
+ "react-toastify": "^9.1.3",
123
+ "react-use-draggable-scroll": "^0.4.7",
124
+ "redux": ">=4.0.5",
125
+ "reselect": "5.0.0-alpha.2",
126
+ "styled-components": "^5.3.10",
127
+ "swiper": "^11.0.3",
128
+ "tslib": "^2.6.2",
129
+ "typescript": "^5.0.4"
130
+ },
131
+ "resolutions": {
132
+ "jackspeak": "2.1.1"
133
+ }
134
+ }
@@ -1,12 +1,12 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { ReduxGrid, createRandomData, enumValues, gridDummyActions } from '../utils/utils';
4
4
  import { onRowEditClick, onRowReadClick, onRowAction, onBatchAction } from '../utils/actions';
5
- import { filters } from '../utils/filters';
6
5
  import { useAddFilter } from '../../hooks/useAddFilter';
7
6
  import withReduxActions from '../../HoC/withReduxActions';
8
7
  import { columnDefinitions, enumColumn } from '../utils/columnDefinition';
9
8
  import withRedux from '../utils/withRedux';
9
+ import { LinguiContainer } from '../utils/linguiContainer';
10
10
  var ActionColumnButtons = {
11
11
  flexBasis: 160,
12
12
  canRowRead: true,
@@ -25,7 +25,7 @@ export default {
25
25
  title: '@Blocks/CommonGrid',
26
26
  decorators: [withRedux],
27
27
  };
28
- export var ComplexWithPaginationAndRedux = function () { return (_jsxs(_Fragment, { children: [_jsx(ConnectedFilterSetter, { gridActions: gridDummyActions }), _jsx(ReduxGrid, { filters: filters, 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?'); } })] })); };
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?'); } })] })); };
29
29
  ComplexWithPaginationAndRedux.story = {
30
30
  name: 'Complex, with pagination and redux',
31
31
  };
@@ -1,14 +1,15 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import CommonGrid from '../../CommonGrid';
2
+ import CommonGrid from '../../CommonGridContainer';
3
3
  import { createRandomData, gridSelectors, gridDummyActions } from '../utils/utils';
4
4
  import { columnDefinitions } from '../utils/columnDefinition';
5
5
  import withTheme from '../utils/withTheme';
6
6
  import withRouter from '../utils/withRouter';
7
7
  import withRedux from '../utils/withRedux';
8
+ import { LinguiContainer } from '../utils/linguiContainer';
8
9
  export default {
9
10
  title: '@Blocks/CommonGrid',
10
11
  decorators: [withTheme, withRouter, withRedux],
11
12
  };
12
13
  export var Default = function () {
13
- return (_jsx(CommonGrid, { columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), gridActions: gridDummyActions, gridSelectors: gridSelectors }));
14
+ return (_jsx(LinguiContainer, { children: _jsx(CommonGrid, { columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), gridActions: gridDummyActions, gridSelectors: gridSelectors }) }));
14
15
  };
@@ -1,11 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import CommonGrid from '../../CommonGrid';
2
+ import CommonGrid from '../../CommonGridContainer';
3
3
  import { createRandomData, gridSelectors, gridDummyActions } from '../utils/utils';
4
4
  import { columnDefinitions } from '../utils/columnDefinition';
5
+ import { LinguiContainer } from '../utils/linguiContainer';
5
6
  export default {
6
7
  title: '@Blocks/CommonGrid',
7
8
  };
8
- export var LoadingState = function () { return (_jsx(CommonGrid, { columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), gridSelectors: gridSelectors, gridActions: gridDummyActions, isLoading: true, hideColumnConfig: true })); };
9
+ export var LoadingState = function () { return (_jsx(LinguiContainer, { children: _jsx(CommonGrid, { columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), gridSelectors: gridSelectors, gridActions: gridDummyActions, isLoading: true, hideColumnConfig: true }) })); };
9
10
  LoadingState.story = {
10
11
  name: 'Loading state',
11
12
  };
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import CommonGrid from '../../CommonGrid';
2
+ import CommonGrid from '../../CommonGridContainer';
3
3
  import { createOversizedRandomData, gridSelectors, gridDummyActions } from '../utils/utils';
4
4
  import { oversizedColumnDefinition } from '../utils/columnDefinition';
5
- import { filters } from '../utils/filters';
5
+ import { LinguiContainer } from '../utils/linguiContainer';
6
6
  export default {
7
7
  title: '@Blocks/CommonGrid',
8
8
  };
9
- export var ManyColumnsNoScrollLayout = function () { return (_jsx(CommonGrid, { rowsData: createOversizedRandomData(5), filters: filters, columnsDefinitions: oversizedColumnDefinition, columnLayout: "no-scroll", hideColumnConfig: true, gridSelectors: gridSelectors, gridActions: gridDummyActions })); };
9
+ export var ManyColumnsNoScrollLayout = function () { return (_jsx(LinguiContainer, { children: _jsx(CommonGrid, { rowsData: createOversizedRandomData(5), columnsDefinitions: oversizedColumnDefinition, columnLayout: "no-scroll", hideColumnConfig: true, gridSelectors: gridSelectors, gridActions: gridDummyActions }) })); };
10
10
  ManyColumnsNoScrollLayout.story = {
11
11
  name: 'many columns no-scroll layout',
12
12
  };
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import CommonGrid from '../../CommonGrid';
2
+ import CommonGrid from '../../CommonGridContainer';
3
3
  import { createOversizedRandomData, gridSelectors, gridDummyActions } from '../utils/utils';
4
4
  import { oversizedColumnDefinition } from '../utils/columnDefinition';
5
- import { filters } from '../utils/filters';
5
+ import { LinguiContainer } from '../utils/linguiContainer';
6
6
  export default {
7
7
  title: '@Blocks/CommonGrid',
8
8
  };
9
- export var ManyColumnsNormalLayoutANoControls = function () { return (_jsx(CommonGrid, { rowsData: createOversizedRandomData(5), filters: filters, columnsDefinitions: oversizedColumnDefinition, hideColumnConfig: true, gridSelectors: gridSelectors, gridActions: gridDummyActions })); };
9
+ export var ManyColumnsNormalLayoutANoControls = function () { return (_jsx(LinguiContainer, { children: _jsx(CommonGrid, { rowsData: createOversizedRandomData(5), columnsDefinitions: oversizedColumnDefinition, hideColumnConfig: true, gridSelectors: gridSelectors, gridActions: gridDummyActions }) })); };
10
10
  ManyColumnsNormalLayoutANoControls.story = {
11
11
  name: 'many columns normal layout a no controls',
12
12
  };
@@ -1,15 +1,15 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ReduxGrid, createRandomData, gridSelectors, gridDummyActions } from '../utils/utils';
3
- import { filters } from '../utils/filters';
4
3
  import { onRowAction } from '../utils/actions';
5
4
  import { columnDefinitions } from '../utils/columnDefinition';
6
5
  import withTheme from '../utils/withTheme';
7
6
  import withRouter from '../utils/withRouter';
8
7
  import withRedux from '../utils/withRedux';
8
+ import { LinguiContainer } from '../utils/linguiContainer';
9
9
  export default {
10
10
  title: '@Blocks/CommonGrid',
11
11
  decorators: [withTheme, withRouter, withRedux],
12
12
  };
13
13
  export var Styled = function () {
14
- return (_jsx("div", { className: "styled", children: _jsx(ReduxGrid, { filters: filters, columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), onRowAction: onRowAction, gridActions: gridDummyActions, gridSelectors: gridSelectors }) }));
14
+ return (_jsx(LinguiContainer, { children: _jsx("div", { className: "styled", children: _jsx(ReduxGrid, { columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), onRowAction: onRowAction, gridActions: gridDummyActions, gridSelectors: gridSelectors }) }) }));
15
15
  };
@@ -1,14 +1,14 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import CommonGrid from '../../CommonGrid';
2
+ import CommonGrid from '../../CommonGridContainer';
3
3
  import { createRandomData, gridSelectors, gridDummyActions } from '../utils/utils';
4
4
  import { columnDefinitions } from '../utils/columnDefinition';
5
5
  import { onRowAction } from '../utils/actions';
6
- import { filters } from '../utils/filters';
6
+ import { LinguiContainer } from '../utils/linguiContainer';
7
7
  export default {
8
8
  title: '@Blocks/CommonGrid',
9
9
  };
10
10
  export var WithCustomGridActions = function () {
11
- return (_jsx(CommonGrid, { filters: filters, columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), onRowAction: onRowAction, gridSelectors: gridSelectors, gridActions: gridDummyActions, hideColumnConfig: true }));
11
+ return (_jsx(LinguiContainer, { children: _jsx(CommonGrid, { columnsDefinitions: columnDefinitions, rowsData: createRandomData(10), onRowAction: onRowAction, gridSelectors: gridSelectors, gridActions: gridDummyActions, hideColumnConfig: true }) }));
12
12
  };
13
13
  WithCustomGridActions.story = {
14
14
  name: 'With custom grid actions',
@@ -3,6 +3,7 @@ import { ReduxGrid, createRandomData } from '../utils/utils';
3
3
  import { onRowEditClick, onRowReadClick, onRowAction } from '../utils/actions';
4
4
  import { columnDefinitions } from '../utils/columnDefinition';
5
5
  import withRedux from '../utils/withRedux';
6
+ import { LinguiContainer } from '../utils/linguiContainer';
6
7
  export var ActionColumnCheckboxes = {
7
8
  flexBasis: 160,
8
9
  forceCheckboxes: true,
@@ -18,7 +19,7 @@ export default {
18
19
  decorators: [withRedux],
19
20
  excludeStories: ['ActionColumnCheckboxes'],
20
21
  };
21
- export var WithForcedCheckboxesAndCustomTitle = function () { return (_jsx(ReduxGrid, { columnsDefinitions: columnDefinitions, actionColumnDefinition: ActionColumnCheckboxes, rowsData: createRandomData(10), onRowAction: onRowAction, onRowReadClick: onRowReadClick, onRowEditClick: onRowEditClick, totalRowsCount: 200, components: components })); };
22
+ export var WithForcedCheckboxesAndCustomTitle = function () { return (_jsx(LinguiContainer, { children: _jsx(ReduxGrid, { columnsDefinitions: columnDefinitions, actionColumnDefinition: ActionColumnCheckboxes, rowsData: createRandomData(10), onRowAction: onRowAction, onRowReadClick: onRowReadClick, onRowEditClick: onRowEditClick, totalRowsCount: 200, components: components }) })); };
22
23
  WithForcedCheckboxesAndCustomTitle.story = {
23
24
  name: 'With forced checkboxes and custom title',
24
25
  };
@@ -0,0 +1 @@
1
+ export declare const LinguiContainer: ({ children }: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { i18n } from '@lingui/core';
3
+ import { I18nProvider } from '@lingui/react';
4
+ export var LinguiContainer = function (_a) {
5
+ var children = _a.children;
6
+ i18n.activate('en');
7
+ return _jsx(I18nProvider, { i18n: i18n, children: children });
8
+ };
@@ -1,18 +1,2 @@
1
- /*
2
- import React from 'react'
3
- import Theme from '@designSystem/Theme'
4
- import Normalize, { NormalizeBaseFonts } from '@designSystem/Normalize'
5
-
6
- const withProvider = (story: Function): JSX.Element => (
7
- <Theme>
8
- <Normalize />
9
- <NormalizeBaseFonts />
10
- {story()}
11
- </Theme>
12
- )
13
-
14
- export default withProvider
15
- */
16
- // @TODO do theme
17
- var withProvider = function (story) { return (story()); };
1
+ var withProvider = function (story) { return story(); };
18
2
  export default withProvider;