shinkansen-cogs 2.1.13 → 2.1.15
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/package.json +7 -6
- package/src/js/cogs/index.d.cts +5 -1
- package/src/js/cogs/index.d.mts +7 -1
- package/src/js/cogs/index.jsx +2 -1
- package/src/js/cogs/select/field/index.jsx +2 -2
- package/src/js/components/field/index.jsx +2 -3
- package/src/js/super/cogs/index.cjs +1 -1
- package/src/js/super/components/field/index.cjs +1 -1
- package/src/js/super/components/title/index.jsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-cogs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.15",
|
|
4
4
|
"description": "Shinkansen Cogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -61,8 +61,8 @@
|
|
|
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.
|
|
64
|
+
"@sequencemedia/eslint-config-standard": "^0.2.46",
|
|
65
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.67",
|
|
66
66
|
"@storybook/addon-actions": "^8.6.9",
|
|
67
67
|
"@storybook/addon-essentials": "^8.6.9",
|
|
68
68
|
"@storybook/addon-links": "^8.6.9",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"@storybook/manager-api": "^8.6.9",
|
|
71
71
|
"@storybook/react": "^8.6.9",
|
|
72
72
|
"@storybook/react-webpack5": "^8.6.9",
|
|
73
|
+
"@storybook/test": "^8.6.9",
|
|
73
74
|
"@storybook/theming": "^8.6.9",
|
|
74
75
|
"@testing-library/jest-dom": "^6.6.3",
|
|
75
76
|
"@testing-library/react": "^16.2.0",
|
|
@@ -89,7 +90,7 @@
|
|
|
89
90
|
"cross-env": "^7.0.3",
|
|
90
91
|
"eslint": "^9.23.0",
|
|
91
92
|
"eslint-plugin-react": "^7.37.4",
|
|
92
|
-
"eslint-plugin-storybook": "^0.
|
|
93
|
+
"eslint-plugin-storybook": "^0.12.0",
|
|
93
94
|
"globals": "^16.0.0",
|
|
94
95
|
"husky": "^9.1.7",
|
|
95
96
|
"jest": "^29.7.0",
|
|
@@ -106,8 +107,8 @@
|
|
|
106
107
|
"prettier": "^3.5.3",
|
|
107
108
|
"prop-types": "^15.8.1",
|
|
108
109
|
"react": "^19.0.0",
|
|
109
|
-
"react-component-instance": "^0.0.
|
|
110
|
-
"react-component-snapshot": "^0.0.
|
|
110
|
+
"react-component-instance": "^0.0.15",
|
|
111
|
+
"react-component-snapshot": "^0.0.14",
|
|
111
112
|
"react-dom": "^19.0.0",
|
|
112
113
|
"remove-files-webpack-plugin": "^1.5.0",
|
|
113
114
|
"sass": "^1.86.0",
|
package/src/js/cogs/index.d.cts
CHANGED
package/src/js/cogs/index.d.mts
CHANGED
|
@@ -12,8 +12,14 @@ declare module '#cogs/cogs' {
|
|
|
12
12
|
export class CheckCog<P extends CheckProps> extends Cog<P> {
|
|
13
13
|
shouldComponentUpdate (props: CheckProps): boolean
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
export function toInputValue (value: unknown): string
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
declare module 'shinkansen-cogs/cogs' {
|
|
18
|
-
export
|
|
20
|
+
export {
|
|
21
|
+
ValueCog,
|
|
22
|
+
CheckCog,
|
|
23
|
+
toInputValue
|
|
24
|
+
} from '#cogs/cogs'
|
|
19
25
|
}
|
package/src/js/cogs/index.jsx
CHANGED
|
@@ -24,8 +24,8 @@ function DEFAULT_HANDLE_EVENT () {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* @param {HTMLOptionElement[]} selectedOptions
|
|
28
|
+
* @returns {string[]}
|
|
29
29
|
*/
|
|
30
30
|
function fromSelectedOptions (selectedOptions) {
|
|
31
31
|
return (
|
|
@@ -20,8 +20,8 @@ function DEFAULT_HANDLE_EVENT () {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* @param {unknown} value
|
|
24
|
+
* @returns {string}
|
|
25
25
|
*/
|
|
26
26
|
export function toInputValue (value) {
|
|
27
27
|
return (value === undefined) ? '' : String(value)
|
|
@@ -94,7 +94,6 @@ export class CheckField extends Field {
|
|
|
94
94
|
|
|
95
95
|
CheckField.propTypes = {
|
|
96
96
|
...Field.propTypes,
|
|
97
|
-
value: PropTypes.string,
|
|
98
97
|
checked: PropTypes.bool,
|
|
99
98
|
defaultChecked: PropTypes.bool,
|
|
100
99
|
onClick: PropTypes.func
|