shinkansen-cogs 1.8.12 → 1.8.14
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 +6 -10
- package/src/index.d.cts +61 -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.14",
|
|
4
4
|
"description": "Shinkansen Cogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"Karakuri",
|
|
11
11
|
"React"
|
|
12
12
|
],
|
|
13
|
-
"main": "./src/index.
|
|
13
|
+
"main": "./src/index.mjs",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"types": "./index.d.mts",
|
|
16
16
|
"author": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@babel/preset-react": "^7.26.3",
|
|
55
55
|
"@babel/register": "^7.25.9",
|
|
56
56
|
"@modernpoacher/design-system": "1.1.30",
|
|
57
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
58
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
57
|
+
"@sequencemedia/eslint-config-standard": "^0.2.36",
|
|
58
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.51",
|
|
59
59
|
"@storybook/addon-actions": "7.6.20",
|
|
60
60
|
"@storybook/addon-essentials": "7.6.20",
|
|
61
61
|
"@storybook/addon-links": "7.6.20",
|
|
@@ -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",
|
|
@@ -107,10 +106,7 @@
|
|
|
107
106
|
"#cogs/cogs": "./src/cogs/index.cjs",
|
|
108
107
|
"#cogs/cogs/*": "./src/cogs/*/index.cjs",
|
|
109
108
|
"#cogs/common": "./src/common/index.mjs",
|
|
110
|
-
"#cogs/components/*":
|
|
111
|
-
"require": "./src/components/*/index.cjs",
|
|
112
|
-
"import": "./src/components/*/index.mjs"
|
|
113
|
-
},
|
|
109
|
+
"#cogs/components/*": "./src/components/*/index.cjs",
|
|
114
110
|
"#cogs/transformers/*": "./src/transformers/*/index.mjs",
|
|
115
111
|
"#stories/cogs/*": "./stories/cogs/*/index.stories.jsx",
|
|
116
112
|
"#stories/errors": "./stories/errors.mjs",
|
|
@@ -125,7 +121,7 @@
|
|
|
125
121
|
"./cogs": "./src/cogs/index.cjs",
|
|
126
122
|
"./cogs/*": "./src/cogs/*/index.cjs",
|
|
127
123
|
"./common": "./src/common/index.mjs",
|
|
128
|
-
"./components
|
|
124
|
+
"./components": "./src/components/*/index.cjs",
|
|
129
125
|
"./transformers/*": "./src/transformers/*/index.mjs"
|
|
130
126
|
}
|
|
131
127
|
}
|
package/src/index.d.cts
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
|
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
|