@itcase/types 1.0.23 → 1.0.25

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.25](https://github.com/ITCase/itcase-types/compare/v1.0.24...v1.0.25) (2025-08-15)
2
+
3
+ ## [1.0.24](https://github.com/ITCase/itcase-types/compare/v1.0.23...v1.0.24) (2025-08-15)
4
+
1
5
  ## [1.0.23](https://github.com/ITCase/itcase-types/compare/v1.0.22...v1.0.23) (2025-08-15)
2
6
 
3
7
  ## [1.0.22](https://github.com/ITCase/itcase-types/compare/v1.0.21...v1.0.22) (2025-08-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/types",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "unified type storage",
5
5
  "keywords": [
6
6
  "types"
@@ -0,0 +1,31 @@
1
+ type AppearanceIconSizeKey =
2
+ | 'size12_12'
3
+ | 'size14_12'
4
+ | 'size14_14'
5
+ | 'size16_12'
6
+ | 'size16_14'
7
+ | 'size16_16'
8
+ | 'size20_12'
9
+ | 'size20_14'
10
+ | 'size20_16'
11
+ | 'size20_20'
12
+ | 'size24_12'
13
+ | 'size24_14'
14
+ | 'size24_16'
15
+ | 'size24_20'
16
+ | 'size24_24'
17
+ | 'size32_12'
18
+ | 'size32_14'
19
+ | 'size32_16'
20
+ | 'size32_20'
21
+ | 'size32_24'
22
+ | 'size32_32'
23
+ | 'size40_12'
24
+ | 'size40_14'
25
+ | 'size40_16'
26
+ | 'size40_20'
27
+ | 'size40_24'
28
+ | 'size40_32'
29
+ | 'size40_40'
30
+
31
+ export type { AppearanceIconSizeKey }
@@ -0,0 +1,43 @@
1
+ type AppearanceKeysDefault =
2
+ | 'accentPrimary'
3
+ | 'accentQuaternary'
4
+ | 'accentSecondary'
5
+ | 'accentTertiary'
6
+ | 'dangerPrimary'
7
+ | 'dangerQuaternary'
8
+ | 'dangerSecondary'
9
+ | 'dangerTertiary'
10
+ | 'disabledPrimary'
11
+ | 'disabledQuaternary'
12
+ | 'disabledSecondary'
13
+ | 'disabledTertiary'
14
+ | 'errorPrimary'
15
+ | 'errorQuaternary'
16
+ | 'errorSecondary'
17
+ | 'errorTertiary'
18
+ | 'extraPrimary'
19
+ | 'extraQuaternary'
20
+ | 'extraSecondary'
21
+ | 'extraTertiary'
22
+ | 'infoPrimary'
23
+ | 'infoQuaternary'
24
+ | 'infoSecondary'
25
+ | 'infoTertiary'
26
+ | 'specialPrimary'
27
+ | 'specialQuaternary'
28
+ | 'specialSecondary'
29
+ | 'specialTertiary'
30
+ | 'successPrimary'
31
+ | 'successQuaternary'
32
+ | 'successSecondary'
33
+ | 'successTertiary'
34
+ | 'surfacePrimary'
35
+ | 'surfaceQuaternary'
36
+ | 'surfaceSecondary'
37
+ | 'surfaceTertiary'
38
+ | 'warningPrimary'
39
+ | 'warningQuaternary'
40
+ | 'warningSecondary'
41
+ | 'warningTertiary'
42
+
43
+ export type { AppearanceKeysDefault }
@@ -0,0 +1,11 @@
1
+ type AppearanceResponseKeysDefault =
2
+ | 'confirm'
3
+ | 'error'
4
+ | 'fail'
5
+ | 'nothingFound'
6
+ | 'refresh'
7
+ | 'success'
8
+ | 'unableLoadData'
9
+ | 'warning'
10
+
11
+ export type { AppearanceResponseKeysDefault }
@@ -0,0 +1,10 @@
1
+ type AppearanceShapeKey =
2
+ | 'circular'
3
+ | 'geometric'
4
+ | 'rounded'
5
+ | 'roundedL'
6
+ | 'roundedM'
7
+ | 'roundedS'
8
+ | 'roundedXL'
9
+
10
+ export type { AppearanceShapeKey }
@@ -0,0 +1,23 @@
1
+ type AppearanceStateKeysDefault =
2
+ | 'defaultPrimary'
3
+ | 'defaultQuaternary'
4
+ | 'defaultSecondary'
5
+ | 'defaultTertiary'
6
+ | 'disabledPrimary'
7
+ | 'disabledQuaternary'
8
+ | 'disabledSecondary'
9
+ | 'disabledTertiary'
10
+ | 'errorPrimary'
11
+ | 'errorQuaternary'
12
+ | 'errorSecondary'
13
+ | 'errorTertiary'
14
+ | 'requirePrimary'
15
+ | 'requireQuaternary'
16
+ | 'requireSecondary'
17
+ | 'requireTertiary'
18
+ | 'successPrimary'
19
+ | 'successQuaternary'
20
+ | 'successSecondary'
21
+ | 'successTertiary'
22
+
23
+ export type { AppearanceStateKeysDefault }
@@ -1,120 +1,13 @@
1
1
  import type { SizeProps } from '../size'
2
2
  import type { StyleProps } from '../style'
3
-
4
- type AppearanceResponseKeysDefault =
5
- | 'confirm'
6
- | 'error'
7
- | 'fail'
8
- | 'nothingFound'
9
- | 'refresh'
10
- | 'success'
11
- | 'unableLoadData'
12
- | 'warning'
13
-
14
- type AppearanceStateKeysDefault =
15
- | 'defaultPrimary'
16
- | 'defaultQuaternary'
17
- | 'defaultSecondary'
18
- | 'defaultTertiary'
19
- | 'disabledPrimary'
20
- | 'disabledQuaternary'
21
- | 'disabledSecondary'
22
- | 'disabledTertiary'
23
- | 'errorPrimary'
24
- | 'errorQuaternary'
25
- | 'errorSecondary'
26
- | 'errorTertiary'
27
- | 'requirePrimary'
28
- | 'requireQuaternary'
29
- | 'requireSecondary'
30
- | 'requireTertiary'
31
- | 'successPrimary'
32
- | 'successQuaternary'
33
- | 'successSecondary'
34
- | 'successTertiary'
35
-
36
- type AppearanceKeysDefault =
37
- | 'accentPrimary'
38
- | 'accentQuaternary'
39
- | 'accentSecondary'
40
- | 'accentTertiary'
41
- | 'dangerPrimary'
42
- | 'dangerQuaternary'
43
- | 'dangerSecondary'
44
- | 'dangerTertiary'
45
- | 'disabledPrimary'
46
- | 'disabledQuaternary'
47
- | 'disabledSecondary'
48
- | 'disabledTertiary'
49
- | 'errorPrimary'
50
- | 'errorQuaternary'
51
- | 'errorSecondary'
52
- | 'errorTertiary'
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'
69
- | 'surfacePrimary'
70
- | 'surfaceQuaternary'
71
- | 'surfaceSecondary'
72
- | 'surfaceTertiary'
73
- | 'warningPrimary'
74
- | 'warningQuaternary'
75
- | 'warningSecondary'
76
- | 'warningTertiary'
3
+ import type { AppearanceIconSizeKey } from './AppearanceIconSizeKey'
4
+ import type { AppearanceKeysDefault } from './AppearanceKeysDefault'
5
+ import type { AppearanceResponseKeysDefault } from './AppearanceResponseKeysDefault'
6
+ import type { AppearanceShapeKey } from './AppearanceShapeKey'
7
+ import type { AppearanceStateKeysDefault } from './AppearanceStateKeysDefault'
77
8
 
78
9
  type AppearanceSizeKey = `size${Uppercase<SizeProps>}`
79
10
  type AppearanceStyleKey = StyleProps
80
- type AppearanceShapeKey =
81
- | 'circular'
82
- | 'geometric'
83
- | 'rounded'
84
- | 'roundedL'
85
- | 'roundedM'
86
- | 'roundedS'
87
- | 'roundedXL'
88
-
89
- type AppearanceIconSizeKey =
90
- | 'size12_12'
91
- | 'size14_12'
92
- | 'size14_14'
93
- | 'size16_12'
94
- | 'size16_14'
95
- | 'size16_16'
96
- | 'size20_12'
97
- | 'size20_14'
98
- | 'size20_16'
99
- | 'size20_20'
100
- | 'size24_12'
101
- | 'size24_14'
102
- | 'size24_16'
103
- | 'size24_20'
104
- | 'size24_24'
105
- | 'size32_12'
106
- | 'size32_14'
107
- | 'size32_16'
108
- | 'size32_20'
109
- | 'size32_24'
110
- | 'size32_32'
111
- | 'size40_12'
112
- | 'size40_14'
113
- | 'size40_16'
114
- | 'size40_20'
115
- | 'size40_24'
116
- | 'size40_32'
117
- | 'size40_40'
118
11
 
119
12
  type CompositeAppearanceKey =
120
13
  | `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
@@ -0,0 +1,5 @@
1
+ const centeringProps = ['horizontal', 'vertical', 'both'] as const
2
+
3
+ export type CenteringProps = (typeof centeringProps)[number]
4
+
5
+ export { centeringProps }
@@ -0,0 +1 @@
1
+ export * from './centering'
package/types/index.ts CHANGED
@@ -4,6 +4,7 @@ export * from './border'
4
4
  export * from './colors'
5
5
  export * from './icon'
6
6
  export * from './common'
7
+ export * from './centering'
7
8
  export * from './direction'
8
9
  export * from './elevation'
9
10
  export * from './fill'