@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.cjs
CHANGED
|
@@ -105,7 +105,7 @@ var segmentedToggleTypography = {
|
|
|
105
105
|
fontFamily: fonts.sans,
|
|
106
106
|
fontSize: 12,
|
|
107
107
|
fontWeight: "500",
|
|
108
|
-
lineHeight:
|
|
108
|
+
lineHeight: 14,
|
|
109
109
|
letterSpacing: 0
|
|
110
110
|
};
|
|
111
111
|
var languageSwitcherTypography = {
|
|
@@ -1459,6 +1459,138 @@ function useApplyWebClassName(ref, className, enabled = true) {
|
|
|
1459
1459
|
};
|
|
1460
1460
|
}, [ref, className, enabled]);
|
|
1461
1461
|
}
|
|
1462
|
+
var Amenity = react.forwardRef(function Amenity2({
|
|
1463
|
+
icon,
|
|
1464
|
+
label,
|
|
1465
|
+
variant = "display",
|
|
1466
|
+
selected,
|
|
1467
|
+
defaultSelected = false,
|
|
1468
|
+
onSelectedChange,
|
|
1469
|
+
disabled = false,
|
|
1470
|
+
style,
|
|
1471
|
+
labelStyle,
|
|
1472
|
+
className,
|
|
1473
|
+
accessibilityLabel,
|
|
1474
|
+
...rest
|
|
1475
|
+
}, forwardedRef) {
|
|
1476
|
+
const rootRef = react.useRef(null);
|
|
1477
|
+
const setRootRef = react.useMemo(() => mergeRefs(rootRef, forwardedRef), [forwardedRef]);
|
|
1478
|
+
const isControlled = typeof selected === "boolean";
|
|
1479
|
+
const [uncontrolledSelected, setUncontrolledSelected] = react.useState(defaultSelected);
|
|
1480
|
+
const isSelected = isControlled ? selected : uncontrolledSelected;
|
|
1481
|
+
const isSelectable = variant === "selectable";
|
|
1482
|
+
const iconColor = isSelectable && isSelected ? colors.primary : colors.white;
|
|
1483
|
+
useApplyWebClassName(rootRef, className?.trim() || void 0);
|
|
1484
|
+
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1485
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles.iconSlot, children: /* @__PURE__ */ jsxRuntime.jsx(AmenityIcon, { color: iconColor, name: icon }) }),
|
|
1486
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1487
|
+
reactNative.Text,
|
|
1488
|
+
{
|
|
1489
|
+
style: [
|
|
1490
|
+
styles.label,
|
|
1491
|
+
isSelectable ? styles.selectableLabel : styles.displayLabel,
|
|
1492
|
+
reactNative.Platform.OS === "android" ? styles.labelAndroid : null,
|
|
1493
|
+
labelStyle
|
|
1494
|
+
],
|
|
1495
|
+
children: label
|
|
1496
|
+
}
|
|
1497
|
+
)
|
|
1498
|
+
] });
|
|
1499
|
+
if (!isSelectable) {
|
|
1500
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1501
|
+
reactNative.View,
|
|
1502
|
+
{
|
|
1503
|
+
...rest,
|
|
1504
|
+
ref: setRootRef,
|
|
1505
|
+
accessibilityLabel: accessibilityLabel ?? label,
|
|
1506
|
+
accessibilityRole: "text",
|
|
1507
|
+
style: [styles.base, styles.display, style],
|
|
1508
|
+
children: content
|
|
1509
|
+
}
|
|
1510
|
+
);
|
|
1511
|
+
}
|
|
1512
|
+
const handlePress = () => {
|
|
1513
|
+
if (disabled) return;
|
|
1514
|
+
const nextSelected = !isSelected;
|
|
1515
|
+
if (!isControlled) setUncontrolledSelected(nextSelected);
|
|
1516
|
+
onSelectedChange?.(nextSelected);
|
|
1517
|
+
};
|
|
1518
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1519
|
+
reactNative.Pressable,
|
|
1520
|
+
{
|
|
1521
|
+
...rest,
|
|
1522
|
+
ref: setRootRef,
|
|
1523
|
+
accessibilityLabel: accessibilityLabel ?? label,
|
|
1524
|
+
accessibilityRole: "checkbox",
|
|
1525
|
+
accessibilityState: { checked: isSelected, disabled },
|
|
1526
|
+
disabled,
|
|
1527
|
+
onPress: handlePress,
|
|
1528
|
+
style: [
|
|
1529
|
+
styles.base,
|
|
1530
|
+
styles.selectable,
|
|
1531
|
+
isSelected && styles.selected,
|
|
1532
|
+
disabled && styles.disabled,
|
|
1533
|
+
style
|
|
1534
|
+
],
|
|
1535
|
+
children: content
|
|
1536
|
+
}
|
|
1537
|
+
);
|
|
1538
|
+
});
|
|
1539
|
+
var styles = reactNative.StyleSheet.create({
|
|
1540
|
+
base: {
|
|
1541
|
+
height: 44,
|
|
1542
|
+
paddingVertical: 12,
|
|
1543
|
+
paddingHorizontal: 16,
|
|
1544
|
+
flexDirection: "row",
|
|
1545
|
+
alignItems: "center",
|
|
1546
|
+
alignSelf: "flex-start",
|
|
1547
|
+
backgroundColor: colors.grey700
|
|
1548
|
+
},
|
|
1549
|
+
display: {
|
|
1550
|
+
gap: 8,
|
|
1551
|
+
borderRadius: 39,
|
|
1552
|
+
backgroundColor: colors.grey750
|
|
1553
|
+
},
|
|
1554
|
+
selectable: {
|
|
1555
|
+
gap: 12,
|
|
1556
|
+
borderWidth: 1,
|
|
1557
|
+
borderColor: "transparent",
|
|
1558
|
+
borderStyle: "solid",
|
|
1559
|
+
borderRadius: 79
|
|
1560
|
+
},
|
|
1561
|
+
selected: {
|
|
1562
|
+
borderColor: colors.primary
|
|
1563
|
+
},
|
|
1564
|
+
disabled: {
|
|
1565
|
+
opacity: 0.6
|
|
1566
|
+
},
|
|
1567
|
+
iconSlot: {
|
|
1568
|
+
width: 20,
|
|
1569
|
+
height: 20,
|
|
1570
|
+
alignItems: "center",
|
|
1571
|
+
justifyContent: "center",
|
|
1572
|
+
flexShrink: 0
|
|
1573
|
+
},
|
|
1574
|
+
label: {
|
|
1575
|
+
fontFamily: fonts.sans,
|
|
1576
|
+
color: colors.white
|
|
1577
|
+
},
|
|
1578
|
+
displayLabel: {
|
|
1579
|
+
fontSize: 14,
|
|
1580
|
+
fontWeight: "500",
|
|
1581
|
+
lineHeight: 14,
|
|
1582
|
+
letterSpacing: 0
|
|
1583
|
+
},
|
|
1584
|
+
selectableLabel: {
|
|
1585
|
+
fontSize: 12,
|
|
1586
|
+
fontWeight: "700",
|
|
1587
|
+
lineHeight: 13.44,
|
|
1588
|
+
letterSpacing: 0
|
|
1589
|
+
},
|
|
1590
|
+
labelAndroid: {
|
|
1591
|
+
includeFontPadding: false
|
|
1592
|
+
}
|
|
1593
|
+
});
|
|
1462
1594
|
var ITEM_RADIUS = 12;
|
|
1463
1595
|
var ICON_SIZE = 16;
|
|
1464
1596
|
var MenuItem = react.forwardRef(function MenuItem2({
|
|
@@ -1513,19 +1645,19 @@ var MenuItem = react.forwardRef(function MenuItem2({
|
|
|
1513
1645
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
1514
1646
|
accessibilityState: { disabled },
|
|
1515
1647
|
style: [
|
|
1516
|
-
|
|
1648
|
+
styles2.root,
|
|
1517
1649
|
{ backgroundColor: resolvedBackground },
|
|
1518
|
-
disabled &&
|
|
1650
|
+
disabled && styles2.disabled,
|
|
1519
1651
|
style
|
|
1520
1652
|
],
|
|
1521
1653
|
children: [
|
|
1522
|
-
icon ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
1523
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1654
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles2.iconSlot, children: icon }) : null,
|
|
1655
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles2.label, labelStyle], numberOfLines: 1, children: label })
|
|
1524
1656
|
]
|
|
1525
1657
|
}
|
|
1526
1658
|
);
|
|
1527
1659
|
});
|
|
1528
|
-
var
|
|
1660
|
+
var styles2 = reactNative.StyleSheet.create({
|
|
1529
1661
|
root: {
|
|
1530
1662
|
minHeight: 40,
|
|
1531
1663
|
borderRadius: ITEM_RADIUS,
|
|
@@ -1593,10 +1725,10 @@ var FavoritesButton = react.forwardRef(
|
|
|
1593
1725
|
hitSlop,
|
|
1594
1726
|
onPress: handlePress,
|
|
1595
1727
|
style: ({ pressed }) => [
|
|
1596
|
-
|
|
1728
|
+
styles3.button,
|
|
1597
1729
|
webBlurStyle,
|
|
1598
|
-
pressed &&
|
|
1599
|
-
disabled &&
|
|
1730
|
+
pressed && styles3.pressed,
|
|
1731
|
+
disabled && styles3.disabled,
|
|
1600
1732
|
style
|
|
1601
1733
|
],
|
|
1602
1734
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1612,7 +1744,7 @@ var FavoritesButton = react.forwardRef(
|
|
|
1612
1744
|
);
|
|
1613
1745
|
}
|
|
1614
1746
|
);
|
|
1615
|
-
var
|
|
1747
|
+
var styles3 = reactNative.StyleSheet.create({
|
|
1616
1748
|
button: {
|
|
1617
1749
|
padding: 12,
|
|
1618
1750
|
gap: 10,
|
|
@@ -1790,7 +1922,7 @@ var Avatar = react.forwardRef(function Avatar2({
|
|
|
1790
1922
|
}, [isOpen, closeAndFocusTrigger]);
|
|
1791
1923
|
const hasImage = Boolean(imageUrl) && !imageFailed;
|
|
1792
1924
|
const resolvedAccessibilityLabel = accessibilityLabel ?? [name, email].filter(Boolean).join(", ");
|
|
1793
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: wrapperRef, style: [
|
|
1925
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: wrapperRef, style: [styles4.wrapper, isOpen && styles4.wrapperOpen], children: [
|
|
1794
1926
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1795
1927
|
reactNative.Pressable,
|
|
1796
1928
|
{
|
|
@@ -1802,25 +1934,25 @@ var Avatar = react.forwardRef(function Avatar2({
|
|
|
1802
1934
|
accessibilityRole: isInteractive ? "button" : void 0,
|
|
1803
1935
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
1804
1936
|
accessibilityState: isInteractive ? { disabled, expanded: hasMenu ? isOpen : void 0 } : void 0,
|
|
1805
|
-
style: [
|
|
1937
|
+
style: [styles4.root, disabled && styles4.disabled, style],
|
|
1806
1938
|
children: [
|
|
1807
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
1939
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles4.imageWrap, children: hasImage ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1808
1940
|
reactNative.Image,
|
|
1809
1941
|
{
|
|
1810
1942
|
source: { uri: imageUrl ?? void 0 },
|
|
1811
|
-
style:
|
|
1943
|
+
style: styles4.image,
|
|
1812
1944
|
onError: () => setImageFailed(true)
|
|
1813
1945
|
}
|
|
1814
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
1815
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
1816
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
1817
|
-
email ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
1946
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles4.imageFallback, children: /* @__PURE__ */ jsxRuntime.jsx(UserIcon, { size: FALLBACK_ICON_SIZE, color: colors.primary }) }) }),
|
|
1947
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles4.textColumn, children: [
|
|
1948
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles4.name, numberOfLines: 1, children: name }),
|
|
1949
|
+
email ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles4.email, numberOfLines: 1, children: email }) : null
|
|
1818
1950
|
] }),
|
|
1819
|
-
showChevron ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [
|
|
1951
|
+
showChevron ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles4.chevronSlot, isOpen && styles4.chevronOpen], children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, { size: CHEVRON_SIZE, color: isOpen ? colors.primary : colors.grey100 }) }) : null
|
|
1820
1952
|
]
|
|
1821
1953
|
}
|
|
1822
1954
|
),
|
|
1823
|
-
hasMenu && isOpen ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [
|
|
1955
|
+
hasMenu && isOpen ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles4.menu, menuWidth != null && { right: void 0, width: menuWidth }], children: resolvedMenuItems.map((item) => {
|
|
1824
1956
|
const itemKey = item.key ?? item.label;
|
|
1825
1957
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1826
1958
|
MenuItem,
|
|
@@ -1837,7 +1969,7 @@ var Avatar = react.forwardRef(function Avatar2({
|
|
|
1837
1969
|
}) }) : null
|
|
1838
1970
|
] });
|
|
1839
1971
|
});
|
|
1840
|
-
var
|
|
1972
|
+
var styles4 = reactNative.StyleSheet.create({
|
|
1841
1973
|
wrapper: {
|
|
1842
1974
|
position: "relative",
|
|
1843
1975
|
alignSelf: "flex-start"
|
|
@@ -1953,22 +2085,22 @@ var Badge = react.forwardRef(function Badge2({ label, variant = "default", icon:
|
|
|
1953
2085
|
...rest,
|
|
1954
2086
|
ref: setContainerRef,
|
|
1955
2087
|
style: [
|
|
1956
|
-
|
|
2088
|
+
styles5.base,
|
|
1957
2089
|
{ backgroundColor: preset.backgroundColor },
|
|
1958
|
-
preset.border ?
|
|
2090
|
+
preset.border ? styles5.transparentBorder : null,
|
|
1959
2091
|
preset.blur ? webBlurStyle2 : null,
|
|
1960
2092
|
style
|
|
1961
2093
|
],
|
|
1962
2094
|
accessibilityRole: "text",
|
|
1963
2095
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
1964
2096
|
children: [
|
|
1965
|
-
Icon2 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
1966
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
2097
|
+
Icon2 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles5.iconSlot, children: /* @__PURE__ */ jsxRuntime.jsx(Icon2, { size: ICON_SIZE3, color: preset.iconColor }) }) : null,
|
|
2098
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.label, reactNative.Platform.OS === "android" ? styles5.labelAndroid : null], children: label })
|
|
1967
2099
|
]
|
|
1968
2100
|
}
|
|
1969
2101
|
);
|
|
1970
2102
|
});
|
|
1971
|
-
var
|
|
2103
|
+
var styles5 = reactNative.StyleSheet.create({
|
|
1972
2104
|
base: {
|
|
1973
2105
|
flexDirection: "row",
|
|
1974
2106
|
alignItems: "center",
|
|
@@ -2041,7 +2173,7 @@ var Counter = react.forwardRef(function Counter2({
|
|
|
2041
2173
|
if (!isControlled) setUncontrolledValue(next);
|
|
2042
2174
|
onValueChange?.(next);
|
|
2043
2175
|
};
|
|
2044
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ...rest, ref: setContainerRef, style: [
|
|
2176
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ...rest, ref: setContainerRef, style: [styles6.base, style], children: [
|
|
2045
2177
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2046
2178
|
reactNative.Pressable,
|
|
2047
2179
|
{
|
|
@@ -2051,11 +2183,11 @@ var Counter = react.forwardRef(function Counter2({
|
|
|
2051
2183
|
accessibilityRole: "button",
|
|
2052
2184
|
accessibilityLabel: "Decrease value",
|
|
2053
2185
|
accessibilityState: { disabled: decrementDisabled },
|
|
2054
|
-
style: [
|
|
2186
|
+
style: [styles6.button, webBlurStyle3, decrementDisabled && styles6.buttonDisabled],
|
|
2055
2187
|
children: /* @__PURE__ */ jsxRuntime.jsx(MinusIcon, {})
|
|
2056
2188
|
}
|
|
2057
2189
|
),
|
|
2058
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
2190
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles6.value, children: resolvedValue }),
|
|
2059
2191
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2060
2192
|
reactNative.Pressable,
|
|
2061
2193
|
{
|
|
@@ -2065,13 +2197,13 @@ var Counter = react.forwardRef(function Counter2({
|
|
|
2065
2197
|
accessibilityRole: "button",
|
|
2066
2198
|
accessibilityLabel: "Increase value",
|
|
2067
2199
|
accessibilityState: { disabled: incrementDisabled },
|
|
2068
|
-
style: [
|
|
2200
|
+
style: [styles6.button, webBlurStyle3, incrementDisabled && styles6.buttonDisabled],
|
|
2069
2201
|
children: /* @__PURE__ */ jsxRuntime.jsx(PlusIcon, {})
|
|
2070
2202
|
}
|
|
2071
2203
|
)
|
|
2072
2204
|
] });
|
|
2073
2205
|
});
|
|
2074
|
-
var
|
|
2206
|
+
var styles6 = reactNative.StyleSheet.create({
|
|
2075
2207
|
base: {
|
|
2076
2208
|
flexDirection: "row",
|
|
2077
2209
|
alignItems: "center",
|
|
@@ -2162,9 +2294,9 @@ var SegmentedToggle = react.forwardRef(
|
|
|
2162
2294
|
onLayout?.(event);
|
|
2163
2295
|
},
|
|
2164
2296
|
style: [
|
|
2165
|
-
|
|
2166
|
-
fullWidth ?
|
|
2167
|
-
disabled &&
|
|
2297
|
+
styles7.base,
|
|
2298
|
+
fullWidth ? styles7.fullWidth : styles7.contentWidth,
|
|
2299
|
+
disabled && styles7.disabled,
|
|
2168
2300
|
style
|
|
2169
2301
|
],
|
|
2170
2302
|
accessibilityRole: "radiogroup",
|
|
@@ -2174,7 +2306,7 @@ var SegmentedToggle = react.forwardRef(
|
|
|
2174
2306
|
{
|
|
2175
2307
|
pointerEvents: "none",
|
|
2176
2308
|
style: [
|
|
2177
|
-
|
|
2309
|
+
styles7.activeIndicator,
|
|
2178
2310
|
{ width: optionWidth, transform: [{ translateX: indicatorTranslateX }] }
|
|
2179
2311
|
]
|
|
2180
2312
|
}
|
|
@@ -2193,8 +2325,8 @@ var SegmentedToggle = react.forwardRef(
|
|
|
2193
2325
|
accessibilityLabel: label,
|
|
2194
2326
|
accessibilityState: { selected, disabled },
|
|
2195
2327
|
style: [
|
|
2196
|
-
|
|
2197
|
-
fullWidth ?
|
|
2328
|
+
styles7.option,
|
|
2329
|
+
fullWidth ? styles7.optionFullWidth : optionWidth > 0 && { minWidth: optionWidth }
|
|
2198
2330
|
],
|
|
2199
2331
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2200
2332
|
reactNative.View,
|
|
@@ -2208,10 +2340,10 @@ var SegmentedToggle = react.forwardRef(
|
|
|
2208
2340
|
return nextWidths;
|
|
2209
2341
|
});
|
|
2210
2342
|
},
|
|
2211
|
-
style:
|
|
2343
|
+
style: styles7.optionContent,
|
|
2212
2344
|
children: [
|
|
2213
2345
|
Icon2 ? /* @__PURE__ */ jsxRuntime.jsx(Icon2, { size: ICON_SIZE4, color: iconColor }) : null,
|
|
2214
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [
|
|
2346
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles7.label, { color: labelColor }], children: label })
|
|
2215
2347
|
]
|
|
2216
2348
|
}
|
|
2217
2349
|
)
|
|
@@ -2224,7 +2356,7 @@ var SegmentedToggle = react.forwardRef(
|
|
|
2224
2356
|
);
|
|
2225
2357
|
}
|
|
2226
2358
|
);
|
|
2227
|
-
var
|
|
2359
|
+
var styles7 = reactNative.StyleSheet.create({
|
|
2228
2360
|
base: {
|
|
2229
2361
|
height: 44,
|
|
2230
2362
|
flexDirection: "row",
|
|
@@ -2362,7 +2494,7 @@ var LanguageSwitcher = react.forwardRef(
|
|
|
2362
2494
|
{
|
|
2363
2495
|
...rest,
|
|
2364
2496
|
ref: setWrapperRef,
|
|
2365
|
-
style: [
|
|
2497
|
+
style: [styles8.wrapper, isOpen && styles8.wrapperOpen, disabled && styles8.disabled, style],
|
|
2366
2498
|
children: [
|
|
2367
2499
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2368
2500
|
reactNative.Pressable,
|
|
@@ -2377,17 +2509,17 @@ var LanguageSwitcher = react.forwardRef(
|
|
|
2377
2509
|
onHoverIn: () => setTriggerHovered(true),
|
|
2378
2510
|
onHoverOut: () => setTriggerHovered(false),
|
|
2379
2511
|
style: ({ pressed }) => [
|
|
2380
|
-
|
|
2381
|
-
(triggerHovered || pressed || isOpen) &&
|
|
2512
|
+
styles8.trigger,
|
|
2513
|
+
(triggerHovered || pressed || isOpen) && styles8.triggerActive
|
|
2382
2514
|
],
|
|
2383
2515
|
children: [
|
|
2384
2516
|
/* @__PURE__ */ jsxRuntime.jsx(GlobeIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 }),
|
|
2385
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
2386
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [
|
|
2517
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles8.triggerLabel, numberOfLines: 1, children: selectedOption?.label ?? "" }),
|
|
2518
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles8.chevron, isOpen && styles8.chevronOpen], children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 }) })
|
|
2387
2519
|
]
|
|
2388
2520
|
}
|
|
2389
2521
|
),
|
|
2390
|
-
isOpen && options.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
2522
|
+
isOpen && options.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles8.menu, accessibilityRole: "menu", children: options.map((option) => {
|
|
2391
2523
|
const selected = option.value === selectedValue;
|
|
2392
2524
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2393
2525
|
reactNative.Pressable,
|
|
@@ -2399,10 +2531,10 @@ var LanguageSwitcher = react.forwardRef(
|
|
|
2399
2531
|
onHoverIn: () => setHoveredValue(option.value),
|
|
2400
2532
|
onHoverOut: () => setHoveredValue(null),
|
|
2401
2533
|
style: ({ pressed }) => [
|
|
2402
|
-
|
|
2403
|
-
selected ?
|
|
2534
|
+
styles8.item,
|
|
2535
|
+
selected ? styles8.itemSelected : (hoveredValue === option.value || pressed) && styles8.itemHovered
|
|
2404
2536
|
],
|
|
2405
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
2537
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.itemLabel, selected && styles8.itemLabelSelected], children: option.label })
|
|
2406
2538
|
},
|
|
2407
2539
|
option.value
|
|
2408
2540
|
);
|
|
@@ -2412,7 +2544,7 @@ var LanguageSwitcher = react.forwardRef(
|
|
|
2412
2544
|
);
|
|
2413
2545
|
}
|
|
2414
2546
|
);
|
|
2415
|
-
var
|
|
2547
|
+
var styles8 = reactNative.StyleSheet.create({
|
|
2416
2548
|
wrapper: {
|
|
2417
2549
|
position: "relative",
|
|
2418
2550
|
width: CONTROL_WIDTH,
|
|
@@ -2508,17 +2640,17 @@ var StatCard = react.forwardRef(function StatCard2({
|
|
|
2508
2640
|
{
|
|
2509
2641
|
...rest,
|
|
2510
2642
|
ref: setContainerRef,
|
|
2511
|
-
style: [
|
|
2643
|
+
style: [styles9.base, style],
|
|
2512
2644
|
accessibilityRole: "text",
|
|
2513
2645
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
2514
2646
|
children: [
|
|
2515
2647
|
/* @__PURE__ */ jsxRuntime.jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }),
|
|
2516
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
2648
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles9.label, children: label })
|
|
2517
2649
|
]
|
|
2518
2650
|
}
|
|
2519
2651
|
);
|
|
2520
2652
|
});
|
|
2521
|
-
var
|
|
2653
|
+
var styles9 = reactNative.StyleSheet.create({
|
|
2522
2654
|
base: {
|
|
2523
2655
|
width: 204.5,
|
|
2524
2656
|
minHeight: 114,
|
|
@@ -2604,7 +2736,7 @@ var Button = react.forwardRef(
|
|
|
2604
2736
|
useApplyWebClassName(textRef, textClassName);
|
|
2605
2737
|
const iconNode = customIcon ?? /* @__PURE__ */ jsxRuntime.jsx(ArrowRightIcon, { size: metrics.iconSize, color: preset.iconColor });
|
|
2606
2738
|
const containerStyle = [
|
|
2607
|
-
|
|
2739
|
+
styles10.base,
|
|
2608
2740
|
{
|
|
2609
2741
|
minHeight: metrics.minHeight,
|
|
2610
2742
|
borderRadius: metrics.borderRadius,
|
|
@@ -2615,16 +2747,16 @@ var Button = react.forwardRef(
|
|
|
2615
2747
|
paddingRight: hasIcon ? metrics.paddingRightWithIcon : metrics.paddingRight,
|
|
2616
2748
|
gap: hasIcon ? metrics.gap : 0
|
|
2617
2749
|
},
|
|
2618
|
-
hasIcon ?
|
|
2619
|
-
disabled &&
|
|
2750
|
+
hasIcon ? styles10.contentWithIcon : styles10.contentWithoutIcon,
|
|
2751
|
+
disabled && styles10.disabled,
|
|
2620
2752
|
style
|
|
2621
2753
|
];
|
|
2622
2754
|
const labelStyle = [
|
|
2623
|
-
|
|
2755
|
+
styles10.label,
|
|
2624
2756
|
metrics.text,
|
|
2625
2757
|
{ color: preset.textColor },
|
|
2626
|
-
reactNative.Platform.OS === "android" ?
|
|
2627
|
-
!hasIcon &&
|
|
2758
|
+
reactNative.Platform.OS === "android" ? styles10.labelAndroid : null,
|
|
2759
|
+
!hasIcon && styles10.labelCentered,
|
|
2628
2760
|
textStyle
|
|
2629
2761
|
];
|
|
2630
2762
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -2645,7 +2777,7 @@ var Button = react.forwardRef(
|
|
|
2645
2777
|
reactNative.View,
|
|
2646
2778
|
{
|
|
2647
2779
|
style: [
|
|
2648
|
-
|
|
2780
|
+
styles10.iconContainer,
|
|
2649
2781
|
{
|
|
2650
2782
|
width: metrics.iconContainerSize,
|
|
2651
2783
|
height: metrics.iconContainerSize,
|
|
@@ -2661,7 +2793,7 @@ var Button = react.forwardRef(
|
|
|
2661
2793
|
);
|
|
2662
2794
|
}
|
|
2663
2795
|
);
|
|
2664
|
-
var
|
|
2796
|
+
var styles10 = reactNative.StyleSheet.create({
|
|
2665
2797
|
base: {
|
|
2666
2798
|
flexDirection: "row",
|
|
2667
2799
|
alignItems: "center",
|
|
@@ -2745,13 +2877,13 @@ var Checkbox = react.forwardRef(function Checkbox2({
|
|
|
2745
2877
|
accessibilityRole: "checkbox",
|
|
2746
2878
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
2747
2879
|
accessibilityState: { checked: isActive, disabled },
|
|
2748
|
-
style: [
|
|
2880
|
+
style: [styles11.root, disabled && styles11.disabled, style],
|
|
2749
2881
|
children: [
|
|
2750
2882
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2751
2883
|
reactNative.View,
|
|
2752
2884
|
{
|
|
2753
2885
|
style: [
|
|
2754
|
-
|
|
2886
|
+
styles11.box,
|
|
2755
2887
|
{
|
|
2756
2888
|
backgroundColor: chrome.backgroundColor,
|
|
2757
2889
|
borderColor: chrome.borderColor
|
|
@@ -2760,12 +2892,12 @@ var Checkbox = react.forwardRef(function Checkbox2({
|
|
|
2760
2892
|
children: isActive ? /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { size: CHECK_SIZE, color: colors.primary, strokeWidth: CHECK_STROKE }) : null
|
|
2761
2893
|
}
|
|
2762
2894
|
),
|
|
2763
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
2895
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.label, labelStyle], children: labelContent }) : labelContent : null
|
|
2764
2896
|
]
|
|
2765
2897
|
}
|
|
2766
2898
|
);
|
|
2767
2899
|
});
|
|
2768
|
-
var
|
|
2900
|
+
var styles11 = reactNative.StyleSheet.create({
|
|
2769
2901
|
root: {
|
|
2770
2902
|
flexDirection: "row",
|
|
2771
2903
|
alignItems: "center",
|
|
@@ -3016,9 +3148,9 @@ var DatePicker = react.forwardRef(
|
|
|
3016
3148
|
{
|
|
3017
3149
|
...rest,
|
|
3018
3150
|
ref: setRootRef,
|
|
3019
|
-
style: [
|
|
3151
|
+
style: [styles12.root, isOpen && styles12.rootOpen, disabled && styles12.disabled, style],
|
|
3020
3152
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3021
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
3153
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles12.triggerWrap, isOpen && styles12.triggerWrapOpen], children: [
|
|
3022
3154
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3023
3155
|
reactNative.Pressable,
|
|
3024
3156
|
{
|
|
@@ -3029,17 +3161,17 @@ var DatePicker = react.forwardRef(
|
|
|
3029
3161
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
3030
3162
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3031
3163
|
style: [
|
|
3032
|
-
|
|
3164
|
+
styles12.trigger,
|
|
3033
3165
|
{ borderColor: triggerBorderColor, backgroundColor: colors.grey700 }
|
|
3034
3166
|
],
|
|
3035
3167
|
children: [
|
|
3036
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3037
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3168
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: triggerLabel }),
|
|
3169
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.iconSlot, children: /* @__PURE__ */ jsxRuntime.jsx(CalendarOutlineIcon, { size: ICON_SIZE7, color: colors.grey100 }) })
|
|
3038
3170
|
]
|
|
3039
3171
|
}
|
|
3040
3172
|
),
|
|
3041
|
-
isOpen ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
3042
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3173
|
+
isOpen ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles12.menu, calendarStyle], children: [
|
|
3174
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.calendarHeader, children: [
|
|
3043
3175
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3044
3176
|
reactNative.Pressable,
|
|
3045
3177
|
{
|
|
@@ -3047,11 +3179,11 @@ var DatePicker = react.forwardRef(
|
|
|
3047
3179
|
hitSlop: 8,
|
|
3048
3180
|
accessibilityRole: "button",
|
|
3049
3181
|
accessibilityLabel: "Previous month",
|
|
3050
|
-
style:
|
|
3182
|
+
style: styles12.navButton,
|
|
3051
3183
|
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white })
|
|
3052
3184
|
}
|
|
3053
3185
|
),
|
|
3054
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style:
|
|
3186
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: styles12.monthHeading, children: [
|
|
3055
3187
|
monthNames[visibleMonth.getMonth()],
|
|
3056
3188
|
" ",
|
|
3057
3189
|
visibleMonth.getFullYear()
|
|
@@ -3063,13 +3195,13 @@ var DatePicker = react.forwardRef(
|
|
|
3063
3195
|
hitSlop: 8,
|
|
3064
3196
|
accessibilityRole: "button",
|
|
3065
3197
|
accessibilityLabel: "Next month",
|
|
3066
|
-
style:
|
|
3067
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3198
|
+
style: styles12.navButton,
|
|
3199
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.navIconMirror, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white }) })
|
|
3068
3200
|
}
|
|
3069
3201
|
)
|
|
3070
3202
|
] }),
|
|
3071
3203
|
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { children: [
|
|
3072
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3204
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.weekdayRow, children: weekdayLabels.map((weekdayLabel, index) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.dayCellWrap, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles12.weekdayText, children: weekdayLabel }) }, `${weekdayLabel}-${index}`)) }),
|
|
3073
3205
|
weeks.map((week, weekIndex) => {
|
|
3074
3206
|
let rangeHighlightStyle = null;
|
|
3075
3207
|
if (isRange && rangeValue.start && rangeValue.end) {
|
|
@@ -3106,13 +3238,13 @@ var DatePicker = react.forwardRef(
|
|
|
3106
3238
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3107
3239
|
reactNative.View,
|
|
3108
3240
|
{
|
|
3109
|
-
style: [
|
|
3241
|
+
style: [styles12.weekRow, weekIndex > 0 && styles12.weekRowSpaced],
|
|
3110
3242
|
children: [
|
|
3111
3243
|
rangeHighlightStyle ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3112
3244
|
reactNative.View,
|
|
3113
3245
|
{
|
|
3114
3246
|
pointerEvents: "none",
|
|
3115
|
-
style: [
|
|
3247
|
+
style: [styles12.rangeHighlight, rangeHighlightStyle]
|
|
3116
3248
|
}
|
|
3117
3249
|
) : null,
|
|
3118
3250
|
week.map((day, dayIndex) => {
|
|
@@ -3135,7 +3267,7 @@ var DatePicker = react.forwardRef(
|
|
|
3135
3267
|
onHoverOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
3136
3268
|
onPressIn: () => setHoveredDayKey(dayKey),
|
|
3137
3269
|
onPressOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
3138
|
-
style:
|
|
3270
|
+
style: styles12.dayCellWrap,
|
|
3139
3271
|
accessibilityRole: "button",
|
|
3140
3272
|
accessibilityLabel: formatValue(day),
|
|
3141
3273
|
accessibilityState: {
|
|
@@ -3147,14 +3279,14 @@ var DatePicker = react.forwardRef(
|
|
|
3147
3279
|
reactNative.View,
|
|
3148
3280
|
{
|
|
3149
3281
|
style: [
|
|
3150
|
-
|
|
3151
|
-
isSelectedEndpoint &&
|
|
3152
|
-
isHovered &&
|
|
3282
|
+
styles12.dayCircle,
|
|
3283
|
+
isSelectedEndpoint && styles12.dayCircleSelected,
|
|
3284
|
+
isHovered && styles12.dayCircleHovered
|
|
3153
3285
|
],
|
|
3154
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3286
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.dayText, { color: dayTextColor }], children: day.getDate() })
|
|
3155
3287
|
}
|
|
3156
3288
|
),
|
|
3157
|
-
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3289
|
+
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.todayDot }) : null
|
|
3158
3290
|
]
|
|
3159
3291
|
},
|
|
3160
3292
|
dayIndex
|
|
@@ -3172,7 +3304,7 @@ var DatePicker = react.forwardRef(
|
|
|
3172
3304
|
);
|
|
3173
3305
|
}
|
|
3174
3306
|
);
|
|
3175
|
-
var
|
|
3307
|
+
var styles12 = reactNative.StyleSheet.create({
|
|
3176
3308
|
root: {
|
|
3177
3309
|
width: DEFAULT_WIDTH,
|
|
3178
3310
|
gap: 8,
|
|
@@ -3451,13 +3583,13 @@ var Input = react.forwardRef(function Input2({
|
|
|
3451
3583
|
});
|
|
3452
3584
|
useApplyWebClassName(rootRef, className);
|
|
3453
3585
|
useApplyWebClassName(inputRef, inputClassName);
|
|
3454
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: rootRef, style: [
|
|
3455
|
-
showLabel && label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3586
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: rootRef, style: [styles13.root, disabled && styles13.disabled, style], children: [
|
|
3587
|
+
showLabel && label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.label, { color: chrome.labelColor }], children: label }) : null,
|
|
3456
3588
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3457
3589
|
reactNative.View,
|
|
3458
3590
|
{
|
|
3459
3591
|
style: [
|
|
3460
|
-
|
|
3592
|
+
styles13.field,
|
|
3461
3593
|
{
|
|
3462
3594
|
height: metrics.height,
|
|
3463
3595
|
borderRadius: metrics.borderRadius,
|
|
@@ -3472,7 +3604,7 @@ var Input = react.forwardRef(function Input2({
|
|
|
3472
3604
|
fieldStyle
|
|
3473
3605
|
],
|
|
3474
3606
|
children: [
|
|
3475
|
-
hasLeftIcon ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [
|
|
3607
|
+
hasLeftIcon ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles13.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: leftIconNode }) : null,
|
|
3476
3608
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3477
3609
|
reactNative.TextInput,
|
|
3478
3610
|
{
|
|
@@ -3496,11 +3628,11 @@ var Input = react.forwardRef(function Input2({
|
|
|
3496
3628
|
onBlur?.(event);
|
|
3497
3629
|
},
|
|
3498
3630
|
style: [
|
|
3499
|
-
|
|
3631
|
+
styles13.input,
|
|
3500
3632
|
metrics.text,
|
|
3501
3633
|
{ color: chrome.textColor },
|
|
3502
|
-
reactNative.Platform.OS === "web" ?
|
|
3503
|
-
reactNative.Platform.OS === "android" ?
|
|
3634
|
+
reactNative.Platform.OS === "web" ? styles13.inputWeb : null,
|
|
3635
|
+
reactNative.Platform.OS === "android" ? styles13.inputAndroid : null,
|
|
3504
3636
|
inputStyle
|
|
3505
3637
|
],
|
|
3506
3638
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -3512,20 +3644,20 @@ var Input = react.forwardRef(function Input2({
|
|
|
3512
3644
|
{
|
|
3513
3645
|
onPress: onRightIconPress,
|
|
3514
3646
|
disabled,
|
|
3515
|
-
style: [
|
|
3647
|
+
style: [styles13.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }],
|
|
3516
3648
|
accessibilityRole: "button",
|
|
3517
3649
|
accessibilityLabel: rightIconAccessibilityLabel,
|
|
3518
3650
|
hitSlop: 8,
|
|
3519
3651
|
children: rightIconNode
|
|
3520
3652
|
}
|
|
3521
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [
|
|
3653
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles13.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: rightIconNode }) : null
|
|
3522
3654
|
]
|
|
3523
3655
|
}
|
|
3524
3656
|
),
|
|
3525
|
-
showHint && hint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3657
|
+
showHint && hint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
3526
3658
|
] });
|
|
3527
3659
|
});
|
|
3528
|
-
var
|
|
3660
|
+
var styles13 = reactNative.StyleSheet.create({
|
|
3529
3661
|
root: {
|
|
3530
3662
|
width: DEFAULT_WIDTH2,
|
|
3531
3663
|
gap: 8,
|
|
@@ -3641,25 +3773,25 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
3641
3773
|
const next = Math.ceil(event.nativeEvent.layout.width);
|
|
3642
3774
|
setEllipsisWidth((current) => current === next ? current : next);
|
|
3643
3775
|
};
|
|
3644
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3645
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { pointerEvents: "none", style:
|
|
3776
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.multiValueRoot, children: [
|
|
3777
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { pointerEvents: "none", style: styles14.measureRow, children: [
|
|
3646
3778
|
options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3647
3779
|
reactNative.View,
|
|
3648
3780
|
{
|
|
3649
|
-
style:
|
|
3781
|
+
style: styles14.chip,
|
|
3650
3782
|
onLayout: (event) => handleChipLayout(option.value, event),
|
|
3651
3783
|
children: [
|
|
3652
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
3653
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
3784
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.chipLabel, numberOfLines: 1, children: option.label }),
|
|
3785
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.chipRemove, children: "\xD7" })
|
|
3654
3786
|
]
|
|
3655
3787
|
},
|
|
3656
3788
|
`measure-${option.value}`
|
|
3657
3789
|
)),
|
|
3658
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3790
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.ellipsis, onLayout: handleEllipsisLayout, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.ellipsisText, children: "..." }) })
|
|
3659
3791
|
] }),
|
|
3660
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3661
|
-
visible.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3662
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
3792
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.chipsRow, onLayout: handleContainerLayout, children: [
|
|
3793
|
+
visible.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.chip, children: [
|
|
3794
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.chipLabel, numberOfLines: 1, children: option.label }),
|
|
3663
3795
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3664
3796
|
reactNative.Pressable,
|
|
3665
3797
|
{
|
|
@@ -3671,11 +3803,11 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
3671
3803
|
hitSlop: 6,
|
|
3672
3804
|
accessibilityRole: "button",
|
|
3673
3805
|
accessibilityLabel: `Remove ${option.label}`,
|
|
3674
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
3806
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.chipRemove, children: "\xD7" })
|
|
3675
3807
|
}
|
|
3676
3808
|
)
|
|
3677
3809
|
] }, option.value)),
|
|
3678
|
-
hasOverflow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3810
|
+
hasOverflow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.ellipsis, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.ellipsisText, children: "..." }) }) : null
|
|
3679
3811
|
] })
|
|
3680
3812
|
] });
|
|
3681
3813
|
}
|
|
@@ -3899,11 +4031,11 @@ var Select = react.forwardRef(
|
|
|
3899
4031
|
{
|
|
3900
4032
|
...rest,
|
|
3901
4033
|
ref: setRootRef,
|
|
3902
|
-
style: [
|
|
4034
|
+
style: [styles14.root, isOpen && styles14.rootOpen, disabled && styles14.disabled, style],
|
|
3903
4035
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3904
4036
|
children: [
|
|
3905
|
-
showLabel && label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3906
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
4037
|
+
showLabel && label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.label, { color: labelColor }], children: label }) : null,
|
|
4038
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles14.triggerWrap, isOpen && styles14.triggerWrapOpen], children: [
|
|
3907
4039
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3908
4040
|
reactNative.Pressable,
|
|
3909
4041
|
{
|
|
@@ -3914,29 +4046,29 @@ var Select = react.forwardRef(
|
|
|
3914
4046
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
3915
4047
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3916
4048
|
style: [
|
|
3917
|
-
|
|
4049
|
+
styles14.trigger,
|
|
3918
4050
|
{
|
|
3919
4051
|
borderColor: triggerBorderColor,
|
|
3920
4052
|
backgroundColor: colors.grey700
|
|
3921
4053
|
}
|
|
3922
4054
|
],
|
|
3923
4055
|
children: [
|
|
3924
|
-
hasLeftIcon ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3925
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
4056
|
+
hasLeftIcon ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.iconSlot, children: leftIconNode }) : null,
|
|
4057
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.triggerContent, children: multiple && hasValue ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3926
4058
|
MultiValueChips,
|
|
3927
4059
|
{
|
|
3928
4060
|
options: selectedOptions,
|
|
3929
4061
|
disabled,
|
|
3930
4062
|
onRemove: handleRemoveChip
|
|
3931
4063
|
}
|
|
3932
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3933
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [
|
|
4064
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: multiple ? placeholder : singleLabel }) }),
|
|
4065
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles14.iconSlot, isOpen && styles14.chevronOpen], children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, { size: ICON_SIZE8, color: isOpen ? colors.primary : colors.grey100 }) })
|
|
3934
4066
|
]
|
|
3935
4067
|
}
|
|
3936
4068
|
),
|
|
3937
|
-
isOpen ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3938
|
-
showSearch ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3939
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
4069
|
+
isOpen ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.menu, children: [
|
|
4070
|
+
showSearch ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.searchField, children: [
|
|
4071
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.iconSlot, children: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { size: ICON_SIZE8, color: colors.grey100 }) }),
|
|
3940
4072
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3941
4073
|
reactNative.TextInput,
|
|
3942
4074
|
{
|
|
@@ -3947,9 +4079,9 @@ var Select = react.forwardRef(
|
|
|
3947
4079
|
placeholder: searchPlaceholder,
|
|
3948
4080
|
placeholderTextColor: colors.grey100,
|
|
3949
4081
|
style: [
|
|
3950
|
-
|
|
3951
|
-
reactNative.Platform.OS === "web" ?
|
|
3952
|
-
reactNative.Platform.OS === "android" ?
|
|
4082
|
+
styles14.searchInput,
|
|
4083
|
+
reactNative.Platform.OS === "web" ? styles14.searchInputWeb : null,
|
|
4084
|
+
reactNative.Platform.OS === "android" ? styles14.searchInputAndroid : null
|
|
3953
4085
|
],
|
|
3954
4086
|
accessibilityLabel: searchPlaceholder
|
|
3955
4087
|
}
|
|
@@ -3958,12 +4090,12 @@ var Select = react.forwardRef(
|
|
|
3958
4090
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3959
4091
|
reactNative.ScrollView,
|
|
3960
4092
|
{
|
|
3961
|
-
style:
|
|
3962
|
-
contentContainerStyle:
|
|
4093
|
+
style: styles14.optionList,
|
|
4094
|
+
contentContainerStyle: styles14.optionListContent,
|
|
3963
4095
|
keyboardShouldPersistTaps: "handled",
|
|
3964
4096
|
showsVerticalScrollIndicator: false,
|
|
3965
4097
|
children: [
|
|
3966
|
-
loading ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
4098
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.statusRow, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.statusText, children: "Loading..." }) }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.statusRow, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.statusText, children: emptyText }) }) : null,
|
|
3967
4099
|
!loading && filteredOptions.map((option) => {
|
|
3968
4100
|
const isSelected = selectedValues.includes(option.value);
|
|
3969
4101
|
const isHovered = hoveredValue === option.value;
|
|
@@ -3980,14 +4112,14 @@ var Select = react.forwardRef(
|
|
|
3980
4112
|
accessibilityRole: multiple ? "checkbox" : "button",
|
|
3981
4113
|
accessibilityState: { selected: isSelected, checked: isSelected, disabled },
|
|
3982
4114
|
style: [
|
|
3983
|
-
|
|
4115
|
+
styles14.item,
|
|
3984
4116
|
{
|
|
3985
4117
|
backgroundColor: itemBackground(visualState)
|
|
3986
4118
|
}
|
|
3987
4119
|
],
|
|
3988
4120
|
children: [
|
|
3989
|
-
multiple ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style:
|
|
3990
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style:
|
|
4121
|
+
multiple ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: styles14.itemCheckbox, children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { value: isSelected, variant: "light" }) }) : null,
|
|
4122
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles14.itemLabel, numberOfLines: 1, children: option.label })
|
|
3991
4123
|
]
|
|
3992
4124
|
},
|
|
3993
4125
|
option.value
|
|
@@ -3998,13 +4130,13 @@ var Select = react.forwardRef(
|
|
|
3998
4130
|
)
|
|
3999
4131
|
] }) : null
|
|
4000
4132
|
] }),
|
|
4001
|
-
showHint && hint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4133
|
+
showHint && hint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.hint, { color: hintColor }], children: hint }) : null
|
|
4002
4134
|
]
|
|
4003
4135
|
}
|
|
4004
4136
|
);
|
|
4005
4137
|
}
|
|
4006
4138
|
);
|
|
4007
|
-
var
|
|
4139
|
+
var styles14 = reactNative.StyleSheet.create({
|
|
4008
4140
|
root: {
|
|
4009
4141
|
width: DEFAULT_WIDTH3,
|
|
4010
4142
|
gap: 8,
|
|
@@ -4266,13 +4398,13 @@ var Textarea = react.forwardRef(function Textarea2({
|
|
|
4266
4398
|
const resolvedAccessibilityLabel = accessibilityLabel ?? (showLabel ? void 0 : label);
|
|
4267
4399
|
useApplyWebClassName(rootRef, className);
|
|
4268
4400
|
useApplyWebClassName(inputRef, inputClassName);
|
|
4269
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: rootRef, style: [
|
|
4270
|
-
showLabel && label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4401
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: rootRef, style: [styles15.root, disabled && styles15.disabled, style], children: [
|
|
4402
|
+
showLabel && label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.label, { color: chrome.labelColor }], children: label }) : null,
|
|
4271
4403
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4272
4404
|
reactNative.View,
|
|
4273
4405
|
{
|
|
4274
4406
|
style: [
|
|
4275
|
-
|
|
4407
|
+
styles15.field,
|
|
4276
4408
|
{
|
|
4277
4409
|
borderColor: chrome.borderColor,
|
|
4278
4410
|
backgroundColor: chrome.backgroundColor
|
|
@@ -4304,11 +4436,11 @@ var Textarea = react.forwardRef(function Textarea2({
|
|
|
4304
4436
|
onBlur?.(event);
|
|
4305
4437
|
},
|
|
4306
4438
|
style: [
|
|
4307
|
-
|
|
4439
|
+
styles15.input,
|
|
4308
4440
|
textareaTypography.field,
|
|
4309
4441
|
{ color: chrome.textColor },
|
|
4310
|
-
reactNative.Platform.OS === "web" ?
|
|
4311
|
-
reactNative.Platform.OS === "android" ?
|
|
4442
|
+
reactNative.Platform.OS === "web" ? styles15.inputWeb : null,
|
|
4443
|
+
reactNative.Platform.OS === "android" ? styles15.inputAndroid : null,
|
|
4312
4444
|
inputStyle
|
|
4313
4445
|
],
|
|
4314
4446
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -4317,10 +4449,10 @@ var Textarea = react.forwardRef(function Textarea2({
|
|
|
4317
4449
|
)
|
|
4318
4450
|
}
|
|
4319
4451
|
),
|
|
4320
|
-
showHint && hint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4452
|
+
showHint && hint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
4321
4453
|
] });
|
|
4322
4454
|
});
|
|
4323
|
-
var
|
|
4455
|
+
var styles15 = reactNative.StyleSheet.create({
|
|
4324
4456
|
root: {
|
|
4325
4457
|
width: DEFAULT_WIDTH4,
|
|
4326
4458
|
gap: 8,
|
|
@@ -4420,13 +4552,13 @@ var Toggle = react.forwardRef(function Toggle2({
|
|
|
4420
4552
|
accessibilityRole: "switch",
|
|
4421
4553
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
4422
4554
|
accessibilityState: { checked: isActive, disabled },
|
|
4423
|
-
style: [
|
|
4555
|
+
style: [styles16.pressable, disabled && styles16.disabled, style],
|
|
4424
4556
|
children: [
|
|
4425
4557
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4426
4558
|
reactNative.Animated.View,
|
|
4427
4559
|
{
|
|
4428
4560
|
style: [
|
|
4429
|
-
|
|
4561
|
+
styles16.track,
|
|
4430
4562
|
{
|
|
4431
4563
|
backgroundColor: trackBackgroundColor
|
|
4432
4564
|
}
|
|
@@ -4435,7 +4567,7 @@ var Toggle = react.forwardRef(function Toggle2({
|
|
|
4435
4567
|
reactNative.Animated.View,
|
|
4436
4568
|
{
|
|
4437
4569
|
style: [
|
|
4438
|
-
|
|
4570
|
+
styles16.thumb,
|
|
4439
4571
|
{
|
|
4440
4572
|
transform: [{ translateX: thumbTranslateX }]
|
|
4441
4573
|
}
|
|
@@ -4444,12 +4576,12 @@ var Toggle = react.forwardRef(function Toggle2({
|
|
|
4444
4576
|
)
|
|
4445
4577
|
}
|
|
4446
4578
|
),
|
|
4447
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4579
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.label, labelStyle], children: labelContent }) : labelContent : null
|
|
4448
4580
|
]
|
|
4449
4581
|
}
|
|
4450
4582
|
);
|
|
4451
4583
|
});
|
|
4452
|
-
var
|
|
4584
|
+
var styles16 = reactNative.StyleSheet.create({
|
|
4453
4585
|
pressable: {
|
|
4454
4586
|
flexDirection: "row",
|
|
4455
4587
|
alignItems: "center",
|
|
@@ -4524,21 +4656,21 @@ var RatingInput = react.forwardRef(
|
|
|
4524
4656
|
{
|
|
4525
4657
|
...rest,
|
|
4526
4658
|
ref: setContainerRef,
|
|
4527
|
-
style: [
|
|
4659
|
+
style: [styles17.root, disabled && styles17.disabled, style],
|
|
4528
4660
|
children: [
|
|
4529
|
-
showValue ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [
|
|
4661
|
+
showValue ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles17.value, valueStyle], children: selectedValue.toFixed(precision) }) : null,
|
|
4530
4662
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4531
4663
|
reactNative.View,
|
|
4532
4664
|
{
|
|
4533
4665
|
accessibilityRole: readOnly ? "image" : "radiogroup",
|
|
4534
4666
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
4535
4667
|
accessibilityState: { disabled },
|
|
4536
|
-
style: [
|
|
4668
|
+
style: [styles17.stars, { gap: resolvedStarGap }],
|
|
4537
4669
|
children: Array.from({ length: STAR_COUNT }, (_, index) => {
|
|
4538
4670
|
const starValue = index + 1;
|
|
4539
4671
|
const isSelected = starValue <= selectedStarCount;
|
|
4540
4672
|
const icon = isSelected ? /* @__PURE__ */ jsxRuntime.jsx(StarFilledIcon, { size: iconWidth, height: iconHeight }) : /* @__PURE__ */ jsxRuntime.jsx(StarIcon, { size: iconWidth, height: iconHeight });
|
|
4541
|
-
const itemStyle = [
|
|
4673
|
+
const itemStyle = [styles17.starItem, { width: size, height: size }];
|
|
4542
4674
|
if (readOnly) {
|
|
4543
4675
|
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: itemStyle, children: icon }, starValue);
|
|
4544
4676
|
}
|
|
@@ -4564,7 +4696,7 @@ var RatingInput = react.forwardRef(
|
|
|
4564
4696
|
);
|
|
4565
4697
|
}
|
|
4566
4698
|
);
|
|
4567
|
-
var
|
|
4699
|
+
var styles17 = reactNative.StyleSheet.create({
|
|
4568
4700
|
root: {
|
|
4569
4701
|
flexDirection: "row",
|
|
4570
4702
|
alignItems: "center",
|
|
@@ -4628,19 +4760,19 @@ var CommentCard = react.forwardRef(
|
|
|
4628
4760
|
setExpanded(next);
|
|
4629
4761
|
onExpandedChange?.(next);
|
|
4630
4762
|
};
|
|
4631
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ...rest, ref: setContainerRef, style: [
|
|
4632
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
4633
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
4763
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ...rest, ref: setContainerRef, style: [styles18.root, style], children: [
|
|
4764
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.header, children: [
|
|
4765
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles18.avatar, children: hasImage ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4634
4766
|
reactNative.Image,
|
|
4635
4767
|
{
|
|
4636
4768
|
source: { uri: imageUrl ?? void 0 },
|
|
4637
|
-
style:
|
|
4769
|
+
style: styles18.avatarImage,
|
|
4638
4770
|
onError: () => setImageFailed(true)
|
|
4639
4771
|
}
|
|
4640
4772
|
) : /* @__PURE__ */ jsxRuntime.jsx(UserIcon, { size: 20, color: colors.primary }) }),
|
|
4641
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
4642
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style:
|
|
4643
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style:
|
|
4773
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.identity, children: [
|
|
4774
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles18.name, children: userName }),
|
|
4775
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles18.date, children: date })
|
|
4644
4776
|
] }),
|
|
4645
4777
|
/* @__PURE__ */ jsxRuntime.jsx(RatingInput, { value: rating, readOnly: true, showValue: false, size: 16 })
|
|
4646
4778
|
] }),
|
|
@@ -4648,7 +4780,7 @@ var CommentCard = react.forwardRef(
|
|
|
4648
4780
|
reactNative.Text,
|
|
4649
4781
|
{
|
|
4650
4782
|
numberOfLines: expanded ? void 0 : maxCommentLines,
|
|
4651
|
-
style: [
|
|
4783
|
+
style: [styles18.comment, commentStyle],
|
|
4652
4784
|
children: commentText
|
|
4653
4785
|
}
|
|
4654
4786
|
),
|
|
@@ -4661,14 +4793,14 @@ var CommentCard = react.forwardRef(
|
|
|
4661
4793
|
hitSlop: 6,
|
|
4662
4794
|
onHoverIn: () => setActionHovered(true),
|
|
4663
4795
|
onHoverOut: () => setActionHovered(false),
|
|
4664
|
-
style:
|
|
4796
|
+
style: styles18.action,
|
|
4665
4797
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4666
4798
|
reactNative.Text,
|
|
4667
4799
|
{
|
|
4668
4800
|
style: [
|
|
4669
|
-
|
|
4670
|
-
expanded &&
|
|
4671
|
-
actionHovered && (expanded ?
|
|
4801
|
+
styles18.actionText,
|
|
4802
|
+
expanded && styles18.closeActionText,
|
|
4803
|
+
actionHovered && (expanded ? styles18.closeActionTextHovered : styles18.openActionTextHovered)
|
|
4672
4804
|
],
|
|
4673
4805
|
children: expanded ? readLessLabel : readMoreLabel
|
|
4674
4806
|
}
|
|
@@ -4678,7 +4810,7 @@ var CommentCard = react.forwardRef(
|
|
|
4678
4810
|
] });
|
|
4679
4811
|
}
|
|
4680
4812
|
);
|
|
4681
|
-
var
|
|
4813
|
+
var styles18 = reactNative.StyleSheet.create({
|
|
4682
4814
|
root: {
|
|
4683
4815
|
width: CARD_WIDTH,
|
|
4684
4816
|
minHeight: CARD_MIN_HEIGHT,
|
|
@@ -5117,7 +5249,7 @@ var Range = react.forwardRef(function Range2({
|
|
|
5117
5249
|
...rest,
|
|
5118
5250
|
ref: setRootRef,
|
|
5119
5251
|
onLayout,
|
|
5120
|
-
style: [
|
|
5252
|
+
style: [styles19.root, disabled && styles19.disabled, style],
|
|
5121
5253
|
children: [
|
|
5122
5254
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5123
5255
|
reactNative.Pressable,
|
|
@@ -5131,16 +5263,16 @@ var Range = react.forwardRef(function Range2({
|
|
|
5131
5263
|
updateNearestFromTrack(event.nativeEvent.offsetX);
|
|
5132
5264
|
} : void 0,
|
|
5133
5265
|
onPress: reactNative.Platform.OS === "web" ? void 0 : handleTrackPress,
|
|
5134
|
-
style:
|
|
5266
|
+
style: styles19.sliderPlane,
|
|
5135
5267
|
tabIndex: -1,
|
|
5136
5268
|
children: [
|
|
5137
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style:
|
|
5269
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: styles19.track }),
|
|
5138
5270
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5139
5271
|
reactNative.View,
|
|
5140
5272
|
{
|
|
5141
5273
|
pointerEvents: "none",
|
|
5142
5274
|
style: [
|
|
5143
|
-
|
|
5275
|
+
styles19.activeTrack,
|
|
5144
5276
|
{
|
|
5145
5277
|
left: TRACK_HORIZONTAL_INSET + fromOffset,
|
|
5146
5278
|
width: toOffset - fromOffset + THUMB_SIZE2
|
|
@@ -5182,9 +5314,9 @@ var Range = react.forwardRef(function Range2({
|
|
|
5182
5314
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveFrom, updateFromInput),
|
|
5183
5315
|
pointerEvents: disabled ? "none" : "auto",
|
|
5184
5316
|
style: [
|
|
5185
|
-
|
|
5186
|
-
reactNative.Platform.OS === "web" &&
|
|
5187
|
-
focusedThumb === "from" && reactNative.Platform.OS === "web" &&
|
|
5317
|
+
styles19.thumb,
|
|
5318
|
+
reactNative.Platform.OS === "web" && styles19.thumbWeb,
|
|
5319
|
+
focusedThumb === "from" && reactNative.Platform.OS === "web" && styles19.thumbFocusedWeb,
|
|
5188
5320
|
{ left: TRACK_HORIZONTAL_INSET + fromOffset }
|
|
5189
5321
|
],
|
|
5190
5322
|
tabIndex: disabled ? -1 : 0
|
|
@@ -5224,9 +5356,9 @@ var Range = react.forwardRef(function Range2({
|
|
|
5224
5356
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveTo, updateToInput),
|
|
5225
5357
|
pointerEvents: disabled ? "none" : "auto",
|
|
5226
5358
|
style: [
|
|
5227
|
-
|
|
5228
|
-
reactNative.Platform.OS === "web" &&
|
|
5229
|
-
focusedThumb === "to" && reactNative.Platform.OS === "web" &&
|
|
5359
|
+
styles19.thumb,
|
|
5360
|
+
reactNative.Platform.OS === "web" && styles19.thumbWeb,
|
|
5361
|
+
focusedThumb === "to" && reactNative.Platform.OS === "web" && styles19.thumbFocusedWeb,
|
|
5230
5362
|
{ left: TRACK_HORIZONTAL_INSET + toOffset }
|
|
5231
5363
|
],
|
|
5232
5364
|
tabIndex: disabled ? -1 : 0
|
|
@@ -5235,7 +5367,7 @@ var Range = react.forwardRef(function Range2({
|
|
|
5235
5367
|
]
|
|
5236
5368
|
}
|
|
5237
5369
|
),
|
|
5238
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
5370
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles19.inputs, children: [
|
|
5239
5371
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5240
5372
|
RangeInput,
|
|
5241
5373
|
{
|
|
@@ -5286,7 +5418,7 @@ function RangeInput({
|
|
|
5286
5418
|
placeholder,
|
|
5287
5419
|
value
|
|
5288
5420
|
}) {
|
|
5289
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
5421
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles19.inputField, focused && styles19.inputFieldFocused], children: [
|
|
5290
5422
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5291
5423
|
reactNative.TextInput,
|
|
5292
5424
|
{
|
|
@@ -5302,15 +5434,15 @@ function RangeInput({
|
|
|
5302
5434
|
placeholder,
|
|
5303
5435
|
placeholderTextColor: colors.grey150,
|
|
5304
5436
|
returnKeyType: "done",
|
|
5305
|
-
style: [
|
|
5437
|
+
style: [styles19.input, reactNative.Platform.OS === "web" && styles19.inputWeb],
|
|
5306
5438
|
tabIndex: disabled ? -1 : void 0,
|
|
5307
5439
|
value
|
|
5308
5440
|
}
|
|
5309
5441
|
),
|
|
5310
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
5442
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles19.currencySlot, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles19.currency, children: currency }) })
|
|
5311
5443
|
] });
|
|
5312
5444
|
}
|
|
5313
|
-
var
|
|
5445
|
+
var styles19 = reactNative.StyleSheet.create({
|
|
5314
5446
|
root: {
|
|
5315
5447
|
width: DEFAULT_WIDTH5,
|
|
5316
5448
|
gap: 15,
|
|
@@ -5414,6 +5546,7 @@ var styles18 = reactNative.StyleSheet.create({
|
|
|
5414
5546
|
}
|
|
5415
5547
|
});
|
|
5416
5548
|
|
|
5549
|
+
exports.Amenity = Amenity;
|
|
5417
5550
|
exports.AmenityIcon = AmenityIcon;
|
|
5418
5551
|
exports.AppleIcon = AppleIcon;
|
|
5419
5552
|
exports.AreaExpandIcon = AreaExpandIcon;
|