@travel-match/ui 0.4.0 → 0.5.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/dist/components/AccountMenu/AccountMenu.cjs +1 -1
- package/dist/components/AccountMenu/AccountMenu.cjs.map +1 -1
- package/dist/components/AccountMenu/AccountMenu.js +1 -1
- package/dist/components/AccountMenu/AccountMenu.js.map +1 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.cjs +1 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.cjs.map +1 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.js +1 -0
- package/dist/components/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
- package/dist/components/CtaRequestFlow/CtaRequestFlow.cjs +1 -1
- package/dist/components/CtaRequestFlow/CtaRequestFlow.cjs.map +1 -1
- package/dist/components/CtaRequestFlow/CtaRequestFlow.js +72 -37
- package/dist/components/CtaRequestFlow/CtaRequestFlow.js.map +1 -1
- package/dist/components/ExampleRequests/ExampleRequests.cjs +1 -1
- package/dist/components/ExampleRequests/ExampleRequests.cjs.map +1 -1
- package/dist/components/ExampleRequests/ExampleRequests.js +18 -17
- package/dist/components/ExampleRequests/ExampleRequests.js.map +1 -1
- package/dist/components/FaqItem/FaqItem.cjs +1 -1
- package/dist/components/FaqItem/FaqItem.cjs.map +1 -1
- package/dist/components/FaqItem/FaqItem.js +79 -34
- package/dist/components/FaqItem/FaqItem.js.map +1 -1
- package/dist/components/Field/Field.cjs +1 -1
- package/dist/components/Field/Field.cjs.map +1 -1
- package/dist/components/Field/Field.js +10 -8
- package/dist/components/Field/Field.js.map +1 -1
- package/dist/components/InlineAlert/InlineAlert.cjs +1 -1
- package/dist/components/InlineAlert/InlineAlert.cjs.map +1 -1
- package/dist/components/InlineAlert/InlineAlert.js +9 -8
- package/dist/components/InlineAlert/InlineAlert.js.map +1 -1
- package/dist/components/NewRequestOverlay/NewRequestOverlay.cjs +1 -1
- package/dist/components/NewRequestOverlay/NewRequestOverlay.cjs.map +1 -1
- package/dist/components/NewRequestOverlay/NewRequestOverlay.js +67 -48
- package/dist/components/NewRequestOverlay/NewRequestOverlay.js.map +1 -1
- package/dist/components/NotificationsDropdown/NotificationsMenu.cjs +1 -1
- package/dist/components/NotificationsDropdown/NotificationsMenu.cjs.map +1 -1
- package/dist/components/NotificationsDropdown/NotificationsMenu.js +1 -1
- package/dist/components/NotificationsDropdown/NotificationsMenu.js.map +1 -1
- package/dist/components/PartnerCarousel/PartnerCarousel.cjs.map +1 -1
- package/dist/components/PartnerCarousel/PartnerCarousel.js.map +1 -1
- package/dist/components/PhoneInput/PhoneInput.cjs +1 -1
- package/dist/components/PhoneInput/PhoneInput.cjs.map +1 -1
- package/dist/components/PhoneInput/PhoneInput.js +8 -5
- package/dist/components/PhoneInput/PhoneInput.js.map +1 -1
- package/dist/components/PopularQuestions/PopularQuestions.cjs +1 -1
- package/dist/components/PopularQuestions/PopularQuestions.cjs.map +1 -1
- package/dist/components/PopularQuestions/PopularQuestions.js +22 -21
- package/dist/components/PopularQuestions/PopularQuestions.js.map +1 -1
- package/dist/components/RegionMap/RegionMap.cjs +2 -0
- package/dist/components/RegionMap/RegionMap.cjs.map +1 -0
- package/dist/components/RegionMap/RegionMap.js +55 -0
- package/dist/components/RegionMap/RegionMap.js.map +1 -0
- package/dist/components/RegionMap/mapPaths.cjs +2 -0
- package/dist/components/RegionMap/mapPaths.cjs.map +1 -0
- package/dist/components/RegionMap/mapPaths.js +86 -0
- package/dist/components/RegionMap/mapPaths.js.map +1 -0
- package/dist/components/RequestSearch/RequestSearch.cjs +2 -0
- package/dist/components/RequestSearch/RequestSearch.cjs.map +1 -0
- package/dist/components/RequestSearch/RequestSearch.js +36 -0
- package/dist/components/RequestSearch/RequestSearch.js.map +1 -0
- package/dist/components/RequestSummary/RequestSummary.cjs +1 -1
- package/dist/components/RequestSummary/RequestSummary.cjs.map +1 -1
- package/dist/components/RequestSummary/RequestSummary.js +31 -32
- package/dist/components/RequestSummary/RequestSummary.js.map +1 -1
- package/dist/components/RequestTypeOption/RequestTypeOption.cjs +2 -0
- package/dist/components/RequestTypeOption/RequestTypeOption.cjs.map +1 -0
- package/dist/components/RequestTypeOption/RequestTypeOption.js +52 -0
- package/dist/components/RequestTypeOption/RequestTypeOption.js.map +1 -0
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.js +127 -121
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/ShowMore/ShowMore.cjs +2 -0
- package/dist/components/ShowMore/ShowMore.cjs.map +1 -0
- package/dist/components/ShowMore/ShowMore.js +34 -0
- package/dist/components/ShowMore/ShowMore.js.map +1 -0
- package/dist/components/SiteHeader/SiteHeader.cjs.map +1 -1
- package/dist/components/SiteHeader/SiteHeader.js.map +1 -1
- package/dist/components/SortSelect/SortSelect.cjs +2 -0
- package/dist/components/SortSelect/SortSelect.cjs.map +1 -0
- package/dist/components/SortSelect/SortSelect.js +18 -0
- package/dist/components/SortSelect/SortSelect.js.map +1 -0
- package/dist/components/StatusFilter/StatusFilter.cjs +2 -0
- package/dist/components/StatusFilter/StatusFilter.cjs.map +1 -0
- package/dist/components/StatusFilter/StatusFilter.js +37 -0
- package/dist/components/StatusFilter/StatusFilter.js.map +1 -0
- package/dist/components/StatusTag/StatusTag.cjs.map +1 -1
- package/dist/components/StatusTag/StatusTag.js.map +1 -1
- package/dist/components/StepCard/StepCard.cjs +1 -1
- package/dist/components/StepCard/StepCard.cjs.map +1 -1
- package/dist/components/StepCard/StepCard.js +9 -6
- package/dist/components/StepCard/StepCard.js.map +1 -1
- package/dist/components/StepProgress/StepProgress.cjs +2 -0
- package/dist/components/StepProgress/StepProgress.cjs.map +1 -0
- package/dist/components/StepProgress/StepProgress.js +43 -0
- package/dist/components/StepProgress/StepProgress.js.map +1 -0
- package/dist/components/TelegramConnect/TelegramConnect.cjs +2 -0
- package/dist/components/TelegramConnect/TelegramConnect.cjs.map +1 -0
- package/dist/components/TelegramConnect/TelegramConnect.js +57 -0
- package/dist/components/TelegramConnect/TelegramConnect.js.map +1 -0
- package/dist/components/TextInput/TextInput.cjs +1 -1
- package/dist/components/TextInput/TextInput.cjs.map +1 -1
- package/dist/components/TextInput/TextInput.js +21 -19
- package/dist/components/TextInput/TextInput.js.map +1 -1
- package/dist/components/Textarea/Textarea.cjs +1 -1
- package/dist/components/Textarea/Textarea.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.js +18 -16
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/components/Toast/Toast.cjs +2 -0
- package/dist/components/Toast/Toast.cjs.map +1 -0
- package/dist/components/Toast/Toast.js +57 -0
- package/dist/components/Toast/Toast.js.map +1 -0
- package/dist/icons/generated/CheckmarkIcon.cjs +1 -1
- package/dist/icons/generated/CheckmarkIcon.cjs.map +1 -1
- package/dist/icons/generated/CheckmarkIcon.js +19 -2
- package/dist/icons/generated/CheckmarkIcon.js.map +1 -1
- package/dist/icons/generated/InfoIcon.cjs +2 -0
- package/dist/icons/generated/InfoIcon.cjs.map +1 -0
- package/dist/icons/generated/InfoIcon.js +35 -0
- package/dist/icons/generated/InfoIcon.js.map +1 -0
- package/dist/icons/generated/SendIcon.cjs +2 -0
- package/dist/icons/generated/SendIcon.cjs.map +1 -0
- package/dist/icons/generated/SendIcon.js +23 -0
- package/dist/icons/generated/SendIcon.js.map +1 -0
- package/dist/icons/generated/index.cjs +1 -1
- package/dist/icons/generated/index.cjs.map +1 -1
- package/dist/icons/generated/index.js +71 -67
- package/dist/icons/generated/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +618 -32
- package/dist/index.d.ts +618 -32
- package/dist/index.js +146 -135
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +0 -6
- package/dist/tokens/generated.cjs +1 -1
- package/dist/tokens/generated.cjs.map +1 -1
- package/dist/tokens/generated.js +1 -7
- package/dist/tokens/generated.js.map +1 -1
- package/dist/tokens.css +0 -12
- package/dist/tokens.d.cts +2 -26
- package/dist/tokens.d.ts +2 -26
- package/dist/tokens.json +1 -7
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -49,6 +49,8 @@ export declare const FlagRussiaIcon: import("react").ForwardRefExoticComponent<I
|
|
|
49
49
|
export declare const FlagUaeIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
50
50
|
/** Figma: Icons / name=fork-knife */
|
|
51
51
|
export declare const ForkKnifeIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
52
|
+
/** Figma: Icons / name=info */
|
|
53
|
+
export declare const InfoIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
52
54
|
/** Figma: Icons / name=language */
|
|
53
55
|
export declare const LanguageIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
54
56
|
/** Figma: Icons / name=lock */
|
|
@@ -93,6 +95,8 @@ export declare const RoadmapIcon: import("react").ForwardRefExoticComponent<Icon
|
|
|
93
95
|
export declare const SaveTimeIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
94
96
|
/** Figma: Icons / name=search */
|
|
95
97
|
export declare const SearchIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
98
|
+
/** Figma: Icons / name=send */
|
|
99
|
+
export declare const SendIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
96
100
|
/** Figma: Icons / name=shield */
|
|
97
101
|
export declare const ShieldIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
98
102
|
/** Figma: Icons / name=star */
|
|
@@ -139,6 +143,7 @@ export declare const icons: {
|
|
|
139
143
|
readonly "flag-russia": import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
140
144
|
readonly "flag-uae": import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
141
145
|
readonly "fork-knife": import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
146
|
+
readonly info: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
142
147
|
readonly language: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
143
148
|
readonly lock: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
144
149
|
readonly "map-pin": import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -161,6 +166,7 @@ export declare const icons: {
|
|
|
161
166
|
readonly roadmap: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
162
167
|
readonly "save-time": import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
163
168
|
readonly search: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
169
|
+
readonly send: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
164
170
|
readonly shield: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
165
171
|
readonly star: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
166
172
|
readonly stops: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -269,6 +275,318 @@ export interface AgencyLogoProps extends Omit<HTMLAttributes<HTMLSpanElement>, "
|
|
|
269
275
|
/** First letters of the first two words: "Armenia Travel" → "AT", "MyTrip" → "M". */
|
|
270
276
|
export declare function getAgencyInitials(name: string): string;
|
|
271
277
|
export declare const AgencyLogo: import("react").ForwardRefExoticComponent<AgencyLogoProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
278
|
+
declare const ARMENIA_MAP: {
|
|
279
|
+
readonly width: 520;
|
|
280
|
+
readonly height: 519;
|
|
281
|
+
/** Figma: 1.5px inside stroke on every region */
|
|
282
|
+
readonly strokeWidth: 1.5;
|
|
283
|
+
readonly regions: readonly [
|
|
284
|
+
readonly [
|
|
285
|
+
"Gegharkunik",
|
|
286
|
+
"M342.5 142.9L337 147.1L331.4 145.5L330.1 141.2L331.4 136.8L335.6 134.7L340.4 134.9L344.6 137.3L342.5 142.9ZM271.3 304.9L269.9 301.6L269.3 295.6L267 287.5L266.9 281.2L263.6 278.8L255.7 259.2L255.5 254.4L257.3 247.4L258.1 241.2L255.7 237.5L244.5 224.4L244.2 219.2L246.6 216.1L246.3 213.6L238.7 185.2L236.8 182.3L231.9 179L231.1 177.2L232.3 171.5L231.4 167.7L227.6 162.6L221.9 162.4L220.4 159.7L218.7 148.3L219 144.5L220.6 141.2L220.1 137L239.4 132.9L244.3 135L247.4 137.8L252.7 139.7L259.6 138.4L263.8 136.2L266.9 129.3L269.2 126.7L275.5 124L281.6 119.5L292.6 120.7L295.1 122.1L298.9 126.7L305.6 129.7L311 135.5L314.2 136.7V140.7L316.5 145.6L323 151.3L325.8 154.8L326.9 161.7L329.2 165.6L332.6 167.8L339.3 181.5L349 190.6L387.3 211.8L394.5 219.6L397.8 219.7L404.8 218.4L409.6 221.9L413.9 227.5L414.2 231.2L411.4 245L409.4 250.3L406.4 254.5L402.8 257.7L400.3 269.2L397 273.4L385.5 274.6L358.5 270.4L348.1 277.2L348.3 279.3L344.4 276.3L343.1 276.2L337.5 282.6L331.7 285.6L329 286.6L317.8 288.5H313.6L308.5 289.5L296.4 288.9L289.8 291.2L285.7 293.8L279.1 299.8L271.3 304.9Z"
|
|
287
|
+
],
|
|
288
|
+
readonly [
|
|
289
|
+
"Armavir",
|
|
290
|
+
"M151.4 273.7L142.3 268.3L136.3 266.4H130.7L120.8 269L111 270.7L105.9 267.8L102.4 268.6L96.7 272.6L94 273.5L74.3 269.9L56.4 259.7L41.4 255.2L33.9 250.9L31.9 244.8L34.2 242.7L41.7 241.2L43.3 238.4L42.3 236L37.3 229.6L35.6 225.8L38.4 223.1L42.8 220.7L46.6 217.3L49.3 217L53.4 218.8L57.1 214.4L59.1 214L61.8 218L64.2 219.2L70.3 221L76.7 225.9L84.5 229.1L89.5 234.3L92 235.5L111.5 235.8L115 234.5L116.9 232.5L115.7 225.8L117.9 223.6L120.7 224.3L122.7 226.7L124.9 227.5L129.2 225L132.5 224.2L135.5 224.7L137.3 226.9L141.6 229.1L144.6 231.5L148.2 233.2L157.8 235.4L159.3 237.5L159.8 241.3L161.4 243.1L161 244.9L155 247.5L152.3 249.7L146.6 258L149.5 263.7L150.9 267.8L151.4 273.7Z"
|
|
291
|
+
],
|
|
292
|
+
readonly [
|
|
293
|
+
"Shirak",
|
|
294
|
+
"M28.2 186.4L28.4 184.5L21.9 178.8L18.5 174.8L17.8 172L23.5 165.4L27.1 163L31 162.6L29.8 159.5L33.2 161.2L33.1 156L35.4 151.7L42.4 143.7L41.2 138.8L45.7 131.5L46.2 129.8L45.6 114.9L43.6 107.4L37 96.5L35.4 92.2L33.7 78.9L31.9 74.7L26.9 68.2L20.6 62.8L13.7 59.2L6.8 58.1L3.7 55.1L1.2 48.9L0 42.1L0.8 37.1L5.6 37.3L14.4 33.8L21.2 33.7L47.6 37.8L51.6 37.6L54.7 36.3L62.4 29.7L69.3 26.9L84.4 26.8L87.9 26L85.8 42.2L87.8 45.7L92.6 47.9L97.3 54.7L103.6 60.6V63.1L100.4 67.1L103.6 70L110.9 70.4L111.7 71.5L110.4 78.4L107.3 82.4L106.8 86.1L103.9 88.2L97.3 86.6L96 89.1L94.6 94.9L93.2 97.7L93.6 100.5L96.6 107.4L98.7 109.5L104.4 110.3L106.6 112.7L108.2 116.3L110.7 117.3L117.5 117L112 127.6L109.2 131.3L103.6 136.6L103.2 138.3L107.2 141.8L109.3 145.1L110.8 150.4L114.4 150.9L119.6 150.1L121.4 150.7L121.3 152.7L119.1 161.1L119.3 163.7L122.5 166.1L119.6 168.7L115.2 171.5L111 172.4L108.5 174.5L104.1 176.1L97.6 179.5L94.8 177.6L90.6 171.1L83.8 170.7L80.3 174.3L73.6 174.4L69.1 173.3L65.8 170.7L61 169.6L58.4 168L56.1 168.3L51 171.3L45 173.1L41.7 175.1L39.4 180.3L34.8 183.2L31.1 186.9L28.2 186.4Z"
|
|
295
|
+
],
|
|
296
|
+
readonly [
|
|
297
|
+
"Ararat",
|
|
298
|
+
"M265.7 329.7L264.4 328.2L258.8 325.3L252.6 327.4L246.5 332.1L241.2 335.1L235.6 336.4L228.4 336.3L220.7 337.7L216 339.7L213.4 335.4L203.4 322.1L200.8 319.5L198.1 319.7L195.1 317.8L189.2 310.8L187 312.2L185.8 306.4L181.9 303.2L180.6 298.1L178.7 294.9L174.5 290.2L165.1 281.9L151.4 273.7L150.9 267.8L149.5 263.7L146.6 258L152.3 249.7L155 247.5L161 244.9L161.4 243.1L163.3 242.6L165.2 243.9L165.1 250.5L166.3 253.9L167.6 255.3L173.4 256.6L176.2 258.4L177.6 261.9L180.1 264.3L183.7 263.9L188.1 260.9L195.3 251.3L196.9 252.1L198.5 255.9L202.7 258.3L210.9 256.8L217.6 254.7L230 247.7L234.6 245.8L240.6 244.1L247 241.5L252 240.9L258.1 241.2L257.3 247.4L255.5 254.4L255.7 259.2L263.6 278.8L266.9 281.2L267 287.5L269.3 295.6L269.9 301.6L271.3 304.9L267.4 313.7L266.1 317.9V325L265.7 329.7Z"
|
|
299
|
+
],
|
|
300
|
+
readonly [
|
|
301
|
+
"Tavush",
|
|
302
|
+
"M229.6 14.3L228.5 12.7L222.5 9.8L221.1 6.8L224.3 3.6L239.9 6.1L246 5.9L253.6 0L259.6 12.7L258 17.2L258.9 19.8L261.6 21H272.2L275 22L283.4 28.6L285.5 31.6L285.8 35L280.2 39.1L264.2 38.4L262.5 45.3L264.6 48.9L268.1 51.2L271.2 51.6L272.7 45.1L275.4 46.5L280.7 52L284 54.1L289.2 59L296.8 59.9L303.9 62.8L307.6 63.4L316.7 58.8L321.2 58.3L322.2 63.4L320.8 70.3L322.8 72.5L326.7 73.5L331 77L338 85.8L340.6 88.5L347.8 89.8L350.6 91.2L350.9 95.9L347.9 104.8L343.7 109.7L324.6 119L318.2 124.3L314.1 131.6L314.2 136.7L311 135.5L305.6 129.7L298.9 126.7L295.1 122.1L292.6 120.7L281.6 119.5L275.5 124L269.2 126.7L266.9 129.3L263.8 136.2L259.6 138.4L252.7 139.7L247.4 137.8L244.3 135L239.4 132.9L220.1 137L216.1 133.8L216.3 121.3L212.9 110.8L215.2 107.4L218.3 105.9L223.9 104.4L226 103L227.8 100.1L231.2 89L232.7 86.4L237.9 81.6L237.4 78.8L233.6 74.5L230.7 72.9L224.4 72.2L218.3 67.4L216.2 64.7L216.3 62.2L221.6 56.1L224.8 55.2L228 57.2L232.4 56.8L242.9 48.7L243 45.6L241.1 42.7L236.4 40.2L234.5 36.9L233.8 32.4L234.5 27.9L240.5 23.5L240.6 20.2L239 18.4L233.5 14.7L229.6 14.3ZM289 66.6L284.3 62.6L282 63.5L283.5 68.4L287.3 69L289 66.6ZM258.1 52.2L256.3 46.2L249.9 44.6L247.4 46.4L246.9 49.4L247.9 52.6L249.9 55.2L255.8 57.2L258.1 52.2Z"
|
|
303
|
+
],
|
|
304
|
+
readonly [
|
|
305
|
+
"Kotayk",
|
|
306
|
+
"M216.1 133.8L220.1 137L220.6 141.2L219 144.5L218.7 148.3L220.4 159.7L221.9 162.4L227.6 162.6L231.4 167.7L232.3 171.5L231.1 177.2L231.9 179L236.8 182.3L238.7 185.2L246.3 213.6L246.6 216.1L244.2 219.2L244.5 224.4L255.7 237.5L258.1 241.2L252 240.9L247 241.5L240.6 244.1L234.6 245.8L230 247.7L217.6 254.7L210.9 256.8L202.7 258.3L198.5 255.9L196.9 252.1L195.3 251.3L194.1 248.1L191.9 247L186 247.2L184.4 245.1L185.7 240.9L190.6 234.3L185.9 228.3L183 227L175.5 230L169.1 230.6L166.6 230L163.7 231.2L161.2 230.9L159.1 232.9L157 227.9L156.8 224L160.2 221.1L160.6 218.3L157.6 215.8L156.4 213.7L156.9 211.3L162.1 208.3L168.2 197.5L172.2 194.6L172.5 191.7L171 186.9L179 164.1L180.2 158.5L180.3 155.2L178.1 154.1L170.5 152.4L160.1 144.6L158.8 142.2L159.6 137.3L158.5 130L172.1 126.5L176.1 126.2L180.3 128.8L184.9 127.1L187.1 127.3L195.3 131.7L201.9 133.8L209.7 134.5L216.1 133.8Z"
|
|
307
|
+
],
|
|
308
|
+
readonly [
|
|
309
|
+
"Lori",
|
|
310
|
+
"M216.1 133.8L209.7 134.5L201.9 133.8L195.3 131.7L187.1 127.3L184.9 127.1L180.3 128.8L176.1 126.2L172.1 126.5L158.5 130L157.7 126.7L155.4 123.9L151.4 121.3L142.8 117.8L137.3 117.1L131.9 121.8L129.1 122.4L126.1 121.5L121.4 116.8L117.5 117L110.7 117.3L108.2 116.3L106.6 112.7L104.4 110.3L98.7 109.5L96.6 107.4L93.6 100.5L93.2 97.6998L94.6 94.8998L96 89.0998L97.3 86.5998L103.9 88.1998L106.8 86.0998L107.3 82.3998L110.4 78.3998L111.7 71.4998L110.9 70.3998L103.6 69.9998L100.4 67.0998L103.6 63.0998V60.5998L97.3 54.6998L92.6 47.8998L87.8 45.6998L85.8 42.1998L87.9 25.9998L91.7 25.0998L98.2 22.1998L101.5 21.9998L108.3 23.8998L111.7 23.2998L114.9 21.6998L117.5 19.1998L118.9 13.6998L122.5 12.2998L126.9 14.1998L134.7 19.6998L137.6 20.7998L141.4 20.1998L145.5 16.6998L149.3 16.3998L158 21.6998L161.5 22.9998L165.1 23.1998L169 22.0998L173.4 17.6998H175.1L177.4 23.0998L180.7 24.0998L183.1 21.9998L187.2 15.7998L190.7 14.2998L194 14.6998L200.7 17.3998L224.4 17.9998L228.7 17.3998L229.6 14.2998L233.5 14.6998L239 18.3998L240.6 20.1998L240.5 23.4998L234.5 27.8998L233.8 32.3998L234.5 36.8998L236.4 40.1998L241.1 42.6998L243 45.5998L242.9 48.6998L232.4 56.7998L228 57.1998L224.8 55.1998L221.6 56.0998L216.3 62.1998L216.2 64.6998L218.3 67.3998L224.4 72.1998L230.7 72.8998L233.6 74.4998L237.4 78.7998L237.9 81.5998L232.7 86.3998L231.2 88.9998L227.8 100.1L226 103L223.9 104.4L218.3 105.9L215.2 107.4L212.9 110.8L216.3 121.3L216.1 133.8Z"
|
|
311
|
+
],
|
|
312
|
+
readonly [
|
|
313
|
+
"Yerevan",
|
|
314
|
+
"M195.3 251.3L188.1 260.9L183.7 263.9L180.1 264.3L177.6 261.9L176.2 258.4L173.4 256.6L167.6 255.3L166.3 253.9L165.1 250.5L165.2 243.9L163.3 242.6L161.4 243.1L159.8 241.3L159.3 237.5L157.8 235.4L159.1 232.9L161.2 230.9L163.7 231.2L166.6 230L169.1 230.6L175.5 230L183 227L185.9 228.3L190.6 234.3L185.7 240.9L184.4 245.1L186 247.2L191.9 247L194.1 248.1L195.3 251.3Z"
|
|
315
|
+
],
|
|
316
|
+
readonly [
|
|
317
|
+
"Syunik",
|
|
318
|
+
"M386.7 307.4L388 310L395.5 317.3L404.5 321.8L414.9 324.8L419.5 329.2L426 342L431.3 346.1L437.6 347.8L440.4 349.4L442.8 352.4L446.8 359.6L449.3 361.9L453 363L458.7 361.7L470 355.8L475.6 356.1L478 358L482 363.2L484.5 365L487.7 365.5L498.2 364.3L503.7 366.6L505.7 369.4L506.3 372.9L504.9 375.6L500.5 379V382.5L501.7 386.7L498.6 389.3L486.5 391.8L481.2 395.2L479.1 400.7L481.5 407.4L487 411.5L499.1 416.6L501.7 418.8L503.9 425.2L505.6 428.4L509.7 432.5L516.9 437.4L520 441.7L515.1 442.6L507.4 448.3L505.4 448.6L495.2 443.6L489.3 443L485.5 446.6L485.8 453.2L490.1 457.4L495.7 460.4L499.8 463.6L502 470.6L503.1 476.6L502.7 482.7L499.7 493.4V498.6L500.4 501.1L506.4 513.3L503.4 512.5L485.9 505L483.6 504.5L477.8 506.1L471.3 506.5L465.9 508.7L457.3 515.1L454.4 516.5L443.3 518.1L433.3 499.7L424.3 475.6L420.8 468.8L412.9 456.9L411.3 451.3L412.3 445.9L417.3 439.1L416.1 434.2L412.7 431L400.8 425.3L396.7 422.3L390.1 416.1L380.7 413.8L379.2 410.6L380.2 406.3L385.8 397.1L386.5 393.7L384.9 383.9L385.3 374.8L383.8 372.1L380 369.5L375.5 367.7L370.7 368.1L369.3 363.5L373.6 346.2L374.2 338.4L370.9 332.6L372.7 327L381.3 312.1L383.8 309.1L386.7 307.4Z"
|
|
319
|
+
],
|
|
320
|
+
readonly [
|
|
321
|
+
"Vayots Dzor",
|
|
322
|
+
"M370.7 368.1L350.4 373.2L346 375L332.7 383.6L329.1 385.3L325.3 385.4L323.6 384.4L318.3 379L315.4 377.5L307.5 376.8L305.1 375.8L301.5 369L296.3 361.8L291.9 363.3L287.2 367.6L281 369.1L277.8 367.1L277.2 364L278.8 356.2L279 351.2L278.3 347.3L276.6 343.7L265.7 329.7L266.1 325V317.9L267.4 313.7L271.3 304.9L279.1 299.8L285.7 293.8L289.8 291.2L296.4 288.9L308.5 289.5L313.6 288.5H317.8L329 286.6L331.7 285.6L337.5 282.6L343.1 276.2L344.4 276.3L348.3 279.3L348.7 282.2L353.9 284.6L371.1 286.2L375.6 288.4L379.2 292.3L386.7 307.4L383.8 309.1L381.3 312.1L372.7 327L370.9 332.6L374.2 338.4L373.6 346.2L369.3 363.5L370.7 368.1Z"
|
|
323
|
+
],
|
|
324
|
+
readonly [
|
|
325
|
+
"Aragatsotn",
|
|
326
|
+
"M157.8 235.4L148.2 233.2L144.6 231.5L141.6 229.1L137.3 226.9L135.5 224.7L132.5 224.2L129.2 225L124.9 227.5L122.7 226.7L120.7 224.3L117.9 223.6L115.7 225.8L116.9 232.5L115 234.5L111.5 235.8L92 235.5L89.5 234.3L84.5 229.1L76.7 225.9L70.3 221L64.2 219.2L61.8 218L59.1 214L57.1 214.4L53.4 218.8L49.3 217L46.6 217.3L42.8 220.7L38.4 223.1L36.2 217.6L29 208L24.7 203.8L23.1 200.4L25.6 194.6L28.2 186.4L31.1 186.9L34.8 183.2L39.4 180.3L41.7 175.1L45 173.1L51 171.3L56.1 168.3L58.4 168L61 169.6L65.8 170.7L69.1 173.3L73.6 174.4L80.3 174.3L83.8 170.7L90.6 171.1L94.8 177.6L97.6 179.5L104.1 176.1L108.5 174.5L111 172.4L115.2 171.5L119.6 168.7L122.5 166.1L119.3 163.7L119.1 161.1L121.3 152.7L121.4 150.7L119.6 150.1L114.4 150.9L110.8 150.4L109.3 145.1L107.2 141.8L103.2 138.3L103.6 136.6L109.2 131.3L112 127.6L117.5 117L121.4 116.8L126.1 121.5L129.1 122.4L131.9 121.8L137.3 117.1L142.8 117.8L151.4 121.3L155.4 123.9L157.7 126.7L158.5 130L159.6 137.3L158.8 142.2L160.1 144.6L170.5 152.4L178.1 154.1L180.3 155.2L180.2 158.5L179 164.1L171 186.9L172.5 191.7L172.2 194.6L168.2 197.5L162.1 208.3L156.9 211.3L156.4 213.7L157.6 215.8L160.6 218.3L160.2 221.1L156.8 224L157 227.9L159.1 232.9L157.8 235.4Z"
|
|
327
|
+
]
|
|
328
|
+
];
|
|
329
|
+
};
|
|
330
|
+
declare const WORLD_MAP: {
|
|
331
|
+
readonly width: 392;
|
|
332
|
+
readonly height: 255;
|
|
333
|
+
/** Figma: 1px inside stroke on every country */
|
|
334
|
+
readonly strokeWidth: 1;
|
|
335
|
+
readonly regions: readonly [
|
|
336
|
+
readonly [
|
|
337
|
+
"France",
|
|
338
|
+
"M108 133V134H107L100 139L87 135L83 144L79 145L76 144H74V143H73L64 142L54 137L56 135L58 115L48 103L37 98V93L46 91L56 92L53 83L63 87L73 78L79 70L89 81L98 85H99H101L112 90L109 102L100 110L101 113V112H102H104V114L105 116L103 123L108 133Z"
|
|
339
|
+
],
|
|
340
|
+
readonly [
|
|
341
|
+
"Portugal",
|
|
342
|
+
"M21 184L12 185L13 177L9 173L14 157L13 148H26L24 155V171L21 184Z"
|
|
343
|
+
],
|
|
344
|
+
readonly [
|
|
345
|
+
"United Kingdom",
|
|
346
|
+
"M23 4V-2L28 -4L27 0L23 4ZM22 32L28 29L32 36L28 41L17 38L22 32ZM47 -4L41 1L54 6L46 21L55 26L57 36L64 41L66 51L74 55L68 67L72 70L66 73L53 75V88L50 75L33 79L40 69H46L33 63L40 59V50L46 48L48 41L44 33L39 38L34 34L37 27L29 8L35 -4H47Z"
|
|
347
|
+
],
|
|
348
|
+
readonly [
|
|
349
|
+
"Greece",
|
|
350
|
+
"M218 199L209 201L202 198L206 196L218 199ZM226 191L229 190L228 192L227 194L226 191ZM212 186L214 184V186L213 188L212 186ZM213 163H212L213 160H214L213 163ZM187 158V157H188L192 155L198 153L212 154L218 150L220 153L217 158L211 156L197 160L196 163L213 183L204 176L197 182L200 190L192 188L189 177L181 166L184 165L187 158ZM219 169L220 171H219L215 169H218H219Z"
|
|
351
|
+
],
|
|
352
|
+
readonly [
|
|
353
|
+
"Denmark",
|
|
354
|
+
"M138 25L134 35L129 26L136 21L138 25ZM120 34L116 33H115L112 16L122 10L124 12L128 30L120 28V34Z"
|
|
355
|
+
],
|
|
356
|
+
readonly [
|
|
357
|
+
"Netherlands",
|
|
358
|
+
"M106 50L105 60L99 73L94 67L89 68L87 65L94 53L102 47L106 50Z"
|
|
359
|
+
],
|
|
360
|
+
readonly [
|
|
361
|
+
"Turkey",
|
|
362
|
+
"M228 148L235 154L217 158L220 153L218 150L222 147L228 148ZM326 166L322 168L326 185L314 183L312 185L297 188L278 187L274 194L275 186L266 187L256 193L244 187L238 192L223 183L221 181V180L218 176L222 172L219 169H218L217 167L221 160H235V154L247 155L259 148L274 150L284 155L299 156L307 152L314 151L318 155L320 162L326 166Z"
|
|
363
|
+
],
|
|
364
|
+
readonly [
|
|
365
|
+
"Sweden",
|
|
366
|
+
"M131 -4H206H162L160 2L161 20L150 21L147 28H140L137 12L132 1L130 -3L131 -4Z"
|
|
367
|
+
],
|
|
368
|
+
readonly [
|
|
369
|
+
"Estonia",
|
|
370
|
+
"M226 -4H222L226 1L225 3L224 6L212 0L206 2L202 -4H229H226Z"
|
|
371
|
+
],
|
|
372
|
+
readonly [
|
|
373
|
+
"Italy",
|
|
374
|
+
"M137 179L156 176L153 180V188L137 179ZM120 154L122 159L120 170L114 171L112 157L120 154ZM108 133L103 123L105 116L123 112L125 108L136 106L145 111L143 113L145 119L135 121L137 130L144 136L147 143L158 152L170 158L164 159L165 168L158 179L156 163L145 154H141L130 144L123 132L116 128L108 133Z"
|
|
375
|
+
],
|
|
376
|
+
readonly [
|
|
377
|
+
"Cyprus",
|
|
378
|
+
"M261 200V201L257 203L256 202V203L253 200L255 199H256H260L261 200Z"
|
|
379
|
+
],
|
|
380
|
+
readonly [
|
|
381
|
+
"Russia",
|
|
382
|
+
"M180 38L184 35L179 38L181 33L187 29L184 33L189 30L198 33L197 39L180 38ZM396 146V71L390 76L376 66L360 65L349 75L347 82L342 76L336 95L345 100L352 112L343 118L338 127L342 140L348 149L343 154L336 149L326 142L298 137L278 122L284 121L288 106L291 99L297 100L299 87L283 77H273L269 69H264L262 58L250 61L247 52L256 48L250 44L245 26L229 21L226 13L224 6L225 3L226 1L227 -4H396V146Z"
|
|
383
|
+
],
|
|
384
|
+
readonly [
|
|
385
|
+
"Kazakhstan",
|
|
386
|
+
"M396 119L391 124V153L381 145L371 150L372 142L368 141L358 127L371 120L375 108L364 106L352 112L345 100L336 95L342 76L347 82L349 75L360 65L376 66L390 76L395 71H396V119Z"
|
|
387
|
+
],
|
|
388
|
+
readonly [
|
|
389
|
+
"Azerbaijan",
|
|
390
|
+
"M326 166L332 167L334 172L330 171L326 166ZM336 172L331 163L327 153L336 155V149L343 154L348 149L354 159L350 175L345 172V166L336 172Z"
|
|
391
|
+
],
|
|
392
|
+
readonly [
|
|
393
|
+
"Armenia",
|
|
394
|
+
"M336 172L335 171L334 172L332 167L326 166L320 162L318 155L323 154L327 153L331 163L336 172Z"
|
|
395
|
+
],
|
|
396
|
+
readonly [
|
|
397
|
+
"Uzbekistan",
|
|
398
|
+
"M396 119V154L391 153V124L396 119Z"
|
|
399
|
+
],
|
|
400
|
+
readonly [
|
|
401
|
+
"Spain",
|
|
402
|
+
"M33 192L26 186L21 184L24 171V155L26 148H13L10 139L22 135L54 137L64 142L73 143V144H74H76L79 145L83 144V148L70 155L62 167L66 173L60 181L52 187L38 188L33 192Z"
|
|
403
|
+
],
|
|
404
|
+
readonly [
|
|
405
|
+
"Morocco",
|
|
406
|
+
"M47 198L48 199L51 200L54 202L57 221L43 224V230L31 237L20 239L14 244V250L13 254L-2 256L-4 259V249L3 242L8 232L7 225L15 212L25 207L30 194H33L39 199L47 198Z"
|
|
407
|
+
],
|
|
408
|
+
readonly [
|
|
409
|
+
"Saudi Arabia",
|
|
410
|
+
"M347 245L350 251L357 257L361 259H293L270 248L266 247L269 239L275 240L286 231L280 225L293 220L310 227L325 240L336 241L342 242L347 245Z"
|
|
411
|
+
],
|
|
412
|
+
readonly [
|
|
413
|
+
"Iran",
|
|
414
|
+
"M326 185L322 168L326 166L330 171L334 172L335 171L336 172L345 166V172L350 175L351 180L368 189L380 187L379 183L388 178L396 176V259L394 253L385 258L365 249L357 234L348 235L343 228L341 218L330 207L335 194L329 193L326 185Z"
|
|
415
|
+
],
|
|
416
|
+
readonly [
|
|
417
|
+
"Croatia",
|
|
418
|
+
"M144 120H154L161 111L166 116H175L176 122L175 125L163 121L157 122L159 130L167 140L151 130V123L146 125L144 120Z"
|
|
419
|
+
],
|
|
420
|
+
readonly [
|
|
421
|
+
"Libya",
|
|
422
|
+
"M210 259H119L122 258V241L120 233L123 225L132 218V213L153 218L158 226L166 227L176 233L180 231L181 223L191 215L211 223L209 234L210 240V259Z"
|
|
423
|
+
],
|
|
424
|
+
readonly [
|
|
425
|
+
"Kuwait",
|
|
426
|
+
"M345 235V239L347 245L342 242L336 241L340 235H345Z"
|
|
427
|
+
],
|
|
428
|
+
readonly [
|
|
429
|
+
"Germany",
|
|
430
|
+
"M115 33H116L120 34L131 43L144 37L146 42L147 43H146L148 45L150 56L151 73L137 77V83L145 92L135 101L121 102L117 100L118 101L114 102H109L112 90L101 85L102 82L100 79L102 78L99 73L105 60L106 50L107 45L117 43L115 33Z"
|
|
431
|
+
],
|
|
432
|
+
readonly [
|
|
433
|
+
"Switzerland",
|
|
434
|
+
"M109 102H114L118 101L120 103H121L120 106L123 108H125L123 112L105 116L104 114V112L101 113L100 110L109 102Z"
|
|
435
|
+
],
|
|
436
|
+
readonly [
|
|
437
|
+
"Ireland",
|
|
438
|
+
"M22 32L17 38L28 41L29 53L27 60L7 67L4 63L12 50L6 49L7 39L14 40L16 31L22 32Z"
|
|
439
|
+
],
|
|
440
|
+
readonly [
|
|
441
|
+
"Latvia",
|
|
442
|
+
"M224 6L226 13L229 21L226 24L220 26L210 17L194 18L187 21L191 5L197 3L203 12L206 2L212 0L224 6Z"
|
|
443
|
+
],
|
|
444
|
+
readonly [
|
|
445
|
+
"Turkmenistan",
|
|
446
|
+
"M396 154V176L388 178L379 183L377 164L373 163L374 156L378 159L384 155L379 147L371 150L381 145L391 153L396 154Z"
|
|
447
|
+
],
|
|
448
|
+
readonly [
|
|
449
|
+
"Northern Cyprus",
|
|
450
|
+
"M262 200H261L260 199H256L267 195L263 200H262Z"
|
|
451
|
+
],
|
|
452
|
+
readonly [
|
|
453
|
+
"Algeria",
|
|
454
|
+
"M36 259L14 253V250V244L20 239L31 237L43 230V224L57 221L54 202L51 200L70 190L107 185L115 186L112 203L108 208L117 221L120 233L122 241V258L119 259H36Z"
|
|
455
|
+
],
|
|
456
|
+
readonly [
|
|
457
|
+
"Lithuania",
|
|
458
|
+
"M189 30L188 25L187 21L194 18L210 17L220 26L213 39L202 43L201 41L197 39L198 33L189 30Z"
|
|
459
|
+
],
|
|
460
|
+
readonly [
|
|
461
|
+
"Slovenia",
|
|
462
|
+
"M144 120L143 113L145 111L149 112L158 108H159L161 111L154 120H144Z"
|
|
463
|
+
],
|
|
464
|
+
readonly [
|
|
465
|
+
"Bosnia and Herzegovina",
|
|
466
|
+
"M168 141L159 130L157 122L163 121L175 125L178 124L177 136L172 140V144L168 141Z"
|
|
467
|
+
],
|
|
468
|
+
readonly [
|
|
469
|
+
"Jordan",
|
|
470
|
+
"M271 227L272 223V217L273 216L279 219L291 212L293 218V220L280 225L286 231L275 240L269 239L270 232L271 227Z"
|
|
471
|
+
],
|
|
472
|
+
readonly [
|
|
473
|
+
"Syria",
|
|
474
|
+
"M291 212L279 219L273 216L274 211L278 206L274 203V194L278 187L297 188L312 185L306 189L305 202L291 212Z"
|
|
475
|
+
],
|
|
476
|
+
readonly [
|
|
477
|
+
"Albania",
|
|
478
|
+
"M178 147L180 143L182 144L184 146V151L185 156L187 157V158L184 165L181 166L177 158L178 149V147Z"
|
|
479
|
+
],
|
|
480
|
+
readonly [
|
|
481
|
+
"Republic of Serbia",
|
|
482
|
+
"M177 136L178 124L175 125L176 122L175 116L179 114H183L190 122L197 130L198 139L195 145L190 146L186 138L183 141L179 138L177 136Z"
|
|
483
|
+
],
|
|
484
|
+
readonly [
|
|
485
|
+
"Montenegro",
|
|
486
|
+
"M177 136L179 138L183 141L181 142L182 144L180 143L178 146H176L178 149L174 146L172 144V140L177 136Z"
|
|
487
|
+
],
|
|
488
|
+
readonly [
|
|
489
|
+
"Ukraine",
|
|
490
|
+
"M194 95L196 89L205 75L202 66L215 63L236 68L250 61L262 58L264 69H269L273 77H283L299 87L297 100L291 99L288 106L268 114L272 123L263 129L256 118L262 116L250 113L247 110L238 122H233L229 120L234 112H240L235 99L227 94L220 96L212 99H198L194 95Z"
|
|
491
|
+
],
|
|
492
|
+
readonly [
|
|
493
|
+
"Slovakia",
|
|
494
|
+
"M196 89L194 95L184 94L169 100L165 98L163 93L170 89L174 85L192 86L196 89Z"
|
|
495
|
+
],
|
|
496
|
+
readonly [
|
|
497
|
+
"Bulgaria",
|
|
498
|
+
"M231 134L226 144L228 148L222 147L218 150L212 154L198 153L199 150L195 145L198 139L197 130L213 135L222 130L231 134Z"
|
|
499
|
+
],
|
|
500
|
+
readonly [
|
|
501
|
+
"Romania",
|
|
502
|
+
"M231 134L222 130L213 135L197 130L190 122L183 114L188 113L193 103L198 99H212L220 96L229 110V120L233 122H238L232 129L231 134Z"
|
|
503
|
+
],
|
|
504
|
+
readonly [
|
|
505
|
+
"Austria",
|
|
506
|
+
"M120 106L121 102L135 101L145 92L152 90L163 93L165 98L161 100L158 108L149 112L145 111L136 106L125 108L120 106Z"
|
|
507
|
+
],
|
|
508
|
+
readonly [
|
|
509
|
+
"Hungary",
|
|
510
|
+
"M194 95L198 99L193 103L188 113L183 114L175 116H166L161 111L158 108L161 100L165 98L169 100L184 94L194 95Z"
|
|
511
|
+
],
|
|
512
|
+
readonly [
|
|
513
|
+
"Belgium",
|
|
514
|
+
"M100 79L98 85L89 81L79 70L83 68H89L94 67L99 73L102 78L100 79Z"
|
|
515
|
+
],
|
|
516
|
+
readonly [
|
|
517
|
+
"Iraq",
|
|
518
|
+
"M348 235H340L336 241L325 240L310 227L293 220L291 212L305 202L306 189L312 185L314 183L326 185L329 193L335 194L330 207L341 218L343 228L348 235Z"
|
|
519
|
+
],
|
|
520
|
+
readonly [
|
|
521
|
+
"Georgia",
|
|
522
|
+
"M327 153L318 155L314 151L307 152V143L298 137L326 142L336 149V155L327 153Z"
|
|
523
|
+
],
|
|
524
|
+
readonly [
|
|
525
|
+
"Kosovo",
|
|
526
|
+
"M184 149L182 144L181 142L183 141L186 138L190 146L184 149Z"
|
|
527
|
+
],
|
|
528
|
+
readonly [
|
|
529
|
+
"Lebanon",
|
|
530
|
+
"M270 214L272 208L274 203L278 206L274 211L272 214H270Z"
|
|
531
|
+
],
|
|
532
|
+
readonly [
|
|
533
|
+
"Israel",
|
|
534
|
+
"M264 226L268 219L270 214H272L274 211V215L272 217V223L271 227L269 238L264 226Z"
|
|
535
|
+
],
|
|
536
|
+
readonly [
|
|
537
|
+
"Poland",
|
|
538
|
+
"M179 38L197 39L201 41L202 43L204 55L200 59L202 66L205 75L196 89L192 86L174 85L173 81L151 73L150 56L148 45L147 43L171 34L179 38Z"
|
|
539
|
+
],
|
|
540
|
+
readonly [
|
|
541
|
+
"North Macedonia",
|
|
542
|
+
"M195 145L199 150L198 153L192 155L188 157L185 155L184 151V149L190 146L195 145Z"
|
|
543
|
+
],
|
|
544
|
+
readonly [
|
|
545
|
+
"Belarus",
|
|
546
|
+
"M202 66L200 59L204 55L202 43L213 39L220 26L226 24L229 21L245 26L250 44L256 48L247 52L250 61L236 68L215 63L202 66Z"
|
|
547
|
+
],
|
|
548
|
+
readonly [
|
|
549
|
+
"Czech Republic",
|
|
550
|
+
"M174 85L170 89L163 93L152 90L145 92L137 83V77L151 73L173 81L174 85Z"
|
|
551
|
+
],
|
|
552
|
+
readonly [
|
|
553
|
+
"Tunisia",
|
|
554
|
+
"M132 213V218L123 225L120 233L117 221L108 208L112 203L115 186L121 183L130 199L124 205L132 213Z"
|
|
555
|
+
],
|
|
556
|
+
readonly [
|
|
557
|
+
"Moldova",
|
|
558
|
+
"M229 120V110L220 96L227 94L235 99L240 112H234L229 120Z"
|
|
559
|
+
],
|
|
560
|
+
readonly [
|
|
561
|
+
"Egypt",
|
|
562
|
+
"M268 238L264 250L255 242L272 259H210V240L209 234L211 223L234 229L242 225L252 228L264 226L268 237V238Z"
|
|
563
|
+
]
|
|
564
|
+
];
|
|
565
|
+
};
|
|
566
|
+
/** A region of "Map / Armenia": the ten provinces (marz) and Yerevan, named as the Figma layers. */
|
|
567
|
+
export type ArmeniaRegion = (typeof ARMENIA_MAP.regions)[number][0];
|
|
568
|
+
/** A country of "Map / World" (Europe, the Middle East, North Africa and Central Asia), named as the Figma layers. */
|
|
569
|
+
export type WorldCountry = (typeof WORLD_MAP.regions)[number][0];
|
|
570
|
+
/** Every region of the Armenia map, in drawing order. */
|
|
571
|
+
export declare const ARMENIA_REGIONS: readonly ArmeniaRegion[];
|
|
572
|
+
/** Every country of the world map, in drawing order. */
|
|
573
|
+
export declare const WORLD_COUNTRIES: readonly WorldCountry[];
|
|
574
|
+
export interface RegionMapProps<Region extends string> extends Omit<SVGProps<SVGSVGElement>, "ref" | "children"> {
|
|
575
|
+
/** Regions filled in the highlight colour, e.g. the destinations chosen in the request form. */
|
|
576
|
+
highlighted?: readonly Region[];
|
|
577
|
+
/** Accessible name, e.g. "Selected regions: Kotayk, Aragatsotn". Without it the map is decorative (`aria-hidden`). */
|
|
578
|
+
title?: string;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Figma component "Map / Armenia" (2733:16846): the provinces of Armenia, used in the Travel Package request
|
|
582
|
+
* ("In Armenia" destinations). Pass the chosen regions as `highlighted`. It scales to the width of its container.
|
|
583
|
+
*/
|
|
584
|
+
export declare const ArmeniaMap: import("react").ForwardRefExoticComponent<RegionMapProps<"Gegharkunik" | "Armavir" | "Shirak" | "Ararat" | "Tavush" | "Kotayk" | "Lori" | "Yerevan" | "Syunik" | "Vayots Dzor" | "Aragatsotn"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
585
|
+
/**
|
|
586
|
+
* Figma component "Map / World" (2743:16833): Europe and the surrounding regions on a sea background, used in the
|
|
587
|
+
* Flight Request and Travel Package forms. Pass the destination countries as `highlighted`. It scales to its container.
|
|
588
|
+
*/
|
|
589
|
+
export declare const WorldMap: import("react").ForwardRefExoticComponent<RegionMapProps<"France" | "Portugal" | "United Kingdom" | "Greece" | "Denmark" | "Netherlands" | "Turkey" | "Sweden" | "Estonia" | "Italy" | "Cyprus" | "Russia" | "Kazakhstan" | "Azerbaijan" | "Armenia" | "Uzbekistan" | "Spain" | "Morocco" | "Saudi Arabia" | "Iran" | "Croatia" | "Libya" | "Kuwait" | "Germany" | "Switzerland" | "Ireland" | "Latvia" | "Turkmenistan" | "Northern Cyprus" | "Algeria" | "Lithuania" | "Slovenia" | "Bosnia and Herzegovina" | "Jordan" | "Syria" | "Albania" | "Republic of Serbia" | "Montenegro" | "Ukraine" | "Slovakia" | "Bulgaria" | "Romania" | "Austria" | "Hungary" | "Belgium" | "Iraq" | "Georgia" | "Kosovo" | "Lebanon" | "Israel" | "Poland" | "North Macedonia" | "Belarus" | "Czech Republic" | "Tunisia" | "Moldova" | "Egypt"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
272
590
|
/** Figma "Style". `ghost` is spelled "Goast" in the Figma file. */
|
|
273
591
|
export type ButtonVariant = "primary" | "outline" | "ghost" | "destructive" | "text" | "white";
|
|
274
592
|
/** Figma "Size": L · M · S */
|
|
@@ -333,6 +651,19 @@ export interface FormFieldProps {
|
|
|
333
651
|
/** Figma "Size": L · M · S. */
|
|
334
652
|
size?: FieldSize;
|
|
335
653
|
}
|
|
654
|
+
/** How a field shows its error. Supported by `TextInput`, `Textarea` and `Select`. */
|
|
655
|
+
export interface FieldErrorAppearanceProps {
|
|
656
|
+
/**
|
|
657
|
+
* Colour of the error message, text and icon: `error` error/error (Figma "Field message / Type=Error", the default) or
|
|
658
|
+
* `content` the darker error/content some screens use (Figma Contact Support "Errors").
|
|
659
|
+
*/
|
|
660
|
+
errorColor?: "error" | "content";
|
|
661
|
+
/**
|
|
662
|
+
* `error` (default) gives an invalid control the error fill and border (Figma "State=Error"); `neutral` keeps its
|
|
663
|
+
* default box, so only the message shows the error. The control is still marked `aria-invalid`.
|
|
664
|
+
*/
|
|
665
|
+
errorBox?: "error" | "neutral";
|
|
666
|
+
}
|
|
336
667
|
export interface FieldIds {
|
|
337
668
|
/** id for the focusable control — also the label's `htmlFor`. */
|
|
338
669
|
controlId: string;
|
|
@@ -342,7 +673,7 @@ export interface FieldIds {
|
|
|
342
673
|
}
|
|
343
674
|
/** Stable ids that tie a control to its label and message. Pass the consumer's `id` to respect it. */
|
|
344
675
|
export declare function useFieldIds(id: string | undefined, hasMessage: boolean): FieldIds;
|
|
345
|
-
interface FormFieldLayoutProps extends FormFieldProps, Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
676
|
+
interface FormFieldLayoutProps extends FormFieldProps, FieldErrorAppearanceProps, Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
346
677
|
ids: FieldIds;
|
|
347
678
|
/** Shows the info icon in front of `helperText` (Figma "Style=With-icon-helper-text"). Errors always have their icon. */
|
|
348
679
|
helperIcon?: boolean;
|
|
@@ -350,7 +681,10 @@ interface FormFieldLayoutProps extends FormFieldProps, Omit<HTMLAttributes<HTMLD
|
|
|
350
681
|
children: ReactNode;
|
|
351
682
|
}
|
|
352
683
|
/**
|
|
353
|
-
* Lays out label → control → message
|
|
684
|
+
* Lays out label → control → message, 8px apart (`--tm-form-field-gap` changes it, e.g. to `var(--tm-spacing-xxs)` for
|
|
685
|
+
* Figma's email and password fields). The spacing is margins, not a gap, so the root can also be placed on three rows
|
|
686
|
+
* of a parent grid (`display: grid; grid-row: span 3; grid-template-rows: subgrid`) to keep the boxes of fields side by
|
|
687
|
+
* side level. Building block for the form controls in this package
|
|
354
688
|
* (TextInput, Select, …); apps normally use those instead of this component.
|
|
355
689
|
*/
|
|
356
690
|
export declare const FormField: import("react").ForwardRefExoticComponent<FormFieldLayoutProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -377,7 +711,11 @@ export declare const Tag: import("react").ForwardRefExoticComponent<TagProps & i
|
|
|
377
711
|
/** Figma "Property 1": Success · Warning · Error · Info · Draft */
|
|
378
712
|
export type StatusTagTone = "success" | "warning" | "error" | "info" | "draft";
|
|
379
713
|
export interface StatusTagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
380
|
-
/**
|
|
714
|
+
/**
|
|
715
|
+
* Colour of the tag. `draft` is the neutral grey one.
|
|
716
|
+
* Defaults to `draft`, the neutral tone. Figma's default variant is Success; the package keeps the neutral default on
|
|
717
|
+
* purpose, so pass `tone` whenever the status is known.
|
|
718
|
+
*/
|
|
381
719
|
tone?: StatusTagTone;
|
|
382
720
|
}
|
|
383
721
|
/** Small coloured status pill (Figma component set "Status tag"). The text is the children. */
|
|
@@ -497,7 +835,7 @@ export interface InclusionIndicatorProps extends HTMLAttributes<HTMLSpanElement>
|
|
|
497
835
|
}
|
|
498
836
|
/** One line of a "what's included" list (Figma component set "Inclusion Indicator"): state icon + label. */
|
|
499
837
|
export declare const InclusionIndicator: import("react").ForwardRefExoticComponent<InclusionIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
500
|
-
export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix">, FormFieldProps {
|
|
838
|
+
export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix">, FormFieldProps, FieldErrorAppearanceProps {
|
|
501
839
|
/** Figma "Size": `lg` 52px · `md` 46px (default) · `sm` 42px. */
|
|
502
840
|
size?: FieldSize;
|
|
503
841
|
/** Icon before the value (Figma "Left-icon"), e.g. `<EmailIcon />` for an email field. Its size follows `size`. */
|
|
@@ -537,8 +875,12 @@ export interface PasswordInputProps extends Omit<TextInputProps, "type" | "endIc
|
|
|
537
875
|
* swaps them. Figma also puts a lock in front — pass `startIcon={<LockIcon />}` for that.
|
|
538
876
|
*/
|
|
539
877
|
export declare const PasswordInput: import("react").ForwardRefExoticComponent<PasswordInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
540
|
-
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, FormFieldProps {
|
|
541
|
-
/**
|
|
878
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, FormFieldProps, FieldErrorAppearanceProps {
|
|
879
|
+
/**
|
|
880
|
+
* Figma "Size": `lg` 120px · `md` 100px (default) · `sm` 80px minimum height, with the matching text style.
|
|
881
|
+
* A screen that draws its text area taller sets `--tm-textarea-min-height` (any CSS length, e.g. per breakpoint) on
|
|
882
|
+
* the Textarea or an ancestor.
|
|
883
|
+
*/
|
|
542
884
|
size?: FieldSize;
|
|
543
885
|
/** Shows the resize handle in the bottom corner and lets the user drag the field taller. Defaults to `true`. */
|
|
544
886
|
resizable?: boolean;
|
|
@@ -602,7 +944,7 @@ export interface SelectOption {
|
|
|
602
944
|
textValue?: string;
|
|
603
945
|
}
|
|
604
946
|
type TriggerProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value" | "defaultValue" | "onChange" | "children" | "type" | "name" | "role">;
|
|
605
|
-
interface SelectBaseProps extends FormFieldProps, TriggerProps {
|
|
947
|
+
interface SelectBaseProps extends FormFieldProps, FieldErrorAppearanceProps, TriggerProps {
|
|
606
948
|
/** The options, in display order. */
|
|
607
949
|
options: SelectOption[];
|
|
608
950
|
/** Shown in the field while nothing is selected. */
|
|
@@ -641,8 +983,16 @@ interface SelectBaseProps extends FormFieldProps, TriggerProps {
|
|
|
641
983
|
panelAnchor?: RefObject<HTMLElement | null>;
|
|
642
984
|
/** Class for the list panel, which is rendered in a portal outside the root. */
|
|
643
985
|
panelClassName?: string;
|
|
986
|
+
/** Size of the rows in the list when it differs from the field's `size` (e.g. Figma "Type=Phone, State=Open" keeps M rows at every size). Defaults to `size`. */
|
|
987
|
+
listSize?: FieldSize;
|
|
644
988
|
/** Accessible name of a chip's × button (`multiple`), given the option's text. */
|
|
645
989
|
removeLabel?: (optionText: string) => string;
|
|
990
|
+
/**
|
|
991
|
+
* Figma "Read-only" (the last State column of "Drop down inputs"): the value is shown but cannot be changed —
|
|
992
|
+
* the field stays focusable and is announced as read-only, the list does not open and chips have no × button.
|
|
993
|
+
* Unlike `disabled`, the value is still submitted with a form.
|
|
994
|
+
*/
|
|
995
|
+
readOnly?: boolean;
|
|
646
996
|
}
|
|
647
997
|
export interface SelectSingleProps extends SelectBaseProps {
|
|
648
998
|
/** `true` turns the field into a multi-select (Figma "Type=Checkbox"): checkboxes in the list, removable chips in the field. */
|
|
@@ -705,9 +1055,9 @@ export declare const CurrencySelect: import("react").ForwardRefExoticComponent<C
|
|
|
705
1055
|
export interface PhoneCountry {
|
|
706
1056
|
/** Unique key of the entry, normally the ISO country code (`AM`). */
|
|
707
1057
|
code: string;
|
|
708
|
-
/** Calling code shown in the field and the list, e.g. `+374`. */
|
|
1058
|
+
/** Calling code shown in the field and under the country name in the list, e.g. `+374`. */
|
|
709
1059
|
dialCode: string;
|
|
710
|
-
/** Country name,
|
|
1060
|
+
/** Country name, the first line of its row in the list; search matches it and the calling code. */
|
|
711
1061
|
label: string;
|
|
712
1062
|
/** Flag shown before the calling code, e.g. `<FlagIcon />`. */
|
|
713
1063
|
flag?: ReactNode;
|
|
@@ -725,13 +1075,13 @@ export interface PhoneInputProps extends Omit<InputHTMLAttributes<HTMLInputEleme
|
|
|
725
1075
|
onCountryChange?: (code: string, country: PhoneCountry) => void;
|
|
726
1076
|
/** Accessible name of the calling-code dropdown. */
|
|
727
1077
|
countryLabel?: string;
|
|
728
|
-
/** Whether the
|
|
1078
|
+
/** Whether the country list is open (controlled; Figma "State=Open"). */
|
|
729
1079
|
countryListOpen?: boolean;
|
|
730
|
-
/** Called when the
|
|
1080
|
+
/** Called when the country list opens or closes. */
|
|
731
1081
|
onCountryListOpenChange?: (open: boolean) => void;
|
|
732
|
-
/**
|
|
1082
|
+
/** Shows the search box at the top of the country list (Figma "State=Open"). Default `true`; `false` hides it for short lists. */
|
|
733
1083
|
searchable?: boolean;
|
|
734
|
-
/** Placeholder and accessible name of that search box. */
|
|
1084
|
+
/** Placeholder and accessible name of that search box. Default "Search country or code". */
|
|
735
1085
|
searchPlaceholder?: string;
|
|
736
1086
|
/** Shown when the search matches no country. */
|
|
737
1087
|
emptyText?: ReactNode;
|
|
@@ -740,6 +1090,7 @@ export interface PhoneInputProps extends Omit<InputHTMLAttributes<HTMLInputEleme
|
|
|
740
1090
|
}
|
|
741
1091
|
/**
|
|
742
1092
|
* Figma "Drop down inputs / Type=Phone" ("Inputs / Style=Both-icon-drop-down"): a calling-code dropdown next to a number input.
|
|
1093
|
+
* The country list is Figma "State=Open": a 280px menu with a search box and one row per country (flag, name, calling code).
|
|
743
1094
|
* The national number is a native `<input type="tel">` (`value` / `onChange` / `name` as usual; the ref and extra props go to it);
|
|
744
1095
|
* the calling code is `country` / `onCountryChange`. `className` goes to the root.
|
|
745
1096
|
*/
|
|
@@ -1124,6 +1475,55 @@ export interface CalendarDayProps extends ButtonHTMLAttributes<HTMLButtonElement
|
|
|
1124
1475
|
* Give it a full-date `aria-label` (e.g. "12 March 2027") when it is used in a calendar grid.
|
|
1125
1476
|
*/
|
|
1126
1477
|
export declare const CalendarDay: import("react").ForwardRefExoticComponent<CalendarDayProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1478
|
+
export interface RequestSearchResult {
|
|
1479
|
+
/** Stable id of the request, used as the React key. */
|
|
1480
|
+
value: string;
|
|
1481
|
+
/** The request name, e.g. "Summer in Santorini" (Figma option "Text"). */
|
|
1482
|
+
title: ReactNode;
|
|
1483
|
+
/** The caption under it, e.g. "Travel Package · TM-24817" (Figma "More information here"). */
|
|
1484
|
+
meta?: ReactNode;
|
|
1485
|
+
/** Icon of the request type, e.g. `<BriefcaseIcon />` for a package, `<PlaneTakeoffIcon />` for a flight. */
|
|
1486
|
+
icon?: ReactNode;
|
|
1487
|
+
}
|
|
1488
|
+
export interface RequestSearchProps extends Omit<SearchInputProps, "results" | "size" | "elevated"> {
|
|
1489
|
+
/** Matching requests (the app searches). `undefined` shows no panel; an empty array shows `emptyText`, if given. */
|
|
1490
|
+
results?: RequestSearchResult[];
|
|
1491
|
+
/** Called when a result is picked (click, Enter or Space); the panel then closes. */
|
|
1492
|
+
onResultSelect?: (result: RequestSearchResult) => void;
|
|
1493
|
+
/** Shown in the panel when `results` is empty, e.g. "No requests match “Rome”" — not in Figma. */
|
|
1494
|
+
emptyText?: ReactNode;
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Figma component set "Request search" (2707:12336): the search box of the My Requests toolbar — a 380px
|
|
1498
|
+
* Drop down input (Type=Search, Size M) whose panel lists matching requests with their type icon and reference.
|
|
1499
|
+
* Without a visible label, give it an `aria-label`.
|
|
1500
|
+
*/
|
|
1501
|
+
export declare const RequestSearch: import("react").ForwardRefExoticComponent<RequestSearchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
1502
|
+
export interface StatusFilterProps extends Omit<SelectSingleProps, "multiple" | "value" | "defaultValue" | "onValueChange" | "options" | "placeholder" | "size" | "name"> {
|
|
1503
|
+
/** The statuses to filter by, in display order (Figma: Under Review, Needs Clarification, Waiting for Offers, …). */
|
|
1504
|
+
options: SelectOption[];
|
|
1505
|
+
/** Text of the "no filter" row, shown in the field while no status is chosen — translate it. */
|
|
1506
|
+
allLabel?: ReactNode;
|
|
1507
|
+
/** Chosen status (controlled); `null` for all statuses. */
|
|
1508
|
+
value?: string | null;
|
|
1509
|
+
/** Initially chosen status (uncontrolled); `null` (default) for all. */
|
|
1510
|
+
defaultValue?: string | null;
|
|
1511
|
+
/** Called with the chosen status, or `null` when "All statuses" is picked. */
|
|
1512
|
+
onValueChange?: (value: string | null) => void;
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* Figma component set "Status filter" (2707:12045): the status dropdown of the My Requests toolbar —
|
|
1516
|
+
* a 220px Drop down input (Type=Select, Size M) whose first row, "All statuses", clears the filter.
|
|
1517
|
+
* Without a visible label, give it an `aria-label`.
|
|
1518
|
+
*/
|
|
1519
|
+
export declare const StatusFilter: import("react").ForwardRefExoticComponent<StatusFilterProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1520
|
+
export type SortSelectProps = Omit<SelectSingleProps, "multiple" | "size">;
|
|
1521
|
+
/**
|
|
1522
|
+
* Figma component set "Sort select" (2707:12169): the sort-order dropdown of the My Requests toolbar —
|
|
1523
|
+
* a 180px Drop down input (Type=Select, Size M) that always has a value (Newest first, Oldest first, …).
|
|
1524
|
+
* Without a visible label, give it an `aria-label`.
|
|
1525
|
+
*/
|
|
1526
|
+
export declare const SortSelect: import("react").ForwardRefExoticComponent<SortSelectProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1127
1527
|
export interface HeaderItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1128
1528
|
/** Marks the link to the page the user is on (Figma "Clicked"): link colour and `aria-current="page"`. */
|
|
1129
1529
|
active?: boolean;
|
|
@@ -1181,6 +1581,38 @@ export interface FormProgressProps extends Omit<OlHTMLAttributes<HTMLOListElemen
|
|
|
1181
1581
|
* 520px it switches to the compact Figma "Mobile / Form progress" layout (stage title, step count and a segmented bar).
|
|
1182
1582
|
*/
|
|
1183
1583
|
export declare const FormProgress: import("react").ForwardRefExoticComponent<FormProgressProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
1584
|
+
export interface ShowMoreProps extends HTMLAttributes<HTMLDivElement> {
|
|
1585
|
+
/** How much is showing, e.g. "Showing 5 of 24 requests" (Figma layer "Count"). Announced politely when it changes. */
|
|
1586
|
+
summary?: ReactNode;
|
|
1587
|
+
/** Text of the button, e.g. "Show more requests". */
|
|
1588
|
+
children: ReactNode;
|
|
1589
|
+
/** Figma "State=Loading": the button turns inactive and reads `loadingLabel`; it keeps focus but ignores clicks. */
|
|
1590
|
+
loading?: boolean;
|
|
1591
|
+
/** Button text while loading — translate it. */
|
|
1592
|
+
loadingLabel?: ReactNode;
|
|
1593
|
+
/** Called by the button (not while loading or disabled). */
|
|
1594
|
+
onShowMore?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
1595
|
+
/** Disables the button, e.g. when everything is already showing. */
|
|
1596
|
+
disabled?: boolean;
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Figma component set "Show more" (2724:37170): the "Showing 5 of 24 requests" line and the Outline M button that
|
|
1600
|
+
* loads the next batch under a list (My Requests). The app does the loading and passes `loading` meanwhile.
|
|
1601
|
+
*/
|
|
1602
|
+
export declare const ShowMore: import("react").ForwardRefExoticComponent<ShowMoreProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1603
|
+
export interface StepProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1604
|
+
/** Step names in order, e.g. Destination / Dates & travellers / Package & budget / Review (Figma "Count" = their number). */
|
|
1605
|
+
steps: ReactNode[];
|
|
1606
|
+
/** The step the user is on, 1-based (Figma "Step"). That many bar segments are filled. */
|
|
1607
|
+
currentStep: number;
|
|
1608
|
+
/** The "Step 2 of 4" text — translate it. */
|
|
1609
|
+
formatStepCount?: (current: number, total: number) => ReactNode;
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Figma component set "Step progress" (2735:16901): a compact progress line for a multi-step form —
|
|
1613
|
+
* "Step 2 of 4 · Dates & travellers" over a segmented bar. The bar is a `progressbar` named by that line.
|
|
1614
|
+
*/
|
|
1615
|
+
export declare const StepProgress: import("react").ForwardRefExoticComponent<StepProgressProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1184
1616
|
/** Figma "Type": Info · Success · Warning · Error */
|
|
1185
1617
|
export type InlineAlertTone = "info" | "success" | "warning" | "error";
|
|
1186
1618
|
export interface InlineAlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
@@ -1192,9 +1624,60 @@ export interface InlineAlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "
|
|
|
1192
1624
|
action?: ReactNode;
|
|
1193
1625
|
/** The message (Figma "Message"). */
|
|
1194
1626
|
children?: ReactNode;
|
|
1627
|
+
/**
|
|
1628
|
+
* `md` (default): the Figma component, 12px × 16px padding, the message as wide as the alert. `lg`: the alert as the
|
|
1629
|
+
* screens place it (Contact Support 2410:6422, Help Article 2404:6448) — 16px padding all round, and the message kept
|
|
1630
|
+
* to the component's 400px text column.
|
|
1631
|
+
*/
|
|
1632
|
+
size?: "md" | "lg";
|
|
1195
1633
|
}
|
|
1196
1634
|
/** A message placed in the page flow, next to the content it is about. */
|
|
1197
1635
|
export declare const InlineAlert: import("react").ForwardRefExoticComponent<InlineAlertProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1636
|
+
/** Figma "Type": Success · Info · Error */
|
|
1637
|
+
export type ToastTone = "success" | "info" | "error";
|
|
1638
|
+
export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
1639
|
+
/** Figma "Type". Sets the icon and its colours, and the default role: `status` for success/info, `alert` for error. */
|
|
1640
|
+
tone?: ToastTone;
|
|
1641
|
+
/** Short heading (Figma text property "Title"). */
|
|
1642
|
+
title?: ReactNode;
|
|
1643
|
+
/** Link or button under the message (Figma text property "Action"), e.g. `<button type="button">Continue</button>`. */
|
|
1644
|
+
action?: ReactNode;
|
|
1645
|
+
/** Called by the × button. Without it the toast has no close button. */
|
|
1646
|
+
onClose?: () => void;
|
|
1647
|
+
/** Accessible name of the × button — translate it. */
|
|
1648
|
+
closeLabel?: string;
|
|
1649
|
+
/** The message (Figma text property "Description"). */
|
|
1650
|
+
children?: ReactNode;
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Figma component set "Toast" (2726:16883): a short confirmation that floats over the page — icon badge, title,
|
|
1654
|
+
* message, an optional action and a close button. The component is the card only; where it sits on screen,
|
|
1655
|
+
* how long it stays and how several stack is up to the app.
|
|
1656
|
+
*/
|
|
1657
|
+
export declare const Toast: import("react").ForwardRefExoticComponent<ToastProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1658
|
+
export interface TelegramConnectProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
1659
|
+
/** Figma "State": `false` Not connected (default, Primary button) · `true` Connected (Text button). */
|
|
1660
|
+
connected?: boolean;
|
|
1661
|
+
/** Heading, e.g. "Get updates in Telegram" / "Telegram connected" (Figma layer "Title"). */
|
|
1662
|
+
title: ReactNode;
|
|
1663
|
+
/** The explanation (Figma layer "Description"), e.g. "Updates go to @anna_p. Agencies never see your account." */
|
|
1664
|
+
children?: ReactNode;
|
|
1665
|
+
/** Text of the button, e.g. "Connect Telegram" / "Disconnect". */
|
|
1666
|
+
actionLabel: ReactNode;
|
|
1667
|
+
/** Called by the button. */
|
|
1668
|
+
onAction?: (event: MouseEvent<HTMLElement>) => void;
|
|
1669
|
+
/** Renders the button as a link instead, e.g. the bot's `https://t.me/…?start=…` deep link. */
|
|
1670
|
+
actionHref?: string;
|
|
1671
|
+
/** Spinner on the button while connecting or disconnecting. */
|
|
1672
|
+
actionLoading?: boolean;
|
|
1673
|
+
/** Icon in the tile. Defaults to Figma's paper plane (`send`). */
|
|
1674
|
+
icon?: ReactNode;
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Figma component set "Telegram connect" (2735:16918): the card that offers Telegram notifications
|
|
1678
|
+
* (Account → Notifications, request sent) and, once connected, shows where updates go with a way to disconnect.
|
|
1679
|
+
*/
|
|
1680
|
+
export declare const TelegramConnect: import("react").ForwardRefExoticComponent<TelegramConnectProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1198
1681
|
type Weekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
1199
1682
|
/** A date range as two ISO calendar days; `end` is `null` while only the first day has been picked. */
|
|
1200
1683
|
export interface DateRangeValue {
|
|
@@ -1535,7 +2018,10 @@ export interface NotificationsMenuProps extends Omit<NotificationsButtonProps, "
|
|
|
1535
2018
|
defaultOpen?: boolean;
|
|
1536
2019
|
/** Called when the panel opens or closes. */
|
|
1537
2020
|
onOpenChange?: (open: boolean) => void;
|
|
1538
|
-
/**
|
|
2021
|
+
/**
|
|
2022
|
+
* How the panel lines up with the button. Figma centres it under the button (`center`, the default); near the edge of
|
|
2023
|
+
* the screen it shifts to stay 8px inside the viewport.
|
|
2024
|
+
*/
|
|
1539
2025
|
align?: "start" | "center" | "end";
|
|
1540
2026
|
/** Element the panel is rendered into (default `document.body`). Set it when the theme is scoped to a container. */
|
|
1541
2027
|
portalContainer?: HTMLElement | null;
|
|
@@ -1573,7 +2059,10 @@ export interface AccountMenuProps extends Omit<ButtonHTMLAttributes<HTMLButtonEl
|
|
|
1573
2059
|
defaultOpen?: boolean;
|
|
1574
2060
|
/** Called when the menu opens or closes. */
|
|
1575
2061
|
onOpenChange?: (open: boolean) => void;
|
|
1576
|
-
/**
|
|
2062
|
+
/**
|
|
2063
|
+
* How the menu lines up with the button. Figma centres it under the button (`center`, the default); near the edge of
|
|
2064
|
+
* the screen it shifts to stay 8px inside the viewport.
|
|
2065
|
+
*/
|
|
1577
2066
|
align?: "start" | "center" | "end";
|
|
1578
2067
|
/** Element the menu is rendered into (default `document.body`). Set it when the theme is scoped to a container. */
|
|
1579
2068
|
portalContainer?: HTMLElement | null;
|
|
@@ -1623,6 +2112,8 @@ export interface SiteHeaderProps extends Omit<PortalHeaderProps, "actions"> {
|
|
|
1623
2112
|
* The marketing header has the anatomy of `PortalHeader` — logo, `HeaderItem` navigation, actions, and on small screens a menu button
|
|
1624
2113
|
* opening a full-screen menu — so it is a `PortalHeader` with the public website's look. All of PortalHeader's behaviour
|
|
1625
2114
|
* (container-query collapse, disclosure button with `aria-expanded`, Escape and focus return, closing on link click) is inherited.
|
|
2115
|
+
* The closed solid bar is coloured by the public custom property `--tm-site-header-bg` (default `background/main`); set it on the
|
|
2116
|
+
* header (or an ancestor) for pages whose Figma header takes the page colour. The open small-screen menu stays `background/main`.
|
|
1626
2117
|
*/
|
|
1627
2118
|
export declare const SiteHeader: import("react").ForwardRefExoticComponent<SiteHeaderProps & import("react").RefAttributes<HTMLElement>>;
|
|
1628
2119
|
/** One link of a footer: app data, translated by the app. */
|
|
@@ -1817,7 +2308,7 @@ export interface RequestSummaryRowProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1817
2308
|
/** A label/value row (Figma "Row / …"); must be inside a `RequestSummarySection`. */
|
|
1818
2309
|
export declare const RequestSummaryRow: import("react").ForwardRefExoticComponent<RequestSummaryRowProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1819
2310
|
export interface RequestSummaryEditLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1820
|
-
/** Icon before the label.
|
|
2311
|
+
/** Icon before the label. None by default — Figma shows the word only; pass one (e.g. `<ResizeFieldIcon />`) to add it. */
|
|
1821
2312
|
icon?: ReactNode;
|
|
1822
2313
|
/** Renders the single child element (a router `<Link>`, or a `<button>` that opens an editor) instead of an `<a>`. */
|
|
1823
2314
|
asChild?: boolean;
|
|
@@ -2241,17 +2732,37 @@ export interface FaqItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "titl
|
|
|
2241
2732
|
onOpenChange?: (open: boolean) => void;
|
|
2242
2733
|
/** Heading level of the question. Defaults to the `FaqList`'s level, otherwise `3`. */
|
|
2243
2734
|
headingLevel?: FaqHeadingLevel;
|
|
2735
|
+
/** Identifies the item in a `type="single"` `FaqList` (its `value` / `defaultValue`). Defaults to a generated id. */
|
|
2736
|
+
value?: string;
|
|
2244
2737
|
}
|
|
2245
2738
|
/**
|
|
2246
2739
|
* One question of a FAQ (Figma component set "FAQ item"): a disclosure — a heading with a button
|
|
2247
2740
|
* (`aria-expanded`) that reveals the answer below it.
|
|
2248
2741
|
*/
|
|
2249
2742
|
export declare const FaqItem: import("react").ForwardRefExoticComponent<FaqItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2250
|
-
export interface FaqListProps extends HTMLAttributes<HTMLDivElement> {
|
|
2743
|
+
export interface FaqListProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
|
|
2251
2744
|
/** Heading level for the question of every item in the list (an item's own `headingLevel` wins). */
|
|
2252
2745
|
headingLevel?: FaqHeadingLevel;
|
|
2746
|
+
/** `multiple` (default): every item opens and closes on its own. `single`: opening an item closes the open one. */
|
|
2747
|
+
type?: "single" | "multiple";
|
|
2748
|
+
/** `type="single"`, controlled: `value` of the open item, or `null` for none. */
|
|
2749
|
+
value?: string | null;
|
|
2750
|
+
/** `type="single"`, uncontrolled: `value` of the item open at first. None by default. */
|
|
2751
|
+
defaultValue?: string | null;
|
|
2752
|
+
/** `type="single"`: called with the newly open item's `value`, or `null` when it closes. */
|
|
2753
|
+
onValueChange?: (value: string | null) => void;
|
|
2754
|
+
/**
|
|
2755
|
+
* Keeps the height the list has with its tallest answer open, so opening or switching answers never moves what
|
|
2756
|
+
* follows the list (use it with `type="single"`). `true` always; a media query (e.g. `'(min-width: 1280px)'`) only
|
|
2757
|
+
* while it matches — say, where the list sits beside other content and would otherwise push the next section.
|
|
2758
|
+
* Measured in the browser and again whenever the list is resized; nothing is reserved before that.
|
|
2759
|
+
*/
|
|
2760
|
+
reserveHeight?: boolean | string;
|
|
2253
2761
|
}
|
|
2254
|
-
/**
|
|
2762
|
+
/**
|
|
2763
|
+
* Stacks `FaqItem`s (each draws its own divider) and sets the heading level of their questions once. With
|
|
2764
|
+
* `type="single"` only one answer is open at a time; `reserveHeight` keeps the list as tall as with its tallest answer open.
|
|
2765
|
+
*/
|
|
2255
2766
|
export declare const FaqList: import("react").ForwardRefExoticComponent<FaqListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2256
2767
|
export interface PopularQuestionsAudience {
|
|
2257
2768
|
/** Identifies the audience, e.g. `"travellers"`. */
|
|
@@ -2277,6 +2788,12 @@ export interface PopularQuestionsProps extends Omit<HTMLAttributes<HTMLDivElemen
|
|
|
2277
2788
|
onValueChange?: (value: string) => void;
|
|
2278
2789
|
/** Accessible name of the tab list, e.g. "Audience". */
|
|
2279
2790
|
tabsLabel?: string;
|
|
2791
|
+
/**
|
|
2792
|
+
* On phones (viewports under 768px, the Mobile mode of the tokens) the tabs shrink to their labels with 12px side
|
|
2793
|
+
* padding instead of Figma's 180px / spacing/lg tabs, so longer labels (Armenian, Russian) fit a 370px control
|
|
2794
|
+
* without scrolling. Not in the Figma component; wider screens are unchanged.
|
|
2795
|
+
*/
|
|
2796
|
+
compactTabs?: boolean;
|
|
2280
2797
|
/** Question cards of the selected audience, for when the app owns the list (used when the audience has no `questions`). */
|
|
2281
2798
|
children?: ReactNode;
|
|
2282
2799
|
}
|
|
@@ -2390,6 +2907,14 @@ export interface PlansPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "
|
|
|
2390
2907
|
export declare const PlansPicker: import("react").ForwardRefExoticComponent<PlansPickerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2391
2908
|
/** Heading level of the step title (`<h2>`–`<h6>`); it depends on where the block sits in the page outline. */
|
|
2392
2909
|
export type StepHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
2910
|
+
/**
|
|
2911
|
+
* `default`: the Figma component (step label H3 in text/primary, text Body). `showcase`: the look of the instances on the
|
|
2912
|
+
* Figma home page ("How it works", Home 135:53 / Home - Mobile 2428:10312): a large neutral/gray-400 step label and the
|
|
2913
|
+
* text in Body-Small neutral/gray-600.
|
|
2914
|
+
*/
|
|
2915
|
+
export type StepCardVariant = "default" | "showcase";
|
|
2916
|
+
/** `end` aligns the label, title and text to the end edge (the cards left of a centre line on the home page). */
|
|
2917
|
+
export type StepCardAlign = "start" | "end";
|
|
2393
2918
|
export interface StepCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
2394
2919
|
/** Label above the title, e.g. "Step 01" (Figma "Step 01"). Part of the heading, so it is read with the title. */
|
|
2395
2920
|
step?: ReactNode;
|
|
@@ -2399,8 +2924,27 @@ export interface StepCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "tit
|
|
|
2399
2924
|
children?: ReactNode;
|
|
2400
2925
|
/** Heading level of the step label + title. Defaults to `3`. */
|
|
2401
2926
|
headingLevel?: StepHeadingLevel;
|
|
2927
|
+
/** Look of the card: the Figma component (`default`) or the home page's `showcase` instances. */
|
|
2928
|
+
variant?: StepCardVariant;
|
|
2929
|
+
/**
|
|
2930
|
+
* Text alignment; `end` also puts a narrowed text box (`--tm-step-card-text-max-width`) on the end edge. Leave it unset to
|
|
2931
|
+
* inherit the surrounding alignment. To switch it per breakpoint, set the custom property `--tm-step-card-align`
|
|
2932
|
+
* (`start` | `end`) on the card from CSS instead.
|
|
2933
|
+
*/
|
|
2934
|
+
align?: StepCardAlign;
|
|
2935
|
+
/**
|
|
2936
|
+
* Shows the step label in the link colour (with a 0.4s colour transition, none with reduced motion), e.g. once a route
|
|
2937
|
+
* animation has reached this step. Not in Figma. When the state lives in the DOM rather than in React (an attribute set
|
|
2938
|
+
* by a scroll script on an ancestor), set `--tm-step-card-step-color: var(--tm-text-link)` from CSS instead.
|
|
2939
|
+
*/
|
|
2940
|
+
highlighted?: boolean;
|
|
2402
2941
|
}
|
|
2403
|
-
/**
|
|
2942
|
+
/**
|
|
2943
|
+
* One step of a "how it works" block (Figma component "Steps element"): step label, title, text.
|
|
2944
|
+
* Public custom properties: `--tm-step-card-align` (`start` | `end`, see `align`), `--tm-step-card-text-max-width`
|
|
2945
|
+
* (max width of the text under the title; none by default — the home page narrows it to Figma's 318px) and
|
|
2946
|
+
* `--tm-step-card-step-color` (colour of the step label; eases like `highlighted`).
|
|
2947
|
+
*/
|
|
2404
2948
|
export declare const StepCard: import("react").ForwardRefExoticComponent<StepCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2405
2949
|
export type StepsProps = OlHTMLAttributes<HTMLOListElement>;
|
|
2406
2950
|
/**
|
|
@@ -2664,15 +3208,15 @@ interface NewRequestOptionContent {
|
|
|
2664
3208
|
description?: ReactNode;
|
|
2665
3209
|
/** One icon from `@travel-match/ui` for the 44px tile (Figma `roadmap`, `plane`). */
|
|
2666
3210
|
icon?: ReactNode;
|
|
2667
|
-
/** Photo at the top of the card; it is cropped to fill a 220px band (140px in narrow layouts). */
|
|
3211
|
+
/** `variant="cards"` only. Photo at the top of the card; it is cropped to fill a 220px band (140px in narrow layouts). */
|
|
2668
3212
|
imageSrc?: string;
|
|
2669
|
-
/** Alternative text of the photo. The photos are decorative by default. */
|
|
3213
|
+
/** `variant="cards"` only. Alternative text of the photo. The photos are decorative by default. */
|
|
2670
3214
|
imageAlt?: string;
|
|
2671
|
-
/** Custom image element used instead of `imageSrc`, e.g. `next/image`. */
|
|
3215
|
+
/** `variant="cards"` only. Custom image element used instead of `imageSrc`, e.g. `next/image`. */
|
|
2672
3216
|
image?: ReactNode;
|
|
2673
|
-
/** What the request type covers (Figma "Capabilities"); each entry gets a check mark. */
|
|
3217
|
+
/** `variant="cards"` only. What the request type covers (Figma "Capabilities"); each entry gets a check mark. */
|
|
2674
3218
|
features?: ReactNode[];
|
|
2675
|
-
/** Call to action at the bottom of the card (Figma "Start a Travel Package"); an arrow is added after it. */
|
|
3219
|
+
/** `variant="cards"` only. Call to action at the bottom of the card (Figma "Start a Travel Package"); an arrow is added after it. */
|
|
2676
3220
|
cta?: ReactNode;
|
|
2677
3221
|
/** Renders the card as a link to this URL instead of a button. */
|
|
2678
3222
|
href?: string;
|
|
@@ -2682,8 +3226,9 @@ export interface NewRequestOptionCardProps extends NewRequestOptionContent, Omit
|
|
|
2682
3226
|
asChild?: boolean;
|
|
2683
3227
|
}
|
|
2684
3228
|
/**
|
|
2685
|
-
*
|
|
2686
|
-
* named by its title and description; the feature list is its description for assistive technology.
|
|
3229
|
+
* The large photo card of the earlier New Request Overlay design (`variant="cards"`): the whole card is one button or
|
|
3230
|
+
* link, named by its title and description; the feature list is its description for assistive technology.
|
|
3231
|
+
* The current Figma overlay uses the compact `RequestTypeOption` rows instead.
|
|
2687
3232
|
*/
|
|
2688
3233
|
export declare const NewRequestOptionCard: import("react").ForwardRefExoticComponent<NewRequestOptionCardProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
2689
3234
|
export interface NewRequestOverlayOption extends NewRequestOptionContent {
|
|
@@ -2692,8 +3237,12 @@ export interface NewRequestOverlayOption extends NewRequestOptionContent {
|
|
|
2692
3237
|
/** Disables the card (buttons only). */
|
|
2693
3238
|
disabled?: boolean;
|
|
2694
3239
|
}
|
|
3240
|
+
/** `list` — the current Figma design: a 560px dialog with one `RequestTypeOption` row per type · `cards` — the earlier design: a 1120px dialog with photo cards side by side. */
|
|
3241
|
+
export type NewRequestOverlayVariant = "list" | "cards";
|
|
2695
3242
|
export interface NewRequestOverlayProps extends Omit<DialogProps, "size" | "role" | "footer" | "children" | "onSelect"> {
|
|
2696
|
-
/**
|
|
3243
|
+
/** `list` (default, Figma "New Request Overlay"): compact rows in a 560px dialog · `cards`: the earlier large photo cards. */
|
|
3244
|
+
variant?: NewRequestOverlayVariant;
|
|
3245
|
+
/** The request types to choose from (Figma "Options"): any number — stacked rows (`list`) or equal columns that wrap (`cards`). */
|
|
2697
3246
|
options?: NewRequestOverlayOption[];
|
|
2698
3247
|
/** Called with the option's `id` when a card is activated. */
|
|
2699
3248
|
onSelect?: (id: string) => void;
|
|
@@ -2702,16 +3251,34 @@ export interface NewRequestOverlayProps extends Omit<DialogProps, "size" | "role
|
|
|
2702
3251
|
/** Line under the options (Figma "Not sure which one? See how TravelMatch works"); links inside it are styled. */
|
|
2703
3252
|
footer?: ReactNode;
|
|
2704
3253
|
/**
|
|
2705
|
-
* Replaces the
|
|
3254
|
+
* Replaces the options: compose `RequestTypeOption` (or `NewRequestOptionCard`) yourself (e.g. `asChild` with router links)
|
|
2706
3255
|
* or render the next step of the flow here.
|
|
2707
3256
|
*/
|
|
2708
3257
|
children?: ReactNode;
|
|
2709
3258
|
}
|
|
2710
3259
|
/**
|
|
2711
3260
|
* The overlay that starts a new request by choosing its type (Figma component set "New Request Overlay").
|
|
2712
|
-
* A
|
|
3261
|
+
* A centered dialog listing one `RequestTypeOption` per type; below 768px it covers the screen.
|
|
2713
3262
|
*/
|
|
2714
3263
|
export declare const NewRequestOverlay: import("react").ForwardRefExoticComponent<NewRequestOverlayProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3264
|
+
export interface RequestTypeOptionProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "title"> {
|
|
3265
|
+
/** Name of the request type (Figma text property "Title", e.g. "Travel Package"). */
|
|
3266
|
+
title: ReactNode;
|
|
3267
|
+
/** Line under the title (Figma text property "Description"). */
|
|
3268
|
+
description?: ReactNode;
|
|
3269
|
+
/** One icon from `@travel-match/ui` for the 44px tile (Figma `roadmap`, `plane`). */
|
|
3270
|
+
icon?: ReactNode;
|
|
3271
|
+
/** Renders the option as a link to this URL instead of a button. */
|
|
3272
|
+
href?: string;
|
|
3273
|
+
/** Renders the single child element (e.g. an empty router `<Link href="…" />`) as the option; the content is placed inside it. */
|
|
3274
|
+
asChild?: boolean;
|
|
3275
|
+
}
|
|
3276
|
+
/**
|
|
3277
|
+
* One choice of the New Request Overlay (Figma component set "Request type option", State: Default · Hover):
|
|
3278
|
+
* icon tile, title and description, and an arrow. The whole row is one button (or link) named by its title and
|
|
3279
|
+
* description — "Travel Package A trip in Armenia or abroad…" (pass `aria-label` to replace it).
|
|
3280
|
+
*/
|
|
3281
|
+
export declare const RequestTypeOption: import("react").ForwardRefExoticComponent<RequestTypeOptionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
2715
3282
|
/**
|
|
2716
3283
|
* Colours of the icon tile: `default` — brand tint (Figma "Empty State"), `error` — red tint (Figma "Error State / Load failed"),
|
|
2717
3284
|
* `neutral` — grey tint (the other Figma error states).
|
|
@@ -3077,6 +3644,12 @@ export interface ExampleRequestsProps extends Omit<HTMLAttributes<HTMLDivElement
|
|
|
3077
3644
|
label?: string;
|
|
3078
3645
|
/** Renders a card's link with the app's router, e.g. `(props) => <Link {...props} />`. Defaults to an `<a>`. */
|
|
3079
3646
|
renderLink?: (props: ExampleRequestLinkProps, item: ExampleRequestItem) => ReactNode;
|
|
3647
|
+
/**
|
|
3648
|
+
* Background of the text box on the smaller cards: `glass` (default) background/card at 80% with a 4px blur, as in the
|
|
3649
|
+
* Figma component; `solid` background/card without blur, e.g. for the Travel Requests page. The large
|
|
3650
|
+
* card is always solid.
|
|
3651
|
+
*/
|
|
3652
|
+
briefStyle?: "glass" | "solid";
|
|
3080
3653
|
}
|
|
3081
3654
|
/**
|
|
3082
3655
|
* Example travel requests as photo cards: one large card and a grid of smaller ones (Figma "Travel Requests /
|
|
@@ -3195,7 +3768,7 @@ export interface PartnerCarouselProps extends Omit<HTMLAttributes<HTMLElement>,
|
|
|
3195
3768
|
paused?: boolean;
|
|
3196
3769
|
/** After the last slide the first one follows seamlessly, as in the Figma prototype. Needs more than two slides. */
|
|
3197
3770
|
loop?: boolean;
|
|
3198
|
-
/** Shows the dots. */
|
|
3771
|
+
/** Shows the dots (wide containers only: Figma mobile, under 768px of container width, has none). */
|
|
3199
3772
|
controls?: boolean;
|
|
3200
3773
|
/** Accessible name of a slide — translate it. */
|
|
3201
3774
|
getSlideLabel?: (index: number, count: number) => string;
|
|
@@ -3231,7 +3804,11 @@ export interface CtaRequestFlowItem {
|
|
|
3231
3804
|
export interface CtaRequestFlowProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
3232
3805
|
/** The sample requests; one is highlighted at a time. Any number. */
|
|
3233
3806
|
items: CtaRequestFlowItem[];
|
|
3234
|
-
/**
|
|
3807
|
+
/**
|
|
3808
|
+
* Index (0-based) of the highlighted request — Figma "Step". Makes the component controlled. A request whose tag does
|
|
3809
|
+
* not fit in the component (see below) is never highlighted: the next one that fits is shown instead, and when none
|
|
3810
|
+
* fits (a phone-width root, a hidden map) nothing is.
|
|
3811
|
+
*/
|
|
3235
3812
|
value?: number;
|
|
3236
3813
|
/** Request highlighted first when uncontrolled. */
|
|
3237
3814
|
defaultValue?: number;
|
|
@@ -3250,13 +3827,22 @@ export interface CtaRequestFlowProps extends Omit<HTMLAttributes<HTMLDivElement>
|
|
|
3250
3827
|
};
|
|
3251
3828
|
/** Content shown on top of the map, centred (the section's heading and button). */
|
|
3252
3829
|
children?: ReactNode;
|
|
3830
|
+
/**
|
|
3831
|
+
* `always` (default): the map shows at every width, cropped to the middle on phones ("Mobile / Join / CTA request
|
|
3832
|
+
* flow"). `wide-only`: on phones (viewports under 768px, the Mobile mode of the tokens) there is no map and the
|
|
3833
|
+
* component is just its content, at the content's height — as the Figma "Join as an Agency — Mobile" screen draws
|
|
3834
|
+
* its final CTA. Nothing is highlighted there.
|
|
3835
|
+
*/
|
|
3836
|
+
map?: "always" | "wide-only";
|
|
3253
3837
|
}
|
|
3254
3838
|
/**
|
|
3255
3839
|
* Background of the "Join" call to action (Figma component set "Join / CTA request flow"): a dotted world map on which
|
|
3256
3840
|
* sample requests light up one after another, each flying to the middle when its turn ends.
|
|
3257
3841
|
* The map is decorative and hidden from assistive technology; real content goes in `children`.
|
|
3258
3842
|
* It keeps the Figma scale and is cropped around its centre, so narrow containers show the middle of the map,
|
|
3259
|
-
* like "Mobile / Join / CTA request flow".
|
|
3843
|
+
* like "Mobile / Join / CTA request flow". There only the requests whose tag fits inside the component (16px clear of
|
|
3844
|
+
* its sides) are highlighted — the others keep their pin and the loop skips them; when none fits (a phone-width root)
|
|
3845
|
+
* only the pins show and nothing plays. This is measured again on resize.
|
|
3260
3846
|
*/
|
|
3261
3847
|
export declare const CtaRequestFlow: import("react").ForwardRefExoticComponent<CtaRequestFlowProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3262
3848
|
/** A value of the sentence, drawn as a pill (Figma "Pill / Type", "Pill / Destination", …). */
|