shinkansen-sprockets 1.1.97 → 1.1.99
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/babel.config.cjs +23 -23
- package/package.json +25 -24
- package/src/components/common/text-content/index.jsx +7 -7
- package/src/components/common/visually-hidden-text/index.cjs +17 -0
- package/src/{sprockets/check-answers/group/visually-hidden-text.jsx → components/common/visually-hidden-text/index.jsx} +1 -1
- package/src/sprockets/check-answers/group/change-answer.jsx +1 -1
- package/src/sprockets/check-answers/group/visually-hidden-text.cjs +0 -13
package/babel.config.cjs
CHANGED
@@ -54,29 +54,29 @@ const plugins = [
|
|
54
54
|
/**
|
55
55
|
* Storybook
|
56
56
|
*/
|
57
|
-
'shinkansen-sprockets/sprockets/check-answers/group/answer-item': './src/sprockets/
|
58
|
-
'shinkansen-sprockets/sprockets/check-answers/group/answer-title': './src/sprockets/
|
59
|
-
'shinkansen-sprockets/sprockets/check-answers/group/answer-value': './src/sprockets/
|
60
|
-
'shinkansen-sprockets/sprockets/check-answers/group/change-answer': './src/sprockets/
|
61
|
-
'shinkansen-sprockets/sprockets/check-answers/group/visually-hidden-text': './src/sprockets/
|
62
|
-
'shinkansen-sprockets/sprockets/check-answers/group': './src/sprockets/check-answers/group/index.
|
63
|
-
'shinkansen-sprockets/sprockets/check-answers/title': './src/sprockets/check-answers/title/index.
|
64
|
-
'shinkansen-sprockets/sprockets/check-answers': './src/sprockets/check-answers/index.
|
65
|
-
'shinkansen-sprockets/sprockets/error-summary/group/error-item': './src/sprockets/
|
66
|
-
'shinkansen-sprockets/sprockets/error-summary/group': './src/sprockets/error-summary/group/index.
|
67
|
-
'shinkansen-sprockets/sprockets/error-summary/title': './src/sprockets/error-summary/title/index.
|
68
|
-
'shinkansen-sprockets/sprockets/error-summary': './src/sprockets/error-summary/index.
|
69
|
-
'shinkansen-sprockets/sprockets/fieldset/description': './src/sprockets/description/
|
70
|
-
'shinkansen-sprockets/sprockets/fieldset/error-message': './src/sprockets/error-message/
|
71
|
-
'shinkansen-sprockets/sprockets/fieldset/group': './src/sprockets/group/
|
72
|
-
'shinkansen-sprockets/sprockets/fieldset/title': './src/sprockets/title/
|
73
|
-
'shinkansen-sprockets/sprockets/fieldset': './src/sprockets/fieldset/index.
|
74
|
-
'shinkansen-sprockets/sprockets': './src/sprockets/index.
|
75
|
-
'shinkansen-sprockets/components/common/text-content': './src/components/common/text-content/index.
|
76
|
-
'shinkansen-sprockets/components/description': './src/components/description/index.
|
77
|
-
'shinkansen-sprockets/components/error-message': './src/components/error-message/index.
|
78
|
-
'shinkansen-sprockets/components/title': './src/components/title/index.
|
79
|
-
'shinkansen-sprockets/components/group': './src/components/group/index.
|
57
|
+
'shinkansen-sprockets/sprockets/check-answers/group/answer-item': './src/sprockets/check-answers/group/answer-item.jsx',
|
58
|
+
'shinkansen-sprockets/sprockets/check-answers/group/answer-title': './src/sprockets/check-answers/group/answer-title.jsx',
|
59
|
+
'shinkansen-sprockets/sprockets/check-answers/group/answer-value': './src/sprockets/check-answers/group/answer-value.jsx',
|
60
|
+
'shinkansen-sprockets/sprockets/check-answers/group/change-answer': './src/sprockets/check-answers/group/change-answer.jsx',
|
61
|
+
'shinkansen-sprockets/sprockets/check-answers/group/visually-hidden-text': './src/sprockets/check-answers/group/visually-hidden-text.jsx',
|
62
|
+
'shinkansen-sprockets/sprockets/check-answers/group': './src/sprockets/check-answers/group/index.jsx',
|
63
|
+
'shinkansen-sprockets/sprockets/check-answers/title': './src/sprockets/check-answers/title/index.jsx',
|
64
|
+
'shinkansen-sprockets/sprockets/check-answers': './src/sprockets/check-answers/index.jsx',
|
65
|
+
'shinkansen-sprockets/sprockets/error-summary/group/error-item': './src/sprockets/error-summary/group/error-item.jsx',
|
66
|
+
'shinkansen-sprockets/sprockets/error-summary/group': './src/sprockets/error-summary/group/index.jsx',
|
67
|
+
'shinkansen-sprockets/sprockets/error-summary/title': './src/sprockets/error-summary/title/index.jsx',
|
68
|
+
'shinkansen-sprockets/sprockets/error-summary': './src/sprockets/error-summary/index.jsx',
|
69
|
+
'shinkansen-sprockets/sprockets/fieldset/description': './src/sprockets/fieldset/description/index.jsx',
|
70
|
+
'shinkansen-sprockets/sprockets/fieldset/error-message': './src/sprockets/fieldset/error-message/index.jsx',
|
71
|
+
'shinkansen-sprockets/sprockets/fieldset/group': './src/sprockets/fieldset/group/index.jsx',
|
72
|
+
'shinkansen-sprockets/sprockets/fieldset/title': './src/sprockets/fieldset/title/index.jsx',
|
73
|
+
'shinkansen-sprockets/sprockets/fieldset': './src/sprockets/fieldset/index.jsx',
|
74
|
+
'shinkansen-sprockets/sprockets': './src/sprockets/index.jsx',
|
75
|
+
'shinkansen-sprockets/components/common/text-content': './src/components/common/text-content/index.jsx',
|
76
|
+
'shinkansen-sprockets/components/description': './src/components/description/index.jsx',
|
77
|
+
'shinkansen-sprockets/components/error-message': './src/components/error-message/index.jsx',
|
78
|
+
'shinkansen-sprockets/components/title': './src/components/title/index.jsx',
|
79
|
+
'shinkansen-sprockets/components/group': './src/components/group/index.jsx',
|
80
80
|
'#stories': './stories'
|
81
81
|
}
|
82
82
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shinkansen-sprockets",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.99",
|
4
4
|
"description": "Shinkansen Sprockets",
|
5
5
|
"keywords": [
|
6
6
|
"Shinkansen",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"author": {
|
17
17
|
"name": "Jonathan Perry for Modern Poacher Limited",
|
18
18
|
"email": "modernpoacher@modernpoacher.com",
|
19
|
-
"url": "
|
19
|
+
"url": "https://modernpoacher.com"
|
20
20
|
},
|
21
21
|
"license": "MIT",
|
22
22
|
"engines": {
|
@@ -61,21 +61,21 @@
|
|
61
61
|
"@babel/register": "^7.22.15",
|
62
62
|
"@modernpoacher/design-system": "1.0.72",
|
63
63
|
"@modernpoacher/hooks": "^1.0.434",
|
64
|
-
"@sequencemedia/gulp": "^1.1.
|
64
|
+
"@sequencemedia/gulp": "^1.1.78",
|
65
65
|
"@sequencemedia/gulp-clean-css": "^1.0.34",
|
66
66
|
"@sequencemedia/gulp-css-purge": "^1.1.27",
|
67
67
|
"@sequencemedia/gulp-debug": "^1.0.38",
|
68
68
|
"@sequencemedia/gulp-postcss": "^1.0.37",
|
69
69
|
"@sequencemedia/gulp-sass": "^1.0.33",
|
70
70
|
"@sequencemedia/gulp-sourcemaps": "^1.0.34",
|
71
|
-
"@storybook/addon-actions": "^7.4.
|
72
|
-
"@storybook/addon-essentials": "^7.4.
|
73
|
-
"@storybook/addon-links": "^7.4.
|
74
|
-
"@storybook/react": "^7.4.
|
75
|
-
"@storybook/react-webpack5": "^7.4.
|
71
|
+
"@storybook/addon-actions": "^7.4.1",
|
72
|
+
"@storybook/addon-essentials": "^7.4.1",
|
73
|
+
"@storybook/addon-links": "^7.4.1",
|
74
|
+
"@storybook/react": "^7.4.1",
|
75
|
+
"@storybook/react-webpack5": "^7.4.1",
|
76
76
|
"@types/react": "^18.2.21",
|
77
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
78
|
-
"@typescript-eslint/parser": "^6.
|
77
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
78
|
+
"@typescript-eslint/parser": "^6.7.0",
|
79
79
|
"autoprefixer": "^10.4.15",
|
80
80
|
"babel-plugin-module-resolver": "^5.0.0",
|
81
81
|
"core-js": "^3.32.2",
|
@@ -89,7 +89,7 @@
|
|
89
89
|
"eslint-plugin-react": "^7.33.2",
|
90
90
|
"glob-all": "^3.3.1",
|
91
91
|
"husky": "^8.0.3",
|
92
|
-
"jest": "^29.
|
92
|
+
"jest": "^29.7.0",
|
93
93
|
"postcss": "^8.4.29",
|
94
94
|
"postcss-easy-import": "^4.0.0",
|
95
95
|
"postcss-map": "^0.11.0",
|
@@ -98,12 +98,12 @@
|
|
98
98
|
"prop-types": "^15.8.1",
|
99
99
|
"react": "^18.2.0",
|
100
100
|
"react-dom": "^18.2.0",
|
101
|
-
"react-router": "^6.
|
102
|
-
"react-router-dom": "^6.
|
101
|
+
"react-router": "^6.16.0",
|
102
|
+
"react-router-dom": "^6.16.0",
|
103
103
|
"react-test-renderer": "^18.2.0",
|
104
104
|
"regenerator-runtime": "^0.14.0",
|
105
105
|
"sass": "^1.66.1",
|
106
|
-
"storybook": "^7.4.
|
106
|
+
"storybook": "^7.4.1",
|
107
107
|
"vinyl-paths": "^5.0.0"
|
108
108
|
},
|
109
109
|
"imports": {
|
@@ -118,21 +118,22 @@
|
|
118
118
|
"require": "./src/index.cjs",
|
119
119
|
"import": "./src/index.mjs"
|
120
120
|
},
|
121
|
-
"./sprockets/check-answers/group/*": "./src/
|
122
|
-
"./sprockets/check-answers/group": "./src/
|
123
|
-
"./sprockets/check-answers/title": "./src/
|
121
|
+
"./sprockets/check-answers/group/*": "./src/sprockets/check-answers/group/*.cjs",
|
122
|
+
"./sprockets/check-answers/group": "./src/sprockets/check-answers/group/index.cjs",
|
123
|
+
"./sprockets/check-answers/title": "./src/sprockets/check-answers/title/index.cjs",
|
124
124
|
"./sprockets/check-answers": "./src/sprockets/check-answers/index.cjs",
|
125
|
-
"./sprockets/error-summary/group/*": "./src/
|
126
|
-
"./sprockets/error-summary/group": "./src/
|
127
|
-
"./sprockets/error-summary/title": "./src/
|
125
|
+
"./sprockets/error-summary/group/*": "./src/sprockets/error-summary/group/*.cjs",
|
126
|
+
"./sprockets/error-summary/group": "./src/sprockets/error-summary/group/index.cjs",
|
127
|
+
"./sprockets/error-summary/title": "./src/sprockets/error-summary/title/index.cjs",
|
128
128
|
"./sprockets/error-summary": "./src/sprockets/error-summary/index.cjs",
|
129
|
-
"./sprockets/fieldset/description": "./src/
|
130
|
-
"./sprockets/fieldset/error-message": "./src/
|
131
|
-
"./sprockets/fieldset/group": "./src/
|
132
|
-
"./sprockets/fieldset/title": "./src/
|
129
|
+
"./sprockets/fieldset/description": "./src/sprockets/fieldset/description/index.cjs",
|
130
|
+
"./sprockets/fieldset/error-message": "./src/sprockets/fieldset/error-message/index.cjs",
|
131
|
+
"./sprockets/fieldset/group": "./src/sprockets/fieldset/group/index.cjs",
|
132
|
+
"./sprockets/fieldset/title": "./src/sprockets/fieldset/title/index.cjs",
|
133
133
|
"./sprockets/fieldset": "./src/sprockets/fieldset/index.cjs",
|
134
134
|
"./sprockets": "./src/sprockets/index.cjs",
|
135
135
|
"./components/common/text-content": "./src/components/common/text-content/index.cjs",
|
136
|
+
"./components/common/visually-hidden-text": "./src/components/common/visually-hidden-text/index.cjs",
|
136
137
|
"./components/description": "./src/components/description/index.cjs",
|
137
138
|
"./components/error-message": "./src/components/error-message/index.cjs",
|
138
139
|
"./components/group": "./src/components/group/index.cjs",
|
@@ -11,14 +11,14 @@ import PropTypes from 'prop-types'
|
|
11
11
|
* @param {TextContentProps}
|
12
12
|
* @returns {React.JSX.Element}
|
13
13
|
*/
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
export default function TextContent ({ textContent }) {
|
15
|
+
return (
|
16
|
+
<span className='text-content'>
|
17
|
+
{textContent}
|
18
|
+
</span>
|
19
|
+
)
|
20
|
+
}
|
19
21
|
|
20
22
|
TextContent.propTypes = {
|
21
23
|
textContent: PropTypes.string.isRequired
|
22
24
|
}
|
23
|
-
|
24
|
-
export default TextContent
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require('@babel/register')({
|
2
|
+
ignore: [
|
3
|
+
/node_modules\/(?!shinkansen|@modernpoacher)/
|
4
|
+
]
|
5
|
+
})
|
6
|
+
|
7
|
+
const debug = require('debug')
|
8
|
+
|
9
|
+
const log = debug('shinkansen-sprockets/components/common/visually-hidden-text')
|
10
|
+
|
11
|
+
log('`shinkansen` is awake')
|
12
|
+
|
13
|
+
const {
|
14
|
+
default: component
|
15
|
+
} = require('./index.jsx')
|
16
|
+
|
17
|
+
module.exports = component
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
3
3
|
import debug from 'debug'
|
4
4
|
|
5
|
-
const log = debug('shinkansen-sprockets/
|
5
|
+
const log = debug('shinkansen-sprockets/components/common/visually-hidden-text')
|
6
6
|
|
7
7
|
export default function VisuallyHiddenText ({ visuallyHiddenText }) {
|
8
8
|
log('VisuallyHiddenText')
|
@@ -8,7 +8,7 @@ import {
|
|
8
8
|
|
9
9
|
import TextContent from 'shinkansen-sprockets/components/common/text-content'
|
10
10
|
|
11
|
-
import VisuallyHiddenText from '
|
11
|
+
import VisuallyHiddenText from 'shinkansen-sprockets/components/common/visually-hidden-text'
|
12
12
|
|
13
13
|
const log = debug('shinkansen-sprockets/sprockets/check-answers/group/change-answer')
|
14
14
|
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require('@babel/register')({
|
2
|
-
ignore: [
|
3
|
-
/node_modules\/(?!shinkansen|@modernpoacher)/
|
4
|
-
]
|
5
|
-
})
|
6
|
-
|
7
|
-
const debug = require('debug')
|
8
|
-
|
9
|
-
const log = debug('shinkansen-sprockets/sprockets/check-answers/group/visually-hidden-text')
|
10
|
-
|
11
|
-
log('`shinkansen` is awake')
|
12
|
-
|
13
|
-
module.exports = require('./visually-hidden-text.jsx')
|