@modernpoacher/sprockets 0.0.9 → 0.0.10
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 +2 -7
- 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.10",
|
|
4
4
|
"description": "Sprockets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Sprockets",
|
|
@@ -48,9 +48,6 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@babel/core": "^7.22.17",
|
|
50
50
|
"@babel/eslint-parser": "^7.22.15",
|
|
51
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
52
|
-
"@babel/plugin-proposal-export-default-from": "^7.22.17",
|
|
53
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
54
51
|
"@babel/preset-env": "^7.22.15",
|
|
55
52
|
"@babel/preset-react": "^7.22.15",
|
|
56
53
|
"@babel/register": "^7.22.15",
|
|
@@ -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')
|