@butternutbox/pawprint-native 0.6.0 → 0.8.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 +16 -0
- package/dist/index.cjs +598 -333
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +556 -292
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/Switch/Switch.tsx +3 -1
- package/src/components/molecules/NativeSelectPicker/NativeSelectPicker.stories.tsx +98 -0
- package/src/components/molecules/NativeSelectPicker/NativeSelectPicker.styled.ts +127 -0
- package/src/components/molecules/NativeSelectPicker/NativeSelectPicker.tsx +250 -0
- package/src/components/molecules/NativeSelectPicker/index.ts +5 -0
- package/src/components/molecules/Notification/Notification.stories.tsx +4 -0
- package/src/components/molecules/Notification/Notification.tsx +43 -36
- package/src/components/molecules/TabNavigation/TabNavigation.stories.tsx +35 -0
- package/src/components/molecules/TabNavigation/TabNavigation.tsx +15 -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,15 +7839,17 @@ 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 =
|
|
7850
|
-
gap: contentGap
|
|
7849
|
+
var StyledContent = styled51(View)(({ contentGap }) => ({
|
|
7850
|
+
gap: contentGap,
|
|
7851
|
+
flex: 1,
|
|
7852
|
+
minWidth: 0
|
|
7851
7853
|
}));
|
|
7852
7854
|
var Switch = React60.forwardRef(
|
|
7853
7855
|
(_a, ref) => {
|
|
@@ -7952,7 +7954,7 @@ var Switch = React60.forwardRef(
|
|
|
7952
7954
|
);
|
|
7953
7955
|
Switch.displayName = "Switch";
|
|
7954
7956
|
var parseTokenValue17 = (value) => parseFloat(value);
|
|
7955
|
-
var StyledTag =
|
|
7957
|
+
var StyledTag = styled51(View)(({ theme: theme2, tagVariant, tagSize }) => {
|
|
7956
7958
|
const { sizing, spacing, colour, badge } = theme2.tokens.components.tags;
|
|
7957
7959
|
const backgroundColorMap = {
|
|
7958
7960
|
primary: colour.primary.background,
|
|
@@ -8025,21 +8027,21 @@ var Tag = React60.forwardRef(
|
|
|
8025
8027
|
);
|
|
8026
8028
|
Tag.displayName = "Tag";
|
|
8027
8029
|
var parseTokenValue18 = (value) => parseFloat(value);
|
|
8028
|
-
var StyledTextAreaWrapper =
|
|
8030
|
+
var StyledTextAreaWrapper = styled51(Animated.View)(({ theme: theme2, isDisabled }) => {
|
|
8029
8031
|
const { spacing, colour, borderRadius, size } = theme2.tokens.components.inputs;
|
|
8030
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
8032
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
8031
8033
|
return {
|
|
8032
8034
|
flexDirection: "column",
|
|
8033
8035
|
gap: parseTokenValue18(spacing.field.gap),
|
|
8034
8036
|
width: "100%",
|
|
8035
8037
|
minWidth: parseTokenValue18(size.field.minWidth),
|
|
8036
|
-
minHeight: parseTokenValue18(
|
|
8038
|
+
minHeight: parseTokenValue18(dimensions3.sizing["3xl"]),
|
|
8037
8039
|
backgroundColor: isDisabled ? colour.field.background.inactive : colour.field.background.default,
|
|
8038
8040
|
borderRadius: parseTokenValue18(borderRadius.field.default),
|
|
8039
8041
|
position: "relative"
|
|
8040
8042
|
};
|
|
8041
8043
|
});
|
|
8042
|
-
var StyledTextArea =
|
|
8044
|
+
var StyledTextArea = styled51(TextInput)(({ theme: theme2 }) => {
|
|
8043
8045
|
const { colour } = theme2.tokens.components.inputs;
|
|
8044
8046
|
return __spreadValues({
|
|
8045
8047
|
flex: 1,
|
|
@@ -8054,17 +8056,17 @@ var StyledTextArea = styled60(TextInput)(({ theme: theme2 }) => {
|
|
|
8054
8056
|
outlineColor: "transparent"
|
|
8055
8057
|
});
|
|
8056
8058
|
});
|
|
8057
|
-
var StyledFocusRing2 =
|
|
8059
|
+
var StyledFocusRing2 = styled51(View)({
|
|
8058
8060
|
position: "absolute",
|
|
8059
8061
|
pointerEvents: "none"
|
|
8060
8062
|
});
|
|
8061
|
-
var TextAreaContainer =
|
|
8063
|
+
var TextAreaContainer = styled51(View)({
|
|
8062
8064
|
position: "relative",
|
|
8063
8065
|
width: "100%",
|
|
8064
8066
|
flex: 1,
|
|
8065
8067
|
flexDirection: "column"
|
|
8066
8068
|
});
|
|
8067
|
-
var IconWrapper2 =
|
|
8069
|
+
var IconWrapper2 = styled51(View)(({ side }) => {
|
|
8068
8070
|
return {
|
|
8069
8071
|
position: "absolute",
|
|
8070
8072
|
top: 0,
|
|
@@ -8100,7 +8102,7 @@ var TextAreaField = React60.forwardRef(
|
|
|
8100
8102
|
]);
|
|
8101
8103
|
const theme2 = useTheme();
|
|
8102
8104
|
const { spacing, colour, borderWidth, borderRadius, size } = theme2.tokens.components.inputs;
|
|
8103
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
8105
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
8104
8106
|
const focusBorderColor = theme2.tokens.semantics.colour.border.focus;
|
|
8105
8107
|
const [isFocused, setIsFocused] = useState(false);
|
|
8106
8108
|
const internalInputRef = useRef(null);
|
|
@@ -8181,8 +8183,8 @@ var TextAreaField = React60.forwardRef(
|
|
|
8181
8183
|
const fieldHeight = parseTokenValue18(size.field.height);
|
|
8182
8184
|
const textAreaMinHeight = fieldHeight;
|
|
8183
8185
|
const iconGap = parseTokenValue18(spacing.field.gap);
|
|
8184
|
-
const leadingIconSize = parseTokenValue18(
|
|
8185
|
-
const trailingIconSize = parseTokenValue18(
|
|
8186
|
+
const leadingIconSize = parseTokenValue18(dimensions3.sizing.xl);
|
|
8187
|
+
const trailingIconSize = parseTokenValue18(dimensions3.sizing.md);
|
|
8186
8188
|
const leadingIconPadding = leadingIconSize + iconGap;
|
|
8187
8189
|
const trailingIconPadding = trailingIconSize + iconGap;
|
|
8188
8190
|
return /* @__PURE__ */ jsx(Pressable, { onPress: handleWrapperPress, children: /* @__PURE__ */ jsxs(
|
|
@@ -8251,18 +8253,18 @@ var TextAreaField = React60.forwardRef(
|
|
|
8251
8253
|
);
|
|
8252
8254
|
TextAreaField.displayName = "TextArea.Field";
|
|
8253
8255
|
var parseTokenValue19 = (value) => parseFloat(value);
|
|
8254
|
-
var StyledLabelWrapper =
|
|
8256
|
+
var StyledLabelWrapper = styled51(View)({
|
|
8255
8257
|
flexDirection: "row",
|
|
8256
8258
|
alignItems: "center",
|
|
8257
8259
|
justifyContent: "space-between",
|
|
8258
8260
|
width: "100%"
|
|
8259
8261
|
});
|
|
8260
|
-
var StyledLabel =
|
|
8262
|
+
var StyledLabel = styled51(View)(({ labelGap }) => ({
|
|
8261
8263
|
flexDirection: "row",
|
|
8262
8264
|
alignItems: "center",
|
|
8263
8265
|
gap: labelGap
|
|
8264
8266
|
}));
|
|
8265
|
-
var StyledCharCountWrapper =
|
|
8267
|
+
var StyledCharCountWrapper = styled51(View)(({ charCountGap, charCountPadding }) => ({
|
|
8266
8268
|
flexDirection: "row",
|
|
8267
8269
|
alignItems: "center",
|
|
8268
8270
|
gap: charCountGap,
|
|
@@ -8326,7 +8328,7 @@ var TextAreaLabel = React60.forwardRef(
|
|
|
8326
8328
|
);
|
|
8327
8329
|
TextAreaLabel.displayName = "TextArea.Label";
|
|
8328
8330
|
var parseTokenValue20 = (value) => parseFloat(value);
|
|
8329
|
-
var StyledRoot6 =
|
|
8331
|
+
var StyledRoot6 = styled51(View)(({ theme: theme2 }) => {
|
|
8330
8332
|
const { spacing } = theme2.tokens.components.inputs;
|
|
8331
8333
|
return {
|
|
8332
8334
|
gap: parseTokenValue20(spacing.gap)
|
|
@@ -8421,25 +8423,25 @@ var AccordionContext = React60.createContext({
|
|
|
8421
8423
|
size: "small"
|
|
8422
8424
|
});
|
|
8423
8425
|
var parseTokenValue21 = (value) => parseFloat(value);
|
|
8424
|
-
var StyledRoot7 =
|
|
8426
|
+
var StyledRoot7 = styled51(View)(({ rootGap }) => ({
|
|
8425
8427
|
width: "100%",
|
|
8426
8428
|
flexDirection: "column",
|
|
8427
8429
|
gap: rootGap
|
|
8428
8430
|
}));
|
|
8429
|
-
var StyledItem =
|
|
8431
|
+
var StyledItem = styled51(View)({
|
|
8430
8432
|
flexDirection: "column"
|
|
8431
8433
|
});
|
|
8432
|
-
var StyledTrigger =
|
|
8434
|
+
var StyledTrigger = styled51(Pressable)(({ triggerOpacity }) => ({
|
|
8433
8435
|
flexDirection: "row",
|
|
8434
8436
|
alignItems: "center",
|
|
8435
8437
|
justifyContent: "space-between",
|
|
8436
8438
|
width: "100%",
|
|
8437
8439
|
opacity: triggerOpacity
|
|
8438
8440
|
}));
|
|
8439
|
-
var StyledPanel =
|
|
8441
|
+
var StyledPanel = styled51(View)(({ panelGap }) => ({
|
|
8440
8442
|
marginTop: panelGap
|
|
8441
8443
|
}));
|
|
8442
|
-
var StyledDivider =
|
|
8444
|
+
var StyledDivider = styled51(View)(({ dividerColor, dividerMarginTop }) => ({
|
|
8443
8445
|
height: 1,
|
|
8444
8446
|
backgroundColor: dividerColor,
|
|
8445
8447
|
marginTop: dividerMarginTop
|
|
@@ -8695,7 +8697,7 @@ var Animated5 = React60.forwardRef(
|
|
|
8695
8697
|
const delayMs = delay !== void 0 && delay > 0 ? Math.round(delay * 1e3) : 0;
|
|
8696
8698
|
const entering = delayMs > 0 ? buildDelayedEntering(variant, delayMs) : ENTERING[variant];
|
|
8697
8699
|
return /* @__PURE__ */ jsx(
|
|
8698
|
-
|
|
8700
|
+
Animated10.View,
|
|
8699
8701
|
__spreadProps(__spreadValues({
|
|
8700
8702
|
ref,
|
|
8701
8703
|
entering,
|
|
@@ -8763,7 +8765,7 @@ var OPEN_DURATION = 320;
|
|
|
8763
8765
|
var CLOSE_DURATION = 220;
|
|
8764
8766
|
var DISMISS_THRESHOLD = 80;
|
|
8765
8767
|
var parseTokenValue22 = (value) => parseFloat(value);
|
|
8766
|
-
var StyledPanel2 =
|
|
8768
|
+
var StyledPanel2 = styled51(View)(
|
|
8767
8769
|
({
|
|
8768
8770
|
panelBorderRadius,
|
|
8769
8771
|
panelBgColor,
|
|
@@ -8800,7 +8802,7 @@ var DrawerContent = React60.forwardRef(
|
|
|
8800
8802
|
var _a2;
|
|
8801
8803
|
const theme2 = useTheme();
|
|
8802
8804
|
const { drawer, modal } = theme2.tokens.components;
|
|
8803
|
-
const { colour, dimensions } = theme2.tokens.semantics;
|
|
8805
|
+
const { colour, dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
8804
8806
|
const { isOpen, closeDrawer, onExitComplete } = useDrawerContext();
|
|
8805
8807
|
const { height: windowHeight } = useWindowDimensions();
|
|
8806
8808
|
const maxHeight = windowHeight * 0.9;
|
|
@@ -8972,7 +8974,7 @@ var DrawerContent = React60.forwardRef(
|
|
|
8972
8974
|
panelBgColor: colour.background.container.default,
|
|
8973
8975
|
panelMaxWidth: parseTokenValue22(drawer.size.maxWidth),
|
|
8974
8976
|
panelFlex: panelHeight > 0 ? 1 : void 0,
|
|
8975
|
-
panelBorderWidth: parseTokenValue22(
|
|
8977
|
+
panelBorderWidth: parseTokenValue22(dimensions3.borderWidth.sm),
|
|
8976
8978
|
panelBorderColor: colour.border.default,
|
|
8977
8979
|
panelShadowColor: modal.shadow.color,
|
|
8978
8980
|
panelShadowOffsetY: parseTokenValue22(modal.shadow.offsetY),
|
|
@@ -8998,7 +9000,7 @@ var styles = StyleSheet.create({
|
|
|
8998
9000
|
}
|
|
8999
9001
|
});
|
|
9000
9002
|
var parseTokenValue23 = (value) => parseFloat(value);
|
|
9001
|
-
var StyledWrapper =
|
|
9003
|
+
var StyledWrapper = styled51(View)(
|
|
9002
9004
|
({ grabberPaddingTop }) => ({
|
|
9003
9005
|
alignItems: "center",
|
|
9004
9006
|
justifyContent: "center",
|
|
@@ -9007,7 +9009,7 @@ var StyledWrapper = styled60(View)(
|
|
|
9007
9009
|
paddingBottom: grabberPaddingTop
|
|
9008
9010
|
})
|
|
9009
9011
|
);
|
|
9010
|
-
var StyledBar =
|
|
9012
|
+
var StyledBar = styled51(View)(({ barWidth, barHeight, barBorderRadius, barColor }) => ({
|
|
9011
9013
|
width: barWidth,
|
|
9012
9014
|
height: barHeight,
|
|
9013
9015
|
borderRadius: barBorderRadius,
|
|
@@ -9088,7 +9090,7 @@ var styles2 = StyleSheet.create({
|
|
|
9088
9090
|
}
|
|
9089
9091
|
});
|
|
9090
9092
|
var parseTokenValue25 = (value) => parseFloat(value);
|
|
9091
|
-
var StyledGrabberWrapper =
|
|
9093
|
+
var StyledGrabberWrapper = styled51(View)(
|
|
9092
9094
|
({ grabberPaddingTop }) => ({
|
|
9093
9095
|
alignItems: "center",
|
|
9094
9096
|
justifyContent: "center",
|
|
@@ -9096,13 +9098,13 @@ var StyledGrabberWrapper = styled60(View)(
|
|
|
9096
9098
|
paddingTop: grabberPaddingTop
|
|
9097
9099
|
})
|
|
9098
9100
|
);
|
|
9099
|
-
var StyledGrabberBar =
|
|
9101
|
+
var StyledGrabberBar = styled51(View)(({ barWidth, barHeight, barBorderRadius, barColor }) => ({
|
|
9100
9102
|
width: barWidth,
|
|
9101
9103
|
height: barHeight,
|
|
9102
9104
|
borderRadius: barBorderRadius,
|
|
9103
9105
|
backgroundColor: barColor
|
|
9104
9106
|
}));
|
|
9105
|
-
var StyledHeader =
|
|
9107
|
+
var StyledHeader = styled51(View)(
|
|
9106
9108
|
({
|
|
9107
9109
|
headerPaddingHorizontal,
|
|
9108
9110
|
headerPaddingBottom,
|
|
@@ -9122,7 +9124,7 @@ var StyledHeader = styled60(View)(
|
|
|
9122
9124
|
borderBottomColor: headerBorderColor
|
|
9123
9125
|
} : {}), headerBgColor ? { backgroundColor: headerBgColor } : {})
|
|
9124
9126
|
);
|
|
9125
|
-
var StyledImageContainer =
|
|
9127
|
+
var StyledImageContainer = styled51(View)(({ imageHeight, imageBorderRadius }) => ({
|
|
9126
9128
|
position: "relative",
|
|
9127
9129
|
width: "100%",
|
|
9128
9130
|
height: imageHeight,
|
|
@@ -9130,20 +9132,20 @@ var StyledImageContainer = styled60(View)(({ imageHeight, imageBorderRadius }) =
|
|
|
9130
9132
|
overflow: "hidden",
|
|
9131
9133
|
flexShrink: 0
|
|
9132
9134
|
}));
|
|
9133
|
-
var StyledImageCloseWrapper =
|
|
9135
|
+
var StyledImageCloseWrapper = styled51(View)(({ closeTop, closeRight }) => ({
|
|
9134
9136
|
position: "absolute",
|
|
9135
9137
|
top: closeTop,
|
|
9136
9138
|
right: closeRight,
|
|
9137
9139
|
zIndex: 1
|
|
9138
9140
|
}));
|
|
9139
|
-
var StyledTitleRow =
|
|
9141
|
+
var StyledTitleRow = styled51(View)(({ rowGap }) => ({
|
|
9140
9142
|
flexDirection: "row",
|
|
9141
9143
|
gap: rowGap,
|
|
9142
9144
|
alignItems: "flex-start",
|
|
9143
9145
|
width: "100%",
|
|
9144
9146
|
flexShrink: 0
|
|
9145
9147
|
}));
|
|
9146
|
-
var StyledTitleContent =
|
|
9148
|
+
var StyledTitleContent = styled51(View)(
|
|
9147
9149
|
({ contentGap }) => ({
|
|
9148
9150
|
flexDirection: "column",
|
|
9149
9151
|
gap: contentGap,
|
|
@@ -9169,7 +9171,7 @@ var DrawerHeader = React60.forwardRef(
|
|
|
9169
9171
|
var _a2, _b2, _c, _d, _e, _f;
|
|
9170
9172
|
const theme2 = useTheme();
|
|
9171
9173
|
const { drawer, grabber } = theme2.tokens.components;
|
|
9172
|
-
const { colour, dimensions } = theme2.tokens.semantics;
|
|
9174
|
+
const { colour, dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
9173
9175
|
const dragContext = useDrawerDragContext();
|
|
9174
9176
|
const contextValue = useMemo(() => ({ variant }), [variant]);
|
|
9175
9177
|
const { closeChild, otherChildren } = splitChildren(children);
|
|
@@ -9220,7 +9222,7 @@ var DrawerHeader = React60.forwardRef(
|
|
|
9220
9222
|
),
|
|
9221
9223
|
headerPaddingBottom: parseTokenValue25(headerSpacing.bottomPadding),
|
|
9222
9224
|
headerGap: parseTokenValue25(headerSpacing.gap),
|
|
9223
|
-
headerBorderBottomWidth: variant === "titleAndText" ? parseTokenValue25(
|
|
9225
|
+
headerBorderBottomWidth: variant === "titleAndText" ? parseTokenValue25(dimensions3.borderWidth.sm) : void 0,
|
|
9224
9226
|
headerBorderColor: variant === "titleAndText" ? colour.border.default : void 0,
|
|
9225
9227
|
headerBgColor: variant === "fullBleed" ? drawer.drawerHeader.colour.background.fullBleed : void 0
|
|
9226
9228
|
}, props), {
|
|
@@ -9237,7 +9239,7 @@ var DrawerHeader = React60.forwardRef(
|
|
|
9237
9239
|
{
|
|
9238
9240
|
barWidth: parseTokenValue25(grabber.size.bar.width),
|
|
9239
9241
|
barHeight: parseTokenValue25(grabber.size.bar.height),
|
|
9240
|
-
barBorderRadius: parseTokenValue25(
|
|
9242
|
+
barBorderRadius: parseTokenValue25(dimensions3.borderRadius.round),
|
|
9241
9243
|
barColor: grabber.colour.background.default
|
|
9242
9244
|
}
|
|
9243
9245
|
)
|
|
@@ -9283,7 +9285,7 @@ var DrawerDescription = React60.forwardRef(
|
|
|
9283
9285
|
);
|
|
9284
9286
|
DrawerDescription.displayName = "Drawer.Description";
|
|
9285
9287
|
var parseTokenValue26 = (value) => parseFloat(value);
|
|
9286
|
-
var StyledScrollView =
|
|
9288
|
+
var StyledScrollView = styled51(ScrollView)(
|
|
9287
9289
|
({
|
|
9288
9290
|
bodyPaddingHorizontal,
|
|
9289
9291
|
bodyPaddingRight,
|
|
@@ -9340,7 +9342,7 @@ var DrawerBody = React60.forwardRef(
|
|
|
9340
9342
|
);
|
|
9341
9343
|
DrawerBody.displayName = "Drawer.Body";
|
|
9342
9344
|
var parseTokenValue27 = (value) => parseFloat(value);
|
|
9343
|
-
var StyledFooter =
|
|
9345
|
+
var StyledFooter = styled51(View)(({ footerPaddingTop, footerPaddingHorizontal, footerPaddingBottom }) => ({
|
|
9344
9346
|
flexShrink: 0,
|
|
9345
9347
|
paddingTop: footerPaddingTop,
|
|
9346
9348
|
paddingHorizontal: footerPaddingHorizontal,
|
|
@@ -9452,7 +9454,7 @@ var styles3 = StyleSheet.create({
|
|
|
9452
9454
|
}
|
|
9453
9455
|
});
|
|
9454
9456
|
var parseTokenValue28 = (value) => parseFloat(value);
|
|
9455
|
-
var StyledDockRoot =
|
|
9457
|
+
var StyledDockRoot = styled51(View)(
|
|
9456
9458
|
({
|
|
9457
9459
|
dockBgColor,
|
|
9458
9460
|
dockBorderTopWidth,
|
|
@@ -9470,7 +9472,7 @@ var StyledDockRoot = styled60(View)(
|
|
|
9470
9472
|
paddingHorizontal: dockPaddingHorizontal
|
|
9471
9473
|
})
|
|
9472
9474
|
);
|
|
9473
|
-
var StyledStackedInner =
|
|
9475
|
+
var StyledStackedInner = styled51(View)(
|
|
9474
9476
|
({ innerGap }) => ({
|
|
9475
9477
|
alignItems: "center",
|
|
9476
9478
|
gap: innerGap,
|
|
@@ -9478,7 +9480,7 @@ var StyledStackedInner = styled60(View)(
|
|
|
9478
9480
|
maxWidth: 520
|
|
9479
9481
|
})
|
|
9480
9482
|
);
|
|
9481
|
-
var StyledButtonGroup =
|
|
9483
|
+
var StyledButtonGroup = styled51(View)(({ groupDirection, groupAlign, groupJustify, groupGap }) => __spreadValues({
|
|
9482
9484
|
flexDirection: groupDirection,
|
|
9483
9485
|
alignItems: groupAlign,
|
|
9484
9486
|
justifyContent: groupJustify,
|
|
@@ -9490,7 +9492,7 @@ var ButtonDock = React60.forwardRef(
|
|
|
9490
9492
|
var _b = _a, { variant = "stacked", leadingContent, description, children } = _b, rest = __objRest(_b, ["variant", "leadingContent", "description", "children"]);
|
|
9491
9493
|
const theme2 = useTheme();
|
|
9492
9494
|
const { buttonDock, buttonGroup } = theme2.tokens.components;
|
|
9493
|
-
const { dimensions, typography } = theme2.tokens.semantics;
|
|
9495
|
+
const { dimensions: dimensions3, typography } = theme2.tokens.semantics;
|
|
9494
9496
|
const isStacked = variant === "stacked";
|
|
9495
9497
|
const groupGap = parseTokenValue28(
|
|
9496
9498
|
isStacked ? buttonGroup.spacing.stacked.gap : buttonGroup.spacing.sideBySide.gap
|
|
@@ -9500,7 +9502,7 @@ var ButtonDock = React60.forwardRef(
|
|
|
9500
9502
|
__spreadProps(__spreadValues({
|
|
9501
9503
|
ref,
|
|
9502
9504
|
dockBgColor: buttonDock.colour.background,
|
|
9503
|
-
dockBorderTopWidth: parseTokenValue28(
|
|
9505
|
+
dockBorderTopWidth: parseTokenValue28(dimensions3.borderWidth.sm),
|
|
9504
9506
|
dockBorderTopColor: buttonDock.colour.border,
|
|
9505
9507
|
dockPaddingVertical: parseTokenValue28(
|
|
9506
9508
|
buttonDock.spacing[variant].mobile.topPadding
|
|
@@ -9552,17 +9554,17 @@ var ButtonDock = React60.forwardRef(
|
|
|
9552
9554
|
);
|
|
9553
9555
|
ButtonDock.displayName = "ButtonDock";
|
|
9554
9556
|
var parseTokenValue29 = (value) => parseFloat(value);
|
|
9555
|
-
var StyledGroupRoot =
|
|
9557
|
+
var StyledGroupRoot = styled51(View)(({ rootGap }) => ({
|
|
9556
9558
|
gap: rootGap,
|
|
9557
9559
|
alignItems: "center",
|
|
9558
9560
|
width: "100%"
|
|
9559
9561
|
}));
|
|
9560
|
-
var StyledButtonRow =
|
|
9562
|
+
var StyledButtonRow = styled51(View)(({ rowDirection, rowAlign, rowGap }) => __spreadValues({
|
|
9561
9563
|
flexDirection: rowDirection,
|
|
9562
9564
|
width: "100%",
|
|
9563
9565
|
gap: rowGap
|
|
9564
9566
|
}, rowAlign ? { alignItems: rowAlign } : {}));
|
|
9565
|
-
var StyledChildSlot =
|
|
9567
|
+
var StyledChildSlot = styled51(View)(
|
|
9566
9568
|
({ slotInline }) => __spreadValues({}, slotInline ? { flex: 1, minWidth: 0 } : { width: "100%", alignSelf: "stretch" })
|
|
9567
9569
|
);
|
|
9568
9570
|
var ButtonGroup = React60.forwardRef(
|
|
@@ -9614,7 +9616,7 @@ var ButtonGroup = React60.forwardRef(
|
|
|
9614
9616
|
);
|
|
9615
9617
|
ButtonGroup.displayName = "ButtonGroup";
|
|
9616
9618
|
var parseTokenValue30 = (value) => parseFloat(value);
|
|
9617
|
-
var StyledRootPressable =
|
|
9619
|
+
var StyledRootPressable = styled51(Pressable)(
|
|
9618
9620
|
({
|
|
9619
9621
|
rootFlexAlign,
|
|
9620
9622
|
rootGap,
|
|
@@ -9633,7 +9635,7 @@ var StyledRootPressable = styled60(Pressable)(
|
|
|
9633
9635
|
opacity: rootOpacity
|
|
9634
9636
|
}, rootPaddingVertical !== void 0 ? { paddingVertical: rootPaddingVertical } : {}), rootPaddingHorizontal !== void 0 ? { paddingHorizontal: rootPaddingHorizontal } : {}), rootMaxWidth !== void 0 ? { maxWidth: rootMaxWidth, width: "100%" } : {}), rootBgColor ? { backgroundColor: rootBgColor } : {}), rootBorderWidth !== void 0 ? { borderWidth: rootBorderWidth, borderColor: rootBorderColor } : {}), rootBorderRadius !== void 0 ? { borderRadius: rootBorderRadius } : {})
|
|
9635
9637
|
);
|
|
9636
|
-
var StyledControl =
|
|
9638
|
+
var StyledControl = styled51(View)(
|
|
9637
9639
|
({
|
|
9638
9640
|
controlSize,
|
|
9639
9641
|
controlBorderWidth,
|
|
@@ -9652,13 +9654,13 @@ var StyledControl = styled60(View)(
|
|
|
9652
9654
|
justifyContent: "center"
|
|
9653
9655
|
})
|
|
9654
9656
|
);
|
|
9655
|
-
var StyledContent2 =
|
|
9657
|
+
var StyledContent2 = styled51(View)(({ contentGap }) => ({
|
|
9656
9658
|
flexDirection: "column",
|
|
9657
9659
|
gap: contentGap,
|
|
9658
9660
|
flex: 1,
|
|
9659
9661
|
minWidth: 0
|
|
9660
9662
|
}));
|
|
9661
|
-
var StyledIllustration =
|
|
9663
|
+
var StyledIllustration = styled51(View)(({ illustrationSize }) => ({
|
|
9662
9664
|
flexShrink: 0,
|
|
9663
9665
|
width: illustrationSize,
|
|
9664
9666
|
height: illustrationSize,
|
|
@@ -9689,7 +9691,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9689
9691
|
]);
|
|
9690
9692
|
const theme2 = useTheme();
|
|
9691
9693
|
const { checkbox } = theme2.tokens.components;
|
|
9692
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
9694
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
9693
9695
|
const isControlled = controlledChecked !== void 0;
|
|
9694
9696
|
const [internalChecked, setInternalChecked] = React60.useState(defaultChecked);
|
|
9695
9697
|
const isChecked = isControlled ? controlledChecked : internalChecked;
|
|
@@ -9735,7 +9737,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9735
9737
|
checkbox.control.border.default
|
|
9736
9738
|
),
|
|
9737
9739
|
controlBorderColor: isChecked ? checkbox.colour.background.selected : checkbox.colour.border.default,
|
|
9738
|
-
controlBorderRadius: parseTokenValue30(
|
|
9740
|
+
controlBorderRadius: parseTokenValue30(dimensions3.borderRadius.xs),
|
|
9739
9741
|
controlBgColor: isChecked ? checkbox.colour.background.selected : "transparent",
|
|
9740
9742
|
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { children: /* @__PURE__ */ jsx(Icon, { icon: Check_default, size: "xs", colour: "alt" }) })
|
|
9741
9743
|
}
|
|
@@ -9782,7 +9784,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9782
9784
|
);
|
|
9783
9785
|
Checkbox.displayName = "Checkbox";
|
|
9784
9786
|
var parseTokenValue31 = (value) => parseFloat(value);
|
|
9785
|
-
var StyledGroup =
|
|
9787
|
+
var StyledGroup = styled51(View)(({ groupDirection, groupGap }) => ({
|
|
9786
9788
|
flexDirection: groupDirection,
|
|
9787
9789
|
gap: groupGap
|
|
9788
9790
|
}));
|
|
@@ -9896,7 +9898,7 @@ var CopyFieldInput = React60.forwardRef(
|
|
|
9896
9898
|
);
|
|
9897
9899
|
CopyFieldInput.displayName = "CopyField.Field";
|
|
9898
9900
|
var parseTokenValue32 = (value) => parseFloat(value);
|
|
9899
|
-
var StyledRoot8 =
|
|
9901
|
+
var StyledRoot8 = styled51(View)(({ theme: theme2 }) => {
|
|
9900
9902
|
const { spacing } = theme2.tokens.components.inputs;
|
|
9901
9903
|
return {
|
|
9902
9904
|
gap: parseTokenValue32(spacing.gap)
|
|
@@ -9977,13 +9979,13 @@ var FilterTabContext = React60.createContext({
|
|
|
9977
9979
|
}
|
|
9978
9980
|
});
|
|
9979
9981
|
var parseTokenValue33 = (value) => parseFloat(value);
|
|
9980
|
-
var StyledRoot9 =
|
|
9982
|
+
var StyledRoot9 = styled51(View)(({ rootGap }) => ({
|
|
9981
9983
|
flexDirection: "row",
|
|
9982
9984
|
alignItems: "center",
|
|
9983
9985
|
gap: rootGap,
|
|
9984
9986
|
flexWrap: "nowrap"
|
|
9985
9987
|
}));
|
|
9986
|
-
var StyledItem2 =
|
|
9988
|
+
var StyledItem2 = styled51(Pressable)(
|
|
9987
9989
|
({
|
|
9988
9990
|
itemHeight,
|
|
9989
9991
|
itemMinWidth,
|
|
@@ -10034,7 +10036,7 @@ var FilterTabItem = React60.forwardRef(
|
|
|
10034
10036
|
const isIconOnly = !!IconOnlyIcon && !label;
|
|
10035
10037
|
const isActive = isSelected && !disabled;
|
|
10036
10038
|
const { tabItem } = theme2.tokens.components.filterTabs;
|
|
10037
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
10039
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
10038
10040
|
const height = parseTokenValue33(
|
|
10039
10041
|
size === "lg" ? tabItem.size.large.height : tabItem.size.small.height
|
|
10040
10042
|
);
|
|
@@ -10059,7 +10061,7 @@ var FilterTabItem = React60.forwardRef(
|
|
|
10059
10061
|
itemBgColor: isActive ? tabItem.colour.background.selected : tabItem.colour.background.default,
|
|
10060
10062
|
itemOpacity: disabled ? parseFloat(tabItem.opacity.disabled.default) : 1,
|
|
10061
10063
|
isIconOnly,
|
|
10062
|
-
style: { gap: parseTokenValue33(
|
|
10064
|
+
style: { gap: parseTokenValue33(dimensions3.spacing["2xs"]) }
|
|
10063
10065
|
}, rest), {
|
|
10064
10066
|
children: [
|
|
10065
10067
|
isIconOnly && IconOnlyIcon && /* @__PURE__ */ jsx(
|
|
@@ -10158,7 +10160,7 @@ var FilterTab = Object.assign(FilterTabRoot, {
|
|
|
10158
10160
|
Item: FilterTabItem
|
|
10159
10161
|
});
|
|
10160
10162
|
var parseTokenValue34 = (value) => parseFloat(value);
|
|
10161
|
-
var StyledFieldWrapper =
|
|
10163
|
+
var StyledFieldWrapper = styled51(View)(
|
|
10162
10164
|
({
|
|
10163
10165
|
fieldBgColor,
|
|
10164
10166
|
fieldBorderColor,
|
|
@@ -10179,7 +10181,7 @@ var StyledFieldWrapper = styled60(View)(
|
|
|
10179
10181
|
overflow: "hidden"
|
|
10180
10182
|
})
|
|
10181
10183
|
);
|
|
10182
|
-
var StyledTextInput =
|
|
10184
|
+
var StyledTextInput = styled51(TextInput)(({ inputColor, inputFontFamily, inputFontWeight, inputFontSize }) => __spreadProps(__spreadValues({
|
|
10183
10185
|
textAlign: "center",
|
|
10184
10186
|
outlineStyle: "none",
|
|
10185
10187
|
padding: 0,
|
|
@@ -10193,7 +10195,7 @@ var StyledTextInput = styled60(TextInput)(({ inputColor, inputFontFamily, inputF
|
|
|
10193
10195
|
fontSize: inputFontSize,
|
|
10194
10196
|
lineHeight: 0
|
|
10195
10197
|
}));
|
|
10196
|
-
var StyledRow =
|
|
10198
|
+
var StyledRow = styled51(View)(({ rowGap }) => ({
|
|
10197
10199
|
flexDirection: "row",
|
|
10198
10200
|
alignItems: "center",
|
|
10199
10201
|
alignSelf: "center",
|
|
@@ -10241,7 +10243,7 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10241
10243
|
var _a2;
|
|
10242
10244
|
const theme2 = useTheme();
|
|
10243
10245
|
const tokens3 = theme2.tokens.components.numberField;
|
|
10244
|
-
const
|
|
10246
|
+
const inputTokens3 = theme2.tokens.components.inputs;
|
|
10245
10247
|
const [isFocused, setIsFocused] = React60.useState(false);
|
|
10246
10248
|
const [isEdited, setIsEdited] = React60.useState(false);
|
|
10247
10249
|
const initialValueRef = React60.useRef((_a2 = value != null ? value : defaultValue) != null ? _a2 : "");
|
|
@@ -10252,11 +10254,11 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10252
10254
|
const fieldMinWidth = parseTokenValue34(fieldSizeTokens.minWidth);
|
|
10253
10255
|
const fieldHeight = parseTokenValue34(fieldSizeTokens.height);
|
|
10254
10256
|
const fieldPaddingHorizontal = parseTokenValue34(
|
|
10255
|
-
|
|
10257
|
+
inputTokens3.spacing.field.horizontalPadding
|
|
10256
10258
|
);
|
|
10257
10259
|
const getBorderColor = () => {
|
|
10258
|
-
if (state === "error") return
|
|
10259
|
-
if (state === "success") return
|
|
10260
|
+
if (state === "error") return inputTokens3.colour.field.border.error;
|
|
10261
|
+
if (state === "success") return inputTokens3.colour.field.border.success;
|
|
10260
10262
|
if (isFocused) return tokens3.colour.field.border.selected;
|
|
10261
10263
|
if (isEdited) return tokens3.colour.field.border.edited;
|
|
10262
10264
|
return tokens3.colour.field.border.default;
|
|
@@ -10355,11 +10357,11 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10355
10357
|
);
|
|
10356
10358
|
NumberFieldInput.displayName = "NumberField.Input";
|
|
10357
10359
|
var parseTokenValue35 = (value) => parseFloat(value);
|
|
10358
|
-
var StyledRoot10 =
|
|
10360
|
+
var StyledRoot10 = styled51(View)(({ rootGap }) => ({
|
|
10359
10361
|
alignItems: "center",
|
|
10360
10362
|
gap: rootGap
|
|
10361
10363
|
}));
|
|
10362
|
-
var StyledLabelGroup =
|
|
10364
|
+
var StyledLabelGroup = styled51(View)(({ labelGap }) => ({
|
|
10363
10365
|
gap: labelGap
|
|
10364
10366
|
}));
|
|
10365
10367
|
var NumberField = React60.forwardRef(
|
|
@@ -10508,7 +10510,7 @@ var PasswordFieldInput = React60.forwardRef((_a, ref) => {
|
|
|
10508
10510
|
});
|
|
10509
10511
|
PasswordFieldInput.displayName = "PasswordField.Field";
|
|
10510
10512
|
var parseTokenValue36 = (value) => parseFloat(value);
|
|
10511
|
-
var StyledErrorRow2 =
|
|
10513
|
+
var StyledErrorRow2 = styled51(View)(({ gap }) => ({
|
|
10512
10514
|
flexDirection: "row",
|
|
10513
10515
|
alignItems: "center",
|
|
10514
10516
|
gap
|
|
@@ -10540,12 +10542,12 @@ var PasswordFieldError = React60.forwardRef((_a, ref) => {
|
|
|
10540
10542
|
});
|
|
10541
10543
|
PasswordFieldError.displayName = "PasswordField.Error";
|
|
10542
10544
|
var parseTokenValue37 = (value) => parseFloat(value);
|
|
10543
|
-
var StyledRequirementsList =
|
|
10545
|
+
var StyledRequirementsList = styled51(View)(
|
|
10544
10546
|
({ listGap }) => ({
|
|
10545
10547
|
gap: listGap
|
|
10546
10548
|
})
|
|
10547
10549
|
);
|
|
10548
|
-
var StyledRequirementItem =
|
|
10550
|
+
var StyledRequirementItem = styled51(View)(
|
|
10549
10551
|
({ itemGap }) => ({
|
|
10550
10552
|
flexDirection: "row",
|
|
10551
10553
|
alignItems: "center",
|
|
@@ -10602,7 +10604,7 @@ var PasswordFieldRequirements = React60.forwardRef((_a, ref) => {
|
|
|
10602
10604
|
});
|
|
10603
10605
|
PasswordFieldRequirements.displayName = "PasswordField.Requirements";
|
|
10604
10606
|
var parseTokenValue38 = (value) => parseFloat(value);
|
|
10605
|
-
var StyledRoot11 =
|
|
10607
|
+
var StyledRoot11 = styled51(View)(({ theme: theme2 }) => {
|
|
10606
10608
|
const { spacing } = theme2.tokens.components.inputs;
|
|
10607
10609
|
return {
|
|
10608
10610
|
gap: parseTokenValue38(spacing.gap)
|
|
@@ -10716,19 +10718,19 @@ function usePasswordField({
|
|
|
10716
10718
|
});
|
|
10717
10719
|
}
|
|
10718
10720
|
var parseTokenValue39 = (value) => parseFloat(value);
|
|
10719
|
-
var StyledRoot12 =
|
|
10721
|
+
var StyledRoot12 = styled51(View)(({ rootGap }) => ({
|
|
10720
10722
|
flexDirection: "column",
|
|
10721
10723
|
alignItems: "stretch",
|
|
10722
10724
|
gap: rootGap,
|
|
10723
10725
|
width: "100%"
|
|
10724
10726
|
}));
|
|
10725
|
-
var StyledHeader2 =
|
|
10727
|
+
var StyledHeader2 = styled51(View)({
|
|
10726
10728
|
flexDirection: "row",
|
|
10727
10729
|
alignItems: "center",
|
|
10728
10730
|
justifyContent: "space-between",
|
|
10729
10731
|
width: "100%"
|
|
10730
10732
|
});
|
|
10731
|
-
var StyledTrack =
|
|
10733
|
+
var StyledTrack = styled51(View)(({ trackHeight, trackMinWidth, trackBorderRadius, trackBgColor }) => ({
|
|
10732
10734
|
position: "relative",
|
|
10733
10735
|
width: "100%",
|
|
10734
10736
|
minWidth: trackMinWidth,
|
|
@@ -10737,7 +10739,7 @@ var StyledTrack = styled60(View)(({ trackHeight, trackMinWidth, trackBorderRadiu
|
|
|
10737
10739
|
backgroundColor: trackBgColor,
|
|
10738
10740
|
overflow: "hidden"
|
|
10739
10741
|
}));
|
|
10740
|
-
var StyledIndicator =
|
|
10742
|
+
var StyledIndicator = styled51(View)(({ indicatorBorderRadius, indicatorBgColor }) => ({
|
|
10741
10743
|
height: "100%",
|
|
10742
10744
|
borderRadius: indicatorBorderRadius,
|
|
10743
10745
|
backgroundColor: indicatorBgColor
|
|
@@ -10834,7 +10836,7 @@ var Progress = React60.forwardRef(
|
|
|
10834
10836
|
);
|
|
10835
10837
|
Progress.displayName = "Progress";
|
|
10836
10838
|
var parseTokenValue40 = (value) => parseFloat(value);
|
|
10837
|
-
var StyledRadioRoot =
|
|
10839
|
+
var StyledRadioRoot = styled51(Pressable)(
|
|
10838
10840
|
({
|
|
10839
10841
|
radioGap,
|
|
10840
10842
|
radioOpacity,
|
|
@@ -10853,7 +10855,7 @@ var StyledRadioRoot = styled60(Pressable)(
|
|
|
10853
10855
|
opacity: radioOpacity
|
|
10854
10856
|
}, radioPaddingVertical !== void 0 ? { paddingVertical: radioPaddingVertical } : {}), radioPaddingHorizontal !== void 0 ? { paddingHorizontal: radioPaddingHorizontal } : {}), radioMaxWidth !== void 0 ? { maxWidth: radioMaxWidth } : {}), radioBgColor ? { backgroundColor: radioBgColor } : {}), radioBorderWidth !== void 0 ? { borderWidth: radioBorderWidth, borderColor: radioBorderColor } : {}), radioBorderRadius !== void 0 ? { borderRadius: radioBorderRadius } : {})
|
|
10855
10857
|
);
|
|
10856
|
-
var StyledRadioControl =
|
|
10858
|
+
var StyledRadioControl = styled51(View)(({ controlSize, controlBorderWidth, controlBorderColor }) => ({
|
|
10857
10859
|
width: controlSize,
|
|
10858
10860
|
height: controlSize,
|
|
10859
10861
|
minWidth: controlSize,
|
|
@@ -10864,20 +10866,20 @@ var StyledRadioControl = styled60(View)(({ controlSize, controlBorderWidth, cont
|
|
|
10864
10866
|
alignItems: "center",
|
|
10865
10867
|
justifyContent: "center"
|
|
10866
10868
|
}));
|
|
10867
|
-
var StyledIndicator2 =
|
|
10869
|
+
var StyledIndicator2 = styled51(View)(({ indicatorSize, indicatorBgColor }) => ({
|
|
10868
10870
|
width: indicatorSize,
|
|
10869
10871
|
height: indicatorSize,
|
|
10870
10872
|
borderRadius: indicatorSize / 2,
|
|
10871
10873
|
backgroundColor: indicatorBgColor
|
|
10872
10874
|
}));
|
|
10873
|
-
var StyledTextContent =
|
|
10875
|
+
var StyledTextContent = styled51(View)(({ textContentGap }) => ({
|
|
10874
10876
|
flexDirection: "column",
|
|
10875
10877
|
gap: textContentGap
|
|
10876
10878
|
}));
|
|
10877
|
-
var StyledAssetWrapper =
|
|
10879
|
+
var StyledAssetWrapper = styled51(View)({
|
|
10878
10880
|
alignSelf: "center"
|
|
10879
10881
|
});
|
|
10880
|
-
var StyledTagWrapper =
|
|
10882
|
+
var StyledTagWrapper = styled51(View)(
|
|
10881
10883
|
({ tagTopPadding }) => ({
|
|
10882
10884
|
alignItems: "flex-start",
|
|
10883
10885
|
paddingTop: tagTopPadding
|
|
@@ -10988,7 +10990,7 @@ var Radio = React60.forwardRef(
|
|
|
10988
10990
|
);
|
|
10989
10991
|
Radio.displayName = "Radio";
|
|
10990
10992
|
var parseTokenValue41 = (value) => parseFloat(value);
|
|
10991
|
-
var StyledRadioGroup =
|
|
10993
|
+
var StyledRadioGroup = styled51(View)(({ groupDirection, groupGap }) => ({
|
|
10992
10994
|
flexDirection: groupDirection,
|
|
10993
10995
|
gap: groupGap
|
|
10994
10996
|
}));
|
|
@@ -11114,7 +11116,7 @@ var SearchFieldInput = React60.forwardRef((_a, ref) => {
|
|
|
11114
11116
|
});
|
|
11115
11117
|
SearchFieldInput.displayName = "SearchField.Field";
|
|
11116
11118
|
var parseTokenValue42 = (value) => parseFloat(value);
|
|
11117
|
-
var StyledRoot13 =
|
|
11119
|
+
var StyledRoot13 = styled51(View)(({ theme: theme2 }) => {
|
|
11118
11120
|
const { spacing } = theme2.tokens.components.inputs;
|
|
11119
11121
|
return {
|
|
11120
11122
|
gap: parseTokenValue42(spacing.gap)
|
|
@@ -11191,7 +11193,7 @@ function useSearchField({
|
|
|
11191
11193
|
};
|
|
11192
11194
|
}
|
|
11193
11195
|
var parseTokenValue43 = (value) => parseFloat(value);
|
|
11194
|
-
var StyledSegmentItem =
|
|
11196
|
+
var StyledSegmentItem = styled51(Pressable)(
|
|
11195
11197
|
({
|
|
11196
11198
|
itemHeight,
|
|
11197
11199
|
itemMinWidth,
|
|
@@ -11211,14 +11213,14 @@ var StyledSegmentItem = styled60(Pressable)(
|
|
|
11211
11213
|
opacity: itemOpacity
|
|
11212
11214
|
}, itemFlex !== void 0 ? { flex: itemFlex } : { flexShrink: 0 })
|
|
11213
11215
|
);
|
|
11214
|
-
var StyledIntrinsicClip =
|
|
11216
|
+
var StyledIntrinsicClip = styled51(View)(({ clipBorderRadius, clipBgColor, clipWidth }) => __spreadValues({
|
|
11215
11217
|
overflow: "hidden",
|
|
11216
11218
|
borderRadius: clipBorderRadius,
|
|
11217
11219
|
backgroundColor: clipBgColor,
|
|
11218
11220
|
alignSelf: "flex-start",
|
|
11219
11221
|
maxWidth: "100%"
|
|
11220
11222
|
}, clipWidth !== void 0 ? { width: clipWidth } : {}));
|
|
11221
|
-
var StyledScrollIndicator =
|
|
11223
|
+
var StyledScrollIndicator = styled51(Pressable)(
|
|
11222
11224
|
({
|
|
11223
11225
|
indicatorSide,
|
|
11224
11226
|
indicatorBorderRadius,
|
|
@@ -11274,7 +11276,7 @@ var ScrollIndicatorGradient = ({
|
|
|
11274
11276
|
/* @__PURE__ */ jsx(Rect, { width: "100%", height: "100%", fill: `url(#${gradientId})` })
|
|
11275
11277
|
] }) });
|
|
11276
11278
|
};
|
|
11277
|
-
var StyledContainer2 =
|
|
11279
|
+
var StyledContainer2 = styled51(View)(
|
|
11278
11280
|
({
|
|
11279
11281
|
containerGap,
|
|
11280
11282
|
containerPaddingVertical,
|
|
@@ -11470,7 +11472,7 @@ var SegmentedControlRoot = React60.forwardRef(
|
|
|
11470
11472
|
var _a2, _b2;
|
|
11471
11473
|
const theme2 = useTheme();
|
|
11472
11474
|
const { spacing, borderRadius, colour } = theme2.tokens.components.segmentedControl;
|
|
11473
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
11475
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
11474
11476
|
const optionsFirstValue = (_a2 = options == null ? void 0 : options[0]) == null ? void 0 : _a2.value;
|
|
11475
11477
|
const childrenArray = React60.Children.toArray(children);
|
|
11476
11478
|
const firstChildValue = childrenArray.map((child) => {
|
|
@@ -11533,8 +11535,8 @@ var SegmentedControlRoot = React60.forwardRef(
|
|
|
11533
11535
|
containerBorderRadius: parseTokenValue43(borderRadius.default),
|
|
11534
11536
|
containerBgColor: colour.background.default,
|
|
11535
11537
|
containerFullWidth: layout === "fixed",
|
|
11536
|
-
scrollIndicatorPaddingOuter: parseTokenValue43(
|
|
11537
|
-
scrollIndicatorPaddingInner: parseTokenValue43(
|
|
11538
|
+
scrollIndicatorPaddingOuter: parseTokenValue43(dimensions3.spacing["2xl"]),
|
|
11539
|
+
scrollIndicatorPaddingInner: parseTokenValue43(dimensions3.spacing.sm)
|
|
11538
11540
|
};
|
|
11539
11541
|
if (layout === "intrinsic") {
|
|
11540
11542
|
return /* @__PURE__ */ jsx(
|
|
@@ -11554,7 +11556,7 @@ var SegmentedControl = Object.assign(SegmentedControlRoot, {
|
|
|
11554
11556
|
Item: SegmentedControlItem
|
|
11555
11557
|
});
|
|
11556
11558
|
var parseTokenValue44 = (value) => parseFloat(value);
|
|
11557
|
-
var StyledTriggerWrapper =
|
|
11559
|
+
var StyledTriggerWrapper = styled51(Animated.View)(({
|
|
11558
11560
|
theme: theme2,
|
|
11559
11561
|
state: _state
|
|
11560
11562
|
}) => {
|
|
@@ -11570,12 +11572,12 @@ var StyledTriggerWrapper = styled60(Animated.View)(({
|
|
|
11570
11572
|
borderRadius: parseTokenValue44(borderRadius.field.default)
|
|
11571
11573
|
};
|
|
11572
11574
|
});
|
|
11573
|
-
var StyledIconWrapper2 =
|
|
11575
|
+
var StyledIconWrapper2 = styled51(View)({
|
|
11574
11576
|
flexShrink: 0,
|
|
11575
11577
|
alignItems: "center",
|
|
11576
11578
|
justifyContent: "center"
|
|
11577
11579
|
});
|
|
11578
|
-
var StyledArrowIcon =
|
|
11580
|
+
var StyledArrowIcon = styled51(Animated.View)({
|
|
11579
11581
|
flexShrink: 0,
|
|
11580
11582
|
alignItems: "center",
|
|
11581
11583
|
justifyContent: "center"
|
|
@@ -11661,7 +11663,7 @@ var SelectFieldTrigger = React60.forwardRef(
|
|
|
11661
11663
|
}
|
|
11662
11664
|
);
|
|
11663
11665
|
SelectFieldTrigger.displayName = "SelectField.Trigger";
|
|
11664
|
-
var StyledValue =
|
|
11666
|
+
var StyledValue = styled51(Text)(({ theme: theme2 }) => {
|
|
11665
11667
|
const { colour } = theme2.tokens.components.inputs;
|
|
11666
11668
|
return {
|
|
11667
11669
|
flex: 1,
|
|
@@ -11680,7 +11682,7 @@ SelectFieldValue.displayName = "SelectField.Value";
|
|
|
11680
11682
|
var parseTokenValue45 = (value) => parseFloat(value);
|
|
11681
11683
|
var DROPDOWN_OFFSET_X = -32;
|
|
11682
11684
|
var DROPDOWN_OFFSET_Y = -94;
|
|
11683
|
-
var StyledContentShadow =
|
|
11685
|
+
var StyledContentShadow = styled51(View)(({ theme: theme2 }) => {
|
|
11684
11686
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11685
11687
|
const shadow = dropdown.list.dropshadow.default;
|
|
11686
11688
|
return {
|
|
@@ -11699,7 +11701,7 @@ var StyledContentShadow = styled60(View)(({ theme: theme2 }) => {
|
|
|
11699
11701
|
]
|
|
11700
11702
|
};
|
|
11701
11703
|
});
|
|
11702
|
-
var StyledContentInner =
|
|
11704
|
+
var StyledContentInner = styled51(View)(({ theme: theme2 }) => {
|
|
11703
11705
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11704
11706
|
const { colour } = theme2.tokens.components.inputs;
|
|
11705
11707
|
return {
|
|
@@ -11728,7 +11730,7 @@ var SelectFieldContent = React60.forwardRef((_a, ref) => {
|
|
|
11728
11730
|
});
|
|
11729
11731
|
SelectFieldContent.displayName = "SelectField.Content";
|
|
11730
11732
|
var parseTokenValue46 = (value) => parseFloat(value);
|
|
11731
|
-
var StyledItem3 =
|
|
11733
|
+
var StyledItem3 = styled51(Pressable)(({ theme: theme2 }) => {
|
|
11732
11734
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11733
11735
|
return {
|
|
11734
11736
|
flexDirection: "row",
|
|
@@ -11742,12 +11744,12 @@ var StyledItem3 = styled60(Pressable)(({ theme: theme2 }) => {
|
|
|
11742
11744
|
backgroundColor: dropdown.listItem.colour.background.default
|
|
11743
11745
|
};
|
|
11744
11746
|
});
|
|
11745
|
-
var StyledIconWrapper3 =
|
|
11747
|
+
var StyledIconWrapper3 = styled51(View)({
|
|
11746
11748
|
flexShrink: 0,
|
|
11747
11749
|
alignItems: "center",
|
|
11748
11750
|
justifyContent: "center"
|
|
11749
11751
|
});
|
|
11750
|
-
var StyledContentWrapper =
|
|
11752
|
+
var StyledContentWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
11751
11753
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11752
11754
|
return {
|
|
11753
11755
|
flexDirection: "row",
|
|
@@ -11757,17 +11759,17 @@ var StyledContentWrapper = styled60(View)(({ theme: theme2 }) => {
|
|
|
11757
11759
|
minWidth: 0
|
|
11758
11760
|
};
|
|
11759
11761
|
});
|
|
11760
|
-
var StyledTextWrapper2 =
|
|
11762
|
+
var StyledTextWrapper2 = styled51(View)({
|
|
11761
11763
|
flex: 1,
|
|
11762
11764
|
minWidth: 0
|
|
11763
11765
|
});
|
|
11764
|
-
var StyledItemText =
|
|
11766
|
+
var StyledItemText = styled51(Text)(({ theme: theme2 }) => {
|
|
11765
11767
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11766
11768
|
return {
|
|
11767
11769
|
color: dropdown.listItem.colour.text.placeholder.default
|
|
11768
11770
|
};
|
|
11769
11771
|
});
|
|
11770
|
-
var StyledHintText =
|
|
11772
|
+
var StyledHintText = styled51(Text)(({ theme: theme2 }) => {
|
|
11771
11773
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11772
11774
|
return {
|
|
11773
11775
|
color: dropdown.listItem.colour.text.hint.default,
|
|
@@ -11810,7 +11812,7 @@ var SelectFieldItem = React60.forwardRef(
|
|
|
11810
11812
|
);
|
|
11811
11813
|
SelectFieldItem.displayName = "SelectField.Item";
|
|
11812
11814
|
var parseTokenValue47 = (value) => parseFloat(value);
|
|
11813
|
-
var StyledRoot14 =
|
|
11815
|
+
var StyledRoot14 = styled51(View)(({ theme: theme2 }) => {
|
|
11814
11816
|
const { spacing } = theme2.tokens.components.inputs;
|
|
11815
11817
|
return {
|
|
11816
11818
|
gap: parseTokenValue47(spacing.gap)
|
|
@@ -11943,13 +11945,269 @@ function useSelectField(options = {}) {
|
|
|
11943
11945
|
onValueChange: handleValueChange
|
|
11944
11946
|
}, validationRule && { state, error });
|
|
11945
11947
|
}
|
|
11948
|
+
var themeTokens = DEFAULT_THEME_OPTIONS.tokens;
|
|
11949
|
+
var { components, semantics } = themeTokens;
|
|
11950
|
+
var inputTokens = components.inputs;
|
|
11951
|
+
var { dimensions } = semantics;
|
|
11952
|
+
var parseSize = (value) => {
|
|
11953
|
+
return parseInt(value.replace("px", ""), 10);
|
|
11954
|
+
};
|
|
11955
|
+
var Wrapper = styled51(View)({
|
|
11956
|
+
borderWidth: parseSize(inputTokens.borderWidth.field.selected),
|
|
11957
|
+
borderColor: inputTokens.colour.field.border.selected,
|
|
11958
|
+
borderRadius: parseSize(inputTokens.borderRadius.field.default),
|
|
11959
|
+
backgroundColor: inputTokens.colour.field.background.default,
|
|
11960
|
+
paddingHorizontal: parseSize(inputTokens.spacing.field.horizontalPadding),
|
|
11961
|
+
paddingVertical: parseSize(inputTokens.spacing.field.verticalPadding),
|
|
11962
|
+
height: parseSize(inputTokens.size.field.height),
|
|
11963
|
+
flexDirection: "row",
|
|
11964
|
+
alignItems: "center",
|
|
11965
|
+
justifyContent: "space-between"
|
|
11966
|
+
});
|
|
11967
|
+
var SelectIcon = styled51(Animated10.View)({
|
|
11968
|
+
position: "absolute",
|
|
11969
|
+
right: 0,
|
|
11970
|
+
marginRight: 0
|
|
11971
|
+
});
|
|
11972
|
+
var InputText = styled51(Text)({
|
|
11973
|
+
color: inputTokens.colour.field.text.default,
|
|
11974
|
+
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
11975
|
+
fontWeight: inputTokens.field.placeholder.default.fontWeight,
|
|
11976
|
+
flex: 1
|
|
11977
|
+
});
|
|
11978
|
+
var PlaceholderText = styled51(Text)({
|
|
11979
|
+
color: inputTokens.colour.field.text.placeholder,
|
|
11980
|
+
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
11981
|
+
fontWeight: inputTokens.field.placeholder.default.fontWeight,
|
|
11982
|
+
flex: 1
|
|
11983
|
+
});
|
|
11984
|
+
var ModalOverlay = styled51(View)({
|
|
11985
|
+
flex: 1,
|
|
11986
|
+
backgroundColor: "rgba(0, 0, 0, 0.32)",
|
|
11987
|
+
justifyContent: "flex-end"
|
|
11988
|
+
});
|
|
11989
|
+
var AndroidDialog = styled51(View)({
|
|
11990
|
+
backgroundColor: inputTokens.colour.field.background.default,
|
|
11991
|
+
borderTopLeftRadius: parseSize(dimensions.borderRadius.lg),
|
|
11992
|
+
borderTopRightRadius: parseSize(dimensions.borderRadius.lg),
|
|
11993
|
+
maxHeight: "80%",
|
|
11994
|
+
minHeight: "40%",
|
|
11995
|
+
paddingTop: parseSize(dimensions.spacing.md),
|
|
11996
|
+
paddingBottom: parseSize(dimensions.spacing.xl),
|
|
11997
|
+
paddingHorizontal: parseSize(dimensions.spacing.md)
|
|
11998
|
+
});
|
|
11999
|
+
var DialogTitle = styled51(Text)({
|
|
12000
|
+
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
12001
|
+
fontWeight: inputTokens.text.label.fontWeight,
|
|
12002
|
+
color: inputTokens.colour.field.text.default,
|
|
12003
|
+
marginBottom: parseSize(dimensions.spacing.md),
|
|
12004
|
+
marginLeft: parseSize(dimensions.spacing.xs)
|
|
12005
|
+
});
|
|
12006
|
+
var AndroidOptionRow = styled51(View)({
|
|
12007
|
+
flexDirection: "row",
|
|
12008
|
+
alignItems: "center",
|
|
12009
|
+
paddingVertical: parseSize(dimensions.spacing.md),
|
|
12010
|
+
paddingHorizontal: parseSize(dimensions.spacing.sm),
|
|
12011
|
+
borderBottomWidth: parseSize(dimensions.borderWidth.sm),
|
|
12012
|
+
borderBottomColor: themeTokens.primitives.colour.brand.brown[2]
|
|
12013
|
+
});
|
|
12014
|
+
var RadioOuter = styled51(View)({
|
|
12015
|
+
width: parseSize(dimensions.spacing.lg),
|
|
12016
|
+
height: parseSize(dimensions.spacing.lg),
|
|
12017
|
+
borderRadius: parseSize(dimensions.spacing.lg) / 2,
|
|
12018
|
+
borderWidth: parseSize(dimensions.borderWidth.md),
|
|
12019
|
+
borderColor: inputTokens.colour.field.border.selected,
|
|
12020
|
+
alignItems: "center",
|
|
12021
|
+
justifyContent: "center",
|
|
12022
|
+
marginRight: parseSize(dimensions.spacing.sm)
|
|
12023
|
+
});
|
|
12024
|
+
var RadioInner = styled51(View)({
|
|
12025
|
+
width: parseSize(dimensions.spacing.md) / 2,
|
|
12026
|
+
height: parseSize(dimensions.spacing.md) / 2,
|
|
12027
|
+
borderRadius: parseSize(dimensions.spacing.md) / 4,
|
|
12028
|
+
backgroundColor: inputTokens.colour.field.border.selected
|
|
12029
|
+
});
|
|
12030
|
+
var AndroidOptionText = styled51(Text)(
|
|
12031
|
+
({ isSelected }) => ({
|
|
12032
|
+
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
12033
|
+
fontWeight: isSelected ? inputTokens.text.label.fontWeight : inputTokens.field.placeholder.default.fontWeight,
|
|
12034
|
+
color: inputTokens.colour.field.text.default,
|
|
12035
|
+
flex: 1
|
|
12036
|
+
})
|
|
12037
|
+
);
|
|
12038
|
+
var themeTokens2 = DEFAULT_THEME_OPTIONS.tokens;
|
|
12039
|
+
var { components: components2, semantics: semantics2 } = themeTokens2;
|
|
12040
|
+
var inputTokens2 = components2.inputs;
|
|
12041
|
+
var { dimensions: dimensions2 } = semantics2;
|
|
12042
|
+
var parseSize2 = (value) => {
|
|
12043
|
+
return parseInt(value.replace("px", ""), 10);
|
|
12044
|
+
};
|
|
12045
|
+
var useIconAnimation = () => {
|
|
12046
|
+
const iconRotation = useSharedValue(0);
|
|
12047
|
+
const iconAnimationStyles = useAnimatedStyle(() => {
|
|
12048
|
+
"worklet";
|
|
12049
|
+
return {
|
|
12050
|
+
transform: [{ rotate: `${iconRotation.value}deg` }]
|
|
12051
|
+
};
|
|
12052
|
+
});
|
|
12053
|
+
return {
|
|
12054
|
+
iconAnimationStyles
|
|
12055
|
+
};
|
|
12056
|
+
};
|
|
12057
|
+
var NativeSelectPicker = React60.forwardRef(
|
|
12058
|
+
(_a, ref) => {
|
|
12059
|
+
var _b = _a, {
|
|
12060
|
+
items,
|
|
12061
|
+
value,
|
|
12062
|
+
placeholder,
|
|
12063
|
+
onValueChange,
|
|
12064
|
+
disabled = false,
|
|
12065
|
+
hideIcon = false
|
|
12066
|
+
} = _b, rest = __objRest(_b, [
|
|
12067
|
+
"items",
|
|
12068
|
+
"value",
|
|
12069
|
+
"placeholder",
|
|
12070
|
+
"onValueChange",
|
|
12071
|
+
"disabled",
|
|
12072
|
+
"hideIcon"
|
|
12073
|
+
]);
|
|
12074
|
+
var _a2;
|
|
12075
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
12076
|
+
const { iconAnimationStyles } = useIconAnimation();
|
|
12077
|
+
const hasPlaceholder = placeholder && Object.keys(placeholder).length > 0 && placeholder.label !== void 0;
|
|
12078
|
+
const allItems = useMemo(() => {
|
|
12079
|
+
var _a3;
|
|
12080
|
+
if (hasPlaceholder) {
|
|
12081
|
+
return [
|
|
12082
|
+
{
|
|
12083
|
+
label: placeholder.label,
|
|
12084
|
+
value: (_a3 = placeholder.value) != null ? _a3 : "",
|
|
12085
|
+
key: "__placeholder__"
|
|
12086
|
+
},
|
|
12087
|
+
...items
|
|
12088
|
+
];
|
|
12089
|
+
}
|
|
12090
|
+
return items;
|
|
12091
|
+
}, [items, hasPlaceholder, placeholder]);
|
|
12092
|
+
const selectedItem = allItems.find((item) => item.value === value);
|
|
12093
|
+
const displayLabel = (_a2 = selectedItem == null ? void 0 : selectedItem.label) != null ? _a2 : hasPlaceholder ? placeholder.label : "";
|
|
12094
|
+
const handleOpenIOS = useCallback(() => {
|
|
12095
|
+
if (disabled) return;
|
|
12096
|
+
const options = [...allItems.map((item) => item.label), "Cancel"];
|
|
12097
|
+
const cancelButtonIndex = options.length - 1;
|
|
12098
|
+
ActionSheetIOS.showActionSheetWithOptions(
|
|
12099
|
+
{
|
|
12100
|
+
options,
|
|
12101
|
+
cancelButtonIndex
|
|
12102
|
+
},
|
|
12103
|
+
(buttonIndex) => {
|
|
12104
|
+
if (buttonIndex !== cancelButtonIndex) {
|
|
12105
|
+
onValueChange(allItems[buttonIndex].value);
|
|
12106
|
+
}
|
|
12107
|
+
}
|
|
12108
|
+
);
|
|
12109
|
+
}, [disabled, allItems, onValueChange]);
|
|
12110
|
+
const handleOpenAndroid = useCallback(() => {
|
|
12111
|
+
if (!disabled) {
|
|
12112
|
+
setIsOpen(true);
|
|
12113
|
+
}
|
|
12114
|
+
}, [disabled]);
|
|
12115
|
+
const handleClose = useCallback(() => {
|
|
12116
|
+
setIsOpen(false);
|
|
12117
|
+
}, []);
|
|
12118
|
+
const handleSelect = useCallback(
|
|
12119
|
+
(itemValue) => {
|
|
12120
|
+
onValueChange(itemValue);
|
|
12121
|
+
setIsOpen(false);
|
|
12122
|
+
},
|
|
12123
|
+
[onValueChange]
|
|
12124
|
+
);
|
|
12125
|
+
return /* @__PURE__ */ jsxs(Wrapper, __spreadProps(__spreadValues({ ref }, rest), { children: [
|
|
12126
|
+
/* @__PURE__ */ jsxs(
|
|
12127
|
+
TouchableOpacity,
|
|
12128
|
+
{
|
|
12129
|
+
activeOpacity: 0.8,
|
|
12130
|
+
onPress: Platform.OS === "ios" ? handleOpenIOS : handleOpenAndroid,
|
|
12131
|
+
disabled,
|
|
12132
|
+
hitSlop: {
|
|
12133
|
+
top: parseSize2(dimensions2.spacing.md),
|
|
12134
|
+
right: parseSize2(dimensions2.spacing.md),
|
|
12135
|
+
bottom: parseSize2(dimensions2.spacing.md),
|
|
12136
|
+
left: parseSize2(dimensions2.spacing.md)
|
|
12137
|
+
},
|
|
12138
|
+
accessibilityRole: "button",
|
|
12139
|
+
style: { flexDirection: "row", alignItems: "center" },
|
|
12140
|
+
children: [
|
|
12141
|
+
/* @__PURE__ */ jsx(InputText, { numberOfLines: 1, children: displayLabel || /* @__PURE__ */ jsx(PlaceholderText, { children: (placeholder == null ? void 0 : placeholder.label) || "Select" }) }),
|
|
12142
|
+
!hideIcon && /* @__PURE__ */ jsx(SelectIcon, { style: [iconAnimationStyles], children: /* @__PURE__ */ jsx(
|
|
12143
|
+
KeyboardArrowDown_default,
|
|
12144
|
+
{
|
|
12145
|
+
width: parseSize2(dimensions2.spacing.xl),
|
|
12146
|
+
height: parseSize2(dimensions2.spacing.xl),
|
|
12147
|
+
color: inputTokens2.colour.field.text.default
|
|
12148
|
+
}
|
|
12149
|
+
) })
|
|
12150
|
+
]
|
|
12151
|
+
}
|
|
12152
|
+
),
|
|
12153
|
+
Platform.OS === "android" && /* @__PURE__ */ jsx(
|
|
12154
|
+
Modal,
|
|
12155
|
+
{
|
|
12156
|
+
visible: isOpen,
|
|
12157
|
+
transparent: true,
|
|
12158
|
+
animationType: "fade",
|
|
12159
|
+
onRequestClose: handleClose,
|
|
12160
|
+
children: /* @__PURE__ */ jsx(
|
|
12161
|
+
TouchableWithoutFeedback,
|
|
12162
|
+
{
|
|
12163
|
+
accessibilityRole: "button",
|
|
12164
|
+
onPress: handleClose,
|
|
12165
|
+
children: /* @__PURE__ */ jsx(ModalOverlay, { children: /* @__PURE__ */ jsx(TouchableWithoutFeedback, { children: /* @__PURE__ */ jsxs(AndroidDialog, { children: [
|
|
12166
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Select an option" }),
|
|
12167
|
+
/* @__PURE__ */ jsx(
|
|
12168
|
+
FlatList,
|
|
12169
|
+
{
|
|
12170
|
+
data: allItems,
|
|
12171
|
+
keyExtractor: (item, index) => {
|
|
12172
|
+
var _a3, _b2;
|
|
12173
|
+
return (_b2 = (_a3 = item.key) == null ? void 0 : _a3.toString()) != null ? _b2 : `${item.value}-${index}`;
|
|
12174
|
+
},
|
|
12175
|
+
renderItem: ({ item }) => {
|
|
12176
|
+
const isSelected = item.value === value;
|
|
12177
|
+
return /* @__PURE__ */ jsx(
|
|
12178
|
+
TouchableOpacity,
|
|
12179
|
+
{
|
|
12180
|
+
onPress: () => handleSelect(item.value),
|
|
12181
|
+
activeOpacity: 0.7,
|
|
12182
|
+
accessibilityRole: "button",
|
|
12183
|
+
children: /* @__PURE__ */ jsxs(AndroidOptionRow, { children: [
|
|
12184
|
+
/* @__PURE__ */ jsx(RadioOuter, { children: isSelected && /* @__PURE__ */ jsx(RadioInner, {}) }),
|
|
12185
|
+
/* @__PURE__ */ jsx(AndroidOptionText, { isSelected, children: item.label })
|
|
12186
|
+
] })
|
|
12187
|
+
}
|
|
12188
|
+
);
|
|
12189
|
+
},
|
|
12190
|
+
style: {
|
|
12191
|
+
maxHeight: parseSize2(dimensions2.spacing["8xl"])
|
|
12192
|
+
}
|
|
12193
|
+
}
|
|
12194
|
+
)
|
|
12195
|
+
] }) }) })
|
|
12196
|
+
}
|
|
12197
|
+
)
|
|
12198
|
+
}
|
|
12199
|
+
)
|
|
12200
|
+
] }));
|
|
12201
|
+
}
|
|
12202
|
+
);
|
|
12203
|
+
NativeSelectPicker.displayName = "NativeSelectPicker";
|
|
11946
12204
|
var parseTokenValue48 = (value) => parseFloat(value);
|
|
11947
|
-
var StyledLabelRow2 =
|
|
12205
|
+
var StyledLabelRow2 = styled51(View)(({ labelRowGap }) => ({
|
|
11948
12206
|
flexDirection: "row",
|
|
11949
12207
|
alignItems: "center",
|
|
11950
12208
|
gap: labelRowGap
|
|
11951
12209
|
}));
|
|
11952
|
-
var StyledLabelSlot =
|
|
12210
|
+
var StyledLabelSlot = styled51(View)(({ labelSlotGap }) => ({
|
|
11953
12211
|
flexDirection: "row",
|
|
11954
12212
|
alignItems: "center",
|
|
11955
12213
|
gap: labelSlotGap,
|
|
@@ -11988,7 +12246,7 @@ var Slider = React60.forwardRef(
|
|
|
11988
12246
|
]);
|
|
11989
12247
|
const theme2 = useTheme();
|
|
11990
12248
|
const { slider, buttons } = theme2.tokens.components;
|
|
11991
|
-
const { dimensions } = theme2.tokens.semantics;
|
|
12249
|
+
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
11992
12250
|
const isControlled = controlledValue !== void 0;
|
|
11993
12251
|
const [internalValue, setInternalValue] = React60.useState(defaultValue);
|
|
11994
12252
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
@@ -12089,7 +12347,7 @@ var Slider = React60.forwardRef(
|
|
|
12089
12347
|
const hasLeading = leadingIcon !== void 0 || leadingLabel !== void 0;
|
|
12090
12348
|
const hasTrailing = trailingIcon !== void 0 || trailingLabel !== void 0;
|
|
12091
12349
|
const labelGap = parseTokenValue48(slider.sliderField.spacing.label.gap);
|
|
12092
|
-
const roundBorderRadius = parseTokenValue48(
|
|
12350
|
+
const roundBorderRadius = parseTokenValue48(dimensions3.borderRadius.round);
|
|
12093
12351
|
const thumbIconColor = buttons.iconButton.filledButton.colour.icon.primary.default;
|
|
12094
12352
|
const thumbContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12095
12353
|
/* @__PURE__ */ jsx(
|
|
@@ -12160,7 +12418,7 @@ var Slider = React60.forwardRef(
|
|
|
12160
12418
|
height: trackHeight,
|
|
12161
12419
|
borderRadius: roundBorderRadius,
|
|
12162
12420
|
backgroundColor: slider.colour.track.background.default,
|
|
12163
|
-
borderWidth: parseTokenValue48(
|
|
12421
|
+
borderWidth: parseTokenValue48(dimensions3.borderWidth.sm),
|
|
12164
12422
|
borderColor: slider.colour.track.border.default
|
|
12165
12423
|
};
|
|
12166
12424
|
const indicatorBaseStyle = {
|
|
@@ -12255,9 +12513,9 @@ var Slider = React60.forwardRef(
|
|
|
12255
12513
|
onLayout: handleNativeLayout,
|
|
12256
12514
|
children: [
|
|
12257
12515
|
/* @__PURE__ */ jsx(View, { style: trackBackgroundStyle }),
|
|
12258
|
-
/* @__PURE__ */ jsx(
|
|
12516
|
+
/* @__PURE__ */ jsx(Animated10.View, { style: [indicatorBaseStyle, indicatorAnimStyle] }),
|
|
12259
12517
|
/* @__PURE__ */ jsx(
|
|
12260
|
-
|
|
12518
|
+
Animated10.View,
|
|
12261
12519
|
{
|
|
12262
12520
|
style: [
|
|
12263
12521
|
__spreadProps(__spreadValues({}, thumbStyle), { position: "absolute", left: 0 }),
|
|
@@ -12285,7 +12543,7 @@ var ICON_MAP = {
|
|
|
12285
12543
|
info: Info_default
|
|
12286
12544
|
};
|
|
12287
12545
|
var parseTokenValue49 = (value) => parseFloat(value);
|
|
12288
|
-
var StyledInlineRoot =
|
|
12546
|
+
var StyledInlineRoot = styled51(View)(
|
|
12289
12547
|
({ rootPaddingH, rootPaddingV, rootGap, rootBorderRadius, rootBgColor }) => ({
|
|
12290
12548
|
flexDirection: "row",
|
|
12291
12549
|
alignItems: "flex-start",
|
|
@@ -12296,7 +12554,7 @@ var StyledInlineRoot = styled60(View)(
|
|
|
12296
12554
|
backgroundColor: rootBgColor
|
|
12297
12555
|
})
|
|
12298
12556
|
);
|
|
12299
|
-
var StyledToastRoot =
|
|
12557
|
+
var StyledToastRoot = styled51(View)(
|
|
12300
12558
|
({
|
|
12301
12559
|
rootPaddingH,
|
|
12302
12560
|
rootPaddingV,
|
|
@@ -12323,7 +12581,7 @@ var StyledToastRoot = styled60(View)(
|
|
|
12323
12581
|
elevation: 4
|
|
12324
12582
|
})
|
|
12325
12583
|
);
|
|
12326
|
-
var StyledSystemRoot =
|
|
12584
|
+
var StyledSystemRoot = styled51(View)(
|
|
12327
12585
|
({
|
|
12328
12586
|
rootPaddingH,
|
|
12329
12587
|
rootPaddingTop,
|
|
@@ -12343,31 +12601,31 @@ var StyledSystemRoot = styled60(View)(
|
|
|
12343
12601
|
width: "100%"
|
|
12344
12602
|
})
|
|
12345
12603
|
);
|
|
12346
|
-
var StyledContents =
|
|
12604
|
+
var StyledContents = styled51(View)(({ contentsGap }) => ({
|
|
12347
12605
|
flexDirection: "column",
|
|
12348
12606
|
alignItems: "flex-start",
|
|
12349
12607
|
flex: 1,
|
|
12350
12608
|
minWidth: 0,
|
|
12351
12609
|
gap: contentsGap
|
|
12352
12610
|
}));
|
|
12353
|
-
var StyledCopyRow =
|
|
12611
|
+
var StyledCopyRow = styled51(View)(({ copyGap }) => ({
|
|
12354
12612
|
flexDirection: "row",
|
|
12355
12613
|
alignItems: "flex-start",
|
|
12356
12614
|
gap: copyGap,
|
|
12357
12615
|
width: "100%"
|
|
12358
12616
|
}));
|
|
12359
|
-
var StyledInlineCopy =
|
|
12617
|
+
var StyledInlineCopy = styled51(View)(({ copyGap }) => ({
|
|
12360
12618
|
flexDirection: "column",
|
|
12361
12619
|
alignItems: "flex-start",
|
|
12362
12620
|
gap: copyGap,
|
|
12363
12621
|
flex: 1,
|
|
12364
12622
|
minWidth: 0
|
|
12365
12623
|
}));
|
|
12366
|
-
var StyledLinkWrapper =
|
|
12624
|
+
var StyledLinkWrapper = styled51(View)(({ linkPaddingLeft }) => ({
|
|
12367
12625
|
paddingLeft: linkPaddingLeft,
|
|
12368
12626
|
width: "100%"
|
|
12369
12627
|
}));
|
|
12370
|
-
var StyledCloseButton =
|
|
12628
|
+
var StyledCloseButton = styled51(Pressable)({
|
|
12371
12629
|
alignItems: "center",
|
|
12372
12630
|
justifyContent: "center",
|
|
12373
12631
|
flexShrink: 0,
|
|
@@ -12403,7 +12661,7 @@ var Notification = React60.forwardRef(
|
|
|
12403
12661
|
if (variant === "system") {
|
|
12404
12662
|
const isLarge = size === "lg";
|
|
12405
12663
|
const sizeTokens = isLarge ? systemNotifications.notification.spacing.large : systemNotifications.notification.spacing.small;
|
|
12406
|
-
return /* @__PURE__ */
|
|
12664
|
+
return /* @__PURE__ */ jsx(
|
|
12407
12665
|
StyledSystemRoot,
|
|
12408
12666
|
__spreadProps(__spreadValues({
|
|
12409
12667
|
ref,
|
|
@@ -12416,7 +12674,7 @@ var Notification = React60.forwardRef(
|
|
|
12416
12674
|
rootBgColor: bgMap[type],
|
|
12417
12675
|
rootAlignCenter: isLarge
|
|
12418
12676
|
}, rest), {
|
|
12419
|
-
children: [
|
|
12677
|
+
children: /* @__PURE__ */ jsxs(View, { style: { flexDirection: "column", flex: 1 }, children: [
|
|
12420
12678
|
showIcon && /* @__PURE__ */ jsx(
|
|
12421
12679
|
Icon,
|
|
12422
12680
|
{
|
|
@@ -12426,27 +12684,31 @@ var Notification = React60.forwardRef(
|
|
|
12426
12684
|
"aria-label": type
|
|
12427
12685
|
}
|
|
12428
12686
|
),
|
|
12429
|
-
/* @__PURE__ */
|
|
12430
|
-
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12687
|
+
/* @__PURE__ */ jsx(View, { style: { flexDirection: "column", gap: 8, flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
12688
|
+
Typography,
|
|
12689
|
+
{
|
|
12690
|
+
token: systemNotifications.notifications.typography.default,
|
|
12691
|
+
color: systemNotifications.notification.colour.text.default,
|
|
12692
|
+
children
|
|
12693
|
+
}
|
|
12694
|
+
) }),
|
|
12695
|
+
link && /* @__PURE__ */ jsx(
|
|
12696
|
+
StyledLinkWrapper,
|
|
12697
|
+
{
|
|
12698
|
+
linkPaddingLeft: parseTokenValue49(sizeTokens.content.gap),
|
|
12699
|
+
children: /* @__PURE__ */ jsx(
|
|
12700
|
+
Link,
|
|
12701
|
+
{
|
|
12702
|
+
href: link.href,
|
|
12703
|
+
onPress: link.onPress,
|
|
12704
|
+
weight: "semiBold",
|
|
12705
|
+
size: "md",
|
|
12706
|
+
children: link.label
|
|
12707
|
+
}
|
|
12708
|
+
)
|
|
12709
|
+
}
|
|
12710
|
+
)
|
|
12711
|
+
] })
|
|
12450
12712
|
})
|
|
12451
12713
|
);
|
|
12452
12714
|
}
|
|
@@ -12539,59 +12801,57 @@ var Notification = React60.forwardRef(
|
|
|
12539
12801
|
rootBgColor: bgMap[type]
|
|
12540
12802
|
}, rest), {
|
|
12541
12803
|
children: [
|
|
12542
|
-
/* @__PURE__ */
|
|
12543
|
-
/* @__PURE__ */
|
|
12544
|
-
|
|
12545
|
-
Icon,
|
|
12546
|
-
{
|
|
12547
|
-
icon: IconComponent,
|
|
12548
|
-
size: "md",
|
|
12549
|
-
colour: type,
|
|
12550
|
-
"aria-label": type
|
|
12551
|
-
}
|
|
12552
|
-
),
|
|
12553
|
-
/* @__PURE__ */ jsxs(
|
|
12554
|
-
StyledInlineCopy,
|
|
12555
|
-
{
|
|
12556
|
-
copyGap: parseTokenValue49(content.copy.spacing.gap),
|
|
12557
|
-
children: [
|
|
12558
|
-
title && /* @__PURE__ */ jsx(
|
|
12559
|
-
Typography,
|
|
12560
|
-
{
|
|
12561
|
-
token: notifications.typography.title,
|
|
12562
|
-
color: colour.text.title,
|
|
12563
|
-
children: title
|
|
12564
|
-
}
|
|
12565
|
-
),
|
|
12566
|
-
/* @__PURE__ */ jsx(
|
|
12567
|
-
Typography,
|
|
12568
|
-
{
|
|
12569
|
-
token: notifications.typography.body,
|
|
12570
|
-
color: colour.text.body,
|
|
12571
|
-
children
|
|
12572
|
-
}
|
|
12573
|
-
)
|
|
12574
|
-
]
|
|
12575
|
-
}
|
|
12576
|
-
)
|
|
12577
|
-
] }),
|
|
12578
|
-
link && /* @__PURE__ */ jsx(
|
|
12579
|
-
StyledLinkWrapper,
|
|
12804
|
+
/* @__PURE__ */ jsx(StyledContents, { contentsGap: parseTokenValue49(content.spacing.gap), children: /* @__PURE__ */ jsxs(StyledCopyRow, { copyGap: parseTokenValue49(content.spacing.gap), children: [
|
|
12805
|
+
showIcon && /* @__PURE__ */ jsx(
|
|
12806
|
+
Icon,
|
|
12580
12807
|
{
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12808
|
+
icon: IconComponent,
|
|
12809
|
+
size: "md",
|
|
12810
|
+
colour: type,
|
|
12811
|
+
"aria-label": type
|
|
12812
|
+
}
|
|
12813
|
+
),
|
|
12814
|
+
/* @__PURE__ */ jsxs(
|
|
12815
|
+
StyledInlineCopy,
|
|
12816
|
+
{
|
|
12817
|
+
copyGap: parseTokenValue49(content.copy.spacing.gap),
|
|
12818
|
+
children: [
|
|
12819
|
+
title && /* @__PURE__ */ jsx(
|
|
12820
|
+
Typography,
|
|
12821
|
+
{
|
|
12822
|
+
token: notifications.typography.title,
|
|
12823
|
+
color: colour.text.title,
|
|
12824
|
+
children: title
|
|
12825
|
+
}
|
|
12826
|
+
),
|
|
12827
|
+
/* @__PURE__ */ jsx(
|
|
12828
|
+
Typography,
|
|
12829
|
+
{
|
|
12830
|
+
token: notifications.typography.body,
|
|
12831
|
+
color: colour.text.body,
|
|
12832
|
+
children
|
|
12833
|
+
}
|
|
12834
|
+
),
|
|
12835
|
+
link && /* @__PURE__ */ jsx(
|
|
12836
|
+
StyledLinkWrapper,
|
|
12837
|
+
{
|
|
12838
|
+
linkPaddingLeft: parseTokenValue49(content.copy.spacing.gap),
|
|
12839
|
+
children: /* @__PURE__ */ jsx(
|
|
12840
|
+
Link,
|
|
12841
|
+
{
|
|
12842
|
+
href: link.href,
|
|
12843
|
+
onPress: link.onPress,
|
|
12844
|
+
weight: "semiBold",
|
|
12845
|
+
size: "md",
|
|
12846
|
+
children: link.label
|
|
12847
|
+
}
|
|
12848
|
+
)
|
|
12849
|
+
}
|
|
12850
|
+
)
|
|
12851
|
+
]
|
|
12592
12852
|
}
|
|
12593
12853
|
)
|
|
12594
|
-
] }),
|
|
12854
|
+
] }) }),
|
|
12595
12855
|
onClose && /* @__PURE__ */ jsx(
|
|
12596
12856
|
StyledCloseButton,
|
|
12597
12857
|
{
|
|
@@ -12613,10 +12873,10 @@ var NIB_OFFSET = {
|
|
|
12613
12873
|
middle: 146,
|
|
12614
12874
|
right: 268
|
|
12615
12875
|
};
|
|
12616
|
-
var Container2 =
|
|
12876
|
+
var Container2 = styled51(View)(({ $width }) => ({
|
|
12617
12877
|
width: $width
|
|
12618
12878
|
}));
|
|
12619
|
-
var StyledBody =
|
|
12879
|
+
var StyledBody = styled51(View)(
|
|
12620
12880
|
({
|
|
12621
12881
|
bgColor,
|
|
12622
12882
|
borderColor,
|
|
@@ -12846,7 +13106,7 @@ var Tooltip = React60.forwardRef(
|
|
|
12846
13106
|
);
|
|
12847
13107
|
Tooltip.displayName = "Tooltip";
|
|
12848
13108
|
var parseTokenValue51 = (value) => parseFloat(value);
|
|
12849
|
-
var StyledInsightRoot =
|
|
13109
|
+
var StyledInsightRoot = styled51(View)(
|
|
12850
13110
|
({
|
|
12851
13111
|
rootGap,
|
|
12852
13112
|
rootPaddingH,
|
|
@@ -12873,7 +13133,7 @@ var StyledInsightRoot = styled60(View)(
|
|
|
12873
13133
|
minWidth: rootMinWidth
|
|
12874
13134
|
})
|
|
12875
13135
|
);
|
|
12876
|
-
var StyledInsightContent =
|
|
13136
|
+
var StyledInsightContent = styled51(View)(
|
|
12877
13137
|
({ contentGap }) => ({
|
|
12878
13138
|
flex: 1,
|
|
12879
13139
|
flexDirection: "column",
|
|
@@ -12953,7 +13213,7 @@ var MessageCardInsight = React60.forwardRef(
|
|
|
12953
13213
|
}
|
|
12954
13214
|
);
|
|
12955
13215
|
MessageCardInsight.displayName = "MessageCard.Insight";
|
|
12956
|
-
var StyledBannerRoot =
|
|
13216
|
+
var StyledBannerRoot = styled51(View)(({ rootGap, rootPadding, rootBorderRadius, rootBgColor }) => ({
|
|
12957
13217
|
flexDirection: "row",
|
|
12958
13218
|
alignItems: "center",
|
|
12959
13219
|
gap: rootGap,
|
|
@@ -12961,7 +13221,7 @@ var StyledBannerRoot = styled60(View)(({ rootGap, rootPadding, rootBorderRadius,
|
|
|
12961
13221
|
borderRadius: rootBorderRadius,
|
|
12962
13222
|
backgroundColor: rootBgColor
|
|
12963
13223
|
}));
|
|
12964
|
-
var StyledBannerImage =
|
|
13224
|
+
var StyledBannerImage = styled51(View)(({ imageRadius, imageBgColor }) => ({
|
|
12965
13225
|
flexShrink: 0,
|
|
12966
13226
|
width: 108,
|
|
12967
13227
|
height: 108,
|
|
@@ -12969,14 +13229,14 @@ var StyledBannerImage = styled60(View)(({ imageRadius, imageBgColor }) => ({
|
|
|
12969
13229
|
overflow: "hidden",
|
|
12970
13230
|
backgroundColor: imageBgColor
|
|
12971
13231
|
}));
|
|
12972
|
-
var StyledBannerIllustrationSlot =
|
|
13232
|
+
var StyledBannerIllustrationSlot = styled51(View)({
|
|
12973
13233
|
flexShrink: 0,
|
|
12974
13234
|
width: 108,
|
|
12975
13235
|
height: 108,
|
|
12976
13236
|
alignItems: "center",
|
|
12977
13237
|
justifyContent: "center"
|
|
12978
13238
|
});
|
|
12979
|
-
var StyledBannerContents =
|
|
13239
|
+
var StyledBannerContents = styled51(View)(
|
|
12980
13240
|
({ contentsGap }) => ({
|
|
12981
13241
|
flex: 1,
|
|
12982
13242
|
flexDirection: "column",
|
|
@@ -12986,7 +13246,7 @@ var StyledBannerContents = styled60(View)(
|
|
|
12986
13246
|
minWidth: 0
|
|
12987
13247
|
})
|
|
12988
13248
|
);
|
|
12989
|
-
var StyledBannerCopy =
|
|
13249
|
+
var StyledBannerCopy = styled51(View)(({ copyGap }) => ({
|
|
12990
13250
|
flexDirection: "column",
|
|
12991
13251
|
alignItems: "flex-start",
|
|
12992
13252
|
gap: copyGap,
|
|
@@ -13012,15 +13272,15 @@ var MessageCardBanner = React60.forwardRef(
|
|
|
13012
13272
|
"onLinkPress"
|
|
13013
13273
|
]);
|
|
13014
13274
|
const theme2 = useTheme();
|
|
13015
|
-
const { colour, dimensions } = theme2.tokens.semantics;
|
|
13275
|
+
const { colour, dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
13016
13276
|
const bgColor = colourScheme === "secondary" ? colour.background.container.secondary : colour.background.container.alt;
|
|
13017
13277
|
return /* @__PURE__ */ jsxs(
|
|
13018
13278
|
StyledBannerRoot,
|
|
13019
13279
|
__spreadProps(__spreadValues({
|
|
13020
13280
|
ref,
|
|
13021
|
-
rootGap: parseTokenValue51(
|
|
13022
|
-
rootPadding: parseTokenValue51(
|
|
13023
|
-
rootBorderRadius: parseTokenValue51(
|
|
13281
|
+
rootGap: parseTokenValue51(dimensions3.spacing.md),
|
|
13282
|
+
rootPadding: parseTokenValue51(dimensions3.spacing.md),
|
|
13283
|
+
rootBorderRadius: parseTokenValue51(dimensions3.borderRadius.md),
|
|
13024
13284
|
rootBgColor: bgColor,
|
|
13025
13285
|
accessible: true,
|
|
13026
13286
|
accessibilityRole: "summary"
|
|
@@ -13032,7 +13292,7 @@ var MessageCardBanner = React60.forwardRef(
|
|
|
13032
13292
|
}) }) : (media == null ? void 0 : media.type) === "image" ? /* @__PURE__ */ jsx(
|
|
13033
13293
|
StyledBannerImage,
|
|
13034
13294
|
{
|
|
13035
|
-
imageRadius: parseTokenValue51(
|
|
13295
|
+
imageRadius: parseTokenValue51(dimensions3.borderRadius.sm),
|
|
13036
13296
|
imageBgColor: colour.background.surface.secondary,
|
|
13037
13297
|
children: /* @__PURE__ */ jsx(
|
|
13038
13298
|
Image,
|
|
@@ -13048,12 +13308,12 @@ var MessageCardBanner = React60.forwardRef(
|
|
|
13048
13308
|
/* @__PURE__ */ jsxs(
|
|
13049
13309
|
StyledBannerContents,
|
|
13050
13310
|
{
|
|
13051
|
-
contentsGap: parseTokenValue51(
|
|
13311
|
+
contentsGap: parseTokenValue51(dimensions3.spacing.xs),
|
|
13052
13312
|
children: [
|
|
13053
13313
|
/* @__PURE__ */ jsxs(
|
|
13054
13314
|
StyledBannerCopy,
|
|
13055
13315
|
{
|
|
13056
|
-
copyGap: parseTokenValue51(
|
|
13316
|
+
copyGap: parseTokenValue51(dimensions3.spacing["3xs"]),
|
|
13057
13317
|
children: [
|
|
13058
13318
|
title && /* @__PURE__ */ jsx(Typography, { variant: "heading", size: "xs", color: "primary", children: title }),
|
|
13059
13319
|
/* @__PURE__ */ jsx(Typography, { variant: "body", size: "md", color: "secondary", children })
|
|
@@ -13125,22 +13385,22 @@ function defaultGetDateState(date) {
|
|
|
13125
13385
|
function getDefaultMonthLabel(year, month, locale) {
|
|
13126
13386
|
return format(new Date(year, month, 1), "MMMM yyyy", { locale });
|
|
13127
13387
|
}
|
|
13128
|
-
var StyledContainer3 =
|
|
13388
|
+
var StyledContainer3 = styled51(View)(({ containerGap, containerMaxWidth }) => ({
|
|
13129
13389
|
flexDirection: "column",
|
|
13130
13390
|
gap: containerGap,
|
|
13131
13391
|
maxWidth: containerMaxWidth
|
|
13132
13392
|
}));
|
|
13133
|
-
var StyledMonthHeader =
|
|
13393
|
+
var StyledMonthHeader = styled51(View)(
|
|
13134
13394
|
({ headerGap }) => ({
|
|
13135
13395
|
flexDirection: "row",
|
|
13136
13396
|
alignItems: "center",
|
|
13137
13397
|
gap: headerGap
|
|
13138
13398
|
})
|
|
13139
13399
|
);
|
|
13140
|
-
var StyledWeekRow =
|
|
13400
|
+
var StyledWeekRow = styled51(View)({
|
|
13141
13401
|
flexDirection: "row"
|
|
13142
13402
|
});
|
|
13143
|
-
var StyledWeekCell =
|
|
13403
|
+
var StyledWeekCell = styled51(View)(
|
|
13144
13404
|
({ cellHeight }) => ({
|
|
13145
13405
|
flex: 1,
|
|
13146
13406
|
alignItems: "center",
|
|
@@ -13148,14 +13408,14 @@ var StyledWeekCell = styled60(View)(
|
|
|
13148
13408
|
height: cellHeight
|
|
13149
13409
|
})
|
|
13150
13410
|
);
|
|
13151
|
-
var StyledDatesGrid =
|
|
13411
|
+
var StyledDatesGrid = styled51(View)(({ rowGap }) => ({
|
|
13152
13412
|
flexDirection: "column",
|
|
13153
13413
|
gap: rowGap
|
|
13154
13414
|
}));
|
|
13155
|
-
var StyledDateRow =
|
|
13415
|
+
var StyledDateRow = styled51(View)({
|
|
13156
13416
|
flexDirection: "row"
|
|
13157
13417
|
});
|
|
13158
|
-
var StyledDateCell =
|
|
13418
|
+
var StyledDateCell = styled51(View)(
|
|
13159
13419
|
({ cellHeight }) => ({
|
|
13160
13420
|
flex: 1,
|
|
13161
13421
|
height: cellHeight,
|
|
@@ -13163,7 +13423,7 @@ var StyledDateCell = styled60(View)(
|
|
|
13163
13423
|
justifyContent: "center"
|
|
13164
13424
|
})
|
|
13165
13425
|
);
|
|
13166
|
-
var StyledIndicator3 =
|
|
13426
|
+
var StyledIndicator3 = styled51(View)(
|
|
13167
13427
|
({
|
|
13168
13428
|
indicatorSize,
|
|
13169
13429
|
indicatorBorderRadius,
|
|
@@ -13409,7 +13669,7 @@ var DatePicker = React60.forwardRef(
|
|
|
13409
13669
|
) })
|
|
13410
13670
|
] }),
|
|
13411
13671
|
/* @__PURE__ */ jsx(
|
|
13412
|
-
|
|
13672
|
+
Animated10.View,
|
|
13413
13673
|
{
|
|
13414
13674
|
entering: MONTH_SLIDE_ENTERING[slideDir],
|
|
13415
13675
|
exiting: MONTH_SLIDE_EXITING[slideDir],
|
|
@@ -13528,25 +13788,25 @@ var buildPointerPath = (r) => {
|
|
|
13528
13788
|
].join(" ");
|
|
13529
13789
|
};
|
|
13530
13790
|
var parseTokenValue53 = (value) => parseFloat(value);
|
|
13531
|
-
var StyledRoot15 =
|
|
13791
|
+
var StyledRoot15 = styled51(View)(({ rootGap }) => ({
|
|
13532
13792
|
flexDirection: "column",
|
|
13533
13793
|
gap: rootGap,
|
|
13534
13794
|
width: "100%"
|
|
13535
13795
|
}));
|
|
13536
|
-
var StyledRow2 =
|
|
13796
|
+
var StyledRow2 = styled51(View)(({ rowGap }) => ({
|
|
13537
13797
|
flexDirection: "row",
|
|
13538
13798
|
alignItems: "flex-start",
|
|
13539
13799
|
gap: rowGap,
|
|
13540
13800
|
width: "100%"
|
|
13541
13801
|
}));
|
|
13542
|
-
var StyledItemStack =
|
|
13802
|
+
var StyledItemStack = styled51(View)(({ stackGap }) => ({
|
|
13543
13803
|
flexDirection: "column",
|
|
13544
13804
|
alignItems: "center",
|
|
13545
13805
|
gap: stackGap,
|
|
13546
13806
|
flex: 1,
|
|
13547
13807
|
minWidth: 0
|
|
13548
13808
|
}));
|
|
13549
|
-
var StyledPictureButton =
|
|
13809
|
+
var StyledPictureButton = styled51(Pressable)(
|
|
13550
13810
|
({
|
|
13551
13811
|
buttonBorderRadius,
|
|
13552
13812
|
buttonBorderWidth,
|
|
@@ -13573,7 +13833,7 @@ var StyledPictureButton = styled60(Pressable)(
|
|
|
13573
13833
|
overflow: "hidden"
|
|
13574
13834
|
})
|
|
13575
13835
|
);
|
|
13576
|
-
var StyledPointer =
|
|
13836
|
+
var StyledPointer = styled51(Svg)(
|
|
13577
13837
|
({ pointerVisible }) => ({
|
|
13578
13838
|
width: POINTER_WIDTH,
|
|
13579
13839
|
height: POINTER_HEIGHT,
|
|
@@ -13726,13 +13986,13 @@ var DEFAULT_UNIT_LABELS = {
|
|
|
13726
13986
|
var resolveLabel = (label, value) => typeof label === "string" ? label : value === 1 ? label.singular : label.plural;
|
|
13727
13987
|
var parseTokenValue54 = (value) => parseFloat(value);
|
|
13728
13988
|
var pad = (value) => String(Math.max(0, Math.floor(value))).padStart(2, "0");
|
|
13729
|
-
var StackedRoot =
|
|
13989
|
+
var StackedRoot = styled51(View)(({ rootGap }) => ({
|
|
13730
13990
|
flexDirection: "row",
|
|
13731
13991
|
alignItems: "center",
|
|
13732
13992
|
alignSelf: "flex-start",
|
|
13733
13993
|
gap: rootGap
|
|
13734
13994
|
}));
|
|
13735
|
-
var StackedItem =
|
|
13995
|
+
var StackedItem = styled51(View)(
|
|
13736
13996
|
({
|
|
13737
13997
|
itemGap,
|
|
13738
13998
|
itemVerticalPadding,
|
|
@@ -13750,7 +14010,7 @@ var StackedItem = styled60(View)(
|
|
|
13750
14010
|
borderRadius: itemBorderRadius
|
|
13751
14011
|
})
|
|
13752
14012
|
);
|
|
13753
|
-
var StackedCountBox =
|
|
14013
|
+
var StackedCountBox = styled51(View)(({ countPaddingTop, countBgColor, countBorderRadius }) => ({
|
|
13754
14014
|
alignItems: "center",
|
|
13755
14015
|
justifyContent: "center",
|
|
13756
14016
|
// TODO: Add token — fixed count box dimensions are not yet tokenised.
|
|
@@ -13760,7 +14020,7 @@ var StackedCountBox = styled60(View)(({ countPaddingTop, countBgColor, countBord
|
|
|
13760
14020
|
backgroundColor: countBgColor,
|
|
13761
14021
|
borderRadius: countBorderRadius
|
|
13762
14022
|
}));
|
|
13763
|
-
var InlineRoot =
|
|
14023
|
+
var InlineRoot = styled51(View)(
|
|
13764
14024
|
({
|
|
13765
14025
|
rootGap,
|
|
13766
14026
|
rootVerticalPadding,
|
|
@@ -13780,13 +14040,13 @@ var InlineRoot = styled60(View)(
|
|
|
13780
14040
|
overflow: "hidden"
|
|
13781
14041
|
})
|
|
13782
14042
|
);
|
|
13783
|
-
var InlineGroup =
|
|
14043
|
+
var InlineGroup = styled51(View)(({ groupGap }) => ({
|
|
13784
14044
|
flexDirection: "row",
|
|
13785
14045
|
alignItems: "center",
|
|
13786
14046
|
justifyContent: "flex-end",
|
|
13787
14047
|
gap: groupGap
|
|
13788
14048
|
}));
|
|
13789
|
-
var InlineCount =
|
|
14049
|
+
var InlineCount = styled51(View)(({ countGap }) => ({
|
|
13790
14050
|
flexDirection: "row",
|
|
13791
14051
|
alignItems: "center",
|
|
13792
14052
|
gap: countGap
|
|
@@ -13971,7 +14231,7 @@ var parseTokenValue55 = (value) => {
|
|
|
13971
14231
|
if (typeof value === "number") return value;
|
|
13972
14232
|
return parseFloat(value);
|
|
13973
14233
|
};
|
|
13974
|
-
var BadgeContainer =
|
|
14234
|
+
var BadgeContainer = styled51(View)(({ theme: theme2 }) => {
|
|
13975
14235
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13976
14236
|
const { sizing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
13977
14237
|
const { colour } = theme2.tokens.semantics;
|
|
@@ -13988,7 +14248,7 @@ var BadgeContainer = styled60(View)(({ theme: theme2 }) => {
|
|
|
13988
14248
|
borderBottomRightRadius: parseTokenValue55(borderRadius.xs)
|
|
13989
14249
|
};
|
|
13990
14250
|
});
|
|
13991
|
-
var BadgeIcon =
|
|
14251
|
+
var BadgeIcon = styled51(View)(({ theme: theme2 }) => {
|
|
13992
14252
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13993
14253
|
const sizing = theme2.tokens.semantics.dimensions.sizing;
|
|
13994
14254
|
return {
|
|
@@ -14011,7 +14271,7 @@ var Badge2 = React60.forwardRef(
|
|
|
14011
14271
|
}
|
|
14012
14272
|
);
|
|
14013
14273
|
Badge2.displayName = "ProductListingCard.Badge";
|
|
14014
|
-
var StyledGrid =
|
|
14274
|
+
var StyledGrid = styled51(View)(({ theme: theme2 }) => {
|
|
14015
14275
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14016
14276
|
return {
|
|
14017
14277
|
display: "grid",
|
|
@@ -14050,7 +14310,7 @@ var parseTokenValue56 = (value) => {
|
|
|
14050
14310
|
if (typeof value === "number") return value;
|
|
14051
14311
|
return parseFloat(value);
|
|
14052
14312
|
};
|
|
14053
|
-
var StyledRoot16 =
|
|
14313
|
+
var StyledRoot16 = styled51(Pressable)(({ theme: theme2 }) => {
|
|
14054
14314
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14055
14315
|
return {
|
|
14056
14316
|
display: "flex",
|
|
@@ -14060,18 +14320,18 @@ var StyledRoot16 = styled60(Pressable)(({ theme: theme2 }) => {
|
|
|
14060
14320
|
width: "100%"
|
|
14061
14321
|
};
|
|
14062
14322
|
});
|
|
14063
|
-
var ImageContainer =
|
|
14323
|
+
var ImageContainer = styled51(View)({
|
|
14064
14324
|
position: "relative",
|
|
14065
14325
|
width: "100%",
|
|
14066
14326
|
aspectRatio: 1,
|
|
14067
14327
|
overflow: "hidden"
|
|
14068
14328
|
});
|
|
14069
|
-
var StyledImage2 =
|
|
14329
|
+
var StyledImage2 = styled51(Image)({
|
|
14070
14330
|
width: "100%",
|
|
14071
14331
|
height: "100%",
|
|
14072
14332
|
resizeMode: "cover"
|
|
14073
14333
|
});
|
|
14074
|
-
var BadgeContainer2 =
|
|
14334
|
+
var BadgeContainer2 = styled51(View)(({ theme: theme2 }) => {
|
|
14075
14335
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14076
14336
|
const { sizing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
14077
14337
|
const { colour } = theme2.tokens.semantics;
|
|
@@ -14091,7 +14351,7 @@ var BadgeContainer2 = styled60(View)(({ theme: theme2 }) => {
|
|
|
14091
14351
|
borderBottomRightRadius: parseTokenValue56(borderRadius.sm)
|
|
14092
14352
|
};
|
|
14093
14353
|
});
|
|
14094
|
-
var ContentContainer =
|
|
14354
|
+
var ContentContainer = styled51(View)(({ theme: theme2 }) => {
|
|
14095
14355
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14096
14356
|
return {
|
|
14097
14357
|
display: "flex",
|
|
@@ -14101,19 +14361,19 @@ var ContentContainer = styled60(View)(({ theme: theme2 }) => {
|
|
|
14101
14361
|
width: "100%"
|
|
14102
14362
|
};
|
|
14103
14363
|
});
|
|
14104
|
-
var DetailsContainer =
|
|
14364
|
+
var DetailsContainer = styled51(View)({
|
|
14105
14365
|
display: "flex",
|
|
14106
14366
|
flexDirection: "column",
|
|
14107
14367
|
alignItems: "flex-start",
|
|
14108
14368
|
width: "100%"
|
|
14109
14369
|
});
|
|
14110
|
-
var CategoryWrapper =
|
|
14370
|
+
var CategoryWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
14111
14371
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14112
14372
|
return {
|
|
14113
14373
|
marginBottom: parseTokenValue56(spacing["3xs"])
|
|
14114
14374
|
};
|
|
14115
14375
|
});
|
|
14116
|
-
var TitleContainer =
|
|
14376
|
+
var TitleContainer = styled51(View)(({ theme: theme2 }) => {
|
|
14117
14377
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14118
14378
|
return {
|
|
14119
14379
|
display: "flex",
|
|
@@ -14122,13 +14382,13 @@ var TitleContainer = styled60(View)(({ theme: theme2 }) => {
|
|
|
14122
14382
|
marginBottom: parseTokenValue56(spacing.xs)
|
|
14123
14383
|
};
|
|
14124
14384
|
});
|
|
14125
|
-
var SizeWrapper =
|
|
14385
|
+
var SizeWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
14126
14386
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14127
14387
|
return {
|
|
14128
14388
|
marginBottom: parseTokenValue56(spacing.md)
|
|
14129
14389
|
};
|
|
14130
14390
|
});
|
|
14131
|
-
var PricingContainer =
|
|
14391
|
+
var PricingContainer = styled51(View)(({ theme: theme2 }) => {
|
|
14132
14392
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14133
14393
|
return {
|
|
14134
14394
|
display: "flex",
|
|
@@ -14211,7 +14471,7 @@ var ProductListingCardWithBadgeAndGrid = Object.assign(_ProductListingCard, {
|
|
|
14211
14471
|
Badge: Badge2,
|
|
14212
14472
|
Grid
|
|
14213
14473
|
});
|
|
14214
|
-
var StyledCardContainer =
|
|
14474
|
+
var StyledCardContainer = styled51(View)(({
|
|
14215
14475
|
theme: theme2,
|
|
14216
14476
|
borderless
|
|
14217
14477
|
}) => {
|
|
@@ -14239,7 +14499,7 @@ var StyledCardContainer = styled60(View)(({
|
|
|
14239
14499
|
zIndex: 1
|
|
14240
14500
|
});
|
|
14241
14501
|
});
|
|
14242
|
-
var StyledImage3 =
|
|
14502
|
+
var StyledImage3 = styled51(View)(
|
|
14243
14503
|
({
|
|
14244
14504
|
theme: theme2,
|
|
14245
14505
|
imageBackgroundColor,
|
|
@@ -14255,7 +14515,7 @@ var StyledImage3 = styled60(View)(
|
|
|
14255
14515
|
position: "relative"
|
|
14256
14516
|
})
|
|
14257
14517
|
);
|
|
14258
|
-
var StyledQuantityBadge =
|
|
14518
|
+
var StyledQuantityBadge = styled51(View)(({ theme: theme2 }) => {
|
|
14259
14519
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14260
14520
|
const borderRadius = theme2.tokens.semantics.dimensions.borderRadius;
|
|
14261
14521
|
const { colour } = theme2.tokens.semantics;
|
|
@@ -14273,7 +14533,7 @@ var StyledQuantityBadge = styled60(View)(({ theme: theme2 }) => {
|
|
|
14273
14533
|
zIndex: 2
|
|
14274
14534
|
};
|
|
14275
14535
|
});
|
|
14276
|
-
var StyledContentArea =
|
|
14536
|
+
var StyledContentArea = styled51(View)(({
|
|
14277
14537
|
theme: theme2,
|
|
14278
14538
|
borderless
|
|
14279
14539
|
}) => {
|
|
@@ -14287,23 +14547,23 @@ var StyledContentArea = styled60(View)(({
|
|
|
14287
14547
|
justifyContent: "space-between"
|
|
14288
14548
|
};
|
|
14289
14549
|
});
|
|
14290
|
-
var StyledTextContainer =
|
|
14550
|
+
var StyledTextContainer = styled51(View)(() => ({
|
|
14291
14551
|
gap: 2
|
|
14292
14552
|
}));
|
|
14293
|
-
var StyledBannerWrapper =
|
|
14553
|
+
var StyledBannerWrapper = styled51(View)(() => ({
|
|
14294
14554
|
width: "100%",
|
|
14295
14555
|
marginTop: -48,
|
|
14296
14556
|
paddingTop: 24,
|
|
14297
14557
|
paddingBottom: 16
|
|
14298
14558
|
}));
|
|
14299
|
-
var StyledRootWrapper =
|
|
14559
|
+
var StyledRootWrapper = styled51(View)(() => {
|
|
14300
14560
|
return {
|
|
14301
14561
|
flexDirection: "column",
|
|
14302
14562
|
width: "100%",
|
|
14303
14563
|
height: "100%"
|
|
14304
14564
|
};
|
|
14305
14565
|
});
|
|
14306
|
-
var StyledNotification =
|
|
14566
|
+
var StyledNotification = styled51(Notification)(({ theme: theme2 }) => {
|
|
14307
14567
|
const { spacing } = theme2.tokens.semantics.dimensions;
|
|
14308
14568
|
return {
|
|
14309
14569
|
top: parseTokenValue8(spacing.md),
|
|
@@ -14442,12 +14702,12 @@ var useTabNavigationContext = () => {
|
|
|
14442
14702
|
return context;
|
|
14443
14703
|
};
|
|
14444
14704
|
var parseTokenValue57 = (value) => parseFloat(value);
|
|
14445
|
-
var StyledFixedList =
|
|
14705
|
+
var StyledFixedList = styled51(View)({
|
|
14446
14706
|
flexDirection: "row",
|
|
14447
14707
|
alignItems: "stretch",
|
|
14448
14708
|
width: "100%"
|
|
14449
14709
|
});
|
|
14450
|
-
var StyledTab =
|
|
14710
|
+
var StyledTab = styled51(Pressable)(
|
|
14451
14711
|
({
|
|
14452
14712
|
tabHeight,
|
|
14453
14713
|
tabMinWidth,
|
|
@@ -14493,7 +14753,7 @@ var TabNavigationList = React60.forwardRef(
|
|
|
14493
14753
|
TabNavigationList.displayName = "TabNavigation.List";
|
|
14494
14754
|
var TabNavigationTab = React60.forwardRef(
|
|
14495
14755
|
(_a, ref) => {
|
|
14496
|
-
var _b = _a, { value, disabled = false, children } = _b, rest = __objRest(_b, ["value", "disabled", "children"]);
|
|
14756
|
+
var _b = _a, { value, disabled = false, icon, avatar, children } = _b, rest = __objRest(_b, ["value", "disabled", "icon", "avatar", "children"]);
|
|
14497
14757
|
const { layout } = useTabNavigationContext();
|
|
14498
14758
|
const { value: selectedValue } = TabsPrimitive.useRootContext();
|
|
14499
14759
|
const theme2 = useTheme();
|
|
@@ -14503,7 +14763,7 @@ var TabNavigationTab = React60.forwardRef(
|
|
|
14503
14763
|
const token = selected ? typography.selected : typography.default;
|
|
14504
14764
|
const borderColour = selected ? colour.border.default : colour.border.disabled;
|
|
14505
14765
|
const textColour = disabled ? theme2.tokens.primitives.colour.brand.brown["5"] : colour.text.default;
|
|
14506
|
-
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { value, disabled, asChild: true, children: /* @__PURE__ */
|
|
14766
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { value, disabled, asChild: true, children: /* @__PURE__ */ jsxs(
|
|
14507
14767
|
StyledTab,
|
|
14508
14768
|
__spreadProps(__spreadValues({
|
|
14509
14769
|
ref,
|
|
@@ -14517,7 +14777,11 @@ var TabNavigationTab = React60.forwardRef(
|
|
|
14517
14777
|
tabBorderColor: borderColour,
|
|
14518
14778
|
tabFlex: layout === "fixed" ? 1 : void 0
|
|
14519
14779
|
}, rest), {
|
|
14520
|
-
children:
|
|
14780
|
+
children: [
|
|
14781
|
+
avatar && /* @__PURE__ */ jsx(Avatar, __spreadValues({}, avatar)),
|
|
14782
|
+
icon && /* @__PURE__ */ jsx(Icon, { icon, customColour: textColour, "aria-hidden": true }),
|
|
14783
|
+
/* @__PURE__ */ jsx(Typography, { token, color: textColour, children })
|
|
14784
|
+
]
|
|
14521
14785
|
})
|
|
14522
14786
|
) });
|
|
14523
14787
|
}
|
|
@@ -14591,6 +14855,6 @@ var TabNavigation = Object.assign(TabNavigationRoot, {
|
|
|
14591
14855
|
Panel: TabNavigationPanel
|
|
14592
14856
|
});
|
|
14593
14857
|
|
|
14594
|
-
export { Accordion, Animated5 as Animated, Avatar, BRAND_FONTS, Badge, Button, ButtonDock, ButtonGroup, CarouselControls, Checkbox, CheckboxGroup, CopyField, CopyFieldInput, Countdown, DatePicker, Drawer, FilterTab, Hint, Icon, IconButton, Illustration, Input, InputDescription, InputError, InputField, InputLabel, Link, Logo, MessageCard, MessageCardBanner, MessageCardInsight, Notification, NumberField, NumberInput, NumberInputField, PasswordField, PasswordFieldInput, PasswordFieldRequirements, PawprintProvider, PictureSelector, ProductDisplayCard, ProductListingCardWithBadgeAndGrid as ProductListingCard, Progress, Radio, RadioGroup, SearchField, SearchFieldInput, SegmentedControl, SelectField, SelectFieldContent, SelectFieldItem, SelectFieldTrigger, SelectFieldValue, Slider, Spinner, Switch, TabNavigation, Tag, TextArea, TextAreaField, TextAreaLabel, ThemeProvider, Tooltip, Typography, createPawprintTheme, fadeAnimation, fadeDownAnimation, fadeUpAnimation, registerLogo, resolveFont, resolveLogo, scaleAnimation, slideInAnimation, slideOutAnimation, theme, useCopyField, usePasswordField, usePawprint, useSearchField, useSelectField };
|
|
14858
|
+
export { Accordion, Animated5 as Animated, Avatar, BRAND_FONTS, Badge, Button, ButtonDock, ButtonGroup, CarouselControls, Checkbox, CheckboxGroup, CopyField, CopyFieldInput, Countdown, DatePicker, Drawer, FilterTab, Hint, Icon, IconButton, Illustration, Input, InputDescription, InputError, InputField, InputLabel, Link, Logo, MessageCard, MessageCardBanner, MessageCardInsight, NativeSelectPicker, Notification, NumberField, NumberInput, NumberInputField, PasswordField, PasswordFieldInput, PasswordFieldRequirements, PawprintProvider, PictureSelector, ProductDisplayCard, ProductListingCardWithBadgeAndGrid as ProductListingCard, Progress, Radio, RadioGroup, SearchField, SearchFieldInput, SegmentedControl, SelectField, SelectFieldContent, SelectFieldItem, SelectFieldTrigger, SelectFieldValue, Slider, Spinner, Switch, TabNavigation, Tag, TextArea, TextAreaField, TextAreaLabel, ThemeProvider, Tooltip, Typography, createPawprintTheme, fadeAnimation, fadeDownAnimation, fadeUpAnimation, registerLogo, resolveFont, resolveLogo, scaleAnimation, slideInAnimation, slideOutAnimation, theme, useCopyField, usePasswordField, usePawprint, useSearchField, useSelectField };
|
|
14595
14859
|
//# sourceMappingURL=index.js.map
|
|
14596
14860
|
//# sourceMappingURL=index.js.map
|