@ecohouse/ui 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.cjs +1594 -523
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +218 -10
- package/dist/index.d.ts +218 -10
- package/dist/index.js +1516 -471
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AccountHeader/AccountHeader.stories.tsx +70 -0
- package/src/components/AccountHeader/AccountHeader.tsx +224 -0
- package/src/components/AccountHeader/index.ts +2 -0
- package/src/components/AvatarSimple/AvatarSimple.tsx +2 -2
- package/src/components/Button/Button.tsx +4 -1
- package/src/components/DatePicker/DatePicker.tsx +129 -54
- package/src/components/FloatingActionButton/FloatingActionButton.stories.tsx +42 -0
- package/src/components/FloatingActionButton/FloatingActionButton.tsx +77 -0
- package/src/components/FloatingActionButton/index.ts +2 -0
- package/src/components/InfoTile/InfoTile.stories.tsx +80 -0
- package/src/components/InfoTile/InfoTile.tsx +118 -0
- package/src/components/InfoTile/index.ts +2 -0
- package/src/components/PaginationDots/PaginationDots.stories.tsx +48 -0
- package/src/components/PaginationDots/PaginationDots.tsx +111 -0
- package/src/components/PaginationDots/index.ts +2 -0
- package/src/components/Select/Select.tsx +5 -2
- package/src/components/Sidebar/Sidebar.tsx +25 -11
- package/src/components/StatusBadge/StatusBadge.stories.tsx +54 -0
- package/src/components/StatusBadge/StatusBadge.tsx +108 -0
- package/src/components/StatusBadge/index.ts +2 -0
- package/src/components/StepList/StepList.stories.tsx +37 -0
- package/src/components/StepList/StepList.tsx +152 -0
- package/src/components/StepList/index.ts +2 -0
- package/src/components/StepPager/StepPager.tsx +150 -0
- package/src/components/StepPager/index.ts +2 -0
- package/src/components/index.ts +21 -0
- package/src/icons/AlertTriangle/AlertTriangleIcon.tsx +19 -0
- package/src/icons/AlertTriangle/AlertTriangleIcon.web.tsx +18 -0
- package/src/icons/AlertTriangle/alertTrianglePath.ts +3 -0
- package/src/icons/AlertTriangle/index.ts +1 -0
- package/src/icons/Ban/BanIcon.tsx +15 -0
- package/src/icons/Ban/banPath.ts +2 -0
- package/src/icons/Ban/index.ts +1 -0
- package/src/icons/Bell/BellIcon.tsx +2 -2
- package/src/icons/Bell/BellIcon.web.tsx +2 -2
- package/src/icons/Bell/bellPath.ts +1 -1
- package/src/icons/CottageDetail/CottageDetailIcons.tsx +15 -0
- package/src/icons/CottageDetail/CottageDetailIcons.web.tsx +15 -0
- package/src/icons/CottageDetail/cottageDetailPaths.ts +3 -0
- package/src/icons/CottageDetail/index.ts +1 -0
- package/src/icons/Edit/EditIcon.tsx +20 -0
- package/src/icons/Edit/EditIcon.web.tsx +19 -0
- package/src/icons/Edit/editPath.ts +3 -0
- package/src/icons/Edit/index.ts +1 -0
- package/src/icons/Fullscreen/FullscreenIcon.tsx +21 -0
- package/src/icons/Fullscreen/fullscreenPath.ts +2 -0
- package/src/icons/Fullscreen/index.ts +1 -0
- package/src/icons/Home/homePath.ts +1 -1
- package/src/icons/HouseRules/HouseRulesIcons.tsx +62 -0
- package/src/icons/HouseRules/HouseRulesIcons.web.tsx +61 -0
- package/src/icons/HouseRules/houseRulesPaths.ts +24 -0
- package/src/icons/HouseRules/index.ts +2 -0
- package/src/icons/LocationUser/LocationUserIcon.tsx +15 -0
- package/src/icons/LocationUser/LocationUserIcon.web.tsx +14 -0
- package/src/icons/LocationUser/index.ts +1 -0
- package/src/icons/LocationUser/locationUserPath.ts +2 -0
- package/src/icons/Lock/LockIcon.tsx +21 -0
- package/src/icons/Lock/LockIcon.web.tsx +26 -0
- package/src/icons/Lock/index.ts +1 -0
- package/src/icons/Lock/lockPath.ts +3 -0
- package/src/icons/Refresh/RefreshIcon.tsx +20 -0
- package/src/icons/Refresh/RefreshIcon.web.tsx +19 -0
- package/src/icons/Refresh/index.ts +1 -0
- package/src/icons/Refresh/refreshPath.ts +3 -0
- package/src/icons/RefundStatus/RefundStatusIcon.tsx +24 -0
- package/src/icons/RefundStatus/RefundStatusIcon.web.tsx +23 -0
- package/src/icons/RefundStatus/index.ts +1 -0
- package/src/icons/RefundStatus/refundStatusPath.ts +3 -0
- package/src/icons/Sort/SortIcon.tsx +3 -3
- package/src/icons/Sort/SortIcon.web.tsx +2 -2
- package/src/icons/Sort/sortPath.ts +3 -2
- package/src/icons/VideoOff/VideoOffIcon.tsx +21 -0
- package/src/icons/VideoOff/VideoOffIcon.web.tsx +27 -0
- package/src/icons/VideoOff/index.ts +1 -0
- package/src/icons/VideoOff/videoOffPath.ts +2 -0
- package/src/icons/ZoomOut/ZoomOutIcon.tsx +21 -0
- package/src/icons/ZoomOut/index.ts +1 -0
- package/src/icons/ZoomOut/zoomOutPath.ts +2 -0
- package/src/icons/index.ts +12 -0
- package/src/icons/registry.ts +42 -0
- package/src/index.ts +34 -0
- package/src/theme/colors.test.ts +1 -1
- package/src/theme/colors.ts +4 -0
- package/src/theme/typography.ts +5 -5
- package/src/utils/dateUtils.ts +25 -0
- package/src/utils/popoverAlign.ts +85 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { forwardRef, useRef, useMemo, useState, useCallback, useEffect,
|
|
1
|
+
import { forwardRef, useRef, useMemo, useState, useCallback, useEffect, useLayoutEffect, useImperativeHandle, isValidElement, cloneElement } from 'react';
|
|
2
2
|
import { View, Text, Platform, Pressable, StyleSheet, Image, Animated, Easing, TouchableOpacity, TextInput, useWindowDimensions, ScrollView, PanResponder } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import Svg19, { Path } from 'react-native-svg';
|
|
4
4
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
// src/components/Avatar/Avatar.tsx
|
|
@@ -41,10 +41,13 @@ var colors = {
|
|
|
41
41
|
red: "#A63E3E",
|
|
42
42
|
lightGrey: "#B7B7B7",
|
|
43
43
|
green: "#34A853",
|
|
44
|
+
greenMuted: "#34A85329",
|
|
44
45
|
primaryMuted: "#B464360F",
|
|
45
46
|
primaryHover: "#B4643633",
|
|
46
47
|
redMuted: "#A63E3E0F",
|
|
47
48
|
redHover: "#A63E3E33",
|
|
49
|
+
greyMuted: "#76767629",
|
|
50
|
+
cancelledMuted: "#A63E3E29",
|
|
48
51
|
grey0: grey["0"],
|
|
49
52
|
grey50: grey["0.5"],
|
|
50
53
|
grey100: grey["1"],
|
|
@@ -54,6 +57,7 @@ var colors = {
|
|
|
54
57
|
grey400: grey["4"],
|
|
55
58
|
grey500: grey["5"],
|
|
56
59
|
grey600: grey["6"],
|
|
60
|
+
grey650: "#1B1B1B",
|
|
57
61
|
grey700: grey["7"],
|
|
58
62
|
grey750: grey["7.5"],
|
|
59
63
|
grey800: grey["8"],
|
|
@@ -166,7 +170,7 @@ var inputTypography = {
|
|
|
166
170
|
fontFamily: fonts.sans,
|
|
167
171
|
fontSize: 12,
|
|
168
172
|
fontWeight: "400",
|
|
169
|
-
lineHeight:
|
|
173
|
+
lineHeight: 16,
|
|
170
174
|
letterSpacing: 0.36
|
|
171
175
|
},
|
|
172
176
|
hint: {
|
|
@@ -189,7 +193,7 @@ var selectTypography = {
|
|
|
189
193
|
fontFamily: fonts.sans,
|
|
190
194
|
fontSize: 12,
|
|
191
195
|
fontWeight: "400",
|
|
192
|
-
lineHeight:
|
|
196
|
+
lineHeight: 16,
|
|
193
197
|
letterSpacing: 0.36
|
|
194
198
|
},
|
|
195
199
|
hint: {
|
|
@@ -212,7 +216,7 @@ var avatarTypography = {
|
|
|
212
216
|
fontFamily: fonts.sans,
|
|
213
217
|
fontSize: 12,
|
|
214
218
|
fontWeight: "400",
|
|
215
|
-
lineHeight:
|
|
219
|
+
lineHeight: 14,
|
|
216
220
|
letterSpacing: 0
|
|
217
221
|
},
|
|
218
222
|
menuItem: {
|
|
@@ -228,7 +232,7 @@ var datePickerTypography = {
|
|
|
228
232
|
fontFamily: fonts.sans,
|
|
229
233
|
fontSize: 12,
|
|
230
234
|
fontWeight: "400",
|
|
231
|
-
lineHeight:
|
|
235
|
+
lineHeight: 14,
|
|
232
236
|
letterSpacing: 0.36
|
|
233
237
|
},
|
|
234
238
|
rangeLabel: {
|
|
@@ -288,7 +292,7 @@ var textareaTypography = {
|
|
|
288
292
|
fontFamily: fonts.sans,
|
|
289
293
|
fontSize: 12,
|
|
290
294
|
fontWeight: "400",
|
|
291
|
-
lineHeight:
|
|
295
|
+
lineHeight: 16,
|
|
292
296
|
letterSpacing: 0.36
|
|
293
297
|
},
|
|
294
298
|
hint: {
|
|
@@ -304,7 +308,7 @@ function ArrowRightIcon({
|
|
|
304
308
|
color = colors.primary,
|
|
305
309
|
strokeWidth = 2
|
|
306
310
|
}) {
|
|
307
|
-
return /* @__PURE__ */ jsx(
|
|
311
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
308
312
|
Path,
|
|
309
313
|
{
|
|
310
314
|
d: ARROW_RIGHT_PATH,
|
|
@@ -316,6 +320,21 @@ function ArrowRightIcon({
|
|
|
316
320
|
) });
|
|
317
321
|
}
|
|
318
322
|
|
|
323
|
+
// src/icons/AlertTriangle/alertTrianglePath.ts
|
|
324
|
+
var ALERT_TRIANGLE_PATH = "M8.00049 6.00015V8.66682M8.00049 11.3335H8.00715M7.07737 2.59464L1.59411 12.0657C1.28997 12.591 1.1379 12.8537 1.16038 13.0693C1.17998 13.2573 1.2785 13.4282 1.4314 13.5394C1.60671 13.6668 1.91022 13.6668 2.51723 13.6668H13.4837C14.0908 13.6668 14.3943 13.6668 14.5696 13.5394C14.7225 13.4282 14.821 13.2573 14.8406 13.0693C14.8631 12.8537 14.711 12.591 14.4069 12.0657L8.92361 2.59463C8.62056 2.07119 8.46904 1.80947 8.27135 1.72157C8.09892 1.64489 7.90206 1.64489 7.72962 1.72157C7.53194 1.80947 7.38041 2.07119 7.07737 2.59464Z";
|
|
325
|
+
function AlertTriangleIcon({ size = 16, color = "#E38E5E", strokeWidth = 1.5 }) {
|
|
326
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
327
|
+
Path,
|
|
328
|
+
{
|
|
329
|
+
d: ALERT_TRIANGLE_PATH,
|
|
330
|
+
stroke: color,
|
|
331
|
+
strokeWidth,
|
|
332
|
+
strokeLinecap: "round",
|
|
333
|
+
strokeLinejoin: "round"
|
|
334
|
+
}
|
|
335
|
+
) });
|
|
336
|
+
}
|
|
337
|
+
|
|
319
338
|
// src/icons/Store/storeMarkPaths.ts
|
|
320
339
|
var APPLE_PATHS = [
|
|
321
340
|
"M20.8806 15.9539C20.8958 14.804 21.2087 13.6766 21.7901 12.6765C22.3715 11.6763 23.2026 10.8361 24.206 10.2338C23.5685 9.34496 22.7276 8.6135 21.7499 8.0975C20.7723 7.58149 19.6849 7.29515 18.574 7.26122C16.2044 7.01838 13.9072 8.64554 12.6997 8.64554C11.4688 8.64554 9.6097 7.28533 7.6077 7.32554C6.31276 7.36638 5.05074 7.73402 3.9446 8.39262C2.83847 9.05123 1.92593 9.97834 1.29592 11.0836C-1.4331 15.6966 0.602506 22.4762 3.21673 26.205C4.52469 28.0309 6.0533 30.0704 8.05349 29.9981C10.0108 29.9189 10.7418 28.7796 13.1044 28.7796C15.4451 28.7796 16.1309 29.9981 18.1717 29.9521C20.272 29.9189 21.5953 28.1181 22.8573 26.275C23.7971 24.9739 24.5203 23.536 25 22.0145C23.7798 21.5107 22.7385 20.6673 22.006 19.5895C21.2734 18.5118 20.882 17.2474 20.8806 15.9539Z",
|
|
@@ -340,16 +359,16 @@ var GOOGLE_PLAY_PATHS = [
|
|
|
340
359
|
}
|
|
341
360
|
];
|
|
342
361
|
function AppleIcon({ size = 30, color = colors.white }) {
|
|
343
|
-
return /* @__PURE__ */ jsx(
|
|
362
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size * 25 / 30, height: size, viewBox: "0 0 25 30", fill: "none", children: APPLE_PATHS.map((path) => /* @__PURE__ */ jsx(Path, { d: path, fill: color }, path)) });
|
|
344
363
|
}
|
|
345
364
|
function GooglePlayIcon({ size = 30 }) {
|
|
346
|
-
return /* @__PURE__ */ jsx(
|
|
365
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size * 27 / 30, height: size, viewBox: "0 0 27 30", fill: "none", children: GOOGLE_PLAY_PATHS.map((path) => /* @__PURE__ */ jsx(Path, { d: path.d, fill: path.color }, path.d)) });
|
|
347
366
|
}
|
|
348
367
|
|
|
349
368
|
// src/icons/Bag/bagPath.ts
|
|
350
369
|
var BAG_PATH = "M9.23047 9H7.2002C6.08009 9 5.51962 9 5.0918 9.21799C4.71547 9.40973 4.40973 9.71547 4.21799 10.0918C4 10.5196 4 11.0801 4 12.2002V17.8002C4 18.9203 4 19.4801 4.21799 19.9079C4.40973 20.2842 4.71547 20.5905 5.0918 20.7822C5.5192 21 6.07902 21 7.19694 21H16.8031C17.921 21 18.48 21 18.9074 20.7822C19.2837 20.5905 19.5905 20.2842 19.7822 19.9079C20 19.4805 20 18.9215 20 17.8036V12.1969C20 11.079 20 10.5192 19.7822 10.0918C19.5905 9.71547 19.2837 9.40973 18.9074 9.21799C18.4796 9 17.9203 9 16.8002 9H14.7689M9.23047 9H14.7689M9.23047 9C9.10302 9 9 8.89668 9 8.76923V6C9 4.34315 10.3431 3 12 3C13.6569 3 15 4.34315 15 6V8.76923C15 8.89668 14.8964 9 14.7689 9";
|
|
351
370
|
function BagIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
352
|
-
return /* @__PURE__ */ jsx(
|
|
371
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
353
372
|
Path,
|
|
354
373
|
{
|
|
355
374
|
d: BAG_PATH,
|
|
@@ -361,10 +380,16 @@ function BagIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
|
361
380
|
) });
|
|
362
381
|
}
|
|
363
382
|
|
|
383
|
+
// src/icons/Ban/banPath.ts
|
|
384
|
+
var BAN_PATH = "M14.0007 2.33301C11.6932 2.33301 9.43758 3.01725 7.519 4.2992C5.60043 5.58115 4.10508 7.40323 3.22206 9.53503C2.33904 11.6668 2.108 14.0126 2.55816 16.2757C3.00832 18.5388 4.11946 20.6176 5.75108 22.2493C7.38269 23.8809 9.46149 24.992 11.7246 25.4422C13.9877 25.8923 16.3335 25.6613 18.4653 24.7783C20.5971 23.8952 22.4192 22.3999 23.7011 20.4813C24.9831 18.5628 25.6673 16.3071 25.6673 13.9997C25.6673 12.4676 25.3656 10.9505 24.7793 9.53503C24.1929 8.11957 23.3336 6.83345 22.2502 5.7501C21.1669 4.66675 19.8808 3.80738 18.4653 3.22108C17.0498 2.63478 15.5327 2.33301 14.0007 2.33301ZM14.0007 23.333C11.5253 23.333 9.15133 22.3497 7.40099 20.5993C5.65065 18.849 4.66732 16.475 4.66732 13.9997C4.66475 11.9269 5.35917 9.91348 6.63899 8.28301L19.7173 21.3613C18.0869 22.6412 16.0734 23.3356 14.0007 23.333ZM21.3623 19.7163L8.28399 6.63801C9.91446 5.35819 11.9279 4.66376 14.0007 4.66634C16.476 4.66634 18.85 5.64967 20.6003 7.40001C22.3507 9.15035 23.334 11.5243 23.334 13.9997C23.3366 16.0724 22.6421 18.0859 21.3623 19.7163Z";
|
|
385
|
+
function BanIcon({ size = 28, color = colors.primary }) {
|
|
386
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 28 28", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: BAN_PATH, fill: color }) });
|
|
387
|
+
}
|
|
388
|
+
|
|
364
389
|
// src/icons/Bell/bellPath.ts
|
|
365
|
-
var BELL_PATH = "
|
|
366
|
-
function BellIcon({ size =
|
|
367
|
-
return /* @__PURE__ */ jsx(
|
|
390
|
+
var BELL_PATH = "M6.23597 14C6.70606 14.4149 7.32355 14.6667 7.99985 14.6667C8.67615 14.6667 9.29364 14.4149 9.76373 14M11.9998 5.33337C11.9998 4.27251 11.5784 3.25509 10.8283 2.50495C10.0781 1.7548 9.06072 1.33337 7.99985 1.33337C6.93898 1.33337 5.92157 1.7548 5.17142 2.50495C4.42128 3.25509 3.99985 4.27251 3.99985 5.33337C3.99985 7.3935 3.48016 8.80401 2.89963 9.73698C2.40993 10.524 2.16509 10.9174 2.17407 11.0272C2.18401 11.1488 2.20976 11.1951 2.3077 11.2678C2.39616 11.3334 2.79491 11.3334 3.59242 11.3334H12.4073C13.2048 11.3334 13.6035 11.3334 13.692 11.2678C13.7899 11.1951 13.8157 11.1488 13.8256 11.0272C13.8346 10.9174 13.5898 10.524 13.1001 9.73698C12.5195 8.80401 11.9998 7.3935 11.9998 5.33337Z";
|
|
391
|
+
function BellIcon({ size = 16, color = colors.white, strokeWidth = 1.5 }) {
|
|
392
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
368
393
|
Path,
|
|
369
394
|
{
|
|
370
395
|
d: BELL_PATH,
|
|
@@ -379,7 +404,7 @@ function BellIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
379
404
|
// src/icons/Building/buildingPath.ts
|
|
380
405
|
var BUILDING_PATH = "M7.5 9.16659V16.6666M7.5 9.16659H3.83301C3.3663 9.16659 3.13318 9.16659 2.95492 9.25741C2.79811 9.33731 2.67072 9.4647 2.59083 9.6215C2.5 9.79976 2.5 10.0333 2.5 10.5V16.6666H7.5M7.5 9.16659V4.66667C7.5 4.19996 7.5 3.96643 7.59083 3.78817C7.67072 3.63137 7.79811 3.50397 7.95492 3.42408C8.13317 3.33325 8.3663 3.33325 8.83301 3.33325H11.1663C11.6331 3.33325 11.8669 3.33325 12.0452 3.42408C12.202 3.50397 12.329 3.63137 12.4089 3.78817C12.4997 3.96643 12.5 4.19996 12.5 4.66667V6.66659M7.5 16.6666H12.5M12.5 16.6666L17.5 16.6667V8C17.5 7.53329 17.4997 7.29976 17.4089 7.1215C17.329 6.9647 17.2024 6.83731 17.0456 6.75741C16.8674 6.66659 16.6334 6.66659 16.1667 6.66659H12.5M12.5 16.6666V6.66659";
|
|
381
406
|
function BuildingIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
382
|
-
return /* @__PURE__ */ jsx(
|
|
407
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
383
408
|
Path,
|
|
384
409
|
{
|
|
385
410
|
d: BUILDING_PATH,
|
|
@@ -394,7 +419,7 @@ function BuildingIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
394
419
|
// src/icons/Calendar/calendarPath.ts
|
|
395
420
|
var CALENDAR_PATH = "M14 6.66668H2M14 8.33334V5.86668C14 4.74657 14 4.18652 13.782 3.7587C13.5903 3.38237 13.2843 3.07641 12.908 2.88466C12.4802 2.66668 11.9201 2.66668 10.8 2.66668H5.2C4.0799 2.66668 3.51984 2.66668 3.09202 2.88466C2.71569 3.07641 2.40973 3.38237 2.21799 3.7587C2 4.18652 2 4.74657 2 5.86668V11.4667C2 12.5868 2 13.1468 2.21799 13.5747C2.40973 13.951 2.71569 14.2569 3.09202 14.4487C3.51984 14.6667 4.0799 14.6667 5.2 14.6667H8M10.6667 1.33334V4.00001M5.33333 1.33334V4.00001M9.66667 12.6667L11 14L14 11";
|
|
396
421
|
function CalendarIcon({ size = 20, color = colors.primary, strokeWidth = 1.5 }) {
|
|
397
|
-
return /* @__PURE__ */ jsx(
|
|
422
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
398
423
|
Path,
|
|
399
424
|
{
|
|
400
425
|
d: CALENDAR_PATH,
|
|
@@ -413,7 +438,7 @@ function CalendarOutlineIcon({
|
|
|
413
438
|
color = colors.primary,
|
|
414
439
|
strokeWidth = 1.5
|
|
415
440
|
}) {
|
|
416
|
-
return /* @__PURE__ */ jsx(
|
|
441
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
417
442
|
Path,
|
|
418
443
|
{
|
|
419
444
|
d: CALENDAR_OUTLINE_PATH,
|
|
@@ -428,7 +453,7 @@ function CalendarOutlineIcon({
|
|
|
428
453
|
// src/icons/Camera/cameraPath.ts
|
|
429
454
|
var CAMERA_PATH = "M9.48898 7H6.2002C5.08009 7 4.51962 7 4.0918 7.21799C3.71547 7.40973 3.40973 7.71547 3.21799 8.0918C3 8.51962 3 9.08009 3 10.2002V15.8002C3 16.9203 3 17.4796 3.21799 17.9074C3.40973 18.2837 3.71547 18.5905 4.0918 18.7822C4.5192 19 5.07899 19 6.19691 19H17.8031C18.921 19 19.48 19 19.9074 18.7822C20.2837 18.5905 20.5905 18.2837 20.7822 17.9074C21 17.48 21 16.921 21 15.8031V10.1969C21 9.07899 21 8.5192 20.7822 8.0918C20.5905 7.71547 20.2837 7.40973 19.9074 7.21799C19.4796 7 18.9203 7 17.8002 7H14.5108M9.48898 7H9.55078M9.48898 7C9.50151 7.00001 9.51468 7 9.52857 7L9.55078 7M9.48898 7C9.38286 6.99995 9.32339 6.99941 9.27637 6.99414C8.68878 6.92835 8.28578 6.36908 8.40918 5.79084C8.42066 5.73703 8.44336 5.66894 8.4883 5.53412L8.49023 5.52841C8.54156 5.37443 8.56723 5.29743 8.59558 5.22949C8.88586 4.53389 9.54322 4.06083 10.2949 4.00541C10.3683 4 10.449 4 10.6113 4H13.3886C13.5509 4 13.6322 4 13.7057 4.00541C14.4574 4.06083 15.114 4.53389 15.4043 5.22949C15.4326 5.29743 15.4584 5.37434 15.5098 5.52832C15.556 5.66699 15.5791 5.73636 15.5908 5.79093C15.7142 6.36917 15.3118 6.92835 14.7242 6.99414C14.6772 6.99941 14.6171 6.99995 14.5108 7M9.55078 7H14.449M14.449 7H14.5108M14.449 7L14.4712 7C14.4851 7 14.4983 7.00001 14.5108 7M12 16C10.3431 16 9 14.6569 9 13C9 11.3431 10.3431 10 12 10C13.6569 10 15 11.3431 15 13C15 14.6569 13.6569 16 12 16Z";
|
|
430
455
|
function CameraIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
431
|
-
return /* @__PURE__ */ jsx(
|
|
456
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
432
457
|
Path,
|
|
433
458
|
{
|
|
434
459
|
d: CAMERA_PATH,
|
|
@@ -443,7 +468,7 @@ function CameraIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
|
443
468
|
// src/icons/Check/checkPath.ts
|
|
444
469
|
var CHECK_PATH = "M4.16669 10.8333L7.50002 14.1667L15.8334 5.83334";
|
|
445
470
|
function CheckIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
446
|
-
return /* @__PURE__ */ jsx(
|
|
471
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
447
472
|
Path,
|
|
448
473
|
{
|
|
449
474
|
d: CHECK_PATH,
|
|
@@ -458,7 +483,7 @@ function CheckIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
458
483
|
// src/icons/CheckBadge/checkBadgePath.ts
|
|
459
484
|
var CHECK_BADGE_PATH = "M12.5 8.33317L9.16663 11.6665L7.49996 9.99984M11.0384 2.88233L12.0558 3.74941C12.3122 3.96786 12.6305 4.09992 12.9662 4.12671L14.2987 4.23291C15.0822 4.29543 15.7045 4.91733 15.767 5.70077L15.8729 7.03353C15.8997 7.36925 16.0322 7.68799 16.2507 7.94433L17.1174 8.96152C17.6272 9.5597 17.6272 10.4396 17.1175 11.0378L16.2508 12.0551C16.0323 12.3115 15.9 12.6303 15.8732 12.9661L15.7666 14.2986C15.704 15.082 15.0827 15.7043 14.2993 15.7668L12.9663 15.8732C12.6305 15.9 12.312 16.0317 12.0556 16.2502L11.0384 17.1173C10.4402 17.627 9.55973 17.6271 8.96155 17.1174L7.9443 16.2502C7.68796 16.0318 7.36938 15.8998 7.03365 15.8731L5.70064 15.7668C4.9172 15.7043 4.29588 15.0822 4.23336 14.2987L4.12675 12.9661C4.09996 12.6304 3.96759 12.3118 3.74915 12.0555L2.88245 11.0378C2.37268 10.4397 2.37244 9.56002 2.88221 8.96184L3.74969 7.94418C3.96814 7.68784 4.09923 7.36926 4.12602 7.03353L4.23263 5.70093C4.29515 4.91749 4.91826 4.29535 5.70171 4.23283L7.03324 4.12663C7.36897 4.09984 7.68771 3.96788 7.94404 3.74943L8.96164 2.88233C9.55982 2.37256 10.4402 2.37256 11.0384 2.88233Z";
|
|
460
485
|
function CheckBadgeIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
461
|
-
return /* @__PURE__ */ jsx(
|
|
486
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
462
487
|
Path,
|
|
463
488
|
{
|
|
464
489
|
d: CHECK_BADGE_PATH,
|
|
@@ -477,7 +502,7 @@ function ChevronDownIcon({
|
|
|
477
502
|
color = colors.primary,
|
|
478
503
|
strokeWidth = 2
|
|
479
504
|
}) {
|
|
480
|
-
return /* @__PURE__ */ jsx(
|
|
505
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
481
506
|
Path,
|
|
482
507
|
{
|
|
483
508
|
d: CHEVRON_DOWN_PATH,
|
|
@@ -492,7 +517,7 @@ function ChevronDownIcon({
|
|
|
492
517
|
// src/icons/ChevronLeft/chevronLeftPath.ts
|
|
493
518
|
var CHEVRON_LEFT_PATH = "M12.5 15L7.5 10L12.5 5";
|
|
494
519
|
function ChevronLeftIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
495
|
-
return /* @__PURE__ */ jsx(
|
|
520
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
496
521
|
Path,
|
|
497
522
|
{
|
|
498
523
|
d: CHEVRON_LEFT_PATH,
|
|
@@ -507,7 +532,7 @@ function ChevronLeftIcon({ size = 20, color = colors.primary, strokeWidth = 2 })
|
|
|
507
532
|
// src/icons/Clock/clockPath.ts
|
|
508
533
|
var CLOCK_PATH = "M12 7V12H17M12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21Z";
|
|
509
534
|
function ClockIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
510
|
-
return /* @__PURE__ */ jsx(
|
|
535
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
511
536
|
Path,
|
|
512
537
|
{
|
|
513
538
|
d: CLOCK_PATH,
|
|
@@ -522,7 +547,7 @@ function ClockIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
|
522
547
|
// src/icons/Close/closePath.ts
|
|
523
548
|
var CLOSE_PATH = "M15 5L5 15M5 5L15 15";
|
|
524
549
|
function CloseIcon({ size = 20, color = colors.white, strokeWidth = 2 }) {
|
|
525
|
-
return /* @__PURE__ */ jsx(
|
|
550
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
526
551
|
Path,
|
|
527
552
|
{
|
|
528
553
|
d: CLOSE_PATH,
|
|
@@ -534,6 +559,21 @@ function CloseIcon({ size = 20, color = colors.white, strokeWidth = 2 }) {
|
|
|
534
559
|
) });
|
|
535
560
|
}
|
|
536
561
|
|
|
562
|
+
// src/icons/Edit/editPath.ts
|
|
563
|
+
var EDIT_PATH = "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7M18.375 2.625a2.121 2.121 0 1 1 3 3L12.15 13.85a.75.75 0 0 1-.33.2l-3.07.8a.5.5 0 0 1-.61-.61l.8-3.07a.75.75 0 0 1 .2-.33z";
|
|
564
|
+
function EditIcon({ size = 12, color = colors.grey0, strokeWidth = 2 }) {
|
|
565
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
566
|
+
Path,
|
|
567
|
+
{
|
|
568
|
+
d: EDIT_PATH,
|
|
569
|
+
stroke: color,
|
|
570
|
+
strokeWidth,
|
|
571
|
+
strokeLinecap: "round",
|
|
572
|
+
strokeLinejoin: "round"
|
|
573
|
+
}
|
|
574
|
+
) });
|
|
575
|
+
}
|
|
576
|
+
|
|
537
577
|
// src/icons/CottageCard/cottageCardPaths.ts
|
|
538
578
|
var SAVE_HEART_PATH = "M8 5.12971C6.66667 2.00008 2 2.33341 2 6.33343C2 10.3335 8 13.6669 8 13.6669C8 13.6669 14 10.3335 14 6.33343C14 2.33341 9.33333 2.00008 8 5.12971Z";
|
|
539
579
|
var RATING_STAR_PATH = "M1.16748 5.16814C1.01086 5.0233 1.09593 4.76145 1.30778 4.73633L4.30957 4.38029C4.39591 4.37005 4.47091 4.31583 4.50732 4.23688L5.77344 1.49199C5.86279 1.29827 6.13819 1.29823 6.22754 1.49195L7.49365 4.23682C7.53007 4.31577 7.60458 4.37014 7.69092 4.38038L10.6929 4.73633C10.9047 4.76145 10.9896 5.02338 10.8329 5.16822L8.61388 7.22071C8.55005 7.27974 8.52163 7.36761 8.53857 7.45289L9.1275 10.4177C9.16908 10.627 8.94639 10.7891 8.76024 10.6849L6.12257 9.20806C6.0467 9.16559 5.95453 9.16579 5.87866 9.20826L3.24072 10.6845C3.05457 10.7887 2.83147 10.627 2.87305 10.4177L3.46207 7.45307C3.47902 7.36779 3.45067 7.27972 3.38683 7.22069L1.16748 5.16814Z";
|
|
@@ -549,7 +589,7 @@ function SaveHeartIcon({
|
|
|
549
589
|
strokeWidth = 2,
|
|
550
590
|
fillOpacity = 0
|
|
551
591
|
}) {
|
|
552
|
-
return /* @__PURE__ */ jsx(
|
|
592
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
553
593
|
Path,
|
|
554
594
|
{
|
|
555
595
|
d: SAVE_HEART_PATH,
|
|
@@ -563,7 +603,7 @@ function SaveHeartIcon({
|
|
|
563
603
|
) });
|
|
564
604
|
}
|
|
565
605
|
function RatingStarIcon({ size = 12, color = "#E38E5E", strokeWidth = 2 }) {
|
|
566
|
-
return /* @__PURE__ */ jsx(
|
|
606
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ jsx(
|
|
567
607
|
Path,
|
|
568
608
|
{
|
|
569
609
|
d: RATING_STAR_PATH,
|
|
@@ -581,7 +621,7 @@ function CardLocationIcon({
|
|
|
581
621
|
strokeWidth = 1.5,
|
|
582
622
|
secondaryColor = colors.grey700
|
|
583
623
|
}) {
|
|
584
|
-
return /* @__PURE__ */ jsxs(
|
|
624
|
+
return /* @__PURE__ */ jsxs(Svg19, { width: size, height: size, viewBox: "0 0 13 13", fill: "none", children: [
|
|
585
625
|
/* @__PURE__ */ jsx(
|
|
586
626
|
Path,
|
|
587
627
|
{
|
|
@@ -620,7 +660,7 @@ function FilledCardIcon({
|
|
|
620
660
|
color,
|
|
621
661
|
fillOpacity
|
|
622
662
|
}) {
|
|
623
|
-
return /* @__PURE__ */ jsx(
|
|
663
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: path, fill: color, fillOpacity }) });
|
|
624
664
|
}
|
|
625
665
|
function GuestsIcon({ size = 16, color = colors.white, fillOpacity = 0.4 }) {
|
|
626
666
|
return /* @__PURE__ */ jsx(FilledCardIcon, { path: GUESTS_PATH, size, color, fillOpacity });
|
|
@@ -634,6 +674,7 @@ function BathroomsIcon({ size = 16, color = colors.white, fillOpacity = 0.4 }) {
|
|
|
634
674
|
|
|
635
675
|
// src/icons/CottageDetail/cottageDetailPaths.ts
|
|
636
676
|
var SHARE_PATH = "M7.5 11.25L12.5 13.75M12.5 6.25L7.5 8.75M15 17.5C13.6193 17.5 12.5 16.3807 12.5 15C12.5 13.6193 13.6193 12.5 15 12.5C16.3807 12.5 17.5 13.6193 17.5 15C17.5 16.3807 16.3807 17.5 15 17.5ZM5 12.5C3.61929 12.5 2.5 11.3807 2.5 10C2.5 8.61929 3.61929 7.5 5 7.5C6.38071 7.5 7.5 8.61929 7.5 10C7.5 11.3807 6.38071 12.5 5 12.5ZM15 7.5C13.6193 7.5 12.5 6.38071 12.5 5C12.5 3.61929 13.6193 2.5 15 2.5C16.3807 2.5 17.5 3.61929 17.5 5C17.5 6.38071 16.3807 7.5 15 7.5Z";
|
|
677
|
+
var DOWNLOAD_PATH = "M21 21H3M6 11L12 17L18 11M12 17V3";
|
|
637
678
|
var AREA_EXPAND_PATHS = [
|
|
638
679
|
"M15 3H21V9",
|
|
639
680
|
"M9 21H3V15",
|
|
@@ -647,7 +688,7 @@ var COPY_PATH = "M6.66699 13.3337V15.667C6.66699 16.6004 6.66699 17.0671 6.84865
|
|
|
647
688
|
var CHECK_SUCCESS_PATH = "M16.6663 5L7.49967 14.1667L3.33301 10";
|
|
648
689
|
var TOOLTIP_ARROW_PATH = "M3.21121 6.42229C3.94826 7.89639 6.05187 7.89639 6.78892 6.42229L10.0001 0H6.2595e-05L3.21121 6.42229Z";
|
|
649
690
|
function ShareIcon({ size = 20, color = colors.white, strokeWidth = 2 }) {
|
|
650
|
-
return /* @__PURE__ */ jsx(
|
|
691
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
651
692
|
Path,
|
|
652
693
|
{
|
|
653
694
|
d: SHARE_PATH,
|
|
@@ -658,8 +699,20 @@ function ShareIcon({ size = 20, color = colors.white, strokeWidth = 2 }) {
|
|
|
658
699
|
}
|
|
659
700
|
) });
|
|
660
701
|
}
|
|
702
|
+
function DownloadIcon({ size = 24, color = colors.white, strokeWidth = 2 }) {
|
|
703
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
704
|
+
Path,
|
|
705
|
+
{
|
|
706
|
+
d: DOWNLOAD_PATH,
|
|
707
|
+
stroke: color,
|
|
708
|
+
strokeWidth,
|
|
709
|
+
strokeLinecap: "round",
|
|
710
|
+
strokeLinejoin: "round"
|
|
711
|
+
}
|
|
712
|
+
) });
|
|
713
|
+
}
|
|
661
714
|
function AreaExpandIcon({ size = 24, color = colors.white, strokeWidth = 2 }) {
|
|
662
|
-
return /* @__PURE__ */ jsx(
|
|
715
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: AREA_EXPAND_PATHS.map((path) => /* @__PURE__ */ jsx(
|
|
663
716
|
Path,
|
|
664
717
|
{
|
|
665
718
|
d: path,
|
|
@@ -672,16 +725,16 @@ function AreaExpandIcon({ size = 24, color = colors.white, strokeWidth = 2 }) {
|
|
|
672
725
|
)) });
|
|
673
726
|
}
|
|
674
727
|
function ClockFilledIcon({ size = 16, color = colors.white }) {
|
|
675
|
-
return /* @__PURE__ */ jsx(
|
|
728
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: CLOCK_FILLED_PATH, fill: color }) });
|
|
676
729
|
}
|
|
677
730
|
function QrCodeIcon({ size = 24, color = colors.primary }) {
|
|
678
|
-
return /* @__PURE__ */ jsx(
|
|
731
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: QR_CODE_PATH, fill: color }) });
|
|
679
732
|
}
|
|
680
733
|
function WhatsAppIcon({ size = 24, color = colors.white }) {
|
|
681
|
-
return /* @__PURE__ */ jsx(
|
|
734
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: WHATSAPP_PATH, fill: color }) });
|
|
682
735
|
}
|
|
683
736
|
function CopyIcon({ size = 20, color = colors.grey200, strokeWidth = 2 }) {
|
|
684
|
-
return /* @__PURE__ */ jsx(
|
|
737
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
685
738
|
Path,
|
|
686
739
|
{
|
|
687
740
|
d: COPY_PATH,
|
|
@@ -693,7 +746,7 @@ function CopyIcon({ size = 20, color = colors.grey200, strokeWidth = 2 }) {
|
|
|
693
746
|
) });
|
|
694
747
|
}
|
|
695
748
|
function CheckSuccessIcon({ size = 20, color = colors.green, strokeWidth = 2 }) {
|
|
696
|
-
return /* @__PURE__ */ jsx(
|
|
749
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
697
750
|
Path,
|
|
698
751
|
{
|
|
699
752
|
d: CHECK_SUCCESS_PATH,
|
|
@@ -705,19 +758,77 @@ function CheckSuccessIcon({ size = 20, color = colors.green, strokeWidth = 2 })
|
|
|
705
758
|
) });
|
|
706
759
|
}
|
|
707
760
|
function TooltipArrowIcon({ size = 10, color = colors.grey600 }) {
|
|
708
|
-
return /* @__PURE__ */ jsx(
|
|
761
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size * 8 / 10, viewBox: "0 0 10 8", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: TOOLTIP_ARROW_PATH, fill: color }) });
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
// src/icons/HouseRules/houseRulesPaths.ts
|
|
765
|
+
var QUIET_HOURS_PATH = "M9.99935 4.99996C9.88991 4.99993 9.78153 5.02147 9.68042 5.06334C9.5793 5.1052 9.48742 5.16659 9.41003 5.24397C9.33265 5.32136 9.27126 5.41324 9.2294 5.51436C9.18753 5.61547 9.16599 5.72385 9.16602 5.83329V8.55628L8.2513 8.02812C8.05987 7.91775 7.83243 7.88791 7.61901 7.94518C7.40558 8.00245 7.22363 8.14213 7.11316 8.33351C7.00269 8.52489 6.97274 8.7523 7.0299 8.96576C7.08706 9.17921 7.22665 9.36123 7.41797 9.4718L9.58269 10.7218C9.70938 10.7949 9.8531 10.8335 9.99939 10.8334C10.1457 10.8334 10.2894 10.7949 10.4161 10.7218C10.5428 10.6486 10.648 10.5434 10.7211 10.4167C10.7942 10.29 10.8327 10.1463 10.8327 9.99996V5.83329C10.8327 5.72385 10.8112 5.61547 10.7693 5.51436C10.7274 5.41324 10.6661 5.32136 10.5887 5.24397C10.5113 5.16659 10.4194 5.1052 10.3183 5.06334C10.2172 5.02147 10.1088 4.99993 9.99935 4.99996V4.99996ZM9.99935 1.66663C8.35118 1.66663 6.74001 2.15537 5.3696 3.07105C3.99919 3.98672 2.93109 5.28821 2.30036 6.81093C1.66963 8.33365 1.5046 10.0092 1.82614 11.6257C2.14769 13.2422 2.94136 14.7271 4.1068 15.8925C5.27223 17.058 6.75709 17.8516 8.3736 18.1732C9.99011 18.4947 11.6657 18.3297 13.1884 17.699C14.7111 17.0682 16.0126 16.0001 16.9283 14.6297C17.8439 13.2593 18.3327 11.6481 18.3327 9.99996C18.3302 7.7906 17.4514 5.67245 15.8891 4.11019C14.3269 2.54794 12.2087 1.66915 9.99935 1.66663V1.66663ZM9.99935 16.6666C8.68081 16.6666 7.39188 16.2756 6.29555 15.5431C5.19922 14.8105 4.34474 13.7694 3.84016 12.5512C3.33557 11.333 3.20355 9.99256 3.46078 8.69936C3.71802 7.40615 4.35296 6.21826 5.28531 5.28591C6.21766 4.35356 7.40554 3.71863 8.69875 3.46139C9.99196 3.20416 11.3324 3.33618 12.5506 3.84076C13.7687 4.34535 14.8099 5.19983 15.5425 6.29616C16.275 7.39249 16.666 8.68142 16.666 9.99996C16.664 11.7674 15.961 13.462 14.7112 14.7118C13.4614 15.9616 11.7668 16.6646 9.99935 16.6666V16.6666Z";
|
|
766
|
+
var NO_SMOKING_PATHS = [
|
|
767
|
+
"M6.66602 10.8334V14.1667",
|
|
768
|
+
"M13.334 4.16663V4.58329C13.334 5.02532 13.5096 5.44924 13.8221 5.7618C14.1347 6.07436 14.5586 6.24996 15.0007 6.24996C15.4427 6.24996 15.8666 6.42555 16.1792 6.73811C16.4917 7.05068 16.6673 7.4746 16.6673 7.91663V8.33329",
|
|
769
|
+
"M2.5 2.5L17.5 17.5",
|
|
770
|
+
"M14.1667 10.8334H16.6667C16.8877 10.8334 17.0996 10.9212 17.2559 11.0775C17.4122 11.2337 17.5 11.4457 17.5 11.6667V13.3334C17.5 13.5667 17.4042 13.7775 17.25 13.9284M14.1667 14.1667H3.33333C3.11232 14.1667 2.90036 14.0789 2.74408 13.9226C2.5878 13.7663 2.5 13.5544 2.5 13.3334V11.6667C2.5 11.4457 2.5878 11.2337 2.74408 11.0775C2.90036 10.9212 3.11232 10.8334 3.33333 10.8334H10.8333"
|
|
771
|
+
];
|
|
772
|
+
var PAW_PATHS = [
|
|
773
|
+
"M12.25 11.25C11.3334 9.58329 11.0492 9.16663 10.0001 9.16663C8.95088 9.16663 8.55338 9.79579 7.63672 11.4558C6.85172 12.875 5.26505 12.9933 4.86922 14.1983C4.78838 14.4191 4.74838 14.7625 4.75005 15C4.75005 15.98 5.40588 16.6666 6.25005 16.6666C7.29922 16.6666 8.75005 15.8333 10.0001 15.8333C11.2501 15.8333 12.7009 16.6666 13.7501 16.6666C14.5942 16.6666 15.25 15.9808 15.25 15C15.25 14.7625 15.2092 14.4191 15.1284 14.1983C14.7325 12.9891 13.035 12.6691 12.25 11.25Z",
|
|
774
|
+
"M16.8241 6.73496C16.7171 6.68971 16.602 6.66647 16.4858 6.66663H16.4733C15.8608 6.67663 15.1733 7.29163 14.8125 8.22163C14.38 9.33413 14.5791 10.4716 15.2608 10.765C15.3683 10.8108 15.4833 10.8333 15.5991 10.8333C16.215 10.8333 16.9116 10.215 17.275 9.27829C17.705 8.16579 17.5016 7.02829 16.8241 6.73496Z",
|
|
775
|
+
"M7.89628 7.50004C7.94211 7.50004 7.98711 7.50004 8.03211 7.49087C8.81878 7.38421 9.30961 6.36921 9.13211 5.22254C8.96295 4.14171 8.25961 3.33337 7.52211 3.33337C7.47628 3.33337 7.43128 3.33337 7.38628 3.34254C6.59961 3.44921 6.10878 4.46421 6.28628 5.61087C6.45628 6.68837 7.15961 7.50004 7.89711 7.50004H7.89628Z",
|
|
776
|
+
"M13.7139 5.61088C13.8922 4.46421 13.4014 3.44921 12.6139 3.34254C12.5692 3.33635 12.5241 3.33329 12.4789 3.33338C11.7414 3.33338 11.0389 4.14171 10.8706 5.22254C10.6922 6.36921 11.1831 7.38421 11.9706 7.49088C12.0156 7.49671 12.0606 7.50004 12.1056 7.50004C12.8431 7.50004 13.5472 6.68838 13.7139 5.61088Z",
|
|
777
|
+
"M4.74152 10.765C5.42152 10.4716 5.61985 9.33246 5.18819 8.22163C4.82485 7.28496 4.12902 6.66663 3.51402 6.66663C3.39735 6.66663 3.28319 6.68913 3.17485 6.73496C2.49485 7.02829 2.29652 8.16746 2.72819 9.27829C3.09152 10.215 3.78735 10.8333 4.40235 10.8333C4.51902 10.8333 4.63319 10.8108 4.74152 10.765Z"
|
|
778
|
+
];
|
|
779
|
+
var TRASH_PATH = "M7.5 2.5H12.5M2.5 5H17.5M15.8333 5L15.2489 13.7661C15.1612 15.0813 15.1174 15.7389 14.8333 16.2375C14.5833 16.6765 14.206 17.0294 13.7514 17.2497C13.235 17.5 12.5759 17.5 11.2578 17.5H8.74221C7.42409 17.5 6.76503 17.5 6.24861 17.2497C5.79396 17.0294 5.41674 16.6765 5.16665 16.2375C4.88259 15.7389 4.83875 15.0813 4.75107 13.7661L4.16667 5M8.33333 8.75V12.9167M11.6667 8.75V12.9167";
|
|
780
|
+
function QuietHoursIcon({ size = 20, color = colors.white }) {
|
|
781
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: QUIET_HOURS_PATH, fill: color }) });
|
|
782
|
+
}
|
|
783
|
+
function NoSmokingIcon({ size = 20, color = colors.white, strokeWidth = 1.5 }) {
|
|
784
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: NO_SMOKING_PATHS.map((d) => /* @__PURE__ */ jsx(
|
|
785
|
+
Path,
|
|
786
|
+
{
|
|
787
|
+
d,
|
|
788
|
+
stroke: color,
|
|
789
|
+
strokeWidth,
|
|
790
|
+
strokeLinecap: "round",
|
|
791
|
+
strokeLinejoin: "round"
|
|
792
|
+
},
|
|
793
|
+
d
|
|
794
|
+
)) });
|
|
795
|
+
}
|
|
796
|
+
function PawIcon({ size = 20, color = colors.white, strokeWidth = 1.5 }) {
|
|
797
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: PAW_PATHS.map((d) => /* @__PURE__ */ jsx(
|
|
798
|
+
Path,
|
|
799
|
+
{
|
|
800
|
+
d,
|
|
801
|
+
stroke: color,
|
|
802
|
+
strokeWidth,
|
|
803
|
+
strokeLinecap: "round",
|
|
804
|
+
strokeLinejoin: "round"
|
|
805
|
+
},
|
|
806
|
+
d
|
|
807
|
+
)) });
|
|
808
|
+
}
|
|
809
|
+
function TrashIcon({ size = 20, color = colors.white, strokeWidth = 2 }) {
|
|
810
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
811
|
+
Path,
|
|
812
|
+
{
|
|
813
|
+
d: TRASH_PATH,
|
|
814
|
+
stroke: color,
|
|
815
|
+
strokeWidth,
|
|
816
|
+
strokeLinecap: "round",
|
|
817
|
+
strokeLinejoin: "round"
|
|
818
|
+
}
|
|
819
|
+
) });
|
|
709
820
|
}
|
|
710
821
|
|
|
711
822
|
// src/icons/Facebook/facebookPath.ts
|
|
712
823
|
var FACEBOOK_PATH = "M10.0003 1.69922C5.41699 1.69922 1.66699 5.44089 1.66699 10.0492C1.66699 14.2159 4.71699 17.6742 8.70033 18.2992V12.4659H6.58366V10.0492H8.70033V8.20755C8.70033 6.11589 9.94199 4.96589 11.8503 4.96589C12.7587 4.96589 13.7087 5.12422 13.7087 5.12422V7.18255H12.6587C11.6253 7.18255 11.3003 7.82422 11.3003 8.48255V10.0492H13.617L13.242 12.4659H11.3003V18.2992C13.264 17.9891 15.0522 16.9871 16.3419 15.4743C17.6317 13.9614 18.3381 12.0373 18.3337 10.0492C18.3337 5.44089 14.5837 1.69922 10.0003 1.69922Z";
|
|
713
824
|
function FacebookIcon({ size = 20, color = colors.white }) {
|
|
714
|
-
return /* @__PURE__ */ jsx(
|
|
825
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: FACEBOOK_PATH, fill: color }) });
|
|
715
826
|
}
|
|
716
827
|
|
|
717
828
|
// src/icons/Filters/filtersPath.ts
|
|
718
829
|
var FILTERS_PATH = "M5 10H15M2.5 5H17.5M7.5 15H12.5";
|
|
719
830
|
function FiltersIcon({ size = 20, color = colors.grey200, strokeWidth = 2 }) {
|
|
720
|
-
return /* @__PURE__ */ jsx(
|
|
831
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
721
832
|
Path,
|
|
722
833
|
{
|
|
723
834
|
d: FILTERS_PATH,
|
|
@@ -729,10 +840,25 @@ function FiltersIcon({ size = 20, color = colors.grey200, strokeWidth = 2 }) {
|
|
|
729
840
|
) });
|
|
730
841
|
}
|
|
731
842
|
|
|
843
|
+
// src/icons/Fullscreen/fullscreenPath.ts
|
|
844
|
+
var FULLSCREEN_PATH = "M16 8L21 3M21 8V3H16M8 8L3 3M8 3L3 3L3 8M8 16L3 21M3 16L3 21H8M16 16L21 21M16 21H21V16";
|
|
845
|
+
function FullscreenIcon({ size = 24, color = colors.white, strokeWidth = 2 }) {
|
|
846
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
847
|
+
Path,
|
|
848
|
+
{
|
|
849
|
+
d: FULLSCREEN_PATH,
|
|
850
|
+
stroke: color,
|
|
851
|
+
strokeWidth,
|
|
852
|
+
strokeLinecap: "round",
|
|
853
|
+
strokeLinejoin: "round"
|
|
854
|
+
}
|
|
855
|
+
) });
|
|
856
|
+
}
|
|
857
|
+
|
|
732
858
|
// src/icons/Heart/heartPath.ts
|
|
733
859
|
var HEART_PATH = "M7.99547 3.42388C6.66257 1.8656 4.43987 1.44643 2.76984 2.87334C1.0998 4.30026 0.864686 6.68598 2.17617 8.3736C3.26659 9.77674 6.56656 12.7361 7.64811 13.6939C7.76911 13.801 7.82961 13.8546 7.90018 13.8757C7.96178 13.8941 8.02917 13.8941 8.09077 13.8757C8.16134 13.8546 8.22184 13.801 8.34284 13.6939C9.42439 12.7361 12.7244 9.77674 13.8148 8.3736C15.1263 6.68598 14.9199 4.28525 13.2211 2.87334C11.5224 1.46144 9.32838 1.8656 7.99547 3.42388Z";
|
|
734
860
|
function HeartIcon({ size = 20, color = colors.primary, strokeWidth = 1.5 }) {
|
|
735
|
-
return /* @__PURE__ */ jsx(
|
|
861
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
736
862
|
Path,
|
|
737
863
|
{
|
|
738
864
|
d: HEART_PATH,
|
|
@@ -749,7 +875,7 @@ function HeartIcon({ size = 20, color = colors.primary, strokeWidth = 1.5 }) {
|
|
|
749
875
|
// src/icons/Globe/globePath.ts
|
|
750
876
|
var GLOBE_PATH = "M18.3333 10C18.3333 14.6024 14.6024 18.3333 10 18.3333M18.3333 10C18.3333 5.39763 14.6024 1.66667 10 1.66667M18.3333 10H1.66667M10 18.3333C5.39763 18.3333 1.66667 14.6024 1.66667 10M10 18.3333C12.0833 16.0511 13.2675 13.0836 13.3333 10C13.2675 6.91643 12.0833 3.94892 10 1.66667M10 18.3333C7.91667 16.0511 6.73248 13.0836 6.66667 10C6.73248 6.91643 7.91667 3.94892 10 1.66667M1.66667 10C1.66667 5.39763 5.39763 1.66667 10 1.66667";
|
|
751
877
|
function GlobeIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
752
|
-
return /* @__PURE__ */ jsx(
|
|
878
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
753
879
|
Path,
|
|
754
880
|
{
|
|
755
881
|
d: GLOBE_PATH,
|
|
@@ -768,7 +894,7 @@ function HelpCircleIcon({
|
|
|
768
894
|
color = colors.primary,
|
|
769
895
|
strokeWidth = 1.5
|
|
770
896
|
}) {
|
|
771
|
-
return /* @__PURE__ */ jsx(
|
|
897
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
772
898
|
Path,
|
|
773
899
|
{
|
|
774
900
|
d: HELP_CIRCLE_PATH,
|
|
@@ -781,9 +907,9 @@ function HelpCircleIcon({
|
|
|
781
907
|
}
|
|
782
908
|
|
|
783
909
|
// src/icons/Home/homePath.ts
|
|
784
|
-
var HOME_PATH = "
|
|
910
|
+
var HOME_PATH = "M6.77168 11.6663C7.14172 13.104 8.4468 14.1663 10 14.1663C11.5532 14.1663 12.8583 13.104 13.2283 11.6663M9.18141 2.30297L3.52949 6.6989C3.15168 6.99276 2.96278 7.13968 2.82669 7.32368C2.70614 7.48667 2.61633 7.67029 2.56169 7.86551C2.5 8.0859 2.5 8.32521 2.5 8.80384V14.833C2.5 15.7664 2.5 16.2331 2.68166 16.5896C2.84144 16.9032 3.09641 17.1582 3.41002 17.318C3.76654 17.4996 4.23325 17.4996 5.16667 17.4996H14.8333C15.7668 17.4996 16.2335 17.4996 16.59 17.318C16.9036 17.1582 17.1586 16.9032 17.3183 16.5896C17.5 16.2331 17.5 15.7664 17.5 14.833V8.80384C17.5 8.32521 17.5 8.0859 17.4383 7.86551C17.3837 7.67029 17.2939 7.48667 17.1733 7.32368C17.0372 7.13968 16.8483 6.99276 16.4705 6.69891L10.8186 2.30297C10.5258 2.07526 10.3794 1.9614 10.2178 1.91763C10.0752 1.87902 9.92484 1.87902 9.78221 1.91763C9.62057 1.9614 9.47418 2.07526 9.18141 2.30297Z";
|
|
785
911
|
function HomeIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
786
|
-
return /* @__PURE__ */ jsx(
|
|
912
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
787
913
|
Path,
|
|
788
914
|
{
|
|
789
915
|
d: HOME_PATH,
|
|
@@ -798,13 +924,13 @@ function HomeIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
798
924
|
// src/icons/Instagram/instagramPath.ts
|
|
799
925
|
var INSTAGRAM_PATH = "M6.49984 1.66748H13.4998C16.1665 1.66748 18.3332 3.83415 18.3332 6.50081V13.5008C18.3332 14.7827 17.8239 16.0121 16.9175 16.9185C16.0111 17.8249 14.7817 18.3341 13.4998 18.3341H6.49984C3.83317 18.3341 1.6665 16.1675 1.6665 13.5008V6.50081C1.6665 5.21893 2.17573 3.98956 3.08215 3.08313C3.98858 2.17671 5.21796 1.66748 6.49984 1.66748ZM6.33317 3.33415C5.53752 3.33415 4.77446 3.65022 4.21185 4.21283C3.64924 4.77544 3.33317 5.5385 3.33317 6.33415V13.6675C3.33317 15.3258 4.67484 16.6675 6.33317 16.6675H13.6665C14.4622 16.6675 15.2252 16.3514 15.7878 15.7888C16.3504 15.2262 16.6665 14.4631 16.6665 13.6675V6.33415C16.6665 4.67581 15.3248 3.33415 13.6665 3.33415H6.33317ZM14.3748 4.58415C14.6511 4.58415 14.9161 4.69389 15.1114 4.88924C15.3068 5.08459 15.4165 5.34955 15.4165 5.62581C15.4165 5.90208 15.3068 6.16703 15.1114 6.36238C14.9161 6.55773 14.6511 6.66748 14.3748 6.66748C14.0986 6.66748 13.8336 6.55773 13.6383 6.36238C13.4429 6.16703 13.3332 5.90208 13.3332 5.62581C13.3332 5.34955 13.4429 5.08459 13.6383 4.88924C13.8336 4.69389 14.0986 4.58415 14.3748 4.58415ZM9.99984 5.83415C11.1049 5.83415 12.1647 6.27313 12.9461 7.05454C13.7275 7.83594 14.1665 8.89574 14.1665 10.0008C14.1665 11.1059 13.7275 12.1657 12.9461 12.9471C12.1647 13.7285 11.1049 14.1675 9.99984 14.1675C8.89477 14.1675 7.83496 13.7285 7.05356 12.9471C6.27216 12.1657 5.83317 11.1059 5.83317 10.0008C5.83317 8.89574 6.27216 7.83594 7.05356 7.05454C7.83496 6.27313 8.89477 5.83415 9.99984 5.83415ZM9.99984 7.50081C9.3368 7.50081 8.70091 7.76421 8.23207 8.23305C7.76323 8.70189 7.49984 9.33777 7.49984 10.0008C7.49984 10.6639 7.76323 11.2997 8.23207 11.7686C8.70091 12.2374 9.3368 12.5008 9.99984 12.5008C10.6629 12.5008 11.2988 12.2374 11.7676 11.7686C12.2364 11.2997 12.4998 10.6639 12.4998 10.0008C12.4998 9.33777 12.2364 8.70189 11.7676 8.23305C11.2988 7.76421 10.6629 7.50081 9.99984 7.50081Z";
|
|
800
926
|
function InstagramIcon({ size = 20, color = colors.white }) {
|
|
801
|
-
return /* @__PURE__ */ jsx(
|
|
927
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: INSTAGRAM_PATH, fill: color }) });
|
|
802
928
|
}
|
|
803
929
|
|
|
804
930
|
// src/icons/Key/keyPath.ts
|
|
805
931
|
var KEY_PATH = "M5.28673 10.0002L7.0545 11.768M7.6435 7.64301L9.41127 9.41078M10.0003 5.28624L11.768 7.05401M4.22553 11.0604L11.0609 4.22505C11.7209 3.56502 12.0513 3.235 12.4318 3.11136C12.7666 3.00259 13.127 3.00259 13.4618 3.11136C13.8421 3.23494 14.1718 3.56464 14.8311 4.22393L15.775 5.16785C16.4351 5.82788 16.7654 6.15867 16.8891 6.53922C16.9979 6.87396 16.9976 7.23381 16.8889 7.56855C16.7652 7.9491 16.4353 8.27937 15.7753 8.9394L8.93989 15.7748C8.27986 16.4348 7.94959 16.7647 7.56904 16.8884C7.2343 16.9971 6.87445 16.9974 6.53971 16.8886C6.15916 16.765 5.82837 16.4346 5.16834 15.7745L4.22441 14.8306C3.56513 14.1713 3.23542 13.8416 3.11185 13.4613C3.00308 13.1266 3.00308 12.7661 3.11185 12.4313C3.23549 12.0508 3.56551 11.7204 4.22553 11.0604Z";
|
|
806
932
|
function KeyIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
807
|
-
return /* @__PURE__ */ jsx(
|
|
933
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
808
934
|
Path,
|
|
809
935
|
{
|
|
810
936
|
d: KEY_PATH,
|
|
@@ -823,7 +949,7 @@ function LayoutGridIcon({
|
|
|
823
949
|
color = colors.primary,
|
|
824
950
|
strokeWidth = 1.5
|
|
825
951
|
}) {
|
|
826
|
-
return /* @__PURE__ */ jsx(
|
|
952
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
827
953
|
Path,
|
|
828
954
|
{
|
|
829
955
|
d: LAYOUT_GRID_PATH,
|
|
@@ -838,13 +964,13 @@ function LayoutGridIcon({
|
|
|
838
964
|
// src/icons/LinkedIn/linkedinPath.ts
|
|
839
965
|
var LINKEDIN_PATH = "M15.8333 2.50098C16.2754 2.50098 16.6993 2.67657 17.0118 2.98913C17.3244 3.30169 17.5 3.72562 17.5 4.16764V15.8343C17.5 16.2763 17.3244 16.7003 17.0118 17.0128C16.6993 17.3254 16.2754 17.501 15.8333 17.501H4.16667C3.72464 17.501 3.30072 17.3254 2.98816 17.0128C2.67559 16.7003 2.5 16.2763 2.5 15.8343V4.16764C2.5 3.72562 2.67559 3.30169 2.98816 2.98913C3.30072 2.67657 3.72464 2.50098 4.16667 2.50098H15.8333ZM15.4167 15.4176V11.001C15.4167 10.2805 15.1304 9.58948 14.621 9.08C14.1115 8.57053 13.4205 8.28431 12.7 8.28431C11.9917 8.28431 11.1667 8.71764 10.7667 9.36764V8.44264H8.44167V15.4176H10.7667V11.3093C10.7667 10.6676 11.2833 10.1426 11.925 10.1426C12.2344 10.1426 12.5312 10.2656 12.75 10.4844C12.9687 10.7031 13.0917 10.9999 13.0917 11.3093V15.4176H15.4167ZM5.73333 7.13431C6.10464 7.13431 6.46073 6.98681 6.72328 6.72426C6.98583 6.46171 7.13333 6.10561 7.13333 5.73431C7.13333 4.95931 6.50833 4.32598 5.73333 4.32598C5.35982 4.32598 5.0016 4.47435 4.73749 4.73847C4.47338 5.00258 4.325 5.3608 4.325 5.73431C4.325 6.50931 4.95833 7.13431 5.73333 7.13431ZM6.89167 15.4176V8.44264H4.58333V15.4176H6.89167Z";
|
|
840
966
|
function LinkedInIcon({ size = 20, color = colors.white }) {
|
|
841
|
-
return /* @__PURE__ */ jsx(
|
|
967
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: LINKEDIN_PATH, fill: color }) });
|
|
842
968
|
}
|
|
843
969
|
|
|
844
970
|
// src/icons/ListView/listViewPath.ts
|
|
845
971
|
var LIST_VIEW_PATH = "M7 2.5H3.83333C3.36662 2.5 3.13327 2.5 2.95501 2.59083C2.79821 2.67072 2.67072 2.79821 2.59083 2.95501C2.5 3.13327 2.5 3.36662 2.5 3.83333V7C2.5 7.46671 2.5 7.70007 2.59083 7.87833C2.67072 8.03513 2.79821 8.16261 2.95501 8.24251C3.13327 8.33333 3.36662 8.33333 3.83333 8.33333H7C7.46671 8.33333 7.70007 8.33333 7.87833 8.24251C8.03513 8.16261 8.16261 8.03513 8.24251 7.87833C8.33333 7.70007 8.33333 7.46671 8.33333 7V3.83333C8.33333 3.36662 8.33333 3.13327 8.24251 2.95501C8.16261 2.79821 8.03513 2.67072 7.87833 2.59083C7.70007 2.5 7.46671 2.5 7 2.5ZM16.1667 2.5H13C12.5333 2.5 12.2999 2.5 12.1217 2.59083C11.9649 2.67072 11.8374 2.79821 11.7575 2.95501C11.6667 3.13327 11.6667 3.36662 11.6667 3.83333V7C11.6667 7.46671 11.6667 7.70007 11.7575 7.87833C11.8374 8.03513 11.9649 8.16261 12.1217 8.24251C12.2999 8.33333 12.5333 8.33333 13 8.33333H16.1667C16.6334 8.33333 16.8667 8.33333 17.045 8.24251C17.2018 8.16261 17.3293 8.03513 17.4092 7.87833C17.5 7.70007 17.5 7.46671 17.5 7V3.83333C17.5 3.36662 17.5 3.13327 17.4092 2.95501C17.3293 2.79821 17.2018 2.67072 17.045 2.59083C16.8667 2.5 16.6334 2.5 16.1667 2.5ZM16.1667 11.6667H13C12.5333 11.6667 12.2999 11.6667 12.1217 11.7575C11.9649 11.8374 11.8374 11.9649 11.7575 12.1217C11.6667 12.2999 11.6667 12.5333 11.6667 13V16.1667C11.6667 16.6334 11.6667 16.8667 11.7575 17.045C11.8374 17.2018 11.9649 17.3293 12.1217 17.4092C12.2999 17.5 12.5333 17.5 13 17.5H16.1667C16.6334 17.5 16.8667 17.5 17.045 17.4092C17.2018 17.3293 17.3293 17.2018 17.4092 17.045C17.5 16.8667 17.5 16.6334 17.5 16.1667V13C17.5 12.5333 17.5 12.2999 17.4092 12.1217C17.3293 11.9649 17.2018 11.8374 17.045 11.7575C16.8667 11.6667 16.6334 11.6667 16.1667 11.6667ZM7 11.6667H3.83333C3.36662 11.6667 3.13327 11.6667 2.95501 11.7575C2.79821 11.8374 2.67072 11.9649 2.59083 12.1217C2.5 12.2999 2.5 12.5333 2.5 13V16.1667C2.5 16.6334 2.5 16.8667 2.59083 17.045C2.67072 17.2018 2.79821 17.3293 2.95501 17.4092C3.13327 17.5 3.36662 17.5 3.83333 17.5H7C7.46671 17.5 7.70007 17.5 7.87833 17.4092C8.03513 17.3293 8.16261 17.2018 8.24251 17.045C8.33333 16.8667 8.33333 16.6334 8.33333 16.1667V13C8.33333 12.5333 8.33333 12.2999 8.24251 12.1217C8.16261 11.9649 8.03513 11.8374 7.87833 11.7575C7.70007 11.6667 7.46671 11.6667 7 11.6667Z";
|
|
846
972
|
function ListViewIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
847
|
-
return /* @__PURE__ */ jsx(
|
|
973
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
848
974
|
Path,
|
|
849
975
|
{
|
|
850
976
|
d: LIST_VIEW_PATH,
|
|
@@ -859,7 +985,7 @@ function ListViewIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
859
985
|
// src/icons/LocationPin/locationPinPath.ts
|
|
860
986
|
var LOCATION_PIN_PATH = "M4.16675 8.26904C4.16675 12.3122 7.70381 15.6558 9.26941 16.9377C9.49347 17.1211 9.60684 17.214 9.774 17.261C9.90417 17.2977 10.0957 17.2977 10.2259 17.261C10.3934 17.2139 10.506 17.122 10.7309 16.9378C12.2965 15.6559 15.8333 12.3126 15.8333 8.26941C15.8333 6.73932 15.2188 5.27171 14.1248 4.18977C13.0309 3.10783 11.5472 2.5 10.0001 2.5C8.45305 2.5 6.96925 3.10792 5.87529 4.18986C4.78133 5.2718 4.16675 6.73895 4.16675 8.26904ZM8.33341 7.5C8.33341 8.42047 9.07961 9.16667 10.0001 9.16667C10.9206 9.16667 11.6667 8.42047 11.6667 7.5C11.6667 6.57953 10.9206 5.83333 10.0001 5.83333C9.07961 5.83333 8.33341 6.57953 8.33341 7.5Z";
|
|
861
987
|
function LocationPinIcon({ size = 20, color = colors.grey200, strokeWidth = 2 }) {
|
|
862
|
-
return /* @__PURE__ */ jsx(
|
|
988
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
863
989
|
Path,
|
|
864
990
|
{
|
|
865
991
|
d: LOCATION_PIN_PATH,
|
|
@@ -871,10 +997,31 @@ function LocationPinIcon({ size = 20, color = colors.grey200, strokeWidth = 2 })
|
|
|
871
997
|
) });
|
|
872
998
|
}
|
|
873
999
|
|
|
1000
|
+
// src/icons/LocationUser/locationUserPath.ts
|
|
1001
|
+
var LOCATION_USER_PATH = "M10.9127 8.5267C10.8313 8.4943 10.7443 8.47826 10.6566 8.47949C10.569 8.48073 10.4825 8.4992 10.402 8.53387C10.3216 8.56854 10.2487 8.61872 10.1876 8.68154C10.1265 8.74437 10.0784 8.81861 10.046 8.90003C10.0136 8.98145 9.99758 9.06845 9.99882 9.15607C10 9.24369 10.0185 9.3302 10.0532 9.41068C10.0879 9.49116 10.138 9.56402 10.2009 9.62511C10.2637 9.68619 10.3379 9.7343 10.4193 9.7667C11.3927 10.1534 11.9993 10.7534 11.9993 11.3334C11.9993 12.28 10.3593 13.3334 7.99935 13.3334C5.63935 13.3334 3.99935 12.28 3.99935 11.3334C3.99935 10.7534 4.60602 10.1534 5.57935 9.7667C5.74378 9.70128 5.87549 9.57321 5.94551 9.41068C6.01552 9.24815 6.0181 9.06446 5.95268 8.90003C5.88726 8.73559 5.7592 8.60388 5.59667 8.53387C5.43414 8.46386 5.25045 8.46128 5.08602 8.5267C3.57268 9.1267 2.66602 10.1734 2.66602 11.3334C2.66602 13.2 5.00602 14.6667 7.99935 14.6667C10.9927 14.6667 13.3327 13.2 13.3327 11.3334C13.3327 10.1734 12.426 9.1267 10.9127 8.5267ZM7.33268 6.57336V11.3334C7.33268 11.5102 7.40292 11.6797 7.52794 11.8048C7.65297 11.9298 7.82254 12 7.99935 12C8.17616 12 8.34573 11.9298 8.47075 11.8048C8.59578 11.6797 8.66602 11.5102 8.66602 11.3334V6.57336C9.29445 6.4111 9.84214 6.02521 10.2064 5.48802C10.5707 4.95084 10.7265 4.29924 10.6448 3.65536C10.563 3.01149 10.2492 2.41954 9.76217 1.99048C9.27517 1.56142 8.6484 1.32471 7.99935 1.32471C7.3503 1.32471 6.72353 1.56142 6.23653 1.99048C5.74952 2.41954 5.43572 3.01149 5.35394 3.65536C5.27215 4.29924 5.42801 4.95084 5.79228 5.48802C6.15656 6.02521 6.70424 6.4111 7.33268 6.57336V6.57336ZM7.99935 2.6667C8.26306 2.6667 8.52084 2.74489 8.74011 2.8914C8.95937 3.03791 9.13027 3.24615 9.23119 3.48978C9.33211 3.73342 9.35851 4.00151 9.30706 4.26015C9.25562 4.51879 9.12863 4.75637 8.94216 4.94284C8.75569 5.12931 8.51811 5.2563 8.25947 5.30774C8.00083 5.35919 7.73274 5.33279 7.4891 5.23187C7.24547 5.13095 7.03723 4.96005 6.89072 4.74079C6.74421 4.52152 6.66602 4.26374 6.66602 4.00003C6.66602 3.64641 6.80649 3.30727 7.05654 3.05722C7.30659 2.80717 7.64573 2.6667 7.99935 2.6667Z";
|
|
1002
|
+
function LocationUserIcon({ size = 16, color = colors.grey0 }) {
|
|
1003
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: LOCATION_USER_PATH, fill: color }) });
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
// src/icons/Lock/lockPath.ts
|
|
1007
|
+
var LOCK_PATH = "M22.6673 13.3333V10.6667C22.6673 6.98477 19.6825 4 16.0007 4C12.3188 4 9.33398 6.98477 9.33398 10.6667V13.3333M16.0007 19.3333V22M11.734 28H20.2673C22.5075 28 23.6276 28 24.4833 27.564C25.2359 27.1805 25.8479 26.5686 26.2313 25.816C26.6673 24.9603 26.6673 23.8402 26.6673 21.6V19.7333C26.6673 17.4931 26.6673 16.373 26.2313 15.5174C25.8479 14.7647 25.2359 14.1528 24.4833 13.7693C23.6276 13.3333 22.5075 13.3333 20.2673 13.3333H11.734C9.49377 13.3333 8.37367 13.3333 7.51802 13.7693C6.76537 14.1528 6.15345 14.7647 5.76996 15.5174C5.33398 16.373 5.33398 17.4931 5.33398 19.7333V21.6C5.33398 23.8402 5.33398 24.9603 5.76996 25.816C6.15345 26.5686 6.76537 27.1805 7.51802 27.564C8.37367 28 9.49377 28 11.734 28Z";
|
|
1008
|
+
function LockIcon({ size = 32, color = colors.primary, strokeWidth = 2 }) {
|
|
1009
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 32 32", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1010
|
+
Path,
|
|
1011
|
+
{
|
|
1012
|
+
d: LOCK_PATH,
|
|
1013
|
+
stroke: color,
|
|
1014
|
+
strokeWidth,
|
|
1015
|
+
strokeLinecap: "round",
|
|
1016
|
+
strokeLinejoin: "round"
|
|
1017
|
+
}
|
|
1018
|
+
) });
|
|
1019
|
+
}
|
|
1020
|
+
|
|
874
1021
|
// src/icons/LogOut/logOutPath.ts
|
|
875
1022
|
var LOG_OUT_PATH = "M10.6667 4.66667L14 8L10.6667 11.3333M14 8H6M6 2H5.2C4.0799 2 3.51984 2 3.09202 2.21799C2.7157 2.40973 2.40973 2.71569 2.21799 3.09202C2 3.51984 2 4.07989 2 5.2V10.8C2 11.9201 2 12.4802 2.21799 12.908C2.40973 13.2843 2.71569 13.5903 3.09202 13.782C3.51984 14 4.0799 14 5.2 14H6";
|
|
876
1023
|
function LogOutIcon({ size = 20, color = colors.red, strokeWidth = 1.5 }) {
|
|
877
|
-
return /* @__PURE__ */ jsx(
|
|
1024
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
878
1025
|
Path,
|
|
879
1026
|
{
|
|
880
1027
|
d: LOG_OUT_PATH,
|
|
@@ -889,7 +1036,7 @@ function LogOutIcon({ size = 20, color = colors.red, strokeWidth = 1.5 }) {
|
|
|
889
1036
|
// src/icons/Mail/mailPath.ts
|
|
890
1037
|
var MAIL_PATH = "M3.33333 4.99984L8.42303 8.84339L8.42473 8.8448C8.98987 9.25924 9.27261 9.46658 9.5823 9.54668C9.85602 9.61748 10.1438 9.61748 10.4175 9.54668C10.7274 9.46651 11.011 9.25856 11.5771 8.84339C11.5771 8.84339 14.8417 6.33812 16.6667 4.99984M2.5 13.1667V6.83333C2.5 5.89991 2.5 5.43285 2.68166 5.07633C2.84144 4.76273 3.09623 4.50795 3.40983 4.34816C3.76635 4.1665 4.23341 4.1665 5.16683 4.1665H14.8335C15.7669 4.1665 16.233 4.1665 16.5895 4.34816C16.9031 4.50795 17.1587 4.76273 17.3185 5.07633C17.5 5.43251 17.5 5.899 17.5 6.8306V13.1695C17.5 14.1011 17.5 14.5669 17.3185 14.9231C17.1587 15.2367 16.9031 15.4919 16.5895 15.6517C16.2333 15.8332 15.7675 15.8332 14.8359 15.8332H5.16409C4.23249 15.8332 3.766 15.8332 3.40983 15.6517C3.09623 15.4919 2.84144 15.2367 2.68166 14.9231C2.5 14.5666 2.5 14.1001 2.5 13.1667Z";
|
|
891
1038
|
function MailIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
892
|
-
return /* @__PURE__ */ jsx(
|
|
1039
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
893
1040
|
Path,
|
|
894
1041
|
{
|
|
895
1042
|
d: MAIL_PATH,
|
|
@@ -904,7 +1051,7 @@ function MailIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
904
1051
|
// src/icons/MapView/mapViewPath.ts
|
|
905
1052
|
var MAP_VIEW_PATH = "M13.3332 4.99984L7.49984 1.6665L1.6665 4.99984V18.3332L7.49984 14.9998M13.3332 4.99984L18.3332 1.6665V14.9998L13.3332 18.3332L7.49984 14.9998M7.49984 14.9998V1.6665M13.3332 18.3332V4.99984";
|
|
906
1053
|
function MapViewIcon({ size = 20, color = colors.grey400, strokeWidth = 2 }) {
|
|
907
|
-
return /* @__PURE__ */ jsx(
|
|
1054
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
908
1055
|
Path,
|
|
909
1056
|
{
|
|
910
1057
|
d: MAP_VIEW_PATH,
|
|
@@ -925,7 +1072,7 @@ function MapControlIcon({
|
|
|
925
1072
|
color = colors.white,
|
|
926
1073
|
strokeWidth = 2
|
|
927
1074
|
}) {
|
|
928
|
-
return /* @__PURE__ */ jsx(
|
|
1075
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
929
1076
|
Path,
|
|
930
1077
|
{
|
|
931
1078
|
d: path,
|
|
@@ -952,7 +1099,7 @@ function MenuIcon({
|
|
|
952
1099
|
strokeWidth = 2,
|
|
953
1100
|
open = false
|
|
954
1101
|
}) {
|
|
955
|
-
return /* @__PURE__ */ jsx(
|
|
1102
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 19 19", fill: "none", children: /* @__PURE__ */ jsx(
|
|
956
1103
|
Path,
|
|
957
1104
|
{
|
|
958
1105
|
d: open ? MENU_CLOSE_PATH : MENU_PATH,
|
|
@@ -968,7 +1115,7 @@ function MenuIcon({
|
|
|
968
1115
|
// src/icons/Minus/minusPath.ts
|
|
969
1116
|
var MINUS_PATH = "M3.33337 8H12.6667";
|
|
970
1117
|
function MinusIcon({ size = 16, color = colors.white, strokeWidth = 2 }) {
|
|
971
|
-
return /* @__PURE__ */ jsx(
|
|
1118
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
972
1119
|
Path,
|
|
973
1120
|
{
|
|
974
1121
|
d: MINUS_PATH,
|
|
@@ -983,7 +1130,7 @@ function MinusIcon({ size = 16, color = colors.white, strokeWidth = 2 }) {
|
|
|
983
1130
|
// src/icons/Navigate/navigatePath.ts
|
|
984
1131
|
var NAVIGATE_PATH = "M5.691 14.2339C11.5836 17.7694 16.2976 13.0554 15.7084 4.21658C6.86968 3.62732 2.15584 8.34151 5.691 14.2339ZM5.691 14.2339C5.69093 14.2338 5.69107 14.234 5.691 14.2339ZM5.691 14.2339L4.16675 15.7576M5.691 14.2339L8.88079 11.0436";
|
|
985
1132
|
function NavigateIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
986
|
-
return /* @__PURE__ */ jsx(
|
|
1133
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
987
1134
|
Path,
|
|
988
1135
|
{
|
|
989
1136
|
d: NAVIGATE_PATH,
|
|
@@ -998,7 +1145,7 @@ function NavigateIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
998
1145
|
// src/icons/Phone/phonePath.ts
|
|
999
1146
|
var PHONE_PATH = "M7.91872 3.54768C7.66561 2.91492 7.05276 2.5 6.37126 2.5H4.07895C3.20692 2.5 2.5 3.20675 2.5 4.07878C2.5 11.491 8.50898 17.5 15.9212 17.5C16.7933 17.5 17.5 16.793 17.5 15.921L17.5004 13.6283C17.5004 12.9468 17.0856 12.334 16.4528 12.0809L14.2558 11.2024C13.6874 10.9751 13.0402 11.0774 12.57 11.4693L12.0029 11.9422C11.3407 12.4941 10.3664 12.4502 9.75683 11.8407L8.16018 10.2425C7.55066 9.63302 7.50561 8.65945 8.05745 7.99724L8.53027 7.43025C8.92218 6.95996 9.02541 6.31263 8.79805 5.74424L7.91872 3.54768Z";
|
|
1000
1147
|
function PhoneIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
1001
|
-
return /* @__PURE__ */ jsx(
|
|
1148
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1002
1149
|
Path,
|
|
1003
1150
|
{
|
|
1004
1151
|
d: PHONE_PATH,
|
|
@@ -1013,7 +1160,7 @@ function PhoneIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
1013
1160
|
// src/icons/Plus/plusPath.ts
|
|
1014
1161
|
var PLUS_PATH = "M8.00004 3.33325V12.6666M3.33337 7.99992H12.6667";
|
|
1015
1162
|
function PlusIcon({ size = 16, color = colors.white, strokeWidth = 2 }) {
|
|
1016
|
-
return /* @__PURE__ */ jsx(
|
|
1163
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1017
1164
|
Path,
|
|
1018
1165
|
{
|
|
1019
1166
|
d: PLUS_PATH,
|
|
@@ -1025,6 +1172,40 @@ function PlusIcon({ size = 16, color = colors.white, strokeWidth = 2 }) {
|
|
|
1025
1172
|
) });
|
|
1026
1173
|
}
|
|
1027
1174
|
|
|
1175
|
+
// src/icons/Refresh/refreshPath.ts
|
|
1176
|
+
var REFRESH_PATH = "M17.4993 8.33333C17.4993 8.33333 15.8285 6.05685 14.4712 4.69854C13.1138 3.34022 11.238 2.5 9.16602 2.5C5.02388 2.5 1.66602 5.85786 1.66602 10C1.66602 14.1421 5.02388 17.5 9.16602 17.5C12.5853 17.5 15.4701 15.2119 16.3729 12.0833M12.4993 8.33333H17.4993V3.33333";
|
|
1177
|
+
function RefreshIcon({ size = 20, color = colors.white, strokeWidth = 2 }) {
|
|
1178
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1179
|
+
Path,
|
|
1180
|
+
{
|
|
1181
|
+
d: REFRESH_PATH,
|
|
1182
|
+
stroke: color,
|
|
1183
|
+
strokeWidth,
|
|
1184
|
+
strokeLinecap: "round",
|
|
1185
|
+
strokeLinejoin: "round"
|
|
1186
|
+
}
|
|
1187
|
+
) });
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
// src/icons/RefundStatus/refundStatusPath.ts
|
|
1191
|
+
var REFUND_STATUS_PATH = "M15.1333 7.66667L13.8004 9L12.4666 7.66667M13.9634 8.66667C13.9876 8.44778 14 8.22534 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C9.88484 14 11.5667 13.1309 12.6667 11.7716M8 4.66667V8L10 9.33333";
|
|
1192
|
+
function RefundStatusIcon({
|
|
1193
|
+
size = 16,
|
|
1194
|
+
color = colors.primary,
|
|
1195
|
+
strokeWidth = 2
|
|
1196
|
+
}) {
|
|
1197
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1198
|
+
Path,
|
|
1199
|
+
{
|
|
1200
|
+
d: REFUND_STATUS_PATH,
|
|
1201
|
+
stroke: color,
|
|
1202
|
+
strokeWidth,
|
|
1203
|
+
strokeLinecap: "round",
|
|
1204
|
+
strokeLinejoin: "round"
|
|
1205
|
+
}
|
|
1206
|
+
) });
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1028
1209
|
// src/icons/Search/searchPath.ts
|
|
1029
1210
|
var SEARCH_CIRCLE_PATH = "M9.16667 15.8333C12.8486 15.8333 15.8333 12.8486 15.8333 9.16667C15.8333 5.48477 12.8486 2.5 9.16667 2.5C5.48477 2.5 2.5 5.48477 2.5 9.16667C2.5 12.8486 5.48477 15.8333 9.16667 15.8333Z";
|
|
1030
1211
|
var SEARCH_HANDLE_PATH = "M17.5 17.5L13.875 13.875";
|
|
@@ -1033,7 +1214,7 @@ function SearchIcon({
|
|
|
1033
1214
|
color = colors.primary,
|
|
1034
1215
|
strokeWidth = 2
|
|
1035
1216
|
}) {
|
|
1036
|
-
return /* @__PURE__ */ jsxs(
|
|
1217
|
+
return /* @__PURE__ */ jsxs(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: [
|
|
1037
1218
|
/* @__PURE__ */ jsx(
|
|
1038
1219
|
Path,
|
|
1039
1220
|
{
|
|
@@ -1060,7 +1241,7 @@ function SearchIcon({
|
|
|
1060
1241
|
// src/icons/Settings/settingsPath.ts
|
|
1061
1242
|
var SETTINGS_PATH = "M8.00004 10C9.10461 10 10 9.10457 10 8C10 6.89543 9.10461 6 8.00004 6C6.89547 6 6.00004 6.89543 6.00004 8C6.00004 9.10457 6.89547 10 8.00004 10Z M12.4849 9.81818C12.4042 10.001 12.3801 10.2038 12.4158 10.4004C12.4514 10.597 12.5452 10.7784 12.6849 10.9212L12.7213 10.9576C12.834 11.0702 12.9234 11.2038 12.9844 11.351C13.0454 11.4981 13.0768 11.6559 13.0768 11.8152C13.0768 11.9744 13.0454 12.1322 12.9844 12.2793C12.9234 12.4265 12.834 12.5602 12.7213 12.6727C12.6087 12.7854 12.475 12.8748 12.3278 12.9358C12.1807 12.9968 12.023 13.0282 11.8637 13.0282C11.7044 13.0282 11.5467 12.9968 11.3995 12.9358C11.2524 12.8748 11.1187 12.7854 11.0061 12.6727L10.9697 12.6364C10.8269 12.4966 10.6455 12.4029 10.4489 12.3673C10.2523 12.3316 10.0495 12.3557 9.86671 12.4364C9.68745 12.5132 9.53458 12.6408 9.42689 12.8034C9.31921 12.966 9.26142 13.1565 9.26065 13.3515V13.4545C9.26065 13.776 9.13294 14.0843 8.90562 14.3116C8.67831 14.539 8.37 14.6667 8.04853 14.6667C7.72705 14.6667 7.41874 14.539 7.19143 14.3116C6.96411 14.0843 6.8364 13.776 6.8364 13.4545V13.4C6.83171 13.1994 6.76678 13.0048 6.65005 12.8416C6.53331 12.6784 6.37018 12.5541 6.18186 12.4848C5.99906 12.4042 5.79629 12.3801 5.59968 12.4158C5.40308 12.4514 5.22166 12.5451 5.07883 12.6849L5.04246 12.7212C4.92989 12.8339 4.79621 12.9233 4.64906 12.9843C4.50191 13.0453 4.34418 13.0767 4.18489 13.0767C4.0256 13.0767 3.86787 13.0453 3.72072 12.9843C3.57357 12.9233 3.43989 12.8339 3.32731 12.7212C3.21461 12.6086 3.12521 12.475 3.06421 12.3278C3.00321 12.1807 2.97181 12.0229 2.97181 11.8636C2.97181 11.7043 3.00321 11.5466 3.06421 11.3995C3.12521 11.2523 3.21461 11.1186 3.32731 11.0061L3.36368 10.9697C3.5034 10.8269 3.59712 10.6454 3.63277 10.4488C3.66842 10.2522 3.64435 10.0495 3.56368 9.86667C3.48685 9.68741 3.35929 9.53454 3.19669 9.42686C3.03409 9.31917 2.84355 9.26139 2.64853 9.26061H2.5455C2.22402 9.26061 1.91571 9.1329 1.6884 8.90559C1.46108 8.67827 1.33337 8.36996 1.33337 8.04849C1.33337 7.72701 1.46108 7.4187 1.6884 7.19139C1.91571 6.96407 2.22402 6.83637 2.5455 6.83637H2.60004C2.80064 6.83167 2.9952 6.76674 3.1584 6.65001C3.32161 6.53328 3.44593 6.37014 3.51519 6.18182C3.59587 5.99902 3.61993 5.79625 3.58429 5.59965C3.54864 5.40304 3.45491 5.22163 3.31519 5.07879L3.27883 5.04243C3.16613 4.92985 3.07672 4.79617 3.01573 4.64902C2.95473 4.50187 2.92333 4.34414 2.92333 4.18485C2.92333 4.02556 2.95473 3.86783 3.01573 3.72068C3.07672 3.57353 3.16613 3.43985 3.27883 3.32728C3.3914 3.21458 3.52509 3.12517 3.67223 3.06417C3.81938 3.00317 3.97711 2.97178 4.1364 2.97178C4.2957 2.97178 4.45343 3.00317 4.60057 3.06417C4.74772 3.12517 4.88141 3.21458 4.99398 3.32728L5.03034 3.36364C5.17318 3.50336 5.3546 3.59708 5.5512 3.63273C5.7478 3.66838 5.95058 3.64431 6.13337 3.56364H6.18186C6.36111 3.48681 6.51399 3.35925 6.62167 3.19665C6.72935 3.03405 6.78714 2.84351 6.78792 2.64849V2.54546C6.78792 2.22398 6.91562 1.91567 7.14294 1.68836C7.37026 1.46104 7.67857 1.33334 8.00004 1.33334C8.32151 1.33334 8.62982 1.46104 8.85714 1.68836C9.08446 1.91567 9.21216 2.22398 9.21216 2.54546V2.6C9.21294 2.79502 9.27073 2.98556 9.37841 3.14816C9.48609 3.31076 9.63897 3.43833 9.81822 3.51515C10.001 3.59583 10.2038 3.6199 10.4004 3.58425C10.597 3.5486 10.7784 3.45487 10.9213 3.31515L10.9576 3.27879C11.0702 3.16609 11.2039 3.07669 11.351 3.01569C11.4982 2.95469 11.6559 2.92329 11.8152 2.92329C11.9745 2.92329 12.1322 2.95469 12.2794 3.01569C12.4265 3.07669 12.5602 3.16609 12.6728 3.27879C12.7855 3.39136 12.8749 3.52505 12.9359 3.6722C12.9969 3.81935 13.0283 3.97707 13.0283 4.13637C13.0283 4.29566 12.9969 4.45339 12.9359 4.60054C12.8749 4.74769 12.7855 4.88137 12.6728 4.99394L12.6364 5.03031C12.4967 5.17314 12.403 5.35456 12.3673 5.55116C12.3317 5.74776 12.3557 5.95054 12.4364 6.13334V6.18182C12.5132 6.36107 12.6408 6.51395 12.8034 6.62163C12.966 6.72932 13.1565 6.7871 13.3516 6.78788H13.4546C13.7761 6.78788 14.0844 6.91559 14.3117 7.1429C14.539 7.37022 14.6667 7.67853 14.6667 8C14.6667 8.32148 14.539 8.62978 14.3117 8.8571C14.0844 9.08442 13.7761 9.21212 13.4546 9.21212H13.4C13.205 9.2129 13.0145 9.27069 12.8519 9.37837C12.6893 9.48605 12.5617 9.63893 12.4849 9.81818Z";
|
|
1062
1243
|
function SettingsIcon({ size = 20, color = colors.primary, strokeWidth = 1.5 }) {
|
|
1063
|
-
return /* @__PURE__ */ jsx(
|
|
1244
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1064
1245
|
Path,
|
|
1065
1246
|
{
|
|
1066
1247
|
d: SETTINGS_PATH,
|
|
@@ -1076,7 +1257,7 @@ function SettingsIcon({ size = 20, color = colors.primary, strokeWidth = 1.5 })
|
|
|
1076
1257
|
var SHOW_PATH = "M1.66669 10C1.66669 10 4.16669 4.16667 10 4.16667C15.8334 4.16667 18.3334 10 18.3334 10C18.3334 10 15.8334 15.8333 10 15.8333C4.16669 15.8333 1.66669 10 1.66669 10Z";
|
|
1077
1258
|
var SHOW_PUPIL_PATH = "M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z";
|
|
1078
1259
|
function ShowIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
1079
|
-
return /* @__PURE__ */ jsxs(
|
|
1260
|
+
return /* @__PURE__ */ jsxs(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: [
|
|
1080
1261
|
/* @__PURE__ */ jsx(
|
|
1081
1262
|
Path,
|
|
1082
1263
|
{
|
|
@@ -1103,7 +1284,7 @@ function ShowIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
1103
1284
|
// src/icons/Sidebar/sidebarPath.ts
|
|
1104
1285
|
var SIDEBAR_PATH = "M12.5 2.5V17.5M6.5 2.5H13.5C14.9001 2.5 15.6002 2.5 16.135 2.77248C16.6054 3.01217 16.9878 3.39462 17.2275 3.86502C17.5 4.3998 17.5 5.09987 17.5 6.5V13.5C17.5 14.9001 17.5 15.6002 17.2275 16.135C16.9878 16.6054 16.6054 16.9878 16.135 17.2275C15.6002 17.5 14.9001 17.5 13.5 17.5H6.5C5.09987 17.5 4.3998 17.5 3.86502 17.2275C3.39462 16.9878 3.01217 16.6054 2.77248 16.135C2.5 15.6002 2.5 14.9001 2.5 13.5V6.5C2.5 5.09987 2.5 4.3998 2.77248 3.86502C3.01217 3.39462 3.39462 3.01217 3.86502 2.77248C4.3998 2.5 5.09987 2.5 6.5 2.5Z";
|
|
1105
1286
|
function SidebarIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
1106
|
-
return /* @__PURE__ */ jsx(
|
|
1287
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1107
1288
|
Path,
|
|
1108
1289
|
{
|
|
1109
1290
|
d: SIDEBAR_PATH,
|
|
@@ -1116,9 +1297,9 @@ function SidebarIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
1116
1297
|
}
|
|
1117
1298
|
|
|
1118
1299
|
// src/icons/Sort/sortPath.ts
|
|
1119
|
-
var SORT_PATH = "
|
|
1120
|
-
function SortIcon({ size =
|
|
1121
|
-
return /* @__PURE__ */ jsx(
|
|
1300
|
+
var SORT_PATH = "M5.83333 3.33301V16.6663M9.16667 13.333L5.83333 16.6663L2.5 13.333M14.1667 16.6663V3.33301M17.5 6.66634L14.1667 3.33301L10.8333 6.66634";
|
|
1301
|
+
function SortIcon({ size = 20, color = colors.grey300, strokeWidth = 2 }) {
|
|
1302
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1122
1303
|
Path,
|
|
1123
1304
|
{
|
|
1124
1305
|
d: SORT_PATH,
|
|
@@ -1140,7 +1321,7 @@ function StarIcon({
|
|
|
1140
1321
|
strokeWidth = 2
|
|
1141
1322
|
}) {
|
|
1142
1323
|
const resolvedColor = color ?? (active ? "#E38E5E" : colors.grey150);
|
|
1143
|
-
return /* @__PURE__ */ jsx(
|
|
1324
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: height ?? size * 26 / 28, viewBox: "0 0 28 26", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1144
1325
|
Path,
|
|
1145
1326
|
{
|
|
1146
1327
|
d: STAR_PATH,
|
|
@@ -1158,7 +1339,7 @@ function StarFilledIcon({
|
|
|
1158
1339
|
color = "#E38E5E",
|
|
1159
1340
|
strokeWidth = 2
|
|
1160
1341
|
}) {
|
|
1161
|
-
return /* @__PURE__ */ jsx(
|
|
1342
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: height ?? size * 26 / 28, viewBox: "0 0 28 26", fill: color, children: /* @__PURE__ */ jsx(
|
|
1162
1343
|
Path,
|
|
1163
1344
|
{
|
|
1164
1345
|
d: STAR_PATH,
|
|
@@ -1174,7 +1355,7 @@ function StarFilledIcon({
|
|
|
1174
1355
|
// src/icons/User/userPath.ts
|
|
1175
1356
|
var USER_PATH = "M15.8334 17.5C15.8334 14.2783 13.2217 11.6667 10 11.6667C6.77836 11.6667 4.16669 14.2783 4.16669 17.5M10 9.16667C8.15907 9.16667 6.66669 7.67428 6.66669 5.83333C6.66669 3.99238 8.15907 2.5 10 2.5C11.841 2.5 13.3334 3.99238 13.3334 5.83333C13.3334 7.67428 11.841 9.16667 10 9.16667Z";
|
|
1176
1357
|
function UserIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
1177
|
-
return /* @__PURE__ */ jsx(
|
|
1358
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1178
1359
|
Path,
|
|
1179
1360
|
{
|
|
1180
1361
|
d: USER_PATH,
|
|
@@ -1189,7 +1370,7 @@ function UserIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
1189
1370
|
// src/icons/UsersAlt/usersAltPath.ts
|
|
1190
1371
|
var USERS_ALT_PATH = "M14.35 14.2566C14.9725 13.7177 15.4718 13.0513 15.814 12.3024C16.1562 11.5536 16.3333 10.7399 16.3333 9.91659C16.3333 8.36949 15.7187 6.88576 14.6248 5.7918C13.5308 4.69783 12.0471 4.08325 10.5 4.08325C8.95289 4.08325 7.46916 4.69783 6.3752 5.7918C5.28124 6.88576 4.66666 8.36949 4.66666 9.91659C4.66665 10.7399 4.84376 11.5536 5.18597 12.3024C5.52818 13.0513 6.02748 13.7177 6.64999 14.2566C5.01682 14.9961 3.6312 16.1904 2.6588 17.6966C1.6864 19.2027 1.16837 20.9571 1.16666 22.7499C1.16666 23.0593 1.28957 23.3561 1.50837 23.5749C1.72716 23.7937 2.0239 23.9166 2.33332 23.9166C2.64274 23.9166 2.93949 23.7937 3.15828 23.5749C3.37707 23.3561 3.49999 23.0593 3.49999 22.7499C3.49999 20.8934 4.23749 19.1129 5.55024 17.8002C6.863 16.4874 8.64347 15.7499 10.5 15.7499C12.3565 15.7499 14.137 16.4874 15.4497 17.8002C16.7625 19.1129 17.5 20.8934 17.5 22.7499C17.5 23.0593 17.6229 23.3561 17.8417 23.5749C18.0605 23.7937 18.3572 23.9166 18.6667 23.9166C18.9761 23.9166 19.2728 23.7937 19.4916 23.5749C19.7104 23.3561 19.8333 23.0593 19.8333 22.7499C19.8316 20.9571 19.3136 19.2027 18.3412 17.6966C17.3688 16.1904 15.9832 14.9961 14.35 14.2566ZM10.5 13.4166C9.80775 13.4166 9.13107 13.2113 8.55549 12.8267C7.97992 12.4421 7.53132 11.8955 7.26641 11.256C7.0015 10.6164 6.93219 9.9127 7.06724 9.23377C7.20229 8.55484 7.53563 7.9312 8.02512 7.44171C8.5146 6.95223 9.13824 6.61889 9.81717 6.48384C10.4961 6.34879 11.1998 6.4181 11.8394 6.68301C12.4789 6.94791 13.0255 7.39652 13.4101 7.97209C13.7947 8.54766 14 9.22435 14 9.91659C14 10.8448 13.6312 11.7351 12.9749 12.3915C12.3185 13.0478 11.4282 13.4166 10.5 13.4166ZM21.8633 13.7899C22.61 12.9491 23.0977 11.9105 23.2678 10.799C23.4378 9.68748 23.2831 8.55051 22.822 7.52492C22.361 6.49933 21.6134 5.62885 20.6692 5.01825C19.725 4.40764 18.6244 4.08295 17.5 4.08325C17.1906 4.08325 16.8938 4.20617 16.675 4.42496C16.4562 4.64375 16.3333 4.9405 16.3333 5.24992C16.3333 5.55934 16.4562 5.85608 16.675 6.07488C16.8938 6.29367 17.1906 6.41659 17.5 6.41659C18.4282 6.41659 19.3185 6.78533 19.9749 7.44171C20.6312 8.09809 21 8.98833 21 9.91659C20.9983 10.5294 20.8358 11.131 20.5287 11.6612C20.2216 12.1915 19.7807 12.6319 19.25 12.9383C19.077 13.038 18.9325 13.1805 18.8304 13.3521C18.7283 13.5237 18.6719 13.7186 18.6667 13.9183C18.6618 14.1163 18.7074 14.3123 18.7993 14.4879C18.8911 14.6634 19.0262 14.8127 19.1917 14.9216L19.6467 15.2249L19.7983 15.3066C21.2046 15.9736 22.391 17.0286 23.2178 18.3473C24.0446 19.666 24.4773 21.1935 24.465 22.7499C24.465 23.0593 24.5879 23.3561 24.8067 23.5749C25.0255 23.7937 25.3222 23.9166 25.6317 23.9166C25.9411 23.9166 26.2378 23.7937 26.4566 23.5749C26.6754 23.3561 26.7983 23.0593 26.7983 22.7499C26.8079 20.9596 26.3594 19.1965 25.4957 17.6283C24.632 16.0601 23.3816 14.7388 21.8633 13.7899Z";
|
|
1191
1372
|
function UsersAltIcon({ size = 28, color = colors.white }) {
|
|
1192
|
-
return /* @__PURE__ */ jsx(
|
|
1373
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 28 28", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: USERS_ALT_PATH, fill: color }) });
|
|
1193
1374
|
}
|
|
1194
1375
|
|
|
1195
1376
|
// src/icons/Video/videoPath.ts
|
|
@@ -1198,7 +1379,7 @@ var VIDEO_PATHS = [
|
|
|
1198
1379
|
"M1.33337 6.53333C1.33337 5.41322 1.33337 4.85317 1.55136 4.42535C1.74311 4.04902 2.04907 3.74306 2.42539 3.55132C2.85322 3.33333 3.41327 3.33333 4.53337 3.33333H8.13337C9.25348 3.33333 9.81353 3.33333 10.2414 3.55132C10.6177 3.74306 10.9236 4.04902 11.1154 4.42535C11.3334 4.85317 11.3334 5.41322 11.3334 6.53333V9.46666C11.3334 10.5868 11.3334 11.1468 11.1154 11.5746C10.9236 11.951 10.6177 12.2569 10.2414 12.4487C9.81353 12.6667 9.25348 12.6667 8.13337 12.6667H4.53337C3.41327 12.6667 2.85322 12.6667 2.42539 12.4487C2.04907 12.2569 1.74311 11.951 1.55136 11.5746C1.33337 11.1468 1.33337 10.5868 1.33337 9.46666V6.53333Z"
|
|
1199
1380
|
];
|
|
1200
1381
|
function VideoIcon({ size = 20, color = colors.primary, strokeWidth = 1.5 }) {
|
|
1201
|
-
return /* @__PURE__ */ jsx(
|
|
1382
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: VIDEO_PATHS.map((path) => /* @__PURE__ */ jsx(
|
|
1202
1383
|
Path,
|
|
1203
1384
|
{
|
|
1204
1385
|
d: path,
|
|
@@ -1211,12 +1392,44 @@ function VideoIcon({ size = 20, color = colors.primary, strokeWidth = 1.5 }) {
|
|
|
1211
1392
|
)) });
|
|
1212
1393
|
}
|
|
1213
1394
|
|
|
1395
|
+
// src/icons/VideoOff/videoOffPath.ts
|
|
1396
|
+
var VIDEO_OFF_PATH = "M5 5C3.34315 5 2 6.34315 2 8V16C2 17.6569 3.34315 19 5 19H14C15.3527 19 16.4962 18.1048 16.8705 16.8745M17 12L20.6343 8.36569C21.0627 7.93731 21.2769 7.72312 21.4608 7.70865C21.6203 7.69609 21.7763 7.76068 21.8802 7.88238C22 8.02265 22 8.32556 22 8.93137V15.0686C22 15.6744 22 15.9774 21.8802 16.1176C21.7763 16.2393 21.6203 16.3039 21.4608 16.2914C21.2769 16.2769 21.0627 16.0627 20.6343 15.6343L17 12ZM17 12V9.8C17 8.11984 17 7.27976 16.673 6.63803C16.3854 6.07354 15.9265 5.6146 15.362 5.32698C14.7202 5 13.8802 5 12.2 5H9.5M2 2L22 22";
|
|
1397
|
+
function VideoOffIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
1398
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1399
|
+
Path,
|
|
1400
|
+
{
|
|
1401
|
+
d: VIDEO_OFF_PATH,
|
|
1402
|
+
stroke: color,
|
|
1403
|
+
strokeWidth,
|
|
1404
|
+
strokeLinecap: "round",
|
|
1405
|
+
strokeLinejoin: "round"
|
|
1406
|
+
}
|
|
1407
|
+
) });
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
// src/icons/ZoomOut/zoomOutPath.ts
|
|
1411
|
+
var ZOOM_OUT_PATH = "M3 8H3.2C4.88016 8 5.72024 8 6.36197 7.67302C6.92646 7.3854 7.3854 6.92646 7.67302 6.36197C8 5.72024 8 4.88016 8 3.2V3M3 16H3.2C4.88016 16 5.72024 16 6.36197 16.327C6.92646 16.6146 7.3854 17.0735 7.67302 17.638C8 18.2798 8 19.1198 8 20.8V21M16 3V3.2C16 4.88016 16 5.72024 16.327 6.36197C16.6146 6.92646 17.0735 7.3854 17.638 7.67302C18.2798 8 19.1198 8 20.8 8H21M16 21V20.8C16 19.1198 16 18.2798 16.327 17.638C16.6146 17.0735 17.0735 16.6146 17.638 16.327C18.2798 16 19.1198 16 20.8 16H21";
|
|
1412
|
+
function ZoomOutIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
1413
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1414
|
+
Path,
|
|
1415
|
+
{
|
|
1416
|
+
d: ZOOM_OUT_PATH,
|
|
1417
|
+
stroke: color,
|
|
1418
|
+
strokeWidth,
|
|
1419
|
+
strokeLinecap: "round",
|
|
1420
|
+
strokeLinejoin: "round"
|
|
1421
|
+
}
|
|
1422
|
+
) });
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1214
1425
|
// src/icons/registry.ts
|
|
1215
1426
|
var icons = {
|
|
1427
|
+
alertTriangle: AlertTriangleIcon,
|
|
1216
1428
|
areaExpand: AreaExpandIcon,
|
|
1217
1429
|
apple: AppleIcon,
|
|
1218
1430
|
arrowRight: ArrowRightIcon,
|
|
1219
1431
|
bag: BagIcon,
|
|
1432
|
+
ban: BanIcon,
|
|
1220
1433
|
bell: BellIcon,
|
|
1221
1434
|
building: BuildingIcon,
|
|
1222
1435
|
calendar: CalendarIcon,
|
|
@@ -1229,13 +1442,16 @@ var icons = {
|
|
|
1229
1442
|
chevronLeft: ChevronLeftIcon,
|
|
1230
1443
|
clock: ClockIcon,
|
|
1231
1444
|
close: CloseIcon,
|
|
1445
|
+
edit: EditIcon,
|
|
1232
1446
|
clockFilled: ClockFilledIcon,
|
|
1233
1447
|
copy: CopyIcon,
|
|
1448
|
+
download: DownloadIcon,
|
|
1234
1449
|
bathrooms: BathroomsIcon,
|
|
1235
1450
|
bedrooms: BedroomsIcon,
|
|
1236
1451
|
cardLocation: CardLocationIcon,
|
|
1237
1452
|
facebook: FacebookIcon,
|
|
1238
1453
|
filters: FiltersIcon,
|
|
1454
|
+
fullscreen: FullscreenIcon,
|
|
1239
1455
|
guests: GuestsIcon,
|
|
1240
1456
|
heart: HeartIcon,
|
|
1241
1457
|
globe: GlobeIcon,
|
|
@@ -1248,6 +1464,8 @@ var icons = {
|
|
|
1248
1464
|
linkedin: LinkedInIcon,
|
|
1249
1465
|
listView: ListViewIcon,
|
|
1250
1466
|
locationPin: LocationPinIcon,
|
|
1467
|
+
locationUser: LocationUserIcon,
|
|
1468
|
+
lock: LockIcon,
|
|
1251
1469
|
logOut: LogOutIcon,
|
|
1252
1470
|
mail: MailIcon,
|
|
1253
1471
|
mapView: MapViewIcon,
|
|
@@ -1256,10 +1474,15 @@ var icons = {
|
|
|
1256
1474
|
menu: MenuIcon,
|
|
1257
1475
|
minus: MinusIcon,
|
|
1258
1476
|
navigate: NavigateIcon,
|
|
1477
|
+
noSmoking: NoSmokingIcon,
|
|
1478
|
+
paw: PawIcon,
|
|
1259
1479
|
phone: PhoneIcon,
|
|
1260
1480
|
qrCode: QrCodeIcon,
|
|
1481
|
+
quietHours: QuietHoursIcon,
|
|
1261
1482
|
ratingStar: RatingStarIcon,
|
|
1262
1483
|
plus: PlusIcon,
|
|
1484
|
+
refresh: RefreshIcon,
|
|
1485
|
+
refundStatus: RefundStatusIcon,
|
|
1263
1486
|
search: SearchIcon,
|
|
1264
1487
|
saveHeart: SaveHeartIcon,
|
|
1265
1488
|
share: ShareIcon,
|
|
@@ -1270,10 +1493,13 @@ var icons = {
|
|
|
1270
1493
|
star: StarIcon,
|
|
1271
1494
|
starFilled: StarFilledIcon,
|
|
1272
1495
|
tooltipArrow: TooltipArrowIcon,
|
|
1496
|
+
trash: TrashIcon,
|
|
1273
1497
|
user: UserIcon,
|
|
1274
1498
|
usersAlt: UsersAltIcon,
|
|
1275
1499
|
video: VideoIcon,
|
|
1276
|
-
|
|
1500
|
+
videoOff: VideoOffIcon,
|
|
1501
|
+
whatsApp: WhatsAppIcon,
|
|
1502
|
+
zoomOut: ZoomOutIcon
|
|
1277
1503
|
};
|
|
1278
1504
|
var iconNames = Object.keys(icons);
|
|
1279
1505
|
var iconGroups = {
|
|
@@ -1284,6 +1510,7 @@ var iconGroups = {
|
|
|
1284
1510
|
"home",
|
|
1285
1511
|
"listView",
|
|
1286
1512
|
"locationPin",
|
|
1513
|
+
"locationUser",
|
|
1287
1514
|
"mapCollapse",
|
|
1288
1515
|
"mapExpand",
|
|
1289
1516
|
"mapView",
|
|
@@ -1292,6 +1519,8 @@ var iconGroups = {
|
|
|
1292
1519
|
],
|
|
1293
1520
|
actions: [
|
|
1294
1521
|
"show",
|
|
1522
|
+
"alertTriangle",
|
|
1523
|
+
"ban",
|
|
1295
1524
|
"bell",
|
|
1296
1525
|
"camera",
|
|
1297
1526
|
"key",
|
|
@@ -1299,19 +1528,25 @@ var iconGroups = {
|
|
|
1299
1528
|
"checkBadge",
|
|
1300
1529
|
"checkSuccess",
|
|
1301
1530
|
"copy",
|
|
1531
|
+
"download",
|
|
1302
1532
|
"search",
|
|
1303
1533
|
"calendar",
|
|
1304
1534
|
"calendarOutline",
|
|
1305
1535
|
"close",
|
|
1536
|
+
"edit",
|
|
1306
1537
|
"ratingStar",
|
|
1307
1538
|
"saveHeart",
|
|
1308
1539
|
"share",
|
|
1309
1540
|
"filters",
|
|
1541
|
+
"fullscreen",
|
|
1310
1542
|
"heart",
|
|
1543
|
+
"zoomOut",
|
|
1311
1544
|
"star",
|
|
1312
1545
|
"starFilled",
|
|
1313
1546
|
"minus",
|
|
1314
1547
|
"plus",
|
|
1548
|
+
"refresh",
|
|
1549
|
+
"refundStatus",
|
|
1315
1550
|
"sort"
|
|
1316
1551
|
],
|
|
1317
1552
|
objects: [
|
|
@@ -1323,10 +1558,16 @@ var iconGroups = {
|
|
|
1323
1558
|
"clock",
|
|
1324
1559
|
"clockFilled",
|
|
1325
1560
|
"guests",
|
|
1561
|
+
"lock",
|
|
1562
|
+
"noSmoking",
|
|
1563
|
+
"paw",
|
|
1326
1564
|
"qrCode",
|
|
1565
|
+
"quietHours",
|
|
1566
|
+
"trash",
|
|
1327
1567
|
"user",
|
|
1328
1568
|
"usersAlt",
|
|
1329
1569
|
"video",
|
|
1570
|
+
"videoOff",
|
|
1330
1571
|
"whatsApp"
|
|
1331
1572
|
],
|
|
1332
1573
|
communication: ["mail", "phone"],
|
|
@@ -1410,7 +1651,7 @@ var AMENITY_PATHS = {
|
|
|
1410
1651
|
]
|
|
1411
1652
|
};
|
|
1412
1653
|
function AmenityIcon({ name, size = 20, color = colors.primary }) {
|
|
1413
|
-
return /* @__PURE__ */ jsx(
|
|
1654
|
+
return /* @__PURE__ */ jsx(Svg19, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: AMENITY_PATHS[name].map((path, index) => /* @__PURE__ */ jsx(
|
|
1414
1655
|
Path,
|
|
1415
1656
|
{
|
|
1416
1657
|
d: path.d,
|
|
@@ -1834,7 +2075,7 @@ function BrandLogo({
|
|
|
1834
2075
|
const size = resolveBrandLogoSize(width, height);
|
|
1835
2076
|
const fill = BRAND_LOGO_COLORS[variant];
|
|
1836
2077
|
return /* @__PURE__ */ jsx(
|
|
1837
|
-
|
|
2078
|
+
Svg19,
|
|
1838
2079
|
{
|
|
1839
2080
|
width: size.width,
|
|
1840
2081
|
height: size.height,
|
|
@@ -2111,8 +2352,8 @@ var AvatarSimple = forwardRef(
|
|
|
2111
2352
|
) : null }),
|
|
2112
2353
|
!compact ? /* @__PURE__ */ jsxs(View, { style: styles5.details, children: [
|
|
2113
2354
|
/* @__PURE__ */ jsxs(View, { style: styles5.textBlock, children: [
|
|
2114
|
-
/* @__PURE__ */ jsx(Text, { style: styles5.name, numberOfLines: 1, children: name }),
|
|
2115
|
-
/* @__PURE__ */ jsx(Text, { style: styles5.email, numberOfLines: 1, children: email })
|
|
2355
|
+
/* @__PURE__ */ jsx(Text, { style: styles5.name, numberOfLines: 1, ellipsizeMode: "tail", children: name }),
|
|
2356
|
+
/* @__PURE__ */ jsx(Text, { style: styles5.email, numberOfLines: 1, ellipsizeMode: "tail", children: email })
|
|
2116
2357
|
] }),
|
|
2117
2358
|
/* @__PURE__ */ jsx(
|
|
2118
2359
|
Pressable,
|
|
@@ -2200,6 +2441,194 @@ var styles5 = StyleSheet.create({
|
|
|
2200
2441
|
flexShrink: 0
|
|
2201
2442
|
}
|
|
2202
2443
|
});
|
|
2444
|
+
var HEADER_HEIGHT = 64;
|
|
2445
|
+
var MENU_ICON_SIZE = 28;
|
|
2446
|
+
var ICON_BUTTON_SIZE = 32;
|
|
2447
|
+
var ICON_BUTTON_ICON_SIZE = 16;
|
|
2448
|
+
var BACK_TITLE_GAP = 12;
|
|
2449
|
+
var TITLE_BADGE_GAP = 12;
|
|
2450
|
+
var MENU_TITLE_GAP = 16;
|
|
2451
|
+
var RIGHT_GAP = 16;
|
|
2452
|
+
var AccountHeader = forwardRef(
|
|
2453
|
+
function AccountHeader2({
|
|
2454
|
+
title,
|
|
2455
|
+
onBackPress,
|
|
2456
|
+
onMenuPress,
|
|
2457
|
+
onNotificationsPress,
|
|
2458
|
+
badge,
|
|
2459
|
+
backAccessibilityLabel = "Back",
|
|
2460
|
+
menuAccessibilityLabel = "Open menu",
|
|
2461
|
+
notificationsAccessibilityLabel = "Notifications",
|
|
2462
|
+
style,
|
|
2463
|
+
className,
|
|
2464
|
+
...rest
|
|
2465
|
+
}, forwardedRef) {
|
|
2466
|
+
const containerRef = useRef(null);
|
|
2467
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
2468
|
+
const resolvedClassName = className?.trim() || void 0;
|
|
2469
|
+
const showBack = onBackPress != null;
|
|
2470
|
+
const showMenu = !showBack && onMenuPress != null;
|
|
2471
|
+
const isCompact = showMenu;
|
|
2472
|
+
useApplyWebClassName(containerRef, resolvedClassName);
|
|
2473
|
+
return /* @__PURE__ */ jsxs(
|
|
2474
|
+
View,
|
|
2475
|
+
{
|
|
2476
|
+
...rest,
|
|
2477
|
+
ref: setContainerRef,
|
|
2478
|
+
accessibilityRole: "header",
|
|
2479
|
+
style: [styles6.base, isCompact ? styles6.compact : styles6.desktop, style],
|
|
2480
|
+
children: [
|
|
2481
|
+
/* @__PURE__ */ jsxs(
|
|
2482
|
+
View,
|
|
2483
|
+
{
|
|
2484
|
+
style: [
|
|
2485
|
+
styles6.start,
|
|
2486
|
+
showBack ? styles6.startWithBack : null,
|
|
2487
|
+
showMenu ? styles6.startWithMenu : null
|
|
2488
|
+
],
|
|
2489
|
+
children: [
|
|
2490
|
+
showBack ? /* @__PURE__ */ jsx(
|
|
2491
|
+
Pressable,
|
|
2492
|
+
{
|
|
2493
|
+
accessibilityRole: "button",
|
|
2494
|
+
accessibilityLabel: backAccessibilityLabel,
|
|
2495
|
+
hitSlop: 8,
|
|
2496
|
+
onPress: onBackPress,
|
|
2497
|
+
style: styles6.iconButton,
|
|
2498
|
+
children: /* @__PURE__ */ jsx(
|
|
2499
|
+
ChevronLeftIcon,
|
|
2500
|
+
{
|
|
2501
|
+
color: colors.white,
|
|
2502
|
+
size: ICON_BUTTON_ICON_SIZE,
|
|
2503
|
+
strokeWidth: 1.5
|
|
2504
|
+
}
|
|
2505
|
+
)
|
|
2506
|
+
}
|
|
2507
|
+
) : null,
|
|
2508
|
+
showMenu ? /* @__PURE__ */ jsx(
|
|
2509
|
+
Pressable,
|
|
2510
|
+
{
|
|
2511
|
+
accessibilityRole: "button",
|
|
2512
|
+
accessibilityLabel: menuAccessibilityLabel,
|
|
2513
|
+
hitSlop: 8,
|
|
2514
|
+
onPress: onMenuPress,
|
|
2515
|
+
style: styles6.menuButton,
|
|
2516
|
+
children: /* @__PURE__ */ jsx(MenuIcon, { color: colors.white, size: MENU_ICON_SIZE, strokeWidth: 1.5 })
|
|
2517
|
+
}
|
|
2518
|
+
) : null,
|
|
2519
|
+
/* @__PURE__ */ jsxs(View, { style: styles6.titleRow, children: [
|
|
2520
|
+
/* @__PURE__ */ jsx(
|
|
2521
|
+
Text,
|
|
2522
|
+
{
|
|
2523
|
+
numberOfLines: 1,
|
|
2524
|
+
style: [
|
|
2525
|
+
styles6.title,
|
|
2526
|
+
showBack || !isCompact ? styles6.titleDesktop : styles6.titleCompact
|
|
2527
|
+
],
|
|
2528
|
+
children: title
|
|
2529
|
+
}
|
|
2530
|
+
),
|
|
2531
|
+
badge != null ? /* @__PURE__ */ jsx(View, { style: styles6.badgeSlot, children: badge }) : null
|
|
2532
|
+
] })
|
|
2533
|
+
]
|
|
2534
|
+
}
|
|
2535
|
+
),
|
|
2536
|
+
/* @__PURE__ */ jsx(View, { style: styles6.end, children: /* @__PURE__ */ jsx(
|
|
2537
|
+
Pressable,
|
|
2538
|
+
{
|
|
2539
|
+
accessibilityRole: "button",
|
|
2540
|
+
accessibilityLabel: notificationsAccessibilityLabel,
|
|
2541
|
+
onPress: onNotificationsPress,
|
|
2542
|
+
style: styles6.iconButton,
|
|
2543
|
+
children: /* @__PURE__ */ jsx(BellIcon, { color: colors.white, size: ICON_BUTTON_ICON_SIZE, strokeWidth: 1.5 })
|
|
2544
|
+
}
|
|
2545
|
+
) })
|
|
2546
|
+
]
|
|
2547
|
+
}
|
|
2548
|
+
);
|
|
2549
|
+
}
|
|
2550
|
+
);
|
|
2551
|
+
var styles6 = StyleSheet.create({
|
|
2552
|
+
base: {
|
|
2553
|
+
height: HEADER_HEIGHT,
|
|
2554
|
+
width: "100%",
|
|
2555
|
+
flexDirection: "row",
|
|
2556
|
+
alignItems: "center",
|
|
2557
|
+
justifyContent: "space-between",
|
|
2558
|
+
backgroundColor: colors.dark,
|
|
2559
|
+
borderBottomWidth: 1,
|
|
2560
|
+
borderBottomColor: colors.grey700
|
|
2561
|
+
},
|
|
2562
|
+
desktop: {
|
|
2563
|
+
paddingTop: 16,
|
|
2564
|
+
paddingBottom: 16,
|
|
2565
|
+
paddingLeft: 24,
|
|
2566
|
+
paddingRight: 24
|
|
2567
|
+
},
|
|
2568
|
+
compact: {
|
|
2569
|
+
padding: 16
|
|
2570
|
+
},
|
|
2571
|
+
start: {
|
|
2572
|
+
flex: 1,
|
|
2573
|
+
minWidth: 0,
|
|
2574
|
+
flexDirection: "row",
|
|
2575
|
+
alignItems: "center"
|
|
2576
|
+
},
|
|
2577
|
+
startWithBack: {
|
|
2578
|
+
gap: BACK_TITLE_GAP
|
|
2579
|
+
},
|
|
2580
|
+
startWithMenu: {
|
|
2581
|
+
gap: MENU_TITLE_GAP
|
|
2582
|
+
},
|
|
2583
|
+
titleRow: {
|
|
2584
|
+
flex: 1,
|
|
2585
|
+
minWidth: 0,
|
|
2586
|
+
flexDirection: "row",
|
|
2587
|
+
alignItems: "center",
|
|
2588
|
+
gap: TITLE_BADGE_GAP
|
|
2589
|
+
},
|
|
2590
|
+
end: {
|
|
2591
|
+
flexShrink: 0,
|
|
2592
|
+
marginLeft: RIGHT_GAP
|
|
2593
|
+
},
|
|
2594
|
+
iconButton: {
|
|
2595
|
+
width: ICON_BUTTON_SIZE,
|
|
2596
|
+
height: ICON_BUTTON_SIZE,
|
|
2597
|
+
padding: 8,
|
|
2598
|
+
alignItems: "center",
|
|
2599
|
+
justifyContent: "center",
|
|
2600
|
+
borderRadius: 5,
|
|
2601
|
+
backgroundColor: colors.grey800,
|
|
2602
|
+
borderWidth: 1,
|
|
2603
|
+
borderColor: colors.grey700,
|
|
2604
|
+
flexShrink: 0
|
|
2605
|
+
},
|
|
2606
|
+
menuButton: {
|
|
2607
|
+
width: MENU_ICON_SIZE,
|
|
2608
|
+
height: MENU_ICON_SIZE,
|
|
2609
|
+
alignItems: "center",
|
|
2610
|
+
justifyContent: "center",
|
|
2611
|
+
flexShrink: 0
|
|
2612
|
+
},
|
|
2613
|
+
title: {
|
|
2614
|
+
flexShrink: 1,
|
|
2615
|
+
fontFamily: fonts.sans,
|
|
2616
|
+
fontWeight: "600",
|
|
2617
|
+
letterSpacing: 0,
|
|
2618
|
+
color: colors.white
|
|
2619
|
+
},
|
|
2620
|
+
titleDesktop: {
|
|
2621
|
+
fontSize: 16,
|
|
2622
|
+
lineHeight: 22
|
|
2623
|
+
},
|
|
2624
|
+
titleCompact: {
|
|
2625
|
+
fontSize: 14,
|
|
2626
|
+
lineHeight: 20
|
|
2627
|
+
},
|
|
2628
|
+
badgeSlot: {
|
|
2629
|
+
flexShrink: 0
|
|
2630
|
+
}
|
|
2631
|
+
});
|
|
2203
2632
|
var ICON_SIZE3 = 20;
|
|
2204
2633
|
var webBlurStyle2 = Platform.OS === "web" ? {
|
|
2205
2634
|
backdropFilter: "blur(10.3px)",
|
|
@@ -2230,59 +2659,498 @@ var Badge = forwardRef(function Badge2({ label, variant = "default", icon: Icon2
|
|
|
2230
2659
|
{
|
|
2231
2660
|
...rest,
|
|
2232
2661
|
ref: setContainerRef,
|
|
2233
|
-
style: [
|
|
2234
|
-
|
|
2235
|
-
{ backgroundColor: preset.backgroundColor },
|
|
2236
|
-
preset.border ?
|
|
2237
|
-
preset.blur ? webBlurStyle2 : null,
|
|
2238
|
-
style
|
|
2239
|
-
],
|
|
2240
|
-
accessibilityRole: "text",
|
|
2241
|
-
accessibilityLabel: accessibilityLabel ?? label,
|
|
2242
|
-
children: [
|
|
2243
|
-
Icon2 ? /* @__PURE__ */ jsx(View, { style:
|
|
2244
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
2245
|
-
]
|
|
2662
|
+
style: [
|
|
2663
|
+
styles7.base,
|
|
2664
|
+
{ backgroundColor: preset.backgroundColor },
|
|
2665
|
+
preset.border ? styles7.transparentBorder : null,
|
|
2666
|
+
preset.blur ? webBlurStyle2 : null,
|
|
2667
|
+
style
|
|
2668
|
+
],
|
|
2669
|
+
accessibilityRole: "text",
|
|
2670
|
+
accessibilityLabel: accessibilityLabel ?? label,
|
|
2671
|
+
children: [
|
|
2672
|
+
Icon2 ? /* @__PURE__ */ jsx(View, { style: styles7.iconSlot, children: /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE3, color: preset.iconColor }) }) : null,
|
|
2673
|
+
/* @__PURE__ */ jsx(Text, { style: [styles7.label, Platform.OS === "android" ? styles7.labelAndroid : null], children: label })
|
|
2674
|
+
]
|
|
2675
|
+
}
|
|
2676
|
+
);
|
|
2677
|
+
});
|
|
2678
|
+
var styles7 = StyleSheet.create({
|
|
2679
|
+
base: {
|
|
2680
|
+
flexDirection: "row",
|
|
2681
|
+
alignItems: "center",
|
|
2682
|
+
alignSelf: "flex-start",
|
|
2683
|
+
minHeight: 44,
|
|
2684
|
+
paddingVertical: 12,
|
|
2685
|
+
paddingHorizontal: 16,
|
|
2686
|
+
gap: 12,
|
|
2687
|
+
borderRadius: 79,
|
|
2688
|
+
overflow: "hidden",
|
|
2689
|
+
borderWidth: 0,
|
|
2690
|
+
borderColor: "transparent",
|
|
2691
|
+
borderStyle: "solid"
|
|
2692
|
+
},
|
|
2693
|
+
transparentBorder: {
|
|
2694
|
+
borderWidth: 1,
|
|
2695
|
+
borderColor: colors.whiteAlpha5,
|
|
2696
|
+
borderStyle: "solid"
|
|
2697
|
+
},
|
|
2698
|
+
iconSlot: {
|
|
2699
|
+
width: ICON_SIZE3,
|
|
2700
|
+
height: ICON_SIZE3,
|
|
2701
|
+
alignItems: "center",
|
|
2702
|
+
justifyContent: "center",
|
|
2703
|
+
flexShrink: 0
|
|
2704
|
+
},
|
|
2705
|
+
label: {
|
|
2706
|
+
...badgeTypography,
|
|
2707
|
+
color: colors.white
|
|
2708
|
+
},
|
|
2709
|
+
labelAndroid: {
|
|
2710
|
+
includeFontPadding: false
|
|
2711
|
+
}
|
|
2712
|
+
});
|
|
2713
|
+
var toneConfig = {
|
|
2714
|
+
active: {
|
|
2715
|
+
backgroundColor: colors.greenMuted,
|
|
2716
|
+
color: colors.green
|
|
2717
|
+
},
|
|
2718
|
+
completed: {
|
|
2719
|
+
backgroundColor: colors.greyMuted,
|
|
2720
|
+
color: colors.grey0
|
|
2721
|
+
},
|
|
2722
|
+
cancelled: {
|
|
2723
|
+
backgroundColor: colors.cancelledMuted,
|
|
2724
|
+
color: colors.red
|
|
2725
|
+
}
|
|
2726
|
+
};
|
|
2727
|
+
var webBlurStyle3 = Platform.OS === "web" ? {
|
|
2728
|
+
backdropFilter: "blur(39.5px)",
|
|
2729
|
+
WebkitBackdropFilter: "blur(39.5px)"
|
|
2730
|
+
} : {};
|
|
2731
|
+
var StatusBadge = forwardRef(
|
|
2732
|
+
function StatusBadge2({ label, tone = "active", style, className, accessibilityLabel, ...rest }, forwardedRef) {
|
|
2733
|
+
const containerRef = useRef(null);
|
|
2734
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
2735
|
+
const preset = toneConfig[tone];
|
|
2736
|
+
useApplyWebClassName(containerRef, className);
|
|
2737
|
+
return /* @__PURE__ */ jsx(
|
|
2738
|
+
View,
|
|
2739
|
+
{
|
|
2740
|
+
...rest,
|
|
2741
|
+
ref: setContainerRef,
|
|
2742
|
+
accessibilityRole: "text",
|
|
2743
|
+
accessibilityLabel: accessibilityLabel ?? label,
|
|
2744
|
+
style: [styles8.base, { backgroundColor: preset.backgroundColor }, webBlurStyle3, style],
|
|
2745
|
+
children: /* @__PURE__ */ jsx(
|
|
2746
|
+
Text,
|
|
2747
|
+
{
|
|
2748
|
+
style: [
|
|
2749
|
+
styles8.label,
|
|
2750
|
+
{ color: preset.color },
|
|
2751
|
+
Platform.OS === "android" ? styles8.labelAndroid : null
|
|
2752
|
+
],
|
|
2753
|
+
children: label
|
|
2754
|
+
}
|
|
2755
|
+
)
|
|
2756
|
+
}
|
|
2757
|
+
);
|
|
2758
|
+
}
|
|
2759
|
+
);
|
|
2760
|
+
var styles8 = StyleSheet.create({
|
|
2761
|
+
base: {
|
|
2762
|
+
height: 28,
|
|
2763
|
+
minHeight: 28,
|
|
2764
|
+
flexDirection: "row",
|
|
2765
|
+
alignItems: "center",
|
|
2766
|
+
alignSelf: "flex-start",
|
|
2767
|
+
justifyContent: "center",
|
|
2768
|
+
gap: 6,
|
|
2769
|
+
paddingVertical: 6,
|
|
2770
|
+
paddingHorizontal: 12,
|
|
2771
|
+
borderRadius: 50,
|
|
2772
|
+
overflow: "hidden"
|
|
2773
|
+
},
|
|
2774
|
+
label: {
|
|
2775
|
+
fontFamily: fonts.sans,
|
|
2776
|
+
fontSize: 12,
|
|
2777
|
+
fontWeight: "600",
|
|
2778
|
+
lineHeight: 12,
|
|
2779
|
+
letterSpacing: 0
|
|
2780
|
+
},
|
|
2781
|
+
labelAndroid: {
|
|
2782
|
+
includeFontPadding: false
|
|
2783
|
+
}
|
|
2784
|
+
});
|
|
2785
|
+
var TRACK_WIDTH = 48;
|
|
2786
|
+
var DOT_HEIGHT = 6;
|
|
2787
|
+
var INACTIVE_SIZE = 6;
|
|
2788
|
+
var GAP = 4;
|
|
2789
|
+
function activePillWidth(count) {
|
|
2790
|
+
if (count <= 1) return TRACK_WIDTH;
|
|
2791
|
+
const inactiveCount = count - 1;
|
|
2792
|
+
return TRACK_WIDTH - inactiveCount * INACTIVE_SIZE - inactiveCount * GAP;
|
|
2793
|
+
}
|
|
2794
|
+
var PaginationDots = forwardRef(
|
|
2795
|
+
function PaginationDots2({ count, activeIndex, onDotPress, accessibilityLabel, style, className, ...rest }, forwardedRef) {
|
|
2796
|
+
const containerRef = useRef(null);
|
|
2797
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
2798
|
+
const safeCount = Math.max(0, count);
|
|
2799
|
+
const safeActive = safeCount === 0 ? 0 : Math.min(Math.max(activeIndex, 0), safeCount - 1);
|
|
2800
|
+
const pillWidth = Math.max(INACTIVE_SIZE, activePillWidth(safeCount));
|
|
2801
|
+
useApplyWebClassName(containerRef, className);
|
|
2802
|
+
if (safeCount <= 0) {
|
|
2803
|
+
return null;
|
|
2804
|
+
}
|
|
2805
|
+
return /* @__PURE__ */ jsx(
|
|
2806
|
+
View,
|
|
2807
|
+
{
|
|
2808
|
+
...rest,
|
|
2809
|
+
ref: setContainerRef,
|
|
2810
|
+
accessibilityRole: "adjustable",
|
|
2811
|
+
accessibilityLabel: accessibilityLabel ?? `Slide ${safeActive + 1} of ${safeCount}`,
|
|
2812
|
+
style: [styles9.root, style],
|
|
2813
|
+
children: Array.from({ length: safeCount }, (_, index) => {
|
|
2814
|
+
const active = index === safeActive;
|
|
2815
|
+
return /* @__PURE__ */ jsx(
|
|
2816
|
+
Pressable,
|
|
2817
|
+
{
|
|
2818
|
+
accessibilityRole: "button",
|
|
2819
|
+
accessibilityLabel: `Go to slide ${index + 1}`,
|
|
2820
|
+
accessibilityState: { selected: active },
|
|
2821
|
+
disabled: onDotPress == null,
|
|
2822
|
+
hitSlop: 8,
|
|
2823
|
+
onPress: () => onDotPress?.(index),
|
|
2824
|
+
style: [
|
|
2825
|
+
styles9.dot,
|
|
2826
|
+
active ? [styles9.dotActive, { width: pillWidth }] : styles9.dotInactive
|
|
2827
|
+
]
|
|
2828
|
+
},
|
|
2829
|
+
index
|
|
2830
|
+
);
|
|
2831
|
+
})
|
|
2832
|
+
}
|
|
2833
|
+
);
|
|
2834
|
+
}
|
|
2835
|
+
);
|
|
2836
|
+
var styles9 = StyleSheet.create({
|
|
2837
|
+
root: {
|
|
2838
|
+
width: TRACK_WIDTH,
|
|
2839
|
+
flexDirection: "row",
|
|
2840
|
+
alignItems: "center",
|
|
2841
|
+
justifyContent: "center",
|
|
2842
|
+
gap: GAP
|
|
2843
|
+
},
|
|
2844
|
+
dot: {
|
|
2845
|
+
height: DOT_HEIGHT,
|
|
2846
|
+
borderRadius: DOT_HEIGHT
|
|
2847
|
+
},
|
|
2848
|
+
dotActive: {
|
|
2849
|
+
backgroundColor: colors.white
|
|
2850
|
+
},
|
|
2851
|
+
dotInactive: {
|
|
2852
|
+
width: INACTIVE_SIZE,
|
|
2853
|
+
backgroundColor: colors.whiteAlpha40
|
|
2854
|
+
}
|
|
2855
|
+
});
|
|
2856
|
+
var WIDTH = 121;
|
|
2857
|
+
var HEIGHT = 48;
|
|
2858
|
+
var ICON_SIZE4 = 24;
|
|
2859
|
+
var StepPager = forwardRef(function StepPager2({
|
|
2860
|
+
index,
|
|
2861
|
+
count,
|
|
2862
|
+
onPrevious,
|
|
2863
|
+
onNext,
|
|
2864
|
+
previousAccessibilityLabel = "Previous",
|
|
2865
|
+
nextAccessibilityLabel = "Next",
|
|
2866
|
+
style,
|
|
2867
|
+
className,
|
|
2868
|
+
accessibilityLabel,
|
|
2869
|
+
...rest
|
|
2870
|
+
}, forwardedRef) {
|
|
2871
|
+
const containerRef = useRef(null);
|
|
2872
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
2873
|
+
const safeCount = Math.max(0, count);
|
|
2874
|
+
const safeIndex = safeCount === 0 ? 0 : Math.min(Math.max(index, 0), safeCount - 1);
|
|
2875
|
+
const label = safeCount === 0 ? "0/0" : `${safeIndex + 1}/${safeCount}`;
|
|
2876
|
+
const atStart = safeIndex <= 0;
|
|
2877
|
+
const atEnd = safeIndex >= safeCount - 1;
|
|
2878
|
+
useApplyWebClassName(containerRef, className);
|
|
2879
|
+
return /* @__PURE__ */ jsxs(
|
|
2880
|
+
View,
|
|
2881
|
+
{
|
|
2882
|
+
...rest,
|
|
2883
|
+
ref: setContainerRef,
|
|
2884
|
+
accessibilityRole: "adjustable",
|
|
2885
|
+
accessibilityLabel: accessibilityLabel ?? label,
|
|
2886
|
+
accessibilityValue: {
|
|
2887
|
+
min: safeCount === 0 ? 0 : 1,
|
|
2888
|
+
max: safeCount,
|
|
2889
|
+
now: safeCount === 0 ? 0 : safeIndex + 1,
|
|
2890
|
+
text: label
|
|
2891
|
+
},
|
|
2892
|
+
style: [styles10.root, webBlurStyle4, style],
|
|
2893
|
+
children: [
|
|
2894
|
+
/* @__PURE__ */ jsx(
|
|
2895
|
+
Pressable,
|
|
2896
|
+
{
|
|
2897
|
+
onPress: onPrevious,
|
|
2898
|
+
disabled: atStart || !onPrevious,
|
|
2899
|
+
hitSlop: 4,
|
|
2900
|
+
accessibilityRole: "button",
|
|
2901
|
+
accessibilityLabel: previousAccessibilityLabel,
|
|
2902
|
+
accessibilityState: { disabled: atStart || !onPrevious },
|
|
2903
|
+
style: [styles10.navButton, (atStart || !onPrevious) && styles10.navDisabled],
|
|
2904
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: ICON_SIZE4, color: colors.white, strokeWidth: 2 })
|
|
2905
|
+
}
|
|
2906
|
+
),
|
|
2907
|
+
/* @__PURE__ */ jsx(Text, { style: styles10.label, children: label }),
|
|
2908
|
+
/* @__PURE__ */ jsx(
|
|
2909
|
+
Pressable,
|
|
2910
|
+
{
|
|
2911
|
+
onPress: onNext,
|
|
2912
|
+
disabled: atEnd || !onNext,
|
|
2913
|
+
hitSlop: 4,
|
|
2914
|
+
accessibilityRole: "button",
|
|
2915
|
+
accessibilityLabel: nextAccessibilityLabel,
|
|
2916
|
+
accessibilityState: { disabled: atEnd || !onNext },
|
|
2917
|
+
style: [styles10.navButton, (atEnd || !onNext) && styles10.navDisabled],
|
|
2918
|
+
children: /* @__PURE__ */ jsx(View, { style: styles10.chevronRight, children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: ICON_SIZE4, color: colors.white, strokeWidth: 2 }) })
|
|
2919
|
+
}
|
|
2920
|
+
)
|
|
2921
|
+
]
|
|
2922
|
+
}
|
|
2923
|
+
);
|
|
2924
|
+
});
|
|
2925
|
+
var webBlurStyle4 = Platform.OS === "web" ? {
|
|
2926
|
+
backdropFilter: "blur(50px)",
|
|
2927
|
+
WebkitBackdropFilter: "blur(50px)"
|
|
2928
|
+
} : {};
|
|
2929
|
+
var styles10 = StyleSheet.create({
|
|
2930
|
+
root: {
|
|
2931
|
+
width: WIDTH,
|
|
2932
|
+
height: HEIGHT,
|
|
2933
|
+
flexDirection: "row",
|
|
2934
|
+
alignItems: "center",
|
|
2935
|
+
justifyContent: "center",
|
|
2936
|
+
gap: 12,
|
|
2937
|
+
padding: 12,
|
|
2938
|
+
borderRadius: 77,
|
|
2939
|
+
backgroundColor: colors.whiteAlpha6,
|
|
2940
|
+
overflow: "hidden"
|
|
2941
|
+
},
|
|
2942
|
+
navButton: {
|
|
2943
|
+
width: ICON_SIZE4,
|
|
2944
|
+
height: ICON_SIZE4,
|
|
2945
|
+
alignItems: "center",
|
|
2946
|
+
justifyContent: "center"
|
|
2947
|
+
},
|
|
2948
|
+
navDisabled: {
|
|
2949
|
+
opacity: 0.35
|
|
2950
|
+
},
|
|
2951
|
+
chevronRight: {
|
|
2952
|
+
transform: [{ scaleX: -1 }]
|
|
2953
|
+
},
|
|
2954
|
+
label: {
|
|
2955
|
+
fontFamily: fonts.sans,
|
|
2956
|
+
fontSize: 16,
|
|
2957
|
+
fontWeight: "700",
|
|
2958
|
+
lineHeight: 16,
|
|
2959
|
+
letterSpacing: 0,
|
|
2960
|
+
color: colors.white,
|
|
2961
|
+
textAlign: "center"
|
|
2962
|
+
}
|
|
2963
|
+
});
|
|
2964
|
+
var ICON_SLOT = 36;
|
|
2965
|
+
var ICON_SIZE5 = 20;
|
|
2966
|
+
var InfoTile = forwardRef(function InfoTile2({
|
|
2967
|
+
title,
|
|
2968
|
+
description,
|
|
2969
|
+
icon: Icon2,
|
|
2970
|
+
iconProps,
|
|
2971
|
+
iconSize = ICON_SIZE5,
|
|
2972
|
+
iconSlotBackgroundColor = colors.grey600,
|
|
2973
|
+
style,
|
|
2974
|
+
className,
|
|
2975
|
+
accessibilityLabel,
|
|
2976
|
+
...rest
|
|
2977
|
+
}, forwardedRef) {
|
|
2978
|
+
const containerRef = useRef(null);
|
|
2979
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
2980
|
+
const hasDescription = Boolean(description?.trim());
|
|
2981
|
+
useApplyWebClassName(containerRef, className);
|
|
2982
|
+
return /* @__PURE__ */ jsxs(
|
|
2983
|
+
View,
|
|
2984
|
+
{
|
|
2985
|
+
...rest,
|
|
2986
|
+
ref: setContainerRef,
|
|
2987
|
+
accessibilityRole: "text",
|
|
2988
|
+
accessibilityLabel: accessibilityLabel ?? (hasDescription ? `${title}. ${description}` : title),
|
|
2989
|
+
style: [styles11.root, style],
|
|
2990
|
+
children: [
|
|
2991
|
+
/* @__PURE__ */ jsx(View, { style: [styles11.iconSlot, { backgroundColor: iconSlotBackgroundColor }], children: /* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }) }),
|
|
2992
|
+
/* @__PURE__ */ jsxs(View, { style: styles11.textBlock, children: [
|
|
2993
|
+
/* @__PURE__ */ jsx(Text, { style: styles11.title, children: title }),
|
|
2994
|
+
hasDescription ? /* @__PURE__ */ jsx(Text, { style: styles11.description, children: description }) : null
|
|
2995
|
+
] })
|
|
2996
|
+
]
|
|
2997
|
+
}
|
|
2998
|
+
);
|
|
2999
|
+
});
|
|
3000
|
+
var styles11 = StyleSheet.create({
|
|
3001
|
+
root: {
|
|
3002
|
+
flexDirection: "row",
|
|
3003
|
+
alignItems: "center",
|
|
3004
|
+
alignSelf: "flex-start",
|
|
3005
|
+
gap: 16,
|
|
3006
|
+
padding: 12,
|
|
3007
|
+
borderRadius: 16,
|
|
3008
|
+
backgroundColor: colors.grey700
|
|
3009
|
+
},
|
|
3010
|
+
iconSlot: {
|
|
3011
|
+
width: ICON_SLOT,
|
|
3012
|
+
height: ICON_SLOT,
|
|
3013
|
+
padding: 8,
|
|
3014
|
+
borderRadius: 8,
|
|
3015
|
+
alignItems: "center",
|
|
3016
|
+
justifyContent: "center",
|
|
3017
|
+
flexShrink: 0
|
|
3018
|
+
},
|
|
3019
|
+
textBlock: {
|
|
3020
|
+
flexShrink: 1,
|
|
3021
|
+
minWidth: 0,
|
|
3022
|
+
flexDirection: "column",
|
|
3023
|
+
gap: 6
|
|
3024
|
+
},
|
|
3025
|
+
title: {
|
|
3026
|
+
fontFamily: fonts.sans,
|
|
3027
|
+
fontSize: 14,
|
|
3028
|
+
fontWeight: "500",
|
|
3029
|
+
lineHeight: 14,
|
|
3030
|
+
letterSpacing: 0,
|
|
3031
|
+
color: colors.white
|
|
3032
|
+
},
|
|
3033
|
+
description: {
|
|
3034
|
+
fontFamily: fonts.sans,
|
|
3035
|
+
fontSize: 12,
|
|
3036
|
+
fontWeight: "400",
|
|
3037
|
+
lineHeight: 12,
|
|
3038
|
+
letterSpacing: 0,
|
|
3039
|
+
color: colors.lightGrey
|
|
3040
|
+
}
|
|
3041
|
+
});
|
|
3042
|
+
var BADGE_SIZE = 42;
|
|
3043
|
+
var ROW_GAP = 12;
|
|
3044
|
+
var CONNECTOR_WIDTH = 2;
|
|
3045
|
+
var CONNECTOR_HEIGHT = 19;
|
|
3046
|
+
var CONNECTOR_GAP = 8;
|
|
3047
|
+
var webBlurStyle5 = Platform.OS === "web" ? {
|
|
3048
|
+
backdropFilter: "blur(20px)",
|
|
3049
|
+
WebkitBackdropFilter: "blur(20px)"
|
|
3050
|
+
} : {};
|
|
3051
|
+
var StepList = forwardRef(function StepList2({ steps, style, className, accessibilityLabel, ...rest }, forwardedRef) {
|
|
3052
|
+
const containerRef = useRef(null);
|
|
3053
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
3054
|
+
useApplyWebClassName(containerRef, className);
|
|
3055
|
+
if (steps.length === 0) {
|
|
3056
|
+
return null;
|
|
3057
|
+
}
|
|
3058
|
+
return /* @__PURE__ */ jsx(
|
|
3059
|
+
View,
|
|
3060
|
+
{
|
|
3061
|
+
...rest,
|
|
3062
|
+
ref: setContainerRef,
|
|
3063
|
+
accessibilityRole: "summary",
|
|
3064
|
+
accessibilityLabel,
|
|
3065
|
+
style: [styles12.root, style],
|
|
3066
|
+
children: steps.map((description, index) => {
|
|
3067
|
+
const isLast = index === steps.length - 1;
|
|
3068
|
+
const number = index + 1;
|
|
3069
|
+
return /* @__PURE__ */ jsxs(View, { style: styles12.stepBlock, children: [
|
|
3070
|
+
/* @__PURE__ */ jsxs(View, { style: styles12.row, children: [
|
|
3071
|
+
/* @__PURE__ */ jsx(View, { style: [styles12.badge, webBlurStyle5], children: /* @__PURE__ */ jsx(
|
|
3072
|
+
Text,
|
|
3073
|
+
{
|
|
3074
|
+
style: [
|
|
3075
|
+
styles12.badgeLabel,
|
|
3076
|
+
Platform.OS === "android" ? styles12.labelAndroid : null
|
|
3077
|
+
],
|
|
3078
|
+
children: String(number)
|
|
3079
|
+
}
|
|
3080
|
+
) }),
|
|
3081
|
+
/* @__PURE__ */ jsx(
|
|
3082
|
+
Text,
|
|
3083
|
+
{
|
|
3084
|
+
style: [styles12.description, Platform.OS === "android" ? styles12.labelAndroid : null],
|
|
3085
|
+
children: description
|
|
3086
|
+
}
|
|
3087
|
+
)
|
|
3088
|
+
] }),
|
|
3089
|
+
!isLast ? /* @__PURE__ */ jsx(View, { style: styles12.connectorSlot, children: /* @__PURE__ */ jsx(View, { style: styles12.connector }) }) : null
|
|
3090
|
+
] }, `${number}-${description}`);
|
|
3091
|
+
})
|
|
2246
3092
|
}
|
|
2247
3093
|
);
|
|
2248
3094
|
});
|
|
2249
|
-
var
|
|
2250
|
-
|
|
3095
|
+
var styles12 = StyleSheet.create({
|
|
3096
|
+
root: {
|
|
3097
|
+
width: "100%"
|
|
3098
|
+
},
|
|
3099
|
+
stepBlock: {
|
|
3100
|
+
width: "100%"
|
|
3101
|
+
},
|
|
3102
|
+
row: {
|
|
2251
3103
|
flexDirection: "row",
|
|
2252
3104
|
alignItems: "center",
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
paddingVertical: 12,
|
|
2256
|
-
paddingHorizontal: 16,
|
|
2257
|
-
gap: 12,
|
|
2258
|
-
borderRadius: 79,
|
|
2259
|
-
overflow: "hidden",
|
|
2260
|
-
borderWidth: 0,
|
|
2261
|
-
borderColor: "transparent",
|
|
2262
|
-
borderStyle: "solid"
|
|
2263
|
-
},
|
|
2264
|
-
transparentBorder: {
|
|
2265
|
-
borderWidth: 1,
|
|
2266
|
-
borderColor: colors.whiteAlpha5,
|
|
2267
|
-
borderStyle: "solid"
|
|
3105
|
+
gap: ROW_GAP,
|
|
3106
|
+
width: "100%"
|
|
2268
3107
|
},
|
|
2269
|
-
|
|
2270
|
-
width:
|
|
2271
|
-
height:
|
|
3108
|
+
badge: {
|
|
3109
|
+
width: BADGE_SIZE,
|
|
3110
|
+
height: BADGE_SIZE,
|
|
3111
|
+
borderRadius: 79,
|
|
3112
|
+
backgroundColor: colors.grey600,
|
|
2272
3113
|
alignItems: "center",
|
|
2273
3114
|
justifyContent: "center",
|
|
2274
|
-
flexShrink: 0
|
|
3115
|
+
flexShrink: 0,
|
|
3116
|
+
overflow: "hidden"
|
|
2275
3117
|
},
|
|
2276
|
-
|
|
2277
|
-
|
|
3118
|
+
badgeLabel: {
|
|
3119
|
+
fontFamily: fonts.sans,
|
|
3120
|
+
fontSize: 14,
|
|
3121
|
+
fontWeight: "500",
|
|
3122
|
+
lineHeight: 14,
|
|
3123
|
+
letterSpacing: 0,
|
|
3124
|
+
color: colors.white,
|
|
3125
|
+
textAlign: "center"
|
|
3126
|
+
},
|
|
3127
|
+
description: {
|
|
3128
|
+
flex: 1,
|
|
3129
|
+
minWidth: 0,
|
|
3130
|
+
fontFamily: fonts.sans,
|
|
3131
|
+
fontSize: 14,
|
|
3132
|
+
fontWeight: "400",
|
|
3133
|
+
lineHeight: 14,
|
|
3134
|
+
letterSpacing: 0,
|
|
2278
3135
|
color: colors.white
|
|
2279
3136
|
},
|
|
3137
|
+
connectorSlot: {
|
|
3138
|
+
width: BADGE_SIZE,
|
|
3139
|
+
alignItems: "center",
|
|
3140
|
+
paddingVertical: CONNECTOR_GAP
|
|
3141
|
+
},
|
|
3142
|
+
connector: {
|
|
3143
|
+
width: CONNECTOR_WIDTH,
|
|
3144
|
+
height: CONNECTOR_HEIGHT,
|
|
3145
|
+
borderRadius: 98,
|
|
3146
|
+
backgroundColor: colors.grey600
|
|
3147
|
+
},
|
|
2280
3148
|
labelAndroid: {
|
|
2281
3149
|
includeFontPadding: false
|
|
2282
3150
|
}
|
|
2283
3151
|
});
|
|
2284
3152
|
var BUTTON_SIZE = 32;
|
|
2285
|
-
var
|
|
3153
|
+
var webBlurStyle6 = Platform.OS === "web" ? {
|
|
2286
3154
|
backdropFilter: "blur(20px)",
|
|
2287
3155
|
WebkitBackdropFilter: "blur(20px)"
|
|
2288
3156
|
} : {};
|
|
@@ -2319,7 +3187,7 @@ var Counter = forwardRef(function Counter2({
|
|
|
2319
3187
|
if (!isControlled) setUncontrolledValue(next);
|
|
2320
3188
|
onValueChange?.(next);
|
|
2321
3189
|
};
|
|
2322
|
-
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [
|
|
3190
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [styles13.base, style], children: [
|
|
2323
3191
|
/* @__PURE__ */ jsx(
|
|
2324
3192
|
Pressable,
|
|
2325
3193
|
{
|
|
@@ -2329,11 +3197,11 @@ var Counter = forwardRef(function Counter2({
|
|
|
2329
3197
|
accessibilityRole: "button",
|
|
2330
3198
|
accessibilityLabel: "Decrease value",
|
|
2331
3199
|
accessibilityState: { disabled: decrementDisabled },
|
|
2332
|
-
style: [
|
|
3200
|
+
style: [styles13.button, webBlurStyle6, decrementDisabled && styles13.buttonDisabled],
|
|
2333
3201
|
children: /* @__PURE__ */ jsx(MinusIcon, {})
|
|
2334
3202
|
}
|
|
2335
3203
|
),
|
|
2336
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3204
|
+
/* @__PURE__ */ jsx(Text, { style: styles13.value, children: resolvedValue }),
|
|
2337
3205
|
/* @__PURE__ */ jsx(
|
|
2338
3206
|
Pressable,
|
|
2339
3207
|
{
|
|
@@ -2343,13 +3211,13 @@ var Counter = forwardRef(function Counter2({
|
|
|
2343
3211
|
accessibilityRole: "button",
|
|
2344
3212
|
accessibilityLabel: "Increase value",
|
|
2345
3213
|
accessibilityState: { disabled: incrementDisabled },
|
|
2346
|
-
style: [
|
|
3214
|
+
style: [styles13.button, webBlurStyle6, incrementDisabled && styles13.buttonDisabled],
|
|
2347
3215
|
children: /* @__PURE__ */ jsx(PlusIcon, {})
|
|
2348
3216
|
}
|
|
2349
3217
|
)
|
|
2350
3218
|
] });
|
|
2351
3219
|
});
|
|
2352
|
-
var
|
|
3220
|
+
var styles13 = StyleSheet.create({
|
|
2353
3221
|
base: {
|
|
2354
3222
|
flexDirection: "row",
|
|
2355
3223
|
alignItems: "center",
|
|
@@ -2373,7 +3241,7 @@ var styles7 = StyleSheet.create({
|
|
|
2373
3241
|
color: colors.white
|
|
2374
3242
|
}
|
|
2375
3243
|
});
|
|
2376
|
-
var
|
|
3244
|
+
var ICON_SIZE6 = 20;
|
|
2377
3245
|
var ANIMATION_DURATION = 200;
|
|
2378
3246
|
var OPTION_HORIZONTAL_PADDING = 16;
|
|
2379
3247
|
var OPTION_CONTENT_GAP = 12;
|
|
@@ -2469,9 +3337,9 @@ var SegmentedToggle = forwardRef(
|
|
|
2469
3337
|
onLayout?.(event);
|
|
2470
3338
|
},
|
|
2471
3339
|
style: [
|
|
2472
|
-
|
|
2473
|
-
fullWidth ?
|
|
2474
|
-
disabled &&
|
|
3340
|
+
styles14.base,
|
|
3341
|
+
fullWidth ? styles14.fullWidth : styles14.contentWidth,
|
|
3342
|
+
disabled && styles14.disabled,
|
|
2475
3343
|
style
|
|
2476
3344
|
],
|
|
2477
3345
|
accessibilityRole: "radiogroup",
|
|
@@ -2492,10 +3360,10 @@ var SegmentedToggle = forwardRef(
|
|
|
2492
3360
|
return nextWidths;
|
|
2493
3361
|
});
|
|
2494
3362
|
},
|
|
2495
|
-
style:
|
|
3363
|
+
style: styles14.optionMeasurement,
|
|
2496
3364
|
children: [
|
|
2497
|
-
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size:
|
|
2498
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
3365
|
+
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE6 }) : null,
|
|
3366
|
+
/* @__PURE__ */ jsx(Text, { style: [styles14.label, styles14.contentWidthLabel], children: label })
|
|
2499
3367
|
]
|
|
2500
3368
|
},
|
|
2501
3369
|
`${optionValue}-measurement`
|
|
@@ -2505,7 +3373,7 @@ var SegmentedToggle = forwardRef(
|
|
|
2505
3373
|
{
|
|
2506
3374
|
pointerEvents: "none",
|
|
2507
3375
|
style: [
|
|
2508
|
-
|
|
3376
|
+
styles14.activeIndicator,
|
|
2509
3377
|
{ width: selectedOptionWidth, transform: [{ translateX: indicatorTranslateX }] }
|
|
2510
3378
|
]
|
|
2511
3379
|
}
|
|
@@ -2525,18 +3393,18 @@ var SegmentedToggle = forwardRef(
|
|
|
2525
3393
|
accessibilityLabel: label,
|
|
2526
3394
|
accessibilityState: { selected, disabled },
|
|
2527
3395
|
style: [
|
|
2528
|
-
|
|
2529
|
-
fullWidth ?
|
|
3396
|
+
styles14.option,
|
|
3397
|
+
fullWidth ? styles14.optionFullWidth : [styles14.optionContentWidth, optionWidth > 0 && { width: optionWidth }]
|
|
2530
3398
|
],
|
|
2531
|
-
children: /* @__PURE__ */ jsxs(View, { style:
|
|
2532
|
-
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size:
|
|
3399
|
+
children: /* @__PURE__ */ jsxs(View, { style: styles14.optionContent, children: [
|
|
3400
|
+
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE6, color: iconColor }) : null,
|
|
2533
3401
|
/* @__PURE__ */ jsx(
|
|
2534
3402
|
Text,
|
|
2535
3403
|
{
|
|
2536
3404
|
numberOfLines: fullWidth ? 1 : void 0,
|
|
2537
3405
|
style: [
|
|
2538
|
-
|
|
2539
|
-
!fullWidth &&
|
|
3406
|
+
styles14.label,
|
|
3407
|
+
!fullWidth && styles14.contentWidthLabel,
|
|
2540
3408
|
{ color: labelColor }
|
|
2541
3409
|
],
|
|
2542
3410
|
children: label
|
|
@@ -2552,7 +3420,7 @@ var SegmentedToggle = forwardRef(
|
|
|
2552
3420
|
);
|
|
2553
3421
|
}
|
|
2554
3422
|
);
|
|
2555
|
-
var
|
|
3423
|
+
var styles14 = StyleSheet.create({
|
|
2556
3424
|
base: {
|
|
2557
3425
|
height: 44,
|
|
2558
3426
|
flexDirection: "row",
|
|
@@ -2618,11 +3486,11 @@ var styles8 = StyleSheet.create({
|
|
|
2618
3486
|
});
|
|
2619
3487
|
var SIDEBAR_WIDTH = 300;
|
|
2620
3488
|
var SIDEBAR_COLLAPSED_WIDTH = 72;
|
|
2621
|
-
var
|
|
3489
|
+
var HEADER_HEIGHT2 = 64;
|
|
2622
3490
|
var LOGO_WIDTH = 31;
|
|
2623
3491
|
var LOGO_HEIGHT = 44;
|
|
2624
3492
|
var TOGGLE_SIZE = 20;
|
|
2625
|
-
var
|
|
3493
|
+
var MENU_ICON_SIZE2 = 16;
|
|
2626
3494
|
var PROFILE_SECTION_HEIGHT = 80;
|
|
2627
3495
|
var SIDEBAR_TRANSITION_MS = 300;
|
|
2628
3496
|
var Sidebar = forwardRef(function Sidebar2({
|
|
@@ -2637,6 +3505,7 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
2637
3505
|
collapsed: collapsedProp,
|
|
2638
3506
|
defaultCollapsed = false,
|
|
2639
3507
|
onCollapsedChange,
|
|
3508
|
+
showCollapseToggle = true,
|
|
2640
3509
|
style,
|
|
2641
3510
|
className,
|
|
2642
3511
|
...rest
|
|
@@ -2677,58 +3546,68 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
2677
3546
|
{
|
|
2678
3547
|
...rest,
|
|
2679
3548
|
ref: setContainerRef,
|
|
2680
|
-
style: [
|
|
3549
|
+
style: [styles15.root, { width: widthAnim }, style],
|
|
2681
3550
|
accessibilityRole: "menu",
|
|
2682
3551
|
children: [
|
|
2683
|
-
/* @__PURE__ */ jsxs(
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
3552
|
+
/* @__PURE__ */ jsxs(
|
|
3553
|
+
View,
|
|
3554
|
+
{
|
|
3555
|
+
style: [
|
|
3556
|
+
styles15.header,
|
|
3557
|
+
collapsed ? styles15.headerCollapsed : styles15.headerExpanded,
|
|
3558
|
+
!showCollapseToggle ? styles15.headerNoToggle : null
|
|
3559
|
+
],
|
|
3560
|
+
children: [
|
|
3561
|
+
/* @__PURE__ */ jsx(
|
|
3562
|
+
Animated.View,
|
|
2690
3563
|
{
|
|
2691
|
-
|
|
2692
|
-
|
|
3564
|
+
pointerEvents: collapsed ? "none" : "auto",
|
|
3565
|
+
style: [
|
|
3566
|
+
styles15.logoSlot,
|
|
3567
|
+
{
|
|
3568
|
+
opacity: labelOpacity,
|
|
3569
|
+
maxWidth: collapsed ? 0 : LOGO_WIDTH
|
|
3570
|
+
}
|
|
3571
|
+
],
|
|
3572
|
+
accessibilityElementsHidden: collapsed,
|
|
3573
|
+
importantForAccessibility: collapsed ? "no-hide-descendants" : "auto",
|
|
3574
|
+
children: /* @__PURE__ */ jsx(
|
|
3575
|
+
BrandLogo,
|
|
3576
|
+
{
|
|
3577
|
+
accessibilityLabel: logoAccessibilityLabel,
|
|
3578
|
+
height: LOGO_HEIGHT,
|
|
3579
|
+
variant: "brand",
|
|
3580
|
+
width: LOGO_WIDTH
|
|
3581
|
+
}
|
|
3582
|
+
)
|
|
2693
3583
|
}
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
children: /* @__PURE__ */ jsx(
|
|
2698
|
-
BrandLogo,
|
|
3584
|
+
),
|
|
3585
|
+
showCollapseToggle ? /* @__PURE__ */ jsx(
|
|
3586
|
+
Pressable,
|
|
2699
3587
|
{
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
3588
|
+
accessibilityRole: "button",
|
|
3589
|
+
accessibilityLabel: collapsed ? expandAccessibilityLabel : collapseAccessibilityLabel,
|
|
3590
|
+
accessibilityState: { expanded: !collapsed },
|
|
3591
|
+
hitSlop: 8,
|
|
3592
|
+
onPress: () => setCollapsed(!collapsed),
|
|
3593
|
+
style: styles15.toggleButton,
|
|
3594
|
+
children: /* @__PURE__ */ jsx(SidebarIcon, { color: colors.grey100, size: TOGGLE_SIZE, strokeWidth: 2 })
|
|
2704
3595
|
}
|
|
2705
|
-
)
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
Pressable,
|
|
2710
|
-
{
|
|
2711
|
-
accessibilityRole: "button",
|
|
2712
|
-
accessibilityLabel: collapsed ? expandAccessibilityLabel : collapseAccessibilityLabel,
|
|
2713
|
-
accessibilityState: { expanded: !collapsed },
|
|
2714
|
-
hitSlop: 8,
|
|
2715
|
-
onPress: () => setCollapsed(!collapsed),
|
|
2716
|
-
style: styles9.toggleButton,
|
|
2717
|
-
children: /* @__PURE__ */ jsx(SidebarIcon, { color: colors.grey100, size: TOGGLE_SIZE, strokeWidth: 2 })
|
|
2718
|
-
}
|
|
2719
|
-
)
|
|
2720
|
-
] }),
|
|
3596
|
+
) : null
|
|
3597
|
+
]
|
|
3598
|
+
}
|
|
3599
|
+
),
|
|
2721
3600
|
/* @__PURE__ */ jsx(
|
|
2722
3601
|
View,
|
|
2723
3602
|
{
|
|
2724
3603
|
accessibilityLabel: navigationAccessibilityLabel,
|
|
2725
3604
|
accessibilityRole: "menu",
|
|
2726
|
-
style:
|
|
3605
|
+
style: styles15.nav,
|
|
2727
3606
|
children: items.map((item) => {
|
|
2728
3607
|
const isActive = Boolean(item.active);
|
|
2729
3608
|
const iconColor = isActive ? colors.primary : colors.grey300;
|
|
2730
3609
|
const Icon2 = item.icon;
|
|
2731
|
-
const iconNode = /* @__PURE__ */ jsx(Icon2, { color: iconColor, size:
|
|
3610
|
+
const iconNode = /* @__PURE__ */ jsx(Icon2, { color: iconColor, size: MENU_ICON_SIZE2, strokeWidth: 1.5 });
|
|
2732
3611
|
return /* @__PURE__ */ jsx(
|
|
2733
3612
|
MenuItem,
|
|
2734
3613
|
{
|
|
@@ -2739,18 +3618,18 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
2739
3618
|
hoverColor: colors.grey700,
|
|
2740
3619
|
onPress: item.onPress,
|
|
2741
3620
|
labelStyle: [
|
|
2742
|
-
|
|
3621
|
+
styles15.menuLabel,
|
|
2743
3622
|
{ color: isActive ? colors.white : colors.grey200 },
|
|
2744
|
-
collapsed ?
|
|
3623
|
+
collapsed ? styles15.menuLabelCollapsed : styles15.menuLabelExpanded
|
|
2745
3624
|
],
|
|
2746
|
-
style: [
|
|
3625
|
+
style: [styles15.menuItem, collapsed ? styles15.menuItemCollapsed : null]
|
|
2747
3626
|
},
|
|
2748
3627
|
item.key
|
|
2749
3628
|
);
|
|
2750
3629
|
})
|
|
2751
3630
|
}
|
|
2752
3631
|
),
|
|
2753
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
3632
|
+
/* @__PURE__ */ jsx(View, { style: [styles15.footer, collapsed ? styles15.footerCollapsed : styles15.footerExpanded], children: /* @__PURE__ */ jsx(
|
|
2754
3633
|
AvatarSimple,
|
|
2755
3634
|
{
|
|
2756
3635
|
name: user.name,
|
|
@@ -2765,7 +3644,7 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
2765
3644
|
}
|
|
2766
3645
|
);
|
|
2767
3646
|
});
|
|
2768
|
-
var
|
|
3647
|
+
var styles15 = StyleSheet.create({
|
|
2769
3648
|
root: {
|
|
2770
3649
|
flexDirection: "column",
|
|
2771
3650
|
alignSelf: "stretch",
|
|
@@ -2779,7 +3658,7 @@ var styles9 = StyleSheet.create({
|
|
|
2779
3658
|
},
|
|
2780
3659
|
header: {
|
|
2781
3660
|
zIndex: 1,
|
|
2782
|
-
height:
|
|
3661
|
+
height: HEADER_HEIGHT2,
|
|
2783
3662
|
width: "100%",
|
|
2784
3663
|
flexDirection: "row",
|
|
2785
3664
|
alignItems: "center",
|
|
@@ -2791,6 +3670,9 @@ var styles9 = StyleSheet.create({
|
|
|
2791
3670
|
justifyContent: "space-between",
|
|
2792
3671
|
paddingHorizontal: 24
|
|
2793
3672
|
},
|
|
3673
|
+
headerNoToggle: {
|
|
3674
|
+
justifyContent: "flex-start"
|
|
3675
|
+
},
|
|
2794
3676
|
headerCollapsed: {
|
|
2795
3677
|
justifyContent: "center",
|
|
2796
3678
|
paddingHorizontal: 0
|
|
@@ -2867,7 +3749,7 @@ var defaultLanguageOptions = [
|
|
|
2867
3749
|
];
|
|
2868
3750
|
var CONTROL_WIDTH = 90;
|
|
2869
3751
|
var CONTROL_HEIGHT = 35;
|
|
2870
|
-
var
|
|
3752
|
+
var ICON_SIZE7 = 16;
|
|
2871
3753
|
var LanguageSwitcher = forwardRef(
|
|
2872
3754
|
function LanguageSwitcher2({
|
|
2873
3755
|
options = defaultLanguageOptions,
|
|
@@ -2947,7 +3829,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
2947
3829
|
{
|
|
2948
3830
|
...rest,
|
|
2949
3831
|
ref: setWrapperRef,
|
|
2950
|
-
style: [
|
|
3832
|
+
style: [styles16.wrapper, isOpen && styles16.wrapperOpen, disabled && styles16.disabled, style],
|
|
2951
3833
|
children: [
|
|
2952
3834
|
/* @__PURE__ */ jsxs(
|
|
2953
3835
|
Pressable,
|
|
@@ -2962,17 +3844,17 @@ var LanguageSwitcher = forwardRef(
|
|
|
2962
3844
|
onHoverIn: () => setTriggerHovered(true),
|
|
2963
3845
|
onHoverOut: () => setTriggerHovered(false),
|
|
2964
3846
|
style: ({ pressed }) => [
|
|
2965
|
-
|
|
2966
|
-
(triggerHovered || pressed || isOpen) &&
|
|
3847
|
+
styles16.trigger,
|
|
3848
|
+
(triggerHovered || pressed || isOpen) && styles16.triggerActive
|
|
2967
3849
|
],
|
|
2968
3850
|
children: [
|
|
2969
|
-
/* @__PURE__ */ jsx(GlobeIcon, { size:
|
|
2970
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
2971
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
3851
|
+
/* @__PURE__ */ jsx(GlobeIcon, { size: ICON_SIZE7, color: colors.white, strokeWidth: 2 }),
|
|
3852
|
+
/* @__PURE__ */ jsx(Text, { style: styles16.triggerLabel, numberOfLines: 1, children: selectedOption?.label ?? "" }),
|
|
3853
|
+
/* @__PURE__ */ jsx(View, { style: [styles16.chevron, isOpen && styles16.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE7, color: colors.white, strokeWidth: 2 }) })
|
|
2972
3854
|
]
|
|
2973
3855
|
}
|
|
2974
3856
|
),
|
|
2975
|
-
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(View, { style:
|
|
3857
|
+
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(View, { style: styles16.menu, accessibilityRole: "menu", children: options.map((option) => {
|
|
2976
3858
|
const selected = option.value === selectedValue;
|
|
2977
3859
|
return /* @__PURE__ */ jsx(
|
|
2978
3860
|
Pressable,
|
|
@@ -2984,10 +3866,10 @@ var LanguageSwitcher = forwardRef(
|
|
|
2984
3866
|
onHoverIn: () => setHoveredValue(option.value),
|
|
2985
3867
|
onHoverOut: () => setHoveredValue(null),
|
|
2986
3868
|
style: ({ pressed }) => [
|
|
2987
|
-
|
|
2988
|
-
selected ?
|
|
3869
|
+
styles16.item,
|
|
3870
|
+
selected ? styles16.itemSelected : (hoveredValue === option.value || pressed) && styles16.itemHovered
|
|
2989
3871
|
],
|
|
2990
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
3872
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles16.itemLabel, selected && styles16.itemLabelSelected], children: option.label })
|
|
2991
3873
|
},
|
|
2992
3874
|
option.value
|
|
2993
3875
|
);
|
|
@@ -2997,7 +3879,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
2997
3879
|
);
|
|
2998
3880
|
}
|
|
2999
3881
|
);
|
|
3000
|
-
var
|
|
3882
|
+
var styles16 = StyleSheet.create({
|
|
3001
3883
|
wrapper: {
|
|
3002
3884
|
position: "relative",
|
|
3003
3885
|
width: CONTROL_WIDTH,
|
|
@@ -3030,8 +3912,8 @@ var styles10 = StyleSheet.create({
|
|
|
3030
3912
|
color: colors.white
|
|
3031
3913
|
},
|
|
3032
3914
|
chevron: {
|
|
3033
|
-
width:
|
|
3034
|
-
height:
|
|
3915
|
+
width: ICON_SIZE7,
|
|
3916
|
+
height: ICON_SIZE7,
|
|
3035
3917
|
flexShrink: 0,
|
|
3036
3918
|
alignItems: "center",
|
|
3037
3919
|
justifyContent: "center"
|
|
@@ -3073,12 +3955,12 @@ var styles10 = StyleSheet.create({
|
|
|
3073
3955
|
color: colors.primary
|
|
3074
3956
|
}
|
|
3075
3957
|
});
|
|
3076
|
-
var
|
|
3958
|
+
var ICON_SIZE8 = 25.63181;
|
|
3077
3959
|
var StatCard = forwardRef(function StatCard2({
|
|
3078
3960
|
label,
|
|
3079
3961
|
icon: Icon2,
|
|
3080
3962
|
iconProps,
|
|
3081
|
-
iconSize =
|
|
3963
|
+
iconSize = ICON_SIZE8,
|
|
3082
3964
|
style,
|
|
3083
3965
|
className,
|
|
3084
3966
|
accessibilityLabel,
|
|
@@ -3093,17 +3975,17 @@ var StatCard = forwardRef(function StatCard2({
|
|
|
3093
3975
|
{
|
|
3094
3976
|
...rest,
|
|
3095
3977
|
ref: setContainerRef,
|
|
3096
|
-
style: [
|
|
3978
|
+
style: [styles17.base, style],
|
|
3097
3979
|
accessibilityRole: "text",
|
|
3098
3980
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
3099
3981
|
children: [
|
|
3100
3982
|
/* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }),
|
|
3101
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3983
|
+
/* @__PURE__ */ jsx(Text, { style: styles17.label, children: label })
|
|
3102
3984
|
]
|
|
3103
3985
|
}
|
|
3104
3986
|
);
|
|
3105
3987
|
});
|
|
3106
|
-
var
|
|
3988
|
+
var styles17 = StyleSheet.create({
|
|
3107
3989
|
base: {
|
|
3108
3990
|
width: 204.5,
|
|
3109
3991
|
minHeight: 114,
|
|
@@ -3167,6 +4049,7 @@ var Button = forwardRef(
|
|
|
3167
4049
|
size = "lg",
|
|
3168
4050
|
showIcon = false,
|
|
3169
4051
|
icon,
|
|
4052
|
+
iconBadgeBackgroundColor,
|
|
3170
4053
|
style,
|
|
3171
4054
|
textStyle,
|
|
3172
4055
|
className,
|
|
@@ -3189,7 +4072,7 @@ var Button = forwardRef(
|
|
|
3189
4072
|
useApplyWebClassName(textRef, textClassName);
|
|
3190
4073
|
const iconNode = customIcon ?? /* @__PURE__ */ jsx(ArrowRightIcon, { size: metrics.iconSize, color: preset.iconColor });
|
|
3191
4074
|
const containerStyle = [
|
|
3192
|
-
|
|
4075
|
+
styles18.base,
|
|
3193
4076
|
{
|
|
3194
4077
|
minHeight: metrics.minHeight,
|
|
3195
4078
|
borderRadius: metrics.borderRadius,
|
|
@@ -3200,16 +4083,16 @@ var Button = forwardRef(
|
|
|
3200
4083
|
paddingRight: hasIcon ? metrics.paddingRightWithIcon : metrics.paddingRight,
|
|
3201
4084
|
gap: hasIcon ? metrics.gap : 0
|
|
3202
4085
|
},
|
|
3203
|
-
hasIcon ?
|
|
3204
|
-
disabled &&
|
|
4086
|
+
hasIcon ? styles18.contentWithIcon : styles18.contentWithoutIcon,
|
|
4087
|
+
disabled && styles18.disabled,
|
|
3205
4088
|
style
|
|
3206
4089
|
];
|
|
3207
4090
|
const labelStyle = [
|
|
3208
|
-
|
|
4091
|
+
styles18.label,
|
|
3209
4092
|
metrics.text,
|
|
3210
4093
|
{ color: preset.textColor },
|
|
3211
|
-
Platform.OS === "android" ?
|
|
3212
|
-
!hasIcon &&
|
|
4094
|
+
Platform.OS === "android" ? styles18.labelAndroid : null,
|
|
4095
|
+
!hasIcon && styles18.labelCentered,
|
|
3213
4096
|
textStyle
|
|
3214
4097
|
];
|
|
3215
4098
|
return /* @__PURE__ */ jsxs(
|
|
@@ -3230,12 +4113,12 @@ var Button = forwardRef(
|
|
|
3230
4113
|
View,
|
|
3231
4114
|
{
|
|
3232
4115
|
style: [
|
|
3233
|
-
|
|
4116
|
+
styles18.iconContainer,
|
|
3234
4117
|
{
|
|
3235
4118
|
width: metrics.iconContainerSize,
|
|
3236
4119
|
height: metrics.iconContainerSize,
|
|
3237
4120
|
borderRadius: metrics.iconContainerSize / 2,
|
|
3238
|
-
backgroundColor: preset.iconBadgeBackgroundColor
|
|
4121
|
+
backgroundColor: iconBadgeBackgroundColor ?? preset.iconBadgeBackgroundColor
|
|
3239
4122
|
}
|
|
3240
4123
|
],
|
|
3241
4124
|
children: iconNode
|
|
@@ -3246,7 +4129,7 @@ var Button = forwardRef(
|
|
|
3246
4129
|
);
|
|
3247
4130
|
}
|
|
3248
4131
|
);
|
|
3249
|
-
var
|
|
4132
|
+
var styles18 = StyleSheet.create({
|
|
3250
4133
|
base: {
|
|
3251
4134
|
flexDirection: "row",
|
|
3252
4135
|
alignItems: "center",
|
|
@@ -3330,13 +4213,13 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
3330
4213
|
accessibilityRole: "checkbox",
|
|
3331
4214
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
3332
4215
|
accessibilityState: { checked: isActive, disabled },
|
|
3333
|
-
style: [
|
|
4216
|
+
style: [styles19.root, disabled && styles19.disabled, style],
|
|
3334
4217
|
children: [
|
|
3335
4218
|
/* @__PURE__ */ jsx(
|
|
3336
4219
|
View,
|
|
3337
4220
|
{
|
|
3338
4221
|
style: [
|
|
3339
|
-
|
|
4222
|
+
styles19.box,
|
|
3340
4223
|
{
|
|
3341
4224
|
backgroundColor: chrome.backgroundColor,
|
|
3342
4225
|
borderColor: chrome.borderColor
|
|
@@ -3345,12 +4228,12 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
3345
4228
|
children: isActive ? /* @__PURE__ */ jsx(CheckIcon, { size: CHECK_SIZE, color: colors.primary, strokeWidth: CHECK_STROKE }) : null
|
|
3346
4229
|
}
|
|
3347
4230
|
),
|
|
3348
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4231
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles19.label, labelStyle], children: labelContent }) : labelContent : null
|
|
3349
4232
|
]
|
|
3350
4233
|
}
|
|
3351
4234
|
);
|
|
3352
4235
|
});
|
|
3353
|
-
var
|
|
4236
|
+
var styles19 = StyleSheet.create({
|
|
3354
4237
|
root: {
|
|
3355
4238
|
flexDirection: "row",
|
|
3356
4239
|
alignItems: "center",
|
|
@@ -3409,6 +4292,24 @@ function formatDate(date) {
|
|
|
3409
4292
|
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
3410
4293
|
return `${day}.${month}.${date.getFullYear()}`;
|
|
3411
4294
|
}
|
|
4295
|
+
function abbreviateMonthName(monthName, letterCount = 3) {
|
|
4296
|
+
const chars = Array.from(monthName);
|
|
4297
|
+
let visual = 0;
|
|
4298
|
+
let end = 0;
|
|
4299
|
+
while (end < chars.length && visual < letterCount) {
|
|
4300
|
+
if (chars[end] === "\u0578" && chars[end + 1] === "\u0582") {
|
|
4301
|
+
end += 2;
|
|
4302
|
+
} else {
|
|
4303
|
+
end += 1;
|
|
4304
|
+
}
|
|
4305
|
+
visual += 1;
|
|
4306
|
+
}
|
|
4307
|
+
return chars.slice(0, end).join("");
|
|
4308
|
+
}
|
|
4309
|
+
function formatDateDayShortMonth(date, monthNames, letterCount = 3) {
|
|
4310
|
+
const month = abbreviateMonthName(monthNames[date.getMonth()] ?? "", letterCount);
|
|
4311
|
+
return `${date.getDate()} ${month} ${date.getFullYear()}`;
|
|
4312
|
+
}
|
|
3412
4313
|
function getMonthMatrix(monthDate, weekStartsOn = 1) {
|
|
3413
4314
|
const year = monthDate.getFullYear();
|
|
3414
4315
|
const month = monthDate.getMonth();
|
|
@@ -3449,7 +4350,7 @@ var RANGE_TRIGGER_WIDTH = 382;
|
|
|
3449
4350
|
var TRIGGER_HEIGHT = 44;
|
|
3450
4351
|
var TRIGGER_RADIUS = 60;
|
|
3451
4352
|
var MENU_RADIUS2 = 20;
|
|
3452
|
-
var
|
|
4353
|
+
var ICON_SIZE9 = 20;
|
|
3453
4354
|
var NAV_ICON_SIZE = 20;
|
|
3454
4355
|
var DAY_CELL_HEIGHT = 44;
|
|
3455
4356
|
var DAY_CIRCLE_SIZE = 44;
|
|
@@ -3458,13 +4359,13 @@ function RangeTriggerField({
|
|
|
3458
4359
|
value,
|
|
3459
4360
|
time
|
|
3460
4361
|
}) {
|
|
3461
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
3462
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
3463
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
3464
|
-
/* @__PURE__ */ jsx(Text, {
|
|
3465
|
-
time ? /* @__PURE__ */ jsxs(View, { style:
|
|
4362
|
+
return /* @__PURE__ */ jsxs(View, { style: styles20.rangeField, children: [
|
|
4363
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles20.rangeLabel, children: label }),
|
|
4364
|
+
/* @__PURE__ */ jsxs(View, { style: styles20.rangeValueRow, children: [
|
|
4365
|
+
/* @__PURE__ */ jsx(Text, { style: styles20.rangeDate, children: value }),
|
|
4366
|
+
time ? /* @__PURE__ */ jsxs(View, { style: styles20.rangeTimeWrap, children: [
|
|
3466
4367
|
/* @__PURE__ */ jsx(ClockFilledIcon, { color: colors.lightGrey, size: 16 }),
|
|
3467
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
4368
|
+
/* @__PURE__ */ jsx(Text, { style: styles20.rangeTime, children: time })
|
|
3468
4369
|
] }) : null
|
|
3469
4370
|
] })
|
|
3470
4371
|
] });
|
|
@@ -3490,9 +4391,10 @@ var DatePicker = forwardRef(
|
|
|
3490
4391
|
defaultVisibleMonth,
|
|
3491
4392
|
monthNames = DEFAULT_MONTH_NAMES,
|
|
3492
4393
|
weekdayLabels = DEFAULT_WEEKDAY_LABELS,
|
|
3493
|
-
formatValue
|
|
4394
|
+
formatValue: formatValueProp,
|
|
3494
4395
|
weekStartsOn = 1,
|
|
3495
4396
|
calendarStyle,
|
|
4397
|
+
hideTrigger = false,
|
|
3496
4398
|
style,
|
|
3497
4399
|
className,
|
|
3498
4400
|
accessibilityLabel,
|
|
@@ -3505,6 +4407,8 @@ var DatePicker = forwardRef(
|
|
|
3505
4407
|
...rest
|
|
3506
4408
|
} = props;
|
|
3507
4409
|
const isRange = props.range === true;
|
|
4410
|
+
const usesRangeTrigger = isRange && variant !== "default";
|
|
4411
|
+
const formatValue = formatValueProp ?? (usesRangeTrigger ? (date) => formatDateDayShortMonth(date, monthNames) : formatDate);
|
|
3508
4412
|
const valueProp = props.value;
|
|
3509
4413
|
const rootRef = useRef(null);
|
|
3510
4414
|
const triggerRef = useRef(null);
|
|
@@ -3519,9 +4423,16 @@ var DatePicker = forwardRef(
|
|
|
3519
4423
|
);
|
|
3520
4424
|
const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
|
|
3521
4425
|
const [hoveredDayKey, setHoveredDayKey] = useState(null);
|
|
4426
|
+
const [menuAlignEnd, setMenuAlignEnd] = useState(false);
|
|
3522
4427
|
const rangeValue = isRange ? isValueControlled ? valueProp ?? EMPTY_RANGE : uncontrolledRange : EMPTY_RANGE;
|
|
3523
4428
|
const singleValue = !isRange ? isValueControlled ? valueProp ?? null : uncontrolledSingle : null;
|
|
3524
4429
|
const isOpen = isOpenControlled ? openProp : uncontrolledOpen;
|
|
4430
|
+
const defaultMenuWidth = usesRangeTrigger ? RANGE_TRIGGER_WIDTH : DEFAULT_WIDTH;
|
|
4431
|
+
const resolvedMenuWidth = useMemo(() => {
|
|
4432
|
+
const flat = StyleSheet.flatten(calendarStyle);
|
|
4433
|
+
const width = flat?.width;
|
|
4434
|
+
return typeof width === "number" ? width : defaultMenuWidth;
|
|
4435
|
+
}, [calendarStyle, defaultMenuWidth]);
|
|
3525
4436
|
const [visibleMonth, setVisibleMonth] = useState(() => {
|
|
3526
4437
|
const anchor = defaultVisibleMonth ?? (isRange ? rangeValue.start : singleValue) ?? /* @__PURE__ */ new Date();
|
|
3527
4438
|
return new Date(anchor.getFullYear(), anchor.getMonth(), 1);
|
|
@@ -3536,10 +4447,25 @@ var DatePicker = forwardRef(
|
|
|
3536
4447
|
setVisibleMonth(new Date(anchor.getFullYear(), anchor.getMonth(), 1));
|
|
3537
4448
|
} else {
|
|
3538
4449
|
setHoveredDayKey(null);
|
|
4450
|
+
setMenuAlignEnd(false);
|
|
3539
4451
|
}
|
|
3540
4452
|
},
|
|
3541
4453
|
[isOpenControlled, isRange, onOpenChange, rangeValue.start, singleValue]
|
|
3542
4454
|
);
|
|
4455
|
+
useLayoutEffect(() => {
|
|
4456
|
+
if (Platform.OS !== "web" || !isOpen || hideTrigger) return;
|
|
4457
|
+
const updateMenuAlign = () => {
|
|
4458
|
+
const trigger = triggerRef.current;
|
|
4459
|
+
const rect = trigger?.getBoundingClientRect?.();
|
|
4460
|
+
if (!rect) return;
|
|
4461
|
+
const viewportPadding = 8;
|
|
4462
|
+
const overflowsRight = rect.left + resolvedMenuWidth > window.innerWidth - viewportPadding;
|
|
4463
|
+
setMenuAlignEnd(overflowsRight);
|
|
4464
|
+
};
|
|
4465
|
+
updateMenuAlign();
|
|
4466
|
+
window.addEventListener("resize", updateMenuAlign);
|
|
4467
|
+
return () => window.removeEventListener("resize", updateMenuAlign);
|
|
4468
|
+
}, [hideTrigger, isOpen, resolvedMenuWidth]);
|
|
3543
4469
|
useEffect(() => {
|
|
3544
4470
|
if (Platform.OS !== "web" || !isOpen) return;
|
|
3545
4471
|
const handlePointerDown = (event) => {
|
|
@@ -3617,7 +4543,6 @@ var DatePicker = forwardRef(
|
|
|
3617
4543
|
const today = useMemo(() => startOfDay(/* @__PURE__ */ new Date()), []);
|
|
3618
4544
|
const hasValue = isRange ? rangeValue.start != null : singleValue != null;
|
|
3619
4545
|
const triggerLabel = isRange ? rangeValue.start && rangeValue.end ? `${formatValue(rangeValue.start)} - ${formatValue(rangeValue.end)}` : rangeValue.start ? `${formatValue(rangeValue.start)} - ...` : placeholder : singleValue ? formatValue(singleValue) : placeholder;
|
|
3620
|
-
const usesRangeTrigger = isRange && variant !== "default";
|
|
3621
4546
|
const usesVerticalRangeTrigger = usesRangeTrigger && variant === "range-vertical";
|
|
3622
4547
|
const triggerBorderColor = usesRangeTrigger ? isOpen ? colors.primary : colors.grey500 : isOpen ? colors.primaryMuted : colors.grey700;
|
|
3623
4548
|
const triggerTextColor = hasValue ? colors.white : colors.grey100;
|
|
@@ -3630,15 +4555,16 @@ var DatePicker = forwardRef(
|
|
|
3630
4555
|
...rest,
|
|
3631
4556
|
ref: setRootRef,
|
|
3632
4557
|
style: [
|
|
3633
|
-
|
|
3634
|
-
usesRangeTrigger &&
|
|
3635
|
-
|
|
3636
|
-
|
|
4558
|
+
styles20.root,
|
|
4559
|
+
usesRangeTrigger && styles20.rangeRoot,
|
|
4560
|
+
hideTrigger && styles20.rootHideTrigger,
|
|
4561
|
+
isOpen && styles20.rootOpen,
|
|
4562
|
+
disabled && styles20.disabled,
|
|
3637
4563
|
style
|
|
3638
4564
|
],
|
|
3639
4565
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3640
|
-
children: /* @__PURE__ */ jsxs(View, { style: [
|
|
3641
|
-
/* @__PURE__ */ jsx(
|
|
4566
|
+
children: /* @__PURE__ */ jsxs(View, { style: [styles20.triggerWrap, isOpen && styles20.triggerWrapOpen], children: [
|
|
4567
|
+
hideTrigger ? null : /* @__PURE__ */ jsx(
|
|
3642
4568
|
Pressable,
|
|
3643
4569
|
{
|
|
3644
4570
|
ref: triggerRef,
|
|
@@ -3648,9 +4574,9 @@ var DatePicker = forwardRef(
|
|
|
3648
4574
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
3649
4575
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3650
4576
|
style: [
|
|
3651
|
-
|
|
3652
|
-
usesRangeTrigger &&
|
|
3653
|
-
usesRangeTrigger && (usesVerticalRangeTrigger ?
|
|
4577
|
+
styles20.trigger,
|
|
4578
|
+
usesRangeTrigger && styles20.rangeTrigger,
|
|
4579
|
+
usesRangeTrigger && (usesVerticalRangeTrigger ? styles20.rangeTriggerVertical : styles20.rangeTriggerHorizontal),
|
|
3654
4580
|
{
|
|
3655
4581
|
borderColor: triggerBorderColor,
|
|
3656
4582
|
backgroundColor: usesRangeTrigger ? "transparent" : colors.grey700
|
|
@@ -3661,156 +4587,171 @@ var DatePicker = forwardRef(
|
|
|
3661
4587
|
/* @__PURE__ */ jsx(
|
|
3662
4588
|
View,
|
|
3663
4589
|
{
|
|
3664
|
-
style: usesVerticalRangeTrigger ?
|
|
4590
|
+
style: usesVerticalRangeTrigger ? styles20.rangeDividerVertical : styles20.rangeDividerHorizontal
|
|
3665
4591
|
}
|
|
3666
4592
|
),
|
|
3667
4593
|
/* @__PURE__ */ jsx(RangeTriggerField, { label: endLabel, time: endTime, value: endValue })
|
|
3668
4594
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3669
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
3670
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4595
|
+
/* @__PURE__ */ jsx(Text, { style: [styles20.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: triggerLabel }),
|
|
4596
|
+
/* @__PURE__ */ jsx(View, { style: styles20.iconSlot, children: /* @__PURE__ */ jsx(CalendarOutlineIcon, { size: ICON_SIZE9, color: colors.grey100 }) })
|
|
3671
4597
|
] })
|
|
3672
4598
|
}
|
|
3673
4599
|
),
|
|
3674
|
-
isOpen ? /* @__PURE__ */ jsxs(
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
{
|
|
3695
|
-
onPress: handleNextMonth,
|
|
3696
|
-
hitSlop: 8,
|
|
3697
|
-
accessibilityRole: "button",
|
|
3698
|
-
accessibilityLabel: "Next month",
|
|
3699
|
-
style: styles14.navButton,
|
|
3700
|
-
children: /* @__PURE__ */ jsx(View, { style: styles14.navIconMirror, children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white }) })
|
|
3701
|
-
}
|
|
3702
|
-
)
|
|
3703
|
-
] }),
|
|
3704
|
-
/* @__PURE__ */ jsxs(View, { children: [
|
|
3705
|
-
/* @__PURE__ */ jsx(View, { style: styles14.weekdayRow, children: weekdayLabels.map((weekdayLabel, index) => /* @__PURE__ */ jsx(View, { style: styles14.dayCellWrap, children: /* @__PURE__ */ jsx(Text, { style: styles14.weekdayText, children: weekdayLabel }) }, `${weekdayLabel}-${index}`)) }),
|
|
3706
|
-
weeks.map((week, weekIndex) => {
|
|
3707
|
-
let rangeHighlightStyle = null;
|
|
3708
|
-
if (isRange && rangeValue.start && rangeValue.end) {
|
|
3709
|
-
const rangeIndices = week.reduce((acc, day, index) => {
|
|
3710
|
-
if (isWithinRange(day, rangeValue.start, rangeValue.end)) {
|
|
3711
|
-
acc.push(index);
|
|
3712
|
-
}
|
|
3713
|
-
return acc;
|
|
3714
|
-
}, []);
|
|
3715
|
-
if (rangeIndices.length > 0) {
|
|
3716
|
-
const first = rangeIndices[0];
|
|
3717
|
-
const last = rangeIndices[rangeIndices.length - 1];
|
|
3718
|
-
const startsHere = isSameDay(week[first], rangeValue.start);
|
|
3719
|
-
const endsHere = isSameDay(week[last], rangeValue.end);
|
|
3720
|
-
const cellPct = 100 / 7;
|
|
3721
|
-
const halfCellPct = cellPct / 2;
|
|
3722
|
-
let leftPct = first * cellPct;
|
|
3723
|
-
let widthPct = (last - first + 1) * cellPct;
|
|
3724
|
-
if (startsHere) {
|
|
3725
|
-
leftPct += halfCellPct;
|
|
3726
|
-
widthPct -= halfCellPct;
|
|
3727
|
-
}
|
|
3728
|
-
if (endsHere) {
|
|
3729
|
-
widthPct -= halfCellPct;
|
|
4600
|
+
isOpen ? /* @__PURE__ */ jsxs(
|
|
4601
|
+
View,
|
|
4602
|
+
{
|
|
4603
|
+
style: [
|
|
4604
|
+
styles20.menu,
|
|
4605
|
+
usesRangeTrigger && styles20.rangeMenu,
|
|
4606
|
+
hideTrigger ? styles20.menuInline : menuAlignEnd ? styles20.menuAlignEnd : styles20.menuAlignStart,
|
|
4607
|
+
calendarStyle
|
|
4608
|
+
],
|
|
4609
|
+
children: [
|
|
4610
|
+
/* @__PURE__ */ jsxs(View, { style: styles20.calendarHeader, children: [
|
|
4611
|
+
/* @__PURE__ */ jsx(
|
|
4612
|
+
Pressable,
|
|
4613
|
+
{
|
|
4614
|
+
onPress: handlePrevMonth,
|
|
4615
|
+
hitSlop: 8,
|
|
4616
|
+
accessibilityRole: "button",
|
|
4617
|
+
accessibilityLabel: "Previous month",
|
|
4618
|
+
style: styles20.navButton,
|
|
4619
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white })
|
|
3730
4620
|
}
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
4621
|
+
),
|
|
4622
|
+
/* @__PURE__ */ jsxs(Text, { style: styles20.monthHeading, children: [
|
|
4623
|
+
monthNames[visibleMonth.getMonth()],
|
|
4624
|
+
" ",
|
|
4625
|
+
visibleMonth.getFullYear()
|
|
4626
|
+
] }),
|
|
4627
|
+
/* @__PURE__ */ jsx(
|
|
4628
|
+
Pressable,
|
|
4629
|
+
{
|
|
4630
|
+
onPress: handleNextMonth,
|
|
4631
|
+
hitSlop: 8,
|
|
4632
|
+
accessibilityRole: "button",
|
|
4633
|
+
accessibilityLabel: "Next month",
|
|
4634
|
+
style: styles20.navButton,
|
|
4635
|
+
children: /* @__PURE__ */ jsx(View, { style: styles20.navIconMirror, children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white }) })
|
|
3736
4636
|
}
|
|
3737
|
-
|
|
3738
|
-
}
|
|
3739
|
-
|
|
3740
|
-
View,
|
|
3741
|
-
{
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
pointerEvents: "none",
|
|
3748
|
-
style: [styles14.rangeHighlight, rangeHighlightStyle]
|
|
4637
|
+
)
|
|
4638
|
+
] }),
|
|
4639
|
+
/* @__PURE__ */ jsxs(View, { children: [
|
|
4640
|
+
/* @__PURE__ */ jsx(View, { style: styles20.weekdayRow, children: weekdayLabels.map((weekdayLabel, index) => /* @__PURE__ */ jsx(View, { style: styles20.dayCellWrap, children: /* @__PURE__ */ jsx(Text, { style: styles20.weekdayText, children: weekdayLabel }) }, `${weekdayLabel}-${index}`)) }),
|
|
4641
|
+
weeks.map((week, weekIndex) => {
|
|
4642
|
+
let rangeHighlightStyle = null;
|
|
4643
|
+
if (isRange && rangeValue.start && rangeValue.end) {
|
|
4644
|
+
const rangeIndices = week.reduce((acc, day, index) => {
|
|
4645
|
+
if (isWithinRange(day, rangeValue.start, rangeValue.end)) {
|
|
4646
|
+
acc.push(index);
|
|
3749
4647
|
}
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
const
|
|
3754
|
-
const
|
|
3755
|
-
const
|
|
3756
|
-
const
|
|
3757
|
-
const
|
|
3758
|
-
const
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
4648
|
+
return acc;
|
|
4649
|
+
}, []);
|
|
4650
|
+
if (rangeIndices.length > 0) {
|
|
4651
|
+
const first = rangeIndices[0];
|
|
4652
|
+
const last = rangeIndices[rangeIndices.length - 1];
|
|
4653
|
+
const startsHere = isSameDay(week[first], rangeValue.start);
|
|
4654
|
+
const endsHere = isSameDay(week[last], rangeValue.end);
|
|
4655
|
+
const cellPct = 100 / 7;
|
|
4656
|
+
const halfCellPct = cellPct / 2;
|
|
4657
|
+
let leftPct = first * cellPct;
|
|
4658
|
+
let widthPct = (last - first + 1) * cellPct;
|
|
4659
|
+
if (startsHere) {
|
|
4660
|
+
leftPct += halfCellPct;
|
|
4661
|
+
widthPct -= halfCellPct;
|
|
4662
|
+
}
|
|
4663
|
+
if (endsHere) {
|
|
4664
|
+
widthPct -= halfCellPct;
|
|
4665
|
+
}
|
|
4666
|
+
if (widthPct > 0) {
|
|
4667
|
+
rangeHighlightStyle = {
|
|
4668
|
+
left: `${leftPct}%`,
|
|
4669
|
+
width: `${widthPct}%`
|
|
4670
|
+
};
|
|
4671
|
+
}
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4674
|
+
return /* @__PURE__ */ jsxs(
|
|
4675
|
+
View,
|
|
4676
|
+
{
|
|
4677
|
+
style: [styles20.weekRow, weekIndex > 0 && styles20.weekRowSpaced],
|
|
4678
|
+
children: [
|
|
4679
|
+
rangeHighlightStyle ? /* @__PURE__ */ jsx(
|
|
4680
|
+
View,
|
|
4681
|
+
{
|
|
4682
|
+
pointerEvents: "none",
|
|
4683
|
+
style: [styles20.rangeHighlight, rangeHighlightStyle]
|
|
4684
|
+
}
|
|
4685
|
+
) : null,
|
|
4686
|
+
week.map((day, dayIndex) => {
|
|
4687
|
+
const inCurrentMonth = isSameMonth(day, visibleMonth);
|
|
4688
|
+
const isToday = isSameDay(day, today);
|
|
4689
|
+
const isSelectedSingle = !isRange && isSameDay(day, singleValue);
|
|
4690
|
+
const isRangeStart = isRange && isSameDay(day, rangeValue.start);
|
|
4691
|
+
const isRangeEnd = isRange && isSameDay(day, rangeValue.end);
|
|
4692
|
+
const isSelectedEndpoint = isSelectedSingle || isRangeStart || isRangeEnd;
|
|
4693
|
+
const dayDisabled = disabled || isDateDisabled(day, minDate, maxDate);
|
|
4694
|
+
const dayKey = startOfDay(day).getTime();
|
|
4695
|
+
const isHovered = !dayDisabled && !isSelectedEndpoint && hoveredDayKey === dayKey;
|
|
4696
|
+
const dayTextColor = isSelectedEndpoint ? colors.white : dayDisabled ? colors.grey400 : isToday ? colors.primary : !inCurrentMonth ? colors.grey300 : colors.white;
|
|
4697
|
+
return /* @__PURE__ */ jsxs(
|
|
4698
|
+
Pressable,
|
|
4699
|
+
{
|
|
4700
|
+
onPress: () => handleDayPress(day),
|
|
4701
|
+
disabled: dayDisabled,
|
|
4702
|
+
onHoverIn: () => setHoveredDayKey(dayKey),
|
|
4703
|
+
onHoverOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
4704
|
+
onPressIn: () => setHoveredDayKey(dayKey),
|
|
4705
|
+
onPressOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
4706
|
+
style: styles20.dayCellWrap,
|
|
4707
|
+
accessibilityRole: "button",
|
|
4708
|
+
accessibilityLabel: formatValue(day),
|
|
4709
|
+
accessibilityState: {
|
|
4710
|
+
disabled: dayDisabled,
|
|
4711
|
+
selected: isSelectedEndpoint
|
|
4712
|
+
},
|
|
4713
|
+
children: [
|
|
4714
|
+
/* @__PURE__ */ jsx(
|
|
4715
|
+
View,
|
|
4716
|
+
{
|
|
4717
|
+
style: [
|
|
4718
|
+
styles20.dayCircle,
|
|
4719
|
+
isSelectedEndpoint && styles20.dayCircleSelected,
|
|
4720
|
+
isHovered && styles20.dayCircleHovered
|
|
4721
|
+
],
|
|
4722
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles20.dayText, { color: dayTextColor }], children: day.getDate() })
|
|
4723
|
+
}
|
|
4724
|
+
),
|
|
4725
|
+
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsx(View, { style: styles20.todayDot }) : null
|
|
4726
|
+
]
|
|
4727
|
+
},
|
|
4728
|
+
dayIndex
|
|
4729
|
+
);
|
|
4730
|
+
})
|
|
4731
|
+
]
|
|
4732
|
+
},
|
|
4733
|
+
weekIndex
|
|
4734
|
+
);
|
|
4735
|
+
})
|
|
4736
|
+
] })
|
|
4737
|
+
]
|
|
4738
|
+
}
|
|
4739
|
+
) : null
|
|
3803
4740
|
] })
|
|
3804
4741
|
}
|
|
3805
4742
|
);
|
|
3806
4743
|
}
|
|
3807
4744
|
);
|
|
3808
|
-
var
|
|
4745
|
+
var styles20 = StyleSheet.create({
|
|
3809
4746
|
root: {
|
|
3810
4747
|
width: DEFAULT_WIDTH,
|
|
3811
4748
|
gap: 8,
|
|
3812
4749
|
alignSelf: "flex-start"
|
|
3813
4750
|
},
|
|
4751
|
+
rootHideTrigger: {
|
|
4752
|
+
width: "auto",
|
|
4753
|
+
gap: 0
|
|
4754
|
+
},
|
|
3814
4755
|
rootOpen: {
|
|
3815
4756
|
zIndex: 30
|
|
3816
4757
|
},
|
|
@@ -3864,7 +4805,7 @@ var styles14 = StyleSheet.create({
|
|
|
3864
4805
|
justifyContent: "center",
|
|
3865
4806
|
gap: 8,
|
|
3866
4807
|
paddingVertical: 12,
|
|
3867
|
-
paddingHorizontal:
|
|
4808
|
+
paddingHorizontal: 12
|
|
3868
4809
|
},
|
|
3869
4810
|
rangeLabel: {
|
|
3870
4811
|
...datePickerTypography.rangeLabel,
|
|
@@ -3874,13 +4815,16 @@ var styles14 = StyleSheet.create({
|
|
|
3874
4815
|
minWidth: 0,
|
|
3875
4816
|
flexDirection: "row",
|
|
3876
4817
|
alignItems: "center",
|
|
3877
|
-
justifyContent: "
|
|
3878
|
-
|
|
4818
|
+
justifyContent: "flex-start",
|
|
4819
|
+
flexWrap: "nowrap",
|
|
4820
|
+
gap: 10
|
|
3879
4821
|
},
|
|
3880
4822
|
rangeDate: {
|
|
3881
4823
|
...datePickerTypography.rangeDate,
|
|
3882
|
-
flexShrink:
|
|
3883
|
-
color: colors.white
|
|
4824
|
+
flexShrink: 0,
|
|
4825
|
+
color: colors.white,
|
|
4826
|
+
// @ts-expect-error RN Web — keep the full date on one line
|
|
4827
|
+
whiteSpace: "nowrap"
|
|
3884
4828
|
},
|
|
3885
4829
|
rangeTimeWrap: {
|
|
3886
4830
|
flexShrink: 0,
|
|
@@ -3903,8 +4847,8 @@ var styles14 = StyleSheet.create({
|
|
|
3903
4847
|
backgroundColor: colors.grey500
|
|
3904
4848
|
},
|
|
3905
4849
|
iconSlot: {
|
|
3906
|
-
width:
|
|
3907
|
-
height:
|
|
4850
|
+
width: ICON_SIZE9,
|
|
4851
|
+
height: ICON_SIZE9,
|
|
3908
4852
|
alignItems: "center",
|
|
3909
4853
|
justifyContent: "center",
|
|
3910
4854
|
flexShrink: 0
|
|
@@ -3912,7 +4856,6 @@ var styles14 = StyleSheet.create({
|
|
|
3912
4856
|
menu: {
|
|
3913
4857
|
position: "absolute",
|
|
3914
4858
|
top: "100%",
|
|
3915
|
-
left: 0,
|
|
3916
4859
|
width: DEFAULT_WIDTH,
|
|
3917
4860
|
marginTop: 8,
|
|
3918
4861
|
zIndex: 10,
|
|
@@ -3929,6 +4872,21 @@ var styles14 = StyleSheet.create({
|
|
|
3929
4872
|
}
|
|
3930
4873
|
})
|
|
3931
4874
|
},
|
|
4875
|
+
menuAlignStart: {
|
|
4876
|
+
left: 0,
|
|
4877
|
+
right: "auto"
|
|
4878
|
+
},
|
|
4879
|
+
menuAlignEnd: {
|
|
4880
|
+
left: "auto",
|
|
4881
|
+
right: 0
|
|
4882
|
+
},
|
|
4883
|
+
menuInline: {
|
|
4884
|
+
position: "relative",
|
|
4885
|
+
top: "auto",
|
|
4886
|
+
left: "auto",
|
|
4887
|
+
right: "auto",
|
|
4888
|
+
marginTop: 0
|
|
4889
|
+
},
|
|
3932
4890
|
rangeMenu: {
|
|
3933
4891
|
width: RANGE_TRIGGER_WIDTH
|
|
3934
4892
|
},
|
|
@@ -4006,6 +4964,46 @@ var styles14 = StyleSheet.create({
|
|
|
4006
4964
|
backgroundColor: colors.primary
|
|
4007
4965
|
}
|
|
4008
4966
|
});
|
|
4967
|
+
var SIZE = 48;
|
|
4968
|
+
var PADDING = 12;
|
|
4969
|
+
var ICON_SIZE10 = 24;
|
|
4970
|
+
var RADIUS = 64;
|
|
4971
|
+
var FloatingActionButton = forwardRef(function FloatingActionButton2({ onPress, disabled = false, icon, accessibilityLabel = "Add", style, className, ...rest }, forwardedRef) {
|
|
4972
|
+
const containerRef = useRef(null);
|
|
4973
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
4974
|
+
const resolvedClassName = className?.trim() || void 0;
|
|
4975
|
+
useApplyWebClassName(containerRef, resolvedClassName);
|
|
4976
|
+
return /* @__PURE__ */ jsx(
|
|
4977
|
+
TouchableOpacity,
|
|
4978
|
+
{
|
|
4979
|
+
...rest,
|
|
4980
|
+
ref: setContainerRef,
|
|
4981
|
+
onPress,
|
|
4982
|
+
disabled,
|
|
4983
|
+
activeOpacity: 0.7,
|
|
4984
|
+
accessibilityRole: "button",
|
|
4985
|
+
accessibilityLabel,
|
|
4986
|
+
accessibilityState: { disabled },
|
|
4987
|
+
style: [styles21.base, disabled && styles21.disabled, style],
|
|
4988
|
+
children: icon ?? /* @__PURE__ */ jsx(PlusIcon, { color: colors.white, size: ICON_SIZE10, strokeWidth: 2 })
|
|
4989
|
+
}
|
|
4990
|
+
);
|
|
4991
|
+
});
|
|
4992
|
+
var styles21 = StyleSheet.create({
|
|
4993
|
+
base: {
|
|
4994
|
+
width: SIZE,
|
|
4995
|
+
height: SIZE,
|
|
4996
|
+
padding: PADDING,
|
|
4997
|
+
borderRadius: RADIUS,
|
|
4998
|
+
backgroundColor: colors.primary,
|
|
4999
|
+
alignItems: "center",
|
|
5000
|
+
justifyContent: "center",
|
|
5001
|
+
gap: 10
|
|
5002
|
+
},
|
|
5003
|
+
disabled: {
|
|
5004
|
+
opacity: 0.6
|
|
5005
|
+
}
|
|
5006
|
+
});
|
|
4009
5007
|
function renderStatefulIcon(icon, FallbackIcon, props) {
|
|
4010
5008
|
if (icon == null) {
|
|
4011
5009
|
return /* @__PURE__ */ jsx(FallbackIcon, { ...props });
|
|
@@ -4149,13 +5147,13 @@ var Input = forwardRef(function Input2({
|
|
|
4149
5147
|
});
|
|
4150
5148
|
useApplyWebClassName(rootRef, className);
|
|
4151
5149
|
useApplyWebClassName(inputRef, inputClassName);
|
|
4152
|
-
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [
|
|
4153
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
5150
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles22.root, disabled && styles22.disabled, style], children: [
|
|
5151
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles22.label, { color: chrome.labelColor }], children: label }) : null,
|
|
4154
5152
|
/* @__PURE__ */ jsxs(
|
|
4155
5153
|
View,
|
|
4156
5154
|
{
|
|
4157
5155
|
style: [
|
|
4158
|
-
|
|
5156
|
+
styles22.field,
|
|
4159
5157
|
{
|
|
4160
5158
|
height: metrics.height,
|
|
4161
5159
|
borderRadius: metrics.borderRadius,
|
|
@@ -4170,7 +5168,7 @@ var Input = forwardRef(function Input2({
|
|
|
4170
5168
|
fieldStyle
|
|
4171
5169
|
],
|
|
4172
5170
|
children: [
|
|
4173
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [
|
|
5171
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [styles22.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: leftIconNode }) : null,
|
|
4174
5172
|
/* @__PURE__ */ jsx(
|
|
4175
5173
|
TextInput,
|
|
4176
5174
|
{
|
|
@@ -4194,11 +5192,11 @@ var Input = forwardRef(function Input2({
|
|
|
4194
5192
|
onBlur?.(event);
|
|
4195
5193
|
},
|
|
4196
5194
|
style: [
|
|
4197
|
-
|
|
5195
|
+
styles22.input,
|
|
4198
5196
|
metrics.text,
|
|
4199
5197
|
{ color: chrome.textColor },
|
|
4200
|
-
Platform.OS === "web" ?
|
|
4201
|
-
Platform.OS === "android" ?
|
|
5198
|
+
Platform.OS === "web" ? styles22.inputWeb : null,
|
|
5199
|
+
Platform.OS === "android" ? styles22.inputAndroid : null,
|
|
4202
5200
|
inputStyle
|
|
4203
5201
|
],
|
|
4204
5202
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -4210,20 +5208,20 @@ var Input = forwardRef(function Input2({
|
|
|
4210
5208
|
{
|
|
4211
5209
|
onPress: onRightIconPress,
|
|
4212
5210
|
disabled,
|
|
4213
|
-
style: [
|
|
5211
|
+
style: [styles22.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }],
|
|
4214
5212
|
accessibilityRole: "button",
|
|
4215
5213
|
accessibilityLabel: rightIconAccessibilityLabel,
|
|
4216
5214
|
hitSlop: 8,
|
|
4217
5215
|
children: rightIconNode
|
|
4218
5216
|
}
|
|
4219
|
-
) : /* @__PURE__ */ jsx(View, { style: [
|
|
5217
|
+
) : /* @__PURE__ */ jsx(View, { style: [styles22.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: rightIconNode }) : null
|
|
4220
5218
|
]
|
|
4221
5219
|
}
|
|
4222
5220
|
),
|
|
4223
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
5221
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles22.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
4224
5222
|
] });
|
|
4225
5223
|
});
|
|
4226
|
-
var
|
|
5224
|
+
var styles22 = StyleSheet.create({
|
|
4227
5225
|
root: {
|
|
4228
5226
|
width: DEFAULT_WIDTH2,
|
|
4229
5227
|
gap: 8,
|
|
@@ -4381,9 +5379,9 @@ var VerificationCodeInput = forwardRef(function VerificationCodeInput2({
|
|
|
4381
5379
|
...viewProps,
|
|
4382
5380
|
ref: rootRef,
|
|
4383
5381
|
style: [
|
|
4384
|
-
|
|
5382
|
+
styles23.root,
|
|
4385
5383
|
{ width: rootWidth, maxWidth: "100%", gap: cellGap },
|
|
4386
|
-
disabled &&
|
|
5384
|
+
disabled && styles23.disabled,
|
|
4387
5385
|
style
|
|
4388
5386
|
],
|
|
4389
5387
|
children: Array.from({ length: safeLength }, (_, index) => {
|
|
@@ -4411,15 +5409,15 @@ var VerificationCodeInput = forwardRef(function VerificationCodeInput2({
|
|
|
4411
5409
|
onSubmitEditing: () => onSubmit?.(currentCode),
|
|
4412
5410
|
selectTextOnFocus: true,
|
|
4413
5411
|
style: [
|
|
4414
|
-
|
|
5412
|
+
styles23.cell,
|
|
4415
5413
|
{
|
|
4416
5414
|
width: cellWidth,
|
|
4417
5415
|
height: CELL_HEIGHT,
|
|
4418
5416
|
borderColor,
|
|
4419
5417
|
color: error ? colors.red : colors.white
|
|
4420
5418
|
},
|
|
4421
|
-
Platform.OS === "web" ?
|
|
4422
|
-
Platform.OS === "android" ?
|
|
5419
|
+
Platform.OS === "web" ? styles23.cellWeb : null,
|
|
5420
|
+
Platform.OS === "android" ? styles23.cellAndroid : null,
|
|
4423
5421
|
inputStyle
|
|
4424
5422
|
],
|
|
4425
5423
|
value: currentCode[index] ?? ""
|
|
@@ -4430,7 +5428,7 @@ var VerificationCodeInput = forwardRef(function VerificationCodeInput2({
|
|
|
4430
5428
|
}
|
|
4431
5429
|
);
|
|
4432
5430
|
});
|
|
4433
|
-
var
|
|
5431
|
+
var styles23 = StyleSheet.create({
|
|
4434
5432
|
root: {
|
|
4435
5433
|
minWidth: 0,
|
|
4436
5434
|
alignSelf: "center",
|
|
@@ -4467,7 +5465,7 @@ var TRIGGER_RADIUS2 = 60;
|
|
|
4467
5465
|
var MENU_RADIUS3 = 24;
|
|
4468
5466
|
var MENU_MAX_LIST_HEIGHT = 248;
|
|
4469
5467
|
var ITEM_RADIUS2 = 12;
|
|
4470
|
-
var
|
|
5468
|
+
var ICON_SIZE11 = 20;
|
|
4471
5469
|
var CHIP_GAP = 6;
|
|
4472
5470
|
var FALLBACK_ELLIPSIS_WIDTH = 20;
|
|
4473
5471
|
function itemBackground(state) {
|
|
@@ -4540,25 +5538,25 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
4540
5538
|
const next = Math.ceil(event.nativeEvent.layout.width);
|
|
4541
5539
|
setEllipsisWidth((current) => current === next ? current : next);
|
|
4542
5540
|
};
|
|
4543
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
4544
|
-
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style:
|
|
5541
|
+
return /* @__PURE__ */ jsxs(View, { style: styles24.multiValueRoot, children: [
|
|
5542
|
+
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style: styles24.measureRow, children: [
|
|
4545
5543
|
options.map((option) => /* @__PURE__ */ jsxs(
|
|
4546
5544
|
View,
|
|
4547
5545
|
{
|
|
4548
|
-
style:
|
|
5546
|
+
style: styles24.chip,
|
|
4549
5547
|
onLayout: (event) => handleChipLayout(option.value, event),
|
|
4550
5548
|
children: [
|
|
4551
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
4552
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
5549
|
+
/* @__PURE__ */ jsx(Text, { style: styles24.chipLabel, numberOfLines: 1, children: option.label }),
|
|
5550
|
+
/* @__PURE__ */ jsx(Text, { style: styles24.chipRemove, children: "\xD7" })
|
|
4553
5551
|
]
|
|
4554
5552
|
},
|
|
4555
5553
|
`measure-${option.value}`
|
|
4556
5554
|
)),
|
|
4557
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
5555
|
+
/* @__PURE__ */ jsx(View, { style: styles24.ellipsis, onLayout: handleEllipsisLayout, children: /* @__PURE__ */ jsx(Text, { style: styles24.ellipsisText, children: "..." }) })
|
|
4558
5556
|
] }),
|
|
4559
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
4560
|
-
visible.map((option) => /* @__PURE__ */ jsxs(View, { style:
|
|
4561
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
5557
|
+
/* @__PURE__ */ jsxs(View, { style: styles24.chipsRow, onLayout: handleContainerLayout, children: [
|
|
5558
|
+
visible.map((option) => /* @__PURE__ */ jsxs(View, { style: styles24.chip, children: [
|
|
5559
|
+
/* @__PURE__ */ jsx(Text, { style: styles24.chipLabel, numberOfLines: 1, children: option.label }),
|
|
4562
5560
|
/* @__PURE__ */ jsx(
|
|
4563
5561
|
Pressable,
|
|
4564
5562
|
{
|
|
@@ -4570,11 +5568,11 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
4570
5568
|
hitSlop: 6,
|
|
4571
5569
|
accessibilityRole: "button",
|
|
4572
5570
|
accessibilityLabel: `Remove ${option.label}`,
|
|
4573
|
-
children: /* @__PURE__ */ jsx(Text, { style:
|
|
5571
|
+
children: /* @__PURE__ */ jsx(Text, { style: styles24.chipRemove, children: "\xD7" })
|
|
4574
5572
|
}
|
|
4575
5573
|
)
|
|
4576
5574
|
] }, option.value)),
|
|
4577
|
-
hasOverflow ? /* @__PURE__ */ jsx(View, { style:
|
|
5575
|
+
hasOverflow ? /* @__PURE__ */ jsx(View, { style: styles24.ellipsis, children: /* @__PURE__ */ jsx(Text, { style: styles24.ellipsisText, children: "..." }) }) : null
|
|
4578
5576
|
] })
|
|
4579
5577
|
] });
|
|
4580
5578
|
}
|
|
@@ -4599,6 +5597,7 @@ var Select = forwardRef(
|
|
|
4599
5597
|
onSearchChange,
|
|
4600
5598
|
loading = false,
|
|
4601
5599
|
emptyText = "No results",
|
|
5600
|
+
valueColor,
|
|
4602
5601
|
style,
|
|
4603
5602
|
className,
|
|
4604
5603
|
accessibilityLabel,
|
|
@@ -4783,12 +5782,12 @@ var Select = forwardRef(
|
|
|
4783
5782
|
setOpen
|
|
4784
5783
|
]);
|
|
4785
5784
|
const leftIconNode = renderStatefulIcon(leftIcon, UserIcon, {
|
|
4786
|
-
size:
|
|
4787
|
-
color: error ? colors.red :
|
|
5785
|
+
size: ICON_SIZE11,
|
|
5786
|
+
color: error ? colors.red : colors.primary
|
|
4788
5787
|
});
|
|
4789
5788
|
const hasLeftIcon = showLeftIcon || leftIcon != null;
|
|
4790
5789
|
const triggerBorderColor = error ? colors.redMuted : isOpen ? colors.primaryMuted : colors.grey700;
|
|
4791
|
-
const triggerTextColor = hasValue ? error ? colors.red : colors.white : error ? colors.red : colors.grey100;
|
|
5790
|
+
const triggerTextColor = hasValue ? error ? colors.red : valueColor ?? colors.white : error ? colors.red : colors.grey100;
|
|
4792
5791
|
const labelColor = error ? colors.red : colors.white;
|
|
4793
5792
|
const hintColor = error ? colors.red : colors.grey100;
|
|
4794
5793
|
const singleLabel = selectedOptions[0]?.label ?? placeholder;
|
|
@@ -4798,11 +5797,11 @@ var Select = forwardRef(
|
|
|
4798
5797
|
{
|
|
4799
5798
|
...rest,
|
|
4800
5799
|
ref: setRootRef,
|
|
4801
|
-
style: [
|
|
5800
|
+
style: [styles24.root, isOpen && styles24.rootOpen, disabled && styles24.disabled, style],
|
|
4802
5801
|
accessibilityState: { disabled, expanded: isOpen },
|
|
4803
5802
|
children: [
|
|
4804
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4805
|
-
/* @__PURE__ */ jsxs(View, { style: [
|
|
5803
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles24.label, { color: labelColor }], children: label }) : null,
|
|
5804
|
+
/* @__PURE__ */ jsxs(View, { style: [styles24.triggerWrap, isOpen && styles24.triggerWrapOpen], children: [
|
|
4806
5805
|
/* @__PURE__ */ jsxs(
|
|
4807
5806
|
Pressable,
|
|
4808
5807
|
{
|
|
@@ -4813,29 +5812,29 @@ var Select = forwardRef(
|
|
|
4813
5812
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
4814
5813
|
accessibilityState: { disabled, expanded: isOpen },
|
|
4815
5814
|
style: [
|
|
4816
|
-
|
|
5815
|
+
styles24.trigger,
|
|
4817
5816
|
{
|
|
4818
5817
|
borderColor: triggerBorderColor,
|
|
4819
5818
|
backgroundColor: colors.grey700
|
|
4820
5819
|
}
|
|
4821
5820
|
],
|
|
4822
5821
|
children: [
|
|
4823
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style:
|
|
4824
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
5822
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: styles24.iconSlot, children: leftIconNode }) : null,
|
|
5823
|
+
/* @__PURE__ */ jsx(View, { style: styles24.triggerContent, children: multiple && hasValue ? /* @__PURE__ */ jsx(
|
|
4825
5824
|
MultiValueChips,
|
|
4826
5825
|
{
|
|
4827
5826
|
options: selectedOptions,
|
|
4828
5827
|
disabled,
|
|
4829
5828
|
onRemove: handleRemoveChip
|
|
4830
5829
|
}
|
|
4831
|
-
) : /* @__PURE__ */ jsx(Text, { style: [
|
|
4832
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
5830
|
+
) : /* @__PURE__ */ jsx(Text, { style: [styles24.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: multiple ? placeholder : singleLabel }) }),
|
|
5831
|
+
/* @__PURE__ */ jsx(View, { style: [styles24.iconSlot, isOpen && styles24.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE11, color: isOpen ? colors.primary : colors.grey100 }) })
|
|
4833
5832
|
]
|
|
4834
5833
|
}
|
|
4835
5834
|
),
|
|
4836
|
-
isOpen ? /* @__PURE__ */ jsxs(View, { style:
|
|
4837
|
-
showSearch ? /* @__PURE__ */ jsxs(View, { style:
|
|
4838
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
5835
|
+
isOpen ? /* @__PURE__ */ jsxs(View, { style: styles24.menu, children: [
|
|
5836
|
+
showSearch ? /* @__PURE__ */ jsxs(View, { style: styles24.searchField, children: [
|
|
5837
|
+
/* @__PURE__ */ jsx(View, { style: styles24.iconSlot, children: /* @__PURE__ */ jsx(SearchIcon, { size: ICON_SIZE11, color: colors.grey100 }) }),
|
|
4839
5838
|
/* @__PURE__ */ jsx(
|
|
4840
5839
|
TextInput,
|
|
4841
5840
|
{
|
|
@@ -4846,9 +5845,9 @@ var Select = forwardRef(
|
|
|
4846
5845
|
placeholder: searchPlaceholder,
|
|
4847
5846
|
placeholderTextColor: colors.grey100,
|
|
4848
5847
|
style: [
|
|
4849
|
-
|
|
4850
|
-
Platform.OS === "web" ?
|
|
4851
|
-
Platform.OS === "android" ?
|
|
5848
|
+
styles24.searchInput,
|
|
5849
|
+
Platform.OS === "web" ? styles24.searchInputWeb : null,
|
|
5850
|
+
Platform.OS === "android" ? styles24.searchInputAndroid : null
|
|
4852
5851
|
],
|
|
4853
5852
|
accessibilityLabel: searchPlaceholder
|
|
4854
5853
|
}
|
|
@@ -4857,12 +5856,12 @@ var Select = forwardRef(
|
|
|
4857
5856
|
/* @__PURE__ */ jsxs(
|
|
4858
5857
|
ScrollView,
|
|
4859
5858
|
{
|
|
4860
|
-
style:
|
|
4861
|
-
contentContainerStyle:
|
|
5859
|
+
style: styles24.optionList,
|
|
5860
|
+
contentContainerStyle: styles24.optionListContent,
|
|
4862
5861
|
keyboardShouldPersistTaps: "handled",
|
|
4863
5862
|
showsVerticalScrollIndicator: false,
|
|
4864
5863
|
children: [
|
|
4865
|
-
loading ? /* @__PURE__ */ jsx(View, { style:
|
|
5864
|
+
loading ? /* @__PURE__ */ jsx(View, { style: styles24.statusRow, children: /* @__PURE__ */ jsx(Text, { style: styles24.statusText, children: "Loading..." }) }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx(View, { style: styles24.statusRow, children: /* @__PURE__ */ jsx(Text, { style: styles24.statusText, children: emptyText }) }) : null,
|
|
4866
5865
|
!loading && filteredOptions.map((option) => {
|
|
4867
5866
|
const isSelected = selectedValues.includes(option.value);
|
|
4868
5867
|
const isHovered = hoveredValue === option.value;
|
|
@@ -4879,14 +5878,14 @@ var Select = forwardRef(
|
|
|
4879
5878
|
accessibilityRole: multiple ? "checkbox" : "button",
|
|
4880
5879
|
accessibilityState: { selected: isSelected, checked: isSelected, disabled },
|
|
4881
5880
|
style: [
|
|
4882
|
-
|
|
5881
|
+
styles24.item,
|
|
4883
5882
|
{
|
|
4884
5883
|
backgroundColor: itemBackground(visualState)
|
|
4885
5884
|
}
|
|
4886
5885
|
],
|
|
4887
5886
|
children: [
|
|
4888
|
-
multiple ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
4889
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
5887
|
+
multiple ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles24.itemCheckbox, children: /* @__PURE__ */ jsx(Checkbox, { value: isSelected, variant: "light" }) }) : null,
|
|
5888
|
+
/* @__PURE__ */ jsx(Text, { style: styles24.itemLabel, numberOfLines: 1, children: option.label })
|
|
4890
5889
|
]
|
|
4891
5890
|
},
|
|
4892
5891
|
option.value
|
|
@@ -4897,13 +5896,13 @@ var Select = forwardRef(
|
|
|
4897
5896
|
)
|
|
4898
5897
|
] }) : null
|
|
4899
5898
|
] }),
|
|
4900
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
5899
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles24.hint, { color: hintColor }], children: hint }) : null
|
|
4901
5900
|
]
|
|
4902
5901
|
}
|
|
4903
5902
|
);
|
|
4904
5903
|
}
|
|
4905
5904
|
);
|
|
4906
|
-
var
|
|
5905
|
+
var styles24 = StyleSheet.create({
|
|
4907
5906
|
root: {
|
|
4908
5907
|
width: DEFAULT_WIDTH3,
|
|
4909
5908
|
gap: 8,
|
|
@@ -4993,8 +5992,8 @@ var styles17 = StyleSheet.create({
|
|
|
4993
5992
|
lineHeight: 16
|
|
4994
5993
|
},
|
|
4995
5994
|
iconSlot: {
|
|
4996
|
-
width:
|
|
4997
|
-
height:
|
|
5995
|
+
width: ICON_SIZE11,
|
|
5996
|
+
height: ICON_SIZE11,
|
|
4998
5997
|
alignItems: "center",
|
|
4999
5998
|
justifyContent: "center",
|
|
5000
5999
|
flexShrink: 0
|
|
@@ -5165,13 +6164,13 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
5165
6164
|
const resolvedAccessibilityLabel = accessibilityLabel ?? (showLabel ? void 0 : label);
|
|
5166
6165
|
useApplyWebClassName(rootRef, className);
|
|
5167
6166
|
useApplyWebClassName(inputRef, inputClassName);
|
|
5168
|
-
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [
|
|
5169
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
6167
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles25.root, disabled && styles25.disabled, style], children: [
|
|
6168
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles25.label, { color: chrome.labelColor }], children: label }) : null,
|
|
5170
6169
|
/* @__PURE__ */ jsx(
|
|
5171
6170
|
View,
|
|
5172
6171
|
{
|
|
5173
6172
|
style: [
|
|
5174
|
-
|
|
6173
|
+
styles25.field,
|
|
5175
6174
|
{
|
|
5176
6175
|
borderColor: chrome.borderColor,
|
|
5177
6176
|
backgroundColor: chrome.backgroundColor
|
|
@@ -5203,11 +6202,11 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
5203
6202
|
onBlur?.(event);
|
|
5204
6203
|
},
|
|
5205
6204
|
style: [
|
|
5206
|
-
|
|
6205
|
+
styles25.input,
|
|
5207
6206
|
textareaTypography.field,
|
|
5208
6207
|
{ color: chrome.textColor },
|
|
5209
|
-
Platform.OS === "web" ?
|
|
5210
|
-
Platform.OS === "android" ?
|
|
6208
|
+
Platform.OS === "web" ? styles25.inputWeb : null,
|
|
6209
|
+
Platform.OS === "android" ? styles25.inputAndroid : null,
|
|
5211
6210
|
inputStyle
|
|
5212
6211
|
],
|
|
5213
6212
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -5216,10 +6215,10 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
5216
6215
|
)
|
|
5217
6216
|
}
|
|
5218
6217
|
),
|
|
5219
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
6218
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles25.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
5220
6219
|
] });
|
|
5221
6220
|
});
|
|
5222
|
-
var
|
|
6221
|
+
var styles25 = StyleSheet.create({
|
|
5223
6222
|
root: {
|
|
5224
6223
|
width: DEFAULT_WIDTH4,
|
|
5225
6224
|
gap: 8,
|
|
@@ -5256,12 +6255,12 @@ var styles18 = StyleSheet.create({
|
|
|
5256
6255
|
...textareaTypography.hint
|
|
5257
6256
|
}
|
|
5258
6257
|
});
|
|
5259
|
-
var
|
|
6258
|
+
var TRACK_WIDTH2 = 44;
|
|
5260
6259
|
var TRACK_HEIGHT = 24;
|
|
5261
6260
|
var TRACK_RADIUS = 43;
|
|
5262
6261
|
var TRACK_PADDING2 = 4;
|
|
5263
6262
|
var THUMB_SIZE = TRACK_HEIGHT - TRACK_PADDING2 * 2;
|
|
5264
|
-
var THUMB_TRAVEL =
|
|
6263
|
+
var THUMB_TRAVEL = TRACK_WIDTH2 - TRACK_PADDING2 * 2 - THUMB_SIZE;
|
|
5265
6264
|
var ANIMATION_DURATION2 = 300;
|
|
5266
6265
|
var Toggle = forwardRef(function Toggle2({
|
|
5267
6266
|
value,
|
|
@@ -5319,13 +6318,13 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
5319
6318
|
accessibilityRole: "switch",
|
|
5320
6319
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
5321
6320
|
accessibilityState: { checked: isActive, disabled },
|
|
5322
|
-
style: [
|
|
6321
|
+
style: [styles26.pressable, disabled && styles26.disabled, style],
|
|
5323
6322
|
children: [
|
|
5324
6323
|
/* @__PURE__ */ jsx(
|
|
5325
6324
|
Animated.View,
|
|
5326
6325
|
{
|
|
5327
6326
|
style: [
|
|
5328
|
-
|
|
6327
|
+
styles26.track,
|
|
5329
6328
|
{
|
|
5330
6329
|
backgroundColor: trackBackgroundColor
|
|
5331
6330
|
}
|
|
@@ -5334,7 +6333,7 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
5334
6333
|
Animated.View,
|
|
5335
6334
|
{
|
|
5336
6335
|
style: [
|
|
5337
|
-
|
|
6336
|
+
styles26.thumb,
|
|
5338
6337
|
{
|
|
5339
6338
|
transform: [{ translateX: thumbTranslateX }]
|
|
5340
6339
|
}
|
|
@@ -5343,12 +6342,12 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
5343
6342
|
)
|
|
5344
6343
|
}
|
|
5345
6344
|
),
|
|
5346
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
6345
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles26.label, labelStyle], children: labelContent }) : labelContent : null
|
|
5347
6346
|
]
|
|
5348
6347
|
}
|
|
5349
6348
|
);
|
|
5350
6349
|
});
|
|
5351
|
-
var
|
|
6350
|
+
var styles26 = StyleSheet.create({
|
|
5352
6351
|
pressable: {
|
|
5353
6352
|
flexDirection: "row",
|
|
5354
6353
|
alignItems: "center",
|
|
@@ -5359,7 +6358,7 @@ var styles19 = StyleSheet.create({
|
|
|
5359
6358
|
opacity: 0.6
|
|
5360
6359
|
},
|
|
5361
6360
|
track: {
|
|
5362
|
-
width:
|
|
6361
|
+
width: TRACK_WIDTH2,
|
|
5363
6362
|
height: TRACK_HEIGHT,
|
|
5364
6363
|
borderRadius: TRACK_RADIUS,
|
|
5365
6364
|
padding: TRACK_PADDING2,
|
|
@@ -5423,21 +6422,21 @@ var RatingInput = forwardRef(
|
|
|
5423
6422
|
{
|
|
5424
6423
|
...rest,
|
|
5425
6424
|
ref: setContainerRef,
|
|
5426
|
-
style: [
|
|
6425
|
+
style: [styles27.root, disabled && styles27.disabled, style],
|
|
5427
6426
|
children: [
|
|
5428
|
-
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [
|
|
6427
|
+
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles27.value, valueStyle], children: selectedValue.toFixed(precision) }) : null,
|
|
5429
6428
|
/* @__PURE__ */ jsx(
|
|
5430
6429
|
View,
|
|
5431
6430
|
{
|
|
5432
6431
|
accessibilityRole: readOnly ? "image" : "radiogroup",
|
|
5433
6432
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
5434
6433
|
accessibilityState: { disabled },
|
|
5435
|
-
style: [
|
|
6434
|
+
style: [styles27.stars, { gap: resolvedStarGap }],
|
|
5436
6435
|
children: Array.from({ length: STAR_COUNT }, (_, index) => {
|
|
5437
6436
|
const starValue = index + 1;
|
|
5438
6437
|
const isSelected = starValue <= selectedStarCount;
|
|
5439
6438
|
const icon = isSelected ? /* @__PURE__ */ jsx(StarFilledIcon, { size: iconWidth, height: iconHeight }) : /* @__PURE__ */ jsx(StarIcon, { size: iconWidth, height: iconHeight });
|
|
5440
|
-
const itemStyle = [
|
|
6439
|
+
const itemStyle = [styles27.starItem, { width: size, height: size }];
|
|
5441
6440
|
if (readOnly) {
|
|
5442
6441
|
return /* @__PURE__ */ jsx(View, { style: itemStyle, children: icon }, starValue);
|
|
5443
6442
|
}
|
|
@@ -5463,7 +6462,7 @@ var RatingInput = forwardRef(
|
|
|
5463
6462
|
);
|
|
5464
6463
|
}
|
|
5465
6464
|
);
|
|
5466
|
-
var
|
|
6465
|
+
var styles27 = StyleSheet.create({
|
|
5467
6466
|
root: {
|
|
5468
6467
|
flexDirection: "row",
|
|
5469
6468
|
alignItems: "center",
|
|
@@ -5527,19 +6526,19 @@ var CommentCard = forwardRef(
|
|
|
5527
6526
|
setExpanded(next);
|
|
5528
6527
|
onExpandedChange?.(next);
|
|
5529
6528
|
};
|
|
5530
|
-
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [
|
|
5531
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
5532
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
6529
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [styles28.root, style], children: [
|
|
6530
|
+
/* @__PURE__ */ jsxs(View, { style: styles28.header, children: [
|
|
6531
|
+
/* @__PURE__ */ jsx(View, { style: styles28.avatar, children: hasImage ? /* @__PURE__ */ jsx(
|
|
5533
6532
|
Image,
|
|
5534
6533
|
{
|
|
5535
6534
|
source: { uri: imageUrl ?? void 0 },
|
|
5536
|
-
style:
|
|
6535
|
+
style: styles28.avatarImage,
|
|
5537
6536
|
onError: () => setImageFailed(true)
|
|
5538
6537
|
}
|
|
5539
6538
|
) : /* @__PURE__ */ jsx(UserIcon, { size: 20, color: colors.primary }) }),
|
|
5540
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
5541
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
5542
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
6539
|
+
/* @__PURE__ */ jsxs(View, { style: styles28.identity, children: [
|
|
6540
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles28.name, children: userName }),
|
|
6541
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles28.date, children: date })
|
|
5543
6542
|
] }),
|
|
5544
6543
|
/* @__PURE__ */ jsx(RatingInput, { value: rating, readOnly: true, showValue: false, size: 16 })
|
|
5545
6544
|
] }),
|
|
@@ -5547,7 +6546,7 @@ var CommentCard = forwardRef(
|
|
|
5547
6546
|
Text,
|
|
5548
6547
|
{
|
|
5549
6548
|
numberOfLines: expanded ? void 0 : maxCommentLines,
|
|
5550
|
-
style: [
|
|
6549
|
+
style: [styles28.comment, commentStyle],
|
|
5551
6550
|
children: commentText
|
|
5552
6551
|
}
|
|
5553
6552
|
),
|
|
@@ -5560,14 +6559,14 @@ var CommentCard = forwardRef(
|
|
|
5560
6559
|
hitSlop: 6,
|
|
5561
6560
|
onHoverIn: () => setActionHovered(true),
|
|
5562
6561
|
onHoverOut: () => setActionHovered(false),
|
|
5563
|
-
style:
|
|
6562
|
+
style: styles28.action,
|
|
5564
6563
|
children: /* @__PURE__ */ jsx(
|
|
5565
6564
|
Text,
|
|
5566
6565
|
{
|
|
5567
6566
|
style: [
|
|
5568
|
-
|
|
5569
|
-
expanded &&
|
|
5570
|
-
actionHovered && (expanded ?
|
|
6567
|
+
styles28.actionText,
|
|
6568
|
+
expanded && styles28.closeActionText,
|
|
6569
|
+
actionHovered && (expanded ? styles28.closeActionTextHovered : styles28.openActionTextHovered)
|
|
5571
6570
|
],
|
|
5572
6571
|
children: expanded ? readLessLabel : readMoreLabel
|
|
5573
6572
|
}
|
|
@@ -5577,7 +6576,7 @@ var CommentCard = forwardRef(
|
|
|
5577
6576
|
] });
|
|
5578
6577
|
}
|
|
5579
6578
|
);
|
|
5580
|
-
var
|
|
6579
|
+
var styles28 = StyleSheet.create({
|
|
5581
6580
|
root: {
|
|
5582
6581
|
width: CARD_WIDTH2,
|
|
5583
6582
|
minHeight: CARD_MIN_HEIGHT,
|
|
@@ -6016,7 +7015,7 @@ var Range = forwardRef(function Range2({
|
|
|
6016
7015
|
...rest,
|
|
6017
7016
|
ref: setRootRef,
|
|
6018
7017
|
onLayout,
|
|
6019
|
-
style: [
|
|
7018
|
+
style: [styles29.root, disabled && styles29.disabled, style],
|
|
6020
7019
|
children: [
|
|
6021
7020
|
/* @__PURE__ */ jsxs(
|
|
6022
7021
|
Pressable,
|
|
@@ -6030,16 +7029,16 @@ var Range = forwardRef(function Range2({
|
|
|
6030
7029
|
updateNearestFromTrack(event.nativeEvent.offsetX);
|
|
6031
7030
|
} : void 0,
|
|
6032
7031
|
onPress: Platform.OS === "web" ? void 0 : handleTrackPress,
|
|
6033
|
-
style:
|
|
7032
|
+
style: styles29.sliderPlane,
|
|
6034
7033
|
tabIndex: -1,
|
|
6035
7034
|
children: [
|
|
6036
|
-
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
7035
|
+
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles29.track }),
|
|
6037
7036
|
/* @__PURE__ */ jsx(
|
|
6038
7037
|
View,
|
|
6039
7038
|
{
|
|
6040
7039
|
pointerEvents: "none",
|
|
6041
7040
|
style: [
|
|
6042
|
-
|
|
7041
|
+
styles29.activeTrack,
|
|
6043
7042
|
{
|
|
6044
7043
|
left: TRACK_HORIZONTAL_INSET + fromOffset,
|
|
6045
7044
|
width: toOffset - fromOffset + THUMB_SIZE2
|
|
@@ -6081,9 +7080,9 @@ var Range = forwardRef(function Range2({
|
|
|
6081
7080
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveFrom, updateFromInput),
|
|
6082
7081
|
pointerEvents: disabled ? "none" : "auto",
|
|
6083
7082
|
style: [
|
|
6084
|
-
|
|
6085
|
-
Platform.OS === "web" &&
|
|
6086
|
-
focusedThumb === "from" && Platform.OS === "web" &&
|
|
7083
|
+
styles29.thumb,
|
|
7084
|
+
Platform.OS === "web" && styles29.thumbWeb,
|
|
7085
|
+
focusedThumb === "from" && Platform.OS === "web" && styles29.thumbFocusedWeb,
|
|
6087
7086
|
{ left: TRACK_HORIZONTAL_INSET + fromOffset }
|
|
6088
7087
|
],
|
|
6089
7088
|
tabIndex: disabled ? -1 : 0
|
|
@@ -6123,9 +7122,9 @@ var Range = forwardRef(function Range2({
|
|
|
6123
7122
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveTo, updateToInput),
|
|
6124
7123
|
pointerEvents: disabled ? "none" : "auto",
|
|
6125
7124
|
style: [
|
|
6126
|
-
|
|
6127
|
-
Platform.OS === "web" &&
|
|
6128
|
-
focusedThumb === "to" && Platform.OS === "web" &&
|
|
7125
|
+
styles29.thumb,
|
|
7126
|
+
Platform.OS === "web" && styles29.thumbWeb,
|
|
7127
|
+
focusedThumb === "to" && Platform.OS === "web" && styles29.thumbFocusedWeb,
|
|
6129
7128
|
{ left: TRACK_HORIZONTAL_INSET + toOffset }
|
|
6130
7129
|
],
|
|
6131
7130
|
tabIndex: disabled ? -1 : 0
|
|
@@ -6134,7 +7133,7 @@ var Range = forwardRef(function Range2({
|
|
|
6134
7133
|
]
|
|
6135
7134
|
}
|
|
6136
7135
|
),
|
|
6137
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
7136
|
+
/* @__PURE__ */ jsxs(View, { style: styles29.inputs, children: [
|
|
6138
7137
|
/* @__PURE__ */ jsx(
|
|
6139
7138
|
RangeInput,
|
|
6140
7139
|
{
|
|
@@ -6185,7 +7184,7 @@ function RangeInput({
|
|
|
6185
7184
|
placeholder,
|
|
6186
7185
|
value
|
|
6187
7186
|
}) {
|
|
6188
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
7187
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles29.inputField, focused && styles29.inputFieldFocused], children: [
|
|
6189
7188
|
/* @__PURE__ */ jsx(
|
|
6190
7189
|
TextInput,
|
|
6191
7190
|
{
|
|
@@ -6201,15 +7200,15 @@ function RangeInput({
|
|
|
6201
7200
|
placeholder,
|
|
6202
7201
|
placeholderTextColor: colors.grey150,
|
|
6203
7202
|
returnKeyType: "done",
|
|
6204
|
-
style: [
|
|
7203
|
+
style: [styles29.input, Platform.OS === "web" && styles29.inputWeb],
|
|
6205
7204
|
tabIndex: disabled ? -1 : void 0,
|
|
6206
7205
|
value
|
|
6207
7206
|
}
|
|
6208
7207
|
),
|
|
6209
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
7208
|
+
/* @__PURE__ */ jsx(View, { style: styles29.currencySlot, children: /* @__PURE__ */ jsx(Text, { style: styles29.currency, children: currency }) })
|
|
6210
7209
|
] });
|
|
6211
7210
|
}
|
|
6212
|
-
var
|
|
7211
|
+
var styles29 = StyleSheet.create({
|
|
6213
7212
|
root: {
|
|
6214
7213
|
width: DEFAULT_WIDTH5,
|
|
6215
7214
|
gap: 15,
|
|
@@ -6313,6 +7312,52 @@ var styles22 = StyleSheet.create({
|
|
|
6313
7312
|
}
|
|
6314
7313
|
});
|
|
6315
7314
|
|
|
6316
|
-
|
|
7315
|
+
// src/utils/popoverAlign.ts
|
|
7316
|
+
function fitsCenter(triggerRect, panelWidth, viewportWidth, padding) {
|
|
7317
|
+
const centerX = triggerRect.left + triggerRect.width / 2;
|
|
7318
|
+
const left = centerX - panelWidth / 2;
|
|
7319
|
+
const right = centerX + panelWidth / 2;
|
|
7320
|
+
return left >= padding && right <= viewportWidth - padding;
|
|
7321
|
+
}
|
|
7322
|
+
function fitsEnd(triggerRect, panelWidth, padding) {
|
|
7323
|
+
return triggerRect.right - panelWidth >= padding;
|
|
7324
|
+
}
|
|
7325
|
+
function fitsStart(triggerRect, panelWidth, viewportWidth, padding) {
|
|
7326
|
+
return triggerRect.left + panelWidth <= viewportWidth - padding;
|
|
7327
|
+
}
|
|
7328
|
+
function resolvePopoverAlign({
|
|
7329
|
+
triggerRect,
|
|
7330
|
+
panelWidth,
|
|
7331
|
+
viewportWidth,
|
|
7332
|
+
padding = 8,
|
|
7333
|
+
preferred = "auto"
|
|
7334
|
+
}) {
|
|
7335
|
+
if (preferred !== "auto") {
|
|
7336
|
+
return preferred;
|
|
7337
|
+
}
|
|
7338
|
+
if (fitsCenter(triggerRect, panelWidth, viewportWidth, padding)) {
|
|
7339
|
+
return "center";
|
|
7340
|
+
}
|
|
7341
|
+
const spaceLeft = triggerRect.right - padding;
|
|
7342
|
+
const spaceRight = viewportWidth - padding - triggerRect.left;
|
|
7343
|
+
if (spaceRight >= spaceLeft) {
|
|
7344
|
+
if (fitsStart(triggerRect, panelWidth, viewportWidth, padding)) {
|
|
7345
|
+
return "start";
|
|
7346
|
+
}
|
|
7347
|
+
if (fitsEnd(triggerRect, panelWidth, padding)) {
|
|
7348
|
+
return "end";
|
|
7349
|
+
}
|
|
7350
|
+
} else {
|
|
7351
|
+
if (fitsEnd(triggerRect, panelWidth, padding)) {
|
|
7352
|
+
return "end";
|
|
7353
|
+
}
|
|
7354
|
+
if (fitsStart(triggerRect, panelWidth, viewportWidth, padding)) {
|
|
7355
|
+
return "start";
|
|
7356
|
+
}
|
|
7357
|
+
}
|
|
7358
|
+
return spaceRight >= spaceLeft ? "start" : "end";
|
|
7359
|
+
}
|
|
7360
|
+
|
|
7361
|
+
export { AccountHeader, AlertTriangleIcon, Amenity, AmenityIcon, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, AvatarSimple, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, BagIcon, BanIcon, BathroomsIcon, BedroomsIcon, BellIcon, BrandLogo, BuildingIcon, Button, CalendarIcon, CalendarOutlineIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, CopyIcon, Counter, DatePicker, DownloadIcon, EditIcon, FacebookIcon, FavoritesButton, FiltersIcon, FloatingActionButton, FullscreenIcon, GlobeIcon, GooglePlayIcon, GuestsIcon, HeartIcon, HelpCircleIcon, HomeIcon, Icon, InfoTile, Input, InstagramIcon, KeyIcon, LanguageSwitcher, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LocationUserIcon, LockIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, MenuItem, MinusIcon, NavigateIcon, NoSmokingIcon, PaginationDots, PawIcon, PhoneIcon, PlusIcon, QrCodeIcon, QuietHoursIcon, Range, RatingInput, RatingStarIcon, RefreshIcon, RefundStatusIcon, SaveHeartIcon, SearchIcon, SegmentedToggle, Select, SettingsIcon, ShareIcon, ShowIcon, Sidebar, SidebarIcon, SortIcon, StarFilledIcon, StarIcon, StatCard, StatusBadge, StepList, StepPager, Textarea, Toggle, TooltipArrowIcon, TrashIcon, UserIcon, UsersAltIcon, VerificationCodeInput, 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 };
|
|
6317
7362
|
//# sourceMappingURL=index.js.map
|
|
6318
7363
|
//# sourceMappingURL=index.js.map
|