@ecohouse/ui 0.1.29 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.cjs +594 -197
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +64 -2
- package/dist/index.d.ts +64 -2
- package/dist/index.js +593 -198
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AvatarSimple/AvatarSimple.stories.tsx +62 -0
- package/src/components/AvatarSimple/AvatarSimple.tsx +178 -0
- package/src/components/AvatarSimple/index.ts +2 -0
- package/src/components/SegmentedToggle/SegmentedToggle.stories.tsx +22 -0
- package/src/components/SegmentedToggle/SegmentedToggle.tsx +51 -18
- package/src/components/Sidebar/Sidebar.stories.tsx +119 -0
- package/src/components/Sidebar/Sidebar.tsx +313 -0
- package/src/components/Sidebar/index.ts +2 -0
- package/src/components/index.ts +6 -0
- package/src/icons/LogOut/logOutPath.ts +1 -1
- package/src/index.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -872,7 +872,7 @@ function LocationPinIcon({ size = 20, color = colors.grey200, strokeWidth = 2 })
|
|
|
872
872
|
}
|
|
873
873
|
|
|
874
874
|
// src/icons/LogOut/logOutPath.ts
|
|
875
|
-
var LOG_OUT_PATH = "M10.6667 4.66667L14 8L10.6667 11.3333M14
|
|
875
|
+
var LOG_OUT_PATH = "M10.6667 4.66667L14 8L10.6667 11.3333M14 8H6M6 2H5.2C4.0799 2 3.51984 2 3.09202 2.21799C2.7157 2.40973 2.40973 2.71569 2.21799 3.09202C2 3.51984 2 4.07989 2 5.2V10.8C2 11.9201 2 12.4802 2.21799 12.908C2.40973 13.2843 2.71569 13.5903 3.09202 13.782C3.51984 14 4.0799 14 5.2 14H6";
|
|
876
876
|
function LogOutIcon({ size = 20, color = colors.red, strokeWidth = 1.5 }) {
|
|
877
877
|
return /* @__PURE__ */ jsx(Svg16, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
|
|
878
878
|
Path,
|
|
@@ -2070,6 +2070,136 @@ var styles4 = StyleSheet.create({
|
|
|
2070
2070
|
})
|
|
2071
2071
|
}
|
|
2072
2072
|
});
|
|
2073
|
+
var IMAGE_SIZE2 = 32;
|
|
2074
|
+
var CARD_WIDTH = 268;
|
|
2075
|
+
var CARD_HEIGHT = 56;
|
|
2076
|
+
var LOG_OUT_SIZE = 16;
|
|
2077
|
+
var AvatarSimple = forwardRef(
|
|
2078
|
+
function AvatarSimple2({
|
|
2079
|
+
name,
|
|
2080
|
+
email,
|
|
2081
|
+
imageUrl,
|
|
2082
|
+
onLogOut,
|
|
2083
|
+
logOutAccessibilityLabel = "Log out",
|
|
2084
|
+
compact = false,
|
|
2085
|
+
style,
|
|
2086
|
+
className,
|
|
2087
|
+
...rest
|
|
2088
|
+
}, forwardedRef) {
|
|
2089
|
+
const containerRef = useRef(null);
|
|
2090
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
2091
|
+
const [imageFailed, setImageFailed] = useState(false);
|
|
2092
|
+
const showImage = Boolean(imageUrl) && !imageFailed;
|
|
2093
|
+
useApplyWebClassName(containerRef, className);
|
|
2094
|
+
return /* @__PURE__ */ jsxs(
|
|
2095
|
+
View,
|
|
2096
|
+
{
|
|
2097
|
+
...rest,
|
|
2098
|
+
ref: setContainerRef,
|
|
2099
|
+
style: [styles5.root, compact ? styles5.rootCompact : styles5.rootCard, style],
|
|
2100
|
+
accessibilityRole: "summary",
|
|
2101
|
+
accessibilityLabel: `${name}, ${email}`,
|
|
2102
|
+
children: [
|
|
2103
|
+
/* @__PURE__ */ jsx(View, { style: styles5.avatar, children: showImage ? /* @__PURE__ */ jsx(
|
|
2104
|
+
Image,
|
|
2105
|
+
{
|
|
2106
|
+
source: { uri: imageUrl ?? void 0 },
|
|
2107
|
+
style: styles5.avatarImage,
|
|
2108
|
+
onError: () => setImageFailed(true),
|
|
2109
|
+
accessibilityIgnoresInvertColors: true
|
|
2110
|
+
}
|
|
2111
|
+
) : null }),
|
|
2112
|
+
!compact ? /* @__PURE__ */ jsxs(View, { style: styles5.details, children: [
|
|
2113
|
+
/* @__PURE__ */ jsxs(View, { style: styles5.textBlock, children: [
|
|
2114
|
+
/* @__PURE__ */ jsx(Text, { style: styles5.name, numberOfLines: 1, children: name }),
|
|
2115
|
+
/* @__PURE__ */ jsx(Text, { style: styles5.email, numberOfLines: 1, children: email })
|
|
2116
|
+
] }),
|
|
2117
|
+
/* @__PURE__ */ jsx(
|
|
2118
|
+
Pressable,
|
|
2119
|
+
{
|
|
2120
|
+
onPress: onLogOut,
|
|
2121
|
+
accessibilityRole: "button",
|
|
2122
|
+
accessibilityLabel: logOutAccessibilityLabel,
|
|
2123
|
+
hitSlop: 8,
|
|
2124
|
+
style: styles5.logOutButton,
|
|
2125
|
+
children: /* @__PURE__ */ jsx(LogOutIcon, { color: colors.primary, size: LOG_OUT_SIZE, strokeWidth: 2 })
|
|
2126
|
+
}
|
|
2127
|
+
)
|
|
2128
|
+
] }) : null
|
|
2129
|
+
]
|
|
2130
|
+
}
|
|
2131
|
+
);
|
|
2132
|
+
}
|
|
2133
|
+
);
|
|
2134
|
+
var styles5 = StyleSheet.create({
|
|
2135
|
+
root: {
|
|
2136
|
+
flexDirection: "row",
|
|
2137
|
+
alignItems: "center",
|
|
2138
|
+
overflow: "hidden"
|
|
2139
|
+
},
|
|
2140
|
+
rootCard: {
|
|
2141
|
+
width: CARD_WIDTH,
|
|
2142
|
+
height: CARD_HEIGHT,
|
|
2143
|
+
gap: 12,
|
|
2144
|
+
borderRadius: 12,
|
|
2145
|
+
paddingVertical: 4,
|
|
2146
|
+
paddingHorizontal: 12,
|
|
2147
|
+
backgroundColor: colors.grey700
|
|
2148
|
+
},
|
|
2149
|
+
rootCompact: {
|
|
2150
|
+
width: IMAGE_SIZE2,
|
|
2151
|
+
height: IMAGE_SIZE2,
|
|
2152
|
+
borderRadius: IMAGE_SIZE2,
|
|
2153
|
+
backgroundColor: "transparent"
|
|
2154
|
+
},
|
|
2155
|
+
avatar: {
|
|
2156
|
+
width: IMAGE_SIZE2,
|
|
2157
|
+
height: IMAGE_SIZE2,
|
|
2158
|
+
borderRadius: 56,
|
|
2159
|
+
backgroundColor: colors.grey500,
|
|
2160
|
+
overflow: "hidden",
|
|
2161
|
+
flexShrink: 0
|
|
2162
|
+
},
|
|
2163
|
+
avatarImage: {
|
|
2164
|
+
width: IMAGE_SIZE2,
|
|
2165
|
+
height: IMAGE_SIZE2
|
|
2166
|
+
},
|
|
2167
|
+
details: {
|
|
2168
|
+
flex: 1,
|
|
2169
|
+
minWidth: 0,
|
|
2170
|
+
flexDirection: "row",
|
|
2171
|
+
alignItems: "center",
|
|
2172
|
+
gap: 12
|
|
2173
|
+
},
|
|
2174
|
+
textBlock: {
|
|
2175
|
+
flex: 1,
|
|
2176
|
+
minWidth: 0
|
|
2177
|
+
},
|
|
2178
|
+
name: {
|
|
2179
|
+
fontFamily: fonts.sans,
|
|
2180
|
+
fontSize: 12,
|
|
2181
|
+
fontWeight: "600",
|
|
2182
|
+
lineHeight: 16,
|
|
2183
|
+
letterSpacing: 0,
|
|
2184
|
+
color: colors.white
|
|
2185
|
+
},
|
|
2186
|
+
email: {
|
|
2187
|
+
marginTop: 2,
|
|
2188
|
+
fontFamily: fonts.sans,
|
|
2189
|
+
fontSize: 12,
|
|
2190
|
+
fontWeight: "400",
|
|
2191
|
+
lineHeight: 16,
|
|
2192
|
+
letterSpacing: 0,
|
|
2193
|
+
color: colors.grey0
|
|
2194
|
+
},
|
|
2195
|
+
logOutButton: {
|
|
2196
|
+
width: LOG_OUT_SIZE,
|
|
2197
|
+
height: LOG_OUT_SIZE,
|
|
2198
|
+
alignItems: "center",
|
|
2199
|
+
justifyContent: "center",
|
|
2200
|
+
flexShrink: 0
|
|
2201
|
+
}
|
|
2202
|
+
});
|
|
2073
2203
|
var ICON_SIZE3 = 20;
|
|
2074
2204
|
var webBlurStyle2 = Platform.OS === "web" ? {
|
|
2075
2205
|
backdropFilter: "blur(10.3px)",
|
|
@@ -2101,22 +2231,22 @@ var Badge = forwardRef(function Badge2({ label, variant = "default", icon: Icon2
|
|
|
2101
2231
|
...rest,
|
|
2102
2232
|
ref: setContainerRef,
|
|
2103
2233
|
style: [
|
|
2104
|
-
|
|
2234
|
+
styles6.base,
|
|
2105
2235
|
{ backgroundColor: preset.backgroundColor },
|
|
2106
|
-
preset.border ?
|
|
2236
|
+
preset.border ? styles6.transparentBorder : null,
|
|
2107
2237
|
preset.blur ? webBlurStyle2 : null,
|
|
2108
2238
|
style
|
|
2109
2239
|
],
|
|
2110
2240
|
accessibilityRole: "text",
|
|
2111
2241
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
2112
2242
|
children: [
|
|
2113
|
-
Icon2 ? /* @__PURE__ */ jsx(View, { style:
|
|
2114
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
2243
|
+
Icon2 ? /* @__PURE__ */ jsx(View, { style: styles6.iconSlot, children: /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE3, color: preset.iconColor }) }) : null,
|
|
2244
|
+
/* @__PURE__ */ jsx(Text, { style: [styles6.label, Platform.OS === "android" ? styles6.labelAndroid : null], children: label })
|
|
2115
2245
|
]
|
|
2116
2246
|
}
|
|
2117
2247
|
);
|
|
2118
2248
|
});
|
|
2119
|
-
var
|
|
2249
|
+
var styles6 = StyleSheet.create({
|
|
2120
2250
|
base: {
|
|
2121
2251
|
flexDirection: "row",
|
|
2122
2252
|
alignItems: "center",
|
|
@@ -2189,7 +2319,7 @@ var Counter = forwardRef(function Counter2({
|
|
|
2189
2319
|
if (!isControlled) setUncontrolledValue(next);
|
|
2190
2320
|
onValueChange?.(next);
|
|
2191
2321
|
};
|
|
2192
|
-
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [
|
|
2322
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [styles7.base, style], children: [
|
|
2193
2323
|
/* @__PURE__ */ jsx(
|
|
2194
2324
|
Pressable,
|
|
2195
2325
|
{
|
|
@@ -2199,11 +2329,11 @@ var Counter = forwardRef(function Counter2({
|
|
|
2199
2329
|
accessibilityRole: "button",
|
|
2200
2330
|
accessibilityLabel: "Decrease value",
|
|
2201
2331
|
accessibilityState: { disabled: decrementDisabled },
|
|
2202
|
-
style: [
|
|
2332
|
+
style: [styles7.button, webBlurStyle3, decrementDisabled && styles7.buttonDisabled],
|
|
2203
2333
|
children: /* @__PURE__ */ jsx(MinusIcon, {})
|
|
2204
2334
|
}
|
|
2205
2335
|
),
|
|
2206
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
2336
|
+
/* @__PURE__ */ jsx(Text, { style: styles7.value, children: resolvedValue }),
|
|
2207
2337
|
/* @__PURE__ */ jsx(
|
|
2208
2338
|
Pressable,
|
|
2209
2339
|
{
|
|
@@ -2213,13 +2343,13 @@ var Counter = forwardRef(function Counter2({
|
|
|
2213
2343
|
accessibilityRole: "button",
|
|
2214
2344
|
accessibilityLabel: "Increase value",
|
|
2215
2345
|
accessibilityState: { disabled: incrementDisabled },
|
|
2216
|
-
style: [
|
|
2346
|
+
style: [styles7.button, webBlurStyle3, incrementDisabled && styles7.buttonDisabled],
|
|
2217
2347
|
children: /* @__PURE__ */ jsx(PlusIcon, {})
|
|
2218
2348
|
}
|
|
2219
2349
|
)
|
|
2220
2350
|
] });
|
|
2221
2351
|
});
|
|
2222
|
-
var
|
|
2352
|
+
var styles7 = StyleSheet.create({
|
|
2223
2353
|
base: {
|
|
2224
2354
|
flexDirection: "row",
|
|
2225
2355
|
alignItems: "center",
|
|
@@ -2249,6 +2379,17 @@ var OPTION_HORIZONTAL_PADDING = 16;
|
|
|
2249
2379
|
var OPTION_CONTENT_GAP = 12;
|
|
2250
2380
|
var OPTION_MIN_WIDTH = 97;
|
|
2251
2381
|
var OPTION_MEASUREMENT_TOLERANCE = 0.5;
|
|
2382
|
+
var TRACK_PADDING = 4;
|
|
2383
|
+
var OPTION_GAP = 4;
|
|
2384
|
+
function buildIndicatorOutputRange(optionWidths) {
|
|
2385
|
+
const outputRange = [];
|
|
2386
|
+
let offset = 0;
|
|
2387
|
+
for (let index = 0; index < optionWidths.length; index += 1) {
|
|
2388
|
+
outputRange.push(offset);
|
|
2389
|
+
offset += optionWidths[index] + OPTION_GAP;
|
|
2390
|
+
}
|
|
2391
|
+
return outputRange;
|
|
2392
|
+
}
|
|
2252
2393
|
var SegmentedToggle = forwardRef(
|
|
2253
2394
|
function SegmentedToggle2({
|
|
2254
2395
|
options,
|
|
@@ -2263,6 +2404,7 @@ var SegmentedToggle = forwardRef(
|
|
|
2263
2404
|
onLayout,
|
|
2264
2405
|
...rest
|
|
2265
2406
|
}, forwardedRef) {
|
|
2407
|
+
const optionCount = options.length;
|
|
2266
2408
|
const containerRef = useRef(null);
|
|
2267
2409
|
const isControlled = value !== void 0;
|
|
2268
2410
|
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
@@ -2274,20 +2416,31 @@ var SegmentedToggle = forwardRef(
|
|
|
2274
2416
|
const resolvedClassName = className?.trim() || void 0;
|
|
2275
2417
|
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
2276
2418
|
const progress = useRef(new Animated.Value(selectedIndex)).current;
|
|
2277
|
-
const [contentWidths, setContentWidths] = useState(
|
|
2419
|
+
const [contentWidths, setContentWidths] = useState(
|
|
2420
|
+
() => Array.from({ length: optionCount }, () => 0)
|
|
2421
|
+
);
|
|
2278
2422
|
const [containerWidth, setContainerWidth] = useState(0);
|
|
2279
|
-
const
|
|
2423
|
+
const trackChrome = TRACK_PADDING * 2 + OPTION_GAP * (optionCount - 1);
|
|
2424
|
+
const availableOptionWidth = Math.max(0, (containerWidth - trackChrome) / optionCount);
|
|
2280
2425
|
const resolveContentOptionWidth = (contentWidth) => contentWidth > 0 ? Math.max(
|
|
2281
2426
|
OPTION_MIN_WIDTH,
|
|
2282
2427
|
contentWidth + OPTION_HORIZONTAL_PADDING * 2 + OPTION_MEASUREMENT_TOLERANCE
|
|
2283
2428
|
) : 0;
|
|
2284
|
-
const optionWidths = fullWidth ?
|
|
2285
|
-
const selectedOptionWidth = optionWidths[selectedIndex];
|
|
2429
|
+
const optionWidths = fullWidth ? Array.from({ length: optionCount }, () => availableOptionWidth) : contentWidths.map((width) => resolveContentOptionWidth(width));
|
|
2430
|
+
const selectedOptionWidth = optionWidths[selectedIndex] ?? 0;
|
|
2431
|
+
const indicatorInputRange = options.map((_, index) => index);
|
|
2432
|
+
const indicatorOutputRange = buildIndicatorOutputRange(optionWidths);
|
|
2286
2433
|
const indicatorTranslateX = progress.interpolate({
|
|
2287
|
-
inputRange:
|
|
2288
|
-
outputRange:
|
|
2434
|
+
inputRange: indicatorInputRange,
|
|
2435
|
+
outputRange: indicatorOutputRange
|
|
2289
2436
|
});
|
|
2290
2437
|
useApplyWebClassName(containerRef, resolvedClassName);
|
|
2438
|
+
useEffect(() => {
|
|
2439
|
+
setContentWidths((current) => {
|
|
2440
|
+
if (current.length === optionCount) return current;
|
|
2441
|
+
return Array.from({ length: optionCount }, (_, index) => current[index] ?? 0);
|
|
2442
|
+
});
|
|
2443
|
+
}, [optionCount]);
|
|
2291
2444
|
useEffect(() => {
|
|
2292
2445
|
const animation = Animated.timing(progress, {
|
|
2293
2446
|
toValue: selectedIndex,
|
|
@@ -2316,9 +2469,9 @@ var SegmentedToggle = forwardRef(
|
|
|
2316
2469
|
onLayout?.(event);
|
|
2317
2470
|
},
|
|
2318
2471
|
style: [
|
|
2319
|
-
|
|
2320
|
-
fullWidth ?
|
|
2321
|
-
disabled &&
|
|
2472
|
+
styles8.base,
|
|
2473
|
+
fullWidth ? styles8.fullWidth : styles8.contentWidth,
|
|
2474
|
+
disabled && styles8.disabled,
|
|
2322
2475
|
style
|
|
2323
2476
|
],
|
|
2324
2477
|
accessibilityRole: "radiogroup",
|
|
@@ -2334,15 +2487,15 @@ var SegmentedToggle = forwardRef(
|
|
|
2334
2487
|
const nextWidth = event.nativeEvent.layout.width;
|
|
2335
2488
|
setContentWidths((currentWidths) => {
|
|
2336
2489
|
if (currentWidths[index] === nextWidth) return currentWidths;
|
|
2337
|
-
const nextWidths = [currentWidths
|
|
2490
|
+
const nextWidths = [...currentWidths];
|
|
2338
2491
|
nextWidths[index] = nextWidth;
|
|
2339
2492
|
return nextWidths;
|
|
2340
2493
|
});
|
|
2341
2494
|
},
|
|
2342
|
-
style:
|
|
2495
|
+
style: styles8.optionMeasurement,
|
|
2343
2496
|
children: [
|
|
2344
2497
|
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE4 }) : null,
|
|
2345
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
2498
|
+
/* @__PURE__ */ jsx(Text, { style: [styles8.label, styles8.contentWidthLabel], children: label })
|
|
2346
2499
|
]
|
|
2347
2500
|
},
|
|
2348
2501
|
`${optionValue}-measurement`
|
|
@@ -2352,7 +2505,7 @@ var SegmentedToggle = forwardRef(
|
|
|
2352
2505
|
{
|
|
2353
2506
|
pointerEvents: "none",
|
|
2354
2507
|
style: [
|
|
2355
|
-
|
|
2508
|
+
styles8.activeIndicator,
|
|
2356
2509
|
{ width: selectedOptionWidth, transform: [{ translateX: indicatorTranslateX }] }
|
|
2357
2510
|
]
|
|
2358
2511
|
}
|
|
@@ -2361,6 +2514,7 @@ var SegmentedToggle = forwardRef(
|
|
|
2361
2514
|
const selected = optionValue === selectedValue;
|
|
2362
2515
|
const iconColor = selected ? colors.primary : colors.whiteAlpha20;
|
|
2363
2516
|
const labelColor = selected ? colors.whiteAlpha86 : colors.whiteAlpha40;
|
|
2517
|
+
const optionWidth = optionWidths[index] ?? 0;
|
|
2364
2518
|
return /* @__PURE__ */ jsx(
|
|
2365
2519
|
Pressable,
|
|
2366
2520
|
{
|
|
@@ -2371,21 +2525,18 @@ var SegmentedToggle = forwardRef(
|
|
|
2371
2525
|
accessibilityLabel: label,
|
|
2372
2526
|
accessibilityState: { selected, disabled },
|
|
2373
2527
|
style: [
|
|
2374
|
-
|
|
2375
|
-
fullWidth ?
|
|
2376
|
-
styles7.optionContentWidth,
|
|
2377
|
-
optionWidths[index] > 0 && { width: optionWidths[index] }
|
|
2378
|
-
]
|
|
2528
|
+
styles8.option,
|
|
2529
|
+
fullWidth ? styles8.optionFullWidth : [styles8.optionContentWidth, optionWidth > 0 && { width: optionWidth }]
|
|
2379
2530
|
],
|
|
2380
|
-
children: /* @__PURE__ */ jsxs(View, { style:
|
|
2531
|
+
children: /* @__PURE__ */ jsxs(View, { style: styles8.optionContent, children: [
|
|
2381
2532
|
Icon2 ? /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE4, color: iconColor }) : null,
|
|
2382
2533
|
/* @__PURE__ */ jsx(
|
|
2383
2534
|
Text,
|
|
2384
2535
|
{
|
|
2385
2536
|
numberOfLines: fullWidth ? 1 : void 0,
|
|
2386
2537
|
style: [
|
|
2387
|
-
|
|
2388
|
-
!fullWidth &&
|
|
2538
|
+
styles8.label,
|
|
2539
|
+
!fullWidth && styles8.contentWidthLabel,
|
|
2389
2540
|
{ color: labelColor }
|
|
2390
2541
|
],
|
|
2391
2542
|
children: label
|
|
@@ -2401,12 +2552,12 @@ var SegmentedToggle = forwardRef(
|
|
|
2401
2552
|
);
|
|
2402
2553
|
}
|
|
2403
2554
|
);
|
|
2404
|
-
var
|
|
2555
|
+
var styles8 = StyleSheet.create({
|
|
2405
2556
|
base: {
|
|
2406
2557
|
height: 44,
|
|
2407
2558
|
flexDirection: "row",
|
|
2408
|
-
padding:
|
|
2409
|
-
gap:
|
|
2559
|
+
padding: TRACK_PADDING,
|
|
2560
|
+
gap: OPTION_GAP,
|
|
2410
2561
|
borderRadius: 60,
|
|
2411
2562
|
backgroundColor: colors.grey700,
|
|
2412
2563
|
overflow: "hidden"
|
|
@@ -2451,8 +2602,8 @@ var styles7 = StyleSheet.create({
|
|
|
2451
2602
|
},
|
|
2452
2603
|
activeIndicator: {
|
|
2453
2604
|
position: "absolute",
|
|
2454
|
-
top:
|
|
2455
|
-
left:
|
|
2605
|
+
top: TRACK_PADDING,
|
|
2606
|
+
left: TRACK_PADDING,
|
|
2456
2607
|
height: 36,
|
|
2457
2608
|
backgroundColor: colors.grey600,
|
|
2458
2609
|
borderRadius: 60
|
|
@@ -2465,6 +2616,250 @@ var styles7 = StyleSheet.create({
|
|
|
2465
2616
|
flexShrink: 0
|
|
2466
2617
|
}
|
|
2467
2618
|
});
|
|
2619
|
+
var SIDEBAR_WIDTH = 300;
|
|
2620
|
+
var SIDEBAR_COLLAPSED_WIDTH = 72;
|
|
2621
|
+
var HEADER_HEIGHT = 64;
|
|
2622
|
+
var LOGO_WIDTH = 31;
|
|
2623
|
+
var LOGO_HEIGHT = 44;
|
|
2624
|
+
var TOGGLE_SIZE = 20;
|
|
2625
|
+
var MENU_ICON_SIZE = 16;
|
|
2626
|
+
var PROFILE_SECTION_HEIGHT = 80;
|
|
2627
|
+
var SIDEBAR_TRANSITION_MS = 300;
|
|
2628
|
+
var Sidebar = forwardRef(function Sidebar2({
|
|
2629
|
+
items,
|
|
2630
|
+
user,
|
|
2631
|
+
onLogOut,
|
|
2632
|
+
logoAccessibilityLabel = "Cortel Booking",
|
|
2633
|
+
navigationAccessibilityLabel = "Account navigation",
|
|
2634
|
+
collapseAccessibilityLabel = "Collapse sidebar",
|
|
2635
|
+
expandAccessibilityLabel = "Expand sidebar",
|
|
2636
|
+
logOutAccessibilityLabel = "Log out",
|
|
2637
|
+
collapsed: collapsedProp,
|
|
2638
|
+
defaultCollapsed = false,
|
|
2639
|
+
onCollapsedChange,
|
|
2640
|
+
style,
|
|
2641
|
+
className,
|
|
2642
|
+
...rest
|
|
2643
|
+
}, forwardedRef) {
|
|
2644
|
+
const containerRef = useRef(null);
|
|
2645
|
+
const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
2646
|
+
const [uncontrolledCollapsed, setUncontrolledCollapsed] = useState(defaultCollapsed);
|
|
2647
|
+
const collapsed = collapsedProp ?? uncontrolledCollapsed;
|
|
2648
|
+
const widthAnim = useRef(
|
|
2649
|
+
new Animated.Value(collapsed ? SIDEBAR_COLLAPSED_WIDTH : SIDEBAR_WIDTH)
|
|
2650
|
+
).current;
|
|
2651
|
+
const labelOpacity = useRef(new Animated.Value(collapsed ? 0 : 1)).current;
|
|
2652
|
+
useApplyWebClassName(containerRef, className);
|
|
2653
|
+
useEffect(() => {
|
|
2654
|
+
const nextWidth = collapsed ? SIDEBAR_COLLAPSED_WIDTH : SIDEBAR_WIDTH;
|
|
2655
|
+
const nextOpacity = collapsed ? 0 : 1;
|
|
2656
|
+
const timing = {
|
|
2657
|
+
duration: SIDEBAR_TRANSITION_MS,
|
|
2658
|
+
easing: Easing.inOut(Easing.ease),
|
|
2659
|
+
useNativeDriver: false
|
|
2660
|
+
};
|
|
2661
|
+
const widthAnimation = Animated.timing(widthAnim, { ...timing, toValue: nextWidth });
|
|
2662
|
+
const opacityAnimation = Animated.timing(labelOpacity, { ...timing, toValue: nextOpacity });
|
|
2663
|
+
Animated.parallel([widthAnimation, opacityAnimation]).start();
|
|
2664
|
+
return () => {
|
|
2665
|
+
widthAnimation.stop();
|
|
2666
|
+
opacityAnimation.stop();
|
|
2667
|
+
};
|
|
2668
|
+
}, [collapsed, labelOpacity, widthAnim]);
|
|
2669
|
+
const setCollapsed = (next) => {
|
|
2670
|
+
onCollapsedChange?.(next);
|
|
2671
|
+
if (collapsedProp === void 0) {
|
|
2672
|
+
setUncontrolledCollapsed(next);
|
|
2673
|
+
}
|
|
2674
|
+
};
|
|
2675
|
+
return /* @__PURE__ */ jsxs(
|
|
2676
|
+
Animated.View,
|
|
2677
|
+
{
|
|
2678
|
+
...rest,
|
|
2679
|
+
ref: setContainerRef,
|
|
2680
|
+
style: [styles9.root, { width: widthAnim }, style],
|
|
2681
|
+
accessibilityRole: "menu",
|
|
2682
|
+
children: [
|
|
2683
|
+
/* @__PURE__ */ jsxs(View, { style: [styles9.header, collapsed ? styles9.headerCollapsed : styles9.headerExpanded], children: [
|
|
2684
|
+
/* @__PURE__ */ jsx(
|
|
2685
|
+
Animated.View,
|
|
2686
|
+
{
|
|
2687
|
+
pointerEvents: collapsed ? "none" : "auto",
|
|
2688
|
+
style: [
|
|
2689
|
+
styles9.logoSlot,
|
|
2690
|
+
{
|
|
2691
|
+
opacity: labelOpacity,
|
|
2692
|
+
maxWidth: collapsed ? 0 : LOGO_WIDTH
|
|
2693
|
+
}
|
|
2694
|
+
],
|
|
2695
|
+
accessibilityElementsHidden: collapsed,
|
|
2696
|
+
importantForAccessibility: collapsed ? "no-hide-descendants" : "auto",
|
|
2697
|
+
children: /* @__PURE__ */ jsx(
|
|
2698
|
+
BrandLogo,
|
|
2699
|
+
{
|
|
2700
|
+
accessibilityLabel: logoAccessibilityLabel,
|
|
2701
|
+
height: LOGO_HEIGHT,
|
|
2702
|
+
variant: "brand",
|
|
2703
|
+
width: LOGO_WIDTH
|
|
2704
|
+
}
|
|
2705
|
+
)
|
|
2706
|
+
}
|
|
2707
|
+
),
|
|
2708
|
+
/* @__PURE__ */ jsx(
|
|
2709
|
+
Pressable,
|
|
2710
|
+
{
|
|
2711
|
+
accessibilityRole: "button",
|
|
2712
|
+
accessibilityLabel: collapsed ? expandAccessibilityLabel : collapseAccessibilityLabel,
|
|
2713
|
+
accessibilityState: { expanded: !collapsed },
|
|
2714
|
+
hitSlop: 8,
|
|
2715
|
+
onPress: () => setCollapsed(!collapsed),
|
|
2716
|
+
style: styles9.toggleButton,
|
|
2717
|
+
children: /* @__PURE__ */ jsx(SidebarIcon, { color: colors.grey100, size: TOGGLE_SIZE, strokeWidth: 2 })
|
|
2718
|
+
}
|
|
2719
|
+
)
|
|
2720
|
+
] }),
|
|
2721
|
+
/* @__PURE__ */ jsx(
|
|
2722
|
+
View,
|
|
2723
|
+
{
|
|
2724
|
+
accessibilityLabel: navigationAccessibilityLabel,
|
|
2725
|
+
accessibilityRole: "menu",
|
|
2726
|
+
style: styles9.nav,
|
|
2727
|
+
children: items.map((item) => {
|
|
2728
|
+
const isActive = Boolean(item.active);
|
|
2729
|
+
const iconColor = isActive ? colors.primary : colors.grey300;
|
|
2730
|
+
const Icon2 = item.icon;
|
|
2731
|
+
const iconNode = /* @__PURE__ */ jsx(Icon2, { color: iconColor, size: MENU_ICON_SIZE, strokeWidth: 1.5 });
|
|
2732
|
+
return /* @__PURE__ */ jsx(
|
|
2733
|
+
MenuItem,
|
|
2734
|
+
{
|
|
2735
|
+
icon: iconNode,
|
|
2736
|
+
label: item.label,
|
|
2737
|
+
accessibilityLabel: item.label,
|
|
2738
|
+
backgroundColor: isActive ? colors.grey700 : "transparent",
|
|
2739
|
+
hoverColor: colors.grey700,
|
|
2740
|
+
onPress: item.onPress,
|
|
2741
|
+
labelStyle: [
|
|
2742
|
+
styles9.menuLabel,
|
|
2743
|
+
{ color: isActive ? colors.white : colors.grey200 },
|
|
2744
|
+
collapsed ? styles9.menuLabelCollapsed : styles9.menuLabelExpanded
|
|
2745
|
+
],
|
|
2746
|
+
style: [styles9.menuItem, collapsed ? styles9.menuItemCollapsed : null]
|
|
2747
|
+
},
|
|
2748
|
+
item.key
|
|
2749
|
+
);
|
|
2750
|
+
})
|
|
2751
|
+
}
|
|
2752
|
+
),
|
|
2753
|
+
/* @__PURE__ */ jsx(View, { style: [styles9.footer, collapsed ? styles9.footerCollapsed : styles9.footerExpanded], children: /* @__PURE__ */ jsx(
|
|
2754
|
+
AvatarSimple,
|
|
2755
|
+
{
|
|
2756
|
+
name: user.name,
|
|
2757
|
+
email: user.email,
|
|
2758
|
+
imageUrl: user.imageUrl,
|
|
2759
|
+
onLogOut,
|
|
2760
|
+
logOutAccessibilityLabel,
|
|
2761
|
+
compact: collapsed
|
|
2762
|
+
}
|
|
2763
|
+
) })
|
|
2764
|
+
]
|
|
2765
|
+
}
|
|
2766
|
+
);
|
|
2767
|
+
});
|
|
2768
|
+
var styles9 = StyleSheet.create({
|
|
2769
|
+
root: {
|
|
2770
|
+
flexDirection: "column",
|
|
2771
|
+
alignSelf: "stretch",
|
|
2772
|
+
height: "100%",
|
|
2773
|
+
minHeight: "100%",
|
|
2774
|
+
flexShrink: 0,
|
|
2775
|
+
backgroundColor: colors.dark,
|
|
2776
|
+
borderRightWidth: 1,
|
|
2777
|
+
borderRightColor: colors.grey700,
|
|
2778
|
+
overflow: "hidden"
|
|
2779
|
+
},
|
|
2780
|
+
header: {
|
|
2781
|
+
zIndex: 1,
|
|
2782
|
+
height: HEADER_HEIGHT,
|
|
2783
|
+
width: "100%",
|
|
2784
|
+
flexDirection: "row",
|
|
2785
|
+
alignItems: "center",
|
|
2786
|
+
borderBottomWidth: 1,
|
|
2787
|
+
borderBottomColor: colors.grey700,
|
|
2788
|
+
backgroundColor: colors.dark
|
|
2789
|
+
},
|
|
2790
|
+
headerExpanded: {
|
|
2791
|
+
justifyContent: "space-between",
|
|
2792
|
+
paddingHorizontal: 24
|
|
2793
|
+
},
|
|
2794
|
+
headerCollapsed: {
|
|
2795
|
+
justifyContent: "center",
|
|
2796
|
+
paddingHorizontal: 0
|
|
2797
|
+
},
|
|
2798
|
+
logoSlot: {
|
|
2799
|
+
minWidth: 0,
|
|
2800
|
+
height: LOGO_HEIGHT,
|
|
2801
|
+
flexShrink: 0,
|
|
2802
|
+
overflow: "hidden"
|
|
2803
|
+
},
|
|
2804
|
+
toggleButton: {
|
|
2805
|
+
width: TOGGLE_SIZE,
|
|
2806
|
+
height: TOGGLE_SIZE,
|
|
2807
|
+
alignItems: "center",
|
|
2808
|
+
justifyContent: "center",
|
|
2809
|
+
flexShrink: 0
|
|
2810
|
+
},
|
|
2811
|
+
nav: {
|
|
2812
|
+
flexGrow: 1,
|
|
2813
|
+
flexShrink: 1,
|
|
2814
|
+
flexBasis: 0,
|
|
2815
|
+
width: "100%",
|
|
2816
|
+
minHeight: 0,
|
|
2817
|
+
padding: 16,
|
|
2818
|
+
gap: 10
|
|
2819
|
+
},
|
|
2820
|
+
menuItem: {
|
|
2821
|
+
gap: 8
|
|
2822
|
+
},
|
|
2823
|
+
menuItemCollapsed: {
|
|
2824
|
+
gap: 0
|
|
2825
|
+
},
|
|
2826
|
+
menuLabel: {
|
|
2827
|
+
fontFamily: fonts.sans,
|
|
2828
|
+
fontSize: 12,
|
|
2829
|
+
fontWeight: "600",
|
|
2830
|
+
lineHeight: 16,
|
|
2831
|
+
letterSpacing: 0
|
|
2832
|
+
},
|
|
2833
|
+
menuLabelExpanded: {
|
|
2834
|
+
flexGrow: 1,
|
|
2835
|
+
flexShrink: 1,
|
|
2836
|
+
opacity: 1
|
|
2837
|
+
},
|
|
2838
|
+
menuLabelCollapsed: {
|
|
2839
|
+
flexGrow: 0,
|
|
2840
|
+
flexShrink: 0,
|
|
2841
|
+
width: 0,
|
|
2842
|
+
maxWidth: 0,
|
|
2843
|
+
opacity: 0,
|
|
2844
|
+
overflow: "hidden"
|
|
2845
|
+
},
|
|
2846
|
+
footer: {
|
|
2847
|
+
height: PROFILE_SECTION_HEIGHT,
|
|
2848
|
+
width: "100%",
|
|
2849
|
+
flexGrow: 0,
|
|
2850
|
+
flexShrink: 0,
|
|
2851
|
+
marginTop: "auto",
|
|
2852
|
+
alignItems: "center",
|
|
2853
|
+
justifyContent: "center",
|
|
2854
|
+
paddingVertical: 12
|
|
2855
|
+
},
|
|
2856
|
+
footerExpanded: {
|
|
2857
|
+
paddingHorizontal: 16
|
|
2858
|
+
},
|
|
2859
|
+
footerCollapsed: {
|
|
2860
|
+
paddingHorizontal: 0
|
|
2861
|
+
}
|
|
2862
|
+
});
|
|
2468
2863
|
var defaultLanguageOptions = [
|
|
2469
2864
|
{ value: "hy", label: "\u0540\u0561\u0575" },
|
|
2470
2865
|
{ value: "en", label: "Eng" },
|
|
@@ -2552,7 +2947,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
2552
2947
|
{
|
|
2553
2948
|
...rest,
|
|
2554
2949
|
ref: setWrapperRef,
|
|
2555
|
-
style: [
|
|
2950
|
+
style: [styles10.wrapper, isOpen && styles10.wrapperOpen, disabled && styles10.disabled, style],
|
|
2556
2951
|
children: [
|
|
2557
2952
|
/* @__PURE__ */ jsxs(
|
|
2558
2953
|
Pressable,
|
|
@@ -2567,17 +2962,17 @@ var LanguageSwitcher = forwardRef(
|
|
|
2567
2962
|
onHoverIn: () => setTriggerHovered(true),
|
|
2568
2963
|
onHoverOut: () => setTriggerHovered(false),
|
|
2569
2964
|
style: ({ pressed }) => [
|
|
2570
|
-
|
|
2571
|
-
(triggerHovered || pressed || isOpen) &&
|
|
2965
|
+
styles10.trigger,
|
|
2966
|
+
(triggerHovered || pressed || isOpen) && styles10.triggerActive
|
|
2572
2967
|
],
|
|
2573
2968
|
children: [
|
|
2574
2969
|
/* @__PURE__ */ jsx(GlobeIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 }),
|
|
2575
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
2576
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
2970
|
+
/* @__PURE__ */ jsx(Text, { style: styles10.triggerLabel, numberOfLines: 1, children: selectedOption?.label ?? "" }),
|
|
2971
|
+
/* @__PURE__ */ jsx(View, { style: [styles10.chevron, isOpen && styles10.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE5, color: colors.white, strokeWidth: 2 }) })
|
|
2577
2972
|
]
|
|
2578
2973
|
}
|
|
2579
2974
|
),
|
|
2580
|
-
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(View, { style:
|
|
2975
|
+
isOpen && options.length > 0 ? /* @__PURE__ */ jsx(View, { style: styles10.menu, accessibilityRole: "menu", children: options.map((option) => {
|
|
2581
2976
|
const selected = option.value === selectedValue;
|
|
2582
2977
|
return /* @__PURE__ */ jsx(
|
|
2583
2978
|
Pressable,
|
|
@@ -2589,10 +2984,10 @@ var LanguageSwitcher = forwardRef(
|
|
|
2589
2984
|
onHoverIn: () => setHoveredValue(option.value),
|
|
2590
2985
|
onHoverOut: () => setHoveredValue(null),
|
|
2591
2986
|
style: ({ pressed }) => [
|
|
2592
|
-
|
|
2593
|
-
selected ?
|
|
2987
|
+
styles10.item,
|
|
2988
|
+
selected ? styles10.itemSelected : (hoveredValue === option.value || pressed) && styles10.itemHovered
|
|
2594
2989
|
],
|
|
2595
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
2990
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles10.itemLabel, selected && styles10.itemLabelSelected], children: option.label })
|
|
2596
2991
|
},
|
|
2597
2992
|
option.value
|
|
2598
2993
|
);
|
|
@@ -2602,7 +2997,7 @@ var LanguageSwitcher = forwardRef(
|
|
|
2602
2997
|
);
|
|
2603
2998
|
}
|
|
2604
2999
|
);
|
|
2605
|
-
var
|
|
3000
|
+
var styles10 = StyleSheet.create({
|
|
2606
3001
|
wrapper: {
|
|
2607
3002
|
position: "relative",
|
|
2608
3003
|
width: CONTROL_WIDTH,
|
|
@@ -2698,17 +3093,17 @@ var StatCard = forwardRef(function StatCard2({
|
|
|
2698
3093
|
{
|
|
2699
3094
|
...rest,
|
|
2700
3095
|
ref: setContainerRef,
|
|
2701
|
-
style: [
|
|
3096
|
+
style: [styles11.base, style],
|
|
2702
3097
|
accessibilityRole: "text",
|
|
2703
3098
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
2704
3099
|
children: [
|
|
2705
3100
|
/* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }),
|
|
2706
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3101
|
+
/* @__PURE__ */ jsx(Text, { style: styles11.label, children: label })
|
|
2707
3102
|
]
|
|
2708
3103
|
}
|
|
2709
3104
|
);
|
|
2710
3105
|
});
|
|
2711
|
-
var
|
|
3106
|
+
var styles11 = StyleSheet.create({
|
|
2712
3107
|
base: {
|
|
2713
3108
|
width: 204.5,
|
|
2714
3109
|
minHeight: 114,
|
|
@@ -2794,7 +3189,7 @@ var Button = forwardRef(
|
|
|
2794
3189
|
useApplyWebClassName(textRef, textClassName);
|
|
2795
3190
|
const iconNode = customIcon ?? /* @__PURE__ */ jsx(ArrowRightIcon, { size: metrics.iconSize, color: preset.iconColor });
|
|
2796
3191
|
const containerStyle = [
|
|
2797
|
-
|
|
3192
|
+
styles12.base,
|
|
2798
3193
|
{
|
|
2799
3194
|
minHeight: metrics.minHeight,
|
|
2800
3195
|
borderRadius: metrics.borderRadius,
|
|
@@ -2805,16 +3200,16 @@ var Button = forwardRef(
|
|
|
2805
3200
|
paddingRight: hasIcon ? metrics.paddingRightWithIcon : metrics.paddingRight,
|
|
2806
3201
|
gap: hasIcon ? metrics.gap : 0
|
|
2807
3202
|
},
|
|
2808
|
-
hasIcon ?
|
|
2809
|
-
disabled &&
|
|
3203
|
+
hasIcon ? styles12.contentWithIcon : styles12.contentWithoutIcon,
|
|
3204
|
+
disabled && styles12.disabled,
|
|
2810
3205
|
style
|
|
2811
3206
|
];
|
|
2812
3207
|
const labelStyle = [
|
|
2813
|
-
|
|
3208
|
+
styles12.label,
|
|
2814
3209
|
metrics.text,
|
|
2815
3210
|
{ color: preset.textColor },
|
|
2816
|
-
Platform.OS === "android" ?
|
|
2817
|
-
!hasIcon &&
|
|
3211
|
+
Platform.OS === "android" ? styles12.labelAndroid : null,
|
|
3212
|
+
!hasIcon && styles12.labelCentered,
|
|
2818
3213
|
textStyle
|
|
2819
3214
|
];
|
|
2820
3215
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2835,7 +3230,7 @@ var Button = forwardRef(
|
|
|
2835
3230
|
View,
|
|
2836
3231
|
{
|
|
2837
3232
|
style: [
|
|
2838
|
-
|
|
3233
|
+
styles12.iconContainer,
|
|
2839
3234
|
{
|
|
2840
3235
|
width: metrics.iconContainerSize,
|
|
2841
3236
|
height: metrics.iconContainerSize,
|
|
@@ -2851,7 +3246,7 @@ var Button = forwardRef(
|
|
|
2851
3246
|
);
|
|
2852
3247
|
}
|
|
2853
3248
|
);
|
|
2854
|
-
var
|
|
3249
|
+
var styles12 = StyleSheet.create({
|
|
2855
3250
|
base: {
|
|
2856
3251
|
flexDirection: "row",
|
|
2857
3252
|
alignItems: "center",
|
|
@@ -2935,13 +3330,13 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
2935
3330
|
accessibilityRole: "checkbox",
|
|
2936
3331
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
2937
3332
|
accessibilityState: { checked: isActive, disabled },
|
|
2938
|
-
style: [
|
|
3333
|
+
style: [styles13.root, disabled && styles13.disabled, style],
|
|
2939
3334
|
children: [
|
|
2940
3335
|
/* @__PURE__ */ jsx(
|
|
2941
3336
|
View,
|
|
2942
3337
|
{
|
|
2943
3338
|
style: [
|
|
2944
|
-
|
|
3339
|
+
styles13.box,
|
|
2945
3340
|
{
|
|
2946
3341
|
backgroundColor: chrome.backgroundColor,
|
|
2947
3342
|
borderColor: chrome.borderColor
|
|
@@ -2950,12 +3345,12 @@ var Checkbox = forwardRef(function Checkbox2({
|
|
|
2950
3345
|
children: isActive ? /* @__PURE__ */ jsx(CheckIcon, { size: CHECK_SIZE, color: colors.primary, strokeWidth: CHECK_STROKE }) : null
|
|
2951
3346
|
}
|
|
2952
3347
|
),
|
|
2953
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
3348
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles13.label, labelStyle], children: labelContent }) : labelContent : null
|
|
2954
3349
|
]
|
|
2955
3350
|
}
|
|
2956
3351
|
);
|
|
2957
3352
|
});
|
|
2958
|
-
var
|
|
3353
|
+
var styles13 = StyleSheet.create({
|
|
2959
3354
|
root: {
|
|
2960
3355
|
flexDirection: "row",
|
|
2961
3356
|
alignItems: "center",
|
|
@@ -3063,13 +3458,13 @@ function RangeTriggerField({
|
|
|
3063
3458
|
value,
|
|
3064
3459
|
time
|
|
3065
3460
|
}) {
|
|
3066
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
3067
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
3068
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
3069
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
3070
|
-
time ? /* @__PURE__ */ jsxs(View, { style:
|
|
3461
|
+
return /* @__PURE__ */ jsxs(View, { style: styles14.rangeField, children: [
|
|
3462
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles14.rangeLabel, children: label }),
|
|
3463
|
+
/* @__PURE__ */ jsxs(View, { style: styles14.rangeValueRow, children: [
|
|
3464
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles14.rangeDate, children: value }),
|
|
3465
|
+
time ? /* @__PURE__ */ jsxs(View, { style: styles14.rangeTimeWrap, children: [
|
|
3071
3466
|
/* @__PURE__ */ jsx(ClockFilledIcon, { color: colors.lightGrey, size: 16 }),
|
|
3072
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
3467
|
+
/* @__PURE__ */ jsx(Text, { style: styles14.rangeTime, children: time })
|
|
3073
3468
|
] }) : null
|
|
3074
3469
|
] })
|
|
3075
3470
|
] });
|
|
@@ -3235,14 +3630,14 @@ var DatePicker = forwardRef(
|
|
|
3235
3630
|
...rest,
|
|
3236
3631
|
ref: setRootRef,
|
|
3237
3632
|
style: [
|
|
3238
|
-
|
|
3239
|
-
usesRangeTrigger &&
|
|
3240
|
-
isOpen &&
|
|
3241
|
-
disabled &&
|
|
3633
|
+
styles14.root,
|
|
3634
|
+
usesRangeTrigger && styles14.rangeRoot,
|
|
3635
|
+
isOpen && styles14.rootOpen,
|
|
3636
|
+
disabled && styles14.disabled,
|
|
3242
3637
|
style
|
|
3243
3638
|
],
|
|
3244
3639
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3245
|
-
children: /* @__PURE__ */ jsxs(View, { style: [
|
|
3640
|
+
children: /* @__PURE__ */ jsxs(View, { style: [styles14.triggerWrap, isOpen && styles14.triggerWrapOpen], children: [
|
|
3246
3641
|
/* @__PURE__ */ jsx(
|
|
3247
3642
|
Pressable,
|
|
3248
3643
|
{
|
|
@@ -3253,9 +3648,9 @@ var DatePicker = forwardRef(
|
|
|
3253
3648
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
3254
3649
|
accessibilityState: { disabled, expanded: isOpen },
|
|
3255
3650
|
style: [
|
|
3256
|
-
|
|
3257
|
-
usesRangeTrigger &&
|
|
3258
|
-
usesRangeTrigger && (usesVerticalRangeTrigger ?
|
|
3651
|
+
styles14.trigger,
|
|
3652
|
+
usesRangeTrigger && styles14.rangeTrigger,
|
|
3653
|
+
usesRangeTrigger && (usesVerticalRangeTrigger ? styles14.rangeTriggerVertical : styles14.rangeTriggerHorizontal),
|
|
3259
3654
|
{
|
|
3260
3655
|
borderColor: triggerBorderColor,
|
|
3261
3656
|
backgroundColor: usesRangeTrigger ? "transparent" : colors.grey700
|
|
@@ -3266,18 +3661,18 @@ var DatePicker = forwardRef(
|
|
|
3266
3661
|
/* @__PURE__ */ jsx(
|
|
3267
3662
|
View,
|
|
3268
3663
|
{
|
|
3269
|
-
style: usesVerticalRangeTrigger ?
|
|
3664
|
+
style: usesVerticalRangeTrigger ? styles14.rangeDividerVertical : styles14.rangeDividerHorizontal
|
|
3270
3665
|
}
|
|
3271
3666
|
),
|
|
3272
3667
|
/* @__PURE__ */ jsx(RangeTriggerField, { label: endLabel, time: endTime, value: endValue })
|
|
3273
3668
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3274
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
3275
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
3669
|
+
/* @__PURE__ */ jsx(Text, { style: [styles14.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: triggerLabel }),
|
|
3670
|
+
/* @__PURE__ */ jsx(View, { style: styles14.iconSlot, children: /* @__PURE__ */ jsx(CalendarOutlineIcon, { size: ICON_SIZE7, color: colors.grey100 }) })
|
|
3276
3671
|
] })
|
|
3277
3672
|
}
|
|
3278
3673
|
),
|
|
3279
|
-
isOpen ? /* @__PURE__ */ jsxs(View, { style: [
|
|
3280
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
3674
|
+
isOpen ? /* @__PURE__ */ jsxs(View, { style: [styles14.menu, usesRangeTrigger && styles14.rangeMenu, calendarStyle], children: [
|
|
3675
|
+
/* @__PURE__ */ jsxs(View, { style: styles14.calendarHeader, children: [
|
|
3281
3676
|
/* @__PURE__ */ jsx(
|
|
3282
3677
|
Pressable,
|
|
3283
3678
|
{
|
|
@@ -3285,11 +3680,11 @@ var DatePicker = forwardRef(
|
|
|
3285
3680
|
hitSlop: 8,
|
|
3286
3681
|
accessibilityRole: "button",
|
|
3287
3682
|
accessibilityLabel: "Previous month",
|
|
3288
|
-
style:
|
|
3683
|
+
style: styles14.navButton,
|
|
3289
3684
|
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white })
|
|
3290
3685
|
}
|
|
3291
3686
|
),
|
|
3292
|
-
/* @__PURE__ */ jsxs(Text, { style:
|
|
3687
|
+
/* @__PURE__ */ jsxs(Text, { style: styles14.monthHeading, children: [
|
|
3293
3688
|
monthNames[visibleMonth.getMonth()],
|
|
3294
3689
|
" ",
|
|
3295
3690
|
visibleMonth.getFullYear()
|
|
@@ -3301,13 +3696,13 @@ var DatePicker = forwardRef(
|
|
|
3301
3696
|
hitSlop: 8,
|
|
3302
3697
|
accessibilityRole: "button",
|
|
3303
3698
|
accessibilityLabel: "Next month",
|
|
3304
|
-
style:
|
|
3305
|
-
children: /* @__PURE__ */ jsx(View, { style:
|
|
3699
|
+
style: styles14.navButton,
|
|
3700
|
+
children: /* @__PURE__ */ jsx(View, { style: styles14.navIconMirror, children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: NAV_ICON_SIZE, color: colors.white }) })
|
|
3306
3701
|
}
|
|
3307
3702
|
)
|
|
3308
3703
|
] }),
|
|
3309
3704
|
/* @__PURE__ */ jsxs(View, { children: [
|
|
3310
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
3705
|
+
/* @__PURE__ */ jsx(View, { style: styles14.weekdayRow, children: weekdayLabels.map((weekdayLabel, index) => /* @__PURE__ */ jsx(View, { style: styles14.dayCellWrap, children: /* @__PURE__ */ jsx(Text, { style: styles14.weekdayText, children: weekdayLabel }) }, `${weekdayLabel}-${index}`)) }),
|
|
3311
3706
|
weeks.map((week, weekIndex) => {
|
|
3312
3707
|
let rangeHighlightStyle = null;
|
|
3313
3708
|
if (isRange && rangeValue.start && rangeValue.end) {
|
|
@@ -3344,13 +3739,13 @@ var DatePicker = forwardRef(
|
|
|
3344
3739
|
return /* @__PURE__ */ jsxs(
|
|
3345
3740
|
View,
|
|
3346
3741
|
{
|
|
3347
|
-
style: [
|
|
3742
|
+
style: [styles14.weekRow, weekIndex > 0 && styles14.weekRowSpaced],
|
|
3348
3743
|
children: [
|
|
3349
3744
|
rangeHighlightStyle ? /* @__PURE__ */ jsx(
|
|
3350
3745
|
View,
|
|
3351
3746
|
{
|
|
3352
3747
|
pointerEvents: "none",
|
|
3353
|
-
style: [
|
|
3748
|
+
style: [styles14.rangeHighlight, rangeHighlightStyle]
|
|
3354
3749
|
}
|
|
3355
3750
|
) : null,
|
|
3356
3751
|
week.map((day, dayIndex) => {
|
|
@@ -3373,7 +3768,7 @@ var DatePicker = forwardRef(
|
|
|
3373
3768
|
onHoverOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
3374
3769
|
onPressIn: () => setHoveredDayKey(dayKey),
|
|
3375
3770
|
onPressOut: () => setHoveredDayKey((current) => current === dayKey ? null : current),
|
|
3376
|
-
style:
|
|
3771
|
+
style: styles14.dayCellWrap,
|
|
3377
3772
|
accessibilityRole: "button",
|
|
3378
3773
|
accessibilityLabel: formatValue(day),
|
|
3379
3774
|
accessibilityState: {
|
|
@@ -3385,14 +3780,14 @@ var DatePicker = forwardRef(
|
|
|
3385
3780
|
View,
|
|
3386
3781
|
{
|
|
3387
3782
|
style: [
|
|
3388
|
-
|
|
3389
|
-
isSelectedEndpoint &&
|
|
3390
|
-
isHovered &&
|
|
3783
|
+
styles14.dayCircle,
|
|
3784
|
+
isSelectedEndpoint && styles14.dayCircleSelected,
|
|
3785
|
+
isHovered && styles14.dayCircleHovered
|
|
3391
3786
|
],
|
|
3392
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
3787
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles14.dayText, { color: dayTextColor }], children: day.getDate() })
|
|
3393
3788
|
}
|
|
3394
3789
|
),
|
|
3395
|
-
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsx(View, { style:
|
|
3790
|
+
isToday && !isSelectedEndpoint ? /* @__PURE__ */ jsx(View, { style: styles14.todayDot }) : null
|
|
3396
3791
|
]
|
|
3397
3792
|
},
|
|
3398
3793
|
dayIndex
|
|
@@ -3410,7 +3805,7 @@ var DatePicker = forwardRef(
|
|
|
3410
3805
|
);
|
|
3411
3806
|
}
|
|
3412
3807
|
);
|
|
3413
|
-
var
|
|
3808
|
+
var styles14 = StyleSheet.create({
|
|
3414
3809
|
root: {
|
|
3415
3810
|
width: DEFAULT_WIDTH,
|
|
3416
3811
|
gap: 8,
|
|
@@ -3754,13 +4149,13 @@ var Input = forwardRef(function Input2({
|
|
|
3754
4149
|
});
|
|
3755
4150
|
useApplyWebClassName(rootRef, className);
|
|
3756
4151
|
useApplyWebClassName(inputRef, inputClassName);
|
|
3757
|
-
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [
|
|
3758
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4152
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles15.root, disabled && styles15.disabled, style], children: [
|
|
4153
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles15.label, { color: chrome.labelColor }], children: label }) : null,
|
|
3759
4154
|
/* @__PURE__ */ jsxs(
|
|
3760
4155
|
View,
|
|
3761
4156
|
{
|
|
3762
4157
|
style: [
|
|
3763
|
-
|
|
4158
|
+
styles15.field,
|
|
3764
4159
|
{
|
|
3765
4160
|
height: metrics.height,
|
|
3766
4161
|
borderRadius: metrics.borderRadius,
|
|
@@ -3775,7 +4170,7 @@ var Input = forwardRef(function Input2({
|
|
|
3775
4170
|
fieldStyle
|
|
3776
4171
|
],
|
|
3777
4172
|
children: [
|
|
3778
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [
|
|
4173
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [styles15.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: leftIconNode }) : null,
|
|
3779
4174
|
/* @__PURE__ */ jsx(
|
|
3780
4175
|
TextInput,
|
|
3781
4176
|
{
|
|
@@ -3799,11 +4194,11 @@ var Input = forwardRef(function Input2({
|
|
|
3799
4194
|
onBlur?.(event);
|
|
3800
4195
|
},
|
|
3801
4196
|
style: [
|
|
3802
|
-
|
|
4197
|
+
styles15.input,
|
|
3803
4198
|
metrics.text,
|
|
3804
4199
|
{ color: chrome.textColor },
|
|
3805
|
-
Platform.OS === "web" ?
|
|
3806
|
-
Platform.OS === "android" ?
|
|
4200
|
+
Platform.OS === "web" ? styles15.inputWeb : null,
|
|
4201
|
+
Platform.OS === "android" ? styles15.inputAndroid : null,
|
|
3807
4202
|
inputStyle
|
|
3808
4203
|
],
|
|
3809
4204
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -3815,20 +4210,20 @@ var Input = forwardRef(function Input2({
|
|
|
3815
4210
|
{
|
|
3816
4211
|
onPress: onRightIconPress,
|
|
3817
4212
|
disabled,
|
|
3818
|
-
style: [
|
|
4213
|
+
style: [styles15.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }],
|
|
3819
4214
|
accessibilityRole: "button",
|
|
3820
4215
|
accessibilityLabel: rightIconAccessibilityLabel,
|
|
3821
4216
|
hitSlop: 8,
|
|
3822
4217
|
children: rightIconNode
|
|
3823
4218
|
}
|
|
3824
|
-
) : /* @__PURE__ */ jsx(View, { style: [
|
|
4219
|
+
) : /* @__PURE__ */ jsx(View, { style: [styles15.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: rightIconNode }) : null
|
|
3825
4220
|
]
|
|
3826
4221
|
}
|
|
3827
4222
|
),
|
|
3828
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4223
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles15.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
3829
4224
|
] });
|
|
3830
4225
|
});
|
|
3831
|
-
var
|
|
4226
|
+
var styles15 = StyleSheet.create({
|
|
3832
4227
|
root: {
|
|
3833
4228
|
width: DEFAULT_WIDTH2,
|
|
3834
4229
|
gap: 8,
|
|
@@ -3986,9 +4381,9 @@ var VerificationCodeInput = forwardRef(function VerificationCodeInput2({
|
|
|
3986
4381
|
...viewProps,
|
|
3987
4382
|
ref: rootRef,
|
|
3988
4383
|
style: [
|
|
3989
|
-
|
|
4384
|
+
styles16.root,
|
|
3990
4385
|
{ width: rootWidth, maxWidth: "100%", gap: cellGap },
|
|
3991
|
-
disabled &&
|
|
4386
|
+
disabled && styles16.disabled,
|
|
3992
4387
|
style
|
|
3993
4388
|
],
|
|
3994
4389
|
children: Array.from({ length: safeLength }, (_, index) => {
|
|
@@ -4016,15 +4411,15 @@ var VerificationCodeInput = forwardRef(function VerificationCodeInput2({
|
|
|
4016
4411
|
onSubmitEditing: () => onSubmit?.(currentCode),
|
|
4017
4412
|
selectTextOnFocus: true,
|
|
4018
4413
|
style: [
|
|
4019
|
-
|
|
4414
|
+
styles16.cell,
|
|
4020
4415
|
{
|
|
4021
4416
|
width: cellWidth,
|
|
4022
4417
|
height: CELL_HEIGHT,
|
|
4023
4418
|
borderColor,
|
|
4024
4419
|
color: error ? colors.red : colors.white
|
|
4025
4420
|
},
|
|
4026
|
-
Platform.OS === "web" ?
|
|
4027
|
-
Platform.OS === "android" ?
|
|
4421
|
+
Platform.OS === "web" ? styles16.cellWeb : null,
|
|
4422
|
+
Platform.OS === "android" ? styles16.cellAndroid : null,
|
|
4028
4423
|
inputStyle
|
|
4029
4424
|
],
|
|
4030
4425
|
value: currentCode[index] ?? ""
|
|
@@ -4035,7 +4430,7 @@ var VerificationCodeInput = forwardRef(function VerificationCodeInput2({
|
|
|
4035
4430
|
}
|
|
4036
4431
|
);
|
|
4037
4432
|
});
|
|
4038
|
-
var
|
|
4433
|
+
var styles16 = StyleSheet.create({
|
|
4039
4434
|
root: {
|
|
4040
4435
|
minWidth: 0,
|
|
4041
4436
|
alignSelf: "center",
|
|
@@ -4145,25 +4540,25 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
4145
4540
|
const next = Math.ceil(event.nativeEvent.layout.width);
|
|
4146
4541
|
setEllipsisWidth((current) => current === next ? current : next);
|
|
4147
4542
|
};
|
|
4148
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
4149
|
-
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style:
|
|
4543
|
+
return /* @__PURE__ */ jsxs(View, { style: styles17.multiValueRoot, children: [
|
|
4544
|
+
/* @__PURE__ */ jsxs(View, { pointerEvents: "none", style: styles17.measureRow, children: [
|
|
4150
4545
|
options.map((option) => /* @__PURE__ */ jsxs(
|
|
4151
4546
|
View,
|
|
4152
4547
|
{
|
|
4153
|
-
style:
|
|
4548
|
+
style: styles17.chip,
|
|
4154
4549
|
onLayout: (event) => handleChipLayout(option.value, event),
|
|
4155
4550
|
children: [
|
|
4156
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
4157
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
4551
|
+
/* @__PURE__ */ jsx(Text, { style: styles17.chipLabel, numberOfLines: 1, children: option.label }),
|
|
4552
|
+
/* @__PURE__ */ jsx(Text, { style: styles17.chipRemove, children: "\xD7" })
|
|
4158
4553
|
]
|
|
4159
4554
|
},
|
|
4160
4555
|
`measure-${option.value}`
|
|
4161
4556
|
)),
|
|
4162
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4557
|
+
/* @__PURE__ */ jsx(View, { style: styles17.ellipsis, onLayout: handleEllipsisLayout, children: /* @__PURE__ */ jsx(Text, { style: styles17.ellipsisText, children: "..." }) })
|
|
4163
4558
|
] }),
|
|
4164
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
4165
|
-
visible.map((option) => /* @__PURE__ */ jsxs(View, { style:
|
|
4166
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
4559
|
+
/* @__PURE__ */ jsxs(View, { style: styles17.chipsRow, onLayout: handleContainerLayout, children: [
|
|
4560
|
+
visible.map((option) => /* @__PURE__ */ jsxs(View, { style: styles17.chip, children: [
|
|
4561
|
+
/* @__PURE__ */ jsx(Text, { style: styles17.chipLabel, numberOfLines: 1, children: option.label }),
|
|
4167
4562
|
/* @__PURE__ */ jsx(
|
|
4168
4563
|
Pressable,
|
|
4169
4564
|
{
|
|
@@ -4175,11 +4570,11 @@ function MultiValueChips({ options, disabled, onRemove }) {
|
|
|
4175
4570
|
hitSlop: 6,
|
|
4176
4571
|
accessibilityRole: "button",
|
|
4177
4572
|
accessibilityLabel: `Remove ${option.label}`,
|
|
4178
|
-
children: /* @__PURE__ */ jsx(Text, { style:
|
|
4573
|
+
children: /* @__PURE__ */ jsx(Text, { style: styles17.chipRemove, children: "\xD7" })
|
|
4179
4574
|
}
|
|
4180
4575
|
)
|
|
4181
4576
|
] }, option.value)),
|
|
4182
|
-
hasOverflow ? /* @__PURE__ */ jsx(View, { style:
|
|
4577
|
+
hasOverflow ? /* @__PURE__ */ jsx(View, { style: styles17.ellipsis, children: /* @__PURE__ */ jsx(Text, { style: styles17.ellipsisText, children: "..." }) }) : null
|
|
4183
4578
|
] })
|
|
4184
4579
|
] });
|
|
4185
4580
|
}
|
|
@@ -4403,11 +4798,11 @@ var Select = forwardRef(
|
|
|
4403
4798
|
{
|
|
4404
4799
|
...rest,
|
|
4405
4800
|
ref: setRootRef,
|
|
4406
|
-
style: [
|
|
4801
|
+
style: [styles17.root, isOpen && styles17.rootOpen, disabled && styles17.disabled, style],
|
|
4407
4802
|
accessibilityState: { disabled, expanded: isOpen },
|
|
4408
4803
|
children: [
|
|
4409
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4410
|
-
/* @__PURE__ */ jsxs(View, { style: [
|
|
4804
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles17.label, { color: labelColor }], children: label }) : null,
|
|
4805
|
+
/* @__PURE__ */ jsxs(View, { style: [styles17.triggerWrap, isOpen && styles17.triggerWrapOpen], children: [
|
|
4411
4806
|
/* @__PURE__ */ jsxs(
|
|
4412
4807
|
Pressable,
|
|
4413
4808
|
{
|
|
@@ -4418,29 +4813,29 @@ var Select = forwardRef(
|
|
|
4418
4813
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
4419
4814
|
accessibilityState: { disabled, expanded: isOpen },
|
|
4420
4815
|
style: [
|
|
4421
|
-
|
|
4816
|
+
styles17.trigger,
|
|
4422
4817
|
{
|
|
4423
4818
|
borderColor: triggerBorderColor,
|
|
4424
4819
|
backgroundColor: colors.grey700
|
|
4425
4820
|
}
|
|
4426
4821
|
],
|
|
4427
4822
|
children: [
|
|
4428
|
-
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style:
|
|
4429
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4823
|
+
hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: styles17.iconSlot, children: leftIconNode }) : null,
|
|
4824
|
+
/* @__PURE__ */ jsx(View, { style: styles17.triggerContent, children: multiple && hasValue ? /* @__PURE__ */ jsx(
|
|
4430
4825
|
MultiValueChips,
|
|
4431
4826
|
{
|
|
4432
4827
|
options: selectedOptions,
|
|
4433
4828
|
disabled,
|
|
4434
4829
|
onRemove: handleRemoveChip
|
|
4435
4830
|
}
|
|
4436
|
-
) : /* @__PURE__ */ jsx(Text, { style: [
|
|
4437
|
-
/* @__PURE__ */ jsx(View, { style: [
|
|
4831
|
+
) : /* @__PURE__ */ jsx(Text, { style: [styles17.triggerText, { color: triggerTextColor }], numberOfLines: 1, children: multiple ? placeholder : singleLabel }) }),
|
|
4832
|
+
/* @__PURE__ */ jsx(View, { style: [styles17.iconSlot, isOpen && styles17.chevronOpen], children: /* @__PURE__ */ jsx(ChevronDownIcon, { size: ICON_SIZE8, color: isOpen ? colors.primary : colors.grey100 }) })
|
|
4438
4833
|
]
|
|
4439
4834
|
}
|
|
4440
4835
|
),
|
|
4441
|
-
isOpen ? /* @__PURE__ */ jsxs(View, { style:
|
|
4442
|
-
showSearch ? /* @__PURE__ */ jsxs(View, { style:
|
|
4443
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4836
|
+
isOpen ? /* @__PURE__ */ jsxs(View, { style: styles17.menu, children: [
|
|
4837
|
+
showSearch ? /* @__PURE__ */ jsxs(View, { style: styles17.searchField, children: [
|
|
4838
|
+
/* @__PURE__ */ jsx(View, { style: styles17.iconSlot, children: /* @__PURE__ */ jsx(SearchIcon, { size: ICON_SIZE8, color: colors.grey100 }) }),
|
|
4444
4839
|
/* @__PURE__ */ jsx(
|
|
4445
4840
|
TextInput,
|
|
4446
4841
|
{
|
|
@@ -4451,9 +4846,9 @@ var Select = forwardRef(
|
|
|
4451
4846
|
placeholder: searchPlaceholder,
|
|
4452
4847
|
placeholderTextColor: colors.grey100,
|
|
4453
4848
|
style: [
|
|
4454
|
-
|
|
4455
|
-
Platform.OS === "web" ?
|
|
4456
|
-
Platform.OS === "android" ?
|
|
4849
|
+
styles17.searchInput,
|
|
4850
|
+
Platform.OS === "web" ? styles17.searchInputWeb : null,
|
|
4851
|
+
Platform.OS === "android" ? styles17.searchInputAndroid : null
|
|
4457
4852
|
],
|
|
4458
4853
|
accessibilityLabel: searchPlaceholder
|
|
4459
4854
|
}
|
|
@@ -4462,12 +4857,12 @@ var Select = forwardRef(
|
|
|
4462
4857
|
/* @__PURE__ */ jsxs(
|
|
4463
4858
|
ScrollView,
|
|
4464
4859
|
{
|
|
4465
|
-
style:
|
|
4466
|
-
contentContainerStyle:
|
|
4860
|
+
style: styles17.optionList,
|
|
4861
|
+
contentContainerStyle: styles17.optionListContent,
|
|
4467
4862
|
keyboardShouldPersistTaps: "handled",
|
|
4468
4863
|
showsVerticalScrollIndicator: false,
|
|
4469
4864
|
children: [
|
|
4470
|
-
loading ? /* @__PURE__ */ jsx(View, { style:
|
|
4865
|
+
loading ? /* @__PURE__ */ jsx(View, { style: styles17.statusRow, children: /* @__PURE__ */ jsx(Text, { style: styles17.statusText, children: "Loading..." }) }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx(View, { style: styles17.statusRow, children: /* @__PURE__ */ jsx(Text, { style: styles17.statusText, children: emptyText }) }) : null,
|
|
4471
4866
|
!loading && filteredOptions.map((option) => {
|
|
4472
4867
|
const isSelected = selectedValues.includes(option.value);
|
|
4473
4868
|
const isHovered = hoveredValue === option.value;
|
|
@@ -4484,14 +4879,14 @@ var Select = forwardRef(
|
|
|
4484
4879
|
accessibilityRole: multiple ? "checkbox" : "button",
|
|
4485
4880
|
accessibilityState: { selected: isSelected, checked: isSelected, disabled },
|
|
4486
4881
|
style: [
|
|
4487
|
-
|
|
4882
|
+
styles17.item,
|
|
4488
4883
|
{
|
|
4489
4884
|
backgroundColor: itemBackground(visualState)
|
|
4490
4885
|
}
|
|
4491
4886
|
],
|
|
4492
4887
|
children: [
|
|
4493
|
-
multiple ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
4494
|
-
/* @__PURE__ */ jsx(Text, { style:
|
|
4888
|
+
multiple ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles17.itemCheckbox, children: /* @__PURE__ */ jsx(Checkbox, { value: isSelected, variant: "light" }) }) : null,
|
|
4889
|
+
/* @__PURE__ */ jsx(Text, { style: styles17.itemLabel, numberOfLines: 1, children: option.label })
|
|
4495
4890
|
]
|
|
4496
4891
|
},
|
|
4497
4892
|
option.value
|
|
@@ -4502,13 +4897,13 @@ var Select = forwardRef(
|
|
|
4502
4897
|
)
|
|
4503
4898
|
] }) : null
|
|
4504
4899
|
] }),
|
|
4505
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
4900
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles17.hint, { color: hintColor }], children: hint }) : null
|
|
4506
4901
|
]
|
|
4507
4902
|
}
|
|
4508
4903
|
);
|
|
4509
4904
|
}
|
|
4510
4905
|
);
|
|
4511
|
-
var
|
|
4906
|
+
var styles17 = StyleSheet.create({
|
|
4512
4907
|
root: {
|
|
4513
4908
|
width: DEFAULT_WIDTH3,
|
|
4514
4909
|
gap: 8,
|
|
@@ -4770,13 +5165,13 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
4770
5165
|
const resolvedAccessibilityLabel = accessibilityLabel ?? (showLabel ? void 0 : label);
|
|
4771
5166
|
useApplyWebClassName(rootRef, className);
|
|
4772
5167
|
useApplyWebClassName(inputRef, inputClassName);
|
|
4773
|
-
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [
|
|
4774
|
-
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [
|
|
5168
|
+
return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles18.root, disabled && styles18.disabled, style], children: [
|
|
5169
|
+
showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles18.label, { color: chrome.labelColor }], children: label }) : null,
|
|
4775
5170
|
/* @__PURE__ */ jsx(
|
|
4776
5171
|
View,
|
|
4777
5172
|
{
|
|
4778
5173
|
style: [
|
|
4779
|
-
|
|
5174
|
+
styles18.field,
|
|
4780
5175
|
{
|
|
4781
5176
|
borderColor: chrome.borderColor,
|
|
4782
5177
|
backgroundColor: chrome.backgroundColor
|
|
@@ -4808,11 +5203,11 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
4808
5203
|
onBlur?.(event);
|
|
4809
5204
|
},
|
|
4810
5205
|
style: [
|
|
4811
|
-
|
|
5206
|
+
styles18.input,
|
|
4812
5207
|
textareaTypography.field,
|
|
4813
5208
|
{ color: chrome.textColor },
|
|
4814
|
-
Platform.OS === "web" ?
|
|
4815
|
-
Platform.OS === "android" ?
|
|
5209
|
+
Platform.OS === "web" ? styles18.inputWeb : null,
|
|
5210
|
+
Platform.OS === "android" ? styles18.inputAndroid : null,
|
|
4816
5211
|
inputStyle
|
|
4817
5212
|
],
|
|
4818
5213
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
@@ -4821,10 +5216,10 @@ var Textarea = forwardRef(function Textarea2({
|
|
|
4821
5216
|
)
|
|
4822
5217
|
}
|
|
4823
5218
|
),
|
|
4824
|
-
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [
|
|
5219
|
+
showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles18.hint, { color: chrome.hintColor }], children: hint }) : null
|
|
4825
5220
|
] });
|
|
4826
5221
|
});
|
|
4827
|
-
var
|
|
5222
|
+
var styles18 = StyleSheet.create({
|
|
4828
5223
|
root: {
|
|
4829
5224
|
width: DEFAULT_WIDTH4,
|
|
4830
5225
|
gap: 8,
|
|
@@ -4864,9 +5259,9 @@ var styles16 = StyleSheet.create({
|
|
|
4864
5259
|
var TRACK_WIDTH = 44;
|
|
4865
5260
|
var TRACK_HEIGHT = 24;
|
|
4866
5261
|
var TRACK_RADIUS = 43;
|
|
4867
|
-
var
|
|
4868
|
-
var THUMB_SIZE = TRACK_HEIGHT -
|
|
4869
|
-
var THUMB_TRAVEL = TRACK_WIDTH -
|
|
5262
|
+
var TRACK_PADDING2 = 4;
|
|
5263
|
+
var THUMB_SIZE = TRACK_HEIGHT - TRACK_PADDING2 * 2;
|
|
5264
|
+
var THUMB_TRAVEL = TRACK_WIDTH - TRACK_PADDING2 * 2 - THUMB_SIZE;
|
|
4870
5265
|
var ANIMATION_DURATION2 = 300;
|
|
4871
5266
|
var Toggle = forwardRef(function Toggle2({
|
|
4872
5267
|
value,
|
|
@@ -4924,13 +5319,13 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
4924
5319
|
accessibilityRole: "switch",
|
|
4925
5320
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
4926
5321
|
accessibilityState: { checked: isActive, disabled },
|
|
4927
|
-
style: [
|
|
5322
|
+
style: [styles19.pressable, disabled && styles19.disabled, style],
|
|
4928
5323
|
children: [
|
|
4929
5324
|
/* @__PURE__ */ jsx(
|
|
4930
5325
|
Animated.View,
|
|
4931
5326
|
{
|
|
4932
5327
|
style: [
|
|
4933
|
-
|
|
5328
|
+
styles19.track,
|
|
4934
5329
|
{
|
|
4935
5330
|
backgroundColor: trackBackgroundColor
|
|
4936
5331
|
}
|
|
@@ -4939,7 +5334,7 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
4939
5334
|
Animated.View,
|
|
4940
5335
|
{
|
|
4941
5336
|
style: [
|
|
4942
|
-
|
|
5337
|
+
styles19.thumb,
|
|
4943
5338
|
{
|
|
4944
5339
|
transform: [{ translateX: thumbTranslateX }]
|
|
4945
5340
|
}
|
|
@@ -4948,12 +5343,12 @@ var Toggle = forwardRef(function Toggle2({
|
|
|
4948
5343
|
)
|
|
4949
5344
|
}
|
|
4950
5345
|
),
|
|
4951
|
-
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [
|
|
5346
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsx(Text, { style: [styles19.label, labelStyle], children: labelContent }) : labelContent : null
|
|
4952
5347
|
]
|
|
4953
5348
|
}
|
|
4954
5349
|
);
|
|
4955
5350
|
});
|
|
4956
|
-
var
|
|
5351
|
+
var styles19 = StyleSheet.create({
|
|
4957
5352
|
pressable: {
|
|
4958
5353
|
flexDirection: "row",
|
|
4959
5354
|
alignItems: "center",
|
|
@@ -4967,7 +5362,7 @@ var styles17 = StyleSheet.create({
|
|
|
4967
5362
|
width: TRACK_WIDTH,
|
|
4968
5363
|
height: TRACK_HEIGHT,
|
|
4969
5364
|
borderRadius: TRACK_RADIUS,
|
|
4970
|
-
padding:
|
|
5365
|
+
padding: TRACK_PADDING2,
|
|
4971
5366
|
justifyContent: "center"
|
|
4972
5367
|
},
|
|
4973
5368
|
thumb: {
|
|
@@ -5028,21 +5423,21 @@ var RatingInput = forwardRef(
|
|
|
5028
5423
|
{
|
|
5029
5424
|
...rest,
|
|
5030
5425
|
ref: setContainerRef,
|
|
5031
|
-
style: [
|
|
5426
|
+
style: [styles20.root, disabled && styles20.disabled, style],
|
|
5032
5427
|
children: [
|
|
5033
|
-
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [
|
|
5428
|
+
showValue ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles20.value, valueStyle], children: selectedValue.toFixed(precision) }) : null,
|
|
5034
5429
|
/* @__PURE__ */ jsx(
|
|
5035
5430
|
View,
|
|
5036
5431
|
{
|
|
5037
5432
|
accessibilityRole: readOnly ? "image" : "radiogroup",
|
|
5038
5433
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
5039
5434
|
accessibilityState: { disabled },
|
|
5040
|
-
style: [
|
|
5435
|
+
style: [styles20.stars, { gap: resolvedStarGap }],
|
|
5041
5436
|
children: Array.from({ length: STAR_COUNT }, (_, index) => {
|
|
5042
5437
|
const starValue = index + 1;
|
|
5043
5438
|
const isSelected = starValue <= selectedStarCount;
|
|
5044
5439
|
const icon = isSelected ? /* @__PURE__ */ jsx(StarFilledIcon, { size: iconWidth, height: iconHeight }) : /* @__PURE__ */ jsx(StarIcon, { size: iconWidth, height: iconHeight });
|
|
5045
|
-
const itemStyle = [
|
|
5440
|
+
const itemStyle = [styles20.starItem, { width: size, height: size }];
|
|
5046
5441
|
if (readOnly) {
|
|
5047
5442
|
return /* @__PURE__ */ jsx(View, { style: itemStyle, children: icon }, starValue);
|
|
5048
5443
|
}
|
|
@@ -5068,7 +5463,7 @@ var RatingInput = forwardRef(
|
|
|
5068
5463
|
);
|
|
5069
5464
|
}
|
|
5070
5465
|
);
|
|
5071
|
-
var
|
|
5466
|
+
var styles20 = StyleSheet.create({
|
|
5072
5467
|
root: {
|
|
5073
5468
|
flexDirection: "row",
|
|
5074
5469
|
alignItems: "center",
|
|
@@ -5092,7 +5487,7 @@ var styles18 = StyleSheet.create({
|
|
|
5092
5487
|
opacity: 0.5
|
|
5093
5488
|
}
|
|
5094
5489
|
});
|
|
5095
|
-
var
|
|
5490
|
+
var CARD_WIDTH2 = 370;
|
|
5096
5491
|
var CARD_MIN_HEIGHT = 173;
|
|
5097
5492
|
var AVATAR_SIZE = 44;
|
|
5098
5493
|
var CommentCard = forwardRef(
|
|
@@ -5132,19 +5527,19 @@ var CommentCard = forwardRef(
|
|
|
5132
5527
|
setExpanded(next);
|
|
5133
5528
|
onExpandedChange?.(next);
|
|
5134
5529
|
};
|
|
5135
|
-
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [
|
|
5136
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
5137
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
5530
|
+
return /* @__PURE__ */ jsxs(View, { ...rest, ref: setContainerRef, style: [styles21.root, style], children: [
|
|
5531
|
+
/* @__PURE__ */ jsxs(View, { style: styles21.header, children: [
|
|
5532
|
+
/* @__PURE__ */ jsx(View, { style: styles21.avatar, children: hasImage ? /* @__PURE__ */ jsx(
|
|
5138
5533
|
Image,
|
|
5139
5534
|
{
|
|
5140
5535
|
source: { uri: imageUrl ?? void 0 },
|
|
5141
|
-
style:
|
|
5536
|
+
style: styles21.avatarImage,
|
|
5142
5537
|
onError: () => setImageFailed(true)
|
|
5143
5538
|
}
|
|
5144
5539
|
) : /* @__PURE__ */ jsx(UserIcon, { size: 20, color: colors.primary }) }),
|
|
5145
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
5146
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
5147
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style:
|
|
5540
|
+
/* @__PURE__ */ jsxs(View, { style: styles21.identity, children: [
|
|
5541
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles21.name, children: userName }),
|
|
5542
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles21.date, children: date })
|
|
5148
5543
|
] }),
|
|
5149
5544
|
/* @__PURE__ */ jsx(RatingInput, { value: rating, readOnly: true, showValue: false, size: 16 })
|
|
5150
5545
|
] }),
|
|
@@ -5152,7 +5547,7 @@ var CommentCard = forwardRef(
|
|
|
5152
5547
|
Text,
|
|
5153
5548
|
{
|
|
5154
5549
|
numberOfLines: expanded ? void 0 : maxCommentLines,
|
|
5155
|
-
style: [
|
|
5550
|
+
style: [styles21.comment, commentStyle],
|
|
5156
5551
|
children: commentText
|
|
5157
5552
|
}
|
|
5158
5553
|
),
|
|
@@ -5165,14 +5560,14 @@ var CommentCard = forwardRef(
|
|
|
5165
5560
|
hitSlop: 6,
|
|
5166
5561
|
onHoverIn: () => setActionHovered(true),
|
|
5167
5562
|
onHoverOut: () => setActionHovered(false),
|
|
5168
|
-
style:
|
|
5563
|
+
style: styles21.action,
|
|
5169
5564
|
children: /* @__PURE__ */ jsx(
|
|
5170
5565
|
Text,
|
|
5171
5566
|
{
|
|
5172
5567
|
style: [
|
|
5173
|
-
|
|
5174
|
-
expanded &&
|
|
5175
|
-
actionHovered && (expanded ?
|
|
5568
|
+
styles21.actionText,
|
|
5569
|
+
expanded && styles21.closeActionText,
|
|
5570
|
+
actionHovered && (expanded ? styles21.closeActionTextHovered : styles21.openActionTextHovered)
|
|
5176
5571
|
],
|
|
5177
5572
|
children: expanded ? readLessLabel : readMoreLabel
|
|
5178
5573
|
}
|
|
@@ -5182,9 +5577,9 @@ var CommentCard = forwardRef(
|
|
|
5182
5577
|
] });
|
|
5183
5578
|
}
|
|
5184
5579
|
);
|
|
5185
|
-
var
|
|
5580
|
+
var styles21 = StyleSheet.create({
|
|
5186
5581
|
root: {
|
|
5187
|
-
width:
|
|
5582
|
+
width: CARD_WIDTH2,
|
|
5188
5583
|
minHeight: CARD_MIN_HEIGHT,
|
|
5189
5584
|
padding: 16,
|
|
5190
5585
|
gap: 12,
|
|
@@ -5621,7 +6016,7 @@ var Range = forwardRef(function Range2({
|
|
|
5621
6016
|
...rest,
|
|
5622
6017
|
ref: setRootRef,
|
|
5623
6018
|
onLayout,
|
|
5624
|
-
style: [
|
|
6019
|
+
style: [styles22.root, disabled && styles22.disabled, style],
|
|
5625
6020
|
children: [
|
|
5626
6021
|
/* @__PURE__ */ jsxs(
|
|
5627
6022
|
Pressable,
|
|
@@ -5635,16 +6030,16 @@ var Range = forwardRef(function Range2({
|
|
|
5635
6030
|
updateNearestFromTrack(event.nativeEvent.offsetX);
|
|
5636
6031
|
} : void 0,
|
|
5637
6032
|
onPress: Platform.OS === "web" ? void 0 : handleTrackPress,
|
|
5638
|
-
style:
|
|
6033
|
+
style: styles22.sliderPlane,
|
|
5639
6034
|
tabIndex: -1,
|
|
5640
6035
|
children: [
|
|
5641
|
-
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
6036
|
+
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles22.track }),
|
|
5642
6037
|
/* @__PURE__ */ jsx(
|
|
5643
6038
|
View,
|
|
5644
6039
|
{
|
|
5645
6040
|
pointerEvents: "none",
|
|
5646
6041
|
style: [
|
|
5647
|
-
|
|
6042
|
+
styles22.activeTrack,
|
|
5648
6043
|
{
|
|
5649
6044
|
left: TRACK_HORIZONTAL_INSET + fromOffset,
|
|
5650
6045
|
width: toOffset - fromOffset + THUMB_SIZE2
|
|
@@ -5686,9 +6081,9 @@ var Range = forwardRef(function Range2({
|
|
|
5686
6081
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveFrom, updateFromInput),
|
|
5687
6082
|
pointerEvents: disabled ? "none" : "auto",
|
|
5688
6083
|
style: [
|
|
5689
|
-
|
|
5690
|
-
Platform.OS === "web" &&
|
|
5691
|
-
focusedThumb === "from" && Platform.OS === "web" &&
|
|
6084
|
+
styles22.thumb,
|
|
6085
|
+
Platform.OS === "web" && styles22.thumbWeb,
|
|
6086
|
+
focusedThumb === "from" && Platform.OS === "web" && styles22.thumbFocusedWeb,
|
|
5692
6087
|
{ left: TRACK_HORIZONTAL_INSET + fromOffset }
|
|
5693
6088
|
],
|
|
5694
6089
|
tabIndex: disabled ? -1 : 0
|
|
@@ -5728,9 +6123,9 @@ var Range = forwardRef(function Range2({
|
|
|
5728
6123
|
onAccessibilityAction: (event) => handleAccessibilityAction(event, effectiveTo, updateToInput),
|
|
5729
6124
|
pointerEvents: disabled ? "none" : "auto",
|
|
5730
6125
|
style: [
|
|
5731
|
-
|
|
5732
|
-
Platform.OS === "web" &&
|
|
5733
|
-
focusedThumb === "to" && Platform.OS === "web" &&
|
|
6126
|
+
styles22.thumb,
|
|
6127
|
+
Platform.OS === "web" && styles22.thumbWeb,
|
|
6128
|
+
focusedThumb === "to" && Platform.OS === "web" && styles22.thumbFocusedWeb,
|
|
5734
6129
|
{ left: TRACK_HORIZONTAL_INSET + toOffset }
|
|
5735
6130
|
],
|
|
5736
6131
|
tabIndex: disabled ? -1 : 0
|
|
@@ -5739,7 +6134,7 @@ var Range = forwardRef(function Range2({
|
|
|
5739
6134
|
]
|
|
5740
6135
|
}
|
|
5741
6136
|
),
|
|
5742
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
6137
|
+
/* @__PURE__ */ jsxs(View, { style: styles22.inputs, children: [
|
|
5743
6138
|
/* @__PURE__ */ jsx(
|
|
5744
6139
|
RangeInput,
|
|
5745
6140
|
{
|
|
@@ -5790,7 +6185,7 @@ function RangeInput({
|
|
|
5790
6185
|
placeholder,
|
|
5791
6186
|
value
|
|
5792
6187
|
}) {
|
|
5793
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
6188
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles22.inputField, focused && styles22.inputFieldFocused], children: [
|
|
5794
6189
|
/* @__PURE__ */ jsx(
|
|
5795
6190
|
TextInput,
|
|
5796
6191
|
{
|
|
@@ -5806,15 +6201,15 @@ function RangeInput({
|
|
|
5806
6201
|
placeholder,
|
|
5807
6202
|
placeholderTextColor: colors.grey150,
|
|
5808
6203
|
returnKeyType: "done",
|
|
5809
|
-
style: [
|
|
6204
|
+
style: [styles22.input, Platform.OS === "web" && styles22.inputWeb],
|
|
5810
6205
|
tabIndex: disabled ? -1 : void 0,
|
|
5811
6206
|
value
|
|
5812
6207
|
}
|
|
5813
6208
|
),
|
|
5814
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
6209
|
+
/* @__PURE__ */ jsx(View, { style: styles22.currencySlot, children: /* @__PURE__ */ jsx(Text, { style: styles22.currency, children: currency }) })
|
|
5815
6210
|
] });
|
|
5816
6211
|
}
|
|
5817
|
-
var
|
|
6212
|
+
var styles22 = StyleSheet.create({
|
|
5818
6213
|
root: {
|
|
5819
6214
|
width: DEFAULT_WIDTH5,
|
|
5820
6215
|
gap: 15,
|
|
@@ -5918,6 +6313,6 @@ var styles20 = StyleSheet.create({
|
|
|
5918
6313
|
}
|
|
5919
6314
|
});
|
|
5920
6315
|
|
|
5921
|
-
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, VerificationCodeInput, VideoIcon, WhatsAppIcon, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
|
|
6316
|
+
export { Amenity, AmenityIcon, AppleIcon, AreaExpandIcon, ArrowRightIcon, Avatar, AvatarSimple, 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, Sidebar, SidebarIcon, SortIcon, StarFilledIcon, StarIcon, StatCard, Textarea, Toggle, TooltipArrowIcon, UserIcon, UsersAltIcon, VerificationCodeInput, VideoIcon, WhatsAppIcon, avatarTypography, badgeTypography, buttonTypography, colors, commentCardTypography, counterTypography, datePickerTypography, defaultLanguageOptions, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography, languageSwitcherTypography, ratingTypography, segmentedToggleTypography, selectTypography, statCardTypography, textareaTypography };
|
|
5922
6317
|
//# sourceMappingURL=index.js.map
|
|
5923
6318
|
//# sourceMappingURL=index.js.map
|