@ecohouse/ui 0.1.0 → 0.1.1
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 +238 -36
- package/dist/index.cjs +649 -314
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +181 -258
- package/dist/index.d.ts +181 -258
- package/dist/index.js +626 -304
- package/dist/index.js.map +1 -1
- package/package.json +4 -7
- package/src/components/Button/Button.stories.tsx +98 -0
- package/src/components/{Button.tsx → Button/Button.tsx} +39 -71
- package/src/components/Button/index.ts +2 -0
- package/src/components/Input/Input.stories.tsx +118 -0
- package/src/components/Input/Input.tsx +327 -0
- package/src/components/Input/index.ts +2 -0
- package/src/components/index.ts +5 -0
- package/src/icons/{ArrowUpRightIcon.tsx → ArrowRight/ArrowRightIcon.tsx} +8 -7
- package/src/icons/{ArrowUpRightIcon.web.tsx → ArrowRight/ArrowRightIcon.web.tsx} +8 -7
- package/src/icons/ArrowRight/arrowRightPath.ts +2 -0
- package/src/icons/ArrowRight/index.ts +1 -0
- package/src/icons/Bag/BagIcon.tsx +20 -0
- package/src/icons/Bag/BagIcon.web.tsx +26 -0
- package/src/icons/Bag/bagPath.ts +2 -0
- package/src/icons/Bag/index.ts +1 -0
- package/src/icons/Bell/BellIcon.tsx +20 -0
- package/src/icons/Bell/BellIcon.web.tsx +26 -0
- package/src/icons/Bell/bellPath.ts +2 -0
- package/src/icons/Bell/index.ts +1 -0
- package/src/icons/Building/BuildingIcon.tsx +20 -0
- package/src/icons/Building/BuildingIcon.web.tsx +26 -0
- package/src/icons/Building/buildingPath.ts +2 -0
- package/src/icons/Building/index.ts +1 -0
- package/src/icons/Camera/CameraIcon.tsx +20 -0
- package/src/icons/Camera/CameraIcon.web.tsx +26 -0
- package/src/icons/Camera/cameraPath.ts +2 -0
- package/src/icons/Camera/index.ts +1 -0
- package/src/icons/CheckBadge/CheckBadgeIcon.tsx +20 -0
- package/src/icons/CheckBadge/CheckBadgeIcon.web.tsx +26 -0
- package/src/icons/CheckBadge/checkBadgePath.ts +2 -0
- package/src/icons/CheckBadge/index.ts +1 -0
- package/src/icons/Clock/ClockIcon.tsx +20 -0
- package/src/icons/Clock/ClockIcon.web.tsx +26 -0
- package/src/icons/Clock/clockPath.ts +2 -0
- package/src/icons/Clock/index.ts +1 -0
- package/src/icons/Facebook/FacebookIcon.tsx +14 -0
- package/src/icons/Facebook/FacebookIcon.web.tsx +20 -0
- package/src/icons/Facebook/facebookPath.ts +2 -0
- package/src/icons/Facebook/index.ts +1 -0
- package/src/icons/Home/HomeIcon.tsx +20 -0
- package/src/icons/Home/HomeIcon.web.tsx +26 -0
- package/src/icons/Home/homePath.ts +2 -0
- package/src/icons/Home/index.ts +1 -0
- package/src/icons/Icon.tsx +11 -0
- package/src/icons/Icons.stories.tsx +174 -0
- package/src/icons/Instagram/InstagramIcon.tsx +14 -0
- package/src/icons/Instagram/InstagramIcon.web.tsx +20 -0
- package/src/icons/Instagram/index.ts +1 -0
- package/src/icons/Instagram/instagramPath.ts +2 -0
- package/src/icons/Key/KeyIcon.tsx +20 -0
- package/src/icons/Key/KeyIcon.web.tsx +26 -0
- package/src/icons/Key/index.ts +1 -0
- package/src/icons/Key/keyPath.ts +2 -0
- package/src/icons/LinkedIn/LinkedInIcon.tsx +14 -0
- package/src/icons/LinkedIn/LinkedInIcon.web.tsx +20 -0
- package/src/icons/LinkedIn/index.ts +1 -0
- package/src/icons/LinkedIn/linkedinPath.ts +2 -0
- package/src/icons/Mail/MailIcon.tsx +20 -0
- package/src/icons/Mail/MailIcon.web.tsx +26 -0
- package/src/icons/Mail/index.ts +1 -0
- package/src/icons/Mail/mailPath.ts +2 -0
- package/src/icons/Navigate/NavigateIcon.tsx +20 -0
- package/src/icons/Navigate/NavigateIcon.web.tsx +26 -0
- package/src/icons/Navigate/index.ts +1 -0
- package/src/icons/Navigate/navigatePath.ts +2 -0
- package/src/icons/Phone/PhoneIcon.tsx +20 -0
- package/src/icons/Phone/PhoneIcon.web.tsx +26 -0
- package/src/icons/Phone/index.ts +1 -0
- package/src/icons/Phone/phonePath.ts +2 -0
- package/src/icons/Show/ShowIcon.tsx +33 -0
- package/src/icons/Show/ShowIcon.web.tsx +39 -0
- package/src/icons/Show/index.ts +1 -0
- package/src/icons/Show/showPath.ts +6 -0
- package/src/icons/User/UserIcon.tsx +26 -0
- package/src/icons/User/UserIcon.web.tsx +32 -0
- package/src/icons/User/index.ts +1 -0
- package/src/icons/User/userPath.ts +3 -0
- package/src/icons/index.ts +24 -0
- package/src/icons/registry.ts +58 -0
- package/src/icons/types.ts +9 -0
- package/src/index.ts +37 -21
- package/src/theme/colors.test.ts +12 -0
- package/src/theme/colors.ts +46 -0
- package/src/theme/index.ts +4 -0
- package/src/theme/typography.ts +46 -0
- package/src/web/styles/typography.css +8 -90
- package/src/components/Button.stories.tsx +0 -135
- package/src/icons/arrowUpRightPath.ts +0 -1
- package/src/theme/tokens.test.ts +0 -10
- package/src/theme/tokens.ts +0 -286
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { GestureResponderEvent, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import { ReactNode, ComponentType } from 'react';
|
|
3
|
+
import { GestureResponderEvent, StyleProp, ViewStyle, TextStyle, TextInputProps } from 'react-native';
|
|
4
4
|
|
|
5
|
-
type ButtonVariant = "
|
|
5
|
+
type ButtonVariant = "primary" | "secondary";
|
|
6
6
|
type ButtonSize = "lg" | "sm";
|
|
7
7
|
interface ButtonProps {
|
|
8
8
|
title?: string;
|
|
@@ -12,7 +12,6 @@ interface ButtonProps {
|
|
|
12
12
|
variant?: ButtonVariant;
|
|
13
13
|
size?: ButtonSize;
|
|
14
14
|
showIcon?: boolean;
|
|
15
|
-
/** Custom icon inside the badge. Defaults to `ArrowUpRightIcon` when `showIcon` is true. */
|
|
16
15
|
icon?: ReactNode;
|
|
17
16
|
style?: StyleProp<ViewStyle>;
|
|
18
17
|
textStyle?: StyleProp<TextStyle>;
|
|
@@ -21,289 +20,213 @@ interface ButtonProps {
|
|
|
21
20
|
}
|
|
22
21
|
declare function Button({ title, children, onPress, disabled, variant, size, showIcon, icon, style, textStyle, className, textClassName, }: ButtonProps): react.JSX.Element;
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
type InputState = "default" | "filled" | "active" | "error" | "disabled";
|
|
24
|
+
type InputSize = "lg" | "sm";
|
|
25
|
+
interface InputProps extends Omit<TextInputProps, "style" | "editable"> {
|
|
26
|
+
label?: string;
|
|
27
|
+
showLabel?: boolean;
|
|
28
|
+
hint?: string;
|
|
29
|
+
showHint?: boolean;
|
|
30
|
+
state?: InputState;
|
|
31
|
+
size?: InputSize;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
error?: boolean;
|
|
34
|
+
leftIcon?: ReactNode;
|
|
35
|
+
showLeftIcon?: boolean;
|
|
36
|
+
rightIcon?: ReactNode;
|
|
37
|
+
showRightIcon?: boolean;
|
|
38
|
+
onRightIconPress?: () => void;
|
|
39
|
+
style?: StyleProp<ViewStyle>;
|
|
40
|
+
fieldStyle?: StyleProp<ViewStyle>;
|
|
41
|
+
inputStyle?: StyleProp<TextStyle>;
|
|
42
|
+
className?: string;
|
|
43
|
+
inputClassName?: string;
|
|
44
|
+
}
|
|
45
|
+
declare function Input({ label, showLabel, hint, showHint, placeholder, state: stateProp, size, disabled, error, value, defaultValue, onChangeText, onFocus, onBlur, leftIcon, showLeftIcon, rightIcon, showRightIcon, onRightIconPress, style, fieldStyle, inputStyle, className, inputClassName, ...textInputProps }: InputProps): react.JSX.Element;
|
|
46
|
+
|
|
47
|
+
interface IconProps {
|
|
48
|
+
size?: number;
|
|
49
|
+
color?: string;
|
|
50
|
+
strokeWidth?: number;
|
|
51
|
+
}
|
|
52
|
+
type IconComponent = ComponentType<IconProps>;
|
|
53
|
+
|
|
54
|
+
interface ArrowRightIconProps {
|
|
25
55
|
size?: number;
|
|
26
56
|
color?: string;
|
|
27
57
|
strokeWidth?: number;
|
|
28
58
|
}
|
|
29
59
|
/** Native — react-native-svg (peer dependency). */
|
|
30
|
-
declare function
|
|
60
|
+
declare function ArrowRightIcon({ size, color, strokeWidth, }: ArrowRightIconProps): react.JSX.Element;
|
|
31
61
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
62
|
+
declare function BagIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
63
|
+
|
|
64
|
+
declare function BellIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
65
|
+
|
|
66
|
+
declare function BuildingIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
67
|
+
|
|
68
|
+
declare function CameraIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
69
|
+
|
|
70
|
+
declare function CheckBadgeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
71
|
+
|
|
72
|
+
declare function ClockIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
73
|
+
|
|
74
|
+
declare function FacebookIcon({ size, color }: IconProps): react.JSX.Element;
|
|
75
|
+
|
|
76
|
+
declare function HomeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
77
|
+
|
|
78
|
+
declare function InstagramIcon({ size, color }: IconProps): react.JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare function KeyIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
81
|
+
|
|
82
|
+
declare function LinkedInIcon({ size, color }: IconProps): react.JSX.Element;
|
|
83
|
+
|
|
84
|
+
declare function MailIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
85
|
+
|
|
86
|
+
declare function NavigateIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
87
|
+
|
|
88
|
+
declare function PhoneIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
89
|
+
|
|
90
|
+
interface ShowIconProps {
|
|
91
|
+
size?: number;
|
|
92
|
+
color?: string;
|
|
93
|
+
strokeWidth?: number;
|
|
94
|
+
}
|
|
95
|
+
/** Native — react-native-svg (peer dependency). */
|
|
96
|
+
declare function ShowIcon({ size, color, strokeWidth }: ShowIconProps): react.JSX.Element;
|
|
97
|
+
|
|
98
|
+
interface UserIconProps {
|
|
99
|
+
size?: number;
|
|
100
|
+
color?: string;
|
|
101
|
+
strokeWidth?: number;
|
|
102
|
+
}
|
|
103
|
+
/** Native — react-native-svg (peer dependency). */
|
|
104
|
+
declare function UserIcon({ size, color, strokeWidth }: UserIconProps): react.JSX.Element;
|
|
105
|
+
|
|
106
|
+
declare const icons: {
|
|
107
|
+
readonly arrowRight: typeof ArrowRightIcon;
|
|
108
|
+
readonly bag: typeof BagIcon;
|
|
109
|
+
readonly bell: typeof BellIcon;
|
|
110
|
+
readonly building: typeof BuildingIcon;
|
|
111
|
+
readonly camera: typeof CameraIcon;
|
|
112
|
+
readonly checkBadge: typeof CheckBadgeIcon;
|
|
113
|
+
readonly clock: typeof ClockIcon;
|
|
114
|
+
readonly facebook: typeof FacebookIcon;
|
|
115
|
+
readonly home: typeof HomeIcon;
|
|
116
|
+
readonly instagram: typeof InstagramIcon;
|
|
117
|
+
readonly key: typeof KeyIcon;
|
|
118
|
+
readonly linkedin: typeof LinkedInIcon;
|
|
119
|
+
readonly mail: typeof MailIcon;
|
|
120
|
+
readonly navigate: typeof NavigateIcon;
|
|
121
|
+
readonly phone: typeof PhoneIcon;
|
|
122
|
+
readonly show: typeof ShowIcon;
|
|
123
|
+
readonly user: typeof UserIcon;
|
|
82
124
|
};
|
|
83
|
-
type
|
|
84
|
-
|
|
85
|
-
declare const
|
|
86
|
-
readonly "
|
|
87
|
-
readonly "
|
|
88
|
-
readonly "
|
|
89
|
-
readonly "
|
|
90
|
-
readonly "
|
|
91
|
-
readonly "3": "#77c394";
|
|
92
|
-
readonly "4": "#4fb074";
|
|
93
|
-
readonly "5": "#279d54";
|
|
94
|
-
readonly "6": "#1f7e43";
|
|
95
|
-
readonly "7": "#175e32";
|
|
96
|
-
readonly "8": "#103f22";
|
|
97
|
-
readonly "8.5": "#0c2f19";
|
|
125
|
+
type IconName = keyof typeof icons;
|
|
126
|
+
declare const iconNames: IconName[];
|
|
127
|
+
declare const iconGroups: {
|
|
128
|
+
readonly navigation: readonly ["arrowRight", "home", "navigate"];
|
|
129
|
+
readonly actions: readonly ["show", "bell", "camera", "key", "checkBadge"];
|
|
130
|
+
readonly objects: readonly ["bag", "building", "clock", "user"];
|
|
131
|
+
readonly communication: readonly ["mail", "phone"];
|
|
132
|
+
readonly social: readonly ["facebook", "instagram", "linkedin"];
|
|
98
133
|
};
|
|
99
|
-
type
|
|
100
|
-
|
|
101
|
-
declare
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
134
|
+
type IconGroup = keyof typeof iconGroups;
|
|
135
|
+
declare const iconGroupNames: IconGroup[];
|
|
136
|
+
declare function getIconsByGroup(group: IconGroup): IconName[];
|
|
137
|
+
|
|
138
|
+
interface IconByNameProps extends IconProps {
|
|
139
|
+
name: IconName;
|
|
140
|
+
}
|
|
141
|
+
declare function Icon({ name, ...props }: IconByNameProps): react.JSX.Element;
|
|
142
|
+
|
|
143
|
+
declare const grey: {
|
|
144
|
+
readonly "0": "#767676";
|
|
145
|
+
readonly "0.5": "#6E6E6E";
|
|
146
|
+
readonly "1": "#666666";
|
|
147
|
+
readonly "1.5": "#5E5E5E";
|
|
148
|
+
readonly "2": "#565656";
|
|
149
|
+
readonly "3": "#474747";
|
|
150
|
+
readonly "4": "#373737";
|
|
151
|
+
readonly "5": "#272727";
|
|
152
|
+
readonly "6": "#1F1F1F";
|
|
153
|
+
readonly "7": "#171717";
|
|
154
|
+
readonly "7.5": "#161616";
|
|
155
|
+
readonly "8": "#101010";
|
|
156
|
+
readonly "8.5": "#0C0C0C";
|
|
157
|
+
readonly "9": "#080808";
|
|
158
|
+
readonly "9.5": "#040404";
|
|
107
159
|
};
|
|
160
|
+
type GreyStep = keyof typeof grey;
|
|
108
161
|
declare const colors: {
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
readonly emeraldGreen50: "#dcf2e5";
|
|
112
|
-
readonly emeraldGreen100: "#c8e8d5";
|
|
113
|
-
readonly emeraldGreen150: "#b4dfc5";
|
|
114
|
-
readonly emeraldGreen200: "#a0d5b5";
|
|
115
|
-
readonly emeraldGreen300: "#77c394";
|
|
116
|
-
readonly emeraldGreen400: "#4fb074";
|
|
117
|
-
readonly emeraldGreen500: "#279d54";
|
|
118
|
-
readonly emeraldGreen600: "#1f7e43";
|
|
119
|
-
readonly emeraldGreen700: "#175e32";
|
|
120
|
-
readonly emeraldGreen800: "#103f22";
|
|
121
|
-
readonly emeraldGreen850: "#0c2f19";
|
|
122
|
-
/** Primary brand emerald green — Figma Emerald Green 5 */
|
|
123
|
-
readonly emeraldGreen: "#279d54";
|
|
124
|
-
readonly rubyRed0: "#fff5f6";
|
|
125
|
-
readonly rubyRed50: "#f7dddf";
|
|
126
|
-
readonly rubyRed100: "#efc4c8";
|
|
127
|
-
readonly rubyRed150: "#e7acb1";
|
|
128
|
-
readonly rubyRed200: "#df939a";
|
|
129
|
-
readonly rubyRed300: "#ce626d";
|
|
130
|
-
readonly rubyRed400: "#be313f";
|
|
131
|
-
readonly rubyRed500: "#ae0011";
|
|
132
|
-
readonly rubyRed600: "#8b000e";
|
|
133
|
-
readonly rubyRed700: "#68000a";
|
|
134
|
-
readonly rubyRed800: "#460007";
|
|
135
|
-
readonly rubyRed850: "#340005";
|
|
136
|
-
/** Primary brand ruby red — Figma Ruby Red 5 */
|
|
137
|
-
readonly rubyRed: "#ae0011";
|
|
138
|
-
readonly navy0: "#f6fafe";
|
|
139
|
-
readonly navy50: "#dee5eb";
|
|
140
|
-
readonly navy100: "#c6d0d8";
|
|
141
|
-
readonly navy150: "#afbac5";
|
|
142
|
-
readonly navy200: "#97a5b2";
|
|
143
|
-
readonly navy300: "#677b8c";
|
|
144
|
-
readonly navy400: "#385066";
|
|
145
|
-
readonly navy500: "#082640";
|
|
146
|
-
readonly navy600: "#061e33";
|
|
147
|
-
readonly navy700: "#051726";
|
|
148
|
-
readonly navy800: "#030f1a";
|
|
149
|
-
readonly navy850: "#020b13";
|
|
150
|
-
/** Primary brand navy — Figma Navy 5 */
|
|
151
|
-
readonly navy: "#082640";
|
|
152
|
-
readonly stormGray0: "#fbfcfc";
|
|
153
|
-
readonly stormGray50: "#eceef0";
|
|
154
|
-
readonly stormGray100: "#dadde0";
|
|
155
|
-
readonly stormGray150: "#c7cdd1";
|
|
156
|
-
readonly stormGray200: "#b5bcc1";
|
|
157
|
-
readonly stormGray300: "#8f9aa3";
|
|
158
|
-
readonly stormGray400: "#6a7984";
|
|
159
|
-
readonly stormGray500: "#455765";
|
|
160
|
-
/** Figma brand swatch "Storm Gray" — same as `stormGray500` */
|
|
161
|
-
readonly stormGrayBrand: "#455765";
|
|
162
|
-
readonly stormGray600: "#374651";
|
|
163
|
-
readonly stormGray700: "#29343d";
|
|
164
|
-
readonly stormGray800: "#1c2328";
|
|
165
|
-
readonly stormGray850: "#151a1e";
|
|
166
|
-
/** @deprecated Use `stormGray0` */
|
|
167
|
-
readonly storm0: "#fbfcfc";
|
|
168
|
-
/** @deprecated Use `stormGray50` */
|
|
169
|
-
readonly storm50: "#eceef0";
|
|
170
|
-
/** @deprecated Use `stormGray200` */
|
|
171
|
-
readonly storm200: "#b5bcc1";
|
|
172
|
-
/** @deprecated Use `stormGray300` */
|
|
173
|
-
readonly storm300: "#8f9aa3";
|
|
174
|
-
/** @deprecated Use `stormGray500` */
|
|
175
|
-
readonly storm500: "#455765";
|
|
176
|
-
/** @deprecated Use `stormGray700` */
|
|
177
|
-
readonly storm700: "#29343d";
|
|
178
|
-
/** @deprecated Use `stormGray850` */
|
|
179
|
-
readonly storm900: "#151a1e";
|
|
180
|
-
readonly countrySelectorSelectedBg: "#eceef099";
|
|
162
|
+
readonly primary: "#B46436";
|
|
163
|
+
readonly black: "#000000";
|
|
181
164
|
readonly white: "#ffffff";
|
|
182
|
-
readonly
|
|
183
|
-
readonly
|
|
184
|
-
readonly
|
|
185
|
-
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
readonly
|
|
189
|
-
readonly
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
193
|
-
|
|
194
|
-
readonly
|
|
195
|
-
readonly
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
readonly
|
|
199
|
-
readonly
|
|
200
|
-
readonly
|
|
201
|
-
readonly
|
|
202
|
-
readonly full: 9999;
|
|
203
|
-
};
|
|
204
|
-
declare const spacing: {
|
|
205
|
-
readonly xs: 4;
|
|
206
|
-
readonly sm: 8;
|
|
207
|
-
readonly md: 12;
|
|
208
|
-
readonly lg: 16;
|
|
209
|
-
readonly xl: 24;
|
|
210
|
-
readonly xxl: 32;
|
|
211
|
-
};
|
|
212
|
-
declare const fontSize: {
|
|
213
|
-
readonly xs: 11;
|
|
214
|
-
readonly sm: 12;
|
|
215
|
-
readonly md: 14;
|
|
216
|
-
readonly base: 16;
|
|
217
|
-
readonly lg: 18;
|
|
218
|
-
readonly xl: 24;
|
|
219
|
-
readonly xxl: 32;
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* Canonical Homepad type scale (matches `.typography-*` in `src/web/styles/typography.css`).
|
|
223
|
-
* font-size / line-height pairs:
|
|
224
|
-
* 12/16 · 14/19 · 18/24 · 20/27 · 24/25 · 32/34
|
|
225
|
-
*/
|
|
226
|
-
declare const typographyScale: {
|
|
227
|
-
readonly 12: {
|
|
228
|
-
readonly fontSize: 12;
|
|
229
|
-
readonly lineHeight: 16;
|
|
230
|
-
};
|
|
231
|
-
readonly 14: {
|
|
232
|
-
readonly fontSize: 14;
|
|
233
|
-
readonly lineHeight: 19;
|
|
234
|
-
};
|
|
235
|
-
readonly 18: {
|
|
236
|
-
readonly fontSize: 18;
|
|
237
|
-
readonly lineHeight: 24;
|
|
238
|
-
};
|
|
239
|
-
readonly 20: {
|
|
240
|
-
readonly fontSize: 20;
|
|
241
|
-
readonly lineHeight: 27;
|
|
242
|
-
};
|
|
243
|
-
readonly 24: {
|
|
244
|
-
readonly fontSize: 24;
|
|
245
|
-
readonly lineHeight: 25;
|
|
246
|
-
};
|
|
247
|
-
readonly 32: {
|
|
248
|
-
readonly fontSize: 32;
|
|
249
|
-
readonly lineHeight: 34;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
declare const fontWeight: {
|
|
253
|
-
regular: "400";
|
|
254
|
-
medium: "500";
|
|
255
|
-
semibold: "600";
|
|
256
|
-
bold: "700";
|
|
165
|
+
readonly dark: "#090909";
|
|
166
|
+
readonly red: "#A63E3E";
|
|
167
|
+
readonly lightGrey: "#B7B7B7";
|
|
168
|
+
readonly primaryMuted: "#B464360F";
|
|
169
|
+
readonly redMuted: "#A63E3E0F";
|
|
170
|
+
readonly grey0: "#767676";
|
|
171
|
+
readonly grey50: "#6E6E6E";
|
|
172
|
+
readonly grey100: "#666666";
|
|
173
|
+
readonly grey150: "#5E5E5E";
|
|
174
|
+
readonly grey200: "#565656";
|
|
175
|
+
readonly grey300: "#474747";
|
|
176
|
+
readonly grey400: "#373737";
|
|
177
|
+
readonly grey500: "#272727";
|
|
178
|
+
readonly grey600: "#1F1F1F";
|
|
179
|
+
readonly grey700: "#171717";
|
|
180
|
+
readonly grey750: "#161616";
|
|
181
|
+
readonly grey800: "#101010";
|
|
182
|
+
readonly grey850: "#0C0C0C";
|
|
183
|
+
readonly grey900: "#080808";
|
|
184
|
+
readonly grey950: "#040404";
|
|
257
185
|
};
|
|
186
|
+
|
|
258
187
|
declare const fonts: {
|
|
259
188
|
readonly sans: "Noto Sans Armenian";
|
|
260
189
|
};
|
|
261
|
-
/**
|
|
262
|
-
declare const labelTypography: {
|
|
263
|
-
readonly fontFamily: "Noto Sans Armenian";
|
|
264
|
-
readonly fontSize: 12;
|
|
265
|
-
readonly fontWeight: "500";
|
|
266
|
-
readonly lineHeight: 16;
|
|
267
|
-
readonly letterSpacing: 0;
|
|
268
|
-
};
|
|
269
|
-
/** Button label typography — SemiBold. */
|
|
190
|
+
/** Button label — SemiBold, line-height 100%, letter-spacing 3%. */
|
|
270
191
|
declare const buttonTypography: {
|
|
271
192
|
readonly lg: {
|
|
272
193
|
readonly fontFamily: "Noto Sans Armenian";
|
|
273
194
|
readonly fontSize: 14;
|
|
274
195
|
readonly fontWeight: "600";
|
|
275
|
-
readonly lineHeight:
|
|
276
|
-
readonly letterSpacing: 0;
|
|
196
|
+
readonly lineHeight: 14;
|
|
197
|
+
readonly letterSpacing: 0.42;
|
|
277
198
|
};
|
|
278
199
|
readonly sm: {
|
|
279
200
|
readonly fontFamily: "Noto Sans Armenian";
|
|
280
201
|
readonly fontSize: 12;
|
|
281
202
|
readonly fontWeight: "600";
|
|
203
|
+
readonly lineHeight: 12;
|
|
204
|
+
readonly letterSpacing: 0.36;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
/** Input label / field / hint typography. */
|
|
208
|
+
declare const inputTypography: {
|
|
209
|
+
readonly label: {
|
|
210
|
+
readonly fontFamily: "Noto Sans Armenian";
|
|
211
|
+
readonly fontSize: 12;
|
|
212
|
+
readonly fontWeight: "500";
|
|
282
213
|
readonly lineHeight: 16;
|
|
283
214
|
readonly letterSpacing: 0;
|
|
284
215
|
};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
readonly
|
|
289
|
-
readonly
|
|
290
|
-
|
|
291
|
-
readonly height: 4;
|
|
292
|
-
};
|
|
293
|
-
readonly shadowOpacity: 0.05;
|
|
294
|
-
readonly shadowRadius: 20;
|
|
295
|
-
readonly elevation: 2;
|
|
216
|
+
readonly field: {
|
|
217
|
+
readonly fontFamily: "Noto Sans Armenian";
|
|
218
|
+
readonly fontSize: 14;
|
|
219
|
+
readonly fontWeight: "400";
|
|
220
|
+
readonly lineHeight: 19;
|
|
221
|
+
readonly letterSpacing: 0;
|
|
296
222
|
};
|
|
297
|
-
readonly
|
|
298
|
-
readonly
|
|
299
|
-
readonly
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
readonly shadowOpacity: 0.1;
|
|
304
|
-
readonly shadowRadius: 20;
|
|
305
|
-
readonly elevation: 4;
|
|
223
|
+
readonly hint: {
|
|
224
|
+
readonly fontFamily: "Noto Sans Armenian";
|
|
225
|
+
readonly fontSize: 12;
|
|
226
|
+
readonly fontWeight: "400";
|
|
227
|
+
readonly lineHeight: 16;
|
|
228
|
+
readonly letterSpacing: 0;
|
|
306
229
|
};
|
|
307
230
|
};
|
|
308
231
|
|
|
309
|
-
export {
|
|
232
|
+
export { ArrowRightIcon, BagIcon, BellIcon, BuildingIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CameraIcon, CheckBadgeIcon, ClockIcon, FacebookIcon, type GreyStep, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, Input, type InputProps, type InputSize, type InputState, InstagramIcon, KeyIcon, LinkedInIcon, MailIcon, NavigateIcon, PhoneIcon, ShowIcon, UserIcon, buttonTypography, colors, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography };
|