@dnanpm/styleguide 4.0.4 → 4.0.6
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/build/cjs/components/Button/Button.d.ts +1 -1
- package/build/cjs/components/Button/Button.js +1 -1
- package/build/cjs/components/Modal/Modal.js +3 -0
- package/build/es/components/Button/Button.d.ts +1 -1
- package/build/es/components/Button/Button.js +1 -1
- package/build/es/components/Modal/Modal.js +3 -0
- package/package.json +9 -9
|
@@ -121,7 +121,7 @@ const Element = styledComponents.styled.button `
|
|
|
121
121
|
/** @visibleName Button */
|
|
122
122
|
const Button = (_a) => {
|
|
123
123
|
var _b;
|
|
124
|
-
var { type = '
|
|
124
|
+
var { type = 'button', 'data-testid': dataTestId, 'data-track-value': dataTrackValue, 'aria-label': ariaLabel } = _a, props = tslib.__rest(_a, ["type", 'data-testid', 'data-track-value', 'aria-label']);
|
|
125
125
|
const isDisabledAnchor = props.disabled && props.href;
|
|
126
126
|
const handleClick = (event) => {
|
|
127
127
|
if (isDisabledAnchor) {
|
|
@@ -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%;
|
|
@@ -113,7 +113,7 @@ const Element = styled.button `
|
|
|
113
113
|
/** @visibleName Button */
|
|
114
114
|
const Button = (_a) => {
|
|
115
115
|
var _b;
|
|
116
|
-
var { type = '
|
|
116
|
+
var { type = 'button', 'data-testid': dataTestId, 'data-track-value': dataTrackValue, 'aria-label': ariaLabel } = _a, props = __rest(_a, ["type", 'data-testid', 'data-track-value', 'aria-label']);
|
|
117
117
|
const isDisabledAnchor = props.disabled && props.href;
|
|
118
118
|
const handleClick = (event) => {
|
|
119
119
|
if (isDisabledAnchor) {
|
|
@@ -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.6",
|
|
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,24 +56,24 @@
|
|
|
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.6",
|
|
64
63
|
"@types/ramda": "^0.31.1",
|
|
65
64
|
"@types/react": "^18.3.11",
|
|
66
65
|
"@types/react-dom": "^18.3.1",
|
|
67
66
|
"@types/react-modal": "^3.13.1",
|
|
68
67
|
"@types/resize-observer-browser": "^0.1.8",
|
|
69
68
|
"@typescript-eslint/eslint-plugin": "^8.46.4",
|
|
70
|
-
"@typescript-eslint/parser": "^8.
|
|
69
|
+
"@typescript-eslint/parser": "^8.52.0",
|
|
71
70
|
"babel-loader": "^9.2.1",
|
|
72
71
|
"cross-env": "^10.0.0",
|
|
73
72
|
"css-loader": "^6.11.0",
|
|
74
73
|
"eslint": "^9.39.1",
|
|
75
74
|
"eslint-config-prettier": "^10.1.8",
|
|
76
75
|
"eslint-plugin-import": "^2.32.0",
|
|
77
|
-
"eslint-plugin-jsdoc": "^61.
|
|
76
|
+
"eslint-plugin-jsdoc": "^61.5.0",
|
|
78
77
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
79
78
|
"eslint-plugin-react": "^7.37.5",
|
|
80
79
|
"eslint-plugin-react-hooks": "^7.0.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.1.0",
|
|
105
105
|
"react-modal": "^3.16.1",
|
|
106
106
|
"react-select": "^5.8.1",
|
|
107
107
|
"react-spring": "^8.0.27",
|