@ecohouse/ui 0.1.33 → 0.1.35
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.cjs +30078 -656
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +114 -7
- package/dist/index.d.ts +114 -7
- package/dist/index.js +30007 -593
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AccordionItem/AccordionItem.stories.tsx +54 -0
- package/src/components/AccordionItem/AccordionItem.tsx +223 -0
- package/src/components/AccordionItem/index.ts +2 -0
- package/src/components/AccountHeader/AccountHeader.tsx +50 -29
- package/src/components/Button/Button.stories.tsx +10 -1
- package/src/components/Button/Button.tsx +32 -3
- package/src/components/ContactInfoCard/ContactInfoCard.stories.tsx +30 -0
- package/src/components/ContactInfoCard/ContactInfoCard.tsx +141 -0
- package/src/components/ContactInfoCard/index.ts +2 -0
- package/src/components/DatePicker/DatePicker.tsx +51 -15
- package/src/components/Input/Input.tsx +54 -21
- package/src/components/LanguageSwitcher/LanguageSwitcher.stories.tsx +11 -0
- package/src/components/LanguageSwitcher/LanguageSwitcher.tsx +103 -19
- package/src/components/LanguageSwitcher/index.ts +5 -1
- package/src/components/Modal/Modal.stories.tsx +100 -0
- package/src/components/Modal/Modal.tsx +165 -0
- package/src/components/Modal/index.ts +2 -0
- package/src/components/Select/Select.tsx +90 -5
- package/src/components/Sidebar/Sidebar.tsx +19 -3
- package/src/components/Textarea/Textarea.tsx +29 -4
- package/src/components/ToggleRow/ToggleRow.stories.tsx +46 -0
- package/src/components/ToggleRow/ToggleRow.tsx +121 -0
- package/src/components/ToggleRow/index.ts +2 -0
- package/src/components/VerificationCodeInput/VerificationCodeInput.tsx +80 -60
- package/src/components/index.ts +17 -1
- package/src/icons/CameraFilled/CameraFilledIcon.tsx +15 -0
- package/src/icons/CameraFilled/CameraFilledIcon.web.tsx +21 -0
- package/src/icons/CameraFilled/cameraFilledPath.ts +2 -0
- package/src/icons/CameraFilled/index.ts +1 -0
- package/src/icons/Globe/GlobeIcon.tsx +2 -2
- package/src/icons/Globe/GlobeIcon.web.tsx +2 -2
- package/src/icons/Globe/globePath.ts +2 -2
- package/src/icons/Headset/HeadsetIcon.tsx +26 -0
- package/src/icons/Headset/HeadsetIcon.web.tsx +25 -0
- package/src/icons/Headset/headsetPath.ts +6 -0
- package/src/icons/Headset/index.ts +1 -0
- package/src/icons/Hide/HideIcon.tsx +21 -0
- package/src/icons/Hide/HideIcon.web.tsx +27 -0
- package/src/icons/Hide/hidePath.ts +3 -0
- package/src/icons/Hide/index.ts +1 -0
- package/src/icons/Key/keyPath.ts +1 -1
- package/src/icons/MenuLines/MenuLinesIcon.tsx +20 -0
- package/src/icons/MenuLines/MenuLinesIcon.web.tsx +26 -0
- package/src/icons/MenuLines/index.ts +1 -0
- package/src/icons/MenuLines/menuLinesPath.ts +3 -0
- package/src/icons/index.ts +4 -0
- package/src/icons/registry.ts +11 -0
- package/src/index.ts +13 -0
- package/src/theme/typography.ts +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -148,6 +148,8 @@ interface AccountHeaderProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
148
148
|
/** When set, shows the 28×28 menu control (mobile account shell). Ignored if `onBackPress` is set. */
|
|
149
149
|
onMenuPress?: () => void;
|
|
150
150
|
onNotificationsPress?: () => void;
|
|
151
|
+
/** Optional control rendered to the left of notifications (e.g. language switcher). */
|
|
152
|
+
languageSlot?: ReactNode;
|
|
151
153
|
/** Optional status chip (or other accessory) rendered after the title with a 12px gap. */
|
|
152
154
|
badge?: ReactNode;
|
|
153
155
|
/** Accessible name for the back control. Defaults to `"Back"`. */
|
|
@@ -156,6 +158,13 @@ interface AccountHeaderProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
156
158
|
menuAccessibilityLabel?: string;
|
|
157
159
|
/** Accessible name for notifications. Defaults to `"Notifications"`. */
|
|
158
160
|
notificationsAccessibilityLabel?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Web CSS class for the menu control (hide on desktop via `#account-header-menu` /
|
|
163
|
+
* `.account-header-menu` while keeping it mounted to avoid a mobile refresh flash).
|
|
164
|
+
*/
|
|
165
|
+
menuClassName?: string;
|
|
166
|
+
/** Optional title style override (e.g. mobile 14px from the web app). */
|
|
167
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
159
168
|
style?: StyleProp<ViewStyle>;
|
|
160
169
|
className?: string;
|
|
161
170
|
}
|
|
@@ -200,6 +209,9 @@ declare function CalendarOutlineIcon({ size, color, strokeWidth, }: IconProps):
|
|
|
200
209
|
|
|
201
210
|
declare function CameraIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
202
211
|
|
|
212
|
+
/** Native — filled camera, 32×32 viewBox. */
|
|
213
|
+
declare function CameraFilledIcon({ size, color }: IconProps): react.JSX.Element;
|
|
214
|
+
|
|
203
215
|
interface CheckIconProps {
|
|
204
216
|
size?: number;
|
|
205
217
|
color?: string;
|
|
@@ -260,11 +272,16 @@ declare function FullscreenIcon({ size, color, strokeWidth }: IconProps): react.
|
|
|
260
272
|
/** Native — react-native-svg (peer dependency). */
|
|
261
273
|
declare function HeartIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
262
274
|
|
|
275
|
+
declare function HeadsetIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
276
|
+
|
|
263
277
|
declare function GlobeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
264
278
|
|
|
265
279
|
/** Native — react-native-svg (peer dependency). */
|
|
266
280
|
declare function HelpCircleIcon({ size, color, strokeWidth, }: IconProps): react.JSX.Element;
|
|
267
281
|
|
|
282
|
+
/** Native — react-native-svg (peer dependency). */
|
|
283
|
+
declare function HideIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
284
|
+
|
|
268
285
|
declare function HomeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
269
286
|
|
|
270
287
|
declare function InstagramIcon({ size, color }: IconProps): react.JSX.Element;
|
|
@@ -304,6 +321,8 @@ interface MenuIconProps extends IconProps {
|
|
|
304
321
|
}
|
|
305
322
|
declare function MenuIcon({ size, color, strokeWidth, open, }: MenuIconProps): react.JSX.Element;
|
|
306
323
|
|
|
324
|
+
declare function MenuLinesIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
325
|
+
|
|
307
326
|
declare function MinusIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
308
327
|
|
|
309
328
|
declare function NavigateIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
@@ -385,6 +404,7 @@ declare const icons: {
|
|
|
385
404
|
readonly calendar: typeof CalendarIcon;
|
|
386
405
|
readonly calendarOutline: typeof CalendarOutlineIcon;
|
|
387
406
|
readonly camera: typeof CameraIcon;
|
|
407
|
+
readonly cameraFilled: typeof CameraFilledIcon;
|
|
388
408
|
readonly check: typeof CheckIcon;
|
|
389
409
|
readonly checkBadge: typeof CheckBadgeIcon;
|
|
390
410
|
readonly checkSuccess: typeof CheckSuccessIcon;
|
|
@@ -404,9 +424,11 @@ declare const icons: {
|
|
|
404
424
|
readonly fullscreen: typeof FullscreenIcon;
|
|
405
425
|
readonly guests: typeof GuestsIcon;
|
|
406
426
|
readonly heart: typeof HeartIcon;
|
|
427
|
+
readonly headset: typeof HeadsetIcon;
|
|
407
428
|
readonly globe: typeof GlobeIcon;
|
|
408
429
|
readonly googlePlay: typeof GooglePlayIcon;
|
|
409
430
|
readonly helpCircle: typeof HelpCircleIcon;
|
|
431
|
+
readonly hide: typeof HideIcon;
|
|
410
432
|
readonly home: typeof HomeIcon;
|
|
411
433
|
readonly instagram: typeof InstagramIcon;
|
|
412
434
|
readonly key: typeof KeyIcon;
|
|
@@ -422,6 +444,7 @@ declare const icons: {
|
|
|
422
444
|
readonly mapCollapse: typeof MapCollapseIcon;
|
|
423
445
|
readonly mapExpand: typeof MapExpandIcon;
|
|
424
446
|
readonly menu: typeof MenuIcon;
|
|
447
|
+
readonly menuLines: typeof MenuLinesIcon;
|
|
425
448
|
readonly minus: typeof MinusIcon;
|
|
426
449
|
readonly navigate: typeof NavigateIcon;
|
|
427
450
|
readonly noSmoking: typeof NoSmokingIcon;
|
|
@@ -454,8 +477,8 @@ declare const icons: {
|
|
|
454
477
|
type IconName = keyof typeof icons;
|
|
455
478
|
declare const iconNames: IconName[];
|
|
456
479
|
declare const iconGroups: {
|
|
457
|
-
readonly navigation: readonly ["arrowRight", "chevronDown", "chevronLeft", "home", "listView", "locationPin", "locationUser", "mapCollapse", "mapExpand", "mapView", "menu", "navigate"];
|
|
458
|
-
readonly actions: readonly ["show", "alertTriangle", "ban", "bell", "camera", "key", "check", "checkBadge", "checkSuccess", "copy", "download", "search", "calendar", "calendarOutline", "close", "edit", "ratingStar", "saveHeart", "share", "filters", "fullscreen", "heart", "zoomOut", "star", "starFilled", "minus", "plus", "refresh", "refundStatus", "sort"];
|
|
480
|
+
readonly navigation: readonly ["arrowRight", "chevronDown", "chevronLeft", "home", "listView", "locationPin", "locationUser", "mapCollapse", "mapExpand", "mapView", "menu", "menuLines", "navigate"];
|
|
481
|
+
readonly actions: readonly ["show", "hide", "alertTriangle", "ban", "bell", "camera", "key", "check", "checkBadge", "checkSuccess", "copy", "download", "search", "calendar", "calendarOutline", "close", "edit", "ratingStar", "saveHeart", "share", "filters", "fullscreen", "heart", "headset", "zoomOut", "star", "starFilled", "minus", "plus", "refresh", "refundStatus", "sort"];
|
|
459
482
|
readonly objects: readonly ["bag", "bathrooms", "bedrooms", "building", "cardLocation", "clock", "clockFilled", "guests", "lock", "noSmoking", "paw", "qrCode", "quietHours", "trash", "user", "usersAlt", "video", "videoOff", "whatsApp"];
|
|
460
483
|
readonly communication: readonly ["mail", "phone"];
|
|
461
484
|
readonly social: readonly ["apple", "facebook", "googlePlay", "instagram", "linkedin"];
|
|
@@ -548,6 +571,41 @@ interface InfoTileProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
548
571
|
*/
|
|
549
572
|
declare const InfoTile: react.ForwardRefExoticComponent<InfoTileProps & react.RefAttributes<View>>;
|
|
550
573
|
|
|
574
|
+
interface ContactInfoCardProps extends Omit<ViewProps, "style" | "children"> {
|
|
575
|
+
title: string;
|
|
576
|
+
value: string;
|
|
577
|
+
icon: IconComponent;
|
|
578
|
+
iconProps?: Omit<IconProps, "size">;
|
|
579
|
+
iconSize?: number;
|
|
580
|
+
/** Icon slot fill. Defaults to `#E38E5E0F`. */
|
|
581
|
+
iconSlotBackgroundColor?: string;
|
|
582
|
+
style?: StyleProp<ViewStyle>;
|
|
583
|
+
className?: string;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Support contact strip — icon slot + title/value.
|
|
587
|
+
* Mobile: height 78, padding 16, gap 16, radius 20.
|
|
588
|
+
* Desktop: height 96, padding 24, gap 24, radius 20.
|
|
589
|
+
*/
|
|
590
|
+
declare const ContactInfoCard: react.ForwardRefExoticComponent<ContactInfoCardProps & react.RefAttributes<View>>;
|
|
591
|
+
|
|
592
|
+
interface AccordionItemProps extends Omit<ViewProps, "style" | "children"> {
|
|
593
|
+
title: string;
|
|
594
|
+
/** Expanded body text. */
|
|
595
|
+
children: string;
|
|
596
|
+
open?: boolean;
|
|
597
|
+
defaultOpen?: boolean;
|
|
598
|
+
onOpenChange?: (open: boolean) => void;
|
|
599
|
+
style?: StyleProp<ViewStyle>;
|
|
600
|
+
className?: string;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* FAQ / accordion row — grey700 card.
|
|
604
|
+
* Mobile: radius 16, padding 16/12, body 12px.
|
|
605
|
+
* Desktop: radius 24, padding 16/24, body 14px.
|
|
606
|
+
*/
|
|
607
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<AccordionItemProps & react.RefAttributes<View>>;
|
|
608
|
+
|
|
551
609
|
interface StepListProps extends Omit<ViewProps, "style" | "children"> {
|
|
552
610
|
/** Step descriptions, numbered automatically from 1. */
|
|
553
611
|
steps: string[];
|
|
@@ -629,6 +687,10 @@ interface SidebarProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
629
687
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
630
688
|
/** When false, hides the expand/collapse control. Defaults to `true`. */
|
|
631
689
|
showCollapseToggle?: boolean;
|
|
690
|
+
/** When set, shows a close control in the header (e.g. mobile drawer). */
|
|
691
|
+
onClose?: () => void;
|
|
692
|
+
/** Accessible label for the close control. Defaults to `"Close"`. */
|
|
693
|
+
closeAccessibilityLabel?: string;
|
|
632
694
|
style?: StyleProp<ViewStyle>;
|
|
633
695
|
className?: string;
|
|
634
696
|
}
|
|
@@ -640,6 +702,7 @@ interface LanguageOption {
|
|
|
640
702
|
/** Short label shown in the trigger and menu. */
|
|
641
703
|
label: string;
|
|
642
704
|
}
|
|
705
|
+
type LanguageSwitcherVariant = "default" | "icon";
|
|
643
706
|
interface LanguageSwitcherProps extends Omit<ViewProps, "style" | "children"> {
|
|
644
707
|
options?: readonly LanguageOption[];
|
|
645
708
|
value?: string;
|
|
@@ -649,6 +712,11 @@ interface LanguageSwitcherProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
649
712
|
defaultOpen?: boolean;
|
|
650
713
|
onOpenChange?: (open: boolean) => void;
|
|
651
714
|
disabled?: boolean;
|
|
715
|
+
/**
|
|
716
|
+
* `default` — globe + label + chevron (marketing header).
|
|
717
|
+
* `icon` — icon-only control matching account header action buttons.
|
|
718
|
+
*/
|
|
719
|
+
variant?: LanguageSwitcherVariant;
|
|
652
720
|
accessibilityLabel?: string;
|
|
653
721
|
style?: StyleProp<ViewStyle>;
|
|
654
722
|
className?: string;
|
|
@@ -676,7 +744,7 @@ interface StatCardProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
676
744
|
}
|
|
677
745
|
declare const StatCard: react.ForwardRefExoticComponent<StatCardProps & react.RefAttributes<View>>;
|
|
678
746
|
|
|
679
|
-
type ButtonVariant = "primary" | "secondary";
|
|
747
|
+
type ButtonVariant = "primary" | "secondary" | "danger";
|
|
680
748
|
type ButtonSize = "lg" | "sm";
|
|
681
749
|
interface ButtonProps extends Omit<TouchableOpacityProps, "onPress" | "disabled" | "style" | "children"> {
|
|
682
750
|
title?: string;
|
|
@@ -787,6 +855,23 @@ interface FloatingActionButtonProps extends Omit<TouchableOpacityProps, "onPress
|
|
|
787
855
|
}
|
|
788
856
|
declare const FloatingActionButton: react.ForwardRefExoticComponent<FloatingActionButtonProps & react.RefAttributes<react_native.View>>;
|
|
789
857
|
|
|
858
|
+
interface ModalProps {
|
|
859
|
+
/** Controls visibility. */
|
|
860
|
+
open: boolean;
|
|
861
|
+
/** Called on backdrop press, Escape / Android back, or explicit close. */
|
|
862
|
+
onClose: () => void;
|
|
863
|
+
children: ReactNode;
|
|
864
|
+
/** Close when the dimmed backdrop is pressed. Defaults to `true`. */
|
|
865
|
+
closeOnBackdropPress?: boolean;
|
|
866
|
+
/** Accessible name for the backdrop control. Defaults to `"Close"`. */
|
|
867
|
+
backdropAccessibilityLabel?: string;
|
|
868
|
+
/** Style for the centered content wrapper around `children`. */
|
|
869
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
870
|
+
/** Web CSS class applied to the content wrapper. */
|
|
871
|
+
className?: string;
|
|
872
|
+
}
|
|
873
|
+
declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<View>>;
|
|
874
|
+
|
|
790
875
|
type StatefulIcon = ReactNode | IconComponent;
|
|
791
876
|
|
|
792
877
|
type InputSize = "lg" | "sm";
|
|
@@ -831,6 +916,8 @@ interface VerificationCodeInputProps extends Omit<ViewProps, "children" | "style
|
|
|
831
916
|
/** Called when Enter/submit is pressed from a cell. */
|
|
832
917
|
onSubmit?: (value: string) => void;
|
|
833
918
|
error?: boolean;
|
|
919
|
+
/** Shown under the cells when `error` is true. */
|
|
920
|
+
errorMessage?: string;
|
|
834
921
|
disabled?: boolean;
|
|
835
922
|
autoFocus?: boolean;
|
|
836
923
|
/** Localized accessible name for each zero-based cell index. */
|
|
@@ -875,6 +962,8 @@ type SelectBaseProps = Omit<ViewProps, "style" | "children"> & {
|
|
|
875
962
|
/** Override color for the selected value text in the trigger. */
|
|
876
963
|
valueColor?: string;
|
|
877
964
|
style?: StyleProp<ViewStyle>;
|
|
965
|
+
/** Styles applied to the dropdown menu only (not the trigger). */
|
|
966
|
+
menuStyle?: StyleProp<ViewStyle>;
|
|
878
967
|
className?: string;
|
|
879
968
|
};
|
|
880
969
|
type SelectSingleProps = SelectBaseProps & {
|
|
@@ -926,6 +1015,24 @@ interface ToggleProps extends Omit<PressableProps, "onPress" | "disabled" | "sty
|
|
|
926
1015
|
}
|
|
927
1016
|
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<react_native.View>>;
|
|
928
1017
|
|
|
1018
|
+
interface ToggleRowProps extends Omit<ViewProps, "style" | "children"> {
|
|
1019
|
+
label: string;
|
|
1020
|
+
value?: boolean;
|
|
1021
|
+
defaultValue?: boolean;
|
|
1022
|
+
onValueChange?: (value: boolean) => void;
|
|
1023
|
+
disabled?: boolean;
|
|
1024
|
+
/** When false, hides the bottom border. Defaults to true. */
|
|
1025
|
+
showBorder?: boolean;
|
|
1026
|
+
style?: StyleProp<ViewStyle>;
|
|
1027
|
+
className?: string;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Settings toggle line — label left, switch right.
|
|
1031
|
+
* Mobile: height 57, padding 16/12, label 12px.
|
|
1032
|
+
* Desktop: height 65, padding 20/12, label 14px.
|
|
1033
|
+
*/
|
|
1034
|
+
declare const ToggleRow: react.ForwardRefExoticComponent<ToggleRowProps & react.RefAttributes<View>>;
|
|
1035
|
+
|
|
929
1036
|
interface RatingInputProps extends Omit<ViewProps, "style" | "children"> {
|
|
930
1037
|
value?: number;
|
|
931
1038
|
defaultValue?: number;
|
|
@@ -1100,13 +1207,13 @@ declare const segmentedToggleTypography: {
|
|
|
1100
1207
|
readonly lineHeight: 14;
|
|
1101
1208
|
readonly letterSpacing: 0;
|
|
1102
1209
|
};
|
|
1103
|
-
/** Language switcher trigger and option labels — SemiBold 14
|
|
1210
|
+
/** Language switcher trigger and option labels — SemiBold 14, tracking 3%. */
|
|
1104
1211
|
declare const languageSwitcherTypography: {
|
|
1105
1212
|
readonly fontFamily: "Noto Sans Armenian";
|
|
1106
1213
|
readonly fontSize: 14;
|
|
1107
1214
|
readonly fontWeight: "600";
|
|
1108
|
-
readonly lineHeight:
|
|
1109
|
-
readonly letterSpacing: 0;
|
|
1215
|
+
readonly lineHeight: 14;
|
|
1216
|
+
readonly letterSpacing: 0.42;
|
|
1110
1217
|
};
|
|
1111
1218
|
/** Counter value — Bold 14, line-height 100%, letter-spacing 0. */
|
|
1112
1219
|
declare const counterTypography: {
|
|
@@ -1345,4 +1452,4 @@ type ResolvePopoverAlignOptions = {
|
|
|
1345
1452
|
*/
|
|
1346
1453
|
declare function resolvePopoverAlign({ triggerRect, panelWidth, viewportWidth, padding, preferred, }: ResolvePopoverAlignOptions): PopoverAlign;
|
|
1347
1454
|
|
|
1348
|
-
export { AccountHeader, type AccountHeaderProps, AlertTriangleIcon, Amenity, AmenityIcon, type AmenityIconProps, type AmenityName, type AmenityProps, type AmenityVariant, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, AvatarSimple, type AvatarSimpleProps, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, type BadgeProps, type BadgeVariant, BagIcon, BanIcon, 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 DatePickerVariant, type DateRange, DownloadIcon, EditIcon, FacebookIcon, FavoritesButton, type FavoritesButtonProps, FiltersIcon, FloatingActionButton, type FloatingActionButtonProps, FullscreenIcon, GlobeIcon, GooglePlayIcon, type GreyStep, GuestsIcon, HeartIcon, HelpCircleIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, InfoTile, type InfoTileProps, Input, type InputIcon, type InputProps, type InputSize, InstagramIcon, KeyIcon, type LanguageOption, LanguageSwitcher, type LanguageSwitcherProps, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LocationUserIcon, LockIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, type MenuIconProps, MenuItem, type MenuItemProps, MinusIcon, NavigateIcon, NoSmokingIcon, PaginationDots, type PaginationDotsProps, PawIcon, PhoneIcon, PlusIcon, type PopoverAlign, QrCodeIcon, QuietHoursIcon, Range, type RangeProps, type RangeValue, RatingInput, type RatingInputProps, RatingStarIcon, RefreshIcon, RefundStatusIcon, type ResolvePopoverAlignOptions, SaveHeartIcon, SearchIcon, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectIcon, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShareIcon, ShowIcon, Sidebar, SidebarIcon, type SidebarItem, type SidebarProps, type SidebarUser, SortIcon, StarFilledIcon, StarIcon, type StarIconProps, StatCard, type StatCardProps, StatusBadge, type StatusBadgeProps, type StatusBadgeTone, StepList, type StepListProps, StepPager, type StepPagerProps, Textarea, type TextareaProps, Toggle, type ToggleProps, TooltipArrowIcon, TrashIcon, UserIcon, UsersAltIcon, VerificationCodeInput, type VerificationCodeInputHandle, type VerificationCodeInputProps, VideoIcon, VideoOffIcon, WhatsAppIcon, ZoomOutIcon, abbreviateMonthName, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, formatDate, formatDateDayShortMonth, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, resolvePopoverAlign, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
|
|
1455
|
+
export { AccordionItem, type AccordionItemProps, AccountHeader, type AccountHeaderProps, AlertTriangleIcon, Amenity, AmenityIcon, type AmenityIconProps, type AmenityName, type AmenityProps, type AmenityVariant, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, AvatarSimple, type AvatarSimpleProps, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, type BadgeProps, type BadgeVariant, BagIcon, BanIcon, BathroomsIcon, BedroomsIcon, BellIcon, BrandLogo, type BrandLogoProps, type BrandLogoVariant, BuildingIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarIcon, CalendarOutlineIcon, CameraFilledIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, type CheckboxProps, type CheckboxVariant, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, type CommentCardProps, ContactInfoCard, type ContactInfoCardProps, CopyIcon, Counter, type CounterProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerVariant, type DateRange, DownloadIcon, EditIcon, FacebookIcon, FavoritesButton, type FavoritesButtonProps, FiltersIcon, FloatingActionButton, type FloatingActionButtonProps, FullscreenIcon, GlobeIcon, GooglePlayIcon, type GreyStep, GuestsIcon, HeadsetIcon, HeartIcon, HelpCircleIcon, HideIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, InfoTile, type InfoTileProps, Input, type InputIcon, type InputProps, type InputSize, InstagramIcon, KeyIcon, type LanguageOption, LanguageSwitcher, type LanguageSwitcherProps, type LanguageSwitcherVariant, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LocationUserIcon, LockIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, type MenuIconProps, MenuItem, type MenuItemProps, MenuLinesIcon, MinusIcon, Modal, type ModalProps, NavigateIcon, NoSmokingIcon, PaginationDots, type PaginationDotsProps, PawIcon, PhoneIcon, PlusIcon, type PopoverAlign, QrCodeIcon, QuietHoursIcon, Range, type RangeProps, type RangeValue, RatingInput, type RatingInputProps, RatingStarIcon, RefreshIcon, RefundStatusIcon, type ResolvePopoverAlignOptions, SaveHeartIcon, SearchIcon, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectIcon, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShareIcon, ShowIcon, Sidebar, SidebarIcon, type SidebarItem, type SidebarProps, type SidebarUser, SortIcon, StarFilledIcon, StarIcon, type StarIconProps, StatCard, type StatCardProps, StatusBadge, type StatusBadgeProps, type StatusBadgeTone, StepList, type StepListProps, StepPager, type StepPagerProps, Textarea, type TextareaProps, Toggle, type ToggleProps, ToggleRow, type ToggleRowProps, TooltipArrowIcon, TrashIcon, UserIcon, UsersAltIcon, VerificationCodeInput, type VerificationCodeInputHandle, type VerificationCodeInputProps, VideoIcon, VideoOffIcon, WhatsAppIcon, ZoomOutIcon, abbreviateMonthName, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, formatDate, formatDateDayShortMonth, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, resolvePopoverAlign, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
|
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,8 @@ interface AccountHeaderProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
148
148
|
/** When set, shows the 28×28 menu control (mobile account shell). Ignored if `onBackPress` is set. */
|
|
149
149
|
onMenuPress?: () => void;
|
|
150
150
|
onNotificationsPress?: () => void;
|
|
151
|
+
/** Optional control rendered to the left of notifications (e.g. language switcher). */
|
|
152
|
+
languageSlot?: ReactNode;
|
|
151
153
|
/** Optional status chip (or other accessory) rendered after the title with a 12px gap. */
|
|
152
154
|
badge?: ReactNode;
|
|
153
155
|
/** Accessible name for the back control. Defaults to `"Back"`. */
|
|
@@ -156,6 +158,13 @@ interface AccountHeaderProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
156
158
|
menuAccessibilityLabel?: string;
|
|
157
159
|
/** Accessible name for notifications. Defaults to `"Notifications"`. */
|
|
158
160
|
notificationsAccessibilityLabel?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Web CSS class for the menu control (hide on desktop via `#account-header-menu` /
|
|
163
|
+
* `.account-header-menu` while keeping it mounted to avoid a mobile refresh flash).
|
|
164
|
+
*/
|
|
165
|
+
menuClassName?: string;
|
|
166
|
+
/** Optional title style override (e.g. mobile 14px from the web app). */
|
|
167
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
159
168
|
style?: StyleProp<ViewStyle>;
|
|
160
169
|
className?: string;
|
|
161
170
|
}
|
|
@@ -200,6 +209,9 @@ declare function CalendarOutlineIcon({ size, color, strokeWidth, }: IconProps):
|
|
|
200
209
|
|
|
201
210
|
declare function CameraIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
202
211
|
|
|
212
|
+
/** Native — filled camera, 32×32 viewBox. */
|
|
213
|
+
declare function CameraFilledIcon({ size, color }: IconProps): react.JSX.Element;
|
|
214
|
+
|
|
203
215
|
interface CheckIconProps {
|
|
204
216
|
size?: number;
|
|
205
217
|
color?: string;
|
|
@@ -260,11 +272,16 @@ declare function FullscreenIcon({ size, color, strokeWidth }: IconProps): react.
|
|
|
260
272
|
/** Native — react-native-svg (peer dependency). */
|
|
261
273
|
declare function HeartIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
262
274
|
|
|
275
|
+
declare function HeadsetIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
276
|
+
|
|
263
277
|
declare function GlobeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
264
278
|
|
|
265
279
|
/** Native — react-native-svg (peer dependency). */
|
|
266
280
|
declare function HelpCircleIcon({ size, color, strokeWidth, }: IconProps): react.JSX.Element;
|
|
267
281
|
|
|
282
|
+
/** Native — react-native-svg (peer dependency). */
|
|
283
|
+
declare function HideIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
284
|
+
|
|
268
285
|
declare function HomeIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
269
286
|
|
|
270
287
|
declare function InstagramIcon({ size, color }: IconProps): react.JSX.Element;
|
|
@@ -304,6 +321,8 @@ interface MenuIconProps extends IconProps {
|
|
|
304
321
|
}
|
|
305
322
|
declare function MenuIcon({ size, color, strokeWidth, open, }: MenuIconProps): react.JSX.Element;
|
|
306
323
|
|
|
324
|
+
declare function MenuLinesIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
325
|
+
|
|
307
326
|
declare function MinusIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
308
327
|
|
|
309
328
|
declare function NavigateIcon({ size, color, strokeWidth }: IconProps): react.JSX.Element;
|
|
@@ -385,6 +404,7 @@ declare const icons: {
|
|
|
385
404
|
readonly calendar: typeof CalendarIcon;
|
|
386
405
|
readonly calendarOutline: typeof CalendarOutlineIcon;
|
|
387
406
|
readonly camera: typeof CameraIcon;
|
|
407
|
+
readonly cameraFilled: typeof CameraFilledIcon;
|
|
388
408
|
readonly check: typeof CheckIcon;
|
|
389
409
|
readonly checkBadge: typeof CheckBadgeIcon;
|
|
390
410
|
readonly checkSuccess: typeof CheckSuccessIcon;
|
|
@@ -404,9 +424,11 @@ declare const icons: {
|
|
|
404
424
|
readonly fullscreen: typeof FullscreenIcon;
|
|
405
425
|
readonly guests: typeof GuestsIcon;
|
|
406
426
|
readonly heart: typeof HeartIcon;
|
|
427
|
+
readonly headset: typeof HeadsetIcon;
|
|
407
428
|
readonly globe: typeof GlobeIcon;
|
|
408
429
|
readonly googlePlay: typeof GooglePlayIcon;
|
|
409
430
|
readonly helpCircle: typeof HelpCircleIcon;
|
|
431
|
+
readonly hide: typeof HideIcon;
|
|
410
432
|
readonly home: typeof HomeIcon;
|
|
411
433
|
readonly instagram: typeof InstagramIcon;
|
|
412
434
|
readonly key: typeof KeyIcon;
|
|
@@ -422,6 +444,7 @@ declare const icons: {
|
|
|
422
444
|
readonly mapCollapse: typeof MapCollapseIcon;
|
|
423
445
|
readonly mapExpand: typeof MapExpandIcon;
|
|
424
446
|
readonly menu: typeof MenuIcon;
|
|
447
|
+
readonly menuLines: typeof MenuLinesIcon;
|
|
425
448
|
readonly minus: typeof MinusIcon;
|
|
426
449
|
readonly navigate: typeof NavigateIcon;
|
|
427
450
|
readonly noSmoking: typeof NoSmokingIcon;
|
|
@@ -454,8 +477,8 @@ declare const icons: {
|
|
|
454
477
|
type IconName = keyof typeof icons;
|
|
455
478
|
declare const iconNames: IconName[];
|
|
456
479
|
declare const iconGroups: {
|
|
457
|
-
readonly navigation: readonly ["arrowRight", "chevronDown", "chevronLeft", "home", "listView", "locationPin", "locationUser", "mapCollapse", "mapExpand", "mapView", "menu", "navigate"];
|
|
458
|
-
readonly actions: readonly ["show", "alertTriangle", "ban", "bell", "camera", "key", "check", "checkBadge", "checkSuccess", "copy", "download", "search", "calendar", "calendarOutline", "close", "edit", "ratingStar", "saveHeart", "share", "filters", "fullscreen", "heart", "zoomOut", "star", "starFilled", "minus", "plus", "refresh", "refundStatus", "sort"];
|
|
480
|
+
readonly navigation: readonly ["arrowRight", "chevronDown", "chevronLeft", "home", "listView", "locationPin", "locationUser", "mapCollapse", "mapExpand", "mapView", "menu", "menuLines", "navigate"];
|
|
481
|
+
readonly actions: readonly ["show", "hide", "alertTriangle", "ban", "bell", "camera", "key", "check", "checkBadge", "checkSuccess", "copy", "download", "search", "calendar", "calendarOutline", "close", "edit", "ratingStar", "saveHeart", "share", "filters", "fullscreen", "heart", "headset", "zoomOut", "star", "starFilled", "minus", "plus", "refresh", "refundStatus", "sort"];
|
|
459
482
|
readonly objects: readonly ["bag", "bathrooms", "bedrooms", "building", "cardLocation", "clock", "clockFilled", "guests", "lock", "noSmoking", "paw", "qrCode", "quietHours", "trash", "user", "usersAlt", "video", "videoOff", "whatsApp"];
|
|
460
483
|
readonly communication: readonly ["mail", "phone"];
|
|
461
484
|
readonly social: readonly ["apple", "facebook", "googlePlay", "instagram", "linkedin"];
|
|
@@ -548,6 +571,41 @@ interface InfoTileProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
548
571
|
*/
|
|
549
572
|
declare const InfoTile: react.ForwardRefExoticComponent<InfoTileProps & react.RefAttributes<View>>;
|
|
550
573
|
|
|
574
|
+
interface ContactInfoCardProps extends Omit<ViewProps, "style" | "children"> {
|
|
575
|
+
title: string;
|
|
576
|
+
value: string;
|
|
577
|
+
icon: IconComponent;
|
|
578
|
+
iconProps?: Omit<IconProps, "size">;
|
|
579
|
+
iconSize?: number;
|
|
580
|
+
/** Icon slot fill. Defaults to `#E38E5E0F`. */
|
|
581
|
+
iconSlotBackgroundColor?: string;
|
|
582
|
+
style?: StyleProp<ViewStyle>;
|
|
583
|
+
className?: string;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Support contact strip — icon slot + title/value.
|
|
587
|
+
* Mobile: height 78, padding 16, gap 16, radius 20.
|
|
588
|
+
* Desktop: height 96, padding 24, gap 24, radius 20.
|
|
589
|
+
*/
|
|
590
|
+
declare const ContactInfoCard: react.ForwardRefExoticComponent<ContactInfoCardProps & react.RefAttributes<View>>;
|
|
591
|
+
|
|
592
|
+
interface AccordionItemProps extends Omit<ViewProps, "style" | "children"> {
|
|
593
|
+
title: string;
|
|
594
|
+
/** Expanded body text. */
|
|
595
|
+
children: string;
|
|
596
|
+
open?: boolean;
|
|
597
|
+
defaultOpen?: boolean;
|
|
598
|
+
onOpenChange?: (open: boolean) => void;
|
|
599
|
+
style?: StyleProp<ViewStyle>;
|
|
600
|
+
className?: string;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* FAQ / accordion row — grey700 card.
|
|
604
|
+
* Mobile: radius 16, padding 16/12, body 12px.
|
|
605
|
+
* Desktop: radius 24, padding 16/24, body 14px.
|
|
606
|
+
*/
|
|
607
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<AccordionItemProps & react.RefAttributes<View>>;
|
|
608
|
+
|
|
551
609
|
interface StepListProps extends Omit<ViewProps, "style" | "children"> {
|
|
552
610
|
/** Step descriptions, numbered automatically from 1. */
|
|
553
611
|
steps: string[];
|
|
@@ -629,6 +687,10 @@ interface SidebarProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
629
687
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
630
688
|
/** When false, hides the expand/collapse control. Defaults to `true`. */
|
|
631
689
|
showCollapseToggle?: boolean;
|
|
690
|
+
/** When set, shows a close control in the header (e.g. mobile drawer). */
|
|
691
|
+
onClose?: () => void;
|
|
692
|
+
/** Accessible label for the close control. Defaults to `"Close"`. */
|
|
693
|
+
closeAccessibilityLabel?: string;
|
|
632
694
|
style?: StyleProp<ViewStyle>;
|
|
633
695
|
className?: string;
|
|
634
696
|
}
|
|
@@ -640,6 +702,7 @@ interface LanguageOption {
|
|
|
640
702
|
/** Short label shown in the trigger and menu. */
|
|
641
703
|
label: string;
|
|
642
704
|
}
|
|
705
|
+
type LanguageSwitcherVariant = "default" | "icon";
|
|
643
706
|
interface LanguageSwitcherProps extends Omit<ViewProps, "style" | "children"> {
|
|
644
707
|
options?: readonly LanguageOption[];
|
|
645
708
|
value?: string;
|
|
@@ -649,6 +712,11 @@ interface LanguageSwitcherProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
649
712
|
defaultOpen?: boolean;
|
|
650
713
|
onOpenChange?: (open: boolean) => void;
|
|
651
714
|
disabled?: boolean;
|
|
715
|
+
/**
|
|
716
|
+
* `default` — globe + label + chevron (marketing header).
|
|
717
|
+
* `icon` — icon-only control matching account header action buttons.
|
|
718
|
+
*/
|
|
719
|
+
variant?: LanguageSwitcherVariant;
|
|
652
720
|
accessibilityLabel?: string;
|
|
653
721
|
style?: StyleProp<ViewStyle>;
|
|
654
722
|
className?: string;
|
|
@@ -676,7 +744,7 @@ interface StatCardProps extends Omit<ViewProps, "style" | "children"> {
|
|
|
676
744
|
}
|
|
677
745
|
declare const StatCard: react.ForwardRefExoticComponent<StatCardProps & react.RefAttributes<View>>;
|
|
678
746
|
|
|
679
|
-
type ButtonVariant = "primary" | "secondary";
|
|
747
|
+
type ButtonVariant = "primary" | "secondary" | "danger";
|
|
680
748
|
type ButtonSize = "lg" | "sm";
|
|
681
749
|
interface ButtonProps extends Omit<TouchableOpacityProps, "onPress" | "disabled" | "style" | "children"> {
|
|
682
750
|
title?: string;
|
|
@@ -787,6 +855,23 @@ interface FloatingActionButtonProps extends Omit<TouchableOpacityProps, "onPress
|
|
|
787
855
|
}
|
|
788
856
|
declare const FloatingActionButton: react.ForwardRefExoticComponent<FloatingActionButtonProps & react.RefAttributes<react_native.View>>;
|
|
789
857
|
|
|
858
|
+
interface ModalProps {
|
|
859
|
+
/** Controls visibility. */
|
|
860
|
+
open: boolean;
|
|
861
|
+
/** Called on backdrop press, Escape / Android back, or explicit close. */
|
|
862
|
+
onClose: () => void;
|
|
863
|
+
children: ReactNode;
|
|
864
|
+
/** Close when the dimmed backdrop is pressed. Defaults to `true`. */
|
|
865
|
+
closeOnBackdropPress?: boolean;
|
|
866
|
+
/** Accessible name for the backdrop control. Defaults to `"Close"`. */
|
|
867
|
+
backdropAccessibilityLabel?: string;
|
|
868
|
+
/** Style for the centered content wrapper around `children`. */
|
|
869
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
870
|
+
/** Web CSS class applied to the content wrapper. */
|
|
871
|
+
className?: string;
|
|
872
|
+
}
|
|
873
|
+
declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<View>>;
|
|
874
|
+
|
|
790
875
|
type StatefulIcon = ReactNode | IconComponent;
|
|
791
876
|
|
|
792
877
|
type InputSize = "lg" | "sm";
|
|
@@ -831,6 +916,8 @@ interface VerificationCodeInputProps extends Omit<ViewProps, "children" | "style
|
|
|
831
916
|
/** Called when Enter/submit is pressed from a cell. */
|
|
832
917
|
onSubmit?: (value: string) => void;
|
|
833
918
|
error?: boolean;
|
|
919
|
+
/** Shown under the cells when `error` is true. */
|
|
920
|
+
errorMessage?: string;
|
|
834
921
|
disabled?: boolean;
|
|
835
922
|
autoFocus?: boolean;
|
|
836
923
|
/** Localized accessible name for each zero-based cell index. */
|
|
@@ -875,6 +962,8 @@ type SelectBaseProps = Omit<ViewProps, "style" | "children"> & {
|
|
|
875
962
|
/** Override color for the selected value text in the trigger. */
|
|
876
963
|
valueColor?: string;
|
|
877
964
|
style?: StyleProp<ViewStyle>;
|
|
965
|
+
/** Styles applied to the dropdown menu only (not the trigger). */
|
|
966
|
+
menuStyle?: StyleProp<ViewStyle>;
|
|
878
967
|
className?: string;
|
|
879
968
|
};
|
|
880
969
|
type SelectSingleProps = SelectBaseProps & {
|
|
@@ -926,6 +1015,24 @@ interface ToggleProps extends Omit<PressableProps, "onPress" | "disabled" | "sty
|
|
|
926
1015
|
}
|
|
927
1016
|
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<react_native.View>>;
|
|
928
1017
|
|
|
1018
|
+
interface ToggleRowProps extends Omit<ViewProps, "style" | "children"> {
|
|
1019
|
+
label: string;
|
|
1020
|
+
value?: boolean;
|
|
1021
|
+
defaultValue?: boolean;
|
|
1022
|
+
onValueChange?: (value: boolean) => void;
|
|
1023
|
+
disabled?: boolean;
|
|
1024
|
+
/** When false, hides the bottom border. Defaults to true. */
|
|
1025
|
+
showBorder?: boolean;
|
|
1026
|
+
style?: StyleProp<ViewStyle>;
|
|
1027
|
+
className?: string;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Settings toggle line — label left, switch right.
|
|
1031
|
+
* Mobile: height 57, padding 16/12, label 12px.
|
|
1032
|
+
* Desktop: height 65, padding 20/12, label 14px.
|
|
1033
|
+
*/
|
|
1034
|
+
declare const ToggleRow: react.ForwardRefExoticComponent<ToggleRowProps & react.RefAttributes<View>>;
|
|
1035
|
+
|
|
929
1036
|
interface RatingInputProps extends Omit<ViewProps, "style" | "children"> {
|
|
930
1037
|
value?: number;
|
|
931
1038
|
defaultValue?: number;
|
|
@@ -1100,13 +1207,13 @@ declare const segmentedToggleTypography: {
|
|
|
1100
1207
|
readonly lineHeight: 14;
|
|
1101
1208
|
readonly letterSpacing: 0;
|
|
1102
1209
|
};
|
|
1103
|
-
/** Language switcher trigger and option labels — SemiBold 14
|
|
1210
|
+
/** Language switcher trigger and option labels — SemiBold 14, tracking 3%. */
|
|
1104
1211
|
declare const languageSwitcherTypography: {
|
|
1105
1212
|
readonly fontFamily: "Noto Sans Armenian";
|
|
1106
1213
|
readonly fontSize: 14;
|
|
1107
1214
|
readonly fontWeight: "600";
|
|
1108
|
-
readonly lineHeight:
|
|
1109
|
-
readonly letterSpacing: 0;
|
|
1215
|
+
readonly lineHeight: 14;
|
|
1216
|
+
readonly letterSpacing: 0.42;
|
|
1110
1217
|
};
|
|
1111
1218
|
/** Counter value — Bold 14, line-height 100%, letter-spacing 0. */
|
|
1112
1219
|
declare const counterTypography: {
|
|
@@ -1345,4 +1452,4 @@ type ResolvePopoverAlignOptions = {
|
|
|
1345
1452
|
*/
|
|
1346
1453
|
declare function resolvePopoverAlign({ triggerRect, panelWidth, viewportWidth, padding, preferred, }: ResolvePopoverAlignOptions): PopoverAlign;
|
|
1347
1454
|
|
|
1348
|
-
export { AccountHeader, type AccountHeaderProps, AlertTriangleIcon, Amenity, AmenityIcon, type AmenityIconProps, type AmenityName, type AmenityProps, type AmenityVariant, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, AvatarSimple, type AvatarSimpleProps, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, type BadgeProps, type BadgeVariant, BagIcon, BanIcon, 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 DatePickerVariant, type DateRange, DownloadIcon, EditIcon, FacebookIcon, FavoritesButton, type FavoritesButtonProps, FiltersIcon, FloatingActionButton, type FloatingActionButtonProps, FullscreenIcon, GlobeIcon, GooglePlayIcon, type GreyStep, GuestsIcon, HeartIcon, HelpCircleIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, InfoTile, type InfoTileProps, Input, type InputIcon, type InputProps, type InputSize, InstagramIcon, KeyIcon, type LanguageOption, LanguageSwitcher, type LanguageSwitcherProps, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LocationUserIcon, LockIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, type MenuIconProps, MenuItem, type MenuItemProps, MinusIcon, NavigateIcon, NoSmokingIcon, PaginationDots, type PaginationDotsProps, PawIcon, PhoneIcon, PlusIcon, type PopoverAlign, QrCodeIcon, QuietHoursIcon, Range, type RangeProps, type RangeValue, RatingInput, type RatingInputProps, RatingStarIcon, RefreshIcon, RefundStatusIcon, type ResolvePopoverAlignOptions, SaveHeartIcon, SearchIcon, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectIcon, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShareIcon, ShowIcon, Sidebar, SidebarIcon, type SidebarItem, type SidebarProps, type SidebarUser, SortIcon, StarFilledIcon, StarIcon, type StarIconProps, StatCard, type StatCardProps, StatusBadge, type StatusBadgeProps, type StatusBadgeTone, StepList, type StepListProps, StepPager, type StepPagerProps, Textarea, type TextareaProps, Toggle, type ToggleProps, TooltipArrowIcon, TrashIcon, UserIcon, UsersAltIcon, VerificationCodeInput, type VerificationCodeInputHandle, type VerificationCodeInputProps, VideoIcon, VideoOffIcon, WhatsAppIcon, ZoomOutIcon, abbreviateMonthName, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, formatDate, formatDateDayShortMonth, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, resolvePopoverAlign, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
|
|
1455
|
+
export { AccordionItem, type AccordionItemProps, AccountHeader, type AccountHeaderProps, AlertTriangleIcon, Amenity, AmenityIcon, type AmenityIconProps, type AmenityName, type AmenityProps, type AmenityVariant, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, type AvatarMenuItem, type AvatarProps, AvatarSimple, type AvatarSimpleProps, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, type BadgeProps, type BadgeVariant, BagIcon, BanIcon, BathroomsIcon, BedroomsIcon, BellIcon, BrandLogo, type BrandLogoProps, type BrandLogoVariant, BuildingIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarIcon, CalendarOutlineIcon, CameraFilledIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, type CheckboxProps, type CheckboxVariant, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, type CommentCardProps, ContactInfoCard, type ContactInfoCardProps, CopyIcon, Counter, type CounterProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerVariant, type DateRange, DownloadIcon, EditIcon, FacebookIcon, FavoritesButton, type FavoritesButtonProps, FiltersIcon, FloatingActionButton, type FloatingActionButtonProps, FullscreenIcon, GlobeIcon, GooglePlayIcon, type GreyStep, GuestsIcon, HeadsetIcon, HeartIcon, HelpCircleIcon, HideIcon, HomeIcon, Icon, type IconByNameProps, type IconComponent, type IconGroup, type IconName, type IconProps, InfoTile, type InfoTileProps, Input, type InputIcon, type InputProps, type InputSize, InstagramIcon, KeyIcon, type LanguageOption, LanguageSwitcher, type LanguageSwitcherProps, type LanguageSwitcherVariant, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LocationUserIcon, LockIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, type MenuIconProps, MenuItem, type MenuItemProps, MenuLinesIcon, MinusIcon, Modal, type ModalProps, NavigateIcon, NoSmokingIcon, PaginationDots, type PaginationDotsProps, PawIcon, PhoneIcon, PlusIcon, type PopoverAlign, QrCodeIcon, QuietHoursIcon, Range, type RangeProps, type RangeValue, RatingInput, type RatingInputProps, RatingStarIcon, RefreshIcon, RefundStatusIcon, type ResolvePopoverAlignOptions, SaveHeartIcon, SearchIcon, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectIcon, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, SettingsIcon, ShareIcon, ShowIcon, Sidebar, SidebarIcon, type SidebarItem, type SidebarProps, type SidebarUser, SortIcon, StarFilledIcon, StarIcon, type StarIconProps, StatCard, type StatCardProps, StatusBadge, type StatusBadgeProps, type StatusBadgeTone, StepList, type StepListProps, StepPager, type StepPagerProps, Textarea, type TextareaProps, Toggle, type ToggleProps, ToggleRow, type ToggleRowProps, TooltipArrowIcon, TrashIcon, UserIcon, UsersAltIcon, VerificationCodeInput, type VerificationCodeInputHandle, type VerificationCodeInputProps, VideoIcon, VideoOffIcon, WhatsAppIcon, ZoomOutIcon, abbreviateMonthName, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, formatDate, formatDateDayShortMonth, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, resolvePopoverAlign, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
|