@itcase/types 1.0.22 → 1.0.24

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.24](https://github.com/ITCase/itcase-types/compare/v1.0.23...v1.0.24) (2025-08-15)
2
+
3
+ ## [1.0.23](https://github.com/ITCase/itcase-types/compare/v1.0.22...v1.0.23) (2025-08-15)
4
+
1
5
  ## [1.0.22](https://github.com/ITCase/itcase-types/compare/v1.0.21...v1.0.22) (2025-08-14)
2
6
 
3
7
  ## [1.0.21](https://github.com/ITCase/itcase-types/compare/v1.0.20...v1.0.21) (2025-08-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/types",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
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,90 +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
11
 
89
12
  type CompositeAppearanceKey =
90
13
  | `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
@@ -104,6 +27,12 @@ type CompositeAppearanceResponseKeys =
104
27
  | `${AppearanceResponseKeysDefault} ${AppearanceSizeKey}`
105
28
  | AppearanceResponseKeysDefault
106
29
 
30
+ type CompositeAppearanceIconKeys =
31
+ | `${AppearanceResponseKeysDefault} ${AppearanceIconSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
32
+ | `${AppearanceResponseKeysDefault} ${AppearanceIconSizeKey} ${AppearanceStyleKey}`
33
+ | `${AppearanceResponseKeysDefault} ${AppearanceIconSizeKey}`
34
+ | AppearanceResponseKeysDefault
35
+
107
36
  export type {
108
37
  AppearanceKeysDefault,
109
38
  AppearanceStateKeysDefault,
@@ -113,4 +42,5 @@ export type {
113
42
  CompositeAppearanceKey,
114
43
  CompositeAppearanceStateKeys,
115
44
  CompositeAppearanceResponseKeys,
45
+ CompositeAppearanceIconKeys,
116
46
  }
@@ -0,0 +1,23 @@
1
+ const iconSizeProps = [
2
+ '12',
3
+ '14',
4
+ '16',
5
+ '20',
6
+ '24',
7
+ '32',
8
+ '40',
9
+ '48',
10
+ '56',
11
+ '60',
12
+ '64',
13
+ '72',
14
+ '80',
15
+ '96',
16
+ '112',
17
+ '144',
18
+ ] as const
19
+
20
+ type IconSizeProps = (typeof iconSizeProps)[number]
21
+
22
+ export { iconSizeProps }
23
+ export type { IconSizeProps }
@@ -0,0 +1 @@
1
+ export * from './iconSize'
package/types/index.ts CHANGED
@@ -2,6 +2,7 @@ export * from './align'
2
2
  export * from './appearance'
3
3
  export * from './border'
4
4
  export * from './colors'
5
+ export * from './icon'
5
6
  export * from './common'
6
7
  export * from './direction'
7
8
  export * from './elevation'
@@ -1,4 +1,4 @@
1
- const shapeStrengthProps = ['05-m', '1-m', '15-m', '2-m'] as const
1
+ const shapeStrengthProps = ['0_5m', '1m', '1_5m', '2m'] as const
2
2
 
3
3
  type ShapeStrengthProps = (typeof shapeStrengthProps)[number]
4
4