shinkansen-cogs 2.1.15 → 2.1.17
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/index.d.mts +2 -2
- package/package.json +15 -15
- package/src/js/components/common/text-content/index.cjs +2 -2
- package/src/js/components/common/text-content/index.jsx +1 -1
- package/src/js/components/description/index.d.mts +2 -11
- package/src/js/components/index.cjs +4 -4
- package/src/js/super/components/index.cjs +4 -4
- package/src/js/super/components/title/index.d.mts +1 -1
- package/src/sass/_cogs.scss +2 -4
- package/src/sass/cogs/_checkbox.scss +1 -2
- package/src/sass/cogs/_error.scss +2 -4
- package/src/sass/cogs/_radio.scss +1 -2
- package/.publish/README.md +0 -20
package/index.d.mts
CHANGED
|
@@ -111,7 +111,7 @@ declare global {
|
|
|
111
111
|
export interface CheckProps extends Super.Components.Field.FieldProps {
|
|
112
112
|
checked?: boolean
|
|
113
113
|
defaultChecked?: boolean
|
|
114
|
-
onClick
|
|
114
|
+
onClick?: OnEventType
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
export namespace Checkbox {
|
|
@@ -192,7 +192,7 @@ declare global {
|
|
|
192
192
|
export interface CheckProps extends Super.Cogs.CogProps {
|
|
193
193
|
checked?: boolean
|
|
194
194
|
defaultChecked?: boolean
|
|
195
|
-
onClick
|
|
195
|
+
onClick?: OnEventType
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
export namespace Checkbox {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-cogs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.17",
|
|
4
4
|
"description": "Shinkansen Cogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -61,17 +61,17 @@
|
|
|
61
61
|
"@babel/preset-react": "^7.26.3",
|
|
62
62
|
"@babel/register": "^7.25.9",
|
|
63
63
|
"@modernpoacher/design-system": "2.0.2",
|
|
64
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
65
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
66
|
-
"@storybook/addon-actions": "^8.6.
|
|
67
|
-
"@storybook/addon-essentials": "^8.6.
|
|
68
|
-
"@storybook/addon-links": "^8.6.
|
|
64
|
+
"@sequencemedia/eslint-config-standard": "^0.2.47",
|
|
65
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.69",
|
|
66
|
+
"@storybook/addon-actions": "^8.6.10",
|
|
67
|
+
"@storybook/addon-essentials": "^8.6.10",
|
|
68
|
+
"@storybook/addon-links": "^8.6.10",
|
|
69
69
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
70
|
-
"@storybook/manager-api": "^8.6.
|
|
71
|
-
"@storybook/react": "^8.6.
|
|
72
|
-
"@storybook/react-webpack5": "^8.6.
|
|
73
|
-
"@storybook/test": "^8.6.
|
|
74
|
-
"@storybook/theming": "^8.6.
|
|
70
|
+
"@storybook/manager-api": "^8.6.10",
|
|
71
|
+
"@storybook/react": "^8.6.10",
|
|
72
|
+
"@storybook/react-webpack5": "^8.6.10",
|
|
73
|
+
"@storybook/test": "^8.6.10",
|
|
74
|
+
"@storybook/theming": "^8.6.10",
|
|
75
75
|
"@testing-library/jest-dom": "^6.6.3",
|
|
76
76
|
"@testing-library/react": "^16.2.0",
|
|
77
77
|
"@types/babel__register": "^7.17.3",
|
|
@@ -107,14 +107,14 @@
|
|
|
107
107
|
"prettier": "^3.5.3",
|
|
108
108
|
"prop-types": "^15.8.1",
|
|
109
109
|
"react": "^19.0.0",
|
|
110
|
-
"react-component-instance": "^0.0.
|
|
111
|
-
"react-component-snapshot": "^0.0.
|
|
110
|
+
"react-component-instance": "^0.0.16",
|
|
111
|
+
"react-component-snapshot": "^0.0.17",
|
|
112
112
|
"react-dom": "^19.0.0",
|
|
113
113
|
"remove-files-webpack-plugin": "^1.5.0",
|
|
114
114
|
"sass": "^1.86.0",
|
|
115
115
|
"sass-loader": "^16.0.5",
|
|
116
|
-
"storybook": "^8.6.
|
|
117
|
-
"stylelint": "^16.
|
|
116
|
+
"storybook": "^8.6.10",
|
|
117
|
+
"stylelint": "^16.17.0",
|
|
118
118
|
"stylelint-config-recommended-scss": "^14.1.0",
|
|
119
119
|
"stylelint-scss": "^6.11.1",
|
|
120
120
|
"webpack": "^5.98.0",
|
|
@@ -11,10 +11,10 @@ const log = debug('shinkansen-cogs/components/common/text-content')
|
|
|
11
11
|
log('`shinkansen` is awake')
|
|
12
12
|
|
|
13
13
|
const {
|
|
14
|
-
default:
|
|
14
|
+
default: TextContent
|
|
15
15
|
} = require('./index.jsx')
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Exports only default
|
|
19
19
|
*/
|
|
20
|
-
module.exports =
|
|
20
|
+
module.exports = TextContent
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
declare module '#cogs/components/description' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type DescriptionProps = CogsTypes.Super.Components.Description.DescriptionProps
|
|
5
|
-
|
|
6
|
-
export default class Description extends React.Component<DescriptionProps> {
|
|
7
|
-
static propTypes: object
|
|
8
|
-
|
|
9
|
-
getClassName (): string
|
|
10
|
-
|
|
11
|
-
shouldComponentUpdate (props: DescriptionProps): boolean
|
|
12
|
-
}
|
|
2
|
+
export { default } from '#cogs/super/components/description'
|
|
3
|
+
export * from '#cogs/super/components/description'
|
|
13
4
|
}
|
|
14
5
|
|
|
15
6
|
declare module 'shinkansen-cogs/components/description' {
|
|
@@ -28,11 +28,11 @@ const {
|
|
|
28
28
|
default: Title
|
|
29
29
|
} = require('./title/index.jsx')
|
|
30
30
|
|
|
31
|
-
module.exports.Description = Description
|
|
32
|
-
module.exports.ErrorMessage = ErrorMessage
|
|
31
|
+
module.exports.Description = Description
|
|
32
|
+
module.exports.ErrorMessage = ErrorMessage
|
|
33
33
|
module.exports.Field = {
|
|
34
34
|
ValueField,
|
|
35
35
|
CheckField,
|
|
36
36
|
toInputValue
|
|
37
|
-
}
|
|
38
|
-
module.exports.Title = Title
|
|
37
|
+
}
|
|
38
|
+
module.exports.Title = Title
|
|
@@ -26,7 +26,7 @@ const {
|
|
|
26
26
|
default: Title
|
|
27
27
|
} = require('./title/index.jsx')
|
|
28
28
|
|
|
29
|
-
module.exports.Description = Description
|
|
30
|
-
module.exports.ErrorMessage = ErrorMessage
|
|
31
|
-
module.exports.Field = Field
|
|
32
|
-
module.exports.Title = Title
|
|
29
|
+
module.exports.Description = Description
|
|
30
|
+
module.exports.ErrorMessage = ErrorMessage
|
|
31
|
+
module.exports.Field = Field
|
|
32
|
+
module.exports.Title = Title
|
|
@@ -16,7 +16,7 @@ declare module '#cogs/super/components/title' {
|
|
|
16
16
|
|
|
17
17
|
shouldComponentUpdate (props: TitleProps): boolean
|
|
18
18
|
|
|
19
|
-
renderTextContent (textContent: string)
|
|
19
|
+
renderTextContent (textContent: string): React.JSX.Element
|
|
20
20
|
|
|
21
21
|
renderIsRequired (): React.JSX.Element | null
|
|
22
22
|
|
package/src/sass/_cogs.scss
CHANGED
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
.description {
|
|
40
40
|
@include typography.secondary-text;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
& {
|
|
42
|
+
& /* stylelint-disable-line no-duplicate-selectors */ {
|
|
44
43
|
display: block;
|
|
45
44
|
padding: 0;
|
|
46
45
|
margin: 0 0 0.25rem 0;
|
|
@@ -50,8 +49,7 @@
|
|
|
50
49
|
.error-message {
|
|
51
50
|
@include typography.error-standard;
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
& {
|
|
52
|
+
& /* stylelint-disable-line no-duplicate-selectors */ {
|
|
55
53
|
display: block;
|
|
56
54
|
padding: 0;
|
|
57
55
|
margin: 0 0 0.25rem 0;
|
|
@@ -19,13 +19,11 @@
|
|
|
19
19
|
&.checkbox {
|
|
20
20
|
padding-left: 4rem;
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
input {
|
|
22
|
+
input /* stylelint-disable-line no-descending-specificity */ {
|
|
24
23
|
left: 1.5rem;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
label:before {
|
|
26
|
+
label:before /* stylelint-disable-line no-descending-specificity */ {
|
|
29
27
|
left: 1rem;
|
|
30
28
|
|
|
31
29
|
border: 2px solid palette.$error-standard;
|
package/.publish/README.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Publish to NPM
|
|
2
|
-
|
|
3
|
-
For CircleCI or the shell
|
|
4
|
-
|
|
5
|
-
If you need an _authentication token_ to publish then you should resolve that before executing this script
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
echo ".publish/publish.sh" >> .npmignore
|
|
9
|
-
git clone https://github.com/modernpoacher/publish.git .publish
|
|
10
|
-
.publish/publish.sh
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
A Gist with the same content as `publish.sh` may need an additional step
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
echo ".publish/publish.sh" >> .npmignore
|
|
17
|
-
git clone https://gist.github.com/efd85e2b8da1ee830dd637f134994a9d.git .publish
|
|
18
|
-
chmod +x .publish/publish.sh
|
|
19
|
-
.publish/publish.sh
|
|
20
|
-
```
|