@ecohouse/ui 0.1.20 → 0.1.22

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.cts CHANGED
@@ -1,7 +1,32 @@
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, ViewProps, TouchableOpacityProps, TextInputProps, TextInput } from 'react-native';
4
+ import { PressableProps, StyleProp, ViewStyle, TextStyle, View, GestureResponderEvent, ViewProps, TouchableOpacityProps, TextInputProps, TextInput } from 'react-native';
5
+
6
+ declare const amenityNames: readonly ["kitchen", "wifi", "tv", "washer", "ac", "bbq", "forestView", "pets"];
7
+ type AmenityName = (typeof amenityNames)[number];
8
+
9
+ interface AmenityIconProps {
10
+ name: AmenityName;
11
+ size?: number;
12
+ color?: string;
13
+ }
14
+ declare function AmenityIcon({ name, size, color }: AmenityIconProps): react.JSX.Element;
15
+
16
+ type AmenityVariant = "display" | "selectable";
17
+ interface AmenityProps extends Omit<PressableProps, "children" | "disabled" | "onPress" | "style"> {
18
+ icon: AmenityName;
19
+ label: string;
20
+ variant?: AmenityVariant;
21
+ selected?: boolean;
22
+ defaultSelected?: boolean;
23
+ onSelectedChange?: (selected: boolean) => void;
24
+ disabled?: boolean;
25
+ style?: StyleProp<ViewStyle>;
26
+ labelStyle?: StyleProp<TextStyle>;
27
+ className?: string;
28
+ }
29
+ declare const Amenity: react.ForwardRefExoticComponent<AmenityProps & react.RefAttributes<View>>;
5
30
 
6
31
  interface MenuItemProps extends Omit<PressableProps, "onPress" | "disabled" | "style" | "children" | "hitSlop"> {
7
32
  /** Leading icon, e.g. `<CalendarIcon size={16} />` — pass it pre-colored. */
@@ -109,6 +134,9 @@ interface ArrowRightIconProps {
109
134
  /** Native — react-native-svg (peer dependency). */
110
135
  declare function ArrowRightIcon({ size, color, strokeWidth, }: ArrowRightIconProps): react.JSX.Element;
111
136
 
137
+ declare function AppleIcon({ size, color }: IconProps): react.JSX.Element;
138
+ declare function GooglePlayIcon({ size }: IconProps): react.JSX.Element;
139
+
112
140
  declare function BagIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
113
141
 
114
142
  declare function BellIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
@@ -271,6 +299,7 @@ declare function VideoIcon({ size, color, strokeWidth }: IconProps): react.JSX.E
271
299
 
272
300
  declare const icons: {
273
301
  readonly areaExpand: typeof AreaExpandIcon;
302
+ readonly apple: typeof AppleIcon;
274
303
  readonly arrowRight: typeof ArrowRightIcon;
275
304
  readonly bag: typeof BagIcon;
276
305
  readonly bell: typeof BellIcon;
@@ -295,6 +324,7 @@ declare const icons: {
295
324
  readonly guests: typeof GuestsIcon;
296
325
  readonly heart: typeof HeartIcon;
297
326
  readonly globe: typeof GlobeIcon;
327
+ readonly googlePlay: typeof GooglePlayIcon;
298
328
  readonly helpCircle: typeof HelpCircleIcon;
299
329
  readonly home: typeof HomeIcon;
300
330
  readonly instagram: typeof InstagramIcon;
@@ -337,7 +367,7 @@ declare const iconGroups: {
337
367
  readonly actions: readonly ["show", "bell", "camera", "key", "check", "checkBadge", "checkSuccess", "copy", "search", "calendar", "calendarOutline", "close", "ratingStar", "saveHeart", "share", "filters", "heart", "star", "starFilled", "minus", "plus", "sort"];
338
368
  readonly objects: readonly ["bag", "bathrooms", "bedrooms", "building", "cardLocation", "clock", "clockFilled", "guests", "qrCode", "user", "usersAlt", "video", "whatsApp"];
339
369
  readonly communication: readonly ["mail", "phone"];
340
- readonly social: readonly ["facebook", "instagram", "linkedin"];
370
+ readonly social: readonly ["apple", "facebook", "googlePlay", "instagram", "linkedin"];
341
371
  readonly interface: readonly ["areaExpand", "globe", "layoutGrid", "sidebar", "settings", "helpCircle", "logOut", "tooltipArrow"];
342
372
  };
343
373
  type IconGroup = keyof typeof iconGroups;
@@ -787,12 +817,12 @@ declare const statCardTypography: {
787
817
  readonly lineHeight: 16;
788
818
  readonly letterSpacing: 0;
789
819
  };
790
- /** Segmented toggle label — Medium 12, line-height 100%, letter-spacing 0. */
820
+ /** Segmented toggle label — Medium 12, 14px line-height, letter-spacing 0. */
791
821
  declare const segmentedToggleTypography: {
792
822
  readonly fontFamily: "Noto Sans Armenian";
793
823
  readonly fontSize: 12;
794
824
  readonly fontWeight: "500";
795
- readonly lineHeight: 12;
825
+ readonly lineHeight: 14;
796
826
  readonly letterSpacing: 0;
797
827
  };
798
828
  /** Language switcher trigger and option labels — SemiBold 14. */
@@ -986,4 +1016,4 @@ declare const textareaTypography: {
986
1016
  };
987
1017
  };
988
1018
 
989
- export { AreaExpandIcon, ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, type BadgeProps, type BadgeVariant, BagIcon, BathroomsIcon, BedroomsIcon, BellIcon, BrandLogo, type BrandLogoProps, type BrandLogoVariant, BuildingIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarIcon, CalendarOutlineIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, type CheckboxProps, type CheckboxVariant, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, type CommentCardProps, CopyIcon, Counter, type CounterProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, FacebookIcon, FavoritesButton, type FavoritesButtonProps, FiltersIcon, GlobeIcon, type GreyStep, GuestsIcon, HeartIcon, HelpCircleIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, Input, type InputIcon, type InputProps, type InputSize, InstagramIcon, KeyIcon, type LanguageOption, LanguageSwitcher, type LanguageSwitcherProps, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, type MenuIconProps, MenuItem, type MenuItemProps, MinusIcon, NavigateIcon, PhoneIcon, PlusIcon, QrCodeIcon, Range, type RangeProps, type RangeValue, RatingInput, type RatingInputProps, RatingStarIcon, SaveHeartIcon, SearchIcon, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectIcon, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShareIcon, ShowIcon, SidebarIcon, SortIcon, StarFilledIcon, StarIcon, type StarIconProps, StatCard, type StatCardProps, Textarea, type TextareaProps, Toggle, type ToggleProps, TooltipArrowIcon, UserIcon, UsersAltIcon, VideoIcon, WhatsAppIcon, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
1019
+ export { Amenity, AmenityIcon, type AmenityIconProps, type AmenityName, type AmenityProps, type AmenityVariant, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, type BadgeProps, type BadgeVariant, BagIcon, BathroomsIcon, BedroomsIcon, BellIcon, BrandLogo, type BrandLogoProps, type BrandLogoVariant, BuildingIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarIcon, CalendarOutlineIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, type CheckboxProps, type CheckboxVariant, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, type CommentCardProps, CopyIcon, Counter, type CounterProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, FacebookIcon, FavoritesButton, type FavoritesButtonProps, FiltersIcon, GlobeIcon, GooglePlayIcon, type GreyStep, GuestsIcon, HeartIcon, HelpCircleIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, Input, type InputIcon, type InputProps, type InputSize, InstagramIcon, KeyIcon, type LanguageOption, LanguageSwitcher, type LanguageSwitcherProps, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, type MenuIconProps, MenuItem, type MenuItemProps, MinusIcon, NavigateIcon, PhoneIcon, PlusIcon, QrCodeIcon, Range, type RangeProps, type RangeValue, RatingInput, type RatingInputProps, RatingStarIcon, SaveHeartIcon, SearchIcon, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectIcon, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShareIcon, ShowIcon, SidebarIcon, SortIcon, StarFilledIcon, StarIcon, type StarIconProps, StatCard, type StatCardProps, Textarea, type TextareaProps, Toggle, type ToggleProps, TooltipArrowIcon, UserIcon, UsersAltIcon, VideoIcon, WhatsAppIcon, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,32 @@
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, ViewProps, TouchableOpacityProps, TextInputProps, TextInput } from 'react-native';
4
+ import { PressableProps, StyleProp, ViewStyle, TextStyle, View, GestureResponderEvent, ViewProps, TouchableOpacityProps, TextInputProps, TextInput } from 'react-native';
5
+
6
+ declare const amenityNames: readonly ["kitchen", "wifi", "tv", "washer", "ac", "bbq", "forestView", "pets"];
7
+ type AmenityName = (typeof amenityNames)[number];
8
+
9
+ interface AmenityIconProps {
10
+ name: AmenityName;
11
+ size?: number;
12
+ color?: string;
13
+ }
14
+ declare function AmenityIcon({ name, size, color }: AmenityIconProps): react.JSX.Element;
15
+
16
+ type AmenityVariant = "display" | "selectable";
17
+ interface AmenityProps extends Omit<PressableProps, "children" | "disabled" | "onPress" | "style"> {
18
+ icon: AmenityName;
19
+ label: string;
20
+ variant?: AmenityVariant;
21
+ selected?: boolean;
22
+ defaultSelected?: boolean;
23
+ onSelectedChange?: (selected: boolean) => void;
24
+ disabled?: boolean;
25
+ style?: StyleProp<ViewStyle>;
26
+ labelStyle?: StyleProp<TextStyle>;
27
+ className?: string;
28
+ }
29
+ declare const Amenity: react.ForwardRefExoticComponent<AmenityProps & react.RefAttributes<View>>;
5
30
 
6
31
  interface MenuItemProps extends Omit<PressableProps, "onPress" | "disabled" | "style" | "children" | "hitSlop"> {
7
32
  /** Leading icon, e.g. `<CalendarIcon size={16} />` — pass it pre-colored. */
@@ -109,6 +134,9 @@ interface ArrowRightIconProps {
109
134
  /** Native — react-native-svg (peer dependency). */
110
135
  declare function ArrowRightIcon({ size, color, strokeWidth, }: ArrowRightIconProps): react.JSX.Element;
111
136
 
137
+ declare function AppleIcon({ size, color }: IconProps): react.JSX.Element;
138
+ declare function GooglePlayIcon({ size }: IconProps): react.JSX.Element;
139
+
112
140
  declare function BagIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
113
141
 
114
142
  declare function BellIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
@@ -271,6 +299,7 @@ declare function VideoIcon({ size, color, strokeWidth }: IconProps): react.JSX.E
271
299
 
272
300
  declare const icons: {
273
301
  readonly areaExpand: typeof AreaExpandIcon;
302
+ readonly apple: typeof AppleIcon;
274
303
  readonly arrowRight: typeof ArrowRightIcon;
275
304
  readonly bag: typeof BagIcon;
276
305
  readonly bell: typeof BellIcon;
@@ -295,6 +324,7 @@ declare const icons: {
295
324
  readonly guests: typeof GuestsIcon;
296
325
  readonly heart: typeof HeartIcon;
297
326
  readonly globe: typeof GlobeIcon;
327
+ readonly googlePlay: typeof GooglePlayIcon;
298
328
  readonly helpCircle: typeof HelpCircleIcon;
299
329
  readonly home: typeof HomeIcon;
300
330
  readonly instagram: typeof InstagramIcon;
@@ -337,7 +367,7 @@ declare const iconGroups: {
337
367
  readonly actions: readonly ["show", "bell", "camera", "key", "check", "checkBadge", "checkSuccess", "copy", "search", "calendar", "calendarOutline", "close", "ratingStar", "saveHeart", "share", "filters", "heart", "star", "starFilled", "minus", "plus", "sort"];
338
368
  readonly objects: readonly ["bag", "bathrooms", "bedrooms", "building", "cardLocation", "clock", "clockFilled", "guests", "qrCode", "user", "usersAlt", "video", "whatsApp"];
339
369
  readonly communication: readonly ["mail", "phone"];
340
- readonly social: readonly ["facebook", "instagram", "linkedin"];
370
+ readonly social: readonly ["apple", "facebook", "googlePlay", "instagram", "linkedin"];
341
371
  readonly interface: readonly ["areaExpand", "globe", "layoutGrid", "sidebar", "settings", "helpCircle", "logOut", "tooltipArrow"];
342
372
  };
343
373
  type IconGroup = keyof typeof iconGroups;
@@ -787,12 +817,12 @@ declare const statCardTypography: {
787
817
  readonly lineHeight: 16;
788
818
  readonly letterSpacing: 0;
789
819
  };
790
- /** Segmented toggle label — Medium 12, line-height 100%, letter-spacing 0. */
820
+ /** Segmented toggle label — Medium 12, 14px line-height, letter-spacing 0. */
791
821
  declare const segmentedToggleTypography: {
792
822
  readonly fontFamily: "Noto Sans Armenian";
793
823
  readonly fontSize: 12;
794
824
  readonly fontWeight: "500";
795
- readonly lineHeight: 12;
825
+ readonly lineHeight: 14;
796
826
  readonly letterSpacing: 0;
797
827
  };
798
828
  /** Language switcher trigger and option labels — SemiBold 14. */
@@ -986,4 +1016,4 @@ declare const textareaTypography: {
986
1016
  };
987
1017
  };
988
1018
 
989
- export { AreaExpandIcon, ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, type BadgeProps, type BadgeVariant, BagIcon, BathroomsIcon, BedroomsIcon, BellIcon, BrandLogo, type BrandLogoProps, type BrandLogoVariant, BuildingIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarIcon, CalendarOutlineIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, type CheckboxProps, type CheckboxVariant, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, type CommentCardProps, CopyIcon, Counter, type CounterProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, FacebookIcon, FavoritesButton, type FavoritesButtonProps, FiltersIcon, GlobeIcon, type GreyStep, GuestsIcon, HeartIcon, HelpCircleIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, Input, type InputIcon, type InputProps, type InputSize, InstagramIcon, KeyIcon, type LanguageOption, LanguageSwitcher, type LanguageSwitcherProps, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, type MenuIconProps, MenuItem, type MenuItemProps, MinusIcon, NavigateIcon, PhoneIcon, PlusIcon, QrCodeIcon, Range, type RangeProps, type RangeValue, RatingInput, type RatingInputProps, RatingStarIcon, SaveHeartIcon, SearchIcon, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectIcon, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShareIcon, ShowIcon, SidebarIcon, SortIcon, StarFilledIcon, StarIcon, type StarIconProps, StatCard, type StatCardProps, Textarea, type TextareaProps, Toggle, type ToggleProps, TooltipArrowIcon, UserIcon, UsersAltIcon, VideoIcon, WhatsAppIcon, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
1019
+ export { Amenity, AmenityIcon, type AmenityIconProps, type AmenityName, type AmenityProps, type AmenityVariant, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, type BadgeProps, type BadgeVariant, BagIcon, BathroomsIcon, BedroomsIcon, BellIcon, BrandLogo, type BrandLogoProps, type BrandLogoVariant, BuildingIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarIcon, CalendarOutlineIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, type CheckboxProps, type CheckboxVariant, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, type CommentCardProps, CopyIcon, Counter, type CounterProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, FacebookIcon, FavoritesButton, type FavoritesButtonProps, FiltersIcon, GlobeIcon, GooglePlayIcon, type GreyStep, GuestsIcon, HeartIcon, HelpCircleIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, Input, type InputIcon, type InputProps, type InputSize, InstagramIcon, KeyIcon, type LanguageOption, LanguageSwitcher, type LanguageSwitcherProps, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, type MenuIconProps, MenuItem, type MenuItemProps, MinusIcon, NavigateIcon, PhoneIcon, PlusIcon, QrCodeIcon, Range, type RangeProps, type RangeValue, RatingInput, type RatingInputProps, RatingStarIcon, SaveHeartIcon, SearchIcon, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectIcon, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShareIcon, ShowIcon, SidebarIcon, SortIcon, StarFilledIcon, StarIcon, type StarIconProps, StatCard, type StatCardProps, Textarea, type TextareaProps, Toggle, type ToggleProps, TooltipArrowIcon, UserIcon, UsersAltIcon, VideoIcon, WhatsAppIcon, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };