@ecohouse/ui 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +309 -176
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -14
- package/dist/index.d.ts +29 -14
- package/dist/index.js +311 -179
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/src/primitives/Amenity/Amenity.stories.tsx +64 -0
- package/src/primitives/Amenity/Amenity.tsx +178 -0
- package/src/primitives/Amenity/index.ts +2 -0
- package/src/primitives/index.ts +3 -0
- package/src/theme/colors.test.ts +1 -1
- package/src/theme/typography.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef, useRef, useMemo, useState, useCallback, useEffect, useLayoutEffect, isValidElement, cloneElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { View, Text, Platform, Pressable, StyleSheet, Image, Animated, Easing, TouchableOpacity, TextInput, ScrollView, PanResponder } from 'react-native';
|
|
3
3
|
import Svg16, { Path } from 'react-native-svg';
|
|
4
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
// src/components/Avatar/Avatar.tsx
|
|
7
7
|
|
|
@@ -99,7 +99,7 @@ var segmentedToggleTypography = {
|
|
|
99
99
|
fontFamily: fonts.sans,
|
|
100
100
|
fontSize: 12,
|
|
101
101
|
fontWeight: "500",
|
|
102
|
-
lineHeight:
|
|
102
|
+
lineHeight: 14,
|
|
103
103
|
letterSpacing: 0
|
|
104
104
|
};
|
|
105
105
|
var languageSwitcherTypography = {
|
|
@@ -1453,6 +1453,138 @@ function useApplyWebClassName(ref, className, enabled = true) {
|
|
|
1453
1453
|
};
|
|
1454
1454
|
}, [ref, className, enabled]);
|
|
1455
1455
|
}
|
|
1456
|
+
var Amenity = forwardRef(function Amenity2({
|
|
1457
|
+
icon,
|
|
1458
|
+
label,
|
|
1459
|
+
variant = "display",
|
|
1460
|
+
selected,
|
|
1461
|
+
defaultSelected = false,
|
|
1462
|
+
onSelectedChange,
|
|
1463
|
+
disabled = false,
|
|
1464
|
+
style,
|
|
1465
|
+
labelStyle,
|
|
1466
|
+
className,
|
|
1467
|
+
accessibilityLabel,
|
|
1468
|
+
...rest
|
|
1469
|
+
}, forwardedRef) {
|
|
1470
|
+
const rootRef = useRef(null);
|
|
1471
|
+
const setRootRef = useMemo(() => mergeRefs(rootRef, forwardedRef), [forwardedRef]);
|
|
1472
|
+
const isControlled = typeof selected === "boolean";
|
|
1473
|
+
const [uncontrolledSelected, setUncontrolledSelected] = useState(defaultSelected);
|
|
1474
|
+
const isSelected = isControlled ? selected : uncontrolledSelected;
|
|
1475
|
+
const isSelectable = variant === "selectable";
|
|
1476
|
+
const iconColor = isSelectable && isSelected ? colors.primary : colors.white;
|
|
1477
|
+
useApplyWebClassName(rootRef, className?.trim() || void 0);
|
|
1478
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1479
|
+
/* @__PURE__ */ jsx(View, { style: styles.iconSlot, children: /* @__PURE__ */ jsx(AmenityIcon, { color: iconColor, name: icon }) }),
|
|
1480
|
+
/* @__PURE__ */ jsx(
|
|
1481
|
+
Text,
|
|
1482
|
+
{
|
|
1483
|
+
style: [
|
|
1484
|
+
styles.label,
|
|
1485
|
+
isSelectable ? styles.selectableLabel : styles.displayLabel,
|
|
1486
|
+
Platform.OS === "android" ? styles.labelAndroid : null,
|
|
1487
|
+
labelStyle
|
|
1488
|
+
],
|
|
1489
|
+
children: label
|
|
1490
|
+
}
|
|
1491
|
+
)
|
|
1492
|
+
] });
|
|
1493
|
+
if (!isSelectable) {
|
|
1494
|
+
return /* @__PURE__ */ jsx(
|
|
1495
|
+
View,
|
|
1496
|
+
{
|
|
1497
|
+
...rest,
|
|
1498
|
+
ref: setRootRef,
|
|
1499
|
+
accessibilityLabel: accessibilityLabel ?? label,
|
|
1500
|
+
accessibilityRole: "text",
|
|
1501
|
+
style: [styles.base, styles.display, style],
|
|
1502
|
+
children: content
|
|
1503
|
+
}
|
|
1504
|
+
);
|
|
1505
|
+
}
|
|
1506
|
+
const handlePress = () => {
|
|
1507
|
+
if (disabled) return;
|
|
1508
|
+
const nextSelected = !isSelected;
|
|
1509
|
+
if (!isControlled) setUncontrolledSelected(nextSelected);
|
|
1510
|
+
onSelectedChange?.(nextSelected);
|
|
1511
|
+
};
|
|
1512
|
+
return /* @__PURE__ */ jsx(
|
|
1513
|
+
Pressable,
|
|
1514
|
+
{
|
|
1515
|
+
...rest,
|
|
1516
|
+
ref: setRootRef,
|
|
1517
|
+
accessibilityLabel: accessibilityLabel ?? label,
|
|
1518
|
+
accessibilityRole: "checkbox",
|
|
1519
|
+
accessibilityState: { checked: isSelected, disabled },
|
|
1520
|
+
disabled,
|
|
1521
|
+
onPress: handlePress,
|
|
1522
|
+
style: [
|
|
1523
|
+
styles.base,
|
|
1524
|
+
styles.selectable,
|
|
1525
|
+
isSelected && styles.selected,
|
|
1526
|
+
disabled && styles.disabled,
|
|
1527
|
+
style
|
|
1528
|
+
],
|
|
1529
|
+
children: content
|
|
1530
|
+
}
|
|
1531
|
+
);
|
|
1532
|
+
});
|
|
1533
|
+
var styles = StyleSheet.create({
|
|
1534
|
+
base: {
|
|
1535
|
+
height: 44,
|
|
1536
|
+
paddingVertical: 12,
|
|
1537
|
+
paddingHorizontal: 16,
|
|
1538
|
+
flexDirection: "row",
|
|
1539
|
+
alignItems: "center",
|
|
1540
|
+
alignSelf: "flex-start",
|
|
1541
|
+
backgroundColor: colors.grey700
|
|
1542
|
+
},
|
|
1543
|
+
display: {
|
|
1544
|
+
gap: 8,
|
|
1545
|
+
borderRadius: 39,
|
|
1546
|
+
backgroundColor: colors.grey750
|
|
1547
|
+
},
|
|
1548
|
+
selectable: {
|
|
1549
|
+
gap: 12,
|
|
1550
|
+
borderWidth: 1,
|
|
1551
|
+
borderColor: "transparent",
|
|
1552
|
+
borderStyle: "solid",
|
|
1553
|
+
borderRadius: 79
|
|
1554
|
+
},
|
|
1555
|
+
selected: {
|
|
1556
|
+
borderColor: colors.primary
|
|
1557
|
+
},
|
|
1558
|
+
disabled: {
|
|
1559
|
+
opacity: 0.6
|
|
1560
|
+
},
|
|
1561
|
+
iconSlot: {
|
|
1562
|
+
width: 20,
|
|
1563
|
+
height: 20,
|
|
1564
|
+
alignItems: "center",
|
|
1565
|
+
justifyContent: "center",
|
|
1566
|
+
flexShrink: 0
|
|
1567
|
+
},
|
|
1568
|
+
label: {
|
|
1569
|
+
fontFamily: fonts.sans,
|
|
1570
|
+
color: colors.white
|
|
1571
|
+
},
|
|
1572
|
+
displayLabel: {
|
|
1573
|
+
fontSize: 14,
|
|
1574
|
+
fontWeight: "500",
|
|
1575
|
+
lineHeight: 14,
|
|
1576
|
+
letterSpacing: 0
|
|
1577
|
+
},
|
|
1578
|
+
selectableLabel: {
|
|
1579
|
+
fontSize: 12,
|
|
1580
|
+
fontWeight: "700",
|
|
1581
|
+
lineHeight: 13.44,
|
|
1582
|
+
letterSpacing: 0
|
|
1583
|
+
},
|
|
1584
|
+
labelAndroid: {
|
|
1585
|
+
includeFontPadding: false
|
|
1586
|
+
}
|
|
1587
|
+
});
|
|
1456
1588
|
var ITEM_RADIUS = 12;
|
|
1457
1589
|
var ICON_SIZE = 16;
|
|
1458
1590
|
var MenuItem = forwardRef(function MenuItem2({
|
|
@@ -1507,19 +1639,19 @@ var MenuItem = forwardRef(function MenuItem2({
|
|
|
1507
1639
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
1508
1640
|
accessibilityState: { disabled },
|
|
1509
1641
|
style: [
|
|
1510
|
-
|
|
1642
|
+
styles2.root,
|
|
1511
1643
|
{ backgroundColor: resolvedBackground },
|
|
1512
|
-
disabled &&
|
|
1644
|
+
disabled && styles2.disabled,
|
|
1513
1645
|
style
|
|
1514
1646
|
],
|
|
1515
1647
|
children: [
|
|
1516
|
-
icon ? /* @__PURE__ */ jsx(View, { style:
|
|
1517
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
1648
|
+
icon ? /* @__PURE__ */ jsx(View, { style: styles2.iconSlot, children: icon }) : null,
|
|
1649
|
+
/* @__PURE__ */ jsx(Text, { style: [styles2.label, labelStyle], numberOfLines: 1, children: label })
|
|
1518
1650
|
]
|
|
1519
1651
|
}
|
|
1520
1652
|
);
|
|
1521
1653
|
});
|
|
1522
|
-
var
|
|
1654
|
+
var styles2 = StyleSheet.create({
|
|
1523
1655
|
root: {
|
|
1524
1656
|
minHeight: 40,
|
|
1525
1657
|
borderRadius: ITEM_RADIUS,
|
|
@@ -1587,10 +1719,10 @@ var FavoritesButton = forwardRef(
|
|
|
1587
1719
|
hitSlop,
|
|
1588
1720
|
onPress: handlePress,
|
|
1589
1721
|
style: ({ pressed }) => [
|
|
1590
|
-
|
|
1722
|
+
styles3.button,
|
|
1591
1723
|
webBlurStyle,
|
|
1592
|
-
pressed &&
|
|
1593
|
-
disabled &&
|
|
1724
|
+
pressed && styles3.pressed,
|
|
1725
|
+
disabled && styles3.disabled,
|
|
1594
1726
|
style
|
|
1595
1727
|
],
|
|
1596
1728
|
children: /* @__PURE__ */ jsx(
|
|
@@ -1606,7 +1738,7 @@ var FavoritesButton = forwardRef(
|
|
|
1606
1738
|
);
|
|
1607
1739
|
}
|
|
1608
1740
|
);
|
|
1609
|
-
var
|
|
1741
|
+
var styles3 = StyleSheet.create({
|
|
1610
1742
|
button: {
|
|
1611
1743
|
padding: 12,
|
|
1612
1744
|
gap: 10,
|
|
@@ -1784,7 +1916,7 @@ var Avatar = forwardRef(function Avatar2({
|
|
|
1784
1916
|
}, [isOpen, closeAndFocusTrigger]);
|
|
1785
1917
|
const hasImage = Boolean(imageUrl) && !imageFailed;
|
|
1786
1918
|
const resolvedAccessibilityLabel = accessibilityLabel ?? [name, email].filter(Boolean).join(", ");
|
|
1787
|
-
return /* @__PURE__ */ jsxs(View, { ref: wrapperRef, style: [
|
|
1919
|
+
return /* @__PURE__ */ jsxs(View, { ref: wrapperRef, style: [styles4.wrapper, isOpen && styles4.wrapperOpen], children: [
|
|
1788
1920
|
/* @__PURE__ */ jsxs(
|
|
1789
1921
|
Pressable,
|
|
1790
1922
|
{
|
|
@@ -1796,25 +1928,25 @@ var Avatar = forwardRef(function Avatar2({
|
|
|
1796
1928
|
accessibilityRole: isInteractive ? "button" : void 0,
|
|
1797
1929
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
1798
1930
|
accessibilityState: isInteractive ? { disabled, expanded: hasMenu ? isOpen : void 0 } : void 0,
|
|
1799
|
-
style: [
|
|
1931
|
+
style: [styles4.root, disabled && styles4.disabled, style],
|
|
1800
1932
|
children: [
|
|
1801
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
1933
|
+
/* @__PURE__ */ jsx(View, { style: styles4.imageWrap, children: hasImage ? /* @__PURE__ */ jsx(
|
|
1802
1934
|
Image,
|
|
1803
1935
|
{
|
|
1804
1936
|
source: { uri: imageUrl ?? void 0 },
|
|
1805
|
-
style:
|
|
1937
|
+
style: styles4.image,
|
|
1806
1938
|
onError: () => setImageFailed(true)
|
|
1807
1939
|
}
|
|
1808
|
-
) : /* @__PURE__ */ jsx(View, { style:
|
|
1809
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
1810
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
1811
|
-
email ? /* @__PURE__ */ jsx(Text, { style:
|
|
1940
|
+
) : /* @__PURE__ */ jsx(View, { style: styles4.imageFallback, children: /* @__PURE__ */ jsx(UserIcon, { size: FALLBACK_ICON_SIZE, color: colors.primary }) }) }),
|
|
1941
|
+
/* @__PURE__ */ jsxs(View, { style: styles4.textColumn, children: [
|
|
1942
|
+
/* @__PURE__ */ jsx(Text, { style: styles4.name, numberOfLines: 1, children: name }),
|
|
1943
|
+
email ? /* @__PURE__ */ jsx(Text, { style: styles4.email, numberOfLines: 1, children: email }) : null
|
|
1812
1944
|
] }),
|
|
1813
|
-
showChevron ? /* @__PURE__ */ jsx(View, { style: [
|
|
1945
|
+
showChevron ? /* @__PURE__ */ jsx(View, { style: [styles4.chevronSlot, isOpen && styles4.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: CHEVRON_SIZE, color: isOpen ? colors.primary : colors.grey100 }) }) : null
|
|
1814
1946
|
]
|
|
1815
1947
|
}
|
|
1816
1948
|
),
|
|
1817
|
-
hasMenu && isOpen ? /* @__PURE__ */ jsx(View, { style: [
|
|
1949
|
+
hasMenu && isOpen ? /* @__PURE__ */ jsx(View, { style: [styles4.menu, menuWidth != null && { right: void 0, width: menuWidth }], children: resolvedMenuItems.map((item) => {
|
|
1818
1950
|
const itemKey = item.key ?? item.label;
|
|
1819
1951
|
return /* @__PURE__ */ jsx(
|
|
1820
1952
|
MenuItem,
|
|
@@ -1831,7 +1963,7 @@ var Avatar = forwardRef(function Avatar2({
|
|
|
1831
1963
|
}) }) : null
|
|
1832
1964
|
] });
|
|
1833
1965
|
});
|
|
1834
|
-
var
|
|
1966
|
+
var styles4 = StyleSheet.create({
|
|
1835
1967
|
wrapper: {
|
|
1836
1968
|
position: "relative",
|
|
1837
1969
|
alignSelf: "flex-start"
|
|
@@ -1947,22 +2079,22 @@ var Badge = forwardRef(function Badge2({ label, variant = "default", icon: Icon2
|
|
|
1947
2079
|
...rest,
|
|
1948
2080
|
ref: setContainerRef,
|
|
1949
2081
|
style: [
|
|
1950
|
-
|
|
2082
|
+
styles5.base,
|
|
1951
2083
|
{ backgroundColor: preset.backgroundColor },
|
|
1952
|
-
preset.border ?
|
|
2084
|
+
preset.border ? styles5.transparentBorder : null,
|
|
1953
2085
|
preset.blur ? webBlurStyle2 : null,
|
|
1954
2086
|
style
|
|
1955
2087
|
],
|
|
1956
2088
|
accessibilityRole: "text",
|
|
1957
2089
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
1958
2090
|
children: [
|
|
1959
|
-
Icon2 ? /* @__PURE__ */ jsx(View, { style:
|
|
1960
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
2091
|
+
Icon2 ? /* @__PURE__ */ jsx(View, { style: styles5.iconSlot, children: /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE3, color: preset.iconColor }) }) : null,
|
|
2092
|
+
/* @__PURE__ */ jsx(Text, { style: [styles5.label, Platform.OS === "android" ? styles5.labelAndroid : null], children: label })
|
|
1961
2093
|
]
|
|
1962
2094
|
}
|
|
1963
2095
|
);
|
|
1964
2096
|
});
|
|
1965
|
-
var
|
|
2097
|
+
var styles5 = StyleSheet.create({
|
|
1966
2098
|
base: {
|
|
1967
2099
|
flexDirection: "row",
|
|
1968
2100
|
alignItems: "center",
|
|
@@ -2035,7 +2167,7 @@ var Counter = forwardRef(function Counter2({
|
|
|
2035
2167
|
if (!isControlled) setUncontrolledValue(next);
|
|
2036
2168
|
onValueChange?.(next);
|
|
2037
2169
|
};
|
|
2038
|
-
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [
|
|
2170
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [styles6.base, style], children: [
|
|
2039
2171
|
/* @__PURE__ */ jsx(
|
|
2040
2172
|
Pressable,
|
|
2041
2173
|
{
|
|
@@ -2045,11 +2177,11 @@ var Counter = forwardRef(function Counter2({
|
|
|
2045
2177
|
accessibilityRole: "button",
|
|
2046
2178
|
accessibilityLabel: "Decrease value",
|
|
2047
2179
|
accessibilityState: { disabled: decrementDisabled },
|
|
2048
|
-
style: [
|
|
2180
|
+
style: [styles6.button, webBlurStyle3, decrementDisabled && styles6.buttonDisabled],
|
|
2049
2181
|
children: /* @__PURE__ */ jsx(MinusIcon, {})
|
|
2050
2182
|
}
|
|
2051
2183
|
),
|
|
2052
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
2184
|
+
/* @__PURE__ */ jsx(Text, { style: styles6.value, children: resolvedValue }),
|
|
2053
2185
|
/* @__PURE__ */ jsx(
|
|
2054
2186
|
Pressable,
|
|
2055
2187
|
{
|
|
@@ -2059,13 +2191,13 @@ var Counter = forwardRef(function Counter2({
|
|
|
2059
2191
|
accessibilityRole: "button",
|
|
2060
2192
|
accessibilityLabel: "Increase value",
|
|
2061
2193
|
accessibilityState: { disabled: incrementDisabled },
|
|
2062
|
-
style: [
|
|
2194
|
+
style: [styles6.button, webBlurStyle3, incrementDisabled && styles6.buttonDisabled],
|
|
2063
2195
|
children: /* @__PURE__ */ jsx(PlusIcon, {})
|
|
2064
2196
|
}
|
|
2065
2197
|
)
|
|
2066
2198
|
] });
|
|
2067
2199
|
});
|
|
2068
|
-
var
|
|
2200
|
+
var styles6 = StyleSheet.create({
|
|
2069
2201
|
base: {
|
|
2070
2202
|
flexDirection: "row",
|
|
2071
2203
|
alignItems: "center",
|
|
@@ -2156,9 +2288,9 @@ var SegmentedToggle = forwardRef(
|
|
|
2156
2288
|
onLayout?.(event);
|
|
2157
2289
|
},
|
|
2158
2290
|
style: [
|
|
2159
|
-
|
|
2160
|
-
fullWidth ?
|
|
2161
|
-
disabled &&
|
|
2291
|
+
styles7.base,
|
|
2292
|
+
fullWidth ? styles7.fullWidth : styles7.contentWidth,
|
|
2293
|
+
disabled && styles7.disabled,
|
|
2162
2294
|
style
|
|
2163
2295
|
],
|
|
2164
2296
|
accessibilityRole: "radiogroup",
|
|
@@ -2168,7 +2300,7 @@ var SegmentedToggle = forwardRef(
|
|
|
2168
2300
|
{
|
|
2169
2301
|
pointerEvents: "none",
|
|
2170
2302
|
style: [
|
|
2171
|
-
|
|
2303
|
+
styles7.activeIndicator,
|
|
2172
2304
|
{ width: optionWidth, transform: [{ translateX: indicatorTranslateX }] }
|
|
2173
2305
|
]
|
|
2174
2306
|
}
|
|
@@ -2187,8 +2319,8 @@ var SegmentedToggle = forwardRef(
|
|
|
2187
2319
|
accessibilityLabel: label,
|
|
2188
2320
|
accessibilityState: { selected, disabled },
|
|
2189
2321
|
style: [
|
|
2190
|
-
|
|
2191
|
-
fullWidth ?
|
|
2322
|
+
styles7.option,
|
|
2323
|
+
fullWidth ? styles7.optionFullWidth : optionWidth > 0 && { minWidth: optionWidth }
|
|
2192
2324
|
],
|
|
2193
2325
|
children: /* @__PURE__ */ jsxs(
|
|
2194
2326
|
View,
|
|
@@ -2202,10 +2334,10 @@ var SegmentedToggle = forwardRef(
|
|
|
2202
2334
|
return nextWidths;
|
|
2203
2335
|
});
|
|
2204
2336
|
},
|
|
2205
|
-
style:
|
|
2337
|
+
style: styles7.optionContent,
|
|
2206
2338
|
children: [
|
|
2207
2339
|
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE4, color: iconColor }) : null,
|
|
2208
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [
|
|
2340
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles7.label, { color: labelColor }], children: label })
|
|
2209
2341
|
]
|
|
2210
2342
|
}
|
|
2211
2343
|
)
|
|
@@ -2218,7 +2350,7 @@ var SegmentedToggle = forwardRef(
|
|
|
2218
2350
|
);
|
|
2219
2351
|
}
|
|
2220
2352
|
);
|
|
2221
|
-
var
|
|
2353
|
+
var styles7 = StyleSheet.create({
|
|
2222
2354
|
base: {
|
|
2223
2355
|
height: 44,
|
|
2224
2356
|
flexDirection: "row",
|
|
@@ -2356,7 +2488,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
2356
2488
|
{
|
|
2357
2489
|
...rest,
|
|
2358
2490
|
ref: setWrapperRef,
|
|
2359
|
-
style: [
|
|
2491
|
+
style: [styles8.wrapper, isOpen && styles8.wrapperOpen, disabled && styles8.disabled, style],
|
|
2360
2492
|
children: [
|
|
2361
2493
|
/* @__PURE__ */ jsxs(
|
|
2362
2494
|
Pressable,
|
|
@@ -2371,17 +2503,17 @@ var LanguageSwitcher = forwardRef(
|
|
|
2371
2503
|
onHoverIn: () => setTriggerHovered(true),
|
|
2372
2504
|
onHoverOut: () => setTriggerHovered(false),
|
|
2373
2505
|
style: ({ pressed }) => [
|
|
2374
|
-
|
|
2375
|
-
(triggerHovered || pressed || isOpen) &&
|
|
2506
|
+
styles8.trigger,
|
|
2507
|
+
(triggerHovered || pressed || isOpen) && styles8.triggerActive
|
|
2376
2508
|
],
|
|
2377
2509
|
children: [
|
|
2378
2510
|
/* @__PURE__ */ jsx(GlobeIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 }),
|
|
2379
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
2380
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
2511
|
+
/* @__PURE__ */ jsx(Text, { style: styles8.triggerLabel, numberOfLines: 1, children: selectedOption?.label ?? "" }),
|
|
2512
|
+
/* @__PURE__ */ jsx(View, { style: [styles8.chevron, isOpen && styles8.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 }) })
|
|
2381
2513
|
]
|
|
2382
2514
|
}
|
|
2383
2515
|
),
|
|
2384
|
-
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(View, { style:
|
|
2516
|
+
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(View, { style: styles8.menu, accessibilityRole: "menu", children: options.map((option) => {
|
|
2385
2517
|
const selected = option.value === selectedValue;
|
|
2386
2518
|
return /* @__PURE__ */ jsx(
|
|
2387
2519
|
Pressable,
|
|
@@ -2393,10 +2525,10 @@ var LanguageSwitcher = forwardRef(
|
|
|
2393
2525
|
onHoverIn: () => setHoveredValue(option.value),
|
|
2394
2526
|
onHoverOut: () => setHoveredValue(null),
|
|
2395
2527
|
style: ({ pressed }) => [
|
|
2396
|
-
|
|
2397
|
-
selected ?
|
|
2528
|
+
styles8.item,
|
|
2529
|
+
selected ? styles8.itemSelected : (hoveredValue === option.value || pressed) && styles8.itemHovered
|
|
2398
2530
|
],
|
|
2399
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
2531
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles8.itemLabel, selected && styles8.itemLabelSelected], children: option.label })
|
|
2400
2532
|
},
|
|
2401
2533
|
option.value
|
|
2402
2534
|
);
|
|
@@ -2406,7 +2538,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
2406
2538
|
);
|
|
2407
2539
|
}
|
|
2408
2540
|
);
|
|
2409
|
-
var
|
|
2541
|
+
var styles8 = StyleSheet.create({
|
|
2410
2542
|
wrapper: {
|
|
2411
2543
|
position: "relative",
|
|
2412
2544
|
width: CONTROL_WIDTH,
|
|
@@ -2502,17 +2634,17 @@ var StatCard = forwardRef(function StatCard2({
|
|
|
2502
2634
|
{
|
|
2503
2635
|
...rest,
|
|
2504
2636
|
ref: setContainerRef,
|
|
2505
|
-
style: [
|
|
2637
|
+
style: [styles9.base, style],
|
|
2506
2638
|
accessibilityRole: "text",
|
|
2507
2639
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
2508
2640
|
children: [
|
|
2509
2641
|
/* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }),
|
|
2510
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
2642
|
+
/* @__PURE__ */ jsx(Text, { style: styles9.label, children: label })
|
|
2511
2643
|
]
|
|
2512
2644
|
}
|
|
2513
2645
|
);
|
|
2514
2646
|
});
|
|
2515
|
-
var
|
|
2647
|
+
var styles9 = StyleSheet.create({
|
|
2516
2648
|
base: {
|
|
2517
2649
|
width: 204.5,
|
|
2518
2650
|
minHeight: 114,
|
|
@@ -2598,7 +2730,7 @@ var Button = forwardRef(
|
|
|
2598
2730
|
useApplyWebClassName(textRef, textClassName);
|
|
2599
2731
|
const iconNode = customIcon ?? /* @__PURE__ */ jsx(ArrowRightIcon, { size: metrics.iconSize, color: preset.iconColor });
|
|
2600
2732
|
const containerStyle = [
|
|
2601
|
-
|
|
2733
|
+
styles10.base,
|
|
2602
2734
|
{
|
|
2603
2735
|
minHeight: metrics.minHeight,
|
|
2604
2736
|
borderRadius: metrics.borderRadius,
|
|
@@ -2609,16 +2741,16 @@ var Button = forwardRef(
|
|
|
2609
2741
|
paddingRight: hasIcon ? metrics.paddingRightWithIcon : metrics.paddingRight,
|
|
2610
2742
|
gap: hasIcon ? metrics.gap : 0
|
|
2611
2743
|
},
|
|
2612
|
-
hasIcon ?
|
|
2613
|
-
disabled &&
|
|
2744
|
+
hasIcon ? styles10.contentWithIcon : styles10.contentWithoutIcon,
|
|
2745
|
+
disabled && styles10.disabled,
|
|
2614
2746
|
style
|
|
2615
2747
|
];
|
|
2616
2748
|
const labelStyle = [
|
|
2617
|
-
|
|
2749
|
+
styles10.label,
|
|
2618
2750
|
metrics.text,
|
|
2619
2751
|
{ color: preset.textColor },
|
|
2620
|
-
Platform.OS === "android" ?
|
|
2621
|
-
!hasIcon &&
|
|
2752
|
+
Platform.OS === "android" ? styles10.labelAndroid : null,
|
|
2753
|
+
!hasIcon && styles10.labelCentered,
|
|
2622
2754
|
textStyle
|
|
2623
2755
|
];
|
|
2624
2756
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2639,7 +2771,7 @@ var Button = forwardRef(
|
|
|
2639
2771
|
View,
|
|
2640
2772
|
{
|
|
2641
2773
|
style: [
|
|
2642
|
-
|
|
2774
|
+
styles10.iconContainer,
|
|
2643
2775
|
{
|
|
2644
2776
|
width: metrics.iconContainerSize,
|
|
2645
2777
|
height: metrics.iconContainerSize,
|
|
@@ -2655,7 +2787,7 @@ var Button = forwardRef(
|
|
|
2655
2787
|
);
|
|
2656
2788
|
}
|
|
2657
2789
|
);
|
|
2658
|
-
var
|
|
2790
|
+
var styles10 = StyleSheet.create({
|
|
2659
2791
|
base: {
|
|
2660
2792
|
flexDirection: "row",
|
|
2661
2793
|
alignItems: "center",
|
|
@@ -2739,13 +2871,13 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
2739
2871
|
accessibilityRole: "checkbox",
|
|
2740
2872
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
2741
2873
|
accessibilityState: { checked: isActive, disabled },
|
|
2742
|
-
style: [
|
|
2874
|
+
style: [styles11.root, disabled && styles11.disabled, style],
|
|
2743
2875
|
children: [
|
|
2744
2876
|
/* @__PURE__ */ jsx(
|
|
2745
2877
|
View,
|
|
2746
2878
|
{
|
|
2747
2879
|
style: [
|
|
2748
|
-
|
|
2880
|
+
styles11.box,
|
|
2749
2881
|
{
|
|
2750
2882
|
backgroundColor: chrome.backgroundColor,
|
|
2751
2883
|
borderColor: chrome.borderColor
|
|
@@ -2754,12 +2886,12 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
2754
2886
|
children: isActive ? /* @__PURE__ */ jsx(CheckIcon, { size: CHECK_SIZE, color: colors.primary, strokeWidth: CHECK_STROKE }) : null
|
|
2755
2887
|
}
|
|
2756
2888
|
),
|
|
2757
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
2889
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles11.label, labelStyle], children: labelContent }) : labelContent : null
|
|
2758
2890
|
]
|
|
2759
2891
|
}
|
|
2760
2892
|
);
|
|
2761
2893
|
});
|
|
2762
|
-
var
|
|
2894
|
+
var styles11 = StyleSheet.create({
|
|
2763
2895
|
root: {
|
|
2764
2896
|
flexDirection: "row",
|
|
2765
2897
|
alignItems: "center",
|
|
@@ -3010,9 +3142,9 @@ var DatePicker = forwardRef(
|
|
|
3010
3142
|
{
|
|
3011
3143
|
...rest,
|
|
3012
3144
|
ref: setRootRef,
|
|
3013
|
-
style: [
|
|
3145
|
+
style: [styles12.root, isOpen && styles12.rootOpen, disabled && styles12.disabled, style],
|
|
3014
3146
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3015
|
-
children: /* @__PURE__ */ jsxs(View, { style: [
|
|
3147
|
+
children: /* @__PURE__ */ jsxs(View, { style: [styles12.triggerWrap, isOpen && styles12.triggerWrapOpen], children: [
|
|
3016
3148
|
/* @__PURE__ */ jsxs(
|
|
3017
3149
|
Pressable,
|
|
3018
3150
|
{
|
|
@@ -3023,17 +3155,17 @@ var DatePicker = forwardRef(
|
|
|
3023
3155
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
3024
3156
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3025
3157
|
style: [
|
|
3026
|
-
|
|
3158
|
+
styles12.trigger,
|
|
3027
3159
|
{ borderColor: triggerBorderColor, backgroundColor: colors.grey700 }
|
|
3028
3160
|
],
|
|
3029
3161
|
children: [
|
|
3030
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
3031
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
3162
|
+
/* @__PURE__ */ jsx(Text, { style: [styles12.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: triggerLabel }),
|
|
3163
|
+
/* @__PURE__ */ jsx(View, { style: styles12.iconSlot, children: /* @__PURE__ */ jsx(CalendarOutlineIcon, { size: ICON_SIZE7, color: colors.grey100 }) })
|
|
3032
3164
|
]
|
|
3033
3165
|
}
|
|
3034
3166
|
),
|
|
3035
|
-
isOpen ? /* @__PURE__ */ jsxs(View, { style: [
|
|
3036
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
3167
|
+
isOpen ? /* @__PURE__ */ jsxs(View, { style: [styles12.menu, calendarStyle], children: [
|
|
3168
|
+
/* @__PURE__ */ jsxs(View, { style: styles12.calendarHeader, children: [
|
|
3037
3169
|
/* @__PURE__ */ jsx(
|
|
3038
3170
|
Pressable,
|
|
3039
3171
|
{
|
|
@@ -3041,11 +3173,11 @@ var DatePicker = forwardRef(
|
|
|
3041
3173
|
hitSlop: 8,
|
|
3042
3174
|
accessibilityRole: "button",
|
|
3043
3175
|
accessibilityLabel: "Previous month",
|
|
3044
|
-
style:
|
|
3176
|
+
style: styles12.navButton,
|
|
3045
3177
|
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white })
|
|
3046
3178
|
}
|
|
3047
3179
|
),
|
|
3048
|
-
/* @__PURE__ */ jsxs(Text, { style:
|
|
3180
|
+
/* @__PURE__ */ jsxs(Text, { style: styles12.monthHeading, children: [
|
|
3049
3181
|
monthNames[visibleMonth.getMonth()],
|
|
3050
3182
|
" ",
|
|
3051
3183
|
visibleMonth.getFullYear()
|
|
@@ -3057,13 +3189,13 @@ var DatePicker = forwardRef(
|
|
|
3057
3189
|
hitSlop: 8,
|
|
3058
3190
|
accessibilityRole: "button",
|
|
3059
3191
|
accessibilityLabel: "Next month",
|
|
3060
|
-
style:
|
|
3061
|
-
children: /* @__PURE__ */ jsx(View, { style:
|
|
3192
|
+
style: styles12.navButton,
|
|
3193
|
+
children: /* @__PURE__ */ jsx(View, { style: styles12.navIconMirror, children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white }) })
|
|
3062
3194
|
}
|
|
3063
3195
|
)
|
|
3064
3196
|
] }),
|
|
3065
3197
|
/* @__PURE__ */ jsxs(View, { children: [
|
|
3066
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
3198
|
+
/* @__PURE__ */ jsx(View, { style: styles12.weekdayRow, children: weekdayLabels.map((weekdayLabel, index) => /* @__PURE__ */ jsx(View, { style: styles12.dayCellWrap, children: /* @__PURE__ */ jsx(Text, { style: styles12.weekdayText, children: weekdayLabel }) }, `${weekdayLabel}-${index}`)) }),
|
|
3067
3199
|
weeks.map((week, weekIndex) => {
|
|
3068
3200
|
let rangeHighlightStyle = null;
|
|
3069
3201
|
if (isRange && rangeValue.start && rangeValue.end) {
|
|
@@ -3100,13 +3232,13 @@ var DatePicker = forwardRef(
|
|
|
3100
3232
|
return /* @__PURE__ */ jsxs(
|
|
3101
3233
|
View,
|
|
3102
3234
|
{
|
|
3103
|
-
style: [
|
|
3235
|
+
style: [styles12.weekRow, weekIndex > 0 && styles12.weekRowSpaced],
|
|
3104
3236
|
children: [
|
|
3105
3237
|
rangeHighlightStyle ? /* @__PURE__ */ jsx(
|
|
3106
3238
|
View,
|
|
3107
3239
|
{
|
|
3108
3240
|
pointerEvents: "none",
|
|
3109
|
-
style: [
|
|
3241
|
+
style: [styles12.rangeHighlight, rangeHighlightStyle]
|
|
3110
3242
|
}
|
|
3111
3243
|
) : null,
|
|
3112
3244
|
week.map((day, dayIndex) => {
|
|
@@ -3129,7 +3261,7 @@ var DatePicker = forwardRef(
|
|
|
3129
3261
|
onHoverOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
3130
3262
|
onPressIn: () => setHoveredDayKey(dayKey),
|
|
3131
3263
|
onPressOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
3132
|
-
style:
|
|
3264
|
+
style: styles12.dayCellWrap,
|
|
3133
3265
|
accessibilityRole: "button",
|
|
3134
3266
|
accessibilityLabel: formatValue(day),
|
|
3135
3267
|
accessibilityState: {
|
|
@@ -3141,14 +3273,14 @@ var DatePicker = forwardRef(
|
|
|
3141
3273
|
View,
|
|
3142
3274
|
{
|
|
3143
3275
|
style: [
|
|
3144
|
-
|
|
3145
|
-
isSelectedEndpoint &&
|
|
3146
|
-
isHovered &&
|
|
3276
|
+
styles12.dayCircle,
|
|
3277
|
+
isSelectedEndpoint && styles12.dayCircleSelected,
|
|
3278
|
+
isHovered && styles12.dayCircleHovered
|
|
3147
3279
|
],
|
|
3148
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
3280
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles12.dayText, { color: dayTextColor }], children: day.getDate() })
|
|
3149
3281
|
}
|
|
3150
3282
|
),
|
|
3151
|
-
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsx(View, { style:
|
|
3283
|
+
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsx(View, { style: styles12.todayDot }) : null
|
|
3152
3284
|
]
|
|
3153
3285
|
},
|
|
3154
3286
|
dayIndex
|
|
@@ -3166,7 +3298,7 @@ var DatePicker = forwardRef(
|
|
|
3166
3298
|
);
|
|
3167
3299
|
}
|
|
3168
3300
|
);
|
|
3169
|
-
var
|
|
3301
|
+
var styles12 = StyleSheet.create({
|
|
3170
3302
|
root: {
|
|
3171
3303
|
width: DEFAULT_WIDTH,
|
|
3172
3304
|
gap: 8,
|
|
@@ -3445,13 +3577,13 @@ var Input = forwardRef(function Input2({
|
|
|
3445
3577
|
});
|
|
3446
3578
|
useApplyWebClassName(rootRef, className);
|
|
3447
3579
|
useApplyWebClassName(inputRef, inputClassName);
|
|
3448
|
-
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [
|
|
3449
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
3580
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles13.root, disabled && styles13.disabled, style], children: [
|
|
3581
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles13.label, { color: chrome.labelColor }], children: label }) : null,
|
|
3450
3582
|
/* @__PURE__ */ jsxs(
|
|
3451
3583
|
View,
|
|
3452
3584
|
{
|
|
3453
3585
|
style: [
|
|
3454
|
-
|
|
3586
|
+
styles13.field,
|
|
3455
3587
|
{
|
|
3456
3588
|
height: metrics.height,
|
|
3457
3589
|
borderRadius: metrics.borderRadius,
|
|
@@ -3466,7 +3598,7 @@ var Input = forwardRef(function Input2({
|
|
|
3466
3598
|
fieldStyle
|
|
3467
3599
|
],
|
|
3468
3600
|
children: [
|
|
3469
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [
|
|
3601
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [styles13.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: leftIconNode }) : null,
|
|
3470
3602
|
/* @__PURE__ */ jsx(
|
|
3471
3603
|
TextInput,
|
|
3472
3604
|
{
|
|
@@ -3490,11 +3622,11 @@ var Input = forwardRef(function Input2({
|
|
|
3490
3622
|
onBlur?.(event);
|
|
3491
3623
|
},
|
|
3492
3624
|
style: [
|
|
3493
|
-
|
|
3625
|
+
styles13.input,
|
|
3494
3626
|
metrics.text,
|
|
3495
3627
|
{ color: chrome.textColor },
|
|
3496
|
-
Platform.OS === "web" ?
|
|
3497
|
-
Platform.OS === "android" ?
|
|
3628
|
+
Platform.OS === "web" ? styles13.inputWeb : null,
|
|
3629
|
+
Platform.OS === "android" ? styles13.inputAndroid : null,
|
|
3498
3630
|
inputStyle
|
|
3499
3631
|
],
|
|
3500
3632
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -3506,20 +3638,20 @@ var Input = forwardRef(function Input2({
|
|
|
3506
3638
|
{
|
|
3507
3639
|
onPress: onRightIconPress,
|
|
3508
3640
|
disabled,
|
|
3509
|
-
style: [
|
|
3641
|
+
style: [styles13.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }],
|
|
3510
3642
|
accessibilityRole: "button",
|
|
3511
3643
|
accessibilityLabel: rightIconAccessibilityLabel,
|
|
3512
3644
|
hitSlop: 8,
|
|
3513
3645
|
children: rightIconNode
|
|
3514
3646
|
}
|
|
3515
|
-
) : /* @__PURE__ */ jsx(View, { style: [
|
|
3647
|
+
) : /* @__PURE__ */ jsx(View, { style: [styles13.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: rightIconNode }) : null
|
|
3516
3648
|
]
|
|
3517
3649
|
}
|
|
3518
3650
|
),
|
|
3519
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
3651
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles13.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
3520
3652
|
] });
|
|
3521
3653
|
});
|
|
3522
|
-
var
|
|
3654
|
+
var styles13 = StyleSheet.create({
|
|
3523
3655
|
root: {
|
|
3524
3656
|
width: DEFAULT_WIDTH2,
|
|
3525
3657
|
gap: 8,
|
|
@@ -3635,25 +3767,25 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
3635
3767
|
const next = Math.ceil(event.nativeEvent.layout.width);
|
|
3636
3768
|
setEllipsisWidth((current) => current === next ? current : next);
|
|
3637
3769
|
};
|
|
3638
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
3639
|
-
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style:
|
|
3770
|
+
return /* @__PURE__ */ jsxs(View, { style: styles14.multiValueRoot, children: [
|
|
3771
|
+
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style: styles14.measureRow, children: [
|
|
3640
3772
|
options.map((option) => /* @__PURE__ */ jsxs(
|
|
3641
3773
|
View,
|
|
3642
3774
|
{
|
|
3643
|
-
style:
|
|
3775
|
+
style: styles14.chip,
|
|
3644
3776
|
onLayout: (event) => handleChipLayout(option.value, event),
|
|
3645
3777
|
children: [
|
|
3646
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3647
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3778
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.chipLabel, numberOfLines: 1, children: option.label }),
|
|
3779
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.chipRemove, children: "\xD7" })
|
|
3648
3780
|
]
|
|
3649
3781
|
},
|
|
3650
3782
|
`measure-${option.value}`
|
|
3651
3783
|
)),
|
|
3652
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
3784
|
+
/* @__PURE__ */ jsx(View, { style: styles14.ellipsis, onLayout: handleEllipsisLayout, children: /* @__PURE__ */ jsx(Text, { style: styles14.ellipsisText, children: "..." }) })
|
|
3653
3785
|
] }),
|
|
3654
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
3655
|
-
visible.map((option) => /* @__PURE__ */ jsxs(View, { style:
|
|
3656
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3786
|
+
/* @__PURE__ */ jsxs(View, { style: styles14.chipsRow, onLayout: handleContainerLayout, children: [
|
|
3787
|
+
visible.map((option) => /* @__PURE__ */ jsxs(View, { style: styles14.chip, children: [
|
|
3788
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.chipLabel, numberOfLines: 1, children: option.label }),
|
|
3657
3789
|
/* @__PURE__ */ jsx(
|
|
3658
3790
|
Pressable,
|
|
3659
3791
|
{
|
|
@@ -3665,11 +3797,11 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
3665
3797
|
hitSlop: 6,
|
|
3666
3798
|
accessibilityRole: "button",
|
|
3667
3799
|
accessibilityLabel: `Remove ${option.label}`,
|
|
3668
|
-
children: /* @__PURE__ */ jsx(Text, { style:
|
|
3800
|
+
children: /* @__PURE__ */ jsx(Text, { style: styles14.chipRemove, children: "\xD7" })
|
|
3669
3801
|
}
|
|
3670
3802
|
)
|
|
3671
3803
|
] }, option.value)),
|
|
3672
|
-
hasOverflow ? /* @__PURE__ */ jsx(View, { style:
|
|
3804
|
+
hasOverflow ? /* @__PURE__ */ jsx(View, { style: styles14.ellipsis, children: /* @__PURE__ */ jsx(Text, { style: styles14.ellipsisText, children: "..." }) }) : null
|
|
3673
3805
|
] })
|
|
3674
3806
|
] });
|
|
3675
3807
|
}
|
|
@@ -3893,11 +4025,11 @@ var Select = forwardRef(
|
|
|
3893
4025
|
{
|
|
3894
4026
|
...rest,
|
|
3895
4027
|
ref: setRootRef,
|
|
3896
|
-
style: [
|
|
4028
|
+
style: [styles14.root, isOpen && styles14.rootOpen, disabled && styles14.disabled, style],
|
|
3897
4029
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3898
4030
|
children: [
|
|
3899
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
3900
|
-
/* @__PURE__ */ jsxs(View, { style: [
|
|
4031
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles14.label, { color: labelColor }], children: label }) : null,
|
|
4032
|
+
/* @__PURE__ */ jsxs(View, { style: [styles14.triggerWrap, isOpen && styles14.triggerWrapOpen], children: [
|
|
3901
4033
|
/* @__PURE__ */ jsxs(
|
|
3902
4034
|
Pressable,
|
|
3903
4035
|
{
|
|
@@ -3908,29 +4040,29 @@ var Select = forwardRef(
|
|
|
3908
4040
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
3909
4041
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3910
4042
|
style: [
|
|
3911
|
-
|
|
4043
|
+
styles14.trigger,
|
|
3912
4044
|
{
|
|
3913
4045
|
borderColor: triggerBorderColor,
|
|
3914
4046
|
backgroundColor: colors.grey700
|
|
3915
4047
|
}
|
|
3916
4048
|
],
|
|
3917
4049
|
children: [
|
|
3918
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style:
|
|
3919
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4050
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: styles14.iconSlot, children: leftIconNode }) : null,
|
|
4051
|
+
/* @__PURE__ */ jsx(View, { style: styles14.triggerContent, children: multiple && hasValue ? /* @__PURE__ */ jsx(
|
|
3920
4052
|
MultiValueChips,
|
|
3921
4053
|
{
|
|
3922
4054
|
options: selectedOptions,
|
|
3923
4055
|
disabled,
|
|
3924
4056
|
onRemove: handleRemoveChip
|
|
3925
4057
|
}
|
|
3926
|
-
) : /* @__PURE__ */ jsx(Text, { style: [
|
|
3927
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
4058
|
+
) : /* @__PURE__ */ jsx(Text, { style: [styles14.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: multiple ? placeholder : singleLabel }) }),
|
|
4059
|
+
/* @__PURE__ */ jsx(View, { style: [styles14.iconSlot, isOpen && styles14.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE8, color: isOpen ? colors.primary : colors.grey100 }) })
|
|
3928
4060
|
]
|
|
3929
4061
|
}
|
|
3930
4062
|
),
|
|
3931
|
-
isOpen ? /* @__PURE__ */ jsxs(View, { style:
|
|
3932
|
-
showSearch ? /* @__PURE__ */ jsxs(View, { style:
|
|
3933
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4063
|
+
isOpen ? /* @__PURE__ */ jsxs(View, { style: styles14.menu, children: [
|
|
4064
|
+
showSearch ? /* @__PURE__ */ jsxs(View, { style: styles14.searchField, children: [
|
|
4065
|
+
/* @__PURE__ */ jsx(View, { style: styles14.iconSlot, children: /* @__PURE__ */ jsx(SearchIcon, { size: ICON_SIZE8, color: colors.grey100 }) }),
|
|
3934
4066
|
/* @__PURE__ */ jsx(
|
|
3935
4067
|
TextInput,
|
|
3936
4068
|
{
|
|
@@ -3941,9 +4073,9 @@ var Select = forwardRef(
|
|
|
3941
4073
|
placeholder: searchPlaceholder,
|
|
3942
4074
|
placeholderTextColor: colors.grey100,
|
|
3943
4075
|
style: [
|
|
3944
|
-
|
|
3945
|
-
Platform.OS === "web" ?
|
|
3946
|
-
Platform.OS === "android" ?
|
|
4076
|
+
styles14.searchInput,
|
|
4077
|
+
Platform.OS === "web" ? styles14.searchInputWeb : null,
|
|
4078
|
+
Platform.OS === "android" ? styles14.searchInputAndroid : null
|
|
3947
4079
|
],
|
|
3948
4080
|
accessibilityLabel: searchPlaceholder
|
|
3949
4081
|
}
|
|
@@ -3952,12 +4084,12 @@ var Select = forwardRef(
|
|
|
3952
4084
|
/* @__PURE__ */ jsxs(
|
|
3953
4085
|
ScrollView,
|
|
3954
4086
|
{
|
|
3955
|
-
style:
|
|
3956
|
-
contentContainerStyle:
|
|
4087
|
+
style: styles14.optionList,
|
|
4088
|
+
contentContainerStyle: styles14.optionListContent,
|
|
3957
4089
|
keyboardShouldPersistTaps: "handled",
|
|
3958
4090
|
showsVerticalScrollIndicator: false,
|
|
3959
4091
|
children: [
|
|
3960
|
-
loading ? /* @__PURE__ */ jsx(View, { style:
|
|
4092
|
+
loading ? /* @__PURE__ */ jsx(View, { style: styles14.statusRow, children: /* @__PURE__ */ jsx(Text, { style: styles14.statusText, children: "Loading..." }) }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx(View, { style: styles14.statusRow, children: /* @__PURE__ */ jsx(Text, { style: styles14.statusText, children: emptyText }) }) : null,
|
|
3961
4093
|
!loading && filteredOptions.map((option) => {
|
|
3962
4094
|
const isSelected = selectedValues.includes(option.value);
|
|
3963
4095
|
const isHovered = hoveredValue === option.value;
|
|
@@ -3974,14 +4106,14 @@ var Select = forwardRef(
|
|
|
3974
4106
|
accessibilityRole: multiple ? "checkbox" : "button",
|
|
3975
4107
|
accessibilityState: { selected: isSelected, checked: isSelected, disabled },
|
|
3976
4108
|
style: [
|
|
3977
|
-
|
|
4109
|
+
styles14.item,
|
|
3978
4110
|
{
|
|
3979
4111
|
backgroundColor: itemBackground(visualState)
|
|
3980
4112
|
}
|
|
3981
4113
|
],
|
|
3982
4114
|
children: [
|
|
3983
|
-
multiple ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
3984
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
4115
|
+
multiple ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles14.itemCheckbox, children: /* @__PURE__ */ jsx(Checkbox, { value: isSelected, variant: "light" }) }) : null,
|
|
4116
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.itemLabel, numberOfLines: 1, children: option.label })
|
|
3985
4117
|
]
|
|
3986
4118
|
},
|
|
3987
4119
|
option.value
|
|
@@ -3992,13 +4124,13 @@ var Select = forwardRef(
|
|
|
3992
4124
|
)
|
|
3993
4125
|
] }) : null
|
|
3994
4126
|
] }),
|
|
3995
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4127
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles14.hint, { color: hintColor }], children: hint }) : null
|
|
3996
4128
|
]
|
|
3997
4129
|
}
|
|
3998
4130
|
);
|
|
3999
4131
|
}
|
|
4000
4132
|
);
|
|
4001
|
-
var
|
|
4133
|
+
var styles14 = StyleSheet.create({
|
|
4002
4134
|
root: {
|
|
4003
4135
|
width: DEFAULT_WIDTH3,
|
|
4004
4136
|
gap: 8,
|
|
@@ -4260,13 +4392,13 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
4260
4392
|
const resolvedAccessibilityLabel = accessibilityLabel ?? (showLabel ? void 0 : label);
|
|
4261
4393
|
useApplyWebClassName(rootRef, className);
|
|
4262
4394
|
useApplyWebClassName(inputRef, inputClassName);
|
|
4263
|
-
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [
|
|
4264
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4395
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles15.root, disabled && styles15.disabled, style], children: [
|
|
4396
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles15.label, { color: chrome.labelColor }], children: label }) : null,
|
|
4265
4397
|
/* @__PURE__ */ jsx(
|
|
4266
4398
|
View,
|
|
4267
4399
|
{
|
|
4268
4400
|
style: [
|
|
4269
|
-
|
|
4401
|
+
styles15.field,
|
|
4270
4402
|
{
|
|
4271
4403
|
borderColor: chrome.borderColor,
|
|
4272
4404
|
backgroundColor: chrome.backgroundColor
|
|
@@ -4298,11 +4430,11 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
4298
4430
|
onBlur?.(event);
|
|
4299
4431
|
},
|
|
4300
4432
|
style: [
|
|
4301
|
-
|
|
4433
|
+
styles15.input,
|
|
4302
4434
|
textareaTypography.field,
|
|
4303
4435
|
{ color: chrome.textColor },
|
|
4304
|
-
Platform.OS === "web" ?
|
|
4305
|
-
Platform.OS === "android" ?
|
|
4436
|
+
Platform.OS === "web" ? styles15.inputWeb : null,
|
|
4437
|
+
Platform.OS === "android" ? styles15.inputAndroid : null,
|
|
4306
4438
|
inputStyle
|
|
4307
4439
|
],
|
|
4308
4440
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -4311,10 +4443,10 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
4311
4443
|
)
|
|
4312
4444
|
}
|
|
4313
4445
|
),
|
|
4314
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4446
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles15.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
4315
4447
|
] });
|
|
4316
4448
|
});
|
|
4317
|
-
var
|
|
4449
|
+
var styles15 = StyleSheet.create({
|
|
4318
4450
|
root: {
|
|
4319
4451
|
width: DEFAULT_WIDTH4,
|
|
4320
4452
|
gap: 8,
|
|
@@ -4414,13 +4546,13 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
4414
4546
|
accessibilityRole: "switch",
|
|
4415
4547
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
4416
4548
|
accessibilityState: { checked: isActive, disabled },
|
|
4417
|
-
style: [
|
|
4549
|
+
style: [styles16.pressable, disabled && styles16.disabled, style],
|
|
4418
4550
|
children: [
|
|
4419
4551
|
/* @__PURE__ */ jsx(
|
|
4420
4552
|
Animated.View,
|
|
4421
4553
|
{
|
|
4422
4554
|
style: [
|
|
4423
|
-
|
|
4555
|
+
styles16.track,
|
|
4424
4556
|
{
|
|
4425
4557
|
backgroundColor: trackBackgroundColor
|
|
4426
4558
|
}
|
|
@@ -4429,7 +4561,7 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
4429
4561
|
Animated.View,
|
|
4430
4562
|
{
|
|
4431
4563
|
style: [
|
|
4432
|
-
|
|
4564
|
+
styles16.thumb,
|
|
4433
4565
|
{
|
|
4434
4566
|
transform: [{ translateX: thumbTranslateX }]
|
|
4435
4567
|
}
|
|
@@ -4438,12 +4570,12 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
4438
4570
|
)
|
|
4439
4571
|
}
|
|
4440
4572
|
),
|
|
4441
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4573
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles16.label, labelStyle], children: labelContent }) : labelContent : null
|
|
4442
4574
|
]
|
|
4443
4575
|
}
|
|
4444
4576
|
);
|
|
4445
4577
|
});
|
|
4446
|
-
var
|
|
4578
|
+
var styles16 = StyleSheet.create({
|
|
4447
4579
|
pressable: {
|
|
4448
4580
|
flexDirection: "row",
|
|
4449
4581
|
alignItems: "center",
|
|
@@ -4518,21 +4650,21 @@ var RatingInput = forwardRef(
|
|
|
4518
4650
|
{
|
|
4519
4651
|
...rest,
|
|
4520
4652
|
ref: setContainerRef,
|
|
4521
|
-
style: [
|
|
4653
|
+
style: [styles17.root, disabled && styles17.disabled, style],
|
|
4522
4654
|
children: [
|
|
4523
|
-
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [
|
|
4655
|
+
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles17.value, valueStyle], children: selectedValue.toFixed(precision) }) : null,
|
|
4524
4656
|
/* @__PURE__ */ jsx(
|
|
4525
4657
|
View,
|
|
4526
4658
|
{
|
|
4527
4659
|
accessibilityRole: readOnly ? "image" : "radiogroup",
|
|
4528
4660
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
4529
4661
|
accessibilityState: { disabled },
|
|
4530
|
-
style: [
|
|
4662
|
+
style: [styles17.stars, { gap: resolvedStarGap }],
|
|
4531
4663
|
children: Array.from({ length: STAR_COUNT }, (_, index) => {
|
|
4532
4664
|
const starValue = index + 1;
|
|
4533
4665
|
const isSelected = starValue <= selectedStarCount;
|
|
4534
4666
|
const icon = isSelected ? /* @__PURE__ */ jsx(StarFilledIcon, { size: iconWidth, height: iconHeight }) : /* @__PURE__ */ jsx(StarIcon, { size: iconWidth, height: iconHeight });
|
|
4535
|
-
const itemStyle = [
|
|
4667
|
+
const itemStyle = [styles17.starItem, { width: size, height: size }];
|
|
4536
4668
|
if (readOnly) {
|
|
4537
4669
|
return /* @__PURE__ */ jsx(View, { style: itemStyle, children: icon }, starValue);
|
|
4538
4670
|
}
|
|
@@ -4558,7 +4690,7 @@ var RatingInput = forwardRef(
|
|
|
4558
4690
|
);
|
|
4559
4691
|
}
|
|
4560
4692
|
);
|
|
4561
|
-
var
|
|
4693
|
+
var styles17 = StyleSheet.create({
|
|
4562
4694
|
root: {
|
|
4563
4695
|
flexDirection: "row",
|
|
4564
4696
|
alignItems: "center",
|
|
@@ -4622,19 +4754,19 @@ var CommentCard = forwardRef(
|
|
|
4622
4754
|
setExpanded(next);
|
|
4623
4755
|
onExpandedChange?.(next);
|
|
4624
4756
|
};
|
|
4625
|
-
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [
|
|
4626
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
4627
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4757
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [styles18.root, style], children: [
|
|
4758
|
+
/* @__PURE__ */ jsxs(View, { style: styles18.header, children: [
|
|
4759
|
+
/* @__PURE__ */ jsx(View, { style: styles18.avatar, children: hasImage ? /* @__PURE__ */ jsx(
|
|
4628
4760
|
Image,
|
|
4629
4761
|
{
|
|
4630
4762
|
source: { uri: imageUrl ?? void 0 },
|
|
4631
|
-
style:
|
|
4763
|
+
style: styles18.avatarImage,
|
|
4632
4764
|
onError: () => setImageFailed(true)
|
|
4633
4765
|
}
|
|
4634
4766
|
) : /* @__PURE__ */ jsx(UserIcon, { size: 20, color: colors.primary }) }),
|
|
4635
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
4636
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
4637
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
4767
|
+
/* @__PURE__ */ jsxs(View, { style: styles18.identity, children: [
|
|
4768
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles18.name, children: userName }),
|
|
4769
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles18.date, children: date })
|
|
4638
4770
|
] }),
|
|
4639
4771
|
/* @__PURE__ */ jsx(RatingInput, { value: rating, readOnly: true, showValue: false, size: 16 })
|
|
4640
4772
|
] }),
|
|
@@ -4642,7 +4774,7 @@ var CommentCard = forwardRef(
|
|
|
4642
4774
|
Text,
|
|
4643
4775
|
{
|
|
4644
4776
|
numberOfLines: expanded ? void 0 : maxCommentLines,
|
|
4645
|
-
style: [
|
|
4777
|
+
style: [styles18.comment, commentStyle],
|
|
4646
4778
|
children: commentText
|
|
4647
4779
|
}
|
|
4648
4780
|
),
|
|
@@ -4655,14 +4787,14 @@ var CommentCard = forwardRef(
|
|
|
4655
4787
|
hitSlop: 6,
|
|
4656
4788
|
onHoverIn: () => setActionHovered(true),
|
|
4657
4789
|
onHoverOut: () => setActionHovered(false),
|
|
4658
|
-
style:
|
|
4790
|
+
style: styles18.action,
|
|
4659
4791
|
children: /* @__PURE__ */ jsx(
|
|
4660
4792
|
Text,
|
|
4661
4793
|
{
|
|
4662
4794
|
style: [
|
|
4663
|
-
|
|
4664
|
-
expanded &&
|
|
4665
|
-
actionHovered && (expanded ?
|
|
4795
|
+
styles18.actionText,
|
|
4796
|
+
expanded && styles18.closeActionText,
|
|
4797
|
+
actionHovered && (expanded ? styles18.closeActionTextHovered : styles18.openActionTextHovered)
|
|
4666
4798
|
],
|
|
4667
4799
|
children: expanded ? readLessLabel : readMoreLabel
|
|
4668
4800
|
}
|
|
@@ -4672,7 +4804,7 @@ var CommentCard = forwardRef(
|
|
|
4672
4804
|
] });
|
|
4673
4805
|
}
|
|
4674
4806
|
);
|
|
4675
|
-
var
|
|
4807
|
+
var styles18 = StyleSheet.create({
|
|
4676
4808
|
root: {
|
|
4677
4809
|
width: CARD_WIDTH,
|
|
4678
4810
|
minHeight: CARD_MIN_HEIGHT,
|
|
@@ -5111,7 +5243,7 @@ var Range = forwardRef(function Range2({
|
|
|
5111
5243
|
...rest,
|
|
5112
5244
|
ref: setRootRef,
|
|
5113
5245
|
onLayout,
|
|
5114
|
-
style: [
|
|
5246
|
+
style: [styles19.root, disabled && styles19.disabled, style],
|
|
5115
5247
|
children: [
|
|
5116
5248
|
/* @__PURE__ */ jsxs(
|
|
5117
5249
|
Pressable,
|
|
@@ -5125,16 +5257,16 @@ var Range = forwardRef(function Range2({
|
|
|
5125
5257
|
updateNearestFromTrack(event.nativeEvent.offsetX);
|
|
5126
5258
|
} : void 0,
|
|
5127
5259
|
onPress: Platform.OS === "web" ? void 0 : handleTrackPress,
|
|
5128
|
-
style:
|
|
5260
|
+
style: styles19.sliderPlane,
|
|
5129
5261
|
tabIndex: -1,
|
|
5130
5262
|
children: [
|
|
5131
|
-
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
5263
|
+
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles19.track }),
|
|
5132
5264
|
/* @__PURE__ */ jsx(
|
|
5133
5265
|
View,
|
|
5134
5266
|
{
|
|
5135
5267
|
pointerEvents: "none",
|
|
5136
5268
|
style: [
|
|
5137
|
-
|
|
5269
|
+
styles19.activeTrack,
|
|
5138
5270
|
{
|
|
5139
5271
|
left: TRACK_HORIZONTAL_INSET + fromOffset,
|
|
5140
5272
|
width: toOffset - fromOffset + THUMB_SIZE2
|
|
@@ -5176,9 +5308,9 @@ var Range = forwardRef(function Range2({
|
|
|
5176
5308
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveFrom, updateFromInput),
|
|
5177
5309
|
pointerEvents: disabled ? "none" : "auto",
|
|
5178
5310
|
style: [
|
|
5179
|
-
|
|
5180
|
-
Platform.OS === "web" &&
|
|
5181
|
-
focusedThumb === "from" && Platform.OS === "web" &&
|
|
5311
|
+
styles19.thumb,
|
|
5312
|
+
Platform.OS === "web" && styles19.thumbWeb,
|
|
5313
|
+
focusedThumb === "from" && Platform.OS === "web" && styles19.thumbFocusedWeb,
|
|
5182
5314
|
{ left: TRACK_HORIZONTAL_INSET + fromOffset }
|
|
5183
5315
|
],
|
|
5184
5316
|
tabIndex: disabled ? -1 : 0
|
|
@@ -5218,9 +5350,9 @@ var Range = forwardRef(function Range2({
|
|
|
5218
5350
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveTo, updateToInput),
|
|
5219
5351
|
pointerEvents: disabled ? "none" : "auto",
|
|
5220
5352
|
style: [
|
|
5221
|
-
|
|
5222
|
-
Platform.OS === "web" &&
|
|
5223
|
-
focusedThumb === "to" && Platform.OS === "web" &&
|
|
5353
|
+
styles19.thumb,
|
|
5354
|
+
Platform.OS === "web" && styles19.thumbWeb,
|
|
5355
|
+
focusedThumb === "to" && Platform.OS === "web" && styles19.thumbFocusedWeb,
|
|
5224
5356
|
{ left: TRACK_HORIZONTAL_INSET + toOffset }
|
|
5225
5357
|
],
|
|
5226
5358
|
tabIndex: disabled ? -1 : 0
|
|
@@ -5229,7 +5361,7 @@ var Range = forwardRef(function Range2({
|
|
|
5229
5361
|
]
|
|
5230
5362
|
}
|
|
5231
5363
|
),
|
|
5232
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
5364
|
+
/* @__PURE__ */ jsxs(View, { style: styles19.inputs, children: [
|
|
5233
5365
|
/* @__PURE__ */ jsx(
|
|
5234
5366
|
RangeInput,
|
|
5235
5367
|
{
|
|
@@ -5280,7 +5412,7 @@ function RangeInput({
|
|
|
5280
5412
|
placeholder,
|
|
5281
5413
|
value
|
|
5282
5414
|
}) {
|
|
5283
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
5415
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles19.inputField, focused && styles19.inputFieldFocused], children: [
|
|
5284
5416
|
/* @__PURE__ */ jsx(
|
|
5285
5417
|
TextInput,
|
|
5286
5418
|
{
|
|
@@ -5296,15 +5428,15 @@ function RangeInput({
|
|
|
5296
5428
|
placeholder,
|
|
5297
5429
|
placeholderTextColor: colors.grey150,
|
|
5298
5430
|
returnKeyType: "done",
|
|
5299
|
-
style: [
|
|
5431
|
+
style: [styles19.input, Platform.OS === "web" && styles19.inputWeb],
|
|
5300
5432
|
tabIndex: disabled ? -1 : void 0,
|
|
5301
5433
|
value
|
|
5302
5434
|
}
|
|
5303
5435
|
),
|
|
5304
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
5436
|
+
/* @__PURE__ */ jsx(View, { style: styles19.currencySlot, children: /* @__PURE__ */ jsx(Text, { style: styles19.currency, children: currency }) })
|
|
5305
5437
|
] });
|
|
5306
5438
|
}
|
|
5307
|
-
var
|
|
5439
|
+
var styles19 = StyleSheet.create({
|
|
5308
5440
|
root: {
|
|
5309
5441
|
width: DEFAULT_WIDTH5,
|
|
5310
5442
|
gap: 15,
|
|
@@ -5408,6 +5540,6 @@ var styles18 = StyleSheet.create({
|
|
|
5408
5540
|
}
|
|
5409
5541
|
});
|
|
5410
5542
|
|
|
5411
|
-
export { AmenityIcon, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, BagIcon, BathroomsIcon, BedroomsIcon, BellIcon, BrandLogo, BuildingIcon, Button, CalendarIcon, CalendarOutlineIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, CopyIcon, Counter, DatePicker, FacebookIcon, FavoritesButton, FiltersIcon, GlobeIcon, GooglePlayIcon, GuestsIcon, HeartIcon, HelpCircleIcon, HomeIcon, Icon, Input, InstagramIcon, KeyIcon, LanguageSwitcher, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, MenuItem, MinusIcon, NavigateIcon, PhoneIcon, PlusIcon, QrCodeIcon, Range, RatingInput, RatingStarIcon, SaveHeartIcon, SearchIcon, SegmentedToggle, Select, SettingsIcon, ShareIcon, ShowIcon, SidebarIcon, SortIcon, StarFilledIcon, StarIcon, StatCard, Textarea, Toggle, TooltipArrowIcon, UserIcon, UsersAltIcon, VideoIcon, WhatsAppIcon, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
|
|
5543
|
+
export { Amenity, AmenityIcon, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, BRAND_LOGO_COLORS, BRAND_LOGO_DEFAULT_HEIGHT, BRAND_LOGO_DEFAULT_WIDTH, Badge, BagIcon, BathroomsIcon, BedroomsIcon, BellIcon, BrandLogo, BuildingIcon, Button, CalendarIcon, CalendarOutlineIcon, CameraIcon, CardLocationIcon, CheckBadgeIcon, CheckIcon, CheckSuccessIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ClockFilledIcon, ClockIcon, CloseIcon, CommentCard, CopyIcon, Counter, DatePicker, FacebookIcon, FavoritesButton, FiltersIcon, GlobeIcon, GooglePlayIcon, GuestsIcon, HeartIcon, HelpCircleIcon, HomeIcon, Icon, Input, InstagramIcon, KeyIcon, LanguageSwitcher, LayoutGridIcon, LinkedInIcon, ListViewIcon, LocationPinIcon, LogOutIcon, MailIcon, MapCollapseIcon, MapExpandIcon, MapViewIcon, MenuIcon, MenuItem, MinusIcon, NavigateIcon, PhoneIcon, PlusIcon, QrCodeIcon, Range, RatingInput, RatingStarIcon, SaveHeartIcon, SearchIcon, SegmentedToggle, Select, SettingsIcon, ShareIcon, ShowIcon, SidebarIcon, SortIcon, StarFilledIcon, StarIcon, StatCard, Textarea, Toggle, TooltipArrowIcon, UserIcon, UsersAltIcon, VideoIcon, WhatsAppIcon, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
|
|
5412
5544
|
//# sourceMappingURL=index.js.map
|
|
5413
5545
|
//# sourceMappingURL=index.js.map
|