@ecohouse/ui 0.1.5 → 0.1.6
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/README.md +34 -3
- package/dist/index.cjs +592 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +263 -162
- package/dist/index.d.ts +263 -162
- package/dist/index.js +582 -104
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Badge/Badge.stories.tsx +52 -0
- package/src/components/Badge/Badge.tsx +131 -0
- package/src/components/Badge/index.ts +2 -0
- package/src/components/Counter/Counter.stories.tsx +46 -0
- package/src/components/Counter/Counter.tsx +135 -0
- package/src/components/Counter/index.ts +2 -0
- package/src/components/SegmentedToggle/SegmentedToggle.stories.tsx +63 -0
- package/src/components/SegmentedToggle/SegmentedToggle.tsx +221 -0
- package/src/components/SegmentedToggle/index.ts +2 -0
- package/src/components/StatCard/StatCard.stories.tsx +20 -0
- package/src/components/StatCard/StatCard.tsx +61 -0
- package/src/components/StatCard/index.ts +2 -0
- package/src/components/index.ts +12 -0
- package/src/icons/Minus/MinusIcon.tsx +20 -0
- package/src/icons/Minus/MinusIcon.web.tsx +19 -0
- package/src/icons/Minus/index.ts +1 -0
- package/src/icons/Minus/minusPath.ts +1 -0
- package/src/icons/Plus/PlusIcon.tsx +20 -0
- package/src/icons/Plus/PlusIcon.web.tsx +19 -0
- package/src/icons/Plus/index.ts +1 -0
- package/src/icons/Plus/plusPath.ts +1 -0
- package/src/icons/Sidebar/SidebarIcon.tsx +21 -0
- package/src/icons/Sidebar/SidebarIcon.web.tsx +27 -0
- package/src/icons/Sidebar/index.ts +1 -0
- package/src/icons/Sidebar/sidebarPath.ts +3 -0
- package/src/icons/UsersAlt/UsersAltIcon.tsx +14 -0
- package/src/icons/UsersAlt/UsersAltIcon.web.tsx +13 -0
- package/src/icons/UsersAlt/index.ts +1 -0
- package/src/icons/UsersAlt/usersAltPath.ts +2 -0
- package/src/icons/index.ts +4 -0
- package/src/icons/registry.ts +12 -2
- package/src/index.ts +18 -0
- package/src/theme/colors.test.ts +6 -0
- package/src/theme/colors.ts +6 -0
- package/src/theme/index.ts +4 -0
- package/src/theme/typography.ts +36 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ComponentType } from 'react';
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
|
-
import { PressableProps, GestureResponderEvent, StyleProp, ViewStyle, TextStyle, View,
|
|
4
|
+
import { PressableProps, GestureResponderEvent, StyleProp, ViewStyle, TextStyle, View, ViewProps, TouchableOpacityProps, TextInputProps, TextInput } from 'react-native';
|
|
5
5
|
|
|
6
6
|
interface MenuItemProps extends Omit<PressableProps, "onPress" | "disabled" | "style" | "children" | "hitSlop"> {
|
|
7
7
|
/** Leading icon, e.g. `<CalendarIcon size={16} />` — pass it pre-colored. */
|
|
@@ -57,6 +57,229 @@ interface AvatarProps extends Omit<PressableProps, "onPress" | "disabled" | "sty
|
|
|
57
57
|
}
|
|
58
58
|
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<View>>;
|
|
59
59
|
|
|
60
|
+
interface IconProps {
|
|
61
|
+
size?: number;
|
|
62
|
+
color?: string;
|
|
63
|
+
strokeWidth?: number;
|
|
64
|
+
}
|
|
65
|
+
type IconComponent = ComponentType<IconProps>;
|
|
66
|
+
|
|
67
|
+
interface ArrowRightIconProps {
|
|
68
|
+
size?: number;
|
|
69
|
+
color?: string;
|
|
70
|
+
strokeWidth?: number;
|
|
71
|
+
}
|
|
72
|
+
/** Native — react-native-svg (peer dependency). */
|
|
73
|
+
declare function ArrowRightIcon({ size, color, strokeWidth, }: ArrowRightIconProps): react.JSX.Element;
|
|
74
|
+
|
|
75
|
+
declare function BagIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
76
|
+
|
|
77
|
+
declare function BellIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
78
|
+
|
|
79
|
+
declare function BuildingIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
80
|
+
|
|
81
|
+
/** Native — react-native-svg (peer dependency). */
|
|
82
|
+
declare function CalendarIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
83
|
+
|
|
84
|
+
/** Native — react-native-svg (peer dependency). */
|
|
85
|
+
declare function CalendarOutlineIcon({ size, color, strokeWidth, }: IconProps): react.JSX.Element;
|
|
86
|
+
|
|
87
|
+
declare function CameraIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
88
|
+
|
|
89
|
+
interface CheckIconProps {
|
|
90
|
+
size?: number;
|
|
91
|
+
color?: string;
|
|
92
|
+
strokeWidth?: number;
|
|
93
|
+
}
|
|
94
|
+
/** Native — react-native-svg (peer dependency). */
|
|
95
|
+
declare function CheckIcon({ size, color, strokeWidth }: CheckIconProps): react.JSX.Element;
|
|
96
|
+
|
|
97
|
+
declare function CheckBadgeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
98
|
+
|
|
99
|
+
interface ChevronDownIconProps {
|
|
100
|
+
size?: number;
|
|
101
|
+
color?: string;
|
|
102
|
+
strokeWidth?: number;
|
|
103
|
+
}
|
|
104
|
+
/** Native — react-native-svg (peer dependency). */
|
|
105
|
+
declare function ChevronDownIcon({ size, color, strokeWidth, }: ChevronDownIconProps): react.JSX.Element;
|
|
106
|
+
|
|
107
|
+
/** Native — react-native-svg (peer dependency). */
|
|
108
|
+
declare function ChevronLeftIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
109
|
+
|
|
110
|
+
declare function ClockIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
111
|
+
|
|
112
|
+
declare function FacebookIcon({ size, color }: IconProps): react.JSX.Element;
|
|
113
|
+
|
|
114
|
+
/** Native — react-native-svg (peer dependency). */
|
|
115
|
+
declare function HeartIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
116
|
+
|
|
117
|
+
/** Native — react-native-svg (peer dependency). */
|
|
118
|
+
declare function HelpCircleIcon({ size, color, strokeWidth, }: IconProps): react.JSX.Element;
|
|
119
|
+
|
|
120
|
+
declare function HomeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
121
|
+
|
|
122
|
+
declare function InstagramIcon({ size, color }: IconProps): react.JSX.Element;
|
|
123
|
+
|
|
124
|
+
declare function KeyIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
125
|
+
|
|
126
|
+
/** Native — react-native-svg (peer dependency). */
|
|
127
|
+
declare function LayoutGridIcon({ size, color, strokeWidth, }: IconProps): react.JSX.Element;
|
|
128
|
+
|
|
129
|
+
declare function LinkedInIcon({ size, color }: IconProps): react.JSX.Element;
|
|
130
|
+
|
|
131
|
+
/** Native — react-native-svg (peer dependency). */
|
|
132
|
+
declare function LogOutIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
133
|
+
|
|
134
|
+
declare function MailIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
135
|
+
|
|
136
|
+
declare function MinusIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
137
|
+
|
|
138
|
+
declare function NavigateIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
139
|
+
|
|
140
|
+
declare function PhoneIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
141
|
+
|
|
142
|
+
declare function PlusIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
143
|
+
|
|
144
|
+
interface SearchIconProps {
|
|
145
|
+
size?: number;
|
|
146
|
+
color?: string;
|
|
147
|
+
strokeWidth?: number;
|
|
148
|
+
}
|
|
149
|
+
/** Native — react-native-svg (peer dependency). */
|
|
150
|
+
declare function SearchIcon({ size, color, strokeWidth, }: SearchIconProps): react.JSX.Element;
|
|
151
|
+
|
|
152
|
+
/** Native — react-native-svg (peer dependency). */
|
|
153
|
+
declare function SettingsIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
154
|
+
|
|
155
|
+
interface ShowIconProps {
|
|
156
|
+
size?: number;
|
|
157
|
+
color?: string;
|
|
158
|
+
strokeWidth?: number;
|
|
159
|
+
}
|
|
160
|
+
/** Native — react-native-svg (peer dependency). */
|
|
161
|
+
declare function ShowIcon({ size, color, strokeWidth }: ShowIconProps): react.JSX.Element;
|
|
162
|
+
|
|
163
|
+
/** Native — react-native-svg (peer dependency). */
|
|
164
|
+
declare function SidebarIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
165
|
+
|
|
166
|
+
interface UserIconProps {
|
|
167
|
+
size?: number;
|
|
168
|
+
color?: string;
|
|
169
|
+
strokeWidth?: number;
|
|
170
|
+
}
|
|
171
|
+
/** Native — react-native-svg (peer dependency). */
|
|
172
|
+
declare function UserIcon({ size, color, strokeWidth }: UserIconProps): react.JSX.Element;
|
|
173
|
+
|
|
174
|
+
declare function UsersAltIcon({ size, color }: IconProps): react.JSX.Element;
|
|
175
|
+
|
|
176
|
+
/** Native — react-native-svg (peer dependency). */
|
|
177
|
+
declare function VideoIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
178
|
+
|
|
179
|
+
declare const icons: {
|
|
180
|
+
readonly arrowRight: typeof ArrowRightIcon;
|
|
181
|
+
readonly bag: typeof BagIcon;
|
|
182
|
+
readonly bell: typeof BellIcon;
|
|
183
|
+
readonly building: typeof BuildingIcon;
|
|
184
|
+
readonly calendar: typeof CalendarIcon;
|
|
185
|
+
readonly calendarOutline: typeof CalendarOutlineIcon;
|
|
186
|
+
readonly camera: typeof CameraIcon;
|
|
187
|
+
readonly check: typeof CheckIcon;
|
|
188
|
+
readonly checkBadge: typeof CheckBadgeIcon;
|
|
189
|
+
readonly chevronDown: typeof ChevronDownIcon;
|
|
190
|
+
readonly chevronLeft: typeof ChevronLeftIcon;
|
|
191
|
+
readonly clock: typeof ClockIcon;
|
|
192
|
+
readonly facebook: typeof FacebookIcon;
|
|
193
|
+
readonly heart: typeof HeartIcon;
|
|
194
|
+
readonly helpCircle: typeof HelpCircleIcon;
|
|
195
|
+
readonly home: typeof HomeIcon;
|
|
196
|
+
readonly instagram: typeof InstagramIcon;
|
|
197
|
+
readonly key: typeof KeyIcon;
|
|
198
|
+
readonly layoutGrid: typeof LayoutGridIcon;
|
|
199
|
+
readonly linkedin: typeof LinkedInIcon;
|
|
200
|
+
readonly logOut: typeof LogOutIcon;
|
|
201
|
+
readonly mail: typeof MailIcon;
|
|
202
|
+
readonly minus: typeof MinusIcon;
|
|
203
|
+
readonly navigate: typeof NavigateIcon;
|
|
204
|
+
readonly phone: typeof PhoneIcon;
|
|
205
|
+
readonly plus: typeof PlusIcon;
|
|
206
|
+
readonly search: typeof SearchIcon;
|
|
207
|
+
readonly settings: typeof SettingsIcon;
|
|
208
|
+
readonly show: typeof ShowIcon;
|
|
209
|
+
readonly sidebar: typeof SidebarIcon;
|
|
210
|
+
readonly user: typeof UserIcon;
|
|
211
|
+
readonly usersAlt: typeof UsersAltIcon;
|
|
212
|
+
readonly video: typeof VideoIcon;
|
|
213
|
+
};
|
|
214
|
+
type IconName = keyof typeof icons;
|
|
215
|
+
declare const iconNames: IconName[];
|
|
216
|
+
declare const iconGroups: {
|
|
217
|
+
readonly navigation: readonly ["arrowRight", "chevronDown", "chevronLeft", "home", "navigate"];
|
|
218
|
+
readonly actions: readonly ["show", "bell", "camera", "key", "check", "checkBadge", "search", "calendar", "calendarOutline", "heart", "minus", "plus"];
|
|
219
|
+
readonly objects: readonly ["bag", "building", "clock", "user", "usersAlt", "video"];
|
|
220
|
+
readonly communication: readonly ["mail", "phone"];
|
|
221
|
+
readonly social: readonly ["facebook", "instagram", "linkedin"];
|
|
222
|
+
readonly interface: readonly ["layoutGrid", "sidebar", "settings", "helpCircle", "logOut"];
|
|
223
|
+
};
|
|
224
|
+
type IconGroup = keyof typeof iconGroups;
|
|
225
|
+
declare const iconGroupNames: IconGroup[];
|
|
226
|
+
declare function getIconsByGroup(group: IconGroup): IconName[];
|
|
227
|
+
|
|
228
|
+
interface IconByNameProps extends IconProps {
|
|
229
|
+
name: IconName;
|
|
230
|
+
}
|
|
231
|
+
declare function Icon({ name, ...props }: IconByNameProps): react.JSX.Element;
|
|
232
|
+
|
|
233
|
+
type BadgeVariant = "default" | "transparent";
|
|
234
|
+
interface BadgeProps extends Omit<ViewProps, "style" | "children"> {
|
|
235
|
+
label: string;
|
|
236
|
+
variant?: BadgeVariant;
|
|
237
|
+
icon?: IconComponent;
|
|
238
|
+
style?: StyleProp<ViewStyle>;
|
|
239
|
+
className?: string;
|
|
240
|
+
}
|
|
241
|
+
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<View>>;
|
|
242
|
+
|
|
243
|
+
interface CounterProps extends Omit<ViewProps, "style" | "children"> {
|
|
244
|
+
value?: number;
|
|
245
|
+
defaultValue?: number;
|
|
246
|
+
onValueChange?: (value: number) => void;
|
|
247
|
+
min?: number;
|
|
248
|
+
max?: number;
|
|
249
|
+
step?: number;
|
|
250
|
+
disabled?: boolean;
|
|
251
|
+
style?: StyleProp<ViewStyle>;
|
|
252
|
+
className?: string;
|
|
253
|
+
hitSlop?: PressableProps["hitSlop"];
|
|
254
|
+
}
|
|
255
|
+
declare const Counter: react.ForwardRefExoticComponent<CounterProps & react.RefAttributes<View>>;
|
|
256
|
+
|
|
257
|
+
interface SegmentedToggleOption {
|
|
258
|
+
value: string;
|
|
259
|
+
label: string;
|
|
260
|
+
icon?: IconComponent;
|
|
261
|
+
}
|
|
262
|
+
interface SegmentedToggleProps extends Omit<ViewProps, "style" | "children"> {
|
|
263
|
+
options: readonly [SegmentedToggleOption, SegmentedToggleOption];
|
|
264
|
+
value?: string;
|
|
265
|
+
defaultValue?: string;
|
|
266
|
+
onValueChange?: (value: string) => void;
|
|
267
|
+
fullWidth?: boolean;
|
|
268
|
+
disabled?: boolean;
|
|
269
|
+
style?: StyleProp<ViewStyle>;
|
|
270
|
+
className?: string;
|
|
271
|
+
hitSlop?: PressableProps["hitSlop"];
|
|
272
|
+
}
|
|
273
|
+
declare const SegmentedToggle: react.ForwardRefExoticComponent<SegmentedToggleProps & react.RefAttributes<View>>;
|
|
274
|
+
|
|
275
|
+
interface StatCardProps extends Omit<ViewProps, "style" | "children"> {
|
|
276
|
+
label: string;
|
|
277
|
+
icon: IconComponent;
|
|
278
|
+
style?: StyleProp<ViewStyle>;
|
|
279
|
+
className?: string;
|
|
280
|
+
}
|
|
281
|
+
declare const StatCard: react.ForwardRefExoticComponent<StatCardProps & react.RefAttributes<View>>;
|
|
282
|
+
|
|
60
283
|
type ButtonVariant = "primary" | "secondary";
|
|
61
284
|
type ButtonSize = "lg" | "sm";
|
|
62
285
|
interface ButtonProps extends Omit<TouchableOpacityProps, "onPress" | "disabled" | "style" | "children"> {
|
|
@@ -244,166 +467,6 @@ interface ToggleProps extends Omit<PressableProps, "onPress" | "disabled" | "sty
|
|
|
244
467
|
}
|
|
245
468
|
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<react_native.View>>;
|
|
246
469
|
|
|
247
|
-
interface IconProps {
|
|
248
|
-
size?: number;
|
|
249
|
-
color?: string;
|
|
250
|
-
strokeWidth?: number;
|
|
251
|
-
}
|
|
252
|
-
type IconComponent = ComponentType<IconProps>;
|
|
253
|
-
|
|
254
|
-
interface ArrowRightIconProps {
|
|
255
|
-
size?: number;
|
|
256
|
-
color?: string;
|
|
257
|
-
strokeWidth?: number;
|
|
258
|
-
}
|
|
259
|
-
/** Native — react-native-svg (peer dependency). */
|
|
260
|
-
declare function ArrowRightIcon({ size, color, strokeWidth, }: ArrowRightIconProps): react.JSX.Element;
|
|
261
|
-
|
|
262
|
-
declare function BagIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
263
|
-
|
|
264
|
-
declare function BellIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
265
|
-
|
|
266
|
-
declare function BuildingIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
267
|
-
|
|
268
|
-
/** Native — react-native-svg (peer dependency). */
|
|
269
|
-
declare function CalendarIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
270
|
-
|
|
271
|
-
/** Native — react-native-svg (peer dependency). */
|
|
272
|
-
declare function CalendarOutlineIcon({ size, color, strokeWidth, }: IconProps): react.JSX.Element;
|
|
273
|
-
|
|
274
|
-
declare function CameraIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
275
|
-
|
|
276
|
-
interface CheckIconProps {
|
|
277
|
-
size?: number;
|
|
278
|
-
color?: string;
|
|
279
|
-
strokeWidth?: number;
|
|
280
|
-
}
|
|
281
|
-
/** Native — react-native-svg (peer dependency). */
|
|
282
|
-
declare function CheckIcon({ size, color, strokeWidth }: CheckIconProps): react.JSX.Element;
|
|
283
|
-
|
|
284
|
-
declare function CheckBadgeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
285
|
-
|
|
286
|
-
interface ChevronDownIconProps {
|
|
287
|
-
size?: number;
|
|
288
|
-
color?: string;
|
|
289
|
-
strokeWidth?: number;
|
|
290
|
-
}
|
|
291
|
-
/** Native — react-native-svg (peer dependency). */
|
|
292
|
-
declare function ChevronDownIcon({ size, color, strokeWidth, }: ChevronDownIconProps): react.JSX.Element;
|
|
293
|
-
|
|
294
|
-
/** Native — react-native-svg (peer dependency). */
|
|
295
|
-
declare function ChevronLeftIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
296
|
-
|
|
297
|
-
declare function ClockIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
298
|
-
|
|
299
|
-
declare function FacebookIcon({ size, color }: IconProps): react.JSX.Element;
|
|
300
|
-
|
|
301
|
-
/** Native — react-native-svg (peer dependency). */
|
|
302
|
-
declare function HeartIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
303
|
-
|
|
304
|
-
/** Native — react-native-svg (peer dependency). */
|
|
305
|
-
declare function HelpCircleIcon({ size, color, strokeWidth, }: IconProps): react.JSX.Element;
|
|
306
|
-
|
|
307
|
-
declare function HomeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
308
|
-
|
|
309
|
-
declare function InstagramIcon({ size, color }: IconProps): react.JSX.Element;
|
|
310
|
-
|
|
311
|
-
declare function KeyIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
312
|
-
|
|
313
|
-
/** Native — react-native-svg (peer dependency). */
|
|
314
|
-
declare function LayoutGridIcon({ size, color, strokeWidth, }: IconProps): react.JSX.Element;
|
|
315
|
-
|
|
316
|
-
declare function LinkedInIcon({ size, color }: IconProps): react.JSX.Element;
|
|
317
|
-
|
|
318
|
-
/** Native — react-native-svg (peer dependency). */
|
|
319
|
-
declare function LogOutIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
320
|
-
|
|
321
|
-
declare function MailIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
322
|
-
|
|
323
|
-
declare function NavigateIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
324
|
-
|
|
325
|
-
declare function PhoneIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
326
|
-
|
|
327
|
-
interface SearchIconProps {
|
|
328
|
-
size?: number;
|
|
329
|
-
color?: string;
|
|
330
|
-
strokeWidth?: number;
|
|
331
|
-
}
|
|
332
|
-
/** Native — react-native-svg (peer dependency). */
|
|
333
|
-
declare function SearchIcon({ size, color, strokeWidth, }: SearchIconProps): react.JSX.Element;
|
|
334
|
-
|
|
335
|
-
/** Native — react-native-svg (peer dependency). */
|
|
336
|
-
declare function SettingsIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
337
|
-
|
|
338
|
-
interface ShowIconProps {
|
|
339
|
-
size?: number;
|
|
340
|
-
color?: string;
|
|
341
|
-
strokeWidth?: number;
|
|
342
|
-
}
|
|
343
|
-
/** Native — react-native-svg (peer dependency). */
|
|
344
|
-
declare function ShowIcon({ size, color, strokeWidth }: ShowIconProps): react.JSX.Element;
|
|
345
|
-
|
|
346
|
-
interface UserIconProps {
|
|
347
|
-
size?: number;
|
|
348
|
-
color?: string;
|
|
349
|
-
strokeWidth?: number;
|
|
350
|
-
}
|
|
351
|
-
/** Native — react-native-svg (peer dependency). */
|
|
352
|
-
declare function UserIcon({ size, color, strokeWidth }: UserIconProps): react.JSX.Element;
|
|
353
|
-
|
|
354
|
-
/** Native — react-native-svg (peer dependency). */
|
|
355
|
-
declare function VideoIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
356
|
-
|
|
357
|
-
declare const icons: {
|
|
358
|
-
readonly arrowRight: typeof ArrowRightIcon;
|
|
359
|
-
readonly bag: typeof BagIcon;
|
|
360
|
-
readonly bell: typeof BellIcon;
|
|
361
|
-
readonly building: typeof BuildingIcon;
|
|
362
|
-
readonly calendar: typeof CalendarIcon;
|
|
363
|
-
readonly calendarOutline: typeof CalendarOutlineIcon;
|
|
364
|
-
readonly camera: typeof CameraIcon;
|
|
365
|
-
readonly check: typeof CheckIcon;
|
|
366
|
-
readonly checkBadge: typeof CheckBadgeIcon;
|
|
367
|
-
readonly chevronDown: typeof ChevronDownIcon;
|
|
368
|
-
readonly chevronLeft: typeof ChevronLeftIcon;
|
|
369
|
-
readonly clock: typeof ClockIcon;
|
|
370
|
-
readonly facebook: typeof FacebookIcon;
|
|
371
|
-
readonly heart: typeof HeartIcon;
|
|
372
|
-
readonly helpCircle: typeof HelpCircleIcon;
|
|
373
|
-
readonly home: typeof HomeIcon;
|
|
374
|
-
readonly instagram: typeof InstagramIcon;
|
|
375
|
-
readonly key: typeof KeyIcon;
|
|
376
|
-
readonly layoutGrid: typeof LayoutGridIcon;
|
|
377
|
-
readonly linkedin: typeof LinkedInIcon;
|
|
378
|
-
readonly logOut: typeof LogOutIcon;
|
|
379
|
-
readonly mail: typeof MailIcon;
|
|
380
|
-
readonly navigate: typeof NavigateIcon;
|
|
381
|
-
readonly phone: typeof PhoneIcon;
|
|
382
|
-
readonly search: typeof SearchIcon;
|
|
383
|
-
readonly settings: typeof SettingsIcon;
|
|
384
|
-
readonly show: typeof ShowIcon;
|
|
385
|
-
readonly user: typeof UserIcon;
|
|
386
|
-
readonly video: typeof VideoIcon;
|
|
387
|
-
};
|
|
388
|
-
type IconName = keyof typeof icons;
|
|
389
|
-
declare const iconNames: IconName[];
|
|
390
|
-
declare const iconGroups: {
|
|
391
|
-
readonly navigation: readonly ["arrowRight", "chevronDown", "chevronLeft", "home", "navigate"];
|
|
392
|
-
readonly actions: readonly ["show", "bell", "camera", "key", "check", "checkBadge", "search", "calendar", "calendarOutline", "heart"];
|
|
393
|
-
readonly objects: readonly ["bag", "building", "clock", "user", "video"];
|
|
394
|
-
readonly communication: readonly ["mail", "phone"];
|
|
395
|
-
readonly social: readonly ["facebook", "instagram", "linkedin"];
|
|
396
|
-
readonly interface: readonly ["layoutGrid", "settings", "helpCircle", "logOut"];
|
|
397
|
-
};
|
|
398
|
-
type IconGroup = keyof typeof iconGroups;
|
|
399
|
-
declare const iconGroupNames: IconGroup[];
|
|
400
|
-
declare function getIconsByGroup(group: IconGroup): IconName[];
|
|
401
|
-
|
|
402
|
-
interface IconByNameProps extends IconProps {
|
|
403
|
-
name: IconName;
|
|
404
|
-
}
|
|
405
|
-
declare function Icon({ name, ...props }: IconByNameProps): react.JSX.Element;
|
|
406
|
-
|
|
407
470
|
declare const grey: {
|
|
408
471
|
readonly "0": "#767676";
|
|
409
472
|
readonly "0.5": "#6E6E6E";
|
|
@@ -426,9 +489,15 @@ declare const colors: {
|
|
|
426
489
|
readonly primary: "#B46436";
|
|
427
490
|
readonly black: "#000000";
|
|
428
491
|
readonly white: "#ffffff";
|
|
492
|
+
readonly whiteAlpha86: "#FFFFFFDB";
|
|
493
|
+
readonly whiteAlpha40: "#FFFFFF66";
|
|
494
|
+
readonly whiteAlpha20: "#FFFFFF33";
|
|
495
|
+
readonly whiteAlpha10: "#FFFFFF1A";
|
|
496
|
+
readonly whiteAlpha5: "#FFFFFF0D";
|
|
429
497
|
readonly dark: "#090909";
|
|
430
498
|
readonly red: "#A63E3E";
|
|
431
499
|
readonly lightGrey: "#B7B7B7";
|
|
500
|
+
readonly green: "#34A853";
|
|
432
501
|
readonly primaryMuted: "#B464360F";
|
|
433
502
|
readonly primaryHover: "#B4643633";
|
|
434
503
|
readonly redMuted: "#A63E3E0F";
|
|
@@ -470,6 +539,38 @@ declare const buttonTypography: {
|
|
|
470
539
|
readonly letterSpacing: 0.36;
|
|
471
540
|
};
|
|
472
541
|
};
|
|
542
|
+
/** Badge label — Regular 14, line-height 112%, letter-spacing 0. */
|
|
543
|
+
declare const badgeTypography: {
|
|
544
|
+
readonly fontFamily: "Noto Sans Armenian";
|
|
545
|
+
readonly fontSize: 14;
|
|
546
|
+
readonly fontWeight: "400";
|
|
547
|
+
readonly lineHeight: 16;
|
|
548
|
+
readonly letterSpacing: 0;
|
|
549
|
+
};
|
|
550
|
+
/** Stat card label — Medium 16, line-height 100%, letter-spacing 0. */
|
|
551
|
+
declare const statCardTypography: {
|
|
552
|
+
readonly fontFamily: "Noto Sans Armenian";
|
|
553
|
+
readonly fontSize: 16;
|
|
554
|
+
readonly fontWeight: "500";
|
|
555
|
+
readonly lineHeight: 16;
|
|
556
|
+
readonly letterSpacing: 0;
|
|
557
|
+
};
|
|
558
|
+
/** Segmented toggle label — Medium 14, line-height 100%, letter-spacing 0. */
|
|
559
|
+
declare const segmentedToggleTypography: {
|
|
560
|
+
readonly fontFamily: "Noto Sans Armenian";
|
|
561
|
+
readonly fontSize: 14;
|
|
562
|
+
readonly fontWeight: "500";
|
|
563
|
+
readonly lineHeight: 14;
|
|
564
|
+
readonly letterSpacing: 0;
|
|
565
|
+
};
|
|
566
|
+
/** Counter value — Bold 14, line-height 100%, letter-spacing 0. */
|
|
567
|
+
declare const counterTypography: {
|
|
568
|
+
readonly fontFamily: "Noto Sans Armenian";
|
|
569
|
+
readonly fontSize: 14;
|
|
570
|
+
readonly fontWeight: "700";
|
|
571
|
+
readonly lineHeight: 14;
|
|
572
|
+
readonly letterSpacing: 0;
|
|
573
|
+
};
|
|
473
574
|
/** Input label / field / hint typography. */
|
|
474
575
|
declare const inputTypography: {
|
|
475
576
|
readonly label: {
|
|
@@ -606,4 +707,4 @@ declare const textareaTypography: {
|
|
|
606
707
|
};
|
|
607
708
|
};
|
|
608
709
|
|
|
609
|
-
export { ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, BagIcon, BellIcon, BuildingIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarIcon, CalendarOutlineIcon, CameraIcon, CheckBadgeIcon, CheckIcon, Checkbox, type CheckboxProps, type CheckboxVariant, ChevronDownIcon, ChevronLeftIcon, ClockIcon, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, FacebookIcon, type GreyStep, HeartIcon, HelpCircleIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, Input, type InputProps, type InputSize, InstagramIcon, KeyIcon, LayoutGridIcon, LinkedInIcon, LogOutIcon, MailIcon, MenuItem, type MenuItemProps, NavigateIcon, PhoneIcon, SearchIcon, Select, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShowIcon, Textarea, type TextareaProps, Toggle, type ToggleProps, UserIcon, VideoIcon, avatarTypography, buttonTypography, colors, datePickerTypography, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, selectTypography, textareaTypography };
|
|
710
|
+
export { ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, BagIcon, BellIcon, BuildingIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarIcon, CalendarOutlineIcon, CameraIcon, CheckBadgeIcon, CheckIcon, Checkbox, type CheckboxProps, type CheckboxVariant, ChevronDownIcon, ChevronLeftIcon, ClockIcon, Counter, type CounterProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, FacebookIcon, type GreyStep, HeartIcon, HelpCircleIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, Input, type InputProps, type InputSize, InstagramIcon, KeyIcon, LayoutGridIcon, LinkedInIcon, LogOutIcon, MailIcon, MenuItem, type MenuItemProps, MinusIcon, NavigateIcon, PhoneIcon, PlusIcon, SearchIcon, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShowIcon, SidebarIcon, StatCard, type StatCardProps, Textarea, type TextareaProps, Toggle, type ToggleProps, UserIcon, UsersAltIcon, VideoIcon, avatarTypography, badgeTypography, buttonTypography, colors, counterTypography, datePickerTypography, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
|