@itcase/types 1.0.8 → 1.0.10
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/index.ts +1 -0
- package/types/item/index.ts +1 -1
- package/types/item/{item.ts → itemFill.ts} +3 -3
- package/types/shape/index.ts +1 -0
- package/types/shape/shape.ts +1 -8
- package/types/shape/shapeStrength.ts +6 -0
- package/types/svgFill/index.ts +2 -0
- package/types/svgFill/svgFill.ts +7 -0
- package/types/svgFill/svgFillItem.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.0.10](https://github.com/ITCase/itcase-types/compare/v1.0.9...v1.0.10) (2025-08-13)
|
|
2
|
+
|
|
3
|
+
## [1.0.9](https://github.com/ITCase/itcase-types/compare/v1.0.8...v1.0.9) (2025-08-13)
|
|
4
|
+
|
|
1
5
|
## [1.0.8](https://github.com/ITCase/itcase-types/compare/v1.0.7...v1.0.8) (2025-08-13)
|
|
2
6
|
|
|
3
7
|
## [1.0.7](https://github.com/ITCase/itcase-types/compare/v1.0.6...v1.0.7) (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/index.ts
CHANGED
package/types/item/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './itemFill'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const itemFillProps = [
|
|
2
2
|
'accentItemPrimary',
|
|
3
3
|
'accentItemSecondary',
|
|
4
4
|
'accentItemTertiary',
|
|
@@ -52,6 +52,6 @@ const itemProps = [
|
|
|
52
52
|
'none',
|
|
53
53
|
] as const
|
|
54
54
|
|
|
55
|
-
export type
|
|
55
|
+
export type ItemFillProps = (typeof itemFillProps)[number]
|
|
56
56
|
|
|
57
|
-
export {
|
|
57
|
+
export { itemFillProps }
|
package/types/shape/index.ts
CHANGED
package/types/shape/shape.ts
CHANGED