@itcase/types 1.0.9 → 1.0.11
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/types/appearance/index.ts +60 -54
- package/types/colors/index.ts +4 -4
- package/types/shape/index.ts +1 -0
- package/types/shape/shape.ts +1 -8
- package/types/shape/shapeStrength.ts +6 -0
- package/types/state/index.ts +0 -1
- package/types/state/state.ts +1 -1
- package/types/text/index.ts +0 -2
- package/types/colors/colorsSvg.ts +0 -7
- package/types/state/stateKeys.ts +0 -11
- package/types/text/textColorActive.ts +0 -40
- package/types/text/textColorHover.ts +0 -40
- /package/types/colors/{active.ts → colorsActive.ts} +0 -0
- /package/types/colors/{disabled.ts → colorsDisabled.ts} +0 -0
- /package/types/colors/{focus.ts → colorsFocus.ts} +0 -0
- /package/types/colors/{hover.ts → colorsHover.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.0.11](https://github.com/ITCase/itcase-types/compare/v1.0.10...v1.0.11) (2025-08-13)
|
|
2
|
+
|
|
3
|
+
## [1.0.10](https://github.com/ITCase/itcase-types/compare/v1.0.9...v1.0.10) (2025-08-13)
|
|
4
|
+
|
|
1
5
|
## [1.0.9](https://github.com/ITCase/itcase-types/compare/v1.0.8...v1.0.9) (2025-08-13)
|
|
2
6
|
|
|
3
7
|
## [1.0.8](https://github.com/ITCase/itcase-types/compare/v1.0.7...v1.0.8) (2025-08-13)
|
package/package.json
CHANGED
|
@@ -1,102 +1,108 @@
|
|
|
1
|
-
import type { ShapeProps } from '../shape'
|
|
2
1
|
import type { SizeProps } from '../size'
|
|
3
2
|
import type { StyleProps } from '../style'
|
|
4
3
|
|
|
5
4
|
type AppearanceResponseKeysDefault =
|
|
5
|
+
| 'confirm'
|
|
6
6
|
| 'error'
|
|
7
|
-
| 'success'
|
|
8
|
-
| 'warning'
|
|
9
7
|
| 'fail'
|
|
10
8
|
| 'nothingFound'
|
|
11
|
-
| 'unableLoadData'
|
|
12
9
|
| 'refresh'
|
|
13
|
-
| '
|
|
10
|
+
| 'success'
|
|
11
|
+
| 'unableLoadData'
|
|
12
|
+
| 'warning'
|
|
14
13
|
|
|
15
14
|
type AppearanceStateKeysDefault =
|
|
16
15
|
| 'defaultPrimary'
|
|
16
|
+
| 'defaultQuaternary'
|
|
17
17
|
| 'defaultSecondary'
|
|
18
18
|
| 'defaultTertiary'
|
|
19
|
-
| '
|
|
19
|
+
| 'disabledPrimary'
|
|
20
|
+
| 'disabledQuaternary'
|
|
21
|
+
| 'disabledSecondary'
|
|
22
|
+
| 'disabledTertiary'
|
|
20
23
|
| 'errorPrimary'
|
|
24
|
+
| 'errorQuaternary'
|
|
21
25
|
| 'errorSecondary'
|
|
22
26
|
| 'errorTertiary'
|
|
23
|
-
| 'errorQuaternary'
|
|
24
|
-
| 'successPrimary'
|
|
25
|
-
| 'successSecondary'
|
|
26
|
-
| 'successTertiary'
|
|
27
|
-
| 'successQuaternary'
|
|
28
27
|
| 'requirePrimary'
|
|
28
|
+
| 'requireQuaternary'
|
|
29
29
|
| 'requireSecondary'
|
|
30
30
|
| 'requireTertiary'
|
|
31
|
-
| '
|
|
32
|
-
| '
|
|
33
|
-
| '
|
|
34
|
-
| '
|
|
35
|
-
| 'disabledQuaternary'
|
|
31
|
+
| 'successPrimary'
|
|
32
|
+
| 'successQuaternary'
|
|
33
|
+
| 'successSecondary'
|
|
34
|
+
| 'successTertiary'
|
|
36
35
|
|
|
37
36
|
type AppearanceKeysDefault =
|
|
38
37
|
| 'accentPrimary'
|
|
38
|
+
| 'accentQuaternary'
|
|
39
39
|
| 'accentSecondary'
|
|
40
40
|
| 'accentTertiary'
|
|
41
|
-
| '
|
|
42
|
-
| '
|
|
43
|
-
| '
|
|
44
|
-
| '
|
|
45
|
-
| '
|
|
46
|
-
| '
|
|
47
|
-
| '
|
|
48
|
-
| '
|
|
49
|
-
| 'extraQuaternary'
|
|
41
|
+
| 'dangerPrimary'
|
|
42
|
+
| 'dangerQuaternary'
|
|
43
|
+
| 'dangerSecondary'
|
|
44
|
+
| 'dangerTertiary'
|
|
45
|
+
| 'disabledPrimary'
|
|
46
|
+
| 'disabledQuaternary'
|
|
47
|
+
| 'disabledSecondary'
|
|
48
|
+
| 'disabledTertiary'
|
|
50
49
|
| 'errorPrimary'
|
|
50
|
+
| 'errorQuaternary'
|
|
51
51
|
| 'errorSecondary'
|
|
52
52
|
| 'errorTertiary'
|
|
53
|
-
| '
|
|
53
|
+
| 'extraPrimary'
|
|
54
|
+
| 'extraQuaternary'
|
|
55
|
+
| 'extraSecondary'
|
|
56
|
+
| 'extraTertiary'
|
|
57
|
+
| 'infoPrimary'
|
|
58
|
+
| 'infoQuaternary'
|
|
59
|
+
| 'infoSecondary'
|
|
60
|
+
| 'infoTertiary'
|
|
61
|
+
| 'specialPrimary'
|
|
62
|
+
| 'specialQuaternary'
|
|
63
|
+
| 'specialSecondary'
|
|
64
|
+
| 'specialTertiary'
|
|
65
|
+
| 'successPrimary'
|
|
66
|
+
| 'successQuaternary'
|
|
67
|
+
| 'successSecondary'
|
|
68
|
+
| 'successTertiary'
|
|
54
69
|
| 'surfacePrimary'
|
|
70
|
+
| 'surfaceQuaternary'
|
|
55
71
|
| 'surfaceSecondary'
|
|
56
72
|
| 'surfaceTertiary'
|
|
57
|
-
| 'surfaceQuaternary'
|
|
58
73
|
| 'warningPrimary'
|
|
74
|
+
| 'warningQuaternary'
|
|
59
75
|
| 'warningSecondary'
|
|
60
76
|
| 'warningTertiary'
|
|
61
|
-
| 'warningQuaternary'
|
|
62
|
-
| 'successPrimary'
|
|
63
|
-
| 'successSecondary'
|
|
64
|
-
| 'successTertiary'
|
|
65
|
-
| 'successQuaternary'
|
|
66
|
-
| 'dangerPrimary'
|
|
67
|
-
| 'dangerSecondary'
|
|
68
|
-
| 'dangerTertiary'
|
|
69
|
-
| 'dangerQuaternary'
|
|
70
|
-
| 'infoPrimary'
|
|
71
|
-
| 'infoSecondary'
|
|
72
|
-
| 'infoTertiary'
|
|
73
|
-
| 'infoQuaternary'
|
|
74
|
-
| 'disabledPrimary'
|
|
75
|
-
| 'disabledSecondary'
|
|
76
|
-
| 'disabledTertiary'
|
|
77
|
-
| 'disabledQuaternary'
|
|
78
77
|
|
|
79
78
|
type AppearanceSizeKey = `size${Uppercase<SizeProps>}`
|
|
80
79
|
type AppearanceStyleKey = StyleProps
|
|
81
|
-
type AppearanceShapeKey =
|
|
80
|
+
type AppearanceShapeKey =
|
|
81
|
+
| 'circular'
|
|
82
|
+
| 'geometric'
|
|
83
|
+
| 'rounded'
|
|
84
|
+
| 'roundedL'
|
|
85
|
+
| 'roundedM'
|
|
86
|
+
| 'roundedS'
|
|
87
|
+
| 'roundedXL'
|
|
82
88
|
|
|
83
89
|
type CompositeAppearanceKey =
|
|
84
|
-
| AppearanceKeysDefault
|
|
85
|
-
| `${AppearanceKeysDefault} ${AppearanceSizeKey}`
|
|
86
|
-
| `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
|
|
87
90
|
| `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
|
|
91
|
+
| `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
|
|
92
|
+
| `${AppearanceKeysDefault} ${AppearanceSizeKey}`
|
|
93
|
+
| AppearanceKeysDefault
|
|
88
94
|
|
|
89
95
|
type CompositeAppearanceStateKeys =
|
|
90
|
-
| AppearanceStateKeysDefault
|
|
91
|
-
| `${AppearanceStateKeysDefault} ${AppearanceSizeKey}`
|
|
92
|
-
| `${AppearanceStateKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
|
|
93
96
|
| `${AppearanceStateKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
|
|
97
|
+
| `${AppearanceStateKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
|
|
98
|
+
| `${AppearanceStateKeysDefault} ${AppearanceSizeKey}`
|
|
99
|
+
| AppearanceStateKeysDefault
|
|
94
100
|
|
|
95
101
|
type CompositeAppearanceResponseKeys =
|
|
96
|
-
| AppearanceResponseKeysDefault
|
|
97
|
-
| `${AppearanceResponseKeysDefault} ${AppearanceSizeKey}`
|
|
98
|
-
| `${AppearanceResponseKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
|
|
99
102
|
| `${AppearanceResponseKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
|
|
103
|
+
| `${AppearanceResponseKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
|
|
104
|
+
| `${AppearanceResponseKeysDefault} ${AppearanceSizeKey}`
|
|
105
|
+
| AppearanceResponseKeysDefault
|
|
100
106
|
|
|
101
107
|
export type {
|
|
102
108
|
AppearanceKeysDefault,
|
package/types/colors/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
export * from './colorsActive'
|
|
2
|
+
export * from './colorsDisabled'
|
|
3
|
+
export * from './colorsFocus'
|
|
4
|
+
export * from './colorsHover'
|
package/types/shape/index.ts
CHANGED
package/types/shape/shape.ts
CHANGED
package/types/state/index.ts
CHANGED
package/types/state/state.ts
CHANGED
package/types/text/index.ts
CHANGED
package/types/state/stateKeys.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const textColorActiveProps = [
|
|
2
|
-
'accentTextPrimary',
|
|
3
|
-
'accentTextSecondary',
|
|
4
|
-
'accentTextTertiary',
|
|
5
|
-
|
|
6
|
-
'primaryTextPrimary',
|
|
7
|
-
'primaryTextSecondary',
|
|
8
|
-
'primaryTextTertiary',
|
|
9
|
-
|
|
10
|
-
'secondaryTextPrimary',
|
|
11
|
-
'secondaryTextSecondary',
|
|
12
|
-
'secondaryTextTertiary',
|
|
13
|
-
|
|
14
|
-
'tertiaryTextPrimary',
|
|
15
|
-
'tertiaryTextSecondary',
|
|
16
|
-
|
|
17
|
-
'surfaceTextAccent',
|
|
18
|
-
'surfaceTextActive',
|
|
19
|
-
'surfaceTextDisabled',
|
|
20
|
-
'surfaceTextFocus',
|
|
21
|
-
'surfaceTextHover',
|
|
22
|
-
'surfaceTextInverse',
|
|
23
|
-
'surfaceTextPrimary',
|
|
24
|
-
'surfaceTextQuaternary',
|
|
25
|
-
'surfaceTextSecondary',
|
|
26
|
-
'surfaceTextTertiary',
|
|
27
|
-
|
|
28
|
-
'errorTextPrimary',
|
|
29
|
-
'errorTextSecondary',
|
|
30
|
-
|
|
31
|
-
'successTextPrimary',
|
|
32
|
-
'successTextSecondary',
|
|
33
|
-
|
|
34
|
-
'dangerTextPrimary',
|
|
35
|
-
'dangerTextSecondary',
|
|
36
|
-
] as const
|
|
37
|
-
|
|
38
|
-
export type TextColorActiveProps = (typeof textColorActiveProps)[number]
|
|
39
|
-
|
|
40
|
-
export { textColorActiveProps }
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const textColorHoverProps = [
|
|
2
|
-
'accentTextPrimary',
|
|
3
|
-
'accentTextSecondary',
|
|
4
|
-
'accentTextTertiary',
|
|
5
|
-
|
|
6
|
-
'primaryTextPrimary',
|
|
7
|
-
'primaryTextSecondary',
|
|
8
|
-
'primaryTextTertiary',
|
|
9
|
-
|
|
10
|
-
'secondaryTextPrimary',
|
|
11
|
-
'secondaryTextSecondary',
|
|
12
|
-
'secondaryTextTertiary',
|
|
13
|
-
|
|
14
|
-
'tertiaryTextPrimary',
|
|
15
|
-
'tertiaryTextSecondary',
|
|
16
|
-
|
|
17
|
-
'surfaceTextAccent',
|
|
18
|
-
'surfaceTextActive',
|
|
19
|
-
'surfaceTextDisabled',
|
|
20
|
-
'surfaceTextFocus',
|
|
21
|
-
'surfaceTextHover',
|
|
22
|
-
'surfaceTextInverse',
|
|
23
|
-
'surfaceTextPrimary',
|
|
24
|
-
'surfaceTextQuaternary',
|
|
25
|
-
'surfaceTextSecondary',
|
|
26
|
-
'surfaceTextTertiary',
|
|
27
|
-
|
|
28
|
-
'errorTextPrimary',
|
|
29
|
-
'errorTextSecondary',
|
|
30
|
-
|
|
31
|
-
'successTextPrimary',
|
|
32
|
-
'successTextSecondary',
|
|
33
|
-
|
|
34
|
-
'dangerTextPrimary',
|
|
35
|
-
'dangerTextSecondary',
|
|
36
|
-
] as const
|
|
37
|
-
|
|
38
|
-
export type TextColorHoverProps = (typeof textColorHoverProps)[number]
|
|
39
|
-
|
|
40
|
-
export { textColorHoverProps }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|