@itcase/ui-react-native 1.10.91 → 1.10.94

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.
Files changed (156) hide show
  1. package/.storybook-react-native/preview.tsx +68 -32
  2. package/.storybook-react-native-web/main.ts +9 -2
  3. package/.storybook-react-native-web/preview.tsx +63 -55
  4. package/package.json +16 -16
  5. package/src/components/Avatar/Avatar.interface.ts +5 -5
  6. package/src/components/Avatar/index.ts +4 -4
  7. package/src/components/Avatar/stories/AvatarStories.config.ts +1 -4
  8. package/src/components/Avatar/styles/avatarShape.ts +2 -2
  9. package/src/components/Avatar/styles/avatarSize.ts +2 -2
  10. package/src/components/AvatarStack/AvatarStack.interface.ts +4 -4
  11. package/src/components/AvatarStack/index.ts +2 -2
  12. package/src/components/AvatarStack/stories/AvatarStackDemo.stories.tsx +2 -3
  13. package/src/components/AvatarStack/stories/AvatarStackStories.config.ts +20 -7
  14. package/src/components/AvatarStack/styles/avatarStackDirection.ts +2 -2
  15. package/src/components/Badge/Badge.interface.ts +6 -6
  16. package/src/components/Badge/index.ts +6 -6
  17. package/src/components/Badge/stories/BadgeStories.config.ts +1 -1
  18. package/src/components/Badge/styles/badgeShape.ts +2 -2
  19. package/src/components/Badge/styles/badgeSize.ts +2 -2
  20. package/src/components/Badge/styles/badgeType.ts +2 -2
  21. package/src/components/Breadcrumbs/Breadcrumbs.interface.ts +2 -2
  22. package/src/components/Breadcrumbs/index.ts +2 -2
  23. package/src/components/Breadcrumbs/styles/breadcrumbsSize.ts +2 -2
  24. package/src/components/Button/Button.interface.ts +5 -5
  25. package/src/components/Button/index.ts +4 -4
  26. package/src/components/Button/stories/ButtonStories.config.ts +4 -4
  27. package/src/components/Button/styles/buttonShape.ts +2 -2
  28. package/src/components/Button/styles/buttonSize.ts +2 -2
  29. package/src/components/Button/styles/buttonText.ts +2 -2
  30. package/src/components/Cell/Cell.interface.ts +6 -6
  31. package/src/components/Cell/index.ts +6 -6
  32. package/src/components/Cell/styles/cellDirection.ts +2 -2
  33. package/src/components/Cell/styles/cellShape.ts +2 -2
  34. package/src/components/Cell/styles/cellSize.ts +2 -2
  35. package/src/components/Checkbox/Checkbox.interface.ts +8 -8
  36. package/src/components/Checkbox/index.ts +4 -4
  37. package/src/components/Checkbox/styles/checkboxAlign.ts +2 -2
  38. package/src/components/Checkbox/styles/checkboxShape.ts +2 -2
  39. package/src/components/Checkbox/styles/checkboxSize.ts +2 -2
  40. package/src/components/Checkmark/Checkmark.interface.ts +4 -4
  41. package/src/components/Checkmark/index.ts +2 -2
  42. package/src/components/Checkmark/stories/CheckmarkStories.config.ts +3 -4
  43. package/src/components/Checkmark/styles/checkmarkSize.ts +2 -2
  44. package/src/components/Chips/Chips.interface.ts +4 -4
  45. package/src/components/Chips/index.ts +4 -4
  46. package/src/components/Chips/stories/ChipsStories.config.ts +1 -1
  47. package/src/components/Chips/styles/chipsShape.ts +2 -2
  48. package/src/components/Chips/styles/chipsSize.ts +2 -2
  49. package/src/components/Choice/Choice.interface.ts +6 -6
  50. package/src/components/Choice/index.ts +2 -2
  51. package/src/components/Choice/stories/ChoiceStories.config.tsx +3 -4
  52. package/src/components/Choice/styles/choiceSize.ts +2 -2
  53. package/src/components/Code/index.ts +4 -4
  54. package/src/components/Code/stories/CodeStories.config.ts +3 -4
  55. package/src/components/Code/styles/codeSize.ts +2 -2
  56. package/src/components/Code/styles/codeVariant.ts +2 -2
  57. package/src/components/ColorInput/ColorInput.interface.ts +2 -2
  58. package/src/components/ColorInput/index.ts +2 -2
  59. package/src/components/ColorInput/stories/ColorInputStories.config.tsx +3 -4
  60. package/src/components/ColorInput/styles/colorInputSize.ts +2 -2
  61. package/src/components/Divider/Divider.interface.ts +4 -4
  62. package/src/components/Divider/index.ts +4 -4
  63. package/src/components/Divider/styles/dividerDirection.ts +2 -2
  64. package/src/components/Divider/styles/dividerSize.ts +2 -2
  65. package/src/components/Dot/Dot.interface.ts +4 -4
  66. package/src/components/Dot/index.ts +3 -3
  67. package/src/components/Dot/styles/dotShape.ts +2 -2
  68. package/src/components/Dot/styles/dotSize.ts +2 -2
  69. package/src/components/Drawer/Drawer.interface.ts +2 -2
  70. package/src/components/Dropdown/Dropdown.interface.ts +6 -6
  71. package/src/components/Dropdown/index.ts +3 -3
  72. package/src/components/Dropdown/styles/dropdownItemSize.ts +2 -2
  73. package/src/components/Group/Group.interface.ts +8 -8
  74. package/src/components/Group/index.ts +8 -8
  75. package/src/components/Group/styles/groupAlign.ts +2 -2
  76. package/src/components/Group/styles/groupDirection.ts +2 -2
  77. package/src/components/Group/styles/groupJustify.ts +2 -2
  78. package/src/components/Group/styles/groupWrap.ts +2 -2
  79. package/src/components/Icon/Icon.interface.ts +10 -10
  80. package/src/components/Icon/index.ts +4 -4
  81. package/src/components/Icon/stories/IconStories.config.ts +1 -1
  82. package/src/components/Icon/styles/iconShape.ts +2 -2
  83. package/src/components/Icon/styles/iconSize.ts +5 -5
  84. package/src/components/Input/Input.interface.ts +4 -4
  85. package/src/components/Input/index.ts +4 -4
  86. package/src/components/Input/stories/InputStories.config.tsx +3 -4
  87. package/src/components/Input/styles/inputShape.ts +2 -2
  88. package/src/components/Input/styles/inputSize.ts +2 -2
  89. package/src/components/InputNumber/InputNumber.interface.ts +8 -8
  90. package/src/components/InputNumber/index.ts +4 -4
  91. package/src/components/InputNumber/styles/inputNumberShape.ts +2 -2
  92. package/src/components/InputNumber/styles/inputNumberSize.ts +2 -2
  93. package/src/components/InputPassword/InputPassword.interface.ts +6 -6
  94. package/src/components/InputPassword/index.ts +4 -4
  95. package/src/components/InputPassword/styles/inputPasswordShape.ts +2 -2
  96. package/src/components/InputPassword/styles/inputPasswordSize.ts +2 -2
  97. package/src/components/Label/Label.interface.ts +2 -2
  98. package/src/components/Label/index.ts +2 -2
  99. package/src/components/Label/stories/LabelStories.config.ts +1 -1
  100. package/src/components/Label/styles/labelShape.ts +2 -2
  101. package/src/components/List/List.interface.ts +2 -2
  102. package/src/components/List/index.ts +4 -4
  103. package/src/components/List/styles/listDirection.ts +2 -2
  104. package/src/components/List/styles/listSize.ts +2 -2
  105. package/src/components/Loader/Loader.interface.ts +4 -4
  106. package/src/components/Loader/index.ts +4 -4
  107. package/src/components/Loader/stories/LoaderStories.config.ts +3 -4
  108. package/src/components/Loader/styles/loaderShape.ts +2 -2
  109. package/src/components/Loader/styles/loaderSize.ts +2 -2
  110. package/src/components/Logo/Logo.interface.ts +4 -4
  111. package/src/components/Logo/index.ts +3 -3
  112. package/src/components/Logo/styles/logoAlign.ts +2 -2
  113. package/src/components/Logo/styles/logoSize.ts +2 -2
  114. package/src/components/MenuItem/MenuItem.interface.ts +4 -4
  115. package/src/components/MenuItem/index.ts +4 -4
  116. package/src/components/MenuItem/styles/menuItemShape.ts +2 -2
  117. package/src/components/MenuItem/styles/menuItemSize.ts +2 -2
  118. package/src/components/Modal/Modal.interface.ts +2 -2
  119. package/src/components/Pagination/Pagination.interface.ts +3 -3
  120. package/src/components/Pagination/index.ts +2 -2
  121. package/src/components/Pagination/styles/paginationSize.ts +2 -2
  122. package/src/components/Radio/Radio.interface.ts +2 -2
  123. package/src/components/Radio/index.ts +2 -2
  124. package/src/components/Radio/styles/radioSize.ts +2 -2
  125. package/src/components/Search/stories/SearchStories.config.ts +3 -4
  126. package/src/components/Search/styles/searchShape.ts +2 -2
  127. package/src/components/Search/styles/searchSize.ts +2 -2
  128. package/src/components/Segmented/Segmented.interface.ts +6 -6
  129. package/src/components/Segmented/index.ts +4 -4
  130. package/src/components/Segmented/styles/segmentedShape.ts +2 -2
  131. package/src/components/Segmented/styles/segmentedSize.ts +2 -2
  132. package/src/components/Select/Select.interface.ts +2 -2
  133. package/src/components/Select/index.ts +2 -2
  134. package/src/components/Select/stories/SelectStories.config.ts +1 -4
  135. package/src/components/Select/styles/selectSize.ts +2 -2
  136. package/src/components/Switch/Switch.interface.ts +4 -4
  137. package/src/components/Switch/index.ts +4 -4
  138. package/src/components/Switch/stories/SwitchStories.config.tsx +3 -4
  139. package/src/components/Switch/styles/switchAlign.ts +2 -2
  140. package/src/components/Switch/styles/switchSize.ts +2 -2
  141. package/src/components/Tab/Tab.interface.ts +2 -2
  142. package/src/components/Tab/index.ts +2 -2
  143. package/src/components/Tab/styles/tabSize.ts +2 -2
  144. package/src/components/Textarea/Textarea.interface.ts +4 -4
  145. package/src/components/Textarea/index.ts +4 -4
  146. package/src/components/Textarea/styles/textareaShape.ts +2 -2
  147. package/src/components/Textarea/styles/textareaSize.ts +2 -2
  148. package/src/components/Tile/Tile.interface.ts +4 -4
  149. package/src/components/Tile/index.ts +4 -4
  150. package/src/components/Tile/styles/tileShape.ts +2 -2
  151. package/src/components/Tile/styles/tileSize.ts +2 -2
  152. package/src/components/Warning/Warning.interface.ts +4 -4
  153. package/src/components/Warning/index.ts +4 -4
  154. package/src/components/Warning/styles/warningShape.ts +2 -2
  155. package/src/components/Warning/styles/warningSize.ts +2 -2
  156. package/src/index.tsx +118 -118
@@ -24,7 +24,7 @@ const codeSizeList = getVariantsPropsList(
24
24
  'code__input_size_',
25
25
  )
26
26
 
27
- type codeSizePropsType = (typeof codeSizeList)[number]
27
+ type CodeSizePropsType = (typeof codeSizeList)[number]
28
28
 
29
29
  export { codeInputSizeStyles, codeSizeList, codeSizeStyles }
30
- export type { codeSizePropsType }
30
+ export type { CodeSizePropsType }
@@ -13,7 +13,7 @@ const codeVariantStyles = StyleSheet.create({
13
13
 
14
14
  const codeVariantList = getVariantsPropsList(codeVariantStyles, 'code_variant_')
15
15
 
16
- type codeVariantPropsType = (typeof codeVariantList)[number]
16
+ type CodeVariantPropsType = (typeof codeVariantList)[number]
17
17
 
18
18
  export { codeVariantList, codeVariantStyles }
19
- export type { codeVariantPropsType }
19
+ export type { CodeVariantPropsType }
@@ -12,7 +12,7 @@ import type {
12
12
  } from '@itcase/types-ui'
13
13
 
14
14
  import type { ComponentGalleryArgs } from '../../storybook'
15
- import type { colorInputSizePropsType } from './styles/colorInputSize'
15
+ import type { ColorInputSizePropsType } from './styles/colorInputSize'
16
16
 
17
17
  interface ColorInputAppearanceProps {
18
18
  borderColor?: BorderColorProps
@@ -21,7 +21,7 @@ interface ColorInputAppearanceProps {
21
21
  placeholder?: string
22
22
  placeholderTextColor?: TextColorProps
23
23
  shape?: ShapeProps
24
- size?: colorInputSizePropsType
24
+ size?: ColorInputSizePropsType
25
25
  textColor?: TextColorProps
26
26
  textSize?: TextSizeProps
27
27
  }
@@ -8,7 +8,7 @@ import type {
8
8
  ColorInputProps,
9
9
  } from './ColorInput.interface'
10
10
  import { colorInputSizeList } from './styles/colorInputSize'
11
- import type { colorInputSizePropsType } from './styles/colorInputSize'
11
+ import type { ColorInputSizePropsType } from './styles/colorInputSize'
12
12
 
13
13
  export {
14
14
  ColorInput,
@@ -22,5 +22,5 @@ export type {
22
22
  ColorInputAppearanceKey,
23
23
  ColorInputConfig,
24
24
  ColorInputProps,
25
- colorInputSizePropsType,
25
+ ColorInputSizePropsType,
26
26
  }
@@ -16,10 +16,9 @@ import type {
16
16
  ColorInputProps,
17
17
  } from '../ColorInput.interface'
18
18
 
19
- const colorInputSizeKeys = Object.keys(colorInputAppearanceSize).filter(
20
- (value): value is keyof typeof colorInputAppearanceSize =>
21
- value in colorInputAppearanceSize,
22
- )
19
+ const colorInputSizeKeys = Object.keys(colorInputAppearanceSize) as Array<
20
+ keyof typeof colorInputAppearanceSize
21
+ >
23
22
 
24
23
  const colorInputGallery = createComponentGallery<ColorInputAppearanceKey>({
25
24
  size: colorInputAppearanceSize,
@@ -52,7 +52,7 @@ const colorInputSizeStyleList = getVariantsPropsList(
52
52
  'colorInput_size_',
53
53
  )
54
54
 
55
- type colorInputSizePropsType = (typeof colorInputSizeList)[number]
55
+ type ColorInputSizePropsType = (typeof colorInputSizeList)[number]
56
56
 
57
57
  export { colorInputSizeList, colorInputSizeStyleList, colorInputSizeStyles }
58
- export type { colorInputSizePropsType }
58
+ export type { ColorInputSizePropsType }
@@ -8,13 +8,13 @@ import type {
8
8
  WidthProps,
9
9
  } from '@itcase/types-ui'
10
10
 
11
- import type { dividerDirectionPropsType } from './styles/dividerDirection'
12
- import type { dividerSizePropsType } from './styles/dividerSize'
11
+ import type { DividerDirectionPropsType } from './styles/dividerDirection'
12
+ import type { DividerSizePropsType } from './styles/dividerSize'
13
13
 
14
14
  interface DividerAppearanceProps {
15
- direction?: dividerDirectionPropsType
15
+ direction?: DividerDirectionPropsType
16
16
  fill?: FillProps
17
- size?: dividerSizePropsType
17
+ size?: DividerSizePropsType
18
18
  width?: WidthProps
19
19
  }
20
20
 
@@ -7,9 +7,9 @@ import type {
7
7
  DividerProps,
8
8
  } from './Divider.interface'
9
9
  import { dividerDirectionList } from './styles/dividerDirection'
10
- import type { dividerDirectionPropsType } from './styles/dividerDirection'
10
+ import type { DividerDirectionPropsType } from './styles/dividerDirection'
11
11
  import { dividerSizeList } from './styles/dividerSize'
12
- import type { dividerSizePropsType } from './styles/dividerSize'
12
+ import type { DividerSizePropsType } from './styles/dividerSize'
13
13
 
14
14
  export {
15
15
  Divider,
@@ -22,7 +22,7 @@ export type {
22
22
  DividerAppearance,
23
23
  DividerAppearanceKey,
24
24
  DividerConfig,
25
- dividerDirectionPropsType,
25
+ DividerDirectionPropsType,
26
26
  DividerProps,
27
- dividerSizePropsType,
27
+ DividerSizePropsType,
28
28
  }
@@ -17,7 +17,7 @@ const dividerDirectionList = getVariantsPropsList(
17
17
  'divider_direction_',
18
18
  )
19
19
 
20
- type dividerDirectionPropsType = (typeof dividerDirectionList)[number]
20
+ type DividerDirectionPropsType = (typeof dividerDirectionList)[number]
21
21
 
22
22
  export { dividerDirectionList, dividerDirectionStyles }
23
- export type { dividerDirectionPropsType }
23
+ export type { DividerDirectionPropsType }
@@ -26,7 +26,7 @@ const dividerSizeStyles = StyleSheet.create({
26
26
 
27
27
  const dividerSizeList = ['l', 'm', 's'] as const
28
28
 
29
- type dividerSizePropsType = (typeof dividerSizeList)[number]
29
+ type DividerSizePropsType = (typeof dividerSizeList)[number]
30
30
 
31
31
  export { dividerSizeList, dividerSizeStyles }
32
- export type { dividerSizePropsType }
32
+ export type { DividerSizePropsType }
@@ -3,15 +3,15 @@ import type { StyleProp, ViewStyle } from 'react-native'
3
3
 
4
4
  import type { BorderColorProps, FillProps } from '@itcase/types-ui'
5
5
 
6
- import type { dotShapePropsType } from './styles/dotShape'
7
- import type { dotSizePropsType } from './styles/dotSize'
6
+ import type { DotShapePropsType } from './styles/dotShape'
7
+ import type { DotSizePropsType } from './styles/dotSize'
8
8
 
9
9
  interface DotProps {
10
10
  borderColor?: BorderColorProps
11
11
  children?: ReactNode
12
12
  fill?: FillProps
13
- shape?: dotShapePropsType
14
- size?: dotSizePropsType
13
+ shape?: DotShapePropsType
14
+ size?: DotSizePropsType
15
15
  style?: StyleProp<ViewStyle>
16
16
  }
17
17
 
@@ -1,9 +1,9 @@
1
1
  import { Dot } from './Dot'
2
2
  import type { DotProps } from './Dot.interface'
3
3
  import { dotShapeList } from './styles/dotShape'
4
- import type { dotShapePropsType } from './styles/dotShape'
4
+ import type { DotShapePropsType } from './styles/dotShape'
5
5
  import { dotSizeList } from './styles/dotSize'
6
- import type { dotSizePropsType } from './styles/dotSize'
6
+ import type { DotSizePropsType } from './styles/dotSize'
7
7
 
8
8
  export { Dot, dotShapeList, dotSizeList }
9
- export type { DotProps, dotShapePropsType, dotSizePropsType }
9
+ export type { DotProps, DotShapePropsType, DotSizePropsType }
@@ -16,7 +16,7 @@ const dotShapeStyles = StyleSheet.create({
16
16
 
17
17
  const dotShapeList = getVariantsPropsList(dotShapeStyles, 'dot_shape_')
18
18
 
19
- type dotShapePropsType = (typeof dotShapeList)[number]
19
+ type DotShapePropsType = (typeof dotShapeList)[number]
20
20
 
21
21
  export { dotShapeList, dotShapeStyles }
22
- export type { dotShapePropsType }
22
+ export type { DotShapePropsType }
@@ -19,7 +19,7 @@ const dotSizeStyles = StyleSheet.create({
19
19
 
20
20
  const dotSizeList = getVariantsPropsList(dotSizeStyles, 'dot_size_')
21
21
 
22
- type dotSizePropsType = (typeof dotSizeList)[number]
22
+ type DotSizePropsType = (typeof dotSizeList)[number]
23
23
 
24
24
  export { dotSizeList, dotSizeStyles }
25
- export type { dotSizePropsType }
25
+ export type { DotSizePropsType }
@@ -14,7 +14,7 @@ import type {
14
14
  TitleSizeProps,
15
15
  } from '@itcase/types-ui'
16
16
 
17
- import type { dividerSizePropsType } from '../Divider/styles/dividerSize'
17
+ import type { DividerSizePropsType } from '../Divider/styles/dividerSize'
18
18
  import type { IconProps } from '../Icon/Icon.interface'
19
19
 
20
20
  type DrawerPosition = 'bottom' | 'left' | 'right'
@@ -24,7 +24,7 @@ interface DrawerAppearanceProps {
24
24
  descTextSize?: TextSizeProps
25
25
  divider?: boolean
26
26
  dividerFill?: FillProps
27
- dividerSize?: dividerSizePropsType
27
+ dividerSize?: DividerSizePropsType
28
28
  fill?: FillProps
29
29
  iconCloseAppearance?: IconProps['appearance']
30
30
  titleTextColor?: TextColorProps
@@ -21,9 +21,9 @@ import type {
21
21
  } from '@itcase/types-ui'
22
22
 
23
23
  import type { BadgeProps } from '../Badge/Badge.interface'
24
- import type { dividerSizePropsType } from '../Divider/styles/dividerSize'
24
+ import type { DividerSizePropsType } from '../Divider/styles/dividerSize'
25
25
  import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
26
- import type { dropdownItemSizePropsType } from './styles/dropdownItemSize'
26
+ import type { DropdownItemSizePropsType } from './styles/dropdownItemSize'
27
27
 
28
28
  interface DropdownAppearanceProps {
29
29
  badgeAppearance?: BadgeProps['appearance']
@@ -32,7 +32,7 @@ interface DropdownAppearanceProps {
32
32
  badgeTextSize?: BadgeProps['badgeTextSize']
33
33
  borderColor?: BorderColorProps
34
34
  dividerFill?: FillProps
35
- dividerSize?: dividerSizePropsType
35
+ dividerSize?: DividerSizePropsType
36
36
  elevation?: string
37
37
  emptyMessageTextColor?: TextColorProps
38
38
  emptyMessageTextSize?: TextSizeProps
@@ -50,7 +50,7 @@ interface DropdownAppearanceProps {
50
50
  labelTextColorActive?: TextColorProps
51
51
  labelTextSize?: TextSizeProps
52
52
  shape?: ShapeProps
53
- size?: dropdownItemSizePropsType
53
+ size?: DropdownItemSizePropsType
54
54
  }
55
55
 
56
56
  interface DropdownItemAppearanceProps {
@@ -62,7 +62,7 @@ interface DropdownItemAppearanceProps {
62
62
  descTextColor?: TextColorProps
63
63
  descTextSize?: TextSizeProps
64
64
  dividerFill?: FillProps
65
- dividerSize?: dividerSizePropsType
65
+ dividerSize?: DividerSizePropsType
66
66
  emptyMessageTextColor?: TextColorProps
67
67
  emptyMessageTextSize?: TextSizeProps
68
68
  fill?: FillProps
@@ -80,7 +80,7 @@ interface DropdownItemAppearanceProps {
80
80
  labelTextColorActive?: TextColorProps
81
81
  labelTextSize?: TextSizeProps
82
82
  shape?: ShapeProps
83
- size?: dropdownItemSizePropsType
83
+ size?: DropdownItemSizePropsType
84
84
  width?: WidthProps
85
85
  }
86
86
 
@@ -17,7 +17,7 @@ import type {
17
17
  import { DropdownItem, dropdownItemConfig } from './DropdownItem'
18
18
  import { dropdownItemAppearance } from './DropdownItem.appearance'
19
19
  import { dropdownItemSizeList } from './styles/dropdownItemSize'
20
- import type { dropdownItemSizePropsType } from './styles/dropdownItemSize'
20
+ import type { DropdownItemSizePropsType } from './styles/dropdownItemSize'
21
21
 
22
22
  export {
23
23
  Dropdown,
@@ -40,8 +40,8 @@ export type {
40
40
  DropdownItemAppearance,
41
41
  DropdownItemConfig,
42
42
  DropdownItemProps,
43
- dropdownItemSizePropsType,
43
+ DropdownItemSizePropsType,
44
44
  DropdownListItem,
45
45
  DropdownProps,
46
- dropdownItemSizePropsType as dropdownSizePropsType,
46
+ DropdownItemSizePropsType as DropdownSizePropsType,
47
47
  }
@@ -30,7 +30,7 @@ const dropdownItemSizeList = getVariantsPropsList(
30
30
  'dropdown__item_size_',
31
31
  )
32
32
 
33
- type dropdownItemSizePropsType = (typeof dropdownItemSizeList)[number]
33
+ type DropdownItemSizePropsType = (typeof dropdownItemSizeList)[number]
34
34
 
35
35
  export { dropdownItemSizeList, dropdownItemSizeStyles }
36
- export type { dropdownItemSizePropsType }
36
+ export type { DropdownItemSizePropsType }
@@ -12,10 +12,10 @@ import type {
12
12
  } from '@itcase/types-ui'
13
13
 
14
14
  import type { GapProps } from '../../styles/gap'
15
- import type { groupAlignItemsPropsType } from './styles/groupAlign'
16
- import type { groupDirectionPropsType } from './styles/groupDirection'
17
- import type { groupJustifyContentPropsType } from './styles/groupJustify'
18
- import type { groupWrapPropsType } from './styles/groupWrap'
15
+ import type { GroupAlignItemsPropsType } from './styles/groupAlign'
16
+ import type { GroupDirectionPropsType } from './styles/groupDirection'
17
+ import type { GroupJustifyContentPropsType } from './styles/groupJustify'
18
+ import type { GroupWrapPropsType } from './styles/groupWrap'
19
19
 
20
20
  interface GroupAppearanceProps {
21
21
  borderColor?: BorderColorProps
@@ -34,14 +34,14 @@ interface GroupProps extends GroupAppearanceProps {
34
34
  isActive?: boolean
35
35
  isDisabled?: boolean
36
36
  onPress?: (event: GestureResponderEvent) => void
37
- alignItems?: groupAlignItemsPropsType
37
+ alignItems?: GroupAlignItemsPropsType
38
38
  appearance?: GroupAppearanceKey
39
39
  children?: ReactNode
40
- direction?: groupDirectionPropsType
40
+ direction?: GroupDirectionPropsType
41
41
  gap?: GapProps
42
- justifyContent?: groupJustifyContentPropsType
42
+ justifyContent?: GroupJustifyContentPropsType
43
43
  style?: StyleProp<ViewStyle>
44
- wrap?: groupWrapPropsType
44
+ wrap?: GroupWrapPropsType
45
45
  }
46
46
 
47
47
  export type {
@@ -7,13 +7,13 @@ import type {
7
7
  GroupProps,
8
8
  } from './Group.interface'
9
9
  import { groupAlignItemsList } from './styles/groupAlign'
10
- import type { groupAlignItemsPropsType } from './styles/groupAlign'
10
+ import type { GroupAlignItemsPropsType } from './styles/groupAlign'
11
11
  import { groupDirectionList } from './styles/groupDirection'
12
- import type { groupDirectionPropsType } from './styles/groupDirection'
12
+ import type { GroupDirectionPropsType } from './styles/groupDirection'
13
13
  import { groupJustifyContentList } from './styles/groupJustify'
14
- import type { groupJustifyContentPropsType } from './styles/groupJustify'
14
+ import type { GroupJustifyContentPropsType } from './styles/groupJustify'
15
15
  import { groupWrapList } from './styles/groupWrap'
16
- import type { groupWrapPropsType } from './styles/groupWrap'
16
+ import type { GroupWrapPropsType } from './styles/groupWrap'
17
17
 
18
18
  export {
19
19
  Group,
@@ -25,12 +25,12 @@ export {
25
25
  groupWrapList,
26
26
  }
27
27
  export type {
28
- groupAlignItemsPropsType,
28
+ GroupAlignItemsPropsType,
29
29
  GroupAppearance,
30
30
  GroupAppearanceKey,
31
31
  GroupConfig,
32
- groupDirectionPropsType,
33
- groupJustifyContentPropsType,
32
+ GroupDirectionPropsType,
33
+ GroupJustifyContentPropsType,
34
34
  GroupProps,
35
- groupWrapPropsType,
35
+ GroupWrapPropsType,
36
36
  }
@@ -31,7 +31,7 @@ const groupAlignItemsList = getVariantsPropsList(
31
31
  'group_align_',
32
32
  )
33
33
 
34
- type groupAlignItemsPropsType = (typeof groupAlignItemsList)[number]
34
+ type GroupAlignItemsPropsType = (typeof groupAlignItemsList)[number]
35
35
 
36
36
  export { groupAlignItemsList, groupAlignStyles }
37
- export type { groupAlignItemsPropsType }
37
+ export type { GroupAlignItemsPropsType }
@@ -34,7 +34,7 @@ const groupDirectionList = getVariantsPropsList(
34
34
  'group_direction_',
35
35
  )
36
36
 
37
- type groupDirectionPropsType = (typeof groupDirectionList)[number]
37
+ type GroupDirectionPropsType = (typeof groupDirectionList)[number]
38
38
 
39
39
  export { groupDirectionList, groupDirectionStyles }
40
- export type { groupDirectionPropsType }
40
+ export type { GroupDirectionPropsType }
@@ -34,7 +34,7 @@ const groupJustifyContentList = getVariantsPropsList(
34
34
  'group_justify_',
35
35
  )
36
36
 
37
- type groupJustifyContentPropsType = (typeof groupJustifyContentList)[number]
37
+ type GroupJustifyContentPropsType = (typeof groupJustifyContentList)[number]
38
38
 
39
39
  export { groupJustifyContentList, groupJustifyStyles }
40
- export type { groupJustifyContentPropsType }
40
+ export type { GroupJustifyContentPropsType }
@@ -16,7 +16,7 @@ const groupWrapStyles = StyleSheet.create({
16
16
 
17
17
  const groupWrapList = getVariantsPropsList(groupWrapStyles, 'group_wrap_')
18
18
 
19
- type groupWrapPropsType = (typeof groupWrapList)[number]
19
+ type GroupWrapPropsType = (typeof groupWrapList)[number]
20
20
 
21
21
  export { groupWrapList, groupWrapStyles }
22
- export type { groupWrapPropsType }
22
+ export type { GroupWrapPropsType }
@@ -26,12 +26,12 @@ import type {
26
26
 
27
27
  import type { ComponentGalleryArgs } from '../../storybook'
28
28
  import type { BadgeProps } from '../Badge/Badge.interface'
29
- import type { badgeTypePropsType } from '../Badge/styles/badgeType'
30
- import type { iconShapePropsType } from './styles/iconShape'
29
+ import type { BadgeTypePropsType } from '../Badge/styles/badgeType'
30
+ import type { IconShapePropsType } from './styles/iconShape'
31
31
  import type {
32
- iconFillSizePropsType,
33
- iconGlyphSizePropsType,
34
- iconSizePropsType,
32
+ IconFillSizePropsType,
33
+ IconGlyphSizePropsType,
34
+ IconSizePropsType,
35
35
  } from './styles/iconSize'
36
36
 
37
37
  type SvgIconComponent = ComponentType<{
@@ -52,13 +52,13 @@ interface IconAppearanceProps {
52
52
  borderColor?: BorderColorProps
53
53
  fill?: FillProps
54
54
  fillHover?: FillHoverProps
55
- fillSize?: FillSizeProps | iconSizePropsType
55
+ fillSize?: FillSizeProps | IconSizePropsType
56
56
  iconFill?: ItemFillActiveProps
57
57
  iconFillActive?: ItemFillActiveProps
58
58
  iconFillDisabled?: ItemFillActiveProps
59
- iconSize?: iconGlyphSizePropsType
59
+ iconSize?: IconGlyphSizePropsType
60
60
  shape?: ShapeProps
61
- size?: iconFillSizePropsType | iconGlyphSizePropsType
61
+ size?: IconFillSizePropsType | IconGlyphSizePropsType
62
62
  }
63
63
 
64
64
  type IconConfig = AppearanceConfig<AppearanceKeysDefault, IconAppearanceProps>
@@ -88,14 +88,14 @@ interface IconProps extends IconAppearanceProps {
88
88
  onPress?: (event: GestureResponderEvent) => void
89
89
  appearance?: CompositeAppearanceIconKeys
90
90
  badgeCount?: number | string
91
- badgeType?: badgeTypePropsType
91
+ badgeType?: BadgeTypePropsType
92
92
  badgeValue?: number | string
93
93
  dataTestId?: string
94
94
  fillColor?: ColorValue
95
95
  iconColor?: ColorValue
96
96
  iconUrl?: string
97
97
  imageSrc?: string
98
- shape?: iconShapePropsType
98
+ shape?: IconShapePropsType
99
99
  style?: StyleProp<ViewStyle>
100
100
  SVGIcon?: SvgIconComponent
101
101
  SvgImage?: SvgIconComponent
@@ -8,9 +8,9 @@ import type {
8
8
  SvgIconComponent,
9
9
  } from './Icon.interface'
10
10
  import { iconShapeList } from './styles/iconShape'
11
- import type { iconShapePropsType } from './styles/iconShape'
11
+ import type { IconShapePropsType } from './styles/iconShape'
12
12
  import { iconSizeList } from './styles/iconSize'
13
- import type { iconSizePropsType } from './styles/iconSize'
13
+ import type { IconSizePropsType } from './styles/iconSize'
14
14
 
15
15
  export { Icon, iconAppearance, iconConfig, iconShapeList, iconSizeList }
16
16
  export type {
@@ -19,7 +19,7 @@ export type {
19
19
  IconAppearanceProps,
20
20
  IconConfig,
21
21
  IconProps,
22
- iconShapePropsType,
23
- iconSizePropsType,
22
+ IconShapePropsType,
23
+ IconSizePropsType,
24
24
  SvgIconComponent,
25
25
  }
@@ -64,7 +64,7 @@ type IconSizeKey = keyof typeof iconAppearanceSize
64
64
  const isIconSizeKey = (value: string): value is IconSizeKey =>
65
65
  value in iconAppearanceSize
66
66
 
67
- const iconSizeKeys = Object.keys(iconAppearanceSize).filter(isIconSizeKey)
67
+ const iconSizeKeys = Object.keys(iconAppearanceSize) as IconSizeKey[]
68
68
 
69
69
  const getGalleryIcon = (appearanceSize: string = 'size24_24') => {
70
70
  if (!isIconSizeKey(appearanceSize)) {
@@ -25,7 +25,7 @@ const iconShapeStyles = StyleSheet.create({
25
25
 
26
26
  const iconShapeList = getVariantsPropsList(iconShapeStyles, 'icon_shape_')
27
27
 
28
- type iconShapePropsType = (typeof iconShapeList)[number]
28
+ type IconShapePropsType = (typeof iconShapeList)[number]
29
29
 
30
30
  export { iconShapeList, iconShapeStyles }
31
- export type { iconShapePropsType }
31
+ export type { IconShapePropsType }
@@ -41,8 +41,8 @@ const iconGlyphSizeList = getVariantsPropsList(
41
41
  'icon_size_',
42
42
  )
43
43
 
44
- type iconFillSizePropsType = `${(typeof ICON_FILL_SIZES)[number]}`
45
- type iconGlyphSizePropsType = `${(typeof ICON_GLYPH_SIZES)[number]}`
44
+ type IconFillSizePropsType = `${(typeof ICON_FILL_SIZES)[number]}`
45
+ type IconGlyphSizePropsType = `${(typeof ICON_GLYPH_SIZES)[number]}`
46
46
 
47
47
  export {
48
48
  iconFillSizeList,
@@ -52,7 +52,7 @@ export {
52
52
  iconFillSizeList as iconSizeList,
53
53
  }
54
54
  export type {
55
- iconFillSizePropsType,
56
- iconGlyphSizePropsType,
57
- iconFillSizePropsType as iconSizePropsType,
55
+ IconFillSizePropsType,
56
+ IconGlyphSizePropsType,
57
+ IconFillSizePropsType as IconSizePropsType,
58
58
  }
@@ -19,16 +19,16 @@ import type {
19
19
  } from '@itcase/types-ui'
20
20
 
21
21
  import type { ComponentGalleryArgs } from '../../storybook'
22
- import type { inputShapePropsType } from './styles/inputShape'
23
- import type { inputSizePropsType } from './styles/inputSize'
22
+ import type { InputShapePropsType } from './styles/inputShape'
23
+ import type { InputSizePropsType } from './styles/inputSize'
24
24
 
25
25
  interface InputAppearanceProps {
26
26
  borderColor?: BorderColorProps
27
27
  caret?: FillProps
28
28
  fill?: FillProps
29
29
  placeholderTextColor?: TextColorProps
30
- shape?: inputShapePropsType
31
- size?: inputSizePropsType
30
+ shape?: InputShapePropsType
31
+ size?: InputSizePropsType
32
32
  textColor?: TextColorProps
33
33
  textSize?: TextSizeProps
34
34
  textWeight?: TextWeightProps
@@ -11,9 +11,9 @@ import type {
11
11
  InputProps,
12
12
  } from './Input.interface'
13
13
  import { inputShapeList } from './styles/inputShape'
14
- import type { inputShapePropsType } from './styles/inputShape'
14
+ import type { InputShapePropsType } from './styles/inputShape'
15
15
  import { inputSizeList } from './styles/inputSize'
16
- import type { inputSizePropsType } from './styles/inputSize'
16
+ import type { InputSizePropsType } from './styles/inputSize'
17
17
 
18
18
  export { Input, inputAppearance, inputConfig, inputShapeList, inputSizeList }
19
19
  export type {
@@ -25,6 +25,6 @@ export type {
25
25
  InputAppearanceStyle,
26
26
  InputConfig,
27
27
  InputProps,
28
- inputShapePropsType,
29
- inputSizePropsType,
28
+ InputShapePropsType,
29
+ InputSizePropsType,
30
30
  }
@@ -13,10 +13,9 @@ import { inputAppearanceSuccess } from '../appearance/inputSuccess'
13
13
  import { Input } from '../Input'
14
14
  import type { InputAppearanceKey, InputProps } from '../Input.interface'
15
15
 
16
- const inputSizeKeys = Object.keys(inputAppearanceSize).filter(
17
- (value): value is keyof typeof inputAppearanceSize =>
18
- value in inputAppearanceSize,
19
- )
16
+ const inputSizeKeys = Object.keys(inputAppearanceSize) as Array<
17
+ keyof typeof inputAppearanceSize
18
+ >
20
19
 
21
20
  const inputGallery = createComponentGallery<InputAppearanceKey>({
22
21
  size: inputAppearanceSize,
@@ -25,7 +25,7 @@ const inputShapeStyles = StyleSheet.create({
25
25
 
26
26
  const inputShapeList = getVariantsPropsList(inputShapeStyles, 'input_shape_')
27
27
 
28
- type inputShapePropsType = (typeof inputShapeList)[number]
28
+ type InputShapePropsType = (typeof inputShapeList)[number]
29
29
 
30
30
  export { inputShapeList, inputShapeStyles }
31
- export type { inputShapePropsType }
31
+ export type { InputShapePropsType }
@@ -27,7 +27,7 @@ const inputSizeStyles = StyleSheet.create({
27
27
 
28
28
  const inputSizeList = getVariantsPropsList(inputSizeStyles, 'input_size_')
29
29
 
30
- type inputSizePropsType = (typeof inputSizeList)[number]
30
+ type InputSizePropsType = (typeof inputSizeList)[number]
31
31
 
32
32
  export { inputSizeList, inputSizeStyles }
33
- export type { inputSizePropsType }
33
+ export type { InputSizePropsType }