@dnanpm/styleguide 4.0.4 → 4.0.5
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.
|
@@ -11,6 +11,7 @@ var theme = require('../../themes/theme.js');
|
|
|
11
11
|
var styledUtils = require('../../utils/styledUtils.js');
|
|
12
12
|
var Box = require('../Box/Box.js');
|
|
13
13
|
var ButtonClose = require('../ButtonClose/ButtonClose.js');
|
|
14
|
+
var common = require('../../utils/common.js');
|
|
14
15
|
|
|
15
16
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
17
|
|
|
@@ -37,6 +38,8 @@ const StyledReactModal = styledComponents.styled(ReactModal__default.default) `
|
|
|
37
38
|
height: 100vh;
|
|
38
39
|
overflow-y: auto;
|
|
39
40
|
|
|
41
|
+
${common.default({ elevation: 'extraHigh' })}
|
|
42
|
+
|
|
40
43
|
@media (min-width: ${sizeMap.mobile}) {
|
|
41
44
|
max-width: ${({ size }) => sizeMap[size]};
|
|
42
45
|
max-height: 90%;
|
|
@@ -7,6 +7,7 @@ import theme from '../../themes/theme.js';
|
|
|
7
7
|
import { getMultipliedSize } from '../../utils/styledUtils.js';
|
|
8
8
|
import Box from '../Box/Box.js';
|
|
9
9
|
import ButtonClose from '../ButtonClose/ButtonClose.js';
|
|
10
|
+
import getElevationShadow from '../../utils/common.js';
|
|
10
11
|
|
|
11
12
|
const sizeMap = {
|
|
12
13
|
mobile: '375px',
|
|
@@ -28,6 +29,8 @@ const StyledReactModal = styled(ReactModal) `
|
|
|
28
29
|
height: 100vh;
|
|
29
30
|
overflow-y: auto;
|
|
30
31
|
|
|
32
|
+
${getElevationShadow({ elevation: 'extraHigh' })}
|
|
33
|
+
|
|
31
34
|
@media (min-width: ${sizeMap.mobile}) {
|
|
32
35
|
max-width: ${({ size }) => sizeMap[size]};
|
|
33
36
|
max-height: 90%;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnanpm/styleguide",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "v4.0.
|
|
4
|
+
"version": "v4.0.5",
|
|
5
5
|
"main": "build/cjs/index.js",
|
|
6
6
|
"module": "build/es/index.js",
|
|
7
7
|
"jsnext:main": "build/es/index.js",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"prepublishOnly": "npm run clean && npm ci && npm run eslint:check && npm run format:check && npm run build",
|
|
32
32
|
"styleguide": "styleguidist server",
|
|
33
33
|
"styleguide:build": "styleguidist build",
|
|
34
|
-
"styleguide:build:public": "cross-env NODE_ENV=public styleguidist build",
|
|
35
34
|
"dev": "npm run styleguide",
|
|
36
35
|
"tar": "npm run clean && npm ci && npm run build && npm pack && mv dnanpm-styleguide*.tgz dnanpm-styleguide-snapshot.tgz",
|
|
37
36
|
"test": "cross-env jest --maxWorkers=2 --coverage",
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"@babel/preset-env": "^7.26.0",
|
|
50
49
|
"@babel/preset-react": "^7.26.3",
|
|
51
50
|
"@babel/preset-typescript": "^7.28.5",
|
|
52
|
-
"@dnanpm/icons": "^2.0.
|
|
51
|
+
"@dnanpm/icons": "^2.0.15",
|
|
53
52
|
"@eslint/eslintrc": "^3.3.3",
|
|
54
53
|
"@eslint/js": "^9.39.2",
|
|
55
54
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
@@ -57,10 +56,10 @@
|
|
|
57
56
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
58
57
|
"@stylistic/eslint-plugin": "^5.5.0",
|
|
59
58
|
"@testing-library/jest-dom": "^6.6.3",
|
|
60
|
-
"@testing-library/react": "^16.3.
|
|
59
|
+
"@testing-library/react": "^16.3.1",
|
|
61
60
|
"@testing-library/user-event": "^14.5.2",
|
|
62
61
|
"@types/jest": "^30.0.0",
|
|
63
|
-
"@types/node": "^25.0.
|
|
62
|
+
"@types/node": "^25.0.3",
|
|
64
63
|
"@types/ramda": "^0.31.1",
|
|
65
64
|
"@types/react": "^18.3.11",
|
|
66
65
|
"@types/react-dom": "^18.3.1",
|
|
@@ -97,11 +96,12 @@
|
|
|
97
96
|
"ts-node": "^10.9.2",
|
|
98
97
|
"tslib": "^2.8.1",
|
|
99
98
|
"typescript": "^5.1.6",
|
|
100
|
-
"webpack": "^5.
|
|
99
|
+
"webpack": "^5.104.1"
|
|
101
100
|
},
|
|
102
101
|
"dependencies": {
|
|
102
|
+
"date-fns-tz": "^3.2.0",
|
|
103
103
|
"ramda": "^0.32.0",
|
|
104
|
-
"react-datepicker": "
|
|
104
|
+
"react-datepicker": "9.0.0",
|
|
105
105
|
"react-modal": "^3.16.1",
|
|
106
106
|
"react-select": "^5.8.1",
|
|
107
107
|
"react-spring": "^8.0.27",
|