@itcase/types 1.0.6 → 1.0.8
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 +9 -9
- package/types/appearance/index.ts +110 -0
- package/types/border/borderColor.ts +34 -23
- package/types/border/index.ts +0 -1
- package/types/colors/active.ts +57 -0
- package/types/colors/colorsSvg.ts +7 -0
- package/types/colors/disabled.ts +57 -0
- package/types/colors/focus.ts +57 -0
- package/types/colors/hover.ts +57 -0
- package/types/colors/index.ts +4 -0
- package/types/common/index.ts +1 -0
- package/types/direction/index.ts +1 -0
- package/types/elevation/index.ts +1 -0
- package/types/fill/fill.ts +34 -16
- package/types/fill/fillGradient.ts +4 -7
- package/types/fill/fillSize.ts +17 -0
- package/types/fill/index.ts +1 -2
- package/types/height/index.ts +1 -0
- package/types/index.ts +8 -22
- package/types/item/index.ts +1 -0
- package/types/item/item.ts +57 -0
- package/types/justifyContent/index.ts +1 -0
- package/types/option/index.ts +1 -0
- package/types/position/index.ts +1 -0
- package/types/resizeMode/index.ts +1 -0
- package/types/{resizeMode.ts → resizeMode/resizeMode.ts} +1 -7
- package/types/shape/index.ts +1 -0
- package/types/shape/shape.ts +13 -0
- package/types/size/index.ts +1 -1
- package/types/stacking/index.ts +1 -0
- package/types/style/index.ts +1 -0
- package/types/style/style.ts +6 -0
- package/types/text/index.ts +0 -5
- package/types/text/textColor.ts +31 -16
- package/types/underline/index.ts +1 -0
- package/types/width/index.ts +1 -0
- package/types/wrap/index.ts +1 -0
- package/types/appearanceKeys.ts +0 -43
- package/types/border/borderColorHover.ts +0 -18
- package/types/fill/fillHover.ts +0 -20
- package/types/fill/fillType.ts +0 -5
- package/types/flex/flexAlign.ts +0 -12
- package/types/flex/flexGrow.ts +0 -5
- package/types/flex/flexJustifyContent.ts +0 -12
- package/types/flex/flexWrap.ts +0 -5
- package/types/flex/index.ts +0 -4
- package/types/grid/gridAlign.ts +0 -23
- package/types/grid/gridAlignSelf.ts +0 -23
- package/types/grid/gridJustifyItems.ts +0 -24
- package/types/grid/gridJustifySelf.ts +0 -28
- package/types/grid/index.ts +0 -4
- package/types/horizontal/horizontalContentAlign.ts +0 -6
- package/types/horizontal/horizontalResizeMode.ts +0 -6
- package/types/horizontal/index.ts +0 -2
- package/types/icon/iconFillSize.ts +0 -16
- package/types/icon/iconSize.ts +0 -17
- package/types/icon/index.ts +0 -2
- package/types/itemColor.ts +0 -39
- package/types/overflow.ts +0 -5
- package/types/shape.ts +0 -5
- package/types/size/sizeOption.ts +0 -18
- package/types/svgFill.ts +0 -33
- package/types/text/textAlign.ts +0 -5
- package/types/text/textGradient.ts +0 -13
- package/types/text/textStyle.ts +0 -5
- package/types/text/textWeight.ts +0 -21
- package/types/text/textWrap.ts +0 -5
- package/types/type.ts +0 -13
- package/types/vertical/index.ts +0 -2
- package/types/vertical/verticalContentAlign.ts +0 -6
- package/types/vertical/verticalResizeMode.ts +0 -5
- /package/types/{common.ts → common/common.ts} +0 -0
- /package/types/{direction.ts → direction/direction.ts} +0 -0
- /package/types/{elevation.ts → elevation/elevation.ts} +0 -0
- /package/types/{height.ts → height/height.ts} +0 -0
- /package/types/{justifyContent.ts → justifyContent/justifyContent.ts} +0 -0
- /package/types/{option.ts → option/option.ts} +0 -0
- /package/types/{position.ts → position/position.ts} +0 -0
- /package/types/{titleSize.ts → size/titleSize.ts} +0 -0
- /package/types/{stacking.ts → stacking/stacking.ts} +0 -0
- /package/types/{underline.ts → underline/underline.ts} +0 -0
- /package/types/{width.ts → width/width.ts} +0 -0
- /package/types/{wrap.ts → wrap/wrap.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.0.8](https://github.com/ITCase/itcase-types/compare/v1.0.7...v1.0.8) (2025-08-13)
|
|
2
|
+
|
|
3
|
+
## [1.0.7](https://github.com/ITCase/itcase-types/compare/v1.0.6...v1.0.7) (2025-08-13)
|
|
4
|
+
|
|
1
5
|
## [1.0.6](https://github.com/ITCase/itcase-types/compare/v1.0.5...v1.0.6) (2025-07-14)
|
|
2
6
|
|
|
3
7
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "unified type storage",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types"
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@commitlint/cli": "^19.8.1",
|
|
34
34
|
"@commitlint/config-conventional": "^19.8.1",
|
|
35
|
-
"@itcase/config": "^1.0.
|
|
36
|
-
"@itcase/lint": "^1.1.
|
|
35
|
+
"@itcase/config": "^1.0.55",
|
|
36
|
+
"@itcase/lint": "^1.1.31",
|
|
37
37
|
"@semantic-release/changelog": "^6.0.3",
|
|
38
38
|
"@semantic-release/git": "^10.0.1",
|
|
39
39
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
40
|
-
"conventional-changelog-conventionalcommits": "^9.
|
|
41
|
-
"eslint": "9.
|
|
40
|
+
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
41
|
+
"eslint": "9.33.0",
|
|
42
42
|
"husky": "^9.1.7",
|
|
43
|
-
"lint-staged": "^16.1.
|
|
44
|
-
"prettier": "^3.
|
|
45
|
-
"semantic-release": "^24.2.
|
|
46
|
-
"typescript": "^5.
|
|
43
|
+
"lint-staged": "^16.1.5",
|
|
44
|
+
"prettier": "^3.6.2",
|
|
45
|
+
"semantic-release": "^24.2.7",
|
|
46
|
+
"typescript": "^5.9.2"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { ShapeProps } from '../shape'
|
|
2
|
+
import type { SizeProps } from '../size'
|
|
3
|
+
import type { StyleProps } from '../style'
|
|
4
|
+
|
|
5
|
+
type AppearanceResponseKeysDefault =
|
|
6
|
+
| 'error'
|
|
7
|
+
| 'success'
|
|
8
|
+
| 'warning'
|
|
9
|
+
| 'fail'
|
|
10
|
+
| 'nothingFound'
|
|
11
|
+
| 'unableLoadData'
|
|
12
|
+
| 'refresh'
|
|
13
|
+
| 'confirm'
|
|
14
|
+
|
|
15
|
+
type AppearanceStateKeysDefault =
|
|
16
|
+
| 'defaultPrimary'
|
|
17
|
+
| 'defaultSecondary'
|
|
18
|
+
| 'defaultTertiary'
|
|
19
|
+
| 'defaultQuaternary'
|
|
20
|
+
| 'errorPrimary'
|
|
21
|
+
| 'errorSecondary'
|
|
22
|
+
| 'errorTertiary'
|
|
23
|
+
| 'errorQuaternary'
|
|
24
|
+
| 'successPrimary'
|
|
25
|
+
| 'successSecondary'
|
|
26
|
+
| 'successTertiary'
|
|
27
|
+
| 'successQuaternary'
|
|
28
|
+
| 'requirePrimary'
|
|
29
|
+
| 'requireSecondary'
|
|
30
|
+
| 'requireTertiary'
|
|
31
|
+
| 'requireQuaternary'
|
|
32
|
+
| 'disabledPrimary'
|
|
33
|
+
| 'disabledSecondary'
|
|
34
|
+
| 'disabledTertiary'
|
|
35
|
+
| 'disabledQuaternary'
|
|
36
|
+
|
|
37
|
+
type AppearanceKeysDefault =
|
|
38
|
+
| 'accentPrimary'
|
|
39
|
+
| 'accentSecondary'
|
|
40
|
+
| 'accentTertiary'
|
|
41
|
+
| 'accentQuaternary'
|
|
42
|
+
| 'specialPrimary'
|
|
43
|
+
| 'specialSecondary'
|
|
44
|
+
| 'specialTertiary'
|
|
45
|
+
| 'specialQuaternary'
|
|
46
|
+
| 'extraPrimary'
|
|
47
|
+
| 'extraSecondary'
|
|
48
|
+
| 'extraTertiary'
|
|
49
|
+
| 'extraQuaternary'
|
|
50
|
+
| 'errorPrimary'
|
|
51
|
+
| 'errorSecondary'
|
|
52
|
+
| 'errorTertiary'
|
|
53
|
+
| 'errorQuaternary'
|
|
54
|
+
| 'surfacePrimary'
|
|
55
|
+
| 'surfaceSecondary'
|
|
56
|
+
| 'surfaceTertiary'
|
|
57
|
+
| 'surfaceQuaternary'
|
|
58
|
+
| 'warningPrimary'
|
|
59
|
+
| 'warningSecondary'
|
|
60
|
+
| '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
|
+
|
|
79
|
+
type AppearanceSizeKey = `size${Uppercase<SizeProps>}`
|
|
80
|
+
type AppearanceStyleKey = StyleProps
|
|
81
|
+
type AppearanceShapeKey = ShapeProps
|
|
82
|
+
|
|
83
|
+
type CompositeAppearanceKey =
|
|
84
|
+
| AppearanceKeysDefault
|
|
85
|
+
| `${AppearanceKeysDefault} ${AppearanceSizeKey}`
|
|
86
|
+
| `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
|
|
87
|
+
| `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
|
|
88
|
+
|
|
89
|
+
type CompositeAppearanceStateKeys =
|
|
90
|
+
| AppearanceStateKeysDefault
|
|
91
|
+
| `${AppearanceStateKeysDefault} ${AppearanceSizeKey}`
|
|
92
|
+
| `${AppearanceStateKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
|
|
93
|
+
| `${AppearanceStateKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
|
|
94
|
+
|
|
95
|
+
type CompositeAppearanceResponseKeys =
|
|
96
|
+
| AppearanceResponseKeysDefault
|
|
97
|
+
| `${AppearanceResponseKeysDefault} ${AppearanceSizeKey}`
|
|
98
|
+
| `${AppearanceResponseKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
|
|
99
|
+
| `${AppearanceResponseKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
|
|
100
|
+
|
|
101
|
+
export type {
|
|
102
|
+
AppearanceKeysDefault,
|
|
103
|
+
AppearanceStateKeysDefault,
|
|
104
|
+
AppearanceSizeKey,
|
|
105
|
+
AppearanceShapeKey,
|
|
106
|
+
AppearanceStyleKey,
|
|
107
|
+
CompositeAppearanceKey,
|
|
108
|
+
CompositeAppearanceStateKeys,
|
|
109
|
+
CompositeAppearanceResponseKeys,
|
|
110
|
+
}
|
|
@@ -3,40 +3,51 @@ const borderColorProps = [
|
|
|
3
3
|
'accentBorderSecondary',
|
|
4
4
|
'accentBorderTertiary',
|
|
5
5
|
'accentBorderQuaternary',
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
|
|
12
|
-
'
|
|
13
|
-
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'secondaryBorderTertiary',
|
|
17
|
-
'secondaryBorderQuaternary',
|
|
18
|
-
'secondaryBorderDisabled',
|
|
19
|
-
|
|
20
|
-
'tertiaryBorderPrimary',
|
|
21
|
-
'tertiaryBorderSecondary',
|
|
22
|
-
'tertiaryBorderTertiary',
|
|
23
|
-
'tertiaryBorderQuaternary',
|
|
24
|
-
'tertiaryBorderDisabled',
|
|
6
|
+
|
|
7
|
+
'specialBorderPrimary',
|
|
8
|
+
'specialBorderSecondary',
|
|
9
|
+
'specialBorderTertiary',
|
|
10
|
+
'specialBorderQuaternary',
|
|
11
|
+
|
|
12
|
+
'extraBorderPrimary',
|
|
13
|
+
'extraBorderSecondary',
|
|
14
|
+
'extraBorderTertiary',
|
|
15
|
+
'extraBorderQuaternary',
|
|
25
16
|
|
|
26
17
|
'surfaceBorderPrimary',
|
|
27
18
|
'surfaceBorderSecondary',
|
|
28
19
|
'surfaceBorderTertiary',
|
|
29
20
|
'surfaceBorderQuaternary',
|
|
30
|
-
'surfaceBorderDisabled',
|
|
31
|
-
'surfaceBorderInverse',
|
|
32
21
|
|
|
33
22
|
'errorBorderPrimary',
|
|
34
23
|
'errorBorderSecondary',
|
|
35
|
-
'
|
|
24
|
+
'errorBorderTertiary',
|
|
25
|
+
'errorBorderQuaternary',
|
|
26
|
+
|
|
27
|
+
'warningBorderPrimary',
|
|
28
|
+
'warningBorderSecondary',
|
|
29
|
+
'warningBorderTertiary',
|
|
30
|
+
'warningBorderQuaternary',
|
|
36
31
|
|
|
37
32
|
'successBorderPrimary',
|
|
38
33
|
'successBorderSecondary',
|
|
39
|
-
'
|
|
34
|
+
'successBorderTertiary',
|
|
35
|
+
'successBorderQuaternary',
|
|
36
|
+
|
|
37
|
+
'infoBorderPrimary',
|
|
38
|
+
'infoBorderSecondary',
|
|
39
|
+
'infoBorderTertiary',
|
|
40
|
+
'infoBorderQuaternary',
|
|
41
|
+
|
|
42
|
+
'dangerBorderPrimary',
|
|
43
|
+
'dangerBorderSecondary',
|
|
44
|
+
'dangerBorderTertiary',
|
|
45
|
+
'dangerBorderQuaternary',
|
|
46
|
+
|
|
47
|
+
'disabledBorderPrimary',
|
|
48
|
+
'disabledBorderSecondary',
|
|
49
|
+
'disabledBorderTertiary',
|
|
50
|
+
'disabledBorderQuaternary',
|
|
40
51
|
|
|
41
52
|
'none',
|
|
42
53
|
] as const
|
package/types/border/index.ts
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const colorActiveProps = [
|
|
2
|
+
'accentActivePrimary',
|
|
3
|
+
'accentActiveSecondary',
|
|
4
|
+
'accentActiveTertiary',
|
|
5
|
+
'accentActiveQuaternary',
|
|
6
|
+
|
|
7
|
+
'specialActivePrimary',
|
|
8
|
+
'specialActiveSecondary',
|
|
9
|
+
'specialActiveTertiary',
|
|
10
|
+
'specialActiveQuaternary',
|
|
11
|
+
|
|
12
|
+
'extraActivePrimary',
|
|
13
|
+
'extraActiveSecondary',
|
|
14
|
+
'extraActiveTertiary',
|
|
15
|
+
'extraActiveQuaternary',
|
|
16
|
+
|
|
17
|
+
'surfaceActivePrimary',
|
|
18
|
+
'surfaceActiveSecondary',
|
|
19
|
+
'surfaceActiveTertiary',
|
|
20
|
+
'surfaceActiveQuaternary',
|
|
21
|
+
|
|
22
|
+
'errorActivePrimary',
|
|
23
|
+
'errorActiveSecondary',
|
|
24
|
+
'errorActiveTertiary',
|
|
25
|
+
'errorActiveQuaternary',
|
|
26
|
+
|
|
27
|
+
'warningActivePrimary',
|
|
28
|
+
'warningActiveSecondary',
|
|
29
|
+
'warningActiveTertiary',
|
|
30
|
+
'warningActiveQuaternary',
|
|
31
|
+
|
|
32
|
+
'successActivePrimary',
|
|
33
|
+
'successActiveSecondary',
|
|
34
|
+
'successActiveTertiary',
|
|
35
|
+
'successActiveQuaternary',
|
|
36
|
+
|
|
37
|
+
'infoActivePrimary',
|
|
38
|
+
'infoActiveSecondary',
|
|
39
|
+
'infoActiveTertiary',
|
|
40
|
+
'infoActiveQuaternary',
|
|
41
|
+
|
|
42
|
+
'dangerActivePrimary',
|
|
43
|
+
'dangerActiveSecondary',
|
|
44
|
+
'dangerActiveTertiary',
|
|
45
|
+
'dangerActiveQuaternary',
|
|
46
|
+
|
|
47
|
+
'disabledActivePrimary',
|
|
48
|
+
'disabledActiveSecondary',
|
|
49
|
+
'disabledActiveTertiary',
|
|
50
|
+
'disabledActiveQuaternary',
|
|
51
|
+
|
|
52
|
+
'none',
|
|
53
|
+
] as const
|
|
54
|
+
|
|
55
|
+
export type colorActiveProps = (typeof colorActiveProps)[number]
|
|
56
|
+
|
|
57
|
+
export { colorActiveProps }
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const colorDisabledProps = [
|
|
2
|
+
'accentDisabledPrimary',
|
|
3
|
+
'accentDisabledSecondary',
|
|
4
|
+
'accentDisabledTertiary',
|
|
5
|
+
'accentDisabledQuaternary',
|
|
6
|
+
|
|
7
|
+
'specialDisabledPrimary',
|
|
8
|
+
'specialDisabledSecondary',
|
|
9
|
+
'specialDisabledTertiary',
|
|
10
|
+
'specialDisabledQuaternary',
|
|
11
|
+
|
|
12
|
+
'extraDisabledPrimary',
|
|
13
|
+
'extraDisabledSecondary',
|
|
14
|
+
'extraDisabledTertiary',
|
|
15
|
+
'extraDisabledQuaternary',
|
|
16
|
+
|
|
17
|
+
'surfaceDisabledPrimary',
|
|
18
|
+
'surfaceDisabledSecondary',
|
|
19
|
+
'surfaceDisabledTertiary',
|
|
20
|
+
'surfaceDisabledQuaternary',
|
|
21
|
+
|
|
22
|
+
'errorDisabledPrimary',
|
|
23
|
+
'errorDisabledSecondary',
|
|
24
|
+
'errorDisabledTertiary',
|
|
25
|
+
'errorDisabledQuaternary',
|
|
26
|
+
|
|
27
|
+
'warningDisabledPrimary',
|
|
28
|
+
'warningDisabledSecondary',
|
|
29
|
+
'warningDisabledTertiary',
|
|
30
|
+
'warningDisabledQuaternary',
|
|
31
|
+
|
|
32
|
+
'successDisabledPrimary',
|
|
33
|
+
'successDisabledSecondary',
|
|
34
|
+
'successDisabledTertiary',
|
|
35
|
+
'successDisabledQuaternary',
|
|
36
|
+
|
|
37
|
+
'infoDisabledPrimary',
|
|
38
|
+
'infoDisabledSecondary',
|
|
39
|
+
'infoDisabledTertiary',
|
|
40
|
+
'infoDisabledQuaternary',
|
|
41
|
+
|
|
42
|
+
'dangerDisabledPrimary',
|
|
43
|
+
'dangerDisabledSecondary',
|
|
44
|
+
'dangerDisabledTertiary',
|
|
45
|
+
'dangerDisabledQuaternary',
|
|
46
|
+
|
|
47
|
+
'disabledDisabledPrimary',
|
|
48
|
+
'disabledDisabledSecondary',
|
|
49
|
+
'disabledDisabledTertiary',
|
|
50
|
+
'disabledDisabledQuaternary',
|
|
51
|
+
|
|
52
|
+
'none',
|
|
53
|
+
] as const
|
|
54
|
+
|
|
55
|
+
export type colorDisabledProps = (typeof colorDisabledProps)[number]
|
|
56
|
+
|
|
57
|
+
export { colorDisabledProps }
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const colorFocusProps = [
|
|
2
|
+
'accentFocusPrimary',
|
|
3
|
+
'accentFocusSecondary',
|
|
4
|
+
'accentFocusTertiary',
|
|
5
|
+
'accentFocusQuaternary',
|
|
6
|
+
|
|
7
|
+
'specialFocusPrimary',
|
|
8
|
+
'specialFocusSecondary',
|
|
9
|
+
'specialFocusTertiary',
|
|
10
|
+
'specialFocusQuaternary',
|
|
11
|
+
|
|
12
|
+
'extraFocusPrimary',
|
|
13
|
+
'extraFocusSecondary',
|
|
14
|
+
'extraFocusTertiary',
|
|
15
|
+
'extraFocusQuaternary',
|
|
16
|
+
|
|
17
|
+
'surfaceFocusPrimary',
|
|
18
|
+
'surfaceFocusSecondary',
|
|
19
|
+
'surfaceFocusTertiary',
|
|
20
|
+
'surfaceFocusQuaternary',
|
|
21
|
+
|
|
22
|
+
'errorFocusPrimary',
|
|
23
|
+
'errorFocusSecondary',
|
|
24
|
+
'errorFocusTertiary',
|
|
25
|
+
'errorFocusQuaternary',
|
|
26
|
+
|
|
27
|
+
'warningFocusPrimary',
|
|
28
|
+
'warningFocusSecondary',
|
|
29
|
+
'warningFocusTertiary',
|
|
30
|
+
'warningFocusQuaternary',
|
|
31
|
+
|
|
32
|
+
'successFocusPrimary',
|
|
33
|
+
'successFocusSecondary',
|
|
34
|
+
'successFocusTertiary',
|
|
35
|
+
'successFocusQuaternary',
|
|
36
|
+
|
|
37
|
+
'infoFocusPrimary',
|
|
38
|
+
'infoFocusSecondary',
|
|
39
|
+
'infoFocusTertiary',
|
|
40
|
+
'infoFocusQuaternary',
|
|
41
|
+
|
|
42
|
+
'dangerFocusPrimary',
|
|
43
|
+
'dangerFocusSecondary',
|
|
44
|
+
'dangerFocusTertiary',
|
|
45
|
+
'dangerFocusQuaternary',
|
|
46
|
+
|
|
47
|
+
'disabledFocusPrimary',
|
|
48
|
+
'disabledFocusSecondary',
|
|
49
|
+
'disabledFocusTertiary',
|
|
50
|
+
'disabledFocusQuaternary',
|
|
51
|
+
|
|
52
|
+
'none',
|
|
53
|
+
] as const
|
|
54
|
+
|
|
55
|
+
export type ColorFocusProps = (typeof colorFocusProps)[number]
|
|
56
|
+
|
|
57
|
+
export { colorFocusProps }
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const colorHoverProps = [
|
|
2
|
+
'accentHoverPrimary',
|
|
3
|
+
'accentHoverSecondary',
|
|
4
|
+
'accentHoverTertiary',
|
|
5
|
+
'accentHoverQuaternary',
|
|
6
|
+
|
|
7
|
+
'specialHoverPrimary',
|
|
8
|
+
'specialHoverSecondary',
|
|
9
|
+
'specialHoverTertiary',
|
|
10
|
+
'specialHoverQuaternary',
|
|
11
|
+
|
|
12
|
+
'extraHoverPrimary',
|
|
13
|
+
'extraHoverSecondary',
|
|
14
|
+
'extraHoverTertiary',
|
|
15
|
+
'extraHoverQuaternary',
|
|
16
|
+
|
|
17
|
+
'surfaceHoverPrimary',
|
|
18
|
+
'surfaceHoverSecondary',
|
|
19
|
+
'surfaceHoverTertiary',
|
|
20
|
+
'surfaceHoverQuaternary',
|
|
21
|
+
|
|
22
|
+
'errorHoverPrimary',
|
|
23
|
+
'errorHoverSecondary',
|
|
24
|
+
'errorHoverTertiary',
|
|
25
|
+
'errorHoverQuaternary',
|
|
26
|
+
|
|
27
|
+
'warningHoverPrimary',
|
|
28
|
+
'warningHoverSecondary',
|
|
29
|
+
'warningHoverTertiary',
|
|
30
|
+
'warningHoverQuaternary',
|
|
31
|
+
|
|
32
|
+
'successHoverPrimary',
|
|
33
|
+
'successHoverSecondary',
|
|
34
|
+
'successHoverTertiary',
|
|
35
|
+
'successHoverQuaternary',
|
|
36
|
+
|
|
37
|
+
'infoHoverPrimary',
|
|
38
|
+
'infoHoverSecondary',
|
|
39
|
+
'infoHoverTertiary',
|
|
40
|
+
'infoHoverQuaternary',
|
|
41
|
+
|
|
42
|
+
'dangerHoverPrimary',
|
|
43
|
+
'dangerHoverSecondary',
|
|
44
|
+
'dangerHoverTertiary',
|
|
45
|
+
'dangerHoverQuaternary',
|
|
46
|
+
|
|
47
|
+
'disabledHoverPrimary',
|
|
48
|
+
'disabledHoverSecondary',
|
|
49
|
+
'disabledHoverTertiary',
|
|
50
|
+
'disabledHoverQuaternary',
|
|
51
|
+
|
|
52
|
+
'none',
|
|
53
|
+
] as const
|
|
54
|
+
|
|
55
|
+
export type colorHoverProps = (typeof colorHoverProps)[number]
|
|
56
|
+
|
|
57
|
+
export { colorHoverProps }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './common'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './direction'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './elavation'
|
package/types/fill/fill.ts
CHANGED
|
@@ -2,34 +2,52 @@ const fillProps = [
|
|
|
2
2
|
'accentPrimary',
|
|
3
3
|
'accentSecondary',
|
|
4
4
|
'accentTertiary',
|
|
5
|
+
'accentQuaternary',
|
|
5
6
|
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
7
|
+
'specialPrimary',
|
|
8
|
+
'specialSecondary',
|
|
9
|
+
'specialTertiary',
|
|
10
|
+
'specialQuaternary',
|
|
9
11
|
|
|
10
|
-
'
|
|
11
|
-
'
|
|
12
|
-
'
|
|
12
|
+
'extraPrimary',
|
|
13
|
+
'extraSecondary',
|
|
14
|
+
'extraTertiary',
|
|
15
|
+
'extraQuaternary',
|
|
13
16
|
|
|
14
|
-
'tertiaryPrimary',
|
|
15
|
-
'tertiarySecondary',
|
|
16
|
-
'tertiaryTertiary',
|
|
17
|
-
|
|
18
|
-
'surfaceAccent',
|
|
19
|
-
'surfaceItemPrimary',
|
|
20
17
|
'surfacePrimary',
|
|
21
|
-
'surfaceQuaternary',
|
|
22
|
-
'surfaceQuinary',
|
|
23
18
|
'surfaceSecondary',
|
|
24
19
|
'surfaceTertiary',
|
|
20
|
+
'surfaceQuaternary',
|
|
25
21
|
|
|
26
22
|
'errorPrimary',
|
|
27
23
|
'errorSecondary',
|
|
24
|
+
'errorTertiary',
|
|
25
|
+
'errorQuaternary',
|
|
26
|
+
|
|
27
|
+
'warningPrimary',
|
|
28
|
+
'warningSecondary',
|
|
29
|
+
'warningTertiary',
|
|
30
|
+
'warningQuaternary',
|
|
28
31
|
|
|
29
32
|
'successPrimary',
|
|
30
33
|
'successSecondary',
|
|
31
|
-
|
|
32
|
-
'
|
|
34
|
+
'successTertiary',
|
|
35
|
+
'successQuaternary',
|
|
36
|
+
|
|
37
|
+
'infoPrimary',
|
|
38
|
+
'infoSecondary',
|
|
39
|
+
'infoTertiary',
|
|
40
|
+
'infoQuaternary',
|
|
41
|
+
|
|
42
|
+
'dangerPrimary',
|
|
43
|
+
'dangerSecondary',
|
|
44
|
+
'dangerTertiary',
|
|
45
|
+
'dangerQuaternary',
|
|
46
|
+
|
|
47
|
+
'disabledPrimary',
|
|
48
|
+
'disabledSecondary',
|
|
49
|
+
'disabledTertiary',
|
|
50
|
+
'disabledQuaternary',
|
|
33
51
|
|
|
34
52
|
'none',
|
|
35
53
|
] as const
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
const fillGradientProps = [
|
|
2
|
-
'
|
|
3
|
-
'
|
|
4
|
-
'
|
|
5
|
-
'
|
|
6
|
-
'surface',
|
|
7
|
-
'error',
|
|
8
|
-
'success',
|
|
2
|
+
'gradientPrimary',
|
|
3
|
+
'gradientSecondary',
|
|
4
|
+
'gradientTertiary',
|
|
5
|
+
'gradientQuaternary',
|
|
9
6
|
] as const
|
|
10
7
|
|
|
11
8
|
export type FillGradientProps = (typeof fillGradientProps)[number]
|
package/types/fill/index.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './height'
|
package/types/index.ts
CHANGED
|
@@ -1,37 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* directories
|
|
3
|
-
*/
|
|
4
1
|
export * from './align'
|
|
2
|
+
export * from './appearance'
|
|
5
3
|
export * from './border'
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './flex'
|
|
8
|
-
export * from './grid'
|
|
9
|
-
export * from './horizontal'
|
|
10
|
-
export * from './icon'
|
|
11
|
-
export * from './size'
|
|
12
|
-
export * from './state'
|
|
13
|
-
export * from './text'
|
|
14
|
-
export * from './vertical'
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* files
|
|
18
|
-
*/
|
|
19
|
-
export * from './appearanceKeys'
|
|
4
|
+
export * from './colors'
|
|
20
5
|
export * from './common'
|
|
21
6
|
export * from './direction'
|
|
22
7
|
export * from './elevation'
|
|
8
|
+
export * from './fill'
|
|
23
9
|
export * from './height'
|
|
24
|
-
export * from './
|
|
10
|
+
export * from './item'
|
|
25
11
|
export * from './justifyContent'
|
|
26
12
|
export * from './option'
|
|
27
|
-
export * from './overflow'
|
|
28
13
|
export * from './position'
|
|
29
14
|
export * from './resizeMode'
|
|
30
15
|
export * from './shape'
|
|
16
|
+
export * from './size'
|
|
31
17
|
export * from './stacking'
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './
|
|
18
|
+
export * from './state'
|
|
19
|
+
export * from './style'
|
|
20
|
+
export * from './text'
|
|
35
21
|
export * from './underline'
|
|
36
22
|
export * from './width'
|
|
37
23
|
export * from './wrap'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './item'
|