@butternutbox/pawprint-native 0.5.1 → 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 +17 -0
- package/dist/index.cjs +606 -299
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -5
- package/dist/index.d.ts +61 -5
- package/dist/index.js +564 -258
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/ButtonDock/ButtonDock.tsx +10 -4
- 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/Notification/Notification.tsx +36 -10
- package/src/components/molecules/Radio/Radio.stories.tsx +46 -0
- package/src/components/molecules/Radio/Radio.test.tsx +18 -0
- package/src/components/molecules/Radio/Radio.tsx +19 -1
- 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,12 +9452,13 @@ 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,
|
|
9459
9459
|
dockBorderTopColor,
|
|
9460
|
-
dockPaddingVertical
|
|
9460
|
+
dockPaddingVertical,
|
|
9461
|
+
dockPaddingHorizontal
|
|
9461
9462
|
}) => ({
|
|
9462
9463
|
alignItems: "center",
|
|
9463
9464
|
justifyContent: "center",
|
|
@@ -9465,10 +9466,11 @@ var StyledDockRoot = styled60(View)(
|
|
|
9465
9466
|
backgroundColor: dockBgColor,
|
|
9466
9467
|
borderTopWidth: dockBorderTopWidth,
|
|
9467
9468
|
borderTopColor: dockBorderTopColor,
|
|
9468
|
-
paddingVertical: dockPaddingVertical
|
|
9469
|
+
paddingVertical: dockPaddingVertical,
|
|
9470
|
+
paddingHorizontal: dockPaddingHorizontal
|
|
9469
9471
|
})
|
|
9470
9472
|
);
|
|
9471
|
-
var StyledStackedInner =
|
|
9473
|
+
var StyledStackedInner = styled51(View)(
|
|
9472
9474
|
({ innerGap }) => ({
|
|
9473
9475
|
alignItems: "center",
|
|
9474
9476
|
gap: innerGap,
|
|
@@ -9476,7 +9478,7 @@ var StyledStackedInner = styled60(View)(
|
|
|
9476
9478
|
maxWidth: 520
|
|
9477
9479
|
})
|
|
9478
9480
|
);
|
|
9479
|
-
var StyledButtonGroup =
|
|
9481
|
+
var StyledButtonGroup = styled51(View)(({ groupDirection, groupAlign, groupJustify, groupGap }) => __spreadValues({
|
|
9480
9482
|
flexDirection: groupDirection,
|
|
9481
9483
|
alignItems: groupAlign,
|
|
9482
9484
|
justifyContent: groupJustify,
|
|
@@ -9488,7 +9490,7 @@ var ButtonDock = React60.forwardRef(
|
|
|
9488
9490
|
var _b = _a, { variant = "stacked", leadingContent, description, children } = _b, rest = __objRest(_b, ["variant", "leadingContent", "description", "children"]);
|
|
9489
9491
|
const theme2 = useTheme();
|
|
9490
9492
|
const { buttonDock, buttonGroup } = theme2.tokens.components;
|
|
9491
|
-
const { dimensions, typography } = theme2.tokens.semantics;
|
|
9493
|
+
const { dimensions: dimensions3, typography } = theme2.tokens.semantics;
|
|
9492
9494
|
const isStacked = variant === "stacked";
|
|
9493
9495
|
const groupGap = parseTokenValue28(
|
|
9494
9496
|
isStacked ? buttonGroup.spacing.stacked.gap : buttonGroup.spacing.sideBySide.gap
|
|
@@ -9498,10 +9500,13 @@ var ButtonDock = React60.forwardRef(
|
|
|
9498
9500
|
__spreadProps(__spreadValues({
|
|
9499
9501
|
ref,
|
|
9500
9502
|
dockBgColor: buttonDock.colour.background,
|
|
9501
|
-
dockBorderTopWidth: parseTokenValue28(
|
|
9503
|
+
dockBorderTopWidth: parseTokenValue28(dimensions3.borderWidth.sm),
|
|
9502
9504
|
dockBorderTopColor: buttonDock.colour.border,
|
|
9503
9505
|
dockPaddingVertical: parseTokenValue28(
|
|
9504
9506
|
buttonDock.spacing[variant].mobile.topPadding
|
|
9507
|
+
),
|
|
9508
|
+
dockPaddingHorizontal: parseTokenValue28(
|
|
9509
|
+
buttonDock.spacing[variant].mobile.horizontalPadding
|
|
9505
9510
|
)
|
|
9506
9511
|
}, rest), {
|
|
9507
9512
|
children: isStacked ? /* @__PURE__ */ jsxs(
|
|
@@ -9536,7 +9541,7 @@ var ButtonDock = React60.forwardRef(
|
|
|
9536
9541
|
{
|
|
9537
9542
|
groupDirection: "row",
|
|
9538
9543
|
groupAlign: "center",
|
|
9539
|
-
groupJustify: "space-
|
|
9544
|
+
groupJustify: "space-between",
|
|
9540
9545
|
groupGap,
|
|
9541
9546
|
children
|
|
9542
9547
|
}
|
|
@@ -9547,17 +9552,17 @@ var ButtonDock = React60.forwardRef(
|
|
|
9547
9552
|
);
|
|
9548
9553
|
ButtonDock.displayName = "ButtonDock";
|
|
9549
9554
|
var parseTokenValue29 = (value) => parseFloat(value);
|
|
9550
|
-
var StyledGroupRoot =
|
|
9555
|
+
var StyledGroupRoot = styled51(View)(({ rootGap }) => ({
|
|
9551
9556
|
gap: rootGap,
|
|
9552
9557
|
alignItems: "center",
|
|
9553
9558
|
width: "100%"
|
|
9554
9559
|
}));
|
|
9555
|
-
var StyledButtonRow =
|
|
9560
|
+
var StyledButtonRow = styled51(View)(({ rowDirection, rowAlign, rowGap }) => __spreadValues({
|
|
9556
9561
|
flexDirection: rowDirection,
|
|
9557
9562
|
width: "100%",
|
|
9558
9563
|
gap: rowGap
|
|
9559
9564
|
}, rowAlign ? { alignItems: rowAlign } : {}));
|
|
9560
|
-
var StyledChildSlot =
|
|
9565
|
+
var StyledChildSlot = styled51(View)(
|
|
9561
9566
|
({ slotInline }) => __spreadValues({}, slotInline ? { flex: 1, minWidth: 0 } : { width: "100%", alignSelf: "stretch" })
|
|
9562
9567
|
);
|
|
9563
9568
|
var ButtonGroup = React60.forwardRef(
|
|
@@ -9609,7 +9614,7 @@ var ButtonGroup = React60.forwardRef(
|
|
|
9609
9614
|
);
|
|
9610
9615
|
ButtonGroup.displayName = "ButtonGroup";
|
|
9611
9616
|
var parseTokenValue30 = (value) => parseFloat(value);
|
|
9612
|
-
var StyledRootPressable =
|
|
9617
|
+
var StyledRootPressable = styled51(Pressable)(
|
|
9613
9618
|
({
|
|
9614
9619
|
rootFlexAlign,
|
|
9615
9620
|
rootGap,
|
|
@@ -9628,7 +9633,7 @@ var StyledRootPressable = styled60(Pressable)(
|
|
|
9628
9633
|
opacity: rootOpacity
|
|
9629
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 } : {})
|
|
9630
9635
|
);
|
|
9631
|
-
var StyledControl =
|
|
9636
|
+
var StyledControl = styled51(View)(
|
|
9632
9637
|
({
|
|
9633
9638
|
controlSize,
|
|
9634
9639
|
controlBorderWidth,
|
|
@@ -9647,13 +9652,13 @@ var StyledControl = styled60(View)(
|
|
|
9647
9652
|
justifyContent: "center"
|
|
9648
9653
|
})
|
|
9649
9654
|
);
|
|
9650
|
-
var StyledContent2 =
|
|
9655
|
+
var StyledContent2 = styled51(View)(({ contentGap }) => ({
|
|
9651
9656
|
flexDirection: "column",
|
|
9652
9657
|
gap: contentGap,
|
|
9653
9658
|
flex: 1,
|
|
9654
9659
|
minWidth: 0
|
|
9655
9660
|
}));
|
|
9656
|
-
var StyledIllustration =
|
|
9661
|
+
var StyledIllustration = styled51(View)(({ illustrationSize }) => ({
|
|
9657
9662
|
flexShrink: 0,
|
|
9658
9663
|
width: illustrationSize,
|
|
9659
9664
|
height: illustrationSize,
|
|
@@ -9684,7 +9689,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9684
9689
|
]);
|
|
9685
9690
|
const theme2 = useTheme();
|
|
9686
9691
|
const { checkbox } = theme2.tokens.components;
|
|
9687
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
9692
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
9688
9693
|
const isControlled = controlledChecked !== void 0;
|
|
9689
9694
|
const [internalChecked, setInternalChecked] = React60.useState(defaultChecked);
|
|
9690
9695
|
const isChecked = isControlled ? controlledChecked : internalChecked;
|
|
@@ -9730,7 +9735,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9730
9735
|
checkbox.control.border.default
|
|
9731
9736
|
),
|
|
9732
9737
|
controlBorderColor: isChecked ? checkbox.colour.background.selected : checkbox.colour.border.default,
|
|
9733
|
-
controlBorderRadius: parseTokenValue30(
|
|
9738
|
+
controlBorderRadius: parseTokenValue30(dimensions3.borderRadius.xs),
|
|
9734
9739
|
controlBgColor: isChecked ? checkbox.colour.background.selected : "transparent",
|
|
9735
9740
|
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { children: /* @__PURE__ */ jsx(Icon, { icon: Check_default, size: "xs", colour: "alt" }) })
|
|
9736
9741
|
}
|
|
@@ -9777,7 +9782,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9777
9782
|
);
|
|
9778
9783
|
Checkbox.displayName = "Checkbox";
|
|
9779
9784
|
var parseTokenValue31 = (value) => parseFloat(value);
|
|
9780
|
-
var StyledGroup =
|
|
9785
|
+
var StyledGroup = styled51(View)(({ groupDirection, groupGap }) => ({
|
|
9781
9786
|
flexDirection: groupDirection,
|
|
9782
9787
|
gap: groupGap
|
|
9783
9788
|
}));
|
|
@@ -9891,7 +9896,7 @@ var CopyFieldInput = React60.forwardRef(
|
|
|
9891
9896
|
);
|
|
9892
9897
|
CopyFieldInput.displayName = "CopyField.Field";
|
|
9893
9898
|
var parseTokenValue32 = (value) => parseFloat(value);
|
|
9894
|
-
var StyledRoot8 =
|
|
9899
|
+
var StyledRoot8 = styled51(View)(({ theme: theme2 }) => {
|
|
9895
9900
|
const { spacing } = theme2.tokens.components.inputs;
|
|
9896
9901
|
return {
|
|
9897
9902
|
gap: parseTokenValue32(spacing.gap)
|
|
@@ -9972,13 +9977,13 @@ var FilterTabContext = React60.createContext({
|
|
|
9972
9977
|
}
|
|
9973
9978
|
});
|
|
9974
9979
|
var parseTokenValue33 = (value) => parseFloat(value);
|
|
9975
|
-
var StyledRoot9 =
|
|
9980
|
+
var StyledRoot9 = styled51(View)(({ rootGap }) => ({
|
|
9976
9981
|
flexDirection: "row",
|
|
9977
9982
|
alignItems: "center",
|
|
9978
9983
|
gap: rootGap,
|
|
9979
9984
|
flexWrap: "nowrap"
|
|
9980
9985
|
}));
|
|
9981
|
-
var StyledItem2 =
|
|
9986
|
+
var StyledItem2 = styled51(Pressable)(
|
|
9982
9987
|
({
|
|
9983
9988
|
itemHeight,
|
|
9984
9989
|
itemMinWidth,
|
|
@@ -10029,7 +10034,7 @@ var FilterTabItem = React60.forwardRef(
|
|
|
10029
10034
|
const isIconOnly = !!IconOnlyIcon && !label;
|
|
10030
10035
|
const isActive = isSelected && !disabled;
|
|
10031
10036
|
const { tabItem } = theme2.tokens.components.filterTabs;
|
|
10032
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
10037
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
10033
10038
|
const height = parseTokenValue33(
|
|
10034
10039
|
size === "lg" ? tabItem.size.large.height : tabItem.size.small.height
|
|
10035
10040
|
);
|
|
@@ -10054,7 +10059,7 @@ var FilterTabItem = React60.forwardRef(
|
|
|
10054
10059
|
itemBgColor: isActive ? tabItem.colour.background.selected : tabItem.colour.background.default,
|
|
10055
10060
|
itemOpacity: disabled ? parseFloat(tabItem.opacity.disabled.default) : 1,
|
|
10056
10061
|
isIconOnly,
|
|
10057
|
-
style: { gap: parseTokenValue33(
|
|
10062
|
+
style: { gap: parseTokenValue33(dimensions3.spacing["2xs"]) }
|
|
10058
10063
|
}, rest), {
|
|
10059
10064
|
children: [
|
|
10060
10065
|
isIconOnly && IconOnlyIcon && /* @__PURE__ */ jsx(
|
|
@@ -10153,7 +10158,7 @@ var FilterTab = Object.assign(FilterTabRoot, {
|
|
|
10153
10158
|
Item: FilterTabItem
|
|
10154
10159
|
});
|
|
10155
10160
|
var parseTokenValue34 = (value) => parseFloat(value);
|
|
10156
|
-
var StyledFieldWrapper =
|
|
10161
|
+
var StyledFieldWrapper = styled51(View)(
|
|
10157
10162
|
({
|
|
10158
10163
|
fieldBgColor,
|
|
10159
10164
|
fieldBorderColor,
|
|
@@ -10174,7 +10179,7 @@ var StyledFieldWrapper = styled60(View)(
|
|
|
10174
10179
|
overflow: "hidden"
|
|
10175
10180
|
})
|
|
10176
10181
|
);
|
|
10177
|
-
var StyledTextInput =
|
|
10182
|
+
var StyledTextInput = styled51(TextInput)(({ inputColor, inputFontFamily, inputFontWeight, inputFontSize }) => __spreadProps(__spreadValues({
|
|
10178
10183
|
textAlign: "center",
|
|
10179
10184
|
outlineStyle: "none",
|
|
10180
10185
|
padding: 0,
|
|
@@ -10188,7 +10193,7 @@ var StyledTextInput = styled60(TextInput)(({ inputColor, inputFontFamily, inputF
|
|
|
10188
10193
|
fontSize: inputFontSize,
|
|
10189
10194
|
lineHeight: 0
|
|
10190
10195
|
}));
|
|
10191
|
-
var StyledRow =
|
|
10196
|
+
var StyledRow = styled51(View)(({ rowGap }) => ({
|
|
10192
10197
|
flexDirection: "row",
|
|
10193
10198
|
alignItems: "center",
|
|
10194
10199
|
alignSelf: "center",
|
|
@@ -10236,7 +10241,7 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10236
10241
|
var _a2;
|
|
10237
10242
|
const theme2 = useTheme();
|
|
10238
10243
|
const tokens3 = theme2.tokens.components.numberField;
|
|
10239
|
-
const
|
|
10244
|
+
const inputTokens3 = theme2.tokens.components.inputs;
|
|
10240
10245
|
const [isFocused, setIsFocused] = React60.useState(false);
|
|
10241
10246
|
const [isEdited, setIsEdited] = React60.useState(false);
|
|
10242
10247
|
const initialValueRef = React60.useRef((_a2 = value != null ? value : defaultValue) != null ? _a2 : "");
|
|
@@ -10247,11 +10252,11 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10247
10252
|
const fieldMinWidth = parseTokenValue34(fieldSizeTokens.minWidth);
|
|
10248
10253
|
const fieldHeight = parseTokenValue34(fieldSizeTokens.height);
|
|
10249
10254
|
const fieldPaddingHorizontal = parseTokenValue34(
|
|
10250
|
-
|
|
10255
|
+
inputTokens3.spacing.field.horizontalPadding
|
|
10251
10256
|
);
|
|
10252
10257
|
const getBorderColor = () => {
|
|
10253
|
-
if (state === "error") return
|
|
10254
|
-
if (state === "success") return
|
|
10258
|
+
if (state === "error") return inputTokens3.colour.field.border.error;
|
|
10259
|
+
if (state === "success") return inputTokens3.colour.field.border.success;
|
|
10255
10260
|
if (isFocused) return tokens3.colour.field.border.selected;
|
|
10256
10261
|
if (isEdited) return tokens3.colour.field.border.edited;
|
|
10257
10262
|
return tokens3.colour.field.border.default;
|
|
@@ -10350,11 +10355,11 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10350
10355
|
);
|
|
10351
10356
|
NumberFieldInput.displayName = "NumberField.Input";
|
|
10352
10357
|
var parseTokenValue35 = (value) => parseFloat(value);
|
|
10353
|
-
var StyledRoot10 =
|
|
10358
|
+
var StyledRoot10 = styled51(View)(({ rootGap }) => ({
|
|
10354
10359
|
alignItems: "center",
|
|
10355
10360
|
gap: rootGap
|
|
10356
10361
|
}));
|
|
10357
|
-
var StyledLabelGroup =
|
|
10362
|
+
var StyledLabelGroup = styled51(View)(({ labelGap }) => ({
|
|
10358
10363
|
gap: labelGap
|
|
10359
10364
|
}));
|
|
10360
10365
|
var NumberField = React60.forwardRef(
|
|
@@ -10503,7 +10508,7 @@ var PasswordFieldInput = React60.forwardRef((_a, ref) => {
|
|
|
10503
10508
|
});
|
|
10504
10509
|
PasswordFieldInput.displayName = "PasswordField.Field";
|
|
10505
10510
|
var parseTokenValue36 = (value) => parseFloat(value);
|
|
10506
|
-
var StyledErrorRow2 =
|
|
10511
|
+
var StyledErrorRow2 = styled51(View)(({ gap }) => ({
|
|
10507
10512
|
flexDirection: "row",
|
|
10508
10513
|
alignItems: "center",
|
|
10509
10514
|
gap
|
|
@@ -10535,12 +10540,12 @@ var PasswordFieldError = React60.forwardRef((_a, ref) => {
|
|
|
10535
10540
|
});
|
|
10536
10541
|
PasswordFieldError.displayName = "PasswordField.Error";
|
|
10537
10542
|
var parseTokenValue37 = (value) => parseFloat(value);
|
|
10538
|
-
var StyledRequirementsList =
|
|
10543
|
+
var StyledRequirementsList = styled51(View)(
|
|
10539
10544
|
({ listGap }) => ({
|
|
10540
10545
|
gap: listGap
|
|
10541
10546
|
})
|
|
10542
10547
|
);
|
|
10543
|
-
var StyledRequirementItem =
|
|
10548
|
+
var StyledRequirementItem = styled51(View)(
|
|
10544
10549
|
({ itemGap }) => ({
|
|
10545
10550
|
flexDirection: "row",
|
|
10546
10551
|
alignItems: "center",
|
|
@@ -10597,7 +10602,7 @@ var PasswordFieldRequirements = React60.forwardRef((_a, ref) => {
|
|
|
10597
10602
|
});
|
|
10598
10603
|
PasswordFieldRequirements.displayName = "PasswordField.Requirements";
|
|
10599
10604
|
var parseTokenValue38 = (value) => parseFloat(value);
|
|
10600
|
-
var StyledRoot11 =
|
|
10605
|
+
var StyledRoot11 = styled51(View)(({ theme: theme2 }) => {
|
|
10601
10606
|
const { spacing } = theme2.tokens.components.inputs;
|
|
10602
10607
|
return {
|
|
10603
10608
|
gap: parseTokenValue38(spacing.gap)
|
|
@@ -10711,19 +10716,19 @@ function usePasswordField({
|
|
|
10711
10716
|
});
|
|
10712
10717
|
}
|
|
10713
10718
|
var parseTokenValue39 = (value) => parseFloat(value);
|
|
10714
|
-
var StyledRoot12 =
|
|
10719
|
+
var StyledRoot12 = styled51(View)(({ rootGap }) => ({
|
|
10715
10720
|
flexDirection: "column",
|
|
10716
10721
|
alignItems: "stretch",
|
|
10717
10722
|
gap: rootGap,
|
|
10718
10723
|
width: "100%"
|
|
10719
10724
|
}));
|
|
10720
|
-
var StyledHeader2 =
|
|
10725
|
+
var StyledHeader2 = styled51(View)({
|
|
10721
10726
|
flexDirection: "row",
|
|
10722
10727
|
alignItems: "center",
|
|
10723
10728
|
justifyContent: "space-between",
|
|
10724
10729
|
width: "100%"
|
|
10725
10730
|
});
|
|
10726
|
-
var StyledTrack =
|
|
10731
|
+
var StyledTrack = styled51(View)(({ trackHeight, trackMinWidth, trackBorderRadius, trackBgColor }) => ({
|
|
10727
10732
|
position: "relative",
|
|
10728
10733
|
width: "100%",
|
|
10729
10734
|
minWidth: trackMinWidth,
|
|
@@ -10732,7 +10737,7 @@ var StyledTrack = styled60(View)(({ trackHeight, trackMinWidth, trackBorderRadiu
|
|
|
10732
10737
|
backgroundColor: trackBgColor,
|
|
10733
10738
|
overflow: "hidden"
|
|
10734
10739
|
}));
|
|
10735
|
-
var StyledIndicator =
|
|
10740
|
+
var StyledIndicator = styled51(View)(({ indicatorBorderRadius, indicatorBgColor }) => ({
|
|
10736
10741
|
height: "100%",
|
|
10737
10742
|
borderRadius: indicatorBorderRadius,
|
|
10738
10743
|
backgroundColor: indicatorBgColor
|
|
@@ -10829,7 +10834,7 @@ var Progress = React60.forwardRef(
|
|
|
10829
10834
|
);
|
|
10830
10835
|
Progress.displayName = "Progress";
|
|
10831
10836
|
var parseTokenValue40 = (value) => parseFloat(value);
|
|
10832
|
-
var StyledRadioRoot =
|
|
10837
|
+
var StyledRadioRoot = styled51(Pressable)(
|
|
10833
10838
|
({
|
|
10834
10839
|
radioGap,
|
|
10835
10840
|
radioOpacity,
|
|
@@ -10848,7 +10853,7 @@ var StyledRadioRoot = styled60(Pressable)(
|
|
|
10848
10853
|
opacity: radioOpacity
|
|
10849
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 } : {})
|
|
10850
10855
|
);
|
|
10851
|
-
var StyledRadioControl =
|
|
10856
|
+
var StyledRadioControl = styled51(View)(({ controlSize, controlBorderWidth, controlBorderColor }) => ({
|
|
10852
10857
|
width: controlSize,
|
|
10853
10858
|
height: controlSize,
|
|
10854
10859
|
minWidth: controlSize,
|
|
@@ -10859,19 +10864,25 @@ var StyledRadioControl = styled60(View)(({ controlSize, controlBorderWidth, cont
|
|
|
10859
10864
|
alignItems: "center",
|
|
10860
10865
|
justifyContent: "center"
|
|
10861
10866
|
}));
|
|
10862
|
-
var StyledIndicator2 =
|
|
10867
|
+
var StyledIndicator2 = styled51(View)(({ indicatorSize, indicatorBgColor }) => ({
|
|
10863
10868
|
width: indicatorSize,
|
|
10864
10869
|
height: indicatorSize,
|
|
10865
10870
|
borderRadius: indicatorSize / 2,
|
|
10866
10871
|
backgroundColor: indicatorBgColor
|
|
10867
10872
|
}));
|
|
10868
|
-
var StyledTextContent =
|
|
10873
|
+
var StyledTextContent = styled51(View)(({ textContentGap }) => ({
|
|
10869
10874
|
flexDirection: "column",
|
|
10870
10875
|
gap: textContentGap
|
|
10871
10876
|
}));
|
|
10872
|
-
var StyledAssetWrapper =
|
|
10877
|
+
var StyledAssetWrapper = styled51(View)({
|
|
10873
10878
|
alignSelf: "center"
|
|
10874
10879
|
});
|
|
10880
|
+
var StyledTagWrapper = styled51(View)(
|
|
10881
|
+
({ tagTopPadding }) => ({
|
|
10882
|
+
alignItems: "flex-start",
|
|
10883
|
+
paddingTop: tagTopPadding
|
|
10884
|
+
})
|
|
10885
|
+
);
|
|
10875
10886
|
var Radio = React60.forwardRef(
|
|
10876
10887
|
(_a, ref) => {
|
|
10877
10888
|
var _b = _a, {
|
|
@@ -10879,6 +10890,7 @@ var Radio = React60.forwardRef(
|
|
|
10879
10890
|
label,
|
|
10880
10891
|
subText,
|
|
10881
10892
|
asset,
|
|
10893
|
+
tag,
|
|
10882
10894
|
disabled = false,
|
|
10883
10895
|
value,
|
|
10884
10896
|
selected = false,
|
|
@@ -10889,6 +10901,7 @@ var Radio = React60.forwardRef(
|
|
|
10889
10901
|
"label",
|
|
10890
10902
|
"subText",
|
|
10891
10903
|
"asset",
|
|
10904
|
+
"tag",
|
|
10892
10905
|
"disabled",
|
|
10893
10906
|
"value",
|
|
10894
10907
|
"selected",
|
|
@@ -10943,7 +10956,7 @@ var Radio = React60.forwardRef(
|
|
|
10943
10956
|
)
|
|
10944
10957
|
}
|
|
10945
10958
|
),
|
|
10946
|
-
(label || subText) && /* @__PURE__ */ jsxs(
|
|
10959
|
+
(label || subText || tag) && /* @__PURE__ */ jsxs(
|
|
10947
10960
|
StyledTextContent,
|
|
10948
10961
|
{
|
|
10949
10962
|
textContentGap: parseTokenValue40(spacing.content.gap),
|
|
@@ -10956,6 +10969,13 @@ var Radio = React60.forwardRef(
|
|
|
10956
10969
|
color: colour.text.subtext,
|
|
10957
10970
|
children: subText
|
|
10958
10971
|
}
|
|
10972
|
+
),
|
|
10973
|
+
tag && /* @__PURE__ */ jsx(
|
|
10974
|
+
StyledTagWrapper,
|
|
10975
|
+
{
|
|
10976
|
+
tagTopPadding: parseTokenValue40(spacing.content.tag.topPadding),
|
|
10977
|
+
children: /* @__PURE__ */ jsx(Tag, __spreadValues({}, tag))
|
|
10978
|
+
}
|
|
10959
10979
|
)
|
|
10960
10980
|
]
|
|
10961
10981
|
}
|
|
@@ -10968,7 +10988,7 @@ var Radio = React60.forwardRef(
|
|
|
10968
10988
|
);
|
|
10969
10989
|
Radio.displayName = "Radio";
|
|
10970
10990
|
var parseTokenValue41 = (value) => parseFloat(value);
|
|
10971
|
-
var StyledRadioGroup =
|
|
10991
|
+
var StyledRadioGroup = styled51(View)(({ groupDirection, groupGap }) => ({
|
|
10972
10992
|
flexDirection: groupDirection,
|
|
10973
10993
|
gap: groupGap
|
|
10974
10994
|
}));
|
|
@@ -11094,7 +11114,7 @@ var SearchFieldInput = React60.forwardRef((_a, ref) => {
|
|
|
11094
11114
|
});
|
|
11095
11115
|
SearchFieldInput.displayName = "SearchField.Field";
|
|
11096
11116
|
var parseTokenValue42 = (value) => parseFloat(value);
|
|
11097
|
-
var StyledRoot13 =
|
|
11117
|
+
var StyledRoot13 = styled51(View)(({ theme: theme2 }) => {
|
|
11098
11118
|
const { spacing } = theme2.tokens.components.inputs;
|
|
11099
11119
|
return {
|
|
11100
11120
|
gap: parseTokenValue42(spacing.gap)
|
|
@@ -11171,7 +11191,7 @@ function useSearchField({
|
|
|
11171
11191
|
};
|
|
11172
11192
|
}
|
|
11173
11193
|
var parseTokenValue43 = (value) => parseFloat(value);
|
|
11174
|
-
var StyledSegmentItem =
|
|
11194
|
+
var StyledSegmentItem = styled51(Pressable)(
|
|
11175
11195
|
({
|
|
11176
11196
|
itemHeight,
|
|
11177
11197
|
itemMinWidth,
|
|
@@ -11191,14 +11211,14 @@ var StyledSegmentItem = styled60(Pressable)(
|
|
|
11191
11211
|
opacity: itemOpacity
|
|
11192
11212
|
}, itemFlex !== void 0 ? { flex: itemFlex } : { flexShrink: 0 })
|
|
11193
11213
|
);
|
|
11194
|
-
var StyledIntrinsicClip =
|
|
11214
|
+
var StyledIntrinsicClip = styled51(View)(({ clipBorderRadius, clipBgColor, clipWidth }) => __spreadValues({
|
|
11195
11215
|
overflow: "hidden",
|
|
11196
11216
|
borderRadius: clipBorderRadius,
|
|
11197
11217
|
backgroundColor: clipBgColor,
|
|
11198
11218
|
alignSelf: "flex-start",
|
|
11199
11219
|
maxWidth: "100%"
|
|
11200
11220
|
}, clipWidth !== void 0 ? { width: clipWidth } : {}));
|
|
11201
|
-
var StyledScrollIndicator =
|
|
11221
|
+
var StyledScrollIndicator = styled51(Pressable)(
|
|
11202
11222
|
({
|
|
11203
11223
|
indicatorSide,
|
|
11204
11224
|
indicatorBorderRadius,
|
|
@@ -11254,7 +11274,7 @@ var ScrollIndicatorGradient = ({
|
|
|
11254
11274
|
/* @__PURE__ */ jsx(Rect, { width: "100%", height: "100%", fill: `url(#${gradientId})` })
|
|
11255
11275
|
] }) });
|
|
11256
11276
|
};
|
|
11257
|
-
var StyledContainer2 =
|
|
11277
|
+
var StyledContainer2 = styled51(View)(
|
|
11258
11278
|
({
|
|
11259
11279
|
containerGap,
|
|
11260
11280
|
containerPaddingVertical,
|
|
@@ -11450,7 +11470,7 @@ var SegmentedControlRoot = React60.forwardRef(
|
|
|
11450
11470
|
var _a2, _b2;
|
|
11451
11471
|
const theme2 = useTheme();
|
|
11452
11472
|
const { spacing, borderRadius, colour } = theme2.tokens.components.segmentedControl;
|
|
11453
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
11473
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
11454
11474
|
const optionsFirstValue = (_a2 = options == null ? void 0 : options[0]) == null ? void 0 : _a2.value;
|
|
11455
11475
|
const childrenArray = React60.Children.toArray(children);
|
|
11456
11476
|
const firstChildValue = childrenArray.map((child) => {
|
|
@@ -11513,8 +11533,8 @@ var SegmentedControlRoot = React60.forwardRef(
|
|
|
11513
11533
|
containerBorderRadius: parseTokenValue43(borderRadius.default),
|
|
11514
11534
|
containerBgColor: colour.background.default,
|
|
11515
11535
|
containerFullWidth: layout === "fixed",
|
|
11516
|
-
scrollIndicatorPaddingOuter: parseTokenValue43(
|
|
11517
|
-
scrollIndicatorPaddingInner: parseTokenValue43(
|
|
11536
|
+
scrollIndicatorPaddingOuter: parseTokenValue43(dimensions3.spacing["2xl"]),
|
|
11537
|
+
scrollIndicatorPaddingInner: parseTokenValue43(dimensions3.spacing.sm)
|
|
11518
11538
|
};
|
|
11519
11539
|
if (layout === "intrinsic") {
|
|
11520
11540
|
return /* @__PURE__ */ jsx(
|
|
@@ -11534,7 +11554,7 @@ var SegmentedControl = Object.assign(SegmentedControlRoot, {
|
|
|
11534
11554
|
Item: SegmentedControlItem
|
|
11535
11555
|
});
|
|
11536
11556
|
var parseTokenValue44 = (value) => parseFloat(value);
|
|
11537
|
-
var StyledTriggerWrapper =
|
|
11557
|
+
var StyledTriggerWrapper = styled51(Animated.View)(({
|
|
11538
11558
|
theme: theme2,
|
|
11539
11559
|
state: _state
|
|
11540
11560
|
}) => {
|
|
@@ -11550,12 +11570,12 @@ var StyledTriggerWrapper = styled60(Animated.View)(({
|
|
|
11550
11570
|
borderRadius: parseTokenValue44(borderRadius.field.default)
|
|
11551
11571
|
};
|
|
11552
11572
|
});
|
|
11553
|
-
var StyledIconWrapper2 =
|
|
11573
|
+
var StyledIconWrapper2 = styled51(View)({
|
|
11554
11574
|
flexShrink: 0,
|
|
11555
11575
|
alignItems: "center",
|
|
11556
11576
|
justifyContent: "center"
|
|
11557
11577
|
});
|
|
11558
|
-
var StyledArrowIcon =
|
|
11578
|
+
var StyledArrowIcon = styled51(Animated.View)({
|
|
11559
11579
|
flexShrink: 0,
|
|
11560
11580
|
alignItems: "center",
|
|
11561
11581
|
justifyContent: "center"
|
|
@@ -11641,7 +11661,7 @@ var SelectFieldTrigger = React60.forwardRef(
|
|
|
11641
11661
|
}
|
|
11642
11662
|
);
|
|
11643
11663
|
SelectFieldTrigger.displayName = "SelectField.Trigger";
|
|
11644
|
-
var StyledValue =
|
|
11664
|
+
var StyledValue = styled51(Text)(({ theme: theme2 }) => {
|
|
11645
11665
|
const { colour } = theme2.tokens.components.inputs;
|
|
11646
11666
|
return {
|
|
11647
11667
|
flex: 1,
|
|
@@ -11660,7 +11680,7 @@ SelectFieldValue.displayName = "SelectField.Value";
|
|
|
11660
11680
|
var parseTokenValue45 = (value) => parseFloat(value);
|
|
11661
11681
|
var DROPDOWN_OFFSET_X = -32;
|
|
11662
11682
|
var DROPDOWN_OFFSET_Y = -94;
|
|
11663
|
-
var StyledContentShadow =
|
|
11683
|
+
var StyledContentShadow = styled51(View)(({ theme: theme2 }) => {
|
|
11664
11684
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11665
11685
|
const shadow = dropdown.list.dropshadow.default;
|
|
11666
11686
|
return {
|
|
@@ -11679,7 +11699,7 @@ var StyledContentShadow = styled60(View)(({ theme: theme2 }) => {
|
|
|
11679
11699
|
]
|
|
11680
11700
|
};
|
|
11681
11701
|
});
|
|
11682
|
-
var StyledContentInner =
|
|
11702
|
+
var StyledContentInner = styled51(View)(({ theme: theme2 }) => {
|
|
11683
11703
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11684
11704
|
const { colour } = theme2.tokens.components.inputs;
|
|
11685
11705
|
return {
|
|
@@ -11708,7 +11728,7 @@ var SelectFieldContent = React60.forwardRef((_a, ref) => {
|
|
|
11708
11728
|
});
|
|
11709
11729
|
SelectFieldContent.displayName = "SelectField.Content";
|
|
11710
11730
|
var parseTokenValue46 = (value) => parseFloat(value);
|
|
11711
|
-
var StyledItem3 =
|
|
11731
|
+
var StyledItem3 = styled51(Pressable)(({ theme: theme2 }) => {
|
|
11712
11732
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11713
11733
|
return {
|
|
11714
11734
|
flexDirection: "row",
|
|
@@ -11722,12 +11742,12 @@ var StyledItem3 = styled60(Pressable)(({ theme: theme2 }) => {
|
|
|
11722
11742
|
backgroundColor: dropdown.listItem.colour.background.default
|
|
11723
11743
|
};
|
|
11724
11744
|
});
|
|
11725
|
-
var StyledIconWrapper3 =
|
|
11745
|
+
var StyledIconWrapper3 = styled51(View)({
|
|
11726
11746
|
flexShrink: 0,
|
|
11727
11747
|
alignItems: "center",
|
|
11728
11748
|
justifyContent: "center"
|
|
11729
11749
|
});
|
|
11730
|
-
var StyledContentWrapper =
|
|
11750
|
+
var StyledContentWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
11731
11751
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11732
11752
|
return {
|
|
11733
11753
|
flexDirection: "row",
|
|
@@ -11737,17 +11757,17 @@ var StyledContentWrapper = styled60(View)(({ theme: theme2 }) => {
|
|
|
11737
11757
|
minWidth: 0
|
|
11738
11758
|
};
|
|
11739
11759
|
});
|
|
11740
|
-
var StyledTextWrapper2 =
|
|
11760
|
+
var StyledTextWrapper2 = styled51(View)({
|
|
11741
11761
|
flex: 1,
|
|
11742
11762
|
minWidth: 0
|
|
11743
11763
|
});
|
|
11744
|
-
var StyledItemText =
|
|
11764
|
+
var StyledItemText = styled51(Text)(({ theme: theme2 }) => {
|
|
11745
11765
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11746
11766
|
return {
|
|
11747
11767
|
color: dropdown.listItem.colour.text.placeholder.default
|
|
11748
11768
|
};
|
|
11749
11769
|
});
|
|
11750
|
-
var StyledHintText =
|
|
11770
|
+
var StyledHintText = styled51(Text)(({ theme: theme2 }) => {
|
|
11751
11771
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11752
11772
|
return {
|
|
11753
11773
|
color: dropdown.listItem.colour.text.hint.default,
|
|
@@ -11790,7 +11810,7 @@ var SelectFieldItem = React60.forwardRef(
|
|
|
11790
11810
|
);
|
|
11791
11811
|
SelectFieldItem.displayName = "SelectField.Item";
|
|
11792
11812
|
var parseTokenValue47 = (value) => parseFloat(value);
|
|
11793
|
-
var StyledRoot14 =
|
|
11813
|
+
var StyledRoot14 = styled51(View)(({ theme: theme2 }) => {
|
|
11794
11814
|
const { spacing } = theme2.tokens.components.inputs;
|
|
11795
11815
|
return {
|
|
11796
11816
|
gap: parseTokenValue47(spacing.gap)
|
|
@@ -11923,13 +11943,269 @@ function useSelectField(options = {}) {
|
|
|
11923
11943
|
onValueChange: handleValueChange
|
|
11924
11944
|
}, validationRule && { state, error });
|
|
11925
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";
|
|
11926
12202
|
var parseTokenValue48 = (value) => parseFloat(value);
|
|
11927
|
-
var StyledLabelRow2 =
|
|
12203
|
+
var StyledLabelRow2 = styled51(View)(({ labelRowGap }) => ({
|
|
11928
12204
|
flexDirection: "row",
|
|
11929
12205
|
alignItems: "center",
|
|
11930
12206
|
gap: labelRowGap
|
|
11931
12207
|
}));
|
|
11932
|
-
var StyledLabelSlot =
|
|
12208
|
+
var StyledLabelSlot = styled51(View)(({ labelSlotGap }) => ({
|
|
11933
12209
|
flexDirection: "row",
|
|
11934
12210
|
alignItems: "center",
|
|
11935
12211
|
gap: labelSlotGap,
|
|
@@ -11968,7 +12244,7 @@ var Slider = React60.forwardRef(
|
|
|
11968
12244
|
]);
|
|
11969
12245
|
const theme2 = useTheme();
|
|
11970
12246
|
const { slider, buttons } = theme2.tokens.components;
|
|
11971
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
12247
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
11972
12248
|
const isControlled = controlledValue !== void 0;
|
|
11973
12249
|
const [internalValue, setInternalValue] = React60.useState(defaultValue);
|
|
11974
12250
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
@@ -12069,7 +12345,7 @@ var Slider = React60.forwardRef(
|
|
|
12069
12345
|
const hasLeading = leadingIcon !== void 0 || leadingLabel !== void 0;
|
|
12070
12346
|
const hasTrailing = trailingIcon !== void 0 || trailingLabel !== void 0;
|
|
12071
12347
|
const labelGap = parseTokenValue48(slider.sliderField.spacing.label.gap);
|
|
12072
|
-
const roundBorderRadius = parseTokenValue48(
|
|
12348
|
+
const roundBorderRadius = parseTokenValue48(dimensions3.borderRadius.round);
|
|
12073
12349
|
const thumbIconColor = buttons.iconButton.filledButton.colour.icon.primary.default;
|
|
12074
12350
|
const thumbContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12075
12351
|
/* @__PURE__ */ jsx(
|
|
@@ -12140,7 +12416,7 @@ var Slider = React60.forwardRef(
|
|
|
12140
12416
|
height: trackHeight,
|
|
12141
12417
|
borderRadius: roundBorderRadius,
|
|
12142
12418
|
backgroundColor: slider.colour.track.background.default,
|
|
12143
|
-
borderWidth: parseTokenValue48(
|
|
12419
|
+
borderWidth: parseTokenValue48(dimensions3.borderWidth.sm),
|
|
12144
12420
|
borderColor: slider.colour.track.border.default
|
|
12145
12421
|
};
|
|
12146
12422
|
const indicatorBaseStyle = {
|
|
@@ -12235,9 +12511,9 @@ var Slider = React60.forwardRef(
|
|
|
12235
12511
|
onLayout: handleNativeLayout,
|
|
12236
12512
|
children: [
|
|
12237
12513
|
/* @__PURE__ */ jsx(View, { style: trackBackgroundStyle }),
|
|
12238
|
-
/* @__PURE__ */ jsx(
|
|
12514
|
+
/* @__PURE__ */ jsx(Animated10.View, { style: [indicatorBaseStyle, indicatorAnimStyle] }),
|
|
12239
12515
|
/* @__PURE__ */ jsx(
|
|
12240
|
-
|
|
12516
|
+
Animated10.View,
|
|
12241
12517
|
{
|
|
12242
12518
|
style: [
|
|
12243
12519
|
__spreadProps(__spreadValues({}, thumbStyle), { position: "absolute", left: 0 }),
|
|
@@ -12265,7 +12541,7 @@ var ICON_MAP = {
|
|
|
12265
12541
|
info: Info_default
|
|
12266
12542
|
};
|
|
12267
12543
|
var parseTokenValue49 = (value) => parseFloat(value);
|
|
12268
|
-
var StyledInlineRoot =
|
|
12544
|
+
var StyledInlineRoot = styled51(View)(
|
|
12269
12545
|
({ rootPaddingH, rootPaddingV, rootGap, rootBorderRadius, rootBgColor }) => ({
|
|
12270
12546
|
flexDirection: "row",
|
|
12271
12547
|
alignItems: "flex-start",
|
|
@@ -12276,7 +12552,7 @@ var StyledInlineRoot = styled60(View)(
|
|
|
12276
12552
|
backgroundColor: rootBgColor
|
|
12277
12553
|
})
|
|
12278
12554
|
);
|
|
12279
|
-
var StyledToastRoot =
|
|
12555
|
+
var StyledToastRoot = styled51(View)(
|
|
12280
12556
|
({
|
|
12281
12557
|
rootPaddingH,
|
|
12282
12558
|
rootPaddingV,
|
|
@@ -12303,7 +12579,7 @@ var StyledToastRoot = styled60(View)(
|
|
|
12303
12579
|
elevation: 4
|
|
12304
12580
|
})
|
|
12305
12581
|
);
|
|
12306
|
-
var StyledSystemRoot =
|
|
12582
|
+
var StyledSystemRoot = styled51(View)(
|
|
12307
12583
|
({
|
|
12308
12584
|
rootPaddingH,
|
|
12309
12585
|
rootPaddingTop,
|
|
@@ -12323,31 +12599,31 @@ var StyledSystemRoot = styled60(View)(
|
|
|
12323
12599
|
width: "100%"
|
|
12324
12600
|
})
|
|
12325
12601
|
);
|
|
12326
|
-
var StyledContents =
|
|
12602
|
+
var StyledContents = styled51(View)(({ contentsGap }) => ({
|
|
12327
12603
|
flexDirection: "column",
|
|
12328
12604
|
alignItems: "flex-start",
|
|
12329
12605
|
flex: 1,
|
|
12330
12606
|
minWidth: 0,
|
|
12331
12607
|
gap: contentsGap
|
|
12332
12608
|
}));
|
|
12333
|
-
var StyledCopyRow =
|
|
12609
|
+
var StyledCopyRow = styled51(View)(({ copyGap }) => ({
|
|
12334
12610
|
flexDirection: "row",
|
|
12335
12611
|
alignItems: "flex-start",
|
|
12336
12612
|
gap: copyGap,
|
|
12337
12613
|
width: "100%"
|
|
12338
12614
|
}));
|
|
12339
|
-
var StyledInlineCopy =
|
|
12615
|
+
var StyledInlineCopy = styled51(View)(({ copyGap }) => ({
|
|
12340
12616
|
flexDirection: "column",
|
|
12341
12617
|
alignItems: "flex-start",
|
|
12342
12618
|
gap: copyGap,
|
|
12343
12619
|
flex: 1,
|
|
12344
12620
|
minWidth: 0
|
|
12345
12621
|
}));
|
|
12346
|
-
var StyledLinkWrapper =
|
|
12622
|
+
var StyledLinkWrapper = styled51(View)(({ linkPaddingLeft }) => ({
|
|
12347
12623
|
paddingLeft: linkPaddingLeft,
|
|
12348
12624
|
width: "100%"
|
|
12349
12625
|
}));
|
|
12350
|
-
var StyledCloseButton =
|
|
12626
|
+
var StyledCloseButton = styled51(Pressable)({
|
|
12351
12627
|
alignItems: "center",
|
|
12352
12628
|
justifyContent: "center",
|
|
12353
12629
|
flexShrink: 0,
|
|
@@ -12406,14 +12682,26 @@ var Notification = React60.forwardRef(
|
|
|
12406
12682
|
"aria-label": type
|
|
12407
12683
|
}
|
|
12408
12684
|
),
|
|
12409
|
-
/* @__PURE__ */
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12685
|
+
/* @__PURE__ */ jsxs(View, { style: { flexDirection: "column", gap: 8, flex: 1 }, children: [
|
|
12686
|
+
/* @__PURE__ */ jsx(
|
|
12687
|
+
Typography,
|
|
12688
|
+
{
|
|
12689
|
+
token: systemNotifications.notifications.typography.default,
|
|
12690
|
+
color: systemNotifications.notification.colour.text.default,
|
|
12691
|
+
children
|
|
12692
|
+
}
|
|
12693
|
+
),
|
|
12694
|
+
link && /* @__PURE__ */ jsx(
|
|
12695
|
+
Link,
|
|
12696
|
+
{
|
|
12697
|
+
href: link.href,
|
|
12698
|
+
onPress: link.onPress,
|
|
12699
|
+
weight: "semiBold",
|
|
12700
|
+
size: "md",
|
|
12701
|
+
children: link.label
|
|
12702
|
+
}
|
|
12703
|
+
)
|
|
12704
|
+
] })
|
|
12417
12705
|
]
|
|
12418
12706
|
})
|
|
12419
12707
|
);
|
|
@@ -12507,41 +12795,59 @@ var Notification = React60.forwardRef(
|
|
|
12507
12795
|
rootBgColor: bgMap[type]
|
|
12508
12796
|
}, rest), {
|
|
12509
12797
|
children: [
|
|
12510
|
-
/* @__PURE__ */
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12798
|
+
/* @__PURE__ */ jsxs(StyledContents, { contentsGap: parseTokenValue49(content.spacing.gap), children: [
|
|
12799
|
+
/* @__PURE__ */ jsxs(StyledCopyRow, { copyGap: parseTokenValue49(content.spacing.gap), children: [
|
|
12800
|
+
showIcon && /* @__PURE__ */ jsx(
|
|
12801
|
+
Icon,
|
|
12802
|
+
{
|
|
12803
|
+
icon: IconComponent,
|
|
12804
|
+
size: "md",
|
|
12805
|
+
colour: type,
|
|
12806
|
+
"aria-label": type
|
|
12807
|
+
}
|
|
12808
|
+
),
|
|
12809
|
+
/* @__PURE__ */ jsxs(
|
|
12810
|
+
StyledInlineCopy,
|
|
12811
|
+
{
|
|
12812
|
+
copyGap: parseTokenValue49(content.copy.spacing.gap),
|
|
12813
|
+
children: [
|
|
12814
|
+
title && /* @__PURE__ */ jsx(
|
|
12815
|
+
Typography,
|
|
12816
|
+
{
|
|
12817
|
+
token: notifications.typography.title,
|
|
12818
|
+
color: colour.text.title,
|
|
12819
|
+
children: title
|
|
12820
|
+
}
|
|
12821
|
+
),
|
|
12822
|
+
/* @__PURE__ */ jsx(
|
|
12823
|
+
Typography,
|
|
12824
|
+
{
|
|
12825
|
+
token: notifications.typography.body,
|
|
12826
|
+
color: colour.text.body,
|
|
12827
|
+
children
|
|
12828
|
+
}
|
|
12829
|
+
)
|
|
12830
|
+
]
|
|
12831
|
+
}
|
|
12832
|
+
)
|
|
12833
|
+
] }),
|
|
12834
|
+
link && /* @__PURE__ */ jsx(
|
|
12835
|
+
StyledLinkWrapper,
|
|
12522
12836
|
{
|
|
12523
|
-
|
|
12524
|
-
children:
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
Typography,
|
|
12535
|
-
{
|
|
12536
|
-
token: notifications.typography.body,
|
|
12537
|
-
color: colour.text.body,
|
|
12538
|
-
children
|
|
12539
|
-
}
|
|
12540
|
-
)
|
|
12541
|
-
]
|
|
12837
|
+
linkPaddingLeft: parseTokenValue49(content.copy.spacing.gap),
|
|
12838
|
+
children: /* @__PURE__ */ jsx(
|
|
12839
|
+
Link,
|
|
12840
|
+
{
|
|
12841
|
+
href: link.href,
|
|
12842
|
+
onPress: link.onPress,
|
|
12843
|
+
weight: "semiBold",
|
|
12844
|
+
size: "md",
|
|
12845
|
+
children: link.label
|
|
12846
|
+
}
|
|
12847
|
+
)
|
|
12542
12848
|
}
|
|
12543
12849
|
)
|
|
12544
|
-
] })
|
|
12850
|
+
] }),
|
|
12545
12851
|
onClose && /* @__PURE__ */ jsx(
|
|
12546
12852
|
StyledCloseButton,
|
|
12547
12853
|
{
|
|
@@ -12563,10 +12869,10 @@ var NIB_OFFSET = {
|
|
|
12563
12869
|
middle: 146,
|
|
12564
12870
|
right: 268
|
|
12565
12871
|
};
|
|
12566
|
-
var Container2 =
|
|
12872
|
+
var Container2 = styled51(View)(({ $width }) => ({
|
|
12567
12873
|
width: $width
|
|
12568
12874
|
}));
|
|
12569
|
-
var StyledBody =
|
|
12875
|
+
var StyledBody = styled51(View)(
|
|
12570
12876
|
({
|
|
12571
12877
|
bgColor,
|
|
12572
12878
|
borderColor,
|
|
@@ -12796,7 +13102,7 @@ var Tooltip = React60.forwardRef(
|
|
|
12796
13102
|
);
|
|
12797
13103
|
Tooltip.displayName = "Tooltip";
|
|
12798
13104
|
var parseTokenValue51 = (value) => parseFloat(value);
|
|
12799
|
-
var StyledInsightRoot =
|
|
13105
|
+
var StyledInsightRoot = styled51(View)(
|
|
12800
13106
|
({
|
|
12801
13107
|
rootGap,
|
|
12802
13108
|
rootPaddingH,
|
|
@@ -12823,7 +13129,7 @@ var StyledInsightRoot = styled60(View)(
|
|
|
12823
13129
|
minWidth: rootMinWidth
|
|
12824
13130
|
})
|
|
12825
13131
|
);
|
|
12826
|
-
var StyledInsightContent =
|
|
13132
|
+
var StyledInsightContent = styled51(View)(
|
|
12827
13133
|
({ contentGap }) => ({
|
|
12828
13134
|
flex: 1,
|
|
12829
13135
|
flexDirection: "column",
|
|
@@ -12903,7 +13209,7 @@ var MessageCardInsight = React60.forwardRef(
|
|
|
12903
13209
|
}
|
|
12904
13210
|
);
|
|
12905
13211
|
MessageCardInsight.displayName = "MessageCard.Insight";
|
|
12906
|
-
var StyledBannerRoot =
|
|
13212
|
+
var StyledBannerRoot = styled51(View)(({ rootGap, rootPadding, rootBorderRadius, rootBgColor }) => ({
|
|
12907
13213
|
flexDirection: "row",
|
|
12908
13214
|
alignItems: "center",
|
|
12909
13215
|
gap: rootGap,
|
|
@@ -12911,7 +13217,7 @@ var StyledBannerRoot = styled60(View)(({ rootGap, rootPadding, rootBorderRadius,
|
|
|
12911
13217
|
borderRadius: rootBorderRadius,
|
|
12912
13218
|
backgroundColor: rootBgColor
|
|
12913
13219
|
}));
|
|
12914
|
-
var StyledBannerImage =
|
|
13220
|
+
var StyledBannerImage = styled51(View)(({ imageRadius, imageBgColor }) => ({
|
|
12915
13221
|
flexShrink: 0,
|
|
12916
13222
|
width: 108,
|
|
12917
13223
|
height: 108,
|
|
@@ -12919,14 +13225,14 @@ var StyledBannerImage = styled60(View)(({ imageRadius, imageBgColor }) => ({
|
|
|
12919
13225
|
overflow: "hidden",
|
|
12920
13226
|
backgroundColor: imageBgColor
|
|
12921
13227
|
}));
|
|
12922
|
-
var StyledBannerIllustrationSlot =
|
|
13228
|
+
var StyledBannerIllustrationSlot = styled51(View)({
|
|
12923
13229
|
flexShrink: 0,
|
|
12924
13230
|
width: 108,
|
|
12925
13231
|
height: 108,
|
|
12926
13232
|
alignItems: "center",
|
|
12927
13233
|
justifyContent: "center"
|
|
12928
13234
|
});
|
|
12929
|
-
var StyledBannerContents =
|
|
13235
|
+
var StyledBannerContents = styled51(View)(
|
|
12930
13236
|
({ contentsGap }) => ({
|
|
12931
13237
|
flex: 1,
|
|
12932
13238
|
flexDirection: "column",
|
|
@@ -12936,7 +13242,7 @@ var StyledBannerContents = styled60(View)(
|
|
|
12936
13242
|
minWidth: 0
|
|
12937
13243
|
})
|
|
12938
13244
|
);
|
|
12939
|
-
var StyledBannerCopy =
|
|
13245
|
+
var StyledBannerCopy = styled51(View)(({ copyGap }) => ({
|
|
12940
13246
|
flexDirection: "column",
|
|
12941
13247
|
alignItems: "flex-start",
|
|
12942
13248
|
gap: copyGap,
|
|
@@ -12962,15 +13268,15 @@ var MessageCardBanner = React60.forwardRef(
|
|
|
12962
13268
|
"onLinkPress"
|
|
12963
13269
|
]);
|
|
12964
13270
|
const theme2 = useTheme();
|
|
12965
|
-
const { colour, dimensions } = theme2.tokens.semantics;
|
|
13271
|
+
const { colour, dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
12966
13272
|
const bgColor = colourScheme === "secondary" ? colour.background.container.secondary : colour.background.container.alt;
|
|
12967
13273
|
return /* @__PURE__ */ jsxs(
|
|
12968
13274
|
StyledBannerRoot,
|
|
12969
13275
|
__spreadProps(__spreadValues({
|
|
12970
13276
|
ref,
|
|
12971
|
-
rootGap: parseTokenValue51(
|
|
12972
|
-
rootPadding: parseTokenValue51(
|
|
12973
|
-
rootBorderRadius: parseTokenValue51(
|
|
13277
|
+
rootGap: parseTokenValue51(dimensions3.spacing.md),
|
|
13278
|
+
rootPadding: parseTokenValue51(dimensions3.spacing.md),
|
|
13279
|
+
rootBorderRadius: parseTokenValue51(dimensions3.borderRadius.md),
|
|
12974
13280
|
rootBgColor: bgColor,
|
|
12975
13281
|
accessible: true,
|
|
12976
13282
|
accessibilityRole: "summary"
|
|
@@ -12982,7 +13288,7 @@ var MessageCardBanner = React60.forwardRef(
|
|
|
12982
13288
|
}) }) : (media == null ? void 0 : media.type) === "image" ? /* @__PURE__ */ jsx(
|
|
12983
13289
|
StyledBannerImage,
|
|
12984
13290
|
{
|
|
12985
|
-
imageRadius: parseTokenValue51(
|
|
13291
|
+
imageRadius: parseTokenValue51(dimensions3.borderRadius.sm),
|
|
12986
13292
|
imageBgColor: colour.background.surface.secondary,
|
|
12987
13293
|
children: /* @__PURE__ */ jsx(
|
|
12988
13294
|
Image,
|
|
@@ -12998,12 +13304,12 @@ var MessageCardBanner = React60.forwardRef(
|
|
|
12998
13304
|
/* @__PURE__ */ jsxs(
|
|
12999
13305
|
StyledBannerContents,
|
|
13000
13306
|
{
|
|
13001
|
-
contentsGap: parseTokenValue51(
|
|
13307
|
+
contentsGap: parseTokenValue51(dimensions3.spacing.xs),
|
|
13002
13308
|
children: [
|
|
13003
13309
|
/* @__PURE__ */ jsxs(
|
|
13004
13310
|
StyledBannerCopy,
|
|
13005
13311
|
{
|
|
13006
|
-
copyGap: parseTokenValue51(
|
|
13312
|
+
copyGap: parseTokenValue51(dimensions3.spacing["3xs"]),
|
|
13007
13313
|
children: [
|
|
13008
13314
|
title && /* @__PURE__ */ jsx(Typography, { variant: "heading", size: "xs", color: "primary", children: title }),
|
|
13009
13315
|
/* @__PURE__ */ jsx(Typography, { variant: "body", size: "md", color: "secondary", children })
|
|
@@ -13075,22 +13381,22 @@ function defaultGetDateState(date) {
|
|
|
13075
13381
|
function getDefaultMonthLabel(year, month, locale) {
|
|
13076
13382
|
return format(new Date(year, month, 1), "MMMM yyyy", { locale });
|
|
13077
13383
|
}
|
|
13078
|
-
var StyledContainer3 =
|
|
13384
|
+
var StyledContainer3 = styled51(View)(({ containerGap, containerMaxWidth }) => ({
|
|
13079
13385
|
flexDirection: "column",
|
|
13080
13386
|
gap: containerGap,
|
|
13081
13387
|
maxWidth: containerMaxWidth
|
|
13082
13388
|
}));
|
|
13083
|
-
var StyledMonthHeader =
|
|
13389
|
+
var StyledMonthHeader = styled51(View)(
|
|
13084
13390
|
({ headerGap }) => ({
|
|
13085
13391
|
flexDirection: "row",
|
|
13086
13392
|
alignItems: "center",
|
|
13087
13393
|
gap: headerGap
|
|
13088
13394
|
})
|
|
13089
13395
|
);
|
|
13090
|
-
var StyledWeekRow =
|
|
13396
|
+
var StyledWeekRow = styled51(View)({
|
|
13091
13397
|
flexDirection: "row"
|
|
13092
13398
|
});
|
|
13093
|
-
var StyledWeekCell =
|
|
13399
|
+
var StyledWeekCell = styled51(View)(
|
|
13094
13400
|
({ cellHeight }) => ({
|
|
13095
13401
|
flex: 1,
|
|
13096
13402
|
alignItems: "center",
|
|
@@ -13098,14 +13404,14 @@ var StyledWeekCell = styled60(View)(
|
|
|
13098
13404
|
height: cellHeight
|
|
13099
13405
|
})
|
|
13100
13406
|
);
|
|
13101
|
-
var StyledDatesGrid =
|
|
13407
|
+
var StyledDatesGrid = styled51(View)(({ rowGap }) => ({
|
|
13102
13408
|
flexDirection: "column",
|
|
13103
13409
|
gap: rowGap
|
|
13104
13410
|
}));
|
|
13105
|
-
var StyledDateRow =
|
|
13411
|
+
var StyledDateRow = styled51(View)({
|
|
13106
13412
|
flexDirection: "row"
|
|
13107
13413
|
});
|
|
13108
|
-
var StyledDateCell =
|
|
13414
|
+
var StyledDateCell = styled51(View)(
|
|
13109
13415
|
({ cellHeight }) => ({
|
|
13110
13416
|
flex: 1,
|
|
13111
13417
|
height: cellHeight,
|
|
@@ -13113,7 +13419,7 @@ var StyledDateCell = styled60(View)(
|
|
|
13113
13419
|
justifyContent: "center"
|
|
13114
13420
|
})
|
|
13115
13421
|
);
|
|
13116
|
-
var StyledIndicator3 =
|
|
13422
|
+
var StyledIndicator3 = styled51(View)(
|
|
13117
13423
|
({
|
|
13118
13424
|
indicatorSize,
|
|
13119
13425
|
indicatorBorderRadius,
|
|
@@ -13359,7 +13665,7 @@ var DatePicker = React60.forwardRef(
|
|
|
13359
13665
|
) })
|
|
13360
13666
|
] }),
|
|
13361
13667
|
/* @__PURE__ */ jsx(
|
|
13362
|
-
|
|
13668
|
+
Animated10.View,
|
|
13363
13669
|
{
|
|
13364
13670
|
entering: MONTH_SLIDE_ENTERING[slideDir],
|
|
13365
13671
|
exiting: MONTH_SLIDE_EXITING[slideDir],
|
|
@@ -13478,25 +13784,25 @@ var buildPointerPath = (r) => {
|
|
|
13478
13784
|
].join(" ");
|
|
13479
13785
|
};
|
|
13480
13786
|
var parseTokenValue53 = (value) => parseFloat(value);
|
|
13481
|
-
var StyledRoot15 =
|
|
13787
|
+
var StyledRoot15 = styled51(View)(({ rootGap }) => ({
|
|
13482
13788
|
flexDirection: "column",
|
|
13483
13789
|
gap: rootGap,
|
|
13484
13790
|
width: "100%"
|
|
13485
13791
|
}));
|
|
13486
|
-
var StyledRow2 =
|
|
13792
|
+
var StyledRow2 = styled51(View)(({ rowGap }) => ({
|
|
13487
13793
|
flexDirection: "row",
|
|
13488
13794
|
alignItems: "flex-start",
|
|
13489
13795
|
gap: rowGap,
|
|
13490
13796
|
width: "100%"
|
|
13491
13797
|
}));
|
|
13492
|
-
var StyledItemStack =
|
|
13798
|
+
var StyledItemStack = styled51(View)(({ stackGap }) => ({
|
|
13493
13799
|
flexDirection: "column",
|
|
13494
13800
|
alignItems: "center",
|
|
13495
13801
|
gap: stackGap,
|
|
13496
13802
|
flex: 1,
|
|
13497
13803
|
minWidth: 0
|
|
13498
13804
|
}));
|
|
13499
|
-
var StyledPictureButton =
|
|
13805
|
+
var StyledPictureButton = styled51(Pressable)(
|
|
13500
13806
|
({
|
|
13501
13807
|
buttonBorderRadius,
|
|
13502
13808
|
buttonBorderWidth,
|
|
@@ -13523,7 +13829,7 @@ var StyledPictureButton = styled60(Pressable)(
|
|
|
13523
13829
|
overflow: "hidden"
|
|
13524
13830
|
})
|
|
13525
13831
|
);
|
|
13526
|
-
var StyledPointer =
|
|
13832
|
+
var StyledPointer = styled51(Svg)(
|
|
13527
13833
|
({ pointerVisible }) => ({
|
|
13528
13834
|
width: POINTER_WIDTH,
|
|
13529
13835
|
height: POINTER_HEIGHT,
|
|
@@ -13676,13 +13982,13 @@ var DEFAULT_UNIT_LABELS = {
|
|
|
13676
13982
|
var resolveLabel = (label, value) => typeof label === "string" ? label : value === 1 ? label.singular : label.plural;
|
|
13677
13983
|
var parseTokenValue54 = (value) => parseFloat(value);
|
|
13678
13984
|
var pad = (value) => String(Math.max(0, Math.floor(value))).padStart(2, "0");
|
|
13679
|
-
var StackedRoot =
|
|
13985
|
+
var StackedRoot = styled51(View)(({ rootGap }) => ({
|
|
13680
13986
|
flexDirection: "row",
|
|
13681
13987
|
alignItems: "center",
|
|
13682
13988
|
alignSelf: "flex-start",
|
|
13683
13989
|
gap: rootGap
|
|
13684
13990
|
}));
|
|
13685
|
-
var StackedItem =
|
|
13991
|
+
var StackedItem = styled51(View)(
|
|
13686
13992
|
({
|
|
13687
13993
|
itemGap,
|
|
13688
13994
|
itemVerticalPadding,
|
|
@@ -13700,7 +14006,7 @@ var StackedItem = styled60(View)(
|
|
|
13700
14006
|
borderRadius: itemBorderRadius
|
|
13701
14007
|
})
|
|
13702
14008
|
);
|
|
13703
|
-
var StackedCountBox =
|
|
14009
|
+
var StackedCountBox = styled51(View)(({ countPaddingTop, countBgColor, countBorderRadius }) => ({
|
|
13704
14010
|
alignItems: "center",
|
|
13705
14011
|
justifyContent: "center",
|
|
13706
14012
|
// TODO: Add token — fixed count box dimensions are not yet tokenised.
|
|
@@ -13710,7 +14016,7 @@ var StackedCountBox = styled60(View)(({ countPaddingTop, countBgColor, countBord
|
|
|
13710
14016
|
backgroundColor: countBgColor,
|
|
13711
14017
|
borderRadius: countBorderRadius
|
|
13712
14018
|
}));
|
|
13713
|
-
var InlineRoot =
|
|
14019
|
+
var InlineRoot = styled51(View)(
|
|
13714
14020
|
({
|
|
13715
14021
|
rootGap,
|
|
13716
14022
|
rootVerticalPadding,
|
|
@@ -13730,13 +14036,13 @@ var InlineRoot = styled60(View)(
|
|
|
13730
14036
|
overflow: "hidden"
|
|
13731
14037
|
})
|
|
13732
14038
|
);
|
|
13733
|
-
var InlineGroup =
|
|
14039
|
+
var InlineGroup = styled51(View)(({ groupGap }) => ({
|
|
13734
14040
|
flexDirection: "row",
|
|
13735
14041
|
alignItems: "center",
|
|
13736
14042
|
justifyContent: "flex-end",
|
|
13737
14043
|
gap: groupGap
|
|
13738
14044
|
}));
|
|
13739
|
-
var InlineCount =
|
|
14045
|
+
var InlineCount = styled51(View)(({ countGap }) => ({
|
|
13740
14046
|
flexDirection: "row",
|
|
13741
14047
|
alignItems: "center",
|
|
13742
14048
|
gap: countGap
|
|
@@ -13921,7 +14227,7 @@ var parseTokenValue55 = (value) => {
|
|
|
13921
14227
|
if (typeof value === "number") return value;
|
|
13922
14228
|
return parseFloat(value);
|
|
13923
14229
|
};
|
|
13924
|
-
var BadgeContainer =
|
|
14230
|
+
var BadgeContainer = styled51(View)(({ theme: theme2 }) => {
|
|
13925
14231
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13926
14232
|
const { sizing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
13927
14233
|
const { colour } = theme2.tokens.semantics;
|
|
@@ -13938,7 +14244,7 @@ var BadgeContainer = styled60(View)(({ theme: theme2 }) => {
|
|
|
13938
14244
|
borderBottomRightRadius: parseTokenValue55(borderRadius.xs)
|
|
13939
14245
|
};
|
|
13940
14246
|
});
|
|
13941
|
-
var BadgeIcon =
|
|
14247
|
+
var BadgeIcon = styled51(View)(({ theme: theme2 }) => {
|
|
13942
14248
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13943
14249
|
const sizing = theme2.tokens.semantics.dimensions.sizing;
|
|
13944
14250
|
return {
|
|
@@ -13961,7 +14267,7 @@ var Badge2 = React60.forwardRef(
|
|
|
13961
14267
|
}
|
|
13962
14268
|
);
|
|
13963
14269
|
Badge2.displayName = "ProductListingCard.Badge";
|
|
13964
|
-
var StyledGrid =
|
|
14270
|
+
var StyledGrid = styled51(View)(({ theme: theme2 }) => {
|
|
13965
14271
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13966
14272
|
return {
|
|
13967
14273
|
display: "grid",
|
|
@@ -14000,7 +14306,7 @@ var parseTokenValue56 = (value) => {
|
|
|
14000
14306
|
if (typeof value === "number") return value;
|
|
14001
14307
|
return parseFloat(value);
|
|
14002
14308
|
};
|
|
14003
|
-
var StyledRoot16 =
|
|
14309
|
+
var StyledRoot16 = styled51(Pressable)(({ theme: theme2 }) => {
|
|
14004
14310
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14005
14311
|
return {
|
|
14006
14312
|
display: "flex",
|
|
@@ -14010,18 +14316,18 @@ var StyledRoot16 = styled60(Pressable)(({ theme: theme2 }) => {
|
|
|
14010
14316
|
width: "100%"
|
|
14011
14317
|
};
|
|
14012
14318
|
});
|
|
14013
|
-
var ImageContainer =
|
|
14319
|
+
var ImageContainer = styled51(View)({
|
|
14014
14320
|
position: "relative",
|
|
14015
14321
|
width: "100%",
|
|
14016
14322
|
aspectRatio: 1,
|
|
14017
14323
|
overflow: "hidden"
|
|
14018
14324
|
});
|
|
14019
|
-
var StyledImage2 =
|
|
14325
|
+
var StyledImage2 = styled51(Image)({
|
|
14020
14326
|
width: "100%",
|
|
14021
14327
|
height: "100%",
|
|
14022
14328
|
resizeMode: "cover"
|
|
14023
14329
|
});
|
|
14024
|
-
var BadgeContainer2 =
|
|
14330
|
+
var BadgeContainer2 = styled51(View)(({ theme: theme2 }) => {
|
|
14025
14331
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14026
14332
|
const { sizing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
14027
14333
|
const { colour } = theme2.tokens.semantics;
|
|
@@ -14041,7 +14347,7 @@ var BadgeContainer2 = styled60(View)(({ theme: theme2 }) => {
|
|
|
14041
14347
|
borderBottomRightRadius: parseTokenValue56(borderRadius.sm)
|
|
14042
14348
|
};
|
|
14043
14349
|
});
|
|
14044
|
-
var ContentContainer =
|
|
14350
|
+
var ContentContainer = styled51(View)(({ theme: theme2 }) => {
|
|
14045
14351
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14046
14352
|
return {
|
|
14047
14353
|
display: "flex",
|
|
@@ -14051,19 +14357,19 @@ var ContentContainer = styled60(View)(({ theme: theme2 }) => {
|
|
|
14051
14357
|
width: "100%"
|
|
14052
14358
|
};
|
|
14053
14359
|
});
|
|
14054
|
-
var DetailsContainer =
|
|
14360
|
+
var DetailsContainer = styled51(View)({
|
|
14055
14361
|
display: "flex",
|
|
14056
14362
|
flexDirection: "column",
|
|
14057
14363
|
alignItems: "flex-start",
|
|
14058
14364
|
width: "100%"
|
|
14059
14365
|
});
|
|
14060
|
-
var CategoryWrapper =
|
|
14366
|
+
var CategoryWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
14061
14367
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14062
14368
|
return {
|
|
14063
14369
|
marginBottom: parseTokenValue56(spacing["3xs"])
|
|
14064
14370
|
};
|
|
14065
14371
|
});
|
|
14066
|
-
var TitleContainer =
|
|
14372
|
+
var TitleContainer = styled51(View)(({ theme: theme2 }) => {
|
|
14067
14373
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14068
14374
|
return {
|
|
14069
14375
|
display: "flex",
|
|
@@ -14072,13 +14378,13 @@ var TitleContainer = styled60(View)(({ theme: theme2 }) => {
|
|
|
14072
14378
|
marginBottom: parseTokenValue56(spacing.xs)
|
|
14073
14379
|
};
|
|
14074
14380
|
});
|
|
14075
|
-
var SizeWrapper =
|
|
14381
|
+
var SizeWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
14076
14382
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14077
14383
|
return {
|
|
14078
14384
|
marginBottom: parseTokenValue56(spacing.md)
|
|
14079
14385
|
};
|
|
14080
14386
|
});
|
|
14081
|
-
var PricingContainer =
|
|
14387
|
+
var PricingContainer = styled51(View)(({ theme: theme2 }) => {
|
|
14082
14388
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14083
14389
|
return {
|
|
14084
14390
|
display: "flex",
|
|
@@ -14161,7 +14467,7 @@ var ProductListingCardWithBadgeAndGrid = Object.assign(_ProductListingCard, {
|
|
|
14161
14467
|
Badge: Badge2,
|
|
14162
14468
|
Grid
|
|
14163
14469
|
});
|
|
14164
|
-
var StyledCardContainer =
|
|
14470
|
+
var StyledCardContainer = styled51(View)(({
|
|
14165
14471
|
theme: theme2,
|
|
14166
14472
|
borderless
|
|
14167
14473
|
}) => {
|
|
@@ -14189,7 +14495,7 @@ var StyledCardContainer = styled60(View)(({
|
|
|
14189
14495
|
zIndex: 1
|
|
14190
14496
|
});
|
|
14191
14497
|
});
|
|
14192
|
-
var StyledImage3 =
|
|
14498
|
+
var StyledImage3 = styled51(View)(
|
|
14193
14499
|
({
|
|
14194
14500
|
theme: theme2,
|
|
14195
14501
|
imageBackgroundColor,
|
|
@@ -14205,7 +14511,7 @@ var StyledImage3 = styled60(View)(
|
|
|
14205
14511
|
position: "relative"
|
|
14206
14512
|
})
|
|
14207
14513
|
);
|
|
14208
|
-
var StyledQuantityBadge =
|
|
14514
|
+
var StyledQuantityBadge = styled51(View)(({ theme: theme2 }) => {
|
|
14209
14515
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14210
14516
|
const borderRadius = theme2.tokens.semantics.dimensions.borderRadius;
|
|
14211
14517
|
const { colour } = theme2.tokens.semantics;
|
|
@@ -14223,7 +14529,7 @@ var StyledQuantityBadge = styled60(View)(({ theme: theme2 }) => {
|
|
|
14223
14529
|
zIndex: 2
|
|
14224
14530
|
};
|
|
14225
14531
|
});
|
|
14226
|
-
var StyledContentArea =
|
|
14532
|
+
var StyledContentArea = styled51(View)(({
|
|
14227
14533
|
theme: theme2,
|
|
14228
14534
|
borderless
|
|
14229
14535
|
}) => {
|
|
@@ -14237,23 +14543,23 @@ var StyledContentArea = styled60(View)(({
|
|
|
14237
14543
|
justifyContent: "space-between"
|
|
14238
14544
|
};
|
|
14239
14545
|
});
|
|
14240
|
-
var StyledTextContainer =
|
|
14546
|
+
var StyledTextContainer = styled51(View)(() => ({
|
|
14241
14547
|
gap: 2
|
|
14242
14548
|
}));
|
|
14243
|
-
var StyledBannerWrapper =
|
|
14549
|
+
var StyledBannerWrapper = styled51(View)(() => ({
|
|
14244
14550
|
width: "100%",
|
|
14245
14551
|
marginTop: -48,
|
|
14246
14552
|
paddingTop: 24,
|
|
14247
14553
|
paddingBottom: 16
|
|
14248
14554
|
}));
|
|
14249
|
-
var StyledRootWrapper =
|
|
14555
|
+
var StyledRootWrapper = styled51(View)(() => {
|
|
14250
14556
|
return {
|
|
14251
14557
|
flexDirection: "column",
|
|
14252
14558
|
width: "100%",
|
|
14253
14559
|
height: "100%"
|
|
14254
14560
|
};
|
|
14255
14561
|
});
|
|
14256
|
-
var StyledNotification =
|
|
14562
|
+
var StyledNotification = styled51(Notification)(({ theme: theme2 }) => {
|
|
14257
14563
|
const { spacing } = theme2.tokens.semantics.dimensions;
|
|
14258
14564
|
return {
|
|
14259
14565
|
top: parseTokenValue8(spacing.md),
|
|
@@ -14392,12 +14698,12 @@ var useTabNavigationContext = () => {
|
|
|
14392
14698
|
return context;
|
|
14393
14699
|
};
|
|
14394
14700
|
var parseTokenValue57 = (value) => parseFloat(value);
|
|
14395
|
-
var StyledFixedList =
|
|
14701
|
+
var StyledFixedList = styled51(View)({
|
|
14396
14702
|
flexDirection: "row",
|
|
14397
14703
|
alignItems: "stretch",
|
|
14398
14704
|
width: "100%"
|
|
14399
14705
|
});
|
|
14400
|
-
var StyledTab =
|
|
14706
|
+
var StyledTab = styled51(Pressable)(
|
|
14401
14707
|
({
|
|
14402
14708
|
tabHeight,
|
|
14403
14709
|
tabMinWidth,
|
|
@@ -14541,6 +14847,6 @@ var TabNavigation = Object.assign(TabNavigationRoot, {
|
|
|
14541
14847
|
Panel: TabNavigationPanel
|
|
14542
14848
|
});
|
|
14543
14849
|
|
|
14544
|
-
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 };
|
|
14545
14851
|
//# sourceMappingURL=index.js.map
|
|
14546
14852
|
//# sourceMappingURL=index.js.map
|