@itcase/ui-react-native 1.10.89 → 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 +62 -40
  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
@@ -19,9 +19,9 @@ import type {
19
19
 
20
20
  import type { ComponentGalleryArgs } from '../../storybook'
21
21
  import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
22
- import type { badgeShapePropsType } from './styles/badgeShape'
23
- import type { badgeSizePropsType } from './styles/badgeSize'
24
- import type { badgeTypePropsType } from './styles/badgeType'
22
+ import type { BadgeShapePropsType } from './styles/badgeShape'
23
+ import type { BadgeSizePropsType } from './styles/badgeSize'
24
+ import type { BadgeTypePropsType } from './styles/badgeType'
25
25
 
26
26
  type BadgeIconProp = false | SvgIconComponent
27
27
 
@@ -37,7 +37,7 @@ interface BadgeAppearanceProps {
37
37
  iconShape?: IconProps['shape']
38
38
  iconSize?: IconProps['iconSize']
39
39
  shape?: ShapeProps
40
- size?: badgeSizePropsType
40
+ size?: BadgeSizePropsType
41
41
  }
42
42
 
43
43
  type BadgeConfig = AppearanceConfig<AppearanceKeysDefault, BadgeAppearanceProps>
@@ -59,10 +59,10 @@ interface BadgeProps extends BadgeAppearanceProps {
59
59
  appearance?: CompositeAppearanceKeys
60
60
  dot?: boolean
61
61
  icon?: BadgeIconProp
62
- shape?: badgeShapePropsType
62
+ shape?: BadgeShapePropsType
63
63
  style?: StyleProp<TextStyle>
64
64
  text?: number | string
65
- type?: badgeTypePropsType
65
+ type?: BadgeTypePropsType
66
66
  }
67
67
 
68
68
  type BadgeAppearanceKey = NonNullable<BadgeProps['appearance']>
@@ -9,11 +9,11 @@ import type {
9
9
  BadgeProps,
10
10
  } from './Badge.interface'
11
11
  import { badgeShapeList } from './styles/badgeShape'
12
- import type { badgeShapePropsType } from './styles/badgeShape'
12
+ import type { BadgeShapePropsType } from './styles/badgeShape'
13
13
  import { badgeSizeList } from './styles/badgeSize'
14
- import type { badgeSizePropsType } from './styles/badgeSize'
14
+ import type { BadgeSizePropsType } from './styles/badgeSize'
15
15
  import { badgeTypeList } from './styles/badgeType'
16
- import type { badgeTypePropsType } from './styles/badgeType'
16
+ import type { BadgeTypePropsType } from './styles/badgeType'
17
17
 
18
18
  export {
19
19
  Badge,
@@ -30,7 +30,7 @@ export type {
30
30
  BadgeAppearanceSize,
31
31
  BadgeConfig,
32
32
  BadgeProps,
33
- badgeShapePropsType,
34
- badgeSizePropsType,
35
- badgeTypePropsType,
33
+ BadgeShapePropsType,
34
+ BadgeSizePropsType,
35
+ BadgeTypePropsType,
36
36
  }
@@ -64,7 +64,7 @@ type BadgeSizeKey = keyof typeof badgeIconsBySizeKey
64
64
  const isBadgeSizeKey = (value: string): value is BadgeSizeKey =>
65
65
  value in badgeIconsBySizeKey
66
66
 
67
- const badgeSizeKeys = Object.keys(badgeIconsBySizeKey).filter(isBadgeSizeKey)
67
+ const badgeSizeKeys = Object.keys(badgeIconsBySizeKey) as BadgeSizeKey[]
68
68
 
69
69
  const getBadgeTypeIcon = (appearanceSize: string = 'sizeM') =>
70
70
  isBadgeSizeKey(appearanceSize)
@@ -29,7 +29,7 @@ const badgeShapeStyles = StyleSheet.create({
29
29
 
30
30
  const badgeShapeList = getVariantsPropsList(badgeShapeStyles, 'badge_shape_')
31
31
 
32
- type badgeShapePropsType = (typeof badgeShapeList)[number]
32
+ type BadgeShapePropsType = (typeof badgeShapeList)[number]
33
33
 
34
34
  export { badgeShapeList, badgeShapeStyles }
35
- export type { badgeShapePropsType }
35
+ export type { BadgeShapePropsType }
@@ -92,7 +92,7 @@ const badgeSizeStyles = StyleSheet.create({
92
92
 
93
93
  const badgeSizeList = getVariantsPropsList(badgeSizeStyles, 'badge_size_')
94
94
 
95
- type badgeSizePropsType = (typeof badgeSizeList)[number]
95
+ type BadgeSizePropsType = (typeof badgeSizeList)[number]
96
96
 
97
97
  export { badgeSizeList, badgeSizeStyles }
98
- export type { badgeSizePropsType }
98
+ export type { BadgeSizePropsType }
@@ -24,7 +24,7 @@ const badgeTypeList = [
24
24
 
25
25
  const badgeTypeStyleList = getVariantsPropsList(badgeTypeStyles, 'badge_type_')
26
26
 
27
- type badgeTypePropsType = (typeof badgeTypeList)[number]
27
+ type BadgeTypePropsType = (typeof badgeTypeList)[number]
28
28
 
29
29
  export { badgeTypeList, badgeTypeStyleList, badgeTypeStyles }
30
- export type { badgeTypePropsType }
30
+ export type { BadgeTypePropsType }
@@ -9,7 +9,7 @@ import type {
9
9
  TextSizeProps,
10
10
  } from '@itcase/types-ui'
11
11
 
12
- import type { breadcrumbsSizePropsType } from './styles/breadcrumbsSize'
12
+ import type { BreadcrumbsSizePropsType } from './styles/breadcrumbsSize'
13
13
 
14
14
  interface BreadcrumbsItem {
15
15
  onPress?: () => void
@@ -20,7 +20,7 @@ interface BreadcrumbsAppearanceProps {
20
20
  fill?: FillProps
21
21
  labelTextColor?: TextColorProps
22
22
  labelTextSize?: TextSizeProps
23
- size?: breadcrumbsSizePropsType
23
+ size?: BreadcrumbsSizePropsType
24
24
  }
25
25
 
26
26
  type BreadcrumbsAppearanceKey = CompositeAppearanceKeys
@@ -8,7 +8,7 @@ import type {
8
8
  BreadcrumbsProps,
9
9
  } from './Breadcrumbs.interface'
10
10
  import { breadcrumbsSizeList } from './styles/breadcrumbsSize'
11
- import type { breadcrumbsSizePropsType } from './styles/breadcrumbsSize'
11
+ import type { BreadcrumbsSizePropsType } from './styles/breadcrumbsSize'
12
12
 
13
13
  export {
14
14
  Breadcrumbs,
@@ -22,5 +22,5 @@ export type {
22
22
  BreadcrumbsConfig,
23
23
  BreadcrumbsItem,
24
24
  BreadcrumbsProps,
25
- breadcrumbsSizePropsType,
25
+ BreadcrumbsSizePropsType,
26
26
  }
@@ -22,7 +22,7 @@ const breadcrumbsSizeList = getVariantsPropsList(
22
22
  'breadcrumbs_size_',
23
23
  )
24
24
 
25
- type breadcrumbsSizePropsType = (typeof breadcrumbsSizeList)[number]
25
+ type BreadcrumbsSizePropsType = (typeof breadcrumbsSizeList)[number]
26
26
 
27
27
  export { breadcrumbsSizeList, breadcrumbsSizeStyles }
28
- export type { breadcrumbsSizePropsType }
28
+ export type { BreadcrumbsSizePropsType }
@@ -26,8 +26,8 @@ import type {
26
26
  } from '@itcase/types-ui'
27
27
 
28
28
  import type { ComponentGalleryArgs } from '../../storybook'
29
- import type { buttonShapePropsType } from './styles/buttonShape'
30
- import type { buttonSizePropsType } from './styles/buttonSize'
29
+ import type { ButtonShapePropsType } from './styles/buttonShape'
30
+ import type { ButtonSizePropsType } from './styles/buttonSize'
31
31
 
32
32
  type ButtonFillDisabledProps =
33
33
  | 'accentDisabled'
@@ -47,7 +47,7 @@ interface ButtonAppearanceProps {
47
47
  fillDisabled?: ButtonFillDisabledProps
48
48
  loaderColor?: ColorValue
49
49
  shape?: ShapeProps
50
- size?: buttonSizePropsType
50
+ size?: ButtonSizePropsType
51
51
  textColor?: TextColorProps
52
52
  textColorDisabled?: TextColorProps
53
53
  textSize?: TextSizeProps
@@ -85,8 +85,8 @@ interface ButtonProps extends ButtonAppearanceProps {
85
85
  label?: string
86
86
  loader?: ReactNode
87
87
  loaderColor?: ColorValue
88
- shape?: buttonShapePropsType
89
- size?: buttonSizePropsType
88
+ shape?: ButtonShapePropsType
89
+ size?: ButtonSizePropsType
90
90
  style?: StyleProp<TextStyle>
91
91
  width?: WidthProps
92
92
  }
@@ -8,9 +8,9 @@ import type {
8
8
  ButtonProps,
9
9
  } from './Button.interface'
10
10
  import { buttonSizeList } from './styles/buttonSize'
11
- import type { buttonSizePropsType } from './styles/buttonSize'
11
+ import type { ButtonSizePropsType } from './styles/buttonSize'
12
12
  import { buttonTextSizeList } from './styles/buttonText'
13
- import type { buttonTextSizePropsType } from './styles/buttonText'
13
+ import type { ButtonTextSizePropsType } from './styles/buttonText'
14
14
 
15
15
  export {
16
16
  Button,
@@ -25,6 +25,6 @@ export type {
25
25
  ButtonAppearanceStyle,
26
26
  ButtonConfig,
27
27
  ButtonProps,
28
- buttonSizePropsType,
29
- buttonTextSizePropsType,
28
+ ButtonSizePropsType,
29
+ ButtonTextSizePropsType,
30
30
  }
@@ -15,7 +15,7 @@ import { buttonAppearanceSuccess } from '../appearance/buttonSuccess'
15
15
  import { buttonAppearanceSurface } from '../appearance/buttonSurface'
16
16
  import { buttonAppearanceWarning } from '../appearance/buttonWarning'
17
17
  import type { ButtonAppearanceKey } from '../Button.interface'
18
- import type { buttonSizePropsType } from '../styles/buttonSize'
18
+ import type { ButtonSizePropsType } from '../styles/buttonSize'
19
19
 
20
20
  const BUTTON_FIGMA_URL =
21
21
  'https://www.figma.com/design/HmHn0BShJPXHU8SmuIP71M/ITCase---Atoms?node-id=18-16754'
@@ -61,7 +61,7 @@ const getButtonTypeIcon = (appearanceSize: string = 'sizeM') =>
61
61
  ? buttonIconsBySizeKey[appearanceSize]
62
62
  : icons16.Placeholder.Default
63
63
 
64
- const buttonSizeKeys = Object.keys(buttonIconsBySizeKey).filter(isButtonSizeKey)
64
+ const buttonSizeKeys = Object.keys(buttonIconsBySizeKey) as ButtonSizeKey[]
65
65
 
66
66
  const buttonSizeByAppearanceSize = {
67
67
  sizeXXL: 'xxl',
@@ -71,11 +71,11 @@ const buttonSizeByAppearanceSize = {
71
71
  sizeS: 's',
72
72
  sizeXS: 'xs',
73
73
  sizeXXS: 'xxs',
74
- } as const satisfies Record<ButtonSizeKey, buttonSizePropsType>
74
+ } as const satisfies Record<ButtonSizeKey, ButtonSizePropsType>
75
75
 
76
76
  const getButtonSize = (
77
77
  appearanceSize: string = 'sizeM',
78
- ): buttonSizePropsType =>
78
+ ): ButtonSizePropsType =>
79
79
  isButtonSizeKey(appearanceSize)
80
80
  ? buttonSizeByAppearanceSize[appearanceSize]
81
81
  : 'm'
@@ -29,7 +29,7 @@ const buttonShapeStyles = StyleSheet.create({
29
29
 
30
30
  const buttonShapeList = getVariantsPropsList(buttonShapeStyles, 'button_shape_')
31
31
 
32
- type buttonShapePropsType = (typeof buttonShapeList)[number]
32
+ type ButtonShapePropsType = (typeof buttonShapeList)[number]
33
33
 
34
34
  export { buttonShapeList, buttonShapeStyles }
35
- export type { buttonShapePropsType }
35
+ export type { ButtonShapePropsType }
@@ -36,7 +36,7 @@ const buttonSizeStyles = StyleSheet.create({
36
36
 
37
37
  const buttonSizeList = getVariantsPropsList(buttonSizeStyles, 'button_size_')
38
38
 
39
- type buttonSizePropsType = (typeof buttonSizeList)[number]
39
+ type ButtonSizePropsType = (typeof buttonSizeList)[number]
40
40
 
41
41
  export { buttonSizeList, buttonSizeStyles }
42
- export type { buttonSizePropsType }
42
+ export type { ButtonSizePropsType }
@@ -22,7 +22,7 @@ const buttonTextSizeList = getVariantsPropsList(
22
22
  buttonTextStyles,
23
23
  'button__text_size_',
24
24
  )
25
- type buttonTextSizePropsType = (typeof buttonTextSizeList)[number]
25
+ type ButtonTextSizePropsType = (typeof buttonTextSizeList)[number]
26
26
 
27
27
  export { buttonTextSizeList, buttonTextStyles }
28
- export type { buttonTextSizePropsType }
28
+ export type { ButtonTextSizePropsType }
@@ -9,16 +9,16 @@ import type {
9
9
  } from '@itcase/types-ui'
10
10
 
11
11
  import type { GapProps } from '../../styles/gap'
12
- import type { cellDirectionPropsType } from './styles/cellDirection'
13
- import type { cellShapePropsType } from './styles/cellShape'
14
- import type { cellSizePropsType } from './styles/cellSize'
12
+ import type { CellDirectionPropsType } from './styles/cellDirection'
13
+ import type { CellShapePropsType } from './styles/cellShape'
14
+ import type { CellSizePropsType } from './styles/cellSize'
15
15
 
16
16
  interface CellProps {
17
- direction: cellDirectionPropsType
17
+ direction: CellDirectionPropsType
18
18
  fill?: FillProps
19
19
  gap?: GapProps
20
- shape?: cellShapePropsType
21
- size?: cellSizePropsType
20
+ shape?: CellShapePropsType
21
+ size?: CellSizePropsType
22
22
  style?: StyleProp<TextStyle>
23
23
  text?: string
24
24
  textColor?: TextColorProps
@@ -1,17 +1,17 @@
1
1
  import { Cell, URLText } from './Cell'
2
2
  import type { CellProps, URLTextProps } from './Cell.interface'
3
3
  import { cellDirectionList } from './styles/cellDirection'
4
- import type { cellDirectionPropsType } from './styles/cellDirection'
4
+ import type { CellDirectionPropsType } from './styles/cellDirection'
5
5
  import { cellShapeList } from './styles/cellShape'
6
- import type { cellShapePropsType } from './styles/cellShape'
6
+ import type { CellShapePropsType } from './styles/cellShape'
7
7
  import { cellSizeList } from './styles/cellSize'
8
- import type { cellSizePropsType } from './styles/cellSize'
8
+ import type { CellSizePropsType } from './styles/cellSize'
9
9
 
10
10
  export { Cell, cellDirectionList, cellShapeList, cellSizeList, URLText }
11
11
  export type {
12
- cellDirectionPropsType,
12
+ CellDirectionPropsType,
13
13
  CellProps,
14
- cellShapePropsType,
15
- cellSizePropsType,
14
+ CellShapePropsType,
15
+ CellSizePropsType,
16
16
  URLTextProps,
17
17
  }
@@ -18,7 +18,7 @@ const cellDirectionList = getVariantsPropsList(
18
18
  'cell_direction_',
19
19
  )
20
20
 
21
- type cellDirectionPropsType = (typeof cellDirectionList)[number]
21
+ type CellDirectionPropsType = (typeof cellDirectionList)[number]
22
22
 
23
23
  export { cellDirectionList, cellDirectionStyles }
24
- export type { cellDirectionPropsType }
24
+ export type { CellDirectionPropsType }
@@ -10,7 +10,7 @@ const cellShapeStyles = StyleSheet.create({
10
10
 
11
11
  const cellShapeList = getVariantsPropsList(cellShapeStyles, 'cell_shape_')
12
12
 
13
- type cellShapePropsType = (typeof cellShapeList)[number]
13
+ type CellShapePropsType = (typeof cellShapeList)[number]
14
14
 
15
15
  export { cellShapeList, cellShapeStyles }
16
- export type { cellShapePropsType }
16
+ export type { CellShapePropsType }
@@ -15,7 +15,7 @@ const cellSizeStyles = StyleSheet.create({
15
15
 
16
16
  const cellSizeList = getVariantsPropsList(cellSizeStyles, 'cell_size_')
17
17
 
18
- type cellSizePropsType = (typeof cellSizeList)[number]
18
+ type CellSizePropsType = (typeof cellSizeList)[number]
19
19
 
20
20
  export { cellSizeList, cellSizeStyles }
21
- export type { cellSizePropsType }
21
+ export type { CellSizePropsType }
@@ -23,17 +23,17 @@ import type {
23
23
 
24
24
  import type { ComponentGalleryArgs } from '../../storybook'
25
25
  import type { SvgIconComponent } from '../Icon/Icon.interface'
26
- import type { iconGlyphSizePropsType } from '../Icon/styles/iconSize'
27
- import type { checkboxAlignPropsType } from './styles/checkboxAlign'
28
- import type { checkboxShapePropsType } from './styles/checkboxShape'
29
- import type { checkboxSizePropsType } from './styles/checkboxSize'
26
+ import type { IconGlyphSizePropsType } from '../Icon/styles/iconSize'
27
+ import type { CheckboxAlignPropsType } from './styles/checkboxAlign'
28
+ import type { CheckboxShapePropsType } from './styles/checkboxShape'
29
+ import type { CheckboxSizePropsType } from './styles/checkboxSize'
30
30
 
31
31
  interface CheckboxAppearanceProps {
32
32
  borderColor?: BorderColorProps
33
33
  borderColorCheckbox?: BorderColorProps
34
34
  borderColorCheckboxActive?: BorderColorActiveProps
35
35
  checkboxCheckedIcon?: SvgIconComponent
36
- checkboxIconSize?: iconGlyphSizePropsType
36
+ checkboxIconSize?: IconGlyphSizePropsType
37
37
  descTextColor?: TextColorProps
38
38
  descTextSize?: TextSizeProps
39
39
  descTextWeight?: TextWeightProps
@@ -45,8 +45,8 @@ interface CheckboxAppearanceProps {
45
45
  labelTextColor?: TextColorProps
46
46
  labelTextSize?: TextSizeProps
47
47
  labelTextWeight?: TextWeightProps
48
- shape?: checkboxShapePropsType
49
- size?: checkboxSizePropsType
48
+ shape?: CheckboxShapePropsType
49
+ size?: CheckboxSizePropsType
50
50
  }
51
51
 
52
52
  type CheckboxAppearanceSize = AppearancePartialRecord<
@@ -65,7 +65,7 @@ interface CheckboxProps extends CheckboxAppearanceProps {
65
65
  isDisabled?: boolean
66
66
  onPress?: (event: GestureResponderEvent) => void
67
67
  after?: ReactNode
68
- align?: checkboxAlignPropsType
68
+ align?: CheckboxAlignPropsType
69
69
  appearance?: CompositeAppearanceStateDefault
70
70
  before?: ReactNode
71
71
  checked?: boolean
@@ -11,9 +11,9 @@ import type {
11
11
  CheckboxProps,
12
12
  } from './Checkbox.interface'
13
13
  import { checkboxAlignList } from './styles/checkboxAlign'
14
- import type { checkboxAlignPropsType } from './styles/checkboxAlign'
14
+ import type { CheckboxAlignPropsType } from './styles/checkboxAlign'
15
15
  import { checkboxSizeList } from './styles/checkboxSize'
16
- import type { checkboxSizePropsType } from './styles/checkboxSize'
16
+ import type { CheckboxSizePropsType } from './styles/checkboxSize'
17
17
 
18
18
  export {
19
19
  Checkbox,
@@ -23,7 +23,7 @@ export {
23
23
  checkboxSizeList,
24
24
  }
25
25
  export type {
26
- checkboxAlignPropsType,
26
+ CheckboxAlignPropsType,
27
27
  CheckboxAppearance,
28
28
  CheckboxAppearanceKey,
29
29
  CheckboxAppearanceProps,
@@ -32,5 +32,5 @@ export type {
32
32
  CheckboxAppearanceStyle,
33
33
  CheckboxConfig,
34
34
  CheckboxProps,
35
- checkboxSizePropsType,
35
+ CheckboxSizePropsType,
36
36
  }
@@ -17,7 +17,7 @@ const checkboxAlignList = getVariantsPropsList(
17
17
  'checkbox_align_',
18
18
  )
19
19
 
20
- type checkboxAlignPropsType = (typeof checkboxAlignList)[number]
20
+ type CheckboxAlignPropsType = (typeof checkboxAlignList)[number]
21
21
 
22
22
  export { checkboxAlignList, checkboxAlignStyles }
23
- export type { checkboxAlignPropsType }
23
+ export type { CheckboxAlignPropsType }
@@ -31,7 +31,7 @@ const checkboxShapeList = getVariantsPropsList(
31
31
  'checkbox_shape_',
32
32
  )
33
33
 
34
- type checkboxShapePropsType = (typeof checkboxShapeList)[number]
34
+ type CheckboxShapePropsType = (typeof checkboxShapeList)[number]
35
35
 
36
36
  export { checkboxShapeList, checkboxShapeStyles }
37
- export type { checkboxShapePropsType }
37
+ export type { CheckboxShapePropsType }
@@ -70,7 +70,7 @@ const checkboxSizeList = getVariantsPropsList(
70
70
  'checkbox_size_',
71
71
  )
72
72
 
73
- type checkboxSizePropsType = (typeof checkboxSizeList)[number]
73
+ type CheckboxSizePropsType = (typeof checkboxSizeList)[number]
74
74
 
75
75
  export { checkboxSizeList, checkboxSizeStyles }
76
- export type { checkboxSizePropsType }
76
+ export type { CheckboxSizePropsType }
@@ -21,8 +21,8 @@ import type {
21
21
 
22
22
  import type { ComponentGalleryArgs } from '../../storybook'
23
23
  import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
24
- import type { iconGlyphSizePropsType } from '../Icon/styles/iconSize'
25
- import type { checkmarkSizePropsType } from './styles/checkmarkSize'
24
+ import type { IconGlyphSizePropsType } from '../Icon/styles/iconSize'
25
+ import type { CheckmarkSizePropsType } from './styles/checkmarkSize'
26
26
 
27
27
  interface CheckmarkAppearanceProps {
28
28
  borderColor?: BorderColorProps
@@ -34,14 +34,14 @@ interface CheckmarkAppearanceProps {
34
34
  checkmarkFill?: IconProps['fill']
35
35
  checkmarkIconFill?: IconProps['iconFill']
36
36
  checkmarkIconShape?: IconProps['shape']
37
- checkmarkIconSize?: iconGlyphSizePropsType
37
+ checkmarkIconSize?: IconGlyphSizePropsType
38
38
  checkmarkIconSrc?: IconProps['imageSrc']
39
39
  checkmarkNegativeIcon?: SvgIconComponent
40
40
  fill?: FillProps
41
41
  fillActive?: FillActiveProps
42
42
  fillActiveHover?: FillActiveHoverProps
43
43
  fillHover?: FillHoverProps
44
- size?: checkmarkSizePropsType
44
+ size?: CheckmarkSizePropsType
45
45
  }
46
46
 
47
47
  type CheckmarkConfig = AppearanceConfig<
@@ -11,7 +11,7 @@ import type {
11
11
  CheckmarkProps,
12
12
  } from './Checkmark.interface'
13
13
  import { checkmarkSizeList } from './styles/checkmarkSize'
14
- import type { checkmarkSizePropsType } from './styles/checkmarkSize'
14
+ import type { CheckmarkSizePropsType } from './styles/checkmarkSize'
15
15
 
16
16
  export { Checkmark, checkmarkAppearance, checkmarkConfig, checkmarkSizeList }
17
17
  export type {
@@ -23,5 +23,5 @@ export type {
23
23
  CheckmarkAppearanceStyle,
24
24
  CheckmarkConfig,
25
25
  CheckmarkProps,
26
- checkmarkSizePropsType,
26
+ CheckmarkSizePropsType,
27
27
  }
@@ -26,10 +26,9 @@ const checkmarkStoryParameters = {
26
26
  },
27
27
  }
28
28
 
29
- const checkmarkSizeKeys = Object.keys(checkmarkAppearanceSize).filter(
30
- (value): value is keyof typeof checkmarkAppearanceSize =>
31
- value in checkmarkAppearanceSize,
32
- )
29
+ const checkmarkSizeKeys = Object.keys(checkmarkAppearanceSize) as Array<
30
+ keyof typeof checkmarkAppearanceSize
31
+ >
33
32
 
34
33
  const checkmarkTypeOptions = ['default', 'checked', 'negative'] as const
35
34
 
@@ -52,7 +52,7 @@ const checkmarkSizeList = getVariantsPropsList(
52
52
  'checkmark_size_',
53
53
  )
54
54
 
55
- type checkmarkSizePropsType = (typeof checkmarkSizeList)[number]
55
+ type CheckmarkSizePropsType = (typeof checkmarkSizeList)[number]
56
56
 
57
57
  export { checkmarkSizeList, checkmarkSizeStyles }
58
- export type { checkmarkSizePropsType }
58
+ export type { CheckmarkSizePropsType }
@@ -22,8 +22,8 @@ import type {
22
22
 
23
23
  import type { BadgeProps } from '../Badge/Badge.interface'
24
24
  import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
25
- import type { chipsShapePropsType } from './styles/chipsShape'
26
- import type { chipsSizePropsType } from './styles/chipsSize'
25
+ import type { ChipsShapePropsType } from './styles/chipsShape'
26
+ import type { ChipsSizePropsType } from './styles/chipsSize'
27
27
 
28
28
  interface ChipsAppearanceProps {
29
29
  badgeAppearance?: BadgeProps['appearance']
@@ -89,8 +89,8 @@ interface ChipsProps extends ChipsAppearanceProps {
89
89
  appearance?: CompositeAppearanceKeys
90
90
  children?: ReactNode
91
91
  label?: string
92
- shape?: chipsShapePropsType
93
- size?: chipsSizePropsType
92
+ shape?: ChipsShapePropsType
93
+ size?: ChipsSizePropsType
94
94
  style?: StyleProp<ViewStyle>
95
95
  }
96
96
 
@@ -11,9 +11,9 @@ import type {
11
11
  ChipsProps,
12
12
  } from './Chips.interface'
13
13
  import { chipsShapeList } from './styles/chipsShape'
14
- import type { chipsShapePropsType } from './styles/chipsShape'
14
+ import type { ChipsShapePropsType } from './styles/chipsShape'
15
15
  import { chipsSizeList } from './styles/chipsSize'
16
- import type { chipsSizePropsType } from './styles/chipsSize'
16
+ import type { ChipsSizePropsType } from './styles/chipsSize'
17
17
 
18
18
  export { Chips, chipsAppearance, chipsConfig, chipsShapeList, chipsSizeList }
19
19
  export type {
@@ -25,6 +25,6 @@ export type {
25
25
  ChipsAppearanceStyle,
26
26
  ChipsConfig,
27
27
  ChipsProps,
28
- chipsShapePropsType,
29
- chipsSizePropsType,
28
+ ChipsShapePropsType,
29
+ ChipsSizePropsType,
30
30
  }
@@ -56,7 +56,7 @@ type ChipsSizeKey = keyof typeof galleryIconsBySizeKey
56
56
  const isChipsSizeKey = (value: string): value is ChipsSizeKey =>
57
57
  value in galleryIconsBySizeKey
58
58
 
59
- const chipsSizeKeys = Object.keys(galleryIconsBySizeKey).filter(isChipsSizeKey)
59
+ const chipsSizeKeys = Object.keys(galleryIconsBySizeKey) as ChipsSizeKey[]
60
60
 
61
61
  const chipsTypeOptions = [
62
62
  'label',
@@ -28,7 +28,7 @@ const chipsShapeStyles = StyleSheet.create({
28
28
 
29
29
  const chipsShapeList = getVariantsPropsList(chipsShapeStyles, 'chips_shape_')
30
30
 
31
- type chipsShapePropsType = (typeof chipsShapeList)[number]
31
+ type ChipsShapePropsType = (typeof chipsShapeList)[number]
32
32
 
33
33
  export { chipsShapeList, chipsShapeStyles }
34
- export type { chipsShapePropsType }
34
+ export type { ChipsShapePropsType }
@@ -59,7 +59,7 @@ const chipsSizeList = getVariantsPropsList(
59
59
  'chips__inner_size_',
60
60
  )
61
61
 
62
- type chipsSizePropsType = (typeof chipsSizeList)[number]
62
+ type ChipsSizePropsType = (typeof chipsSizeList)[number]
63
63
 
64
64
  export { chipsSizeList, chipsSizeStyles }
65
- export type { chipsSizePropsType }
65
+ export type { ChipsSizePropsType }