@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.
- package/.storybook-react-native/preview.tsx +68 -32
- package/.storybook-react-native-web/main.ts +9 -2
- package/.storybook-react-native-web/preview.tsx +63 -55
- package/package.json +16 -16
- package/src/components/Avatar/Avatar.interface.ts +5 -5
- package/src/components/Avatar/index.ts +4 -4
- package/src/components/Avatar/stories/AvatarStories.config.ts +1 -4
- package/src/components/Avatar/styles/avatarShape.ts +2 -2
- package/src/components/Avatar/styles/avatarSize.ts +2 -2
- package/src/components/AvatarStack/AvatarStack.interface.ts +4 -4
- package/src/components/AvatarStack/index.ts +2 -2
- package/src/components/AvatarStack/stories/AvatarStackDemo.stories.tsx +2 -3
- package/src/components/AvatarStack/stories/AvatarStackStories.config.ts +20 -7
- package/src/components/AvatarStack/styles/avatarStackDirection.ts +2 -2
- package/src/components/Badge/Badge.interface.ts +6 -6
- package/src/components/Badge/index.ts +6 -6
- package/src/components/Badge/stories/BadgeStories.config.ts +1 -1
- package/src/components/Badge/styles/badgeShape.ts +2 -2
- package/src/components/Badge/styles/badgeSize.ts +2 -2
- package/src/components/Badge/styles/badgeType.ts +2 -2
- package/src/components/Breadcrumbs/Breadcrumbs.interface.ts +2 -2
- package/src/components/Breadcrumbs/index.ts +2 -2
- package/src/components/Breadcrumbs/styles/breadcrumbsSize.ts +2 -2
- package/src/components/Button/Button.interface.ts +5 -5
- package/src/components/Button/index.ts +4 -4
- package/src/components/Button/stories/ButtonStories.config.ts +4 -4
- package/src/components/Button/styles/buttonShape.ts +2 -2
- package/src/components/Button/styles/buttonSize.ts +2 -2
- package/src/components/Button/styles/buttonText.ts +2 -2
- package/src/components/Cell/Cell.interface.ts +6 -6
- package/src/components/Cell/index.ts +6 -6
- package/src/components/Cell/styles/cellDirection.ts +2 -2
- package/src/components/Cell/styles/cellShape.ts +2 -2
- package/src/components/Cell/styles/cellSize.ts +2 -2
- package/src/components/Checkbox/Checkbox.interface.ts +8 -8
- package/src/components/Checkbox/index.ts +4 -4
- package/src/components/Checkbox/styles/checkboxAlign.ts +2 -2
- package/src/components/Checkbox/styles/checkboxShape.ts +2 -2
- package/src/components/Checkbox/styles/checkboxSize.ts +2 -2
- package/src/components/Checkmark/Checkmark.interface.ts +4 -4
- package/src/components/Checkmark/index.ts +2 -2
- package/src/components/Checkmark/stories/CheckmarkStories.config.ts +3 -4
- package/src/components/Checkmark/styles/checkmarkSize.ts +2 -2
- package/src/components/Chips/Chips.interface.ts +4 -4
- package/src/components/Chips/index.ts +4 -4
- package/src/components/Chips/stories/ChipsStories.config.ts +1 -1
- package/src/components/Chips/styles/chipsShape.ts +2 -2
- package/src/components/Chips/styles/chipsSize.ts +2 -2
- package/src/components/Choice/Choice.interface.ts +6 -6
- package/src/components/Choice/index.ts +2 -2
- package/src/components/Choice/stories/ChoiceStories.config.tsx +3 -4
- package/src/components/Choice/styles/choiceSize.ts +2 -2
- package/src/components/Code/index.ts +4 -4
- package/src/components/Code/stories/CodeStories.config.ts +3 -4
- package/src/components/Code/styles/codeSize.ts +2 -2
- package/src/components/Code/styles/codeVariant.ts +2 -2
- package/src/components/ColorInput/ColorInput.interface.ts +2 -2
- package/src/components/ColorInput/index.ts +2 -2
- package/src/components/ColorInput/stories/ColorInputStories.config.tsx +3 -4
- package/src/components/ColorInput/styles/colorInputSize.ts +2 -2
- package/src/components/Divider/Divider.interface.ts +4 -4
- package/src/components/Divider/index.ts +4 -4
- package/src/components/Divider/styles/dividerDirection.ts +2 -2
- package/src/components/Divider/styles/dividerSize.ts +2 -2
- package/src/components/Dot/Dot.interface.ts +4 -4
- package/src/components/Dot/index.ts +3 -3
- package/src/components/Dot/styles/dotShape.ts +2 -2
- package/src/components/Dot/styles/dotSize.ts +2 -2
- package/src/components/Drawer/Drawer.interface.ts +2 -2
- package/src/components/Dropdown/Dropdown.interface.ts +6 -6
- package/src/components/Dropdown/index.ts +3 -3
- package/src/components/Dropdown/styles/dropdownItemSize.ts +2 -2
- package/src/components/Group/Group.interface.ts +8 -8
- package/src/components/Group/index.ts +8 -8
- package/src/components/Group/styles/groupAlign.ts +2 -2
- package/src/components/Group/styles/groupDirection.ts +2 -2
- package/src/components/Group/styles/groupJustify.ts +2 -2
- package/src/components/Group/styles/groupWrap.ts +2 -2
- package/src/components/Icon/Icon.interface.ts +10 -10
- package/src/components/Icon/index.ts +4 -4
- package/src/components/Icon/stories/IconStories.config.ts +1 -1
- package/src/components/Icon/styles/iconShape.ts +2 -2
- package/src/components/Icon/styles/iconSize.ts +5 -5
- package/src/components/Input/Input.interface.ts +4 -4
- package/src/components/Input/index.ts +4 -4
- package/src/components/Input/stories/InputStories.config.tsx +3 -4
- package/src/components/Input/styles/inputShape.ts +2 -2
- package/src/components/Input/styles/inputSize.ts +2 -2
- package/src/components/InputNumber/InputNumber.interface.ts +8 -8
- package/src/components/InputNumber/index.ts +4 -4
- package/src/components/InputNumber/styles/inputNumberShape.ts +2 -2
- package/src/components/InputNumber/styles/inputNumberSize.ts +2 -2
- package/src/components/InputPassword/InputPassword.interface.ts +6 -6
- package/src/components/InputPassword/index.ts +4 -4
- package/src/components/InputPassword/styles/inputPasswordShape.ts +2 -2
- package/src/components/InputPassword/styles/inputPasswordSize.ts +2 -2
- package/src/components/Label/Label.interface.ts +2 -2
- package/src/components/Label/index.ts +2 -2
- package/src/components/Label/stories/LabelStories.config.ts +1 -1
- package/src/components/Label/styles/labelShape.ts +2 -2
- package/src/components/List/List.interface.ts +2 -2
- package/src/components/List/index.ts +4 -4
- package/src/components/List/styles/listDirection.ts +2 -2
- package/src/components/List/styles/listSize.ts +2 -2
- package/src/components/Loader/Loader.interface.ts +4 -4
- package/src/components/Loader/index.ts +4 -4
- package/src/components/Loader/stories/LoaderStories.config.ts +3 -4
- package/src/components/Loader/styles/loaderShape.ts +2 -2
- package/src/components/Loader/styles/loaderSize.ts +2 -2
- package/src/components/Logo/Logo.interface.ts +4 -4
- package/src/components/Logo/index.ts +3 -3
- package/src/components/Logo/styles/logoAlign.ts +2 -2
- package/src/components/Logo/styles/logoSize.ts +2 -2
- package/src/components/MenuItem/MenuItem.interface.ts +4 -4
- package/src/components/MenuItem/index.ts +4 -4
- package/src/components/MenuItem/styles/menuItemShape.ts +2 -2
- package/src/components/MenuItem/styles/menuItemSize.ts +2 -2
- package/src/components/Modal/Modal.interface.ts +2 -2
- package/src/components/Pagination/Pagination.interface.ts +3 -3
- package/src/components/Pagination/index.ts +2 -2
- package/src/components/Pagination/styles/paginationSize.ts +2 -2
- package/src/components/Radio/Radio.interface.ts +2 -2
- package/src/components/Radio/index.ts +2 -2
- package/src/components/Radio/styles/radioSize.ts +2 -2
- package/src/components/Search/stories/SearchStories.config.ts +3 -4
- package/src/components/Search/styles/searchShape.ts +2 -2
- package/src/components/Search/styles/searchSize.ts +2 -2
- package/src/components/Segmented/Segmented.interface.ts +6 -6
- package/src/components/Segmented/index.ts +4 -4
- package/src/components/Segmented/styles/segmentedShape.ts +2 -2
- package/src/components/Segmented/styles/segmentedSize.ts +2 -2
- package/src/components/Select/Select.interface.ts +2 -2
- package/src/components/Select/index.ts +2 -2
- package/src/components/Select/stories/SelectStories.config.ts +1 -4
- package/src/components/Select/styles/selectSize.ts +2 -2
- package/src/components/Switch/Switch.interface.ts +4 -4
- package/src/components/Switch/index.ts +4 -4
- package/src/components/Switch/stories/SwitchStories.config.tsx +3 -4
- package/src/components/Switch/styles/switchAlign.ts +2 -2
- package/src/components/Switch/styles/switchSize.ts +2 -2
- package/src/components/Tab/Tab.interface.ts +2 -2
- package/src/components/Tab/index.ts +2 -2
- package/src/components/Tab/styles/tabSize.ts +2 -2
- package/src/components/Textarea/Textarea.interface.ts +4 -4
- package/src/components/Textarea/index.ts +4 -4
- package/src/components/Textarea/styles/textareaShape.ts +2 -2
- package/src/components/Textarea/styles/textareaSize.ts +2 -2
- package/src/components/Tile/Tile.interface.ts +4 -4
- package/src/components/Tile/index.ts +4 -4
- package/src/components/Tile/styles/tileShape.ts +2 -2
- package/src/components/Tile/styles/tileSize.ts +2 -2
- package/src/components/Warning/Warning.interface.ts +4 -4
- package/src/components/Warning/index.ts +4 -4
- package/src/components/Warning/styles/warningShape.ts +2 -2
- package/src/components/Warning/styles/warningSize.ts +2 -2
- package/src/index.tsx +118 -118
|
@@ -24,7 +24,7 @@ const codeSizeList = getVariantsPropsList(
|
|
|
24
24
|
'code__input_size_',
|
|
25
25
|
)
|
|
26
26
|
|
|
27
|
-
type
|
|
27
|
+
type CodeSizePropsType = (typeof codeSizeList)[number]
|
|
28
28
|
|
|
29
29
|
export { codeInputSizeStyles, codeSizeList, codeSizeStyles }
|
|
30
|
-
export type {
|
|
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
|
|
16
|
+
type CodeVariantPropsType = (typeof codeVariantList)[number]
|
|
17
17
|
|
|
18
18
|
export { codeVariantList, codeVariantStyles }
|
|
19
|
-
export type {
|
|
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 {
|
|
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?:
|
|
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 {
|
|
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
|
-
|
|
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)
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
55
|
+
type ColorInputSizePropsType = (typeof colorInputSizeList)[number]
|
|
56
56
|
|
|
57
57
|
export { colorInputSizeList, colorInputSizeStyleList, colorInputSizeStyles }
|
|
58
|
-
export type {
|
|
58
|
+
export type { ColorInputSizePropsType }
|
|
@@ -8,13 +8,13 @@ import type {
|
|
|
8
8
|
WidthProps,
|
|
9
9
|
} from '@itcase/types-ui'
|
|
10
10
|
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
11
|
+
import type { DividerDirectionPropsType } from './styles/dividerDirection'
|
|
12
|
+
import type { DividerSizePropsType } from './styles/dividerSize'
|
|
13
13
|
|
|
14
14
|
interface DividerAppearanceProps {
|
|
15
|
-
direction?:
|
|
15
|
+
direction?: DividerDirectionPropsType
|
|
16
16
|
fill?: FillProps
|
|
17
|
-
size?:
|
|
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 {
|
|
10
|
+
import type { DividerDirectionPropsType } from './styles/dividerDirection'
|
|
11
11
|
import { dividerSizeList } from './styles/dividerSize'
|
|
12
|
-
import type {
|
|
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
|
-
|
|
25
|
+
DividerDirectionPropsType,
|
|
26
26
|
DividerProps,
|
|
27
|
-
|
|
27
|
+
DividerSizePropsType,
|
|
28
28
|
}
|
|
@@ -17,7 +17,7 @@ const dividerDirectionList = getVariantsPropsList(
|
|
|
17
17
|
'divider_direction_',
|
|
18
18
|
)
|
|
19
19
|
|
|
20
|
-
type
|
|
20
|
+
type DividerDirectionPropsType = (typeof dividerDirectionList)[number]
|
|
21
21
|
|
|
22
22
|
export { dividerDirectionList, dividerDirectionStyles }
|
|
23
|
-
export type {
|
|
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
|
|
29
|
+
type DividerSizePropsType = (typeof dividerSizeList)[number]
|
|
30
30
|
|
|
31
31
|
export { dividerSizeList, dividerSizeStyles }
|
|
32
|
-
export type {
|
|
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 {
|
|
7
|
-
import type {
|
|
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?:
|
|
14
|
-
size?:
|
|
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 {
|
|
4
|
+
import type { DotShapePropsType } from './styles/dotShape'
|
|
5
5
|
import { dotSizeList } from './styles/dotSize'
|
|
6
|
-
import type {
|
|
6
|
+
import type { DotSizePropsType } from './styles/dotSize'
|
|
7
7
|
|
|
8
8
|
export { Dot, dotShapeList, dotSizeList }
|
|
9
|
-
export type { DotProps,
|
|
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
|
|
19
|
+
type DotShapePropsType = (typeof dotShapeList)[number]
|
|
20
20
|
|
|
21
21
|
export { dotShapeList, dotShapeStyles }
|
|
22
|
-
export type {
|
|
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
|
|
22
|
+
type DotSizePropsType = (typeof dotSizeList)[number]
|
|
23
23
|
|
|
24
24
|
export { dotSizeList, dotSizeStyles }
|
|
25
|
-
export type {
|
|
25
|
+
export type { DotSizePropsType }
|
|
@@ -14,7 +14,7 @@ import type {
|
|
|
14
14
|
TitleSizeProps,
|
|
15
15
|
} from '@itcase/types-ui'
|
|
16
16
|
|
|
17
|
-
import type {
|
|
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?:
|
|
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 {
|
|
24
|
+
import type { DividerSizePropsType } from '../Divider/styles/dividerSize'
|
|
25
25
|
import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
|
|
26
|
-
import type {
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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 {
|
|
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
|
-
|
|
43
|
+
DropdownItemSizePropsType,
|
|
44
44
|
DropdownListItem,
|
|
45
45
|
DropdownProps,
|
|
46
|
-
|
|
46
|
+
DropdownItemSizePropsType as DropdownSizePropsType,
|
|
47
47
|
}
|
|
@@ -30,7 +30,7 @@ const dropdownItemSizeList = getVariantsPropsList(
|
|
|
30
30
|
'dropdown__item_size_',
|
|
31
31
|
)
|
|
32
32
|
|
|
33
|
-
type
|
|
33
|
+
type DropdownItemSizePropsType = (typeof dropdownItemSizeList)[number]
|
|
34
34
|
|
|
35
35
|
export { dropdownItemSizeList, dropdownItemSizeStyles }
|
|
36
|
-
export type {
|
|
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 {
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
18
|
-
import type {
|
|
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?:
|
|
37
|
+
alignItems?: GroupAlignItemsPropsType
|
|
38
38
|
appearance?: GroupAppearanceKey
|
|
39
39
|
children?: ReactNode
|
|
40
|
-
direction?:
|
|
40
|
+
direction?: GroupDirectionPropsType
|
|
41
41
|
gap?: GapProps
|
|
42
|
-
justifyContent?:
|
|
42
|
+
justifyContent?: GroupJustifyContentPropsType
|
|
43
43
|
style?: StyleProp<ViewStyle>
|
|
44
|
-
wrap?:
|
|
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 {
|
|
10
|
+
import type { GroupAlignItemsPropsType } from './styles/groupAlign'
|
|
11
11
|
import { groupDirectionList } from './styles/groupDirection'
|
|
12
|
-
import type {
|
|
12
|
+
import type { GroupDirectionPropsType } from './styles/groupDirection'
|
|
13
13
|
import { groupJustifyContentList } from './styles/groupJustify'
|
|
14
|
-
import type {
|
|
14
|
+
import type { GroupJustifyContentPropsType } from './styles/groupJustify'
|
|
15
15
|
import { groupWrapList } from './styles/groupWrap'
|
|
16
|
-
import type {
|
|
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
|
-
|
|
28
|
+
GroupAlignItemsPropsType,
|
|
29
29
|
GroupAppearance,
|
|
30
30
|
GroupAppearanceKey,
|
|
31
31
|
GroupConfig,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
GroupDirectionPropsType,
|
|
33
|
+
GroupJustifyContentPropsType,
|
|
34
34
|
GroupProps,
|
|
35
|
-
|
|
35
|
+
GroupWrapPropsType,
|
|
36
36
|
}
|
|
@@ -31,7 +31,7 @@ const groupAlignItemsList = getVariantsPropsList(
|
|
|
31
31
|
'group_align_',
|
|
32
32
|
)
|
|
33
33
|
|
|
34
|
-
type
|
|
34
|
+
type GroupAlignItemsPropsType = (typeof groupAlignItemsList)[number]
|
|
35
35
|
|
|
36
36
|
export { groupAlignItemsList, groupAlignStyles }
|
|
37
|
-
export type {
|
|
37
|
+
export type { GroupAlignItemsPropsType }
|
|
@@ -34,7 +34,7 @@ const groupDirectionList = getVariantsPropsList(
|
|
|
34
34
|
'group_direction_',
|
|
35
35
|
)
|
|
36
36
|
|
|
37
|
-
type
|
|
37
|
+
type GroupDirectionPropsType = (typeof groupDirectionList)[number]
|
|
38
38
|
|
|
39
39
|
export { groupDirectionList, groupDirectionStyles }
|
|
40
|
-
export type {
|
|
40
|
+
export type { GroupDirectionPropsType }
|
|
@@ -34,7 +34,7 @@ const groupJustifyContentList = getVariantsPropsList(
|
|
|
34
34
|
'group_justify_',
|
|
35
35
|
)
|
|
36
36
|
|
|
37
|
-
type
|
|
37
|
+
type GroupJustifyContentPropsType = (typeof groupJustifyContentList)[number]
|
|
38
38
|
|
|
39
39
|
export { groupJustifyContentList, groupJustifyStyles }
|
|
40
|
-
export type {
|
|
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
|
|
19
|
+
type GroupWrapPropsType = (typeof groupWrapList)[number]
|
|
20
20
|
|
|
21
21
|
export { groupWrapList, groupWrapStyles }
|
|
22
|
-
export type {
|
|
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 {
|
|
30
|
-
import type {
|
|
29
|
+
import type { BadgeTypePropsType } from '../Badge/styles/badgeType'
|
|
30
|
+
import type { IconShapePropsType } from './styles/iconShape'
|
|
31
31
|
import type {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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 |
|
|
55
|
+
fillSize?: FillSizeProps | IconSizePropsType
|
|
56
56
|
iconFill?: ItemFillActiveProps
|
|
57
57
|
iconFillActive?: ItemFillActiveProps
|
|
58
58
|
iconFillDisabled?: ItemFillActiveProps
|
|
59
|
-
iconSize?:
|
|
59
|
+
iconSize?: IconGlyphSizePropsType
|
|
60
60
|
shape?: ShapeProps
|
|
61
|
-
size?:
|
|
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?:
|
|
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?:
|
|
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 {
|
|
11
|
+
import type { IconShapePropsType } from './styles/iconShape'
|
|
12
12
|
import { iconSizeList } from './styles/iconSize'
|
|
13
|
-
import type {
|
|
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
|
-
|
|
23
|
-
|
|
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)
|
|
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
|
|
28
|
+
type IconShapePropsType = (typeof iconShapeList)[number]
|
|
29
29
|
|
|
30
30
|
export { iconShapeList, iconShapeStyles }
|
|
31
|
-
export type {
|
|
31
|
+
export type { IconShapePropsType }
|
|
@@ -41,8 +41,8 @@ const iconGlyphSizeList = getVariantsPropsList(
|
|
|
41
41
|
'icon_size_',
|
|
42
42
|
)
|
|
43
43
|
|
|
44
|
-
type
|
|
45
|
-
type
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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 {
|
|
23
|
-
import type {
|
|
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?:
|
|
31
|
-
size?:
|
|
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 {
|
|
14
|
+
import type { InputShapePropsType } from './styles/inputShape'
|
|
15
15
|
import { inputSizeList } from './styles/inputSize'
|
|
16
|
-
import type {
|
|
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
|
-
|
|
29
|
-
|
|
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)
|
|
17
|
-
|
|
18
|
-
|
|
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
|
|
28
|
+
type InputShapePropsType = (typeof inputShapeList)[number]
|
|
29
29
|
|
|
30
30
|
export { inputShapeList, inputShapeStyles }
|
|
31
|
-
export type {
|
|
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
|
|
30
|
+
type InputSizePropsType = (typeof inputSizeList)[number]
|
|
31
31
|
|
|
32
32
|
export { inputSizeList, inputSizeStyles }
|
|
33
|
-
export type {
|
|
33
|
+
export type { InputSizePropsType }
|