@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 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/types",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "unified type storage",
5
5
  "keywords": [
6
6
  "types"
@@ -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
- | 'confirm'
10
+ | 'success'
11
+ | 'unableLoadData'
12
+ | 'warning'
14
13
 
15
14
  type AppearanceStateKeysDefault =
16
15
  | 'defaultPrimary'
16
+ | 'defaultQuaternary'
17
17
  | 'defaultSecondary'
18
18
  | 'defaultTertiary'
19
- | 'defaultQuaternary'
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
- | 'requireQuaternary'
32
- | 'disabledPrimary'
33
- | 'disabledSecondary'
34
- | 'disabledTertiary'
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
- | 'accentQuaternary'
42
- | 'specialPrimary'
43
- | 'specialSecondary'
44
- | 'specialTertiary'
45
- | 'specialQuaternary'
46
- | 'extraPrimary'
47
- | 'extraSecondary'
48
- | 'extraTertiary'
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
- | 'errorQuaternary'
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 = ShapeProps
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
@@ -6,6 +6,7 @@ export * from './common'
6
6
  export * from './direction'
7
7
  export * from './elevation'
8
8
  export * from './fill'
9
+ export * from './svgFill'
9
10
  export * from './height'
10
11
  export * from './item'
11
12
  export * from './justifyContent'
@@ -1 +1 @@
1
- export * from './item'
1
+ export * from './itemFill'
@@ -1,4 +1,4 @@
1
- const itemProps = [
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 ItemProps = (typeof itemProps)[number]
55
+ export type ItemFillProps = (typeof itemFillProps)[number]
56
56
 
57
- export { itemProps }
57
+ export { itemFillProps }
@@ -1 +1,2 @@
1
1
  export * from './shape'
2
+ export * from './shapeStrength'
@@ -1,11 +1,4 @@
1
- const shapeProps = [
2
- 'circular',
3
- 'rounded',
4
- 'roundedS',
5
- 'roundedM',
6
- 'roundedL',
7
- 'roundedXL',
8
- ] as const
1
+ const shapeProps = ['geometric', 'circular', 'rounded'] as const
9
2
 
10
3
  type ShapeProps = (typeof shapeProps)[number]
11
4
 
@@ -0,0 +1,6 @@
1
+ const shapeStrengthProps = ['05-m', '1-m', '15-m', '2-m'] as const
2
+
3
+ type ShapeStrengthProps = (typeof shapeStrengthProps)[number]
4
+
5
+ export { shapeStrengthProps }
6
+ export type { ShapeStrengthProps }
@@ -0,0 +1,2 @@
1
+ export * from './svgFill'
2
+ export * from './svgFillItem'
@@ -0,0 +1,7 @@
1
+ import { fillProps } from '../fill'
2
+
3
+ const svgFillProps = [...fillProps] as const
4
+
5
+ export type SvgFillProps = (typeof svgFillProps)[number]
6
+
7
+ export { svgFillProps }
@@ -0,0 +1,7 @@
1
+ import { itemFillProps } from '../item'
2
+
3
+ const svgFillItemProps = [...itemFillProps] as const
4
+
5
+ export type SvgFillItemProps = (typeof svgFillItemProps)[number]
6
+
7
+ export { svgFillItemProps }