@butternutbox/pawprint-native 0.3.2 → 0.4.1
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 +10 -10
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +1012 -173
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +252 -5
- package/dist/index.d.ts +252 -5
- package/dist/index.js +1007 -173
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/components/atoms/Hint/Hint.tsx +1 -2
- package/src/components/atoms/Input/InputField.tsx +7 -1
- package/src/components/molecules/Animated/Animated.tsx +12 -3
- package/src/components/molecules/Countdown/Countdown.stories.tsx +218 -0
- package/src/components/molecules/Countdown/Countdown.tsx +315 -0
- package/src/components/molecules/Countdown/index.ts +2 -0
- package/src/components/molecules/NumberField/NumberFieldInput.tsx +14 -24
- package/src/components/molecules/ProductDisplayCard/ProductDisplayCard.stories.tsx +275 -0
- package/src/components/molecules/ProductDisplayCard/ProductDisplayCard.test.tsx +198 -0
- package/src/components/molecules/ProductDisplayCard/ProductDisplayCard.tsx +292 -0
- package/src/components/molecules/ProductDisplayCard/index.ts +5 -0
- package/src/components/molecules/ProductListingCard/Badge.tsx +65 -0
- package/src/components/molecules/ProductListingCard/Grid.tsx +59 -0
- package/src/components/molecules/ProductListingCard/ProductListingCard.stories.tsx +209 -0
- package/src/components/molecules/ProductListingCard/ProductListingCard.tsx +235 -0
- package/src/components/molecules/ProductListingCard/index.ts +2 -0
- package/src/components/molecules/TabNavigation/TabNavigation.stories.tsx +183 -0
- package/src/components/molecules/TabNavigation/TabNavigation.tsx +354 -0
- package/src/components/molecules/TabNavigation/index.ts +7 -0
- package/src/components/molecules/index.ts +4 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/token.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useTheme, ThemeProvider as ThemeProvider$1 } from '@emotion/react';
|
|
2
|
-
import { Brand, Theme,
|
|
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 styled60 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';
|
|
@@ -20,6 +20,7 @@ import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
|
20
20
|
import { scheduleOnRN } from 'react-native-worklets';
|
|
21
21
|
import * as TooltipPrimitive from '@rn-primitives/tooltip';
|
|
22
22
|
import { isSameDay, isToday, isBefore, format } from 'date-fns';
|
|
23
|
+
import * as TabsPrimitive from '@rn-primitives/tabs';
|
|
23
24
|
|
|
24
25
|
var __defProp = Object.defineProperty;
|
|
25
26
|
var __defProps = Object.defineProperties;
|
|
@@ -202,7 +203,7 @@ var VARIANT_DEFAULTS = {
|
|
|
202
203
|
heading: { size: "md" },
|
|
203
204
|
display: { size: "lg" }
|
|
204
205
|
};
|
|
205
|
-
var StyledText =
|
|
206
|
+
var StyledText = styled60(Text)({});
|
|
206
207
|
var Typography = React60.forwardRef(
|
|
207
208
|
(props, ref) => {
|
|
208
209
|
const theme2 = useTheme();
|
|
@@ -286,7 +287,7 @@ var Typography = React60.forwardRef(
|
|
|
286
287
|
);
|
|
287
288
|
Typography.displayName = "Typography";
|
|
288
289
|
var parseTokenValue2 = (value) => parseFloat(value);
|
|
289
|
-
var StyledIconRoot =
|
|
290
|
+
var StyledIconRoot = styled60(View)(({ iconDimension }) => ({
|
|
290
291
|
alignItems: "center",
|
|
291
292
|
justifyContent: "center",
|
|
292
293
|
flexShrink: 0,
|
|
@@ -3828,7 +3829,7 @@ var SIZE_MAP = {
|
|
|
3828
3829
|
lg: "large"
|
|
3829
3830
|
};
|
|
3830
3831
|
var parseTokenValue3 = (value) => parseFloat(value);
|
|
3831
|
-
var StyledRoot =
|
|
3832
|
+
var StyledRoot = styled60(AvatarPrimitive.Root)(({ theme: theme2, size, border }) => {
|
|
3832
3833
|
const { avatar } = theme2.tokens.components;
|
|
3833
3834
|
const { borderRadius } = theme2.tokens.semantics.dimensions;
|
|
3834
3835
|
const tokenSize = SIZE_MAP[size];
|
|
@@ -3849,12 +3850,12 @@ var StyledRoot = styled52(AvatarPrimitive.Root)(({ theme: theme2, size, border }
|
|
|
3849
3850
|
borderStyle: "solid"
|
|
3850
3851
|
});
|
|
3851
3852
|
});
|
|
3852
|
-
var StyledImage =
|
|
3853
|
+
var StyledImage = styled60(AvatarPrimitive.Image)({
|
|
3853
3854
|
width: "100%",
|
|
3854
3855
|
height: "100%",
|
|
3855
3856
|
resizeMode: "cover"
|
|
3856
3857
|
});
|
|
3857
|
-
var StyledFallback =
|
|
3858
|
+
var StyledFallback = styled60(AvatarPrimitive.Fallback)(({ theme: theme2 }) => {
|
|
3858
3859
|
const { background, text } = theme2.tokens.semantics.colour;
|
|
3859
3860
|
return {
|
|
3860
3861
|
display: "flex",
|
|
@@ -3866,7 +3867,7 @@ var StyledFallback = styled52(AvatarPrimitive.Fallback)(({ theme: theme2 }) => {
|
|
|
3866
3867
|
color: text.primary
|
|
3867
3868
|
};
|
|
3868
3869
|
});
|
|
3869
|
-
var StyledIcon =
|
|
3870
|
+
var StyledIcon = styled60(Icon)(({
|
|
3870
3871
|
theme: theme2,
|
|
3871
3872
|
avatarSize
|
|
3872
3873
|
}) => {
|
|
@@ -3930,7 +3931,7 @@ var AvatarRoot = React60.forwardRef(
|
|
|
3930
3931
|
AvatarRoot.displayName = "Avatar";
|
|
3931
3932
|
var Avatar = AvatarRoot;
|
|
3932
3933
|
var parseTokenValue4 = (value) => parseFloat(value);
|
|
3933
|
-
var Container =
|
|
3934
|
+
var Container = styled60(View)(({ theme: theme2, showBg }) => {
|
|
3934
3935
|
const { colour, sizing, borderRadius } = theme2.tokens.components.carouselControls.carouselControl;
|
|
3935
3936
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
3936
3937
|
return {
|
|
@@ -3999,7 +4000,7 @@ var CarouselControls = React60.forwardRef(
|
|
|
3999
4000
|
);
|
|
4000
4001
|
CarouselControls.displayName = "CarouselControls";
|
|
4001
4002
|
var parseTokenValue5 = (value) => parseFloat(value);
|
|
4002
|
-
var StyledBadge =
|
|
4003
|
+
var StyledBadge = styled60(View)(({ theme: theme2, badgeVariant, badgeSize, pinned, top, bottom }) => {
|
|
4003
4004
|
const { sizing, spacing, colour, primary, pinnedBadge } = theme2.tokens.components.badges.badge;
|
|
4004
4005
|
const backgroundColorMap = {
|
|
4005
4006
|
primary: colour.background.default,
|
|
@@ -4113,7 +4114,7 @@ var Badge = React60.forwardRef(
|
|
|
4113
4114
|
);
|
|
4114
4115
|
Badge.displayName = "Badge";
|
|
4115
4116
|
var parseTokenValue6 = (value) => parseFloat(value);
|
|
4116
|
-
var StyledSpinner =
|
|
4117
|
+
var StyledSpinner = styled60(View)({});
|
|
4117
4118
|
var Spinner = React60.forwardRef(
|
|
4118
4119
|
(_a, ref) => {
|
|
4119
4120
|
var _b = _a, { size = "md", variant = "dark", style } = _b, rest = __objRest(_b, ["size", "variant", "style"]);
|
|
@@ -4179,12 +4180,12 @@ var sizeToTypographyKey = {
|
|
|
4179
4180
|
md: "medium",
|
|
4180
4181
|
sm: "small"
|
|
4181
4182
|
};
|
|
4182
|
-
var IconWrapper =
|
|
4183
|
+
var IconWrapper = styled60(View)({
|
|
4183
4184
|
alignItems: "center",
|
|
4184
4185
|
justifyContent: "center",
|
|
4185
4186
|
flexShrink: 0
|
|
4186
4187
|
});
|
|
4187
|
-
var StyledButton =
|
|
4188
|
+
var StyledButton = styled60(Pressable)(
|
|
4188
4189
|
({
|
|
4189
4190
|
buttonHeight,
|
|
4190
4191
|
buttonMinWidth,
|
|
@@ -4212,11 +4213,11 @@ var StyledButton = styled52(Pressable)(
|
|
|
4212
4213
|
opacity: buttonOpacity
|
|
4213
4214
|
}, buttonBorderWidth ? { borderWidth: buttonBorderWidth, borderColor: buttonBorderColor } : {}), buttonFullWidth ? { width: "100%" } : {})
|
|
4214
4215
|
);
|
|
4215
|
-
var StyledTextWrapper =
|
|
4216
|
+
var StyledTextWrapper = styled60(View)(({ textOpacity }) => ({
|
|
4216
4217
|
opacity: textOpacity,
|
|
4217
4218
|
flexShrink: 0
|
|
4218
4219
|
}));
|
|
4219
|
-
var StyledSpinnerWrapper =
|
|
4220
|
+
var StyledSpinnerWrapper = styled60(View)({
|
|
4220
4221
|
position: "absolute",
|
|
4221
4222
|
alignItems: "center",
|
|
4222
4223
|
justifyContent: "center"
|
|
@@ -4337,8 +4338,10 @@ var Button = React60.forwardRef(
|
|
|
4337
4338
|
}
|
|
4338
4339
|
);
|
|
4339
4340
|
Button.displayName = "Button";
|
|
4341
|
+
|
|
4342
|
+
// src/utils/token.ts
|
|
4340
4343
|
var parseTokenValue8 = (value) => parseFloat(value);
|
|
4341
|
-
var StyledHint =
|
|
4344
|
+
var StyledHint = styled60(View)(({
|
|
4342
4345
|
theme: theme2,
|
|
4343
4346
|
hintVariant
|
|
4344
4347
|
}) => {
|
|
@@ -4375,7 +4378,7 @@ var sizeToIconSizeToken = {
|
|
|
4375
4378
|
md: "lg",
|
|
4376
4379
|
sm: "md"
|
|
4377
4380
|
};
|
|
4378
|
-
var StyledIconButton =
|
|
4381
|
+
var StyledIconButton = styled60(Pressable)(
|
|
4379
4382
|
({
|
|
4380
4383
|
buttonDimension,
|
|
4381
4384
|
buttonBorderRadius,
|
|
@@ -4394,12 +4397,12 @@ var StyledIconButton = styled52(Pressable)(
|
|
|
4394
4397
|
opacity: buttonOpacity
|
|
4395
4398
|
}, buttonBorderWidth ? { borderWidth: buttonBorderWidth, borderColor: buttonBorderColor } : {})
|
|
4396
4399
|
);
|
|
4397
|
-
var StyledIconWrapper =
|
|
4400
|
+
var StyledIconWrapper = styled60(View)(({ iconDimension, iconOpacity }) => ({
|
|
4398
4401
|
width: iconDimension,
|
|
4399
4402
|
height: iconDimension,
|
|
4400
4403
|
opacity: iconOpacity
|
|
4401
4404
|
}));
|
|
4402
|
-
var StyledSpinnerWrapper2 =
|
|
4405
|
+
var StyledSpinnerWrapper2 = styled60(View)({
|
|
4403
4406
|
position: "absolute",
|
|
4404
4407
|
alignItems: "center",
|
|
4405
4408
|
justifyContent: "center"
|
|
@@ -4507,7 +4510,7 @@ var IconButton = React60.forwardRef(
|
|
|
4507
4510
|
);
|
|
4508
4511
|
IconButton.displayName = "IconButton";
|
|
4509
4512
|
var parseTokenValue10 = (value) => parseFloat(value);
|
|
4510
|
-
var StyledRoot2 =
|
|
4513
|
+
var StyledRoot2 = styled60(View)(({ illustrationHeight }) => ({
|
|
4511
4514
|
alignItems: "center",
|
|
4512
4515
|
justifyContent: "center",
|
|
4513
4516
|
flexShrink: 0,
|
|
@@ -4544,7 +4547,7 @@ var Illustration = React60.forwardRef(
|
|
|
4544
4547
|
);
|
|
4545
4548
|
Illustration.displayName = "Illustration";
|
|
4546
4549
|
var parseTokenValue11 = (value) => parseFloat(value);
|
|
4547
|
-
var StyledLabelRow =
|
|
4550
|
+
var StyledLabelRow = styled60(View)(({ labelGap }) => ({
|
|
4548
4551
|
flexDirection: "row",
|
|
4549
4552
|
alignItems: "center",
|
|
4550
4553
|
gap: labelGap
|
|
@@ -4792,7 +4795,7 @@ var VolumeUp = (props, ref) => /* @__PURE__ */ jsx(Svg, __spreadProps2(__spreadV
|
|
|
4792
4795
|
var ForwardRef612 = forwardRef(VolumeUp);
|
|
4793
4796
|
ForwardRef612.category = "core";
|
|
4794
4797
|
var parseTokenValue12 = (value) => parseFloat(value);
|
|
4795
|
-
var StyledInputWrapper =
|
|
4798
|
+
var StyledInputWrapper = styled60(Animated.View)(({ theme: theme2, isDisabled, containerWidth, containerHeight }) => {
|
|
4796
4799
|
const { spacing, colour, borderRadius, size } = theme2.tokens.components.inputs;
|
|
4797
4800
|
return {
|
|
4798
4801
|
flexDirection: "row",
|
|
@@ -4806,25 +4809,31 @@ var StyledInputWrapper = styled52(Animated.View)(({ theme: theme2, isDisabled, c
|
|
|
4806
4809
|
flexShrink: containerWidth !== void 0 ? 0 : void 0
|
|
4807
4810
|
};
|
|
4808
4811
|
});
|
|
4809
|
-
var StyledInput =
|
|
4810
|
-
const { colour } = theme2.tokens.components.inputs;
|
|
4812
|
+
var StyledInput = styled60(TextInput)(({ theme: theme2 }) => {
|
|
4813
|
+
const { colour, field } = theme2.tokens.components.inputs;
|
|
4814
|
+
const placeholderTypography = field.placeholder.default;
|
|
4811
4815
|
return __spreadValues({
|
|
4812
4816
|
flex: 1,
|
|
4813
4817
|
minWidth: 0,
|
|
4814
4818
|
minHeight: 0,
|
|
4815
4819
|
padding: 0,
|
|
4816
|
-
color: colour.field.text.default
|
|
4820
|
+
color: colour.field.text.default,
|
|
4821
|
+
fontSize: parseTokenValue12(placeholderTypography.fontSize),
|
|
4822
|
+
fontFamily: placeholderTypography.fontFamily,
|
|
4823
|
+
fontWeight: placeholderTypography.fontWeight,
|
|
4824
|
+
lineHeight: parseTokenValue12(placeholderTypography.lineHeight),
|
|
4825
|
+
letterSpacing: parseTokenValue12(placeholderTypography.letterSpacing)
|
|
4817
4826
|
}, {
|
|
4818
4827
|
outlineStyle: "none",
|
|
4819
4828
|
outlineWidth: 0,
|
|
4820
4829
|
outlineColor: "transparent"
|
|
4821
4830
|
});
|
|
4822
4831
|
});
|
|
4823
|
-
var StyledFocusRing =
|
|
4832
|
+
var StyledFocusRing = styled60(View)({
|
|
4824
4833
|
position: "absolute",
|
|
4825
4834
|
pointerEvents: "none"
|
|
4826
4835
|
});
|
|
4827
|
-
var StyledIconSlot =
|
|
4836
|
+
var StyledIconSlot = styled60(View)({
|
|
4828
4837
|
alignItems: "center",
|
|
4829
4838
|
justifyContent: "center",
|
|
4830
4839
|
flexShrink: 0
|
|
@@ -4985,7 +4994,7 @@ var InputField = React60.forwardRef(
|
|
|
4985
4994
|
}
|
|
4986
4995
|
);
|
|
4987
4996
|
InputField.displayName = "Input.Field";
|
|
4988
|
-
var StyledDescriptionRow =
|
|
4997
|
+
var StyledDescriptionRow = styled60(View)({
|
|
4989
4998
|
flexDirection: "row",
|
|
4990
4999
|
alignItems: "center"
|
|
4991
5000
|
});
|
|
@@ -5005,7 +5014,7 @@ var InputDescription = React60.forwardRef(
|
|
|
5005
5014
|
}
|
|
5006
5015
|
);
|
|
5007
5016
|
InputDescription.displayName = "Input.Description";
|
|
5008
|
-
var StyledErrorRow =
|
|
5017
|
+
var StyledErrorRow = styled60(View)({
|
|
5009
5018
|
flexDirection: "row",
|
|
5010
5019
|
alignItems: "center"
|
|
5011
5020
|
});
|
|
@@ -5026,7 +5035,7 @@ var InputError = React60.forwardRef(
|
|
|
5026
5035
|
);
|
|
5027
5036
|
InputError.displayName = "Input.Error";
|
|
5028
5037
|
var parseTokenValue13 = (value) => parseFloat(value);
|
|
5029
|
-
var StyledRoot3 =
|
|
5038
|
+
var StyledRoot3 = styled60(View)(({ theme: theme2 }) => {
|
|
5030
5039
|
const { spacing } = theme2.tokens.components.inputs;
|
|
5031
5040
|
return {
|
|
5032
5041
|
gap: parseTokenValue13(spacing.gap)
|
|
@@ -7669,7 +7678,7 @@ function registerLogo(brand, variant, component) {
|
|
|
7669
7678
|
}
|
|
7670
7679
|
LOGOS[brand][variant] = component;
|
|
7671
7680
|
}
|
|
7672
|
-
var StyledRoot4 =
|
|
7681
|
+
var StyledRoot4 = styled60(View)({
|
|
7673
7682
|
alignItems: "center",
|
|
7674
7683
|
justifyContent: "center",
|
|
7675
7684
|
flexShrink: 0
|
|
@@ -7697,7 +7706,7 @@ var Logo = React60.forwardRef(
|
|
|
7697
7706
|
);
|
|
7698
7707
|
Logo.displayName = "Logo";
|
|
7699
7708
|
var parseTokenValue14 = (value) => parseFloat(value);
|
|
7700
|
-
var StyledFieldGroup =
|
|
7709
|
+
var StyledFieldGroup = styled60(View)(({ theme: theme2 }) => {
|
|
7701
7710
|
const { spacing } = theme2.tokens.components.inputs;
|
|
7702
7711
|
return {
|
|
7703
7712
|
flexDirection: "row",
|
|
@@ -7705,7 +7714,7 @@ var StyledFieldGroup = styled52(View)(({ theme: theme2 }) => {
|
|
|
7705
7714
|
gap: parseTokenValue14(spacing.field.gap)
|
|
7706
7715
|
};
|
|
7707
7716
|
});
|
|
7708
|
-
var StyledFieldTextWrapper =
|
|
7717
|
+
var StyledFieldTextWrapper = styled60(View)({
|
|
7709
7718
|
flexShrink: 0,
|
|
7710
7719
|
justifyContent: "center"
|
|
7711
7720
|
});
|
|
@@ -7744,7 +7753,7 @@ var NumberInputField = React60.forwardRef((_a, ref) => {
|
|
|
7744
7753
|
});
|
|
7745
7754
|
NumberInputField.displayName = "NumberInput.Field";
|
|
7746
7755
|
var parseTokenValue15 = (value) => parseFloat(value);
|
|
7747
|
-
var StyledRoot5 =
|
|
7756
|
+
var StyledRoot5 = styled60(View)(({ theme: theme2 }) => {
|
|
7748
7757
|
const { spacing } = theme2.tokens.components.inputs;
|
|
7749
7758
|
return {
|
|
7750
7759
|
gap: parseTokenValue15(spacing.gap)
|
|
@@ -7798,13 +7807,13 @@ var NumberInput = Object.assign(NumberInputRoot, {
|
|
|
7798
7807
|
Error: InputError
|
|
7799
7808
|
});
|
|
7800
7809
|
var parseTokenValue16 = (value) => parseFloat(value);
|
|
7801
|
-
var StyledContainer =
|
|
7810
|
+
var StyledContainer = styled60(View)(({ switchGap, switchOpacity }) => ({
|
|
7802
7811
|
flexDirection: "row",
|
|
7803
7812
|
alignItems: "flex-start",
|
|
7804
7813
|
gap: switchGap,
|
|
7805
7814
|
opacity: switchOpacity
|
|
7806
7815
|
}));
|
|
7807
|
-
var StyledControlTrack =
|
|
7816
|
+
var StyledControlTrack = styled60(View)(
|
|
7808
7817
|
({
|
|
7809
7818
|
switchChecked,
|
|
7810
7819
|
controlWidth,
|
|
@@ -7830,14 +7839,14 @@ var StyledControlTrack = styled52(View)(
|
|
|
7830
7839
|
justifyContent: "center"
|
|
7831
7840
|
})
|
|
7832
7841
|
);
|
|
7833
|
-
var StyledThumb =
|
|
7842
|
+
var StyledThumb = styled60(Animated.View)(({ thumbSize, thumbBgColor }) => ({
|
|
7834
7843
|
width: thumbSize,
|
|
7835
7844
|
height: thumbSize,
|
|
7836
7845
|
borderRadius: thumbSize / 2,
|
|
7837
7846
|
backgroundColor: thumbBgColor,
|
|
7838
7847
|
position: "absolute"
|
|
7839
7848
|
}));
|
|
7840
|
-
var StyledContent =
|
|
7849
|
+
var StyledContent = styled60(View)(({ contentGap }) => ({
|
|
7841
7850
|
gap: contentGap
|
|
7842
7851
|
}));
|
|
7843
7852
|
var Switch = React60.forwardRef(
|
|
@@ -7943,7 +7952,7 @@ var Switch = React60.forwardRef(
|
|
|
7943
7952
|
);
|
|
7944
7953
|
Switch.displayName = "Switch";
|
|
7945
7954
|
var parseTokenValue17 = (value) => parseFloat(value);
|
|
7946
|
-
var StyledTag =
|
|
7955
|
+
var StyledTag = styled60(View)(({ theme: theme2, tagVariant, tagSize }) => {
|
|
7947
7956
|
const { sizing, spacing, colour, badge } = theme2.tokens.components.tags;
|
|
7948
7957
|
const backgroundColorMap = {
|
|
7949
7958
|
primary: colour.primary.background,
|
|
@@ -8016,7 +8025,7 @@ var Tag = React60.forwardRef(
|
|
|
8016
8025
|
);
|
|
8017
8026
|
Tag.displayName = "Tag";
|
|
8018
8027
|
var parseTokenValue18 = (value) => parseFloat(value);
|
|
8019
|
-
var StyledTextAreaWrapper =
|
|
8028
|
+
var StyledTextAreaWrapper = styled60(Animated.View)(({ theme: theme2, isDisabled }) => {
|
|
8020
8029
|
const { spacing, colour, borderRadius, size } = theme2.tokens.components.inputs;
|
|
8021
8030
|
const { dimensions } = theme2.tokens.semantics;
|
|
8022
8031
|
return {
|
|
@@ -8030,7 +8039,7 @@ var StyledTextAreaWrapper = styled52(Animated.View)(({ theme: theme2, isDisabled
|
|
|
8030
8039
|
position: "relative"
|
|
8031
8040
|
};
|
|
8032
8041
|
});
|
|
8033
|
-
var StyledTextArea =
|
|
8042
|
+
var StyledTextArea = styled60(TextInput)(({ theme: theme2 }) => {
|
|
8034
8043
|
const { colour } = theme2.tokens.components.inputs;
|
|
8035
8044
|
return __spreadValues({
|
|
8036
8045
|
flex: 1,
|
|
@@ -8045,17 +8054,17 @@ var StyledTextArea = styled52(TextInput)(({ theme: theme2 }) => {
|
|
|
8045
8054
|
outlineColor: "transparent"
|
|
8046
8055
|
});
|
|
8047
8056
|
});
|
|
8048
|
-
var StyledFocusRing2 =
|
|
8057
|
+
var StyledFocusRing2 = styled60(View)({
|
|
8049
8058
|
position: "absolute",
|
|
8050
8059
|
pointerEvents: "none"
|
|
8051
8060
|
});
|
|
8052
|
-
var TextAreaContainer =
|
|
8061
|
+
var TextAreaContainer = styled60(View)({
|
|
8053
8062
|
position: "relative",
|
|
8054
8063
|
width: "100%",
|
|
8055
8064
|
flex: 1,
|
|
8056
8065
|
flexDirection: "column"
|
|
8057
8066
|
});
|
|
8058
|
-
var IconWrapper2 =
|
|
8067
|
+
var IconWrapper2 = styled60(View)(({ side }) => {
|
|
8059
8068
|
return {
|
|
8060
8069
|
position: "absolute",
|
|
8061
8070
|
top: 0,
|
|
@@ -8242,18 +8251,18 @@ var TextAreaField = React60.forwardRef(
|
|
|
8242
8251
|
);
|
|
8243
8252
|
TextAreaField.displayName = "TextArea.Field";
|
|
8244
8253
|
var parseTokenValue19 = (value) => parseFloat(value);
|
|
8245
|
-
var StyledLabelWrapper =
|
|
8254
|
+
var StyledLabelWrapper = styled60(View)({
|
|
8246
8255
|
flexDirection: "row",
|
|
8247
8256
|
alignItems: "center",
|
|
8248
8257
|
justifyContent: "space-between",
|
|
8249
8258
|
width: "100%"
|
|
8250
8259
|
});
|
|
8251
|
-
var StyledLabel =
|
|
8260
|
+
var StyledLabel = styled60(View)(({ labelGap }) => ({
|
|
8252
8261
|
flexDirection: "row",
|
|
8253
8262
|
alignItems: "center",
|
|
8254
8263
|
gap: labelGap
|
|
8255
8264
|
}));
|
|
8256
|
-
var StyledCharCountWrapper =
|
|
8265
|
+
var StyledCharCountWrapper = styled60(View)(({ charCountGap, charCountPadding }) => ({
|
|
8257
8266
|
flexDirection: "row",
|
|
8258
8267
|
alignItems: "center",
|
|
8259
8268
|
gap: charCountGap,
|
|
@@ -8317,7 +8326,7 @@ var TextAreaLabel = React60.forwardRef(
|
|
|
8317
8326
|
);
|
|
8318
8327
|
TextAreaLabel.displayName = "TextArea.Label";
|
|
8319
8328
|
var parseTokenValue20 = (value) => parseFloat(value);
|
|
8320
|
-
var StyledRoot6 =
|
|
8329
|
+
var StyledRoot6 = styled60(View)(({ theme: theme2 }) => {
|
|
8321
8330
|
const { spacing } = theme2.tokens.components.inputs;
|
|
8322
8331
|
return {
|
|
8323
8332
|
gap: parseTokenValue20(spacing.gap)
|
|
@@ -8412,25 +8421,25 @@ var AccordionContext = React60.createContext({
|
|
|
8412
8421
|
size: "small"
|
|
8413
8422
|
});
|
|
8414
8423
|
var parseTokenValue21 = (value) => parseFloat(value);
|
|
8415
|
-
var StyledRoot7 =
|
|
8424
|
+
var StyledRoot7 = styled60(View)(({ rootGap }) => ({
|
|
8416
8425
|
width: "100%",
|
|
8417
8426
|
flexDirection: "column",
|
|
8418
8427
|
gap: rootGap
|
|
8419
8428
|
}));
|
|
8420
|
-
var StyledItem =
|
|
8429
|
+
var StyledItem = styled60(View)({
|
|
8421
8430
|
flexDirection: "column"
|
|
8422
8431
|
});
|
|
8423
|
-
var StyledTrigger =
|
|
8432
|
+
var StyledTrigger = styled60(Pressable)(({ triggerOpacity }) => ({
|
|
8424
8433
|
flexDirection: "row",
|
|
8425
8434
|
alignItems: "center",
|
|
8426
8435
|
justifyContent: "space-between",
|
|
8427
8436
|
width: "100%",
|
|
8428
8437
|
opacity: triggerOpacity
|
|
8429
8438
|
}));
|
|
8430
|
-
var StyledPanel =
|
|
8439
|
+
var StyledPanel = styled60(View)(({ panelGap }) => ({
|
|
8431
8440
|
marginTop: panelGap
|
|
8432
8441
|
}));
|
|
8433
|
-
var StyledDivider =
|
|
8442
|
+
var StyledDivider = styled60(View)(({ dividerColor, dividerMarginTop }) => ({
|
|
8434
8443
|
height: 1,
|
|
8435
8444
|
backgroundColor: dividerColor,
|
|
8436
8445
|
marginTop: dividerMarginTop
|
|
@@ -8682,7 +8691,7 @@ function buildDelayedEntering(variant, delayMs) {
|
|
|
8682
8691
|
}
|
|
8683
8692
|
var Animated5 = React60.forwardRef(
|
|
8684
8693
|
(_a, ref) => {
|
|
8685
|
-
var _b = _a, { variant = "fade", delay, children } = _b, props = __objRest(_b, ["variant", "delay", "children"]);
|
|
8694
|
+
var _b = _a, { variant = "fade", delay, exit = true, children } = _b, props = __objRest(_b, ["variant", "delay", "exit", "children"]);
|
|
8686
8695
|
const delayMs = delay !== void 0 && delay > 0 ? Math.round(delay * 1e3) : 0;
|
|
8687
8696
|
const entering = delayMs > 0 ? buildDelayedEntering(variant, delayMs) : ENTERING[variant];
|
|
8688
8697
|
return /* @__PURE__ */ jsx(
|
|
@@ -8690,7 +8699,7 @@ var Animated5 = React60.forwardRef(
|
|
|
8690
8699
|
__spreadProps(__spreadValues({
|
|
8691
8700
|
ref,
|
|
8692
8701
|
entering,
|
|
8693
|
-
exiting: EXITING[variant]
|
|
8702
|
+
exiting: exit ? EXITING[variant] : void 0
|
|
8694
8703
|
}, props), {
|
|
8695
8704
|
children
|
|
8696
8705
|
})
|
|
@@ -8753,7 +8762,7 @@ var OPEN_DURATION = 320;
|
|
|
8753
8762
|
var CLOSE_DURATION = 220;
|
|
8754
8763
|
var DISMISS_THRESHOLD = 80;
|
|
8755
8764
|
var parseTokenValue22 = (value) => parseFloat(value);
|
|
8756
|
-
var StyledPanel2 =
|
|
8765
|
+
var StyledPanel2 = styled60(View)(
|
|
8757
8766
|
({
|
|
8758
8767
|
panelBorderRadius,
|
|
8759
8768
|
panelBgColor,
|
|
@@ -8988,7 +8997,7 @@ var styles = StyleSheet.create({
|
|
|
8988
8997
|
}
|
|
8989
8998
|
});
|
|
8990
8999
|
var parseTokenValue23 = (value) => parseFloat(value);
|
|
8991
|
-
var StyledWrapper =
|
|
9000
|
+
var StyledWrapper = styled60(View)(
|
|
8992
9001
|
({ grabberPaddingTop }) => ({
|
|
8993
9002
|
alignItems: "center",
|
|
8994
9003
|
justifyContent: "center",
|
|
@@ -8997,7 +9006,7 @@ var StyledWrapper = styled52(View)(
|
|
|
8997
9006
|
paddingBottom: grabberPaddingTop
|
|
8998
9007
|
})
|
|
8999
9008
|
);
|
|
9000
|
-
var StyledBar =
|
|
9009
|
+
var StyledBar = styled60(View)(({ barWidth, barHeight, barBorderRadius, barColor }) => ({
|
|
9001
9010
|
width: barWidth,
|
|
9002
9011
|
height: barHeight,
|
|
9003
9012
|
borderRadius: barBorderRadius,
|
|
@@ -9078,7 +9087,7 @@ var styles2 = StyleSheet.create({
|
|
|
9078
9087
|
}
|
|
9079
9088
|
});
|
|
9080
9089
|
var parseTokenValue25 = (value) => parseFloat(value);
|
|
9081
|
-
var StyledGrabberWrapper =
|
|
9090
|
+
var StyledGrabberWrapper = styled60(View)(
|
|
9082
9091
|
({ grabberPaddingTop }) => ({
|
|
9083
9092
|
alignItems: "center",
|
|
9084
9093
|
justifyContent: "center",
|
|
@@ -9086,13 +9095,13 @@ var StyledGrabberWrapper = styled52(View)(
|
|
|
9086
9095
|
paddingTop: grabberPaddingTop
|
|
9087
9096
|
})
|
|
9088
9097
|
);
|
|
9089
|
-
var StyledGrabberBar =
|
|
9098
|
+
var StyledGrabberBar = styled60(View)(({ barWidth, barHeight, barBorderRadius, barColor }) => ({
|
|
9090
9099
|
width: barWidth,
|
|
9091
9100
|
height: barHeight,
|
|
9092
9101
|
borderRadius: barBorderRadius,
|
|
9093
9102
|
backgroundColor: barColor
|
|
9094
9103
|
}));
|
|
9095
|
-
var StyledHeader =
|
|
9104
|
+
var StyledHeader = styled60(View)(
|
|
9096
9105
|
({
|
|
9097
9106
|
headerPaddingHorizontal,
|
|
9098
9107
|
headerPaddingBottom,
|
|
@@ -9112,7 +9121,7 @@ var StyledHeader = styled52(View)(
|
|
|
9112
9121
|
borderBottomColor: headerBorderColor
|
|
9113
9122
|
} : {}), headerBgColor ? { backgroundColor: headerBgColor } : {})
|
|
9114
9123
|
);
|
|
9115
|
-
var StyledImageContainer =
|
|
9124
|
+
var StyledImageContainer = styled60(View)(({ imageHeight, imageBorderRadius }) => ({
|
|
9116
9125
|
position: "relative",
|
|
9117
9126
|
width: "100%",
|
|
9118
9127
|
height: imageHeight,
|
|
@@ -9120,20 +9129,20 @@ var StyledImageContainer = styled52(View)(({ imageHeight, imageBorderRadius }) =
|
|
|
9120
9129
|
overflow: "hidden",
|
|
9121
9130
|
flexShrink: 0
|
|
9122
9131
|
}));
|
|
9123
|
-
var StyledImageCloseWrapper =
|
|
9132
|
+
var StyledImageCloseWrapper = styled60(View)(({ closeTop, closeRight }) => ({
|
|
9124
9133
|
position: "absolute",
|
|
9125
9134
|
top: closeTop,
|
|
9126
9135
|
right: closeRight,
|
|
9127
9136
|
zIndex: 1
|
|
9128
9137
|
}));
|
|
9129
|
-
var StyledTitleRow =
|
|
9138
|
+
var StyledTitleRow = styled60(View)(({ rowGap }) => ({
|
|
9130
9139
|
flexDirection: "row",
|
|
9131
9140
|
gap: rowGap,
|
|
9132
9141
|
alignItems: "flex-start",
|
|
9133
9142
|
width: "100%",
|
|
9134
9143
|
flexShrink: 0
|
|
9135
9144
|
}));
|
|
9136
|
-
var StyledTitleContent =
|
|
9145
|
+
var StyledTitleContent = styled60(View)(
|
|
9137
9146
|
({ contentGap }) => ({
|
|
9138
9147
|
flexDirection: "column",
|
|
9139
9148
|
gap: contentGap,
|
|
@@ -9273,7 +9282,7 @@ var DrawerDescription = React60.forwardRef(
|
|
|
9273
9282
|
);
|
|
9274
9283
|
DrawerDescription.displayName = "Drawer.Description";
|
|
9275
9284
|
var parseTokenValue26 = (value) => parseFloat(value);
|
|
9276
|
-
var StyledScrollView =
|
|
9285
|
+
var StyledScrollView = styled60(ScrollView)(({ bodyPaddingHorizontal, bodyPaddingRight, bodyGap }) => ({
|
|
9277
9286
|
flex: 1,
|
|
9278
9287
|
paddingLeft: bodyPaddingHorizontal,
|
|
9279
9288
|
paddingRight: bodyPaddingRight,
|
|
@@ -9314,7 +9323,7 @@ var DrawerBody = React60.forwardRef(
|
|
|
9314
9323
|
);
|
|
9315
9324
|
DrawerBody.displayName = "Drawer.Body";
|
|
9316
9325
|
var parseTokenValue27 = (value) => parseFloat(value);
|
|
9317
|
-
var StyledFooter =
|
|
9326
|
+
var StyledFooter = styled60(View)(({ footerPaddingTop, footerPaddingHorizontal, footerPaddingBottom }) => ({
|
|
9318
9327
|
flexShrink: 0,
|
|
9319
9328
|
paddingTop: footerPaddingTop,
|
|
9320
9329
|
paddingHorizontal: footerPaddingHorizontal,
|
|
@@ -9426,7 +9435,7 @@ var styles3 = StyleSheet.create({
|
|
|
9426
9435
|
}
|
|
9427
9436
|
});
|
|
9428
9437
|
var parseTokenValue28 = (value) => parseFloat(value);
|
|
9429
|
-
var StyledDockRoot =
|
|
9438
|
+
var StyledDockRoot = styled60(View)(
|
|
9430
9439
|
({
|
|
9431
9440
|
dockBgColor,
|
|
9432
9441
|
dockBorderTopWidth,
|
|
@@ -9442,7 +9451,7 @@ var StyledDockRoot = styled52(View)(
|
|
|
9442
9451
|
paddingVertical: dockPaddingVertical
|
|
9443
9452
|
})
|
|
9444
9453
|
);
|
|
9445
|
-
var StyledStackedInner =
|
|
9454
|
+
var StyledStackedInner = styled60(View)(
|
|
9446
9455
|
({ innerGap }) => ({
|
|
9447
9456
|
alignItems: "center",
|
|
9448
9457
|
gap: innerGap,
|
|
@@ -9450,7 +9459,7 @@ var StyledStackedInner = styled52(View)(
|
|
|
9450
9459
|
maxWidth: 520
|
|
9451
9460
|
})
|
|
9452
9461
|
);
|
|
9453
|
-
var StyledButtonGroup =
|
|
9462
|
+
var StyledButtonGroup = styled60(View)(({ groupDirection, groupAlign, groupJustify, groupGap }) => __spreadValues({
|
|
9454
9463
|
flexDirection: groupDirection,
|
|
9455
9464
|
alignItems: groupAlign,
|
|
9456
9465
|
justifyContent: groupJustify,
|
|
@@ -9521,17 +9530,17 @@ var ButtonDock = React60.forwardRef(
|
|
|
9521
9530
|
);
|
|
9522
9531
|
ButtonDock.displayName = "ButtonDock";
|
|
9523
9532
|
var parseTokenValue29 = (value) => parseFloat(value);
|
|
9524
|
-
var StyledGroupRoot =
|
|
9533
|
+
var StyledGroupRoot = styled60(View)(({ rootGap }) => ({
|
|
9525
9534
|
gap: rootGap,
|
|
9526
9535
|
alignItems: "center",
|
|
9527
9536
|
width: "100%"
|
|
9528
9537
|
}));
|
|
9529
|
-
var StyledButtonRow =
|
|
9538
|
+
var StyledButtonRow = styled60(View)(({ rowDirection, rowAlign, rowGap }) => __spreadValues({
|
|
9530
9539
|
flexDirection: rowDirection,
|
|
9531
9540
|
width: "100%",
|
|
9532
9541
|
gap: rowGap
|
|
9533
9542
|
}, rowAlign ? { alignItems: rowAlign } : {}));
|
|
9534
|
-
var StyledChildSlot =
|
|
9543
|
+
var StyledChildSlot = styled60(View)(
|
|
9535
9544
|
({ slotInline }) => __spreadValues({}, slotInline ? { flex: 1, minWidth: 0 } : { width: "100%", alignSelf: "stretch" })
|
|
9536
9545
|
);
|
|
9537
9546
|
var ButtonGroup = React60.forwardRef(
|
|
@@ -9583,7 +9592,7 @@ var ButtonGroup = React60.forwardRef(
|
|
|
9583
9592
|
);
|
|
9584
9593
|
ButtonGroup.displayName = "ButtonGroup";
|
|
9585
9594
|
var parseTokenValue30 = (value) => parseFloat(value);
|
|
9586
|
-
var StyledRootPressable =
|
|
9595
|
+
var StyledRootPressable = styled60(Pressable)(
|
|
9587
9596
|
({
|
|
9588
9597
|
rootFlexAlign,
|
|
9589
9598
|
rootGap,
|
|
@@ -9602,7 +9611,7 @@ var StyledRootPressable = styled52(Pressable)(
|
|
|
9602
9611
|
opacity: rootOpacity
|
|
9603
9612
|
}, 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 } : {})
|
|
9604
9613
|
);
|
|
9605
|
-
var StyledControl =
|
|
9614
|
+
var StyledControl = styled60(View)(
|
|
9606
9615
|
({
|
|
9607
9616
|
controlSize,
|
|
9608
9617
|
controlBorderWidth,
|
|
@@ -9621,13 +9630,13 @@ var StyledControl = styled52(View)(
|
|
|
9621
9630
|
justifyContent: "center"
|
|
9622
9631
|
})
|
|
9623
9632
|
);
|
|
9624
|
-
var StyledContent2 =
|
|
9633
|
+
var StyledContent2 = styled60(View)(({ contentGap }) => ({
|
|
9625
9634
|
flexDirection: "column",
|
|
9626
9635
|
gap: contentGap,
|
|
9627
9636
|
flex: 1,
|
|
9628
9637
|
minWidth: 0
|
|
9629
9638
|
}));
|
|
9630
|
-
var StyledIllustration =
|
|
9639
|
+
var StyledIllustration = styled60(View)(({ illustrationSize }) => ({
|
|
9631
9640
|
flexShrink: 0,
|
|
9632
9641
|
width: illustrationSize,
|
|
9633
9642
|
height: illustrationSize,
|
|
@@ -9751,7 +9760,7 @@ var Checkbox = React60.forwardRef(
|
|
|
9751
9760
|
);
|
|
9752
9761
|
Checkbox.displayName = "Checkbox";
|
|
9753
9762
|
var parseTokenValue31 = (value) => parseFloat(value);
|
|
9754
|
-
var StyledGroup =
|
|
9763
|
+
var StyledGroup = styled60(View)(({ groupDirection, groupGap }) => ({
|
|
9755
9764
|
flexDirection: groupDirection,
|
|
9756
9765
|
gap: groupGap
|
|
9757
9766
|
}));
|
|
@@ -9865,7 +9874,7 @@ var CopyFieldInput = React60.forwardRef(
|
|
|
9865
9874
|
);
|
|
9866
9875
|
CopyFieldInput.displayName = "CopyField.Field";
|
|
9867
9876
|
var parseTokenValue32 = (value) => parseFloat(value);
|
|
9868
|
-
var StyledRoot8 =
|
|
9877
|
+
var StyledRoot8 = styled60(View)(({ theme: theme2 }) => {
|
|
9869
9878
|
const { spacing } = theme2.tokens.components.inputs;
|
|
9870
9879
|
return {
|
|
9871
9880
|
gap: parseTokenValue32(spacing.gap)
|
|
@@ -9946,13 +9955,13 @@ var FilterTabContext = React60.createContext({
|
|
|
9946
9955
|
}
|
|
9947
9956
|
});
|
|
9948
9957
|
var parseTokenValue33 = (value) => parseFloat(value);
|
|
9949
|
-
var StyledRoot9 =
|
|
9958
|
+
var StyledRoot9 = styled60(View)(({ rootGap }) => ({
|
|
9950
9959
|
flexDirection: "row",
|
|
9951
9960
|
alignItems: "center",
|
|
9952
9961
|
gap: rootGap,
|
|
9953
9962
|
flexWrap: "nowrap"
|
|
9954
9963
|
}));
|
|
9955
|
-
var StyledItem2 =
|
|
9964
|
+
var StyledItem2 = styled60(Pressable)(
|
|
9956
9965
|
({
|
|
9957
9966
|
itemHeight,
|
|
9958
9967
|
itemMinWidth,
|
|
@@ -10127,7 +10136,7 @@ var FilterTab = Object.assign(FilterTabRoot, {
|
|
|
10127
10136
|
Item: FilterTabItem
|
|
10128
10137
|
});
|
|
10129
10138
|
var parseTokenValue34 = (value) => parseFloat(value);
|
|
10130
|
-
var StyledFieldWrapper =
|
|
10139
|
+
var StyledFieldWrapper = styled60(View)(
|
|
10131
10140
|
({
|
|
10132
10141
|
fieldBgColor,
|
|
10133
10142
|
fieldBorderColor,
|
|
@@ -10148,29 +10157,21 @@ var StyledFieldWrapper = styled52(View)(
|
|
|
10148
10157
|
overflow: "hidden"
|
|
10149
10158
|
})
|
|
10150
10159
|
);
|
|
10151
|
-
var StyledTextInput =
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
color: inputColor,
|
|
10167
|
-
fontFamily: inputFontFamily
|
|
10168
|
-
}, inputFontWeight ? { fontWeight: inputFontWeight } : {}), {
|
|
10169
|
-
fontSize: inputFontSize,
|
|
10170
|
-
lineHeight: inputLineHeight
|
|
10171
|
-
})
|
|
10172
|
-
);
|
|
10173
|
-
var StyledRow = styled52(View)(({ rowGap }) => ({
|
|
10160
|
+
var StyledTextInput = styled60(TextInput)(({ inputColor, inputFontFamily, inputFontWeight, inputFontSize }) => __spreadProps(__spreadValues({
|
|
10161
|
+
textAlign: "center",
|
|
10162
|
+
outlineStyle: "none",
|
|
10163
|
+
padding: 0,
|
|
10164
|
+
minWidth: 0,
|
|
10165
|
+
minHeight: 0,
|
|
10166
|
+
width: "100%",
|
|
10167
|
+
height: "100%",
|
|
10168
|
+
color: inputColor,
|
|
10169
|
+
fontFamily: inputFontFamily
|
|
10170
|
+
}, inputFontWeight ? { fontWeight: inputFontWeight } : {}), {
|
|
10171
|
+
fontSize: inputFontSize,
|
|
10172
|
+
lineHeight: 0
|
|
10173
|
+
}));
|
|
10174
|
+
var StyledRow = styled60(View)(({ rowGap }) => ({
|
|
10174
10175
|
flexDirection: "row",
|
|
10175
10176
|
alignItems: "center",
|
|
10176
10177
|
alignSelf: "center",
|
|
@@ -10303,7 +10304,6 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10303
10304
|
inputFontFamily: resolvedInputFontFamily,
|
|
10304
10305
|
inputFontWeight: resolvedInputFontFamily === typographyToken.fontFamily ? typographyToken.fontWeight : void 0,
|
|
10305
10306
|
inputFontSize: parseTokenValue34(typographyToken.fontSize),
|
|
10306
|
-
inputLineHeight: parseTokenValue34(typographyToken.lineHeight),
|
|
10307
10307
|
keyboardType: "numeric",
|
|
10308
10308
|
editable: !disabled,
|
|
10309
10309
|
onFocus: handleFocus,
|
|
@@ -10333,11 +10333,11 @@ var NumberFieldInput = React60.forwardRef(
|
|
|
10333
10333
|
);
|
|
10334
10334
|
NumberFieldInput.displayName = "NumberField.Input";
|
|
10335
10335
|
var parseTokenValue35 = (value) => parseFloat(value);
|
|
10336
|
-
var StyledRoot10 =
|
|
10336
|
+
var StyledRoot10 = styled60(View)(({ rootGap }) => ({
|
|
10337
10337
|
alignItems: "center",
|
|
10338
10338
|
gap: rootGap
|
|
10339
10339
|
}));
|
|
10340
|
-
var StyledLabelGroup =
|
|
10340
|
+
var StyledLabelGroup = styled60(View)(({ labelGap }) => ({
|
|
10341
10341
|
gap: labelGap
|
|
10342
10342
|
}));
|
|
10343
10343
|
var NumberField = React60.forwardRef(
|
|
@@ -10486,7 +10486,7 @@ var PasswordFieldInput = React60.forwardRef((_a, ref) => {
|
|
|
10486
10486
|
});
|
|
10487
10487
|
PasswordFieldInput.displayName = "PasswordField.Field";
|
|
10488
10488
|
var parseTokenValue36 = (value) => parseFloat(value);
|
|
10489
|
-
var StyledErrorRow2 =
|
|
10489
|
+
var StyledErrorRow2 = styled60(View)(({ gap }) => ({
|
|
10490
10490
|
flexDirection: "row",
|
|
10491
10491
|
alignItems: "center",
|
|
10492
10492
|
gap
|
|
@@ -10518,12 +10518,12 @@ var PasswordFieldError = React60.forwardRef((_a, ref) => {
|
|
|
10518
10518
|
});
|
|
10519
10519
|
PasswordFieldError.displayName = "PasswordField.Error";
|
|
10520
10520
|
var parseTokenValue37 = (value) => parseFloat(value);
|
|
10521
|
-
var StyledRequirementsList =
|
|
10521
|
+
var StyledRequirementsList = styled60(View)(
|
|
10522
10522
|
({ listGap }) => ({
|
|
10523
10523
|
gap: listGap
|
|
10524
10524
|
})
|
|
10525
10525
|
);
|
|
10526
|
-
var StyledRequirementItem =
|
|
10526
|
+
var StyledRequirementItem = styled60(View)(
|
|
10527
10527
|
({ itemGap }) => ({
|
|
10528
10528
|
flexDirection: "row",
|
|
10529
10529
|
alignItems: "center",
|
|
@@ -10580,7 +10580,7 @@ var PasswordFieldRequirements = React60.forwardRef((_a, ref) => {
|
|
|
10580
10580
|
});
|
|
10581
10581
|
PasswordFieldRequirements.displayName = "PasswordField.Requirements";
|
|
10582
10582
|
var parseTokenValue38 = (value) => parseFloat(value);
|
|
10583
|
-
var StyledRoot11 =
|
|
10583
|
+
var StyledRoot11 = styled60(View)(({ theme: theme2 }) => {
|
|
10584
10584
|
const { spacing } = theme2.tokens.components.inputs;
|
|
10585
10585
|
return {
|
|
10586
10586
|
gap: parseTokenValue38(spacing.gap)
|
|
@@ -10694,19 +10694,19 @@ function usePasswordField({
|
|
|
10694
10694
|
});
|
|
10695
10695
|
}
|
|
10696
10696
|
var parseTokenValue39 = (value) => parseFloat(value);
|
|
10697
|
-
var StyledRoot12 =
|
|
10697
|
+
var StyledRoot12 = styled60(View)(({ rootGap }) => ({
|
|
10698
10698
|
flexDirection: "column",
|
|
10699
10699
|
alignItems: "stretch",
|
|
10700
10700
|
gap: rootGap,
|
|
10701
10701
|
width: "100%"
|
|
10702
10702
|
}));
|
|
10703
|
-
var StyledHeader2 =
|
|
10703
|
+
var StyledHeader2 = styled60(View)({
|
|
10704
10704
|
flexDirection: "row",
|
|
10705
10705
|
alignItems: "center",
|
|
10706
10706
|
justifyContent: "space-between",
|
|
10707
10707
|
width: "100%"
|
|
10708
10708
|
});
|
|
10709
|
-
var StyledTrack =
|
|
10709
|
+
var StyledTrack = styled60(View)(({ trackHeight, trackMinWidth, trackBorderRadius, trackBgColor }) => ({
|
|
10710
10710
|
position: "relative",
|
|
10711
10711
|
width: "100%",
|
|
10712
10712
|
minWidth: trackMinWidth,
|
|
@@ -10715,7 +10715,7 @@ var StyledTrack = styled52(View)(({ trackHeight, trackMinWidth, trackBorderRadiu
|
|
|
10715
10715
|
backgroundColor: trackBgColor,
|
|
10716
10716
|
overflow: "hidden"
|
|
10717
10717
|
}));
|
|
10718
|
-
var StyledIndicator =
|
|
10718
|
+
var StyledIndicator = styled60(View)(({ indicatorBorderRadius, indicatorBgColor }) => ({
|
|
10719
10719
|
height: "100%",
|
|
10720
10720
|
borderRadius: indicatorBorderRadius,
|
|
10721
10721
|
backgroundColor: indicatorBgColor
|
|
@@ -10812,7 +10812,7 @@ var Progress = React60.forwardRef(
|
|
|
10812
10812
|
);
|
|
10813
10813
|
Progress.displayName = "Progress";
|
|
10814
10814
|
var parseTokenValue40 = (value) => parseFloat(value);
|
|
10815
|
-
var StyledRadioRoot =
|
|
10815
|
+
var StyledRadioRoot = styled60(Pressable)(
|
|
10816
10816
|
({
|
|
10817
10817
|
radioGap,
|
|
10818
10818
|
radioOpacity,
|
|
@@ -10831,7 +10831,7 @@ var StyledRadioRoot = styled52(Pressable)(
|
|
|
10831
10831
|
opacity: radioOpacity
|
|
10832
10832
|
}, 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 } : {})
|
|
10833
10833
|
);
|
|
10834
|
-
var StyledRadioControl =
|
|
10834
|
+
var StyledRadioControl = styled60(View)(({ controlSize, controlBorderWidth, controlBorderColor }) => ({
|
|
10835
10835
|
width: controlSize,
|
|
10836
10836
|
height: controlSize,
|
|
10837
10837
|
minWidth: controlSize,
|
|
@@ -10842,17 +10842,17 @@ var StyledRadioControl = styled52(View)(({ controlSize, controlBorderWidth, cont
|
|
|
10842
10842
|
alignItems: "center",
|
|
10843
10843
|
justifyContent: "center"
|
|
10844
10844
|
}));
|
|
10845
|
-
var StyledIndicator2 =
|
|
10845
|
+
var StyledIndicator2 = styled60(View)(({ indicatorSize, indicatorBgColor }) => ({
|
|
10846
10846
|
width: indicatorSize,
|
|
10847
10847
|
height: indicatorSize,
|
|
10848
10848
|
borderRadius: indicatorSize / 2,
|
|
10849
10849
|
backgroundColor: indicatorBgColor
|
|
10850
10850
|
}));
|
|
10851
|
-
var StyledTextContent =
|
|
10851
|
+
var StyledTextContent = styled60(View)(({ textContentGap }) => ({
|
|
10852
10852
|
flexDirection: "column",
|
|
10853
10853
|
gap: textContentGap
|
|
10854
10854
|
}));
|
|
10855
|
-
var StyledAssetWrapper =
|
|
10855
|
+
var StyledAssetWrapper = styled60(View)({
|
|
10856
10856
|
alignSelf: "center"
|
|
10857
10857
|
});
|
|
10858
10858
|
var Radio = React60.forwardRef(
|
|
@@ -10951,7 +10951,7 @@ var Radio = React60.forwardRef(
|
|
|
10951
10951
|
);
|
|
10952
10952
|
Radio.displayName = "Radio";
|
|
10953
10953
|
var parseTokenValue41 = (value) => parseFloat(value);
|
|
10954
|
-
var StyledRadioGroup =
|
|
10954
|
+
var StyledRadioGroup = styled60(View)(({ groupDirection, groupGap }) => ({
|
|
10955
10955
|
flexDirection: groupDirection,
|
|
10956
10956
|
gap: groupGap
|
|
10957
10957
|
}));
|
|
@@ -11077,7 +11077,7 @@ var SearchFieldInput = React60.forwardRef((_a, ref) => {
|
|
|
11077
11077
|
});
|
|
11078
11078
|
SearchFieldInput.displayName = "SearchField.Field";
|
|
11079
11079
|
var parseTokenValue42 = (value) => parseFloat(value);
|
|
11080
|
-
var StyledRoot13 =
|
|
11080
|
+
var StyledRoot13 = styled60(View)(({ theme: theme2 }) => {
|
|
11081
11081
|
const { spacing } = theme2.tokens.components.inputs;
|
|
11082
11082
|
return {
|
|
11083
11083
|
gap: parseTokenValue42(spacing.gap)
|
|
@@ -11154,7 +11154,7 @@ function useSearchField({
|
|
|
11154
11154
|
};
|
|
11155
11155
|
}
|
|
11156
11156
|
var parseTokenValue43 = (value) => parseFloat(value);
|
|
11157
|
-
var StyledSegmentItem =
|
|
11157
|
+
var StyledSegmentItem = styled60(Pressable)(
|
|
11158
11158
|
({
|
|
11159
11159
|
itemHeight,
|
|
11160
11160
|
itemMinWidth,
|
|
@@ -11174,14 +11174,14 @@ var StyledSegmentItem = styled52(Pressable)(
|
|
|
11174
11174
|
opacity: itemOpacity
|
|
11175
11175
|
}, itemFlex !== void 0 ? { flex: itemFlex } : { flexShrink: 0 })
|
|
11176
11176
|
);
|
|
11177
|
-
var StyledIntrinsicClip =
|
|
11177
|
+
var StyledIntrinsicClip = styled60(View)(({ clipBorderRadius, clipBgColor, clipWidth }) => __spreadValues({
|
|
11178
11178
|
overflow: "hidden",
|
|
11179
11179
|
borderRadius: clipBorderRadius,
|
|
11180
11180
|
backgroundColor: clipBgColor,
|
|
11181
11181
|
alignSelf: "flex-start",
|
|
11182
11182
|
maxWidth: "100%"
|
|
11183
11183
|
}, clipWidth !== void 0 ? { width: clipWidth } : {}));
|
|
11184
|
-
var StyledScrollIndicator =
|
|
11184
|
+
var StyledScrollIndicator = styled60(Pressable)(
|
|
11185
11185
|
({
|
|
11186
11186
|
indicatorSide,
|
|
11187
11187
|
indicatorBorderRadius,
|
|
@@ -11237,7 +11237,7 @@ var ScrollIndicatorGradient = ({
|
|
|
11237
11237
|
/* @__PURE__ */ jsx(Rect, { width: "100%", height: "100%", fill: `url(#${gradientId})` })
|
|
11238
11238
|
] }) });
|
|
11239
11239
|
};
|
|
11240
|
-
var StyledContainer2 =
|
|
11240
|
+
var StyledContainer2 = styled60(View)(
|
|
11241
11241
|
({
|
|
11242
11242
|
containerGap,
|
|
11243
11243
|
containerPaddingVertical,
|
|
@@ -11517,7 +11517,7 @@ var SegmentedControl = Object.assign(SegmentedControlRoot, {
|
|
|
11517
11517
|
Item: SegmentedControlItem
|
|
11518
11518
|
});
|
|
11519
11519
|
var parseTokenValue44 = (value) => parseFloat(value);
|
|
11520
|
-
var StyledTriggerWrapper =
|
|
11520
|
+
var StyledTriggerWrapper = styled60(Animated.View)(({
|
|
11521
11521
|
theme: theme2,
|
|
11522
11522
|
state: _state
|
|
11523
11523
|
}) => {
|
|
@@ -11533,12 +11533,12 @@ var StyledTriggerWrapper = styled52(Animated.View)(({
|
|
|
11533
11533
|
borderRadius: parseTokenValue44(borderRadius.field.default)
|
|
11534
11534
|
};
|
|
11535
11535
|
});
|
|
11536
|
-
var StyledIconWrapper2 =
|
|
11536
|
+
var StyledIconWrapper2 = styled60(View)({
|
|
11537
11537
|
flexShrink: 0,
|
|
11538
11538
|
alignItems: "center",
|
|
11539
11539
|
justifyContent: "center"
|
|
11540
11540
|
});
|
|
11541
|
-
var StyledArrowIcon =
|
|
11541
|
+
var StyledArrowIcon = styled60(Animated.View)({
|
|
11542
11542
|
flexShrink: 0,
|
|
11543
11543
|
alignItems: "center",
|
|
11544
11544
|
justifyContent: "center"
|
|
@@ -11624,7 +11624,7 @@ var SelectFieldTrigger = React60.forwardRef(
|
|
|
11624
11624
|
}
|
|
11625
11625
|
);
|
|
11626
11626
|
SelectFieldTrigger.displayName = "SelectField.Trigger";
|
|
11627
|
-
var StyledValue =
|
|
11627
|
+
var StyledValue = styled60(Text)(({ theme: theme2 }) => {
|
|
11628
11628
|
const { colour } = theme2.tokens.components.inputs;
|
|
11629
11629
|
return {
|
|
11630
11630
|
flex: 1,
|
|
@@ -11643,7 +11643,7 @@ SelectFieldValue.displayName = "SelectField.Value";
|
|
|
11643
11643
|
var parseTokenValue45 = (value) => parseFloat(value);
|
|
11644
11644
|
var DROPDOWN_OFFSET_X = -32;
|
|
11645
11645
|
var DROPDOWN_OFFSET_Y = -94;
|
|
11646
|
-
var StyledContentShadow =
|
|
11646
|
+
var StyledContentShadow = styled60(View)(({ theme: theme2 }) => {
|
|
11647
11647
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11648
11648
|
const shadow = dropdown.list.dropshadow.default;
|
|
11649
11649
|
return {
|
|
@@ -11662,7 +11662,7 @@ var StyledContentShadow = styled52(View)(({ theme: theme2 }) => {
|
|
|
11662
11662
|
]
|
|
11663
11663
|
};
|
|
11664
11664
|
});
|
|
11665
|
-
var StyledContentInner =
|
|
11665
|
+
var StyledContentInner = styled60(View)(({ theme: theme2 }) => {
|
|
11666
11666
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11667
11667
|
const { colour } = theme2.tokens.components.inputs;
|
|
11668
11668
|
return {
|
|
@@ -11691,7 +11691,7 @@ var SelectFieldContent = React60.forwardRef((_a, ref) => {
|
|
|
11691
11691
|
});
|
|
11692
11692
|
SelectFieldContent.displayName = "SelectField.Content";
|
|
11693
11693
|
var parseTokenValue46 = (value) => parseFloat(value);
|
|
11694
|
-
var StyledItem3 =
|
|
11694
|
+
var StyledItem3 = styled60(Pressable)(({ theme: theme2 }) => {
|
|
11695
11695
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11696
11696
|
return {
|
|
11697
11697
|
flexDirection: "row",
|
|
@@ -11705,12 +11705,12 @@ var StyledItem3 = styled52(Pressable)(({ theme: theme2 }) => {
|
|
|
11705
11705
|
backgroundColor: dropdown.listItem.colour.background.default
|
|
11706
11706
|
};
|
|
11707
11707
|
});
|
|
11708
|
-
var StyledIconWrapper3 =
|
|
11708
|
+
var StyledIconWrapper3 = styled60(View)({
|
|
11709
11709
|
flexShrink: 0,
|
|
11710
11710
|
alignItems: "center",
|
|
11711
11711
|
justifyContent: "center"
|
|
11712
11712
|
});
|
|
11713
|
-
var StyledContentWrapper =
|
|
11713
|
+
var StyledContentWrapper = styled60(View)(({ theme: theme2 }) => {
|
|
11714
11714
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11715
11715
|
return {
|
|
11716
11716
|
flexDirection: "row",
|
|
@@ -11720,17 +11720,17 @@ var StyledContentWrapper = styled52(View)(({ theme: theme2 }) => {
|
|
|
11720
11720
|
minWidth: 0
|
|
11721
11721
|
};
|
|
11722
11722
|
});
|
|
11723
|
-
var StyledTextWrapper2 =
|
|
11723
|
+
var StyledTextWrapper2 = styled60(View)({
|
|
11724
11724
|
flex: 1,
|
|
11725
11725
|
minWidth: 0
|
|
11726
11726
|
});
|
|
11727
|
-
var StyledItemText =
|
|
11727
|
+
var StyledItemText = styled60(Text)(({ theme: theme2 }) => {
|
|
11728
11728
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11729
11729
|
return {
|
|
11730
11730
|
color: dropdown.listItem.colour.text.placeholder.default
|
|
11731
11731
|
};
|
|
11732
11732
|
});
|
|
11733
|
-
var StyledHintText =
|
|
11733
|
+
var StyledHintText = styled60(Text)(({ theme: theme2 }) => {
|
|
11734
11734
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
11735
11735
|
return {
|
|
11736
11736
|
color: dropdown.listItem.colour.text.hint.default,
|
|
@@ -11773,7 +11773,7 @@ var SelectFieldItem = React60.forwardRef(
|
|
|
11773
11773
|
);
|
|
11774
11774
|
SelectFieldItem.displayName = "SelectField.Item";
|
|
11775
11775
|
var parseTokenValue47 = (value) => parseFloat(value);
|
|
11776
|
-
var StyledRoot14 =
|
|
11776
|
+
var StyledRoot14 = styled60(View)(({ theme: theme2 }) => {
|
|
11777
11777
|
const { spacing } = theme2.tokens.components.inputs;
|
|
11778
11778
|
return {
|
|
11779
11779
|
gap: parseTokenValue47(spacing.gap)
|
|
@@ -11907,12 +11907,12 @@ function useSelectField(options = {}) {
|
|
|
11907
11907
|
}, validationRule && { state, error });
|
|
11908
11908
|
}
|
|
11909
11909
|
var parseTokenValue48 = (value) => parseFloat(value);
|
|
11910
|
-
var StyledLabelRow2 =
|
|
11910
|
+
var StyledLabelRow2 = styled60(View)(({ labelRowGap }) => ({
|
|
11911
11911
|
flexDirection: "row",
|
|
11912
11912
|
alignItems: "center",
|
|
11913
11913
|
gap: labelRowGap
|
|
11914
11914
|
}));
|
|
11915
|
-
var StyledLabelSlot =
|
|
11915
|
+
var StyledLabelSlot = styled60(View)(({ labelSlotGap }) => ({
|
|
11916
11916
|
flexDirection: "row",
|
|
11917
11917
|
alignItems: "center",
|
|
11918
11918
|
gap: labelSlotGap,
|
|
@@ -12248,7 +12248,7 @@ var ICON_MAP = {
|
|
|
12248
12248
|
info: Info_default
|
|
12249
12249
|
};
|
|
12250
12250
|
var parseTokenValue49 = (value) => parseFloat(value);
|
|
12251
|
-
var StyledInlineRoot =
|
|
12251
|
+
var StyledInlineRoot = styled60(View)(
|
|
12252
12252
|
({ rootPaddingH, rootPaddingV, rootGap, rootBorderRadius, rootBgColor }) => ({
|
|
12253
12253
|
flexDirection: "row",
|
|
12254
12254
|
alignItems: "flex-start",
|
|
@@ -12259,7 +12259,7 @@ var StyledInlineRoot = styled52(View)(
|
|
|
12259
12259
|
backgroundColor: rootBgColor
|
|
12260
12260
|
})
|
|
12261
12261
|
);
|
|
12262
|
-
var StyledToastRoot =
|
|
12262
|
+
var StyledToastRoot = styled60(View)(
|
|
12263
12263
|
({
|
|
12264
12264
|
rootPaddingH,
|
|
12265
12265
|
rootPaddingV,
|
|
@@ -12286,7 +12286,7 @@ var StyledToastRoot = styled52(View)(
|
|
|
12286
12286
|
elevation: 4
|
|
12287
12287
|
})
|
|
12288
12288
|
);
|
|
12289
|
-
var StyledSystemRoot =
|
|
12289
|
+
var StyledSystemRoot = styled60(View)(
|
|
12290
12290
|
({
|
|
12291
12291
|
rootPaddingH,
|
|
12292
12292
|
rootPaddingTop,
|
|
@@ -12306,31 +12306,31 @@ var StyledSystemRoot = styled52(View)(
|
|
|
12306
12306
|
width: "100%"
|
|
12307
12307
|
})
|
|
12308
12308
|
);
|
|
12309
|
-
var StyledContents =
|
|
12309
|
+
var StyledContents = styled60(View)(({ contentsGap }) => ({
|
|
12310
12310
|
flexDirection: "column",
|
|
12311
12311
|
alignItems: "flex-start",
|
|
12312
12312
|
flex: 1,
|
|
12313
12313
|
minWidth: 0,
|
|
12314
12314
|
gap: contentsGap
|
|
12315
12315
|
}));
|
|
12316
|
-
var StyledCopyRow =
|
|
12316
|
+
var StyledCopyRow = styled60(View)(({ copyGap }) => ({
|
|
12317
12317
|
flexDirection: "row",
|
|
12318
12318
|
alignItems: "flex-start",
|
|
12319
12319
|
gap: copyGap,
|
|
12320
12320
|
width: "100%"
|
|
12321
12321
|
}));
|
|
12322
|
-
var StyledInlineCopy =
|
|
12322
|
+
var StyledInlineCopy = styled60(View)(({ copyGap }) => ({
|
|
12323
12323
|
flexDirection: "column",
|
|
12324
12324
|
alignItems: "flex-start",
|
|
12325
12325
|
gap: copyGap,
|
|
12326
12326
|
flex: 1,
|
|
12327
12327
|
minWidth: 0
|
|
12328
12328
|
}));
|
|
12329
|
-
var StyledLinkWrapper =
|
|
12329
|
+
var StyledLinkWrapper = styled60(View)(({ linkPaddingLeft }) => ({
|
|
12330
12330
|
paddingLeft: linkPaddingLeft,
|
|
12331
12331
|
width: "100%"
|
|
12332
12332
|
}));
|
|
12333
|
-
var StyledCloseButton =
|
|
12333
|
+
var StyledCloseButton = styled60(Pressable)({
|
|
12334
12334
|
alignItems: "center",
|
|
12335
12335
|
justifyContent: "center",
|
|
12336
12336
|
flexShrink: 0,
|
|
@@ -12546,10 +12546,10 @@ var NIB_OFFSET = {
|
|
|
12546
12546
|
middle: 146,
|
|
12547
12547
|
right: 268
|
|
12548
12548
|
};
|
|
12549
|
-
var Container2 =
|
|
12549
|
+
var Container2 = styled60(View)(({ $width }) => ({
|
|
12550
12550
|
width: $width
|
|
12551
12551
|
}));
|
|
12552
|
-
var StyledBody =
|
|
12552
|
+
var StyledBody = styled60(View)(
|
|
12553
12553
|
({
|
|
12554
12554
|
bgColor,
|
|
12555
12555
|
borderColor,
|
|
@@ -12779,7 +12779,7 @@ var Tooltip = React60.forwardRef(
|
|
|
12779
12779
|
);
|
|
12780
12780
|
Tooltip.displayName = "Tooltip";
|
|
12781
12781
|
var parseTokenValue51 = (value) => parseFloat(value);
|
|
12782
|
-
var StyledInsightRoot =
|
|
12782
|
+
var StyledInsightRoot = styled60(View)(
|
|
12783
12783
|
({
|
|
12784
12784
|
rootGap,
|
|
12785
12785
|
rootPaddingH,
|
|
@@ -12806,7 +12806,7 @@ var StyledInsightRoot = styled52(View)(
|
|
|
12806
12806
|
minWidth: rootMinWidth
|
|
12807
12807
|
})
|
|
12808
12808
|
);
|
|
12809
|
-
var StyledInsightContent =
|
|
12809
|
+
var StyledInsightContent = styled60(View)(
|
|
12810
12810
|
({ contentGap }) => ({
|
|
12811
12811
|
flex: 1,
|
|
12812
12812
|
flexDirection: "column",
|
|
@@ -12886,7 +12886,7 @@ var MessageCardInsight = React60.forwardRef(
|
|
|
12886
12886
|
}
|
|
12887
12887
|
);
|
|
12888
12888
|
MessageCardInsight.displayName = "MessageCard.Insight";
|
|
12889
|
-
var StyledBannerRoot =
|
|
12889
|
+
var StyledBannerRoot = styled60(View)(({ rootGap, rootPadding, rootBorderRadius, rootBgColor }) => ({
|
|
12890
12890
|
flexDirection: "row",
|
|
12891
12891
|
alignItems: "center",
|
|
12892
12892
|
gap: rootGap,
|
|
@@ -12894,7 +12894,7 @@ var StyledBannerRoot = styled52(View)(({ rootGap, rootPadding, rootBorderRadius,
|
|
|
12894
12894
|
borderRadius: rootBorderRadius,
|
|
12895
12895
|
backgroundColor: rootBgColor
|
|
12896
12896
|
}));
|
|
12897
|
-
var StyledBannerImage =
|
|
12897
|
+
var StyledBannerImage = styled60(View)(({ imageRadius, imageBgColor }) => ({
|
|
12898
12898
|
flexShrink: 0,
|
|
12899
12899
|
width: 108,
|
|
12900
12900
|
height: 108,
|
|
@@ -12902,14 +12902,14 @@ var StyledBannerImage = styled52(View)(({ imageRadius, imageBgColor }) => ({
|
|
|
12902
12902
|
overflow: "hidden",
|
|
12903
12903
|
backgroundColor: imageBgColor
|
|
12904
12904
|
}));
|
|
12905
|
-
var StyledBannerIllustrationSlot =
|
|
12905
|
+
var StyledBannerIllustrationSlot = styled60(View)({
|
|
12906
12906
|
flexShrink: 0,
|
|
12907
12907
|
width: 108,
|
|
12908
12908
|
height: 108,
|
|
12909
12909
|
alignItems: "center",
|
|
12910
12910
|
justifyContent: "center"
|
|
12911
12911
|
});
|
|
12912
|
-
var StyledBannerContents =
|
|
12912
|
+
var StyledBannerContents = styled60(View)(
|
|
12913
12913
|
({ contentsGap }) => ({
|
|
12914
12914
|
flex: 1,
|
|
12915
12915
|
flexDirection: "column",
|
|
@@ -12919,7 +12919,7 @@ var StyledBannerContents = styled52(View)(
|
|
|
12919
12919
|
minWidth: 0
|
|
12920
12920
|
})
|
|
12921
12921
|
);
|
|
12922
|
-
var StyledBannerCopy =
|
|
12922
|
+
var StyledBannerCopy = styled60(View)(({ copyGap }) => ({
|
|
12923
12923
|
flexDirection: "column",
|
|
12924
12924
|
alignItems: "flex-start",
|
|
12925
12925
|
gap: copyGap,
|
|
@@ -13058,22 +13058,22 @@ function defaultGetDateState(date) {
|
|
|
13058
13058
|
function getDefaultMonthLabel(year, month, locale) {
|
|
13059
13059
|
return format(new Date(year, month, 1), "MMMM yyyy", { locale });
|
|
13060
13060
|
}
|
|
13061
|
-
var StyledContainer3 =
|
|
13061
|
+
var StyledContainer3 = styled60(View)(({ containerGap, containerMaxWidth }) => ({
|
|
13062
13062
|
flexDirection: "column",
|
|
13063
13063
|
gap: containerGap,
|
|
13064
13064
|
maxWidth: containerMaxWidth
|
|
13065
13065
|
}));
|
|
13066
|
-
var StyledMonthHeader =
|
|
13066
|
+
var StyledMonthHeader = styled60(View)(
|
|
13067
13067
|
({ headerGap }) => ({
|
|
13068
13068
|
flexDirection: "row",
|
|
13069
13069
|
alignItems: "center",
|
|
13070
13070
|
gap: headerGap
|
|
13071
13071
|
})
|
|
13072
13072
|
);
|
|
13073
|
-
var StyledWeekRow =
|
|
13073
|
+
var StyledWeekRow = styled60(View)({
|
|
13074
13074
|
flexDirection: "row"
|
|
13075
13075
|
});
|
|
13076
|
-
var StyledWeekCell =
|
|
13076
|
+
var StyledWeekCell = styled60(View)(
|
|
13077
13077
|
({ cellHeight }) => ({
|
|
13078
13078
|
flex: 1,
|
|
13079
13079
|
alignItems: "center",
|
|
@@ -13081,14 +13081,14 @@ var StyledWeekCell = styled52(View)(
|
|
|
13081
13081
|
height: cellHeight
|
|
13082
13082
|
})
|
|
13083
13083
|
);
|
|
13084
|
-
var StyledDatesGrid =
|
|
13084
|
+
var StyledDatesGrid = styled60(View)(({ rowGap }) => ({
|
|
13085
13085
|
flexDirection: "column",
|
|
13086
13086
|
gap: rowGap
|
|
13087
13087
|
}));
|
|
13088
|
-
var StyledDateRow =
|
|
13088
|
+
var StyledDateRow = styled60(View)({
|
|
13089
13089
|
flexDirection: "row"
|
|
13090
13090
|
});
|
|
13091
|
-
var StyledDateCell =
|
|
13091
|
+
var StyledDateCell = styled60(View)(
|
|
13092
13092
|
({ cellHeight }) => ({
|
|
13093
13093
|
flex: 1,
|
|
13094
13094
|
height: cellHeight,
|
|
@@ -13096,7 +13096,7 @@ var StyledDateCell = styled52(View)(
|
|
|
13096
13096
|
justifyContent: "center"
|
|
13097
13097
|
})
|
|
13098
13098
|
);
|
|
13099
|
-
var StyledIndicator3 =
|
|
13099
|
+
var StyledIndicator3 = styled60(View)(
|
|
13100
13100
|
({
|
|
13101
13101
|
indicatorSize,
|
|
13102
13102
|
indicatorBorderRadius,
|
|
@@ -13461,25 +13461,25 @@ var buildPointerPath = (r) => {
|
|
|
13461
13461
|
].join(" ");
|
|
13462
13462
|
};
|
|
13463
13463
|
var parseTokenValue53 = (value) => parseFloat(value);
|
|
13464
|
-
var StyledRoot15 =
|
|
13464
|
+
var StyledRoot15 = styled60(View)(({ rootGap }) => ({
|
|
13465
13465
|
flexDirection: "column",
|
|
13466
13466
|
gap: rootGap,
|
|
13467
13467
|
width: "100%"
|
|
13468
13468
|
}));
|
|
13469
|
-
var StyledRow2 =
|
|
13469
|
+
var StyledRow2 = styled60(View)(({ rowGap }) => ({
|
|
13470
13470
|
flexDirection: "row",
|
|
13471
13471
|
alignItems: "flex-start",
|
|
13472
13472
|
gap: rowGap,
|
|
13473
13473
|
width: "100%"
|
|
13474
13474
|
}));
|
|
13475
|
-
var StyledItemStack =
|
|
13475
|
+
var StyledItemStack = styled60(View)(({ stackGap }) => ({
|
|
13476
13476
|
flexDirection: "column",
|
|
13477
13477
|
alignItems: "center",
|
|
13478
13478
|
gap: stackGap,
|
|
13479
13479
|
flex: 1,
|
|
13480
13480
|
minWidth: 0
|
|
13481
13481
|
}));
|
|
13482
|
-
var StyledPictureButton =
|
|
13482
|
+
var StyledPictureButton = styled60(Pressable)(
|
|
13483
13483
|
({
|
|
13484
13484
|
buttonBorderRadius,
|
|
13485
13485
|
buttonBorderWidth,
|
|
@@ -13506,7 +13506,7 @@ var StyledPictureButton = styled52(Pressable)(
|
|
|
13506
13506
|
overflow: "hidden"
|
|
13507
13507
|
})
|
|
13508
13508
|
);
|
|
13509
|
-
var StyledPointer =
|
|
13509
|
+
var StyledPointer = styled60(Svg)(
|
|
13510
13510
|
({ pointerVisible }) => ({
|
|
13511
13511
|
width: POINTER_WIDTH,
|
|
13512
13512
|
height: POINTER_HEIGHT,
|
|
@@ -13650,7 +13650,841 @@ var PictureSelector = React60.forwardRef(
|
|
|
13650
13650
|
}
|
|
13651
13651
|
);
|
|
13652
13652
|
PictureSelector.displayName = "PictureSelector";
|
|
13653
|
+
var UNIT_LABELS = {
|
|
13654
|
+
days: "days",
|
|
13655
|
+
hours: "hrs",
|
|
13656
|
+
minutes: "min",
|
|
13657
|
+
seconds: "secs"
|
|
13658
|
+
};
|
|
13659
|
+
var parseTokenValue54 = (value) => parseFloat(value);
|
|
13660
|
+
var pad = (value) => String(Math.max(0, Math.floor(value))).padStart(2, "0");
|
|
13661
|
+
var StackedRoot = styled60(View)(({ rootGap }) => ({
|
|
13662
|
+
flexDirection: "row",
|
|
13663
|
+
alignItems: "center",
|
|
13664
|
+
alignSelf: "flex-start",
|
|
13665
|
+
gap: rootGap
|
|
13666
|
+
}));
|
|
13667
|
+
var StackedItem = styled60(View)(
|
|
13668
|
+
({
|
|
13669
|
+
itemGap,
|
|
13670
|
+
itemVerticalPadding,
|
|
13671
|
+
itemHorizontalPadding,
|
|
13672
|
+
itemBgColor,
|
|
13673
|
+
itemBorderRadius
|
|
13674
|
+
}) => ({
|
|
13675
|
+
flexDirection: "column",
|
|
13676
|
+
alignItems: "center",
|
|
13677
|
+
justifyContent: "center",
|
|
13678
|
+
gap: itemGap,
|
|
13679
|
+
paddingVertical: itemVerticalPadding,
|
|
13680
|
+
paddingHorizontal: itemHorizontalPadding,
|
|
13681
|
+
backgroundColor: itemBgColor,
|
|
13682
|
+
borderRadius: itemBorderRadius
|
|
13683
|
+
})
|
|
13684
|
+
);
|
|
13685
|
+
var StackedCountBox = styled60(View)(({ countPaddingTop, countBgColor, countBorderRadius }) => ({
|
|
13686
|
+
alignItems: "center",
|
|
13687
|
+
justifyContent: "center",
|
|
13688
|
+
// TODO: Add token — fixed count box dimensions are not yet tokenised.
|
|
13689
|
+
width: 48,
|
|
13690
|
+
height: 36,
|
|
13691
|
+
paddingTop: countPaddingTop,
|
|
13692
|
+
backgroundColor: countBgColor,
|
|
13693
|
+
borderRadius: countBorderRadius
|
|
13694
|
+
}));
|
|
13695
|
+
var InlineRoot = styled60(View)(
|
|
13696
|
+
({
|
|
13697
|
+
rootGap,
|
|
13698
|
+
rootVerticalPadding,
|
|
13699
|
+
rootHorizontalPadding,
|
|
13700
|
+
rootBgColor,
|
|
13701
|
+
rootBorderRadius
|
|
13702
|
+
}) => ({
|
|
13703
|
+
flexDirection: "row",
|
|
13704
|
+
alignItems: "center",
|
|
13705
|
+
justifyContent: "space-between",
|
|
13706
|
+
gap: rootGap,
|
|
13707
|
+
width: "100%",
|
|
13708
|
+
paddingVertical: rootVerticalPadding,
|
|
13709
|
+
paddingHorizontal: rootHorizontalPadding,
|
|
13710
|
+
backgroundColor: rootBgColor,
|
|
13711
|
+
borderRadius: rootBorderRadius,
|
|
13712
|
+
overflow: "hidden"
|
|
13713
|
+
})
|
|
13714
|
+
);
|
|
13715
|
+
var InlineGroup = styled60(View)(({ groupGap }) => ({
|
|
13716
|
+
flexDirection: "row",
|
|
13717
|
+
alignItems: "center",
|
|
13718
|
+
justifyContent: "flex-end",
|
|
13719
|
+
gap: groupGap
|
|
13720
|
+
}));
|
|
13721
|
+
var InlineCount = styled60(View)(({ countGap }) => ({
|
|
13722
|
+
flexDirection: "row",
|
|
13723
|
+
alignItems: "center",
|
|
13724
|
+
gap: countGap
|
|
13725
|
+
}));
|
|
13726
|
+
var Countdown = React60.forwardRef(
|
|
13727
|
+
(_a, ref) => {
|
|
13728
|
+
var _b = _a, {
|
|
13729
|
+
layout = "stacked",
|
|
13730
|
+
days = 0,
|
|
13731
|
+
hours = 0,
|
|
13732
|
+
minutes = 0,
|
|
13733
|
+
seconds = 0,
|
|
13734
|
+
showDays = true,
|
|
13735
|
+
showSeconds = true,
|
|
13736
|
+
label
|
|
13737
|
+
} = _b, rest = __objRest(_b, [
|
|
13738
|
+
"layout",
|
|
13739
|
+
"days",
|
|
13740
|
+
"hours",
|
|
13741
|
+
"minutes",
|
|
13742
|
+
"seconds",
|
|
13743
|
+
"showDays",
|
|
13744
|
+
"showSeconds",
|
|
13745
|
+
"label"
|
|
13746
|
+
]);
|
|
13747
|
+
const theme2 = useTheme();
|
|
13748
|
+
const { countdown } = theme2.tokens.components;
|
|
13749
|
+
const { countdownItem } = countdown;
|
|
13750
|
+
const units = [
|
|
13751
|
+
showDays && {
|
|
13752
|
+
key: "days",
|
|
13753
|
+
value: days,
|
|
13754
|
+
label: UNIT_LABELS.days
|
|
13755
|
+
},
|
|
13756
|
+
{ key: "hours", value: hours, label: UNIT_LABELS.hours },
|
|
13757
|
+
{ key: "minutes", value: minutes, label: UNIT_LABELS.minutes },
|
|
13758
|
+
showSeconds && {
|
|
13759
|
+
key: "seconds",
|
|
13760
|
+
value: seconds,
|
|
13761
|
+
label: UNIT_LABELS.seconds
|
|
13762
|
+
}
|
|
13763
|
+
].filter(Boolean);
|
|
13764
|
+
const colon = (key) => /* @__PURE__ */ jsx(
|
|
13765
|
+
Typography,
|
|
13766
|
+
{
|
|
13767
|
+
token: countdown.typography.colon,
|
|
13768
|
+
color: countdown.colour.text.colon,
|
|
13769
|
+
children: ":"
|
|
13770
|
+
},
|
|
13771
|
+
key
|
|
13772
|
+
);
|
|
13773
|
+
if (layout === "inline") {
|
|
13774
|
+
return /* @__PURE__ */ jsxs(
|
|
13775
|
+
InlineRoot,
|
|
13776
|
+
__spreadProps(__spreadValues({
|
|
13777
|
+
ref,
|
|
13778
|
+
rootGap: parseTokenValue54(countdown.spacing.gap),
|
|
13779
|
+
rootVerticalPadding: parseTokenValue54(
|
|
13780
|
+
countdown.spacing.verticalPadding
|
|
13781
|
+
),
|
|
13782
|
+
rootHorizontalPadding: parseTokenValue54(
|
|
13783
|
+
countdown.spacing.horizontalPadding
|
|
13784
|
+
),
|
|
13785
|
+
rootBgColor: countdown.colour.background.default,
|
|
13786
|
+
rootBorderRadius: parseTokenValue54(countdown.borderRadius.default)
|
|
13787
|
+
}, rest), {
|
|
13788
|
+
children: [
|
|
13789
|
+
label != null && /* @__PURE__ */ jsx(Typography, { variant: "body", weight: "bold", size: "md", color: "primary", children: label }),
|
|
13790
|
+
/* @__PURE__ */ jsx(
|
|
13791
|
+
InlineGroup,
|
|
13792
|
+
{
|
|
13793
|
+
groupGap: parseTokenValue54(countdown.countdownGroup.spacing.gap),
|
|
13794
|
+
children: units.map((unit, index) => /* @__PURE__ */ jsxs(React60.Fragment, { children: [
|
|
13795
|
+
index > 0 && colon(`colon-${unit.key}`),
|
|
13796
|
+
/* @__PURE__ */ jsxs(
|
|
13797
|
+
InlineCount,
|
|
13798
|
+
{
|
|
13799
|
+
countGap: parseTokenValue54(countdown.count.spacing.gap),
|
|
13800
|
+
children: [
|
|
13801
|
+
/* @__PURE__ */ jsx(
|
|
13802
|
+
Typography,
|
|
13803
|
+
{
|
|
13804
|
+
variant: "body",
|
|
13805
|
+
weight: "bold",
|
|
13806
|
+
size: "md",
|
|
13807
|
+
color: "primary",
|
|
13808
|
+
children: pad(unit.value)
|
|
13809
|
+
}
|
|
13810
|
+
),
|
|
13811
|
+
/* @__PURE__ */ jsx(
|
|
13812
|
+
Typography,
|
|
13813
|
+
{
|
|
13814
|
+
variant: "body",
|
|
13815
|
+
weight: "medium",
|
|
13816
|
+
size: "xs",
|
|
13817
|
+
color: "secondary",
|
|
13818
|
+
children: unit.label
|
|
13819
|
+
}
|
|
13820
|
+
)
|
|
13821
|
+
]
|
|
13822
|
+
}
|
|
13823
|
+
)
|
|
13824
|
+
] }, unit.key))
|
|
13825
|
+
}
|
|
13826
|
+
)
|
|
13827
|
+
]
|
|
13828
|
+
})
|
|
13829
|
+
);
|
|
13830
|
+
}
|
|
13831
|
+
return /* @__PURE__ */ jsx(
|
|
13832
|
+
StackedRoot,
|
|
13833
|
+
__spreadProps(__spreadValues({
|
|
13834
|
+
ref,
|
|
13835
|
+
rootGap: parseTokenValue54(countdown.spacing.gap)
|
|
13836
|
+
}, rest), {
|
|
13837
|
+
children: units.map((unit, index) => /* @__PURE__ */ jsxs(React60.Fragment, { children: [
|
|
13838
|
+
index > 0 && colon(`colon-${unit.key}`),
|
|
13839
|
+
/* @__PURE__ */ jsxs(
|
|
13840
|
+
StackedItem,
|
|
13841
|
+
{
|
|
13842
|
+
itemGap: parseTokenValue54(countdownItem.spacing.gap),
|
|
13843
|
+
itemVerticalPadding: parseTokenValue54(
|
|
13844
|
+
countdownItem.spacing.verticalPadding
|
|
13845
|
+
),
|
|
13846
|
+
itemHorizontalPadding: parseTokenValue54(
|
|
13847
|
+
countdownItem.spacing.horizontalPadding
|
|
13848
|
+
),
|
|
13849
|
+
itemBgColor: countdownItem.colour.background.default,
|
|
13850
|
+
itemBorderRadius: parseTokenValue54(
|
|
13851
|
+
countdownItem.borderRadius.default
|
|
13852
|
+
),
|
|
13853
|
+
children: [
|
|
13854
|
+
/* @__PURE__ */ jsx(
|
|
13855
|
+
StackedCountBox,
|
|
13856
|
+
{
|
|
13857
|
+
countPaddingTop: parseTokenValue54(
|
|
13858
|
+
countdownItem.count.spacing.paddingTop
|
|
13859
|
+
),
|
|
13860
|
+
countBgColor: countdownItem.count.colour.background.default,
|
|
13861
|
+
countBorderRadius: parseTokenValue54(
|
|
13862
|
+
countdownItem.count.borderRadius.default
|
|
13863
|
+
),
|
|
13864
|
+
children: /* @__PURE__ */ jsx(
|
|
13865
|
+
Typography,
|
|
13866
|
+
{
|
|
13867
|
+
token: countdownItem.typography.count,
|
|
13868
|
+
color: countdownItem.count.colour.text.count,
|
|
13869
|
+
children: pad(unit.value)
|
|
13870
|
+
}
|
|
13871
|
+
)
|
|
13872
|
+
}
|
|
13873
|
+
),
|
|
13874
|
+
/* @__PURE__ */ jsx(
|
|
13875
|
+
Typography,
|
|
13876
|
+
{
|
|
13877
|
+
token: countdownItem.typography.label,
|
|
13878
|
+
color: countdownItem.colour.text.label,
|
|
13879
|
+
children: unit.label
|
|
13880
|
+
}
|
|
13881
|
+
)
|
|
13882
|
+
]
|
|
13883
|
+
}
|
|
13884
|
+
)
|
|
13885
|
+
] }, unit.key))
|
|
13886
|
+
})
|
|
13887
|
+
);
|
|
13888
|
+
}
|
|
13889
|
+
);
|
|
13890
|
+
Countdown.displayName = "Countdown";
|
|
13891
|
+
var parseTokenValue55 = (value) => {
|
|
13892
|
+
if (typeof value === "number") return value;
|
|
13893
|
+
return parseFloat(value);
|
|
13894
|
+
};
|
|
13895
|
+
var BadgeContainer = styled60(View)(({ theme: theme2 }) => {
|
|
13896
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13897
|
+
const { sizing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
13898
|
+
const { colour } = theme2.tokens.semantics;
|
|
13899
|
+
return {
|
|
13900
|
+
display: "flex",
|
|
13901
|
+
flexDirection: "row",
|
|
13902
|
+
gap: parseTokenValue55(spacing["2xs"]),
|
|
13903
|
+
alignItems: "center",
|
|
13904
|
+
justifyContent: "center",
|
|
13905
|
+
height: parseTokenValue55(sizing["2xl"]),
|
|
13906
|
+
paddingRight: parseTokenValue55(spacing.sm),
|
|
13907
|
+
backgroundColor: colour.background.container.alt,
|
|
13908
|
+
borderTopRightRadius: parseTokenValue55(borderRadius.xs),
|
|
13909
|
+
borderBottomRightRadius: parseTokenValue55(borderRadius.xs)
|
|
13910
|
+
};
|
|
13911
|
+
});
|
|
13912
|
+
var BadgeIcon = styled60(View)(({ theme: theme2 }) => {
|
|
13913
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13914
|
+
const sizing = theme2.tokens.semantics.dimensions.sizing;
|
|
13915
|
+
return {
|
|
13916
|
+
display: "flex",
|
|
13917
|
+
alignItems: "center",
|
|
13918
|
+
justifyContent: "center",
|
|
13919
|
+
width: parseTokenValue55(sizing.md),
|
|
13920
|
+
height: parseTokenValue55(sizing.md),
|
|
13921
|
+
marginLeft: parseTokenValue55(spacing.xs),
|
|
13922
|
+
flexShrink: 0
|
|
13923
|
+
};
|
|
13924
|
+
});
|
|
13925
|
+
var Badge2 = React60.forwardRef(
|
|
13926
|
+
(_a, ref) => {
|
|
13927
|
+
var _b = _a, { icon, text } = _b, rest = __objRest(_b, ["icon", "text"]);
|
|
13928
|
+
return /* @__PURE__ */ jsxs(BadgeContainer, __spreadProps(__spreadValues({ ref }, rest), { children: [
|
|
13929
|
+
icon && /* @__PURE__ */ jsx(BadgeIcon, { children: icon }),
|
|
13930
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", size: "sm", weight: "bold", children: text })
|
|
13931
|
+
] }));
|
|
13932
|
+
}
|
|
13933
|
+
);
|
|
13934
|
+
Badge2.displayName = "ProductListingCard.Badge";
|
|
13935
|
+
var StyledGrid = styled60(View)(({ theme: theme2 }) => {
|
|
13936
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13937
|
+
return {
|
|
13938
|
+
display: "grid",
|
|
13939
|
+
"grid-column-gap": spacing.sm,
|
|
13940
|
+
"grid-row-gap": spacing.xl
|
|
13941
|
+
};
|
|
13942
|
+
});
|
|
13943
|
+
var Grid = React60.forwardRef(
|
|
13944
|
+
(_a, ref) => {
|
|
13945
|
+
var _b = _a, { children, xs = 1, md = 2, lg = 3 } = _b, rest = __objRest(_b, ["children", "xs", "md", "lg"]);
|
|
13946
|
+
const { width } = useWindowDimensions();
|
|
13947
|
+
const breakpoints = DEFAULT_THEME_OPTIONS.tokens.semantics.dimensions.breakpoints.spacing;
|
|
13948
|
+
const SM_BREAKPOINT = parseFloat(String(breakpoints.sm));
|
|
13949
|
+
const MD_BREAKPOINT = parseFloat(String(breakpoints.md));
|
|
13950
|
+
const getItemsPerRow = () => {
|
|
13951
|
+
if (width >= MD_BREAKPOINT) return lg;
|
|
13952
|
+
if (width >= SM_BREAKPOINT) return md;
|
|
13953
|
+
return xs;
|
|
13954
|
+
};
|
|
13955
|
+
const itemsPerRow = getItemsPerRow();
|
|
13956
|
+
return /* @__PURE__ */ jsx(
|
|
13957
|
+
StyledGrid,
|
|
13958
|
+
__spreadProps(__spreadValues({
|
|
13959
|
+
ref,
|
|
13960
|
+
style: {
|
|
13961
|
+
gridTemplateColumns: `repeat(${itemsPerRow}, 1fr)`
|
|
13962
|
+
}
|
|
13963
|
+
}, rest), {
|
|
13964
|
+
children
|
|
13965
|
+
})
|
|
13966
|
+
);
|
|
13967
|
+
}
|
|
13968
|
+
);
|
|
13969
|
+
Grid.displayName = "ProductListingCard.Grid";
|
|
13970
|
+
var parseTokenValue56 = (value) => {
|
|
13971
|
+
if (typeof value === "number") return value;
|
|
13972
|
+
return parseFloat(value);
|
|
13973
|
+
};
|
|
13974
|
+
var StyledRoot16 = styled60(Pressable)(({ theme: theme2 }) => {
|
|
13975
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13976
|
+
return {
|
|
13977
|
+
display: "flex",
|
|
13978
|
+
flexDirection: "column",
|
|
13979
|
+
gap: parseTokenValue56(spacing.md),
|
|
13980
|
+
alignItems: "flex-start",
|
|
13981
|
+
width: "100%"
|
|
13982
|
+
};
|
|
13983
|
+
});
|
|
13984
|
+
var ImageContainer = styled60(View)({
|
|
13985
|
+
position: "relative",
|
|
13986
|
+
width: "100%",
|
|
13987
|
+
aspectRatio: 1,
|
|
13988
|
+
overflow: "hidden"
|
|
13989
|
+
});
|
|
13990
|
+
var StyledImage2 = styled60(Image)({
|
|
13991
|
+
width: "100%",
|
|
13992
|
+
height: "100%",
|
|
13993
|
+
resizeMode: "cover"
|
|
13994
|
+
});
|
|
13995
|
+
var BadgeContainer2 = styled60(View)(({ theme: theme2 }) => {
|
|
13996
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
13997
|
+
const { sizing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
13998
|
+
const { colour } = theme2.tokens.semantics;
|
|
13999
|
+
return {
|
|
14000
|
+
position: "absolute",
|
|
14001
|
+
top: parseTokenValue56(spacing.md),
|
|
14002
|
+
left: 0,
|
|
14003
|
+
display: "flex",
|
|
14004
|
+
flexDirection: "row",
|
|
14005
|
+
gap: parseTokenValue56(spacing["2xs"]),
|
|
14006
|
+
alignItems: "center",
|
|
14007
|
+
justifyContent: "center",
|
|
14008
|
+
height: parseTokenValue56(sizing["2xl"]),
|
|
14009
|
+
paddingRight: parseTokenValue56(spacing.sm),
|
|
14010
|
+
backgroundColor: colour.background.container.alt,
|
|
14011
|
+
borderTopRightRadius: parseTokenValue56(borderRadius.sm),
|
|
14012
|
+
borderBottomRightRadius: parseTokenValue56(borderRadius.sm)
|
|
14013
|
+
};
|
|
14014
|
+
});
|
|
14015
|
+
var ContentContainer = styled60(View)(({ theme: theme2 }) => {
|
|
14016
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14017
|
+
return {
|
|
14018
|
+
display: "flex",
|
|
14019
|
+
flexDirection: "column",
|
|
14020
|
+
gap: parseTokenValue56(spacing.md),
|
|
14021
|
+
alignItems: "flex-start",
|
|
14022
|
+
width: "100%"
|
|
14023
|
+
};
|
|
14024
|
+
});
|
|
14025
|
+
var DetailsContainer = styled60(View)({
|
|
14026
|
+
display: "flex",
|
|
14027
|
+
flexDirection: "column",
|
|
14028
|
+
alignItems: "flex-start",
|
|
14029
|
+
width: "100%"
|
|
14030
|
+
});
|
|
14031
|
+
var CategoryWrapper = styled60(View)(({ theme: theme2 }) => {
|
|
14032
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14033
|
+
return {
|
|
14034
|
+
marginBottom: parseTokenValue56(spacing["3xs"])
|
|
14035
|
+
};
|
|
14036
|
+
});
|
|
14037
|
+
var TitleContainer = styled60(View)(({ theme: theme2 }) => {
|
|
14038
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14039
|
+
return {
|
|
14040
|
+
display: "flex",
|
|
14041
|
+
flexDirection: "row",
|
|
14042
|
+
width: "100%",
|
|
14043
|
+
marginBottom: parseTokenValue56(spacing.xs)
|
|
14044
|
+
};
|
|
14045
|
+
});
|
|
14046
|
+
var SizeWrapper = styled60(View)(({ theme: theme2 }) => {
|
|
14047
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14048
|
+
return {
|
|
14049
|
+
marginBottom: parseTokenValue56(spacing.md)
|
|
14050
|
+
};
|
|
14051
|
+
});
|
|
14052
|
+
var PricingContainer = styled60(View)(({ theme: theme2 }) => {
|
|
14053
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14054
|
+
return {
|
|
14055
|
+
display: "flex",
|
|
14056
|
+
flexDirection: "row",
|
|
14057
|
+
gap: Math.round(parseFloat(spacing["2xs"])),
|
|
14058
|
+
alignItems: "center",
|
|
14059
|
+
width: "100%"
|
|
14060
|
+
};
|
|
14061
|
+
});
|
|
14062
|
+
var _ProductListingCard = React60.forwardRef(
|
|
14063
|
+
(_a, ref) => {
|
|
14064
|
+
var _b = _a, {
|
|
14065
|
+
image,
|
|
14066
|
+
imageAlt,
|
|
14067
|
+
badge,
|
|
14068
|
+
category,
|
|
14069
|
+
title,
|
|
14070
|
+
size,
|
|
14071
|
+
price,
|
|
14072
|
+
wasPrice,
|
|
14073
|
+
showBadge = true,
|
|
14074
|
+
showCategory = true,
|
|
14075
|
+
showTitle = true,
|
|
14076
|
+
showSize = true,
|
|
14077
|
+
showPrice = true,
|
|
14078
|
+
onPress
|
|
14079
|
+
} = _b, rest = __objRest(_b, [
|
|
14080
|
+
"image",
|
|
14081
|
+
"imageAlt",
|
|
14082
|
+
"badge",
|
|
14083
|
+
"category",
|
|
14084
|
+
"title",
|
|
14085
|
+
"size",
|
|
14086
|
+
"price",
|
|
14087
|
+
"wasPrice",
|
|
14088
|
+
"showBadge",
|
|
14089
|
+
"showCategory",
|
|
14090
|
+
"showTitle",
|
|
14091
|
+
"showSize",
|
|
14092
|
+
"showPrice",
|
|
14093
|
+
"onPress"
|
|
14094
|
+
]);
|
|
14095
|
+
return /* @__PURE__ */ jsxs(StyledRoot16, __spreadProps(__spreadValues({ ref, onPress }, rest), { children: [
|
|
14096
|
+
/* @__PURE__ */ jsxs(ImageContainer, { children: [
|
|
14097
|
+
image && /* @__PURE__ */ jsx(View, { style: { flex: 1, width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
|
|
14098
|
+
StyledImage2,
|
|
14099
|
+
{
|
|
14100
|
+
source: image,
|
|
14101
|
+
accessibilityLabel: imageAlt,
|
|
14102
|
+
accessible: true
|
|
14103
|
+
}
|
|
14104
|
+
) }),
|
|
14105
|
+
showBadge && badge && /* @__PURE__ */ jsx(BadgeContainer2, { children: badge })
|
|
14106
|
+
] }),
|
|
14107
|
+
/* @__PURE__ */ jsxs(ContentContainer, { children: [
|
|
14108
|
+
/* @__PURE__ */ jsxs(DetailsContainer, { children: [
|
|
14109
|
+
showCategory && category && /* @__PURE__ */ jsx(CategoryWrapper, { children: /* @__PURE__ */ jsx(Typography, { variant: "body", size: "sm", color: "secondary", children: category }) }),
|
|
14110
|
+
showTitle && /* @__PURE__ */ jsx(TitleContainer, { children: /* @__PURE__ */ jsx(Typography, { variant: "heading", size: "xs", children: title }) }),
|
|
14111
|
+
showSize && size && /* @__PURE__ */ jsx(SizeWrapper, { children: /* @__PURE__ */ jsx(Typography, { variant: "body", size: "md", color: "secondary", children: size }) })
|
|
14112
|
+
] }),
|
|
14113
|
+
showPrice && price && /* @__PURE__ */ jsxs(PricingContainer, { children: [
|
|
14114
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", size: "md", color: "secondary", children: price }),
|
|
14115
|
+
wasPrice && /* @__PURE__ */ jsx(
|
|
14116
|
+
Typography,
|
|
14117
|
+
{
|
|
14118
|
+
variant: "body",
|
|
14119
|
+
size: "md",
|
|
14120
|
+
color: "secondary",
|
|
14121
|
+
textDecoration: "line-through",
|
|
14122
|
+
children: wasPrice
|
|
14123
|
+
}
|
|
14124
|
+
)
|
|
14125
|
+
] })
|
|
14126
|
+
] })
|
|
14127
|
+
] }));
|
|
14128
|
+
}
|
|
14129
|
+
);
|
|
14130
|
+
_ProductListingCard.displayName = "ProductListingCard";
|
|
14131
|
+
var ProductListingCardWithBadgeAndGrid = Object.assign(_ProductListingCard, {
|
|
14132
|
+
Badge: Badge2,
|
|
14133
|
+
Grid
|
|
14134
|
+
});
|
|
14135
|
+
var StyledCardContainer = styled60(View)(({ theme: theme2 }) => {
|
|
14136
|
+
const { spacing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
14137
|
+
const { colour } = theme2.tokens.semantics;
|
|
14138
|
+
const spacingMd = parseTokenValue8(spacing.md);
|
|
14139
|
+
const spacingXl = parseTokenValue8(spacing.xl);
|
|
14140
|
+
return {
|
|
14141
|
+
flexDirection: "row",
|
|
14142
|
+
width: "100%",
|
|
14143
|
+
height: "100%",
|
|
14144
|
+
maxHeight: spacingXl * 6 + spacingMd,
|
|
14145
|
+
backgroundColor: colour.background.surface.default,
|
|
14146
|
+
borderWidth: 1,
|
|
14147
|
+
borderColor: colour.border.default,
|
|
14148
|
+
borderRadius: parseTokenValue8(borderRadius.md),
|
|
14149
|
+
overflow: "hidden",
|
|
14150
|
+
shadowColor: "#522a10",
|
|
14151
|
+
shadowOffset: { width: 0, height: spacingMd / 4 },
|
|
14152
|
+
shadowOpacity: 0.05,
|
|
14153
|
+
shadowRadius: spacingXl - 4,
|
|
14154
|
+
elevation: 5,
|
|
14155
|
+
zIndex: 1
|
|
14156
|
+
};
|
|
14157
|
+
});
|
|
14158
|
+
var StyledImage3 = styled60(View)(
|
|
14159
|
+
({ theme: theme2, imageBackgroundColor }) => ({
|
|
14160
|
+
flexShrink: 0,
|
|
14161
|
+
backgroundColor: imageBackgroundColor || theme2.tokens.semantics.colour.background.container.secondary,
|
|
14162
|
+
overflow: "hidden",
|
|
14163
|
+
aspectRatio: "1 / 1",
|
|
14164
|
+
height: "100%",
|
|
14165
|
+
position: "relative"
|
|
14166
|
+
})
|
|
14167
|
+
);
|
|
14168
|
+
var StyledQuantityBadge = styled60(View)(({ theme: theme2 }) => {
|
|
14169
|
+
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
14170
|
+
const borderRadius = theme2.tokens.semantics.dimensions.borderRadius;
|
|
14171
|
+
const { colour } = theme2.tokens.semantics;
|
|
14172
|
+
return {
|
|
14173
|
+
position: "absolute",
|
|
14174
|
+
top: parseTokenValue8(spacing["2xs"]),
|
|
14175
|
+
right: parseTokenValue8(spacing["2xs"]),
|
|
14176
|
+
backgroundColor: colour.background.container.brand,
|
|
14177
|
+
borderRadius: parseTokenValue8(borderRadius.xs),
|
|
14178
|
+
paddingHorizontal: parseTokenValue8(spacing.sm),
|
|
14179
|
+
height: parseTokenValue8(spacing["2xl"]),
|
|
14180
|
+
minWidth: parseTokenValue8(spacing["2xl"]),
|
|
14181
|
+
alignItems: "center",
|
|
14182
|
+
justifyContent: "center",
|
|
14183
|
+
zIndex: 2
|
|
14184
|
+
};
|
|
14185
|
+
});
|
|
14186
|
+
var StyledContentArea = styled60(View)(({ theme: theme2 }) => {
|
|
14187
|
+
const { spacing } = theme2.tokens.semantics.dimensions;
|
|
14188
|
+
return {
|
|
14189
|
+
flex: 1,
|
|
14190
|
+
paddingHorizontal: parseTokenValue8(spacing.md),
|
|
14191
|
+
paddingVertical: parseTokenValue8(spacing.md),
|
|
14192
|
+
gap: parseTokenValue8(spacing.xs),
|
|
14193
|
+
justifyContent: "space-between"
|
|
14194
|
+
};
|
|
14195
|
+
});
|
|
14196
|
+
var StyledTextContainer = styled60(View)(() => ({
|
|
14197
|
+
gap: 2
|
|
14198
|
+
}));
|
|
14199
|
+
var StyledBannerWrapper = styled60(View)(() => ({
|
|
14200
|
+
width: "100%",
|
|
14201
|
+
marginTop: -48,
|
|
14202
|
+
paddingTop: 24,
|
|
14203
|
+
paddingBottom: 16
|
|
14204
|
+
}));
|
|
14205
|
+
var StyledRootWrapper = styled60(View)(() => {
|
|
14206
|
+
return {
|
|
14207
|
+
flexDirection: "column",
|
|
14208
|
+
width: "100%",
|
|
14209
|
+
height: "100%"
|
|
14210
|
+
};
|
|
14211
|
+
});
|
|
14212
|
+
var StyledNotification = styled60(Notification)(({ theme: theme2 }) => {
|
|
14213
|
+
const { spacing } = theme2.tokens.semantics.dimensions;
|
|
14214
|
+
return {
|
|
14215
|
+
top: parseTokenValue8(spacing.md),
|
|
14216
|
+
paddingHorizontal: parseTokenValue8(spacing.xl),
|
|
14217
|
+
paddingVertical: parseTokenValue8(spacing.md)
|
|
14218
|
+
};
|
|
14219
|
+
});
|
|
14220
|
+
var ProductDisplayCard = React60.forwardRef(
|
|
14221
|
+
(_a, ref) => {
|
|
14222
|
+
var _b = _a, {
|
|
14223
|
+
device = "mobile",
|
|
14224
|
+
title,
|
|
14225
|
+
subtext,
|
|
14226
|
+
showSubtext = true,
|
|
14227
|
+
quantity = 1,
|
|
14228
|
+
onQuantityChange,
|
|
14229
|
+
showQuantityPicker = false,
|
|
14230
|
+
disableQuantityButtons = false,
|
|
14231
|
+
hideQuantityButtons = false,
|
|
14232
|
+
showIncrementButton,
|
|
14233
|
+
showDecrementButton,
|
|
14234
|
+
incrementDisabled = false,
|
|
14235
|
+
decrementDisabled = false,
|
|
14236
|
+
image,
|
|
14237
|
+
imageBackgroundColor,
|
|
14238
|
+
showImageQuantityBadge = false,
|
|
14239
|
+
banner,
|
|
14240
|
+
showBanner = false,
|
|
14241
|
+
bannerType = "info",
|
|
14242
|
+
showBannerIcon = false
|
|
14243
|
+
} = _b, rest = __objRest(_b, [
|
|
14244
|
+
"device",
|
|
14245
|
+
"title",
|
|
14246
|
+
"subtext",
|
|
14247
|
+
"showSubtext",
|
|
14248
|
+
"quantity",
|
|
14249
|
+
"onQuantityChange",
|
|
14250
|
+
"showQuantityPicker",
|
|
14251
|
+
"disableQuantityButtons",
|
|
14252
|
+
"hideQuantityButtons",
|
|
14253
|
+
"showIncrementButton",
|
|
14254
|
+
"showDecrementButton",
|
|
14255
|
+
"incrementDisabled",
|
|
14256
|
+
"decrementDisabled",
|
|
14257
|
+
"image",
|
|
14258
|
+
"imageBackgroundColor",
|
|
14259
|
+
"showImageQuantityBadge",
|
|
14260
|
+
"banner",
|
|
14261
|
+
"showBanner",
|
|
14262
|
+
"bannerType",
|
|
14263
|
+
"showBannerIcon"
|
|
14264
|
+
]);
|
|
14265
|
+
const handleQuantityChange = (newQuantity) => {
|
|
14266
|
+
if (newQuantity >= 1) {
|
|
14267
|
+
onQuantityChange == null ? void 0 : onQuantityChange(newQuantity);
|
|
14268
|
+
}
|
|
14269
|
+
};
|
|
14270
|
+
const cardContent = /* @__PURE__ */ jsxs(StyledCardContainer, __spreadProps(__spreadValues({ ref, cardDevice: device }, rest), { children: [
|
|
14271
|
+
image && /* @__PURE__ */ jsxs(StyledImage3, { imageBackgroundColor, children: [
|
|
14272
|
+
typeof image === "string" ? /* @__PURE__ */ jsx(
|
|
14273
|
+
Image,
|
|
14274
|
+
{
|
|
14275
|
+
source: { uri: image },
|
|
14276
|
+
style: { width: "100%", height: "100%" }
|
|
14277
|
+
}
|
|
14278
|
+
) : image,
|
|
14279
|
+
showImageQuantityBadge && quantity && /* @__PURE__ */ jsx(StyledQuantityBadge, { children: /* @__PURE__ */ jsx(Typography, { variant: "body", size: "sm", weight: "bold", children: quantity }) })
|
|
14280
|
+
] }),
|
|
14281
|
+
/* @__PURE__ */ jsxs(StyledContentArea, { contentDevice: device, children: [
|
|
14282
|
+
/* @__PURE__ */ jsxs(StyledTextContainer, { children: [
|
|
14283
|
+
/* @__PURE__ */ jsx(Typography, { variant: "heading", size: "xs", color: "primary", children: title }),
|
|
14284
|
+
showSubtext && subtext && /* @__PURE__ */ jsx(Typography, { variant: "body", size: "sm", color: "secondary", children: subtext })
|
|
14285
|
+
] }),
|
|
14286
|
+
showQuantityPicker && /* @__PURE__ */ jsx(View, { style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsx(
|
|
14287
|
+
NumberField,
|
|
14288
|
+
{
|
|
14289
|
+
size: "sm",
|
|
14290
|
+
value: String(quantity),
|
|
14291
|
+
onChangeText: (text) => {
|
|
14292
|
+
const value = parseInt(text, 10);
|
|
14293
|
+
if (!isNaN(value)) {
|
|
14294
|
+
handleQuantityChange(value);
|
|
14295
|
+
}
|
|
14296
|
+
},
|
|
14297
|
+
onIncrement: () => handleQuantityChange(quantity + 1),
|
|
14298
|
+
onDecrement: () => handleQuantityChange(quantity - 1),
|
|
14299
|
+
min: 1,
|
|
14300
|
+
accessible: true,
|
|
14301
|
+
accessibilityLabel: `Quantity: ${quantity}`,
|
|
14302
|
+
showIncrementButton: showIncrementButton !== void 0 ? showIncrementButton : !hideQuantityButtons,
|
|
14303
|
+
showDecrementButton: showDecrementButton !== void 0 ? showDecrementButton : !hideQuantityButtons,
|
|
14304
|
+
incrementDisabled: incrementDisabled || disableQuantityButtons,
|
|
14305
|
+
decrementDisabled: decrementDisabled || disableQuantityButtons
|
|
14306
|
+
}
|
|
14307
|
+
) })
|
|
14308
|
+
] })
|
|
14309
|
+
] }));
|
|
14310
|
+
if (showBanner && banner) {
|
|
14311
|
+
return /* @__PURE__ */ jsxs(StyledRootWrapper, { children: [
|
|
14312
|
+
cardContent,
|
|
14313
|
+
/* @__PURE__ */ jsx(StyledBannerWrapper, { children: /* @__PURE__ */ jsx(
|
|
14314
|
+
StyledNotification,
|
|
14315
|
+
{
|
|
14316
|
+
variant: "inline",
|
|
14317
|
+
type: bannerType,
|
|
14318
|
+
showIcon: showBannerIcon,
|
|
14319
|
+
children: banner
|
|
14320
|
+
}
|
|
14321
|
+
) })
|
|
14322
|
+
] });
|
|
14323
|
+
}
|
|
14324
|
+
return cardContent;
|
|
14325
|
+
}
|
|
14326
|
+
);
|
|
14327
|
+
ProductDisplayCard.displayName = "ProductDisplayCard";
|
|
14328
|
+
var TabNavigationContext = React60.createContext(void 0);
|
|
14329
|
+
var useTabNavigationContext = () => {
|
|
14330
|
+
const context = React60.useContext(TabNavigationContext);
|
|
14331
|
+
if (!context) {
|
|
14332
|
+
throw new Error(
|
|
14333
|
+
"TabNavigation.List, TabNavigation.Tab and TabNavigation.Panel must be used within a TabNavigation component."
|
|
14334
|
+
);
|
|
14335
|
+
}
|
|
14336
|
+
return context;
|
|
14337
|
+
};
|
|
14338
|
+
var parseTokenValue57 = (value) => parseFloat(value);
|
|
14339
|
+
var StyledFixedList = styled60(View)({
|
|
14340
|
+
flexDirection: "row",
|
|
14341
|
+
alignItems: "stretch",
|
|
14342
|
+
width: "100%"
|
|
14343
|
+
});
|
|
14344
|
+
var StyledTab = styled60(Pressable)(
|
|
14345
|
+
({
|
|
14346
|
+
tabHeight,
|
|
14347
|
+
tabMinWidth,
|
|
14348
|
+
tabPaddingTop,
|
|
14349
|
+
tabPaddingBottom,
|
|
14350
|
+
tabPaddingHorizontal,
|
|
14351
|
+
tabGap,
|
|
14352
|
+
tabBorderWidth,
|
|
14353
|
+
tabBorderColor,
|
|
14354
|
+
tabFlex
|
|
14355
|
+
}) => __spreadValues({
|
|
14356
|
+
flexDirection: "row",
|
|
14357
|
+
alignItems: "center",
|
|
14358
|
+
justifyContent: "center",
|
|
14359
|
+
gap: tabGap,
|
|
14360
|
+
height: tabHeight,
|
|
14361
|
+
minWidth: tabMinWidth,
|
|
14362
|
+
paddingTop: tabPaddingTop,
|
|
14363
|
+
paddingBottom: tabPaddingBottom,
|
|
14364
|
+
paddingHorizontal: tabPaddingHorizontal,
|
|
14365
|
+
borderBottomWidth: tabBorderWidth,
|
|
14366
|
+
borderBottomColor: tabBorderColor
|
|
14367
|
+
}, tabFlex !== void 0 ? { flex: tabFlex } : { flexShrink: 0 })
|
|
14368
|
+
);
|
|
14369
|
+
var TabNavigationList = React60.forwardRef(
|
|
14370
|
+
(_a, ref) => {
|
|
14371
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
14372
|
+
const { layout } = useTabNavigationContext();
|
|
14373
|
+
if (layout === "intrinsic") {
|
|
14374
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.List, { asChild: true, children: /* @__PURE__ */ jsx(View, __spreadProps(__spreadValues({ ref }, rest), { children: /* @__PURE__ */ jsx(
|
|
14375
|
+
ScrollView,
|
|
14376
|
+
{
|
|
14377
|
+
horizontal: true,
|
|
14378
|
+
showsHorizontalScrollIndicator: false,
|
|
14379
|
+
contentContainerStyle: styles4.scrollContent,
|
|
14380
|
+
children
|
|
14381
|
+
}
|
|
14382
|
+
) })) });
|
|
14383
|
+
}
|
|
14384
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.List, { asChild: true, children: /* @__PURE__ */ jsx(StyledFixedList, __spreadProps(__spreadValues({ ref }, rest), { children })) });
|
|
14385
|
+
}
|
|
14386
|
+
);
|
|
14387
|
+
TabNavigationList.displayName = "TabNavigation.List";
|
|
14388
|
+
var TabNavigationTab = React60.forwardRef(
|
|
14389
|
+
(_a, ref) => {
|
|
14390
|
+
var _b = _a, { value, disabled = false, children } = _b, rest = __objRest(_b, ["value", "disabled", "children"]);
|
|
14391
|
+
const { layout } = useTabNavigationContext();
|
|
14392
|
+
const { value: selectedValue } = TabsPrimitive.useRootContext();
|
|
14393
|
+
const theme2 = useTheme();
|
|
14394
|
+
const { tabItem, tabitem } = theme2.tokens.components.tabNavigation;
|
|
14395
|
+
const { spacing, colour, borderWidth, typography } = tabItem;
|
|
14396
|
+
const selected = selectedValue === value;
|
|
14397
|
+
const token = selected ? typography.selected : typography.default;
|
|
14398
|
+
const borderColour = selected ? colour.border.default : colour.border.disabled;
|
|
14399
|
+
const textColour = disabled ? theme2.tokens.primitives.colour.brand.brown["5"] : colour.text.default;
|
|
14400
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { value, disabled, asChild: true, children: /* @__PURE__ */ jsx(
|
|
14401
|
+
StyledTab,
|
|
14402
|
+
__spreadProps(__spreadValues({
|
|
14403
|
+
ref,
|
|
14404
|
+
tabHeight: parseTokenValue57(tabitem.size.height),
|
|
14405
|
+
tabMinWidth: parseTokenValue57(tabitem.size.minWidth),
|
|
14406
|
+
tabPaddingTop: parseTokenValue57(spacing.topPadding),
|
|
14407
|
+
tabPaddingBottom: parseTokenValue57(spacing.bottomPadding),
|
|
14408
|
+
tabPaddingHorizontal: parseTokenValue57(spacing.horizontalPadding),
|
|
14409
|
+
tabGap: parseTokenValue57(spacing.gap),
|
|
14410
|
+
tabBorderWidth: parseTokenValue57(borderWidth.default),
|
|
14411
|
+
tabBorderColor: borderColour,
|
|
14412
|
+
tabFlex: layout === "fixed" ? 1 : void 0
|
|
14413
|
+
}, rest), {
|
|
14414
|
+
children: /* @__PURE__ */ jsx(Typography, { token, color: textColour, children })
|
|
14415
|
+
})
|
|
14416
|
+
) });
|
|
14417
|
+
}
|
|
14418
|
+
);
|
|
14419
|
+
TabNavigationTab.displayName = "TabNavigation.Tab";
|
|
14420
|
+
var TabNavigationPanel = React60.forwardRef(
|
|
14421
|
+
(_a, ref) => {
|
|
14422
|
+
var _b = _a, { value, children } = _b, rest = __objRest(_b, ["value", "children"]);
|
|
14423
|
+
const { animation } = useTabNavigationContext();
|
|
14424
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Content, { value, asChild: true, children: /* @__PURE__ */ jsx(Animated5, __spreadProps(__spreadValues({ ref, variant: animation, exit: false }, rest), { children })) });
|
|
14425
|
+
}
|
|
14426
|
+
);
|
|
14427
|
+
TabNavigationPanel.displayName = "TabNavigation.Panel";
|
|
14428
|
+
var TabNavigationRoot = React60.forwardRef(
|
|
14429
|
+
(_a, ref) => {
|
|
14430
|
+
var _b = _a, {
|
|
14431
|
+
value,
|
|
14432
|
+
defaultValue,
|
|
14433
|
+
onValueChange,
|
|
14434
|
+
layout = "fixed",
|
|
14435
|
+
animation = "slideIn",
|
|
14436
|
+
children
|
|
14437
|
+
} = _b, rest = __objRest(_b, [
|
|
14438
|
+
"value",
|
|
14439
|
+
"defaultValue",
|
|
14440
|
+
"onValueChange",
|
|
14441
|
+
"layout",
|
|
14442
|
+
"animation",
|
|
14443
|
+
"children"
|
|
14444
|
+
]);
|
|
14445
|
+
const isControlled = typeof value === "string";
|
|
14446
|
+
const [uncontrolledValue, setUncontrolledValue] = React60.useState(
|
|
14447
|
+
() => defaultValue != null ? defaultValue : ""
|
|
14448
|
+
);
|
|
14449
|
+
const currentValue = isControlled ? value : uncontrolledValue;
|
|
14450
|
+
const handleValueChange = React60.useCallback(
|
|
14451
|
+
(newValue) => {
|
|
14452
|
+
if (!isControlled) {
|
|
14453
|
+
setUncontrolledValue(newValue);
|
|
14454
|
+
}
|
|
14455
|
+
onValueChange == null ? void 0 : onValueChange(newValue);
|
|
14456
|
+
},
|
|
14457
|
+
[isControlled, onValueChange]
|
|
14458
|
+
);
|
|
14459
|
+
const contextValue = React60.useMemo(
|
|
14460
|
+
() => ({ layout, animation }),
|
|
14461
|
+
[layout, animation]
|
|
14462
|
+
);
|
|
14463
|
+
return /* @__PURE__ */ jsx(TabNavigationContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
14464
|
+
TabsPrimitive.Root,
|
|
14465
|
+
__spreadProps(__spreadValues({
|
|
14466
|
+
ref,
|
|
14467
|
+
value: currentValue,
|
|
14468
|
+
onValueChange: handleValueChange
|
|
14469
|
+
}, rest), {
|
|
14470
|
+
children
|
|
14471
|
+
})
|
|
14472
|
+
) });
|
|
14473
|
+
}
|
|
14474
|
+
);
|
|
14475
|
+
TabNavigationRoot.displayName = "TabNavigation";
|
|
14476
|
+
var styles4 = StyleSheet.create({
|
|
14477
|
+
scrollContent: {
|
|
14478
|
+
flexDirection: "row",
|
|
14479
|
+
alignItems: "stretch"
|
|
14480
|
+
}
|
|
14481
|
+
});
|
|
14482
|
+
var TabNavigation = Object.assign(TabNavigationRoot, {
|
|
14483
|
+
List: TabNavigationList,
|
|
14484
|
+
Tab: TabNavigationTab,
|
|
14485
|
+
Panel: TabNavigationPanel
|
|
14486
|
+
});
|
|
13653
14487
|
|
|
13654
|
-
export { Accordion, Animated5 as Animated, Avatar, BRAND_FONTS, Badge, Button, ButtonDock, ButtonGroup, CarouselControls, Checkbox, CheckboxGroup, CopyField, CopyFieldInput, 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, Progress, Radio, RadioGroup, SearchField, SearchFieldInput, SegmentedControl, SelectField, SelectFieldContent, SelectFieldItem, SelectFieldTrigger, SelectFieldValue, Slider, Spinner, Switch, Tag, TextArea, TextAreaField, TextAreaLabel, ThemeProvider, Tooltip, Typography, createPawprintTheme, fadeAnimation, fadeDownAnimation, fadeUpAnimation, registerLogo, resolveFont, resolveLogo, scaleAnimation, slideInAnimation, slideOutAnimation, theme, useCopyField, usePasswordField, usePawprint, useSearchField, useSelectField };
|
|
14488
|
+
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 };
|
|
13655
14489
|
//# sourceMappingURL=index.js.map
|
|
13656
14490
|
//# sourceMappingURL=index.js.map
|