@modernpoacher/sprockets 0.0.9 → 0.0.11
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 +0 -8
- package/package.json +27 -32
- package/src/components/common/text-content/index.jsx +7 -7
- package/src/{sprockets/check-answers/group/visually-hidden-text.cjs → components/common/visually-hidden-text/index.cjs} +6 -2
- package/src/{sprockets/check-answers/group/visually-hidden-text.jsx → components/common/visually-hidden-text/index.jsx} +1 -1
package/babel.config.cjs
CHANGED
|
@@ -40,14 +40,6 @@ const presets = [
|
|
|
40
40
|
|
|
41
41
|
const plugins = [
|
|
42
42
|
'@babel/syntax-jsx',
|
|
43
|
-
'@babel/proposal-export-default-from',
|
|
44
|
-
'@babel/proposal-export-namespace-from',
|
|
45
|
-
[
|
|
46
|
-
'@babel/proposal-class-properties',
|
|
47
|
-
{
|
|
48
|
-
loose: false
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
43
|
[
|
|
52
44
|
'module-resolver', {
|
|
53
45
|
alias: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modernpoacher/sprockets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Sprockets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Sprockets",
|
|
@@ -46,32 +46,29 @@
|
|
|
46
46
|
"debug": "^4.3.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.22.
|
|
49
|
+
"@babel/core": "^7.22.20",
|
|
50
50
|
"@babel/eslint-parser": "^7.22.15",
|
|
51
|
-
"@babel/
|
|
52
|
-
"@babel/plugin-proposal-export-default-from": "^7.22.17",
|
|
53
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
54
|
-
"@babel/preset-env": "^7.22.15",
|
|
51
|
+
"@babel/preset-env": "^7.22.20",
|
|
55
52
|
"@babel/preset-react": "^7.22.15",
|
|
56
53
|
"@babel/register": "^7.22.15",
|
|
57
54
|
"@modernpoacher/design-system": "1.0.72",
|
|
58
|
-
"@modernpoacher/hooks": "^1.0.
|
|
59
|
-
"@sequencemedia/gulp": "^1.1.
|
|
60
|
-
"@sequencemedia/gulp-clean-css": "^1.0.
|
|
61
|
-
"@sequencemedia/gulp-css-purge": "^1.1.
|
|
62
|
-
"@sequencemedia/gulp-debug": "^1.0.
|
|
63
|
-
"@sequencemedia/gulp-postcss": "^1.0.
|
|
64
|
-
"@sequencemedia/gulp-sass": "^1.0.
|
|
65
|
-
"@sequencemedia/gulp-sourcemaps": "^1.0.
|
|
66
|
-
"@storybook/addon-actions": "^7.4.
|
|
67
|
-
"@storybook/addon-essentials": "^7.4.
|
|
68
|
-
"@storybook/addon-links": "^7.4.
|
|
69
|
-
"@storybook/react": "^7.4.
|
|
70
|
-
"@storybook/react-webpack5": "^7.4.
|
|
71
|
-
"@types/react": "^18.2.
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
73
|
-
"@typescript-eslint/parser": "^6.
|
|
74
|
-
"autoprefixer": "^10.4.
|
|
55
|
+
"@modernpoacher/hooks": "^1.0.436",
|
|
56
|
+
"@sequencemedia/gulp": "^1.1.84",
|
|
57
|
+
"@sequencemedia/gulp-clean-css": "^1.0.38",
|
|
58
|
+
"@sequencemedia/gulp-css-purge": "^1.1.31",
|
|
59
|
+
"@sequencemedia/gulp-debug": "^1.0.42",
|
|
60
|
+
"@sequencemedia/gulp-postcss": "^1.0.42",
|
|
61
|
+
"@sequencemedia/gulp-sass": "^1.0.37",
|
|
62
|
+
"@sequencemedia/gulp-sourcemaps": "^1.0.38",
|
|
63
|
+
"@storybook/addon-actions": "^7.4.3",
|
|
64
|
+
"@storybook/addon-essentials": "^7.4.3",
|
|
65
|
+
"@storybook/addon-links": "^7.4.3",
|
|
66
|
+
"@storybook/react": "^7.4.3",
|
|
67
|
+
"@storybook/react-webpack5": "^7.4.3",
|
|
68
|
+
"@types/react": "^18.2.22",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
|
70
|
+
"@typescript-eslint/parser": "^6.7.2",
|
|
71
|
+
"autoprefixer": "^10.4.16",
|
|
75
72
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
76
73
|
"core-js": "^3.32.2",
|
|
77
74
|
"cross-env": "^7.0.3",
|
|
@@ -84,8 +81,8 @@
|
|
|
84
81
|
"eslint-plugin-react": "^7.33.2",
|
|
85
82
|
"glob-all": "^3.3.1",
|
|
86
83
|
"husky": "^8.0.3",
|
|
87
|
-
"jest": "^29.
|
|
88
|
-
"postcss": "^8.4.
|
|
84
|
+
"jest": "^29.7.0",
|
|
85
|
+
"postcss": "^8.4.30",
|
|
89
86
|
"postcss-easy-import": "^4.0.0",
|
|
90
87
|
"postcss-map": "^0.11.0",
|
|
91
88
|
"postcss-normalize": "^10.0.1",
|
|
@@ -93,12 +90,12 @@
|
|
|
93
90
|
"prop-types": "^15.8.1",
|
|
94
91
|
"react": "^18.2.0",
|
|
95
92
|
"react-dom": "^18.2.0",
|
|
96
|
-
"react-router": "^6.
|
|
97
|
-
"react-router-dom": "^6.
|
|
93
|
+
"react-router": "^6.16.0",
|
|
94
|
+
"react-router-dom": "^6.16.0",
|
|
98
95
|
"react-test-renderer": "^18.2.0",
|
|
99
96
|
"regenerator-runtime": "^0.14.0",
|
|
100
|
-
"sass": "^1.
|
|
101
|
-
"storybook": "^7.4.
|
|
97
|
+
"sass": "^1.68.0",
|
|
98
|
+
"storybook": "^7.4.3",
|
|
102
99
|
"vinyl-paths": "^5.0.0"
|
|
103
100
|
},
|
|
104
101
|
"imports": {
|
|
@@ -126,11 +123,9 @@
|
|
|
126
123
|
"./sprockets/fieldset/group": "./src/sprockets/fieldset/group/index.cjs",
|
|
127
124
|
"./sprockets/fieldset/title": "./src/sprockets/fieldset/title/index.cjs",
|
|
128
125
|
"./sprockets/fieldset": "./src/sprockets/fieldset/index.cjs",
|
|
129
|
-
"./sprockets/table/group": "./src/sprockets/group/table/index.cjs",
|
|
130
|
-
"./sprockets/table/title": "./src/sprockets/table/table/index.cjs",
|
|
131
|
-
"./sprockets/table": "./src/sprockets/table/index.cjs",
|
|
132
126
|
"./sprockets": "./src/sprockets/index.cjs",
|
|
133
127
|
"./components/common/text-content": "./src/components/common/text-content/index.cjs",
|
|
128
|
+
"./components/common/visually-hidden-text": "./src/components/common/visually-hidden-text/index.cjs",
|
|
134
129
|
"./components/description": "./src/components/description/index.cjs",
|
|
135
130
|
"./components/error-message": "./src/components/error-message/index.cjs",
|
|
136
131
|
"./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
|
|
@@ -6,8 +6,12 @@ require('@babel/register')({
|
|
|
6
6
|
|
|
7
7
|
const debug = require('debug')
|
|
8
8
|
|
|
9
|
-
const log = debug('@modernpoacher/sprockets/
|
|
9
|
+
const log = debug('@modernpoacher/sprockets/components/common/visually-hidden-text')
|
|
10
10
|
|
|
11
11
|
log('`sprockets` is awake')
|
|
12
12
|
|
|
13
|
-
|
|
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('@modernpoacher/sprockets/
|
|
5
|
+
const log = debug('@modernpoacher/sprockets/components/common/visually-hidden-text')
|
|
6
6
|
|
|
7
7
|
export default function VisuallyHiddenText ({ visuallyHiddenText }) {
|
|
8
8
|
log('VisuallyHiddenText')
|