shinkansen-pinion 1.0.67 → 1.0.69

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/.gitattributes CHANGED
@@ -7,6 +7,7 @@
7
7
  *.cjs text eol=lf
8
8
  *.jsx text eol=lf
9
9
  *.mts text eol=lf
10
+ *.cts text eol=lf
10
11
  *.sh text eol=lf
11
12
  .editorconfig text eol=lf
12
13
  .eslintignore text eol=lf
package/babel.config.cjs CHANGED
@@ -136,9 +136,8 @@ const plugins = [
136
136
  * Storybook - Pinion
137
137
  */
138
138
  'shinkansen-pinion/components/check-answers': './src/components/check-answers/index.cjs',
139
- 'shinkansen-pinion/components/common/text-content': './src/components/common/text-content/index.cjs',
140
- 'shinkansen-pinion/components/common': './src/components/common/index.mjs',
141
139
  'shinkansen-pinion/components/error-summary': './src/components/error-summary/index.cjs',
140
+ 'shinkansen-pinion/components/fieldset': './src/components/fieldset/index.cjs',
142
141
  'shinkansen-pinion/components': './src/components/index.mjs',
143
142
  'shinkansen-pinion/transformers/check-answers/get-answer-title': './src/transformers/check-answers.mjs',
144
143
  'shinkansen-pinion/transformers/check-answers/get-answer-value-for-type-array': './src/transformers/check-answers.mjs',
@@ -199,6 +198,7 @@ const plugins = [
199
198
  /**
200
199
  * Storybook
201
200
  */
201
+ '#stories/errors.mjs': './stories/errors.mjs',
202
202
  '#stories': './stories'
203
203
  }
204
204
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shinkansen-pinion",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "Shinkansen Pinion",
5
5
  "keywords": [
6
6
  "Shinkansen",
@@ -103,10 +103,10 @@
103
103
  "regenerator-runtime": "^0.13.11",
104
104
  "rimraf": "^5.0.0",
105
105
  "sass": "^1.62.1",
106
- "shinkansen-cogs": "1.5.66",
106
+ "shinkansen-cogs": "1.5.67",
107
107
  "shinkansen-rails": "1.0.35",
108
108
  "shinkansen-signals": "1.1.18",
109
- "shinkansen-sprockets": "1.0.64",
109
+ "shinkansen-sprockets": "1.0.65",
110
110
  "vinyl-paths": "^5.0.0"
111
111
  },
112
112
  "imports": {
@@ -126,12 +126,14 @@
126
126
  "require": "./src/components/check-answers/index.cjs",
127
127
  "import": "./src/components/check-answers/index.mjs"
128
128
  },
129
- "./components/common/text-content": "./src/components/common/text-content/index.cjs",
130
- "./components/common": "./src/components/common/index.mjs",
131
129
  "./components/error-summary": {
132
130
  "require": "./src/components/error-summary/index.cjs",
133
131
  "import": "./src/components/error-summary/index.mjs"
134
132
  },
133
+ "./components/fieldset": {
134
+ "require": "./src/components/fieldset/index.cjs",
135
+ "import": "./src/components/fieldset/index.mjs"
136
+ },
135
137
  "./components": "./src/components/index.mjs",
136
138
  "./transformers/check-answers/*": "./src/transformers/check-answers/*.mjs",
137
139
  "./transformers/check-answers": "./src/transformers/check-answers/index.mjs",
@@ -0,0 +1,13 @@
1
+ require('@babel/register')({ ignore: [] })
2
+
3
+ const debug = require('debug')
4
+
5
+ const log = debug('shinkansen-pinion/components/fieldset')
6
+
7
+ log('`shinkansen` is awake')
8
+
9
+ const {
10
+ FieldsetSprocket
11
+ } = require('shinkansen-sprockets')
12
+
13
+ module.exports = FieldsetSprocket
@@ -0,0 +1,11 @@
1
+ import debug from 'debug'
2
+
3
+ import {
4
+ FieldsetSprocket
5
+ } from 'shinkansen-sprockets'
6
+
7
+ const log = debug('shinkansen-pinion/components/fieldset')
8
+
9
+ log('`shinkansen` is awake')
10
+
11
+ export default FieldsetSprocket
@@ -5,6 +5,6 @@ const log = debug('shinkansen-pinion/components')
5
5
  log('`shinkansen` is awake')
6
6
 
7
7
  export { default as CheckAnswers } from './check-answers/index.cjs'
8
- export * as common from './common/index.mjs'
9
8
  export { default as ErrorSummary } from './error-summary/index.cjs'
9
+ export { default as Fieldset } from './fieldset/index.cjs'
10
10
  export { default as Pinion } from '../pinion/index.cjs'
package/src/index.d.cts CHANGED
@@ -37,25 +37,18 @@ declare module 'shinkansen-pinion/components/check-answers' {
37
37
  export default function CheckAnswersSprocket(props: SprocketProps): React.JSX.Element
38
38
  }
39
39
 
40
- declare module 'shinkansen-pinion/components/common/text-content' {
40
+ declare module 'shinkansen-pinion/components/error-summary' {
41
41
  import React from 'react'
42
+ import type { SprocketProps } from 'shinkansen-sprockets/sprockets'
42
43
 
43
- export type TextContentProps = {
44
- textContent: string
45
- }
46
-
47
- export default function TextContent(props: TextContentProps): React.JSX.Element
48
- }
49
-
50
- declare module 'shinkansen-pinion/components/common' {
51
- export * as TextContent from 'shinkansen-pinion/components/common/text-content'
44
+ export default function ErrorSummarySprocket(props: SprocketProps): React.JSX.Element
52
45
  }
53
46
 
54
- declare module 'shinkansen-pinion/components/error-summary' {
47
+ declare module 'shinkansen-pinion/components/fieldset' {
55
48
  import React from 'react'
56
49
  import type { SprocketProps } from 'shinkansen-sprockets/sprockets'
57
50
 
58
- export default function ErrorSummarySprocket(props: SprocketProps): React.JSX.Element
51
+ export default function FieldsetSprocket(props: SprocketProps): React.JSX.Element
59
52
  }
60
53
 
61
54
  declare module 'shinkansen-pinion/transformers/common/has-component' {
@@ -1,7 +0,0 @@
1
- import debug from 'debug'
2
-
3
- const log = debug('shinkansen-pinion/components/common')
4
-
5
- log('`shinkansen` is awake')
6
-
7
- export * as TextContent from './text-content/index.cjs'
@@ -1,13 +0,0 @@
1
- require('@babel/register')({ ignore: [] })
2
-
3
- const debug = require('debug')
4
-
5
- const log = debug('shinkansen-pinion/components/common/text-content')
6
-
7
- log('`shinkansen` is awake')
8
-
9
- const {
10
- default: component
11
- } = require('./index.jsx')
12
-
13
- module.exports = component
@@ -1,24 +0,0 @@
1
- /**
2
- * TextContent component
3
- *
4
- * @typedef {import('shinkansen-pinion/components/common/text-content').TextContentProps} TextContentProps
5
- */
6
-
7
- import React from 'react'
8
- import PropTypes from 'prop-types'
9
-
10
- /**
11
- * @param {TextContentProps}
12
- * @returns {React.JSX.Element}
13
- */
14
- const TextContent = ({ textContent }) => (
15
- <span className='text-content'>
16
- {textContent}
17
- </span>
18
- )
19
-
20
- TextContent.propTypes = {
21
- textContent: PropTypes.string.isRequired
22
- }
23
-
24
- export default TextContent