@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
|
@@ -19,8 +19,8 @@ import type {
|
|
|
19
19
|
} from '@itcase/types-ui'
|
|
20
20
|
|
|
21
21
|
import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
|
|
22
|
-
import type {
|
|
23
|
-
import type {
|
|
22
|
+
import type { SegmentedShapePropsType } from './styles/segmentedShape'
|
|
23
|
+
import type { SegmentedSizePropsType } from './styles/segmentedSize'
|
|
24
24
|
|
|
25
25
|
interface SegmentedAppearanceProps {
|
|
26
26
|
borderColor?: BorderColorProps
|
|
@@ -36,8 +36,8 @@ interface SegmentedAppearanceProps {
|
|
|
36
36
|
labelTextActiveColor?: TextColorProps
|
|
37
37
|
labelTextColor?: TextColorProps
|
|
38
38
|
labelTextSize?: TextSizeProps
|
|
39
|
-
shape?:
|
|
40
|
-
size?:
|
|
39
|
+
shape?: SegmentedShapePropsType
|
|
40
|
+
size?: SegmentedSizePropsType
|
|
41
41
|
width?: WidthProps
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -82,8 +82,8 @@ interface SegmentedProps extends SegmentedAppearanceProps {
|
|
|
82
82
|
appearance?: CompositeAppearanceStateDefault
|
|
83
83
|
before?: ReactNode
|
|
84
84
|
segments: Segment[]
|
|
85
|
-
shape?:
|
|
86
|
-
size?:
|
|
85
|
+
shape?: SegmentedShapePropsType
|
|
86
|
+
size?: SegmentedSizePropsType
|
|
87
87
|
style?: StyleProp<ViewStyle>
|
|
88
88
|
value?: string
|
|
89
89
|
}
|
|
@@ -12,9 +12,9 @@ import type {
|
|
|
12
12
|
SegmentedProps,
|
|
13
13
|
} from './Segmented.interface'
|
|
14
14
|
import { segmentedShapeList } from './styles/segmentedShape'
|
|
15
|
-
import type {
|
|
15
|
+
import type { SegmentedShapePropsType } from './styles/segmentedShape'
|
|
16
16
|
import { segmentedSizeList } from './styles/segmentedSize'
|
|
17
|
-
import type {
|
|
17
|
+
import type { SegmentedSizePropsType } from './styles/segmentedSize'
|
|
18
18
|
|
|
19
19
|
export {
|
|
20
20
|
Segmented,
|
|
@@ -33,6 +33,6 @@ export type {
|
|
|
33
33
|
SegmentedAppearanceStyle,
|
|
34
34
|
SegmentedConfig,
|
|
35
35
|
SegmentedProps,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
SegmentedShapePropsType,
|
|
37
|
+
SegmentedSizePropsType,
|
|
38
38
|
}
|
|
@@ -31,7 +31,7 @@ const segmentedShapeList = getVariantsPropsList(
|
|
|
31
31
|
'segmented_shape_',
|
|
32
32
|
)
|
|
33
33
|
|
|
34
|
-
type
|
|
34
|
+
type SegmentedShapePropsType = (typeof segmentedShapeList)[number]
|
|
35
35
|
|
|
36
36
|
export { segmentedShapeList, segmentedShapeStyles }
|
|
37
|
-
export type {
|
|
37
|
+
export type { SegmentedShapePropsType }
|
|
@@ -59,7 +59,7 @@ const segmentedSizeList = getVariantsPropsList(
|
|
|
59
59
|
'segmented__item_size_',
|
|
60
60
|
)
|
|
61
61
|
|
|
62
|
-
type
|
|
62
|
+
type SegmentedSizePropsType = (typeof segmentedSizeList)[number]
|
|
63
63
|
|
|
64
64
|
export { segmentedSizeList, segmentedSizeStyles }
|
|
65
|
-
export type {
|
|
65
|
+
export type { SegmentedSizePropsType }
|
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
|
|
19
19
|
import type { ComponentGalleryArgs } from '../../storybook'
|
|
20
20
|
import type { IconProps } from '../Icon/Icon.interface'
|
|
21
|
-
import type {
|
|
21
|
+
import type { SelectSizePropsType } from './styles/selectSize'
|
|
22
22
|
|
|
23
23
|
interface SelectOptionItem {
|
|
24
24
|
label: string
|
|
@@ -38,7 +38,7 @@ interface SelectAppearanceProps {
|
|
|
38
38
|
optionTextColorActive?: TextColorProps
|
|
39
39
|
placeholderTextColor?: TextColorProps
|
|
40
40
|
shape?: ShapeProps
|
|
41
|
-
size?:
|
|
41
|
+
size?: SelectSizePropsType
|
|
42
42
|
textColor?: TextColorProps
|
|
43
43
|
textSize?: TextSizeProps
|
|
44
44
|
}
|
|
@@ -13,7 +13,7 @@ import type {
|
|
|
13
13
|
SelectProps,
|
|
14
14
|
} from './Select.interface'
|
|
15
15
|
import { selectSizeList } from './styles/selectSize'
|
|
16
|
-
import type {
|
|
16
|
+
import type { SelectSizePropsType } from './styles/selectSize'
|
|
17
17
|
|
|
18
18
|
export { Select, selectAppearance, selectConfig, selectSizeList }
|
|
19
19
|
export type {
|
|
@@ -27,5 +27,5 @@ export type {
|
|
|
27
27
|
SelectMenu,
|
|
28
28
|
SelectOptionItem,
|
|
29
29
|
SelectProps,
|
|
30
|
-
|
|
30
|
+
SelectSizePropsType,
|
|
31
31
|
}
|
|
@@ -12,10 +12,7 @@ import type { SelectAppearanceKey, SelectOptionItem } from '../Select.interface'
|
|
|
12
12
|
|
|
13
13
|
type SelectSizeKey = keyof typeof selectAppearanceSize
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
value in selectAppearanceSize
|
|
17
|
-
|
|
18
|
-
const selectSizeKeys = Object.keys(selectAppearanceSize).filter(isSelectSizeKey)
|
|
15
|
+
const selectSizeKeys = Object.keys(selectAppearanceSize) as SelectSizeKey[]
|
|
19
16
|
|
|
20
17
|
const selectTypeOptions = ['placeholder', 'multi'] as const
|
|
21
18
|
|
|
@@ -42,7 +42,7 @@ const selectSizeStyles = StyleSheet.create({
|
|
|
42
42
|
|
|
43
43
|
const selectSizeList = getVariantsPropsList(selectSizeStyles, 'select_size_')
|
|
44
44
|
|
|
45
|
-
type
|
|
45
|
+
type SelectSizePropsType = (typeof selectSizeList)[number]
|
|
46
46
|
|
|
47
47
|
export { selectSizeList, selectSizeStyles }
|
|
48
|
-
export type {
|
|
48
|
+
export type { SelectSizePropsType }
|
|
@@ -17,8 +17,8 @@ import type {
|
|
|
17
17
|
} from '@itcase/types-ui'
|
|
18
18
|
|
|
19
19
|
import type { ComponentGalleryArgs } from '../../storybook'
|
|
20
|
-
import type {
|
|
21
|
-
import type {
|
|
20
|
+
import type { SwitchAlignPropsType } from './styles/switchAlign'
|
|
21
|
+
import type { SwitchSizePropsType } from './styles/switchSize'
|
|
22
22
|
|
|
23
23
|
interface SwitchAppearanceProps {
|
|
24
24
|
borderColor?: BorderColorProps
|
|
@@ -28,7 +28,7 @@ interface SwitchAppearanceProps {
|
|
|
28
28
|
fillActive?: FillActiveProps
|
|
29
29
|
fillToggle?: FillProps
|
|
30
30
|
fillToggleActive?: FillActiveProps
|
|
31
|
-
size?:
|
|
31
|
+
size?: SwitchSizePropsType
|
|
32
32
|
titleTextColor?: TextColorProps
|
|
33
33
|
titleTextSize?: TextSizeProps
|
|
34
34
|
}
|
|
@@ -44,7 +44,7 @@ interface SwitchProps extends SwitchAppearanceProps {
|
|
|
44
44
|
isDisabled?: boolean
|
|
45
45
|
onChange?: (isActive: boolean) => void
|
|
46
46
|
onPress?: (event: GestureResponderEvent) => void
|
|
47
|
-
align?:
|
|
47
|
+
align?: SwitchAlignPropsType
|
|
48
48
|
appearance?: CompositeAppearanceStateDefault
|
|
49
49
|
dataTestId?: string
|
|
50
50
|
defaultIsActive?: boolean
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { switchAlignList } from './styles/switchAlign'
|
|
2
|
-
import type {
|
|
2
|
+
import type { SwitchAlignPropsType } from './styles/switchAlign'
|
|
3
3
|
import { switchSizeList } from './styles/switchSize'
|
|
4
|
-
import type {
|
|
4
|
+
import type { SwitchSizePropsType } from './styles/switchSize'
|
|
5
5
|
import { Switch, switchConfig } from './Switch'
|
|
6
6
|
import { switchAppearance } from './Switch.appearance'
|
|
7
7
|
import type {
|
|
@@ -21,12 +21,12 @@ export {
|
|
|
21
21
|
switchSizeList,
|
|
22
22
|
}
|
|
23
23
|
export type {
|
|
24
|
-
|
|
24
|
+
SwitchAlignPropsType,
|
|
25
25
|
SwitchAppearance,
|
|
26
26
|
SwitchAppearanceKey,
|
|
27
27
|
SwitchAppearanceSize,
|
|
28
28
|
SwitchAppearanceStyle,
|
|
29
29
|
SwitchConfig,
|
|
30
30
|
SwitchProps,
|
|
31
|
-
|
|
31
|
+
SwitchSizePropsType,
|
|
32
32
|
}
|
|
@@ -10,10 +10,9 @@ import { switchAppearanceStyle } from '../appearance/switchStyle'
|
|
|
10
10
|
import { switchAppearanceSuccess } from '../appearance/switchSuccess'
|
|
11
11
|
import type { SwitchAppearanceKey } from '../Switch.interface'
|
|
12
12
|
|
|
13
|
-
const switchSizeKeys = Object.keys(switchAppearanceSize)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
)
|
|
13
|
+
const switchSizeKeys = Object.keys(switchAppearanceSize) as Array<
|
|
14
|
+
keyof typeof switchAppearanceSize
|
|
15
|
+
>
|
|
17
16
|
|
|
18
17
|
const switchTypeOptions = ['switch', 'title', 'title-desc'] as const
|
|
19
18
|
|
|
@@ -23,7 +23,7 @@ const switchAlignStyles = StyleSheet.create({
|
|
|
23
23
|
|
|
24
24
|
const switchAlignList = getVariantsPropsList(switchAlignStyles, 'switch_align_')
|
|
25
25
|
|
|
26
|
-
type
|
|
26
|
+
type SwitchAlignPropsType = (typeof switchAlignList)[number]
|
|
27
27
|
|
|
28
28
|
export { switchAlignList, switchAlignStyles }
|
|
29
|
-
export type {
|
|
29
|
+
export type { SwitchAlignPropsType }
|
|
@@ -34,7 +34,7 @@ const switchSizeList = getVariantsPropsList(
|
|
|
34
34
|
'switch__item_size_',
|
|
35
35
|
)
|
|
36
36
|
|
|
37
|
-
type
|
|
37
|
+
type SwitchSizePropsType = (typeof switchSizeList)[number]
|
|
38
38
|
|
|
39
39
|
export { switchSizeList, switchSizeStyles }
|
|
40
|
-
export type {
|
|
40
|
+
export type { SwitchSizePropsType }
|
|
@@ -3,7 +3,7 @@ import type { GestureResponderEvent, LayoutChangeEvent } from 'react-native'
|
|
|
3
3
|
|
|
4
4
|
import type { FillProps, TextColorProps, TextSizeProps } from '@itcase/types-ui'
|
|
5
5
|
|
|
6
|
-
import type {
|
|
6
|
+
import type { TabSizePropsType } from './styles/tabSize'
|
|
7
7
|
|
|
8
8
|
interface TabProps {
|
|
9
9
|
onLayout?: (event: LayoutChangeEvent) => void
|
|
@@ -12,7 +12,7 @@ interface TabProps {
|
|
|
12
12
|
activeTitleTextColor?: TextColorProps
|
|
13
13
|
after?: ReactNode
|
|
14
14
|
fill?: FillProps
|
|
15
|
-
size:
|
|
15
|
+
size: TabSizePropsType
|
|
16
16
|
title?: string
|
|
17
17
|
titleTextColor?: TextColorProps
|
|
18
18
|
titleTextSize?: TextSizeProps
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tabSizeList } from './styles/tabSize'
|
|
2
|
-
import type {
|
|
2
|
+
import type { TabSizePropsType } from './styles/tabSize'
|
|
3
3
|
import { Tab } from './Tab'
|
|
4
4
|
import type { TabProps } from './Tab.interface'
|
|
5
5
|
|
|
6
6
|
export { Tab, tabSizeList }
|
|
7
|
-
export type { TabProps,
|
|
7
|
+
export type { TabProps, TabSizePropsType }
|
|
@@ -35,7 +35,7 @@ const tabSizeStyles = StyleSheet.create({
|
|
|
35
35
|
|
|
36
36
|
const tabSizeList = getVariantsPropsList(tabSizeStyles, 'tab__item_size_')
|
|
37
37
|
|
|
38
|
-
type
|
|
38
|
+
type TabSizePropsType = (typeof tabSizeList)[number]
|
|
39
39
|
|
|
40
40
|
export { tabSizeList, tabSizeStyles }
|
|
41
|
-
export type {
|
|
41
|
+
export type { TabSizePropsType }
|
|
@@ -17,16 +17,16 @@ import type {
|
|
|
17
17
|
WidthProps,
|
|
18
18
|
} from '@itcase/types-ui'
|
|
19
19
|
|
|
20
|
-
import type {
|
|
21
|
-
import type {
|
|
20
|
+
import type { TextareaShapePropsType } from './styles/textareaShape'
|
|
21
|
+
import type { TextareaSizePropsType } from './styles/textareaSize'
|
|
22
22
|
|
|
23
23
|
interface TextareaAppearanceProps {
|
|
24
24
|
borderColor?: BorderColorProps
|
|
25
25
|
caret?: FillProps
|
|
26
26
|
fill?: FillProps
|
|
27
27
|
placeholderTextColor?: TextColorProps
|
|
28
|
-
shape?:
|
|
29
|
-
size?:
|
|
28
|
+
shape?: TextareaShapePropsType
|
|
29
|
+
size?: TextareaSizePropsType
|
|
30
30
|
textColor?: TextColorProps
|
|
31
31
|
textSize?: TextSizeProps
|
|
32
32
|
textWeight?: TextWeightProps
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { textareaShapeList } from './styles/textareaShape'
|
|
2
|
-
import type {
|
|
2
|
+
import type { TextareaShapePropsType } from './styles/textareaShape'
|
|
3
3
|
import { textareaSizeList } from './styles/textareaSize'
|
|
4
|
-
import type {
|
|
4
|
+
import type { TextareaSizePropsType } from './styles/textareaSize'
|
|
5
5
|
import { Textarea, textareaConfig } from './Textarea'
|
|
6
6
|
import { textareaAppearance } from './Textarea.appearance'
|
|
7
7
|
import type {
|
|
@@ -31,6 +31,6 @@ export type {
|
|
|
31
31
|
TextareaAppearanceStyle,
|
|
32
32
|
TextareaConfig,
|
|
33
33
|
TextareaProps,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
TextareaShapePropsType,
|
|
35
|
+
TextareaSizePropsType,
|
|
36
36
|
}
|
|
@@ -28,7 +28,7 @@ const textareaShapeList = getVariantsPropsList(
|
|
|
28
28
|
'textarea_shape_',
|
|
29
29
|
)
|
|
30
30
|
|
|
31
|
-
type
|
|
31
|
+
type TextareaShapePropsType = (typeof textareaShapeList)[number]
|
|
32
32
|
|
|
33
33
|
export { textareaShapeList, textareaShapeStyles }
|
|
34
|
-
export type {
|
|
34
|
+
export type { TextareaShapePropsType }
|
|
@@ -26,7 +26,7 @@ const textareaSizeList = getVariantsPropsList(
|
|
|
26
26
|
'textarea_size_',
|
|
27
27
|
)
|
|
28
28
|
|
|
29
|
-
type
|
|
29
|
+
type TextareaSizePropsType = (typeof textareaSizeList)[number]
|
|
30
30
|
|
|
31
31
|
export { textareaSizeList, textareaSizeStyles }
|
|
32
|
-
export type {
|
|
32
|
+
export type { TextareaSizePropsType }
|
|
@@ -26,8 +26,8 @@ import type {
|
|
|
26
26
|
import type { ComponentGalleryArgs } from '../../storybook'
|
|
27
27
|
import type { BadgeProps } from '../Badge/Badge.interface'
|
|
28
28
|
import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
|
|
29
|
-
import type {
|
|
30
|
-
import type {
|
|
29
|
+
import type { TileShapePropsType } from './styles/tileShape'
|
|
30
|
+
import type { TileSizePropsType } from './styles/tileSize'
|
|
31
31
|
|
|
32
32
|
interface TileAppearanceProps {
|
|
33
33
|
badgeAppearance?: BadgeProps['appearance']
|
|
@@ -80,8 +80,8 @@ interface TileProps extends TileAppearanceProps {
|
|
|
80
80
|
children?: ReactNode
|
|
81
81
|
desc?: string
|
|
82
82
|
icon?: SvgIconComponent
|
|
83
|
-
shape?:
|
|
84
|
-
size?:
|
|
83
|
+
shape?: TileShapePropsType
|
|
84
|
+
size?: TileSizePropsType
|
|
85
85
|
style?: StyleProp<ViewStyle>
|
|
86
86
|
title?: string
|
|
87
87
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tileShapeList } from './styles/tileShape'
|
|
2
|
-
import type {
|
|
2
|
+
import type { TileShapePropsType } from './styles/tileShape'
|
|
3
3
|
import { tileSizeList } from './styles/tileSize'
|
|
4
|
-
import type {
|
|
4
|
+
import type { TileSizePropsType } from './styles/tileSize'
|
|
5
5
|
import { Tile, tileConfig } from './Tile'
|
|
6
6
|
import { tileAppearance } from './Tile.appearance'
|
|
7
7
|
import type {
|
|
@@ -25,6 +25,6 @@ export type {
|
|
|
25
25
|
TileAppearanceStyle,
|
|
26
26
|
TileConfig,
|
|
27
27
|
TileProps,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
TileShapePropsType,
|
|
29
|
+
TileSizePropsType,
|
|
30
30
|
}
|
|
@@ -28,7 +28,7 @@ const tileShapeStyles = StyleSheet.create({
|
|
|
28
28
|
|
|
29
29
|
const tileShapeList = getVariantsPropsList(tileShapeStyles, 'tile_shape_')
|
|
30
30
|
|
|
31
|
-
type
|
|
31
|
+
type TileShapePropsType = (typeof tileShapeList)[number]
|
|
32
32
|
|
|
33
33
|
export { tileShapeList, tileShapeStyles }
|
|
34
|
-
export type {
|
|
34
|
+
export type { TileShapePropsType }
|
|
@@ -56,7 +56,7 @@ const tileSizeStyles = StyleSheet.create({
|
|
|
56
56
|
|
|
57
57
|
const tileSizeList = getVariantsPropsList(tileSizeStyles, 'tile_size_')
|
|
58
58
|
|
|
59
|
-
type
|
|
59
|
+
type TileSizePropsType = (typeof tileSizeList)[number]
|
|
60
60
|
|
|
61
61
|
export { tileSizeList, tileSizeStyles }
|
|
62
|
-
export type {
|
|
62
|
+
export type { TileSizePropsType }
|
|
@@ -20,8 +20,8 @@ import type {
|
|
|
20
20
|
} from '@itcase/types-ui'
|
|
21
21
|
|
|
22
22
|
import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
|
|
23
|
-
import type {
|
|
24
|
-
import type {
|
|
23
|
+
import type { IconSizePropsType } from '../Icon/styles/iconSize'
|
|
24
|
+
import type { WarningSizePropsType } from './styles/warningSize'
|
|
25
25
|
|
|
26
26
|
interface WarningAppearanceProps {
|
|
27
27
|
borderColor?: BorderColorProps
|
|
@@ -34,12 +34,12 @@ interface WarningAppearanceProps {
|
|
|
34
34
|
iconBefore?: SvgIconComponent
|
|
35
35
|
iconBeforeAppearance?: IconProps['appearance']
|
|
36
36
|
iconBeforeFillIcon?: ItemFillActiveProps
|
|
37
|
-
iconSize?:
|
|
37
|
+
iconSize?: IconSizePropsType
|
|
38
38
|
labelTextColor?: TextColorProps
|
|
39
39
|
labelTextSize?: TextSizeProps
|
|
40
40
|
labelTextWeight?: TextWeightProps
|
|
41
41
|
shape?: ShapeProps
|
|
42
|
-
size?:
|
|
42
|
+
size?: WarningSizePropsType
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
type WarningConfig = AppearanceConfig<
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { warningShapeList } from './styles/warningShape'
|
|
2
|
-
import type {
|
|
2
|
+
import type { WarningShapePropsType } from './styles/warningShape'
|
|
3
3
|
import { warningSizeList } from './styles/warningSize'
|
|
4
|
-
import type {
|
|
4
|
+
import type { WarningSizePropsType } from './styles/warningSize'
|
|
5
5
|
import { Warning, warningConfig } from './Warning'
|
|
6
6
|
import { warningAppearance } from './Warning.appearance'
|
|
7
7
|
import type {
|
|
@@ -23,6 +23,6 @@ export type {
|
|
|
23
23
|
WarningAppearanceKey,
|
|
24
24
|
WarningConfig,
|
|
25
25
|
WarningProps,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
WarningShapePropsType,
|
|
27
|
+
WarningSizePropsType,
|
|
28
28
|
}
|
|
@@ -32,7 +32,7 @@ const warningShapeList = getVariantsPropsList(
|
|
|
32
32
|
'warning_shape_',
|
|
33
33
|
)
|
|
34
34
|
|
|
35
|
-
type
|
|
35
|
+
type WarningShapePropsType = (typeof warningShapeList)[number]
|
|
36
36
|
|
|
37
37
|
export { warningShapeList, warningShapeStyles }
|
|
38
|
-
export type {
|
|
38
|
+
export type { WarningShapePropsType }
|
|
@@ -25,7 +25,7 @@ const warningSizeStyles = StyleSheet.create({
|
|
|
25
25
|
|
|
26
26
|
const warningSizeList = getVariantsPropsList(warningSizeStyles, 'warning_size_')
|
|
27
27
|
|
|
28
|
-
type
|
|
28
|
+
type WarningSizePropsType = (typeof warningSizeList)[number]
|
|
29
29
|
|
|
30
30
|
export { warningSizeList, warningSizeStyles }
|
|
31
|
-
export type {
|
|
31
|
+
export type { WarningSizePropsType }
|