shinkansen-cogs 1.8.3 → 1.8.5
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 +10 -10
- package/package.json +4 -4
- package/src/cogs/checkbox/field/index.d.mts +2 -3
- package/src/cogs/checkbox/index.d.mts +2 -3
- package/src/cogs/checkbox/title/index.d.mts +2 -3
- package/src/cogs/email/field/index.d.mts +2 -3
- package/src/cogs/email/index.d.mts +2 -3
- package/src/cogs/email/title/index.d.mts +2 -3
- package/src/cogs/index.d.mts +3 -7
- package/src/cogs/number/field/index.d.mts +2 -3
- package/src/cogs/number/index.d.mts +2 -3
- package/src/cogs/number/title/index.d.mts +2 -3
- package/src/cogs/password/field/index.d.mts +2 -3
- package/src/cogs/password/index.d.mts +2 -3
- package/src/cogs/password/title/index.d.mts +2 -3
- package/src/cogs/radio/field/index.d.mts +2 -3
- package/src/cogs/radio/index.d.mts +2 -3
- package/src/cogs/radio/title/index.d.mts +2 -3
- package/src/cogs/select/field/index.d.mts +2 -3
- package/src/cogs/select/index.d.mts +2 -3
- package/src/cogs/select/title/index.d.mts +2 -3
- package/src/cogs/text/field/index.d.mts +2 -3
- package/src/cogs/text/index.d.mts +2 -3
- package/src/cogs/text/title/index.d.mts +2 -3
- package/src/cogs/textarea/field/index.d.mts +2 -3
- package/src/cogs/textarea/index.d.mts +2 -3
- package/src/cogs/textarea/title/index.d.mts +2 -3
- package/src/components/common/text-content/index.d.mts +2 -3
- package/src/components/description/index.d.mts +2 -3
- package/src/components/error-message/index.d.mts +4 -7
- package/src/components/field/index.d.mts +3 -7
- package/src/components/title/index.d.mts +2 -3
- package/src/index.d.mts +3 -3
- package/src/transformers/error-message/index.d.mts +5 -4
package/index.d.mts
CHANGED
|
@@ -65,14 +65,14 @@ declare global {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export interface ValueProps extends FieldProps {
|
|
68
|
-
value?: string
|
|
68
|
+
value?: string
|
|
69
69
|
defaultValue?: string
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export interface CheckProps extends FieldProps {
|
|
73
|
-
value?: string
|
|
74
|
-
checked?: boolean
|
|
75
|
-
defaultChecked?: boolean
|
|
73
|
+
value?: string
|
|
74
|
+
checked?: boolean
|
|
75
|
+
defaultChecked?: boolean
|
|
76
76
|
onClick: OnClickType
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -165,22 +165,22 @@ declare global {
|
|
|
165
165
|
required?: boolean
|
|
166
166
|
disabled?: boolean
|
|
167
167
|
readOnly?: boolean
|
|
168
|
-
tabIndex?: number
|
|
169
|
-
accessKey?: string
|
|
168
|
+
tabIndex?: number
|
|
169
|
+
accessKey?: string
|
|
170
170
|
placeholder?: string
|
|
171
171
|
onChange?: OnChangeType
|
|
172
172
|
fieldRef?: React.RefObject<any> // eslint-disable-line @typescript-eslint/no-explicit-any -- Simplicity
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
export interface ValueProps extends CogProps {
|
|
176
|
-
value?: string
|
|
176
|
+
value?: string
|
|
177
177
|
defaultValue?: string
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
export interface CheckProps extends CogProps {
|
|
181
|
-
value?: string
|
|
182
|
-
checked?: boolean
|
|
183
|
-
defaultChecked?: boolean
|
|
181
|
+
value?: string
|
|
182
|
+
checked?: boolean
|
|
183
|
+
defaultChecked?: boolean
|
|
184
184
|
onClick: OnClickType
|
|
185
185
|
}
|
|
186
186
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-cogs",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.5",
|
|
4
4
|
"description": "Shinkansen Cogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"@babel/preset-env": "^7.26.9",
|
|
54
54
|
"@babel/preset-react": "^7.26.3",
|
|
55
55
|
"@babel/register": "^7.25.9",
|
|
56
|
-
"@modernpoacher/design-system": "1.1.
|
|
57
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
58
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
56
|
+
"@modernpoacher/design-system": "1.1.29",
|
|
57
|
+
"@sequencemedia/eslint-config-standard": "^0.2.31",
|
|
58
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.46",
|
|
59
59
|
"@storybook/addon-actions": "7.6.20",
|
|
60
60
|
"@storybook/addon-essentials": "7.6.20",
|
|
61
61
|
"@storybook/addon-links": "7.6.20",
|
|
@@ -3,13 +3,12 @@ declare module '#cogs/cogs/checkbox/field' {
|
|
|
3
3
|
CheckField
|
|
4
4
|
} from '#cogs/components/field'
|
|
5
5
|
|
|
6
|
-
type CheckboxProps = CogsTypes.Components.Field.Checkbox.CheckboxProps
|
|
6
|
+
export type CheckboxProps = CogsTypes.Components.Field.Checkbox.CheckboxProps
|
|
7
7
|
|
|
8
8
|
export default class CheckboxField<P extends CheckboxProps> extends CheckField<P> {}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare module 'shinkansen-cogs/cogs/checkbox/field' {
|
|
12
|
-
export type CheckboxProps = CogsTypes.Components.Field.Checkbox.CheckboxProps
|
|
13
|
-
|
|
14
12
|
export { default } from '#cogs/cogs/checkbox/field'
|
|
13
|
+
export * from '#cogs/cogs/checkbox/field'
|
|
15
14
|
}
|
|
@@ -3,7 +3,7 @@ declare module '#cogs/cogs/checkbox' {
|
|
|
3
3
|
CheckCog
|
|
4
4
|
} from '#cogs/cogs'
|
|
5
5
|
|
|
6
|
-
type CheckboxProps = CogsTypes.Cogs.Cog.Checkbox.CheckboxProps
|
|
6
|
+
export type CheckboxProps = CogsTypes.Cogs.Cog.Checkbox.CheckboxProps
|
|
7
7
|
|
|
8
8
|
export default class CheckboxCog<P extends CheckboxProps> extends CheckCog<P> {
|
|
9
9
|
handleChange (
|
|
@@ -21,7 +21,6 @@ declare module '#cogs/cogs/checkbox' {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
declare module 'shinkansen-cogs/cogs/checkbox' {
|
|
24
|
-
export type CheckboxProps = CogsTypes.Cogs.Cog.Checkbox.CheckboxProps
|
|
25
|
-
|
|
26
24
|
export { default } from '#cogs/cogs/checkbox'
|
|
25
|
+
export * from '#cogs/cogs/checkbox'
|
|
27
26
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/cogs/checkbox/title' {
|
|
2
2
|
import Title from '#cogs/components/title'
|
|
3
3
|
|
|
4
|
-
type CheckboxProps = CogsTypes.Components.Title.Checkbox.CheckboxProps
|
|
4
|
+
export type CheckboxProps = CogsTypes.Components.Title.Checkbox.CheckboxProps
|
|
5
5
|
|
|
6
6
|
export default class CheckboxTitle<P extends CheckboxProps> extends Title<P> {}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module 'shinkansen-cogs/cogs/checkbox/title' {
|
|
10
|
-
export type CheckboxProps = CogsTypes.Components.Title.Checkbox.CheckboxProps
|
|
11
|
-
|
|
12
10
|
export { default } from '#cogs/cogs/checkbox/title'
|
|
11
|
+
export * from '#cogs/cogs/checkbox/title'
|
|
13
12
|
}
|
|
@@ -3,13 +3,12 @@ declare module '#cogs/cogs/email/field' {
|
|
|
3
3
|
ValueField
|
|
4
4
|
} from '#cogs/components/field'
|
|
5
5
|
|
|
6
|
-
type EmailProps = CogsTypes.Components.Field.Email.EmailProps
|
|
6
|
+
export type EmailProps = CogsTypes.Components.Field.Email.EmailProps
|
|
7
7
|
|
|
8
8
|
export default class EmailField<P extends EmailProps> extends ValueField<P> {}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare module 'shinkansen-cogs/cogs/email/field' {
|
|
12
|
-
export type EmailProps = CogsTypes.Components.Field.Email.EmailProps
|
|
13
|
-
|
|
14
12
|
export { default } from '#cogs/cogs/email/field'
|
|
13
|
+
export * from '#cogs/cogs/email/field'
|
|
15
14
|
}
|
|
@@ -3,7 +3,7 @@ declare module '#cogs/cogs/email' {
|
|
|
3
3
|
ValueCog
|
|
4
4
|
} from '#cogs/cogs'
|
|
5
5
|
|
|
6
|
-
type EmailProps = CogsTypes.Cogs.Cog.Email.EmailProps
|
|
6
|
+
export type EmailProps = CogsTypes.Cogs.Cog.Email.EmailProps
|
|
7
7
|
|
|
8
8
|
export default class EmailCog<P extends EmailProps> extends ValueCog<P> {
|
|
9
9
|
handleChange (
|
|
@@ -14,7 +14,6 @@ declare module '#cogs/cogs/email' {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare module 'shinkansen-cogs/cogs/email' {
|
|
17
|
-
export type EmailProps = CogsTypes.Cogs.Cog.Email.EmailProps
|
|
18
|
-
|
|
19
17
|
export { default } from '#cogs/cogs/email'
|
|
18
|
+
export * from '#cogs/cogs/email'
|
|
20
19
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/cogs/email/title' {
|
|
2
2
|
import Title from '#cogs/components/title'
|
|
3
3
|
|
|
4
|
-
type EmailProps = CogsTypes.Components.Title.Email.EmailProps
|
|
4
|
+
export type EmailProps = CogsTypes.Components.Title.Email.EmailProps
|
|
5
5
|
|
|
6
6
|
export default class EmailTitle<P extends EmailProps> extends Title<P> {}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module 'shinkansen-cogs/cogs/email/title' {
|
|
10
|
-
export type EmailProps = CogsTypes.Components.Title.Email.EmailProps
|
|
11
|
-
|
|
12
10
|
export { default } from '#cogs/cogs/email/title'
|
|
11
|
+
export * from '#cogs/cogs/email/title'
|
|
13
12
|
}
|
package/src/cogs/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare module '#cogs/cogs' {
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
-
type CogProps = CogsTypes.Cogs.Cog.CogProps
|
|
5
|
-
type ValueProps = CogsTypes.Cogs.Cog.ValueProps
|
|
6
|
-
type CheckProps = CogsTypes.Cogs.Cog.CheckProps
|
|
4
|
+
export type CogProps = CogsTypes.Cogs.Cog.CogProps
|
|
5
|
+
export type ValueProps = CogsTypes.Cogs.Cog.ValueProps
|
|
6
|
+
export type CheckProps = CogsTypes.Cogs.Cog.CheckProps
|
|
7
7
|
|
|
8
8
|
export default class Cog<P extends CogProps> extends React.Component<P> {
|
|
9
9
|
static propTypes: Record<PropertyKey, unknown>
|
|
@@ -33,10 +33,6 @@ declare module '#cogs/cogs' {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare module 'shinkansen-cogs/cogs' {
|
|
36
|
-
export type CogProps = CogsTypes.Cogs.Cog.CogProps
|
|
37
|
-
export type ValueProps = CogsTypes.Cogs.Cog.ValueProps
|
|
38
|
-
export type CheckProps = CogsTypes.Cogs.Cog.CheckProps
|
|
39
|
-
|
|
40
36
|
export { default } from '#cogs/cogs'
|
|
41
37
|
export * from '#cogs/cogs'
|
|
42
38
|
}
|
|
@@ -3,13 +3,12 @@ declare module '#cogs/cogs/number/field' {
|
|
|
3
3
|
ValueField
|
|
4
4
|
} from '#cogs/components/field'
|
|
5
5
|
|
|
6
|
-
type NumberProps = CogsTypes.Components.Field.Number.NumberProps
|
|
6
|
+
export type NumberProps = CogsTypes.Components.Field.Number.NumberProps
|
|
7
7
|
|
|
8
8
|
export default class NumberField<P extends NumberProps> extends ValueField<P> {}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare module 'shinkansen-cogs/cogs/number/field' {
|
|
12
|
-
export type NumberProps = CogsTypes.Components.Field.Number.NumberProps
|
|
13
|
-
|
|
14
12
|
export { default } from '#cogs/cogs/number/field'
|
|
13
|
+
export * from '#cogs/cogs/number/field'
|
|
15
14
|
}
|
|
@@ -3,7 +3,7 @@ declare module '#cogs/cogs/number' {
|
|
|
3
3
|
ValueCog
|
|
4
4
|
} from '#cogs/cogs'
|
|
5
5
|
|
|
6
|
-
type NumberProps = CogsTypes.Cogs.Cog.Number.NumberProps
|
|
6
|
+
export type NumberProps = CogsTypes.Cogs.Cog.Number.NumberProps
|
|
7
7
|
|
|
8
8
|
export default class NumberCog<P extends NumberProps> extends ValueCog<Omit<Omit<P, 'value'>, 'defaultValue'>> {
|
|
9
9
|
handleChange (
|
|
@@ -14,7 +14,6 @@ declare module '#cogs/cogs/number' {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare module 'shinkansen-cogs/cogs/number' {
|
|
17
|
-
export type NumberProps = CogsTypes.Cogs.Cog.Number.NumberProps
|
|
18
|
-
|
|
19
17
|
export { default } from '#cogs/cogs/number'
|
|
18
|
+
export * from '#cogs/cogs/number'
|
|
20
19
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/cogs/number/title' {
|
|
2
2
|
import Title from '#cogs/components/title'
|
|
3
3
|
|
|
4
|
-
type NumberProps = CogsTypes.Components.Title.Number.NumberProps
|
|
4
|
+
export type NumberProps = CogsTypes.Components.Title.Number.NumberProps
|
|
5
5
|
|
|
6
6
|
export default class NumberTitle<P extends NumberProps> extends Title<P> {}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module 'shinkansen-cogs/cogs/number/title' {
|
|
10
|
-
export type NumberProps = CogsTypes.Components.Title.Number.NumberProps
|
|
11
|
-
|
|
12
10
|
export { default } from '#cogs/cogs/number/title'
|
|
11
|
+
export * from '#cogs/cogs/number/title'
|
|
13
12
|
}
|
|
@@ -3,13 +3,12 @@ declare module '#cogs/cogs/password/field' {
|
|
|
3
3
|
ValueField
|
|
4
4
|
} from '#cogs/components/field'
|
|
5
5
|
|
|
6
|
-
type PasswordProps = CogsTypes.Components.Field.Password.PasswordProps
|
|
6
|
+
export type PasswordProps = CogsTypes.Components.Field.Password.PasswordProps
|
|
7
7
|
|
|
8
8
|
export default class PasswordField<P extends PasswordProps> extends ValueField<P> {}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare module 'shinkansen-cogs/cogs/password/field' {
|
|
12
|
-
export type PasswordProps = CogsTypes.Components.Field.Password.PasswordProps
|
|
13
|
-
|
|
14
12
|
export { default } from '#cogs/cogs/password/field'
|
|
13
|
+
export * from '#cogs/cogs/password/field'
|
|
15
14
|
}
|
|
@@ -3,7 +3,7 @@ declare module '#cogs/cogs/password' {
|
|
|
3
3
|
ValueCog
|
|
4
4
|
} from '#cogs/cogs'
|
|
5
5
|
|
|
6
|
-
type PasswordProps = CogsTypes.Cogs.Cog.Password.PasswordProps
|
|
6
|
+
export type PasswordProps = CogsTypes.Cogs.Cog.Password.PasswordProps
|
|
7
7
|
|
|
8
8
|
export default class PasswordCog<P extends PasswordProps> extends ValueCog<P> {
|
|
9
9
|
handleChange (
|
|
@@ -14,7 +14,6 @@ declare module '#cogs/cogs/password' {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare module 'shinkansen-cogs/cogs/password' {
|
|
17
|
-
export type PasswordProps = CogsTypes.Cogs.Cog.Password.PasswordProps
|
|
18
|
-
|
|
19
17
|
export { default } from '#cogs/cogs/password'
|
|
18
|
+
export * from '#cogs/cogs/password'
|
|
20
19
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/cogs/password/title' {
|
|
2
2
|
import Title from '#cogs/components/title'
|
|
3
3
|
|
|
4
|
-
type PasswordProps = CogsTypes.Components.Title.Password.PasswordProps
|
|
4
|
+
export type PasswordProps = CogsTypes.Components.Title.Password.PasswordProps
|
|
5
5
|
|
|
6
6
|
export default class PasswordTitle<P extends PasswordProps> extends Title<P> {}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module 'shinkansen-cogs/cogs/password/title' {
|
|
10
|
-
export type PasswordProps = CogsTypes.Components.Title.Password.PasswordProps
|
|
11
|
-
|
|
12
10
|
export { default } from '#cogs/cogs/password/title'
|
|
11
|
+
export * from '#cogs/cogs/password/title'
|
|
13
12
|
}
|
|
@@ -3,13 +3,12 @@ declare module '#cogs/cogs/radio/field' {
|
|
|
3
3
|
CheckField
|
|
4
4
|
} from '#cogs/components/field'
|
|
5
5
|
|
|
6
|
-
type RadioProps = CogsTypes.Components.Field.Radio.RadioProps
|
|
6
|
+
export type RadioProps = CogsTypes.Components.Field.Radio.RadioProps
|
|
7
7
|
|
|
8
8
|
export default class RadioField<P extends RadioProps> extends CheckField<P> {}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare module 'shinkansen-cogs/cogs/radio/field' {
|
|
12
|
-
export type RadioProps = CogsTypes.Components.Field.Radio.RadioProps
|
|
13
|
-
|
|
14
12
|
export { default } from '#cogs/cogs/radio/field'
|
|
13
|
+
export * from '#cogs/cogs/radio/field'
|
|
15
14
|
}
|
|
@@ -3,7 +3,7 @@ declare module '#cogs/cogs/radio' {
|
|
|
3
3
|
CheckCog
|
|
4
4
|
} from '#cogs/cogs'
|
|
5
5
|
|
|
6
|
-
type RadioProps = CogsTypes.Cogs.Cog.Radio.RadioProps
|
|
6
|
+
export type RadioProps = CogsTypes.Cogs.Cog.Radio.RadioProps
|
|
7
7
|
|
|
8
8
|
export default class RadioCog<P extends RadioProps> extends CheckCog<P> {
|
|
9
9
|
handleChange (
|
|
@@ -21,7 +21,6 @@ declare module '#cogs/cogs/radio' {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
declare module 'shinkansen-cogs/cogs/radio' {
|
|
24
|
-
export type RadioProps = CogsTypes.Cogs.Cog.Radio.RadioProps
|
|
25
|
-
|
|
26
24
|
export { default } from '#cogs/cogs/radio'
|
|
25
|
+
export * from '#cogs/cogs/radio'
|
|
27
26
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/cogs/radio/title' {
|
|
2
2
|
import Title from '#cogs/components/title'
|
|
3
3
|
|
|
4
|
-
type RadioProps = CogsTypes.Components.Title.Radio.RadioProps
|
|
4
|
+
export type RadioProps = CogsTypes.Components.Title.Radio.RadioProps
|
|
5
5
|
|
|
6
6
|
export default class RadioTitle<P extends RadioProps> extends Title<P> {}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module 'shinkansen-cogs/cogs/radio/title' {
|
|
10
|
-
export type RadioProps = CogsTypes.Components.Title.Radio.RadioProps
|
|
11
|
-
|
|
12
10
|
export { default } from '#cogs/cogs/radio/title'
|
|
11
|
+
export * from '#cogs/cogs/radio/title'
|
|
13
12
|
}
|
|
@@ -3,13 +3,12 @@ declare module '#cogs/cogs/select/field' {
|
|
|
3
3
|
ValueField
|
|
4
4
|
} from '#cogs/components/field'
|
|
5
5
|
|
|
6
|
-
type SelectProps = CogsTypes.Components.Field.Select.SelectProps
|
|
6
|
+
export type SelectProps = CogsTypes.Components.Field.Select.SelectProps
|
|
7
7
|
|
|
8
8
|
export default class SelectField<P extends SelectProps> extends ValueField<P> {}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare module 'shinkansen-cogs/cogs/select/field' {
|
|
12
|
-
export type SelectProps = CogsTypes.Components.Field.Select.SelectProps
|
|
13
|
-
|
|
14
12
|
export { default } from '#cogs/cogs/select/field'
|
|
13
|
+
export * from '#cogs/cogs/select/field'
|
|
15
14
|
}
|
|
@@ -3,7 +3,7 @@ declare module '#cogs/cogs/select' {
|
|
|
3
3
|
ValueCog
|
|
4
4
|
} from '#cogs/cogs'
|
|
5
5
|
|
|
6
|
-
type SelectProps = CogsTypes.Cogs.Cog.Select.SelectProps
|
|
6
|
+
export type SelectProps = CogsTypes.Cogs.Cog.Select.SelectProps
|
|
7
7
|
|
|
8
8
|
export default class SelectCog<P extends SelectProps> extends ValueCog<Omit<Omit<P, 'value'>, 'defaultValue'>> {
|
|
9
9
|
handleChange (
|
|
@@ -14,7 +14,6 @@ declare module '#cogs/cogs/select' {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare module 'shinkansen-cogs/cogs/select' {
|
|
17
|
-
export type SelectProps = CogsTypes.Cogs.Cog.Select.SelectProps
|
|
18
|
-
|
|
19
17
|
export { default } from '#cogs/cogs/select'
|
|
18
|
+
export * from '#cogs/cogs/select'
|
|
20
19
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/cogs/select/title' {
|
|
2
2
|
import Title from '#cogs/components/title'
|
|
3
3
|
|
|
4
|
-
type SelectProps = CogsTypes.Components.Title.Select.SelectProps
|
|
4
|
+
export type SelectProps = CogsTypes.Components.Title.Select.SelectProps
|
|
5
5
|
|
|
6
6
|
export default class SelectTitle<P extends SelectProps> extends Title<P> {}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module 'shinkansen-cogs/cogs/select/title' {
|
|
10
|
-
export type SelectProps = CogsTypes.Components.Title.Select.SelectProps
|
|
11
|
-
|
|
12
10
|
export { default } from '#cogs/cogs/select/title'
|
|
11
|
+
export * from '#cogs/cogs/select/title'
|
|
13
12
|
}
|
|
@@ -3,13 +3,12 @@ declare module '#cogs/cogs/text/field' {
|
|
|
3
3
|
ValueField
|
|
4
4
|
} from '#cogs/components/field'
|
|
5
5
|
|
|
6
|
-
type TextProps = CogsTypes.Components.Field.Text.TextProps
|
|
6
|
+
export type TextProps = CogsTypes.Components.Field.Text.TextProps
|
|
7
7
|
|
|
8
8
|
export default class TextField<P extends TextProps> extends ValueField<P> {}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare module 'shinkansen-cogs/cogs/text/field' {
|
|
12
|
-
export type TextProps = CogsTypes.Components.Field.Text.TextProps
|
|
13
|
-
|
|
14
12
|
export { default } from '#cogs/cogs/text/field'
|
|
13
|
+
export * from '#cogs/cogs/text/field'
|
|
15
14
|
}
|
|
@@ -3,7 +3,7 @@ declare module '#cogs/cogs/text' {
|
|
|
3
3
|
ValueCog
|
|
4
4
|
} from '#cogs/cogs'
|
|
5
5
|
|
|
6
|
-
type TextProps = CogsTypes.Cogs.Cog.Text.TextProps
|
|
6
|
+
export type TextProps = CogsTypes.Cogs.Cog.Text.TextProps
|
|
7
7
|
|
|
8
8
|
export default class TextCog<P extends TextProps> extends ValueCog<P> {
|
|
9
9
|
handleChange (
|
|
@@ -14,7 +14,6 @@ declare module '#cogs/cogs/text' {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare module 'shinkansen-cogs/cogs/text' {
|
|
17
|
-
export type TextProps = CogsTypes.Cogs.Cog.Text.TextProps
|
|
18
|
-
|
|
19
17
|
export { default } from '#cogs/cogs/text'
|
|
18
|
+
export * from '#cogs/cogs/text'
|
|
20
19
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/cogs/text/title' {
|
|
2
2
|
import Title from '#cogs/components/title'
|
|
3
3
|
|
|
4
|
-
type TextProps = CogsTypes.Components.Title.Text.TextProps
|
|
4
|
+
export type TextProps = CogsTypes.Components.Title.Text.TextProps
|
|
5
5
|
|
|
6
6
|
export default class TextTitle<P extends TextProps> extends Title<P> {}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module 'shinkansen-cogs/cogs/text/title' {
|
|
10
|
-
export type TextProps = CogsTypes.Components.Title.Text.TextProps
|
|
11
|
-
|
|
12
10
|
export { default } from '#cogs/cogs/text/title'
|
|
11
|
+
export * from '#cogs/cogs/text/title'
|
|
13
12
|
}
|
|
@@ -3,13 +3,12 @@ declare module '#cogs/cogs/textarea/field' {
|
|
|
3
3
|
ValueField
|
|
4
4
|
} from '#cogs/components/field'
|
|
5
5
|
|
|
6
|
-
type TextareaProps = CogsTypes.Components.Field.Textarea.TextareaProps
|
|
6
|
+
export type TextareaProps = CogsTypes.Components.Field.Textarea.TextareaProps
|
|
7
7
|
|
|
8
8
|
export default class TextareaField<P extends TextareaProps> extends ValueField<P> {}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare module 'shinkansen-cogs/cogs/textarea/field' {
|
|
12
|
-
export type TextareaProps = CogsTypes.Components.Field.Textarea.TextareaProps
|
|
13
|
-
|
|
14
12
|
export { default } from '#cogs/cogs/textarea/field'
|
|
13
|
+
export * from '#cogs/cogs/textarea/field'
|
|
15
14
|
}
|
|
@@ -3,7 +3,7 @@ declare module '#cogs/cogs/textarea' {
|
|
|
3
3
|
ValueCog
|
|
4
4
|
} from '#cogs/cogs'
|
|
5
5
|
|
|
6
|
-
type TextareaProps = CogsTypes.Cogs.Cog.Textarea.TextareaProps
|
|
6
|
+
export type TextareaProps = CogsTypes.Cogs.Cog.Textarea.TextareaProps
|
|
7
7
|
|
|
8
8
|
export default class TextareaCog<P extends TextareaProps> extends ValueCog<P> {
|
|
9
9
|
handleChange (
|
|
@@ -14,7 +14,6 @@ declare module '#cogs/cogs/textarea' {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare module 'shinkansen-cogs/cogs/textarea' {
|
|
17
|
-
export type TextareaProps = CogsTypes.Cogs.Cog.Textarea.TextareaProps
|
|
18
|
-
|
|
19
17
|
export { default } from '#cogs/cogs/textarea'
|
|
18
|
+
export * from '#cogs/cogs/textarea'
|
|
20
19
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/cogs/textarea/title' {
|
|
2
2
|
import Title from '#cogs/components/title'
|
|
3
3
|
|
|
4
|
-
type TextareaProps = CogsTypes.Components.Title.Textarea.TextareaProps
|
|
4
|
+
export type TextareaProps = CogsTypes.Components.Title.Textarea.TextareaProps
|
|
5
5
|
|
|
6
6
|
export default class TextareaTitle<P extends TextareaProps> extends Title<P> {}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module 'shinkansen-cogs/cogs/textarea/title' {
|
|
10
|
-
export type TextareaProps = CogsTypes.Components.Title.Textarea.TextareaProps
|
|
11
|
-
|
|
12
10
|
export { default } from '#cogs/cogs/textarea/title'
|
|
11
|
+
export * from '#cogs/cogs/textarea/title'
|
|
13
12
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/components/common/text-content' {
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
|
-
type TextContentProps = CogsTypes.Components.Common.TextContent.TextContentProps
|
|
4
|
+
export type TextContentProps = CogsTypes.Components.Common.TextContent.TextContentProps
|
|
5
5
|
|
|
6
6
|
export default function TextContent (props: TextContentProps): React.JSX.Element | null
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module 'shinkansen-cogs/components/common/text-content' {
|
|
10
|
-
export type TextContentProps = CogsTypes.Components.Common.TextContent.TextContentProps
|
|
11
|
-
|
|
12
10
|
export { default } from '#cogs/components/common/text-content'
|
|
11
|
+
export * from '#cogs/components/common/text-content'
|
|
13
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module '#cogs/components/description' {
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
-
type DescriptionProps = CogsTypes.Components.Description.DescriptionProps
|
|
4
|
+
export type DescriptionProps = CogsTypes.Components.Description.DescriptionProps
|
|
5
5
|
|
|
6
6
|
export default class Description extends React.Component<DescriptionProps> {
|
|
7
7
|
static propTypes: object
|
|
@@ -13,7 +13,6 @@ declare module '#cogs/components/description' {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
declare module 'shinkansen-cogs/components/description' {
|
|
16
|
-
export type DescriptionProps = CogsTypes.Components.Description.DescriptionProps
|
|
17
|
-
|
|
18
16
|
export { default } from '#cogs/components/description'
|
|
17
|
+
export * from '#cogs/components/description'
|
|
19
18
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare module '#cogs/components/error-message' {
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
-
type ErrorDefinitionType = CogsTypes.ErrorDefinitionType
|
|
5
|
-
type ErrorMessageProps = CogsTypes.Components.ErrorMessage.ErrorMessageProps
|
|
6
|
-
type ErrorMessageState = CogsTypes.Components.ErrorMessage.ErrorMessageState
|
|
4
|
+
export type ErrorDefinitionType = CogsTypes.ErrorDefinitionType
|
|
5
|
+
export type ErrorMessageProps = CogsTypes.Components.ErrorMessage.ErrorMessageProps
|
|
6
|
+
export type ErrorMessageState = CogsTypes.Components.ErrorMessage.ErrorMessageState
|
|
7
7
|
|
|
8
8
|
export default class ErrorMessage extends React.Component<ErrorMessageProps, ErrorMessageState> {
|
|
9
9
|
static propTypes: object
|
|
@@ -23,9 +23,6 @@ declare module '#cogs/components/error-message' {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
declare module 'shinkansen-cogs/components/error-message' {
|
|
26
|
-
export type ErrorDefinitionType = CogsTypes.ErrorDefinitionType
|
|
27
|
-
export type ErrorMessageProps = CogsTypes.Components.ErrorMessage.ErrorMessageProps
|
|
28
|
-
export type ErrorMessageState = CogsTypes.Components.ErrorMessage.ErrorMessageState
|
|
29
|
-
|
|
30
26
|
export { default } from '#cogs/components/error-message'
|
|
27
|
+
export * from '#cogs/components/error-message'
|
|
31
28
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare module '#cogs/components/field' {
|
|
2
2
|
import React, { type ChangeEvent, type MouseEvent } from 'react'
|
|
3
3
|
|
|
4
|
-
type FieldProps = CogsTypes.Components.Field.FieldProps
|
|
5
|
-
type ValueProps = CogsTypes.Components.Field.ValueProps
|
|
6
|
-
type CheckProps = CogsTypes.Components.Field.CheckProps
|
|
4
|
+
export type FieldProps = CogsTypes.Components.Field.FieldProps
|
|
5
|
+
export type ValueProps = CogsTypes.Components.Field.ValueProps
|
|
6
|
+
export type CheckProps = CogsTypes.Components.Field.CheckProps
|
|
7
7
|
|
|
8
8
|
export default class Field<P extends FieldProps> extends React.Component<P> {
|
|
9
9
|
static propTypes: object
|
|
@@ -29,10 +29,6 @@ declare module '#cogs/components/field' {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
declare module 'shinkansen-cogs/components/field' {
|
|
32
|
-
export type FieldProps = CogsTypes.Components.Field.FieldProps
|
|
33
|
-
export type ValueProps = CogsTypes.Components.Field.ValueProps
|
|
34
|
-
export type CheckProps = CogsTypes.Components.Field.CheckProps
|
|
35
|
-
|
|
36
32
|
export { default } from '#cogs/components/field'
|
|
37
33
|
export * from '#cogs/components/field'
|
|
38
34
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module '#cogs/components/title' {
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
-
type TitleProps = CogsTypes.Components.Title.TitleProps
|
|
4
|
+
export type TitleProps = CogsTypes.Components.Title.TitleProps
|
|
5
5
|
|
|
6
6
|
export default class Title<P extends TitleProps> extends React.Component<P> {
|
|
7
7
|
static propTypes: object
|
|
@@ -25,7 +25,6 @@ declare module '#cogs/components/title' {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
declare module 'shinkansen-cogs/components/title' {
|
|
28
|
-
export type TitleProps = CogsTypes.Components.Title.TitleProps
|
|
29
|
-
|
|
30
28
|
export { default } from '#cogs/components/title'
|
|
29
|
+
export * from '#cogs/components/title'
|
|
31
30
|
}
|
package/src/index.d.mts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
declare module '#cogs' {
|
|
2
|
+
export type ErrorDefinitionType = CogsTypes.ErrorDefinitionType
|
|
3
|
+
export type FieldErrorType = CogsTypes.FieldErrorType
|
|
4
|
+
|
|
2
5
|
export { default as CheckboxCog } from '#cogs/cogs/checkbox'
|
|
3
6
|
export { default as EmailCog } from '#cogs/cogs/email'
|
|
4
7
|
export { default as NumberCog } from '#cogs/cogs/number'
|
|
@@ -10,8 +13,5 @@ declare module '#cogs' {
|
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
declare module 'shinkansen-cogs' {
|
|
13
|
-
export type ErrorDefinitionType = CogsTypes.ErrorDefinitionType
|
|
14
|
-
export type FieldErrorType = CogsTypes.FieldErrorType
|
|
15
|
-
|
|
16
16
|
export * from '#cogs'
|
|
17
17
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
declare module '#cogs/transformers/error-message' {
|
|
2
|
-
export default function transform (error: CogsTypes.ErrorDefinitionType): CogsTypes.FieldErrorType
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'shinkansen-cogs/transformers/error-message' {
|
|
6
2
|
export type ErrorDefinitionType = CogsTypes.ErrorDefinitionType
|
|
7
3
|
|
|
8
4
|
export type FieldErrorType = CogsTypes.FieldErrorType
|
|
9
5
|
|
|
6
|
+
export default function transform (error: CogsTypes.ErrorDefinitionType): CogsTypes.FieldErrorType
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module 'shinkansen-cogs/transformers/error-message' {
|
|
10
10
|
export { default } from '#cogs/transformers/error-message'
|
|
11
|
+
export * from '#cogs/transformers/error-message'
|
|
11
12
|
}
|