@ecohouse/ui 0.1.34 → 0.1.36
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 +1 -0
- package/dist/index.cjs +903 -489
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +169 -129
- package/dist/index.d.ts +169 -129
- package/dist/index.js +901 -491
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AccordionItem/AccordionItem.tsx +14 -11
- package/src/components/AccountHeader/AccountHeader.tsx +16 -0
- package/src/components/DatePicker/DatePicker.tsx +47 -14
- package/src/components/Input/Input.tsx +54 -21
- package/src/components/LanguageSwitcher/LanguageSwitcher.stories.tsx +11 -0
- package/src/components/LanguageSwitcher/LanguageSwitcher.tsx +103 -19
- package/src/components/LanguageSwitcher/index.ts +5 -1
- package/src/components/SegmentedToggle/SegmentedToggle.stories.tsx +9 -0
- package/src/components/SegmentedToggle/SegmentedToggle.tsx +19 -13
- package/src/components/Select/Select.tsx +90 -5
- package/src/components/Textarea/Textarea.tsx +29 -4
- package/src/components/index.ts +5 -1
- package/src/icons/Globe/GlobeIcon.tsx +2 -2
- package/src/icons/Globe/GlobeIcon.web.tsx +2 -2
- package/src/icons/Globe/globePath.ts +2 -2
- package/src/icons/Key/keyPath.ts +1 -1
- package/src/icons/MoreHorizontal/MoreHorizontalIcon.tsx +26 -0
- package/src/icons/MoreHorizontal/MoreHorizontalIcon.web.tsx +25 -0
- package/src/icons/MoreHorizontal/index.ts +1 -0
- package/src/icons/MoreHorizontal/moreHorizontalPath.ts +2 -0
- package/src/icons/TableView/TableViewIcon.tsx +20 -0
- package/src/icons/TableView/TableViewIcon.web.tsx +26 -0
- package/src/icons/TableView/index.ts +1 -0
- package/src/icons/TableView/tableViewPath.ts +2 -0
- package/src/icons/index.ts +2 -0
- package/src/icons/registry.ts +6 -0
- package/src/index.ts +7 -0
- package/src/primitives/IconStatusBadge/IconStatusBadge.stories.tsx +21 -0
- package/src/primitives/IconStatusBadge/IconStatusBadge.tsx +76 -0
- package/src/primitives/IconStatusBadge/index.ts +2 -0
- package/src/primitives/InfoCardV2/InfoCardV2.stories.tsx +64 -0
- package/src/primitives/InfoCardV2/InfoCardV2.tsx +116 -0
- package/src/primitives/InfoCardV2/index.ts +2 -0
- package/src/primitives/index.ts +7 -0
- package/src/theme/typography.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { forwardRef, useRef, useMemo, useState, useCallback, useEffect, useLayoutEffect, useImperativeHandle, isValidElement, cloneElement } from 'react';
|
|
1
|
+
import { forwardRef, useRef, useMemo, useState, useCallback, useEffect, useLayoutEffect, useId, useImperativeHandle, isValidElement, cloneElement } from 'react';
|
|
2
2
|
import { View, Text, Platform, Pressable, StyleSheet, Image, useWindowDimensions, Animated, Easing, TouchableOpacity, Modal as Modal$1, TextInput, ScrollView, PanResponder } from 'react-native';
|
|
3
3
|
import Svg20, { Path } from 'react-native-svg';
|
|
4
4
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -7397,7 +7397,7 @@ var require_react_dom_development = __commonJS({
|
|
|
7397
7397
|
var HostPortal = 4;
|
|
7398
7398
|
var HostComponent = 5;
|
|
7399
7399
|
var HostText = 6;
|
|
7400
|
-
var
|
|
7400
|
+
var Fragment4 = 7;
|
|
7401
7401
|
var Mode = 8;
|
|
7402
7402
|
var ContextConsumer = 9;
|
|
7403
7403
|
var ContextProvider = 10;
|
|
@@ -8552,7 +8552,7 @@ var require_react_dom_development = __commonJS({
|
|
|
8552
8552
|
return "DehydratedFragment";
|
|
8553
8553
|
case ForwardRef:
|
|
8554
8554
|
return getWrappedName$1(type, type.render, "ForwardRef");
|
|
8555
|
-
case
|
|
8555
|
+
case Fragment4:
|
|
8556
8556
|
return "Fragment";
|
|
8557
8557
|
case HostComponent:
|
|
8558
8558
|
return type;
|
|
@@ -9449,15 +9449,15 @@ var require_react_dom_development = __commonJS({
|
|
|
9449
9449
|
};
|
|
9450
9450
|
}
|
|
9451
9451
|
var warnValidStyle$1 = warnValidStyle;
|
|
9452
|
-
function createDangerousStringForStyles(
|
|
9452
|
+
function createDangerousStringForStyles(styles36) {
|
|
9453
9453
|
{
|
|
9454
9454
|
var serialized = "";
|
|
9455
9455
|
var delimiter = "";
|
|
9456
|
-
for (var styleName in
|
|
9457
|
-
if (!
|
|
9456
|
+
for (var styleName in styles36) {
|
|
9457
|
+
if (!styles36.hasOwnProperty(styleName)) {
|
|
9458
9458
|
continue;
|
|
9459
9459
|
}
|
|
9460
|
-
var styleValue =
|
|
9460
|
+
var styleValue = styles36[styleName];
|
|
9461
9461
|
if (styleValue != null) {
|
|
9462
9462
|
var isCustomProperty = styleName.indexOf("--") === 0;
|
|
9463
9463
|
serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ":";
|
|
@@ -9468,19 +9468,19 @@ var require_react_dom_development = __commonJS({
|
|
|
9468
9468
|
return serialized || null;
|
|
9469
9469
|
}
|
|
9470
9470
|
}
|
|
9471
|
-
function setValueForStyles(node,
|
|
9471
|
+
function setValueForStyles(node, styles36) {
|
|
9472
9472
|
var style2 = node.style;
|
|
9473
|
-
for (var styleName in
|
|
9474
|
-
if (!
|
|
9473
|
+
for (var styleName in styles36) {
|
|
9474
|
+
if (!styles36.hasOwnProperty(styleName)) {
|
|
9475
9475
|
continue;
|
|
9476
9476
|
}
|
|
9477
9477
|
var isCustomProperty = styleName.indexOf("--") === 0;
|
|
9478
9478
|
{
|
|
9479
9479
|
if (!isCustomProperty) {
|
|
9480
|
-
warnValidStyle$1(styleName,
|
|
9480
|
+
warnValidStyle$1(styleName, styles36[styleName]);
|
|
9481
9481
|
}
|
|
9482
9482
|
}
|
|
9483
|
-
var styleValue = dangerousStyleValue(styleName,
|
|
9483
|
+
var styleValue = dangerousStyleValue(styleName, styles36[styleName], isCustomProperty);
|
|
9484
9484
|
if (styleName === "float") {
|
|
9485
9485
|
styleName = "cssFloat";
|
|
9486
9486
|
}
|
|
@@ -9494,9 +9494,9 @@ var require_react_dom_development = __commonJS({
|
|
|
9494
9494
|
function isValueEmpty(value) {
|
|
9495
9495
|
return value == null || typeof value === "boolean" || value === "";
|
|
9496
9496
|
}
|
|
9497
|
-
function expandShorthandMap(
|
|
9497
|
+
function expandShorthandMap(styles36) {
|
|
9498
9498
|
var expanded = {};
|
|
9499
|
-
for (var key in
|
|
9499
|
+
for (var key in styles36) {
|
|
9500
9500
|
var longhands = shorthandToLonghand[key] || [key];
|
|
9501
9501
|
for (var i = 0; i < longhands.length; i++) {
|
|
9502
9502
|
expanded[longhands[i]] = key;
|
|
@@ -16977,7 +16977,7 @@ var require_react_dom_development = __commonJS({
|
|
|
16977
16977
|
}
|
|
16978
16978
|
}
|
|
16979
16979
|
function updateFragment2(returnFiber, current2, fragment, lanes, key) {
|
|
16980
|
-
if (current2 === null || current2.tag !==
|
|
16980
|
+
if (current2 === null || current2.tag !== Fragment4) {
|
|
16981
16981
|
var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
|
|
16982
16982
|
created.return = returnFiber;
|
|
16983
16983
|
return created;
|
|
@@ -17380,7 +17380,7 @@ var require_react_dom_development = __commonJS({
|
|
|
17380
17380
|
if (child.key === key) {
|
|
17381
17381
|
var elementType = element.type;
|
|
17382
17382
|
if (elementType === REACT_FRAGMENT_TYPE) {
|
|
17383
|
-
if (child.tag ===
|
|
17383
|
+
if (child.tag === Fragment4) {
|
|
17384
17384
|
deleteRemainingChildren(returnFiber, child.sibling);
|
|
17385
17385
|
var existing = useFiber(child, element.props.children);
|
|
17386
17386
|
existing.return = returnFiber;
|
|
@@ -22854,7 +22854,7 @@ var require_react_dom_development = __commonJS({
|
|
|
22854
22854
|
var _resolvedProps2 = workInProgress2.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
|
|
22855
22855
|
return updateForwardRef(current2, workInProgress2, type, _resolvedProps2, renderLanes2);
|
|
22856
22856
|
}
|
|
22857
|
-
case
|
|
22857
|
+
case Fragment4:
|
|
22858
22858
|
return updateFragment(current2, workInProgress2, renderLanes2);
|
|
22859
22859
|
case Mode:
|
|
22860
22860
|
return updateMode(current2, workInProgress2, renderLanes2);
|
|
@@ -23126,7 +23126,7 @@ var require_react_dom_development = __commonJS({
|
|
|
23126
23126
|
case SimpleMemoComponent:
|
|
23127
23127
|
case FunctionComponent:
|
|
23128
23128
|
case ForwardRef:
|
|
23129
|
-
case
|
|
23129
|
+
case Fragment4:
|
|
23130
23130
|
case Mode:
|
|
23131
23131
|
case Profiler:
|
|
23132
23132
|
case ContextConsumer:
|
|
@@ -27378,7 +27378,7 @@ var require_react_dom_development = __commonJS({
|
|
|
27378
27378
|
return fiber;
|
|
27379
27379
|
}
|
|
27380
27380
|
function createFiberFromFragment(elements, mode, lanes, key) {
|
|
27381
|
-
var fiber = createFiber(
|
|
27381
|
+
var fiber = createFiber(Fragment4, elements, key, mode);
|
|
27382
27382
|
fiber.lanes = lanes;
|
|
27383
27383
|
return fiber;
|
|
27384
27384
|
}
|
|
@@ -28613,8 +28613,8 @@ var languageSwitcherTypography = {
|
|
|
28613
28613
|
fontFamily: fonts.sans,
|
|
28614
28614
|
fontSize: 14,
|
|
28615
28615
|
fontWeight: "600",
|
|
28616
|
-
lineHeight:
|
|
28617
|
-
letterSpacing: 0
|
|
28616
|
+
lineHeight: 14,
|
|
28617
|
+
letterSpacing: 0.42
|
|
28618
28618
|
};
|
|
28619
28619
|
var counterTypography = {
|
|
28620
28620
|
fontFamily: fonts.sans,
|
|
@@ -29409,9 +29409,9 @@ function HeadsetIcon({ size = 24, color = "#B76533", strokeWidth = 2 }) {
|
|
|
29409
29409
|
}
|
|
29410
29410
|
|
|
29411
29411
|
// src/icons/Globe/globePath.ts
|
|
29412
|
-
var GLOBE_PATH = "
|
|
29413
|
-
function GlobeIcon({ size =
|
|
29414
|
-
return /* @__PURE__ */ jsx(Svg20, { width: size, height: size, viewBox: "0 0
|
|
29412
|
+
var GLOBE_PATH = "M1.3335 8.00004H14.6668M1.3335 8.00004C1.3335 11.6819 4.31826 14.6667 8.00016 14.6667M1.3335 8.00004C1.3335 4.31814 4.31826 1.33337 8.00016 1.33337M14.6668 8.00004C14.6668 11.6819 11.6821 14.6667 8.00016 14.6667M14.6668 8.00004C14.6668 4.31814 11.6821 1.33337 8.00016 1.33337M8.00016 1.33337C9.66768 3.15894 10.6153 5.52806 10.6668 8.00004C10.6153 10.472 9.66768 12.8411 8.00016 14.6667M8.00016 1.33337C6.33264 3.15894 5.38499 5.52806 5.3335 8.00004C5.38499 10.472 6.33264 12.8411 8.00016 14.6667";
|
|
29413
|
+
function GlobeIcon({ size = 16, color = colors.primary, strokeWidth = 1.5 }) {
|
|
29414
|
+
return /* @__PURE__ */ jsx(Svg20, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
29415
29415
|
Path,
|
|
29416
29416
|
{
|
|
29417
29417
|
d: GLOBE_PATH,
|
|
@@ -29479,7 +29479,7 @@ function InstagramIcon({ size = 20, color = colors.white }) {
|
|
|
29479
29479
|
}
|
|
29480
29480
|
|
|
29481
29481
|
// src/icons/Key/keyPath.ts
|
|
29482
|
-
var KEY_PATH = "
|
|
29482
|
+
var KEY_PATH = "M14.1668 8.33333V6.66667C14.1668 4.36548 12.3013 2.5 10.0002 2.5C7.69898 2.5 5.8335 4.36548 5.8335 6.66667V8.33333M10.0002 12.0833V13.75M7.3335 17.5H12.6668C14.067 17.5 14.767 17.5 15.3018 17.2275C15.7722 16.9878 16.1547 16.6054 16.3943 16.135C16.6668 15.6002 16.6668 14.9001 16.6668 13.5V12.3333C16.6668 10.9332 16.6668 10.2331 16.3943 9.69836C16.1547 9.22795 15.7722 8.8455 15.3018 8.60582C14.767 8.33333 14.067 8.33333 12.6668 8.33333H7.3335C5.93336 8.33333 5.2333 8.33333 4.69852 8.60582C4.22811 8.8455 3.84566 9.22795 3.60598 9.69836C3.3335 10.2331 3.3335 10.9332 3.3335 12.3333V13.5C3.3335 14.9001 3.3335 15.6002 3.60598 16.135C3.84566 16.6054 4.22811 16.9878 4.69852 17.2275C5.2333 17.5 5.93336 17.5 7.3335 17.5Z";
|
|
29483
29483
|
function KeyIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
29484
29484
|
return /* @__PURE__ */ jsx(Svg20, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
|
|
29485
29485
|
Path,
|
|
@@ -29693,6 +29693,26 @@ function MinusIcon({ size = 16, color = colors.white, strokeWidth = 2 }) {
|
|
|
29693
29693
|
) });
|
|
29694
29694
|
}
|
|
29695
29695
|
|
|
29696
|
+
// src/icons/MoreHorizontal/moreHorizontalPath.ts
|
|
29697
|
+
var MORE_HORIZONTAL_PATH = "M6.33333 2.33333C6.70152 2.33333 7 2.03486 7 1.66667C7 1.29848 6.70152 1 6.33333 1C5.96514 1 5.66667 1.29848 5.66667 1.66667C5.66667 2.03486 5.96514 2.33333 6.33333 2.33333ZM11 2.33333C11.3682 2.33333 11.6667 2.03486 11.6667 1.66667C11.6667 1.29848 11.3682 1 11 1C10.6318 1 10.3333 1.29848 10.3333 1.66667C10.3333 2.03486 10.6318 2.33333 11 2.33333ZM1.66667 2.33333C2.03486 2.33333 2.33333 2.03486 2.33333 1.66667C2.33333 1.29848 2.03486 1 1.66667 1C1.29848 1 1 1.29848 1 1.66667C1 2.03486 1.29848 2.33333 1.66667 2.33333Z";
|
|
29698
|
+
var ASPECT_RATIO = 4 / 13;
|
|
29699
|
+
function MoreHorizontalIcon({
|
|
29700
|
+
size = 13,
|
|
29701
|
+
color = colors.white,
|
|
29702
|
+
strokeWidth = 2
|
|
29703
|
+
}) {
|
|
29704
|
+
return /* @__PURE__ */ jsx(Svg20, { width: size, height: size * ASPECT_RATIO, viewBox: "0 0 13 4", fill: "none", children: /* @__PURE__ */ jsx(
|
|
29705
|
+
Path,
|
|
29706
|
+
{
|
|
29707
|
+
d: MORE_HORIZONTAL_PATH,
|
|
29708
|
+
stroke: color,
|
|
29709
|
+
strokeWidth,
|
|
29710
|
+
strokeLinecap: "round",
|
|
29711
|
+
strokeLinejoin: "round"
|
|
29712
|
+
}
|
|
29713
|
+
) });
|
|
29714
|
+
}
|
|
29715
|
+
|
|
29696
29716
|
// src/icons/Navigate/navigatePath.ts
|
|
29697
29717
|
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";
|
|
29698
29718
|
function NavigateIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
@@ -29918,6 +29938,21 @@ function StarFilledIcon({
|
|
|
29918
29938
|
) });
|
|
29919
29939
|
}
|
|
29920
29940
|
|
|
29941
|
+
// src/icons/TableView/tableViewPath.ts
|
|
29942
|
+
var TABLE_VIEW_PATH = "M1 6L16 6M6 1L6 16M5 1H12C13.4001 1 14.1002 1 14.635 1.27248C15.1054 1.51217 15.4878 1.89462 15.7275 2.36502C16 2.8998 16 3.59987 16 5V12C16 13.4001 16 14.1002 15.7275 14.635C15.4878 15.1054 15.1054 15.4878 14.635 15.7275C14.1002 16 13.4001 16 12 16H5C3.59987 16 2.8998 16 2.36502 15.7275C1.89462 15.4878 1.51217 15.1054 1.27248 14.635C1 14.1002 1 13.4001 1 12V5C1 3.59987 1 2.8998 1.27248 2.36502C1.51217 1.89462 1.89462 1.51217 2.36502 1.27248C2.8998 1 3.59987 1 5 1Z";
|
|
29943
|
+
function TableViewIcon({ size = 17, color = colors.grey400, strokeWidth = 2 }) {
|
|
29944
|
+
return /* @__PURE__ */ jsx(Svg20, { width: size, height: size, viewBox: "0 0 17 17", fill: "none", children: /* @__PURE__ */ jsx(
|
|
29945
|
+
Path,
|
|
29946
|
+
{
|
|
29947
|
+
d: TABLE_VIEW_PATH,
|
|
29948
|
+
stroke: color,
|
|
29949
|
+
strokeWidth,
|
|
29950
|
+
strokeLinecap: "round",
|
|
29951
|
+
strokeLinejoin: "round"
|
|
29952
|
+
}
|
|
29953
|
+
) });
|
|
29954
|
+
}
|
|
29955
|
+
|
|
29921
29956
|
// src/icons/User/userPath.ts
|
|
29922
29957
|
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";
|
|
29923
29958
|
function UserIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
@@ -30043,6 +30078,7 @@ var icons = {
|
|
|
30043
30078
|
menu: MenuIcon,
|
|
30044
30079
|
menuLines: MenuLinesIcon,
|
|
30045
30080
|
minus: MinusIcon,
|
|
30081
|
+
moreHorizontal: MoreHorizontalIcon,
|
|
30046
30082
|
navigate: NavigateIcon,
|
|
30047
30083
|
noSmoking: NoSmokingIcon,
|
|
30048
30084
|
paw: PawIcon,
|
|
@@ -30062,6 +30098,7 @@ var icons = {
|
|
|
30062
30098
|
sort: SortIcon,
|
|
30063
30099
|
star: StarIcon,
|
|
30064
30100
|
starFilled: StarFilledIcon,
|
|
30101
|
+
tableView: TableViewIcon,
|
|
30065
30102
|
tooltipArrow: TooltipArrowIcon,
|
|
30066
30103
|
trash: TrashIcon,
|
|
30067
30104
|
user: UserIcon,
|
|
@@ -30086,7 +30123,8 @@ var iconGroups = {
|
|
|
30086
30123
|
"mapView",
|
|
30087
30124
|
"menu",
|
|
30088
30125
|
"menuLines",
|
|
30089
|
-
"navigate"
|
|
30126
|
+
"navigate",
|
|
30127
|
+
"tableView"
|
|
30090
30128
|
],
|
|
30091
30129
|
actions: [
|
|
30092
30130
|
"show",
|
|
@@ -30117,6 +30155,7 @@ var iconGroups = {
|
|
|
30117
30155
|
"star",
|
|
30118
30156
|
"starFilled",
|
|
30119
30157
|
"minus",
|
|
30158
|
+
"moreHorizontal",
|
|
30120
30159
|
"plus",
|
|
30121
30160
|
"refresh",
|
|
30122
30161
|
"refundStatus",
|
|
@@ -30514,7 +30553,87 @@ var styles2 = StyleSheet.create({
|
|
|
30514
30553
|
flex: 1
|
|
30515
30554
|
}
|
|
30516
30555
|
});
|
|
30517
|
-
var
|
|
30556
|
+
var ICON_SLOT_SIZE = 41;
|
|
30557
|
+
var ICON_SIZE2 = 20;
|
|
30558
|
+
var InfoCardV2 = forwardRef(
|
|
30559
|
+
function InfoCardV22({
|
|
30560
|
+
label,
|
|
30561
|
+
value,
|
|
30562
|
+
icon: Icon2,
|
|
30563
|
+
iconProps,
|
|
30564
|
+
iconSize = ICON_SIZE2,
|
|
30565
|
+
style,
|
|
30566
|
+
className,
|
|
30567
|
+
accessibilityLabel,
|
|
30568
|
+
...rest
|
|
30569
|
+
}, forwardedRef) {
|
|
30570
|
+
const containerRef = useRef(null);
|
|
30571
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
30572
|
+
useApplyWebClassName(containerRef, className?.trim() || void 0);
|
|
30573
|
+
return /* @__PURE__ */ jsxs(
|
|
30574
|
+
View,
|
|
30575
|
+
{
|
|
30576
|
+
...rest,
|
|
30577
|
+
ref: setContainerRef,
|
|
30578
|
+
accessibilityRole: "text",
|
|
30579
|
+
accessibilityLabel: accessibilityLabel ?? `${label}. ${value}`,
|
|
30580
|
+
style: [styles3.root, style],
|
|
30581
|
+
children: [
|
|
30582
|
+
/* @__PURE__ */ jsx(View, { style: styles3.iconSlot, children: /* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.primary }) }),
|
|
30583
|
+
/* @__PURE__ */ jsxs(View, { style: styles3.content, children: [
|
|
30584
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles3.label, children: label }),
|
|
30585
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles3.value, children: value })
|
|
30586
|
+
] })
|
|
30587
|
+
]
|
|
30588
|
+
}
|
|
30589
|
+
);
|
|
30590
|
+
}
|
|
30591
|
+
);
|
|
30592
|
+
var styles3 = StyleSheet.create({
|
|
30593
|
+
root: {
|
|
30594
|
+
minHeight: 65,
|
|
30595
|
+
padding: 12,
|
|
30596
|
+
flexDirection: "row",
|
|
30597
|
+
alignItems: "center",
|
|
30598
|
+
flexGrow: 1,
|
|
30599
|
+
flexShrink: 0,
|
|
30600
|
+
flexBasis: 0,
|
|
30601
|
+
gap: 16,
|
|
30602
|
+
borderRadius: 16,
|
|
30603
|
+
backgroundColor: colors.grey700
|
|
30604
|
+
},
|
|
30605
|
+
iconSlot: {
|
|
30606
|
+
width: ICON_SLOT_SIZE,
|
|
30607
|
+
height: ICON_SLOT_SIZE,
|
|
30608
|
+
borderRadius: 10,
|
|
30609
|
+
alignItems: "center",
|
|
30610
|
+
justifyContent: "center",
|
|
30611
|
+
flexShrink: 0,
|
|
30612
|
+
backgroundColor: colors.grey600
|
|
30613
|
+
},
|
|
30614
|
+
content: {
|
|
30615
|
+
minWidth: 0,
|
|
30616
|
+
flexShrink: 1,
|
|
30617
|
+
gap: 6
|
|
30618
|
+
},
|
|
30619
|
+
label: {
|
|
30620
|
+
fontFamily: fonts.sans,
|
|
30621
|
+
fontSize: 14,
|
|
30622
|
+
fontWeight: "500",
|
|
30623
|
+
lineHeight: 16,
|
|
30624
|
+
letterSpacing: 0,
|
|
30625
|
+
color: colors.lightGrey
|
|
30626
|
+
},
|
|
30627
|
+
value: {
|
|
30628
|
+
fontFamily: fonts.sans,
|
|
30629
|
+
fontSize: 16,
|
|
30630
|
+
fontWeight: "700",
|
|
30631
|
+
lineHeight: 19,
|
|
30632
|
+
letterSpacing: 0,
|
|
30633
|
+
color: colors.white
|
|
30634
|
+
}
|
|
30635
|
+
});
|
|
30636
|
+
var ICON_SIZE3 = 16;
|
|
30518
30637
|
var BACKGROUND_COLOR = "#09090966";
|
|
30519
30638
|
var webBlurStyle = Platform.OS === "web" ? {
|
|
30520
30639
|
backdropFilter: "blur(10px)",
|
|
@@ -30555,10 +30674,10 @@ var FavoritesButton = forwardRef(
|
|
|
30555
30674
|
hitSlop,
|
|
30556
30675
|
onPress: handlePress,
|
|
30557
30676
|
style: ({ pressed }) => [
|
|
30558
|
-
|
|
30677
|
+
styles4.button,
|
|
30559
30678
|
webBlurStyle,
|
|
30560
|
-
pressed &&
|
|
30561
|
-
disabled &&
|
|
30679
|
+
pressed && styles4.pressed,
|
|
30680
|
+
disabled && styles4.disabled,
|
|
30562
30681
|
style
|
|
30563
30682
|
],
|
|
30564
30683
|
children: /* @__PURE__ */ jsx(
|
|
@@ -30566,7 +30685,7 @@ var FavoritesButton = forwardRef(
|
|
|
30566
30685
|
{
|
|
30567
30686
|
color: isActive ? colors.red : colors.white,
|
|
30568
30687
|
fillOpacity: isActive ? 1 : 0,
|
|
30569
|
-
size:
|
|
30688
|
+
size: ICON_SIZE3,
|
|
30570
30689
|
strokeWidth: 2
|
|
30571
30690
|
}
|
|
30572
30691
|
)
|
|
@@ -30574,7 +30693,7 @@ var FavoritesButton = forwardRef(
|
|
|
30574
30693
|
);
|
|
30575
30694
|
}
|
|
30576
30695
|
);
|
|
30577
|
-
var
|
|
30696
|
+
var styles4 = StyleSheet.create({
|
|
30578
30697
|
button: {
|
|
30579
30698
|
padding: 12,
|
|
30580
30699
|
gap: 10,
|
|
@@ -30593,6 +30712,44 @@ var styles3 = StyleSheet.create({
|
|
|
30593
30712
|
opacity: 0.5
|
|
30594
30713
|
}
|
|
30595
30714
|
});
|
|
30715
|
+
var webBlurStyle2 = Platform.OS === "web" ? {
|
|
30716
|
+
backdropFilter: "blur(10px)",
|
|
30717
|
+
WebkitBackdropFilter: "blur(10px)"
|
|
30718
|
+
} : {};
|
|
30719
|
+
var IconStatusBadge = forwardRef(
|
|
30720
|
+
function IconStatusBadge2({ label, icon: Icon2, iconProps, iconSize = 16, style, className, ...rest }, forwardedRef) {
|
|
30721
|
+
const badgeRef = useRef(null);
|
|
30722
|
+
const setBadgeRef = useMemo(() => mergeRefs(badgeRef, forwardedRef), [forwardedRef]);
|
|
30723
|
+
useApplyWebClassName(badgeRef, className);
|
|
30724
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setBadgeRef, style: [styles5.root, webBlurStyle2, style], children: [
|
|
30725
|
+
/* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize }),
|
|
30726
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles5.label, children: label })
|
|
30727
|
+
] });
|
|
30728
|
+
}
|
|
30729
|
+
);
|
|
30730
|
+
var styles5 = StyleSheet.create({
|
|
30731
|
+
root: {
|
|
30732
|
+
minHeight: 34,
|
|
30733
|
+
paddingHorizontal: 12,
|
|
30734
|
+
paddingVertical: 8,
|
|
30735
|
+
flexDirection: "row",
|
|
30736
|
+
alignItems: "center",
|
|
30737
|
+
justifyContent: "center",
|
|
30738
|
+
gap: 10,
|
|
30739
|
+
alignSelf: "flex-start",
|
|
30740
|
+
borderRadius: 39,
|
|
30741
|
+
borderWidth: 1,
|
|
30742
|
+
borderColor: colors.whiteAlpha10,
|
|
30743
|
+
backgroundColor: "#09090966"
|
|
30744
|
+
},
|
|
30745
|
+
label: {
|
|
30746
|
+
color: colors.white,
|
|
30747
|
+
fontFamily: fonts.sans,
|
|
30748
|
+
fontSize: 12,
|
|
30749
|
+
fontWeight: "700",
|
|
30750
|
+
lineHeight: 15
|
|
30751
|
+
}
|
|
30752
|
+
});
|
|
30596
30753
|
|
|
30597
30754
|
// src/primitives/BrandLogo/brandLogoPaths.ts
|
|
30598
30755
|
var BRAND_LOGO_PATHS = [
|
|
@@ -30752,7 +30909,7 @@ var Avatar = forwardRef(function Avatar2({
|
|
|
30752
30909
|
}, [isOpen, closeAndFocusTrigger]);
|
|
30753
30910
|
const hasImage = Boolean(imageUrl) && !imageFailed;
|
|
30754
30911
|
const resolvedAccessibilityLabel = accessibilityLabel ?? [name, email].filter(Boolean).join(", ");
|
|
30755
|
-
return /* @__PURE__ */ jsxs(View, { ref: wrapperRef, style: [
|
|
30912
|
+
return /* @__PURE__ */ jsxs(View, { ref: wrapperRef, style: [styles6.wrapper, isOpen && styles6.wrapperOpen], children: [
|
|
30756
30913
|
/* @__PURE__ */ jsxs(
|
|
30757
30914
|
Pressable,
|
|
30758
30915
|
{
|
|
@@ -30764,25 +30921,25 @@ var Avatar = forwardRef(function Avatar2({
|
|
|
30764
30921
|
accessibilityRole: isInteractive ? "button" : void 0,
|
|
30765
30922
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
30766
30923
|
accessibilityState: isInteractive ? { disabled, expanded: hasMenu ? isOpen : void 0 } : void 0,
|
|
30767
|
-
style: [
|
|
30924
|
+
style: [styles6.root, disabled && styles6.disabled, style],
|
|
30768
30925
|
children: [
|
|
30769
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
30926
|
+
/* @__PURE__ */ jsx(View, { style: styles6.imageWrap, children: hasImage ? /* @__PURE__ */ jsx(
|
|
30770
30927
|
Image,
|
|
30771
30928
|
{
|
|
30772
30929
|
source: { uri: imageUrl ?? void 0 },
|
|
30773
|
-
style:
|
|
30930
|
+
style: styles6.image,
|
|
30774
30931
|
onError: () => setImageFailed(true)
|
|
30775
30932
|
}
|
|
30776
|
-
) : /* @__PURE__ */ jsx(View, { style:
|
|
30777
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
30778
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
30779
|
-
email ? /* @__PURE__ */ jsx(Text, { style:
|
|
30933
|
+
) : /* @__PURE__ */ jsx(View, { style: styles6.imageFallback, children: /* @__PURE__ */ jsx(UserIcon, { size: FALLBACK_ICON_SIZE, color: colors.primary }) }) }),
|
|
30934
|
+
/* @__PURE__ */ jsxs(View, { style: styles6.textColumn, children: [
|
|
30935
|
+
/* @__PURE__ */ jsx(Text, { style: styles6.name, numberOfLines: 1, children: name }),
|
|
30936
|
+
email ? /* @__PURE__ */ jsx(Text, { style: styles6.email, numberOfLines: 1, children: email }) : null
|
|
30780
30937
|
] }),
|
|
30781
|
-
showChevron ? /* @__PURE__ */ jsx(View, { style: [
|
|
30938
|
+
showChevron ? /* @__PURE__ */ jsx(View, { style: [styles6.chevronSlot, isOpen && styles6.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: CHEVRON_SIZE, color: isOpen ? colors.primary : colors.grey100 }) }) : null
|
|
30782
30939
|
]
|
|
30783
30940
|
}
|
|
30784
30941
|
),
|
|
30785
|
-
hasMenu && isOpen ? /* @__PURE__ */ jsx(View, { style: [
|
|
30942
|
+
hasMenu && isOpen ? /* @__PURE__ */ jsx(View, { style: [styles6.menu, menuWidth != null && { right: void 0, width: menuWidth }], children: resolvedMenuItems.map((item) => {
|
|
30786
30943
|
const itemKey = item.key ?? item.label;
|
|
30787
30944
|
return /* @__PURE__ */ jsx(
|
|
30788
30945
|
MenuItem,
|
|
@@ -30799,7 +30956,7 @@ var Avatar = forwardRef(function Avatar2({
|
|
|
30799
30956
|
}) }) : null
|
|
30800
30957
|
] });
|
|
30801
30958
|
});
|
|
30802
|
-
var
|
|
30959
|
+
var styles6 = StyleSheet.create({
|
|
30803
30960
|
wrapper: {
|
|
30804
30961
|
position: "relative",
|
|
30805
30962
|
alignSelf: "flex-start"
|
|
@@ -30910,23 +31067,23 @@ var AvatarSimple = forwardRef(
|
|
|
30910
31067
|
{
|
|
30911
31068
|
...rest,
|
|
30912
31069
|
ref: setContainerRef,
|
|
30913
|
-
style: [
|
|
31070
|
+
style: [styles7.root, compact ? styles7.rootCompact : styles7.rootCard, style],
|
|
30914
31071
|
accessibilityRole: "summary",
|
|
30915
31072
|
accessibilityLabel: `${name}, ${email}`,
|
|
30916
31073
|
children: [
|
|
30917
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
31074
|
+
/* @__PURE__ */ jsx(View, { style: styles7.avatar, children: showImage ? /* @__PURE__ */ jsx(
|
|
30918
31075
|
Image,
|
|
30919
31076
|
{
|
|
30920
31077
|
source: { uri: imageUrl ?? void 0 },
|
|
30921
|
-
style:
|
|
31078
|
+
style: styles7.avatarImage,
|
|
30922
31079
|
onError: () => setImageFailed(true),
|
|
30923
31080
|
accessibilityIgnoresInvertColors: true
|
|
30924
31081
|
}
|
|
30925
31082
|
) : null }),
|
|
30926
|
-
!compact ? /* @__PURE__ */ jsxs(View, { style:
|
|
30927
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
30928
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
30929
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
31083
|
+
!compact ? /* @__PURE__ */ jsxs(View, { style: styles7.details, children: [
|
|
31084
|
+
/* @__PURE__ */ jsxs(View, { style: styles7.textBlock, children: [
|
|
31085
|
+
/* @__PURE__ */ jsx(Text, { style: styles7.name, numberOfLines: 1, ellipsizeMode: "tail", children: name }),
|
|
31086
|
+
/* @__PURE__ */ jsx(Text, { style: styles7.email, numberOfLines: 1, ellipsizeMode: "tail", children: email })
|
|
30930
31087
|
] }),
|
|
30931
31088
|
/* @__PURE__ */ jsx(
|
|
30932
31089
|
Pressable,
|
|
@@ -30935,7 +31092,7 @@ var AvatarSimple = forwardRef(
|
|
|
30935
31092
|
accessibilityRole: "button",
|
|
30936
31093
|
accessibilityLabel: logOutAccessibilityLabel,
|
|
30937
31094
|
hitSlop: 8,
|
|
30938
|
-
style:
|
|
31095
|
+
style: styles7.logOutButton,
|
|
30939
31096
|
children: /* @__PURE__ */ jsx(LogOutIcon, { color: colors.primary, size: LOG_OUT_SIZE, strokeWidth: 2 })
|
|
30940
31097
|
}
|
|
30941
31098
|
)
|
|
@@ -30945,7 +31102,7 @@ var AvatarSimple = forwardRef(
|
|
|
30945
31102
|
);
|
|
30946
31103
|
}
|
|
30947
31104
|
);
|
|
30948
|
-
var
|
|
31105
|
+
var styles7 = StyleSheet.create({
|
|
30949
31106
|
root: {
|
|
30950
31107
|
flexDirection: "row",
|
|
30951
31108
|
alignItems: "center",
|
|
@@ -31032,6 +31189,7 @@ var AccountHeader = forwardRef(
|
|
|
31032
31189
|
onBackPress,
|
|
31033
31190
|
onMenuPress,
|
|
31034
31191
|
onNotificationsPress,
|
|
31192
|
+
languageSlot,
|
|
31035
31193
|
badge,
|
|
31036
31194
|
backAccessibilityLabel = "Back",
|
|
31037
31195
|
menuAccessibilityLabel = "Open menu",
|
|
@@ -31053,15 +31211,15 @@ var AccountHeader = forwardRef(
|
|
|
31053
31211
|
...webClassName(className),
|
|
31054
31212
|
ref: setContainerRef,
|
|
31055
31213
|
accessibilityRole: "header",
|
|
31056
|
-
style: [
|
|
31214
|
+
style: [styles8.base, style],
|
|
31057
31215
|
children: [
|
|
31058
31216
|
/* @__PURE__ */ jsxs(
|
|
31059
31217
|
View,
|
|
31060
31218
|
{
|
|
31061
31219
|
style: [
|
|
31062
|
-
|
|
31063
|
-
showBack ?
|
|
31064
|
-
showMenu ?
|
|
31220
|
+
styles8.start,
|
|
31221
|
+
showBack ? styles8.startWithBack : null,
|
|
31222
|
+
showMenu ? styles8.startWithMenu : null
|
|
31065
31223
|
],
|
|
31066
31224
|
children: [
|
|
31067
31225
|
showBack ? /* @__PURE__ */ jsx(
|
|
@@ -31071,7 +31229,7 @@ var AccountHeader = forwardRef(
|
|
|
31071
31229
|
accessibilityLabel: backAccessibilityLabel,
|
|
31072
31230
|
hitSlop: 8,
|
|
31073
31231
|
onPress: onBackPress,
|
|
31074
|
-
style:
|
|
31232
|
+
style: styles8.iconButton,
|
|
31075
31233
|
children: /* @__PURE__ */ jsx(
|
|
31076
31234
|
ChevronLeftIcon,
|
|
31077
31235
|
{
|
|
@@ -31092,41 +31250,44 @@ var AccountHeader = forwardRef(
|
|
|
31092
31250
|
accessibilityLabel: menuAccessibilityLabel,
|
|
31093
31251
|
hitSlop: 8,
|
|
31094
31252
|
onPress: onMenuPress,
|
|
31095
|
-
style:
|
|
31253
|
+
style: styles8.menuButton,
|
|
31096
31254
|
children: /* @__PURE__ */ jsx(MenuLinesIcon, { color: colors.white, size: MENU_ICON_SIZE, strokeWidth: 2 })
|
|
31097
31255
|
}
|
|
31098
31256
|
) : null,
|
|
31099
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
31257
|
+
/* @__PURE__ */ jsxs(View, { style: styles8.titleRow, children: [
|
|
31100
31258
|
/* @__PURE__ */ jsx(
|
|
31101
31259
|
Text,
|
|
31102
31260
|
{
|
|
31103
31261
|
...webClassName("account-header-title"),
|
|
31104
31262
|
numberOfLines: 1,
|
|
31105
|
-
style: [
|
|
31263
|
+
style: [styles8.title, titleStyle],
|
|
31106
31264
|
children: title
|
|
31107
31265
|
}
|
|
31108
31266
|
),
|
|
31109
|
-
badge != null ? /* @__PURE__ */ jsx(View, { style:
|
|
31267
|
+
badge != null ? /* @__PURE__ */ jsx(View, { style: styles8.badgeSlot, children: badge }) : null
|
|
31110
31268
|
] })
|
|
31111
31269
|
]
|
|
31112
31270
|
}
|
|
31113
31271
|
),
|
|
31114
|
-
/* @__PURE__ */
|
|
31115
|
-
|
|
31116
|
-
|
|
31117
|
-
|
|
31118
|
-
|
|
31119
|
-
|
|
31120
|
-
|
|
31121
|
-
|
|
31122
|
-
|
|
31123
|
-
|
|
31272
|
+
/* @__PURE__ */ jsxs(View, { style: styles8.end, children: [
|
|
31273
|
+
languageSlot != null ? /* @__PURE__ */ jsx(View, { style: styles8.languageSlot, children: languageSlot }) : null,
|
|
31274
|
+
/* @__PURE__ */ jsx(
|
|
31275
|
+
Pressable,
|
|
31276
|
+
{
|
|
31277
|
+
accessibilityRole: "button",
|
|
31278
|
+
accessibilityLabel: notificationsAccessibilityLabel,
|
|
31279
|
+
onPress: onNotificationsPress,
|
|
31280
|
+
style: styles8.iconButton,
|
|
31281
|
+
children: /* @__PURE__ */ jsx(BellIcon, { color: colors.white, size: ICON_BUTTON_ICON_SIZE, strokeWidth: 1.5 })
|
|
31282
|
+
}
|
|
31283
|
+
)
|
|
31284
|
+
] })
|
|
31124
31285
|
]
|
|
31125
31286
|
}
|
|
31126
31287
|
);
|
|
31127
31288
|
}
|
|
31128
31289
|
);
|
|
31129
|
-
var
|
|
31290
|
+
var styles8 = StyleSheet.create({
|
|
31130
31291
|
base: {
|
|
31131
31292
|
height: HEADER_HEIGHT,
|
|
31132
31293
|
width: "100%",
|
|
@@ -31140,7 +31301,9 @@ var styles6 = StyleSheet.create({
|
|
|
31140
31301
|
paddingLeft: 24,
|
|
31141
31302
|
backgroundColor: colors.dark,
|
|
31142
31303
|
borderBottomWidth: 1,
|
|
31143
|
-
borderBottomColor: colors.grey700
|
|
31304
|
+
borderBottomColor: colors.grey700,
|
|
31305
|
+
zIndex: 40,
|
|
31306
|
+
position: "relative"
|
|
31144
31307
|
},
|
|
31145
31308
|
start: {
|
|
31146
31309
|
flex: 1,
|
|
@@ -31163,7 +31326,17 @@ var styles6 = StyleSheet.create({
|
|
|
31163
31326
|
},
|
|
31164
31327
|
end: {
|
|
31165
31328
|
flexShrink: 0,
|
|
31166
|
-
marginLeft: RIGHT_GAP
|
|
31329
|
+
marginLeft: RIGHT_GAP,
|
|
31330
|
+
flexDirection: "row",
|
|
31331
|
+
alignItems: "center",
|
|
31332
|
+
gap: 8,
|
|
31333
|
+
zIndex: 50,
|
|
31334
|
+
position: "relative"
|
|
31335
|
+
},
|
|
31336
|
+
languageSlot: {
|
|
31337
|
+
flexShrink: 0,
|
|
31338
|
+
zIndex: 50,
|
|
31339
|
+
position: "relative"
|
|
31167
31340
|
},
|
|
31168
31341
|
iconButton: {
|
|
31169
31342
|
width: ICON_BUTTON_SIZE,
|
|
@@ -31197,8 +31370,8 @@ var styles6 = StyleSheet.create({
|
|
|
31197
31370
|
flexShrink: 0
|
|
31198
31371
|
}
|
|
31199
31372
|
});
|
|
31200
|
-
var
|
|
31201
|
-
var
|
|
31373
|
+
var ICON_SIZE4 = 20;
|
|
31374
|
+
var webBlurStyle3 = Platform.OS === "web" ? {
|
|
31202
31375
|
backdropFilter: "blur(10.3px)",
|
|
31203
31376
|
WebkitBackdropFilter: "blur(10.3px)"
|
|
31204
31377
|
} : {};
|
|
@@ -31228,22 +31401,22 @@ var Badge = forwardRef(function Badge2({ label, variant = "default", icon: Icon2
|
|
|
31228
31401
|
...rest,
|
|
31229
31402
|
ref: setContainerRef,
|
|
31230
31403
|
style: [
|
|
31231
|
-
|
|
31404
|
+
styles9.base,
|
|
31232
31405
|
{ backgroundColor: preset.backgroundColor },
|
|
31233
|
-
preset.border ?
|
|
31234
|
-
preset.blur ?
|
|
31406
|
+
preset.border ? styles9.transparentBorder : null,
|
|
31407
|
+
preset.blur ? webBlurStyle3 : null,
|
|
31235
31408
|
style
|
|
31236
31409
|
],
|
|
31237
31410
|
accessibilityRole: "text",
|
|
31238
31411
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
31239
31412
|
children: [
|
|
31240
|
-
Icon2 ? /* @__PURE__ */ jsx(View, { style:
|
|
31241
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
31413
|
+
Icon2 ? /* @__PURE__ */ jsx(View, { style: styles9.iconSlot, children: /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE4, color: preset.iconColor }) }) : null,
|
|
31414
|
+
/* @__PURE__ */ jsx(Text, { style: [styles9.label, Platform.OS === "android" ? styles9.labelAndroid : null], children: label })
|
|
31242
31415
|
]
|
|
31243
31416
|
}
|
|
31244
31417
|
);
|
|
31245
31418
|
});
|
|
31246
|
-
var
|
|
31419
|
+
var styles9 = StyleSheet.create({
|
|
31247
31420
|
base: {
|
|
31248
31421
|
flexDirection: "row",
|
|
31249
31422
|
alignItems: "center",
|
|
@@ -31264,8 +31437,8 @@ var styles7 = StyleSheet.create({
|
|
|
31264
31437
|
borderStyle: "solid"
|
|
31265
31438
|
},
|
|
31266
31439
|
iconSlot: {
|
|
31267
|
-
width:
|
|
31268
|
-
height:
|
|
31440
|
+
width: ICON_SIZE4,
|
|
31441
|
+
height: ICON_SIZE4,
|
|
31269
31442
|
alignItems: "center",
|
|
31270
31443
|
justifyContent: "center",
|
|
31271
31444
|
flexShrink: 0
|
|
@@ -31292,7 +31465,7 @@ var toneConfig = {
|
|
|
31292
31465
|
color: colors.red
|
|
31293
31466
|
}
|
|
31294
31467
|
};
|
|
31295
|
-
var
|
|
31468
|
+
var webBlurStyle4 = Platform.OS === "web" ? {
|
|
31296
31469
|
backdropFilter: "blur(39.5px)",
|
|
31297
31470
|
WebkitBackdropFilter: "blur(39.5px)"
|
|
31298
31471
|
} : {};
|
|
@@ -31309,14 +31482,14 @@ var StatusBadge = forwardRef(
|
|
|
31309
31482
|
ref: setContainerRef,
|
|
31310
31483
|
accessibilityRole: "text",
|
|
31311
31484
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
31312
|
-
style: [
|
|
31485
|
+
style: [styles10.base, { backgroundColor: preset.backgroundColor }, webBlurStyle4, style],
|
|
31313
31486
|
children: /* @__PURE__ */ jsx(
|
|
31314
31487
|
Text,
|
|
31315
31488
|
{
|
|
31316
31489
|
style: [
|
|
31317
|
-
|
|
31490
|
+
styles10.label,
|
|
31318
31491
|
{ color: preset.color },
|
|
31319
|
-
Platform.OS === "android" ?
|
|
31492
|
+
Platform.OS === "android" ? styles10.labelAndroid : null
|
|
31320
31493
|
],
|
|
31321
31494
|
children: label
|
|
31322
31495
|
}
|
|
@@ -31325,7 +31498,7 @@ var StatusBadge = forwardRef(
|
|
|
31325
31498
|
);
|
|
31326
31499
|
}
|
|
31327
31500
|
);
|
|
31328
|
-
var
|
|
31501
|
+
var styles10 = StyleSheet.create({
|
|
31329
31502
|
base: {
|
|
31330
31503
|
height: 28,
|
|
31331
31504
|
minHeight: 28,
|
|
@@ -31377,7 +31550,7 @@ var PaginationDots = forwardRef(
|
|
|
31377
31550
|
ref: setContainerRef,
|
|
31378
31551
|
accessibilityRole: "adjustable",
|
|
31379
31552
|
accessibilityLabel: accessibilityLabel ?? `Slide ${safeActive + 1} of ${safeCount}`,
|
|
31380
|
-
style: [
|
|
31553
|
+
style: [styles11.root, style],
|
|
31381
31554
|
children: Array.from({ length: safeCount }, (_, index) => {
|
|
31382
31555
|
const active = index === safeActive;
|
|
31383
31556
|
return /* @__PURE__ */ jsx(
|
|
@@ -31390,8 +31563,8 @@ var PaginationDots = forwardRef(
|
|
|
31390
31563
|
hitSlop: 8,
|
|
31391
31564
|
onPress: () => onDotPress?.(index),
|
|
31392
31565
|
style: [
|
|
31393
|
-
|
|
31394
|
-
active ? [
|
|
31566
|
+
styles11.dot,
|
|
31567
|
+
active ? [styles11.dotActive, { width: pillWidth }] : styles11.dotInactive
|
|
31395
31568
|
]
|
|
31396
31569
|
},
|
|
31397
31570
|
index
|
|
@@ -31401,7 +31574,7 @@ var PaginationDots = forwardRef(
|
|
|
31401
31574
|
);
|
|
31402
31575
|
}
|
|
31403
31576
|
);
|
|
31404
|
-
var
|
|
31577
|
+
var styles11 = StyleSheet.create({
|
|
31405
31578
|
root: {
|
|
31406
31579
|
width: TRACK_WIDTH,
|
|
31407
31580
|
flexDirection: "row",
|
|
@@ -31423,7 +31596,7 @@ var styles9 = StyleSheet.create({
|
|
|
31423
31596
|
});
|
|
31424
31597
|
var WIDTH = 121;
|
|
31425
31598
|
var HEIGHT = 48;
|
|
31426
|
-
var
|
|
31599
|
+
var ICON_SIZE5 = 24;
|
|
31427
31600
|
var StepPager = forwardRef(function StepPager2({
|
|
31428
31601
|
index,
|
|
31429
31602
|
count,
|
|
@@ -31457,7 +31630,7 @@ var StepPager = forwardRef(function StepPager2({
|
|
|
31457
31630
|
now: safeCount === 0 ? 0 : safeIndex + 1,
|
|
31458
31631
|
text: label
|
|
31459
31632
|
},
|
|
31460
|
-
style: [
|
|
31633
|
+
style: [styles12.root, webBlurStyle5, style],
|
|
31461
31634
|
children: [
|
|
31462
31635
|
/* @__PURE__ */ jsx(
|
|
31463
31636
|
Pressable,
|
|
@@ -31468,11 +31641,11 @@ var StepPager = forwardRef(function StepPager2({
|
|
|
31468
31641
|
accessibilityRole: "button",
|
|
31469
31642
|
accessibilityLabel: previousAccessibilityLabel,
|
|
31470
31643
|
accessibilityState: { disabled: atStart || !onPrevious },
|
|
31471
|
-
style: [
|
|
31472
|
-
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size:
|
|
31644
|
+
style: [styles12.navButton, (atStart || !onPrevious) && styles12.navDisabled],
|
|
31645
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 })
|
|
31473
31646
|
}
|
|
31474
31647
|
),
|
|
31475
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
31648
|
+
/* @__PURE__ */ jsx(Text, { style: styles12.label, children: label }),
|
|
31476
31649
|
/* @__PURE__ */ jsx(
|
|
31477
31650
|
Pressable,
|
|
31478
31651
|
{
|
|
@@ -31482,19 +31655,19 @@ var StepPager = forwardRef(function StepPager2({
|
|
|
31482
31655
|
accessibilityRole: "button",
|
|
31483
31656
|
accessibilityLabel: nextAccessibilityLabel,
|
|
31484
31657
|
accessibilityState: { disabled: atEnd || !onNext },
|
|
31485
|
-
style: [
|
|
31486
|
-
children: /* @__PURE__ */ jsx(View, { style:
|
|
31658
|
+
style: [styles12.navButton, (atEnd || !onNext) && styles12.navDisabled],
|
|
31659
|
+
children: /* @__PURE__ */ jsx(View, { style: styles12.chevronRight, children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 }) })
|
|
31487
31660
|
}
|
|
31488
31661
|
)
|
|
31489
31662
|
]
|
|
31490
31663
|
}
|
|
31491
31664
|
);
|
|
31492
31665
|
});
|
|
31493
|
-
var
|
|
31666
|
+
var webBlurStyle5 = Platform.OS === "web" ? {
|
|
31494
31667
|
backdropFilter: "blur(50px)",
|
|
31495
31668
|
WebkitBackdropFilter: "blur(50px)"
|
|
31496
31669
|
} : {};
|
|
31497
|
-
var
|
|
31670
|
+
var styles12 = StyleSheet.create({
|
|
31498
31671
|
root: {
|
|
31499
31672
|
width: WIDTH,
|
|
31500
31673
|
height: HEIGHT,
|
|
@@ -31508,8 +31681,8 @@ var styles10 = StyleSheet.create({
|
|
|
31508
31681
|
overflow: "hidden"
|
|
31509
31682
|
},
|
|
31510
31683
|
navButton: {
|
|
31511
|
-
width:
|
|
31512
|
-
height:
|
|
31684
|
+
width: ICON_SIZE5,
|
|
31685
|
+
height: ICON_SIZE5,
|
|
31513
31686
|
alignItems: "center",
|
|
31514
31687
|
justifyContent: "center"
|
|
31515
31688
|
},
|
|
@@ -31530,13 +31703,13 @@ var styles10 = StyleSheet.create({
|
|
|
31530
31703
|
}
|
|
31531
31704
|
});
|
|
31532
31705
|
var ICON_SLOT = 36;
|
|
31533
|
-
var
|
|
31706
|
+
var ICON_SIZE6 = 20;
|
|
31534
31707
|
var InfoTile = forwardRef(function InfoTile2({
|
|
31535
31708
|
title,
|
|
31536
31709
|
description,
|
|
31537
31710
|
icon: Icon2,
|
|
31538
31711
|
iconProps,
|
|
31539
|
-
iconSize =
|
|
31712
|
+
iconSize = ICON_SIZE6,
|
|
31540
31713
|
iconSlotBackgroundColor = colors.grey600,
|
|
31541
31714
|
style,
|
|
31542
31715
|
className,
|
|
@@ -31554,18 +31727,18 @@ var InfoTile = forwardRef(function InfoTile2({
|
|
|
31554
31727
|
ref: setContainerRef,
|
|
31555
31728
|
accessibilityRole: "text",
|
|
31556
31729
|
accessibilityLabel: accessibilityLabel ?? (hasDescription ? `${title}. ${description}` : title),
|
|
31557
|
-
style: [
|
|
31730
|
+
style: [styles13.root, style],
|
|
31558
31731
|
children: [
|
|
31559
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
31560
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
31561
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
31562
|
-
hasDescription ? /* @__PURE__ */ jsx(Text, { style:
|
|
31732
|
+
/* @__PURE__ */ jsx(View, { style: [styles13.iconSlot, { backgroundColor: iconSlotBackgroundColor }], children: /* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }) }),
|
|
31733
|
+
/* @__PURE__ */ jsxs(View, { style: styles13.textBlock, children: [
|
|
31734
|
+
/* @__PURE__ */ jsx(Text, { style: styles13.title, children: title }),
|
|
31735
|
+
hasDescription ? /* @__PURE__ */ jsx(Text, { style: styles13.description, children: description }) : null
|
|
31563
31736
|
] })
|
|
31564
31737
|
]
|
|
31565
31738
|
}
|
|
31566
31739
|
);
|
|
31567
31740
|
});
|
|
31568
|
-
var
|
|
31741
|
+
var styles13 = StyleSheet.create({
|
|
31569
31742
|
root: {
|
|
31570
31743
|
flexDirection: "row",
|
|
31571
31744
|
alignItems: "center",
|
|
@@ -31615,7 +31788,7 @@ var CARD_PADDING_DESKTOP = 24;
|
|
|
31615
31788
|
var CARD_GAP_MOBILE = 16;
|
|
31616
31789
|
var CARD_GAP_DESKTOP = 24;
|
|
31617
31790
|
var ICON_SLOT2 = 48;
|
|
31618
|
-
var
|
|
31791
|
+
var ICON_SIZE7 = 24;
|
|
31619
31792
|
var ICON_SLOT_BG = "#E38E5E0F";
|
|
31620
31793
|
var ICON_COLOR = "#B76533";
|
|
31621
31794
|
var ContactInfoCard = forwardRef(
|
|
@@ -31624,7 +31797,7 @@ var ContactInfoCard = forwardRef(
|
|
|
31624
31797
|
value,
|
|
31625
31798
|
icon: Icon2,
|
|
31626
31799
|
iconProps,
|
|
31627
|
-
iconSize =
|
|
31800
|
+
iconSize = ICON_SIZE7,
|
|
31628
31801
|
iconSlotBackgroundColor = ICON_SLOT_BG,
|
|
31629
31802
|
style,
|
|
31630
31803
|
className,
|
|
@@ -31644,7 +31817,7 @@ var ContactInfoCard = forwardRef(
|
|
|
31644
31817
|
accessibilityRole: "text",
|
|
31645
31818
|
accessibilityLabel: accessibilityLabel ?? `${title}. ${value}`,
|
|
31646
31819
|
style: [
|
|
31647
|
-
|
|
31820
|
+
styles14.root,
|
|
31648
31821
|
{
|
|
31649
31822
|
height: isDesktop ? CARD_HEIGHT_DESKTOP : CARD_HEIGHT_MOBILE,
|
|
31650
31823
|
gap: isDesktop ? CARD_GAP_DESKTOP : CARD_GAP_MOBILE,
|
|
@@ -31653,7 +31826,7 @@ var ContactInfoCard = forwardRef(
|
|
|
31653
31826
|
style
|
|
31654
31827
|
],
|
|
31655
31828
|
children: [
|
|
31656
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
31829
|
+
/* @__PURE__ */ jsx(View, { style: [styles14.iconSlot, { backgroundColor: iconSlotBackgroundColor }], children: /* @__PURE__ */ jsx(
|
|
31657
31830
|
Icon2,
|
|
31658
31831
|
{
|
|
31659
31832
|
...iconProps,
|
|
@@ -31662,16 +31835,16 @@ var ContactInfoCard = forwardRef(
|
|
|
31662
31835
|
strokeWidth: iconProps?.strokeWidth ?? 2
|
|
31663
31836
|
}
|
|
31664
31837
|
) }),
|
|
31665
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
31666
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
31667
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
31838
|
+
/* @__PURE__ */ jsxs(View, { style: styles14.textBlock, children: [
|
|
31839
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.title, children: title }),
|
|
31840
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.value, children: value })
|
|
31668
31841
|
] })
|
|
31669
31842
|
]
|
|
31670
31843
|
}
|
|
31671
31844
|
);
|
|
31672
31845
|
}
|
|
31673
31846
|
);
|
|
31674
|
-
var
|
|
31847
|
+
var styles14 = StyleSheet.create({
|
|
31675
31848
|
root: {
|
|
31676
31849
|
width: "100%",
|
|
31677
31850
|
flexDirection: "row",
|
|
@@ -31776,59 +31949,54 @@ var AccordionItem = forwardRef(
|
|
|
31776
31949
|
inputRange: [0, 1],
|
|
31777
31950
|
outputRange: ["0deg", "180deg"]
|
|
31778
31951
|
});
|
|
31779
|
-
const bodyTextStyle = [
|
|
31952
|
+
const bodyTextStyle = [styles15.body, { fontSize: bodyFontSize, lineHeight: bodyLineHeight }];
|
|
31780
31953
|
return /* @__PURE__ */ jsxs(
|
|
31781
|
-
|
|
31954
|
+
Pressable,
|
|
31782
31955
|
{
|
|
31783
31956
|
...rest,
|
|
31784
31957
|
ref: setContainerRef,
|
|
31958
|
+
accessibilityRole: "button",
|
|
31959
|
+
accessibilityState: { expanded: open },
|
|
31960
|
+
accessibilityLabel: accessibilityLabel ?? title,
|
|
31961
|
+
onPress: toggle,
|
|
31785
31962
|
style: [
|
|
31786
|
-
|
|
31963
|
+
styles15.root,
|
|
31787
31964
|
{
|
|
31788
31965
|
borderRadius: isDesktop ? RADIUS_DESKTOP : RADIUS_MOBILE,
|
|
31789
31966
|
paddingRight: paddingX,
|
|
31790
31967
|
paddingLeft: paddingX
|
|
31791
31968
|
},
|
|
31969
|
+
Platform.OS === "web" ? styles15.rootWeb : null,
|
|
31792
31970
|
style
|
|
31793
31971
|
],
|
|
31794
31972
|
children: [
|
|
31795
|
-
/* @__PURE__ */ jsxs(
|
|
31796
|
-
|
|
31797
|
-
{
|
|
31798
|
-
|
|
31799
|
-
|
|
31800
|
-
|
|
31801
|
-
|
|
31802
|
-
|
|
31803
|
-
|
|
31804
|
-
|
|
31805
|
-
|
|
31806
|
-
ChevronDownIcon,
|
|
31807
|
-
{
|
|
31808
|
-
size: CHEVRON_SIZE2,
|
|
31809
|
-
color: open ? colors.primary : colors.grey400,
|
|
31810
|
-
strokeWidth: 2
|
|
31811
|
-
}
|
|
31812
|
-
) })
|
|
31813
|
-
]
|
|
31814
|
-
}
|
|
31815
|
-
),
|
|
31973
|
+
/* @__PURE__ */ jsxs(View, { style: styles15.header, children: [
|
|
31974
|
+
/* @__PURE__ */ jsx(Text, { style: styles15.title, children: title }),
|
|
31975
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [styles15.chevron, { transform: [{ rotate: chevronRotate }] }], children: /* @__PURE__ */ jsx(
|
|
31976
|
+
ChevronDownIcon,
|
|
31977
|
+
{
|
|
31978
|
+
size: CHEVRON_SIZE2,
|
|
31979
|
+
color: open ? colors.primary : colors.grey400,
|
|
31980
|
+
strokeWidth: 2
|
|
31981
|
+
}
|
|
31982
|
+
) })
|
|
31983
|
+
] }),
|
|
31816
31984
|
/* @__PURE__ */ jsx(
|
|
31817
31985
|
View,
|
|
31818
31986
|
{
|
|
31819
|
-
style: [
|
|
31987
|
+
style: [styles15.measureHidden, { left: paddingX, right: paddingX }],
|
|
31820
31988
|
pointerEvents: "none",
|
|
31821
31989
|
onLayout: onBodyLayout,
|
|
31822
31990
|
children: /* @__PURE__ */ jsx(Text, { style: bodyTextStyle, children })
|
|
31823
31991
|
}
|
|
31824
31992
|
),
|
|
31825
|
-
/* @__PURE__ */ jsx(Animated.View, { style: [
|
|
31993
|
+
/* @__PURE__ */ jsx(Animated.View, { style: [styles15.bodyClip, { height: bodyHeight }], pointerEvents: "none", children: /* @__PURE__ */ jsx(View, { style: styles15.bodyInner, children: /* @__PURE__ */ jsx(Text, { style: bodyTextStyle, children }) }) })
|
|
31826
31994
|
]
|
|
31827
31995
|
}
|
|
31828
31996
|
);
|
|
31829
31997
|
}
|
|
31830
31998
|
);
|
|
31831
|
-
var
|
|
31999
|
+
var styles15 = StyleSheet.create({
|
|
31832
32000
|
root: {
|
|
31833
32001
|
width: "100%",
|
|
31834
32002
|
paddingTop: 16,
|
|
@@ -31837,6 +32005,9 @@ var styles13 = StyleSheet.create({
|
|
|
31837
32005
|
opacity: 1,
|
|
31838
32006
|
overflow: "hidden"
|
|
31839
32007
|
},
|
|
32008
|
+
rootWeb: {
|
|
32009
|
+
cursor: "pointer"
|
|
32010
|
+
},
|
|
31840
32011
|
header: {
|
|
31841
32012
|
flexDirection: "row",
|
|
31842
32013
|
alignItems: "center",
|
|
@@ -31884,7 +32055,7 @@ var ROW_GAP = 12;
|
|
|
31884
32055
|
var CONNECTOR_WIDTH = 2;
|
|
31885
32056
|
var CONNECTOR_HEIGHT = 19;
|
|
31886
32057
|
var CONNECTOR_GAP = 8;
|
|
31887
|
-
var
|
|
32058
|
+
var webBlurStyle6 = Platform.OS === "web" ? {
|
|
31888
32059
|
backdropFilter: "blur(20px)",
|
|
31889
32060
|
WebkitBackdropFilter: "blur(20px)"
|
|
31890
32061
|
} : {};
|
|
@@ -31902,18 +32073,18 @@ var StepList = forwardRef(function StepList2({ steps, style, className, accessib
|
|
|
31902
32073
|
ref: setContainerRef,
|
|
31903
32074
|
accessibilityRole: "summary",
|
|
31904
32075
|
accessibilityLabel,
|
|
31905
|
-
style: [
|
|
32076
|
+
style: [styles16.root, style],
|
|
31906
32077
|
children: steps.map((description, index) => {
|
|
31907
32078
|
const isLast = index === steps.length - 1;
|
|
31908
32079
|
const number = index + 1;
|
|
31909
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
31910
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
31911
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
32080
|
+
return /* @__PURE__ */ jsxs(View, { style: styles16.stepBlock, children: [
|
|
32081
|
+
/* @__PURE__ */ jsxs(View, { style: styles16.row, children: [
|
|
32082
|
+
/* @__PURE__ */ jsx(View, { style: [styles16.badge, webBlurStyle6], children: /* @__PURE__ */ jsx(
|
|
31912
32083
|
Text,
|
|
31913
32084
|
{
|
|
31914
32085
|
style: [
|
|
31915
|
-
|
|
31916
|
-
Platform.OS === "android" ?
|
|
32086
|
+
styles16.badgeLabel,
|
|
32087
|
+
Platform.OS === "android" ? styles16.labelAndroid : null
|
|
31917
32088
|
],
|
|
31918
32089
|
children: String(number)
|
|
31919
32090
|
}
|
|
@@ -31921,18 +32092,18 @@ var StepList = forwardRef(function StepList2({ steps, style, className, accessib
|
|
|
31921
32092
|
/* @__PURE__ */ jsx(
|
|
31922
32093
|
Text,
|
|
31923
32094
|
{
|
|
31924
|
-
style: [
|
|
32095
|
+
style: [styles16.description, Platform.OS === "android" ? styles16.labelAndroid : null],
|
|
31925
32096
|
children: description
|
|
31926
32097
|
}
|
|
31927
32098
|
)
|
|
31928
32099
|
] }),
|
|
31929
|
-
!isLast ? /* @__PURE__ */ jsx(View, { style:
|
|
32100
|
+
!isLast ? /* @__PURE__ */ jsx(View, { style: styles16.connectorSlot, children: /* @__PURE__ */ jsx(View, { style: styles16.connector }) }) : null
|
|
31930
32101
|
] }, `${number}-${description}`);
|
|
31931
32102
|
})
|
|
31932
32103
|
}
|
|
31933
32104
|
);
|
|
31934
32105
|
});
|
|
31935
|
-
var
|
|
32106
|
+
var styles16 = StyleSheet.create({
|
|
31936
32107
|
root: {
|
|
31937
32108
|
width: "100%"
|
|
31938
32109
|
},
|
|
@@ -31990,7 +32161,7 @@ var styles14 = StyleSheet.create({
|
|
|
31990
32161
|
}
|
|
31991
32162
|
});
|
|
31992
32163
|
var BUTTON_SIZE = 32;
|
|
31993
|
-
var
|
|
32164
|
+
var webBlurStyle7 = Platform.OS === "web" ? {
|
|
31994
32165
|
backdropFilter: "blur(20px)",
|
|
31995
32166
|
WebkitBackdropFilter: "blur(20px)"
|
|
31996
32167
|
} : {};
|
|
@@ -32027,7 +32198,7 @@ var Counter = forwardRef(function Counter2({
|
|
|
32027
32198
|
if (!isControlled) setUncontrolledValue(next);
|
|
32028
32199
|
onValueChange?.(next);
|
|
32029
32200
|
};
|
|
32030
|
-
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [
|
|
32201
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [styles17.base, style], children: [
|
|
32031
32202
|
/* @__PURE__ */ jsx(
|
|
32032
32203
|
Pressable,
|
|
32033
32204
|
{
|
|
@@ -32037,11 +32208,11 @@ var Counter = forwardRef(function Counter2({
|
|
|
32037
32208
|
accessibilityRole: "button",
|
|
32038
32209
|
accessibilityLabel: "Decrease value",
|
|
32039
32210
|
accessibilityState: { disabled: decrementDisabled },
|
|
32040
|
-
style: [
|
|
32211
|
+
style: [styles17.button, webBlurStyle7, decrementDisabled && styles17.buttonDisabled],
|
|
32041
32212
|
children: /* @__PURE__ */ jsx(MinusIcon, {})
|
|
32042
32213
|
}
|
|
32043
32214
|
),
|
|
32044
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
32215
|
+
/* @__PURE__ */ jsx(Text, { style: styles17.value, children: resolvedValue }),
|
|
32045
32216
|
/* @__PURE__ */ jsx(
|
|
32046
32217
|
Pressable,
|
|
32047
32218
|
{
|
|
@@ -32051,13 +32222,13 @@ var Counter = forwardRef(function Counter2({
|
|
|
32051
32222
|
accessibilityRole: "button",
|
|
32052
32223
|
accessibilityLabel: "Increase value",
|
|
32053
32224
|
accessibilityState: { disabled: incrementDisabled },
|
|
32054
|
-
style: [
|
|
32225
|
+
style: [styles17.button, webBlurStyle7, incrementDisabled && styles17.buttonDisabled],
|
|
32055
32226
|
children: /* @__PURE__ */ jsx(PlusIcon, {})
|
|
32056
32227
|
}
|
|
32057
32228
|
)
|
|
32058
32229
|
] });
|
|
32059
32230
|
});
|
|
32060
|
-
var
|
|
32231
|
+
var styles17 = StyleSheet.create({
|
|
32061
32232
|
base: {
|
|
32062
32233
|
flexDirection: "row",
|
|
32063
32234
|
alignItems: "center",
|
|
@@ -32081,7 +32252,7 @@ var styles15 = StyleSheet.create({
|
|
|
32081
32252
|
color: colors.white
|
|
32082
32253
|
}
|
|
32083
32254
|
});
|
|
32084
|
-
var
|
|
32255
|
+
var ICON_SIZE8 = 20;
|
|
32085
32256
|
var ANIMATION_DURATION2 = 200;
|
|
32086
32257
|
var OPTION_HORIZONTAL_PADDING = 16;
|
|
32087
32258
|
var OPTION_CONTENT_GAP = 12;
|
|
@@ -32177,14 +32348,14 @@ var SegmentedToggle = forwardRef(
|
|
|
32177
32348
|
onLayout?.(event);
|
|
32178
32349
|
},
|
|
32179
32350
|
style: [
|
|
32180
|
-
|
|
32181
|
-
fullWidth ?
|
|
32182
|
-
disabled &&
|
|
32351
|
+
styles18.base,
|
|
32352
|
+
fullWidth ? styles18.fullWidth : styles18.contentWidth,
|
|
32353
|
+
disabled && styles18.disabled,
|
|
32183
32354
|
style
|
|
32184
32355
|
],
|
|
32185
32356
|
accessibilityRole: "radiogroup",
|
|
32186
32357
|
children: [
|
|
32187
|
-
!fullWidth ? options.map(({ value: optionValue, label, icon: Icon2 }, index) => /* @__PURE__ */ jsxs(
|
|
32358
|
+
!fullWidth ? options.map(({ value: optionValue, label, icon: Icon2, showLabel = true }, index) => /* @__PURE__ */ jsxs(
|
|
32188
32359
|
View,
|
|
32189
32360
|
{
|
|
32190
32361
|
pointerEvents: "none",
|
|
@@ -32200,10 +32371,10 @@ var SegmentedToggle = forwardRef(
|
|
|
32200
32371
|
return nextWidths;
|
|
32201
32372
|
});
|
|
32202
32373
|
},
|
|
32203
|
-
style:
|
|
32374
|
+
style: styles18.optionMeasurement,
|
|
32204
32375
|
children: [
|
|
32205
|
-
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size:
|
|
32206
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
32376
|
+
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE8 }) : null,
|
|
32377
|
+
showLabel ? /* @__PURE__ */ jsx(Text, { style: [styles18.label, styles18.contentWidthLabel], children: label }) : null
|
|
32207
32378
|
]
|
|
32208
32379
|
},
|
|
32209
32380
|
`${optionValue}-measurement`
|
|
@@ -32213,12 +32384,12 @@ var SegmentedToggle = forwardRef(
|
|
|
32213
32384
|
{
|
|
32214
32385
|
pointerEvents: "none",
|
|
32215
32386
|
style: [
|
|
32216
|
-
|
|
32387
|
+
styles18.activeIndicator,
|
|
32217
32388
|
{ width: selectedOptionWidth, transform: [{ translateX: indicatorTranslateX }] }
|
|
32218
32389
|
]
|
|
32219
32390
|
}
|
|
32220
32391
|
) : null,
|
|
32221
|
-
options.map(({ value: optionValue, label, icon: Icon2 }, index) => {
|
|
32392
|
+
options.map(({ value: optionValue, label, icon: Icon2, showLabel = true }, index) => {
|
|
32222
32393
|
const selected = optionValue === selectedValue;
|
|
32223
32394
|
const iconColor = selected ? colors.primary : colors.whiteAlpha20;
|
|
32224
32395
|
const labelColor = selected ? colors.whiteAlpha86 : colors.whiteAlpha40;
|
|
@@ -32233,23 +32404,23 @@ var SegmentedToggle = forwardRef(
|
|
|
32233
32404
|
accessibilityLabel: label,
|
|
32234
32405
|
accessibilityState: { selected, disabled },
|
|
32235
32406
|
style: [
|
|
32236
|
-
|
|
32237
|
-
fullWidth ?
|
|
32407
|
+
styles18.option,
|
|
32408
|
+
fullWidth ? styles18.optionFullWidth : [styles18.optionContentWidth, optionWidth > 0 && { width: optionWidth }]
|
|
32238
32409
|
],
|
|
32239
|
-
children: /* @__PURE__ */ jsxs(View, { style:
|
|
32240
|
-
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size:
|
|
32241
|
-
/* @__PURE__ */ jsx(
|
|
32410
|
+
children: /* @__PURE__ */ jsxs(View, { style: styles18.optionContent, children: [
|
|
32411
|
+
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE8, color: iconColor }) : null,
|
|
32412
|
+
showLabel ? /* @__PURE__ */ jsx(
|
|
32242
32413
|
Text,
|
|
32243
32414
|
{
|
|
32244
32415
|
numberOfLines: fullWidth ? 1 : void 0,
|
|
32245
32416
|
style: [
|
|
32246
|
-
|
|
32247
|
-
!fullWidth &&
|
|
32417
|
+
styles18.label,
|
|
32418
|
+
!fullWidth && styles18.contentWidthLabel,
|
|
32248
32419
|
{ color: labelColor }
|
|
32249
32420
|
],
|
|
32250
32421
|
children: label
|
|
32251
32422
|
}
|
|
32252
|
-
)
|
|
32423
|
+
) : null
|
|
32253
32424
|
] })
|
|
32254
32425
|
},
|
|
32255
32426
|
optionValue
|
|
@@ -32260,7 +32431,7 @@ var SegmentedToggle = forwardRef(
|
|
|
32260
32431
|
);
|
|
32261
32432
|
}
|
|
32262
32433
|
);
|
|
32263
|
-
var
|
|
32434
|
+
var styles18 = StyleSheet.create({
|
|
32264
32435
|
base: {
|
|
32265
32436
|
height: 44,
|
|
32266
32437
|
flexDirection: "row",
|
|
@@ -32388,16 +32559,16 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
32388
32559
|
{
|
|
32389
32560
|
...rest,
|
|
32390
32561
|
ref: setContainerRef,
|
|
32391
|
-
style: [
|
|
32562
|
+
style: [styles19.root, { width: widthAnim }, style],
|
|
32392
32563
|
accessibilityRole: "menu",
|
|
32393
32564
|
children: [
|
|
32394
32565
|
/* @__PURE__ */ jsxs(
|
|
32395
32566
|
View,
|
|
32396
32567
|
{
|
|
32397
32568
|
style: [
|
|
32398
|
-
|
|
32399
|
-
collapsed ?
|
|
32400
|
-
!showCollapseToggle && !onClose ?
|
|
32569
|
+
styles19.header,
|
|
32570
|
+
collapsed ? styles19.headerCollapsed : styles19.headerExpanded,
|
|
32571
|
+
!showCollapseToggle && !onClose ? styles19.headerNoToggle : null
|
|
32401
32572
|
],
|
|
32402
32573
|
children: [
|
|
32403
32574
|
/* @__PURE__ */ jsx(
|
|
@@ -32405,7 +32576,7 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
32405
32576
|
{
|
|
32406
32577
|
pointerEvents: collapsed ? "none" : "auto",
|
|
32407
32578
|
style: [
|
|
32408
|
-
|
|
32579
|
+
styles19.logoSlot,
|
|
32409
32580
|
{
|
|
32410
32581
|
opacity: labelOpacity,
|
|
32411
32582
|
maxWidth: collapsed ? 0 : LOGO_WIDTH
|
|
@@ -32431,7 +32602,7 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
32431
32602
|
accessibilityLabel: closeAccessibilityLabel,
|
|
32432
32603
|
hitSlop: 8,
|
|
32433
32604
|
onPress: onClose,
|
|
32434
|
-
style:
|
|
32605
|
+
style: styles19.toggleButton,
|
|
32435
32606
|
children: /* @__PURE__ */ jsx(CloseIcon, { color: colors.grey100, size: TOGGLE_SIZE, strokeWidth: 2 })
|
|
32436
32607
|
}
|
|
32437
32608
|
) : showCollapseToggle ? /* @__PURE__ */ jsx(
|
|
@@ -32442,7 +32613,7 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
32442
32613
|
accessibilityState: { expanded: !collapsed },
|
|
32443
32614
|
hitSlop: 8,
|
|
32444
32615
|
onPress: () => setCollapsed(!collapsed),
|
|
32445
|
-
style:
|
|
32616
|
+
style: styles19.toggleButton,
|
|
32446
32617
|
children: /* @__PURE__ */ jsx(SidebarIcon, { color: colors.grey100, size: TOGGLE_SIZE, strokeWidth: 2 })
|
|
32447
32618
|
}
|
|
32448
32619
|
) : null
|
|
@@ -32454,7 +32625,7 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
32454
32625
|
{
|
|
32455
32626
|
accessibilityLabel: navigationAccessibilityLabel,
|
|
32456
32627
|
accessibilityRole: "menu",
|
|
32457
|
-
style:
|
|
32628
|
+
style: styles19.nav,
|
|
32458
32629
|
children: items.map((item) => {
|
|
32459
32630
|
const isActive = Boolean(item.active);
|
|
32460
32631
|
const iconColor = isActive ? colors.primary : colors.grey300;
|
|
@@ -32470,18 +32641,18 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
32470
32641
|
hoverColor: colors.grey700,
|
|
32471
32642
|
onPress: item.onPress,
|
|
32472
32643
|
labelStyle: [
|
|
32473
|
-
|
|
32644
|
+
styles19.menuLabel,
|
|
32474
32645
|
{ color: isActive ? colors.white : colors.grey200 },
|
|
32475
|
-
collapsed ?
|
|
32646
|
+
collapsed ? styles19.menuLabelCollapsed : styles19.menuLabelExpanded
|
|
32476
32647
|
],
|
|
32477
|
-
style: [
|
|
32648
|
+
style: [styles19.menuItem, collapsed ? styles19.menuItemCollapsed : null]
|
|
32478
32649
|
},
|
|
32479
32650
|
item.key
|
|
32480
32651
|
);
|
|
32481
32652
|
})
|
|
32482
32653
|
}
|
|
32483
32654
|
),
|
|
32484
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
32655
|
+
/* @__PURE__ */ jsx(View, { style: [styles19.footer, collapsed ? styles19.footerCollapsed : styles19.footerExpanded], children: /* @__PURE__ */ jsx(
|
|
32485
32656
|
AvatarSimple,
|
|
32486
32657
|
{
|
|
32487
32658
|
name: user.name,
|
|
@@ -32496,7 +32667,7 @@ var Sidebar = forwardRef(function Sidebar2({
|
|
|
32496
32667
|
}
|
|
32497
32668
|
);
|
|
32498
32669
|
});
|
|
32499
|
-
var
|
|
32670
|
+
var styles19 = StyleSheet.create({
|
|
32500
32671
|
root: {
|
|
32501
32672
|
flexDirection: "column",
|
|
32502
32673
|
alignSelf: "stretch",
|
|
@@ -32601,7 +32772,13 @@ var defaultLanguageOptions = [
|
|
|
32601
32772
|
];
|
|
32602
32773
|
var CONTROL_WIDTH = 90;
|
|
32603
32774
|
var CONTROL_HEIGHT = 35;
|
|
32604
|
-
var
|
|
32775
|
+
var ICON_SIZE9 = 16;
|
|
32776
|
+
var ICON_BUTTON_SIZE2 = 32;
|
|
32777
|
+
var ICON_MENU_WIDTH = 67;
|
|
32778
|
+
var ICON_MENU_HEIGHT = 129;
|
|
32779
|
+
var ICON_MENU_TOP = 39;
|
|
32780
|
+
var ITEM_HEIGHT = 35;
|
|
32781
|
+
var ACTIVE_ITEM_BACKGROUND = "#E38E5E12";
|
|
32605
32782
|
var LanguageSwitcher = forwardRef(
|
|
32606
32783
|
function LanguageSwitcher2({
|
|
32607
32784
|
options = defaultLanguageOptions,
|
|
@@ -32612,6 +32789,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
32612
32789
|
defaultOpen = false,
|
|
32613
32790
|
onOpenChange,
|
|
32614
32791
|
disabled = false,
|
|
32792
|
+
variant = "default",
|
|
32615
32793
|
accessibilityLabel = "Language",
|
|
32616
32794
|
style,
|
|
32617
32795
|
className,
|
|
@@ -32631,6 +32809,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
32631
32809
|
const selectedValue = isValueControlled ? value : uncontrolledValue;
|
|
32632
32810
|
const isOpen = isOpenControlled ? openProp : uncontrolledOpen;
|
|
32633
32811
|
const selectedOption = options.find((option) => option.value === selectedValue) ?? options[0] ?? null;
|
|
32812
|
+
const isIconVariant = variant === "icon";
|
|
32634
32813
|
useApplyWebClassName(wrapperRef, className?.trim() || void 0);
|
|
32635
32814
|
const setOpen = useCallback(
|
|
32636
32815
|
(next) => {
|
|
@@ -32681,7 +32860,14 @@ var LanguageSwitcher = forwardRef(
|
|
|
32681
32860
|
{
|
|
32682
32861
|
...rest,
|
|
32683
32862
|
ref: setWrapperRef,
|
|
32684
|
-
style: [
|
|
32863
|
+
style: [
|
|
32864
|
+
styles20.wrapper,
|
|
32865
|
+
isIconVariant ? styles20.wrapperIcon : styles20.wrapperDefault,
|
|
32866
|
+
isOpen && styles20.wrapperOpen,
|
|
32867
|
+
isOpen && isIconVariant && styles20.wrapperOpenIcon,
|
|
32868
|
+
disabled && styles20.disabled,
|
|
32869
|
+
style
|
|
32870
|
+
],
|
|
32685
32871
|
children: [
|
|
32686
32872
|
/* @__PURE__ */ jsxs(
|
|
32687
32873
|
Pressable,
|
|
@@ -32696,49 +32882,76 @@ var LanguageSwitcher = forwardRef(
|
|
|
32696
32882
|
onHoverIn: () => setTriggerHovered(true),
|
|
32697
32883
|
onHoverOut: () => setTriggerHovered(false),
|
|
32698
32884
|
style: ({ pressed }) => [
|
|
32699
|
-
|
|
32700
|
-
(triggerHovered || pressed || isOpen) &&
|
|
32885
|
+
isIconVariant ? styles20.triggerIcon : styles20.trigger,
|
|
32886
|
+
!isIconVariant && (triggerHovered || pressed || isOpen) && styles20.triggerActive
|
|
32701
32887
|
],
|
|
32702
32888
|
children: [
|
|
32703
|
-
/* @__PURE__ */ jsx(GlobeIcon, { size:
|
|
32704
|
-
/* @__PURE__ */
|
|
32705
|
-
|
|
32889
|
+
/* @__PURE__ */ jsx(GlobeIcon, { size: ICON_SIZE9, color: colors.white, strokeWidth: isIconVariant ? 1.5 : 2 }),
|
|
32890
|
+
!isIconVariant ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32891
|
+
/* @__PURE__ */ jsx(Text, { style: styles20.triggerLabel, numberOfLines: 1, children: selectedOption?.label ?? "" }),
|
|
32892
|
+
/* @__PURE__ */ jsx(View, { style: [styles20.chevron, isOpen && styles20.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE9, color: colors.white, strokeWidth: 2 }) })
|
|
32893
|
+
] }) : null
|
|
32706
32894
|
]
|
|
32707
32895
|
}
|
|
32708
32896
|
),
|
|
32709
|
-
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(
|
|
32710
|
-
|
|
32711
|
-
|
|
32712
|
-
|
|
32713
|
-
|
|
32714
|
-
|
|
32715
|
-
|
|
32716
|
-
|
|
32717
|
-
|
|
32718
|
-
|
|
32719
|
-
|
|
32720
|
-
|
|
32721
|
-
|
|
32722
|
-
|
|
32723
|
-
|
|
32724
|
-
|
|
32725
|
-
|
|
32726
|
-
|
|
32727
|
-
|
|
32728
|
-
|
|
32897
|
+
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(
|
|
32898
|
+
View,
|
|
32899
|
+
{
|
|
32900
|
+
style: [styles20.menu, isIconVariant ? styles20.menuIcon : styles20.menuDefault],
|
|
32901
|
+
accessibilityRole: "menu",
|
|
32902
|
+
children: options.map((option) => {
|
|
32903
|
+
const selected = option.value === selectedValue;
|
|
32904
|
+
return /* @__PURE__ */ jsx(
|
|
32905
|
+
Pressable,
|
|
32906
|
+
{
|
|
32907
|
+
onPress: () => selectLanguage(option.value),
|
|
32908
|
+
accessibilityRole: "menuitem",
|
|
32909
|
+
accessibilityLabel: option.label,
|
|
32910
|
+
accessibilityState: { selected },
|
|
32911
|
+
onHoverIn: () => setHoveredValue(option.value),
|
|
32912
|
+
onHoverOut: () => setHoveredValue(null),
|
|
32913
|
+
style: ({ pressed }) => [
|
|
32914
|
+
styles20.item,
|
|
32915
|
+
isIconVariant ? styles20.itemIcon : null,
|
|
32916
|
+
selected ? isIconVariant ? styles20.itemSelectedIcon : styles20.itemSelected : (hoveredValue === option.value || pressed) && styles20.itemHovered
|
|
32917
|
+
],
|
|
32918
|
+
children: /* @__PURE__ */ jsx(
|
|
32919
|
+
Text,
|
|
32920
|
+
{
|
|
32921
|
+
style: [
|
|
32922
|
+
styles20.itemLabel,
|
|
32923
|
+
selected && (isIconVariant ? styles20.itemLabelSelectedIcon : styles20.itemLabelSelected)
|
|
32924
|
+
],
|
|
32925
|
+
children: option.label
|
|
32926
|
+
}
|
|
32927
|
+
)
|
|
32928
|
+
},
|
|
32929
|
+
option.value
|
|
32930
|
+
);
|
|
32931
|
+
})
|
|
32932
|
+
}
|
|
32933
|
+
) : null
|
|
32729
32934
|
]
|
|
32730
32935
|
}
|
|
32731
32936
|
);
|
|
32732
32937
|
}
|
|
32733
32938
|
);
|
|
32734
|
-
var
|
|
32939
|
+
var styles20 = StyleSheet.create({
|
|
32735
32940
|
wrapper: {
|
|
32736
32941
|
position: "relative",
|
|
32737
|
-
width: CONTROL_WIDTH,
|
|
32738
32942
|
alignSelf: "flex-start"
|
|
32739
32943
|
},
|
|
32944
|
+
wrapperDefault: {
|
|
32945
|
+
width: CONTROL_WIDTH
|
|
32946
|
+
},
|
|
32947
|
+
wrapperIcon: {
|
|
32948
|
+
width: ICON_BUTTON_SIZE2
|
|
32949
|
+
},
|
|
32740
32950
|
wrapperOpen: {
|
|
32741
|
-
zIndex:
|
|
32951
|
+
zIndex: 100
|
|
32952
|
+
},
|
|
32953
|
+
wrapperOpenIcon: {
|
|
32954
|
+
zIndex: 200
|
|
32742
32955
|
},
|
|
32743
32956
|
disabled: {
|
|
32744
32957
|
opacity: 0.6
|
|
@@ -32753,6 +32966,17 @@ var styles18 = StyleSheet.create({
|
|
|
32753
32966
|
borderRadius: 12,
|
|
32754
32967
|
backgroundColor: "transparent"
|
|
32755
32968
|
},
|
|
32969
|
+
triggerIcon: {
|
|
32970
|
+
width: ICON_BUTTON_SIZE2,
|
|
32971
|
+
height: ICON_BUTTON_SIZE2,
|
|
32972
|
+
padding: 8,
|
|
32973
|
+
alignItems: "center",
|
|
32974
|
+
justifyContent: "center",
|
|
32975
|
+
borderRadius: 5,
|
|
32976
|
+
backgroundColor: colors.grey800,
|
|
32977
|
+
borderWidth: 1,
|
|
32978
|
+
borderColor: colors.grey700
|
|
32979
|
+
},
|
|
32756
32980
|
triggerActive: {
|
|
32757
32981
|
backgroundColor: colors.whiteAlpha6
|
|
32758
32982
|
},
|
|
@@ -32764,8 +32988,8 @@ var styles18 = StyleSheet.create({
|
|
|
32764
32988
|
color: colors.white
|
|
32765
32989
|
},
|
|
32766
32990
|
chevron: {
|
|
32767
|
-
width:
|
|
32768
|
-
height:
|
|
32991
|
+
width: ICON_SIZE9,
|
|
32992
|
+
height: ICON_SIZE9,
|
|
32769
32993
|
flexShrink: 0,
|
|
32770
32994
|
alignItems: "center",
|
|
32771
32995
|
justifyContent: "center"
|
|
@@ -32775,22 +32999,42 @@ var styles18 = StyleSheet.create({
|
|
|
32775
32999
|
},
|
|
32776
33000
|
menu: {
|
|
32777
33001
|
position: "absolute",
|
|
33002
|
+
padding: 8,
|
|
33003
|
+
borderRadius: 12,
|
|
33004
|
+
overflow: "hidden"
|
|
33005
|
+
},
|
|
33006
|
+
menuDefault: {
|
|
32778
33007
|
top: CONTROL_HEIGHT + 8,
|
|
32779
33008
|
left: 0,
|
|
32780
33009
|
width: CONTROL_WIDTH,
|
|
32781
|
-
padding: 8,
|
|
32782
33010
|
gap: 8,
|
|
32783
|
-
|
|
32784
|
-
|
|
32785
|
-
|
|
33011
|
+
backgroundColor: colors.whiteAlpha6
|
|
33012
|
+
},
|
|
33013
|
+
menuIcon: {
|
|
33014
|
+
top: ICON_MENU_TOP,
|
|
33015
|
+
left: (ICON_BUTTON_SIZE2 - ICON_MENU_WIDTH) / 2,
|
|
33016
|
+
right: "auto",
|
|
33017
|
+
width: ICON_MENU_WIDTH,
|
|
33018
|
+
height: ICON_MENU_HEIGHT,
|
|
33019
|
+
gap: 4,
|
|
33020
|
+
opacity: 1,
|
|
33021
|
+
zIndex: 200,
|
|
33022
|
+
backgroundColor: colors.grey800,
|
|
33023
|
+
borderWidth: 1,
|
|
33024
|
+
borderColor: colors.grey700
|
|
32786
33025
|
},
|
|
32787
33026
|
item: {
|
|
32788
|
-
height:
|
|
33027
|
+
height: ITEM_HEIGHT,
|
|
32789
33028
|
alignItems: "center",
|
|
32790
33029
|
justifyContent: "center",
|
|
32791
33030
|
paddingVertical: 8,
|
|
32792
33031
|
paddingHorizontal: 12,
|
|
32793
|
-
borderRadius: 8
|
|
33032
|
+
borderRadius: 8,
|
|
33033
|
+
gap: 8
|
|
33034
|
+
},
|
|
33035
|
+
itemIcon: {
|
|
33036
|
+
width: 51,
|
|
33037
|
+
alignSelf: "stretch"
|
|
32794
33038
|
},
|
|
32795
33039
|
itemHovered: {
|
|
32796
33040
|
backgroundColor: colors.whiteAlpha6
|
|
@@ -32798,6 +33042,9 @@ var styles18 = StyleSheet.create({
|
|
|
32798
33042
|
itemSelected: {
|
|
32799
33043
|
backgroundColor: colors.whiteAlpha6
|
|
32800
33044
|
},
|
|
33045
|
+
itemSelectedIcon: {
|
|
33046
|
+
backgroundColor: ACTIVE_ITEM_BACKGROUND
|
|
33047
|
+
},
|
|
32801
33048
|
itemLabel: {
|
|
32802
33049
|
...languageSwitcherTypography,
|
|
32803
33050
|
...Platform.select({ web: { fontFamily: `${fonts.sans}, sans-serif` } }),
|
|
@@ -32805,14 +33052,17 @@ var styles18 = StyleSheet.create({
|
|
|
32805
33052
|
},
|
|
32806
33053
|
itemLabelSelected: {
|
|
32807
33054
|
color: colors.primary
|
|
33055
|
+
},
|
|
33056
|
+
itemLabelSelectedIcon: {
|
|
33057
|
+
color: colors.primary
|
|
32808
33058
|
}
|
|
32809
33059
|
});
|
|
32810
|
-
var
|
|
33060
|
+
var ICON_SIZE10 = 25.63181;
|
|
32811
33061
|
var StatCard = forwardRef(function StatCard2({
|
|
32812
33062
|
label,
|
|
32813
33063
|
icon: Icon2,
|
|
32814
33064
|
iconProps,
|
|
32815
|
-
iconSize =
|
|
33065
|
+
iconSize = ICON_SIZE10,
|
|
32816
33066
|
style,
|
|
32817
33067
|
className,
|
|
32818
33068
|
accessibilityLabel,
|
|
@@ -32827,17 +33077,17 @@ var StatCard = forwardRef(function StatCard2({
|
|
|
32827
33077
|
{
|
|
32828
33078
|
...rest,
|
|
32829
33079
|
ref: setContainerRef,
|
|
32830
|
-
style: [
|
|
33080
|
+
style: [styles21.base, style],
|
|
32831
33081
|
accessibilityRole: "text",
|
|
32832
33082
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
32833
33083
|
children: [
|
|
32834
33084
|
/* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }),
|
|
32835
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
33085
|
+
/* @__PURE__ */ jsx(Text, { style: styles21.label, children: label })
|
|
32836
33086
|
]
|
|
32837
33087
|
}
|
|
32838
33088
|
);
|
|
32839
33089
|
});
|
|
32840
|
-
var
|
|
33090
|
+
var styles21 = StyleSheet.create({
|
|
32841
33091
|
base: {
|
|
32842
33092
|
width: 204.5,
|
|
32843
33093
|
minHeight: 114,
|
|
@@ -32949,7 +33199,7 @@ var Button = forwardRef(
|
|
|
32949
33199
|
useApplyWebClassName(textRef, textClassName);
|
|
32950
33200
|
const iconNode = customIcon ?? /* @__PURE__ */ jsx(ArrowRightIcon, { size: metrics.iconSize, color: preset.iconColor });
|
|
32951
33201
|
const containerStyle = [
|
|
32952
|
-
|
|
33202
|
+
styles22.base,
|
|
32953
33203
|
{
|
|
32954
33204
|
minHeight: metrics.minHeight,
|
|
32955
33205
|
height: variant === "danger" ? 33 : void 0,
|
|
@@ -32961,16 +33211,16 @@ var Button = forwardRef(
|
|
|
32961
33211
|
paddingRight: hasIcon ? metrics.paddingRightWithIcon : metrics.paddingRight,
|
|
32962
33212
|
gap: hasIcon ? metrics.gap : 0
|
|
32963
33213
|
},
|
|
32964
|
-
hasIcon ?
|
|
32965
|
-
disabled &&
|
|
33214
|
+
hasIcon ? styles22.contentWithIcon : styles22.contentWithoutIcon,
|
|
33215
|
+
disabled && styles22.disabled,
|
|
32966
33216
|
style
|
|
32967
33217
|
];
|
|
32968
33218
|
const labelStyle = [
|
|
32969
|
-
|
|
33219
|
+
styles22.label,
|
|
32970
33220
|
metrics.text,
|
|
32971
33221
|
{ color: preset.textColor },
|
|
32972
|
-
Platform.OS === "android" ?
|
|
32973
|
-
!hasIcon &&
|
|
33222
|
+
Platform.OS === "android" ? styles22.labelAndroid : null,
|
|
33223
|
+
!hasIcon && styles22.labelCentered,
|
|
32974
33224
|
textStyle
|
|
32975
33225
|
];
|
|
32976
33226
|
return /* @__PURE__ */ jsxs(
|
|
@@ -32991,7 +33241,7 @@ var Button = forwardRef(
|
|
|
32991
33241
|
View,
|
|
32992
33242
|
{
|
|
32993
33243
|
style: [
|
|
32994
|
-
|
|
33244
|
+
styles22.iconContainer,
|
|
32995
33245
|
{
|
|
32996
33246
|
width: metrics.iconContainerSize,
|
|
32997
33247
|
height: metrics.iconContainerSize,
|
|
@@ -33007,7 +33257,7 @@ var Button = forwardRef(
|
|
|
33007
33257
|
);
|
|
33008
33258
|
}
|
|
33009
33259
|
);
|
|
33010
|
-
var
|
|
33260
|
+
var styles22 = StyleSheet.create({
|
|
33011
33261
|
base: {
|
|
33012
33262
|
flexDirection: "row",
|
|
33013
33263
|
alignItems: "center",
|
|
@@ -33091,13 +33341,13 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
33091
33341
|
accessibilityRole: "checkbox",
|
|
33092
33342
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
33093
33343
|
accessibilityState: { checked: isActive, disabled },
|
|
33094
|
-
style: [
|
|
33344
|
+
style: [styles23.root, disabled && styles23.disabled, style],
|
|
33095
33345
|
children: [
|
|
33096
33346
|
/* @__PURE__ */ jsx(
|
|
33097
33347
|
View,
|
|
33098
33348
|
{
|
|
33099
33349
|
style: [
|
|
33100
|
-
|
|
33350
|
+
styles23.box,
|
|
33101
33351
|
{
|
|
33102
33352
|
backgroundColor: chrome.backgroundColor,
|
|
33103
33353
|
borderColor: chrome.borderColor
|
|
@@ -33106,12 +33356,12 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
33106
33356
|
children: isActive ? /* @__PURE__ */ jsx(CheckIcon, { size: CHECK_SIZE, color: colors.primary, strokeWidth: CHECK_STROKE }) : null
|
|
33107
33357
|
}
|
|
33108
33358
|
),
|
|
33109
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
33359
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles23.label, labelStyle], children: labelContent }) : labelContent : null
|
|
33110
33360
|
]
|
|
33111
33361
|
}
|
|
33112
33362
|
);
|
|
33113
33363
|
});
|
|
33114
|
-
var
|
|
33364
|
+
var styles23 = StyleSheet.create({
|
|
33115
33365
|
root: {
|
|
33116
33366
|
flexDirection: "row",
|
|
33117
33367
|
alignItems: "center",
|
|
@@ -33225,26 +33475,34 @@ var DEFAULT_WEEKDAY_LABELS = ["\u0535\u0550", "\u0535\u0554", "\u0549\u0550", "\
|
|
|
33225
33475
|
var EMPTY_RANGE = { start: null, end: null };
|
|
33226
33476
|
var DEFAULT_WIDTH = 320;
|
|
33227
33477
|
var DEFAULT_MENU_HEIGHT = 388;
|
|
33478
|
+
var MENU_CONTENT_WIDTH = 296;
|
|
33228
33479
|
var RANGE_TRIGGER_WIDTH = 382;
|
|
33229
33480
|
var TRIGGER_HEIGHT = 44;
|
|
33230
33481
|
var TRIGGER_RADIUS = 60;
|
|
33231
33482
|
var MENU_RADIUS2 = 20;
|
|
33232
|
-
var
|
|
33483
|
+
var MENU_PADDING = 12;
|
|
33484
|
+
var ICON_SIZE11 = 20;
|
|
33233
33485
|
var NAV_ICON_SIZE = 20;
|
|
33486
|
+
var HEADER_HEIGHT3 = 36;
|
|
33487
|
+
var WEEKDAY_ROW_HEIGHT = 44;
|
|
33488
|
+
var WEEKDAY_ROW_GAP = 8;
|
|
33489
|
+
var WEEK_ROW_GAP = 16;
|
|
33490
|
+
var DAY_CELL_WIDTH = 42.28571701049805;
|
|
33234
33491
|
var DAY_CELL_HEIGHT = 44;
|
|
33235
|
-
var
|
|
33492
|
+
var DAY_CELL_RADIUS = 67;
|
|
33493
|
+
var DAY_CELL_PADDING = 12;
|
|
33236
33494
|
function RangeTriggerField({
|
|
33237
33495
|
label,
|
|
33238
33496
|
value,
|
|
33239
33497
|
time
|
|
33240
33498
|
}) {
|
|
33241
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
33242
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
33243
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
33244
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
33245
|
-
time ? /* @__PURE__ */ jsxs(View, { style:
|
|
33499
|
+
return /* @__PURE__ */ jsxs(View, { style: styles24.rangeField, children: [
|
|
33500
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles24.rangeLabel, children: label }),
|
|
33501
|
+
/* @__PURE__ */ jsxs(View, { style: styles24.rangeValueRow, children: [
|
|
33502
|
+
/* @__PURE__ */ jsx(Text, { style: styles24.rangeDate, children: value }),
|
|
33503
|
+
time ? /* @__PURE__ */ jsxs(View, { style: styles24.rangeTimeWrap, children: [
|
|
33246
33504
|
/* @__PURE__ */ jsx(ClockFilledIcon, { color: colors.lightGrey, size: 16 }),
|
|
33247
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
33505
|
+
/* @__PURE__ */ jsx(Text, { style: styles24.rangeTime, children: time })
|
|
33248
33506
|
] }) : null
|
|
33249
33507
|
] })
|
|
33250
33508
|
] });
|
|
@@ -33434,15 +33692,15 @@ var DatePicker = forwardRef(
|
|
|
33434
33692
|
...rest,
|
|
33435
33693
|
ref: setRootRef,
|
|
33436
33694
|
style: [
|
|
33437
|
-
|
|
33438
|
-
usesRangeTrigger &&
|
|
33439
|
-
hideTrigger &&
|
|
33440
|
-
isOpen &&
|
|
33441
|
-
disabled &&
|
|
33695
|
+
styles24.root,
|
|
33696
|
+
usesRangeTrigger && styles24.rangeRoot,
|
|
33697
|
+
hideTrigger && styles24.rootHideTrigger,
|
|
33698
|
+
isOpen && styles24.rootOpen,
|
|
33699
|
+
disabled && styles24.disabled,
|
|
33442
33700
|
style
|
|
33443
33701
|
],
|
|
33444
33702
|
accessibilityState: { disabled, expanded: isOpen },
|
|
33445
|
-
children: /* @__PURE__ */ jsxs(View, { style: [
|
|
33703
|
+
children: /* @__PURE__ */ jsxs(View, { style: [styles24.triggerWrap, isOpen && styles24.triggerWrapOpen], children: [
|
|
33446
33704
|
hideTrigger ? null : /* @__PURE__ */ jsx(
|
|
33447
33705
|
Pressable,
|
|
33448
33706
|
{
|
|
@@ -33453,9 +33711,9 @@ var DatePicker = forwardRef(
|
|
|
33453
33711
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
33454
33712
|
accessibilityState: { disabled, expanded: isOpen },
|
|
33455
33713
|
style: [
|
|
33456
|
-
|
|
33457
|
-
usesRangeTrigger &&
|
|
33458
|
-
usesRangeTrigger && (usesVerticalRangeTrigger ?
|
|
33714
|
+
styles24.trigger,
|
|
33715
|
+
usesRangeTrigger && styles24.rangeTrigger,
|
|
33716
|
+
usesRangeTrigger && (usesVerticalRangeTrigger ? styles24.rangeTriggerVertical : styles24.rangeTriggerHorizontal),
|
|
33459
33717
|
{
|
|
33460
33718
|
borderColor: triggerBorderColor,
|
|
33461
33719
|
backgroundColor: usesRangeTrigger ? "transparent" : colors.grey700
|
|
@@ -33466,13 +33724,13 @@ var DatePicker = forwardRef(
|
|
|
33466
33724
|
/* @__PURE__ */ jsx(
|
|
33467
33725
|
View,
|
|
33468
33726
|
{
|
|
33469
|
-
style: usesVerticalRangeTrigger ?
|
|
33727
|
+
style: usesVerticalRangeTrigger ? styles24.rangeDividerVertical : styles24.rangeDividerHorizontal
|
|
33470
33728
|
}
|
|
33471
33729
|
),
|
|
33472
33730
|
/* @__PURE__ */ jsx(RangeTriggerField, { label: endLabel, time: endTime, value: endValue })
|
|
33473
33731
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
33474
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
33475
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
33732
|
+
/* @__PURE__ */ jsx(Text, { style: [styles24.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: triggerLabel }),
|
|
33733
|
+
/* @__PURE__ */ jsx(View, { style: styles24.iconSlot, children: /* @__PURE__ */ jsx(CalendarOutlineIcon, { size: ICON_SIZE11, color: colors.grey100 }) })
|
|
33476
33734
|
] })
|
|
33477
33735
|
}
|
|
33478
33736
|
),
|
|
@@ -33480,13 +33738,13 @@ var DatePicker = forwardRef(
|
|
|
33480
33738
|
View,
|
|
33481
33739
|
{
|
|
33482
33740
|
style: [
|
|
33483
|
-
|
|
33484
|
-
usesRangeTrigger &&
|
|
33485
|
-
hideTrigger ?
|
|
33741
|
+
styles24.menu,
|
|
33742
|
+
usesRangeTrigger && styles24.rangeMenu,
|
|
33743
|
+
hideTrigger ? styles24.menuInline : menuAlignEnd ? styles24.menuAlignEnd : styles24.menuAlignStart,
|
|
33486
33744
|
calendarStyle
|
|
33487
33745
|
],
|
|
33488
33746
|
children: [
|
|
33489
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
33747
|
+
/* @__PURE__ */ jsxs(View, { style: styles24.calendarHeader, children: [
|
|
33490
33748
|
/* @__PURE__ */ jsx(
|
|
33491
33749
|
Pressable,
|
|
33492
33750
|
{
|
|
@@ -33494,11 +33752,11 @@ var DatePicker = forwardRef(
|
|
|
33494
33752
|
hitSlop: 8,
|
|
33495
33753
|
accessibilityRole: "button",
|
|
33496
33754
|
accessibilityLabel: "Previous month",
|
|
33497
|
-
style:
|
|
33755
|
+
style: styles24.navButton,
|
|
33498
33756
|
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white })
|
|
33499
33757
|
}
|
|
33500
33758
|
),
|
|
33501
|
-
/* @__PURE__ */ jsxs(Text, { style:
|
|
33759
|
+
/* @__PURE__ */ jsxs(Text, { style: styles24.monthHeading, children: [
|
|
33502
33760
|
monthNames[visibleMonth.getMonth()],
|
|
33503
33761
|
" ",
|
|
33504
33762
|
visibleMonth.getFullYear()
|
|
@@ -33510,13 +33768,13 @@ var DatePicker = forwardRef(
|
|
|
33510
33768
|
hitSlop: 8,
|
|
33511
33769
|
accessibilityRole: "button",
|
|
33512
33770
|
accessibilityLabel: "Next month",
|
|
33513
|
-
style:
|
|
33514
|
-
children: /* @__PURE__ */ jsx(View, { style:
|
|
33771
|
+
style: styles24.navButton,
|
|
33772
|
+
children: /* @__PURE__ */ jsx(View, { style: styles24.navIconMirror, children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white }) })
|
|
33515
33773
|
}
|
|
33516
33774
|
)
|
|
33517
33775
|
] }),
|
|
33518
33776
|
/* @__PURE__ */ jsxs(View, { children: [
|
|
33519
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
33777
|
+
/* @__PURE__ */ jsx(View, { style: styles24.weekdayRow, children: weekdayLabels.map((weekdayLabel, index) => /* @__PURE__ */ jsx(View, { style: styles24.weekdayCell, children: /* @__PURE__ */ jsx(Text, { style: styles24.weekdayText, children: weekdayLabel }) }, `${weekdayLabel}-${index}`)) }),
|
|
33520
33778
|
weeks.map((week, weekIndex) => {
|
|
33521
33779
|
let rangeHighlightStyle = null;
|
|
33522
33780
|
if (isRange && rangeValue.start && rangeValue.end) {
|
|
@@ -33553,13 +33811,13 @@ var DatePicker = forwardRef(
|
|
|
33553
33811
|
return /* @__PURE__ */ jsxs(
|
|
33554
33812
|
View,
|
|
33555
33813
|
{
|
|
33556
|
-
style: [
|
|
33814
|
+
style: [styles24.weekRow, weekIndex > 0 && styles24.weekRowSpaced],
|
|
33557
33815
|
children: [
|
|
33558
33816
|
rangeHighlightStyle ? /* @__PURE__ */ jsx(
|
|
33559
33817
|
View,
|
|
33560
33818
|
{
|
|
33561
33819
|
pointerEvents: "none",
|
|
33562
|
-
style: [
|
|
33820
|
+
style: [styles24.rangeHighlight, rangeHighlightStyle]
|
|
33563
33821
|
}
|
|
33564
33822
|
) : null,
|
|
33565
33823
|
week.map((day, dayIndex) => {
|
|
@@ -33582,7 +33840,7 @@ var DatePicker = forwardRef(
|
|
|
33582
33840
|
onHoverOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
33583
33841
|
onPressIn: () => setHoveredDayKey(dayKey),
|
|
33584
33842
|
onPressOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
33585
|
-
style:
|
|
33843
|
+
style: styles24.dayCellWrap,
|
|
33586
33844
|
accessibilityRole: "button",
|
|
33587
33845
|
accessibilityLabel: formatValue(day),
|
|
33588
33846
|
accessibilityState: {
|
|
@@ -33594,14 +33852,14 @@ var DatePicker = forwardRef(
|
|
|
33594
33852
|
View,
|
|
33595
33853
|
{
|
|
33596
33854
|
style: [
|
|
33597
|
-
|
|
33598
|
-
isSelectedEndpoint &&
|
|
33599
|
-
isHovered &&
|
|
33855
|
+
styles24.dayCircle,
|
|
33856
|
+
isSelectedEndpoint && styles24.dayCircleSelected,
|
|
33857
|
+
isHovered && styles24.dayCircleHovered
|
|
33600
33858
|
],
|
|
33601
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
33859
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles24.dayText, { color: dayTextColor }], children: day.getDate() })
|
|
33602
33860
|
}
|
|
33603
33861
|
),
|
|
33604
|
-
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsx(View, { style:
|
|
33862
|
+
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsx(View, { style: styles24.todayDot }) : null
|
|
33605
33863
|
]
|
|
33606
33864
|
},
|
|
33607
33865
|
dayIndex
|
|
@@ -33621,7 +33879,7 @@ var DatePicker = forwardRef(
|
|
|
33621
33879
|
);
|
|
33622
33880
|
}
|
|
33623
33881
|
);
|
|
33624
|
-
var
|
|
33882
|
+
var styles24 = StyleSheet.create({
|
|
33625
33883
|
root: {
|
|
33626
33884
|
width: DEFAULT_WIDTH,
|
|
33627
33885
|
gap: 8,
|
|
@@ -33726,8 +33984,8 @@ var styles22 = StyleSheet.create({
|
|
|
33726
33984
|
backgroundColor: colors.grey500
|
|
33727
33985
|
},
|
|
33728
33986
|
iconSlot: {
|
|
33729
|
-
width:
|
|
33730
|
-
height:
|
|
33987
|
+
width: ICON_SIZE11,
|
|
33988
|
+
height: ICON_SIZE11,
|
|
33731
33989
|
alignItems: "center",
|
|
33732
33990
|
justifyContent: "center",
|
|
33733
33991
|
flexShrink: 0
|
|
@@ -33740,10 +33998,11 @@ var styles22 = StyleSheet.create({
|
|
|
33740
33998
|
marginTop: 8,
|
|
33741
33999
|
zIndex: 10,
|
|
33742
34000
|
borderRadius: MENU_RADIUS2,
|
|
33743
|
-
padding:
|
|
34001
|
+
padding: MENU_PADDING,
|
|
33744
34002
|
gap: 0,
|
|
33745
34003
|
opacity: 1,
|
|
33746
34004
|
backgroundColor: colors.grey700,
|
|
34005
|
+
overflow: "hidden",
|
|
33747
34006
|
...Platform.select({
|
|
33748
34007
|
web: {
|
|
33749
34008
|
boxShadow: `0 8px 24px ${colors.black}73`
|
|
@@ -33772,14 +34031,17 @@ var styles22 = StyleSheet.create({
|
|
|
33772
34031
|
width: RANGE_TRIGGER_WIDTH
|
|
33773
34032
|
},
|
|
33774
34033
|
calendarHeader: {
|
|
33775
|
-
height:
|
|
34034
|
+
height: HEADER_HEIGHT3,
|
|
34035
|
+
paddingTop: 8,
|
|
34036
|
+
paddingBottom: 8,
|
|
33776
34037
|
flexDirection: "row",
|
|
33777
34038
|
alignItems: "center",
|
|
33778
|
-
justifyContent: "space-between"
|
|
34039
|
+
justifyContent: "space-between",
|
|
34040
|
+
opacity: 1
|
|
33779
34041
|
},
|
|
33780
34042
|
navButton: {
|
|
33781
|
-
width:
|
|
33782
|
-
height:
|
|
34043
|
+
width: HEADER_HEIGHT3,
|
|
34044
|
+
height: HEADER_HEIGHT3,
|
|
33783
34045
|
alignItems: "center",
|
|
33784
34046
|
justifyContent: "center"
|
|
33785
34047
|
},
|
|
@@ -33792,7 +34054,21 @@ var styles22 = StyleSheet.create({
|
|
|
33792
34054
|
textAlign: "center"
|
|
33793
34055
|
},
|
|
33794
34056
|
weekdayRow: {
|
|
33795
|
-
|
|
34057
|
+
width: MENU_CONTENT_WIDTH,
|
|
34058
|
+
height: WEEKDAY_ROW_HEIGHT,
|
|
34059
|
+
marginTop: WEEKDAY_ROW_GAP,
|
|
34060
|
+
flexDirection: "row",
|
|
34061
|
+
alignItems: "center",
|
|
34062
|
+
opacity: 1
|
|
34063
|
+
},
|
|
34064
|
+
weekdayCell: {
|
|
34065
|
+
width: DAY_CELL_WIDTH,
|
|
34066
|
+
height: WEEKDAY_ROW_HEIGHT,
|
|
34067
|
+
flexGrow: 1,
|
|
34068
|
+
flexShrink: 1,
|
|
34069
|
+
flexBasis: 0,
|
|
34070
|
+
alignItems: "center",
|
|
34071
|
+
justifyContent: "center"
|
|
33796
34072
|
},
|
|
33797
34073
|
weekdayText: {
|
|
33798
34074
|
...datePickerTypography.weekday,
|
|
@@ -33801,29 +34077,36 @@ var styles22 = StyleSheet.create({
|
|
|
33801
34077
|
textTransform: "uppercase"
|
|
33802
34078
|
},
|
|
33803
34079
|
weekRow: {
|
|
34080
|
+
width: MENU_CONTENT_WIDTH,
|
|
33804
34081
|
flexDirection: "row",
|
|
33805
34082
|
position: "relative"
|
|
33806
34083
|
},
|
|
33807
34084
|
weekRowSpaced: {
|
|
33808
|
-
marginTop:
|
|
34085
|
+
marginTop: WEEK_ROW_GAP
|
|
33809
34086
|
},
|
|
33810
34087
|
rangeHighlight: {
|
|
33811
34088
|
position: "absolute",
|
|
33812
|
-
top:
|
|
33813
|
-
bottom:
|
|
33814
|
-
borderRadius:
|
|
34089
|
+
top: 0,
|
|
34090
|
+
bottom: 0,
|
|
34091
|
+
borderRadius: DAY_CELL_RADIUS,
|
|
33815
34092
|
backgroundColor: colors.primaryHover
|
|
33816
34093
|
},
|
|
33817
34094
|
dayCellWrap: {
|
|
33818
|
-
|
|
34095
|
+
width: DAY_CELL_WIDTH,
|
|
33819
34096
|
height: DAY_CELL_HEIGHT,
|
|
34097
|
+
flexGrow: 1,
|
|
34098
|
+
flexShrink: 1,
|
|
34099
|
+
flexBasis: 0,
|
|
33820
34100
|
alignItems: "center",
|
|
33821
|
-
justifyContent: "center"
|
|
34101
|
+
justifyContent: "center",
|
|
34102
|
+
opacity: 1
|
|
33822
34103
|
},
|
|
33823
34104
|
dayCircle: {
|
|
33824
|
-
width:
|
|
33825
|
-
height:
|
|
33826
|
-
borderRadius:
|
|
34105
|
+
width: "100%",
|
|
34106
|
+
height: "100%",
|
|
34107
|
+
borderRadius: DAY_CELL_RADIUS,
|
|
34108
|
+
padding: DAY_CELL_PADDING,
|
|
34109
|
+
gap: 10,
|
|
33827
34110
|
alignItems: "center",
|
|
33828
34111
|
justifyContent: "center"
|
|
33829
34112
|
},
|
|
@@ -33847,7 +34130,7 @@ var styles22 = StyleSheet.create({
|
|
|
33847
34130
|
});
|
|
33848
34131
|
var SIZE = 48;
|
|
33849
34132
|
var PADDING = 12;
|
|
33850
|
-
var
|
|
34133
|
+
var ICON_SIZE12 = 24;
|
|
33851
34134
|
var RADIUS = 64;
|
|
33852
34135
|
var FloatingActionButton = forwardRef(function FloatingActionButton2({ onPress, disabled = false, icon, accessibilityLabel = "Add", style, className, ...rest }, forwardedRef) {
|
|
33853
34136
|
const containerRef = useRef(null);
|
|
@@ -33865,12 +34148,12 @@ var FloatingActionButton = forwardRef(function FloatingActionButton2({ onPress,
|
|
|
33865
34148
|
accessibilityRole: "button",
|
|
33866
34149
|
accessibilityLabel,
|
|
33867
34150
|
accessibilityState: { disabled },
|
|
33868
|
-
style: [
|
|
33869
|
-
children: icon ?? /* @__PURE__ */ jsx(PlusIcon, { color: colors.white, size:
|
|
34151
|
+
style: [styles25.base, disabled && styles25.disabled, style],
|
|
34152
|
+
children: icon ?? /* @__PURE__ */ jsx(PlusIcon, { color: colors.white, size: ICON_SIZE12, strokeWidth: 2 })
|
|
33870
34153
|
}
|
|
33871
34154
|
);
|
|
33872
34155
|
});
|
|
33873
|
-
var
|
|
34156
|
+
var styles25 = StyleSheet.create({
|
|
33874
34157
|
base: {
|
|
33875
34158
|
width: SIZE,
|
|
33876
34159
|
height: SIZE,
|
|
@@ -33945,7 +34228,7 @@ var Modal = forwardRef(function Modal2({
|
|
|
33945
34228
|
View,
|
|
33946
34229
|
{
|
|
33947
34230
|
ref: setContentRef,
|
|
33948
|
-
style: [
|
|
34231
|
+
style: [styles26.content, contentStyle],
|
|
33949
34232
|
onStartShouldSetResponder: () => true,
|
|
33950
34233
|
children
|
|
33951
34234
|
}
|
|
@@ -33977,7 +34260,7 @@ var Modal = forwardRef(function Modal2({
|
|
|
33977
34260
|
animationType: "fade",
|
|
33978
34261
|
onRequestClose: onClose,
|
|
33979
34262
|
statusBarTranslucent: true,
|
|
33980
|
-
children: /* @__PURE__ */ jsxs(View, { style:
|
|
34263
|
+
children: /* @__PURE__ */ jsxs(View, { style: styles26.root, accessibilityViewIsModal: true, children: [
|
|
33981
34264
|
/* @__PURE__ */ jsx(
|
|
33982
34265
|
Pressable,
|
|
33983
34266
|
{
|
|
@@ -33985,7 +34268,7 @@ var Modal = forwardRef(function Modal2({
|
|
|
33985
34268
|
accessibilityLabel: backdropAccessibilityLabel,
|
|
33986
34269
|
disabled: !closeOnBackdropPress,
|
|
33987
34270
|
onPress: closeOnBackdropPress ? onClose : void 0,
|
|
33988
|
-
style:
|
|
34271
|
+
style: styles26.backdrop
|
|
33989
34272
|
}
|
|
33990
34273
|
),
|
|
33991
34274
|
content
|
|
@@ -33993,7 +34276,7 @@ var Modal = forwardRef(function Modal2({
|
|
|
33993
34276
|
}
|
|
33994
34277
|
);
|
|
33995
34278
|
});
|
|
33996
|
-
var
|
|
34279
|
+
var styles26 = StyleSheet.create({
|
|
33997
34280
|
root: {
|
|
33998
34281
|
flex: 1,
|
|
33999
34282
|
alignItems: "center",
|
|
@@ -34134,6 +34417,8 @@ var Input = forwardRef(function Input2({
|
|
|
34134
34417
|
const [focused, setFocused] = useState(false);
|
|
34135
34418
|
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue ?? "");
|
|
34136
34419
|
const metrics = sizeConfig2[size];
|
|
34420
|
+
const reactId = useId();
|
|
34421
|
+
const inputDomId = `eh-input-${reactId.replace(/:/g, "")}`;
|
|
34137
34422
|
const isControlled = typeof value === "string";
|
|
34138
34423
|
const currentValue = isControlled ? value : uncontrolledValue;
|
|
34139
34424
|
const hasValue = currentValue.length > 0;
|
|
@@ -34150,35 +34435,45 @@ var Input = forwardRef(function Input2({
|
|
|
34150
34435
|
size: metrics.iconSize,
|
|
34151
34436
|
color: chrome.rightIconColor
|
|
34152
34437
|
});
|
|
34438
|
+
const focusInput = () => {
|
|
34439
|
+
if (disabled) return;
|
|
34440
|
+
inputRef.current?.focus();
|
|
34441
|
+
};
|
|
34153
34442
|
useApplyWebClassName(rootRef, className);
|
|
34154
34443
|
useApplyWebClassName(inputRef, inputClassName);
|
|
34155
|
-
|
|
34156
|
-
|
|
34444
|
+
const fieldChromeStyle = [
|
|
34445
|
+
styles27.field,
|
|
34446
|
+
{
|
|
34447
|
+
height: metrics.height,
|
|
34448
|
+
borderRadius: metrics.borderRadius,
|
|
34449
|
+
paddingTop: metrics.paddingVertical,
|
|
34450
|
+
paddingBottom: metrics.paddingVertical,
|
|
34451
|
+
paddingLeft: metrics.paddingHorizontal,
|
|
34452
|
+
paddingRight: metrics.paddingHorizontal,
|
|
34453
|
+
gap: metrics.gap,
|
|
34454
|
+
borderColor: chrome.borderColor,
|
|
34455
|
+
backgroundColor: chrome.backgroundColor
|
|
34456
|
+
},
|
|
34457
|
+
Platform.OS === "web" ? styles27.fieldWeb : null,
|
|
34458
|
+
fieldStyle
|
|
34459
|
+
];
|
|
34460
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles27.root, disabled && styles27.disabled, style], children: [
|
|
34461
|
+
showLabel && label ? /* @__PURE__ */ jsx(Pressable, { disabled, onPress: focusInput, style: styles27.labelPressable, children: /* @__PURE__ */ jsx(Text, { style: [styles27.label, { color: chrome.labelColor }], children: label }) }) : null,
|
|
34157
34462
|
/* @__PURE__ */ jsxs(
|
|
34158
|
-
|
|
34463
|
+
Pressable,
|
|
34159
34464
|
{
|
|
34160
|
-
|
|
34161
|
-
|
|
34162
|
-
|
|
34163
|
-
|
|
34164
|
-
borderRadius: metrics.borderRadius,
|
|
34165
|
-
paddingTop: metrics.paddingVertical,
|
|
34166
|
-
paddingBottom: metrics.paddingVertical,
|
|
34167
|
-
paddingLeft: metrics.paddingHorizontal,
|
|
34168
|
-
paddingRight: metrics.paddingHorizontal,
|
|
34169
|
-
gap: metrics.gap,
|
|
34170
|
-
borderColor: chrome.borderColor,
|
|
34171
|
-
backgroundColor: chrome.backgroundColor
|
|
34172
|
-
},
|
|
34173
|
-
fieldStyle
|
|
34174
|
-
],
|
|
34465
|
+
accessibilityRole: "none",
|
|
34466
|
+
disabled,
|
|
34467
|
+
onPress: focusInput,
|
|
34468
|
+
style: fieldChromeStyle,
|
|
34175
34469
|
children: [
|
|
34176
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [
|
|
34470
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [styles27.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: leftIconNode }) : null,
|
|
34177
34471
|
/* @__PURE__ */ jsx(
|
|
34178
34472
|
TextInput,
|
|
34179
34473
|
{
|
|
34180
34474
|
ref: setInputRef,
|
|
34181
34475
|
...textInputProps,
|
|
34476
|
+
nativeID: inputDomId,
|
|
34182
34477
|
value: isControlled ? value : void 0,
|
|
34183
34478
|
defaultValue: isControlled ? void 0 : defaultValue,
|
|
34184
34479
|
editable: !disabled,
|
|
@@ -34197,11 +34492,11 @@ var Input = forwardRef(function Input2({
|
|
|
34197
34492
|
onBlur?.(event);
|
|
34198
34493
|
},
|
|
34199
34494
|
style: [
|
|
34200
|
-
|
|
34495
|
+
styles27.input,
|
|
34201
34496
|
metrics.text,
|
|
34202
34497
|
{ color: chrome.textColor },
|
|
34203
|
-
Platform.OS === "web" ?
|
|
34204
|
-
Platform.OS === "android" ?
|
|
34498
|
+
Platform.OS === "web" ? styles27.inputWeb : null,
|
|
34499
|
+
Platform.OS === "android" ? styles27.inputAndroid : null,
|
|
34205
34500
|
inputStyle
|
|
34206
34501
|
],
|
|
34207
34502
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -34213,20 +34508,29 @@ var Input = forwardRef(function Input2({
|
|
|
34213
34508
|
{
|
|
34214
34509
|
onPress: onRightIconPress,
|
|
34215
34510
|
disabled,
|
|
34216
|
-
style: [
|
|
34511
|
+
style: [styles27.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }],
|
|
34217
34512
|
accessibilityRole: "button",
|
|
34218
34513
|
accessibilityLabel: rightIconAccessibilityLabel,
|
|
34219
34514
|
hitSlop: 8,
|
|
34220
34515
|
children: rightIconNode
|
|
34221
34516
|
}
|
|
34222
|
-
) : /* @__PURE__ */ jsx(
|
|
34517
|
+
) : /* @__PURE__ */ jsx(
|
|
34518
|
+
Pressable,
|
|
34519
|
+
{
|
|
34520
|
+
accessibilityRole: "none",
|
|
34521
|
+
disabled,
|
|
34522
|
+
onPress: focusInput,
|
|
34523
|
+
style: [styles27.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }],
|
|
34524
|
+
children: rightIconNode
|
|
34525
|
+
}
|
|
34526
|
+
) : null
|
|
34223
34527
|
]
|
|
34224
34528
|
}
|
|
34225
34529
|
),
|
|
34226
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
34530
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles27.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
34227
34531
|
] });
|
|
34228
34532
|
});
|
|
34229
|
-
var
|
|
34533
|
+
var styles27 = StyleSheet.create({
|
|
34230
34534
|
root: {
|
|
34231
34535
|
width: DEFAULT_WIDTH2,
|
|
34232
34536
|
gap: 8,
|
|
@@ -34235,6 +34539,9 @@ var styles25 = StyleSheet.create({
|
|
|
34235
34539
|
disabled: {
|
|
34236
34540
|
opacity: 0.6
|
|
34237
34541
|
},
|
|
34542
|
+
labelPressable: {
|
|
34543
|
+
alignSelf: "flex-start"
|
|
34544
|
+
},
|
|
34238
34545
|
label: {
|
|
34239
34546
|
...inputTypography.label
|
|
34240
34547
|
},
|
|
@@ -34243,13 +34550,21 @@ var styles25 = StyleSheet.create({
|
|
|
34243
34550
|
flexDirection: "row",
|
|
34244
34551
|
alignItems: "center"
|
|
34245
34552
|
},
|
|
34553
|
+
fieldWeb: {
|
|
34554
|
+
// Web-only cursor for the clickable field chrome.
|
|
34555
|
+
cursor: "text"
|
|
34556
|
+
},
|
|
34246
34557
|
input: {
|
|
34247
34558
|
flex: 1,
|
|
34559
|
+
alignSelf: "stretch",
|
|
34248
34560
|
paddingVertical: 0,
|
|
34249
34561
|
margin: 0
|
|
34250
34562
|
},
|
|
34251
34563
|
inputWeb: {
|
|
34252
|
-
outlineStyle: "none"
|
|
34564
|
+
outlineStyle: "none",
|
|
34565
|
+
height: "100%",
|
|
34566
|
+
minWidth: 0,
|
|
34567
|
+
cursor: "text"
|
|
34253
34568
|
},
|
|
34254
34569
|
inputAndroid: {
|
|
34255
34570
|
includeFontPadding: false
|
|
@@ -34382,8 +34697,8 @@ var VerificationCodeInput = forwardRef(function VerificationCodeInput2({
|
|
|
34382
34697
|
const cellGap = mobile ? MOBILE_GAP : DESKTOP_GAP;
|
|
34383
34698
|
const rowWidth = cellWidth * safeLength + cellGap * Math.max(0, safeLength - 1);
|
|
34384
34699
|
const showErrorMessage = Boolean(error && errorMessage);
|
|
34385
|
-
return /* @__PURE__ */ jsxs(View, { ...viewProps, ref: rootRef, style: [
|
|
34386
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
34700
|
+
return /* @__PURE__ */ jsxs(View, { ...viewProps, ref: rootRef, style: [styles28.wrapper, disabled && styles28.disabled, style], children: [
|
|
34701
|
+
/* @__PURE__ */ jsx(View, { style: [styles28.row, { width: rowWidth, maxWidth: "100%", gap: cellGap }], children: Array.from({ length: safeLength }, (_, index) => {
|
|
34387
34702
|
const active = focusedIndex === index;
|
|
34388
34703
|
const borderColor = error ? colors.red : active ? colors.primary : colors.grey600;
|
|
34389
34704
|
return /* @__PURE__ */ jsx(
|
|
@@ -34408,15 +34723,15 @@ var VerificationCodeInput = forwardRef(function VerificationCodeInput2({
|
|
|
34408
34723
|
onSubmitEditing: () => onSubmit?.(currentCode),
|
|
34409
34724
|
selectTextOnFocus: true,
|
|
34410
34725
|
style: [
|
|
34411
|
-
|
|
34726
|
+
styles28.cell,
|
|
34412
34727
|
{
|
|
34413
34728
|
width: cellWidth,
|
|
34414
34729
|
height: cellHeight,
|
|
34415
34730
|
borderColor,
|
|
34416
34731
|
color: error ? colors.red : colors.white
|
|
34417
34732
|
},
|
|
34418
|
-
Platform.OS === "web" ?
|
|
34419
|
-
Platform.OS === "android" ?
|
|
34733
|
+
Platform.OS === "web" ? styles28.cellWeb : null,
|
|
34734
|
+
Platform.OS === "android" ? styles28.cellAndroid : null,
|
|
34420
34735
|
inputStyle
|
|
34421
34736
|
],
|
|
34422
34737
|
value: currentCode[index] ?? ""
|
|
@@ -34424,10 +34739,10 @@ var VerificationCodeInput = forwardRef(function VerificationCodeInput2({
|
|
|
34424
34739
|
index
|
|
34425
34740
|
);
|
|
34426
34741
|
}) }),
|
|
34427
|
-
showErrorMessage ? /* @__PURE__ */ jsx(Text, { accessibilityLiveRegion: "assertive", style:
|
|
34742
|
+
showErrorMessage ? /* @__PURE__ */ jsx(Text, { accessibilityLiveRegion: "assertive", style: styles28.errorMessage, children: errorMessage }) : null
|
|
34428
34743
|
] });
|
|
34429
34744
|
});
|
|
34430
|
-
var
|
|
34745
|
+
var styles28 = StyleSheet.create({
|
|
34431
34746
|
wrapper: {
|
|
34432
34747
|
minWidth: 0,
|
|
34433
34748
|
alignSelf: "center",
|
|
@@ -34478,7 +34793,7 @@ var TRIGGER_RADIUS2 = 60;
|
|
|
34478
34793
|
var MENU_RADIUS3 = 24;
|
|
34479
34794
|
var MENU_MAX_LIST_HEIGHT = 248;
|
|
34480
34795
|
var ITEM_RADIUS2 = 12;
|
|
34481
|
-
var
|
|
34796
|
+
var ICON_SIZE13 = 20;
|
|
34482
34797
|
var CHIP_GAP = 6;
|
|
34483
34798
|
var FALLBACK_ELLIPSIS_WIDTH = 20;
|
|
34484
34799
|
function itemBackground(state) {
|
|
@@ -34551,25 +34866,25 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
34551
34866
|
const next = Math.ceil(event.nativeEvent.layout.width);
|
|
34552
34867
|
setEllipsisWidth((current) => current === next ? current : next);
|
|
34553
34868
|
};
|
|
34554
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
34555
|
-
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style:
|
|
34869
|
+
return /* @__PURE__ */ jsxs(View, { style: styles29.multiValueRoot, children: [
|
|
34870
|
+
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style: styles29.measureRow, children: [
|
|
34556
34871
|
options.map((option) => /* @__PURE__ */ jsxs(
|
|
34557
34872
|
View,
|
|
34558
34873
|
{
|
|
34559
|
-
style:
|
|
34874
|
+
style: styles29.chip,
|
|
34560
34875
|
onLayout: (event) => handleChipLayout(option.value, event),
|
|
34561
34876
|
children: [
|
|
34562
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
34563
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
34877
|
+
/* @__PURE__ */ jsx(Text, { style: styles29.chipLabel, numberOfLines: 1, children: option.label }),
|
|
34878
|
+
/* @__PURE__ */ jsx(Text, { style: styles29.chipRemove, children: "\xD7" })
|
|
34564
34879
|
]
|
|
34565
34880
|
},
|
|
34566
34881
|
`measure-${option.value}`
|
|
34567
34882
|
)),
|
|
34568
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
34883
|
+
/* @__PURE__ */ jsx(View, { style: styles29.ellipsis, onLayout: handleEllipsisLayout, children: /* @__PURE__ */ jsx(Text, { style: styles29.ellipsisText, children: "..." }) })
|
|
34569
34884
|
] }),
|
|
34570
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
34571
|
-
visible.map((option) => /* @__PURE__ */ jsxs(View, { style:
|
|
34572
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
34885
|
+
/* @__PURE__ */ jsxs(View, { style: styles29.chipsRow, onLayout: handleContainerLayout, children: [
|
|
34886
|
+
visible.map((option) => /* @__PURE__ */ jsxs(View, { style: styles29.chip, children: [
|
|
34887
|
+
/* @__PURE__ */ jsx(Text, { style: styles29.chipLabel, numberOfLines: 1, children: option.label }),
|
|
34573
34888
|
/* @__PURE__ */ jsx(
|
|
34574
34889
|
Pressable,
|
|
34575
34890
|
{
|
|
@@ -34581,11 +34896,11 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
34581
34896
|
hitSlop: 6,
|
|
34582
34897
|
accessibilityRole: "button",
|
|
34583
34898
|
accessibilityLabel: `Remove ${option.label}`,
|
|
34584
|
-
children: /* @__PURE__ */ jsx(Text, { style:
|
|
34899
|
+
children: /* @__PURE__ */ jsx(Text, { style: styles29.chipRemove, children: "\xD7" })
|
|
34585
34900
|
}
|
|
34586
34901
|
)
|
|
34587
34902
|
] }, option.value)),
|
|
34588
|
-
hasOverflow ? /* @__PURE__ */ jsx(View, { style:
|
|
34903
|
+
hasOverflow ? /* @__PURE__ */ jsx(View, { style: styles29.ellipsis, children: /* @__PURE__ */ jsx(Text, { style: styles29.ellipsisText, children: "..." }) }) : null
|
|
34589
34904
|
] })
|
|
34590
34905
|
] });
|
|
34591
34906
|
}
|
|
@@ -34612,6 +34927,7 @@ var Select = forwardRef(
|
|
|
34612
34927
|
emptyText = "No results",
|
|
34613
34928
|
valueColor,
|
|
34614
34929
|
style,
|
|
34930
|
+
menuStyle,
|
|
34615
34931
|
className,
|
|
34616
34932
|
accessibilityLabel,
|
|
34617
34933
|
// Pulled out only to keep them off `rest` (which is spread onto the root View);
|
|
@@ -34639,6 +34955,8 @@ var Select = forwardRef(
|
|
|
34639
34955
|
const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
|
|
34640
34956
|
const [searchQuery, setSearchQuery] = useState("");
|
|
34641
34957
|
const [hoveredValue, setHoveredValue] = useState(null);
|
|
34958
|
+
const [menuAlignEnd, setMenuAlignEnd] = useState(false);
|
|
34959
|
+
const [menuPlaceAbove, setMenuPlaceAbove] = useState(false);
|
|
34642
34960
|
const selectedValues = useMemo(() => {
|
|
34643
34961
|
const current = isValueControlled ? valueProp : multiple ? uncontrolledMultiple : uncontrolledSingle;
|
|
34644
34962
|
return toArray(current);
|
|
@@ -34657,6 +34975,23 @@ var Select = forwardRef(
|
|
|
34657
34975
|
return options.filter((option) => option.label.toLowerCase().includes(query));
|
|
34658
34976
|
}, [isExternalSearch, options, searchQuery]);
|
|
34659
34977
|
useApplyWebClassName(rootRef, className);
|
|
34978
|
+
const resolvedMenuWidth = useMemo(() => {
|
|
34979
|
+
const flat = StyleSheet.flatten(menuStyle);
|
|
34980
|
+
const width = flat?.width;
|
|
34981
|
+
if (typeof width === "number") return width;
|
|
34982
|
+
const minWidth = flat?.minWidth;
|
|
34983
|
+
if (typeof minWidth === "number") return minWidth;
|
|
34984
|
+
return null;
|
|
34985
|
+
}, [menuStyle]);
|
|
34986
|
+
const estimatedMenuHeight = useMemo(() => {
|
|
34987
|
+
const searchBlock = showSearch ? 40 + 8 : 0;
|
|
34988
|
+
const optionCount = Math.max(filteredOptions.length, 1);
|
|
34989
|
+
const listHeight = Math.min(
|
|
34990
|
+
optionCount * 43 + Math.max(0, optionCount - 1) * 8,
|
|
34991
|
+
MENU_MAX_LIST_HEIGHT
|
|
34992
|
+
);
|
|
34993
|
+
return 24 + searchBlock + listHeight;
|
|
34994
|
+
}, [filteredOptions.length, showSearch]);
|
|
34660
34995
|
const setOpen = useCallback(
|
|
34661
34996
|
(next) => {
|
|
34662
34997
|
if (!isOpenControlled) setUncontrolledOpen(next);
|
|
@@ -34666,11 +35001,37 @@ var Select = forwardRef(
|
|
|
34666
35001
|
} else {
|
|
34667
35002
|
setSearchQuery("");
|
|
34668
35003
|
setHoveredValue(null);
|
|
35004
|
+
setMenuAlignEnd(false);
|
|
35005
|
+
setMenuPlaceAbove(false);
|
|
34669
35006
|
onSearchChange?.("");
|
|
34670
35007
|
}
|
|
34671
35008
|
},
|
|
34672
35009
|
[isOpenControlled, onOpenChange, onSearchChange, selectedValues]
|
|
34673
35010
|
);
|
|
35011
|
+
useLayoutEffect(() => {
|
|
35012
|
+
if (Platform.OS !== "web" || !isOpen) return;
|
|
35013
|
+
const updateMenuPlacement = () => {
|
|
35014
|
+
const trigger = triggerRef.current;
|
|
35015
|
+
const rect = trigger?.getBoundingClientRect?.();
|
|
35016
|
+
if (!rect) return;
|
|
35017
|
+
const viewportPadding = 8;
|
|
35018
|
+
const gap = 8;
|
|
35019
|
+
const menuWidth = Math.max(rect.width, resolvedMenuWidth ?? 0);
|
|
35020
|
+
const overflowsRight = rect.left + menuWidth > window.innerWidth - viewportPadding;
|
|
35021
|
+
setMenuAlignEnd(overflowsRight);
|
|
35022
|
+
const spaceBelow = window.innerHeight - viewportPadding - rect.bottom;
|
|
35023
|
+
const spaceAbove = rect.top - viewportPadding;
|
|
35024
|
+
const needsAbove = estimatedMenuHeight + gap > spaceBelow && spaceAbove > spaceBelow;
|
|
35025
|
+
setMenuPlaceAbove(needsAbove);
|
|
35026
|
+
};
|
|
35027
|
+
updateMenuPlacement();
|
|
35028
|
+
window.addEventListener("resize", updateMenuPlacement);
|
|
35029
|
+
window.addEventListener("scroll", updateMenuPlacement, true);
|
|
35030
|
+
return () => {
|
|
35031
|
+
window.removeEventListener("resize", updateMenuPlacement);
|
|
35032
|
+
window.removeEventListener("scroll", updateMenuPlacement, true);
|
|
35033
|
+
};
|
|
35034
|
+
}, [estimatedMenuHeight, isOpen, resolvedMenuWidth]);
|
|
34674
35035
|
const handleSearchChange = (text) => {
|
|
34675
35036
|
setSearchQuery(text);
|
|
34676
35037
|
onSearchChange?.(text);
|
|
@@ -34795,7 +35156,7 @@ var Select = forwardRef(
|
|
|
34795
35156
|
setOpen
|
|
34796
35157
|
]);
|
|
34797
35158
|
const leftIconNode = renderStatefulIcon(leftIcon, UserIcon, {
|
|
34798
|
-
size:
|
|
35159
|
+
size: ICON_SIZE13,
|
|
34799
35160
|
color: error ? colors.red : colors.primary
|
|
34800
35161
|
});
|
|
34801
35162
|
const hasLeftIcon = showLeftIcon || leftIcon != null;
|
|
@@ -34810,11 +35171,11 @@ var Select = forwardRef(
|
|
|
34810
35171
|
{
|
|
34811
35172
|
...rest,
|
|
34812
35173
|
ref: setRootRef,
|
|
34813
|
-
style: [
|
|
35174
|
+
style: [styles29.root, isOpen && styles29.rootOpen, disabled && styles29.disabled, style],
|
|
34814
35175
|
accessibilityState: { disabled, expanded: isOpen },
|
|
34815
35176
|
children: [
|
|
34816
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
34817
|
-
/* @__PURE__ */ jsxs(View, { style: [
|
|
35177
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles29.label, { color: labelColor }], children: label }) : null,
|
|
35178
|
+
/* @__PURE__ */ jsxs(View, { style: [styles29.triggerWrap, isOpen && styles29.triggerWrapOpen], children: [
|
|
34818
35179
|
/* @__PURE__ */ jsxs(
|
|
34819
35180
|
Pressable,
|
|
34820
35181
|
{
|
|
@@ -34825,97 +35186,108 @@ var Select = forwardRef(
|
|
|
34825
35186
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
34826
35187
|
accessibilityState: { disabled, expanded: isOpen },
|
|
34827
35188
|
style: [
|
|
34828
|
-
|
|
35189
|
+
styles29.trigger,
|
|
34829
35190
|
{
|
|
34830
35191
|
borderColor: triggerBorderColor,
|
|
34831
35192
|
backgroundColor: colors.grey700
|
|
34832
35193
|
}
|
|
34833
35194
|
],
|
|
34834
35195
|
children: [
|
|
34835
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style:
|
|
34836
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
35196
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: styles29.iconSlot, children: leftIconNode }) : null,
|
|
35197
|
+
/* @__PURE__ */ jsx(View, { style: styles29.triggerContent, children: multiple && hasValue ? /* @__PURE__ */ jsx(
|
|
34837
35198
|
MultiValueChips,
|
|
34838
35199
|
{
|
|
34839
35200
|
options: selectedOptions,
|
|
34840
35201
|
disabled,
|
|
34841
35202
|
onRemove: handleRemoveChip
|
|
34842
35203
|
}
|
|
34843
|
-
) : /* @__PURE__ */ jsx(Text, { style: [
|
|
34844
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
35204
|
+
) : /* @__PURE__ */ jsx(Text, { style: [styles29.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: multiple ? placeholder : singleLabel }) }),
|
|
35205
|
+
/* @__PURE__ */ jsx(View, { style: [styles29.iconSlot, isOpen && styles29.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE13, color: isOpen ? colors.primary : colors.grey100 }) })
|
|
34845
35206
|
]
|
|
34846
35207
|
}
|
|
34847
35208
|
),
|
|
34848
|
-
isOpen ? /* @__PURE__ */ jsxs(
|
|
34849
|
-
|
|
34850
|
-
|
|
34851
|
-
|
|
34852
|
-
|
|
34853
|
-
|
|
34854
|
-
|
|
34855
|
-
|
|
34856
|
-
|
|
34857
|
-
|
|
34858
|
-
|
|
34859
|
-
|
|
34860
|
-
|
|
34861
|
-
|
|
34862
|
-
|
|
34863
|
-
|
|
34864
|
-
|
|
34865
|
-
|
|
34866
|
-
|
|
34867
|
-
|
|
34868
|
-
|
|
34869
|
-
|
|
34870
|
-
|
|
34871
|
-
|
|
34872
|
-
|
|
34873
|
-
|
|
34874
|
-
|
|
34875
|
-
|
|
34876
|
-
|
|
34877
|
-
|
|
34878
|
-
|
|
34879
|
-
|
|
34880
|
-
|
|
34881
|
-
|
|
34882
|
-
|
|
34883
|
-
|
|
34884
|
-
|
|
34885
|
-
|
|
34886
|
-
|
|
34887
|
-
|
|
34888
|
-
|
|
34889
|
-
|
|
34890
|
-
|
|
34891
|
-
|
|
34892
|
-
|
|
34893
|
-
style: [
|
|
34894
|
-
styles27.item,
|
|
35209
|
+
isOpen ? /* @__PURE__ */ jsxs(
|
|
35210
|
+
View,
|
|
35211
|
+
{
|
|
35212
|
+
style: [
|
|
35213
|
+
styles29.menu,
|
|
35214
|
+
menuAlignEnd ? styles29.menuAlignEnd : styles29.menuAlignStart,
|
|
35215
|
+
menuPlaceAbove ? styles29.menuAbove : styles29.menuBelow,
|
|
35216
|
+
menuStyle
|
|
35217
|
+
],
|
|
35218
|
+
children: [
|
|
35219
|
+
showSearch ? /* @__PURE__ */ jsxs(View, { style: styles29.searchField, children: [
|
|
35220
|
+
/* @__PURE__ */ jsx(View, { style: styles29.iconSlot, children: /* @__PURE__ */ jsx(SearchIcon, { size: ICON_SIZE13, color: colors.grey100 }) }),
|
|
35221
|
+
/* @__PURE__ */ jsx(
|
|
35222
|
+
TextInput,
|
|
35223
|
+
{
|
|
35224
|
+
ref: searchInputRef,
|
|
35225
|
+
value: searchQuery,
|
|
35226
|
+
onChangeText: handleSearchChange,
|
|
35227
|
+
editable: !disabled,
|
|
35228
|
+
placeholder: searchPlaceholder,
|
|
35229
|
+
placeholderTextColor: colors.grey100,
|
|
35230
|
+
style: [
|
|
35231
|
+
styles29.searchInput,
|
|
35232
|
+
Platform.OS === "web" ? styles29.searchInputWeb : null,
|
|
35233
|
+
Platform.OS === "android" ? styles29.searchInputAndroid : null
|
|
35234
|
+
],
|
|
35235
|
+
accessibilityLabel: searchPlaceholder
|
|
35236
|
+
}
|
|
35237
|
+
)
|
|
35238
|
+
] }) : null,
|
|
35239
|
+
/* @__PURE__ */ jsxs(
|
|
35240
|
+
ScrollView,
|
|
35241
|
+
{
|
|
35242
|
+
style: styles29.optionList,
|
|
35243
|
+
contentContainerStyle: styles29.optionListContent,
|
|
35244
|
+
keyboardShouldPersistTaps: "handled",
|
|
35245
|
+
showsVerticalScrollIndicator: false,
|
|
35246
|
+
children: [
|
|
35247
|
+
loading ? /* @__PURE__ */ jsx(View, { style: styles29.statusRow, children: /* @__PURE__ */ jsx(Text, { style: styles29.statusText, children: "Loading..." }) }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx(View, { style: styles29.statusRow, children: /* @__PURE__ */ jsx(Text, { style: styles29.statusText, children: emptyText }) }) : null,
|
|
35248
|
+
!loading && filteredOptions.map((option) => {
|
|
35249
|
+
const isSelected = selectedValues.includes(option.value);
|
|
35250
|
+
const isHovered = hoveredValue === option.value;
|
|
35251
|
+
const visualState = isSelected ? "selected" : isHovered ? "hover" : "default";
|
|
35252
|
+
return /* @__PURE__ */ jsxs(
|
|
35253
|
+
Pressable,
|
|
34895
35254
|
{
|
|
34896
|
-
|
|
34897
|
-
|
|
34898
|
-
|
|
34899
|
-
|
|
34900
|
-
|
|
34901
|
-
|
|
34902
|
-
|
|
34903
|
-
|
|
34904
|
-
|
|
34905
|
-
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
|
|
34909
|
-
|
|
34910
|
-
|
|
35255
|
+
onPress: () => handleSelect(option.value),
|
|
35256
|
+
disabled,
|
|
35257
|
+
onHoverIn: () => setHoveredValue(option.value),
|
|
35258
|
+
onHoverOut: () => setHoveredValue((current) => current === option.value ? null : current),
|
|
35259
|
+
onPressIn: () => setHoveredValue(option.value),
|
|
35260
|
+
onPressOut: () => setHoveredValue((current) => current === option.value ? null : current),
|
|
35261
|
+
accessibilityRole: multiple ? "checkbox" : "button",
|
|
35262
|
+
accessibilityState: { selected: isSelected, checked: isSelected, disabled },
|
|
35263
|
+
style: [
|
|
35264
|
+
styles29.item,
|
|
35265
|
+
{
|
|
35266
|
+
backgroundColor: itemBackground(visualState)
|
|
35267
|
+
}
|
|
35268
|
+
],
|
|
35269
|
+
children: [
|
|
35270
|
+
multiple ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles29.itemCheckbox, children: /* @__PURE__ */ jsx(Checkbox, { value: isSelected, variant: "light" }) }) : null,
|
|
35271
|
+
/* @__PURE__ */ jsx(Text, { style: styles29.itemLabel, numberOfLines: 1, children: option.label })
|
|
35272
|
+
]
|
|
35273
|
+
},
|
|
35274
|
+
option.value
|
|
35275
|
+
);
|
|
35276
|
+
})
|
|
35277
|
+
]
|
|
35278
|
+
}
|
|
35279
|
+
)
|
|
35280
|
+
]
|
|
35281
|
+
}
|
|
35282
|
+
) : null
|
|
34911
35283
|
] }),
|
|
34912
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
35284
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles29.hint, { color: hintColor }], children: hint }) : null
|
|
34913
35285
|
]
|
|
34914
35286
|
}
|
|
34915
35287
|
);
|
|
34916
35288
|
}
|
|
34917
35289
|
);
|
|
34918
|
-
var
|
|
35290
|
+
var styles29 = StyleSheet.create({
|
|
34919
35291
|
root: {
|
|
34920
35292
|
width: DEFAULT_WIDTH3,
|
|
34921
35293
|
gap: 8,
|
|
@@ -35005,8 +35377,8 @@ var styles27 = StyleSheet.create({
|
|
|
35005
35377
|
lineHeight: 16
|
|
35006
35378
|
},
|
|
35007
35379
|
iconSlot: {
|
|
35008
|
-
width:
|
|
35009
|
-
height:
|
|
35380
|
+
width: ICON_SIZE13,
|
|
35381
|
+
height: ICON_SIZE13,
|
|
35010
35382
|
alignItems: "center",
|
|
35011
35383
|
justifyContent: "center",
|
|
35012
35384
|
flexShrink: 0
|
|
@@ -35016,10 +35388,7 @@ var styles27 = StyleSheet.create({
|
|
|
35016
35388
|
},
|
|
35017
35389
|
menu: {
|
|
35018
35390
|
position: "absolute",
|
|
35019
|
-
|
|
35020
|
-
left: 0,
|
|
35021
|
-
right: 0,
|
|
35022
|
-
marginTop: 8,
|
|
35391
|
+
minWidth: "100%",
|
|
35023
35392
|
zIndex: 10,
|
|
35024
35393
|
borderRadius: MENU_RADIUS3,
|
|
35025
35394
|
padding: 12,
|
|
@@ -35034,6 +35403,26 @@ var styles27 = StyleSheet.create({
|
|
|
35034
35403
|
}
|
|
35035
35404
|
})
|
|
35036
35405
|
},
|
|
35406
|
+
menuAlignStart: {
|
|
35407
|
+
left: 0,
|
|
35408
|
+
right: "auto"
|
|
35409
|
+
},
|
|
35410
|
+
menuAlignEnd: {
|
|
35411
|
+
left: "auto",
|
|
35412
|
+
right: 0
|
|
35413
|
+
},
|
|
35414
|
+
menuBelow: {
|
|
35415
|
+
top: "100%",
|
|
35416
|
+
bottom: "auto",
|
|
35417
|
+
marginTop: 8,
|
|
35418
|
+
marginBottom: 0
|
|
35419
|
+
},
|
|
35420
|
+
menuAbove: {
|
|
35421
|
+
top: "auto",
|
|
35422
|
+
bottom: "100%",
|
|
35423
|
+
marginTop: 0,
|
|
35424
|
+
marginBottom: 8
|
|
35425
|
+
},
|
|
35037
35426
|
optionList: {
|
|
35038
35427
|
maxHeight: MENU_MAX_LIST_HEIGHT
|
|
35039
35428
|
},
|
|
@@ -35169,25 +35558,35 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
35169
35558
|
const setInputRef = useMemo(() => mergeRefs(inputRef, forwardedRef), [forwardedRef]);
|
|
35170
35559
|
const [focused, setFocused] = useState(false);
|
|
35171
35560
|
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue ?? "");
|
|
35561
|
+
const reactId = useId();
|
|
35562
|
+
const inputDomId = `eh-textarea-${reactId.replace(/:/g, "")}`;
|
|
35172
35563
|
const isControlled = typeof value === "string";
|
|
35173
35564
|
const currentValue = isControlled ? value : uncontrolledValue;
|
|
35174
35565
|
const hasValue = currentValue.length > 0;
|
|
35175
35566
|
const visualState = resolveVisualState2({ disabled, error, focused, hasValue });
|
|
35176
35567
|
const chrome = chromeFor2(visualState);
|
|
35177
35568
|
const resolvedAccessibilityLabel = accessibilityLabel ?? (showLabel ? void 0 : label);
|
|
35569
|
+
const focusInput = () => {
|
|
35570
|
+
if (disabled) return;
|
|
35571
|
+
inputRef.current?.focus();
|
|
35572
|
+
};
|
|
35178
35573
|
useApplyWebClassName(rootRef, className);
|
|
35179
35574
|
useApplyWebClassName(inputRef, inputClassName);
|
|
35180
|
-
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [
|
|
35181
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
35575
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles30.root, disabled && styles30.disabled, style], children: [
|
|
35576
|
+
showLabel && label ? /* @__PURE__ */ jsx(Pressable, { disabled, onPress: focusInput, style: styles30.labelPressable, children: /* @__PURE__ */ jsx(Text, { style: [styles30.label, { color: chrome.labelColor }], children: label }) }) : null,
|
|
35182
35577
|
/* @__PURE__ */ jsx(
|
|
35183
|
-
|
|
35578
|
+
Pressable,
|
|
35184
35579
|
{
|
|
35580
|
+
accessibilityRole: "none",
|
|
35581
|
+
disabled,
|
|
35582
|
+
onPress: focusInput,
|
|
35185
35583
|
style: [
|
|
35186
|
-
|
|
35584
|
+
styles30.field,
|
|
35187
35585
|
{
|
|
35188
35586
|
borderColor: chrome.borderColor,
|
|
35189
35587
|
backgroundColor: chrome.backgroundColor
|
|
35190
35588
|
},
|
|
35589
|
+
Platform.OS === "web" ? styles30.fieldWeb : null,
|
|
35191
35590
|
fieldStyle
|
|
35192
35591
|
],
|
|
35193
35592
|
children: /* @__PURE__ */ jsx(
|
|
@@ -35195,6 +35594,7 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
35195
35594
|
{
|
|
35196
35595
|
ref: setInputRef,
|
|
35197
35596
|
...textInputProps,
|
|
35597
|
+
nativeID: inputDomId,
|
|
35198
35598
|
multiline: true,
|
|
35199
35599
|
textAlignVertical: "top",
|
|
35200
35600
|
value: isControlled ? value : void 0,
|
|
@@ -35215,11 +35615,11 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
35215
35615
|
onBlur?.(event);
|
|
35216
35616
|
},
|
|
35217
35617
|
style: [
|
|
35218
|
-
|
|
35618
|
+
styles30.input,
|
|
35219
35619
|
textareaTypography.field,
|
|
35220
35620
|
{ color: chrome.textColor },
|
|
35221
|
-
Platform.OS === "web" ?
|
|
35222
|
-
Platform.OS === "android" ?
|
|
35621
|
+
Platform.OS === "web" ? styles30.inputWeb : null,
|
|
35622
|
+
Platform.OS === "android" ? styles30.inputAndroid : null,
|
|
35223
35623
|
inputStyle
|
|
35224
35624
|
],
|
|
35225
35625
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -35228,10 +35628,10 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
35228
35628
|
)
|
|
35229
35629
|
}
|
|
35230
35630
|
),
|
|
35231
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
35631
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles30.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
35232
35632
|
] });
|
|
35233
35633
|
});
|
|
35234
|
-
var
|
|
35634
|
+
var styles30 = StyleSheet.create({
|
|
35235
35635
|
root: {
|
|
35236
35636
|
width: DEFAULT_WIDTH4,
|
|
35237
35637
|
gap: 8,
|
|
@@ -35240,6 +35640,9 @@ var styles28 = StyleSheet.create({
|
|
|
35240
35640
|
disabled: {
|
|
35241
35641
|
opacity: 0.6
|
|
35242
35642
|
},
|
|
35643
|
+
labelPressable: {
|
|
35644
|
+
alignSelf: "flex-start"
|
|
35645
|
+
},
|
|
35243
35646
|
label: {
|
|
35244
35647
|
...textareaTypography.label
|
|
35245
35648
|
},
|
|
@@ -35252,14 +35655,21 @@ var styles28 = StyleSheet.create({
|
|
|
35252
35655
|
paddingLeft: FIELD_PADDING_HORIZONTAL,
|
|
35253
35656
|
paddingRight: FIELD_PADDING_HORIZONTAL
|
|
35254
35657
|
},
|
|
35658
|
+
fieldWeb: {
|
|
35659
|
+
cursor: "text"
|
|
35660
|
+
},
|
|
35255
35661
|
input: {
|
|
35256
35662
|
flex: 1,
|
|
35663
|
+
alignSelf: "stretch",
|
|
35257
35664
|
paddingVertical: 0,
|
|
35258
35665
|
margin: 0
|
|
35259
35666
|
},
|
|
35260
35667
|
inputWeb: {
|
|
35261
35668
|
outlineStyle: "none",
|
|
35262
|
-
resize: "none"
|
|
35669
|
+
resize: "none",
|
|
35670
|
+
height: "100%",
|
|
35671
|
+
minWidth: 0,
|
|
35672
|
+
cursor: "text"
|
|
35263
35673
|
},
|
|
35264
35674
|
inputAndroid: {
|
|
35265
35675
|
includeFontPadding: false
|
|
@@ -35331,13 +35741,13 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
35331
35741
|
accessibilityRole: "switch",
|
|
35332
35742
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
35333
35743
|
accessibilityState: { checked: isActive, disabled },
|
|
35334
|
-
style: [
|
|
35744
|
+
style: [styles31.pressable, disabled && styles31.disabled, style],
|
|
35335
35745
|
children: [
|
|
35336
35746
|
/* @__PURE__ */ jsx(
|
|
35337
35747
|
Animated.View,
|
|
35338
35748
|
{
|
|
35339
35749
|
style: [
|
|
35340
|
-
|
|
35750
|
+
styles31.track,
|
|
35341
35751
|
{
|
|
35342
35752
|
backgroundColor: trackBackgroundColor
|
|
35343
35753
|
}
|
|
@@ -35346,7 +35756,7 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
35346
35756
|
Animated.View,
|
|
35347
35757
|
{
|
|
35348
35758
|
style: [
|
|
35349
|
-
|
|
35759
|
+
styles31.thumb,
|
|
35350
35760
|
{
|
|
35351
35761
|
transform: [{ translateX: thumbTranslateX }]
|
|
35352
35762
|
}
|
|
@@ -35355,12 +35765,12 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
35355
35765
|
)
|
|
35356
35766
|
}
|
|
35357
35767
|
),
|
|
35358
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
35768
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles31.label, labelStyle], children: labelContent }) : labelContent : null
|
|
35359
35769
|
]
|
|
35360
35770
|
}
|
|
35361
35771
|
);
|
|
35362
35772
|
});
|
|
35363
|
-
var
|
|
35773
|
+
var styles31 = StyleSheet.create({
|
|
35364
35774
|
pressable: {
|
|
35365
35775
|
flexDirection: "row",
|
|
35366
35776
|
alignItems: "center",
|
|
@@ -35413,13 +35823,13 @@ var ToggleRow = forwardRef(function ToggleRow2({
|
|
|
35413
35823
|
...rest,
|
|
35414
35824
|
ref: setContainerRef,
|
|
35415
35825
|
style: [
|
|
35416
|
-
|
|
35826
|
+
styles32.root,
|
|
35417
35827
|
{
|
|
35418
35828
|
minHeight: isDesktop ? 65 : 57,
|
|
35419
35829
|
paddingTop: isDesktop ? 20 : 16,
|
|
35420
35830
|
paddingBottom: isDesktop ? 20 : 16
|
|
35421
35831
|
},
|
|
35422
|
-
!showBorder &&
|
|
35832
|
+
!showBorder && styles32.noBorder,
|
|
35423
35833
|
style
|
|
35424
35834
|
],
|
|
35425
35835
|
children: [
|
|
@@ -35427,7 +35837,7 @@ var ToggleRow = forwardRef(function ToggleRow2({
|
|
|
35427
35837
|
Text,
|
|
35428
35838
|
{
|
|
35429
35839
|
style: [
|
|
35430
|
-
|
|
35840
|
+
styles32.label,
|
|
35431
35841
|
{
|
|
35432
35842
|
fontSize: labelSize,
|
|
35433
35843
|
lineHeight: isDesktop ? 20 : 18,
|
|
@@ -35452,7 +35862,7 @@ var ToggleRow = forwardRef(function ToggleRow2({
|
|
|
35452
35862
|
}
|
|
35453
35863
|
);
|
|
35454
35864
|
});
|
|
35455
|
-
var
|
|
35865
|
+
var styles32 = StyleSheet.create({
|
|
35456
35866
|
root: {
|
|
35457
35867
|
width: "100%",
|
|
35458
35868
|
flexDirection: "row",
|
|
@@ -35524,21 +35934,21 @@ var RatingInput = forwardRef(
|
|
|
35524
35934
|
{
|
|
35525
35935
|
...rest,
|
|
35526
35936
|
ref: setContainerRef,
|
|
35527
|
-
style: [
|
|
35937
|
+
style: [styles33.root, disabled && styles33.disabled, style],
|
|
35528
35938
|
children: [
|
|
35529
|
-
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [
|
|
35939
|
+
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles33.value, valueStyle], children: selectedValue.toFixed(precision) }) : null,
|
|
35530
35940
|
/* @__PURE__ */ jsx(
|
|
35531
35941
|
View,
|
|
35532
35942
|
{
|
|
35533
35943
|
accessibilityRole: readOnly ? "image" : "radiogroup",
|
|
35534
35944
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
35535
35945
|
accessibilityState: { disabled },
|
|
35536
|
-
style: [
|
|
35946
|
+
style: [styles33.stars, { gap: resolvedStarGap }],
|
|
35537
35947
|
children: Array.from({ length: STAR_COUNT }, (_, index) => {
|
|
35538
35948
|
const starValue = index + 1;
|
|
35539
35949
|
const isSelected = starValue <= selectedStarCount;
|
|
35540
35950
|
const icon = isSelected ? /* @__PURE__ */ jsx(StarFilledIcon, { size: iconWidth, height: iconHeight }) : /* @__PURE__ */ jsx(StarIcon, { size: iconWidth, height: iconHeight });
|
|
35541
|
-
const itemStyle = [
|
|
35951
|
+
const itemStyle = [styles33.starItem, { width: size, height: size }];
|
|
35542
35952
|
if (readOnly) {
|
|
35543
35953
|
return /* @__PURE__ */ jsx(View, { style: itemStyle, children: icon }, starValue);
|
|
35544
35954
|
}
|
|
@@ -35564,7 +35974,7 @@ var RatingInput = forwardRef(
|
|
|
35564
35974
|
);
|
|
35565
35975
|
}
|
|
35566
35976
|
);
|
|
35567
|
-
var
|
|
35977
|
+
var styles33 = StyleSheet.create({
|
|
35568
35978
|
root: {
|
|
35569
35979
|
flexDirection: "row",
|
|
35570
35980
|
alignItems: "center",
|
|
@@ -35628,19 +36038,19 @@ var CommentCard = forwardRef(
|
|
|
35628
36038
|
setExpanded(next);
|
|
35629
36039
|
onExpandedChange?.(next);
|
|
35630
36040
|
};
|
|
35631
|
-
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [
|
|
35632
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
35633
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
36041
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [styles34.root, style], children: [
|
|
36042
|
+
/* @__PURE__ */ jsxs(View, { style: styles34.header, children: [
|
|
36043
|
+
/* @__PURE__ */ jsx(View, { style: styles34.avatar, children: hasImage ? /* @__PURE__ */ jsx(
|
|
35634
36044
|
Image,
|
|
35635
36045
|
{
|
|
35636
36046
|
source: { uri: imageUrl ?? void 0 },
|
|
35637
|
-
style:
|
|
36047
|
+
style: styles34.avatarImage,
|
|
35638
36048
|
onError: () => setImageFailed(true)
|
|
35639
36049
|
}
|
|
35640
36050
|
) : /* @__PURE__ */ jsx(UserIcon, { size: 20, color: colors.primary }) }),
|
|
35641
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
35642
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
35643
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
36051
|
+
/* @__PURE__ */ jsxs(View, { style: styles34.identity, children: [
|
|
36052
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles34.name, children: userName }),
|
|
36053
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles34.date, children: date })
|
|
35644
36054
|
] }),
|
|
35645
36055
|
/* @__PURE__ */ jsx(RatingInput, { value: rating, readOnly: true, showValue: false, size: 16 })
|
|
35646
36056
|
] }),
|
|
@@ -35648,7 +36058,7 @@ var CommentCard = forwardRef(
|
|
|
35648
36058
|
Text,
|
|
35649
36059
|
{
|
|
35650
36060
|
numberOfLines: expanded ? void 0 : maxCommentLines,
|
|
35651
|
-
style: [
|
|
36061
|
+
style: [styles34.comment, commentStyle],
|
|
35652
36062
|
children: commentText
|
|
35653
36063
|
}
|
|
35654
36064
|
),
|
|
@@ -35661,14 +36071,14 @@ var CommentCard = forwardRef(
|
|
|
35661
36071
|
hitSlop: 6,
|
|
35662
36072
|
onHoverIn: () => setActionHovered(true),
|
|
35663
36073
|
onHoverOut: () => setActionHovered(false),
|
|
35664
|
-
style:
|
|
36074
|
+
style: styles34.action,
|
|
35665
36075
|
children: /* @__PURE__ */ jsx(
|
|
35666
36076
|
Text,
|
|
35667
36077
|
{
|
|
35668
36078
|
style: [
|
|
35669
|
-
|
|
35670
|
-
expanded &&
|
|
35671
|
-
actionHovered && (expanded ?
|
|
36079
|
+
styles34.actionText,
|
|
36080
|
+
expanded && styles34.closeActionText,
|
|
36081
|
+
actionHovered && (expanded ? styles34.closeActionTextHovered : styles34.openActionTextHovered)
|
|
35672
36082
|
],
|
|
35673
36083
|
children: expanded ? readLessLabel : readMoreLabel
|
|
35674
36084
|
}
|
|
@@ -35678,7 +36088,7 @@ var CommentCard = forwardRef(
|
|
|
35678
36088
|
] });
|
|
35679
36089
|
}
|
|
35680
36090
|
);
|
|
35681
|
-
var
|
|
36091
|
+
var styles34 = StyleSheet.create({
|
|
35682
36092
|
root: {
|
|
35683
36093
|
width: CARD_WIDTH2,
|
|
35684
36094
|
minHeight: CARD_MIN_HEIGHT,
|
|
@@ -36117,7 +36527,7 @@ var Range = forwardRef(function Range2({
|
|
|
36117
36527
|
...rest,
|
|
36118
36528
|
ref: setRootRef,
|
|
36119
36529
|
onLayout,
|
|
36120
|
-
style: [
|
|
36530
|
+
style: [styles35.root, disabled && styles35.disabled, style],
|
|
36121
36531
|
children: [
|
|
36122
36532
|
/* @__PURE__ */ jsxs(
|
|
36123
36533
|
Pressable,
|
|
@@ -36131,16 +36541,16 @@ var Range = forwardRef(function Range2({
|
|
|
36131
36541
|
updateNearestFromTrack(event.nativeEvent.offsetX);
|
|
36132
36542
|
} : void 0,
|
|
36133
36543
|
onPress: Platform.OS === "web" ? void 0 : handleTrackPress,
|
|
36134
|
-
style:
|
|
36544
|
+
style: styles35.sliderPlane,
|
|
36135
36545
|
tabIndex: -1,
|
|
36136
36546
|
children: [
|
|
36137
|
-
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
36547
|
+
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles35.track }),
|
|
36138
36548
|
/* @__PURE__ */ jsx(
|
|
36139
36549
|
View,
|
|
36140
36550
|
{
|
|
36141
36551
|
pointerEvents: "none",
|
|
36142
36552
|
style: [
|
|
36143
|
-
|
|
36553
|
+
styles35.activeTrack,
|
|
36144
36554
|
{
|
|
36145
36555
|
left: TRACK_HORIZONTAL_INSET + fromOffset,
|
|
36146
36556
|
width: toOffset - fromOffset + THUMB_SIZE2
|
|
@@ -36182,9 +36592,9 @@ var Range = forwardRef(function Range2({
|
|
|
36182
36592
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveFrom, updateFromInput),
|
|
36183
36593
|
pointerEvents: disabled ? "none" : "auto",
|
|
36184
36594
|
style: [
|
|
36185
|
-
|
|
36186
|
-
Platform.OS === "web" &&
|
|
36187
|
-
focusedThumb === "from" && Platform.OS === "web" &&
|
|
36595
|
+
styles35.thumb,
|
|
36596
|
+
Platform.OS === "web" && styles35.thumbWeb,
|
|
36597
|
+
focusedThumb === "from" && Platform.OS === "web" && styles35.thumbFocusedWeb,
|
|
36188
36598
|
{ left: TRACK_HORIZONTAL_INSET + fromOffset }
|
|
36189
36599
|
],
|
|
36190
36600
|
tabIndex: disabled ? -1 : 0
|
|
@@ -36224,9 +36634,9 @@ var Range = forwardRef(function Range2({
|
|
|
36224
36634
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveTo, updateToInput),
|
|
36225
36635
|
pointerEvents: disabled ? "none" : "auto",
|
|
36226
36636
|
style: [
|
|
36227
|
-
|
|
36228
|
-
Platform.OS === "web" &&
|
|
36229
|
-
focusedThumb === "to" && Platform.OS === "web" &&
|
|
36637
|
+
styles35.thumb,
|
|
36638
|
+
Platform.OS === "web" && styles35.thumbWeb,
|
|
36639
|
+
focusedThumb === "to" && Platform.OS === "web" && styles35.thumbFocusedWeb,
|
|
36230
36640
|
{ left: TRACK_HORIZONTAL_INSET + toOffset }
|
|
36231
36641
|
],
|
|
36232
36642
|
tabIndex: disabled ? -1 : 0
|
|
@@ -36235,7 +36645,7 @@ var Range = forwardRef(function Range2({
|
|
|
36235
36645
|
]
|
|
36236
36646
|
}
|
|
36237
36647
|
),
|
|
36238
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
36648
|
+
/* @__PURE__ */ jsxs(View, { style: styles35.inputs, children: [
|
|
36239
36649
|
/* @__PURE__ */ jsx(
|
|
36240
36650
|
RangeInput,
|
|
36241
36651
|
{
|
|
@@ -36286,7 +36696,7 @@ function RangeInput({
|
|
|
36286
36696
|
placeholder,
|
|
36287
36697
|
value
|
|
36288
36698
|
}) {
|
|
36289
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
36699
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles35.inputField, focused && styles35.inputFieldFocused], children: [
|
|
36290
36700
|
/* @__PURE__ */ jsx(
|
|
36291
36701
|
TextInput,
|
|
36292
36702
|
{
|
|
@@ -36302,15 +36712,15 @@ function RangeInput({
|
|
|
36302
36712
|
placeholder,
|
|
36303
36713
|
placeholderTextColor: colors.grey150,
|
|
36304
36714
|
returnKeyType: "done",
|
|
36305
|
-
style: [
|
|
36715
|
+
style: [styles35.input, Platform.OS === "web" && styles35.inputWeb],
|
|
36306
36716
|
tabIndex: disabled ? -1 : void 0,
|
|
36307
36717
|
value
|
|
36308
36718
|
}
|
|
36309
36719
|
),
|
|
36310
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
36720
|
+
/* @__PURE__ */ jsx(View, { style: styles35.currencySlot, children: /* @__PURE__ */ jsx(Text, { style: styles35.currency, children: currency }) })
|
|
36311
36721
|
] });
|
|
36312
36722
|
}
|
|
36313
|
-
var
|
|
36723
|
+
var styles35 = StyleSheet.create({
|
|
36314
36724
|
root: {
|
|
36315
36725
|
width: DEFAULT_WIDTH5,
|
|
36316
36726
|
gap: 15,
|
|
@@ -36519,6 +36929,6 @@ react-dom/cjs/react-dom.development.js:
|
|
|
36519
36929
|
*)
|
|
36520
36930
|
*/
|
|
36521
36931
|
|
|
36522
|
-
export { AccordionItem, 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, CameraFilledIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, ContactInfoCard, CopyIcon, Counter, DatePicker, DownloadIcon, EditIcon, FacebookIcon, FavoritesButton, FiltersIcon, FloatingActionButton, FullscreenIcon, GlobeIcon, GooglePlayIcon, GuestsIcon, HeadsetIcon, HeartIcon, HelpCircleIcon, HideIcon, HomeIcon, Icon, InfoTile, Input, InstagramIcon, KeyIcon, LanguageSwitcher, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LocationUserIcon, LockIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, MenuItem, MenuLinesIcon, MinusIcon, Modal, 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, ToggleRow, 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 };
|
|
36932
|
+
export { AccordionItem, 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, CameraFilledIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, ContactInfoCard, CopyIcon, Counter, DatePicker, DownloadIcon, EditIcon, FacebookIcon, FavoritesButton, FiltersIcon, FloatingActionButton, FullscreenIcon, GlobeIcon, GooglePlayIcon, GuestsIcon, HeadsetIcon, HeartIcon, HelpCircleIcon, HideIcon, HomeIcon, Icon, IconStatusBadge, InfoCardV2, InfoTile, Input, InstagramIcon, KeyIcon, LanguageSwitcher, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LocationUserIcon, LockIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, MenuItem, MenuLinesIcon, MinusIcon, Modal, MoreHorizontalIcon, 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, TableViewIcon, Textarea, Toggle, ToggleRow, 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 };
|
|
36523
36933
|
//# sourceMappingURL=index.js.map
|
|
36524
36934
|
//# sourceMappingURL=index.js.map
|