@ecohouse/ui 0.1.21 → 0.1.23
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 +314 -198
- 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 +316 -201
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SegmentedToggle/SegmentedToggle.tsx +7 -19
- 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",
|
|
@@ -2092,6 +2224,7 @@ var styles5 = StyleSheet.create({
|
|
|
2092
2224
|
var ICON_SIZE4 = 20;
|
|
2093
2225
|
var ANIMATION_DURATION = 200;
|
|
2094
2226
|
var OPTION_HORIZONTAL_PADDING = 16;
|
|
2227
|
+
var OPTION_MIN_WIDTH = 97;
|
|
2095
2228
|
var SegmentedToggle = forwardRef(
|
|
2096
2229
|
function SegmentedToggle2({
|
|
2097
2230
|
options,
|
|
@@ -2117,12 +2250,9 @@ var SegmentedToggle = forwardRef(
|
|
|
2117
2250
|
const resolvedClassName = className?.trim() || void 0;
|
|
2118
2251
|
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
2119
2252
|
const progress = useRef(new Animated.Value(selectedIndex)).current;
|
|
2120
|
-
const [contentWidths, setContentWidths] = useState([0, 0]);
|
|
2121
2253
|
const [containerWidth, setContainerWidth] = useState(0);
|
|
2122
2254
|
const availableOptionWidth = Math.max(0, (containerWidth - 12) / 2);
|
|
2123
|
-
const
|
|
2124
|
-
const contentBasedOptionWidth = widestContentWidth > 0 ? widestContentWidth + OPTION_HORIZONTAL_PADDING * 2 : 0;
|
|
2125
|
-
const optionWidth = fullWidth ? availableOptionWidth : contentBasedOptionWidth;
|
|
2255
|
+
const optionWidth = fullWidth ? availableOptionWidth : OPTION_MIN_WIDTH;
|
|
2126
2256
|
const indicatorTranslateX = progress.interpolate({
|
|
2127
2257
|
inputRange: [0, 1],
|
|
2128
2258
|
outputRange: [0, optionWidth + 4]
|
|
@@ -2156,9 +2286,9 @@ var SegmentedToggle = forwardRef(
|
|
|
2156
2286
|
onLayout?.(event);
|
|
2157
2287
|
},
|
|
2158
2288
|
style: [
|
|
2159
|
-
|
|
2160
|
-
fullWidth ?
|
|
2161
|
-
disabled &&
|
|
2289
|
+
styles7.base,
|
|
2290
|
+
fullWidth ? styles7.fullWidth : styles7.contentWidth,
|
|
2291
|
+
disabled && styles7.disabled,
|
|
2162
2292
|
style
|
|
2163
2293
|
],
|
|
2164
2294
|
accessibilityRole: "radiogroup",
|
|
@@ -2168,12 +2298,12 @@ var SegmentedToggle = forwardRef(
|
|
|
2168
2298
|
{
|
|
2169
2299
|
pointerEvents: "none",
|
|
2170
2300
|
style: [
|
|
2171
|
-
|
|
2301
|
+
styles7.activeIndicator,
|
|
2172
2302
|
{ width: optionWidth, transform: [{ translateX: indicatorTranslateX }] }
|
|
2173
2303
|
]
|
|
2174
2304
|
}
|
|
2175
2305
|
) : null,
|
|
2176
|
-
options.map(({ value: optionValue, label, icon: Icon2 }
|
|
2306
|
+
options.map(({ value: optionValue, label, icon: Icon2 }) => {
|
|
2177
2307
|
const selected = optionValue === selectedValue;
|
|
2178
2308
|
const iconColor = selected ? colors.primary : colors.whiteAlpha20;
|
|
2179
2309
|
const labelColor = selected ? colors.whiteAlpha86 : colors.whiteAlpha40;
|
|
@@ -2187,28 +2317,13 @@ var SegmentedToggle = forwardRef(
|
|
|
2187
2317
|
accessibilityLabel: label,
|
|
2188
2318
|
accessibilityState: { selected, disabled },
|
|
2189
2319
|
style: [
|
|
2190
|
-
|
|
2191
|
-
fullWidth ?
|
|
2320
|
+
styles7.option,
|
|
2321
|
+
fullWidth ? styles7.optionFullWidth : { width: OPTION_MIN_WIDTH, minWidth: OPTION_MIN_WIDTH }
|
|
2192
2322
|
],
|
|
2193
|
-
children: /* @__PURE__ */ jsxs(
|
|
2194
|
-
|
|
2195
|
-
{
|
|
2196
|
-
|
|
2197
|
-
const nextWidth = event.nativeEvent.layout.width;
|
|
2198
|
-
setContentWidths((currentWidths) => {
|
|
2199
|
-
if (currentWidths[index] === nextWidth) return currentWidths;
|
|
2200
|
-
const nextWidths = [currentWidths[0], currentWidths[1]];
|
|
2201
|
-
nextWidths[index] = nextWidth;
|
|
2202
|
-
return nextWidths;
|
|
2203
|
-
});
|
|
2204
|
-
},
|
|
2205
|
-
style: styles6.optionContent,
|
|
2206
|
-
children: [
|
|
2207
|
-
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE4, color: iconColor }) : null,
|
|
2208
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles6.label, { color: labelColor }], children: label })
|
|
2209
|
-
]
|
|
2210
|
-
}
|
|
2211
|
-
)
|
|
2323
|
+
children: /* @__PURE__ */ jsxs(View, { style: styles7.optionContent, children: [
|
|
2324
|
+
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE4, color: iconColor }) : null,
|
|
2325
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles7.label, { color: labelColor }], children: label })
|
|
2326
|
+
] })
|
|
2212
2327
|
},
|
|
2213
2328
|
optionValue
|
|
2214
2329
|
);
|
|
@@ -2218,7 +2333,7 @@ var SegmentedToggle = forwardRef(
|
|
|
2218
2333
|
);
|
|
2219
2334
|
}
|
|
2220
2335
|
);
|
|
2221
|
-
var
|
|
2336
|
+
var styles7 = StyleSheet.create({
|
|
2222
2337
|
base: {
|
|
2223
2338
|
height: 44,
|
|
2224
2339
|
flexDirection: "row",
|
|
@@ -2356,7 +2471,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
2356
2471
|
{
|
|
2357
2472
|
...rest,
|
|
2358
2473
|
ref: setWrapperRef,
|
|
2359
|
-
style: [
|
|
2474
|
+
style: [styles8.wrapper, isOpen && styles8.wrapperOpen, disabled && styles8.disabled, style],
|
|
2360
2475
|
children: [
|
|
2361
2476
|
/* @__PURE__ */ jsxs(
|
|
2362
2477
|
Pressable,
|
|
@@ -2371,17 +2486,17 @@ var LanguageSwitcher = forwardRef(
|
|
|
2371
2486
|
onHoverIn: () => setTriggerHovered(true),
|
|
2372
2487
|
onHoverOut: () => setTriggerHovered(false),
|
|
2373
2488
|
style: ({ pressed }) => [
|
|
2374
|
-
|
|
2375
|
-
(triggerHovered || pressed || isOpen) &&
|
|
2489
|
+
styles8.trigger,
|
|
2490
|
+
(triggerHovered || pressed || isOpen) && styles8.triggerActive
|
|
2376
2491
|
],
|
|
2377
2492
|
children: [
|
|
2378
2493
|
/* @__PURE__ */ jsx(GlobeIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 }),
|
|
2379
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
2380
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
2494
|
+
/* @__PURE__ */ jsx(Text, { style: styles8.triggerLabel, numberOfLines: 1, children: selectedOption?.label ?? "" }),
|
|
2495
|
+
/* @__PURE__ */ jsx(View, { style: [styles8.chevron, isOpen && styles8.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 }) })
|
|
2381
2496
|
]
|
|
2382
2497
|
}
|
|
2383
2498
|
),
|
|
2384
|
-
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(View, { style:
|
|
2499
|
+
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(View, { style: styles8.menu, accessibilityRole: "menu", children: options.map((option) => {
|
|
2385
2500
|
const selected = option.value === selectedValue;
|
|
2386
2501
|
return /* @__PURE__ */ jsx(
|
|
2387
2502
|
Pressable,
|
|
@@ -2393,10 +2508,10 @@ var LanguageSwitcher = forwardRef(
|
|
|
2393
2508
|
onHoverIn: () => setHoveredValue(option.value),
|
|
2394
2509
|
onHoverOut: () => setHoveredValue(null),
|
|
2395
2510
|
style: ({ pressed }) => [
|
|
2396
|
-
|
|
2397
|
-
selected ?
|
|
2511
|
+
styles8.item,
|
|
2512
|
+
selected ? styles8.itemSelected : (hoveredValue === option.value || pressed) && styles8.itemHovered
|
|
2398
2513
|
],
|
|
2399
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
2514
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles8.itemLabel, selected && styles8.itemLabelSelected], children: option.label })
|
|
2400
2515
|
},
|
|
2401
2516
|
option.value
|
|
2402
2517
|
);
|
|
@@ -2406,7 +2521,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
2406
2521
|
);
|
|
2407
2522
|
}
|
|
2408
2523
|
);
|
|
2409
|
-
var
|
|
2524
|
+
var styles8 = StyleSheet.create({
|
|
2410
2525
|
wrapper: {
|
|
2411
2526
|
position: "relative",
|
|
2412
2527
|
width: CONTROL_WIDTH,
|
|
@@ -2502,17 +2617,17 @@ var StatCard = forwardRef(function StatCard2({
|
|
|
2502
2617
|
{
|
|
2503
2618
|
...rest,
|
|
2504
2619
|
ref: setContainerRef,
|
|
2505
|
-
style: [
|
|
2620
|
+
style: [styles9.base, style],
|
|
2506
2621
|
accessibilityRole: "text",
|
|
2507
2622
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
2508
2623
|
children: [
|
|
2509
2624
|
/* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }),
|
|
2510
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
2625
|
+
/* @__PURE__ */ jsx(Text, { style: styles9.label, children: label })
|
|
2511
2626
|
]
|
|
2512
2627
|
}
|
|
2513
2628
|
);
|
|
2514
2629
|
});
|
|
2515
|
-
var
|
|
2630
|
+
var styles9 = StyleSheet.create({
|
|
2516
2631
|
base: {
|
|
2517
2632
|
width: 204.5,
|
|
2518
2633
|
minHeight: 114,
|
|
@@ -2598,7 +2713,7 @@ var Button = forwardRef(
|
|
|
2598
2713
|
useApplyWebClassName(textRef, textClassName);
|
|
2599
2714
|
const iconNode = customIcon ?? /* @__PURE__ */ jsx(ArrowRightIcon, { size: metrics.iconSize, color: preset.iconColor });
|
|
2600
2715
|
const containerStyle = [
|
|
2601
|
-
|
|
2716
|
+
styles10.base,
|
|
2602
2717
|
{
|
|
2603
2718
|
minHeight: metrics.minHeight,
|
|
2604
2719
|
borderRadius: metrics.borderRadius,
|
|
@@ -2609,16 +2724,16 @@ var Button = forwardRef(
|
|
|
2609
2724
|
paddingRight: hasIcon ? metrics.paddingRightWithIcon : metrics.paddingRight,
|
|
2610
2725
|
gap: hasIcon ? metrics.gap : 0
|
|
2611
2726
|
},
|
|
2612
|
-
hasIcon ?
|
|
2613
|
-
disabled &&
|
|
2727
|
+
hasIcon ? styles10.contentWithIcon : styles10.contentWithoutIcon,
|
|
2728
|
+
disabled && styles10.disabled,
|
|
2614
2729
|
style
|
|
2615
2730
|
];
|
|
2616
2731
|
const labelStyle = [
|
|
2617
|
-
|
|
2732
|
+
styles10.label,
|
|
2618
2733
|
metrics.text,
|
|
2619
2734
|
{ color: preset.textColor },
|
|
2620
|
-
Platform.OS === "android" ?
|
|
2621
|
-
!hasIcon &&
|
|
2735
|
+
Platform.OS === "android" ? styles10.labelAndroid : null,
|
|
2736
|
+
!hasIcon && styles10.labelCentered,
|
|
2622
2737
|
textStyle
|
|
2623
2738
|
];
|
|
2624
2739
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2639,7 +2754,7 @@ var Button = forwardRef(
|
|
|
2639
2754
|
View,
|
|
2640
2755
|
{
|
|
2641
2756
|
style: [
|
|
2642
|
-
|
|
2757
|
+
styles10.iconContainer,
|
|
2643
2758
|
{
|
|
2644
2759
|
width: metrics.iconContainerSize,
|
|
2645
2760
|
height: metrics.iconContainerSize,
|
|
@@ -2655,7 +2770,7 @@ var Button = forwardRef(
|
|
|
2655
2770
|
);
|
|
2656
2771
|
}
|
|
2657
2772
|
);
|
|
2658
|
-
var
|
|
2773
|
+
var styles10 = StyleSheet.create({
|
|
2659
2774
|
base: {
|
|
2660
2775
|
flexDirection: "row",
|
|
2661
2776
|
alignItems: "center",
|
|
@@ -2739,13 +2854,13 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
2739
2854
|
accessibilityRole: "checkbox",
|
|
2740
2855
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
2741
2856
|
accessibilityState: { checked: isActive, disabled },
|
|
2742
|
-
style: [
|
|
2857
|
+
style: [styles11.root, disabled && styles11.disabled, style],
|
|
2743
2858
|
children: [
|
|
2744
2859
|
/* @__PURE__ */ jsx(
|
|
2745
2860
|
View,
|
|
2746
2861
|
{
|
|
2747
2862
|
style: [
|
|
2748
|
-
|
|
2863
|
+
styles11.box,
|
|
2749
2864
|
{
|
|
2750
2865
|
backgroundColor: chrome.backgroundColor,
|
|
2751
2866
|
borderColor: chrome.borderColor
|
|
@@ -2754,12 +2869,12 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
2754
2869
|
children: isActive ? /* @__PURE__ */ jsx(CheckIcon, { size: CHECK_SIZE, color: colors.primary, strokeWidth: CHECK_STROKE }) : null
|
|
2755
2870
|
}
|
|
2756
2871
|
),
|
|
2757
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
2872
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles11.label, labelStyle], children: labelContent }) : labelContent : null
|
|
2758
2873
|
]
|
|
2759
2874
|
}
|
|
2760
2875
|
);
|
|
2761
2876
|
});
|
|
2762
|
-
var
|
|
2877
|
+
var styles11 = StyleSheet.create({
|
|
2763
2878
|
root: {
|
|
2764
2879
|
flexDirection: "row",
|
|
2765
2880
|
alignItems: "center",
|
|
@@ -3010,9 +3125,9 @@ var DatePicker = forwardRef(
|
|
|
3010
3125
|
{
|
|
3011
3126
|
...rest,
|
|
3012
3127
|
ref: setRootRef,
|
|
3013
|
-
style: [
|
|
3128
|
+
style: [styles12.root, isOpen && styles12.rootOpen, disabled && styles12.disabled, style],
|
|
3014
3129
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3015
|
-
children: /* @__PURE__ */ jsxs(View, { style: [
|
|
3130
|
+
children: /* @__PURE__ */ jsxs(View, { style: [styles12.triggerWrap, isOpen && styles12.triggerWrapOpen], children: [
|
|
3016
3131
|
/* @__PURE__ */ jsxs(
|
|
3017
3132
|
Pressable,
|
|
3018
3133
|
{
|
|
@@ -3023,17 +3138,17 @@ var DatePicker = forwardRef(
|
|
|
3023
3138
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
3024
3139
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3025
3140
|
style: [
|
|
3026
|
-
|
|
3141
|
+
styles12.trigger,
|
|
3027
3142
|
{ borderColor: triggerBorderColor, backgroundColor: colors.grey700 }
|
|
3028
3143
|
],
|
|
3029
3144
|
children: [
|
|
3030
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
3031
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
3145
|
+
/* @__PURE__ */ jsx(Text, { style: [styles12.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: triggerLabel }),
|
|
3146
|
+
/* @__PURE__ */ jsx(View, { style: styles12.iconSlot, children: /* @__PURE__ */ jsx(CalendarOutlineIcon, { size: ICON_SIZE7, color: colors.grey100 }) })
|
|
3032
3147
|
]
|
|
3033
3148
|
}
|
|
3034
3149
|
),
|
|
3035
|
-
isOpen ? /* @__PURE__ */ jsxs(View, { style: [
|
|
3036
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
3150
|
+
isOpen ? /* @__PURE__ */ jsxs(View, { style: [styles12.menu, calendarStyle], children: [
|
|
3151
|
+
/* @__PURE__ */ jsxs(View, { style: styles12.calendarHeader, children: [
|
|
3037
3152
|
/* @__PURE__ */ jsx(
|
|
3038
3153
|
Pressable,
|
|
3039
3154
|
{
|
|
@@ -3041,11 +3156,11 @@ var DatePicker = forwardRef(
|
|
|
3041
3156
|
hitSlop: 8,
|
|
3042
3157
|
accessibilityRole: "button",
|
|
3043
3158
|
accessibilityLabel: "Previous month",
|
|
3044
|
-
style:
|
|
3159
|
+
style: styles12.navButton,
|
|
3045
3160
|
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white })
|
|
3046
3161
|
}
|
|
3047
3162
|
),
|
|
3048
|
-
/* @__PURE__ */ jsxs(Text, { style:
|
|
3163
|
+
/* @__PURE__ */ jsxs(Text, { style: styles12.monthHeading, children: [
|
|
3049
3164
|
monthNames[visibleMonth.getMonth()],
|
|
3050
3165
|
" ",
|
|
3051
3166
|
visibleMonth.getFullYear()
|
|
@@ -3057,13 +3172,13 @@ var DatePicker = forwardRef(
|
|
|
3057
3172
|
hitSlop: 8,
|
|
3058
3173
|
accessibilityRole: "button",
|
|
3059
3174
|
accessibilityLabel: "Next month",
|
|
3060
|
-
style:
|
|
3061
|
-
children: /* @__PURE__ */ jsx(View, { style:
|
|
3175
|
+
style: styles12.navButton,
|
|
3176
|
+
children: /* @__PURE__ */ jsx(View, { style: styles12.navIconMirror, children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white }) })
|
|
3062
3177
|
}
|
|
3063
3178
|
)
|
|
3064
3179
|
] }),
|
|
3065
3180
|
/* @__PURE__ */ jsxs(View, { children: [
|
|
3066
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
3181
|
+
/* @__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
3182
|
weeks.map((week, weekIndex) => {
|
|
3068
3183
|
let rangeHighlightStyle = null;
|
|
3069
3184
|
if (isRange && rangeValue.start && rangeValue.end) {
|
|
@@ -3100,13 +3215,13 @@ var DatePicker = forwardRef(
|
|
|
3100
3215
|
return /* @__PURE__ */ jsxs(
|
|
3101
3216
|
View,
|
|
3102
3217
|
{
|
|
3103
|
-
style: [
|
|
3218
|
+
style: [styles12.weekRow, weekIndex > 0 && styles12.weekRowSpaced],
|
|
3104
3219
|
children: [
|
|
3105
3220
|
rangeHighlightStyle ? /* @__PURE__ */ jsx(
|
|
3106
3221
|
View,
|
|
3107
3222
|
{
|
|
3108
3223
|
pointerEvents: "none",
|
|
3109
|
-
style: [
|
|
3224
|
+
style: [styles12.rangeHighlight, rangeHighlightStyle]
|
|
3110
3225
|
}
|
|
3111
3226
|
) : null,
|
|
3112
3227
|
week.map((day, dayIndex) => {
|
|
@@ -3129,7 +3244,7 @@ var DatePicker = forwardRef(
|
|
|
3129
3244
|
onHoverOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
3130
3245
|
onPressIn: () => setHoveredDayKey(dayKey),
|
|
3131
3246
|
onPressOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
3132
|
-
style:
|
|
3247
|
+
style: styles12.dayCellWrap,
|
|
3133
3248
|
accessibilityRole: "button",
|
|
3134
3249
|
accessibilityLabel: formatValue(day),
|
|
3135
3250
|
accessibilityState: {
|
|
@@ -3141,14 +3256,14 @@ var DatePicker = forwardRef(
|
|
|
3141
3256
|
View,
|
|
3142
3257
|
{
|
|
3143
3258
|
style: [
|
|
3144
|
-
|
|
3145
|
-
isSelectedEndpoint &&
|
|
3146
|
-
isHovered &&
|
|
3259
|
+
styles12.dayCircle,
|
|
3260
|
+
isSelectedEndpoint && styles12.dayCircleSelected,
|
|
3261
|
+
isHovered && styles12.dayCircleHovered
|
|
3147
3262
|
],
|
|
3148
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
3263
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles12.dayText, { color: dayTextColor }], children: day.getDate() })
|
|
3149
3264
|
}
|
|
3150
3265
|
),
|
|
3151
|
-
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsx(View, { style:
|
|
3266
|
+
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsx(View, { style: styles12.todayDot }) : null
|
|
3152
3267
|
]
|
|
3153
3268
|
},
|
|
3154
3269
|
dayIndex
|
|
@@ -3166,7 +3281,7 @@ var DatePicker = forwardRef(
|
|
|
3166
3281
|
);
|
|
3167
3282
|
}
|
|
3168
3283
|
);
|
|
3169
|
-
var
|
|
3284
|
+
var styles12 = StyleSheet.create({
|
|
3170
3285
|
root: {
|
|
3171
3286
|
width: DEFAULT_WIDTH,
|
|
3172
3287
|
gap: 8,
|
|
@@ -3445,13 +3560,13 @@ var Input = forwardRef(function Input2({
|
|
|
3445
3560
|
});
|
|
3446
3561
|
useApplyWebClassName(rootRef, className);
|
|
3447
3562
|
useApplyWebClassName(inputRef, inputClassName);
|
|
3448
|
-
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [
|
|
3449
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
3563
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles13.root, disabled && styles13.disabled, style], children: [
|
|
3564
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles13.label, { color: chrome.labelColor }], children: label }) : null,
|
|
3450
3565
|
/* @__PURE__ */ jsxs(
|
|
3451
3566
|
View,
|
|
3452
3567
|
{
|
|
3453
3568
|
style: [
|
|
3454
|
-
|
|
3569
|
+
styles13.field,
|
|
3455
3570
|
{
|
|
3456
3571
|
height: metrics.height,
|
|
3457
3572
|
borderRadius: metrics.borderRadius,
|
|
@@ -3466,7 +3581,7 @@ var Input = forwardRef(function Input2({
|
|
|
3466
3581
|
fieldStyle
|
|
3467
3582
|
],
|
|
3468
3583
|
children: [
|
|
3469
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [
|
|
3584
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [styles13.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: leftIconNode }) : null,
|
|
3470
3585
|
/* @__PURE__ */ jsx(
|
|
3471
3586
|
TextInput,
|
|
3472
3587
|
{
|
|
@@ -3490,11 +3605,11 @@ var Input = forwardRef(function Input2({
|
|
|
3490
3605
|
onBlur?.(event);
|
|
3491
3606
|
},
|
|
3492
3607
|
style: [
|
|
3493
|
-
|
|
3608
|
+
styles13.input,
|
|
3494
3609
|
metrics.text,
|
|
3495
3610
|
{ color: chrome.textColor },
|
|
3496
|
-
Platform.OS === "web" ?
|
|
3497
|
-
Platform.OS === "android" ?
|
|
3611
|
+
Platform.OS === "web" ? styles13.inputWeb : null,
|
|
3612
|
+
Platform.OS === "android" ? styles13.inputAndroid : null,
|
|
3498
3613
|
inputStyle
|
|
3499
3614
|
],
|
|
3500
3615
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -3506,20 +3621,20 @@ var Input = forwardRef(function Input2({
|
|
|
3506
3621
|
{
|
|
3507
3622
|
onPress: onRightIconPress,
|
|
3508
3623
|
disabled,
|
|
3509
|
-
style: [
|
|
3624
|
+
style: [styles13.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }],
|
|
3510
3625
|
accessibilityRole: "button",
|
|
3511
3626
|
accessibilityLabel: rightIconAccessibilityLabel,
|
|
3512
3627
|
hitSlop: 8,
|
|
3513
3628
|
children: rightIconNode
|
|
3514
3629
|
}
|
|
3515
|
-
) : /* @__PURE__ */ jsx(View, { style: [
|
|
3630
|
+
) : /* @__PURE__ */ jsx(View, { style: [styles13.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: rightIconNode }) : null
|
|
3516
3631
|
]
|
|
3517
3632
|
}
|
|
3518
3633
|
),
|
|
3519
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
3634
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles13.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
3520
3635
|
] });
|
|
3521
3636
|
});
|
|
3522
|
-
var
|
|
3637
|
+
var styles13 = StyleSheet.create({
|
|
3523
3638
|
root: {
|
|
3524
3639
|
width: DEFAULT_WIDTH2,
|
|
3525
3640
|
gap: 8,
|
|
@@ -3635,25 +3750,25 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
3635
3750
|
const next = Math.ceil(event.nativeEvent.layout.width);
|
|
3636
3751
|
setEllipsisWidth((current) => current === next ? current : next);
|
|
3637
3752
|
};
|
|
3638
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
3639
|
-
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style:
|
|
3753
|
+
return /* @__PURE__ */ jsxs(View, { style: styles14.multiValueRoot, children: [
|
|
3754
|
+
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style: styles14.measureRow, children: [
|
|
3640
3755
|
options.map((option) => /* @__PURE__ */ jsxs(
|
|
3641
3756
|
View,
|
|
3642
3757
|
{
|
|
3643
|
-
style:
|
|
3758
|
+
style: styles14.chip,
|
|
3644
3759
|
onLayout: (event) => handleChipLayout(option.value, event),
|
|
3645
3760
|
children: [
|
|
3646
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3647
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3761
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.chipLabel, numberOfLines: 1, children: option.label }),
|
|
3762
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.chipRemove, children: "\xD7" })
|
|
3648
3763
|
]
|
|
3649
3764
|
},
|
|
3650
3765
|
`measure-${option.value}`
|
|
3651
3766
|
)),
|
|
3652
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
3767
|
+
/* @__PURE__ */ jsx(View, { style: styles14.ellipsis, onLayout: handleEllipsisLayout, children: /* @__PURE__ */ jsx(Text, { style: styles14.ellipsisText, children: "..." }) })
|
|
3653
3768
|
] }),
|
|
3654
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
3655
|
-
visible.map((option) => /* @__PURE__ */ jsxs(View, { style:
|
|
3656
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3769
|
+
/* @__PURE__ */ jsxs(View, { style: styles14.chipsRow, onLayout: handleContainerLayout, children: [
|
|
3770
|
+
visible.map((option) => /* @__PURE__ */ jsxs(View, { style: styles14.chip, children: [
|
|
3771
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.chipLabel, numberOfLines: 1, children: option.label }),
|
|
3657
3772
|
/* @__PURE__ */ jsx(
|
|
3658
3773
|
Pressable,
|
|
3659
3774
|
{
|
|
@@ -3665,11 +3780,11 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
3665
3780
|
hitSlop: 6,
|
|
3666
3781
|
accessibilityRole: "button",
|
|
3667
3782
|
accessibilityLabel: `Remove ${option.label}`,
|
|
3668
|
-
children: /* @__PURE__ */ jsx(Text, { style:
|
|
3783
|
+
children: /* @__PURE__ */ jsx(Text, { style: styles14.chipRemove, children: "\xD7" })
|
|
3669
3784
|
}
|
|
3670
3785
|
)
|
|
3671
3786
|
] }, option.value)),
|
|
3672
|
-
hasOverflow ? /* @__PURE__ */ jsx(View, { style:
|
|
3787
|
+
hasOverflow ? /* @__PURE__ */ jsx(View, { style: styles14.ellipsis, children: /* @__PURE__ */ jsx(Text, { style: styles14.ellipsisText, children: "..." }) }) : null
|
|
3673
3788
|
] })
|
|
3674
3789
|
] });
|
|
3675
3790
|
}
|
|
@@ -3893,11 +4008,11 @@ var Select = forwardRef(
|
|
|
3893
4008
|
{
|
|
3894
4009
|
...rest,
|
|
3895
4010
|
ref: setRootRef,
|
|
3896
|
-
style: [
|
|
4011
|
+
style: [styles14.root, isOpen && styles14.rootOpen, disabled && styles14.disabled, style],
|
|
3897
4012
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3898
4013
|
children: [
|
|
3899
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
3900
|
-
/* @__PURE__ */ jsxs(View, { style: [
|
|
4014
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles14.label, { color: labelColor }], children: label }) : null,
|
|
4015
|
+
/* @__PURE__ */ jsxs(View, { style: [styles14.triggerWrap, isOpen && styles14.triggerWrapOpen], children: [
|
|
3901
4016
|
/* @__PURE__ */ jsxs(
|
|
3902
4017
|
Pressable,
|
|
3903
4018
|
{
|
|
@@ -3908,29 +4023,29 @@ var Select = forwardRef(
|
|
|
3908
4023
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
3909
4024
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3910
4025
|
style: [
|
|
3911
|
-
|
|
4026
|
+
styles14.trigger,
|
|
3912
4027
|
{
|
|
3913
4028
|
borderColor: triggerBorderColor,
|
|
3914
4029
|
backgroundColor: colors.grey700
|
|
3915
4030
|
}
|
|
3916
4031
|
],
|
|
3917
4032
|
children: [
|
|
3918
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style:
|
|
3919
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4033
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: styles14.iconSlot, children: leftIconNode }) : null,
|
|
4034
|
+
/* @__PURE__ */ jsx(View, { style: styles14.triggerContent, children: multiple && hasValue ? /* @__PURE__ */ jsx(
|
|
3920
4035
|
MultiValueChips,
|
|
3921
4036
|
{
|
|
3922
4037
|
options: selectedOptions,
|
|
3923
4038
|
disabled,
|
|
3924
4039
|
onRemove: handleRemoveChip
|
|
3925
4040
|
}
|
|
3926
|
-
) : /* @__PURE__ */ jsx(Text, { style: [
|
|
3927
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
4041
|
+
) : /* @__PURE__ */ jsx(Text, { style: [styles14.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: multiple ? placeholder : singleLabel }) }),
|
|
4042
|
+
/* @__PURE__ */ jsx(View, { style: [styles14.iconSlot, isOpen && styles14.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE8, color: isOpen ? colors.primary : colors.grey100 }) })
|
|
3928
4043
|
]
|
|
3929
4044
|
}
|
|
3930
4045
|
),
|
|
3931
|
-
isOpen ? /* @__PURE__ */ jsxs(View, { style:
|
|
3932
|
-
showSearch ? /* @__PURE__ */ jsxs(View, { style:
|
|
3933
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4046
|
+
isOpen ? /* @__PURE__ */ jsxs(View, { style: styles14.menu, children: [
|
|
4047
|
+
showSearch ? /* @__PURE__ */ jsxs(View, { style: styles14.searchField, children: [
|
|
4048
|
+
/* @__PURE__ */ jsx(View, { style: styles14.iconSlot, children: /* @__PURE__ */ jsx(SearchIcon, { size: ICON_SIZE8, color: colors.grey100 }) }),
|
|
3934
4049
|
/* @__PURE__ */ jsx(
|
|
3935
4050
|
TextInput,
|
|
3936
4051
|
{
|
|
@@ -3941,9 +4056,9 @@ var Select = forwardRef(
|
|
|
3941
4056
|
placeholder: searchPlaceholder,
|
|
3942
4057
|
placeholderTextColor: colors.grey100,
|
|
3943
4058
|
style: [
|
|
3944
|
-
|
|
3945
|
-
Platform.OS === "web" ?
|
|
3946
|
-
Platform.OS === "android" ?
|
|
4059
|
+
styles14.searchInput,
|
|
4060
|
+
Platform.OS === "web" ? styles14.searchInputWeb : null,
|
|
4061
|
+
Platform.OS === "android" ? styles14.searchInputAndroid : null
|
|
3947
4062
|
],
|
|
3948
4063
|
accessibilityLabel: searchPlaceholder
|
|
3949
4064
|
}
|
|
@@ -3952,12 +4067,12 @@ var Select = forwardRef(
|
|
|
3952
4067
|
/* @__PURE__ */ jsxs(
|
|
3953
4068
|
ScrollView,
|
|
3954
4069
|
{
|
|
3955
|
-
style:
|
|
3956
|
-
contentContainerStyle:
|
|
4070
|
+
style: styles14.optionList,
|
|
4071
|
+
contentContainerStyle: styles14.optionListContent,
|
|
3957
4072
|
keyboardShouldPersistTaps: "handled",
|
|
3958
4073
|
showsVerticalScrollIndicator: false,
|
|
3959
4074
|
children: [
|
|
3960
|
-
loading ? /* @__PURE__ */ jsx(View, { style:
|
|
4075
|
+
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
4076
|
!loading && filteredOptions.map((option) => {
|
|
3962
4077
|
const isSelected = selectedValues.includes(option.value);
|
|
3963
4078
|
const isHovered = hoveredValue === option.value;
|
|
@@ -3974,14 +4089,14 @@ var Select = forwardRef(
|
|
|
3974
4089
|
accessibilityRole: multiple ? "checkbox" : "button",
|
|
3975
4090
|
accessibilityState: { selected: isSelected, checked: isSelected, disabled },
|
|
3976
4091
|
style: [
|
|
3977
|
-
|
|
4092
|
+
styles14.item,
|
|
3978
4093
|
{
|
|
3979
4094
|
backgroundColor: itemBackground(visualState)
|
|
3980
4095
|
}
|
|
3981
4096
|
],
|
|
3982
4097
|
children: [
|
|
3983
|
-
multiple ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
3984
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
4098
|
+
multiple ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles14.itemCheckbox, children: /* @__PURE__ */ jsx(Checkbox, { value: isSelected, variant: "light" }) }) : null,
|
|
4099
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.itemLabel, numberOfLines: 1, children: option.label })
|
|
3985
4100
|
]
|
|
3986
4101
|
},
|
|
3987
4102
|
option.value
|
|
@@ -3992,13 +4107,13 @@ var Select = forwardRef(
|
|
|
3992
4107
|
)
|
|
3993
4108
|
] }) : null
|
|
3994
4109
|
] }),
|
|
3995
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4110
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles14.hint, { color: hintColor }], children: hint }) : null
|
|
3996
4111
|
]
|
|
3997
4112
|
}
|
|
3998
4113
|
);
|
|
3999
4114
|
}
|
|
4000
4115
|
);
|
|
4001
|
-
var
|
|
4116
|
+
var styles14 = StyleSheet.create({
|
|
4002
4117
|
root: {
|
|
4003
4118
|
width: DEFAULT_WIDTH3,
|
|
4004
4119
|
gap: 8,
|
|
@@ -4260,13 +4375,13 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
4260
4375
|
const resolvedAccessibilityLabel = accessibilityLabel ?? (showLabel ? void 0 : label);
|
|
4261
4376
|
useApplyWebClassName(rootRef, className);
|
|
4262
4377
|
useApplyWebClassName(inputRef, inputClassName);
|
|
4263
|
-
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [
|
|
4264
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4378
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles15.root, disabled && styles15.disabled, style], children: [
|
|
4379
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles15.label, { color: chrome.labelColor }], children: label }) : null,
|
|
4265
4380
|
/* @__PURE__ */ jsx(
|
|
4266
4381
|
View,
|
|
4267
4382
|
{
|
|
4268
4383
|
style: [
|
|
4269
|
-
|
|
4384
|
+
styles15.field,
|
|
4270
4385
|
{
|
|
4271
4386
|
borderColor: chrome.borderColor,
|
|
4272
4387
|
backgroundColor: chrome.backgroundColor
|
|
@@ -4298,11 +4413,11 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
4298
4413
|
onBlur?.(event);
|
|
4299
4414
|
},
|
|
4300
4415
|
style: [
|
|
4301
|
-
|
|
4416
|
+
styles15.input,
|
|
4302
4417
|
textareaTypography.field,
|
|
4303
4418
|
{ color: chrome.textColor },
|
|
4304
|
-
Platform.OS === "web" ?
|
|
4305
|
-
Platform.OS === "android" ?
|
|
4419
|
+
Platform.OS === "web" ? styles15.inputWeb : null,
|
|
4420
|
+
Platform.OS === "android" ? styles15.inputAndroid : null,
|
|
4306
4421
|
inputStyle
|
|
4307
4422
|
],
|
|
4308
4423
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -4311,10 +4426,10 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
4311
4426
|
)
|
|
4312
4427
|
}
|
|
4313
4428
|
),
|
|
4314
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4429
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles15.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
4315
4430
|
] });
|
|
4316
4431
|
});
|
|
4317
|
-
var
|
|
4432
|
+
var styles15 = StyleSheet.create({
|
|
4318
4433
|
root: {
|
|
4319
4434
|
width: DEFAULT_WIDTH4,
|
|
4320
4435
|
gap: 8,
|
|
@@ -4414,13 +4529,13 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
4414
4529
|
accessibilityRole: "switch",
|
|
4415
4530
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
4416
4531
|
accessibilityState: { checked: isActive, disabled },
|
|
4417
|
-
style: [
|
|
4532
|
+
style: [styles16.pressable, disabled && styles16.disabled, style],
|
|
4418
4533
|
children: [
|
|
4419
4534
|
/* @__PURE__ */ jsx(
|
|
4420
4535
|
Animated.View,
|
|
4421
4536
|
{
|
|
4422
4537
|
style: [
|
|
4423
|
-
|
|
4538
|
+
styles16.track,
|
|
4424
4539
|
{
|
|
4425
4540
|
backgroundColor: trackBackgroundColor
|
|
4426
4541
|
}
|
|
@@ -4429,7 +4544,7 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
4429
4544
|
Animated.View,
|
|
4430
4545
|
{
|
|
4431
4546
|
style: [
|
|
4432
|
-
|
|
4547
|
+
styles16.thumb,
|
|
4433
4548
|
{
|
|
4434
4549
|
transform: [{ translateX: thumbTranslateX }]
|
|
4435
4550
|
}
|
|
@@ -4438,12 +4553,12 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
4438
4553
|
)
|
|
4439
4554
|
}
|
|
4440
4555
|
),
|
|
4441
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4556
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles16.label, labelStyle], children: labelContent }) : labelContent : null
|
|
4442
4557
|
]
|
|
4443
4558
|
}
|
|
4444
4559
|
);
|
|
4445
4560
|
});
|
|
4446
|
-
var
|
|
4561
|
+
var styles16 = StyleSheet.create({
|
|
4447
4562
|
pressable: {
|
|
4448
4563
|
flexDirection: "row",
|
|
4449
4564
|
alignItems: "center",
|
|
@@ -4518,21 +4633,21 @@ var RatingInput = forwardRef(
|
|
|
4518
4633
|
{
|
|
4519
4634
|
...rest,
|
|
4520
4635
|
ref: setContainerRef,
|
|
4521
|
-
style: [
|
|
4636
|
+
style: [styles17.root, disabled && styles17.disabled, style],
|
|
4522
4637
|
children: [
|
|
4523
|
-
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [
|
|
4638
|
+
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles17.value, valueStyle], children: selectedValue.toFixed(precision) }) : null,
|
|
4524
4639
|
/* @__PURE__ */ jsx(
|
|
4525
4640
|
View,
|
|
4526
4641
|
{
|
|
4527
4642
|
accessibilityRole: readOnly ? "image" : "radiogroup",
|
|
4528
4643
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
4529
4644
|
accessibilityState: { disabled },
|
|
4530
|
-
style: [
|
|
4645
|
+
style: [styles17.stars, { gap: resolvedStarGap }],
|
|
4531
4646
|
children: Array.from({ length: STAR_COUNT }, (_, index) => {
|
|
4532
4647
|
const starValue = index + 1;
|
|
4533
4648
|
const isSelected = starValue <= selectedStarCount;
|
|
4534
4649
|
const icon = isSelected ? /* @__PURE__ */ jsx(StarFilledIcon, { size: iconWidth, height: iconHeight }) : /* @__PURE__ */ jsx(StarIcon, { size: iconWidth, height: iconHeight });
|
|
4535
|
-
const itemStyle = [
|
|
4650
|
+
const itemStyle = [styles17.starItem, { width: size, height: size }];
|
|
4536
4651
|
if (readOnly) {
|
|
4537
4652
|
return /* @__PURE__ */ jsx(View, { style: itemStyle, children: icon }, starValue);
|
|
4538
4653
|
}
|
|
@@ -4558,7 +4673,7 @@ var RatingInput = forwardRef(
|
|
|
4558
4673
|
);
|
|
4559
4674
|
}
|
|
4560
4675
|
);
|
|
4561
|
-
var
|
|
4676
|
+
var styles17 = StyleSheet.create({
|
|
4562
4677
|
root: {
|
|
4563
4678
|
flexDirection: "row",
|
|
4564
4679
|
alignItems: "center",
|
|
@@ -4622,19 +4737,19 @@ var CommentCard = forwardRef(
|
|
|
4622
4737
|
setExpanded(next);
|
|
4623
4738
|
onExpandedChange?.(next);
|
|
4624
4739
|
};
|
|
4625
|
-
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [
|
|
4626
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
4627
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4740
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [styles18.root, style], children: [
|
|
4741
|
+
/* @__PURE__ */ jsxs(View, { style: styles18.header, children: [
|
|
4742
|
+
/* @__PURE__ */ jsx(View, { style: styles18.avatar, children: hasImage ? /* @__PURE__ */ jsx(
|
|
4628
4743
|
Image,
|
|
4629
4744
|
{
|
|
4630
4745
|
source: { uri: imageUrl ?? void 0 },
|
|
4631
|
-
style:
|
|
4746
|
+
style: styles18.avatarImage,
|
|
4632
4747
|
onError: () => setImageFailed(true)
|
|
4633
4748
|
}
|
|
4634
4749
|
) : /* @__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:
|
|
4750
|
+
/* @__PURE__ */ jsxs(View, { style: styles18.identity, children: [
|
|
4751
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles18.name, children: userName }),
|
|
4752
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles18.date, children: date })
|
|
4638
4753
|
] }),
|
|
4639
4754
|
/* @__PURE__ */ jsx(RatingInput, { value: rating, readOnly: true, showValue: false, size: 16 })
|
|
4640
4755
|
] }),
|
|
@@ -4642,7 +4757,7 @@ var CommentCard = forwardRef(
|
|
|
4642
4757
|
Text,
|
|
4643
4758
|
{
|
|
4644
4759
|
numberOfLines: expanded ? void 0 : maxCommentLines,
|
|
4645
|
-
style: [
|
|
4760
|
+
style: [styles18.comment, commentStyle],
|
|
4646
4761
|
children: commentText
|
|
4647
4762
|
}
|
|
4648
4763
|
),
|
|
@@ -4655,14 +4770,14 @@ var CommentCard = forwardRef(
|
|
|
4655
4770
|
hitSlop: 6,
|
|
4656
4771
|
onHoverIn: () => setActionHovered(true),
|
|
4657
4772
|
onHoverOut: () => setActionHovered(false),
|
|
4658
|
-
style:
|
|
4773
|
+
style: styles18.action,
|
|
4659
4774
|
children: /* @__PURE__ */ jsx(
|
|
4660
4775
|
Text,
|
|
4661
4776
|
{
|
|
4662
4777
|
style: [
|
|
4663
|
-
|
|
4664
|
-
expanded &&
|
|
4665
|
-
actionHovered && (expanded ?
|
|
4778
|
+
styles18.actionText,
|
|
4779
|
+
expanded && styles18.closeActionText,
|
|
4780
|
+
actionHovered && (expanded ? styles18.closeActionTextHovered : styles18.openActionTextHovered)
|
|
4666
4781
|
],
|
|
4667
4782
|
children: expanded ? readLessLabel : readMoreLabel
|
|
4668
4783
|
}
|
|
@@ -4672,7 +4787,7 @@ var CommentCard = forwardRef(
|
|
|
4672
4787
|
] });
|
|
4673
4788
|
}
|
|
4674
4789
|
);
|
|
4675
|
-
var
|
|
4790
|
+
var styles18 = StyleSheet.create({
|
|
4676
4791
|
root: {
|
|
4677
4792
|
width: CARD_WIDTH,
|
|
4678
4793
|
minHeight: CARD_MIN_HEIGHT,
|
|
@@ -5111,7 +5226,7 @@ var Range = forwardRef(function Range2({
|
|
|
5111
5226
|
...rest,
|
|
5112
5227
|
ref: setRootRef,
|
|
5113
5228
|
onLayout,
|
|
5114
|
-
style: [
|
|
5229
|
+
style: [styles19.root, disabled && styles19.disabled, style],
|
|
5115
5230
|
children: [
|
|
5116
5231
|
/* @__PURE__ */ jsxs(
|
|
5117
5232
|
Pressable,
|
|
@@ -5125,16 +5240,16 @@ var Range = forwardRef(function Range2({
|
|
|
5125
5240
|
updateNearestFromTrack(event.nativeEvent.offsetX);
|
|
5126
5241
|
} : void 0,
|
|
5127
5242
|
onPress: Platform.OS === "web" ? void 0 : handleTrackPress,
|
|
5128
|
-
style:
|
|
5243
|
+
style: styles19.sliderPlane,
|
|
5129
5244
|
tabIndex: -1,
|
|
5130
5245
|
children: [
|
|
5131
|
-
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
5246
|
+
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles19.track }),
|
|
5132
5247
|
/* @__PURE__ */ jsx(
|
|
5133
5248
|
View,
|
|
5134
5249
|
{
|
|
5135
5250
|
pointerEvents: "none",
|
|
5136
5251
|
style: [
|
|
5137
|
-
|
|
5252
|
+
styles19.activeTrack,
|
|
5138
5253
|
{
|
|
5139
5254
|
left: TRACK_HORIZONTAL_INSET + fromOffset,
|
|
5140
5255
|
width: toOffset - fromOffset + THUMB_SIZE2
|
|
@@ -5176,9 +5291,9 @@ var Range = forwardRef(function Range2({
|
|
|
5176
5291
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveFrom, updateFromInput),
|
|
5177
5292
|
pointerEvents: disabled ? "none" : "auto",
|
|
5178
5293
|
style: [
|
|
5179
|
-
|
|
5180
|
-
Platform.OS === "web" &&
|
|
5181
|
-
focusedThumb === "from" && Platform.OS === "web" &&
|
|
5294
|
+
styles19.thumb,
|
|
5295
|
+
Platform.OS === "web" && styles19.thumbWeb,
|
|
5296
|
+
focusedThumb === "from" && Platform.OS === "web" && styles19.thumbFocusedWeb,
|
|
5182
5297
|
{ left: TRACK_HORIZONTAL_INSET + fromOffset }
|
|
5183
5298
|
],
|
|
5184
5299
|
tabIndex: disabled ? -1 : 0
|
|
@@ -5218,9 +5333,9 @@ var Range = forwardRef(function Range2({
|
|
|
5218
5333
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveTo, updateToInput),
|
|
5219
5334
|
pointerEvents: disabled ? "none" : "auto",
|
|
5220
5335
|
style: [
|
|
5221
|
-
|
|
5222
|
-
Platform.OS === "web" &&
|
|
5223
|
-
focusedThumb === "to" && Platform.OS === "web" &&
|
|
5336
|
+
styles19.thumb,
|
|
5337
|
+
Platform.OS === "web" && styles19.thumbWeb,
|
|
5338
|
+
focusedThumb === "to" && Platform.OS === "web" && styles19.thumbFocusedWeb,
|
|
5224
5339
|
{ left: TRACK_HORIZONTAL_INSET + toOffset }
|
|
5225
5340
|
],
|
|
5226
5341
|
tabIndex: disabled ? -1 : 0
|
|
@@ -5229,7 +5344,7 @@ var Range = forwardRef(function Range2({
|
|
|
5229
5344
|
]
|
|
5230
5345
|
}
|
|
5231
5346
|
),
|
|
5232
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
5347
|
+
/* @__PURE__ */ jsxs(View, { style: styles19.inputs, children: [
|
|
5233
5348
|
/* @__PURE__ */ jsx(
|
|
5234
5349
|
RangeInput,
|
|
5235
5350
|
{
|
|
@@ -5280,7 +5395,7 @@ function RangeInput({
|
|
|
5280
5395
|
placeholder,
|
|
5281
5396
|
value
|
|
5282
5397
|
}) {
|
|
5283
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
5398
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles19.inputField, focused && styles19.inputFieldFocused], children: [
|
|
5284
5399
|
/* @__PURE__ */ jsx(
|
|
5285
5400
|
TextInput,
|
|
5286
5401
|
{
|
|
@@ -5296,15 +5411,15 @@ function RangeInput({
|
|
|
5296
5411
|
placeholder,
|
|
5297
5412
|
placeholderTextColor: colors.grey150,
|
|
5298
5413
|
returnKeyType: "done",
|
|
5299
|
-
style: [
|
|
5414
|
+
style: [styles19.input, Platform.OS === "web" && styles19.inputWeb],
|
|
5300
5415
|
tabIndex: disabled ? -1 : void 0,
|
|
5301
5416
|
value
|
|
5302
5417
|
}
|
|
5303
5418
|
),
|
|
5304
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
5419
|
+
/* @__PURE__ */ jsx(View, { style: styles19.currencySlot, children: /* @__PURE__ */ jsx(Text, { style: styles19.currency, children: currency }) })
|
|
5305
5420
|
] });
|
|
5306
5421
|
}
|
|
5307
|
-
var
|
|
5422
|
+
var styles19 = StyleSheet.create({
|
|
5308
5423
|
root: {
|
|
5309
5424
|
width: DEFAULT_WIDTH5,
|
|
5310
5425
|
gap: 15,
|
|
@@ -5408,6 +5523,6 @@ var styles18 = StyleSheet.create({
|
|
|
5408
5523
|
}
|
|
5409
5524
|
});
|
|
5410
5525
|
|
|
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 };
|
|
5526
|
+
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
5527
|
//# sourceMappingURL=index.js.map
|
|
5413
5528
|
//# sourceMappingURL=index.js.map
|