shinkansen-cogs 1.8.11 → 1.8.13
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/eslint.config.mjs +6 -12
- package/package.json +9 -7
- package/src/cogs/checkbox/description/index.d.cts +1 -0
- package/src/cogs/checkbox/error-message/index.d.cts +1 -0
- package/src/cogs/checkbox/field/index.d.cts +2 -0
- package/src/cogs/checkbox/index.d.cts +2 -0
- package/src/cogs/checkbox/index.jsx +4 -4
- package/src/cogs/checkbox/title/index.d.cts +2 -0
- package/src/cogs/email/description/index.d.cts +1 -0
- package/src/cogs/email/error-message/index.d.cts +1 -0
- package/src/cogs/email/field/index.d.cts +2 -0
- package/src/cogs/email/index.d.cts +2 -0
- package/src/cogs/email/index.jsx +4 -4
- package/src/cogs/email/title/index.d.cts +2 -0
- package/src/cogs/index.d.cts +2 -0
- package/src/cogs/number/description/index.d.cts +1 -0
- package/src/cogs/number/error-message/index.d.cts +1 -0
- package/src/cogs/number/field/index.d.cts +2 -0
- package/src/cogs/number/index.d.cts +2 -0
- package/src/cogs/number/index.jsx +4 -4
- package/src/cogs/number/title/index.d.cts +2 -0
- package/src/cogs/password/description/index.d.cts +1 -0
- package/src/cogs/password/error-message/index.d.cts +1 -0
- package/src/cogs/password/field/index.d.cts +2 -0
- package/src/cogs/password/index.d.cts +2 -0
- package/src/cogs/password/index.jsx +4 -4
- package/src/cogs/password/title/index.d.cts +2 -0
- package/src/cogs/radio/description/index.d.cts +1 -0
- package/src/cogs/radio/error-message/index.d.cts +1 -0
- package/src/cogs/radio/field/index.d.cts +2 -0
- package/src/cogs/radio/index.d.cts +2 -0
- package/src/cogs/radio/index.jsx +4 -4
- package/src/cogs/radio/title/index.d.cts +2 -0
- package/src/cogs/select/description/index.d.cts +1 -0
- package/src/cogs/select/error-message/index.d.cts +1 -0
- package/src/cogs/select/field/index.d.cts +2 -0
- package/src/cogs/select/index.d.cts +2 -0
- package/src/cogs/select/index.jsx +4 -4
- package/src/cogs/select/title/index.d.cts +2 -0
- package/src/cogs/text/description/index.d.cts +1 -0
- package/src/cogs/text/error-message/index.d.cts +1 -0
- package/src/cogs/text/field/index.d.cts +2 -0
- package/src/cogs/text/index.d.cts +2 -0
- package/src/cogs/text/index.jsx +4 -4
- package/src/cogs/text/title/index.d.cts +2 -0
- package/src/cogs/textarea/description/index.d.cts +1 -0
- package/src/cogs/textarea/error-message/index.d.cts +1 -0
- package/src/cogs/textarea/field/index.d.cts +2 -0
- package/src/cogs/textarea/index.d.cts +2 -0
- package/src/cogs/textarea/index.jsx +4 -4
- package/src/cogs/textarea/title/index.d.cts +2 -0
- package/src/components/common/disabled/index.d.cts +1 -0
- package/src/components/common/readonly/index.d.cts +1 -0
- package/src/components/common/required/index.d.cts +1 -0
- package/src/components/common/text-content/index.d.cts +2 -0
- package/src/components/description/index.d.cts +2 -0
- package/src/components/error-message/index.d.cts +2 -0
- package/src/components/field/index.d.cts +2 -0
- package/src/components/title/index.d.cts +2 -0
- package/src/index.d.cts +72 -0
- package/src/index.d.mts +61 -0
package/eslint.config.mjs
CHANGED
|
@@ -119,19 +119,16 @@ export default [
|
|
|
119
119
|
globals: {
|
|
120
120
|
...globals.browser
|
|
121
121
|
}
|
|
122
|
-
},
|
|
122
|
+
}, // @ts-expect-error Storybook
|
|
123
123
|
plugins: {
|
|
124
124
|
...reactPlugins,
|
|
125
125
|
...storybookPlugins
|
|
126
|
-
},
|
|
126
|
+
}, // @ts-expect-error Storybook
|
|
127
127
|
rules: {
|
|
128
128
|
...reactRules
|
|
129
129
|
},
|
|
130
130
|
settings: {
|
|
131
|
-
...reactSettings
|
|
132
|
-
'import/resolver': {
|
|
133
|
-
'babel-module': {}
|
|
134
|
-
}
|
|
131
|
+
...reactSettings
|
|
135
132
|
}
|
|
136
133
|
}),
|
|
137
134
|
standard({
|
|
@@ -149,19 +146,16 @@ export default [
|
|
|
149
146
|
...globals.browser,
|
|
150
147
|
...globals.jest
|
|
151
148
|
}
|
|
152
|
-
},
|
|
149
|
+
}, // @ts-expect-error Storybook
|
|
153
150
|
plugins: {
|
|
154
151
|
...reactPlugins,
|
|
155
152
|
...storybookPlugins
|
|
156
|
-
},
|
|
153
|
+
}, // @ts-expect-error Storybook
|
|
157
154
|
rules: {
|
|
158
155
|
...reactRules
|
|
159
156
|
},
|
|
160
157
|
settings: {
|
|
161
|
-
...reactSettings
|
|
162
|
-
'import/resolver': {
|
|
163
|
-
'babel-module': {}
|
|
164
|
-
}
|
|
158
|
+
...reactSettings
|
|
165
159
|
}
|
|
166
160
|
}),
|
|
167
161
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-cogs",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.13",
|
|
4
4
|
"description": "Shinkansen Cogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"core-js": "^3.40.0",
|
|
74
74
|
"cross-env": "^7.0.3",
|
|
75
75
|
"eslint": "^9.21.0",
|
|
76
|
-
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
77
76
|
"eslint-plugin-react": "^7.37.4",
|
|
78
77
|
"eslint-plugin-storybook": "^0.11.3",
|
|
79
78
|
"globals": "^16.0.0",
|
|
@@ -100,11 +99,14 @@
|
|
|
100
99
|
},
|
|
101
100
|
"imports": {
|
|
102
101
|
"#build/paths": "./build/paths.mjs",
|
|
103
|
-
"#cogs":
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
"#cogs": {
|
|
103
|
+
"require": "./src/index.cjs",
|
|
104
|
+
"import": "./src/index.mjs"
|
|
105
|
+
},
|
|
106
|
+
"#cogs/cogs": "./src/cogs/index.cjs",
|
|
107
|
+
"#cogs/cogs/*": "./src/cogs/*/index.cjs",
|
|
106
108
|
"#cogs/common": "./src/common/index.mjs",
|
|
107
|
-
"#cogs/components/*": "./src/components/*/index.
|
|
109
|
+
"#cogs/components/*": "./src/components/*/index.cjs",
|
|
108
110
|
"#cogs/transformers/*": "./src/transformers/*/index.mjs",
|
|
109
111
|
"#stories/cogs/*": "./stories/cogs/*/index.stories.jsx",
|
|
110
112
|
"#stories/errors": "./stories/errors.mjs",
|
|
@@ -119,7 +121,7 @@
|
|
|
119
121
|
"./cogs": "./src/cogs/index.cjs",
|
|
120
122
|
"./cogs/*": "./src/cogs/*/index.cjs",
|
|
121
123
|
"./common": "./src/common/index.mjs",
|
|
122
|
-
"./components
|
|
124
|
+
"./components": "./src/components/*/index.cjs",
|
|
123
125
|
"./transformers/*": "./src/transformers/*/index.mjs"
|
|
124
126
|
}
|
|
125
127
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/checkbox/description'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/checkbox/error-message'
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
DEFAULT_HANDLE_CLICK
|
|
20
20
|
} from '#cogs/common'
|
|
21
21
|
|
|
22
|
-
import Title from '
|
|
23
|
-
import Description from '
|
|
24
|
-
import ErrorMessage from '
|
|
25
|
-
import Field from '
|
|
22
|
+
import Title from '#cogs/cogs/checkbox/title'
|
|
23
|
+
import Description from '#cogs/cogs/checkbox/description'
|
|
24
|
+
import ErrorMessage from '#cogs/cogs/checkbox/error-message'
|
|
25
|
+
import Field from '#cogs/cogs/checkbox/field'
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @extends {CheckCog<CheckProps & CheckboxProps>}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/email/description'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/email/error-message'
|
package/src/cogs/email/index.jsx
CHANGED
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
DEFAULT_HANDLE_CHANGE
|
|
18
18
|
} from '#cogs/common'
|
|
19
19
|
|
|
20
|
-
import Title from '
|
|
21
|
-
import Description from '
|
|
22
|
-
import ErrorMessage from '
|
|
23
|
-
import Field from '
|
|
20
|
+
import Title from '#cogs/cogs/email/title'
|
|
21
|
+
import Description from '#cogs/cogs/email/description'
|
|
22
|
+
import ErrorMessage from '#cogs/cogs/email/error-message'
|
|
23
|
+
import Field from '#cogs/cogs/email/field'
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @extends {ValueCog<ValueProps & EmailProps>}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/number/description'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/number/error-message'
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
DEFAULT_HANDLE_CHANGE
|
|
19
19
|
} from '#cogs/common'
|
|
20
20
|
|
|
21
|
-
import Title from '
|
|
22
|
-
import Description from '
|
|
23
|
-
import ErrorMessage from '
|
|
24
|
-
import Field from '
|
|
21
|
+
import Title from '#cogs/cogs/number/title'
|
|
22
|
+
import Description from '#cogs/cogs/number/description'
|
|
23
|
+
import ErrorMessage from '#cogs/cogs/number/error-message'
|
|
24
|
+
import Field from '#cogs/cogs/number/field'
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @extends {ValueCog<ValueProps & NumberProps>}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/password/description'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/password/error-message'
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
DEFAULT_HANDLE_CHANGE
|
|
18
18
|
} from '#cogs/common'
|
|
19
19
|
|
|
20
|
-
import Title from '
|
|
21
|
-
import Description from '
|
|
22
|
-
import ErrorMessage from '
|
|
23
|
-
import Field from '
|
|
20
|
+
import Title from '#cogs/cogs/password/title'
|
|
21
|
+
import Description from '#cogs/cogs/password/description'
|
|
22
|
+
import ErrorMessage from '#cogs/cogs/password/error-message'
|
|
23
|
+
import Field from '#cogs/cogs/password/field'
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @extends {ValueCog<ValueProps & PasswordProps>}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/radio/description'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/radio/error-message'
|
package/src/cogs/radio/index.jsx
CHANGED
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
DEFAULT_HANDLE_CLICK
|
|
20
20
|
} from '#cogs/common'
|
|
21
21
|
|
|
22
|
-
import Title from '
|
|
23
|
-
import Description from '
|
|
24
|
-
import ErrorMessage from '
|
|
25
|
-
import Field from '
|
|
22
|
+
import Title from '#cogs/cogs/radio/title'
|
|
23
|
+
import Description from '#cogs/cogs/radio/description'
|
|
24
|
+
import ErrorMessage from '#cogs/cogs/radio/error-message'
|
|
25
|
+
import Field from '#cogs/cogs/radio/field'
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @extends {CheckCog<CheckProps & RadioProps>}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/select/description'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/select/error-message'
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
DEFAULT_HANDLE_CHANGE
|
|
19
19
|
} from '#cogs/common'
|
|
20
20
|
|
|
21
|
-
import Title from '
|
|
22
|
-
import Description from '
|
|
23
|
-
import ErrorMessage from '
|
|
24
|
-
import Field from '
|
|
21
|
+
import Title from '#cogs/cogs/select/title'
|
|
22
|
+
import Description from '#cogs/cogs/select/description'
|
|
23
|
+
import ErrorMessage from '#cogs/cogs/select/error-message'
|
|
24
|
+
import Field from '#cogs/cogs/select/field'
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @extends {ValueCog<ValueProps & SelectProps>}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/text/description'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/text/error-message'
|
package/src/cogs/text/index.jsx
CHANGED
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
DEFAULT_HANDLE_CHANGE
|
|
18
18
|
} from '#cogs/common'
|
|
19
19
|
|
|
20
|
-
import Title from '
|
|
21
|
-
import Description from '
|
|
22
|
-
import ErrorMessage from '
|
|
23
|
-
import Field from '
|
|
20
|
+
import Title from '#cogs/cogs/text/title'
|
|
21
|
+
import Description from '#cogs/cogs/text/description'
|
|
22
|
+
import ErrorMessage from '#cogs/cogs/text/error-message'
|
|
23
|
+
import Field from '#cogs/cogs/text/field'
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @extends {ValueCog<ValueProps & TextProps>}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/textarea/description'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/cogs/textarea/error-message'
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
DEFAULT_HANDLE_CHANGE
|
|
18
18
|
} from '#cogs/common'
|
|
19
19
|
|
|
20
|
-
import Title from '
|
|
21
|
-
import Description from '
|
|
22
|
-
import ErrorMessage from '
|
|
23
|
-
import Field from '
|
|
20
|
+
import Title from '#cogs/cogs/textarea/title'
|
|
21
|
+
import Description from '#cogs/cogs/textarea/description'
|
|
22
|
+
import ErrorMessage from '#cogs/cogs/textarea/error-message'
|
|
23
|
+
import Field from '#cogs/cogs/textarea/field'
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @extends {ValueCog<ValueProps & TextareaProps>}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/components/common/disabled'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/components/common/readonly'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '#cogs/components/common/required'
|
package/src/index.d.cts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type CheckboxCog from '#cogs/cogs/checkbox'
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
CheckboxProps
|
|
5
|
+
} from '#cogs/cogs/checkbox'
|
|
6
|
+
|
|
7
|
+
import type EmailCog from '#cogs/cogs/email'
|
|
8
|
+
|
|
9
|
+
import type {
|
|
10
|
+
EmailProps
|
|
11
|
+
} from '#cogs/cogs/email'
|
|
12
|
+
|
|
13
|
+
import type NumberCog from '#cogs/cogs/number'
|
|
14
|
+
|
|
15
|
+
import type {
|
|
16
|
+
NumberProps
|
|
17
|
+
} from '#cogs/cogs/number'
|
|
18
|
+
|
|
19
|
+
import type PasswordCog from '#cogs/cogs/password'
|
|
20
|
+
|
|
21
|
+
import type {
|
|
22
|
+
PasswordProps
|
|
23
|
+
} from '#cogs/cogs/password'
|
|
24
|
+
|
|
25
|
+
import type RadioCog from '#cogs/cogs/radio'
|
|
26
|
+
|
|
27
|
+
import type {
|
|
28
|
+
RadioProps
|
|
29
|
+
} from '#cogs/cogs/radio'
|
|
30
|
+
|
|
31
|
+
import type SelectCog from '#cogs/cogs/select'
|
|
32
|
+
|
|
33
|
+
import type {
|
|
34
|
+
SelectProps
|
|
35
|
+
} from '#cogs/cogs/select'
|
|
36
|
+
|
|
37
|
+
import type TextCog from '#cogs/cogs/text'
|
|
38
|
+
|
|
39
|
+
import type {
|
|
40
|
+
TextProps
|
|
41
|
+
} from '#cogs/cogs/text'
|
|
42
|
+
|
|
43
|
+
import type TextareaCog from '#cogs/cogs/textarea'
|
|
44
|
+
|
|
45
|
+
import type {
|
|
46
|
+
TextareaProps
|
|
47
|
+
} from '#cogs/cogs/textarea'
|
|
48
|
+
|
|
49
|
+
export type ErrorDefinitionType = CogsTypes.ErrorDefinitionType
|
|
50
|
+
export type FieldErrorType = CogsTypes.FieldErrorType
|
|
51
|
+
|
|
52
|
+
export { default as CheckboxCog } from '#cogs/cogs/checkbox'
|
|
53
|
+
export { default as EmailCog } from '#cogs/cogs/email'
|
|
54
|
+
export { default as NumberCog } from '#cogs/cogs/number'
|
|
55
|
+
export { default as PasswordCog } from '#cogs/cogs/password'
|
|
56
|
+
export { default as RadioCog } from '#cogs/cogs/radio'
|
|
57
|
+
export { default as SelectCog } from '#cogs/cogs/select'
|
|
58
|
+
export { default as TextCog } from '#cogs/cogs/text'
|
|
59
|
+
export { default as TextareaCog } from '#cogs/cogs/textarea'
|
|
60
|
+
|
|
61
|
+
declare const cogs: {
|
|
62
|
+
CheckboxCog: CheckboxCog<CheckboxProps>
|
|
63
|
+
EmailCog: EmailCog<EmailProps>
|
|
64
|
+
NumberCog: NumberCog<NumberProps>
|
|
65
|
+
PasswordCog: PasswordCog<PasswordProps>
|
|
66
|
+
RadioCog: RadioCog<RadioProps>
|
|
67
|
+
SelectCog: SelectCog<SelectProps>
|
|
68
|
+
TextCog: TextCog<TextProps>
|
|
69
|
+
TextareaCog: TextareaCog<TextareaProps>
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export default cogs
|
package/src/index.d.mts
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
+
import type CheckboxCog from '#cogs/cogs/checkbox'
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
CheckboxProps
|
|
5
|
+
} from '#cogs/cogs/checkbox'
|
|
6
|
+
|
|
7
|
+
import type EmailCog from '#cogs/cogs/email'
|
|
8
|
+
|
|
9
|
+
import type {
|
|
10
|
+
EmailProps
|
|
11
|
+
} from '#cogs/cogs/email'
|
|
12
|
+
|
|
13
|
+
import type NumberCog from '#cogs/cogs/number'
|
|
14
|
+
|
|
15
|
+
import type {
|
|
16
|
+
NumberProps
|
|
17
|
+
} from '#cogs/cogs/number'
|
|
18
|
+
|
|
19
|
+
import type PasswordCog from '#cogs/cogs/password'
|
|
20
|
+
|
|
21
|
+
import type {
|
|
22
|
+
PasswordProps
|
|
23
|
+
} from '#cogs/cogs/password'
|
|
24
|
+
|
|
25
|
+
import type RadioCog from '#cogs/cogs/radio'
|
|
26
|
+
|
|
27
|
+
import type {
|
|
28
|
+
RadioProps
|
|
29
|
+
} from '#cogs/cogs/radio'
|
|
30
|
+
|
|
31
|
+
import type SelectCog from '#cogs/cogs/select'
|
|
32
|
+
|
|
33
|
+
import type {
|
|
34
|
+
SelectProps
|
|
35
|
+
} from '#cogs/cogs/select'
|
|
36
|
+
|
|
37
|
+
import type TextCog from '#cogs/cogs/text'
|
|
38
|
+
|
|
39
|
+
import type {
|
|
40
|
+
TextProps
|
|
41
|
+
} from '#cogs/cogs/text'
|
|
42
|
+
|
|
43
|
+
import type TextareaCog from '#cogs/cogs/textarea'
|
|
44
|
+
|
|
45
|
+
import type {
|
|
46
|
+
TextareaProps
|
|
47
|
+
} from '#cogs/cogs/textarea'
|
|
48
|
+
|
|
1
49
|
export type ErrorDefinitionType = CogsTypes.ErrorDefinitionType
|
|
2
50
|
export type FieldErrorType = CogsTypes.FieldErrorType
|
|
3
51
|
|
|
@@ -9,3 +57,16 @@ export { default as RadioCog } from '#cogs/cogs/radio'
|
|
|
9
57
|
export { default as SelectCog } from '#cogs/cogs/select'
|
|
10
58
|
export { default as TextCog } from '#cogs/cogs/text'
|
|
11
59
|
export { default as TextareaCog } from '#cogs/cogs/textarea'
|
|
60
|
+
|
|
61
|
+
declare const cogs: {
|
|
62
|
+
CheckboxCog: CheckboxCog<CheckboxProps>
|
|
63
|
+
EmailCog: EmailCog<EmailProps>
|
|
64
|
+
NumberCog: NumberCog<NumberProps>
|
|
65
|
+
PasswordCog: PasswordCog<PasswordProps>
|
|
66
|
+
RadioCog: RadioCog<RadioProps>
|
|
67
|
+
SelectCog: SelectCog<SelectProps>
|
|
68
|
+
TextCog: TextCog<TextProps>
|
|
69
|
+
TextareaCog: TextareaCog<TextareaProps>
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export default cogs
|