@itcase/types 1.0.9 → 1.0.11

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.11](https://github.com/ITCase/itcase-types/compare/v1.0.10...v1.0.11) (2025-08-13)
2
+
3
+ ## [1.0.10](https://github.com/ITCase/itcase-types/compare/v1.0.9...v1.0.10) (2025-08-13)
4
+
1
5
  ## [1.0.9](https://github.com/ITCase/itcase-types/compare/v1.0.8...v1.0.9) (2025-08-13)
2
6
 
3
7
  ## [1.0.8](https://github.com/ITCase/itcase-types/compare/v1.0.7...v1.0.8) (2025-08-13)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/types",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
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,
@@ -1,4 +1,4 @@
1
- export * from './active'
2
- export * from './disabled'
3
- export * from './focus'
4
- export * from './hover'
1
+ export * from './colorsActive'
2
+ export * from './colorsDisabled'
3
+ export * from './colorsFocus'
4
+ export * from './colorsHover'
@@ -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 }
@@ -1,2 +1 @@
1
1
  export * from './state'
2
- export * from './stateKeys'
@@ -4,7 +4,7 @@ const stateProps = [
4
4
  'disabled',
5
5
  'focus',
6
6
  'hover',
7
- 'normal',
7
+ 'default',
8
8
  ] as const
9
9
 
10
10
  export type StateProps = (typeof stateProps)[number]
@@ -1,5 +1,3 @@
1
1
  export * from './textColor'
2
- export * from './textColorActive'
3
- export * from './textColorHover'
4
2
  export * from './textSize'
5
3
  export * from './textTag'
@@ -1,7 +0,0 @@
1
- import { fillProps } from '../fill'
2
-
3
- const svgFillProps = [...fillProps] as const
4
-
5
- export type SvgFillProps = (typeof svgFillProps)[number]
6
-
7
- export { svgFillProps }
@@ -1,11 +0,0 @@
1
- export type StateKeysDefault =
2
- | 'active'
3
- | 'activeFilled'
4
- | 'disabled'
5
- | 'error'
6
- | 'errorFilled'
7
- | 'filled'
8
- | 'normal'
9
- | 'readonly'
10
- | 'require'
11
- | 'success'
@@ -1,40 +0,0 @@
1
- const textColorActiveProps = [
2
- 'accentTextPrimary',
3
- 'accentTextSecondary',
4
- 'accentTextTertiary',
5
-
6
- 'primaryTextPrimary',
7
- 'primaryTextSecondary',
8
- 'primaryTextTertiary',
9
-
10
- 'secondaryTextPrimary',
11
- 'secondaryTextSecondary',
12
- 'secondaryTextTertiary',
13
-
14
- 'tertiaryTextPrimary',
15
- 'tertiaryTextSecondary',
16
-
17
- 'surfaceTextAccent',
18
- 'surfaceTextActive',
19
- 'surfaceTextDisabled',
20
- 'surfaceTextFocus',
21
- 'surfaceTextHover',
22
- 'surfaceTextInverse',
23
- 'surfaceTextPrimary',
24
- 'surfaceTextQuaternary',
25
- 'surfaceTextSecondary',
26
- 'surfaceTextTertiary',
27
-
28
- 'errorTextPrimary',
29
- 'errorTextSecondary',
30
-
31
- 'successTextPrimary',
32
- 'successTextSecondary',
33
-
34
- 'dangerTextPrimary',
35
- 'dangerTextSecondary',
36
- ] as const
37
-
38
- export type TextColorActiveProps = (typeof textColorActiveProps)[number]
39
-
40
- export { textColorActiveProps }
@@ -1,40 +0,0 @@
1
- const textColorHoverProps = [
2
- 'accentTextPrimary',
3
- 'accentTextSecondary',
4
- 'accentTextTertiary',
5
-
6
- 'primaryTextPrimary',
7
- 'primaryTextSecondary',
8
- 'primaryTextTertiary',
9
-
10
- 'secondaryTextPrimary',
11
- 'secondaryTextSecondary',
12
- 'secondaryTextTertiary',
13
-
14
- 'tertiaryTextPrimary',
15
- 'tertiaryTextSecondary',
16
-
17
- 'surfaceTextAccent',
18
- 'surfaceTextActive',
19
- 'surfaceTextDisabled',
20
- 'surfaceTextFocus',
21
- 'surfaceTextHover',
22
- 'surfaceTextInverse',
23
- 'surfaceTextPrimary',
24
- 'surfaceTextQuaternary',
25
- 'surfaceTextSecondary',
26
- 'surfaceTextTertiary',
27
-
28
- 'errorTextPrimary',
29
- 'errorTextSecondary',
30
-
31
- 'successTextPrimary',
32
- 'successTextSecondary',
33
-
34
- 'dangerTextPrimary',
35
- 'dangerTextSecondary',
36
- ] as const
37
-
38
- export type TextColorHoverProps = (typeof textColorHoverProps)[number]
39
-
40
- export { textColorHoverProps }
File without changes
File without changes
File without changes
File without changes