jp-composter 0.1.0
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/dist/index.d.mts +997 -0
- package/dist/index.d.ts +997 -0
- package/dist/index.js +36837 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +36778 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +66 -0
- package/src/SliceUI/IconMoon.tsx +33 -0
- package/src/SliceUI/assets/Anatomy diagram copy.svg +19 -0
- package/src/SliceUI/assets/Anatomy diagram.svg +19 -0
- package/src/SliceUI/assets/Anatomycheck.svg +15 -0
- package/src/SliceUI/assets/Anatomyinput.svg +32 -0
- package/src/SliceUI/assets/Checkbox.jpg +0 -0
- package/src/SliceUI/assets/Diagram copy.svg +15 -0
- package/src/SliceUI/assets/Diagram.jpg +0 -0
- package/src/SliceUI/assets/Diagram.svg +15 -0
- package/src/SliceUI/assets/Frame 5 copy.png +0 -0
- package/src/SliceUI/assets/Frame 5.png +0 -0
- package/src/SliceUI/assets/Frame 65.png +0 -0
- package/src/SliceUI/assets/Frame_65.png +0 -0
- package/src/SliceUI/assets/Icon copy.svg +3 -0
- package/src/SliceUI/assets/Icon.svg +3 -0
- package/src/SliceUI/assets/Icon_Bridging copy.svg +39 -0
- package/src/SliceUI/assets/Icon_Bridging.svg +39 -0
- package/src/SliceUI/assets/Icon_Consistent copy.svg +39 -0
- package/src/SliceUI/assets/Icon_Consistent.svg +39 -0
- package/src/SliceUI/assets/Icon_Plug copy.svg +38 -0
- package/src/SliceUI/assets/Icon_Plug.svg +38 -0
- package/src/SliceUI/assets/Icon_Reusable copy.svg +39 -0
- package/src/SliceUI/assets/Icon_Reusable.svg +39 -0
- package/src/SliceUI/assets/Layer_1.png +0 -0
- package/src/SliceUI/assets/accessibility.png +0 -0
- package/src/SliceUI/assets/accessibility.svg +1 -0
- package/src/SliceUI/assets/addon-library.png +0 -0
- package/src/SliceUI/assets/assets.png +0 -0
- package/src/SliceUI/assets/avif-test-image.avif +0 -0
- package/src/SliceUI/assets/bridging.svg +13 -0
- package/src/SliceUI/assets/consistent.svg +11 -0
- package/src/SliceUI/assets/context.png +0 -0
- package/src/SliceUI/assets/discord.svg +1 -0
- package/src/SliceUI/assets/docs.png +0 -0
- package/src/SliceUI/assets/figma-plugin.png +0 -0
- package/src/SliceUI/assets/github.svg +1 -0
- package/src/SliceUI/assets/resources/Anatomy diagram.svg +19 -0
- package/src/SliceUI/assets/resources/Anatomycheck.svg +15 -0
- package/src/SliceUI/assets/resources/Anatomyinput.svg +32 -0
- package/src/SliceUI/assets/resources/Diagram.svg +15 -0
- package/src/SliceUI/assets/resources/Frame 5.png +0 -0
- package/src/SliceUI/assets/resources/Frame 65.png +0 -0
- package/src/SliceUI/assets/resources/Icon.svg +3 -0
- package/src/SliceUI/assets/resources/Icon_Bridging.svg +39 -0
- package/src/SliceUI/assets/resources/Icon_Consistent.svg +39 -0
- package/src/SliceUI/assets/resources/Icon_Plug.svg +38 -0
- package/src/SliceUI/assets/resources/Icon_Reusable.svg +39 -0
- package/src/SliceUI/assets/resources/fonts/FontIcon.json +150 -0
- package/src/SliceUI/assets/resources/fonts/Lato-Black.ttf +0 -0
- package/src/SliceUI/assets/resources/fonts/Lato-Bold.ttf +0 -0
- package/src/SliceUI/assets/resources/fonts/Lato-Heavy.ttf +0 -0
- package/src/SliceUI/assets/resources/fonts/Lato-Medium.ttf +0 -0
- package/src/SliceUI/assets/resources/fonts/Lato-Regular.ttf +0 -0
- package/src/SliceUI/assets/resources/fonts/Lato.woff2 +0 -0
- package/src/SliceUI/assets/resources/fonts/icomoon.eot +0 -0
- package/src/SliceUI/assets/resources/fonts/icomoon.svg +601 -0
- package/src/SliceUI/assets/resources/fonts/icomoon.ttf +0 -0
- package/src/SliceUI/assets/resources/fonts/icomoon.woff +0 -0
- package/src/SliceUI/assets/resources/fonts/selection.json +1 -0
- package/src/SliceUI/assets/share.png +0 -0
- package/src/SliceUI/assets/styling.png +0 -0
- package/src/SliceUI/assets/testing.png +0 -0
- package/src/SliceUI/assets/theming.png +0 -0
- package/src/SliceUI/assets/tutorials.svg +1 -0
- package/src/SliceUI/assets/youtube.svg +1 -0
- package/src/SliceUI/automation/helper.ts +29 -0
- package/src/SliceUI/avatar/Avatar.tsx +237 -0
- package/src/SliceUI/avatar/Token.ts +116 -0
- package/src/SliceUI/avatar/Type.ts +36 -0
- package/src/SliceUI/avatar/helper.ts +53 -0
- package/src/SliceUI/badge/Badge.tsx +308 -0
- package/src/SliceUI/badge/Token.ts +202 -0
- package/src/SliceUI/badge/Type.ts +46 -0
- package/src/SliceUI/badge/helper.ts +39 -0
- package/src/SliceUI/button/Button.tsx +243 -0
- package/src/SliceUI/button/Token.ts +138 -0
- package/src/SliceUI/button/Type.ts +34 -0
- package/src/SliceUI/button/helper.ts +125 -0
- package/src/SliceUI/checkbox/Checkbox.tsx +176 -0
- package/src/SliceUI/checkbox/Token.ts +128 -0
- package/src/SliceUI/checkbox/Type.ts +35 -0
- package/src/SliceUI/chip/Chip.tsx +290 -0
- package/src/SliceUI/chip/Token.ts +151 -0
- package/src/SliceUI/chip/Type.ts +43 -0
- package/src/SliceUI/chip/helper.ts +40 -0
- package/src/SliceUI/colors/Pallete.ts +151 -0
- package/src/SliceUI/colors/Token.ts +110 -0
- package/src/SliceUI/colors/Type.ts +56 -0
- package/src/SliceUI/contextProvider/context.tsx +108 -0
- package/src/SliceUI/divider/Divider.tsx +109 -0
- package/src/SliceUI/divider/Token.ts +18 -0
- package/src/SliceUI/divider/Type.ts +26 -0
- package/src/SliceUI/icon/CustomIcon.ts +4 -0
- package/src/SliceUI/icon/IcoMoonIcon.tsx +11 -0
- package/src/SliceUI/icon/Icon.tsx +38 -0
- package/src/SliceUI/icon/Token.ts +14 -0
- package/src/SliceUI/icon/Type.ts +13 -0
- package/src/SliceUI/icon/selection.json +1 -0
- package/src/SliceUI/input/Input.tsx +573 -0
- package/src/SliceUI/input/ToDo.md +99 -0
- package/src/SliceUI/input/Token.ts +372 -0
- package/src/SliceUI/input/Type.ts +109 -0
- package/src/SliceUI/input/components/InputPortal.tsx +211 -0
- package/src/SliceUI/input/components/NativeBottomSheet.tsx +296 -0
- package/src/SliceUI/input/components/SelectChip.tsx +185 -0
- package/src/SliceUI/input/components/SelectList.tsx +173 -0
- package/src/SliceUI/input/components/SelectListItem.tsx +377 -0
- package/src/SliceUI/input/components/SelectScrollbarStyle.ts +44 -0
- package/src/SliceUI/input/hooks/useCustomScrollbar.ts +17 -0
- package/src/SliceUI/input/hooks/useInputState.ts +41 -0
- package/src/SliceUI/input/hooks/useLabelAnimation.ts +132 -0
- package/src/SliceUI/input/hooks/useOutsideClick.ts +38 -0
- package/src/SliceUI/input/hooks/useSelectLogic.ts +338 -0
- package/src/SliceUI/input/utils/inputUtils.ts +120 -0
- package/src/SliceUI/input/utils/selectUtils.ts +85 -0
- package/src/SliceUI/input/utils/styleUtils.ts +50 -0
- package/src/SliceUI/input/variants/CurrencyInput/CurrencyInput.tsx +16 -0
- package/src/SliceUI/input/variants/CurrencyInput/NativeCurrencyInput.tsx +181 -0
- package/src/SliceUI/input/variants/CurrencyInput/WebCurrencyInput.tsx +163 -0
- package/src/SliceUI/input/variants/CurrencyInput/types.ts +17 -0
- package/src/SliceUI/input/variants/PhoneInput/NativePhoneInput.tsx +189 -0
- package/src/SliceUI/input/variants/PhoneInput/PhoneInput.tsx +16 -0
- package/src/SliceUI/input/variants/PhoneInput/WebPhoneInput.tsx +291 -0
- package/src/SliceUI/input/variants/PhoneInput/types.ts +22 -0
- package/src/SliceUI/input/variants/SelectInput/SelectInput.tsx +407 -0
- package/src/SliceUI/input/variants/SelectInput/types.ts +34 -0
- package/src/SliceUI/input/variants/TextInput.tsx +68 -0
- package/src/SliceUI/layout/Box.tsx +38 -0
- package/src/SliceUI/layout/Center.tsx +38 -0
- package/src/SliceUI/layout/Divider.tsx +37 -0
- package/src/SliceUI/layout/Grid.tsx +75 -0
- package/src/SliceUI/layout/PageContainer.tsx +60 -0
- package/src/SliceUI/layout/ScrollContainer.tsx +72 -0
- package/src/SliceUI/layout/Spacer.tsx +54 -0
- package/src/SliceUI/layout/Stack.tsx +97 -0
- package/src/SliceUI/layout/StickyHeader.tsx +71 -0
- package/src/SliceUI/radio/RadioButton.tsx +130 -0
- package/src/SliceUI/radio/Token.ts +197 -0
- package/src/SliceUI/radio/Type.ts +35 -0
- package/src/SliceUI/react-native.config.js +3 -0
- package/src/SliceUI/responsive/Type.ts +7 -0
- package/src/SliceUI/responsive/helper.ts +53 -0
- package/src/SliceUI/switch/Switch.tsx +119 -0
- package/src/SliceUI/switch/Token.ts +205 -0
- package/src/SliceUI/switch/Type.ts +26 -0
- package/src/SliceUI/tab/TabItem.tsx +204 -0
- package/src/SliceUI/tab/Tabs.tsx +110 -0
- package/src/SliceUI/tab/Token.ts +282 -0
- package/src/SliceUI/tab/Type.ts +66 -0
- package/src/SliceUI/tab/helper.ts +53 -0
- package/src/SliceUI/table/Table.tsx +388 -0
- package/src/SliceUI/table/TableCell.tsx +158 -0
- package/src/SliceUI/table/TableFooter.tsx +353 -0
- package/src/SliceUI/table/TableHeader.tsx +247 -0
- package/src/SliceUI/table/TableRow.tsx +218 -0
- package/src/SliceUI/table/Token.ts +252 -0
- package/src/SliceUI/table/Type.ts +213 -0
- package/src/SliceUI/table/helper.ts +376 -0
- package/src/SliceUI/table/index.ts +53 -0
- package/src/SliceUI/theme/dummyColors.tsx +7 -0
- package/src/SliceUI/theme/theme.ts +107 -0
- package/src/SliceUI/typography/BaseTypographyToken.ts +62 -0
- package/src/SliceUI/typography/FoundationToken.ts +48 -0
- package/src/SliceUI/typography/Token.ts +228 -0
- package/src/SliceUI/typography/Type.ts +20 -0
- package/src/SliceUI/typography/Typography.tsx +99 -0
- package/src/SliceUI/values/BorderRadius.ts +17 -0
- package/src/SliceUI/values/BorderWidth.ts +7 -0
- package/src/SliceUI/values/Dimension.ts +35 -0
- package/src/SliceUI/values/IconSizes.ts +13 -0
- package/src/SliceUI/values/Spacing.ts +22 -0
- package/src/declarations.d.ts +8 -0
- package/src/index.tsx +119 -0
- package/src/stories/Colors.mdx +1418 -0
- package/src/stories/Dimensions.mdx +60 -0
- package/src/stories/GetStarted.mdx +90 -0
- package/src/stories/Introduction.mdx +136 -0
- package/src/stories/Shape.mdx +126 -0
- package/src/stories/Spacing.mdx +104 -0
- package/src/stories/Typography.mdx +454 -0
- package/src/stories/Utils.mdx +277 -0
- package/src/stories/story-components/AddIcon.js +13 -0
- package/src/stories/story-components/RectangleWithBox.jsx +51 -0
- package/src/stories/story-components/RoundedRectangle.jsx +18 -0
- package/src/stories/story-components/RoundedWithWhiteInside.jsx +33 -0
- package/src/stories/story-components/WhiteRoundedRectangle.jsx +107 -0
- package/src/stories/story-components/svgPaths.js +126 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,997 @@
|
|
|
1
|
+
import React$1, { ReactNode } from 'react';
|
|
2
|
+
import { TextStyle, TextInputProps, ViewStyle, ImageSourcePropType, ViewProps, StyleProp, DimensionValue } from 'react-native';
|
|
3
|
+
|
|
4
|
+
declare const Breakpoints: {
|
|
5
|
+
xs: number;
|
|
6
|
+
sm: number;
|
|
7
|
+
md: number;
|
|
8
|
+
lg: number;
|
|
9
|
+
xl: number;
|
|
10
|
+
xxl: number;
|
|
11
|
+
};
|
|
12
|
+
declare const getDeviceBreakpoint: () => keyof typeof Breakpoints;
|
|
13
|
+
declare const scaleFont: (size: string | number | undefined) => string | number | undefined;
|
|
14
|
+
declare const resolveVariant: (variant: string | VariantBreakPoints, breakpoint: keyof VariantBreakPoints) => string;
|
|
15
|
+
|
|
16
|
+
type VariantBreakPoints = {
|
|
17
|
+
[Key in keyof typeof Breakpoints]: string;
|
|
18
|
+
} & {
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
type TypographyVariants = Record<string, TextStyle>;
|
|
23
|
+
interface TypographyViewProps {
|
|
24
|
+
screenName?: string;
|
|
25
|
+
id?: string;
|
|
26
|
+
children: string | string[];
|
|
27
|
+
variant?: string | VariantBreakPoints;
|
|
28
|
+
style?: TextStyle;
|
|
29
|
+
align?: 'auto' | 'left' | 'right' | 'center' | 'justify' | undefined;
|
|
30
|
+
spacing?: number;
|
|
31
|
+
extraProps?: any;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare const _default$a: React$1.NamedExoticComponent<TypographyViewProps>;
|
|
35
|
+
|
|
36
|
+
type InputVariantType = 'outlined' | 'filled' | 'standard';
|
|
37
|
+
type InputSizeType = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
|
|
38
|
+
interface InputIconProps {
|
|
39
|
+
style?: ViewStyle;
|
|
40
|
+
}
|
|
41
|
+
interface InputProps extends Omit<TextInputProps, 'style'> {
|
|
42
|
+
size?: InputSizeType;
|
|
43
|
+
labelText?: string;
|
|
44
|
+
error?: string;
|
|
45
|
+
helperText?: string;
|
|
46
|
+
startAdornment?: React$1.ReactNode;
|
|
47
|
+
endAdornment?: React$1.ReactNode;
|
|
48
|
+
prefixIcon?: React$1.ReactElement<InputIconProps>;
|
|
49
|
+
suffixIcon?: React$1.ReactElement<InputIconProps>;
|
|
50
|
+
containerStyle?: ViewStyle;
|
|
51
|
+
inputStyle?: TextStyle;
|
|
52
|
+
labelStyle?: TextStyle;
|
|
53
|
+
errorStyle?: TextStyle;
|
|
54
|
+
helperTextStyle?: TextStyle;
|
|
55
|
+
phoneNumber?: boolean;
|
|
56
|
+
countryCode?: string;
|
|
57
|
+
showCountryFlag?: boolean;
|
|
58
|
+
onCountryCodeChange?: (code: string) => void;
|
|
59
|
+
screenName?: string;
|
|
60
|
+
id?: string;
|
|
61
|
+
}
|
|
62
|
+
interface InputTheme {
|
|
63
|
+
container: ViewStyle;
|
|
64
|
+
input: TextStyle;
|
|
65
|
+
label: TextStyle;
|
|
66
|
+
error: TextStyle;
|
|
67
|
+
helperText: TextStyle;
|
|
68
|
+
}
|
|
69
|
+
type InputThemeVariant = {
|
|
70
|
+
[key in InputVariantType]: InputTheme;
|
|
71
|
+
};
|
|
72
|
+
type InputThemeSize = {
|
|
73
|
+
[key in InputSizeType]: InputThemeVariant;
|
|
74
|
+
};
|
|
75
|
+
type ExtendedInputVariant = 'outlined' | 'filled' | 'phoneWithFlag' | 'phoneWithCodeOnly' | 'currency' | 'select' | 'checkbox';
|
|
76
|
+
type SelectListType = 'default' | 'checkbox';
|
|
77
|
+
interface SelectOption {
|
|
78
|
+
label: string;
|
|
79
|
+
value: string;
|
|
80
|
+
icon?: React$1.ReactNode;
|
|
81
|
+
}
|
|
82
|
+
interface ExtendedInputProps extends Omit<InputProps, 'onChangeText'> {
|
|
83
|
+
variant?: ExtendedInputVariant;
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
hover?: boolean;
|
|
86
|
+
multiple?: boolean;
|
|
87
|
+
listType?: SelectListType;
|
|
88
|
+
options?: SelectOption[];
|
|
89
|
+
searchable?: boolean;
|
|
90
|
+
noItemText?: string;
|
|
91
|
+
maxVisibleItems?: number;
|
|
92
|
+
selectedIcon?: React$1.ReactNode;
|
|
93
|
+
expandChips?: boolean;
|
|
94
|
+
maxAllowed?: number;
|
|
95
|
+
onChangeText?: ((value: string) => void) | ((value: string | string[]) => void);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare const Input: React$1.ForwardRefExoticComponent<ExtendedInputProps & React$1.RefAttributes<any>>;
|
|
99
|
+
|
|
100
|
+
type IconSizeKey = 'xxxSmall' | 'xxSmall' | 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge';
|
|
101
|
+
type IconSize = Record<IconSizeKey, any>;
|
|
102
|
+
|
|
103
|
+
declare const ICON_SIZES: IconSize;
|
|
104
|
+
|
|
105
|
+
interface IconProps {
|
|
106
|
+
component: React$1.ReactNode;
|
|
107
|
+
variant: keyof typeof ICON_SIZES | VariantBreakPoints;
|
|
108
|
+
color?: string;
|
|
109
|
+
}
|
|
110
|
+
declare const _default$9: React$1.NamedExoticComponent<IconProps>;
|
|
111
|
+
|
|
112
|
+
interface ButtonProps {
|
|
113
|
+
children: string | string[];
|
|
114
|
+
onPress?: () => void;
|
|
115
|
+
overridedTheme?: any;
|
|
116
|
+
variant?: ButtonVariantType$1;
|
|
117
|
+
size?: string;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
rounded?: boolean;
|
|
120
|
+
buttonStyle?: ViewStyle;
|
|
121
|
+
textStyle?: TextStyle;
|
|
122
|
+
showPrefixIcon?: boolean;
|
|
123
|
+
showSuffixIcon?: boolean;
|
|
124
|
+
prefixIcon?: React$1.ReactNode;
|
|
125
|
+
suffixIcon?: React$1.ReactNode;
|
|
126
|
+
}
|
|
127
|
+
declare const BUTTON_VARIANTS: {
|
|
128
|
+
readonly PRIMARY: "primary";
|
|
129
|
+
readonly PRIMARY_OUTLINE: "primaryOutline";
|
|
130
|
+
readonly OUTLINED: "outlined";
|
|
131
|
+
readonly GHOST: "ghost";
|
|
132
|
+
};
|
|
133
|
+
type ButtonVariantType$1 = (typeof BUTTON_VARIANTS)[keyof typeof BUTTON_VARIANTS];
|
|
134
|
+
declare const Button: React$1.FC<ButtonProps>;
|
|
135
|
+
|
|
136
|
+
interface ChipProps {
|
|
137
|
+
screenName?: string;
|
|
138
|
+
id?: number | string;
|
|
139
|
+
text: string | string[];
|
|
140
|
+
onPress?: () => void;
|
|
141
|
+
overridedTheme?: any;
|
|
142
|
+
variant?: ChipVariantType$1;
|
|
143
|
+
size?: string;
|
|
144
|
+
disabled?: boolean;
|
|
145
|
+
rounded?: boolean;
|
|
146
|
+
chipStyle?: ViewStyle;
|
|
147
|
+
textStyle?: TextStyle;
|
|
148
|
+
showSuffixIcon?: boolean;
|
|
149
|
+
iconName?: string;
|
|
150
|
+
chipSelected?: boolean;
|
|
151
|
+
}
|
|
152
|
+
declare const CHIP_VARIANTS: {
|
|
153
|
+
readonly PRIMARY: "primary";
|
|
154
|
+
readonly PRIMARY_OUTLINE: "primaryOutline";
|
|
155
|
+
};
|
|
156
|
+
type ChipVariantType$1 = (typeof CHIP_VARIANTS)[keyof typeof CHIP_VARIANTS];
|
|
157
|
+
declare const Chip: React$1.FC<ChipProps>;
|
|
158
|
+
|
|
159
|
+
interface BadgeProps {
|
|
160
|
+
screenName?: string;
|
|
161
|
+
id?: number | string;
|
|
162
|
+
text: string | string[];
|
|
163
|
+
onPress?: () => void;
|
|
164
|
+
overridedTheme?: any;
|
|
165
|
+
variant?: BadgeVariantType$1;
|
|
166
|
+
size?: string;
|
|
167
|
+
disabled?: boolean;
|
|
168
|
+
rounded?: boolean;
|
|
169
|
+
badgeStyle?: ViewStyle;
|
|
170
|
+
textStyle?: TextStyle;
|
|
171
|
+
showSuffixIcon?: boolean;
|
|
172
|
+
iconName?: string;
|
|
173
|
+
badgeSelected?: boolean;
|
|
174
|
+
}
|
|
175
|
+
declare const BADGE_VARIANTS: {
|
|
176
|
+
readonly CO: "co";
|
|
177
|
+
readonly CM: "cm";
|
|
178
|
+
readonly NEGATIVE: "negative";
|
|
179
|
+
readonly POSITIVE: "positive";
|
|
180
|
+
readonly POSTIVE: "postive";
|
|
181
|
+
};
|
|
182
|
+
type BadgeVariantType$1 = (typeof BADGE_VARIANTS)[keyof typeof BADGE_VARIANTS];
|
|
183
|
+
declare const Badge: React$1.FC<BadgeProps>;
|
|
184
|
+
|
|
185
|
+
type SizeType$3 = 'small' | 'medium' | 'large' | 'xLarge';
|
|
186
|
+
type AvatarType = 'default' | 'name' | 'image';
|
|
187
|
+
|
|
188
|
+
interface AvatarProps {
|
|
189
|
+
screenName?: string;
|
|
190
|
+
id?: number | string;
|
|
191
|
+
type?: AvatarType;
|
|
192
|
+
size?: SizeType$3;
|
|
193
|
+
name?: string;
|
|
194
|
+
imageUri?: string;
|
|
195
|
+
imageSource?: ImageSourcePropType;
|
|
196
|
+
avatarStyle?: ViewStyle;
|
|
197
|
+
textStyle?: TextStyle;
|
|
198
|
+
onPress?: () => void;
|
|
199
|
+
}
|
|
200
|
+
declare const Avatar: React$1.FC<AvatarProps>;
|
|
201
|
+
|
|
202
|
+
type TabSizeType = 'small' | 'medium' | 'large';
|
|
203
|
+
type TabVariantType = 'bordered' | 'filled' | 'filledRounded';
|
|
204
|
+
type TabStateType = 'default' | 'hover' | 'disabled';
|
|
205
|
+
type TabBrandType = 'cm' | 'co';
|
|
206
|
+
|
|
207
|
+
interface TabItemProps {
|
|
208
|
+
screenName?: string;
|
|
209
|
+
id?: number | string;
|
|
210
|
+
label: string;
|
|
211
|
+
size?: TabSizeType;
|
|
212
|
+
variant?: TabVariantType;
|
|
213
|
+
brand?: TabBrandType;
|
|
214
|
+
state?: TabStateType;
|
|
215
|
+
isActive?: boolean;
|
|
216
|
+
disabled?: boolean;
|
|
217
|
+
onPress?: () => void;
|
|
218
|
+
tabItemStyle?: ViewStyle;
|
|
219
|
+
textStyle?: TextStyle;
|
|
220
|
+
}
|
|
221
|
+
declare const TabItem: React$1.FC<TabItemProps>;
|
|
222
|
+
|
|
223
|
+
interface TabOption {
|
|
224
|
+
id: string;
|
|
225
|
+
label: string;
|
|
226
|
+
disabled?: boolean;
|
|
227
|
+
}
|
|
228
|
+
interface TabsProps {
|
|
229
|
+
screenName?: string;
|
|
230
|
+
id?: number | string;
|
|
231
|
+
options: TabOption[];
|
|
232
|
+
activeTabId?: string;
|
|
233
|
+
size?: TabSizeType;
|
|
234
|
+
variant?: TabVariantType;
|
|
235
|
+
brand?: TabBrandType;
|
|
236
|
+
onTabChange?: (tabId: string) => void;
|
|
237
|
+
tabsStyle?: ViewStyle;
|
|
238
|
+
tabItemStyle?: ViewStyle;
|
|
239
|
+
}
|
|
240
|
+
declare const Tabs: React$1.FC<TabsProps>;
|
|
241
|
+
|
|
242
|
+
interface StackProps extends ViewProps {
|
|
243
|
+
gap?: number;
|
|
244
|
+
children: React$1.ReactNode;
|
|
245
|
+
style?: StyleProp<ViewStyle>;
|
|
246
|
+
alignItems?: ViewStyle['alignItems'];
|
|
247
|
+
justifyContent?: ViewStyle['justifyContent'];
|
|
248
|
+
flexWrap?: ViewStyle['flexWrap'];
|
|
249
|
+
}
|
|
250
|
+
declare const HStack: React$1.NamedExoticComponent<StackProps>;
|
|
251
|
+
declare const VStack: React$1.NamedExoticComponent<StackProps>;
|
|
252
|
+
|
|
253
|
+
interface ColorTokens {
|
|
254
|
+
colorBackgroundAccent: string;
|
|
255
|
+
colorBackgroundAccentAlpha: string;
|
|
256
|
+
colorBackgroundPositive: string;
|
|
257
|
+
colorBackgroundNegative: string;
|
|
258
|
+
colorBackgroundLink: string;
|
|
259
|
+
colorBackgroundPrimary: string;
|
|
260
|
+
colorBackgroundSecondary: string;
|
|
261
|
+
colorBackgroundTertiary: string;
|
|
262
|
+
colorBackgroundLight: string;
|
|
263
|
+
colorBackgroundLighter: string;
|
|
264
|
+
colorBackgroundElevated: string;
|
|
265
|
+
colorBackgroundModal: string;
|
|
266
|
+
colorBorderAccent: string;
|
|
267
|
+
colorBorderPositive: string;
|
|
268
|
+
colorBorderNegative: string;
|
|
269
|
+
colorBorderLink: string;
|
|
270
|
+
colorBorderStrong: string;
|
|
271
|
+
colorBorderMedium: string;
|
|
272
|
+
colorBorderSubtle: string;
|
|
273
|
+
colorBorderLight: string;
|
|
274
|
+
colorBorderLighter: string;
|
|
275
|
+
colorBorderAlpha: string;
|
|
276
|
+
colorForegroundAccent: string;
|
|
277
|
+
colorForegroundPositive: string;
|
|
278
|
+
colorForegroundNegative: string;
|
|
279
|
+
colorForegroundLink: string;
|
|
280
|
+
colorForegroundPrimary: string;
|
|
281
|
+
colorForegroundSecondary: string;
|
|
282
|
+
colorForegroundTertiary: string;
|
|
283
|
+
colorForegroundLight: string;
|
|
284
|
+
colorForegroundLighter: string;
|
|
285
|
+
colorForegroundInvariable: string;
|
|
286
|
+
colorStatePrimaryDisabled: string;
|
|
287
|
+
colorStatePrimaryHover: string;
|
|
288
|
+
colorStatePrimaryPressed: string;
|
|
289
|
+
colorStateAccentDisabled: string;
|
|
290
|
+
colorStatePrimaryDisabled2: string;
|
|
291
|
+
colorStateAccentHover1: string;
|
|
292
|
+
colorStateAccentHover2: string;
|
|
293
|
+
colorStateAccentPressed1: string;
|
|
294
|
+
colorStateAccentPressed2: string;
|
|
295
|
+
colorStateContrastWhiteDisabled: string;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
type SwitchSize = 'small' | 'medium' | 'large';
|
|
299
|
+
type SwitchBrand = 'CO' | 'CM';
|
|
300
|
+
|
|
301
|
+
interface SwitchProps {
|
|
302
|
+
checked: boolean;
|
|
303
|
+
onChange: (checked: boolean) => void;
|
|
304
|
+
size?: SwitchSize;
|
|
305
|
+
disabled?: boolean;
|
|
306
|
+
brand?: SwitchBrand;
|
|
307
|
+
style?: ViewStyle;
|
|
308
|
+
id?: string;
|
|
309
|
+
}
|
|
310
|
+
declare const Switch: React$1.FC<SwitchProps>;
|
|
311
|
+
|
|
312
|
+
type RadioButtonSize = 'small' | 'medium' | 'large';
|
|
313
|
+
type RadioButtonVariant = 'default' | 'error' | 'disabled';
|
|
314
|
+
interface RadioButtonProps {
|
|
315
|
+
checked: boolean;
|
|
316
|
+
onPress: () => void;
|
|
317
|
+
label: string;
|
|
318
|
+
size?: RadioButtonSize;
|
|
319
|
+
variant?: RadioButtonVariant;
|
|
320
|
+
disabled?: boolean;
|
|
321
|
+
style?: ViewStyle;
|
|
322
|
+
labelStyle?: TextStyle;
|
|
323
|
+
description?: string;
|
|
324
|
+
descriptionStyle?: TextStyle;
|
|
325
|
+
prefixIcon?: React.ReactNode;
|
|
326
|
+
suffixIcon?: React.ReactNode;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
declare const RadioButton: React$1.FC<RadioButtonProps>;
|
|
330
|
+
|
|
331
|
+
type DividerThicknessVariant = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
332
|
+
type DividerOrientation = 'horizontal' | 'vertical';
|
|
333
|
+
type DividerVariant = 'solid' | 'dashed' | 'dotted' | 'spacer';
|
|
334
|
+
interface DividerProps {
|
|
335
|
+
screenName?: string;
|
|
336
|
+
id?: string | number;
|
|
337
|
+
orientation?: DividerOrientation;
|
|
338
|
+
thickness?: DividerThicknessVariant | number;
|
|
339
|
+
color?: keyof ColorTokens | string;
|
|
340
|
+
variant?: DividerVariant;
|
|
341
|
+
marginVertical?: number;
|
|
342
|
+
marginHorizontal?: number;
|
|
343
|
+
borderRadius?: number;
|
|
344
|
+
showDivider?: boolean;
|
|
345
|
+
style?: ViewStyle;
|
|
346
|
+
testID?: string;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
declare const Divider: React$1.MemoExoticComponent<({ screenName, id, orientation, thickness, color, variant, marginVertical, marginHorizontal, borderRadius, showDivider, style, testID, }: DividerProps) => React$1.JSX.Element>;
|
|
350
|
+
|
|
351
|
+
type CheckboxSize = 'medium' | 'large';
|
|
352
|
+
interface CheckboxProps {
|
|
353
|
+
checked: boolean;
|
|
354
|
+
onChange: (checked: boolean) => void;
|
|
355
|
+
size?: CheckboxSize;
|
|
356
|
+
disabled?: boolean;
|
|
357
|
+
label?: string;
|
|
358
|
+
supportingText?: string;
|
|
359
|
+
style?: ViewStyle;
|
|
360
|
+
labelStyle?: TextStyle;
|
|
361
|
+
supportingTextStyle?: TextStyle;
|
|
362
|
+
id?: string;
|
|
363
|
+
labelFontSize?: number;
|
|
364
|
+
labelFontWeight?: TextStyle['fontWeight'];
|
|
365
|
+
labelColor?: string;
|
|
366
|
+
supportingTextFontSize?: number;
|
|
367
|
+
supportingTextColor?: string;
|
|
368
|
+
supportingTextMarginTop?: number;
|
|
369
|
+
}
|
|
370
|
+
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
371
|
+
|
|
372
|
+
interface BoxProps {
|
|
373
|
+
padding?: number;
|
|
374
|
+
margin?: number;
|
|
375
|
+
bg?: string;
|
|
376
|
+
flex?: number;
|
|
377
|
+
children: React$1.ReactNode;
|
|
378
|
+
}
|
|
379
|
+
declare const _default$8: React$1.NamedExoticComponent<BoxProps>;
|
|
380
|
+
|
|
381
|
+
interface CenterProps {
|
|
382
|
+
horizontal?: boolean;
|
|
383
|
+
vertical?: boolean;
|
|
384
|
+
children: React$1.ReactNode;
|
|
385
|
+
}
|
|
386
|
+
declare const _default$7: React$1.NamedExoticComponent<CenterProps>;
|
|
387
|
+
|
|
388
|
+
interface GridProps extends ViewProps {
|
|
389
|
+
columns?: number;
|
|
390
|
+
gap?: number;
|
|
391
|
+
children: React$1.ReactNode;
|
|
392
|
+
style?: StyleProp<ViewStyle>;
|
|
393
|
+
itemStyle?: StyleProp<ViewStyle>;
|
|
394
|
+
}
|
|
395
|
+
declare const _default$6: React$1.NamedExoticComponent<GridProps>;
|
|
396
|
+
|
|
397
|
+
interface SpacerProps extends ViewProps {
|
|
398
|
+
width?: DimensionValue;
|
|
399
|
+
height?: DimensionValue;
|
|
400
|
+
flex?: number;
|
|
401
|
+
style?: StyleProp<ViewStyle>;
|
|
402
|
+
}
|
|
403
|
+
declare const _default$5: React$1.NamedExoticComponent<SpacerProps>;
|
|
404
|
+
|
|
405
|
+
type TableSize = 'small' | 'medium' | 'large';
|
|
406
|
+
type TableVariant = 'default' | 'bordered' | 'striped';
|
|
407
|
+
type ColumnAlign = 'left' | 'center' | 'right';
|
|
408
|
+
type SortDirection = 'asc' | 'desc' | null;
|
|
409
|
+
interface TableColumn<T = any> {
|
|
410
|
+
key: string;
|
|
411
|
+
title: string;
|
|
412
|
+
dataIndex?: keyof T;
|
|
413
|
+
sortable?: boolean;
|
|
414
|
+
align?: ColumnAlign;
|
|
415
|
+
width?: number | string;
|
|
416
|
+
minWidth?: number;
|
|
417
|
+
maxWidth?: number;
|
|
418
|
+
fixed?: 'left' | 'right';
|
|
419
|
+
render?: (value: any, record: T, index: number) => ReactNode;
|
|
420
|
+
headerRender?: () => ReactNode;
|
|
421
|
+
sorter?: boolean | ((a: T, b: T) => number);
|
|
422
|
+
onHeaderCell?: () => ViewStyle;
|
|
423
|
+
onCell?: (record: T, index: number) => ViewStyle;
|
|
424
|
+
}
|
|
425
|
+
interface TableRowData {
|
|
426
|
+
key?: string | number;
|
|
427
|
+
[key: string]: any;
|
|
428
|
+
}
|
|
429
|
+
interface TableSelection<T = any> {
|
|
430
|
+
selectedRowKeys?: (string | number)[];
|
|
431
|
+
onChange?: (selectedRowKeys: (string | number)[], selectedRows: T[]) => void;
|
|
432
|
+
onSelect?: (record: T, selected: boolean, selectedRows: T[], nativeEvent: any) => void;
|
|
433
|
+
onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => void;
|
|
434
|
+
getCheckboxProps?: (record: T) => {
|
|
435
|
+
disabled?: boolean;
|
|
436
|
+
};
|
|
437
|
+
type?: 'checkbox' | 'radio';
|
|
438
|
+
fixed?: boolean;
|
|
439
|
+
columnWidth?: number | string;
|
|
440
|
+
columnTitle?: string | ReactNode;
|
|
441
|
+
hideSelectAll?: boolean;
|
|
442
|
+
}
|
|
443
|
+
interface TablePagination {
|
|
444
|
+
current?: number;
|
|
445
|
+
pageSize?: number;
|
|
446
|
+
total?: number;
|
|
447
|
+
showSizeChanger?: boolean;
|
|
448
|
+
pageSizeOptions?: string[];
|
|
449
|
+
showQuickJumper?: boolean;
|
|
450
|
+
showTotal?: (total: number, range: [number, number]) => ReactNode;
|
|
451
|
+
onChange?: (page: number, pageSize?: number) => void;
|
|
452
|
+
onShowSizeChange?: (current: number, size: number) => void;
|
|
453
|
+
position?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
454
|
+
size?: 'default' | 'small';
|
|
455
|
+
}
|
|
456
|
+
interface TableProps<T = any> {
|
|
457
|
+
screenName?: string;
|
|
458
|
+
id?: string | number;
|
|
459
|
+
columns: TableColumn<T>[];
|
|
460
|
+
dataSource: T[];
|
|
461
|
+
size?: TableSize;
|
|
462
|
+
variant?: TableVariant;
|
|
463
|
+
loading?: boolean;
|
|
464
|
+
pagination?: false | TablePagination;
|
|
465
|
+
rowSelection?: TableSelection<T>;
|
|
466
|
+
scroll?: {
|
|
467
|
+
x?: number | string | true;
|
|
468
|
+
y?: number | string;
|
|
469
|
+
};
|
|
470
|
+
bordered?: boolean;
|
|
471
|
+
showHeader?: boolean;
|
|
472
|
+
title?: () => ReactNode;
|
|
473
|
+
footer?: () => ReactNode;
|
|
474
|
+
expandable?: {
|
|
475
|
+
expandedRowRender?: (record: T, index: number, indent: number, expanded: boolean) => ReactNode;
|
|
476
|
+
expandedRowKeys?: (string | number)[];
|
|
477
|
+
defaultExpandedRowKeys?: (string | number)[];
|
|
478
|
+
onExpand?: (expanded: boolean, record: T) => void;
|
|
479
|
+
onExpandedRowsChange?: (expandedKeys: (string | number)[]) => void;
|
|
480
|
+
};
|
|
481
|
+
rowKey?: string | ((record: T) => string | number);
|
|
482
|
+
onRow?: (record: T, index?: number) => {
|
|
483
|
+
onClick?: () => void;
|
|
484
|
+
onDoubleClick?: () => void;
|
|
485
|
+
onContextMenu?: () => void;
|
|
486
|
+
onMouseEnter?: () => void;
|
|
487
|
+
onMouseLeave?: () => void;
|
|
488
|
+
};
|
|
489
|
+
onHeaderRow?: (columns: TableColumn<T>[], index?: number) => {
|
|
490
|
+
onClick?: () => void;
|
|
491
|
+
onDoubleClick?: () => void;
|
|
492
|
+
onContextMenu?: () => void;
|
|
493
|
+
onMouseEnter?: () => void;
|
|
494
|
+
onMouseLeave?: () => void;
|
|
495
|
+
};
|
|
496
|
+
sortDirections?: SortDirection[];
|
|
497
|
+
defaultSortOrder?: SortDirection;
|
|
498
|
+
showSorterTooltip?: boolean;
|
|
499
|
+
tableStyle?: ViewStyle;
|
|
500
|
+
headerStyle?: ViewStyle;
|
|
501
|
+
bodyStyle?: ViewStyle;
|
|
502
|
+
footerStyle?: ViewStyle;
|
|
503
|
+
rowStyle?: ViewStyle;
|
|
504
|
+
cellStyle?: ViewStyle;
|
|
505
|
+
emptyText?: ReactNode;
|
|
506
|
+
locale?: {
|
|
507
|
+
emptyText?: string;
|
|
508
|
+
filterTitle?: string;
|
|
509
|
+
filterConfirm?: string;
|
|
510
|
+
filterReset?: string;
|
|
511
|
+
selectAll?: string;
|
|
512
|
+
selectInvert?: string;
|
|
513
|
+
selectionAll?: string;
|
|
514
|
+
sortTitle?: string;
|
|
515
|
+
expand?: string;
|
|
516
|
+
collapse?: string;
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
interface TableCellProps {
|
|
520
|
+
children?: ReactNode;
|
|
521
|
+
align?: ColumnAlign;
|
|
522
|
+
style?: ViewStyle;
|
|
523
|
+
textStyle?: TextStyle;
|
|
524
|
+
width?: number | string;
|
|
525
|
+
minWidth?: number;
|
|
526
|
+
maxWidth?: number;
|
|
527
|
+
fixed?: 'left' | 'right';
|
|
528
|
+
ellipsis?: boolean;
|
|
529
|
+
onPress?: () => void;
|
|
530
|
+
}
|
|
531
|
+
interface TableHeaderProps {
|
|
532
|
+
columns: TableColumn[];
|
|
533
|
+
selection?: TableSelection;
|
|
534
|
+
sortedInfo?: {
|
|
535
|
+
columnKey?: string;
|
|
536
|
+
order?: SortDirection;
|
|
537
|
+
};
|
|
538
|
+
onSort?: (columnKey: string, direction: SortDirection) => void;
|
|
539
|
+
onSelectAll?: (selected: boolean) => void;
|
|
540
|
+
allSelected?: boolean;
|
|
541
|
+
indeterminate?: boolean;
|
|
542
|
+
style?: ViewStyle;
|
|
543
|
+
}
|
|
544
|
+
interface TableRowProps<T = any> {
|
|
545
|
+
record: T;
|
|
546
|
+
index: number;
|
|
547
|
+
columns: TableColumn<T>[];
|
|
548
|
+
selection?: TableSelection<T>;
|
|
549
|
+
selected?: boolean;
|
|
550
|
+
onSelect?: (selected: boolean) => void;
|
|
551
|
+
onRow?: (record: T, index?: number) => any;
|
|
552
|
+
style?: ViewStyle;
|
|
553
|
+
hover?: boolean;
|
|
554
|
+
striped?: boolean;
|
|
555
|
+
}
|
|
556
|
+
interface TableFooterProps {
|
|
557
|
+
pagination?: TablePagination;
|
|
558
|
+
style?: ViewStyle;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
declare const _default$4: <T extends TableRowData>(props: TableProps<T>) => React$1.ReactElement;
|
|
562
|
+
|
|
563
|
+
declare const _default$3: React$1.NamedExoticComponent<TableCellProps>;
|
|
564
|
+
|
|
565
|
+
declare const _default$2: React$1.NamedExoticComponent<TableHeaderProps>;
|
|
566
|
+
|
|
567
|
+
declare const _default$1: React$1.NamedExoticComponent<TableRowProps<any>>;
|
|
568
|
+
|
|
569
|
+
declare const _default: React$1.NamedExoticComponent<TableFooterProps>;
|
|
570
|
+
|
|
571
|
+
declare const dimensions: {
|
|
572
|
+
dimension00: number;
|
|
573
|
+
dimension01: number;
|
|
574
|
+
dimension02: number;
|
|
575
|
+
dimension03: number;
|
|
576
|
+
dimension04: number;
|
|
577
|
+
dimension05: number;
|
|
578
|
+
dimension06: number;
|
|
579
|
+
dimension07: number;
|
|
580
|
+
dimension08: number;
|
|
581
|
+
dimension09: number;
|
|
582
|
+
dimension10: number;
|
|
583
|
+
dimension11: number;
|
|
584
|
+
dimension12: number;
|
|
585
|
+
dimension13: number;
|
|
586
|
+
dimension14: number;
|
|
587
|
+
dimension15: number;
|
|
588
|
+
dimension16: number;
|
|
589
|
+
dimension17: number;
|
|
590
|
+
dimension18: number;
|
|
591
|
+
dimension19: number;
|
|
592
|
+
dimension20: number;
|
|
593
|
+
dimension21: number;
|
|
594
|
+
dimension22: number;
|
|
595
|
+
dimension23: number;
|
|
596
|
+
dimension24: number;
|
|
597
|
+
dimension25: number;
|
|
598
|
+
dimension26: number;
|
|
599
|
+
dimension27: number;
|
|
600
|
+
dimension28: number;
|
|
601
|
+
dimension29: number;
|
|
602
|
+
dimension30: number;
|
|
603
|
+
dimension31: number;
|
|
604
|
+
dimension100: number;
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
type SizeType$2 = 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge';
|
|
608
|
+
type VariantsType$2 = 'solid' | 'outline' | 'solidRounded' | 'outlineRounded';
|
|
609
|
+
type ButtonSizeType = {
|
|
610
|
+
[key in SizeType$2]: ButtonVariantType;
|
|
611
|
+
};
|
|
612
|
+
type ButtonVariantType = {
|
|
613
|
+
[key in VariantsType$2]: ViewStyle;
|
|
614
|
+
};
|
|
615
|
+
type ButtonTextSizeType = {
|
|
616
|
+
[key in SizeType$2]: TextStyle;
|
|
617
|
+
};
|
|
618
|
+
type ButtonIconSizeType = {
|
|
619
|
+
[key in SizeType$2]: any;
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
type SizeType$1 = 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge';
|
|
623
|
+
type VariantsType$1 = 'solid' | 'outline' | 'solidRounded' | 'outlineRounded';
|
|
624
|
+
type ChipSizeType = {
|
|
625
|
+
[key in SizeType$1]: ChipVariantType;
|
|
626
|
+
};
|
|
627
|
+
type ChipVariantType = {
|
|
628
|
+
[key in VariantsType$1]: ViewStyle;
|
|
629
|
+
};
|
|
630
|
+
type ChipTextSizeType = {
|
|
631
|
+
[key in SizeType$1]: TextStyle;
|
|
632
|
+
};
|
|
633
|
+
type ChipIconSizeType = {
|
|
634
|
+
[key in SizeType$1]: any;
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
type SizeType = 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge';
|
|
638
|
+
type VariantsType = 'solid' | 'outline' | 'solidRounded' | 'outlineRounded';
|
|
639
|
+
type BadgeSizeType = {
|
|
640
|
+
[key in SizeType]: BadgeVariantType;
|
|
641
|
+
};
|
|
642
|
+
type BadgeVariantType = {
|
|
643
|
+
[key in VariantsType]: ViewStyle;
|
|
644
|
+
};
|
|
645
|
+
type BadgeTextSizeType = {
|
|
646
|
+
[key in SizeType]: TextStyle;
|
|
647
|
+
};
|
|
648
|
+
type BadgeIconSizeType = {
|
|
649
|
+
[key in SizeType]: any;
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
declare const spacing: {
|
|
653
|
+
space0: number;
|
|
654
|
+
space50: number;
|
|
655
|
+
space100: number;
|
|
656
|
+
space150: number;
|
|
657
|
+
space200: number;
|
|
658
|
+
space250: number;
|
|
659
|
+
space300: number;
|
|
660
|
+
space350: number;
|
|
661
|
+
space400: number;
|
|
662
|
+
space450: number;
|
|
663
|
+
space500: number;
|
|
664
|
+
space550: number;
|
|
665
|
+
space600: number;
|
|
666
|
+
space800: number;
|
|
667
|
+
space900: number;
|
|
668
|
+
space1000: number;
|
|
669
|
+
space1200: number;
|
|
670
|
+
space1400: number;
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
interface ThemeContextType {
|
|
674
|
+
theme: SliceTheme$1;
|
|
675
|
+
deviceBreakpoint: keyof typeof Breakpoints;
|
|
676
|
+
}
|
|
677
|
+
interface SliceThemeProviderProps {
|
|
678
|
+
children: ReactNode;
|
|
679
|
+
theme: SliceTheme$1;
|
|
680
|
+
}
|
|
681
|
+
declare const SliceThemeProvider: React$1.FC<SliceThemeProviderProps>;
|
|
682
|
+
declare const useSliceTheme: () => ThemeContextType;
|
|
683
|
+
interface SliceTheme$1 {
|
|
684
|
+
isDebugBuildType?: boolean;
|
|
685
|
+
automationBaseid?: string;
|
|
686
|
+
typographyStyles?: TypographyVariants;
|
|
687
|
+
colors: ColorTokens;
|
|
688
|
+
dimensions: typeof dimensions;
|
|
689
|
+
inputStyles: InputThemeSize;
|
|
690
|
+
buttonStyles: ButtonSizeType;
|
|
691
|
+
buttonTextStyles: ButtonTextSizeType;
|
|
692
|
+
buttonIconStyles: ButtonIconSizeType;
|
|
693
|
+
chipStyles: ChipSizeType;
|
|
694
|
+
chipTextStyles: ChipTextSizeType;
|
|
695
|
+
chipIconStyles: ChipIconSizeType;
|
|
696
|
+
badgeStyles: BadgeSizeType;
|
|
697
|
+
badgeTextStyles: BadgeTextSizeType;
|
|
698
|
+
badgeIconStyles: BadgeIconSizeType;
|
|
699
|
+
avatarStyles: any;
|
|
700
|
+
avatarTextStyles: any;
|
|
701
|
+
avatarImageStyles: any;
|
|
702
|
+
avatarButtonRadius: any;
|
|
703
|
+
tabItemStyles: any;
|
|
704
|
+
tabItemTextStyles: any;
|
|
705
|
+
iconSizes: IconSize;
|
|
706
|
+
spacing: typeof spacing;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
declare const colors: {
|
|
710
|
+
Primary: {
|
|
711
|
+
100: string;
|
|
712
|
+
200: string;
|
|
713
|
+
300: string;
|
|
714
|
+
400: string;
|
|
715
|
+
500: string;
|
|
716
|
+
600: string;
|
|
717
|
+
700: string;
|
|
718
|
+
800: string;
|
|
719
|
+
900: string;
|
|
720
|
+
1000: string;
|
|
721
|
+
a100: string;
|
|
722
|
+
a200: string;
|
|
723
|
+
a300: string;
|
|
724
|
+
a400: string;
|
|
725
|
+
};
|
|
726
|
+
red: {
|
|
727
|
+
100: string;
|
|
728
|
+
200: string;
|
|
729
|
+
300: string;
|
|
730
|
+
400: string;
|
|
731
|
+
500: string;
|
|
732
|
+
600: string;
|
|
733
|
+
700: string;
|
|
734
|
+
800: string;
|
|
735
|
+
900: string;
|
|
736
|
+
1000: string;
|
|
737
|
+
a100: string;
|
|
738
|
+
a200: string;
|
|
739
|
+
a300: string;
|
|
740
|
+
a400: string;
|
|
741
|
+
};
|
|
742
|
+
yellow: {
|
|
743
|
+
100: string;
|
|
744
|
+
200: string;
|
|
745
|
+
300: string;
|
|
746
|
+
400: string;
|
|
747
|
+
500: string;
|
|
748
|
+
600: string;
|
|
749
|
+
700: string;
|
|
750
|
+
800: string;
|
|
751
|
+
900: string;
|
|
752
|
+
1000: string;
|
|
753
|
+
a100: string;
|
|
754
|
+
a200: string;
|
|
755
|
+
a300: string;
|
|
756
|
+
a400: string;
|
|
757
|
+
};
|
|
758
|
+
orange: {
|
|
759
|
+
100: string;
|
|
760
|
+
200: string;
|
|
761
|
+
300: string;
|
|
762
|
+
400: string;
|
|
763
|
+
500: string;
|
|
764
|
+
600: string;
|
|
765
|
+
700: string;
|
|
766
|
+
800: string;
|
|
767
|
+
900: string;
|
|
768
|
+
1000: string;
|
|
769
|
+
a100: string;
|
|
770
|
+
a200: string;
|
|
771
|
+
a300: string;
|
|
772
|
+
a400: string;
|
|
773
|
+
};
|
|
774
|
+
green: {
|
|
775
|
+
100: string;
|
|
776
|
+
200: string;
|
|
777
|
+
300: string;
|
|
778
|
+
400: string;
|
|
779
|
+
500: string;
|
|
780
|
+
600: string;
|
|
781
|
+
700: string;
|
|
782
|
+
800: string;
|
|
783
|
+
900: string;
|
|
784
|
+
1000: string;
|
|
785
|
+
a100: string;
|
|
786
|
+
a200: string;
|
|
787
|
+
a300: string;
|
|
788
|
+
a400: string;
|
|
789
|
+
};
|
|
790
|
+
blue: {
|
|
791
|
+
100: string;
|
|
792
|
+
200: string;
|
|
793
|
+
300: string;
|
|
794
|
+
400: string;
|
|
795
|
+
500: string;
|
|
796
|
+
600: string;
|
|
797
|
+
700: string;
|
|
798
|
+
800: string;
|
|
799
|
+
900: string;
|
|
800
|
+
1000: string;
|
|
801
|
+
a100: string;
|
|
802
|
+
a200: string;
|
|
803
|
+
a300: string;
|
|
804
|
+
a400: string;
|
|
805
|
+
};
|
|
806
|
+
neutral: {
|
|
807
|
+
100: string;
|
|
808
|
+
200: string;
|
|
809
|
+
300: string;
|
|
810
|
+
400: string;
|
|
811
|
+
500: string;
|
|
812
|
+
600: string;
|
|
813
|
+
700: string;
|
|
814
|
+
800: string;
|
|
815
|
+
900: string;
|
|
816
|
+
1000: string;
|
|
817
|
+
a50: string;
|
|
818
|
+
a100: string;
|
|
819
|
+
a200: string;
|
|
820
|
+
a300: string;
|
|
821
|
+
a400: string;
|
|
822
|
+
};
|
|
823
|
+
slate: {
|
|
824
|
+
100: string;
|
|
825
|
+
200: string;
|
|
826
|
+
300: string;
|
|
827
|
+
400: string;
|
|
828
|
+
500: string;
|
|
829
|
+
600: string;
|
|
830
|
+
700: string;
|
|
831
|
+
800: string;
|
|
832
|
+
900: string;
|
|
833
|
+
1000: string;
|
|
834
|
+
};
|
|
835
|
+
white: {
|
|
836
|
+
1000: string;
|
|
837
|
+
a100: string;
|
|
838
|
+
a200: string;
|
|
839
|
+
a300: string;
|
|
840
|
+
a400: string;
|
|
841
|
+
a500: string;
|
|
842
|
+
a600: string;
|
|
843
|
+
a700: string;
|
|
844
|
+
a800: string;
|
|
845
|
+
a900: string;
|
|
846
|
+
};
|
|
847
|
+
black: {
|
|
848
|
+
1000: string;
|
|
849
|
+
a100: string;
|
|
850
|
+
a200: string;
|
|
851
|
+
a300: string;
|
|
852
|
+
a400: string;
|
|
853
|
+
a500: string;
|
|
854
|
+
a600: string;
|
|
855
|
+
a700: string;
|
|
856
|
+
a800: string;
|
|
857
|
+
a900: string;
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
declare const LightColorTokens: (colors?: typeof colors, accentColor?: string, positiveColor?: string, negativeColor?: string, linkColor?: string, contrastWhite?: string) => ColorTokens;
|
|
862
|
+
declare const DarkColorTokens: (colors?: typeof colors, accentColor?: string, positiveColor?: string, negativeColor?: string, linkColor?: string, contrastWhite?: string) => ColorTokens;
|
|
863
|
+
|
|
864
|
+
declare class SliceTheme {
|
|
865
|
+
isDebugBuildType: boolean;
|
|
866
|
+
automationBaseid: string;
|
|
867
|
+
typographyStyles: TypographyVariants;
|
|
868
|
+
iconSizes: IconSize;
|
|
869
|
+
buttonStyles: ButtonSizeType;
|
|
870
|
+
buttonTextStyles: ButtonTextSizeType;
|
|
871
|
+
buttonIconStyles: ButtonIconSizeType;
|
|
872
|
+
roundButtonRadius: ViewStyle['borderRadius'];
|
|
873
|
+
chipStyles: ButtonSizeType;
|
|
874
|
+
chipTextStyles: ButtonTextSizeType;
|
|
875
|
+
chipIconStyles: ButtonIconSizeType;
|
|
876
|
+
chipButtonRadius: ViewStyle['borderRadius'];
|
|
877
|
+
badgeStyles: ButtonSizeType;
|
|
878
|
+
badgeTextStyles: ButtonTextSizeType;
|
|
879
|
+
badgeIconStyles: ButtonIconSizeType;
|
|
880
|
+
badgeButtonRadius: ViewStyle['borderRadius'];
|
|
881
|
+
avatarStyles: any;
|
|
882
|
+
avatarTextStyles: any;
|
|
883
|
+
avatarImageStyles: any;
|
|
884
|
+
avatarButtonRadius: ViewStyle['borderRadius'];
|
|
885
|
+
tabItemStyles: any;
|
|
886
|
+
tabItemTextStyles: any;
|
|
887
|
+
inputStyles: InputThemeSize;
|
|
888
|
+
spacing: {
|
|
889
|
+
space0: number;
|
|
890
|
+
space50: number;
|
|
891
|
+
space100: number;
|
|
892
|
+
space150: number;
|
|
893
|
+
space200: number;
|
|
894
|
+
space250: number;
|
|
895
|
+
space300: number;
|
|
896
|
+
space350: number;
|
|
897
|
+
space400: number;
|
|
898
|
+
space450: number;
|
|
899
|
+
space500: number;
|
|
900
|
+
space550: number;
|
|
901
|
+
space600: number;
|
|
902
|
+
space800: number;
|
|
903
|
+
space900: number;
|
|
904
|
+
space1000: number;
|
|
905
|
+
space1200: number;
|
|
906
|
+
space1400: number;
|
|
907
|
+
};
|
|
908
|
+
colors: ColorTokens;
|
|
909
|
+
dimensions: {
|
|
910
|
+
dimension00: number;
|
|
911
|
+
dimension01: number;
|
|
912
|
+
dimension02: number;
|
|
913
|
+
dimension03: number;
|
|
914
|
+
dimension04: number;
|
|
915
|
+
dimension05: number;
|
|
916
|
+
dimension06: number;
|
|
917
|
+
dimension07: number;
|
|
918
|
+
dimension08: number;
|
|
919
|
+
dimension09: number;
|
|
920
|
+
dimension10: number;
|
|
921
|
+
dimension11: number;
|
|
922
|
+
dimension12: number;
|
|
923
|
+
dimension13: number;
|
|
924
|
+
dimension14: number;
|
|
925
|
+
dimension15: number;
|
|
926
|
+
dimension16: number;
|
|
927
|
+
dimension17: number;
|
|
928
|
+
dimension18: number;
|
|
929
|
+
dimension19: number;
|
|
930
|
+
dimension20: number;
|
|
931
|
+
dimension21: number;
|
|
932
|
+
dimension22: number;
|
|
933
|
+
dimension23: number;
|
|
934
|
+
dimension24: number;
|
|
935
|
+
dimension25: number;
|
|
936
|
+
dimension26: number;
|
|
937
|
+
dimension27: number;
|
|
938
|
+
dimension28: number;
|
|
939
|
+
dimension29: number;
|
|
940
|
+
dimension30: number;
|
|
941
|
+
dimension31: number;
|
|
942
|
+
dimension100: number;
|
|
943
|
+
};
|
|
944
|
+
constructor(params?: Partial<SliceTheme>);
|
|
945
|
+
/**
|
|
946
|
+
* Updates the most deeply nested properties in the theme object.
|
|
947
|
+
* Uses recursion to merge nested structures.
|
|
948
|
+
*
|
|
949
|
+
* @param updates A partial update object to apply changes deeply.
|
|
950
|
+
*/
|
|
951
|
+
updateNestedStyles(updates: Partial<SliceTheme>): void;
|
|
952
|
+
}
|
|
953
|
+
declare const theme: SliceTheme;
|
|
954
|
+
|
|
955
|
+
declare const borderRadius: {
|
|
956
|
+
borderRadius0: number;
|
|
957
|
+
borderRadius10: number;
|
|
958
|
+
borderRadius20: number;
|
|
959
|
+
borderRadius30: number;
|
|
960
|
+
borderRadius40: number;
|
|
961
|
+
borderRadius50: number;
|
|
962
|
+
borderRadius60: number;
|
|
963
|
+
borderRadius70: number;
|
|
964
|
+
borderRadius80: number;
|
|
965
|
+
borderRadius90: number;
|
|
966
|
+
borderRadius100: number;
|
|
967
|
+
borderRadius110: number;
|
|
968
|
+
borderRadiusFull: number;
|
|
969
|
+
};
|
|
970
|
+
|
|
971
|
+
declare const borderWidth: {
|
|
972
|
+
borderWidth00: number;
|
|
973
|
+
borderWidth10: number;
|
|
974
|
+
borderWidth15: number;
|
|
975
|
+
borderWidth20: number;
|
|
976
|
+
borderWidth40: number;
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
declare const iconSize: {
|
|
980
|
+
iconSize01: number;
|
|
981
|
+
iconSize02: number;
|
|
982
|
+
iconSize03: number;
|
|
983
|
+
iconSize04: number;
|
|
984
|
+
iconSize05: number;
|
|
985
|
+
iconSize06: number;
|
|
986
|
+
iconSize07: number;
|
|
987
|
+
iconSize08: number;
|
|
988
|
+
iconSize09: number;
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
type FhSliceUIProps = {
|
|
992
|
+
color: string;
|
|
993
|
+
style: ViewStyle;
|
|
994
|
+
};
|
|
995
|
+
declare let FhSliceUIView: React$1.ComponentType<FhSliceUIProps>;
|
|
996
|
+
|
|
997
|
+
export { Avatar, Badge, _default$8 as Box, Breakpoints, Button, _default$7 as Center, Checkbox, Chip, DarkColorTokens, Divider, FhSliceUIView, _default$6 as Grid, HStack, _default$9 as Icon, Input, LightColorTokens, RadioButton, SliceThemeProvider, _default$5 as Spacer, Switch, TabItem, _default$4 as Table, _default$3 as TableCell, _default as TableFooter, _default$2 as TableHeader, _default$1 as TableRow, Tabs, _default$a as Typography, VStack, borderRadius, borderWidth, colors, dimensions, getDeviceBreakpoint, iconSize, resolveVariant, scaleFont, spacing, theme, useSliceTheme };
|