@itcase/types 1.0.38 → 1.0.40

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.40](https://github.com/ITCase/itcase-types/compare/v1.0.39...v1.0.40) (2025-08-22)
2
+
3
+ ## [1.0.39](https://github.com/ITCase/itcase-types/compare/v1.0.38...v1.0.39) (2025-08-22)
4
+
1
5
  ## [1.0.38](https://github.com/ITCase/itcase-types/compare/v1.0.37...v1.0.38) (2025-08-22)
2
6
 
3
7
  ## [1.0.37](https://github.com/ITCase/itcase-types/compare/v1.0.36...v1.0.37) (2025-08-22)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/types",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "unified type storage",
5
5
  "keywords": [
6
6
  "types"
@@ -1,12 +1,14 @@
1
+ const directionHVProps = ['vertical', 'horizontal'] as const
2
+
1
3
  const directionProps = [
2
4
  'row',
3
5
  'row-reverse',
4
6
  'column',
5
7
  'column-reverse',
6
- 'vertical',
7
- 'horizontal',
8
+ ...directionHVProps,
8
9
  ] as const
9
10
 
10
11
  export type DirectionProps = (typeof directionProps)[number]
12
+ export type DirectionHVProps = (typeof directionHVProps)[number]
11
13
 
12
- export { directionProps }
14
+ export { directionProps, directionHVProps }
@@ -0,0 +1,147 @@
1
+ // import { CSSProperties, ElementType, ReactNode } from 'react'
2
+
3
+ // import {
4
+ // AppearanceKeysDefault,
5
+ // FillProps,
6
+ // SvgFillProps,
7
+ // TextAlignProps,
8
+ // TextColorActiveProps,
9
+ // TextColorHoverProps,
10
+ // TextColorProps,
11
+ // TextGradientProps,
12
+ // TextStyleProps,
13
+ // TextWeightProps,
14
+ // TextWrapProps,
15
+ // TitleSizeProps,
16
+ // } from '@itcase/types'
17
+
18
+ // import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface'
19
+
20
+ // interface TitleThemeColor {
21
+ // [key: number | string | symbol]: any
22
+
23
+ // fill?: FillProps
24
+ // size?: TitleSizeProps
25
+ // sizeDesktop?: TitleSizeProps
26
+ // sizeMobile?: TitleSizeProps
27
+ // sizeTablet?: TitleSizeProps
28
+ // svgFill?: SvgFillProps
29
+ // svgFillHover?: SvgFillProps
30
+ // textColor?: TextColorProps
31
+ // textColorActive?: TextColorActiveProps
32
+ // textColorHover?: TextColorHoverProps
33
+ // textGradient?: TextGradientProps
34
+ // textStyle?: TextStyleProps
35
+ // textWeight?: TextWeightProps
36
+ // textWrap?: TextWrapProps
37
+ // weight?: TextWeightProps
38
+ // }
39
+
40
+ // type AppearanceKeys = AppearanceKeysDefault & {}
41
+
42
+ // export type TitleAppearanceType = {
43
+ // [key in AppearanceKeys]: TitleThemeColor
44
+ // }
45
+
46
+ // export interface TitleConfig {
47
+ // [key: number | string | symbol]: any
48
+
49
+ // appearance: TitleAppearanceType | undefined
50
+ // setAppearance: (newComponent: TitleAppearanceType) => void
51
+ // }
52
+
53
+ // export interface TitleProps extends TitleThemeColor, StyleAttributes {
54
+ // [key: number | string | symbol]: any
55
+
56
+ // after?: any
57
+ // afterWrapper?: any
58
+ // appearance?: AppearanceKeys
59
+ // before?: any
60
+ // beforeWrapper?: any
61
+ // children: ReactNode
62
+ // className?: string
63
+ // dataTour?: string
64
+ // direction?: string
65
+ // directionWrapper?: string
66
+ // mode?: string
67
+ // style?: CSSProperties
68
+ // tag?: ElementType
69
+ // text?: string
70
+ // textAlign?: TextAlignProps
71
+ // textTruncate?: string
72
+ // type?: string
73
+ // onClick?: () => void
74
+ // }
75
+
76
+ import { CSSProperties, ReactNode } from 'react'
77
+
78
+ import {
79
+ AppearanceKeysDefault,
80
+ AppearanceShapeKey,
81
+ AppearanceSizePxKey,
82
+ AppearanceStyleKey,
83
+ CompositeAppearanceSizePxKey,
84
+ TextAlignProps,
85
+ TextColorActiveHoverProps,
86
+ TextColorActiveProps,
87
+ TextColorHoverProps,
88
+ TextColorProps,
89
+ TextSizeProps,
90
+ TextTagProps,
91
+ TextWeightProps,
92
+ TextWrapProps,
93
+ } from '@itcase/types'
94
+
95
+ import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface'
96
+
97
+ /* List of props use in Appearance files ./appearance */
98
+ type TitleAppearanceProps = {
99
+ cursor?: string
100
+ size?: TextSizeProps
101
+ textAlign?: TextAlignProps
102
+ textColor?: TextColorProps
103
+ textColorActive?: TextColorActiveProps
104
+ textColorHover?: TextColorHoverProps
105
+ textColorHoverActive?: TextColorActiveHoverProps
106
+ textTruncate?: boolean
107
+ textWeight?: TextWeightProps
108
+ textWrap?: TextWrapProps
109
+ }
110
+
111
+ /* List of props use in component */
112
+ type TitleProps = StyleAttributes &
113
+ TitleAppearanceProps & {
114
+ after?: string
115
+ appearance?: CompositeAppearanceSizePxKey
116
+ before?: string
117
+ children?: ReactNode
118
+ className?: string
119
+ dataTestId?: string
120
+ dataTour?: string
121
+ htmlFor?: string
122
+ isActive: boolean
123
+ isDisabled: boolean
124
+ isSkeleton?: boolean
125
+ onClick: () => void
126
+ onDoubleClick: () => void
127
+ style?: CSSProperties
128
+ tag: TextTagProps
129
+ }
130
+
131
+ /* List of Appearance Keys */
132
+ type TitleAppearanceKey =
133
+ | AppearanceKeysDefault
134
+ | AppearanceShapeKey
135
+ | AppearanceSizePxKey
136
+ | AppearanceStyleKey
137
+
138
+ type TitleAppearance = {
139
+ [key in TitleAppearanceKey]?: TitleAppearanceProps
140
+ }
141
+
142
+ type TitleConfig = {
143
+ appearance: TitleAppearance
144
+ setAppearance: (appearanceConfig: TitleAppearance) => void
145
+ }
146
+
147
+ export type { TitleAppearance, TitleConfig, TitleProps }
@@ -0,0 +1,7 @@
1
+ import { fillHoverProps } from '../fill'
2
+
3
+ const svgFillHoverProps = [...fillHoverProps] as const
4
+
5
+ export type SvgFillHoverProps = (typeof svgFillHoverProps)[number]
6
+
7
+ export { svgFillHoverProps }