@butternutbox/pawprint-native 0.6.0 → 0.7.0
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/.turbo/turbo-build.log +15 -15
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +513 -256
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -1
- package/dist/index.d.ts +47 -1
- package/dist/index.js +471 -215
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/NativeSelectPicker/NativeSelectPicker.stories.tsx +98 -0
- package/src/components/molecules/NativeSelectPicker/NativeSelectPicker.styled.ts +127 -0
- package/src/components/molecules/NativeSelectPicker/NativeSelectPicker.tsx +250 -0
- package/src/components/molecules/NativeSelectPicker/index.ts +5 -0
- package/src/components/molecules/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useTheme, ThemeProvider as ThemeProvider$1 } from '@emotion/react';
|
|
2
2
|
import { Brand, Theme, DEFAULT_THEME_OPTIONS, THEME_OPTIONS_MAP, tokens } from '@butternutbox/pawprint-tokens';
|
|
3
3
|
export { tokens } from '@butternutbox/pawprint-tokens';
|
|
4
|
-
import
|
|
4
|
+
import styled51 from '@emotion/native';
|
|
5
5
|
export { default as styled } from '@emotion/native';
|
|
6
6
|
import React60, { createContext, forwardRef, useRef, useEffect, useState, useCallback, useMemo, useContext } from 'react';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import * as AvatarPrimitive from '@rn-primitives/avatar';
|
|
9
|
-
import { Text, View, Animated, Pressable, TextInput, Easing, StyleSheet, useWindowDimensions, PanResponder, Image, ScrollView, Platform, Modal, Linking, Clipboard, Alert } from 'react-native';
|
|
9
|
+
import { Text, View, Animated, Pressable, TextInput, Easing, StyleSheet, useWindowDimensions, PanResponder, Image, ScrollView, ActionSheetIOS, TouchableOpacity, Platform, Modal, TouchableWithoutFeedback, FlatList, Linking, Clipboard, Alert } from 'react-native';
|
|
10
10
|
import Svg, { Path, Defs, LinearGradient, Stop, Rect, G, ClipPath } from 'react-native-svg';
|
|
11
11
|
import * as SwitchPrimitive from '@rn-primitives/switch';
|
|
12
|
-
import
|
|
12
|
+
import Animated10, { Keyframe, Easing as Easing$1, FadeInLeft, FadeInRight, FadeInUp, FadeInDown, FadeIn, FadeOutLeft, FadeOutRight, FadeOutUp, FadeOutDown, FadeOut, useSharedValue, useAnimatedStyle, ComplexAnimationBuilder } from 'react-native-reanimated';
|
|
13
13
|
import { Slot } from '@rn-primitives/slot';
|
|
14
14
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
15
15
|
import * as CheckboxPrimitive from '@rn-primitives/checkbox';
|
|
@@ -203,7 +203,7 @@ var VARIANT_DEFAULTS = {
|
|
|
203
203
|
heading: { size: "md" },
|
|
204
204
|
display: { size: "lg" }
|
|
205
205
|
};
|
|
206
|
-
var StyledText =
|
|
206
|
+
var StyledText = styled51(Text)({});
|
|
207
207
|
var Typography = React60.forwardRef(
|
|
208
208
|
(props, ref) => {
|
|
209
209
|
const theme2 = useTheme();
|
|
@@ -287,7 +287,7 @@ var Typography = React60.forwardRef(
|
|
|
287
287
|
);
|
|
288
288
|
Typography.displayName = "Typography";
|
|
289
289
|
var parseTokenValue2 = (value) => parseFloat(value);
|
|
290
|
-
var StyledIconRoot =
|
|
290
|
+
var StyledIconRoot = styled51(View)(({ iconDimension }) => ({
|
|
291
291
|
alignItems: "center",
|
|
292
292
|
justifyContent: "center",
|
|
293
293
|
flexShrink: 0,
|
|
@@ -3829,7 +3829,7 @@ var SIZE_MAP = {
|
|
|
3829
3829
|
lg: "large"
|
|
3830
3830
|
};
|
|
3831
3831
|
var parseTokenValue3 = (value) => parseFloat(value);
|
|
3832
|
-
var StyledRoot =
|
|
3832
|
+
var StyledRoot = styled51(AvatarPrimitive.Root)(({ theme: theme2, size, border }) => {
|
|
3833
3833
|
const { avatar } = theme2.tokens.components;
|
|
3834
3834
|
const { borderRadius } = theme2.tokens.semantics.dimensions;
|
|
3835
3835
|
const tokenSize = SIZE_MAP[size];
|
|
@@ -3850,12 +3850,12 @@ var StyledRoot = styled60(AvatarPrimitive.Root)(({ theme: theme2, size, border }
|
|
|
3850
3850
|
borderStyle: "solid"
|
|
3851
3851
|
});
|
|
3852
3852
|
});
|
|
3853
|
-
var StyledImage =
|
|
3853
|
+
var StyledImage = styled51(AvatarPrimitive.Image)({
|
|
3854
3854
|
width: "100%",
|
|
3855
3855
|
height: "100%",
|
|
3856
3856
|
resizeMode: "cover"
|
|
3857
3857
|
});
|
|
3858
|
-
var StyledFallback =
|
|
3858
|
+
var StyledFallback = styled51(AvatarPrimitive.Fallback)(({ theme: theme2 }) => {
|
|
3859
3859
|
const { background, text } = theme2.tokens.semantics.colour;
|
|
3860
3860
|
return {
|
|
3861
3861
|
display: "flex",
|
|
@@ -3867,7 +3867,7 @@ var StyledFallback = styled60(AvatarPrimitive.Fallback)(({ theme: theme2 }) => {
|
|
|
3867
3867
|
color: text.primary
|
|
3868
3868
|
};
|
|
3869
3869
|
});
|
|
3870
|
-
var StyledIcon =
|
|
3870
|
+
var StyledIcon = styled51(Icon)(({
|
|
3871
3871
|
theme: theme2,
|
|
3872
3872
|
avatarSize
|
|
3873
3873
|
}) => {
|
|
@@ -3931,7 +3931,7 @@ var AvatarRoot = React60.forwardRef(
|
|
|
3931
3931
|
AvatarRoot.displayName = "Avatar";
|
|
3932
3932
|
var Avatar = AvatarRoot;
|
|
3933
3933
|
var parseTokenValue4 = (value) => parseFloat(value);
|
|
3934
|
-
var Container =
|
|
3934
|
+
var Container = styled51(View)(({ theme: theme2, showBg }) => {
|
|
3935
3935
|
const { colour, sizing, borderRadius } = theme2.tokens.components.carouselControls.carouselControl;
|
|
3936
3936
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
3937
3937
|
return {
|
|
@@ -4000,7 +4000,7 @@ var CarouselControls = React60.forwardRef(
|
|
|
4000
4000
|
);
|
|
4001
4001
|
CarouselControls.displayName = "CarouselControls";
|
|
4002
4002
|
var parseTokenValue5 = (value) => parseFloat(value);
|
|
4003
|
-
var StyledBadge =
|
|
4003
|
+
var StyledBadge = styled51(View)(({ theme: theme2, badgeVariant, badgeSize, pinned, top, bottom }) => {
|
|
4004
4004
|
const { sizing, spacing, colour, primary, pinnedBadge } = theme2.tokens.components.badges.badge;
|
|
4005
4005
|
const backgroundColorMap = {
|
|
4006
4006
|
primary: colour.background.default,
|
|
@@ -4114,7 +4114,7 @@ var Badge = React60.forwardRef(
|
|
|
4114
4114
|
);
|
|
4115
4115
|
Badge.displayName = "Badge";
|
|
4116
4116
|
var parseTokenValue6 = (value) => parseFloat(value);
|
|
4117
|
-
var StyledSpinner =
|
|
4117
|
+
var StyledSpinner = styled51(View)({});
|
|
4118
4118
|
var Spinner = React60.forwardRef(
|
|
4119
4119
|
(_a, ref) => {
|
|
4120
4120
|
var _b = _a, { size = "md", variant = "dark", style } = _b, rest = __objRest(_b, ["size", "variant", "style"]);
|
|
@@ -4180,12 +4180,12 @@ var sizeToTypographyKey = {
|
|
|
4180
4180
|
md: "medium",
|
|
4181
4181
|
sm: "small"
|
|
4182
4182
|
};
|
|
4183
|
-
var IconWrapper =
|
|
4183
|
+
var IconWrapper = styled51(View)({
|
|
4184
4184
|
alignItems: "center",
|
|
4185
4185
|
justifyContent: "center",
|
|
4186
4186
|
flexShrink: 0
|
|
4187
4187
|
});
|
|
4188
|
-
var StyledButton =
|
|
4188
|
+
var StyledButton = styled51(Pressable)(
|
|
4189
4189
|
({
|
|
4190
4190
|
buttonHeight,
|
|
4191
4191
|
buttonMinWidth,
|
|
@@ -4213,11 +4213,11 @@ var StyledButton = styled60(Pressable)(
|
|
|
4213
4213
|
opacity: buttonOpacity
|
|
4214
4214
|
}, buttonBorderWidth ? { borderWidth: buttonBorderWidth, borderColor: buttonBorderColor } : {}), buttonFullWidth ? { width: "100%" } : {})
|
|
4215
4215
|
);
|
|
4216
|
-
var StyledTextWrapper =
|
|
4216
|
+
var StyledTextWrapper = styled51(View)(({ textOpacity }) => ({
|
|
4217
4217
|
opacity: textOpacity,
|
|
4218
4218
|
flexShrink: 0
|
|
4219
4219
|
}));
|
|
4220
|
-
var StyledSpinnerWrapper =
|
|
4220
|
+
var StyledSpinnerWrapper = styled51(View)({
|
|
4221
4221
|
position: "absolute",
|
|
4222
4222
|
alignItems: "center",
|
|
4223
4223
|
justifyContent: "center"
|
|
@@ -4341,7 +4341,7 @@ Button.displayName = "Button";
|
|
|
4341
4341
|
|
|
4342
4342
|
// src/utils/token.ts
|
|
4343
4343
|
var parseTokenValue8 = (value) => parseFloat(value);
|
|
4344
|
-
var StyledHint =
|
|
4344
|
+
var StyledHint = styled51(View)(({
|
|
4345
4345
|
theme: theme2,
|
|
4346
4346
|
hintVariant
|
|
4347
4347
|
}) => {
|
|
@@ -4378,7 +4378,7 @@ var sizeToIconSizeToken = {
|
|
|
4378
4378
|
md: "lg",
|
|
4379
4379
|
sm: "md"
|
|
4380
4380
|
};
|
|
4381
|
-
var StyledIconButton =
|
|
4381
|
+
var StyledIconButton = styled51(Pressable)(
|
|
4382
4382
|
({
|
|
4383
4383
|
buttonDimension,
|
|
4384
4384
|
buttonBorderRadius,
|
|
@@ -4397,12 +4397,12 @@ var StyledIconButton = styled60(Pressable)(
|
|
|
4397
4397
|
opacity: buttonOpacity
|
|
4398
4398
|
}, buttonBorderWidth ? { borderWidth: buttonBorderWidth, borderColor: buttonBorderColor } : {})
|
|
4399
4399
|
);
|
|
4400
|
-
var StyledIconWrapper =
|
|
4400
|
+
var StyledIconWrapper = styled51(View)(({ iconDimension, iconOpacity }) => ({
|
|
4401
4401
|
width: iconDimension,
|
|
4402
4402
|
height: iconDimension,
|
|
4403
4403
|
opacity: iconOpacity
|
|
4404
4404
|
}));
|
|
4405
|
-
var StyledSpinnerWrapper2 =
|
|
4405
|
+
var StyledSpinnerWrapper2 = styled51(View)({
|
|
4406
4406
|
position: "absolute",
|
|
4407
4407
|
alignItems: "center",
|
|
4408
4408
|
justifyContent: "center"
|
|
@@ -4510,7 +4510,7 @@ var IconButton = React60.forwardRef(
|
|
|
4510
4510
|
);
|
|
4511
4511
|
IconButton.displayName = "IconButton";
|
|
4512
4512
|
var parseTokenValue10 = (value) => parseFloat(value);
|
|
4513
|
-
var StyledRoot2 =
|
|
4513
|
+
var StyledRoot2 = styled51(View)(({ illustrationHeight }) => ({
|
|
4514
4514
|
alignItems: "center",
|
|
4515
4515
|
justifyContent: "center",
|
|
4516
4516
|
flexShrink: 0,
|
|
@@ -4547,7 +4547,7 @@ var Illustration = React60.forwardRef(
|
|
|
4547
4547
|
);
|
|
4548
4548
|
Illustration.displayName = "Illustration";
|
|
4549
4549
|
var parseTokenValue11 = (value) => parseFloat(value);
|
|
4550
|
-
var StyledLabelRow =
|
|
4550
|
+
var StyledLabelRow = styled51(View)(({ labelGap }) => ({
|
|
4551
4551
|
flexDirection: "row",
|
|
4552
4552
|
alignItems: "center",
|
|
4553
4553
|
gap: labelGap
|
|
@@ -4795,7 +4795,7 @@ var VolumeUp = (props, ref) => /* @__PURE__ */ jsx(Svg, __spreadProps2(__spreadV
|
|
|
4795
4795
|
var ForwardRef612 = forwardRef(VolumeUp);
|
|
4796
4796
|
ForwardRef612.category = "core";
|
|
4797
4797
|
var parseTokenValue12 = (value) => parseFloat(value);
|
|
4798
|
-
var StyledInputWrapper =
|
|
4798
|
+
var StyledInputWrapper = styled51(Animated.View)(({ theme: theme2, isDisabled, containerWidth, containerHeight }) => {
|
|
4799
4799
|
const { spacing, colour, borderRadius, size } = theme2.tokens.components.inputs;
|
|
4800
4800
|
return {
|
|
4801
4801
|
flexDirection: "row",
|
|
@@ -4809,7 +4809,7 @@ var StyledInputWrapper = styled60(Animated.View)(({ theme: theme2, isDisabled, c
|
|
|
4809
4809
|
flexShrink: containerWidth !== void 0 ? 0 : void 0
|
|
4810
4810
|
};
|
|
4811
4811
|
});
|
|
4812
|
-
var StyledInput =
|
|
4812
|
+
var StyledInput = styled51(TextInput)(({ theme: theme2 }) => {
|
|
4813
4813
|
const { colour, field } = theme2.tokens.components.inputs;
|
|
4814
4814
|
const placeholderTypography = field.placeholder.default;
|
|
4815
4815
|
return __spreadValues({
|
|
@@ -4829,11 +4829,11 @@ var StyledInput = styled60(TextInput)(({ theme: theme2 }) => {
|
|
|
4829
4829
|
outlineColor: "transparent"
|
|
4830
4830
|
});
|
|
4831
4831
|
});
|
|
4832
|
-
var StyledFocusRing =
|
|
4832
|
+
var StyledFocusRing = styled51(View)({
|
|
4833
4833
|
position: "absolute",
|
|
4834
4834
|
pointerEvents: "none"
|
|
4835
4835
|
});
|
|
4836
|
-
var StyledIconSlot =
|
|
4836
|
+
var StyledIconSlot = styled51(View)({
|
|
4837
4837
|
alignItems: "center",
|
|
4838
4838
|
justifyContent: "center",
|
|
4839
4839
|
flexShrink: 0
|
|
@@ -4994,7 +4994,7 @@ var InputField = React60.forwardRef(
|
|
|
4994
4994
|
}
|
|
4995
4995
|
);
|
|
4996
4996
|
InputField.displayName = "Input.Field";
|
|
4997
|
-
var StyledDescriptionRow =
|
|
4997
|
+
var StyledDescriptionRow = styled51(View)({
|
|
4998
4998
|
flexDirection: "row",
|
|
4999
4999
|
alignItems: "center"
|
|
5000
5000
|
});
|
|
@@ -5014,7 +5014,7 @@ var InputDescription = React60.forwardRef(
|
|
|
5014
5014
|
}
|
|
5015
5015
|
);
|
|
5016
5016
|
InputDescription.displayName = "Input.Description";
|
|
5017
|
-
var StyledErrorRow =
|
|
5017
|
+
var StyledErrorRow = styled51(View)({
|
|
5018
5018
|
flexDirection: "row",
|
|
5019
5019
|
alignItems: "center"
|
|
5020
5020
|
});
|
|
@@ -5035,7 +5035,7 @@ var InputError = React60.forwardRef(
|
|
|
5035
5035
|
);
|
|
5036
5036
|
InputError.displayName = "Input.Error";
|
|
5037
5037
|
var parseTokenValue13 = (value) => parseFloat(value);
|
|
5038
|
-
var StyledRoot3 =
|
|
5038
|
+
var StyledRoot3 = styled51(View)(({ theme: theme2 }) => {
|
|
5039
5039
|
const { spacing } = theme2.tokens.components.inputs;
|
|
5040
5040
|
return {
|
|
5041
5041
|
gap: parseTokenValue13(spacing.gap)
|
|
@@ -7678,7 +7678,7 @@ function registerLogo(brand, variant, component) {
|
|
|
7678
7678
|
}
|
|
7679
7679
|
LOGOS[brand][variant] = component;
|
|
7680
7680
|
}
|
|
7681
|
-
var StyledRoot4 =
|
|
7681
|
+
var StyledRoot4 = styled51(View)({
|
|
7682
7682
|
alignItems: "center",
|
|
7683
7683
|
justifyContent: "center",
|
|
7684
7684
|
flexShrink: 0
|
|
@@ -7706,7 +7706,7 @@ var Logo = React60.forwardRef(
|
|
|
7706
7706
|
);
|
|
7707
7707
|
Logo.displayName = "Logo";
|
|
7708
7708
|
var parseTokenValue14 = (value) => parseFloat(value);
|
|
7709
|
-
var StyledFieldGroup =
|
|
7709
|
+
var StyledFieldGroup = styled51(View)(({ theme: theme2 }) => {
|
|
7710
7710
|
const { spacing } = theme2.tokens.components.inputs;
|
|
7711
7711
|
return {
|
|
7712
7712
|
flexDirection: "row",
|
|
@@ -7714,7 +7714,7 @@ var StyledFieldGroup = styled60(View)(({ theme: theme2 }) => {
|
|
|
7714
7714
|
gap: parseTokenValue14(spacing.field.gap)
|
|
7715
7715
|
};
|
|
7716
7716
|
});
|
|
7717
|
-
var StyledFieldTextWrapper =
|
|
7717
|
+
var StyledFieldTextWrapper = styled51(View)({
|
|
7718
7718
|
flexShrink: 0,
|
|
7719
7719
|
justifyContent: "center"
|
|
7720
7720
|
});
|
|
@@ -7753,7 +7753,7 @@ var NumberInputField = React60.forwardRef((_a, ref) => {
|
|
|
7753
7753
|
});
|
|
7754
7754
|
NumberInputField.displayName = "NumberInput.Field";
|
|
7755
7755
|
var parseTokenValue15 = (value) => parseFloat(value);
|
|
7756
|
-
var StyledRoot5 =
|
|
7756
|
+
var StyledRoot5 = styled51(View)(({ theme: theme2 }) => {
|
|
7757
7757
|
const { spacing } = theme2.tokens.components.inputs;
|
|
7758
7758
|
return {
|
|
7759
7759
|
gap: parseTokenValue15(spacing.gap)
|
|
@@ -7807,13 +7807,13 @@ var NumberInput = Object.assign(NumberInputRoot, {
|
|
|
7807
7807
|
Error: InputError
|
|
7808
7808
|
});
|
|
7809
7809
|
var parseTokenValue16 = (value) => parseFloat(value);
|
|
7810
|
-
var StyledContainer =
|
|
7810
|
+
var StyledContainer = styled51(View)(({ switchGap, switchOpacity }) => ({
|
|
7811
7811
|
flexDirection: "row",
|
|
7812
7812
|
alignItems: "flex-start",
|
|
7813
7813
|
gap: switchGap,
|
|
7814
7814
|
opacity: switchOpacity
|
|
7815
7815
|
}));
|
|
7816
|
-
var StyledControlTrack =
|
|
7816
|
+
var StyledControlTrack = styled51(View)(
|
|
7817
7817
|
({
|
|
7818
7818
|
switchChecked,
|
|
7819
7819
|
controlWidth,
|
|
@@ -7839,14 +7839,14 @@ var StyledControlTrack = styled60(View)(
|
|
|
7839
7839
|
justifyContent: "center"
|
|
7840
7840
|
})
|
|
7841
7841
|
);
|
|
7842
|
-
var StyledThumb =
|
|
7842
|
+
var StyledThumb = styled51(Animated.View)(({ thumbSize, thumbBgColor }) => ({
|
|
7843
7843
|
width: thumbSize,
|
|
7844
7844
|
height: thumbSize,
|
|
7845
7845
|
borderRadius: thumbSize / 2,
|
|
7846
7846
|
backgroundColor: thumbBgColor,
|
|
7847
7847
|
position: "absolute"
|
|
7848
7848
|
}));
|
|
7849
|
-
var StyledContent =
|
|
7849
|
+
var StyledContent = styled51(View)(({ contentGap }) => ({
|
|
7850
7850
|
gap: contentGap
|
|
7851
7851
|
}));
|
|
7852
7852
|
var Switch = React60.forwardRef(
|
|
@@ -7952,7 +7952,7 @@ var Switch = React60.forwardRef(
|
|
|
7952
7952
|
);
|
|
7953
7953
|
Switch.displayName = "Switch";
|
|
7954
7954
|
var parseTokenValue17 = (value) => parseFloat(value);
|
|
7955
|
-
var StyledTag =
|
|
7955
|
+
var StyledTag = styled51(View)(({ theme: theme2, tagVariant, tagSize }) => {
|
|
7956
7956
|
const { sizing, spacing, colour, badge } = theme2.tokens.components.tags;
|
|
7957
7957
|
const backgroundColorMap = {
|
|
7958
7958
|
primary: colour.primary.background,
|
|
@@ -8025,21 +8025,21 @@ var Tag = React60.forwardRef(
|
|
|
8025
8025
|
);
|
|
8026
8026
|
Tag.displayName = "Tag";
|
|
8027
8027
|
var parseTokenValue18 = (value) => parseFloat(value);
|
|
8028
|
-
var StyledTextAreaWrapper =
|
|
8028
|
+
var StyledTextAreaWrapper = styled51(Animated.View)(({ theme: theme2, isDisabled }) => {
|
|
8029
8029
|
const { spacing, colour, borderRadius, size } = theme2.tokens.components.inputs;
|
|
8030
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
8030
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
8031
8031
|
return {
|
|
8032
8032
|
flexDirection: "column",
|
|
8033
8033
|
gap: parseTokenValue18(spacing.field.gap),
|
|
8034
8034
|
width: "100%",
|
|
8035
8035
|
minWidth: parseTokenValue18(size.field.minWidth),
|
|
8036
|
-
minHeight: parseTokenValue18(
|
|
8036
|
+
minHeight: parseTokenValue18(dimensions3.sizing["3xl"]),
|
|
8037
8037
|
backgroundColor: isDisabled ? colour.field.background.inactive : colour.field.background.default,
|
|
8038
8038
|
borderRadius: parseTokenValue18(borderRadius.field.default),
|
|
8039
8039
|
position: "relative"
|
|
8040
8040
|
};
|
|
8041
8041
|
});
|
|
8042
|
-
var StyledTextArea =
|
|
8042
|
+
var StyledTextArea = styled51(TextInput)(({ theme: theme2 }) => {
|
|
8043
8043
|
const { colour } = theme2.tokens.components.inputs;
|
|
8044
8044
|
return __spreadValues({
|
|
8045
8045
|
flex: 1,
|
|
@@ -8054,17 +8054,17 @@ var StyledTextArea = styled60(TextInput)(({ theme: theme2 }) => {
|
|
|
8054
8054
|
outlineColor: "transparent"
|
|
8055
8055
|
});
|
|
8056
8056
|
});
|
|
8057
|
-
var StyledFocusRing2 =
|
|
8057
|
+
var StyledFocusRing2 = styled51(View)({
|
|
8058
8058
|
position: "absolute",
|
|
8059
8059
|
pointerEvents: "none"
|
|
8060
8060
|
});
|
|
8061
|
-
var TextAreaContainer =
|
|
8061
|
+
var TextAreaContainer = styled51(View)({
|
|
8062
8062
|
position: "relative",
|
|
8063
8063
|
width: "100%",
|
|
8064
8064
|
flex: 1,
|
|
8065
8065
|
flexDirection: "column"
|
|
8066
8066
|
});
|
|
8067
|
-
var IconWrapper2 =
|
|
8067
|
+
var IconWrapper2 = styled51(View)(({ side }) => {
|
|
8068
8068
|
return {
|
|
8069
8069
|
position: "absolute",
|
|
8070
8070
|
top: 0,
|
|
@@ -8100,7 +8100,7 @@ var TextAreaField = React60.forwardRef(
|
|
|
8100
8100
|
]);
|
|
8101
8101
|
const theme2 = useTheme();
|
|
8102
8102
|
const { spacing, colour, borderWidth, borderRadius, size } = theme2.tokens.components.inputs;
|
|
8103
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
8103
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
8104
8104
|
const focusBorderColor = theme2.tokens.semantics.colour.border.focus;
|
|
8105
8105
|
const [isFocused, setIsFocused] = useState(false);
|
|
8106
8106
|
const internalInputRef = useRef(null);
|
|
@@ -8181,8 +8181,8 @@ var TextAreaField = React60.forwardRef(
|
|
|
8181
8181
|
const fieldHeight = parseTokenValue18(size.field.height);
|
|
8182
8182
|
const textAreaMinHeight = fieldHeight;
|
|
8183
8183
|
const iconGap = parseTokenValue18(spacing.field.gap);
|
|
8184
|
-
const leadingIconSize = parseTokenValue18(
|
|
8185
|
-
const trailingIconSize = parseTokenValue18(
|
|
8184
|
+
const leadingIconSize = parseTokenValue18(dimensions3.sizing.xl);
|
|
8185
|
+
const trailingIconSize = parseTokenValue18(dimensions3.sizing.md);
|
|
8186
8186
|
const leadingIconPadding = leadingIconSize + iconGap;
|
|
8187
8187
|
const trailingIconPadding = trailingIconSize + iconGap;
|
|
8188
8188
|
return /* @__PURE__ */ jsx(Pressable, { onPress: handleWrapperPress, children: /* @__PURE__ */ jsxs(
|
|
@@ -8251,18 +8251,18 @@ var TextAreaField = React60.forwardRef(
|
|
|
8251
8251
|
);
|
|
8252
8252
|
TextAreaField.displayName = "TextArea.Field";
|
|
8253
8253
|
var parseTokenValue19 = (value) => parseFloat(value);
|
|
8254
|
-
var StyledLabelWrapper =
|
|
8254
|
+
var StyledLabelWrapper = styled51(View)({
|
|
8255
8255
|
flexDirection: "row",
|
|
8256
8256
|
alignItems: "center",
|
|
8257
8257
|
justifyContent: "space-between",
|
|
8258
8258
|
width: "100%"
|
|
8259
8259
|
});
|
|
8260
|
-
var StyledLabel =
|
|
8260
|
+
var StyledLabel = styled51(View)(({ labelGap }) => ({
|
|
8261
8261
|
flexDirection: "row",
|
|
8262
8262
|
alignItems: "center",
|
|
8263
8263
|
gap: labelGap
|
|
8264
8264
|
}));
|
|
8265
|
-
var StyledCharCountWrapper =
|
|
8265
|
+
var StyledCharCountWrapper = styled51(View)(({ charCountGap, charCountPadding }) => ({
|
|
8266
8266
|
flexDirection: "row",
|
|
8267
8267
|
alignItems: "center",
|
|
8268
8268
|
gap: charCountGap,
|
|
@@ -8326,7 +8326,7 @@ var TextAreaLabel = React60.forwardRef(
|
|
|
8326
8326
|
);
|
|
8327
8327
|
TextAreaLabel.displayName = "TextArea.Label";
|
|
8328
8328
|
var parseTokenValue20 = (value) => parseFloat(value);
|
|
8329
|
-
var StyledRoot6 =
|
|
8329
|
+
var StyledRoot6 = styled51(View)(({ theme: theme2 }) => {
|
|
8330
8330
|
const { spacing } = theme2.tokens.components.inputs;
|
|
8331
8331
|
return {
|
|
8332
8332
|
gap: parseTokenValue20(spacing.gap)
|
|
@@ -8421,25 +8421,25 @@ var AccordionContext = React60.createContext({
|
|
|
8421
8421
|
size: "small"
|
|
8422
8422
|
});
|
|
8423
8423
|
var parseTokenValue21 = (value) => parseFloat(value);
|
|
8424
|
-
var StyledRoot7 =
|
|
8424
|
+
var StyledRoot7 = styled51(View)(({ rootGap }) => ({
|
|
8425
8425
|
width: "100%",
|
|
8426
8426
|
flexDirection: "column",
|
|
8427
8427
|
gap: rootGap
|
|
8428
8428
|
}));
|
|
8429
|
-
var StyledItem =
|
|
8429
|
+
var StyledItem = styled51(View)({
|
|
8430
8430
|
flexDirection: "column"
|
|
8431
8431
|
});
|
|
8432
|
-
var StyledTrigger =
|
|
8432
|
+
var StyledTrigger = styled51(Pressable)(({ triggerOpacity }) => ({
|
|
8433
8433
|
flexDirection: "row",
|
|
8434
8434
|
alignItems: "center",
|
|
8435
8435
|
justifyContent: "space-between",
|
|
8436
8436
|
width: "100%",
|
|
8437
8437
|
opacity: triggerOpacity
|
|
8438
8438
|
}));
|
|
8439
|
-
var StyledPanel =
|
|
8439
|
+
var StyledPanel = styled51(View)(({ panelGap }) => ({
|
|
8440
8440
|
marginTop: panelGap
|
|
8441
8441
|
}));
|
|
8442
|
-
var StyledDivider =
|
|
8442
|
+
var StyledDivider = styled51(View)(({ dividerColor, dividerMarginTop }) => ({
|
|
8443
8443
|
height: 1,
|
|
8444
8444
|
backgroundColor: dividerColor,
|
|
8445
8445
|
marginTop: dividerMarginTop
|
|
@@ -8695,7 +8695,7 @@ var Animated5 = React60.forwardRef(
|
|
|
8695
8695
|
const delayMs = delay !== void 0 && delay > 0 ? Math.round(delay * 1e3) : 0;
|
|
8696
8696
|
const entering = delayMs > 0 ? buildDelayedEntering(variant, delayMs) : ENTERING[variant];
|
|
8697
8697
|
return /* @__PURE__ */ jsx(
|
|
8698
|
-
|
|
8698
|
+
Animated10.View,
|
|
8699
8699
|
__spreadProps(__spreadValues({
|
|
8700
8700
|
ref,
|
|
8701
8701
|
entering,
|
|
@@ -8763,7 +8763,7 @@ var OPEN_DURATION = 320;
|
|
|
8763
8763
|
var CLOSE_DURATION = 220;
|
|
8764
8764
|
var DISMISS_THRESHOLD = 80;
|
|
8765
8765
|
var parseTokenValue22 = (value) => parseFloat(value);
|
|
8766
|
-
var StyledPanel2 =
|
|
8766
|
+
var StyledPanel2 = styled51(View)(
|
|
8767
8767
|
({
|
|
8768
8768
|
panelBorderRadius,
|
|
8769
8769
|
panelBgColor,
|
|
@@ -8800,7 +8800,7 @@ var DrawerContent = React60.forwardRef(
|
|
|
8800
8800
|
var _a2;
|
|
8801
8801
|
const theme2 = useTheme();
|
|
8802
8802
|
const { drawer, modal } = theme2.tokens.components;
|
|
8803
|
-
const { colour, dimensions } = theme2.tokens.semantics;
|
|
8803
|
+
const { colour, dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
8804
8804
|
const { isOpen, closeDrawer, onExitComplete } = useDrawerContext();
|
|
8805
8805
|
const { height: windowHeight } = useWindowDimensions();
|
|
8806
8806
|
const maxHeight = windowHeight * 0.9;
|
|
@@ -8972,7 +8972,7 @@ var DrawerContent = React60.forwardRef(
|
|
|
8972
8972
|
panelBgColor: colour.background.container.default,
|
|
8973
8973
|
panelMaxWidth: parseTokenValue22(drawer.size.maxWidth),
|
|
8974
8974
|
panelFlex: panelHeight > 0 ? 1 : void 0,
|
|
8975
|
-
panelBorderWidth: parseTokenValue22(
|
|
8975
|
+
panelBorderWidth: parseTokenValue22(dimensions3.borderWidth.sm),
|
|
8976
8976
|
panelBorderColor: colour.border.default,
|
|
8977
8977
|
panelShadowColor: modal.shadow.color,
|
|
8978
8978
|
panelShadowOffsetY: parseTokenValue22(modal.shadow.offsetY),
|
|
@@ -8998,7 +8998,7 @@ var styles = StyleSheet.create({
|
|
|
8998
8998
|
}
|
|
8999
8999
|
});
|
|
9000
9000
|
var parseTokenValue23 = (value) => parseFloat(value);
|
|
9001
|
-
var StyledWrapper =
|
|
9001
|
+
var StyledWrapper = styled51(View)(
|
|
9002
9002
|
({ grabberPaddingTop }) => ({
|
|
9003
9003
|
alignItems: "center",
|
|
9004
9004
|
justifyContent: "center",
|
|
@@ -9007,7 +9007,7 @@ var StyledWrapper = styled60(View)(
|
|
|
9007
9007
|
paddingBottom: grabberPaddingTop
|
|
9008
9008
|
})
|
|
9009
9009
|
);
|
|
9010
|
-
var StyledBar =
|
|
9010
|
+
var StyledBar = styled51(View)(({ barWidth, barHeight, barBorderRadius, barColor }) => ({
|
|
9011
9011
|
width: barWidth,
|
|
9012
9012
|
height: barHeight,
|
|
9013
9013
|
borderRadius: barBorderRadius,
|
|
@@ -9088,7 +9088,7 @@ var styles2 = StyleSheet.create({
|
|
|
9088
9088
|
}
|
|
9089
9089
|
});
|
|
9090
9090
|
var parseTokenValue25 = (value) => parseFloat(value);
|
|
9091
|
-
var StyledGrabberWrapper =
|
|
9091
|
+
var StyledGrabberWrapper = styled51(View)(
|
|
9092
9092
|
({ grabberPaddingTop }) => ({
|
|
9093
9093
|
alignItems: "center",
|
|
9094
9094
|
justifyContent: "center",
|
|
@@ -9096,13 +9096,13 @@ var StyledGrabberWrapper = styled60(View)(
|
|
|
9096
9096
|
paddingTop: grabberPaddingTop
|
|
9097
9097
|
})
|
|
9098
9098
|
);
|
|
9099
|
-
var StyledGrabberBar =
|
|
9099
|
+
var StyledGrabberBar = styled51(View)(({ barWidth, barHeight, barBorderRadius, barColor }) => ({
|
|
9100
9100
|
width: barWidth,
|
|
9101
9101
|
height: barHeight,
|
|
9102
9102
|
borderRadius: barBorderRadius,
|
|
9103
9103
|
backgroundColor: barColor
|
|
9104
9104
|
}));
|
|
9105
|
-
var StyledHeader =
|
|
9105
|
+
var StyledHeader = styled51(View)(
|
|
9106
9106
|
({
|
|
9107
9107
|
headerPaddingHorizontal,
|
|
9108
9108
|
headerPaddingBottom,
|
|
@@ -9122,7 +9122,7 @@ var StyledHeader = styled60(View)(
|
|
|
9122
9122
|
borderBottomColor: headerBorderColor
|
|
9123
9123
|
} : {}), headerBgColor ? { backgroundColor: headerBgColor } : {})
|
|
9124
9124
|
);
|
|
9125
|
-
var StyledImageContainer =
|
|
9125
|
+
var StyledImageContainer = styled51(View)(({ imageHeight, imageBorderRadius }) => ({
|
|
9126
9126
|
position: "relative",
|
|
9127
9127
|
width: "100%",
|
|
9128
9128
|
height: imageHeight,
|
|
@@ -9130,20 +9130,20 @@ var StyledImageContainer = styled60(View)(({ imageHeight, imageBorderRadius }) =
|
|
|
9130
9130
|
overflow: "hidden",
|
|
9131
9131
|
flexShrink: 0
|
|
9132
9132
|
}));
|
|
9133
|
-
var StyledImageCloseWrapper =
|
|
9133
|
+
var StyledImageCloseWrapper = styled51(View)(({ closeTop, closeRight }) => ({
|
|
9134
9134
|
position: "absolute",
|
|
9135
9135
|
top: closeTop,
|
|
9136
9136
|
right: closeRight,
|
|
9137
9137
|
zIndex: 1
|
|
9138
9138
|
}));
|
|
9139
|
-
var StyledTitleRow =
|
|
9139
|
+
var StyledTitleRow = styled51(View)(({ rowGap }) => ({
|
|
9140
9140
|
flexDirection: "row",
|
|
9141
9141
|
gap: rowGap,
|
|
9142
9142
|
alignItems: "flex-start",
|
|
9143
9143
|
width: "100%",
|
|
9144
9144
|
flexShrink: 0
|
|
9145
9145
|
}));
|
|
9146
|
-
var StyledTitleContent =
|
|
9146
|
+
var StyledTitleContent = styled51(View)(
|
|
9147
9147
|
({ contentGap }) => ({
|
|
9148
9148
|
flexDirection: "column",
|
|
9149
9149
|
gap: contentGap,
|
|
@@ -9169,7 +9169,7 @@ var DrawerHeader = React60.forwardRef(
|
|
|
9169
9169
|
var _a2, _b2, _c, _d, _e, _f;
|
|
9170
9170
|
const theme2 = useTheme();
|
|
9171
9171
|
const { drawer, grabber } = theme2.tokens.components;
|
|
9172
|
-
const { colour, dimensions } = theme2.tokens.semantics;
|
|
9172
|
+
const { colour, dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
9173
9173
|
const dragContext = useDrawerDragContext();
|
|
9174
9174
|
const contextValue = useMemo(() => ({ variant }), [variant]);
|
|
9175
9175
|
const { closeChild, otherChildren } = splitChildren(children);
|
|
@@ -9220,7 +9220,7 @@ var DrawerHeader = React60.forwardRef(
|
|
|
9220
9220
|
),
|
|
9221
9221
|
headerPaddingBottom: parseTokenValue25(headerSpacing.bottomPadding),
|
|
9222
9222
|
headerGap: parseTokenValue25(headerSpacing.gap),
|
|
9223
|
-
headerBorderBottomWidth: variant === "titleAndText" ? parseTokenValue25(
|
|
9223
|
+
headerBorderBottomWidth: variant === "titleAndText" ? parseTokenValue25(dimensions3.borderWidth.sm) : void 0,
|
|
9224
9224
|
headerBorderColor: variant === "titleAndText" ? colour.border.default : void 0,
|
|
9225
9225
|
headerBgColor: variant === "fullBleed" ? drawer.drawerHeader.colour.background.fullBleed : void 0
|
|
9226
9226
|
}, props), {
|
|
@@ -9237,7 +9237,7 @@ var DrawerHeader = React60.forwardRef(
|
|
|
9237
9237
|
{
|
|
9238
9238
|
barWidth: parseTokenValue25(grabber.size.bar.width),
|
|
9239
9239
|
barHeight: parseTokenValue25(grabber.size.bar.height),
|
|
9240
|
-
barBorderRadius: parseTokenValue25(
|
|
9240
|
+
barBorderRadius: parseTokenValue25(dimensions3.borderRadius.round),
|
|
9241
9241
|
barColor: grabber.colour.background.default
|
|
9242
9242
|
}
|
|
9243
9243
|
)
|
|
@@ -9283,7 +9283,7 @@ var DrawerDescription = React60.forwardRef(
|
|
|
9283
9283
|
);
|
|
9284
9284
|
DrawerDescription.displayName = "Drawer.Description";
|
|
9285
9285
|
var parseTokenValue26 = (value) => parseFloat(value);
|
|
9286
|
-
var StyledScrollView =
|
|
9286
|
+
var StyledScrollView = styled51(ScrollView)(
|
|
9287
9287
|
({
|
|
9288
9288
|
bodyPaddingHorizontal,
|
|
9289
9289
|
bodyPaddingRight,
|
|
@@ -9340,7 +9340,7 @@ var DrawerBody = React60.forwardRef(
|
|
|
9340
9340
|
);
|
|
9341
9341
|
DrawerBody.displayName = "Drawer.Body";
|
|
9342
9342
|
var parseTokenValue27 = (value) => parseFloat(value);
|
|
9343
|
-
var StyledFooter =
|
|
9343
|
+
var StyledFooter = styled51(View)(({ footerPaddingTop, footerPaddingHorizontal, footerPaddingBottom }) => ({
|
|
9344
9344
|
flexShrink: 0,
|
|
9345
9345
|
paddingTop: footerPaddingTop,
|
|
9346
9346
|
paddingHorizontal: footerPaddingHorizontal,
|
|
@@ -9452,7 +9452,7 @@ var styles3 = StyleSheet.create({
|
|
|
9452
9452
|
}
|
|
9453
9453
|
});
|
|
9454
9454
|
var parseTokenValue28 = (value) => parseFloat(value);
|
|
9455
|
-
var StyledDockRoot =
|
|
9455
|
+
var StyledDockRoot = styled51(View)(
|
|
9456
9456
|
({
|
|
9457
9457
|
dockBgColor,
|
|
9458
9458
|
dockBorderTopWidth,
|
|
@@ -9470,7 +9470,7 @@ var StyledDockRoot = styled60(View)(
|
|
|
9470
9470
|
paddingHorizontal: dockPaddingHorizontal
|
|
9471
9471
|
})
|
|
9472
9472
|
);
|
|
9473
|
-
var StyledStackedInner =
|
|
9473
|
+
var StyledStackedInner = styled51(View)(
|
|
9474
9474
|
({ innerGap }) => ({
|
|
9475
9475
|
alignItems: "center",
|
|
9476
9476
|
gap: innerGap,
|
|
@@ -9478,7 +9478,7 @@ var StyledStackedInner = styled60(View)(
|
|
|
9478
9478
|
maxWidth: 520
|
|
9479
9479
|
})
|
|
9480
9480
|
);
|
|
9481
|
-
var StyledButtonGroup =
|
|
9481
|
+
var StyledButtonGroup = styled51(View)(({ groupDirection, groupAlign, groupJustify, groupGap }) => __spreadValues({
|
|
9482
9482
|
flexDirection: groupDirection,
|
|
9483
9483
|
alignItems: groupAlign,
|
|
9484
9484
|
justifyContent: groupJustify,
|
|
@@ -9490,7 +9490,7 @@ var ButtonDock = React60.forwardRef(
|
|
|
9490
9490
|
var _b = _a, { variant = "stacked", leadingContent, description, children } = _b, rest = __objRest(_b, ["variant", "leadingContent", "description", "children"]);
|
|
9491
9491
|
const theme2 = useTheme();
|
|
9492
9492
|
const { buttonDock, buttonGroup } = theme2.tokens.components;
|
|
9493
|
-
const { dimensions, typography } = theme2.tokens.semantics;
|
|
9493
|
+
const { dimensions: dimensions3, typography } = theme2.tokens.semantics;
|
|
9494
9494
|
const isStacked = variant === "stacked";
|
|
9495
9495
|
const groupGap = parseTokenValue28(
|
|
9496
9496
|
isStacked ? buttonGroup.spacing.stacked.gap : buttonGroup.spacing.sideBySide.gap
|
|
@@ -9500,7 +9500,7 @@ var ButtonDock = React60.forwardRef(
|
|
|
9500
9500
|
__spreadProps(__spreadValues({
|
|
9501
9501
|
ref,
|
|
9502
9502
|
dockBgColor: buttonDock.colour.background,
|
|
9503
|
-
dockBorderTopWidth: parseTokenValue28(
|
|
9503
|
+
dockBorderTopWidth: parseTokenValue28(dimensions3.borderWidth.sm),
|
|
9504
9504
|
dockBorderTopColor: buttonDock.colour.border,
|
|
9505
9505
|
dockPaddingVertical: parseTokenValue28(
|
|
9506
9506
|
buttonDock.spacing[variant].mobile.topPadding
|
|
@@ -9552,17 +9552,17 @@ var ButtonDock = React60.forwardRef(
|
|
|
9552
9552
|
);
|
|
9553
9553
|
ButtonDock.displayName = "ButtonDock";
|
|
9554
9554
|
var parseTokenValue29 = (value) => parseFloat(value);
|
|
9555
|
-
var StyledGroupRoot =
|
|
9555
|
+
var StyledGroupRoot = styled51(View)(({ rootGap }) => ({
|
|
9556
9556
|
gap: rootGap,
|
|
9557
9557
|
alignItems: "center",
|
|
9558
9558
|
width: "100%"
|
|
9559
9559
|
}));
|
|
9560
|
-
var StyledButtonRow =
|
|
9560
|
+
var StyledButtonRow = styled51(View)(({ rowDirection, rowAlign, rowGap }) => __spreadValues({
|
|
9561
9561
|
flexDirection: rowDirection,
|
|
9562
9562
|
width: "100%",
|
|
9563
9563
|
gap: rowGap
|
|
9564
9564
|
}, rowAlign ? { alignItems: rowAlign } : {}));
|
|
9565
|
-
var StyledChildSlot =
|
|
9565
|
+
var StyledChildSlot = styled51(View)(
|
|
9566
9566
|
({ slotInline }) => __spreadValues({}, slotInline ? { flex: 1, minWidth: 0 } : { width: "100%", alignSelf: "stretch" })
|
|
9567
9567
|
);
|
|
9568
9568
|
var ButtonGroup = React60.forwardRef(
|
|
@@ -9614,7 +9614,7 @@ var ButtonGroup = React60.forwardRef(
|
|
|
9614
9614
|
);
|
|
9615
9615
|
ButtonGroup.displayName = "ButtonGroup";
|
|
9616
9616
|
var parseTokenValue30 = (value) => parseFloat(value);
|
|
9617
|
-
var StyledRootPressable =
|
|
9617
|
+
var StyledRootPressable = styled51(Pressable)(
|
|
9618
9618
|
({
|
|
9619
9619
|
rootFlexAlign,
|
|
9620
9620
|
rootGap,
|
|
@@ -9633,7 +9633,7 @@ var StyledRootPressable = styled60(Pressable)(
|
|
|
9633
9633
|
opacity: rootOpacity
|
|
9634
9634
|
}, rootPaddingVertical !== void 0 ? { paddingVertical: rootPaddingVertical } : {}), rootPaddingHorizontal !== void 0 ? { paddingHorizontal: rootPaddingHorizontal } : {}), rootMaxWidth !== void 0 ? { maxWidth: rootMaxWidth, width: "100%" } : {}), rootBgColor ? { backgroundColor: rootBgColor } : {}), rootBorderWidth !== void 0 ? { borderWidth: rootBorderWidth, borderColor: rootBorderColor } : {}), rootBorderRadius !== void 0 ? { borderRadius: rootBorderRadius } : {})
|
|
9635
9635
|
);
|
|
9636
|
-
var StyledControl =
|
|
9636
|
+
var StyledControl = styled51(View)(
|
|
9637
9637
|
({
|
|
9638
9638
|
controlSize,
|
|
9639
9639
|
controlBorderWidth,
|
|
@@ -9652,13 +9652,13 @@ var StyledControl = styled60(View)(
|
|
|
9652
9652
|
justifyContent: "center"
|
|
9653
9653
|
})
|
|
9654
9654
|
);
|
|
9655
|
-
var StyledContent2 =
|
|
9655
|
+
var StyledContent2 = styled51(View)(({ contentGap }) => ({
|
|
9656
9656
|
flexDirection: "column",
|
|
9657
9657
|
gap: contentGap,
|
|
9658
9658
|
flex: 1,
|
|
9659
9659
|
minWidth: 0
|
|
9660
9660
|
}));
|
|
9661
|
-
var StyledIllustration =
|
|
9661
|
+
var StyledIllustration = styled51(View)(({ illustrationSize }) => ({
|
|
9662
9662
|
flexShrink: 0,
|
|
9663
9663
|
width: illustrationSize,
|
|
9664
9664
|
height: illustrationSize,
|
|
@@ -9689,7 +9689,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9689
9689
|
]);
|
|
9690
9690
|
const theme2 = useTheme();
|
|
9691
9691
|
const { checkbox } = theme2.tokens.components;
|
|
9692
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
9692
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
9693
9693
|
const isControlled = controlledChecked !== void 0;
|
|
9694
9694
|
const [internalChecked, setInternalChecked] = React60.useState(defaultChecked);
|
|
9695
9695
|
const isChecked = isControlled ? controlledChecked : internalChecked;
|
|
@@ -9735,7 +9735,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9735
9735
|
checkbox.control.border.default
|
|
9736
9736
|
),
|
|
9737
9737
|
controlBorderColor: isChecked ? checkbox.colour.background.selected : checkbox.colour.border.default,
|
|
9738
|
-
controlBorderRadius: parseTokenValue30(
|
|
9738
|
+
controlBorderRadius: parseTokenValue30(dimensions3.borderRadius.xs),
|
|
9739
9739
|
controlBgColor: isChecked ? checkbox.colour.background.selected : "transparent",
|
|
9740
9740
|
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { children: /* @__PURE__ */ jsx(Icon, { icon: Check_default, size: "xs", colour: "alt" }) })
|
|
9741
9741
|
}
|
|
@@ -9782,7 +9782,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9782
9782
|
);
|
|
9783
9783
|
Checkbox.displayName = "Checkbox";
|
|
9784
9784
|
var parseTokenValue31 = (value) => parseFloat(value);
|
|
9785
|
-
var StyledGroup =
|
|
9785
|
+
var StyledGroup = styled51(View)(({ groupDirection, groupGap }) => ({
|
|
9786
9786
|
flexDirection: groupDirection,
|
|
9787
9787
|
gap: groupGap
|
|
9788
9788
|
}));
|
|
@@ -9896,7 +9896,7 @@ var CopyFieldInput = React60.forwardRef(
|
|
|
9896
9896
|
);
|
|
9897
9897
|
CopyFieldInput.displayName = "CopyField.Field";
|
|
9898
9898
|
var parseTokenValue32 = (value) => parseFloat(value);
|
|
9899
|
-
var StyledRoot8 =
|
|
9899
|
+
var StyledRoot8 = styled51(View)(({ theme: theme2 }) => {
|
|
9900
9900
|
const { spacing } = theme2.tokens.components.inputs;
|
|
9901
9901
|
return {
|
|
9902
9902
|
gap: parseTokenValue32(spacing.gap)
|
|
@@ -9977,13 +9977,13 @@ var FilterTabContext = React60.createContext({
|
|
|
9977
9977
|
}
|
|
9978
9978
|
});
|
|
9979
9979
|
var parseTokenValue33 = (value) => parseFloat(value);
|
|
9980
|
-
var StyledRoot9 =
|
|
9980
|
+
var StyledRoot9 = styled51(View)(({ rootGap }) => ({
|
|
9981
9981
|
flexDirection: "row",
|
|
9982
9982
|
alignItems: "center",
|
|
9983
9983
|
gap: rootGap,
|
|
9984
9984
|
flexWrap: "nowrap"
|
|
9985
9985
|
}));
|
|
9986
|
-
var StyledItem2 =
|
|
9986
|
+
var StyledItem2 = styled51(Pressable)(
|
|
9987
9987
|
({
|
|
9988
9988
|
itemHeight,
|
|
9989
9989
|
itemMinWidth,
|
|
@@ -10034,7 +10034,7 @@ var FilterTabItem = React60.forwardRef(
|
|
|
10034
10034
|
const isIconOnly = !!IconOnlyIcon && !label;
|
|
10035
10035
|
const isActive = isSelected && !disabled;
|
|
10036
10036
|
const { tabItem } = theme2.tokens.components.filterTabs;
|
|
10037
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
10037
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
10038
10038
|
const height = parseTokenValue33(
|
|
10039
10039
|
size === "lg" ? tabItem.size.large.height : tabItem.size.small.height
|
|
10040
10040
|
);
|
|
@@ -10059,7 +10059,7 @@ var FilterTabItem = React60.forwardRef(
|
|
|
10059
10059
|
itemBgColor: isActive ? tabItem.colour.background.selected : tabItem.colour.background.default,
|
|
10060
10060
|
itemOpacity: disabled ? parseFloat(tabItem.opacity.disabled.default) : 1,
|
|
10061
10061
|
isIconOnly,
|
|
10062
|
-
style: { gap: parseTokenValue33(
|
|
10062
|
+
style: { gap: parseTokenValue33(dimensions3.spacing["2xs"]) }
|
|
10063
10063
|
}, rest), {
|
|
10064
10064
|
children: [
|
|
10065
10065
|
isIconOnly && IconOnlyIcon && /* @__PURE__ */ jsx(
|
|
@@ -10158,7 +10158,7 @@ var FilterTab = Object.assign(FilterTabRoot, {
|
|
|
10158
10158
|
Item: FilterTabItem
|
|
10159
10159
|
});
|
|
10160
10160
|
var parseTokenValue34 = (value) => parseFloat(value);
|
|
10161
|
-
var StyledFieldWrapper =
|
|
10161
|
+
var StyledFieldWrapper = styled51(View)(
|
|
10162
10162
|
({
|
|
10163
10163
|
fieldBgColor,
|
|
10164
10164
|
fieldBorderColor,
|
|
@@ -10179,7 +10179,7 @@ var StyledFieldWrapper = styled60(View)(
|
|
|
10179
10179
|
overflow: "hidden"
|
|
10180
10180
|
})
|
|
10181
10181
|
);
|
|
10182
|
-
var StyledTextInput =
|
|
10182
|
+
var StyledTextInput = styled51(TextInput)(({ inputColor, inputFontFamily, inputFontWeight, inputFontSize }) => __spreadProps(__spreadValues({
|
|
10183
10183
|
textAlign: "center",
|
|
10184
10184
|
outlineStyle: "none",
|
|
10185
10185
|
padding: 0,
|
|
@@ -10193,7 +10193,7 @@ var StyledTextInput = styled60(TextInput)(({ inputColor, inputFontFamily, inputF
|
|
|
10193
10193
|
fontSize: inputFontSize,
|
|
10194
10194
|
lineHeight: 0
|
|
10195
10195
|
}));
|
|
10196
|
-
var StyledRow =
|
|
10196
|
+
var StyledRow = styled51(View)(({ rowGap }) => ({
|
|
10197
10197
|
flexDirection: "row",
|
|
10198
10198
|
alignItems: "center",
|
|
10199
10199
|
alignSelf: "center",
|
|
@@ -10241,7 +10241,7 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10241
10241
|
var _a2;
|
|
10242
10242
|
const theme2 = useTheme();
|
|
10243
10243
|
const tokens3 = theme2.tokens.components.numberField;
|
|
10244
|
-
const
|
|
10244
|
+
const inputTokens3 = theme2.tokens.components.inputs;
|
|
10245
10245
|
const [isFocused, setIsFocused] = React60.useState(false);
|
|
10246
10246
|
const [isEdited, setIsEdited] = React60.useState(false);
|
|
10247
10247
|
const initialValueRef = React60.useRef((_a2 = value != null ? value : defaultValue) != null ? _a2 : "");
|
|
@@ -10252,11 +10252,11 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10252
10252
|
const fieldMinWidth = parseTokenValue34(fieldSizeTokens.minWidth);
|
|
10253
10253
|
const fieldHeight = parseTokenValue34(fieldSizeTokens.height);
|
|
10254
10254
|
const fieldPaddingHorizontal = parseTokenValue34(
|
|
10255
|
-
|
|
10255
|
+
inputTokens3.spacing.field.horizontalPadding
|
|
10256
10256
|
);
|
|
10257
10257
|
const getBorderColor = () => {
|
|
10258
|
-
if (state === "error") return
|
|
10259
|
-
if (state === "success") return
|
|
10258
|
+
if (state === "error") return inputTokens3.colour.field.border.error;
|
|
10259
|
+
if (state === "success") return inputTokens3.colour.field.border.success;
|
|
10260
10260
|
if (isFocused) return tokens3.colour.field.border.selected;
|
|
10261
10261
|
if (isEdited) return tokens3.colour.field.border.edited;
|
|
10262
10262
|
return tokens3.colour.field.border.default;
|
|
@@ -10355,11 +10355,11 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10355
10355
|
);
|
|
10356
10356
|
NumberFieldInput.displayName = "NumberField.Input";
|
|
10357
10357
|
var parseTokenValue35 = (value) => parseFloat(value);
|
|
10358
|
-
var StyledRoot10 =
|
|
10358
|
+
var StyledRoot10 = styled51(View)(({ rootGap }) => ({
|
|
10359
10359
|
alignItems: "center",
|
|
10360
10360
|
gap: rootGap
|
|
10361
10361
|
}));
|
|
10362
|
-
var StyledLabelGroup =
|
|
10362
|
+
var StyledLabelGroup = styled51(View)(({ labelGap }) => ({
|
|
10363
10363
|
gap: labelGap
|
|
10364
10364
|
}));
|
|
10365
10365
|
var NumberField = React60.forwardRef(
|
|
@@ -10508,7 +10508,7 @@ var PasswordFieldInput = React60.forwardRef((_a, ref) => {
|
|
|
10508
10508
|
});
|
|
10509
10509
|
PasswordFieldInput.displayName = "PasswordField.Field";
|
|
10510
10510
|
var parseTokenValue36 = (value) => parseFloat(value);
|
|
10511
|
-
var StyledErrorRow2 =
|
|
10511
|
+
var StyledErrorRow2 = styled51(View)(({ gap }) => ({
|
|
10512
10512
|
flexDirection: "row",
|
|
10513
10513
|
alignItems: "center",
|
|
10514
10514
|
gap
|
|
@@ -10540,12 +10540,12 @@ var PasswordFieldError = React60.forwardRef((_a, ref) => {
|
|
|
10540
10540
|
});
|
|
10541
10541
|
PasswordFieldError.displayName = "PasswordField.Error";
|
|
10542
10542
|
var parseTokenValue37 = (value) => parseFloat(value);
|
|
10543
|
-
var StyledRequirementsList =
|
|
10543
|
+
var StyledRequirementsList = styled51(View)(
|
|
10544
10544
|
({ listGap }) => ({
|
|
10545
10545
|
gap: listGap
|
|
10546
10546
|
})
|
|
10547
10547
|
);
|
|
10548
|
-
var StyledRequirementItem =
|
|
10548
|
+
var StyledRequirementItem = styled51(View)(
|
|
10549
10549
|
({ itemGap }) => ({
|
|
10550
10550
|
flexDirection: "row",
|
|
10551
10551
|
alignItems: "center",
|
|
@@ -10602,7 +10602,7 @@ var PasswordFieldRequirements = React60.forwardRef((_a, ref) => {
|
|
|
10602
10602
|
});
|
|
10603
10603
|
PasswordFieldRequirements.displayName = "PasswordField.Requirements";
|
|
10604
10604
|
var parseTokenValue38 = (value) => parseFloat(value);
|
|
10605
|
-
var StyledRoot11 =
|
|
10605
|
+
var StyledRoot11 = styled51(View)(({ theme: theme2 }) => {
|
|
10606
10606
|
const { spacing } = theme2.tokens.components.inputs;
|
|
10607
10607
|
return {
|
|
10608
10608
|
gap: parseTokenValue38(spacing.gap)
|
|
@@ -10716,19 +10716,19 @@ function usePasswordField({
|
|
|
10716
10716
|
});
|
|
10717
10717
|
}
|
|
10718
10718
|
var parseTokenValue39 = (value) => parseFloat(value);
|
|
10719
|
-
var StyledRoot12 =
|
|
10719
|
+
var StyledRoot12 = styled51(View)(({ rootGap }) => ({
|
|
10720
10720
|
flexDirection: "column",
|
|
10721
10721
|
alignItems: "stretch",
|
|
10722
10722
|
gap: rootGap,
|
|
10723
10723
|
width: "100%"
|
|
10724
10724
|
}));
|
|
10725
|
-
var StyledHeader2 =
|
|
10725
|
+
var StyledHeader2 = styled51(View)({
|
|
10726
10726
|
flexDirection: "row",
|
|
10727
10727
|
alignItems: "center",
|
|
10728
10728
|
justifyContent: "space-between",
|
|
10729
10729
|
width: "100%"
|
|
10730
10730
|
});
|
|
10731
|
-
var StyledTrack =
|
|
10731
|
+
var StyledTrack = styled51(View)(({ trackHeight, trackMinWidth, trackBorderRadius, trackBgColor }) => ({
|
|
10732
10732
|
position: "relative",
|
|
10733
10733
|
width: "100%",
|
|
10734
10734
|
minWidth: trackMinWidth,
|
|
@@ -10737,7 +10737,7 @@ var StyledTrack = styled60(View)(({ trackHeight, trackMinWidth, trackBorderRadiu
|
|
|
10737
10737
|
backgroundColor: trackBgColor,
|
|
10738
10738
|
overflow: "hidden"
|
|
10739
10739
|
}));
|
|
10740
|
-
var StyledIndicator =
|
|
10740
|
+
var StyledIndicator = styled51(View)(({ indicatorBorderRadius, indicatorBgColor }) => ({
|
|
10741
10741
|
height: "100%",
|
|
10742
10742
|
borderRadius: indicatorBorderRadius,
|
|
10743
10743
|
backgroundColor: indicatorBgColor
|
|
@@ -10834,7 +10834,7 @@ var Progress = React60.forwardRef(
|
|
|
10834
10834
|
);
|
|
10835
10835
|
Progress.displayName = "Progress";
|
|
10836
10836
|
var parseTokenValue40 = (value) => parseFloat(value);
|
|
10837
|
-
var StyledRadioRoot =
|
|
10837
|
+
var StyledRadioRoot = styled51(Pressable)(
|
|
10838
10838
|
({
|
|
10839
10839
|
radioGap,
|
|
10840
10840
|
radioOpacity,
|
|
@@ -10853,7 +10853,7 @@ var StyledRadioRoot = styled60(Pressable)(
|
|
|
10853
10853
|
opacity: radioOpacity
|
|
10854
10854
|
}, radioPaddingVertical !== void 0 ? { paddingVertical: radioPaddingVertical } : {}), radioPaddingHorizontal !== void 0 ? { paddingHorizontal: radioPaddingHorizontal } : {}), radioMaxWidth !== void 0 ? { maxWidth: radioMaxWidth } : {}), radioBgColor ? { backgroundColor: radioBgColor } : {}), radioBorderWidth !== void 0 ? { borderWidth: radioBorderWidth, borderColor: radioBorderColor } : {}), radioBorderRadius !== void 0 ? { borderRadius: radioBorderRadius } : {})
|
|
10855
10855
|
);
|
|
10856
|
-
var StyledRadioControl =
|
|
10856
|
+
var StyledRadioControl = styled51(View)(({ controlSize, controlBorderWidth, controlBorderColor }) => ({
|
|
10857
10857
|
width: controlSize,
|
|
10858
10858
|
height: controlSize,
|
|
10859
10859
|
minWidth: controlSize,
|
|
@@ -10864,20 +10864,20 @@ var StyledRadioControl = styled60(View)(({ controlSize, controlBorderWidth, cont
|
|
|
10864
10864
|
alignItems: "center",
|
|
10865
10865
|
justifyContent: "center"
|
|
10866
10866
|
}));
|
|
10867
|
-
var StyledIndicator2 =
|
|
10867
|
+
var StyledIndicator2 = styled51(View)(({ indicatorSize, indicatorBgColor }) => ({
|
|
10868
10868
|
width: indicatorSize,
|
|
10869
10869
|
height: indicatorSize,
|
|
10870
10870
|
borderRadius: indicatorSize / 2,
|
|
10871
10871
|
backgroundColor: indicatorBgColor
|
|
10872
10872
|
}));
|
|
10873
|
-
var StyledTextContent =
|
|
10873
|
+
var StyledTextContent = styled51(View)(({ textContentGap }) => ({
|
|
10874
10874
|
flexDirection: "column",
|
|
10875
10875
|
gap: textContentGap
|
|
10876
10876
|
}));
|
|
10877
|
-
var StyledAssetWrapper =
|
|
10877
|
+
var StyledAssetWrapper = styled51(View)({
|
|
10878
10878
|
alignSelf: "center"
|
|
10879
10879
|
});
|
|
10880
|
-
var StyledTagWrapper =
|
|
10880
|
+
var StyledTagWrapper = styled51(View)(
|
|
10881
10881
|
({ tagTopPadding }) => ({
|
|
10882
10882
|
alignItems: "flex-start",
|
|
10883
10883
|
paddingTop: tagTopPadding
|
|
@@ -10988,7 +10988,7 @@ var Radio = React60.forwardRef(
|
|
|
10988
10988
|
);
|
|
10989
10989
|
Radio.displayName = "Radio";
|
|
10990
10990
|
var parseTokenValue41 = (value) => parseFloat(value);
|
|
10991
|
-
var StyledRadioGroup =
|
|
10991
|
+
var StyledRadioGroup = styled51(View)(({ groupDirection, groupGap }) => ({
|
|
10992
10992
|
flexDirection: groupDirection,
|
|
10993
10993
|
gap: groupGap
|
|
10994
10994
|
}));
|
|
@@ -11114,7 +11114,7 @@ var SearchFieldInput = React60.forwardRef((_a, ref) => {
|
|
|
11114
11114
|
});
|
|
11115
11115
|
SearchFieldInput.displayName = "SearchField.Field";
|
|
11116
11116
|
var parseTokenValue42 = (value) => parseFloat(value);
|
|
11117
|
-
var StyledRoot13 =
|
|
11117
|
+
var StyledRoot13 = styled51(View)(({ theme: theme2 }) => {
|
|
11118
11118
|
const { spacing } = theme2.tokens.components.inputs;
|
|
11119
11119
|
return {
|
|
11120
11120
|
gap: parseTokenValue42(spacing.gap)
|
|
@@ -11191,7 +11191,7 @@ function useSearchField({
|
|
|
11191
11191
|
};
|
|
11192
11192
|
}
|
|
11193
11193
|
var parseTokenValue43 = (value) => parseFloat(value);
|
|
11194
|
-
var StyledSegmentItem =
|
|
11194
|
+
var StyledSegmentItem = styled51(Pressable)(
|
|
11195
11195
|
({
|
|
11196
11196
|
itemHeight,
|
|
11197
11197
|
itemMinWidth,
|
|
@@ -11211,14 +11211,14 @@ var StyledSegmentItem = styled60(Pressable)(
|
|
|
11211
11211
|
opacity: itemOpacity
|
|
11212
11212
|
}, itemFlex !== void 0 ? { flex: itemFlex } : { flexShrink: 0 })
|
|
11213
11213
|
);
|
|
11214
|
-
var StyledIntrinsicClip =
|
|
11214
|
+
var StyledIntrinsicClip = styled51(View)(({ clipBorderRadius, clipBgColor, clipWidth }) => __spreadValues({
|
|
11215
11215
|
overflow: "hidden",
|
|
11216
11216
|
borderRadius: clipBorderRadius,
|
|
11217
11217
|
backgroundColor: clipBgColor,
|
|
11218
11218
|
alignSelf: "flex-start",
|
|
11219
11219
|
maxWidth: "100%"
|
|
11220
11220
|
}, clipWidth !== void 0 ? { width: clipWidth } : {}));
|
|
11221
|
-
var StyledScrollIndicator =
|
|
11221
|
+
var StyledScrollIndicator = styled51(Pressable)(
|
|
11222
11222
|
({
|
|
11223
11223
|
indicatorSide,
|
|
11224
11224
|
indicatorBorderRadius,
|
|
@@ -11274,7 +11274,7 @@ var ScrollIndicatorGradient = ({
|
|
|
11274
11274
|
/* @__PURE__ */ jsx(Rect, { width: "100%", height: "100%", fill: `url(#${gradientId})` })
|
|
11275
11275
|
] }) });
|
|
11276
11276
|
};
|
|
11277
|
-
var StyledContainer2 =
|
|
11277
|
+
var StyledContainer2 = styled51(View)(
|
|
11278
11278
|
({
|
|
11279
11279
|
containerGap,
|
|
11280
11280
|
containerPaddingVertical,
|
|
@@ -11470,7 +11470,7 @@ var SegmentedControlRoot = React60.forwardRef(
|
|
|
11470
11470
|
var _a2, _b2;
|
|
11471
11471
|
const theme2 = useTheme();
|
|
11472
11472
|
const { spacing, borderRadius, colour } = theme2.tokens.components.segmentedControl;
|
|
11473
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
11473
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
11474
11474
|
const optionsFirstValue = (_a2 = options == null ? void 0 : options[0]) == null ? void 0 : _a2.value;
|
|
11475
11475
|
const childrenArray = React60.Children.toArray(children);
|
|
11476
11476
|
const firstChildValue = childrenArray.map((child) => {
|
|
@@ -11533,8 +11533,8 @@ var SegmentedControlRoot = React60.forwardRef(
|
|
|
11533
11533
|
containerBorderRadius: parseTokenValue43(borderRadius.default),
|
|
11534
11534
|
containerBgColor: colour.background.default,
|
|
11535
11535
|
containerFullWidth: layout === "fixed",
|
|
11536
|
-
scrollIndicatorPaddingOuter: parseTokenValue43(
|
|
11537
|
-
scrollIndicatorPaddingInner: parseTokenValue43(
|
|
11536
|
+
scrollIndicatorPaddingOuter: parseTokenValue43(dimensions3.spacing["2xl"]),
|
|
11537
|
+
scrollIndicatorPaddingInner: parseTokenValue43(dimensions3.spacing.sm)
|
|
11538
11538
|
};
|
|
11539
11539
|
if (layout === "intrinsic") {
|
|
11540
11540
|
return /* @__PURE__ */ jsx(
|
|
@@ -11554,7 +11554,7 @@ var SegmentedControl = Object.assign(SegmentedControlRoot, {
|
|
|
11554
11554
|
Item: SegmentedControlItem
|
|
11555
11555
|
});
|
|
11556
11556
|
var parseTokenValue44 = (value) => parseFloat(value);
|
|
11557
|
-
var StyledTriggerWrapper =
|
|
11557
|
+
var StyledTriggerWrapper = styled51(Animated.View)(({
|
|
11558
11558
|
theme: theme2,
|
|
11559
11559
|
state: _state
|
|
11560
11560
|
}) => {
|
|
@@ -11570,12 +11570,12 @@ var StyledTriggerWrapper = styled60(Animated.View)(({
|
|
|
11570
11570
|
borderRadius: parseTokenValue44(borderRadius.field.default)
|
|
11571
11571
|
};
|
|
11572
11572
|
});
|
|
11573
|
-
var StyledIconWrapper2 =
|
|
11573
|
+
var StyledIconWrapper2 = styled51(View)({
|
|
11574
11574
|
flexShrink: 0,
|
|
11575
11575
|
alignItems: "center",
|
|
11576
11576
|
justifyContent: "center"
|
|
11577
11577
|
});
|
|
11578
|
-
var StyledArrowIcon =
|
|
11578
|
+
var StyledArrowIcon = styled51(Animated.View)({
|
|
11579
11579
|
flexShrink: 0,
|
|
11580
11580
|
alignItems: "center",
|
|
11581
11581
|
justifyContent: "center"
|
|
@@ -11661,7 +11661,7 @@ var SelectFieldTrigger = React60.forwardRef(
|
|
|
11661
11661
|
}
|
|
11662
11662
|
);
|
|
11663
11663
|
SelectFieldTrigger.displayName = "SelectField.Trigger";
|
|
11664
|
-
var StyledValue =
|
|
11664
|
+
var StyledValue = styled51(Text)(({ theme: theme2 }) => {
|
|
11665
11665
|
const { colour } = theme2.tokens.components.inputs;
|
|
11666
11666
|
return {
|
|
11667
11667
|
flex: 1,
|
|
@@ -11680,7 +11680,7 @@ SelectFieldValue.displayName = "SelectField.Value";
|
|
|
11680
11680
|
var parseTokenValue45 = (value) => parseFloat(value);
|
|
11681
11681
|
var DROPDOWN_OFFSET_X = -32;
|
|
11682
11682
|
var DROPDOWN_OFFSET_Y = -94;
|
|
11683
|
-
var StyledContentShadow =
|
|
11683
|
+
var StyledContentShadow = styled51(View)(({ theme: theme2 }) => {
|
|
11684
11684
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11685
11685
|
const shadow = dropdown.list.dropshadow.default;
|
|
11686
11686
|
return {
|
|
@@ -11699,7 +11699,7 @@ var StyledContentShadow = styled60(View)(({ theme: theme2 }) => {
|
|
|
11699
11699
|
]
|
|
11700
11700
|
};
|
|
11701
11701
|
});
|
|
11702
|
-
var StyledContentInner =
|
|
11702
|
+
var StyledContentInner = styled51(View)(({ theme: theme2 }) => {
|
|
11703
11703
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11704
11704
|
const { colour } = theme2.tokens.components.inputs;
|
|
11705
11705
|
return {
|
|
@@ -11728,7 +11728,7 @@ var SelectFieldContent = React60.forwardRef((_a, ref) => {
|
|
|
11728
11728
|
});
|
|
11729
11729
|
SelectFieldContent.displayName = "SelectField.Content";
|
|
11730
11730
|
var parseTokenValue46 = (value) => parseFloat(value);
|
|
11731
|
-
var StyledItem3 =
|
|
11731
|
+
var StyledItem3 = styled51(Pressable)(({ theme: theme2 }) => {
|
|
11732
11732
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11733
11733
|
return {
|
|
11734
11734
|
flexDirection: "row",
|
|
@@ -11742,12 +11742,12 @@ var StyledItem3 = styled60(Pressable)(({ theme: theme2 }) => {
|
|
|
11742
11742
|
backgroundColor: dropdown.listItem.colour.background.default
|
|
11743
11743
|
};
|
|
11744
11744
|
});
|
|
11745
|
-
var StyledIconWrapper3 =
|
|
11745
|
+
var StyledIconWrapper3 = styled51(View)({
|
|
11746
11746
|
flexShrink: 0,
|
|
11747
11747
|
alignItems: "center",
|
|
11748
11748
|
justifyContent: "center"
|
|
11749
11749
|
});
|
|
11750
|
-
var StyledContentWrapper =
|
|
11750
|
+
var StyledContentWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
11751
11751
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11752
11752
|
return {
|
|
11753
11753
|
flexDirection: "row",
|
|
@@ -11757,17 +11757,17 @@ var StyledContentWrapper = styled60(View)(({ theme: theme2 }) => {
|
|
|
11757
11757
|
minWidth: 0
|
|
11758
11758
|
};
|
|
11759
11759
|
});
|
|
11760
|
-
var StyledTextWrapper2 =
|
|
11760
|
+
var StyledTextWrapper2 = styled51(View)({
|
|
11761
11761
|
flex: 1,
|
|
11762
11762
|
minWidth: 0
|
|
11763
11763
|
});
|
|
11764
|
-
var StyledItemText =
|
|
11764
|
+
var StyledItemText = styled51(Text)(({ theme: theme2 }) => {
|
|
11765
11765
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11766
11766
|
return {
|
|
11767
11767
|
color: dropdown.listItem.colour.text.placeholder.default
|
|
11768
11768
|
};
|
|
11769
11769
|
});
|
|
11770
|
-
var StyledHintText =
|
|
11770
|
+
var StyledHintText = styled51(Text)(({ theme: theme2 }) => {
|
|
11771
11771
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11772
11772
|
return {
|
|
11773
11773
|
color: dropdown.listItem.colour.text.hint.default,
|
|
@@ -11810,7 +11810,7 @@ var SelectFieldItem = React60.forwardRef(
|
|
|
11810
11810
|
);
|
|
11811
11811
|
SelectFieldItem.displayName = "SelectField.Item";
|
|
11812
11812
|
var parseTokenValue47 = (value) => parseFloat(value);
|
|
11813
|
-
var StyledRoot14 =
|
|
11813
|
+
var StyledRoot14 = styled51(View)(({ theme: theme2 }) => {
|
|
11814
11814
|
const { spacing } = theme2.tokens.components.inputs;
|
|
11815
11815
|
return {
|
|
11816
11816
|
gap: parseTokenValue47(spacing.gap)
|
|
@@ -11943,13 +11943,269 @@ function useSelectField(options = {}) {
|
|
|
11943
11943
|
onValueChange: handleValueChange
|
|
11944
11944
|
}, validationRule && { state, error });
|
|
11945
11945
|
}
|
|
11946
|
+
var themeTokens = DEFAULT_THEME_OPTIONS.tokens;
|
|
11947
|
+
var { components, semantics } = themeTokens;
|
|
11948
|
+
var inputTokens = components.inputs;
|
|
11949
|
+
var { dimensions } = semantics;
|
|
11950
|
+
var parseSize = (value) => {
|
|
11951
|
+
return parseInt(value.replace("px", ""), 10);
|
|
11952
|
+
};
|
|
11953
|
+
var Wrapper = styled51(View)({
|
|
11954
|
+
borderWidth: parseSize(inputTokens.borderWidth.field.selected),
|
|
11955
|
+
borderColor: inputTokens.colour.field.border.selected,
|
|
11956
|
+
borderRadius: parseSize(inputTokens.borderRadius.field.default),
|
|
11957
|
+
backgroundColor: inputTokens.colour.field.background.default,
|
|
11958
|
+
paddingHorizontal: parseSize(inputTokens.spacing.field.horizontalPadding),
|
|
11959
|
+
paddingVertical: parseSize(inputTokens.spacing.field.verticalPadding),
|
|
11960
|
+
height: parseSize(inputTokens.size.field.height),
|
|
11961
|
+
flexDirection: "row",
|
|
11962
|
+
alignItems: "center",
|
|
11963
|
+
justifyContent: "space-between"
|
|
11964
|
+
});
|
|
11965
|
+
var SelectIcon = styled51(Animated10.View)({
|
|
11966
|
+
position: "absolute",
|
|
11967
|
+
right: 0,
|
|
11968
|
+
marginRight: 0
|
|
11969
|
+
});
|
|
11970
|
+
var InputText = styled51(Text)({
|
|
11971
|
+
color: inputTokens.colour.field.text.default,
|
|
11972
|
+
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
11973
|
+
fontWeight: inputTokens.field.placeholder.default.fontWeight,
|
|
11974
|
+
flex: 1
|
|
11975
|
+
});
|
|
11976
|
+
var PlaceholderText = styled51(Text)({
|
|
11977
|
+
color: inputTokens.colour.field.text.placeholder,
|
|
11978
|
+
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
11979
|
+
fontWeight: inputTokens.field.placeholder.default.fontWeight,
|
|
11980
|
+
flex: 1
|
|
11981
|
+
});
|
|
11982
|
+
var ModalOverlay = styled51(View)({
|
|
11983
|
+
flex: 1,
|
|
11984
|
+
backgroundColor: "rgba(0, 0, 0, 0.32)",
|
|
11985
|
+
justifyContent: "flex-end"
|
|
11986
|
+
});
|
|
11987
|
+
var AndroidDialog = styled51(View)({
|
|
11988
|
+
backgroundColor: inputTokens.colour.field.background.default,
|
|
11989
|
+
borderTopLeftRadius: parseSize(dimensions.borderRadius.lg),
|
|
11990
|
+
borderTopRightRadius: parseSize(dimensions.borderRadius.lg),
|
|
11991
|
+
maxHeight: "80%",
|
|
11992
|
+
minHeight: "40%",
|
|
11993
|
+
paddingTop: parseSize(dimensions.spacing.md),
|
|
11994
|
+
paddingBottom: parseSize(dimensions.spacing.xl),
|
|
11995
|
+
paddingHorizontal: parseSize(dimensions.spacing.md)
|
|
11996
|
+
});
|
|
11997
|
+
var DialogTitle = styled51(Text)({
|
|
11998
|
+
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
11999
|
+
fontWeight: inputTokens.text.label.fontWeight,
|
|
12000
|
+
color: inputTokens.colour.field.text.default,
|
|
12001
|
+
marginBottom: parseSize(dimensions.spacing.md),
|
|
12002
|
+
marginLeft: parseSize(dimensions.spacing.xs)
|
|
12003
|
+
});
|
|
12004
|
+
var AndroidOptionRow = styled51(View)({
|
|
12005
|
+
flexDirection: "row",
|
|
12006
|
+
alignItems: "center",
|
|
12007
|
+
paddingVertical: parseSize(dimensions.spacing.md),
|
|
12008
|
+
paddingHorizontal: parseSize(dimensions.spacing.sm),
|
|
12009
|
+
borderBottomWidth: parseSize(dimensions.borderWidth.sm),
|
|
12010
|
+
borderBottomColor: themeTokens.primitives.colour.brand.brown[2]
|
|
12011
|
+
});
|
|
12012
|
+
var RadioOuter = styled51(View)({
|
|
12013
|
+
width: parseSize(dimensions.spacing.lg),
|
|
12014
|
+
height: parseSize(dimensions.spacing.lg),
|
|
12015
|
+
borderRadius: parseSize(dimensions.spacing.lg) / 2,
|
|
12016
|
+
borderWidth: parseSize(dimensions.borderWidth.md),
|
|
12017
|
+
borderColor: inputTokens.colour.field.border.selected,
|
|
12018
|
+
alignItems: "center",
|
|
12019
|
+
justifyContent: "center",
|
|
12020
|
+
marginRight: parseSize(dimensions.spacing.sm)
|
|
12021
|
+
});
|
|
12022
|
+
var RadioInner = styled51(View)({
|
|
12023
|
+
width: parseSize(dimensions.spacing.md) / 2,
|
|
12024
|
+
height: parseSize(dimensions.spacing.md) / 2,
|
|
12025
|
+
borderRadius: parseSize(dimensions.spacing.md) / 4,
|
|
12026
|
+
backgroundColor: inputTokens.colour.field.border.selected
|
|
12027
|
+
});
|
|
12028
|
+
var AndroidOptionText = styled51(Text)(
|
|
12029
|
+
({ isSelected }) => ({
|
|
12030
|
+
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
12031
|
+
fontWeight: isSelected ? inputTokens.text.label.fontWeight : inputTokens.field.placeholder.default.fontWeight,
|
|
12032
|
+
color: inputTokens.colour.field.text.default,
|
|
12033
|
+
flex: 1
|
|
12034
|
+
})
|
|
12035
|
+
);
|
|
12036
|
+
var themeTokens2 = DEFAULT_THEME_OPTIONS.tokens;
|
|
12037
|
+
var { components: components2, semantics: semantics2 } = themeTokens2;
|
|
12038
|
+
var inputTokens2 = components2.inputs;
|
|
12039
|
+
var { dimensions: dimensions2 } = semantics2;
|
|
12040
|
+
var parseSize2 = (value) => {
|
|
12041
|
+
return parseInt(value.replace("px", ""), 10);
|
|
12042
|
+
};
|
|
12043
|
+
var useIconAnimation = () => {
|
|
12044
|
+
const iconRotation = useSharedValue(0);
|
|
12045
|
+
const iconAnimationStyles = useAnimatedStyle(() => {
|
|
12046
|
+
"worklet";
|
|
12047
|
+
return {
|
|
12048
|
+
transform: [{ rotate: `${iconRotation.value}deg` }]
|
|
12049
|
+
};
|
|
12050
|
+
});
|
|
12051
|
+
return {
|
|
12052
|
+
iconAnimationStyles
|
|
12053
|
+
};
|
|
12054
|
+
};
|
|
12055
|
+
var NativeSelectPicker = React60.forwardRef(
|
|
12056
|
+
(_a, ref) => {
|
|
12057
|
+
var _b = _a, {
|
|
12058
|
+
items,
|
|
12059
|
+
value,
|
|
12060
|
+
placeholder,
|
|
12061
|
+
onValueChange,
|
|
12062
|
+
disabled = false,
|
|
12063
|
+
hideIcon = false
|
|
12064
|
+
} = _b, rest = __objRest(_b, [
|
|
12065
|
+
"items",
|
|
12066
|
+
"value",
|
|
12067
|
+
"placeholder",
|
|
12068
|
+
"onValueChange",
|
|
12069
|
+
"disabled",
|
|
12070
|
+
"hideIcon"
|
|
12071
|
+
]);
|
|
12072
|
+
var _a2;
|
|
12073
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
12074
|
+
const { iconAnimationStyles } = useIconAnimation();
|
|
12075
|
+
const hasPlaceholder = placeholder && Object.keys(placeholder).length > 0 && placeholder.label !== void 0;
|
|
12076
|
+
const allItems = useMemo(() => {
|
|
12077
|
+
var _a3;
|
|
12078
|
+
if (hasPlaceholder) {
|
|
12079
|
+
return [
|
|
12080
|
+
{
|
|
12081
|
+
label: placeholder.label,
|
|
12082
|
+
value: (_a3 = placeholder.value) != null ? _a3 : "",
|
|
12083
|
+
key: "__placeholder__"
|
|
12084
|
+
},
|
|
12085
|
+
...items
|
|
12086
|
+
];
|
|
12087
|
+
}
|
|
12088
|
+
return items;
|
|
12089
|
+
}, [items, hasPlaceholder, placeholder]);
|
|
12090
|
+
const selectedItem = allItems.find((item) => item.value === value);
|
|
12091
|
+
const displayLabel = (_a2 = selectedItem == null ? void 0 : selectedItem.label) != null ? _a2 : hasPlaceholder ? placeholder.label : "";
|
|
12092
|
+
const handleOpenIOS = useCallback(() => {
|
|
12093
|
+
if (disabled) return;
|
|
12094
|
+
const options = [...allItems.map((item) => item.label), "Cancel"];
|
|
12095
|
+
const cancelButtonIndex = options.length - 1;
|
|
12096
|
+
ActionSheetIOS.showActionSheetWithOptions(
|
|
12097
|
+
{
|
|
12098
|
+
options,
|
|
12099
|
+
cancelButtonIndex
|
|
12100
|
+
},
|
|
12101
|
+
(buttonIndex) => {
|
|
12102
|
+
if (buttonIndex !== cancelButtonIndex) {
|
|
12103
|
+
onValueChange(allItems[buttonIndex].value);
|
|
12104
|
+
}
|
|
12105
|
+
}
|
|
12106
|
+
);
|
|
12107
|
+
}, [disabled, allItems, onValueChange]);
|
|
12108
|
+
const handleOpenAndroid = useCallback(() => {
|
|
12109
|
+
if (!disabled) {
|
|
12110
|
+
setIsOpen(true);
|
|
12111
|
+
}
|
|
12112
|
+
}, [disabled]);
|
|
12113
|
+
const handleClose = useCallback(() => {
|
|
12114
|
+
setIsOpen(false);
|
|
12115
|
+
}, []);
|
|
12116
|
+
const handleSelect = useCallback(
|
|
12117
|
+
(itemValue) => {
|
|
12118
|
+
onValueChange(itemValue);
|
|
12119
|
+
setIsOpen(false);
|
|
12120
|
+
},
|
|
12121
|
+
[onValueChange]
|
|
12122
|
+
);
|
|
12123
|
+
return /* @__PURE__ */ jsxs(Wrapper, __spreadProps(__spreadValues({ ref }, rest), { children: [
|
|
12124
|
+
/* @__PURE__ */ jsxs(
|
|
12125
|
+
TouchableOpacity,
|
|
12126
|
+
{
|
|
12127
|
+
activeOpacity: 0.8,
|
|
12128
|
+
onPress: Platform.OS === "ios" ? handleOpenIOS : handleOpenAndroid,
|
|
12129
|
+
disabled,
|
|
12130
|
+
hitSlop: {
|
|
12131
|
+
top: parseSize2(dimensions2.spacing.md),
|
|
12132
|
+
right: parseSize2(dimensions2.spacing.md),
|
|
12133
|
+
bottom: parseSize2(dimensions2.spacing.md),
|
|
12134
|
+
left: parseSize2(dimensions2.spacing.md)
|
|
12135
|
+
},
|
|
12136
|
+
accessibilityRole: "button",
|
|
12137
|
+
style: { flexDirection: "row", alignItems: "center" },
|
|
12138
|
+
children: [
|
|
12139
|
+
/* @__PURE__ */ jsx(InputText, { numberOfLines: 1, children: displayLabel || /* @__PURE__ */ jsx(PlaceholderText, { children: (placeholder == null ? void 0 : placeholder.label) || "Select" }) }),
|
|
12140
|
+
!hideIcon && /* @__PURE__ */ jsx(SelectIcon, { style: [iconAnimationStyles], children: /* @__PURE__ */ jsx(
|
|
12141
|
+
KeyboardArrowDown_default,
|
|
12142
|
+
{
|
|
12143
|
+
width: parseSize2(dimensions2.spacing.xl),
|
|
12144
|
+
height: parseSize2(dimensions2.spacing.xl),
|
|
12145
|
+
color: inputTokens2.colour.field.text.default
|
|
12146
|
+
}
|
|
12147
|
+
) })
|
|
12148
|
+
]
|
|
12149
|
+
}
|
|
12150
|
+
),
|
|
12151
|
+
Platform.OS === "android" && /* @__PURE__ */ jsx(
|
|
12152
|
+
Modal,
|
|
12153
|
+
{
|
|
12154
|
+
visible: isOpen,
|
|
12155
|
+
transparent: true,
|
|
12156
|
+
animationType: "fade",
|
|
12157
|
+
onRequestClose: handleClose,
|
|
12158
|
+
children: /* @__PURE__ */ jsx(
|
|
12159
|
+
TouchableWithoutFeedback,
|
|
12160
|
+
{
|
|
12161
|
+
accessibilityRole: "button",
|
|
12162
|
+
onPress: handleClose,
|
|
12163
|
+
children: /* @__PURE__ */ jsx(ModalOverlay, { children: /* @__PURE__ */ jsx(TouchableWithoutFeedback, { children: /* @__PURE__ */ jsxs(AndroidDialog, { children: [
|
|
12164
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Select an option" }),
|
|
12165
|
+
/* @__PURE__ */ jsx(
|
|
12166
|
+
FlatList,
|
|
12167
|
+
{
|
|
12168
|
+
data: allItems,
|
|
12169
|
+
keyExtractor: (item, index) => {
|
|
12170
|
+
var _a3, _b2;
|
|
12171
|
+
return (_b2 = (_a3 = item.key) == null ? void 0 : _a3.toString()) != null ? _b2 : `${item.value}-${index}`;
|
|
12172
|
+
},
|
|
12173
|
+
renderItem: ({ item }) => {
|
|
12174
|
+
const isSelected = item.value === value;
|
|
12175
|
+
return /* @__PURE__ */ jsx(
|
|
12176
|
+
TouchableOpacity,
|
|
12177
|
+
{
|
|
12178
|
+
onPress: () => handleSelect(item.value),
|
|
12179
|
+
activeOpacity: 0.7,
|
|
12180
|
+
accessibilityRole: "button",
|
|
12181
|
+
children: /* @__PURE__ */ jsxs(AndroidOptionRow, { children: [
|
|
12182
|
+
/* @__PURE__ */ jsx(RadioOuter, { children: isSelected && /* @__PURE__ */ jsx(RadioInner, {}) }),
|
|
12183
|
+
/* @__PURE__ */ jsx(AndroidOptionText, { isSelected, children: item.label })
|
|
12184
|
+
] })
|
|
12185
|
+
}
|
|
12186
|
+
);
|
|
12187
|
+
},
|
|
12188
|
+
style: {
|
|
12189
|
+
maxHeight: parseSize2(dimensions2.spacing["8xl"])
|
|
12190
|
+
}
|
|
12191
|
+
}
|
|
12192
|
+
)
|
|
12193
|
+
] }) }) })
|
|
12194
|
+
}
|
|
12195
|
+
)
|
|
12196
|
+
}
|
|
12197
|
+
)
|
|
12198
|
+
] }));
|
|
12199
|
+
}
|
|
12200
|
+
);
|
|
12201
|
+
NativeSelectPicker.displayName = "NativeSelectPicker";
|
|
11946
12202
|
var parseTokenValue48 = (value) => parseFloat(value);
|
|
11947
|
-
var StyledLabelRow2 =
|
|
12203
|
+
var StyledLabelRow2 = styled51(View)(({ labelRowGap }) => ({
|
|
11948
12204
|
flexDirection: "row",
|
|
11949
12205
|
alignItems: "center",
|
|
11950
12206
|
gap: labelRowGap
|
|
11951
12207
|
}));
|
|
11952
|
-
var StyledLabelSlot =
|
|
12208
|
+
var StyledLabelSlot = styled51(View)(({ labelSlotGap }) => ({
|
|
11953
12209
|
flexDirection: "row",
|
|
11954
12210
|
alignItems: "center",
|
|
11955
12211
|
gap: labelSlotGap,
|
|
@@ -11988,7 +12244,7 @@ var Slider = React60.forwardRef(
|
|
|
11988
12244
|
]);
|
|
11989
12245
|
const theme2 = useTheme();
|
|
11990
12246
|
const { slider, buttons } = theme2.tokens.components;
|
|
11991
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
12247
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
11992
12248
|
const isControlled = controlledValue !== void 0;
|
|
11993
12249
|
const [internalValue, setInternalValue] = React60.useState(defaultValue);
|
|
11994
12250
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
@@ -12089,7 +12345,7 @@ var Slider = React60.forwardRef(
|
|
|
12089
12345
|
const hasLeading = leadingIcon !== void 0 || leadingLabel !== void 0;
|
|
12090
12346
|
const hasTrailing = trailingIcon !== void 0 || trailingLabel !== void 0;
|
|
12091
12347
|
const labelGap = parseTokenValue48(slider.sliderField.spacing.label.gap);
|
|
12092
|
-
const roundBorderRadius = parseTokenValue48(
|
|
12348
|
+
const roundBorderRadius = parseTokenValue48(dimensions3.borderRadius.round);
|
|
12093
12349
|
const thumbIconColor = buttons.iconButton.filledButton.colour.icon.primary.default;
|
|
12094
12350
|
const thumbContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12095
12351
|
/* @__PURE__ */ jsx(
|
|
@@ -12160,7 +12416,7 @@ var Slider = React60.forwardRef(
|
|
|
12160
12416
|
height: trackHeight,
|
|
12161
12417
|
borderRadius: roundBorderRadius,
|
|
12162
12418
|
backgroundColor: slider.colour.track.background.default,
|
|
12163
|
-
borderWidth: parseTokenValue48(
|
|
12419
|
+
borderWidth: parseTokenValue48(dimensions3.borderWidth.sm),
|
|
12164
12420
|
borderColor: slider.colour.track.border.default
|
|
12165
12421
|
};
|
|
12166
12422
|
const indicatorBaseStyle = {
|
|
@@ -12255,9 +12511,9 @@ var Slider = React60.forwardRef(
|
|
|
12255
12511
|
onLayout: handleNativeLayout,
|
|
12256
12512
|
children: [
|
|
12257
12513
|
/* @__PURE__ */ jsx(View, { style: trackBackgroundStyle }),
|
|
12258
|
-
/* @__PURE__ */ jsx(
|
|
12514
|
+
/* @__PURE__ */ jsx(Animated10.View, { style: [indicatorBaseStyle, indicatorAnimStyle] }),
|
|
12259
12515
|
/* @__PURE__ */ jsx(
|
|
12260
|
-
|
|
12516
|
+
Animated10.View,
|
|
12261
12517
|
{
|
|
12262
12518
|
style: [
|
|
12263
12519
|
__spreadProps(__spreadValues({}, thumbStyle), { position: "absolute", left: 0 }),
|
|
@@ -12285,7 +12541,7 @@ var ICON_MAP = {
|
|
|
12285
12541
|
info: Info_default
|
|
12286
12542
|
};
|
|
12287
12543
|
var parseTokenValue49 = (value) => parseFloat(value);
|
|
12288
|
-
var StyledInlineRoot =
|
|
12544
|
+
var StyledInlineRoot = styled51(View)(
|
|
12289
12545
|
({ rootPaddingH, rootPaddingV, rootGap, rootBorderRadius, rootBgColor }) => ({
|
|
12290
12546
|
flexDirection: "row",
|
|
12291
12547
|
alignItems: "flex-start",
|
|
@@ -12296,7 +12552,7 @@ var StyledInlineRoot = styled60(View)(
|
|
|
12296
12552
|
backgroundColor: rootBgColor
|
|
12297
12553
|
})
|
|
12298
12554
|
);
|
|
12299
|
-
var StyledToastRoot =
|
|
12555
|
+
var StyledToastRoot = styled51(View)(
|
|
12300
12556
|
({
|
|
12301
12557
|
rootPaddingH,
|
|
12302
12558
|
rootPaddingV,
|
|
@@ -12323,7 +12579,7 @@ var StyledToastRoot = styled60(View)(
|
|
|
12323
12579
|
elevation: 4
|
|
12324
12580
|
})
|
|
12325
12581
|
);
|
|
12326
|
-
var StyledSystemRoot =
|
|
12582
|
+
var StyledSystemRoot = styled51(View)(
|
|
12327
12583
|
({
|
|
12328
12584
|
rootPaddingH,
|
|
12329
12585
|
rootPaddingTop,
|
|
@@ -12343,31 +12599,31 @@ var StyledSystemRoot = styled60(View)(
|
|
|
12343
12599
|
width: "100%"
|
|
12344
12600
|
})
|
|
12345
12601
|
);
|
|
12346
|
-
var StyledContents =
|
|
12602
|
+
var StyledContents = styled51(View)(({ contentsGap }) => ({
|
|
12347
12603
|
flexDirection: "column",
|
|
12348
12604
|
alignItems: "flex-start",
|
|
12349
12605
|
flex: 1,
|
|
12350
12606
|
minWidth: 0,
|
|
12351
12607
|
gap: contentsGap
|
|
12352
12608
|
}));
|
|
12353
|
-
var StyledCopyRow =
|
|
12609
|
+
var StyledCopyRow = styled51(View)(({ copyGap }) => ({
|
|
12354
12610
|
flexDirection: "row",
|
|
12355
12611
|
alignItems: "flex-start",
|
|
12356
12612
|
gap: copyGap,
|
|
12357
12613
|
width: "100%"
|
|
12358
12614
|
}));
|
|
12359
|
-
var StyledInlineCopy =
|
|
12615
|
+
var StyledInlineCopy = styled51(View)(({ copyGap }) => ({
|
|
12360
12616
|
flexDirection: "column",
|
|
12361
12617
|
alignItems: "flex-start",
|
|
12362
12618
|
gap: copyGap,
|
|
12363
12619
|
flex: 1,
|
|
12364
12620
|
minWidth: 0
|
|
12365
12621
|
}));
|
|
12366
|
-
var StyledLinkWrapper =
|
|
12622
|
+
var StyledLinkWrapper = styled51(View)(({ linkPaddingLeft }) => ({
|
|
12367
12623
|
paddingLeft: linkPaddingLeft,
|
|
12368
12624
|
width: "100%"
|
|
12369
12625
|
}));
|
|
12370
|
-
var StyledCloseButton =
|
|
12626
|
+
var StyledCloseButton = styled51(Pressable)({
|
|
12371
12627
|
alignItems: "center",
|
|
12372
12628
|
justifyContent: "center",
|
|
12373
12629
|
flexShrink: 0,
|
|
@@ -12613,10 +12869,10 @@ var NIB_OFFSET = {
|
|
|
12613
12869
|
middle: 146,
|
|
12614
12870
|
right: 268
|
|
12615
12871
|
};
|
|
12616
|
-
var Container2 =
|
|
12872
|
+
var Container2 = styled51(View)(({ $width }) => ({
|
|
12617
12873
|
width: $width
|
|
12618
12874
|
}));
|
|
12619
|
-
var StyledBody =
|
|
12875
|
+
var StyledBody = styled51(View)(
|
|
12620
12876
|
({
|
|
12621
12877
|
bgColor,
|
|
12622
12878
|
borderColor,
|
|
@@ -12846,7 +13102,7 @@ var Tooltip = React60.forwardRef(
|
|
|
12846
13102
|
);
|
|
12847
13103
|
Tooltip.displayName = "Tooltip";
|
|
12848
13104
|
var parseTokenValue51 = (value) => parseFloat(value);
|
|
12849
|
-
var StyledInsightRoot =
|
|
13105
|
+
var StyledInsightRoot = styled51(View)(
|
|
12850
13106
|
({
|
|
12851
13107
|
rootGap,
|
|
12852
13108
|
rootPaddingH,
|
|
@@ -12873,7 +13129,7 @@ var StyledInsightRoot = styled60(View)(
|
|
|
12873
13129
|
minWidth: rootMinWidth
|
|
12874
13130
|
})
|
|
12875
13131
|
);
|
|
12876
|
-
var StyledInsightContent =
|
|
13132
|
+
var StyledInsightContent = styled51(View)(
|
|
12877
13133
|
({ contentGap }) => ({
|
|
12878
13134
|
flex: 1,
|
|
12879
13135
|
flexDirection: "column",
|
|
@@ -12953,7 +13209,7 @@ var MessageCardInsight = React60.forwardRef(
|
|
|
12953
13209
|
}
|
|
12954
13210
|
);
|
|
12955
13211
|
MessageCardInsight.displayName = "MessageCard.Insight";
|
|
12956
|
-
var StyledBannerRoot =
|
|
13212
|
+
var StyledBannerRoot = styled51(View)(({ rootGap, rootPadding, rootBorderRadius, rootBgColor }) => ({
|
|
12957
13213
|
flexDirection: "row",
|
|
12958
13214
|
alignItems: "center",
|
|
12959
13215
|
gap: rootGap,
|
|
@@ -12961,7 +13217,7 @@ var StyledBannerRoot = styled60(View)(({ rootGap, rootPadding, rootBorderRadius,
|
|
|
12961
13217
|
borderRadius: rootBorderRadius,
|
|
12962
13218
|
backgroundColor: rootBgColor
|
|
12963
13219
|
}));
|
|
12964
|
-
var StyledBannerImage =
|
|
13220
|
+
var StyledBannerImage = styled51(View)(({ imageRadius, imageBgColor }) => ({
|
|
12965
13221
|
flexShrink: 0,
|
|
12966
13222
|
width: 108,
|
|
12967
13223
|
height: 108,
|
|
@@ -12969,14 +13225,14 @@ var StyledBannerImage = styled60(View)(({ imageRadius, imageBgColor }) => ({
|
|
|
12969
13225
|
overflow: "hidden",
|
|
12970
13226
|
backgroundColor: imageBgColor
|
|
12971
13227
|
}));
|
|
12972
|
-
var StyledBannerIllustrationSlot =
|
|
13228
|
+
var StyledBannerIllustrationSlot = styled51(View)({
|
|
12973
13229
|
flexShrink: 0,
|
|
12974
13230
|
width: 108,
|
|
12975
13231
|
height: 108,
|
|
12976
13232
|
alignItems: "center",
|
|
12977
13233
|
justifyContent: "center"
|
|
12978
13234
|
});
|
|
12979
|
-
var StyledBannerContents =
|
|
13235
|
+
var StyledBannerContents = styled51(View)(
|
|
12980
13236
|
({ contentsGap }) => ({
|
|
12981
13237
|
flex: 1,
|
|
12982
13238
|
flexDirection: "column",
|
|
@@ -12986,7 +13242,7 @@ var StyledBannerContents = styled60(View)(
|
|
|
12986
13242
|
minWidth: 0
|
|
12987
13243
|
})
|
|
12988
13244
|
);
|
|
12989
|
-
var StyledBannerCopy =
|
|
13245
|
+
var StyledBannerCopy = styled51(View)(({ copyGap }) => ({
|
|
12990
13246
|
flexDirection: "column",
|
|
12991
13247
|
alignItems: "flex-start",
|
|
12992
13248
|
gap: copyGap,
|
|
@@ -13012,15 +13268,15 @@ var MessageCardBanner = React60.forwardRef(
|
|
|
13012
13268
|
"onLinkPress"
|
|
13013
13269
|
]);
|
|
13014
13270
|
const theme2 = useTheme();
|
|
13015
|
-
const { colour, dimensions } = theme2.tokens.semantics;
|
|
13271
|
+
const { colour, dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
13016
13272
|
const bgColor = colourScheme === "secondary" ? colour.background.container.secondary : colour.background.container.alt;
|
|
13017
13273
|
return /* @__PURE__ */ jsxs(
|
|
13018
13274
|
StyledBannerRoot,
|
|
13019
13275
|
__spreadProps(__spreadValues({
|
|
13020
13276
|
ref,
|
|
13021
|
-
rootGap: parseTokenValue51(
|
|
13022
|
-
rootPadding: parseTokenValue51(
|
|
13023
|
-
rootBorderRadius: parseTokenValue51(
|
|
13277
|
+
rootGap: parseTokenValue51(dimensions3.spacing.md),
|
|
13278
|
+
rootPadding: parseTokenValue51(dimensions3.spacing.md),
|
|
13279
|
+
rootBorderRadius: parseTokenValue51(dimensions3.borderRadius.md),
|
|
13024
13280
|
rootBgColor: bgColor,
|
|
13025
13281
|
accessible: true,
|
|
13026
13282
|
accessibilityRole: "summary"
|
|
@@ -13032,7 +13288,7 @@ var MessageCardBanner = React60.forwardRef(
|
|
|
13032
13288
|
}) }) : (media == null ? void 0 : media.type) === "image" ? /* @__PURE__ */ jsx(
|
|
13033
13289
|
StyledBannerImage,
|
|
13034
13290
|
{
|
|
13035
|
-
imageRadius: parseTokenValue51(
|
|
13291
|
+
imageRadius: parseTokenValue51(dimensions3.borderRadius.sm),
|
|
13036
13292
|
imageBgColor: colour.background.surface.secondary,
|
|
13037
13293
|
children: /* @__PURE__ */ jsx(
|
|
13038
13294
|
Image,
|
|
@@ -13048,12 +13304,12 @@ var MessageCardBanner = React60.forwardRef(
|
|
|
13048
13304
|
/* @__PURE__ */ jsxs(
|
|
13049
13305
|
StyledBannerContents,
|
|
13050
13306
|
{
|
|
13051
|
-
contentsGap: parseTokenValue51(
|
|
13307
|
+
contentsGap: parseTokenValue51(dimensions3.spacing.xs),
|
|
13052
13308
|
children: [
|
|
13053
13309
|
/* @__PURE__ */ jsxs(
|
|
13054
13310
|
StyledBannerCopy,
|
|
13055
13311
|
{
|
|
13056
|
-
copyGap: parseTokenValue51(
|
|
13312
|
+
copyGap: parseTokenValue51(dimensions3.spacing["3xs"]),
|
|
13057
13313
|
children: [
|
|
13058
13314
|
title && /* @__PURE__ */ jsx(Typography, { variant: "heading", size: "xs", color: "primary", children: title }),
|
|
13059
13315
|
/* @__PURE__ */ jsx(Typography, { variant: "body", size: "md", color: "secondary", children })
|
|
@@ -13125,22 +13381,22 @@ function defaultGetDateState(date) {
|
|
|
13125
13381
|
function getDefaultMonthLabel(year, month, locale) {
|
|
13126
13382
|
return format(new Date(year, month, 1), "MMMM yyyy", { locale });
|
|
13127
13383
|
}
|
|
13128
|
-
var StyledContainer3 =
|
|
13384
|
+
var StyledContainer3 = styled51(View)(({ containerGap, containerMaxWidth }) => ({
|
|
13129
13385
|
flexDirection: "column",
|
|
13130
13386
|
gap: containerGap,
|
|
13131
13387
|
maxWidth: containerMaxWidth
|
|
13132
13388
|
}));
|
|
13133
|
-
var StyledMonthHeader =
|
|
13389
|
+
var StyledMonthHeader = styled51(View)(
|
|
13134
13390
|
({ headerGap }) => ({
|
|
13135
13391
|
flexDirection: "row",
|
|
13136
13392
|
alignItems: "center",
|
|
13137
13393
|
gap: headerGap
|
|
13138
13394
|
})
|
|
13139
13395
|
);
|
|
13140
|
-
var StyledWeekRow =
|
|
13396
|
+
var StyledWeekRow = styled51(View)({
|
|
13141
13397
|
flexDirection: "row"
|
|
13142
13398
|
});
|
|
13143
|
-
var StyledWeekCell =
|
|
13399
|
+
var StyledWeekCell = styled51(View)(
|
|
13144
13400
|
({ cellHeight }) => ({
|
|
13145
13401
|
flex: 1,
|
|
13146
13402
|
alignItems: "center",
|
|
@@ -13148,14 +13404,14 @@ var StyledWeekCell = styled60(View)(
|
|
|
13148
13404
|
height: cellHeight
|
|
13149
13405
|
})
|
|
13150
13406
|
);
|
|
13151
|
-
var StyledDatesGrid =
|
|
13407
|
+
var StyledDatesGrid = styled51(View)(({ rowGap }) => ({
|
|
13152
13408
|
flexDirection: "column",
|
|
13153
13409
|
gap: rowGap
|
|
13154
13410
|
}));
|
|
13155
|
-
var StyledDateRow =
|
|
13411
|
+
var StyledDateRow = styled51(View)({
|
|
13156
13412
|
flexDirection: "row"
|
|
13157
13413
|
});
|
|
13158
|
-
var StyledDateCell =
|
|
13414
|
+
var StyledDateCell = styled51(View)(
|
|
13159
13415
|
({ cellHeight }) => ({
|
|
13160
13416
|
flex: 1,
|
|
13161
13417
|
height: cellHeight,
|
|
@@ -13163,7 +13419,7 @@ var StyledDateCell = styled60(View)(
|
|
|
13163
13419
|
justifyContent: "center"
|
|
13164
13420
|
})
|
|
13165
13421
|
);
|
|
13166
|
-
var StyledIndicator3 =
|
|
13422
|
+
var StyledIndicator3 = styled51(View)(
|
|
13167
13423
|
({
|
|
13168
13424
|
indicatorSize,
|
|
13169
13425
|
indicatorBorderRadius,
|
|
@@ -13409,7 +13665,7 @@ var DatePicker = React60.forwardRef(
|
|
|
13409
13665
|
) })
|
|
13410
13666
|
] }),
|
|
13411
13667
|
/* @__PURE__ */ jsx(
|
|
13412
|
-
|
|
13668
|
+
Animated10.View,
|
|
13413
13669
|
{
|
|
13414
13670
|
entering: MONTH_SLIDE_ENTERING[slideDir],
|
|
13415
13671
|
exiting: MONTH_SLIDE_EXITING[slideDir],
|
|
@@ -13528,25 +13784,25 @@ var buildPointerPath = (r) => {
|
|
|
13528
13784
|
].join(" ");
|
|
13529
13785
|
};
|
|
13530
13786
|
var parseTokenValue53 = (value) => parseFloat(value);
|
|
13531
|
-
var StyledRoot15 =
|
|
13787
|
+
var StyledRoot15 = styled51(View)(({ rootGap }) => ({
|
|
13532
13788
|
flexDirection: "column",
|
|
13533
13789
|
gap: rootGap,
|
|
13534
13790
|
width: "100%"
|
|
13535
13791
|
}));
|
|
13536
|
-
var StyledRow2 =
|
|
13792
|
+
var StyledRow2 = styled51(View)(({ rowGap }) => ({
|
|
13537
13793
|
flexDirection: "row",
|
|
13538
13794
|
alignItems: "flex-start",
|
|
13539
13795
|
gap: rowGap,
|
|
13540
13796
|
width: "100%"
|
|
13541
13797
|
}));
|
|
13542
|
-
var StyledItemStack =
|
|
13798
|
+
var StyledItemStack = styled51(View)(({ stackGap }) => ({
|
|
13543
13799
|
flexDirection: "column",
|
|
13544
13800
|
alignItems: "center",
|
|
13545
13801
|
gap: stackGap,
|
|
13546
13802
|
flex: 1,
|
|
13547
13803
|
minWidth: 0
|
|
13548
13804
|
}));
|
|
13549
|
-
var StyledPictureButton =
|
|
13805
|
+
var StyledPictureButton = styled51(Pressable)(
|
|
13550
13806
|
({
|
|
13551
13807
|
buttonBorderRadius,
|
|
13552
13808
|
buttonBorderWidth,
|
|
@@ -13573,7 +13829,7 @@ var StyledPictureButton = styled60(Pressable)(
|
|
|
13573
13829
|
overflow: "hidden"
|
|
13574
13830
|
})
|
|
13575
13831
|
);
|
|
13576
|
-
var StyledPointer =
|
|
13832
|
+
var StyledPointer = styled51(Svg)(
|
|
13577
13833
|
({ pointerVisible }) => ({
|
|
13578
13834
|
width: POINTER_WIDTH,
|
|
13579
13835
|
height: POINTER_HEIGHT,
|
|
@@ -13726,13 +13982,13 @@ var DEFAULT_UNIT_LABELS = {
|
|
|
13726
13982
|
var resolveLabel = (label, value) => typeof label === "string" ? label : value === 1 ? label.singular : label.plural;
|
|
13727
13983
|
var parseTokenValue54 = (value) => parseFloat(value);
|
|
13728
13984
|
var pad = (value) => String(Math.max(0, Math.floor(value))).padStart(2, "0");
|
|
13729
|
-
var StackedRoot =
|
|
13985
|
+
var StackedRoot = styled51(View)(({ rootGap }) => ({
|
|
13730
13986
|
flexDirection: "row",
|
|
13731
13987
|
alignItems: "center",
|
|
13732
13988
|
alignSelf: "flex-start",
|
|
13733
13989
|
gap: rootGap
|
|
13734
13990
|
}));
|
|
13735
|
-
var StackedItem =
|
|
13991
|
+
var StackedItem = styled51(View)(
|
|
13736
13992
|
({
|
|
13737
13993
|
itemGap,
|
|
13738
13994
|
itemVerticalPadding,
|
|
@@ -13750,7 +14006,7 @@ var StackedItem = styled60(View)(
|
|
|
13750
14006
|
borderRadius: itemBorderRadius
|
|
13751
14007
|
})
|
|
13752
14008
|
);
|
|
13753
|
-
var StackedCountBox =
|
|
14009
|
+
var StackedCountBox = styled51(View)(({ countPaddingTop, countBgColor, countBorderRadius }) => ({
|
|
13754
14010
|
alignItems: "center",
|
|
13755
14011
|
justifyContent: "center",
|
|
13756
14012
|
// TODO: Add token — fixed count box dimensions are not yet tokenised.
|
|
@@ -13760,7 +14016,7 @@ var StackedCountBox = styled60(View)(({ countPaddingTop, countBgColor, countBord
|
|
|
13760
14016
|
backgroundColor: countBgColor,
|
|
13761
14017
|
borderRadius: countBorderRadius
|
|
13762
14018
|
}));
|
|
13763
|
-
var InlineRoot =
|
|
14019
|
+
var InlineRoot = styled51(View)(
|
|
13764
14020
|
({
|
|
13765
14021
|
rootGap,
|
|
13766
14022
|
rootVerticalPadding,
|
|
@@ -13780,13 +14036,13 @@ var InlineRoot = styled60(View)(
|
|
|
13780
14036
|
overflow: "hidden"
|
|
13781
14037
|
})
|
|
13782
14038
|
);
|
|
13783
|
-
var InlineGroup =
|
|
14039
|
+
var InlineGroup = styled51(View)(({ groupGap }) => ({
|
|
13784
14040
|
flexDirection: "row",
|
|
13785
14041
|
alignItems: "center",
|
|
13786
14042
|
justifyContent: "flex-end",
|
|
13787
14043
|
gap: groupGap
|
|
13788
14044
|
}));
|
|
13789
|
-
var InlineCount =
|
|
14045
|
+
var InlineCount = styled51(View)(({ countGap }) => ({
|
|
13790
14046
|
flexDirection: "row",
|
|
13791
14047
|
alignItems: "center",
|
|
13792
14048
|
gap: countGap
|
|
@@ -13971,7 +14227,7 @@ var parseTokenValue55 = (value) => {
|
|
|
13971
14227
|
if (typeof value === "number") return value;
|
|
13972
14228
|
return parseFloat(value);
|
|
13973
14229
|
};
|
|
13974
|
-
var BadgeContainer =
|
|
14230
|
+
var BadgeContainer = styled51(View)(({ theme: theme2 }) => {
|
|
13975
14231
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13976
14232
|
const { sizing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
13977
14233
|
const { colour } = theme2.tokens.semantics;
|
|
@@ -13988,7 +14244,7 @@ var BadgeContainer = styled60(View)(({ theme: theme2 }) => {
|
|
|
13988
14244
|
borderBottomRightRadius: parseTokenValue55(borderRadius.xs)
|
|
13989
14245
|
};
|
|
13990
14246
|
});
|
|
13991
|
-
var BadgeIcon =
|
|
14247
|
+
var BadgeIcon = styled51(View)(({ theme: theme2 }) => {
|
|
13992
14248
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13993
14249
|
const sizing = theme2.tokens.semantics.dimensions.sizing;
|
|
13994
14250
|
return {
|
|
@@ -14011,7 +14267,7 @@ var Badge2 = React60.forwardRef(
|
|
|
14011
14267
|
}
|
|
14012
14268
|
);
|
|
14013
14269
|
Badge2.displayName = "ProductListingCard.Badge";
|
|
14014
|
-
var StyledGrid =
|
|
14270
|
+
var StyledGrid = styled51(View)(({ theme: theme2 }) => {
|
|
14015
14271
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14016
14272
|
return {
|
|
14017
14273
|
display: "grid",
|
|
@@ -14050,7 +14306,7 @@ var parseTokenValue56 = (value) => {
|
|
|
14050
14306
|
if (typeof value === "number") return value;
|
|
14051
14307
|
return parseFloat(value);
|
|
14052
14308
|
};
|
|
14053
|
-
var StyledRoot16 =
|
|
14309
|
+
var StyledRoot16 = styled51(Pressable)(({ theme: theme2 }) => {
|
|
14054
14310
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14055
14311
|
return {
|
|
14056
14312
|
display: "flex",
|
|
@@ -14060,18 +14316,18 @@ var StyledRoot16 = styled60(Pressable)(({ theme: theme2 }) => {
|
|
|
14060
14316
|
width: "100%"
|
|
14061
14317
|
};
|
|
14062
14318
|
});
|
|
14063
|
-
var ImageContainer =
|
|
14319
|
+
var ImageContainer = styled51(View)({
|
|
14064
14320
|
position: "relative",
|
|
14065
14321
|
width: "100%",
|
|
14066
14322
|
aspectRatio: 1,
|
|
14067
14323
|
overflow: "hidden"
|
|
14068
14324
|
});
|
|
14069
|
-
var StyledImage2 =
|
|
14325
|
+
var StyledImage2 = styled51(Image)({
|
|
14070
14326
|
width: "100%",
|
|
14071
14327
|
height: "100%",
|
|
14072
14328
|
resizeMode: "cover"
|
|
14073
14329
|
});
|
|
14074
|
-
var BadgeContainer2 =
|
|
14330
|
+
var BadgeContainer2 = styled51(View)(({ theme: theme2 }) => {
|
|
14075
14331
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14076
14332
|
const { sizing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
14077
14333
|
const { colour } = theme2.tokens.semantics;
|
|
@@ -14091,7 +14347,7 @@ var BadgeContainer2 = styled60(View)(({ theme: theme2 }) => {
|
|
|
14091
14347
|
borderBottomRightRadius: parseTokenValue56(borderRadius.sm)
|
|
14092
14348
|
};
|
|
14093
14349
|
});
|
|
14094
|
-
var ContentContainer =
|
|
14350
|
+
var ContentContainer = styled51(View)(({ theme: theme2 }) => {
|
|
14095
14351
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14096
14352
|
return {
|
|
14097
14353
|
display: "flex",
|
|
@@ -14101,19 +14357,19 @@ var ContentContainer = styled60(View)(({ theme: theme2 }) => {
|
|
|
14101
14357
|
width: "100%"
|
|
14102
14358
|
};
|
|
14103
14359
|
});
|
|
14104
|
-
var DetailsContainer =
|
|
14360
|
+
var DetailsContainer = styled51(View)({
|
|
14105
14361
|
display: "flex",
|
|
14106
14362
|
flexDirection: "column",
|
|
14107
14363
|
alignItems: "flex-start",
|
|
14108
14364
|
width: "100%"
|
|
14109
14365
|
});
|
|
14110
|
-
var CategoryWrapper =
|
|
14366
|
+
var CategoryWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
14111
14367
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14112
14368
|
return {
|
|
14113
14369
|
marginBottom: parseTokenValue56(spacing["3xs"])
|
|
14114
14370
|
};
|
|
14115
14371
|
});
|
|
14116
|
-
var TitleContainer =
|
|
14372
|
+
var TitleContainer = styled51(View)(({ theme: theme2 }) => {
|
|
14117
14373
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14118
14374
|
return {
|
|
14119
14375
|
display: "flex",
|
|
@@ -14122,13 +14378,13 @@ var TitleContainer = styled60(View)(({ theme: theme2 }) => {
|
|
|
14122
14378
|
marginBottom: parseTokenValue56(spacing.xs)
|
|
14123
14379
|
};
|
|
14124
14380
|
});
|
|
14125
|
-
var SizeWrapper =
|
|
14381
|
+
var SizeWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
14126
14382
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14127
14383
|
return {
|
|
14128
14384
|
marginBottom: parseTokenValue56(spacing.md)
|
|
14129
14385
|
};
|
|
14130
14386
|
});
|
|
14131
|
-
var PricingContainer =
|
|
14387
|
+
var PricingContainer = styled51(View)(({ theme: theme2 }) => {
|
|
14132
14388
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14133
14389
|
return {
|
|
14134
14390
|
display: "flex",
|
|
@@ -14211,7 +14467,7 @@ var ProductListingCardWithBadgeAndGrid = Object.assign(_ProductListingCard, {
|
|
|
14211
14467
|
Badge: Badge2,
|
|
14212
14468
|
Grid
|
|
14213
14469
|
});
|
|
14214
|
-
var StyledCardContainer =
|
|
14470
|
+
var StyledCardContainer = styled51(View)(({
|
|
14215
14471
|
theme: theme2,
|
|
14216
14472
|
borderless
|
|
14217
14473
|
}) => {
|
|
@@ -14239,7 +14495,7 @@ var StyledCardContainer = styled60(View)(({
|
|
|
14239
14495
|
zIndex: 1
|
|
14240
14496
|
});
|
|
14241
14497
|
});
|
|
14242
|
-
var StyledImage3 =
|
|
14498
|
+
var StyledImage3 = styled51(View)(
|
|
14243
14499
|
({
|
|
14244
14500
|
theme: theme2,
|
|
14245
14501
|
imageBackgroundColor,
|
|
@@ -14255,7 +14511,7 @@ var StyledImage3 = styled60(View)(
|
|
|
14255
14511
|
position: "relative"
|
|
14256
14512
|
})
|
|
14257
14513
|
);
|
|
14258
|
-
var StyledQuantityBadge =
|
|
14514
|
+
var StyledQuantityBadge = styled51(View)(({ theme: theme2 }) => {
|
|
14259
14515
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14260
14516
|
const borderRadius = theme2.tokens.semantics.dimensions.borderRadius;
|
|
14261
14517
|
const { colour } = theme2.tokens.semantics;
|
|
@@ -14273,7 +14529,7 @@ var StyledQuantityBadge = styled60(View)(({ theme: theme2 }) => {
|
|
|
14273
14529
|
zIndex: 2
|
|
14274
14530
|
};
|
|
14275
14531
|
});
|
|
14276
|
-
var StyledContentArea =
|
|
14532
|
+
var StyledContentArea = styled51(View)(({
|
|
14277
14533
|
theme: theme2,
|
|
14278
14534
|
borderless
|
|
14279
14535
|
}) => {
|
|
@@ -14287,23 +14543,23 @@ var StyledContentArea = styled60(View)(({
|
|
|
14287
14543
|
justifyContent: "space-between"
|
|
14288
14544
|
};
|
|
14289
14545
|
});
|
|
14290
|
-
var StyledTextContainer =
|
|
14546
|
+
var StyledTextContainer = styled51(View)(() => ({
|
|
14291
14547
|
gap: 2
|
|
14292
14548
|
}));
|
|
14293
|
-
var StyledBannerWrapper =
|
|
14549
|
+
var StyledBannerWrapper = styled51(View)(() => ({
|
|
14294
14550
|
width: "100%",
|
|
14295
14551
|
marginTop: -48,
|
|
14296
14552
|
paddingTop: 24,
|
|
14297
14553
|
paddingBottom: 16
|
|
14298
14554
|
}));
|
|
14299
|
-
var StyledRootWrapper =
|
|
14555
|
+
var StyledRootWrapper = styled51(View)(() => {
|
|
14300
14556
|
return {
|
|
14301
14557
|
flexDirection: "column",
|
|
14302
14558
|
width: "100%",
|
|
14303
14559
|
height: "100%"
|
|
14304
14560
|
};
|
|
14305
14561
|
});
|
|
14306
|
-
var StyledNotification =
|
|
14562
|
+
var StyledNotification = styled51(Notification)(({ theme: theme2 }) => {
|
|
14307
14563
|
const { spacing } = theme2.tokens.semantics.dimensions;
|
|
14308
14564
|
return {
|
|
14309
14565
|
top: parseTokenValue8(spacing.md),
|
|
@@ -14442,12 +14698,12 @@ var useTabNavigationContext = () => {
|
|
|
14442
14698
|
return context;
|
|
14443
14699
|
};
|
|
14444
14700
|
var parseTokenValue57 = (value) => parseFloat(value);
|
|
14445
|
-
var StyledFixedList =
|
|
14701
|
+
var StyledFixedList = styled51(View)({
|
|
14446
14702
|
flexDirection: "row",
|
|
14447
14703
|
alignItems: "stretch",
|
|
14448
14704
|
width: "100%"
|
|
14449
14705
|
});
|
|
14450
|
-
var StyledTab =
|
|
14706
|
+
var StyledTab = styled51(Pressable)(
|
|
14451
14707
|
({
|
|
14452
14708
|
tabHeight,
|
|
14453
14709
|
tabMinWidth,
|
|
@@ -14591,6 +14847,6 @@ var TabNavigation = Object.assign(TabNavigationRoot, {
|
|
|
14591
14847
|
Panel: TabNavigationPanel
|
|
14592
14848
|
});
|
|
14593
14849
|
|
|
14594
|
-
export { Accordion, Animated5 as Animated, Avatar, BRAND_FONTS, Badge, Button, ButtonDock, ButtonGroup, CarouselControls, Checkbox, CheckboxGroup, CopyField, CopyFieldInput, Countdown, DatePicker, Drawer, FilterTab, Hint, Icon, IconButton, Illustration, Input, InputDescription, InputError, InputField, InputLabel, Link, Logo, MessageCard, MessageCardBanner, MessageCardInsight, Notification, NumberField, NumberInput, NumberInputField, PasswordField, PasswordFieldInput, PasswordFieldRequirements, PawprintProvider, PictureSelector, ProductDisplayCard, ProductListingCardWithBadgeAndGrid as ProductListingCard, Progress, Radio, RadioGroup, SearchField, SearchFieldInput, SegmentedControl, SelectField, SelectFieldContent, SelectFieldItem, SelectFieldTrigger, SelectFieldValue, Slider, Spinner, Switch, TabNavigation, Tag, TextArea, TextAreaField, TextAreaLabel, ThemeProvider, Tooltip, Typography, createPawprintTheme, fadeAnimation, fadeDownAnimation, fadeUpAnimation, registerLogo, resolveFont, resolveLogo, scaleAnimation, slideInAnimation, slideOutAnimation, theme, useCopyField, usePasswordField, usePawprint, useSearchField, useSelectField };
|
|
14850
|
+
export { Accordion, Animated5 as Animated, Avatar, BRAND_FONTS, Badge, Button, ButtonDock, ButtonGroup, CarouselControls, Checkbox, CheckboxGroup, CopyField, CopyFieldInput, Countdown, DatePicker, Drawer, FilterTab, Hint, Icon, IconButton, Illustration, Input, InputDescription, InputError, InputField, InputLabel, Link, Logo, MessageCard, MessageCardBanner, MessageCardInsight, NativeSelectPicker, Notification, NumberField, NumberInput, NumberInputField, PasswordField, PasswordFieldInput, PasswordFieldRequirements, PawprintProvider, PictureSelector, ProductDisplayCard, ProductListingCardWithBadgeAndGrid as ProductListingCard, Progress, Radio, RadioGroup, SearchField, SearchFieldInput, SegmentedControl, SelectField, SelectFieldContent, SelectFieldItem, SelectFieldTrigger, SelectFieldValue, Slider, Spinner, Switch, TabNavigation, Tag, TextArea, TextAreaField, TextAreaLabel, ThemeProvider, Tooltip, Typography, createPawprintTheme, fadeAnimation, fadeDownAnimation, fadeUpAnimation, registerLogo, resolveFont, resolveLogo, scaleAnimation, slideInAnimation, slideOutAnimation, theme, useCopyField, usePasswordField, usePawprint, useSearchField, useSelectField };
|
|
14595
14851
|
//# sourceMappingURL=index.js.map
|
|
14596
14852
|
//# sourceMappingURL=index.js.map
|