@butternutbox/pawprint-native 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +900 -876
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +738 -715
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/Divider/Divider.stories.tsx +71 -0
- package/src/components/atoms/Divider/Divider.test.tsx +25 -0
- package/src/components/atoms/Divider/Divider.tsx +61 -0
- package/src/components/atoms/Divider/index.ts +2 -0
- package/src/components/atoms/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useTheme, ThemeProvider as ThemeProvider$1 } from '@emotion/react';
|
|
2
2
|
import { Brand, Theme, DEFAULT_THEME_OPTIONS, THEME_OPTIONS_MAP, tokens } from '@butternutbox/pawprint-tokens';
|
|
3
3
|
export { tokens } from '@butternutbox/pawprint-tokens';
|
|
4
|
-
import
|
|
4
|
+
import styled51 from '@emotion/native';
|
|
5
5
|
export { default as styled } from '@emotion/native';
|
|
6
6
|
import idaNarrow500 from './ida-narrow-500-normal.ttf';
|
|
7
7
|
import idaNarrow700 from './ida-narrow-700-normal.ttf';
|
|
@@ -9,7 +9,7 @@ import ibmPlexSansCondensed400 from './ibm-plex-sans-condensed-400-normal.ttf';
|
|
|
9
9
|
import ibmPlexSansCondensed500 from './ibm-plex-sans-condensed-500-normal.ttf';
|
|
10
10
|
import ibmPlexSansCondensed600 from './ibm-plex-sans-condensed-600-normal.ttf';
|
|
11
11
|
import ibmPlexSansCondensed700 from './ibm-plex-sans-condensed-700-normal.ttf';
|
|
12
|
-
import
|
|
12
|
+
import React66, { createContext, forwardRef, useRef, useEffect, useState, useCallback, useMemo, useContext } from 'react';
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
import * as AvatarPrimitive from '@rn-primitives/avatar';
|
|
15
15
|
import { Text, View, Animated, Pressable, TextInput, Easing, StyleSheet, useWindowDimensions, PanResponder, Image, ScrollView, Keyboard, ActionSheetIOS, TouchableOpacity, Platform, Modal, TouchableWithoutFeedback, FlatList, Linking, Clipboard, Alert } from 'react-native';
|
|
@@ -188,8 +188,8 @@ var VARIANT_DEFAULTS = {
|
|
|
188
188
|
heading: { size: "md" },
|
|
189
189
|
display: { size: "lg" }
|
|
190
190
|
};
|
|
191
|
-
var StyledText =
|
|
192
|
-
var Typography =
|
|
191
|
+
var StyledText = styled51(Text)({});
|
|
192
|
+
var Typography = React66.forwardRef(
|
|
193
193
|
(props, ref) => {
|
|
194
194
|
const theme2 = useTheme();
|
|
195
195
|
const { typography, colour } = theme2.tokens.semantics;
|
|
@@ -272,14 +272,14 @@ var Typography = React65.forwardRef(
|
|
|
272
272
|
);
|
|
273
273
|
Typography.displayName = "Typography";
|
|
274
274
|
var parseTokenValue2 = (value) => parseFloat(value);
|
|
275
|
-
var StyledIconRoot =
|
|
275
|
+
var StyledIconRoot = styled51(View)(({ iconDimension }) => ({
|
|
276
276
|
alignItems: "center",
|
|
277
277
|
justifyContent: "center",
|
|
278
278
|
flexShrink: 0,
|
|
279
279
|
width: iconDimension,
|
|
280
280
|
height: iconDimension
|
|
281
281
|
}));
|
|
282
|
-
var Icon =
|
|
282
|
+
var Icon = React66.forwardRef(
|
|
283
283
|
(_a, ref) => {
|
|
284
284
|
var _b = _a, {
|
|
285
285
|
icon: IconComponent,
|
|
@@ -580,7 +580,7 @@ var SIZE_MAP = {
|
|
|
580
580
|
lg: "large"
|
|
581
581
|
};
|
|
582
582
|
var parseTokenValue3 = (value) => parseFloat(value);
|
|
583
|
-
var StyledRoot =
|
|
583
|
+
var StyledRoot = styled51(AvatarPrimitive.Root)(({ theme: theme2, size, border }) => {
|
|
584
584
|
const { avatar } = theme2.tokens.components;
|
|
585
585
|
const { borderRadius } = theme2.tokens.semantics.dimensions;
|
|
586
586
|
const tokenSize = SIZE_MAP[size];
|
|
@@ -601,12 +601,12 @@ var StyledRoot = styled50(AvatarPrimitive.Root)(({ theme: theme2, size, border }
|
|
|
601
601
|
borderStyle: "solid"
|
|
602
602
|
});
|
|
603
603
|
});
|
|
604
|
-
var StyledImage =
|
|
604
|
+
var StyledImage = styled51(AvatarPrimitive.Image)({
|
|
605
605
|
width: "100%",
|
|
606
606
|
height: "100%",
|
|
607
607
|
resizeMode: "cover"
|
|
608
608
|
});
|
|
609
|
-
var StyledFallback =
|
|
609
|
+
var StyledFallback = styled51(AvatarPrimitive.Fallback)(({ theme: theme2 }) => {
|
|
610
610
|
const { background, text } = theme2.tokens.semantics.colour;
|
|
611
611
|
return {
|
|
612
612
|
display: "flex",
|
|
@@ -618,7 +618,7 @@ var StyledFallback = styled50(AvatarPrimitive.Fallback)(({ theme: theme2 }) => {
|
|
|
618
618
|
color: text.primary
|
|
619
619
|
};
|
|
620
620
|
});
|
|
621
|
-
var StyledIcon =
|
|
621
|
+
var StyledIcon = styled51(Icon)(({
|
|
622
622
|
theme: theme2,
|
|
623
623
|
avatarSize
|
|
624
624
|
}) => {
|
|
@@ -645,7 +645,7 @@ var AVATAR_SIZE_TO_ICON_SIZE = {
|
|
|
645
645
|
md: "md",
|
|
646
646
|
lg: "xl"
|
|
647
647
|
};
|
|
648
|
-
var AvatarRoot =
|
|
648
|
+
var AvatarRoot = React66.forwardRef(
|
|
649
649
|
(_a, ref) => {
|
|
650
650
|
var _b = _a, {
|
|
651
651
|
src,
|
|
@@ -682,7 +682,7 @@ var AvatarRoot = React65.forwardRef(
|
|
|
682
682
|
AvatarRoot.displayName = "Avatar";
|
|
683
683
|
var Avatar = AvatarRoot;
|
|
684
684
|
var parseTokenValue4 = (value) => parseFloat(value);
|
|
685
|
-
var Container =
|
|
685
|
+
var Container = styled51(View)(({ theme: theme2, showBg }) => {
|
|
686
686
|
const { colour, sizing, borderRadius } = theme2.tokens.components.carouselControls.carouselControl;
|
|
687
687
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
688
688
|
return {
|
|
@@ -704,7 +704,7 @@ function getVisibleDots(count, activeIndex) {
|
|
|
704
704
|
const windowStart = Math.min(Math.max(activeIndex - 2, 0), count - 5);
|
|
705
705
|
return Array.from({ length: 5 }, (_, i) => windowStart + i);
|
|
706
706
|
}
|
|
707
|
-
var CarouselControls =
|
|
707
|
+
var CarouselControls = React66.forwardRef(
|
|
708
708
|
(_a, ref) => {
|
|
709
709
|
var _b = _a, { count, activeIndex, showBackground = true } = _b, props = __objRest(_b, ["count", "activeIndex", "showBackground"]);
|
|
710
710
|
const theme2 = useTheme();
|
|
@@ -751,7 +751,7 @@ var CarouselControls = React65.forwardRef(
|
|
|
751
751
|
);
|
|
752
752
|
CarouselControls.displayName = "CarouselControls";
|
|
753
753
|
var parseTokenValue5 = (value) => parseFloat(value);
|
|
754
|
-
var StyledBadge =
|
|
754
|
+
var StyledBadge = styled51(View)(({ theme: theme2, badgeVariant, badgeSize, pinned, top, bottom }) => {
|
|
755
755
|
const { sizing, spacing, colour, primary, pinnedBadge } = theme2.tokens.components.badges.badge;
|
|
756
756
|
const backgroundColorMap = {
|
|
757
757
|
primary: colour.background.default,
|
|
@@ -791,7 +791,7 @@ var StyledBadge = styled50(View)(({ theme: theme2, badgeVariant, badgeSize, pinn
|
|
|
791
791
|
backgroundColor: backgroundColorMap[badgeVariant]
|
|
792
792
|
}, borderRadiusStyles), positionStyles);
|
|
793
793
|
});
|
|
794
|
-
var Badge =
|
|
794
|
+
var Badge = React66.forwardRef(
|
|
795
795
|
(_a, ref) => {
|
|
796
796
|
var _b = _a, {
|
|
797
797
|
variant = "primary",
|
|
@@ -865,8 +865,8 @@ var Badge = React65.forwardRef(
|
|
|
865
865
|
);
|
|
866
866
|
Badge.displayName = "Badge";
|
|
867
867
|
var parseTokenValue6 = (value) => parseFloat(value);
|
|
868
|
-
var StyledSpinner =
|
|
869
|
-
var Spinner =
|
|
868
|
+
var StyledSpinner = styled51(View)({});
|
|
869
|
+
var Spinner = React66.forwardRef(
|
|
870
870
|
(_a, ref) => {
|
|
871
871
|
var _b = _a, { size = "md", variant = "dark", style } = _b, rest = __objRest(_b, ["size", "variant", "style"]);
|
|
872
872
|
const theme2 = useTheme();
|
|
@@ -931,12 +931,12 @@ var sizeToTypographyKey = {
|
|
|
931
931
|
md: "medium",
|
|
932
932
|
sm: "small"
|
|
933
933
|
};
|
|
934
|
-
var IconWrapper =
|
|
934
|
+
var IconWrapper = styled51(View)({
|
|
935
935
|
alignItems: "center",
|
|
936
936
|
justifyContent: "center",
|
|
937
937
|
flexShrink: 0
|
|
938
938
|
});
|
|
939
|
-
var StyledButton =
|
|
939
|
+
var StyledButton = styled51(Pressable)(
|
|
940
940
|
({
|
|
941
941
|
buttonHeight,
|
|
942
942
|
buttonMinWidth,
|
|
@@ -964,16 +964,16 @@ var StyledButton = styled50(Pressable)(
|
|
|
964
964
|
opacity: buttonOpacity
|
|
965
965
|
}, buttonBorderWidth ? { borderWidth: buttonBorderWidth, borderColor: buttonBorderColor } : {}), buttonFullWidth ? { width: "100%" } : {})
|
|
966
966
|
);
|
|
967
|
-
var StyledTextWrapper =
|
|
967
|
+
var StyledTextWrapper = styled51(View)(({ textOpacity }) => ({
|
|
968
968
|
opacity: textOpacity,
|
|
969
969
|
flexShrink: 0
|
|
970
970
|
}));
|
|
971
|
-
var StyledSpinnerWrapper =
|
|
971
|
+
var StyledSpinnerWrapper = styled51(View)({
|
|
972
972
|
position: "absolute",
|
|
973
973
|
alignItems: "center",
|
|
974
974
|
justifyContent: "center"
|
|
975
975
|
});
|
|
976
|
-
var Button =
|
|
976
|
+
var Button = React66.forwardRef(
|
|
977
977
|
(_a, ref) => {
|
|
978
978
|
var _b = _a, {
|
|
979
979
|
variant = "filled",
|
|
@@ -1005,7 +1005,7 @@ var Button = React65.forwardRef(
|
|
|
1005
1005
|
const typographyKey = sizeToTypographyKey[size];
|
|
1006
1006
|
const typography = buttons.text[typographyKey];
|
|
1007
1007
|
resolveFont(typography.fontFamily, typography.fontWeight);
|
|
1008
|
-
const [pressed, setPressed] =
|
|
1008
|
+
const [pressed, setPressed] = React66.useState(false);
|
|
1009
1009
|
const getVariantStyles = (isPressed) => {
|
|
1010
1010
|
if (variant === "filled") {
|
|
1011
1011
|
const bgTokens = buttons.filledButton.colour.background[colour];
|
|
@@ -1089,10 +1089,33 @@ var Button = React65.forwardRef(
|
|
|
1089
1089
|
}
|
|
1090
1090
|
);
|
|
1091
1091
|
Button.displayName = "Button";
|
|
1092
|
+
var parseTokenValue8 = (value) => parseFloat(value);
|
|
1093
|
+
var StyledDivider = styled51(View)(({ theme: theme2, dividerSize, dividerColour }) => {
|
|
1094
|
+
const { colour, sizing } = theme2.tokens.components.dividers;
|
|
1095
|
+
return {
|
|
1096
|
+
width: "100%",
|
|
1097
|
+
height: parseTokenValue8(sizing[dividerSize].height),
|
|
1098
|
+
backgroundColor: colour[dividerColour]
|
|
1099
|
+
};
|
|
1100
|
+
});
|
|
1101
|
+
var Divider = React66.forwardRef(
|
|
1102
|
+
(_a, ref) => {
|
|
1103
|
+
var _b = _a, { size = "small", colour = "light" } = _b, rest = __objRest(_b, ["size", "colour"]);
|
|
1104
|
+
return /* @__PURE__ */ jsx(
|
|
1105
|
+
StyledDivider,
|
|
1106
|
+
__spreadValues({
|
|
1107
|
+
ref,
|
|
1108
|
+
dividerSize: size,
|
|
1109
|
+
dividerColour: colour
|
|
1110
|
+
}, rest)
|
|
1111
|
+
);
|
|
1112
|
+
}
|
|
1113
|
+
);
|
|
1114
|
+
Divider.displayName = "Divider";
|
|
1092
1115
|
|
|
1093
1116
|
// src/utils/token.ts
|
|
1094
|
-
var
|
|
1095
|
-
var StyledHint =
|
|
1117
|
+
var parseTokenValue9 = (value) => parseFloat(value);
|
|
1118
|
+
var StyledHint = styled51(View)(({
|
|
1096
1119
|
theme: theme2,
|
|
1097
1120
|
hintVariant
|
|
1098
1121
|
}) => {
|
|
@@ -1108,7 +1131,7 @@ var StyledHint = styled50(View)(({
|
|
|
1108
1131
|
warning: background.warning,
|
|
1109
1132
|
error: background.error
|
|
1110
1133
|
};
|
|
1111
|
-
const size =
|
|
1134
|
+
const size = parseTokenValue9(badge.hint.sizing.default);
|
|
1112
1135
|
return {
|
|
1113
1136
|
width: size,
|
|
1114
1137
|
height: size,
|
|
@@ -1116,20 +1139,20 @@ var StyledHint = styled50(View)(({
|
|
|
1116
1139
|
backgroundColor: hintVariantMap[hintVariant]
|
|
1117
1140
|
};
|
|
1118
1141
|
});
|
|
1119
|
-
var Hint =
|
|
1142
|
+
var Hint = React66.forwardRef(
|
|
1120
1143
|
(_a, ref) => {
|
|
1121
1144
|
var _b = _a, { variant = "default" } = _b, rest = __objRest(_b, ["variant"]);
|
|
1122
1145
|
return /* @__PURE__ */ jsx(StyledHint, __spreadValues({ ref, hintVariant: variant }, rest));
|
|
1123
1146
|
}
|
|
1124
1147
|
);
|
|
1125
1148
|
Hint.displayName = "Hint";
|
|
1126
|
-
var
|
|
1149
|
+
var parseTokenValue10 = (value) => parseFloat(value);
|
|
1127
1150
|
var sizeToIconSizeToken = {
|
|
1128
1151
|
lg: "xl",
|
|
1129
1152
|
md: "lg",
|
|
1130
1153
|
sm: "md"
|
|
1131
1154
|
};
|
|
1132
|
-
var StyledIconButton =
|
|
1155
|
+
var StyledIconButton = styled51(Pressable)(
|
|
1133
1156
|
({
|
|
1134
1157
|
buttonDimension,
|
|
1135
1158
|
buttonBorderRadius,
|
|
@@ -1148,17 +1171,17 @@ var StyledIconButton = styled50(Pressable)(
|
|
|
1148
1171
|
opacity: buttonOpacity
|
|
1149
1172
|
}, buttonBorderWidth ? { borderWidth: buttonBorderWidth, borderColor: buttonBorderColor } : {})
|
|
1150
1173
|
);
|
|
1151
|
-
var StyledIconWrapper =
|
|
1174
|
+
var StyledIconWrapper = styled51(View)(({ iconDimension, iconOpacity }) => ({
|
|
1152
1175
|
width: iconDimension,
|
|
1153
1176
|
height: iconDimension,
|
|
1154
1177
|
opacity: iconOpacity
|
|
1155
1178
|
}));
|
|
1156
|
-
var StyledSpinnerWrapper2 =
|
|
1179
|
+
var StyledSpinnerWrapper2 = styled51(View)({
|
|
1157
1180
|
position: "absolute",
|
|
1158
1181
|
alignItems: "center",
|
|
1159
1182
|
justifyContent: "center"
|
|
1160
1183
|
});
|
|
1161
|
-
var IconButton =
|
|
1184
|
+
var IconButton = React66.forwardRef(
|
|
1162
1185
|
(_a, ref) => {
|
|
1163
1186
|
var _b = _a, {
|
|
1164
1187
|
icon: IconComponent,
|
|
@@ -1181,10 +1204,10 @@ var IconButton = React65.forwardRef(
|
|
|
1181
1204
|
const isDisabled = disabled || loading;
|
|
1182
1205
|
const buttons = theme2.tokens.components.buttons;
|
|
1183
1206
|
const sizeTokens = buttons.size[size];
|
|
1184
|
-
const dimension =
|
|
1207
|
+
const dimension = parseTokenValue10(sizeTokens.height);
|
|
1185
1208
|
const iconSizing = theme2.tokens.components.icons.sizing.icons.core;
|
|
1186
|
-
const iconDimension =
|
|
1187
|
-
const [pressed, setPressed] =
|
|
1209
|
+
const iconDimension = parseTokenValue10(iconSizing[sizeToIconSizeToken[size]]);
|
|
1210
|
+
const [pressed, setPressed] = React66.useState(false);
|
|
1188
1211
|
const getVariantStyles = (isPressed) => {
|
|
1189
1212
|
if (variant === "filled") {
|
|
1190
1213
|
const filled = buttons.iconButton.filledButton;
|
|
@@ -1200,7 +1223,7 @@ var IconButton = React65.forwardRef(
|
|
|
1200
1223
|
const outline = buttons.iconButton.outlineButton;
|
|
1201
1224
|
return {
|
|
1202
1225
|
backgroundColor: loading || isPressed ? outline.colour.background.selected : "transparent",
|
|
1203
|
-
borderWidth:
|
|
1226
|
+
borderWidth: parseTokenValue10(outline.border.default),
|
|
1204
1227
|
borderColor: outline.colour.border.default,
|
|
1205
1228
|
iconColor: loading || isPressed ? outline.colour.icon.selected : outline.colour.icon.default
|
|
1206
1229
|
};
|
|
@@ -1222,7 +1245,7 @@ var IconButton = React65.forwardRef(
|
|
|
1222
1245
|
onPressIn: () => setPressed(true),
|
|
1223
1246
|
onPressOut: () => setPressed(false),
|
|
1224
1247
|
buttonDimension: dimension,
|
|
1225
|
-
buttonBorderRadius:
|
|
1248
|
+
buttonBorderRadius: parseTokenValue10(buttons.borderRadius.default),
|
|
1226
1249
|
buttonBgColor: variantStyles.backgroundColor,
|
|
1227
1250
|
buttonOpacity: isDisabled && !loading ? parseFloat(buttons.opacity.disabled) : 1,
|
|
1228
1251
|
buttonBorderWidth: variantStyles.borderWidth,
|
|
@@ -1260,14 +1283,14 @@ var IconButton = React65.forwardRef(
|
|
|
1260
1283
|
}
|
|
1261
1284
|
);
|
|
1262
1285
|
IconButton.displayName = "IconButton";
|
|
1263
|
-
var
|
|
1264
|
-
var StyledRoot2 =
|
|
1286
|
+
var parseTokenValue11 = (value) => parseFloat(value);
|
|
1287
|
+
var StyledRoot2 = styled51(View)(({ illustrationHeight }) => ({
|
|
1265
1288
|
alignItems: "center",
|
|
1266
1289
|
justifyContent: "center",
|
|
1267
1290
|
flexShrink: 0,
|
|
1268
1291
|
height: illustrationHeight
|
|
1269
1292
|
}));
|
|
1270
|
-
var Illustration =
|
|
1293
|
+
var Illustration = React66.forwardRef(
|
|
1271
1294
|
(_a, ref) => {
|
|
1272
1295
|
var _b = _a, {
|
|
1273
1296
|
illustration: IllustrationComponent,
|
|
@@ -1279,7 +1302,7 @@ var Illustration = React65.forwardRef(
|
|
|
1279
1302
|
"aria-label"
|
|
1280
1303
|
]);
|
|
1281
1304
|
const theme2 = useTheme();
|
|
1282
|
-
const dimension =
|
|
1305
|
+
const dimension = parseTokenValue11(
|
|
1283
1306
|
theme2.tokens.components.illustrations.sizing.illustrations[size]
|
|
1284
1307
|
);
|
|
1285
1308
|
return /* @__PURE__ */ jsx(
|
|
@@ -1297,13 +1320,13 @@ var Illustration = React65.forwardRef(
|
|
|
1297
1320
|
}
|
|
1298
1321
|
);
|
|
1299
1322
|
Illustration.displayName = "Illustration";
|
|
1300
|
-
var
|
|
1301
|
-
var StyledLabelRow =
|
|
1323
|
+
var parseTokenValue12 = (value) => parseFloat(value);
|
|
1324
|
+
var StyledLabelRow = styled51(View)(({ labelGap }) => ({
|
|
1302
1325
|
flexDirection: "row",
|
|
1303
1326
|
alignItems: "center",
|
|
1304
1327
|
gap: labelGap
|
|
1305
1328
|
}));
|
|
1306
|
-
var InputLabel =
|
|
1329
|
+
var InputLabel = React66.forwardRef(
|
|
1307
1330
|
(_a, ref) => {
|
|
1308
1331
|
var _b = _a, { optionalText, state = "default", children } = _b, rest = __objRest(_b, ["optionalText", "state", "children"]);
|
|
1309
1332
|
const theme2 = useTheme();
|
|
@@ -1312,7 +1335,7 @@ var InputLabel = React65.forwardRef(
|
|
|
1312
1335
|
StyledLabelRow,
|
|
1313
1336
|
__spreadProps(__spreadValues({
|
|
1314
1337
|
ref,
|
|
1315
|
-
labelGap:
|
|
1338
|
+
labelGap: parseTokenValue12(spacing.label.gap)
|
|
1316
1339
|
}, rest), {
|
|
1317
1340
|
children: [
|
|
1318
1341
|
/* @__PURE__ */ jsx(
|
|
@@ -1330,22 +1353,22 @@ var InputLabel = React65.forwardRef(
|
|
|
1330
1353
|
}
|
|
1331
1354
|
);
|
|
1332
1355
|
InputLabel.displayName = "Input.Label";
|
|
1333
|
-
var
|
|
1334
|
-
var StyledInputWrapper =
|
|
1356
|
+
var parseTokenValue13 = (value) => parseFloat(value);
|
|
1357
|
+
var StyledInputWrapper = styled51(Animated.View)(({ theme: theme2, isDisabled, containerWidth, containerHeight }) => {
|
|
1335
1358
|
const { spacing, colour, borderRadius, size } = theme2.tokens.components.inputs;
|
|
1336
1359
|
return {
|
|
1337
1360
|
flexDirection: "row",
|
|
1338
1361
|
alignItems: "center",
|
|
1339
|
-
gap:
|
|
1340
|
-
minWidth: containerWidth !== void 0 ? void 0 :
|
|
1362
|
+
gap: parseTokenValue13(spacing.field.gap),
|
|
1363
|
+
minWidth: containerWidth !== void 0 ? void 0 : parseTokenValue13(size.field.minWidth),
|
|
1341
1364
|
width: containerWidth !== void 0 ? containerWidth : "100%",
|
|
1342
|
-
height: containerHeight !== void 0 ? containerHeight :
|
|
1365
|
+
height: containerHeight !== void 0 ? containerHeight : parseTokenValue13(size.field.height),
|
|
1343
1366
|
backgroundColor: isDisabled ? colour.field.background.inactive : colour.field.background.default,
|
|
1344
|
-
borderRadius:
|
|
1367
|
+
borderRadius: parseTokenValue13(borderRadius.field.default),
|
|
1345
1368
|
flexShrink: containerWidth !== void 0 ? 0 : void 0
|
|
1346
1369
|
};
|
|
1347
1370
|
});
|
|
1348
|
-
var StyledInput =
|
|
1371
|
+
var StyledInput = styled51(TextInput)(({
|
|
1349
1372
|
theme: theme2,
|
|
1350
1373
|
hasInlineHelp
|
|
1351
1374
|
}) => {
|
|
@@ -1356,7 +1379,7 @@ var StyledInput = styled50(TextInput)(({
|
|
|
1356
1379
|
typography.fontFamily,
|
|
1357
1380
|
typography.fontWeight
|
|
1358
1381
|
);
|
|
1359
|
-
const fontSize =
|
|
1382
|
+
const fontSize = parseTokenValue13(typography.fontSize);
|
|
1360
1383
|
const letterSpacing = ((_a = typography.letterSpacing) == null ? void 0 : _a.endsWith("%")) ? parseFloat(typography.letterSpacing) / 100 * fontSize : parseFloat((_b = typography.letterSpacing) != null ? _b : "0");
|
|
1361
1384
|
return __spreadValues(__spreadValues({
|
|
1362
1385
|
flex: 1,
|
|
@@ -1373,16 +1396,16 @@ var StyledInput = styled50(TextInput)(({
|
|
|
1373
1396
|
outlineColor: "transparent"
|
|
1374
1397
|
});
|
|
1375
1398
|
});
|
|
1376
|
-
var StyledFocusRing =
|
|
1399
|
+
var StyledFocusRing = styled51(View)({
|
|
1377
1400
|
position: "absolute",
|
|
1378
1401
|
pointerEvents: "none"
|
|
1379
1402
|
});
|
|
1380
|
-
var StyledIconSlot =
|
|
1403
|
+
var StyledIconSlot = styled51(View)({
|
|
1381
1404
|
alignItems: "center",
|
|
1382
1405
|
justifyContent: "center",
|
|
1383
1406
|
flexShrink: 0
|
|
1384
1407
|
});
|
|
1385
|
-
var InputField =
|
|
1408
|
+
var InputField = React66.forwardRef(
|
|
1386
1409
|
(_a, ref) => {
|
|
1387
1410
|
var _b = _a, {
|
|
1388
1411
|
leadingIcon,
|
|
@@ -1429,12 +1452,12 @@ var InputField = React65.forwardRef(
|
|
|
1429
1452
|
);
|
|
1430
1453
|
const isDisabled = editable === false;
|
|
1431
1454
|
const hasState = state === "error" || state === "success";
|
|
1432
|
-
const baseBorderWidth =
|
|
1433
|
-
const selectedBorderWidth =
|
|
1434
|
-
const focusBorderWidth =
|
|
1435
|
-
const fieldBorderRadius =
|
|
1436
|
-
const baseVerticalPadding =
|
|
1437
|
-
const baseHorizontalPadding =
|
|
1455
|
+
const baseBorderWidth = parseTokenValue13(borderWidth.field.default);
|
|
1456
|
+
const selectedBorderWidth = parseTokenValue13(borderWidth.field.selected);
|
|
1457
|
+
const focusBorderWidth = parseTokenValue13(borderWidth.field.focus);
|
|
1458
|
+
const fieldBorderRadius = parseTokenValue13(borderRadius.field.default);
|
|
1459
|
+
const baseVerticalPadding = parseTokenValue13(spacing.field.verticalPadding);
|
|
1460
|
+
const baseHorizontalPadding = parseTokenValue13(
|
|
1438
1461
|
spacing.field.horizontalPadding
|
|
1439
1462
|
);
|
|
1440
1463
|
const borderDelta = selectedBorderWidth - baseBorderWidth;
|
|
@@ -1541,7 +1564,7 @@ var InputField = React65.forwardRef(
|
|
|
1541
1564
|
}
|
|
1542
1565
|
);
|
|
1543
1566
|
InputField.displayName = "Input.Field";
|
|
1544
|
-
var InputText =
|
|
1567
|
+
var InputText = React66.forwardRef(
|
|
1545
1568
|
(_a, ref) => {
|
|
1546
1569
|
var _b = _a, { placeholderTextColor } = _b, rest = __objRest(_b, ["placeholderTextColor"]);
|
|
1547
1570
|
const theme2 = useTheme();
|
|
@@ -1556,11 +1579,11 @@ var InputText = React65.forwardRef(
|
|
|
1556
1579
|
}
|
|
1557
1580
|
);
|
|
1558
1581
|
InputText.displayName = "Input.Text";
|
|
1559
|
-
var StyledDescriptionRow =
|
|
1582
|
+
var StyledDescriptionRow = styled51(View)({
|
|
1560
1583
|
flexDirection: "row",
|
|
1561
1584
|
alignItems: "center"
|
|
1562
1585
|
});
|
|
1563
|
-
var InputDescription =
|
|
1586
|
+
var InputDescription = React66.forwardRef(
|
|
1564
1587
|
(_a, ref) => {
|
|
1565
1588
|
var _b = _a, { state = "default", children } = _b, rest = __objRest(_b, ["state", "children"]);
|
|
1566
1589
|
const theme2 = useTheme();
|
|
@@ -1576,11 +1599,11 @@ var InputDescription = React65.forwardRef(
|
|
|
1576
1599
|
}
|
|
1577
1600
|
);
|
|
1578
1601
|
InputDescription.displayName = "Input.Description";
|
|
1579
|
-
var StyledErrorRow =
|
|
1602
|
+
var StyledErrorRow = styled51(View)({
|
|
1580
1603
|
flexDirection: "row",
|
|
1581
1604
|
alignItems: "center"
|
|
1582
1605
|
});
|
|
1583
|
-
var InputError =
|
|
1606
|
+
var InputError = React66.forwardRef(
|
|
1584
1607
|
(_a, ref) => {
|
|
1585
1608
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
1586
1609
|
const theme2 = useTheme();
|
|
@@ -1596,14 +1619,14 @@ var InputError = React65.forwardRef(
|
|
|
1596
1619
|
}
|
|
1597
1620
|
);
|
|
1598
1621
|
InputError.displayName = "Input.Error";
|
|
1599
|
-
var
|
|
1600
|
-
var StyledRoot3 =
|
|
1622
|
+
var parseTokenValue14 = (value) => parseFloat(value);
|
|
1623
|
+
var StyledRoot3 = styled51(View)(({ theme: theme2 }) => {
|
|
1601
1624
|
const { spacing } = theme2.tokens.components.inputs;
|
|
1602
1625
|
return {
|
|
1603
|
-
gap:
|
|
1626
|
+
gap: parseTokenValue14(spacing.gap)
|
|
1604
1627
|
};
|
|
1605
1628
|
});
|
|
1606
|
-
var InputRoot =
|
|
1629
|
+
var InputRoot = React66.forwardRef(
|
|
1607
1630
|
(_a, ref) => {
|
|
1608
1631
|
var _b = _a, {
|
|
1609
1632
|
label,
|
|
@@ -1647,7 +1670,7 @@ var Input = Object.assign(InputRoot, {
|
|
|
1647
1670
|
Description: InputDescription,
|
|
1648
1671
|
Error: InputError
|
|
1649
1672
|
});
|
|
1650
|
-
var Link =
|
|
1673
|
+
var Link = React66.forwardRef(
|
|
1651
1674
|
(_a, ref) => {
|
|
1652
1675
|
var _b = _a, {
|
|
1653
1676
|
size = "md",
|
|
@@ -4240,12 +4263,12 @@ function registerLogo(brand, variant, component) {
|
|
|
4240
4263
|
}
|
|
4241
4264
|
LOGOS[brand][variant] = component;
|
|
4242
4265
|
}
|
|
4243
|
-
var StyledRoot4 =
|
|
4266
|
+
var StyledRoot4 = styled51(View)({
|
|
4244
4267
|
alignItems: "center",
|
|
4245
4268
|
justifyContent: "center",
|
|
4246
4269
|
flexShrink: 0
|
|
4247
4270
|
});
|
|
4248
|
-
var Logo =
|
|
4271
|
+
var Logo = React66.forwardRef(
|
|
4249
4272
|
(_a, ref) => {
|
|
4250
4273
|
var _b = _a, { brand, variant = "primary", "aria-label": ariaLabel } = _b, rest = __objRest(_b, ["brand", "variant", "aria-label"]);
|
|
4251
4274
|
const effectiveVariant = brand === "bcorp" ? "primary" : variant;
|
|
@@ -4267,28 +4290,28 @@ var Logo = React65.forwardRef(
|
|
|
4267
4290
|
}
|
|
4268
4291
|
);
|
|
4269
4292
|
Logo.displayName = "Logo";
|
|
4270
|
-
var
|
|
4271
|
-
var StyledFieldGroup =
|
|
4293
|
+
var parseTokenValue15 = (value) => parseFloat(value);
|
|
4294
|
+
var StyledFieldGroup = styled51(View)(({ theme: theme2 }) => {
|
|
4272
4295
|
const { spacing } = theme2.tokens.components.inputs;
|
|
4273
4296
|
return {
|
|
4274
4297
|
flexDirection: "row",
|
|
4275
4298
|
alignItems: "center",
|
|
4276
|
-
gap:
|
|
4299
|
+
gap: parseTokenValue15(spacing.field.gap)
|
|
4277
4300
|
};
|
|
4278
4301
|
});
|
|
4279
|
-
var StyledFieldTextWrapper =
|
|
4302
|
+
var StyledFieldTextWrapper = styled51(View)({
|
|
4280
4303
|
flexShrink: 0,
|
|
4281
4304
|
justifyContent: "center"
|
|
4282
4305
|
});
|
|
4283
|
-
var StyledInputContainer =
|
|
4306
|
+
var StyledInputContainer = styled51(View)(({ hasInlineHelp }) => ({
|
|
4284
4307
|
flexDirection: "column",
|
|
4285
4308
|
gap: hasInlineHelp ? 2 : 0
|
|
4286
4309
|
}));
|
|
4287
|
-
var NumberInputField =
|
|
4310
|
+
var NumberInputField = React66.forwardRef((_a, ref) => {
|
|
4288
4311
|
var _b = _a, { fieldText, inlineHelpText } = _b, props = __objRest(_b, ["fieldText", "inlineHelpText"]);
|
|
4289
4312
|
const theme2 = useTheme();
|
|
4290
4313
|
const { colour, description } = theme2.tokens.components.inputs;
|
|
4291
|
-
const fieldSize =
|
|
4314
|
+
const fieldSize = parseTokenValue15(
|
|
4292
4315
|
theme2.tokens.components.numberField.size.large.height
|
|
4293
4316
|
);
|
|
4294
4317
|
const inputElement = /* @__PURE__ */ jsx(
|
|
@@ -4374,14 +4397,14 @@ var NumberInputField = React65.forwardRef((_a, ref) => {
|
|
|
4374
4397
|
return fieldContent;
|
|
4375
4398
|
});
|
|
4376
4399
|
NumberInputField.displayName = "NumberInput.Field";
|
|
4377
|
-
var
|
|
4378
|
-
var StyledRoot5 =
|
|
4400
|
+
var parseTokenValue16 = (value) => parseFloat(value);
|
|
4401
|
+
var StyledRoot5 = styled51(View)(({ theme: theme2 }) => {
|
|
4379
4402
|
const { spacing } = theme2.tokens.components.inputs;
|
|
4380
4403
|
return {
|
|
4381
|
-
gap:
|
|
4404
|
+
gap: parseTokenValue16(spacing.gap)
|
|
4382
4405
|
};
|
|
4383
4406
|
});
|
|
4384
|
-
var NumberInputRoot =
|
|
4407
|
+
var NumberInputRoot = React66.forwardRef(
|
|
4385
4408
|
(_a, ref) => {
|
|
4386
4409
|
var _b = _a, {
|
|
4387
4410
|
label,
|
|
@@ -4431,14 +4454,14 @@ var NumberInput = Object.assign(NumberInputRoot, {
|
|
|
4431
4454
|
Description: InputDescription,
|
|
4432
4455
|
Error: InputError
|
|
4433
4456
|
});
|
|
4434
|
-
var
|
|
4435
|
-
var StyledContainer =
|
|
4457
|
+
var parseTokenValue17 = (value) => parseFloat(value);
|
|
4458
|
+
var StyledContainer = styled51(View)(({ switchGap, switchOpacity }) => ({
|
|
4436
4459
|
flexDirection: "row",
|
|
4437
4460
|
alignItems: "flex-start",
|
|
4438
4461
|
gap: switchGap,
|
|
4439
4462
|
opacity: switchOpacity
|
|
4440
4463
|
}));
|
|
4441
|
-
var StyledControlTrack =
|
|
4464
|
+
var StyledControlTrack = styled51(View)(
|
|
4442
4465
|
({
|
|
4443
4466
|
switchChecked,
|
|
4444
4467
|
controlWidth,
|
|
@@ -4464,19 +4487,19 @@ var StyledControlTrack = styled50(View)(
|
|
|
4464
4487
|
justifyContent: "center"
|
|
4465
4488
|
})
|
|
4466
4489
|
);
|
|
4467
|
-
var StyledThumb =
|
|
4490
|
+
var StyledThumb = styled51(Animated.View)(({ thumbSize, thumbBgColor }) => ({
|
|
4468
4491
|
width: thumbSize,
|
|
4469
4492
|
height: thumbSize,
|
|
4470
4493
|
borderRadius: thumbSize / 2,
|
|
4471
4494
|
backgroundColor: thumbBgColor,
|
|
4472
4495
|
position: "absolute"
|
|
4473
4496
|
}));
|
|
4474
|
-
var StyledContent =
|
|
4497
|
+
var StyledContent = styled51(View)(({ contentGap }) => ({
|
|
4475
4498
|
gap: contentGap,
|
|
4476
4499
|
flex: 1,
|
|
4477
4500
|
minWidth: 0
|
|
4478
4501
|
}));
|
|
4479
|
-
var Switch =
|
|
4502
|
+
var Switch = React66.forwardRef(
|
|
4480
4503
|
(_a, ref) => {
|
|
4481
4504
|
var _b = _a, {
|
|
4482
4505
|
label,
|
|
@@ -4496,12 +4519,12 @@ var Switch = React65.forwardRef(
|
|
|
4496
4519
|
const theme2 = useTheme();
|
|
4497
4520
|
const { size, colour, opacity, borderWidth, spacing, typography } = theme2.tokens.components.switch;
|
|
4498
4521
|
const isControlled = controlledChecked !== void 0;
|
|
4499
|
-
const [internalChecked, setInternalChecked] =
|
|
4522
|
+
const [internalChecked, setInternalChecked] = React66.useState(defaultChecked);
|
|
4500
4523
|
const isChecked = isControlled ? controlledChecked : internalChecked;
|
|
4501
|
-
const controlWidth =
|
|
4502
|
-
const controlHeight =
|
|
4503
|
-
const thumbSize =
|
|
4504
|
-
const borderWidthValue =
|
|
4524
|
+
const controlWidth = parseTokenValue17(size.control.width);
|
|
4525
|
+
const controlHeight = parseTokenValue17(size.control.height);
|
|
4526
|
+
const thumbSize = parseTokenValue17(size.thumb.default);
|
|
4527
|
+
const borderWidthValue = parseTokenValue17(borderWidth.control.default);
|
|
4505
4528
|
const inset = 2;
|
|
4506
4529
|
const offTranslateX = inset;
|
|
4507
4530
|
const onTranslateX = controlWidth - borderWidthValue * 2 - thumbSize - inset;
|
|
@@ -4527,7 +4550,7 @@ var Switch = React65.forwardRef(
|
|
|
4527
4550
|
StyledContainer,
|
|
4528
4551
|
__spreadProps(__spreadValues({
|
|
4529
4552
|
ref,
|
|
4530
|
-
switchGap:
|
|
4553
|
+
switchGap: parseTokenValue17(spacing.gap),
|
|
4531
4554
|
switchOpacity: disabled ? parseFloat(opacity.disabled) : 1
|
|
4532
4555
|
}, rest), {
|
|
4533
4556
|
children: [
|
|
@@ -4561,7 +4584,7 @@ var Switch = React65.forwardRef(
|
|
|
4561
4584
|
)
|
|
4562
4585
|
}
|
|
4563
4586
|
),
|
|
4564
|
-
(label || subText) && /* @__PURE__ */ jsxs(StyledContent, { contentGap:
|
|
4587
|
+
(label || subText) && /* @__PURE__ */ jsxs(StyledContent, { contentGap: parseTokenValue17(spacing.content.gap), children: [
|
|
4565
4588
|
label && /* @__PURE__ */ jsx(Typography, { token: typography.label, color: colour.text.title, children: label }),
|
|
4566
4589
|
subText && /* @__PURE__ */ jsx(
|
|
4567
4590
|
Typography,
|
|
@@ -4578,8 +4601,8 @@ var Switch = React65.forwardRef(
|
|
|
4578
4601
|
}
|
|
4579
4602
|
);
|
|
4580
4603
|
Switch.displayName = "Switch";
|
|
4581
|
-
var
|
|
4582
|
-
var StyledTag =
|
|
4604
|
+
var parseTokenValue18 = (value) => parseFloat(value);
|
|
4605
|
+
var StyledTag = styled51(View)(({ theme: theme2, tagVariant, tagSize }) => {
|
|
4583
4606
|
const { sizing, spacing, colour, badge } = theme2.tokens.components.tags;
|
|
4584
4607
|
const backgroundColorMap = {
|
|
4585
4608
|
primary: colour.primary.background,
|
|
@@ -4594,15 +4617,15 @@ var StyledTag = styled50(View)(({ theme: theme2, tagVariant, tagSize }) => {
|
|
|
4594
4617
|
flexDirection: "row",
|
|
4595
4618
|
alignItems: "center",
|
|
4596
4619
|
justifyContent: "center",
|
|
4597
|
-
height:
|
|
4598
|
-
minWidth:
|
|
4599
|
-
paddingHorizontal:
|
|
4600
|
-
gap:
|
|
4601
|
-
borderRadius:
|
|
4620
|
+
height: parseTokenValue18(sizing[tagSize].height),
|
|
4621
|
+
minWidth: parseTokenValue18(sizing[tagSize].minWidth),
|
|
4622
|
+
paddingHorizontal: parseTokenValue18(spacing.horizontalPadding),
|
|
4623
|
+
gap: parseTokenValue18(spacing[tagSize].gap),
|
|
4624
|
+
borderRadius: parseTokenValue18(badge.borderRadius.default),
|
|
4602
4625
|
backgroundColor: backgroundColorMap[tagVariant]
|
|
4603
4626
|
};
|
|
4604
4627
|
});
|
|
4605
|
-
var Tag =
|
|
4628
|
+
var Tag = React66.forwardRef(
|
|
4606
4629
|
(_a, ref) => {
|
|
4607
4630
|
var _b = _a, { variant = "primary", size = "medium", icon, children } = _b, rest = __objRest(_b, ["variant", "size", "icon", "children"]);
|
|
4608
4631
|
const theme2 = useTheme();
|
|
@@ -4651,22 +4674,22 @@ var Tag = React65.forwardRef(
|
|
|
4651
4674
|
}
|
|
4652
4675
|
);
|
|
4653
4676
|
Tag.displayName = "Tag";
|
|
4654
|
-
var
|
|
4655
|
-
var StyledTextAreaWrapper =
|
|
4677
|
+
var parseTokenValue19 = (value) => parseFloat(value);
|
|
4678
|
+
var StyledTextAreaWrapper = styled51(Animated.View)(({ theme: theme2, isDisabled }) => {
|
|
4656
4679
|
const { spacing, colour, borderRadius, size } = theme2.tokens.components.inputs;
|
|
4657
4680
|
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
4658
4681
|
return {
|
|
4659
4682
|
flexDirection: "column",
|
|
4660
|
-
gap:
|
|
4683
|
+
gap: parseTokenValue19(spacing.field.gap),
|
|
4661
4684
|
width: "100%",
|
|
4662
|
-
minWidth:
|
|
4663
|
-
minHeight:
|
|
4685
|
+
minWidth: parseTokenValue19(size.field.minWidth),
|
|
4686
|
+
minHeight: parseTokenValue19(dimensions3.sizing["3xl"]),
|
|
4664
4687
|
backgroundColor: isDisabled ? colour.field.background.inactive : colour.field.background.default,
|
|
4665
|
-
borderRadius:
|
|
4688
|
+
borderRadius: parseTokenValue19(borderRadius.field.default),
|
|
4666
4689
|
position: "relative"
|
|
4667
4690
|
};
|
|
4668
4691
|
});
|
|
4669
|
-
var StyledTextArea =
|
|
4692
|
+
var StyledTextArea = styled51(TextInput)(({ theme: theme2 }) => {
|
|
4670
4693
|
const { colour } = theme2.tokens.components.inputs;
|
|
4671
4694
|
return __spreadValues({
|
|
4672
4695
|
flex: 1,
|
|
@@ -4681,17 +4704,17 @@ var StyledTextArea = styled50(TextInput)(({ theme: theme2 }) => {
|
|
|
4681
4704
|
outlineColor: "transparent"
|
|
4682
4705
|
});
|
|
4683
4706
|
});
|
|
4684
|
-
var StyledFocusRing2 =
|
|
4707
|
+
var StyledFocusRing2 = styled51(View)({
|
|
4685
4708
|
position: "absolute",
|
|
4686
4709
|
pointerEvents: "none"
|
|
4687
4710
|
});
|
|
4688
|
-
var TextAreaContainer =
|
|
4711
|
+
var TextAreaContainer = styled51(View)({
|
|
4689
4712
|
position: "relative",
|
|
4690
4713
|
width: "100%",
|
|
4691
4714
|
flex: 1,
|
|
4692
4715
|
flexDirection: "column"
|
|
4693
4716
|
});
|
|
4694
|
-
var IconWrapper2 =
|
|
4717
|
+
var IconWrapper2 = styled51(View)(({ side }) => {
|
|
4695
4718
|
return {
|
|
4696
4719
|
position: "absolute",
|
|
4697
4720
|
top: 0,
|
|
@@ -4702,7 +4725,7 @@ var IconWrapper2 = styled50(View)(({ side }) => {
|
|
|
4702
4725
|
zIndex: 1
|
|
4703
4726
|
};
|
|
4704
4727
|
});
|
|
4705
|
-
var TextAreaField =
|
|
4728
|
+
var TextAreaField = React66.forwardRef(
|
|
4706
4729
|
(_a, ref) => {
|
|
4707
4730
|
var _b = _a, {
|
|
4708
4731
|
leadingIcon,
|
|
@@ -4744,12 +4767,12 @@ var TextAreaField = React65.forwardRef(
|
|
|
4744
4767
|
);
|
|
4745
4768
|
const isDisabled = editable === false;
|
|
4746
4769
|
const hasState = state === "error" || state === "success";
|
|
4747
|
-
const baseBorderWidth =
|
|
4748
|
-
const selectedBorderWidth =
|
|
4749
|
-
const focusBorderWidth =
|
|
4750
|
-
const fieldBorderRadius =
|
|
4751
|
-
const baseVerticalPadding =
|
|
4752
|
-
const baseHorizontalPadding =
|
|
4770
|
+
const baseBorderWidth = parseTokenValue19(borderWidth.field.default);
|
|
4771
|
+
const selectedBorderWidth = parseTokenValue19(borderWidth.field.selected);
|
|
4772
|
+
const focusBorderWidth = parseTokenValue19(borderWidth.field.focus);
|
|
4773
|
+
const fieldBorderRadius = parseTokenValue19(borderRadius.field.default);
|
|
4774
|
+
const baseVerticalPadding = parseTokenValue19(spacing.field.verticalPadding);
|
|
4775
|
+
const baseHorizontalPadding = parseTokenValue19(
|
|
4753
4776
|
spacing.field.horizontalPadding
|
|
4754
4777
|
);
|
|
4755
4778
|
const borderDelta = selectedBorderWidth - baseBorderWidth;
|
|
@@ -4805,11 +4828,11 @@ var TextAreaField = React65.forwardRef(
|
|
|
4805
4828
|
var _a2;
|
|
4806
4829
|
(_a2 = internalInputRef.current) == null ? void 0 : _a2.focus();
|
|
4807
4830
|
};
|
|
4808
|
-
const fieldHeight =
|
|
4831
|
+
const fieldHeight = parseTokenValue19(size.field.height);
|
|
4809
4832
|
const textAreaMinHeight = fieldHeight;
|
|
4810
|
-
const iconGap =
|
|
4811
|
-
const leadingIconSize =
|
|
4812
|
-
const trailingIconSize =
|
|
4833
|
+
const iconGap = parseTokenValue19(spacing.field.gap);
|
|
4834
|
+
const leadingIconSize = parseTokenValue19(dimensions3.sizing.xl);
|
|
4835
|
+
const trailingIconSize = parseTokenValue19(dimensions3.sizing.md);
|
|
4813
4836
|
const leadingIconPadding = leadingIconSize + iconGap;
|
|
4814
4837
|
const trailingIconPadding = trailingIconSize + iconGap;
|
|
4815
4838
|
return /* @__PURE__ */ jsx(Pressable, { onPress: handleWrapperPress, children: /* @__PURE__ */ jsxs(
|
|
@@ -4877,25 +4900,25 @@ var TextAreaField = React65.forwardRef(
|
|
|
4877
4900
|
}
|
|
4878
4901
|
);
|
|
4879
4902
|
TextAreaField.displayName = "TextArea.Field";
|
|
4880
|
-
var
|
|
4881
|
-
var StyledLabelWrapper =
|
|
4903
|
+
var parseTokenValue20 = (value) => parseFloat(value);
|
|
4904
|
+
var StyledLabelWrapper = styled51(View)({
|
|
4882
4905
|
flexDirection: "row",
|
|
4883
4906
|
alignItems: "center",
|
|
4884
4907
|
justifyContent: "space-between",
|
|
4885
4908
|
width: "100%"
|
|
4886
4909
|
});
|
|
4887
|
-
var StyledLabel =
|
|
4910
|
+
var StyledLabel = styled51(View)(({ labelGap }) => ({
|
|
4888
4911
|
flexDirection: "row",
|
|
4889
4912
|
alignItems: "center",
|
|
4890
4913
|
gap: labelGap
|
|
4891
4914
|
}));
|
|
4892
|
-
var StyledCharCountWrapper =
|
|
4915
|
+
var StyledCharCountWrapper = styled51(View)(({ charCountGap, charCountPadding }) => ({
|
|
4893
4916
|
flexDirection: "row",
|
|
4894
4917
|
alignItems: "center",
|
|
4895
4918
|
gap: charCountGap,
|
|
4896
4919
|
paddingLeft: charCountPadding
|
|
4897
4920
|
}));
|
|
4898
|
-
var TextAreaLabel =
|
|
4921
|
+
var TextAreaLabel = React66.forwardRef(
|
|
4899
4922
|
(_a, ref) => {
|
|
4900
4923
|
var _b = _a, {
|
|
4901
4924
|
optionalText,
|
|
@@ -4915,7 +4938,7 @@ var TextAreaLabel = React65.forwardRef(
|
|
|
4915
4938
|
const showCharacterCount = maxLength !== void 0 && currentLength !== void 0;
|
|
4916
4939
|
const isOverLimit = currentLength !== void 0 && maxLength !== void 0 && currentLength > maxLength;
|
|
4917
4940
|
return /* @__PURE__ */ jsxs(StyledLabelWrapper, __spreadProps(__spreadValues({ ref }, rest), { children: [
|
|
4918
|
-
/* @__PURE__ */ jsxs(StyledLabel, { labelGap:
|
|
4941
|
+
/* @__PURE__ */ jsxs(StyledLabel, { labelGap: parseTokenValue20(spacing.label.gap), children: [
|
|
4919
4942
|
/* @__PURE__ */ jsx(
|
|
4920
4943
|
Typography,
|
|
4921
4944
|
{
|
|
@@ -4929,8 +4952,8 @@ var TextAreaLabel = React65.forwardRef(
|
|
|
4929
4952
|
showCharacterCount && /* @__PURE__ */ jsxs(
|
|
4930
4953
|
StyledCharCountWrapper,
|
|
4931
4954
|
{
|
|
4932
|
-
charCountGap:
|
|
4933
|
-
charCountPadding:
|
|
4955
|
+
charCountGap: parseTokenValue20(spacing.field.gap),
|
|
4956
|
+
charCountPadding: parseTokenValue20(spacing.description.leftPadding),
|
|
4934
4957
|
children: [
|
|
4935
4958
|
isOverLimit && /* @__PURE__ */ jsx(Icon, { icon: Error_default, size: "sm", colour: "error" }),
|
|
4936
4959
|
/* @__PURE__ */ jsxs(
|
|
@@ -4952,14 +4975,14 @@ var TextAreaLabel = React65.forwardRef(
|
|
|
4952
4975
|
}
|
|
4953
4976
|
);
|
|
4954
4977
|
TextAreaLabel.displayName = "TextArea.Label";
|
|
4955
|
-
var
|
|
4956
|
-
var StyledRoot6 =
|
|
4978
|
+
var parseTokenValue21 = (value) => parseFloat(value);
|
|
4979
|
+
var StyledRoot6 = styled51(View)(({ theme: theme2 }) => {
|
|
4957
4980
|
const { spacing } = theme2.tokens.components.inputs;
|
|
4958
4981
|
return {
|
|
4959
|
-
gap:
|
|
4982
|
+
gap: parseTokenValue21(spacing.gap)
|
|
4960
4983
|
};
|
|
4961
4984
|
});
|
|
4962
|
-
var TextAreaRoot =
|
|
4985
|
+
var TextAreaRoot = React66.forwardRef(
|
|
4963
4986
|
(_a, ref) => {
|
|
4964
4987
|
var _b = _a, {
|
|
4965
4988
|
label,
|
|
@@ -4986,8 +5009,8 @@ var TextAreaRoot = React65.forwardRef(
|
|
|
4986
5009
|
"defaultValue",
|
|
4987
5010
|
"onChangeText"
|
|
4988
5011
|
]);
|
|
4989
|
-
const [charCount, setCharCount] =
|
|
4990
|
-
|
|
5012
|
+
const [charCount, setCharCount] = React66.useState(0);
|
|
5013
|
+
React66.useEffect(() => {
|
|
4991
5014
|
if (value !== void 0) {
|
|
4992
5015
|
setCharCount(String(value).length);
|
|
4993
5016
|
} else if (defaultValue !== void 0) {
|
|
@@ -5040,38 +5063,38 @@ var TextArea = Object.assign(TextAreaRoot, {
|
|
|
5040
5063
|
Description: InputDescription,
|
|
5041
5064
|
Error: InputError
|
|
5042
5065
|
});
|
|
5043
|
-
var AccordionContext =
|
|
5066
|
+
var AccordionContext = React66.createContext({
|
|
5044
5067
|
openValues: [],
|
|
5045
5068
|
toggle: () => {
|
|
5046
5069
|
},
|
|
5047
5070
|
disabled: false,
|
|
5048
5071
|
size: "small"
|
|
5049
5072
|
});
|
|
5050
|
-
var
|
|
5051
|
-
var StyledRoot7 =
|
|
5073
|
+
var parseTokenValue22 = (value) => parseFloat(value);
|
|
5074
|
+
var StyledRoot7 = styled51(View)(({ rootGap }) => ({
|
|
5052
5075
|
width: "100%",
|
|
5053
5076
|
flexDirection: "column",
|
|
5054
5077
|
gap: rootGap
|
|
5055
5078
|
}));
|
|
5056
|
-
var StyledItem =
|
|
5079
|
+
var StyledItem = styled51(View)({
|
|
5057
5080
|
flexDirection: "column"
|
|
5058
5081
|
});
|
|
5059
|
-
var StyledTrigger =
|
|
5082
|
+
var StyledTrigger = styled51(Pressable)(({ triggerOpacity }) => ({
|
|
5060
5083
|
flexDirection: "row",
|
|
5061
5084
|
alignItems: "center",
|
|
5062
5085
|
justifyContent: "space-between",
|
|
5063
5086
|
width: "100%",
|
|
5064
5087
|
opacity: triggerOpacity
|
|
5065
5088
|
}));
|
|
5066
|
-
var StyledPanel =
|
|
5089
|
+
var StyledPanel = styled51(View)(({ panelGap }) => ({
|
|
5067
5090
|
marginTop: panelGap
|
|
5068
5091
|
}));
|
|
5069
|
-
var
|
|
5092
|
+
var StyledDivider2 = styled51(View)(({ dividerColor, dividerMarginTop }) => ({
|
|
5070
5093
|
height: 1,
|
|
5071
5094
|
backgroundColor: dividerColor,
|
|
5072
5095
|
marginTop: dividerMarginTop
|
|
5073
5096
|
}));
|
|
5074
|
-
var AccordionItem =
|
|
5097
|
+
var AccordionItem = React66.forwardRef(
|
|
5075
5098
|
(_a, ref) => {
|
|
5076
5099
|
var _b = _a, { title, children, value, disabled: itemDisabled } = _b, rest = __objRest(_b, ["title", "children", "value", "disabled"]);
|
|
5077
5100
|
const theme2 = useTheme();
|
|
@@ -5081,7 +5104,7 @@ var AccordionItem = React65.forwardRef(
|
|
|
5081
5104
|
toggle,
|
|
5082
5105
|
disabled: rootDisabled,
|
|
5083
5106
|
size
|
|
5084
|
-
} =
|
|
5107
|
+
} = React66.useContext(AccordionContext);
|
|
5085
5108
|
const itemValue = value != null ? value : title;
|
|
5086
5109
|
const isOpen = openValues.includes(itemValue);
|
|
5087
5110
|
const isDisabled = itemDisabled || rootDisabled;
|
|
@@ -5120,7 +5143,7 @@ var AccordionItem = React65.forwardRef(
|
|
|
5120
5143
|
isOpen && /* @__PURE__ */ jsx(
|
|
5121
5144
|
StyledPanel,
|
|
5122
5145
|
{
|
|
5123
|
-
panelGap:
|
|
5146
|
+
panelGap: parseTokenValue22(accordion.spacing.content.gap),
|
|
5124
5147
|
children: /* @__PURE__ */ jsx(
|
|
5125
5148
|
Typography,
|
|
5126
5149
|
{
|
|
@@ -5132,17 +5155,17 @@ var AccordionItem = React65.forwardRef(
|
|
|
5132
5155
|
}
|
|
5133
5156
|
),
|
|
5134
5157
|
/* @__PURE__ */ jsx(
|
|
5135
|
-
|
|
5158
|
+
StyledDivider2,
|
|
5136
5159
|
{
|
|
5137
5160
|
dividerColor: theme2.tokens.semantics.colour.border.default,
|
|
5138
|
-
dividerMarginTop:
|
|
5161
|
+
dividerMarginTop: parseTokenValue22(accordion.spacing.gap)
|
|
5139
5162
|
}
|
|
5140
5163
|
)
|
|
5141
5164
|
] }));
|
|
5142
5165
|
}
|
|
5143
5166
|
);
|
|
5144
5167
|
AccordionItem.displayName = "Accordion.Item";
|
|
5145
|
-
var AccordionRoot =
|
|
5168
|
+
var AccordionRoot = React66.forwardRef(
|
|
5146
5169
|
(_a, ref) => {
|
|
5147
5170
|
var _b = _a, {
|
|
5148
5171
|
children,
|
|
@@ -5164,11 +5187,11 @@ var AccordionRoot = React65.forwardRef(
|
|
|
5164
5187
|
const theme2 = useTheme();
|
|
5165
5188
|
const { accordion } = theme2.tokens.components;
|
|
5166
5189
|
const isControlled = controlledValue !== void 0;
|
|
5167
|
-
const [internalValue, setInternalValue] =
|
|
5190
|
+
const [internalValue, setInternalValue] = React66.useState(
|
|
5168
5191
|
defaultValue != null ? defaultValue : []
|
|
5169
5192
|
);
|
|
5170
5193
|
const openValues = isControlled ? controlledValue : internalValue;
|
|
5171
|
-
const toggle =
|
|
5194
|
+
const toggle = React66.useCallback(
|
|
5172
5195
|
(itemValue) => {
|
|
5173
5196
|
const isOpen = openValues.includes(itemValue);
|
|
5174
5197
|
let next;
|
|
@@ -5186,7 +5209,7 @@ var AccordionRoot = React65.forwardRef(
|
|
|
5186
5209
|
},
|
|
5187
5210
|
[openValues, multiple, isControlled, onValueChange]
|
|
5188
5211
|
);
|
|
5189
|
-
const ctx =
|
|
5212
|
+
const ctx = React66.useMemo(
|
|
5190
5213
|
() => ({ openValues, toggle, disabled, size }),
|
|
5191
5214
|
[openValues, toggle, disabled, size]
|
|
5192
5215
|
);
|
|
@@ -5194,7 +5217,7 @@ var AccordionRoot = React65.forwardRef(
|
|
|
5194
5217
|
StyledRoot7,
|
|
5195
5218
|
__spreadProps(__spreadValues({
|
|
5196
5219
|
ref,
|
|
5197
|
-
rootGap:
|
|
5220
|
+
rootGap: parseTokenValue22(accordion.spacing.gap)
|
|
5198
5221
|
}, rest), {
|
|
5199
5222
|
children
|
|
5200
5223
|
})
|
|
@@ -5316,7 +5339,7 @@ function buildDelayedEntering(variant, delayMs) {
|
|
|
5316
5339
|
b.delay(delayMs);
|
|
5317
5340
|
return b;
|
|
5318
5341
|
}
|
|
5319
|
-
var Animated5 =
|
|
5342
|
+
var Animated5 = React66.forwardRef(
|
|
5320
5343
|
(_a, ref) => {
|
|
5321
5344
|
var _b = _a, { variant = "fade", delay, exit = true, children } = _b, props = __objRest(_b, ["variant", "delay", "exit", "children"]);
|
|
5322
5345
|
const delayMs = delay !== void 0 && delay > 0 ? Math.round(delay * 1e3) : 0;
|
|
@@ -5334,7 +5357,7 @@ var Animated5 = React65.forwardRef(
|
|
|
5334
5357
|
}
|
|
5335
5358
|
);
|
|
5336
5359
|
Animated5.displayName = "Animated";
|
|
5337
|
-
var DrawerContext =
|
|
5360
|
+
var DrawerContext = React66.createContext({
|
|
5338
5361
|
isOpen: false,
|
|
5339
5362
|
modalVisible: false,
|
|
5340
5363
|
openDrawer: () => {
|
|
@@ -5344,9 +5367,9 @@ var DrawerContext = React65.createContext({
|
|
|
5344
5367
|
onExitComplete: () => {
|
|
5345
5368
|
}
|
|
5346
5369
|
});
|
|
5347
|
-
var useDrawerContext = () =>
|
|
5370
|
+
var useDrawerContext = () => React66.useContext(DrawerContext);
|
|
5348
5371
|
var FADE_DURATION = 220;
|
|
5349
|
-
var DrawerOverlay =
|
|
5372
|
+
var DrawerOverlay = React66.forwardRef(({ accessible = false }, _ref) => {
|
|
5350
5373
|
const theme2 = useTheme();
|
|
5351
5374
|
const { isOpen, closeDrawer } = useDrawerContext();
|
|
5352
5375
|
const opacity = useRef(new Animated.Value(0)).current;
|
|
@@ -5380,19 +5403,19 @@ var DrawerOverlay = React65.forwardRef(({ accessible = false }, _ref) => {
|
|
|
5380
5403
|
);
|
|
5381
5404
|
});
|
|
5382
5405
|
DrawerOverlay.displayName = "Drawer.Overlay";
|
|
5383
|
-
var DrawerDragContext =
|
|
5384
|
-
var useDrawerDragContext = () =>
|
|
5406
|
+
var DrawerDragContext = React66.createContext(null);
|
|
5407
|
+
var useDrawerDragContext = () => React66.useContext(DrawerDragContext);
|
|
5385
5408
|
var DrawerMeasureContext = createContext(null);
|
|
5386
5409
|
var useDrawerMeasureContext = () => useContext(DrawerMeasureContext);
|
|
5387
|
-
var DrawerFooterContext =
|
|
5388
|
-
var useDrawerFooterContext = () =>
|
|
5389
|
-
var DrawerHeaderContext =
|
|
5390
|
-
var useDrawerHeaderContext = () =>
|
|
5410
|
+
var DrawerFooterContext = React66.createContext(false);
|
|
5411
|
+
var useDrawerFooterContext = () => React66.useContext(DrawerFooterContext);
|
|
5412
|
+
var DrawerHeaderContext = React66.createContext(null);
|
|
5413
|
+
var useDrawerHeaderContext = () => React66.useContext(DrawerHeaderContext);
|
|
5391
5414
|
var OPEN_DURATION = 320;
|
|
5392
5415
|
var CLOSE_DURATION = 220;
|
|
5393
5416
|
var DISMISS_THRESHOLD = 80;
|
|
5394
|
-
var
|
|
5395
|
-
var StyledPanel2 =
|
|
5417
|
+
var parseTokenValue23 = (value) => parseFloat(value);
|
|
5418
|
+
var StyledPanel2 = styled51(View)(
|
|
5396
5419
|
({
|
|
5397
5420
|
panelBorderRadius,
|
|
5398
5421
|
panelBgColor,
|
|
@@ -5423,7 +5446,7 @@ var StyledPanel2 = styled50(View)(
|
|
|
5423
5446
|
overflow: "hidden"
|
|
5424
5447
|
})
|
|
5425
5448
|
);
|
|
5426
|
-
var DrawerContent =
|
|
5449
|
+
var DrawerContent = React66.forwardRef(
|
|
5427
5450
|
(_a, ref) => {
|
|
5428
5451
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
5429
5452
|
var _a2;
|
|
@@ -5618,11 +5641,11 @@ var DrawerContent = React65.forwardRef(
|
|
|
5618
5641
|
() => ({ panHandlers: panResponder.panHandlers }),
|
|
5619
5642
|
[panResponder.panHandlers]
|
|
5620
5643
|
);
|
|
5621
|
-
const hasFooter =
|
|
5622
|
-
(child) =>
|
|
5644
|
+
const hasFooter = React66.Children.toArray(children).some(
|
|
5645
|
+
(child) => React66.isValidElement(child) && child.type.displayName === "Drawer.Footer"
|
|
5623
5646
|
);
|
|
5624
|
-
const headerChild =
|
|
5625
|
-
(child) =>
|
|
5647
|
+
const headerChild = React66.Children.toArray(children).find(
|
|
5648
|
+
(child) => React66.isValidElement(child) && child.type.displayName === "Drawer.Header"
|
|
5626
5649
|
);
|
|
5627
5650
|
const headerContextValue = headerChild != null ? {
|
|
5628
5651
|
variant: (_a2 = headerChild.props.variant) != null ? _a2 : "titleAndText"
|
|
@@ -5640,15 +5663,15 @@ var DrawerContent = React65.forwardRef(
|
|
|
5640
5663
|
__spreadProps(__spreadValues({
|
|
5641
5664
|
ref,
|
|
5642
5665
|
onLayout,
|
|
5643
|
-
panelBorderRadius:
|
|
5666
|
+
panelBorderRadius: parseTokenValue23(drawer.borderRadius.top),
|
|
5644
5667
|
panelBgColor: colour.background.container.default,
|
|
5645
|
-
panelMaxWidth:
|
|
5668
|
+
panelMaxWidth: parseTokenValue23(drawer.size.maxWidth),
|
|
5646
5669
|
panelFlex: panelHeight > 0 ? 1 : void 0,
|
|
5647
|
-
panelBorderWidth:
|
|
5670
|
+
panelBorderWidth: parseTokenValue23(dimensions3.borderWidth.sm),
|
|
5648
5671
|
panelBorderColor: colour.border.default,
|
|
5649
5672
|
panelShadowColor: modal.shadow.color,
|
|
5650
|
-
panelShadowOffsetY:
|
|
5651
|
-
panelShadowBlur:
|
|
5673
|
+
panelShadowOffsetY: parseTokenValue23(modal.shadow.offsetY),
|
|
5674
|
+
panelShadowBlur: parseTokenValue23(modal.shadow.blur),
|
|
5652
5675
|
accessible: true,
|
|
5653
5676
|
accessibilityRole: "none",
|
|
5654
5677
|
accessibilityViewIsModal: true
|
|
@@ -5669,8 +5692,8 @@ var styles = StyleSheet.create({
|
|
|
5669
5692
|
right: 0
|
|
5670
5693
|
}
|
|
5671
5694
|
});
|
|
5672
|
-
var
|
|
5673
|
-
var StyledWrapper =
|
|
5695
|
+
var parseTokenValue24 = (value) => parseFloat(value);
|
|
5696
|
+
var StyledWrapper = styled51(View)(
|
|
5674
5697
|
({ grabberPaddingTop }) => ({
|
|
5675
5698
|
alignItems: "center",
|
|
5676
5699
|
justifyContent: "center",
|
|
@@ -5679,13 +5702,13 @@ var StyledWrapper = styled50(View)(
|
|
|
5679
5702
|
paddingBottom: grabberPaddingTop
|
|
5680
5703
|
})
|
|
5681
5704
|
);
|
|
5682
|
-
var StyledBar =
|
|
5705
|
+
var StyledBar = styled51(View)(({ barWidth, barHeight, barBorderRadius, barColor }) => ({
|
|
5683
5706
|
width: barWidth,
|
|
5684
5707
|
height: barHeight,
|
|
5685
5708
|
borderRadius: barBorderRadius,
|
|
5686
5709
|
backgroundColor: barColor
|
|
5687
5710
|
}));
|
|
5688
|
-
var DrawerGrabber =
|
|
5711
|
+
var DrawerGrabber = React66.forwardRef(
|
|
5689
5712
|
(props, ref) => {
|
|
5690
5713
|
var _a;
|
|
5691
5714
|
const theme2 = useTheme();
|
|
@@ -5696,14 +5719,14 @@ var DrawerGrabber = React65.forwardRef(
|
|
|
5696
5719
|
StyledWrapper,
|
|
5697
5720
|
__spreadProps(__spreadValues(__spreadValues({
|
|
5698
5721
|
ref,
|
|
5699
|
-
grabberPaddingTop:
|
|
5722
|
+
grabberPaddingTop: parseTokenValue24(drawer.spacing.grabber.paddingTop)
|
|
5700
5723
|
}, (_a = dragContext == null ? void 0 : dragContext.panHandlers) != null ? _a : {}), props), {
|
|
5701
5724
|
children: /* @__PURE__ */ jsx(
|
|
5702
5725
|
StyledBar,
|
|
5703
5726
|
{
|
|
5704
|
-
barWidth:
|
|
5705
|
-
barHeight:
|
|
5706
|
-
barBorderRadius:
|
|
5727
|
+
barWidth: parseTokenValue24(grabber.size.bar.width),
|
|
5728
|
+
barHeight: parseTokenValue24(grabber.size.bar.height),
|
|
5729
|
+
barBorderRadius: parseTokenValue24(borderRadius.round),
|
|
5707
5730
|
barColor: grabber.colour.background.default
|
|
5708
5731
|
}
|
|
5709
5732
|
)
|
|
@@ -5712,8 +5735,8 @@ var DrawerGrabber = React65.forwardRef(
|
|
|
5712
5735
|
}
|
|
5713
5736
|
);
|
|
5714
5737
|
DrawerGrabber.displayName = "Drawer.Grabber";
|
|
5715
|
-
var
|
|
5716
|
-
var DrawerClose =
|
|
5738
|
+
var parseTokenValue25 = (value) => parseFloat(value);
|
|
5739
|
+
var DrawerClose = React66.forwardRef(
|
|
5717
5740
|
(_a, ref) => {
|
|
5718
5741
|
var _b = _a, { "aria-label": ariaLabel = "Close" } = _b, props = __objRest(_b, ["aria-label"]);
|
|
5719
5742
|
const theme2 = useTheme();
|
|
@@ -5740,8 +5763,8 @@ var DrawerClose = React65.forwardRef(
|
|
|
5740
5763
|
style: [
|
|
5741
5764
|
styles2.floating,
|
|
5742
5765
|
{
|
|
5743
|
-
top:
|
|
5744
|
-
right:
|
|
5766
|
+
top: parseTokenValue25(spacing.close.top.md),
|
|
5767
|
+
right: parseTokenValue25(spacing.close.right.md)
|
|
5745
5768
|
}
|
|
5746
5769
|
]
|
|
5747
5770
|
}, props), {
|
|
@@ -5759,8 +5782,8 @@ var styles2 = StyleSheet.create({
|
|
|
5759
5782
|
zIndex: 1
|
|
5760
5783
|
}
|
|
5761
5784
|
});
|
|
5762
|
-
var
|
|
5763
|
-
var StyledGrabberWrapper =
|
|
5785
|
+
var parseTokenValue26 = (value) => parseFloat(value);
|
|
5786
|
+
var StyledGrabberWrapper = styled51(View)(
|
|
5764
5787
|
({ grabberPaddingTop }) => ({
|
|
5765
5788
|
alignItems: "center",
|
|
5766
5789
|
justifyContent: "center",
|
|
@@ -5768,13 +5791,13 @@ var StyledGrabberWrapper = styled50(View)(
|
|
|
5768
5791
|
paddingTop: grabberPaddingTop
|
|
5769
5792
|
})
|
|
5770
5793
|
);
|
|
5771
|
-
var StyledGrabberBar =
|
|
5794
|
+
var StyledGrabberBar = styled51(View)(({ barWidth, barHeight, barBorderRadius, barColor }) => ({
|
|
5772
5795
|
width: barWidth,
|
|
5773
5796
|
height: barHeight,
|
|
5774
5797
|
borderRadius: barBorderRadius,
|
|
5775
5798
|
backgroundColor: barColor
|
|
5776
5799
|
}));
|
|
5777
|
-
var StyledHeader =
|
|
5800
|
+
var StyledHeader = styled51(View)(
|
|
5778
5801
|
({
|
|
5779
5802
|
headerPaddingHorizontal,
|
|
5780
5803
|
headerPaddingBottom,
|
|
@@ -5794,7 +5817,7 @@ var StyledHeader = styled50(View)(
|
|
|
5794
5817
|
borderBottomColor: headerBorderColor
|
|
5795
5818
|
} : {}), headerBgColor ? { backgroundColor: headerBgColor } : {})
|
|
5796
5819
|
);
|
|
5797
|
-
var StyledImageContainer =
|
|
5820
|
+
var StyledImageContainer = styled51(View)(({ imageHeight, imageBorderRadius }) => ({
|
|
5798
5821
|
position: "relative",
|
|
5799
5822
|
width: "100%",
|
|
5800
5823
|
height: imageHeight,
|
|
@@ -5802,20 +5825,20 @@ var StyledImageContainer = styled50(View)(({ imageHeight, imageBorderRadius }) =
|
|
|
5802
5825
|
overflow: "hidden",
|
|
5803
5826
|
flexShrink: 0
|
|
5804
5827
|
}));
|
|
5805
|
-
var StyledImageCloseWrapper =
|
|
5828
|
+
var StyledImageCloseWrapper = styled51(View)(({ closeTop, closeRight }) => ({
|
|
5806
5829
|
position: "absolute",
|
|
5807
5830
|
top: closeTop,
|
|
5808
5831
|
right: closeRight,
|
|
5809
5832
|
zIndex: 1
|
|
5810
5833
|
}));
|
|
5811
|
-
var StyledTitleRow =
|
|
5834
|
+
var StyledTitleRow = styled51(View)(({ rowGap }) => ({
|
|
5812
5835
|
flexDirection: "row",
|
|
5813
5836
|
gap: rowGap,
|
|
5814
5837
|
alignItems: "flex-start",
|
|
5815
5838
|
width: "100%",
|
|
5816
5839
|
flexShrink: 0
|
|
5817
5840
|
}));
|
|
5818
|
-
var StyledTitleContent =
|
|
5841
|
+
var StyledTitleContent = styled51(View)(
|
|
5819
5842
|
({ contentGap }) => ({
|
|
5820
5843
|
flexDirection: "column",
|
|
5821
5844
|
gap: contentGap,
|
|
@@ -5826,8 +5849,8 @@ var StyledTitleContent = styled50(View)(
|
|
|
5826
5849
|
function splitChildren(children) {
|
|
5827
5850
|
let closeChild = null;
|
|
5828
5851
|
const otherChildren = [];
|
|
5829
|
-
|
|
5830
|
-
if (
|
|
5852
|
+
React66.Children.forEach(children, (child) => {
|
|
5853
|
+
if (React66.isValidElement(child) && child.type === DrawerClose) {
|
|
5831
5854
|
closeChild = child;
|
|
5832
5855
|
} else {
|
|
5833
5856
|
otherChildren.push(child);
|
|
@@ -5835,7 +5858,7 @@ function splitChildren(children) {
|
|
|
5835
5858
|
});
|
|
5836
5859
|
return { closeChild, otherChildren };
|
|
5837
5860
|
}
|
|
5838
|
-
var DrawerHeader =
|
|
5861
|
+
var DrawerHeader = React66.forwardRef(
|
|
5839
5862
|
(_a, ref) => {
|
|
5840
5863
|
var _b = _a, { variant = "titleAndText", imageSource, children } = _b, props = __objRest(_b, ["variant", "imageSource", "children"]);
|
|
5841
5864
|
var _a2, _b2, _c, _d, _e, _f;
|
|
@@ -5851,8 +5874,8 @@ var DrawerHeader = React65.forwardRef(
|
|
|
5851
5874
|
content = /* @__PURE__ */ jsxs(
|
|
5852
5875
|
StyledImageContainer,
|
|
5853
5876
|
{
|
|
5854
|
-
imageHeight:
|
|
5855
|
-
imageBorderRadius:
|
|
5877
|
+
imageHeight: parseTokenValue26(drawer.size.imageHeader.image.maxHeight),
|
|
5878
|
+
imageBorderRadius: parseTokenValue26(
|
|
5856
5879
|
drawer.drawerHeader.borderRadius.image.default
|
|
5857
5880
|
),
|
|
5858
5881
|
children: [
|
|
@@ -5867,8 +5890,8 @@ var DrawerHeader = React65.forwardRef(
|
|
|
5867
5890
|
closeChild && /* @__PURE__ */ jsx(
|
|
5868
5891
|
StyledImageCloseWrapper,
|
|
5869
5892
|
{
|
|
5870
|
-
closeTop:
|
|
5871
|
-
closeRight:
|
|
5893
|
+
closeTop: parseTokenValue26(drawer.spacing.close.top.md),
|
|
5894
|
+
closeRight: parseTokenValue26(drawer.spacing.close.right.md),
|
|
5872
5895
|
children: closeChild
|
|
5873
5896
|
}
|
|
5874
5897
|
)
|
|
@@ -5878,8 +5901,8 @@ var DrawerHeader = React65.forwardRef(
|
|
|
5878
5901
|
} else {
|
|
5879
5902
|
const containerGap = (_b2 = (_a2 = headerSpacing.container) == null ? void 0 : _a2.gap) != null ? _b2 : "0";
|
|
5880
5903
|
const contentGap = (_e = (_d = (_c = headerSpacing.container) == null ? void 0 : _c.content) == null ? void 0 : _d.gap) != null ? _e : "0";
|
|
5881
|
-
content = /* @__PURE__ */ jsxs(StyledTitleRow, { rowGap:
|
|
5882
|
-
/* @__PURE__ */ jsx(StyledTitleContent, { contentGap:
|
|
5904
|
+
content = /* @__PURE__ */ jsxs(StyledTitleRow, { rowGap: parseTokenValue26(containerGap), children: [
|
|
5905
|
+
/* @__PURE__ */ jsx(StyledTitleContent, { contentGap: parseTokenValue26(contentGap), children: otherChildren }),
|
|
5883
5906
|
closeChild
|
|
5884
5907
|
] });
|
|
5885
5908
|
}
|
|
@@ -5887,12 +5910,12 @@ var DrawerHeader = React65.forwardRef(
|
|
|
5887
5910
|
StyledHeader,
|
|
5888
5911
|
__spreadProps(__spreadValues({
|
|
5889
5912
|
ref,
|
|
5890
|
-
headerPaddingHorizontal:
|
|
5913
|
+
headerPaddingHorizontal: parseTokenValue26(
|
|
5891
5914
|
headerSpacing.horizontalPadding
|
|
5892
5915
|
),
|
|
5893
|
-
headerPaddingBottom:
|
|
5894
|
-
headerGap:
|
|
5895
|
-
headerBorderBottomWidth: variant === "titleAndText" ?
|
|
5916
|
+
headerPaddingBottom: parseTokenValue26(headerSpacing.bottomPadding),
|
|
5917
|
+
headerGap: parseTokenValue26(headerSpacing.gap),
|
|
5918
|
+
headerBorderBottomWidth: variant === "titleAndText" ? parseTokenValue26(dimensions3.borderWidth.sm) : void 0,
|
|
5896
5919
|
headerBorderColor: variant === "titleAndText" ? colour.border.default : void 0,
|
|
5897
5920
|
headerBgColor: variant === "fullBleed" ? drawer.drawerHeader.colour.background.fullBleed : void 0
|
|
5898
5921
|
}, props), {
|
|
@@ -5900,16 +5923,16 @@ var DrawerHeader = React65.forwardRef(
|
|
|
5900
5923
|
/* @__PURE__ */ jsx(
|
|
5901
5924
|
StyledGrabberWrapper,
|
|
5902
5925
|
__spreadProps(__spreadValues({
|
|
5903
|
-
grabberPaddingTop:
|
|
5926
|
+
grabberPaddingTop: parseTokenValue26(
|
|
5904
5927
|
drawer.spacing.grabber.paddingTop
|
|
5905
5928
|
)
|
|
5906
5929
|
}, (_f = dragContext == null ? void 0 : dragContext.panHandlers) != null ? _f : {}), {
|
|
5907
5930
|
children: /* @__PURE__ */ jsx(
|
|
5908
5931
|
StyledGrabberBar,
|
|
5909
5932
|
{
|
|
5910
|
-
barWidth:
|
|
5911
|
-
barHeight:
|
|
5912
|
-
barBorderRadius:
|
|
5933
|
+
barWidth: parseTokenValue26(grabber.size.bar.width),
|
|
5934
|
+
barHeight: parseTokenValue26(grabber.size.bar.height),
|
|
5935
|
+
barBorderRadius: parseTokenValue26(dimensions3.borderRadius.round),
|
|
5913
5936
|
barColor: grabber.colour.background.default
|
|
5914
5937
|
}
|
|
5915
5938
|
)
|
|
@@ -5922,7 +5945,7 @@ var DrawerHeader = React65.forwardRef(
|
|
|
5922
5945
|
}
|
|
5923
5946
|
);
|
|
5924
5947
|
DrawerHeader.displayName = "Drawer.Header";
|
|
5925
|
-
var DrawerTitle =
|
|
5948
|
+
var DrawerTitle = React66.forwardRef(
|
|
5926
5949
|
(_a, ref) => {
|
|
5927
5950
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
5928
5951
|
const theme2 = useTheme();
|
|
@@ -5938,7 +5961,7 @@ var DrawerTitle = React65.forwardRef(
|
|
|
5938
5961
|
}
|
|
5939
5962
|
);
|
|
5940
5963
|
DrawerTitle.displayName = "Drawer.Title";
|
|
5941
|
-
var DrawerDescription =
|
|
5964
|
+
var DrawerDescription = React66.forwardRef(
|
|
5942
5965
|
(_a, ref) => {
|
|
5943
5966
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
5944
5967
|
const theme2 = useTheme();
|
|
@@ -5954,8 +5977,8 @@ var DrawerDescription = React65.forwardRef(
|
|
|
5954
5977
|
}
|
|
5955
5978
|
);
|
|
5956
5979
|
DrawerDescription.displayName = "Drawer.Description";
|
|
5957
|
-
var
|
|
5958
|
-
var StyledScrollView =
|
|
5980
|
+
var parseTokenValue27 = (value) => parseFloat(value);
|
|
5981
|
+
var StyledScrollView = styled51(ScrollView)(
|
|
5959
5982
|
({
|
|
5960
5983
|
bodyPaddingHorizontal,
|
|
5961
5984
|
bodyPaddingRight,
|
|
@@ -5971,7 +5994,7 @@ var StyledScrollView = styled50(ScrollView)(
|
|
|
5971
5994
|
paddingBottom: bodyPaddingBottom
|
|
5972
5995
|
})
|
|
5973
5996
|
);
|
|
5974
|
-
var DrawerBody =
|
|
5997
|
+
var DrawerBody = React66.forwardRef(
|
|
5975
5998
|
(_a, ref) => {
|
|
5976
5999
|
var _b = _a, { children, contentContainerStyle, onContentSizeChange } = _b, props = __objRest(_b, ["children", "contentContainerStyle", "onContentSizeChange"]);
|
|
5977
6000
|
const theme2 = useTheme();
|
|
@@ -5989,12 +6012,12 @@ var DrawerBody = React65.forwardRef(
|
|
|
5989
6012
|
},
|
|
5990
6013
|
[measureContext, onContentSizeChange]
|
|
5991
6014
|
);
|
|
5992
|
-
const gap =
|
|
5993
|
-
const horizontalPadding =
|
|
5994
|
-
const topPadding =
|
|
6015
|
+
const gap = parseTokenValue27(content.slot.gap);
|
|
6016
|
+
const horizontalPadding = parseTokenValue27(content.slot.horizontalPadding);
|
|
6017
|
+
const topPadding = parseTokenValue27(content.slot.verticalPadding);
|
|
5995
6018
|
const bodyMaxHeight = windowHeight - 300;
|
|
5996
|
-
const paddingRight = headerContext === null ?
|
|
5997
|
-
const bodyPaddingBottom = !footerContext ?
|
|
6019
|
+
const paddingRight = headerContext === null ? parseTokenValue27(spacing.close.right.md) + parseTokenValue27(buttons.size.sm.height) : horizontalPadding;
|
|
6020
|
+
const bodyPaddingBottom = !footerContext ? parseTokenValue27(theme2.tokens.semantics.dimensions.spacing["2xl"]) : 0;
|
|
5998
6021
|
return /* @__PURE__ */ jsx(
|
|
5999
6022
|
StyledScrollView,
|
|
6000
6023
|
__spreadProps(__spreadValues({
|
|
@@ -6020,14 +6043,14 @@ var DrawerBody = React65.forwardRef(
|
|
|
6020
6043
|
}
|
|
6021
6044
|
);
|
|
6022
6045
|
DrawerBody.displayName = "Drawer.Body";
|
|
6023
|
-
var
|
|
6024
|
-
var StyledFooter =
|
|
6046
|
+
var parseTokenValue28 = (value) => parseFloat(value);
|
|
6047
|
+
var StyledFooter = styled51(View)(({ footerPaddingTop, footerPaddingHorizontal, footerPaddingBottom }) => ({
|
|
6025
6048
|
flexShrink: 0,
|
|
6026
6049
|
paddingTop: footerPaddingTop,
|
|
6027
6050
|
paddingHorizontal: footerPaddingHorizontal,
|
|
6028
6051
|
paddingBottom: footerPaddingBottom
|
|
6029
6052
|
}));
|
|
6030
|
-
var DrawerFooter =
|
|
6053
|
+
var DrawerFooter = React66.forwardRef(
|
|
6031
6054
|
(_a, ref) => {
|
|
6032
6055
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
6033
6056
|
const theme2 = useTheme();
|
|
@@ -6037,11 +6060,11 @@ var DrawerFooter = React65.forwardRef(
|
|
|
6037
6060
|
StyledFooter,
|
|
6038
6061
|
__spreadProps(__spreadValues({
|
|
6039
6062
|
ref,
|
|
6040
|
-
footerPaddingTop:
|
|
6041
|
-
footerPaddingHorizontal:
|
|
6063
|
+
footerPaddingTop: parseTokenValue28(spacing.footer.topPaddding),
|
|
6064
|
+
footerPaddingHorizontal: parseTokenValue28(
|
|
6042
6065
|
spacing.footer.horizontalPadding
|
|
6043
6066
|
),
|
|
6044
|
-
footerPaddingBottom:
|
|
6067
|
+
footerPaddingBottom: parseTokenValue28(spacing.bottomPadding) + insets.bottom
|
|
6045
6068
|
}, props), {
|
|
6046
6069
|
children
|
|
6047
6070
|
})
|
|
@@ -6049,7 +6072,7 @@ var DrawerFooter = React65.forwardRef(
|
|
|
6049
6072
|
}
|
|
6050
6073
|
);
|
|
6051
6074
|
DrawerFooter.displayName = "Drawer.Footer";
|
|
6052
|
-
var DrawerRoot =
|
|
6075
|
+
var DrawerRoot = React66.forwardRef(
|
|
6053
6076
|
(_a, ref) => {
|
|
6054
6077
|
var _b = _a, {
|
|
6055
6078
|
open: controlledOpen,
|
|
@@ -6090,15 +6113,15 @@ var DrawerRoot = React65.forwardRef(
|
|
|
6090
6113
|
}
|
|
6091
6114
|
);
|
|
6092
6115
|
DrawerRoot.displayName = "Drawer";
|
|
6093
|
-
var DrawerTrigger =
|
|
6116
|
+
var DrawerTrigger = React66.forwardRef(
|
|
6094
6117
|
({ children }, ref) => {
|
|
6095
|
-
const { openDrawer } =
|
|
6118
|
+
const { openDrawer } = React66.useContext(DrawerContext);
|
|
6096
6119
|
return /* @__PURE__ */ jsx(Slot, { ref, onPress: openDrawer, children });
|
|
6097
6120
|
}
|
|
6098
6121
|
);
|
|
6099
6122
|
DrawerTrigger.displayName = "Drawer.Trigger";
|
|
6100
6123
|
var DrawerPortal = ({ children, topContent }) => {
|
|
6101
|
-
const { modalVisible, closeDrawer } =
|
|
6124
|
+
const { modalVisible, closeDrawer } = React66.useContext(DrawerContext);
|
|
6102
6125
|
if (!modalVisible) return null;
|
|
6103
6126
|
return /* @__PURE__ */ jsx(
|
|
6104
6127
|
Modal,
|
|
@@ -6135,8 +6158,8 @@ var styles3 = StyleSheet.create({
|
|
|
6135
6158
|
flex: 1
|
|
6136
6159
|
}
|
|
6137
6160
|
});
|
|
6138
|
-
var
|
|
6139
|
-
var StyledDockRoot =
|
|
6161
|
+
var parseTokenValue29 = (value) => parseFloat(value);
|
|
6162
|
+
var StyledDockRoot = styled51(View)(
|
|
6140
6163
|
({
|
|
6141
6164
|
dockBgColor,
|
|
6142
6165
|
dockBorderTopWidth,
|
|
@@ -6154,7 +6177,7 @@ var StyledDockRoot = styled50(View)(
|
|
|
6154
6177
|
paddingHorizontal: dockPaddingHorizontal
|
|
6155
6178
|
})
|
|
6156
6179
|
);
|
|
6157
|
-
var StyledStackedInner =
|
|
6180
|
+
var StyledStackedInner = styled51(View)(
|
|
6158
6181
|
({ innerGap }) => ({
|
|
6159
6182
|
alignItems: "center",
|
|
6160
6183
|
gap: innerGap,
|
|
@@ -6162,21 +6185,21 @@ var StyledStackedInner = styled50(View)(
|
|
|
6162
6185
|
maxWidth: 520
|
|
6163
6186
|
})
|
|
6164
6187
|
);
|
|
6165
|
-
var StyledButtonGroup =
|
|
6188
|
+
var StyledButtonGroup = styled51(View)(({ groupDirection, groupAlign, groupJustify, groupGap }) => __spreadValues({
|
|
6166
6189
|
flexDirection: groupDirection,
|
|
6167
6190
|
alignItems: groupAlign,
|
|
6168
6191
|
justifyContent: groupJustify,
|
|
6169
6192
|
gap: groupGap,
|
|
6170
6193
|
width: "100%"
|
|
6171
6194
|
}, groupDirection === "column" ? { maxWidth: 520 } : {}));
|
|
6172
|
-
var ButtonDock =
|
|
6195
|
+
var ButtonDock = React66.forwardRef(
|
|
6173
6196
|
(_a, ref) => {
|
|
6174
6197
|
var _b = _a, { variant = "stacked", leadingContent, description, children } = _b, rest = __objRest(_b, ["variant", "leadingContent", "description", "children"]);
|
|
6175
6198
|
const theme2 = useTheme();
|
|
6176
6199
|
const { buttonDock, buttonGroup } = theme2.tokens.components;
|
|
6177
6200
|
const { dimensions: dimensions3, typography } = theme2.tokens.semantics;
|
|
6178
6201
|
const isStacked = variant === "stacked";
|
|
6179
|
-
const groupGap =
|
|
6202
|
+
const groupGap = parseTokenValue29(
|
|
6180
6203
|
isStacked ? buttonGroup.spacing.stacked.gap : buttonGroup.spacing.sideBySide.gap
|
|
6181
6204
|
);
|
|
6182
6205
|
return /* @__PURE__ */ jsx(
|
|
@@ -6184,19 +6207,19 @@ var ButtonDock = React65.forwardRef(
|
|
|
6184
6207
|
__spreadProps(__spreadValues({
|
|
6185
6208
|
ref,
|
|
6186
6209
|
dockBgColor: buttonDock.colour.background,
|
|
6187
|
-
dockBorderTopWidth:
|
|
6210
|
+
dockBorderTopWidth: parseTokenValue29(dimensions3.borderWidth.sm),
|
|
6188
6211
|
dockBorderTopColor: buttonDock.colour.border,
|
|
6189
|
-
dockPaddingVertical:
|
|
6212
|
+
dockPaddingVertical: parseTokenValue29(
|
|
6190
6213
|
buttonDock.spacing[variant].mobile.topPadding
|
|
6191
6214
|
),
|
|
6192
|
-
dockPaddingHorizontal:
|
|
6215
|
+
dockPaddingHorizontal: parseTokenValue29(
|
|
6193
6216
|
buttonDock.spacing[variant].mobile.horizontalPadding
|
|
6194
6217
|
)
|
|
6195
6218
|
}, rest), {
|
|
6196
6219
|
children: isStacked ? /* @__PURE__ */ jsxs(
|
|
6197
6220
|
StyledStackedInner,
|
|
6198
6221
|
{
|
|
6199
|
-
innerGap:
|
|
6222
|
+
innerGap: parseTokenValue29(buttonGroup.spacing.gap),
|
|
6200
6223
|
children: [
|
|
6201
6224
|
leadingContent,
|
|
6202
6225
|
/* @__PURE__ */ jsx(
|
|
@@ -6235,21 +6258,21 @@ var ButtonDock = React65.forwardRef(
|
|
|
6235
6258
|
}
|
|
6236
6259
|
);
|
|
6237
6260
|
ButtonDock.displayName = "ButtonDock";
|
|
6238
|
-
var
|
|
6239
|
-
var StyledGroupRoot =
|
|
6261
|
+
var parseTokenValue30 = (value) => parseFloat(value);
|
|
6262
|
+
var StyledGroupRoot = styled51(View)(({ rootGap }) => ({
|
|
6240
6263
|
gap: rootGap,
|
|
6241
6264
|
alignItems: "center",
|
|
6242
6265
|
width: "100%"
|
|
6243
6266
|
}));
|
|
6244
|
-
var StyledButtonRow =
|
|
6267
|
+
var StyledButtonRow = styled51(View)(({ rowDirection, rowAlign, rowGap }) => __spreadValues({
|
|
6245
6268
|
flexDirection: rowDirection,
|
|
6246
6269
|
width: "100%",
|
|
6247
6270
|
gap: rowGap
|
|
6248
6271
|
}, rowAlign ? { alignItems: rowAlign } : {}));
|
|
6249
|
-
var StyledChildSlot =
|
|
6272
|
+
var StyledChildSlot = styled51(View)(
|
|
6250
6273
|
({ slotInline }) => __spreadValues({}, slotInline ? { flex: 1, minWidth: 0 } : { width: "100%", alignSelf: "stretch" })
|
|
6251
6274
|
);
|
|
6252
|
-
var ButtonGroup =
|
|
6275
|
+
var ButtonGroup = React66.forwardRef(
|
|
6253
6276
|
(_a, ref) => {
|
|
6254
6277
|
var _b = _a, { layout = "stacked", description, children } = _b, rest = __objRest(_b, ["layout", "description", "children"]);
|
|
6255
6278
|
const theme2 = useTheme();
|
|
@@ -6260,7 +6283,7 @@ var ButtonGroup = React65.forwardRef(
|
|
|
6260
6283
|
__spreadProps(__spreadValues({
|
|
6261
6284
|
ref,
|
|
6262
6285
|
accessibilityRole: "none",
|
|
6263
|
-
rootGap:
|
|
6286
|
+
rootGap: parseTokenValue30(buttonGroup.spacing.gap)
|
|
6264
6287
|
}, rest), {
|
|
6265
6288
|
children: [
|
|
6266
6289
|
/* @__PURE__ */ jsx(
|
|
@@ -6268,12 +6291,12 @@ var ButtonGroup = React65.forwardRef(
|
|
|
6268
6291
|
{
|
|
6269
6292
|
rowDirection: isInline ? "row" : "column",
|
|
6270
6293
|
rowAlign: isInline ? "center" : void 0,
|
|
6271
|
-
rowGap:
|
|
6294
|
+
rowGap: parseTokenValue30(
|
|
6272
6295
|
isInline ? buttonGroup.spacing.sideBySide.gap : buttonGroup.spacing.stacked.gap
|
|
6273
6296
|
),
|
|
6274
|
-
children:
|
|
6275
|
-
if (!
|
|
6276
|
-
return /* @__PURE__ */ jsx(StyledChildSlot, { slotInline: isInline, children:
|
|
6297
|
+
children: React66.Children.map(children, (child, index) => {
|
|
6298
|
+
if (!React66.isValidElement(child)) return child;
|
|
6299
|
+
return /* @__PURE__ */ jsx(StyledChildSlot, { slotInline: isInline, children: React66.cloneElement(
|
|
6277
6300
|
child,
|
|
6278
6301
|
{
|
|
6279
6302
|
fullWidth: true
|
|
@@ -6297,8 +6320,8 @@ var ButtonGroup = React65.forwardRef(
|
|
|
6297
6320
|
}
|
|
6298
6321
|
);
|
|
6299
6322
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6300
|
-
var
|
|
6301
|
-
var StyledRootPressable =
|
|
6323
|
+
var parseTokenValue31 = (value) => parseFloat(value);
|
|
6324
|
+
var StyledRootPressable = styled51(Pressable)(
|
|
6302
6325
|
({
|
|
6303
6326
|
rootFlexAlign,
|
|
6304
6327
|
rootGap,
|
|
@@ -6317,7 +6340,7 @@ var StyledRootPressable = styled50(Pressable)(
|
|
|
6317
6340
|
opacity: rootOpacity
|
|
6318
6341
|
}, 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 } : {})
|
|
6319
6342
|
);
|
|
6320
|
-
var StyledControl =
|
|
6343
|
+
var StyledControl = styled51(View)(
|
|
6321
6344
|
({
|
|
6322
6345
|
controlSize,
|
|
6323
6346
|
controlBorderWidth,
|
|
@@ -6336,19 +6359,19 @@ var StyledControl = styled50(View)(
|
|
|
6336
6359
|
justifyContent: "center"
|
|
6337
6360
|
})
|
|
6338
6361
|
);
|
|
6339
|
-
var StyledContent2 =
|
|
6362
|
+
var StyledContent2 = styled51(View)(({ contentGap }) => ({
|
|
6340
6363
|
flexDirection: "column",
|
|
6341
6364
|
gap: contentGap,
|
|
6342
6365
|
flex: 1,
|
|
6343
6366
|
minWidth: 0
|
|
6344
6367
|
}));
|
|
6345
|
-
var StyledIllustration =
|
|
6368
|
+
var StyledIllustration = styled51(View)(({ illustrationSize }) => ({
|
|
6346
6369
|
flexShrink: 0,
|
|
6347
6370
|
width: illustrationSize,
|
|
6348
6371
|
height: illustrationSize,
|
|
6349
6372
|
overflow: "hidden"
|
|
6350
6373
|
}));
|
|
6351
|
-
var Checkbox =
|
|
6374
|
+
var Checkbox = React66.forwardRef(
|
|
6352
6375
|
(_a, ref) => {
|
|
6353
6376
|
var _b = _a, {
|
|
6354
6377
|
variant = "standalone",
|
|
@@ -6375,7 +6398,7 @@ var Checkbox = React65.forwardRef(
|
|
|
6375
6398
|
const { checkbox } = theme2.tokens.components;
|
|
6376
6399
|
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
6377
6400
|
const isControlled = controlledChecked !== void 0;
|
|
6378
|
-
const [internalChecked, setInternalChecked] =
|
|
6401
|
+
const [internalChecked, setInternalChecked] = React66.useState(defaultChecked);
|
|
6379
6402
|
const isChecked = isControlled ? controlledChecked : internalChecked;
|
|
6380
6403
|
const handlePress = () => {
|
|
6381
6404
|
if (disabled) return;
|
|
@@ -6386,7 +6409,7 @@ var Checkbox = React65.forwardRef(
|
|
|
6386
6409
|
onCheckedChange == null ? void 0 : onCheckedChange(next);
|
|
6387
6410
|
};
|
|
6388
6411
|
const isTile = variant === "tile";
|
|
6389
|
-
const controlSize =
|
|
6412
|
+
const controlSize = parseTokenValue31(checkbox.size.control.default);
|
|
6390
6413
|
return /* @__PURE__ */ jsxs(
|
|
6391
6414
|
StyledRootPressable,
|
|
6392
6415
|
__spreadProps(__spreadValues({
|
|
@@ -6396,17 +6419,17 @@ var Checkbox = React65.forwardRef(
|
|
|
6396
6419
|
accessibilityRole: "checkbox",
|
|
6397
6420
|
accessibilityState: { checked: isChecked, disabled },
|
|
6398
6421
|
rootFlexAlign: isTile ? "center" : "flex-start",
|
|
6399
|
-
rootGap:
|
|
6422
|
+
rootGap: parseTokenValue31(
|
|
6400
6423
|
isTile ? checkbox.checkboxTile.spacing.gap : checkbox.spacing.gap
|
|
6401
6424
|
),
|
|
6402
6425
|
rootOpacity: disabled ? parseFloat(theme2.tokens.primitives.opacity["40"]) : 1,
|
|
6403
|
-
rootPaddingVertical: isTile ?
|
|
6404
|
-
rootPaddingHorizontal: isTile ?
|
|
6405
|
-
rootMaxWidth: isTile ?
|
|
6426
|
+
rootPaddingVertical: isTile ? parseTokenValue31(checkbox.checkboxTile.spacing.verticalPadding) : void 0,
|
|
6427
|
+
rootPaddingHorizontal: isTile ? parseTokenValue31(checkbox.checkboxTile.spacing.horizontalPadding) : void 0,
|
|
6428
|
+
rootMaxWidth: isTile ? parseTokenValue31(checkbox.checkboxTile.size.maxWidth) : void 0,
|
|
6406
6429
|
rootBgColor: isTile ? isChecked ? checkbox.checkboxTile.colour.background.selected : checkbox.checkboxTile.colour.background.default : void 0,
|
|
6407
|
-
rootBorderWidth: isTile ?
|
|
6430
|
+
rootBorderWidth: isTile ? parseTokenValue31(checkbox.checkboxTile.borderWidth.default) : void 0,
|
|
6408
6431
|
rootBorderColor: isTile ? isChecked ? checkbox.checkboxTile.colour.border.selected : checkbox.checkboxTile.colour.border.default : void 0,
|
|
6409
|
-
rootBorderRadius: isTile ?
|
|
6432
|
+
rootBorderRadius: isTile ? parseTokenValue31(checkbox.checkboxTile.borderRadius.default) : void 0,
|
|
6410
6433
|
style: typeof style === "function" ? void 0 : style
|
|
6411
6434
|
}, rest), {
|
|
6412
6435
|
children: [
|
|
@@ -6414,9 +6437,9 @@ var Checkbox = React65.forwardRef(
|
|
|
6414
6437
|
StyledControl,
|
|
6415
6438
|
{
|
|
6416
6439
|
controlSize,
|
|
6417
|
-
controlBorderWidth:
|
|
6440
|
+
controlBorderWidth: parseTokenValue31(checkbox.control.border.default),
|
|
6418
6441
|
controlBorderColor: isChecked ? checkbox.colour.background.selected : checkbox.colour.border.default,
|
|
6419
|
-
controlBorderRadius:
|
|
6442
|
+
controlBorderRadius: parseTokenValue31(dimensions3.borderRadius.xs),
|
|
6420
6443
|
controlBgColor: isChecked ? checkbox.colour.background.selected : "transparent",
|
|
6421
6444
|
children: isChecked && /* @__PURE__ */ jsx(Icon, { icon: Check_default, size: "xs", colour: "alt" })
|
|
6422
6445
|
}
|
|
@@ -6424,7 +6447,7 @@ var Checkbox = React65.forwardRef(
|
|
|
6424
6447
|
/* @__PURE__ */ jsxs(
|
|
6425
6448
|
StyledContent2,
|
|
6426
6449
|
{
|
|
6427
|
-
contentGap:
|
|
6450
|
+
contentGap: parseTokenValue31(checkbox.spacing.content.gap),
|
|
6428
6451
|
children: [
|
|
6429
6452
|
label && /* @__PURE__ */ jsx(
|
|
6430
6453
|
Typography,
|
|
@@ -6448,7 +6471,7 @@ var Checkbox = React65.forwardRef(
|
|
|
6448
6471
|
isTile && illustration && /* @__PURE__ */ jsx(
|
|
6449
6472
|
StyledIllustration,
|
|
6450
6473
|
{
|
|
6451
|
-
illustrationSize:
|
|
6474
|
+
illustrationSize: parseTokenValue31(
|
|
6452
6475
|
checkbox.checkboxTile.size.illustration.default
|
|
6453
6476
|
),
|
|
6454
6477
|
children: illustration
|
|
@@ -6460,12 +6483,12 @@ var Checkbox = React65.forwardRef(
|
|
|
6460
6483
|
}
|
|
6461
6484
|
);
|
|
6462
6485
|
Checkbox.displayName = "Checkbox";
|
|
6463
|
-
var
|
|
6464
|
-
var StyledGroup =
|
|
6486
|
+
var parseTokenValue32 = (value) => parseFloat(value);
|
|
6487
|
+
var StyledGroup = styled51(View)(({ groupDirection, groupGap }) => ({
|
|
6465
6488
|
flexDirection: groupDirection,
|
|
6466
6489
|
gap: groupGap
|
|
6467
6490
|
}));
|
|
6468
|
-
var CheckboxGroup =
|
|
6491
|
+
var CheckboxGroup = React66.forwardRef(
|
|
6469
6492
|
(_a, ref) => {
|
|
6470
6493
|
var _b = _a, { orientation = "vertical", children } = _b, rest = __objRest(_b, ["orientation", "children"]);
|
|
6471
6494
|
const theme2 = useTheme();
|
|
@@ -6475,7 +6498,7 @@ var CheckboxGroup = React65.forwardRef(
|
|
|
6475
6498
|
__spreadProps(__spreadValues({
|
|
6476
6499
|
ref,
|
|
6477
6500
|
groupDirection: orientation === "horizontal" ? "row" : "column",
|
|
6478
|
-
groupGap:
|
|
6501
|
+
groupGap: parseTokenValue32(checkbox.spacing.gap)
|
|
6479
6502
|
}, rest), {
|
|
6480
6503
|
children
|
|
6481
6504
|
})
|
|
@@ -6483,7 +6506,7 @@ var CheckboxGroup = React65.forwardRef(
|
|
|
6483
6506
|
}
|
|
6484
6507
|
);
|
|
6485
6508
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
6486
|
-
var CopyFieldInput =
|
|
6509
|
+
var CopyFieldInput = React66.forwardRef(
|
|
6487
6510
|
(_a, ref) => {
|
|
6488
6511
|
var _b = _a, {
|
|
6489
6512
|
onCopy,
|
|
@@ -6502,19 +6525,19 @@ var CopyFieldInput = React65.forwardRef(
|
|
|
6502
6525
|
"editable",
|
|
6503
6526
|
"defaultValue"
|
|
6504
6527
|
]);
|
|
6505
|
-
const [internalValue, setInternalValue] =
|
|
6528
|
+
const [internalValue, setInternalValue] = React66.useState(
|
|
6506
6529
|
typeof defaultValue === "string" ? defaultValue : ""
|
|
6507
6530
|
);
|
|
6508
|
-
const [copied, setCopied] =
|
|
6509
|
-
const timeoutRef =
|
|
6531
|
+
const [copied, setCopied] = React66.useState(false);
|
|
6532
|
+
const timeoutRef = React66.useRef(
|
|
6510
6533
|
void 0
|
|
6511
6534
|
);
|
|
6512
|
-
|
|
6535
|
+
React66.useEffect(() => {
|
|
6513
6536
|
if (defaultValue !== void 0 && value === void 0) {
|
|
6514
6537
|
setInternalValue(typeof defaultValue === "string" ? defaultValue : "");
|
|
6515
6538
|
}
|
|
6516
6539
|
}, [defaultValue, value]);
|
|
6517
|
-
|
|
6540
|
+
React66.useEffect(() => {
|
|
6518
6541
|
return () => {
|
|
6519
6542
|
if (timeoutRef.current) {
|
|
6520
6543
|
clearTimeout(timeoutRef.current);
|
|
@@ -6574,14 +6597,14 @@ var CopyFieldInput = React65.forwardRef(
|
|
|
6574
6597
|
}
|
|
6575
6598
|
);
|
|
6576
6599
|
CopyFieldInput.displayName = "CopyField.Field";
|
|
6577
|
-
var
|
|
6578
|
-
var StyledRoot8 =
|
|
6600
|
+
var parseTokenValue33 = (value) => parseFloat(value);
|
|
6601
|
+
var StyledRoot8 = styled51(View)(({ theme: theme2 }) => {
|
|
6579
6602
|
const { spacing } = theme2.tokens.components.inputs;
|
|
6580
6603
|
return {
|
|
6581
|
-
gap:
|
|
6604
|
+
gap: parseTokenValue33(spacing.gap)
|
|
6582
6605
|
};
|
|
6583
6606
|
});
|
|
6584
|
-
var CopyFieldRoot =
|
|
6607
|
+
var CopyFieldRoot = React66.forwardRef(
|
|
6585
6608
|
(_a, ref) => {
|
|
6586
6609
|
var _b = _a, {
|
|
6587
6610
|
label,
|
|
@@ -6649,20 +6672,20 @@ var useCopyField = (options = {}) => {
|
|
|
6649
6672
|
onCopy: handleCopy
|
|
6650
6673
|
};
|
|
6651
6674
|
};
|
|
6652
|
-
var FilterTabContext =
|
|
6675
|
+
var FilterTabContext = React66.createContext({
|
|
6653
6676
|
size: "sm",
|
|
6654
6677
|
selectedValues: [],
|
|
6655
6678
|
toggle: () => {
|
|
6656
6679
|
}
|
|
6657
6680
|
});
|
|
6658
|
-
var
|
|
6659
|
-
var StyledRoot9 =
|
|
6681
|
+
var parseTokenValue34 = (value) => parseFloat(value);
|
|
6682
|
+
var StyledRoot9 = styled51(View)(({ rootGap }) => ({
|
|
6660
6683
|
flexDirection: "row",
|
|
6661
6684
|
alignItems: "center",
|
|
6662
6685
|
gap: rootGap,
|
|
6663
6686
|
flexWrap: "nowrap"
|
|
6664
6687
|
}));
|
|
6665
|
-
var StyledItem2 =
|
|
6688
|
+
var StyledItem2 = styled51(Pressable)(
|
|
6666
6689
|
({
|
|
6667
6690
|
itemHeight,
|
|
6668
6691
|
itemMinWidth,
|
|
@@ -6688,7 +6711,7 @@ var StyledItem2 = styled50(Pressable)(
|
|
|
6688
6711
|
flexShrink: 0
|
|
6689
6712
|
})
|
|
6690
6713
|
);
|
|
6691
|
-
var FilterTabItem =
|
|
6714
|
+
var FilterTabItem = React66.forwardRef(
|
|
6692
6715
|
(_a, ref) => {
|
|
6693
6716
|
var _b = _a, {
|
|
6694
6717
|
value,
|
|
@@ -6708,16 +6731,16 @@ var FilterTabItem = React65.forwardRef(
|
|
|
6708
6731
|
"accessibilityLabel"
|
|
6709
6732
|
]);
|
|
6710
6733
|
const theme2 = useTheme();
|
|
6711
|
-
const { size, selectedValues, toggle } =
|
|
6734
|
+
const { size, selectedValues, toggle } = React66.useContext(FilterTabContext);
|
|
6712
6735
|
const isSelected = selectedValues.includes(value);
|
|
6713
6736
|
const isIconOnly = !!IconOnlyIcon && !label;
|
|
6714
6737
|
const isActive = isSelected && !disabled;
|
|
6715
6738
|
const { tabItem } = theme2.tokens.components.filterTabs;
|
|
6716
6739
|
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
6717
|
-
const height =
|
|
6740
|
+
const height = parseTokenValue34(
|
|
6718
6741
|
size === "lg" ? tabItem.size.large.height : tabItem.size.small.height
|
|
6719
6742
|
);
|
|
6720
|
-
const minWidth =
|
|
6743
|
+
const minWidth = parseTokenValue34(tabItem.size.small.minWidth);
|
|
6721
6744
|
const iconColour = isActive ? tabItem.colour.icon.selected : tabItem.colour.icon.unselected;
|
|
6722
6745
|
return /* @__PURE__ */ jsxs(
|
|
6723
6746
|
StyledItem2,
|
|
@@ -6733,12 +6756,12 @@ var FilterTabItem = React65.forwardRef(
|
|
|
6733
6756
|
},
|
|
6734
6757
|
itemHeight: height,
|
|
6735
6758
|
itemMinWidth: minWidth,
|
|
6736
|
-
itemPaddingH:
|
|
6737
|
-
itemBorderRadius:
|
|
6759
|
+
itemPaddingH: parseTokenValue34(tabItem.spacing.horizontalPadding),
|
|
6760
|
+
itemBorderRadius: parseTokenValue34(tabItem.borderRadius.default),
|
|
6738
6761
|
itemBgColor: isActive ? tabItem.colour.background.selected : tabItem.colour.background.default,
|
|
6739
6762
|
itemOpacity: disabled ? parseFloat(tabItem.opacity.disabled.default) : 1,
|
|
6740
6763
|
isIconOnly,
|
|
6741
|
-
style: { gap:
|
|
6764
|
+
style: { gap: parseTokenValue34(dimensions3.spacing["2xs"]) }
|
|
6742
6765
|
}, rest), {
|
|
6743
6766
|
children: [
|
|
6744
6767
|
isIconOnly && IconOnlyIcon && /* @__PURE__ */ jsx(
|
|
@@ -6782,7 +6805,7 @@ var FilterTabItem = React65.forwardRef(
|
|
|
6782
6805
|
}
|
|
6783
6806
|
);
|
|
6784
6807
|
FilterTabItem.displayName = "FilterTab.Item";
|
|
6785
|
-
var FilterTabRoot =
|
|
6808
|
+
var FilterTabRoot = React66.forwardRef(
|
|
6786
6809
|
(_a, ref) => {
|
|
6787
6810
|
var _b = _a, {
|
|
6788
6811
|
size = "sm",
|
|
@@ -6802,9 +6825,9 @@ var FilterTabRoot = React65.forwardRef(
|
|
|
6802
6825
|
const theme2 = useTheme();
|
|
6803
6826
|
const { filterTabs } = theme2.tokens.components;
|
|
6804
6827
|
const isControlled = controlledValue !== void 0;
|
|
6805
|
-
const [internalValue, setInternalValue] =
|
|
6828
|
+
const [internalValue, setInternalValue] = React66.useState(defaultValue);
|
|
6806
6829
|
const selectedValues = isControlled ? controlledValue : internalValue;
|
|
6807
|
-
const toggle =
|
|
6830
|
+
const toggle = React66.useCallback(
|
|
6808
6831
|
(itemValue) => {
|
|
6809
6832
|
let next;
|
|
6810
6833
|
if (multiple) {
|
|
@@ -6817,7 +6840,7 @@ var FilterTabRoot = React65.forwardRef(
|
|
|
6817
6840
|
},
|
|
6818
6841
|
[selectedValues, isControlled, onValueChange, multiple]
|
|
6819
6842
|
);
|
|
6820
|
-
const contextValue =
|
|
6843
|
+
const contextValue = React66.useMemo(
|
|
6821
6844
|
() => ({ size, selectedValues, toggle }),
|
|
6822
6845
|
[size, selectedValues, toggle]
|
|
6823
6846
|
);
|
|
@@ -6825,7 +6848,7 @@ var FilterTabRoot = React65.forwardRef(
|
|
|
6825
6848
|
StyledRoot9,
|
|
6826
6849
|
__spreadProps(__spreadValues({
|
|
6827
6850
|
ref,
|
|
6828
|
-
rootGap:
|
|
6851
|
+
rootGap: parseTokenValue34(filterTabs.filterTab.spacing.gap)
|
|
6829
6852
|
}, rest), {
|
|
6830
6853
|
children
|
|
6831
6854
|
})
|
|
@@ -6836,8 +6859,8 @@ FilterTabRoot.displayName = "FilterTab";
|
|
|
6836
6859
|
var FilterTab = Object.assign(FilterTabRoot, {
|
|
6837
6860
|
Item: FilterTabItem
|
|
6838
6861
|
});
|
|
6839
|
-
var
|
|
6840
|
-
var StyledFieldWrapper =
|
|
6862
|
+
var parseTokenValue35 = (value) => parseFloat(value);
|
|
6863
|
+
var StyledFieldWrapper = styled51(View)(
|
|
6841
6864
|
({
|
|
6842
6865
|
fieldBgColor,
|
|
6843
6866
|
fieldBorderColor,
|
|
@@ -6861,7 +6884,7 @@ var StyledFieldWrapper = styled50(View)(
|
|
|
6861
6884
|
overflow: "hidden"
|
|
6862
6885
|
}, fullWidth && { flex: 1 })
|
|
6863
6886
|
);
|
|
6864
|
-
var StyledTextInput =
|
|
6887
|
+
var StyledTextInput = styled51(TextInput)(
|
|
6865
6888
|
({
|
|
6866
6889
|
inputColor,
|
|
6867
6890
|
inputFontFamily,
|
|
@@ -6882,12 +6905,12 @@ var StyledTextInput = styled50(TextInput)(
|
|
|
6882
6905
|
fontSize: inputFontSize
|
|
6883
6906
|
}), hasInlineHelp ? { position: "relative", top: -8 } : {})
|
|
6884
6907
|
);
|
|
6885
|
-
var StyledRow =
|
|
6908
|
+
var StyledRow = styled51(View)(({ rowGap }) => ({
|
|
6886
6909
|
flexDirection: "row",
|
|
6887
6910
|
alignItems: "center",
|
|
6888
6911
|
gap: rowGap
|
|
6889
6912
|
}));
|
|
6890
|
-
var NumberFieldInput =
|
|
6913
|
+
var NumberFieldInput = React66.forwardRef(
|
|
6891
6914
|
(_a, ref) => {
|
|
6892
6915
|
var _b = _a, {
|
|
6893
6916
|
fieldSize = "lg",
|
|
@@ -6934,16 +6957,16 @@ var NumberFieldInput = React65.forwardRef(
|
|
|
6934
6957
|
const theme2 = useTheme();
|
|
6935
6958
|
const tokens3 = theme2.tokens.components.numberField;
|
|
6936
6959
|
const inputTokens3 = theme2.tokens.components.inputs;
|
|
6937
|
-
const [isFocused, setIsFocused] =
|
|
6938
|
-
const [isEdited, setIsEdited] =
|
|
6939
|
-
const initialValueRef =
|
|
6960
|
+
const [isFocused, setIsFocused] = React66.useState(false);
|
|
6961
|
+
const [isEdited, setIsEdited] = React66.useState(false);
|
|
6962
|
+
const initialValueRef = React66.useRef((_a2 = value != null ? value : defaultValue) != null ? _a2 : "");
|
|
6940
6963
|
const isLarge = fieldSize === "lg";
|
|
6941
6964
|
const sizeTokens = isLarge ? tokens3.spacing.large : tokens3.spacing.small;
|
|
6942
6965
|
const buttonSize = isLarge ? "lg" : "sm";
|
|
6943
6966
|
const fieldSizeTokens = isLarge ? tokens3.size.large : tokens3.size.small;
|
|
6944
|
-
const fieldMinWidth =
|
|
6945
|
-
const fieldHeight =
|
|
6946
|
-
const fieldPaddingHorizontal =
|
|
6967
|
+
const fieldMinWidth = parseTokenValue35(fieldSizeTokens.minWidth);
|
|
6968
|
+
const fieldHeight = parseTokenValue35(fieldSizeTokens.height);
|
|
6969
|
+
const fieldPaddingHorizontal = parseTokenValue35(
|
|
6947
6970
|
inputTokens3.spacing.field.horizontalPadding
|
|
6948
6971
|
);
|
|
6949
6972
|
const getBorderColor = () => {
|
|
@@ -6953,14 +6976,14 @@ var NumberFieldInput = React65.forwardRef(
|
|
|
6953
6976
|
if (isEdited) return tokens3.colour.field.border.edited;
|
|
6954
6977
|
return tokens3.colour.field.border.default;
|
|
6955
6978
|
};
|
|
6956
|
-
const handleFocus =
|
|
6979
|
+
const handleFocus = React66.useCallback(
|
|
6957
6980
|
(e) => {
|
|
6958
6981
|
setIsFocused(true);
|
|
6959
6982
|
onFocus == null ? void 0 : onFocus(e);
|
|
6960
6983
|
},
|
|
6961
6984
|
[onFocus]
|
|
6962
6985
|
);
|
|
6963
|
-
const handleBlur =
|
|
6986
|
+
const handleBlur = React66.useCallback(
|
|
6964
6987
|
(e) => {
|
|
6965
6988
|
setIsFocused(false);
|
|
6966
6989
|
if (value != null && onChangeText) {
|
|
@@ -6979,7 +7002,7 @@ var NumberFieldInput = React65.forwardRef(
|
|
|
6979
7002
|
const numericValue = value != null ? Number(value) : Number(defaultValue != null ? defaultValue : 0);
|
|
6980
7003
|
const isAtMin = min != null && numericValue <= min;
|
|
6981
7004
|
const isAtMax = max != null && numericValue >= max;
|
|
6982
|
-
const handleChangeText =
|
|
7005
|
+
const handleChangeText = React66.useCallback(
|
|
6983
7006
|
(text) => {
|
|
6984
7007
|
setIsEdited(text !== initialValueRef.current);
|
|
6985
7008
|
onChangeText == null ? void 0 : onChangeText(text);
|
|
@@ -6988,7 +7011,7 @@ var NumberFieldInput = React65.forwardRef(
|
|
|
6988
7011
|
);
|
|
6989
7012
|
const typographyToken = fieldSize === "lg" ? tokens3.typography.field.large : tokens3.typography.field.small;
|
|
6990
7013
|
const resolvedInputFontFamily = typographyToken.fontFamily && typographyToken.fontWeight ? resolveFont(typographyToken.fontFamily, typographyToken.fontWeight).fontFamily : typographyToken.fontFamily;
|
|
6991
|
-
return /* @__PURE__ */ jsxs(StyledRow, { rowGap:
|
|
7014
|
+
return /* @__PURE__ */ jsxs(StyledRow, { rowGap: parseTokenValue35(sizeTokens.group.gap), children: [
|
|
6992
7015
|
showDecrementButton && /* @__PURE__ */ jsx(
|
|
6993
7016
|
IconButton,
|
|
6994
7017
|
{
|
|
@@ -7006,7 +7029,7 @@ var NumberFieldInput = React65.forwardRef(
|
|
|
7006
7029
|
{
|
|
7007
7030
|
fieldBgColor: tokens3.colour.field.background.default,
|
|
7008
7031
|
fieldBorderColor: getBorderColor(),
|
|
7009
|
-
fieldBorderRadius:
|
|
7032
|
+
fieldBorderRadius: parseTokenValue35(tokens3.borderRadius.field.default),
|
|
7010
7033
|
fieldMinWidth,
|
|
7011
7034
|
fieldHeight,
|
|
7012
7035
|
fieldPaddingHorizontal,
|
|
@@ -7019,7 +7042,7 @@ var NumberFieldInput = React65.forwardRef(
|
|
|
7019
7042
|
inputColor: tokens3.colour.field.text.default,
|
|
7020
7043
|
inputFontFamily: resolvedInputFontFamily,
|
|
7021
7044
|
inputFontWeight: resolvedInputFontFamily === typographyToken.fontFamily ? typographyToken.fontWeight : void 0,
|
|
7022
|
-
inputFontSize:
|
|
7045
|
+
inputFontSize: parseTokenValue35(typographyToken.fontSize),
|
|
7023
7046
|
hasInlineHelp: !!inlineHelpText,
|
|
7024
7047
|
keyboardType: "numeric",
|
|
7025
7048
|
editable: !disabled,
|
|
@@ -7071,14 +7094,14 @@ var NumberFieldInput = React65.forwardRef(
|
|
|
7071
7094
|
}
|
|
7072
7095
|
);
|
|
7073
7096
|
NumberFieldInput.displayName = "NumberField.Input";
|
|
7074
|
-
var
|
|
7075
|
-
var StyledRoot10 =
|
|
7097
|
+
var parseTokenValue36 = (value) => parseFloat(value);
|
|
7098
|
+
var StyledRoot10 = styled51(View)(({ rootGap, fullWidth }) => __spreadValues({
|
|
7076
7099
|
gap: rootGap
|
|
7077
7100
|
}, fullWidth ? { width: "100%" } : { alignItems: "center" }));
|
|
7078
|
-
var StyledLabelGroup =
|
|
7101
|
+
var StyledLabelGroup = styled51(View)(({ labelGap }) => ({
|
|
7079
7102
|
gap: labelGap
|
|
7080
7103
|
}));
|
|
7081
|
-
var NumberField =
|
|
7104
|
+
var NumberField = React66.forwardRef(
|
|
7082
7105
|
(_a, ref) => {
|
|
7083
7106
|
var _b = _a, {
|
|
7084
7107
|
label,
|
|
@@ -7123,13 +7146,13 @@ var NumberField = React65.forwardRef(
|
|
|
7123
7146
|
StyledRoot10,
|
|
7124
7147
|
{
|
|
7125
7148
|
ref,
|
|
7126
|
-
rootGap:
|
|
7149
|
+
rootGap: parseTokenValue36(sizeTokens.gap),
|
|
7127
7150
|
fullWidth,
|
|
7128
7151
|
children: [
|
|
7129
7152
|
(label || smallLabel) && /* @__PURE__ */ jsxs(
|
|
7130
7153
|
StyledLabelGroup,
|
|
7131
7154
|
{
|
|
7132
|
-
labelGap:
|
|
7155
|
+
labelGap: parseTokenValue36(
|
|
7133
7156
|
theme2.tokens.components.inputs.spacing.label.gap
|
|
7134
7157
|
),
|
|
7135
7158
|
children: [
|
|
@@ -7197,9 +7220,9 @@ var NumberField = React65.forwardRef(
|
|
|
7197
7220
|
);
|
|
7198
7221
|
NumberField.displayName = "NumberField";
|
|
7199
7222
|
var HIT_SLOP = 12;
|
|
7200
|
-
var PasswordFieldInput =
|
|
7223
|
+
var PasswordFieldInput = React66.forwardRef((_a, ref) => {
|
|
7201
7224
|
var _b = _a, { onValueChange, value, state, editable } = _b, inputFieldProps = __objRest(_b, ["onValueChange", "value", "state", "editable"]);
|
|
7202
|
-
const [showPassword, setShowPassword] =
|
|
7225
|
+
const [showPassword, setShowPassword] = React66.useState(false);
|
|
7203
7226
|
const handleValueChange = (newValue) => {
|
|
7204
7227
|
onValueChange == null ? void 0 : onValueChange(newValue);
|
|
7205
7228
|
};
|
|
@@ -7238,13 +7261,13 @@ var PasswordFieldInput = React65.forwardRef((_a, ref) => {
|
|
|
7238
7261
|
);
|
|
7239
7262
|
});
|
|
7240
7263
|
PasswordFieldInput.displayName = "PasswordField.Field";
|
|
7241
|
-
var
|
|
7242
|
-
var StyledErrorRow2 =
|
|
7264
|
+
var parseTokenValue37 = (value) => parseFloat(value);
|
|
7265
|
+
var StyledErrorRow2 = styled51(View)(({ gap }) => ({
|
|
7243
7266
|
flexDirection: "row",
|
|
7244
7267
|
alignItems: "center",
|
|
7245
7268
|
gap
|
|
7246
7269
|
}));
|
|
7247
|
-
var PasswordFieldError =
|
|
7270
|
+
var PasswordFieldError = React66.forwardRef((_a, ref) => {
|
|
7248
7271
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
7249
7272
|
const theme2 = useTheme();
|
|
7250
7273
|
const { listItem } = theme2.tokens.components.validationList;
|
|
@@ -7253,7 +7276,7 @@ var PasswordFieldError = React65.forwardRef((_a, ref) => {
|
|
|
7253
7276
|
StyledErrorRow2,
|
|
7254
7277
|
__spreadProps(__spreadValues({
|
|
7255
7278
|
ref,
|
|
7256
|
-
gap:
|
|
7279
|
+
gap: parseTokenValue37(listItem.spacing.gap)
|
|
7257
7280
|
}, rest), {
|
|
7258
7281
|
children: [
|
|
7259
7282
|
/* @__PURE__ */ jsx(Icon, { icon: Cancel_default, size: "xs", customColour: listItem.colour.icon.error }),
|
|
@@ -7270,20 +7293,20 @@ var PasswordFieldError = React65.forwardRef((_a, ref) => {
|
|
|
7270
7293
|
);
|
|
7271
7294
|
});
|
|
7272
7295
|
PasswordFieldError.displayName = "PasswordField.Error";
|
|
7273
|
-
var
|
|
7274
|
-
var StyledRequirementsList =
|
|
7296
|
+
var parseTokenValue38 = (value) => parseFloat(value);
|
|
7297
|
+
var StyledRequirementsList = styled51(View)(
|
|
7275
7298
|
({ listGap }) => ({
|
|
7276
7299
|
gap: listGap
|
|
7277
7300
|
})
|
|
7278
7301
|
);
|
|
7279
|
-
var StyledRequirementItem =
|
|
7302
|
+
var StyledRequirementItem = styled51(View)(
|
|
7280
7303
|
({ itemGap }) => ({
|
|
7281
7304
|
flexDirection: "row",
|
|
7282
7305
|
alignItems: "center",
|
|
7283
7306
|
gap: itemGap
|
|
7284
7307
|
})
|
|
7285
7308
|
);
|
|
7286
|
-
var PasswordFieldRequirements =
|
|
7309
|
+
var PasswordFieldRequirements = React66.forwardRef((_a, ref) => {
|
|
7287
7310
|
var _b = _a, { requirements } = _b, rest = __objRest(_b, ["requirements"]);
|
|
7288
7311
|
const theme2 = useTheme();
|
|
7289
7312
|
const { listItem, list } = theme2.tokens.components.validationList;
|
|
@@ -7298,14 +7321,14 @@ var PasswordFieldRequirements = React65.forwardRef((_a, ref) => {
|
|
|
7298
7321
|
StyledRequirementsList,
|
|
7299
7322
|
__spreadProps(__spreadValues({
|
|
7300
7323
|
ref,
|
|
7301
|
-
listGap:
|
|
7324
|
+
listGap: parseTokenValue38(list.spacing.gap)
|
|
7302
7325
|
}, rest), {
|
|
7303
7326
|
children: normalizedRequirements.map((requirement, index) => {
|
|
7304
7327
|
const iconColour = requirement.satisfied ? listItem.colour.icon.success : listItem.colour.icon.error;
|
|
7305
7328
|
return /* @__PURE__ */ jsxs(
|
|
7306
7329
|
StyledRequirementItem,
|
|
7307
7330
|
{
|
|
7308
|
-
itemGap:
|
|
7331
|
+
itemGap: parseTokenValue38(listItem.spacing.gap),
|
|
7309
7332
|
children: [
|
|
7310
7333
|
/* @__PURE__ */ jsx(
|
|
7311
7334
|
Icon,
|
|
@@ -7332,14 +7355,14 @@ var PasswordFieldRequirements = React65.forwardRef((_a, ref) => {
|
|
|
7332
7355
|
);
|
|
7333
7356
|
});
|
|
7334
7357
|
PasswordFieldRequirements.displayName = "PasswordField.Requirements";
|
|
7335
|
-
var
|
|
7336
|
-
var StyledRoot11 =
|
|
7358
|
+
var parseTokenValue39 = (value) => parseFloat(value);
|
|
7359
|
+
var StyledRoot11 = styled51(View)(({ theme: theme2 }) => {
|
|
7337
7360
|
const { spacing } = theme2.tokens.components.inputs;
|
|
7338
7361
|
return {
|
|
7339
|
-
gap:
|
|
7362
|
+
gap: parseTokenValue39(spacing.gap)
|
|
7340
7363
|
};
|
|
7341
7364
|
});
|
|
7342
|
-
var PasswordFieldRoot =
|
|
7365
|
+
var PasswordFieldRoot = React66.forwardRef(
|
|
7343
7366
|
(_a, ref) => {
|
|
7344
7367
|
var _b = _a, {
|
|
7345
7368
|
label,
|
|
@@ -7446,20 +7469,20 @@ function usePasswordField({
|
|
|
7446
7469
|
showRequirements
|
|
7447
7470
|
});
|
|
7448
7471
|
}
|
|
7449
|
-
var
|
|
7450
|
-
var StyledRoot12 =
|
|
7472
|
+
var parseTokenValue40 = (value) => parseFloat(value);
|
|
7473
|
+
var StyledRoot12 = styled51(View)(({ rootGap }) => ({
|
|
7451
7474
|
flexDirection: "column",
|
|
7452
7475
|
alignItems: "stretch",
|
|
7453
7476
|
gap: rootGap,
|
|
7454
7477
|
width: "100%"
|
|
7455
7478
|
}));
|
|
7456
|
-
var StyledHeader2 =
|
|
7479
|
+
var StyledHeader2 = styled51(View)({
|
|
7457
7480
|
flexDirection: "row",
|
|
7458
7481
|
alignItems: "center",
|
|
7459
7482
|
justifyContent: "space-between",
|
|
7460
7483
|
width: "100%"
|
|
7461
7484
|
});
|
|
7462
|
-
var StyledTrack =
|
|
7485
|
+
var StyledTrack = styled51(View)(({ trackHeight, trackMinWidth, trackBorderRadius, trackBgColor }) => ({
|
|
7463
7486
|
position: "relative",
|
|
7464
7487
|
width: "100%",
|
|
7465
7488
|
minWidth: trackMinWidth,
|
|
@@ -7468,13 +7491,13 @@ var StyledTrack = styled50(View)(({ trackHeight, trackMinWidth, trackBorderRadiu
|
|
|
7468
7491
|
backgroundColor: trackBgColor,
|
|
7469
7492
|
overflow: "hidden"
|
|
7470
7493
|
}));
|
|
7471
|
-
var StyledIndicator =
|
|
7494
|
+
var StyledIndicator = styled51(View)(({ indicatorBorderRadius, indicatorBgColor }) => ({
|
|
7472
7495
|
height: "100%",
|
|
7473
7496
|
borderRadius: indicatorBorderRadius,
|
|
7474
7497
|
backgroundColor: indicatorBgColor
|
|
7475
7498
|
}));
|
|
7476
7499
|
var clamp = (value, min, max) => Math.max(min, Math.min(max, value));
|
|
7477
|
-
var Progress =
|
|
7500
|
+
var Progress = React66.forwardRef(
|
|
7478
7501
|
(_a, ref) => {
|
|
7479
7502
|
var _b = _a, {
|
|
7480
7503
|
value = 0,
|
|
@@ -7508,14 +7531,14 @@ var Progress = React65.forwardRef(
|
|
|
7508
7531
|
const showHeader = Boolean(label) || Boolean(description);
|
|
7509
7532
|
const typographyForSize = size === "lg" ? typography.large : typography.small;
|
|
7510
7533
|
const trackSize = { lg: track.size.large, sm: track.size.small }[size];
|
|
7511
|
-
const trackHeight =
|
|
7512
|
-
const trackMinWidth =
|
|
7513
|
-
const trackBorderRadius =
|
|
7514
|
-
const indicatorBorderRadius =
|
|
7534
|
+
const trackHeight = parseTokenValue40(trackSize.height);
|
|
7535
|
+
const trackMinWidth = parseTokenValue40(trackSize.mindWidth);
|
|
7536
|
+
const trackBorderRadius = parseTokenValue40(borderRadius.track.default);
|
|
7537
|
+
const indicatorBorderRadius = parseTokenValue40(
|
|
7515
7538
|
borderRadius.indicator.default
|
|
7516
7539
|
);
|
|
7517
7540
|
const indicatorBgColor = colour === "secondary" ? indicator.colour.background.secondary : indicator.colour.background.primary;
|
|
7518
|
-
return /* @__PURE__ */ jsxs(StyledRoot12, __spreadProps(__spreadValues({ ref, rootGap:
|
|
7541
|
+
return /* @__PURE__ */ jsxs(StyledRoot12, __spreadProps(__spreadValues({ ref, rootGap: parseTokenValue40(spacing.gap) }, rest), { children: [
|
|
7519
7542
|
showHeader && /* @__PURE__ */ jsxs(StyledHeader2, { children: [
|
|
7520
7543
|
label ? /* @__PURE__ */ jsx(
|
|
7521
7544
|
Typography,
|
|
@@ -7564,8 +7587,8 @@ var Progress = React65.forwardRef(
|
|
|
7564
7587
|
}
|
|
7565
7588
|
);
|
|
7566
7589
|
Progress.displayName = "Progress";
|
|
7567
|
-
var
|
|
7568
|
-
var StyledRadioRoot =
|
|
7590
|
+
var parseTokenValue41 = (value) => parseFloat(value);
|
|
7591
|
+
var StyledRadioRoot = styled51(Pressable)(
|
|
7569
7592
|
({
|
|
7570
7593
|
radioGap,
|
|
7571
7594
|
radioOpacity,
|
|
@@ -7584,7 +7607,7 @@ var StyledRadioRoot = styled50(Pressable)(
|
|
|
7584
7607
|
opacity: radioOpacity
|
|
7585
7608
|
}, 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 } : {})
|
|
7586
7609
|
);
|
|
7587
|
-
var StyledRadioControl =
|
|
7610
|
+
var StyledRadioControl = styled51(View)(({ controlSize, controlBorderWidth, controlBorderColor }) => ({
|
|
7588
7611
|
width: controlSize,
|
|
7589
7612
|
height: controlSize,
|
|
7590
7613
|
minWidth: controlSize,
|
|
@@ -7595,29 +7618,29 @@ var StyledRadioControl = styled50(View)(({ controlSize, controlBorderWidth, cont
|
|
|
7595
7618
|
alignItems: "center",
|
|
7596
7619
|
justifyContent: "center"
|
|
7597
7620
|
}));
|
|
7598
|
-
var StyledIndicator2 =
|
|
7621
|
+
var StyledIndicator2 = styled51(View)(({ indicatorSize, indicatorBgColor }) => ({
|
|
7599
7622
|
width: indicatorSize,
|
|
7600
7623
|
height: indicatorSize,
|
|
7601
7624
|
borderRadius: indicatorSize / 2,
|
|
7602
7625
|
backgroundColor: indicatorBgColor
|
|
7603
7626
|
}));
|
|
7604
|
-
var StyledTextContent =
|
|
7627
|
+
var StyledTextContent = styled51(View)(({ textContentGap }) => ({
|
|
7605
7628
|
// Take the row's remaining width so long label/subText wraps within the tile
|
|
7606
7629
|
// instead of pushing the trailing asset past the tile's edge.
|
|
7607
7630
|
flex: 1,
|
|
7608
7631
|
flexDirection: "column",
|
|
7609
7632
|
gap: textContentGap
|
|
7610
7633
|
}));
|
|
7611
|
-
var StyledAssetWrapper =
|
|
7634
|
+
var StyledAssetWrapper = styled51(View)({
|
|
7612
7635
|
alignSelf: "center"
|
|
7613
7636
|
});
|
|
7614
|
-
var StyledTagWrapper =
|
|
7637
|
+
var StyledTagWrapper = styled51(View)(
|
|
7615
7638
|
({ tagTopPadding }) => ({
|
|
7616
7639
|
alignItems: "flex-start",
|
|
7617
7640
|
paddingTop: tagTopPadding
|
|
7618
7641
|
})
|
|
7619
7642
|
);
|
|
7620
|
-
var Radio =
|
|
7643
|
+
var Radio = React66.forwardRef(
|
|
7621
7644
|
(_a, ref) => {
|
|
7622
7645
|
var _b = _a, {
|
|
7623
7646
|
variant = "standalone",
|
|
@@ -7649,9 +7672,9 @@ var Radio = React65.forwardRef(
|
|
|
7649
7672
|
if (disabled) return;
|
|
7650
7673
|
onSelect == null ? void 0 : onSelect(value);
|
|
7651
7674
|
};
|
|
7652
|
-
const controlSize =
|
|
7653
|
-
const indicatorSize =
|
|
7654
|
-
const borderWidthVal =
|
|
7675
|
+
const controlSize = parseTokenValue41(radio.size.control.default);
|
|
7676
|
+
const indicatorSize = parseTokenValue41(radio.size.indicator.default);
|
|
7677
|
+
const borderWidthVal = parseTokenValue41(radio.borderWidth.default);
|
|
7655
7678
|
const isTile = variant === "tile";
|
|
7656
7679
|
return /* @__PURE__ */ jsxs(
|
|
7657
7680
|
StyledRadioRoot,
|
|
@@ -7661,17 +7684,17 @@ var Radio = React65.forwardRef(
|
|
|
7661
7684
|
disabled,
|
|
7662
7685
|
accessibilityRole: "radio",
|
|
7663
7686
|
accessibilityState: { selected, disabled },
|
|
7664
|
-
radioGap:
|
|
7687
|
+
radioGap: parseTokenValue41(
|
|
7665
7688
|
isTile ? radio.radioTile.spacing.gap : spacing.gap
|
|
7666
7689
|
),
|
|
7667
7690
|
radioOpacity: disabled ? parseFloat(radio.opacity.disabled) : 1,
|
|
7668
|
-
radioPaddingVertical: isTile ?
|
|
7669
|
-
radioPaddingHorizontal: isTile ?
|
|
7670
|
-
radioMaxWidth: isTile ?
|
|
7691
|
+
radioPaddingVertical: isTile ? parseTokenValue41(radio.radioTile.spacing.verticalPadding) : void 0,
|
|
7692
|
+
radioPaddingHorizontal: isTile ? parseTokenValue41(radio.radioTile.spacing.horizontalPadding) : void 0,
|
|
7693
|
+
radioMaxWidth: isTile ? parseTokenValue41(radio.radioTile.size.maxWidth) : void 0,
|
|
7671
7694
|
radioBgColor: isTile ? selected ? radio.radioTile.colour.background.selected : radio.radioTile.colour.background.default : void 0,
|
|
7672
|
-
radioBorderWidth: isTile ?
|
|
7695
|
+
radioBorderWidth: isTile ? parseTokenValue41(radio.radioTile.borderWidth.default) : void 0,
|
|
7673
7696
|
radioBorderColor: isTile ? selected ? radio.radioTile.colour.border.selected : radio.radioTile.colour.border.default : void 0,
|
|
7674
|
-
radioBorderRadius: isTile ?
|
|
7697
|
+
radioBorderRadius: isTile ? parseTokenValue41(radio.radioTile.borderRadius.default) : void 0,
|
|
7675
7698
|
style: typeof style === "function" ? void 0 : style
|
|
7676
7699
|
}, rest), {
|
|
7677
7700
|
children: [
|
|
@@ -7693,7 +7716,7 @@ var Radio = React65.forwardRef(
|
|
|
7693
7716
|
(label || subText || tag) && /* @__PURE__ */ jsxs(
|
|
7694
7717
|
StyledTextContent,
|
|
7695
7718
|
{
|
|
7696
|
-
textContentGap:
|
|
7719
|
+
textContentGap: parseTokenValue41(spacing.content.gap),
|
|
7697
7720
|
children: [
|
|
7698
7721
|
label && /* @__PURE__ */ jsx(Typography, { token: typography.label, color: colour.text.title, children: label }),
|
|
7699
7722
|
subText && /* @__PURE__ */ jsx(
|
|
@@ -7707,7 +7730,7 @@ var Radio = React65.forwardRef(
|
|
|
7707
7730
|
tag && /* @__PURE__ */ jsx(
|
|
7708
7731
|
StyledTagWrapper,
|
|
7709
7732
|
{
|
|
7710
|
-
tagTopPadding:
|
|
7733
|
+
tagTopPadding: parseTokenValue41(spacing.content.tag.topPadding),
|
|
7711
7734
|
children: /* @__PURE__ */ jsx(Tag, __spreadValues({}, tag))
|
|
7712
7735
|
}
|
|
7713
7736
|
)
|
|
@@ -7721,16 +7744,16 @@ var Radio = React65.forwardRef(
|
|
|
7721
7744
|
}
|
|
7722
7745
|
);
|
|
7723
7746
|
Radio.displayName = "Radio";
|
|
7724
|
-
var RadioTile =
|
|
7747
|
+
var RadioTile = React66.forwardRef(
|
|
7725
7748
|
(props, ref) => /* @__PURE__ */ jsx(Radio, __spreadProps(__spreadValues({ ref }, props), { variant: "tile" }))
|
|
7726
7749
|
);
|
|
7727
7750
|
RadioTile.displayName = "RadioTile";
|
|
7728
|
-
var
|
|
7729
|
-
var StyledRadioGroup =
|
|
7751
|
+
var parseTokenValue42 = (value) => parseFloat(value);
|
|
7752
|
+
var StyledRadioGroup = styled51(View)(({ groupDirection, groupGap }) => ({
|
|
7730
7753
|
flexDirection: groupDirection,
|
|
7731
7754
|
gap: groupGap
|
|
7732
7755
|
}));
|
|
7733
|
-
var RadioGroupRoot =
|
|
7756
|
+
var RadioGroupRoot = React66.forwardRef(
|
|
7734
7757
|
(_a, ref) => {
|
|
7735
7758
|
var _b = _a, {
|
|
7736
7759
|
name: _name,
|
|
@@ -7757,11 +7780,11 @@ var RadioGroupRoot = React65.forwardRef(
|
|
|
7757
7780
|
const optionsFirstValue = (_a2 = options == null ? void 0 : options[0]) == null ? void 0 : _a2.value;
|
|
7758
7781
|
const derivedDefaultValue = defaultValue != null ? defaultValue : optionsFirstValue;
|
|
7759
7782
|
const isControlled = value !== void 0;
|
|
7760
|
-
const [internalValue, setInternalValue] =
|
|
7783
|
+
const [internalValue, setInternalValue] = React66.useState(
|
|
7761
7784
|
derivedDefaultValue != null ? derivedDefaultValue : ""
|
|
7762
7785
|
);
|
|
7763
7786
|
const currentValue = isControlled ? value : internalValue;
|
|
7764
|
-
const handleSelect =
|
|
7787
|
+
const handleSelect = React66.useCallback(
|
|
7765
7788
|
(newValue) => {
|
|
7766
7789
|
if (!isControlled) {
|
|
7767
7790
|
setInternalValue(newValue);
|
|
@@ -7782,9 +7805,9 @@ var RadioGroupRoot = React65.forwardRef(
|
|
|
7782
7805
|
option.value
|
|
7783
7806
|
));
|
|
7784
7807
|
}
|
|
7785
|
-
return
|
|
7786
|
-
if (!
|
|
7787
|
-
return
|
|
7808
|
+
return React66.Children.map(children, (child) => {
|
|
7809
|
+
if (!React66.isValidElement(child)) return child;
|
|
7810
|
+
return React66.cloneElement(child, {
|
|
7788
7811
|
selected: currentValue === child.props.value,
|
|
7789
7812
|
onSelect: handleSelect,
|
|
7790
7813
|
disabled: disabled || child.props.disabled
|
|
@@ -7797,7 +7820,7 @@ var RadioGroupRoot = React65.forwardRef(
|
|
|
7797
7820
|
ref,
|
|
7798
7821
|
accessibilityRole: "radiogroup",
|
|
7799
7822
|
groupDirection: orientation === "horizontal" ? "row" : "column",
|
|
7800
|
-
groupGap:
|
|
7823
|
+
groupGap: parseTokenValue42(radio.spacing.gap)
|
|
7801
7824
|
}, rest), {
|
|
7802
7825
|
children: renderChildren()
|
|
7803
7826
|
})
|
|
@@ -7809,11 +7832,11 @@ var RadioGroup = Object.assign(RadioGroupRoot, {
|
|
|
7809
7832
|
Radio,
|
|
7810
7833
|
Tile: RadioTile
|
|
7811
7834
|
});
|
|
7812
|
-
var SearchFieldInput =
|
|
7835
|
+
var SearchFieldInput = React66.forwardRef((_a, ref) => {
|
|
7813
7836
|
var _b = _a, { onClear, onValueChange, value, state } = _b, inputFieldProps = __objRest(_b, ["onClear", "onValueChange", "value", "state"]);
|
|
7814
|
-
const [internalValue, setInternalValue] =
|
|
7815
|
-
const inputRef =
|
|
7816
|
-
|
|
7837
|
+
const [internalValue, setInternalValue] = React66.useState("");
|
|
7838
|
+
const inputRef = React66.useRef(null);
|
|
7839
|
+
React66.useImperativeHandle(ref, () => inputRef.current);
|
|
7817
7840
|
const handleValueChange = (newValue) => {
|
|
7818
7841
|
setInternalValue(newValue);
|
|
7819
7842
|
onValueChange == null ? void 0 : onValueChange(newValue);
|
|
@@ -7852,14 +7875,14 @@ var SearchFieldInput = React65.forwardRef((_a, ref) => {
|
|
|
7852
7875
|
);
|
|
7853
7876
|
});
|
|
7854
7877
|
SearchFieldInput.displayName = "SearchField.Field";
|
|
7855
|
-
var
|
|
7856
|
-
var StyledRoot13 =
|
|
7878
|
+
var parseTokenValue43 = (value) => parseFloat(value);
|
|
7879
|
+
var StyledRoot13 = styled51(View)(({ theme: theme2 }) => {
|
|
7857
7880
|
const { spacing } = theme2.tokens.components.inputs;
|
|
7858
7881
|
return {
|
|
7859
|
-
gap:
|
|
7882
|
+
gap: parseTokenValue43(spacing.gap)
|
|
7860
7883
|
};
|
|
7861
7884
|
});
|
|
7862
|
-
var SearchFieldRoot =
|
|
7885
|
+
var SearchFieldRoot = React66.forwardRef(
|
|
7863
7886
|
(_a, ref) => {
|
|
7864
7887
|
var _b = _a, {
|
|
7865
7888
|
label,
|
|
@@ -7929,8 +7952,8 @@ function useSearchField({
|
|
|
7929
7952
|
onClear: handleClear
|
|
7930
7953
|
};
|
|
7931
7954
|
}
|
|
7932
|
-
var
|
|
7933
|
-
var StyledSegmentItem =
|
|
7955
|
+
var parseTokenValue44 = (value) => parseFloat(value);
|
|
7956
|
+
var StyledSegmentItem = styled51(Pressable)(
|
|
7934
7957
|
({
|
|
7935
7958
|
itemHeight,
|
|
7936
7959
|
itemMinWidth,
|
|
@@ -7950,14 +7973,14 @@ var StyledSegmentItem = styled50(Pressable)(
|
|
|
7950
7973
|
opacity: itemOpacity
|
|
7951
7974
|
}, itemFlex !== void 0 ? { flex: itemFlex } : { flexShrink: 0 })
|
|
7952
7975
|
);
|
|
7953
|
-
var StyledIntrinsicClip =
|
|
7976
|
+
var StyledIntrinsicClip = styled51(View)(({ clipBorderRadius, clipBgColor, clipWidth }) => __spreadValues({
|
|
7954
7977
|
overflow: "hidden",
|
|
7955
7978
|
borderRadius: clipBorderRadius,
|
|
7956
7979
|
backgroundColor: clipBgColor,
|
|
7957
7980
|
alignSelf: "flex-start",
|
|
7958
7981
|
maxWidth: "100%"
|
|
7959
7982
|
}, clipWidth !== void 0 ? { width: clipWidth } : {}));
|
|
7960
|
-
var StyledScrollIndicator =
|
|
7983
|
+
var StyledScrollIndicator = styled51(Pressable)(
|
|
7961
7984
|
({
|
|
7962
7985
|
indicatorSide,
|
|
7963
7986
|
indicatorBorderRadius,
|
|
@@ -7989,7 +8012,7 @@ var ScrollIndicatorGradient = ({
|
|
|
7989
8012
|
side,
|
|
7990
8013
|
color
|
|
7991
8014
|
}) => {
|
|
7992
|
-
const uid =
|
|
8015
|
+
const uid = React66.useId();
|
|
7993
8016
|
const gradientId = `sc-scroll-indicator-${side}-${uid}`;
|
|
7994
8017
|
const isTrailing = side === "trailing";
|
|
7995
8018
|
return /* @__PURE__ */ jsx(View, { style: StyleSheet.absoluteFill, pointerEvents: "none", children: /* @__PURE__ */ jsxs(Svg, { width: "100%", height: "100%", preserveAspectRatio: "none", children: [
|
|
@@ -8013,7 +8036,7 @@ var ScrollIndicatorGradient = ({
|
|
|
8013
8036
|
/* @__PURE__ */ jsx(Rect, { width: "100%", height: "100%", fill: `url(#${gradientId})` })
|
|
8014
8037
|
] }) });
|
|
8015
8038
|
};
|
|
8016
|
-
var StyledContainer2 =
|
|
8039
|
+
var StyledContainer2 = styled51(View)(
|
|
8017
8040
|
({
|
|
8018
8041
|
containerGap,
|
|
8019
8042
|
containerPaddingVertical,
|
|
@@ -8061,10 +8084,10 @@ var SegmentedControlItemBase = ({
|
|
|
8061
8084
|
disabled,
|
|
8062
8085
|
accessibilityRole: "button",
|
|
8063
8086
|
accessibilityState: { selected, disabled },
|
|
8064
|
-
itemHeight:
|
|
8065
|
-
itemMinWidth:
|
|
8066
|
-
itemPaddingHorizontal:
|
|
8067
|
-
itemBorderRadius:
|
|
8087
|
+
itemHeight: parseTokenValue44(size.small.height),
|
|
8088
|
+
itemMinWidth: parseTokenValue44(size.small.minWidth),
|
|
8089
|
+
itemPaddingHorizontal: parseTokenValue44(spacing.horizontalPadding),
|
|
8090
|
+
itemBorderRadius: parseTokenValue44(borderRadius.default),
|
|
8068
8091
|
itemBgColor: selected ? colour.background.selected : "transparent",
|
|
8069
8092
|
itemOpacity: disabled ? parseFloat(opacity.disabled.default) : 1,
|
|
8070
8093
|
itemFlex: layout === "fixed" ? 1 : void 0,
|
|
@@ -8072,7 +8095,7 @@ var SegmentedControlItemBase = ({
|
|
|
8072
8095
|
}
|
|
8073
8096
|
);
|
|
8074
8097
|
};
|
|
8075
|
-
var SegmentedControlItem =
|
|
8098
|
+
var SegmentedControlItem = React66.forwardRef(
|
|
8076
8099
|
(_props, _ref) => {
|
|
8077
8100
|
return null;
|
|
8078
8101
|
}
|
|
@@ -8088,10 +8111,10 @@ var IntrinsicTrack = (_a) => {
|
|
|
8088
8111
|
"renderItems",
|
|
8089
8112
|
"forwardedRef"
|
|
8090
8113
|
]);
|
|
8091
|
-
const scrollRef =
|
|
8092
|
-
const [containerWidth, setContainerWidth] =
|
|
8093
|
-
const [contentWidth, setContentWidth] =
|
|
8094
|
-
const [scrollX, setScrollX] =
|
|
8114
|
+
const scrollRef = React66.useRef(null);
|
|
8115
|
+
const [containerWidth, setContainerWidth] = React66.useState(0);
|
|
8116
|
+
const [contentWidth, setContentWidth] = React66.useState(0);
|
|
8117
|
+
const [scrollX, setScrollX] = React66.useState(0);
|
|
8095
8118
|
const epsilon = 2;
|
|
8096
8119
|
const maxScroll = Math.max(0, contentWidth - containerWidth);
|
|
8097
8120
|
const canScrollLeft = scrollX > epsilon;
|
|
@@ -8187,7 +8210,7 @@ var IntrinsicTrack = (_a) => {
|
|
|
8187
8210
|
})
|
|
8188
8211
|
);
|
|
8189
8212
|
};
|
|
8190
|
-
var SegmentedControlRoot =
|
|
8213
|
+
var SegmentedControlRoot = React66.forwardRef(
|
|
8191
8214
|
(_a, ref) => {
|
|
8192
8215
|
var _b = _a, {
|
|
8193
8216
|
options,
|
|
@@ -8211,18 +8234,18 @@ var SegmentedControlRoot = React65.forwardRef(
|
|
|
8211
8234
|
const { spacing, borderRadius, colour } = theme2.tokens.components.segmentedControl;
|
|
8212
8235
|
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
8213
8236
|
const optionsFirstValue = (_a2 = options == null ? void 0 : options[0]) == null ? void 0 : _a2.value;
|
|
8214
|
-
const childrenArray =
|
|
8237
|
+
const childrenArray = React66.Children.toArray(children);
|
|
8215
8238
|
const firstChildValue = childrenArray.map((child) => {
|
|
8216
|
-
if (!
|
|
8239
|
+
if (!React66.isValidElement(child)) return void 0;
|
|
8217
8240
|
return child.props.value;
|
|
8218
8241
|
}).find((v) => typeof v === "string");
|
|
8219
8242
|
const derivedDefaultValue = (_b2 = defaultValue != null ? defaultValue : optionsFirstValue) != null ? _b2 : firstChildValue;
|
|
8220
8243
|
const isControlled = typeof value === "string";
|
|
8221
|
-
const [uncontrolledValue, setUncontrolledValue] =
|
|
8244
|
+
const [uncontrolledValue, setUncontrolledValue] = React66.useState(
|
|
8222
8245
|
() => derivedDefaultValue != null ? derivedDefaultValue : ""
|
|
8223
8246
|
);
|
|
8224
8247
|
const currentValue = isControlled ? value : uncontrolledValue;
|
|
8225
|
-
const handleSelect =
|
|
8248
|
+
const handleSelect = React66.useCallback(
|
|
8226
8249
|
(newValue) => {
|
|
8227
8250
|
if (!isControlled) {
|
|
8228
8251
|
setUncontrolledValue(newValue);
|
|
@@ -8248,7 +8271,7 @@ var SegmentedControlRoot = React65.forwardRef(
|
|
|
8248
8271
|
));
|
|
8249
8272
|
}
|
|
8250
8273
|
return childrenArray.map((child) => {
|
|
8251
|
-
if (!
|
|
8274
|
+
if (!React66.isValidElement(child)) return child;
|
|
8252
8275
|
const childProps = child.props;
|
|
8253
8276
|
return /* @__PURE__ */ jsx(
|
|
8254
8277
|
SegmentedControlItemBase,
|
|
@@ -8266,14 +8289,14 @@ var SegmentedControlRoot = React65.forwardRef(
|
|
|
8266
8289
|
});
|
|
8267
8290
|
};
|
|
8268
8291
|
const containerProps = {
|
|
8269
|
-
containerGap:
|
|
8270
|
-
containerPaddingVertical:
|
|
8271
|
-
containerPaddingHorizontal:
|
|
8272
|
-
containerBorderRadius:
|
|
8292
|
+
containerGap: parseTokenValue44(spacing.gap),
|
|
8293
|
+
containerPaddingVertical: parseTokenValue44(spacing.verticalPadding),
|
|
8294
|
+
containerPaddingHorizontal: parseTokenValue44(spacing.horizontalPadding),
|
|
8295
|
+
containerBorderRadius: parseTokenValue44(borderRadius.default),
|
|
8273
8296
|
containerBgColor: colour.background.default,
|
|
8274
8297
|
containerFullWidth: layout === "fixed",
|
|
8275
|
-
scrollIndicatorPaddingOuter:
|
|
8276
|
-
scrollIndicatorPaddingInner:
|
|
8298
|
+
scrollIndicatorPaddingOuter: parseTokenValue44(dimensions3.spacing["2xl"]),
|
|
8299
|
+
scrollIndicatorPaddingInner: parseTokenValue44(dimensions3.spacing.sm)
|
|
8277
8300
|
};
|
|
8278
8301
|
if (layout === "intrinsic") {
|
|
8279
8302
|
return /* @__PURE__ */ jsx(
|
|
@@ -8292,8 +8315,8 @@ SegmentedControlRoot.displayName = "SegmentedControl";
|
|
|
8292
8315
|
var SegmentedControl = Object.assign(SegmentedControlRoot, {
|
|
8293
8316
|
Item: SegmentedControlItem
|
|
8294
8317
|
});
|
|
8295
|
-
var
|
|
8296
|
-
var StyledTriggerWrapper =
|
|
8318
|
+
var parseTokenValue45 = (value) => parseFloat(value);
|
|
8319
|
+
var StyledTriggerWrapper = styled51(Animated.View)(({
|
|
8297
8320
|
theme: theme2,
|
|
8298
8321
|
state: _state
|
|
8299
8322
|
}) => {
|
|
@@ -8301,25 +8324,25 @@ var StyledTriggerWrapper = styled50(Animated.View)(({
|
|
|
8301
8324
|
return {
|
|
8302
8325
|
flexDirection: "row",
|
|
8303
8326
|
alignItems: "center",
|
|
8304
|
-
gap:
|
|
8305
|
-
minWidth:
|
|
8327
|
+
gap: parseTokenValue45(spacing.field.gap),
|
|
8328
|
+
minWidth: parseTokenValue45(size.field.minWidth),
|
|
8306
8329
|
width: "100%",
|
|
8307
|
-
height:
|
|
8330
|
+
height: parseTokenValue45(size.field.height),
|
|
8308
8331
|
backgroundColor: colour.field.background.default,
|
|
8309
|
-
borderRadius:
|
|
8332
|
+
borderRadius: parseTokenValue45(borderRadius.field.default)
|
|
8310
8333
|
};
|
|
8311
8334
|
});
|
|
8312
|
-
var StyledIconWrapper2 =
|
|
8335
|
+
var StyledIconWrapper2 = styled51(View)({
|
|
8313
8336
|
flexShrink: 0,
|
|
8314
8337
|
alignItems: "center",
|
|
8315
8338
|
justifyContent: "center"
|
|
8316
8339
|
});
|
|
8317
|
-
var StyledArrowIcon =
|
|
8340
|
+
var StyledArrowIcon = styled51(Animated.View)({
|
|
8318
8341
|
flexShrink: 0,
|
|
8319
8342
|
alignItems: "center",
|
|
8320
8343
|
justifyContent: "center"
|
|
8321
8344
|
});
|
|
8322
|
-
var SelectFieldTrigger =
|
|
8345
|
+
var SelectFieldTrigger = React66.forwardRef(
|
|
8323
8346
|
(_a, ref) => {
|
|
8324
8347
|
var _b = _a, {
|
|
8325
8348
|
state = "default",
|
|
@@ -8339,10 +8362,10 @@ var SelectFieldTrigger = React65.forwardRef(
|
|
|
8339
8362
|
const theme2 = useTheme();
|
|
8340
8363
|
const { colour, borderWidth, spacing } = theme2.tokens.components.inputs;
|
|
8341
8364
|
const hasState = state === "error" || state === "success";
|
|
8342
|
-
const baseBorderWidth =
|
|
8343
|
-
const selectedBorderWidth =
|
|
8344
|
-
const baseVerticalPadding =
|
|
8345
|
-
const baseHorizontalPadding =
|
|
8365
|
+
const baseBorderWidth = parseTokenValue45(borderWidth.field.default);
|
|
8366
|
+
const selectedBorderWidth = parseTokenValue45(borderWidth.field.selected);
|
|
8367
|
+
const baseVerticalPadding = parseTokenValue45(spacing.field.verticalPadding);
|
|
8368
|
+
const baseHorizontalPadding = parseTokenValue45(
|
|
8346
8369
|
spacing.field.horizontalPadding
|
|
8347
8370
|
);
|
|
8348
8371
|
const borderDelta = selectedBorderWidth - baseBorderWidth;
|
|
@@ -8418,7 +8441,7 @@ var SelectFieldTrigger = React65.forwardRef(
|
|
|
8418
8441
|
}
|
|
8419
8442
|
);
|
|
8420
8443
|
SelectFieldTrigger.displayName = "SelectField.Trigger";
|
|
8421
|
-
var SelectFieldValue =
|
|
8444
|
+
var SelectFieldValue = React66.forwardRef(
|
|
8422
8445
|
(_a, ref) => {
|
|
8423
8446
|
var _b = _a, { placeholder } = _b, rest = __objRest(_b, ["placeholder"]);
|
|
8424
8447
|
const theme2 = useTheme();
|
|
@@ -8435,34 +8458,34 @@ var SelectFieldValue = React65.forwardRef(
|
|
|
8435
8458
|
}
|
|
8436
8459
|
);
|
|
8437
8460
|
SelectFieldValue.displayName = "SelectField.Value";
|
|
8438
|
-
var
|
|
8439
|
-
var StyledContentShadow =
|
|
8461
|
+
var parseTokenValue46 = (value) => parseFloat(value);
|
|
8462
|
+
var StyledContentShadow = styled51(View)(({ theme: theme2 }) => {
|
|
8440
8463
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
8441
8464
|
const shadow = dropdown.list.dropshadow.default;
|
|
8442
8465
|
return {
|
|
8443
|
-
borderRadius:
|
|
8466
|
+
borderRadius: parseTokenValue46(dropdown.list.borderRadius.default),
|
|
8444
8467
|
shadowColor: shadow.color,
|
|
8445
8468
|
shadowOffset: {
|
|
8446
|
-
width:
|
|
8447
|
-
height:
|
|
8469
|
+
width: parseTokenValue46(shadow.offsetX),
|
|
8470
|
+
height: parseTokenValue46(shadow.offsetY)
|
|
8448
8471
|
},
|
|
8449
8472
|
shadowOpacity: 1,
|
|
8450
|
-
shadowRadius:
|
|
8473
|
+
shadowRadius: parseTokenValue46(shadow.blur),
|
|
8451
8474
|
elevation: 8
|
|
8452
8475
|
};
|
|
8453
8476
|
});
|
|
8454
|
-
var StyledContentInner =
|
|
8477
|
+
var StyledContentInner = styled51(View)(({ theme: theme2 }) => {
|
|
8455
8478
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
8456
8479
|
const { colour } = theme2.tokens.components.inputs;
|
|
8457
8480
|
return {
|
|
8458
8481
|
backgroundColor: colour.field.background.default,
|
|
8459
|
-
borderRadius:
|
|
8460
|
-
minWidth:
|
|
8461
|
-
maxHeight:
|
|
8482
|
+
borderRadius: parseTokenValue46(dropdown.list.borderRadius.default),
|
|
8483
|
+
minWidth: parseTokenValue46(dropdown.list.size.minWidth),
|
|
8484
|
+
maxHeight: parseTokenValue46(dropdown.list.size.maxHeight),
|
|
8462
8485
|
overflow: "hidden"
|
|
8463
8486
|
};
|
|
8464
8487
|
});
|
|
8465
|
-
var SelectFieldContent =
|
|
8488
|
+
var SelectFieldContent = React66.forwardRef((_a, ref) => {
|
|
8466
8489
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
8467
8490
|
const theme2 = useTheme();
|
|
8468
8491
|
const { spacing } = theme2.tokens.components.inputs;
|
|
@@ -8473,7 +8496,7 @@ var SelectFieldContent = React65.forwardRef((_a, ref) => {
|
|
|
8473
8496
|
{
|
|
8474
8497
|
side: "bottom",
|
|
8475
8498
|
align: "start",
|
|
8476
|
-
sideOffset:
|
|
8499
|
+
sideOffset: parseTokenValue46(spacing.gap),
|
|
8477
8500
|
alignOffset: 0,
|
|
8478
8501
|
asChild: true,
|
|
8479
8502
|
children: /* @__PURE__ */ jsx(Slot, { ref, children: /* @__PURE__ */ jsx(StyledContentShadow, __spreadProps(__spreadValues({}, rest), { children: /* @__PURE__ */ jsx(StyledContentInner, { children: /* @__PURE__ */ jsx(SelectPrimitive3.Viewport, { children: /* @__PURE__ */ jsx(
|
|
@@ -8490,54 +8513,54 @@ var SelectFieldContent = React65.forwardRef((_a, ref) => {
|
|
|
8490
8513
|
] });
|
|
8491
8514
|
});
|
|
8492
8515
|
SelectFieldContent.displayName = "SelectField.Content";
|
|
8493
|
-
var
|
|
8494
|
-
var StyledItem3 =
|
|
8516
|
+
var parseTokenValue47 = (value) => parseFloat(value);
|
|
8517
|
+
var StyledItem3 = styled51(Pressable)(({ theme: theme2 }) => {
|
|
8495
8518
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
8496
8519
|
return {
|
|
8497
8520
|
flexDirection: "row",
|
|
8498
8521
|
alignItems: "center",
|
|
8499
|
-
gap:
|
|
8500
|
-
height:
|
|
8501
|
-
paddingVertical:
|
|
8502
|
-
paddingHorizontal:
|
|
8522
|
+
gap: parseTokenValue47(dropdown.listItem.content.gap),
|
|
8523
|
+
height: parseTokenValue47(dropdown.listItem.size.height),
|
|
8524
|
+
paddingVertical: parseTokenValue47(dropdown.listItem.spacing.verticalPadding),
|
|
8525
|
+
paddingHorizontal: parseTokenValue47(
|
|
8503
8526
|
dropdown.listItem.spacing.horiztonalPadding
|
|
8504
8527
|
),
|
|
8505
8528
|
backgroundColor: dropdown.listItem.colour.background.default
|
|
8506
8529
|
};
|
|
8507
8530
|
});
|
|
8508
|
-
var StyledIconWrapper3 =
|
|
8531
|
+
var StyledIconWrapper3 = styled51(View)({
|
|
8509
8532
|
flexShrink: 0,
|
|
8510
8533
|
alignItems: "center",
|
|
8511
8534
|
justifyContent: "center"
|
|
8512
8535
|
});
|
|
8513
|
-
var StyledContentWrapper =
|
|
8536
|
+
var StyledContentWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
8514
8537
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
8515
8538
|
return {
|
|
8516
8539
|
flexDirection: "row",
|
|
8517
8540
|
alignItems: "center",
|
|
8518
|
-
gap:
|
|
8541
|
+
gap: parseTokenValue47(dropdown.listItem.content.gap),
|
|
8519
8542
|
flex: 1,
|
|
8520
8543
|
minWidth: 0
|
|
8521
8544
|
};
|
|
8522
8545
|
});
|
|
8523
|
-
var StyledTextWrapper2 =
|
|
8546
|
+
var StyledTextWrapper2 = styled51(View)({
|
|
8524
8547
|
flex: 1,
|
|
8525
8548
|
minWidth: 0
|
|
8526
8549
|
});
|
|
8527
|
-
var StyledItemText =
|
|
8550
|
+
var StyledItemText = styled51(Text)(({ theme: theme2 }) => {
|
|
8528
8551
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
8529
8552
|
return {
|
|
8530
8553
|
color: dropdown.listItem.colour.text.placeholder.default
|
|
8531
8554
|
};
|
|
8532
8555
|
});
|
|
8533
|
-
var StyledHintText =
|
|
8556
|
+
var StyledHintText = styled51(Text)(({ theme: theme2 }) => {
|
|
8534
8557
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
8535
8558
|
return {
|
|
8536
8559
|
color: dropdown.listItem.colour.text.hint.default,
|
|
8537
8560
|
flexShrink: 0
|
|
8538
8561
|
};
|
|
8539
8562
|
});
|
|
8540
|
-
var SelectFieldItem =
|
|
8563
|
+
var SelectFieldItem = React66.forwardRef(
|
|
8541
8564
|
(_a, ref) => {
|
|
8542
8565
|
var _b = _a, { value, leadingIcon, hintText, children, disabled, isSelected } = _b, rest = __objRest(_b, ["value", "leadingIcon", "hintText", "children", "disabled", "isSelected"]);
|
|
8543
8566
|
const theme2 = useTheme();
|
|
@@ -8572,24 +8595,24 @@ var SelectFieldItem = React65.forwardRef(
|
|
|
8572
8595
|
}
|
|
8573
8596
|
);
|
|
8574
8597
|
SelectFieldItem.displayName = "SelectField.Item";
|
|
8575
|
-
var
|
|
8576
|
-
var StyledNoResults =
|
|
8598
|
+
var parseTokenValue48 = (value) => parseFloat(value);
|
|
8599
|
+
var StyledNoResults = styled51(View)(({ theme: theme2 }) => {
|
|
8577
8600
|
const { dropdown } = theme2.tokens.components.dropdownList;
|
|
8578
8601
|
return {
|
|
8579
|
-
paddingVertical:
|
|
8580
|
-
paddingHorizontal:
|
|
8602
|
+
paddingVertical: parseTokenValue48(dropdown.listItem.spacing.verticalPadding),
|
|
8603
|
+
paddingHorizontal: parseTokenValue48(
|
|
8581
8604
|
dropdown.listItem.spacing.horiztonalPadding
|
|
8582
8605
|
),
|
|
8583
8606
|
alignItems: "center"
|
|
8584
8607
|
};
|
|
8585
8608
|
});
|
|
8586
|
-
var StyledRoot14 =
|
|
8609
|
+
var StyledRoot14 = styled51(View)(({ theme: theme2 }) => {
|
|
8587
8610
|
const { spacing } = theme2.tokens.components.inputs;
|
|
8588
8611
|
return {
|
|
8589
|
-
gap:
|
|
8612
|
+
gap: parseTokenValue48(spacing.gap)
|
|
8590
8613
|
};
|
|
8591
8614
|
});
|
|
8592
|
-
var SelectFieldRoot =
|
|
8615
|
+
var SelectFieldRoot = React66.forwardRef(
|
|
8593
8616
|
(_a, ref) => {
|
|
8594
8617
|
var _b = _a, {
|
|
8595
8618
|
label,
|
|
@@ -8624,15 +8647,15 @@ var SelectFieldRoot = React65.forwardRef(
|
|
|
8624
8647
|
"searchPlaceholder",
|
|
8625
8648
|
"noResultsText"
|
|
8626
8649
|
]);
|
|
8627
|
-
const [isOpen, setIsOpen] =
|
|
8628
|
-
const [showContent, setShowContent] =
|
|
8629
|
-
const [internalValue, setInternalValue] =
|
|
8650
|
+
const [isOpen, setIsOpen] = React66.useState(false);
|
|
8651
|
+
const [showContent, setShowContent] = React66.useState(false);
|
|
8652
|
+
const [internalValue, setInternalValue] = React66.useState(
|
|
8630
8653
|
defaultValue != null ? defaultValue : null
|
|
8631
8654
|
);
|
|
8632
|
-
const [searchQuery, setSearchQuery] =
|
|
8633
|
-
const [clearKey, setClearKey] =
|
|
8634
|
-
const searchInputRef =
|
|
8635
|
-
|
|
8655
|
+
const [searchQuery, setSearchQuery] = React66.useState("");
|
|
8656
|
+
const [clearKey, setClearKey] = React66.useState(0);
|
|
8657
|
+
const searchInputRef = React66.useRef(null);
|
|
8658
|
+
React66.useEffect(() => {
|
|
8636
8659
|
if (!isOpen) {
|
|
8637
8660
|
setShowContent(false);
|
|
8638
8661
|
return;
|
|
@@ -8665,8 +8688,8 @@ var SelectFieldRoot = React65.forwardRef(
|
|
|
8665
8688
|
keyboardSub.remove();
|
|
8666
8689
|
};
|
|
8667
8690
|
}, [isOpen, searchable]);
|
|
8668
|
-
const isCompound =
|
|
8669
|
-
(child) =>
|
|
8691
|
+
const isCompound = React66.Children.toArray(children).some(
|
|
8692
|
+
(child) => React66.isValidElement(child) && child.type === SelectFieldContent
|
|
8670
8693
|
);
|
|
8671
8694
|
if (isCompound) {
|
|
8672
8695
|
return /* @__PURE__ */ jsx(StyledRoot14, __spreadProps(__spreadValues({ ref }, rest), { children }));
|
|
@@ -8681,11 +8704,11 @@ var SelectFieldRoot = React65.forwardRef(
|
|
|
8681
8704
|
if (!open) setSearchQuery("");
|
|
8682
8705
|
};
|
|
8683
8706
|
const currentValue = value !== void 0 ? value : internalValue;
|
|
8684
|
-
const allItems =
|
|
8707
|
+
const allItems = React66.Children.toArray(children);
|
|
8685
8708
|
const filteredItems = searchable ? allItems.filter((child) => {
|
|
8686
8709
|
var _a2;
|
|
8687
8710
|
if (!searchQuery) return true;
|
|
8688
|
-
if (
|
|
8711
|
+
if (React66.isValidElement(child) && child.type === SelectFieldItem) {
|
|
8689
8712
|
const label2 = String(
|
|
8690
8713
|
(_a2 = child.props.children) != null ? _a2 : ""
|
|
8691
8714
|
);
|
|
@@ -8754,10 +8777,10 @@ var SelectFieldRoot = React65.forwardRef(
|
|
|
8754
8777
|
] })),
|
|
8755
8778
|
showContent && /* @__PURE__ */ jsxs(SelectFieldContent, { children: [
|
|
8756
8779
|
filteredItems.map((child) => {
|
|
8757
|
-
if (
|
|
8780
|
+
if (React66.isValidElement(child) && child.type === SelectFieldItem) {
|
|
8758
8781
|
const selectedValue = currentValue && typeof currentValue === "object" && "value" in currentValue ? currentValue.value : currentValue;
|
|
8759
8782
|
const childProps = child.props;
|
|
8760
|
-
return
|
|
8783
|
+
return React66.cloneElement(
|
|
8761
8784
|
child,
|
|
8762
8785
|
{
|
|
8763
8786
|
isSelected: childProps.value === selectedValue
|
|
@@ -8822,7 +8845,7 @@ var { dimensions } = semantics;
|
|
|
8822
8845
|
var parseSize = (value) => {
|
|
8823
8846
|
return parseInt(value.replace("px", ""), 10);
|
|
8824
8847
|
};
|
|
8825
|
-
var Wrapper =
|
|
8848
|
+
var Wrapper = styled51(View)({
|
|
8826
8849
|
borderWidth: parseSize(inputTokens.borderWidth.field.selected),
|
|
8827
8850
|
borderColor: inputTokens.colour.field.border.selected,
|
|
8828
8851
|
borderRadius: parseSize(inputTokens.borderRadius.field.default),
|
|
@@ -8834,29 +8857,29 @@ var Wrapper = styled50(View)({
|
|
|
8834
8857
|
alignItems: "center",
|
|
8835
8858
|
justifyContent: "space-between"
|
|
8836
8859
|
});
|
|
8837
|
-
var SelectIcon =
|
|
8860
|
+
var SelectIcon = styled51(Animated10.View)({
|
|
8838
8861
|
position: "absolute",
|
|
8839
8862
|
right: 0,
|
|
8840
8863
|
marginRight: 0
|
|
8841
8864
|
});
|
|
8842
|
-
var InputText2 =
|
|
8865
|
+
var InputText2 = styled51(Text)({
|
|
8843
8866
|
color: inputTokens.colour.field.text.default,
|
|
8844
8867
|
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
8845
8868
|
fontWeight: inputTokens.field.placeholder.default.fontWeight,
|
|
8846
8869
|
flex: 1
|
|
8847
8870
|
});
|
|
8848
|
-
var PlaceholderText =
|
|
8871
|
+
var PlaceholderText = styled51(Text)({
|
|
8849
8872
|
color: inputTokens.colour.field.text.placeholder,
|
|
8850
8873
|
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
8851
8874
|
fontWeight: inputTokens.field.placeholder.default.fontWeight,
|
|
8852
8875
|
flex: 1
|
|
8853
8876
|
});
|
|
8854
|
-
var ModalOverlay =
|
|
8877
|
+
var ModalOverlay = styled51(View)({
|
|
8855
8878
|
flex: 1,
|
|
8856
8879
|
backgroundColor: "rgba(0, 0, 0, 0.32)",
|
|
8857
8880
|
justifyContent: "flex-end"
|
|
8858
8881
|
});
|
|
8859
|
-
var AndroidDialog =
|
|
8882
|
+
var AndroidDialog = styled51(View)({
|
|
8860
8883
|
backgroundColor: inputTokens.colour.field.background.default,
|
|
8861
8884
|
borderTopLeftRadius: parseSize(dimensions.borderRadius.lg),
|
|
8862
8885
|
borderTopRightRadius: parseSize(dimensions.borderRadius.lg),
|
|
@@ -8866,14 +8889,14 @@ var AndroidDialog = styled50(View)({
|
|
|
8866
8889
|
paddingBottom: parseSize(dimensions.spacing.xl),
|
|
8867
8890
|
paddingHorizontal: parseSize(dimensions.spacing.md)
|
|
8868
8891
|
});
|
|
8869
|
-
var DialogTitle =
|
|
8892
|
+
var DialogTitle = styled51(Text)({
|
|
8870
8893
|
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
8871
8894
|
fontWeight: inputTokens.text.label.fontWeight,
|
|
8872
8895
|
color: inputTokens.colour.field.text.default,
|
|
8873
8896
|
marginBottom: parseSize(dimensions.spacing.md),
|
|
8874
8897
|
marginLeft: parseSize(dimensions.spacing.xs)
|
|
8875
8898
|
});
|
|
8876
|
-
var AndroidOptionRow =
|
|
8899
|
+
var AndroidOptionRow = styled51(View)({
|
|
8877
8900
|
flexDirection: "row",
|
|
8878
8901
|
alignItems: "center",
|
|
8879
8902
|
paddingVertical: parseSize(dimensions.spacing.md),
|
|
@@ -8881,7 +8904,7 @@ var AndroidOptionRow = styled50(View)({
|
|
|
8881
8904
|
borderBottomWidth: parseSize(dimensions.borderWidth.sm),
|
|
8882
8905
|
borderBottomColor: themeTokens.primitives.colour.brand.brown[2]
|
|
8883
8906
|
});
|
|
8884
|
-
var RadioOuter =
|
|
8907
|
+
var RadioOuter = styled51(View)({
|
|
8885
8908
|
width: parseSize(dimensions.spacing.lg),
|
|
8886
8909
|
height: parseSize(dimensions.spacing.lg),
|
|
8887
8910
|
borderRadius: parseSize(dimensions.spacing.lg) / 2,
|
|
@@ -8891,13 +8914,13 @@ var RadioOuter = styled50(View)({
|
|
|
8891
8914
|
justifyContent: "center",
|
|
8892
8915
|
marginRight: parseSize(dimensions.spacing.sm)
|
|
8893
8916
|
});
|
|
8894
|
-
var RadioInner =
|
|
8917
|
+
var RadioInner = styled51(View)({
|
|
8895
8918
|
width: parseSize(dimensions.spacing.md) / 2,
|
|
8896
8919
|
height: parseSize(dimensions.spacing.md) / 2,
|
|
8897
8920
|
borderRadius: parseSize(dimensions.spacing.md) / 4,
|
|
8898
8921
|
backgroundColor: inputTokens.colour.field.border.selected
|
|
8899
8922
|
});
|
|
8900
|
-
var AndroidOptionText =
|
|
8923
|
+
var AndroidOptionText = styled51(Text)(
|
|
8901
8924
|
({ isSelected }) => ({
|
|
8902
8925
|
fontSize: parseSize(inputTokens.field.placeholder.default.fontSize),
|
|
8903
8926
|
fontWeight: isSelected ? inputTokens.text.label.fontWeight : inputTokens.field.placeholder.default.fontWeight,
|
|
@@ -8924,7 +8947,7 @@ var useIconAnimation = () => {
|
|
|
8924
8947
|
iconAnimationStyles
|
|
8925
8948
|
};
|
|
8926
8949
|
};
|
|
8927
|
-
var NativeSelectPicker =
|
|
8950
|
+
var NativeSelectPicker = React66.forwardRef(
|
|
8928
8951
|
(_a, ref) => {
|
|
8929
8952
|
var _b = _a, {
|
|
8930
8953
|
items,
|
|
@@ -9071,19 +9094,19 @@ var NativeSelectPicker = React65.forwardRef(
|
|
|
9071
9094
|
}
|
|
9072
9095
|
);
|
|
9073
9096
|
NativeSelectPicker.displayName = "NativeSelectPicker";
|
|
9074
|
-
var
|
|
9075
|
-
var StyledLabelRow2 =
|
|
9097
|
+
var parseTokenValue49 = (value) => parseFloat(value);
|
|
9098
|
+
var StyledLabelRow2 = styled51(View)(({ labelRowGap }) => ({
|
|
9076
9099
|
flexDirection: "row",
|
|
9077
9100
|
alignItems: "center",
|
|
9078
9101
|
gap: labelRowGap
|
|
9079
9102
|
}));
|
|
9080
|
-
var StyledLabelSlot =
|
|
9103
|
+
var StyledLabelSlot = styled51(View)(({ labelSlotGap }) => ({
|
|
9081
9104
|
flexDirection: "row",
|
|
9082
9105
|
alignItems: "center",
|
|
9083
9106
|
gap: labelSlotGap,
|
|
9084
9107
|
flexShrink: 0
|
|
9085
9108
|
}));
|
|
9086
|
-
var Slider =
|
|
9109
|
+
var Slider = React66.forwardRef(
|
|
9087
9110
|
(_a, ref) => {
|
|
9088
9111
|
var _b = _a, {
|
|
9089
9112
|
value: controlledValue,
|
|
@@ -9118,10 +9141,10 @@ var Slider = React65.forwardRef(
|
|
|
9118
9141
|
const { slider, buttons } = theme2.tokens.components;
|
|
9119
9142
|
const { dimensions: dimensions3 } = theme2.tokens.semantics;
|
|
9120
9143
|
const isControlled = controlledValue !== void 0;
|
|
9121
|
-
const [internalValue, setInternalValue] =
|
|
9144
|
+
const [internalValue, setInternalValue] = React66.useState(defaultValue);
|
|
9122
9145
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
9123
|
-
const thumbSize =
|
|
9124
|
-
const trackHeight =
|
|
9146
|
+
const thumbSize = parseTokenValue49(buttons.size.md.height);
|
|
9147
|
+
const trackHeight = parseTokenValue49(slider.sizing.track.height);
|
|
9125
9148
|
const isWeb = Platform.OS === "web";
|
|
9126
9149
|
const [trackLayoutWidth, setTrackLayoutWidth] = useState(0);
|
|
9127
9150
|
const webFraction = max > min ? (currentValue - min) / (max - min) : 0;
|
|
@@ -9216,8 +9239,8 @@ var Slider = React65.forwardRef(
|
|
|
9216
9239
|
};
|
|
9217
9240
|
const hasLeading = leadingIcon !== void 0 || leadingLabel !== void 0;
|
|
9218
9241
|
const hasTrailing = trailingIcon !== void 0 || trailingLabel !== void 0;
|
|
9219
|
-
const labelGap =
|
|
9220
|
-
const roundBorderRadius =
|
|
9242
|
+
const labelGap = parseTokenValue49(slider.sliderField.spacing.label.gap);
|
|
9243
|
+
const roundBorderRadius = parseTokenValue49(dimensions3.borderRadius.round);
|
|
9221
9244
|
const thumbIconColor = buttons.iconButton.filledButton.colour.icon.primary.default;
|
|
9222
9245
|
const thumbContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9223
9246
|
/* @__PURE__ */ jsx(
|
|
@@ -9242,15 +9265,15 @@ var Slider = React65.forwardRef(
|
|
|
9242
9265
|
const thumbStyle = {
|
|
9243
9266
|
width: thumbSize,
|
|
9244
9267
|
height: thumbSize,
|
|
9245
|
-
borderRadius:
|
|
9268
|
+
borderRadius: parseTokenValue49(buttons.borderRadius.default),
|
|
9246
9269
|
backgroundColor: buttons.iconButton.filledButton.colour.background.primary.default,
|
|
9247
9270
|
flexDirection: "row",
|
|
9248
9271
|
alignItems: "center",
|
|
9249
9272
|
justifyContent: "center"
|
|
9250
9273
|
};
|
|
9251
9274
|
const outerStyle = {
|
|
9252
|
-
gap:
|
|
9253
|
-
minWidth:
|
|
9275
|
+
gap: parseTokenValue49(slider.sliderField.spacing.gap),
|
|
9276
|
+
minWidth: parseTokenValue49(slider.sizing.minWidth),
|
|
9254
9277
|
opacity: disabled ? parseFloat(buttons.opacity.disabled) : 1
|
|
9255
9278
|
};
|
|
9256
9279
|
const leadingSlot = hasLeading && /* @__PURE__ */ jsxs(StyledLabelSlot, { labelSlotGap: labelGap, children: [
|
|
@@ -9288,7 +9311,7 @@ var Slider = React65.forwardRef(
|
|
|
9288
9311
|
height: trackHeight,
|
|
9289
9312
|
borderRadius: roundBorderRadius,
|
|
9290
9313
|
backgroundColor: slider.colour.track.background.default,
|
|
9291
|
-
borderWidth:
|
|
9314
|
+
borderWidth: parseTokenValue49(dimensions3.borderWidth.sm),
|
|
9292
9315
|
borderColor: slider.colour.track.border.default
|
|
9293
9316
|
};
|
|
9294
9317
|
const indicatorBaseStyle = {
|
|
@@ -9412,8 +9435,8 @@ var ICON_MAP = {
|
|
|
9412
9435
|
warning: Error_default,
|
|
9413
9436
|
info: Info_default
|
|
9414
9437
|
};
|
|
9415
|
-
var
|
|
9416
|
-
var StyledInlineRoot =
|
|
9438
|
+
var parseTokenValue50 = (value) => parseFloat(value);
|
|
9439
|
+
var StyledInlineRoot = styled51(View)(
|
|
9417
9440
|
({ rootPaddingH, rootPaddingV, rootGap, rootBorderRadius, rootBgColor }) => ({
|
|
9418
9441
|
flexDirection: "row",
|
|
9419
9442
|
alignItems: "flex-start",
|
|
@@ -9424,7 +9447,7 @@ var StyledInlineRoot = styled50(View)(
|
|
|
9424
9447
|
backgroundColor: rootBgColor
|
|
9425
9448
|
})
|
|
9426
9449
|
);
|
|
9427
|
-
var StyledToastRoot =
|
|
9450
|
+
var StyledToastRoot = styled51(View)(
|
|
9428
9451
|
({
|
|
9429
9452
|
rootPaddingH,
|
|
9430
9453
|
rootPaddingV,
|
|
@@ -9451,7 +9474,7 @@ var StyledToastRoot = styled50(View)(
|
|
|
9451
9474
|
elevation: 4
|
|
9452
9475
|
})
|
|
9453
9476
|
);
|
|
9454
|
-
var StyledSystemRoot =
|
|
9477
|
+
var StyledSystemRoot = styled51(View)(
|
|
9455
9478
|
({
|
|
9456
9479
|
rootPaddingH,
|
|
9457
9480
|
rootPaddingTop,
|
|
@@ -9471,37 +9494,37 @@ var StyledSystemRoot = styled50(View)(
|
|
|
9471
9494
|
width: "100%"
|
|
9472
9495
|
})
|
|
9473
9496
|
);
|
|
9474
|
-
var StyledContents =
|
|
9497
|
+
var StyledContents = styled51(View)(({ contentsGap }) => ({
|
|
9475
9498
|
flexDirection: "column",
|
|
9476
9499
|
alignItems: "flex-start",
|
|
9477
9500
|
flex: 1,
|
|
9478
9501
|
minWidth: 0,
|
|
9479
9502
|
gap: contentsGap
|
|
9480
9503
|
}));
|
|
9481
|
-
var StyledCopyRow =
|
|
9504
|
+
var StyledCopyRow = styled51(View)(({ copyGap }) => ({
|
|
9482
9505
|
flexDirection: "row",
|
|
9483
9506
|
alignItems: "flex-start",
|
|
9484
9507
|
gap: copyGap,
|
|
9485
9508
|
width: "100%"
|
|
9486
9509
|
}));
|
|
9487
|
-
var StyledInlineCopy =
|
|
9510
|
+
var StyledInlineCopy = styled51(View)(({ copyGap }) => ({
|
|
9488
9511
|
flexDirection: "column",
|
|
9489
9512
|
alignItems: "flex-start",
|
|
9490
9513
|
gap: copyGap,
|
|
9491
9514
|
flex: 1,
|
|
9492
9515
|
minWidth: 0
|
|
9493
9516
|
}));
|
|
9494
|
-
var StyledLinkWrapper =
|
|
9517
|
+
var StyledLinkWrapper = styled51(View)(({ linkPaddingLeft }) => ({
|
|
9495
9518
|
paddingLeft: linkPaddingLeft,
|
|
9496
9519
|
width: "100%"
|
|
9497
9520
|
}));
|
|
9498
|
-
var StyledCloseButton =
|
|
9521
|
+
var StyledCloseButton = styled51(Pressable)({
|
|
9499
9522
|
alignItems: "center",
|
|
9500
9523
|
justifyContent: "center",
|
|
9501
9524
|
flexShrink: 0,
|
|
9502
9525
|
padding: 0
|
|
9503
9526
|
});
|
|
9504
|
-
var Notification =
|
|
9527
|
+
var Notification = React66.forwardRef(
|
|
9505
9528
|
(props, ref) => {
|
|
9506
9529
|
const _a = props, {
|
|
9507
9530
|
variant = "inline",
|
|
@@ -9537,10 +9560,10 @@ var Notification = React65.forwardRef(
|
|
|
9537
9560
|
ref,
|
|
9538
9561
|
accessible: true,
|
|
9539
9562
|
accessibilityRole: "summary",
|
|
9540
|
-
rootPaddingH:
|
|
9541
|
-
rootPaddingTop:
|
|
9542
|
-
rootPaddingBottom:
|
|
9543
|
-
rootGap:
|
|
9563
|
+
rootPaddingH: parseTokenValue50(sizeTokens.horizontalPadding),
|
|
9564
|
+
rootPaddingTop: parseTokenValue50(sizeTokens.topPadding),
|
|
9565
|
+
rootPaddingBottom: parseTokenValue50(sizeTokens.bottomPadding),
|
|
9566
|
+
rootGap: parseTokenValue50(sizeTokens.content.gap),
|
|
9544
9567
|
rootBgColor: bgMap[type],
|
|
9545
9568
|
rootAlignCenter: isLarge
|
|
9546
9569
|
}, rest), {
|
|
@@ -9565,7 +9588,7 @@ var Notification = React65.forwardRef(
|
|
|
9565
9588
|
link && /* @__PURE__ */ jsx(
|
|
9566
9589
|
StyledLinkWrapper,
|
|
9567
9590
|
{
|
|
9568
|
-
linkPaddingLeft:
|
|
9591
|
+
linkPaddingLeft: parseTokenValue50(sizeTokens.content.gap),
|
|
9569
9592
|
children: /* @__PURE__ */ jsx(
|
|
9570
9593
|
Link,
|
|
9571
9594
|
{
|
|
@@ -9589,12 +9612,12 @@ var Notification = React65.forwardRef(
|
|
|
9589
9612
|
ref,
|
|
9590
9613
|
accessible: true,
|
|
9591
9614
|
accessibilityRole: "alert",
|
|
9592
|
-
rootPaddingH:
|
|
9593
|
-
rootPaddingV:
|
|
9594
|
-
rootGap:
|
|
9595
|
-
rootBorderRadius:
|
|
9615
|
+
rootPaddingH: parseTokenValue50(toast.spacing.horizontalPadding),
|
|
9616
|
+
rootPaddingV: parseTokenValue50(toast.spacing.verticalPadding),
|
|
9617
|
+
rootGap: parseTokenValue50(toast.spacing.gap),
|
|
9618
|
+
rootBorderRadius: parseTokenValue50(toast.borderRadius.default),
|
|
9596
9619
|
rootBgColor: toast.colour.background.default,
|
|
9597
|
-
rootBorderWidth:
|
|
9620
|
+
rootBorderWidth: parseTokenValue50(toast.borderWidth.default),
|
|
9598
9621
|
rootBorderColor: toast.colour.border.default,
|
|
9599
9622
|
rootShadowColor: toast.shaddow.default.color
|
|
9600
9623
|
}, rest), {
|
|
@@ -9602,9 +9625,9 @@ var Notification = React65.forwardRef(
|
|
|
9602
9625
|
/* @__PURE__ */ jsxs(
|
|
9603
9626
|
StyledContents,
|
|
9604
9627
|
{
|
|
9605
|
-
contentsGap:
|
|
9628
|
+
contentsGap: parseTokenValue50(toast.content.spacing.gap),
|
|
9606
9629
|
children: [
|
|
9607
|
-
/* @__PURE__ */ jsxs(StyledCopyRow, { copyGap:
|
|
9630
|
+
/* @__PURE__ */ jsxs(StyledCopyRow, { copyGap: parseTokenValue50(toast.copy.spacing.gap), children: [
|
|
9608
9631
|
showIcon && /* @__PURE__ */ jsx(
|
|
9609
9632
|
Icon,
|
|
9610
9633
|
{
|
|
@@ -9626,7 +9649,7 @@ var Notification = React65.forwardRef(
|
|
|
9626
9649
|
link && /* @__PURE__ */ jsx(
|
|
9627
9650
|
StyledLinkWrapper,
|
|
9628
9651
|
{
|
|
9629
|
-
linkPaddingLeft:
|
|
9652
|
+
linkPaddingLeft: parseTokenValue50(
|
|
9630
9653
|
toast.link.spacing.leftPadding
|
|
9631
9654
|
),
|
|
9632
9655
|
children: /* @__PURE__ */ jsx(
|
|
@@ -9664,14 +9687,14 @@ var Notification = React65.forwardRef(
|
|
|
9664
9687
|
ref,
|
|
9665
9688
|
accessible: true,
|
|
9666
9689
|
accessibilityRole: "alert",
|
|
9667
|
-
rootPaddingH:
|
|
9668
|
-
rootPaddingV:
|
|
9669
|
-
rootGap:
|
|
9670
|
-
rootBorderRadius:
|
|
9690
|
+
rootPaddingH: parseTokenValue50(spacing.horizontalPadding),
|
|
9691
|
+
rootPaddingV: parseTokenValue50(spacing.verticalPadding),
|
|
9692
|
+
rootGap: parseTokenValue50(spacing.gap),
|
|
9693
|
+
rootBorderRadius: parseTokenValue50(borderRadius.default),
|
|
9671
9694
|
rootBgColor: bgMap[type]
|
|
9672
9695
|
}, rest), {
|
|
9673
9696
|
children: [
|
|
9674
|
-
/* @__PURE__ */ jsx(StyledContents, { contentsGap:
|
|
9697
|
+
/* @__PURE__ */ jsx(StyledContents, { contentsGap: parseTokenValue50(content.spacing.gap), children: /* @__PURE__ */ jsxs(StyledCopyRow, { copyGap: parseTokenValue50(content.spacing.gap), children: [
|
|
9675
9698
|
showIcon && /* @__PURE__ */ jsx(
|
|
9676
9699
|
Icon,
|
|
9677
9700
|
{
|
|
@@ -9684,7 +9707,7 @@ var Notification = React65.forwardRef(
|
|
|
9684
9707
|
/* @__PURE__ */ jsxs(
|
|
9685
9708
|
StyledInlineCopy,
|
|
9686
9709
|
{
|
|
9687
|
-
copyGap:
|
|
9710
|
+
copyGap: parseTokenValue50(content.copy.spacing.gap),
|
|
9688
9711
|
children: [
|
|
9689
9712
|
title && /* @__PURE__ */ jsx(
|
|
9690
9713
|
Typography,
|
|
@@ -9705,7 +9728,7 @@ var Notification = React65.forwardRef(
|
|
|
9705
9728
|
link && /* @__PURE__ */ jsx(
|
|
9706
9729
|
StyledLinkWrapper,
|
|
9707
9730
|
{
|
|
9708
|
-
linkPaddingLeft:
|
|
9731
|
+
linkPaddingLeft: parseTokenValue50(content.copy.spacing.gap),
|
|
9709
9732
|
children: /* @__PURE__ */ jsx(
|
|
9710
9733
|
Link,
|
|
9711
9734
|
{
|
|
@@ -9737,7 +9760,7 @@ var Notification = React65.forwardRef(
|
|
|
9737
9760
|
}
|
|
9738
9761
|
);
|
|
9739
9762
|
Notification.displayName = "Notification";
|
|
9740
|
-
var
|
|
9763
|
+
var parseTokenValue51 = (value) => parseFloat(value);
|
|
9741
9764
|
var SCALE_STEP = 0.06;
|
|
9742
9765
|
var SPRING_CONFIG = { damping: 20, stiffness: 260, mass: 0.5 };
|
|
9743
9766
|
var CARD_ENTERING = FadeInDown.duration(200).easing(Easing$1.inOut(Easing$1.quad));
|
|
@@ -9749,7 +9772,7 @@ var CARD_BASE_STYLE = {
|
|
|
9749
9772
|
right: 0,
|
|
9750
9773
|
transformOrigin: "50% 100%"
|
|
9751
9774
|
};
|
|
9752
|
-
var StyledRoot15 =
|
|
9775
|
+
var StyledRoot15 = styled51(View)(({ rootBottom, rootPaddingH }) => ({
|
|
9753
9776
|
position: "absolute",
|
|
9754
9777
|
left: 0,
|
|
9755
9778
|
right: 0,
|
|
@@ -9757,7 +9780,7 @@ var StyledRoot15 = styled50(View)(({ rootBottom, rootPaddingH }) => ({
|
|
|
9757
9780
|
paddingHorizontal: rootPaddingH,
|
|
9758
9781
|
alignItems: "stretch"
|
|
9759
9782
|
}));
|
|
9760
|
-
var StyledStack =
|
|
9783
|
+
var StyledStack = styled51(View)({
|
|
9761
9784
|
position: "relative",
|
|
9762
9785
|
width: "100%"
|
|
9763
9786
|
});
|
|
@@ -9768,7 +9791,7 @@ var StackedCard = ({
|
|
|
9768
9791
|
onDismiss
|
|
9769
9792
|
}) => {
|
|
9770
9793
|
const depthSV = useSharedValue(depth);
|
|
9771
|
-
|
|
9794
|
+
React66.useEffect(() => {
|
|
9772
9795
|
depthSV.value = withSpring(depth, SPRING_CONFIG);
|
|
9773
9796
|
}, [depth, depthSV]);
|
|
9774
9797
|
const animatedStyle = useAnimatedStyle(() => ({
|
|
@@ -9799,13 +9822,13 @@ var StackedCard = ({
|
|
|
9799
9822
|
}
|
|
9800
9823
|
);
|
|
9801
9824
|
};
|
|
9802
|
-
var StackedNotifications =
|
|
9825
|
+
var StackedNotifications = React66.forwardRef((_a, ref) => {
|
|
9803
9826
|
var _b = _a, { items, onDismiss, bottomOffset } = _b, rest = __objRest(_b, ["items", "onDismiss", "bottomOffset"]);
|
|
9804
9827
|
const theme2 = useTheme();
|
|
9805
9828
|
const { spacing } = theme2.tokens.semantics.dimensions;
|
|
9806
|
-
const [dismissed, setDismissed] =
|
|
9829
|
+
const [dismissed, setDismissed] = React66.useState(/* @__PURE__ */ new Set());
|
|
9807
9830
|
const idsKey = items.map((item) => item.id).join("|");
|
|
9808
|
-
|
|
9831
|
+
React66.useEffect(() => {
|
|
9809
9832
|
setDismissed((prev) => {
|
|
9810
9833
|
if (prev.size === 0) return prev;
|
|
9811
9834
|
const present = new Set(items.map((item) => item.id));
|
|
@@ -9818,11 +9841,11 @@ var StackedNotifications = React65.forwardRef((_a, ref) => {
|
|
|
9818
9841
|
return changed ? next : prev;
|
|
9819
9842
|
});
|
|
9820
9843
|
}, [idsKey]);
|
|
9821
|
-
const activeItems =
|
|
9844
|
+
const activeItems = React66.useMemo(
|
|
9822
9845
|
() => items.filter((item) => !dismissed.has(item.id)),
|
|
9823
9846
|
[items, dismissed]
|
|
9824
9847
|
);
|
|
9825
|
-
const layers =
|
|
9848
|
+
const layers = React66.useMemo(
|
|
9826
9849
|
() => activeItems.slice(-3).reverse(),
|
|
9827
9850
|
[activeItems]
|
|
9828
9851
|
);
|
|
@@ -9834,15 +9857,15 @@ var StackedNotifications = React65.forwardRef((_a, ref) => {
|
|
|
9834
9857
|
});
|
|
9835
9858
|
onDismiss == null ? void 0 : onDismiss(id);
|
|
9836
9859
|
};
|
|
9837
|
-
const rootBottom = bottomOffset != null ? bottomOffset :
|
|
9838
|
-
const peekStep =
|
|
9860
|
+
const rootBottom = bottomOffset != null ? bottomOffset : parseTokenValue51(spacing.lg);
|
|
9861
|
+
const peekStep = parseTokenValue51(spacing.xs);
|
|
9839
9862
|
return /* @__PURE__ */ jsx(
|
|
9840
9863
|
StyledRoot15,
|
|
9841
9864
|
__spreadProps(__spreadValues({
|
|
9842
9865
|
ref,
|
|
9843
9866
|
pointerEvents: "box-none",
|
|
9844
9867
|
rootBottom,
|
|
9845
|
-
rootPaddingH:
|
|
9868
|
+
rootPaddingH: parseTokenValue51(spacing.md)
|
|
9846
9869
|
}, rest), {
|
|
9847
9870
|
children: /* @__PURE__ */ jsx(StyledStack, { children: layers.map((item, depth) => /* @__PURE__ */ jsx(
|
|
9848
9871
|
StackedCard,
|
|
@@ -9858,16 +9881,16 @@ var StackedNotifications = React65.forwardRef((_a, ref) => {
|
|
|
9858
9881
|
);
|
|
9859
9882
|
});
|
|
9860
9883
|
StackedNotifications.displayName = "StackedNotifications";
|
|
9861
|
-
var
|
|
9884
|
+
var parseTokenValue52 = (value) => parseFloat(value);
|
|
9862
9885
|
var NIB_OFFSET = {
|
|
9863
9886
|
left: 24,
|
|
9864
9887
|
middle: 146,
|
|
9865
9888
|
right: 268
|
|
9866
9889
|
};
|
|
9867
|
-
var Container2 =
|
|
9890
|
+
var Container2 = styled51(View)(({ $width }) => ({
|
|
9868
9891
|
width: $width
|
|
9869
9892
|
}));
|
|
9870
|
-
var StyledBody =
|
|
9893
|
+
var StyledBody = styled51(View)(
|
|
9871
9894
|
({
|
|
9872
9895
|
bgColor,
|
|
9873
9896
|
borderColor,
|
|
@@ -9966,7 +9989,7 @@ function NibTriangle({
|
|
|
9966
9989
|
}
|
|
9967
9990
|
);
|
|
9968
9991
|
}
|
|
9969
|
-
var Tooltip =
|
|
9992
|
+
var Tooltip = React66.forwardRef(
|
|
9970
9993
|
(_a, ref) => {
|
|
9971
9994
|
var _b = _a, { text, alignment = "middle", position = "bottom", children } = _b, props = __objRest(_b, ["text", "alignment", "position", "children"]);
|
|
9972
9995
|
const theme2 = useTheme();
|
|
@@ -9980,9 +10003,9 @@ var Tooltip = React65.forwardRef(
|
|
|
9980
10003
|
width
|
|
9981
10004
|
} = theme2.tokens.components.tooltip;
|
|
9982
10005
|
const [open, setOpen] = useState(false);
|
|
9983
|
-
const tooltipWidth =
|
|
9984
|
-
const nibWidth =
|
|
9985
|
-
const nibHeight =
|
|
10006
|
+
const tooltipWidth = parseTokenValue52(width);
|
|
10007
|
+
const nibWidth = parseTokenValue52(nibToken.width);
|
|
10008
|
+
const nibHeight = parseTokenValue52(nibToken.height);
|
|
9986
10009
|
const nibHalfWidth = nibWidth / 2;
|
|
9987
10010
|
const nibOuterHeight = nibHeight + 1;
|
|
9988
10011
|
const nibX = NIB_OFFSET[alignment];
|
|
@@ -9991,11 +10014,11 @@ var Tooltip = React65.forwardRef(
|
|
|
9991
10014
|
const side = position === "bottom" ? "top" : "bottom";
|
|
9992
10015
|
const bgColor = colour.background.default;
|
|
9993
10016
|
const borderColor = colour.border.default;
|
|
9994
|
-
const borderW =
|
|
9995
|
-
const borderR =
|
|
9996
|
-
const topPad =
|
|
9997
|
-
const bottomPad =
|
|
9998
|
-
const horizontalPad =
|
|
10017
|
+
const borderW = parseTokenValue52(borderWidth.default);
|
|
10018
|
+
const borderR = parseTokenValue52(borderRadius.default);
|
|
10019
|
+
const topPad = parseTokenValue52(spacing.topPadding);
|
|
10020
|
+
const bottomPad = parseTokenValue52(spacing.bottomPadding);
|
|
10021
|
+
const horizontalPad = parseTokenValue52(spacing.horizontalPading);
|
|
9999
10022
|
const nibRow = /* @__PURE__ */ jsx(View, { style: { height: nibOuterHeight, position: "relative", zIndex: 2 }, children: /* @__PURE__ */ jsx(
|
|
10000
10023
|
NibTriangle,
|
|
10001
10024
|
{
|
|
@@ -10054,8 +10077,8 @@ var Tooltip = React65.forwardRef(
|
|
|
10054
10077
|
return bubble;
|
|
10055
10078
|
}
|
|
10056
10079
|
if (Platform.OS === "web") {
|
|
10057
|
-
const child =
|
|
10058
|
-
const trigger = child ?
|
|
10080
|
+
const child = React66.isValidElement(children) ? children : null;
|
|
10081
|
+
const trigger = child ? React66.cloneElement(child, {
|
|
10059
10082
|
onPress: () => {
|
|
10060
10083
|
var _a2, _b2;
|
|
10061
10084
|
(_b2 = (_a2 = child.props).onPress) == null ? void 0 : _b2.call(_a2);
|
|
@@ -10096,8 +10119,8 @@ var Tooltip = React65.forwardRef(
|
|
|
10096
10119
|
}
|
|
10097
10120
|
);
|
|
10098
10121
|
Tooltip.displayName = "Tooltip";
|
|
10099
|
-
var
|
|
10100
|
-
var StyledInsightRoot =
|
|
10122
|
+
var parseTokenValue53 = (value) => parseFloat(value);
|
|
10123
|
+
var StyledInsightRoot = styled51(View)(
|
|
10101
10124
|
({
|
|
10102
10125
|
rootGap,
|
|
10103
10126
|
rootPaddingH,
|
|
@@ -10124,7 +10147,7 @@ var StyledInsightRoot = styled50(View)(
|
|
|
10124
10147
|
minWidth: rootMinWidth
|
|
10125
10148
|
})
|
|
10126
10149
|
);
|
|
10127
|
-
var StyledInsightContent =
|
|
10150
|
+
var StyledInsightContent = styled51(View)(
|
|
10128
10151
|
({ contentGap }) => ({
|
|
10129
10152
|
flex: 1,
|
|
10130
10153
|
flexDirection: "column",
|
|
@@ -10132,7 +10155,7 @@ var StyledInsightContent = styled50(View)(
|
|
|
10132
10155
|
gap: contentGap
|
|
10133
10156
|
})
|
|
10134
10157
|
);
|
|
10135
|
-
var MessageCardInsight =
|
|
10158
|
+
var MessageCardInsight = React66.forwardRef(
|
|
10136
10159
|
(_a, ref) => {
|
|
10137
10160
|
var _b = _a, { variant = "standalone", icon, illustration, title, children } = _b, rest = __objRest(_b, ["variant", "icon", "illustration", "title", "children"]);
|
|
10138
10161
|
const theme2 = useTheme();
|
|
@@ -10141,26 +10164,26 @@ var MessageCardInsight = React65.forwardRef(
|
|
|
10141
10164
|
const isSupporting = variant === "supporting";
|
|
10142
10165
|
const supporting = insightCard.spacing.supporting;
|
|
10143
10166
|
const standalone = insightCard.spacing.standalone;
|
|
10144
|
-
const radiusStandalone =
|
|
10167
|
+
const radiusStandalone = parseTokenValue53(
|
|
10145
10168
|
insightCard.borderRadius.standalone.default
|
|
10146
10169
|
);
|
|
10147
|
-
const radiusSupporting =
|
|
10170
|
+
const radiusSupporting = parseTokenValue53(
|
|
10148
10171
|
insightCard.borderRadius.supporting.bottom
|
|
10149
10172
|
);
|
|
10150
10173
|
return /* @__PURE__ */ jsxs(
|
|
10151
10174
|
StyledInsightRoot,
|
|
10152
10175
|
__spreadProps(__spreadValues({
|
|
10153
10176
|
ref,
|
|
10154
|
-
rootGap:
|
|
10177
|
+
rootGap: parseTokenValue53(
|
|
10155
10178
|
isSupporting ? supporting.gap : standalone.gap
|
|
10156
10179
|
),
|
|
10157
|
-
rootPaddingH:
|
|
10180
|
+
rootPaddingH: parseTokenValue53(
|
|
10158
10181
|
isSupporting ? semanticSpacing.md : standalone.horizontalPadding
|
|
10159
10182
|
),
|
|
10160
|
-
rootPaddingTop:
|
|
10183
|
+
rootPaddingTop: parseTokenValue53(
|
|
10161
10184
|
isSupporting ? supporting.topPadding : standalone.verticalPadding
|
|
10162
10185
|
),
|
|
10163
|
-
rootPaddingBottom:
|
|
10186
|
+
rootPaddingBottom: parseTokenValue53(
|
|
10164
10187
|
isSupporting ? supporting.bottomPadding : standalone.verticalPadding
|
|
10165
10188
|
),
|
|
10166
10189
|
rootBorderTopLeftRadius: isSupporting ? 0 : radiusStandalone,
|
|
@@ -10168,7 +10191,7 @@ var MessageCardInsight = React65.forwardRef(
|
|
|
10168
10191
|
rootBorderBottomLeftRadius: isSupporting ? radiusSupporting : radiusStandalone,
|
|
10169
10192
|
rootBorderBottomRightRadius: isSupporting ? radiusSupporting : radiusStandalone,
|
|
10170
10193
|
rootBgColor: insightCard.colour.background.default,
|
|
10171
|
-
rootMinWidth:
|
|
10194
|
+
rootMinWidth: parseTokenValue53(insightCard.size.minWidth),
|
|
10172
10195
|
accessible: true,
|
|
10173
10196
|
accessibilityRole: "summary"
|
|
10174
10197
|
}, rest), {
|
|
@@ -10177,7 +10200,7 @@ var MessageCardInsight = React65.forwardRef(
|
|
|
10177
10200
|
/* @__PURE__ */ jsxs(
|
|
10178
10201
|
StyledInsightContent,
|
|
10179
10202
|
{
|
|
10180
|
-
contentGap:
|
|
10203
|
+
contentGap: parseTokenValue53(standalone.content.gap),
|
|
10181
10204
|
children: [
|
|
10182
10205
|
title && /* @__PURE__ */ jsx(
|
|
10183
10206
|
Typography,
|
|
@@ -10204,7 +10227,7 @@ var MessageCardInsight = React65.forwardRef(
|
|
|
10204
10227
|
}
|
|
10205
10228
|
);
|
|
10206
10229
|
MessageCardInsight.displayName = "MessageCard.Insight";
|
|
10207
|
-
var StyledBannerRoot =
|
|
10230
|
+
var StyledBannerRoot = styled51(View)(({ rootGap, rootPadding, rootBorderRadius, rootBgColor }) => ({
|
|
10208
10231
|
flexDirection: "row",
|
|
10209
10232
|
alignItems: "center",
|
|
10210
10233
|
gap: rootGap,
|
|
@@ -10212,7 +10235,7 @@ var StyledBannerRoot = styled50(View)(({ rootGap, rootPadding, rootBorderRadius,
|
|
|
10212
10235
|
borderRadius: rootBorderRadius,
|
|
10213
10236
|
backgroundColor: rootBgColor
|
|
10214
10237
|
}));
|
|
10215
|
-
var StyledBannerImage =
|
|
10238
|
+
var StyledBannerImage = styled51(View)(({ imageRadius, imageBgColor }) => ({
|
|
10216
10239
|
flexShrink: 0,
|
|
10217
10240
|
width: 108,
|
|
10218
10241
|
height: 108,
|
|
@@ -10220,14 +10243,14 @@ var StyledBannerImage = styled50(View)(({ imageRadius, imageBgColor }) => ({
|
|
|
10220
10243
|
overflow: "hidden",
|
|
10221
10244
|
backgroundColor: imageBgColor
|
|
10222
10245
|
}));
|
|
10223
|
-
var StyledBannerIllustrationSlot =
|
|
10246
|
+
var StyledBannerIllustrationSlot = styled51(View)({
|
|
10224
10247
|
flexShrink: 0,
|
|
10225
10248
|
width: 108,
|
|
10226
10249
|
height: 108,
|
|
10227
10250
|
alignItems: "center",
|
|
10228
10251
|
justifyContent: "center"
|
|
10229
10252
|
});
|
|
10230
|
-
var StyledBannerContents =
|
|
10253
|
+
var StyledBannerContents = styled51(View)(
|
|
10231
10254
|
({ contentsGap }) => ({
|
|
10232
10255
|
flex: 1,
|
|
10233
10256
|
flexDirection: "column",
|
|
@@ -10237,13 +10260,13 @@ var StyledBannerContents = styled50(View)(
|
|
|
10237
10260
|
minWidth: 0
|
|
10238
10261
|
})
|
|
10239
10262
|
);
|
|
10240
|
-
var StyledBannerCopy =
|
|
10263
|
+
var StyledBannerCopy = styled51(View)(({ copyGap }) => ({
|
|
10241
10264
|
flexDirection: "column",
|
|
10242
10265
|
alignItems: "flex-start",
|
|
10243
10266
|
gap: copyGap,
|
|
10244
10267
|
width: "100%"
|
|
10245
10268
|
}));
|
|
10246
|
-
var MessageCardBanner =
|
|
10269
|
+
var MessageCardBanner = React66.forwardRef(
|
|
10247
10270
|
(_a, ref) => {
|
|
10248
10271
|
var _b = _a, {
|
|
10249
10272
|
colourScheme = "primary",
|
|
@@ -10269,21 +10292,21 @@ var MessageCardBanner = React65.forwardRef(
|
|
|
10269
10292
|
StyledBannerRoot,
|
|
10270
10293
|
__spreadProps(__spreadValues({
|
|
10271
10294
|
ref,
|
|
10272
|
-
rootGap:
|
|
10273
|
-
rootPadding:
|
|
10274
|
-
rootBorderRadius:
|
|
10295
|
+
rootGap: parseTokenValue53(dimensions3.spacing.md),
|
|
10296
|
+
rootPadding: parseTokenValue53(dimensions3.spacing.md),
|
|
10297
|
+
rootBorderRadius: parseTokenValue53(dimensions3.borderRadius.md),
|
|
10275
10298
|
rootBgColor: bgColor,
|
|
10276
10299
|
accessible: true,
|
|
10277
10300
|
accessibilityRole: "summary"
|
|
10278
10301
|
}, rest), {
|
|
10279
10302
|
children: [
|
|
10280
|
-
(media == null ? void 0 : media.type) === "illustration" ? /* @__PURE__ */ jsx(StyledBannerIllustrationSlot, { children:
|
|
10303
|
+
(media == null ? void 0 : media.type) === "illustration" ? /* @__PURE__ */ jsx(StyledBannerIllustrationSlot, { children: React66.createElement(media.illustration, {
|
|
10281
10304
|
width: 108,
|
|
10282
10305
|
height: 108
|
|
10283
10306
|
}) }) : (media == null ? void 0 : media.type) === "image" ? /* @__PURE__ */ jsx(
|
|
10284
10307
|
StyledBannerImage,
|
|
10285
10308
|
{
|
|
10286
|
-
imageRadius:
|
|
10309
|
+
imageRadius: parseTokenValue53(dimensions3.borderRadius.sm),
|
|
10287
10310
|
imageBgColor: colour.background.surface.secondary,
|
|
10288
10311
|
children: /* @__PURE__ */ jsx(
|
|
10289
10312
|
Image,
|
|
@@ -10299,12 +10322,12 @@ var MessageCardBanner = React65.forwardRef(
|
|
|
10299
10322
|
/* @__PURE__ */ jsxs(
|
|
10300
10323
|
StyledBannerContents,
|
|
10301
10324
|
{
|
|
10302
|
-
contentsGap:
|
|
10325
|
+
contentsGap: parseTokenValue53(dimensions3.spacing.xs),
|
|
10303
10326
|
children: [
|
|
10304
10327
|
/* @__PURE__ */ jsxs(
|
|
10305
10328
|
StyledBannerCopy,
|
|
10306
10329
|
{
|
|
10307
|
-
copyGap:
|
|
10330
|
+
copyGap: parseTokenValue53(dimensions3.spacing["3xs"]),
|
|
10308
10331
|
children: [
|
|
10309
10332
|
title && /* @__PURE__ */ jsx(Typography, { variant: "heading", size: "xs", color: "primary", children: title }),
|
|
10310
10333
|
/* @__PURE__ */ jsx(Typography, { variant: "body", size: "md", color: "secondary", children })
|
|
@@ -10335,7 +10358,7 @@ var MessageCard = {
|
|
|
10335
10358
|
Insight: MessageCardInsight,
|
|
10336
10359
|
Banner: MessageCardBanner
|
|
10337
10360
|
};
|
|
10338
|
-
var
|
|
10361
|
+
var parseTokenValue54 = (value) => parseFloat(value);
|
|
10339
10362
|
var slideEaseOut = Easing$1.out(Easing$1.quad);
|
|
10340
10363
|
var MONTH_SLIDE_ENTERING = {
|
|
10341
10364
|
forward: FadeInRight.duration(250).easing(slideEaseOut),
|
|
@@ -10376,14 +10399,14 @@ function defaultGetDateState(date) {
|
|
|
10376
10399
|
function getDefaultMonthLabel(year, month, locale) {
|
|
10377
10400
|
return format(new Date(year, month, 1), "MMMM yyyy", { locale });
|
|
10378
10401
|
}
|
|
10379
|
-
var StyledContainer3 =
|
|
10402
|
+
var StyledContainer3 = styled51(View)(({ containerMaxWidth }) => ({
|
|
10380
10403
|
flexDirection: "column",
|
|
10381
10404
|
// Fill the parent by default (capped by maxWidth) so consumers don't need a
|
|
10382
10405
|
// wrapper. Overridable via the `style` prop.
|
|
10383
10406
|
width: "100%",
|
|
10384
10407
|
maxWidth: containerMaxWidth
|
|
10385
10408
|
}));
|
|
10386
|
-
var StyledMonthHeader =
|
|
10409
|
+
var StyledMonthHeader = styled51(View)(
|
|
10387
10410
|
({ headerGap, datesGap }) => ({
|
|
10388
10411
|
flexDirection: "row",
|
|
10389
10412
|
alignItems: "center",
|
|
@@ -10392,24 +10415,24 @@ var StyledMonthHeader = styled50(View)(
|
|
|
10392
10415
|
marginBottom: datesGap
|
|
10393
10416
|
})
|
|
10394
10417
|
);
|
|
10395
|
-
var StyledWeekRow =
|
|
10418
|
+
var StyledWeekRow = styled51(View)(({ weekGap }) => ({
|
|
10396
10419
|
flexDirection: "row",
|
|
10397
10420
|
// Gap between the week-day header and the month header.
|
|
10398
10421
|
marginBottom: weekGap
|
|
10399
10422
|
}));
|
|
10400
|
-
var StyledWeekCell =
|
|
10423
|
+
var StyledWeekCell = styled51(View)({
|
|
10401
10424
|
flex: 1,
|
|
10402
10425
|
alignItems: "center",
|
|
10403
10426
|
justifyContent: "center"
|
|
10404
10427
|
});
|
|
10405
|
-
var StyledDatesGrid =
|
|
10428
|
+
var StyledDatesGrid = styled51(View)(({ rowGap }) => ({
|
|
10406
10429
|
flexDirection: "column",
|
|
10407
10430
|
gap: rowGap
|
|
10408
10431
|
}));
|
|
10409
|
-
var StyledDateRow =
|
|
10432
|
+
var StyledDateRow = styled51(View)({
|
|
10410
10433
|
flexDirection: "row"
|
|
10411
10434
|
});
|
|
10412
|
-
var StyledDateCell =
|
|
10435
|
+
var StyledDateCell = styled51(View)(
|
|
10413
10436
|
({ cellHeight }) => ({
|
|
10414
10437
|
flex: 1,
|
|
10415
10438
|
height: cellHeight,
|
|
@@ -10417,7 +10440,7 @@ var StyledDateCell = styled50(View)(
|
|
|
10417
10440
|
justifyContent: "center"
|
|
10418
10441
|
})
|
|
10419
10442
|
);
|
|
10420
|
-
var StyledIndicator3 =
|
|
10443
|
+
var StyledIndicator3 = styled51(View)(
|
|
10421
10444
|
({
|
|
10422
10445
|
indicatorSize,
|
|
10423
10446
|
indicatorBorderRadius,
|
|
@@ -10437,7 +10460,7 @@ var StyledIndicator3 = styled50(View)(
|
|
|
10437
10460
|
justifyContent: "center"
|
|
10438
10461
|
})
|
|
10439
10462
|
);
|
|
10440
|
-
var DatePicker =
|
|
10463
|
+
var DatePicker = React66.forwardRef(
|
|
10441
10464
|
(_a, ref) => {
|
|
10442
10465
|
var _b = _a, {
|
|
10443
10466
|
year,
|
|
@@ -10496,17 +10519,17 @@ var DatePicker = React65.forwardRef(
|
|
|
10496
10519
|
} = useMemo(
|
|
10497
10520
|
() => ({
|
|
10498
10521
|
// Gap between the week-day header and the month header.
|
|
10499
|
-
weekGap:
|
|
10522
|
+
weekGap: parseTokenValue54(datePicker.spacing.gap),
|
|
10500
10523
|
// Gap between the month header and the dates grid.
|
|
10501
|
-
datesGap:
|
|
10502
|
-
containerMaxWidth:
|
|
10503
|
-
headerGap:
|
|
10504
|
-
cellHeight:
|
|
10505
|
-
indicatorSize:
|
|
10506
|
-
indicatorBorderRadius:
|
|
10507
|
-
selectedBorderWidth:
|
|
10508
|
-
disabledOpacity:
|
|
10509
|
-
rowGap:
|
|
10524
|
+
datesGap: parseTokenValue54(theme2.tokens.semantics.dimensions.spacing.md),
|
|
10525
|
+
containerMaxWidth: parseTokenValue54(dt.size.width) * 7,
|
|
10526
|
+
headerGap: parseTokenValue54(datePicker.month.spacing.gap),
|
|
10527
|
+
cellHeight: parseTokenValue54(dt.size.height),
|
|
10528
|
+
indicatorSize: parseTokenValue54(dt.size.indicator),
|
|
10529
|
+
indicatorBorderRadius: parseTokenValue54(dt.borderRadius.indicator),
|
|
10530
|
+
selectedBorderWidth: parseTokenValue54(dt.borderWidth.indicator.selected),
|
|
10531
|
+
disabledOpacity: parseTokenValue54(dt.opacity.disabled),
|
|
10532
|
+
rowGap: parseTokenValue54(datePicker.dates.spacing.gap)
|
|
10510
10533
|
}),
|
|
10511
10534
|
[datePicker, dt, theme2]
|
|
10512
10535
|
);
|
|
@@ -10784,26 +10807,26 @@ var buildPointerPath = (r) => {
|
|
|
10784
10807
|
"Z"
|
|
10785
10808
|
].join(" ");
|
|
10786
10809
|
};
|
|
10787
|
-
var
|
|
10788
|
-
var StyledRoot16 =
|
|
10810
|
+
var parseTokenValue55 = (value) => parseFloat(value);
|
|
10811
|
+
var StyledRoot16 = styled51(View)(({ rootGap }) => ({
|
|
10789
10812
|
flexDirection: "column",
|
|
10790
10813
|
gap: rootGap,
|
|
10791
10814
|
width: "100%"
|
|
10792
10815
|
}));
|
|
10793
|
-
var StyledRow2 =
|
|
10816
|
+
var StyledRow2 = styled51(View)(({ rowGap }) => ({
|
|
10794
10817
|
flexDirection: "row",
|
|
10795
10818
|
alignItems: "flex-start",
|
|
10796
10819
|
gap: rowGap,
|
|
10797
10820
|
width: "100%"
|
|
10798
10821
|
}));
|
|
10799
|
-
var StyledItemStack =
|
|
10822
|
+
var StyledItemStack = styled51(View)(({ stackGap }) => ({
|
|
10800
10823
|
flexDirection: "column",
|
|
10801
10824
|
alignItems: "center",
|
|
10802
10825
|
gap: stackGap,
|
|
10803
10826
|
flex: 1,
|
|
10804
10827
|
minWidth: 0
|
|
10805
10828
|
}));
|
|
10806
|
-
var StyledPictureButton =
|
|
10829
|
+
var StyledPictureButton = styled51(Pressable)(
|
|
10807
10830
|
({
|
|
10808
10831
|
buttonBorderRadius,
|
|
10809
10832
|
buttonBorderWidth,
|
|
@@ -10830,14 +10853,14 @@ var StyledPictureButton = styled50(Pressable)(
|
|
|
10830
10853
|
overflow: "hidden"
|
|
10831
10854
|
})
|
|
10832
10855
|
);
|
|
10833
|
-
var StyledPointer =
|
|
10856
|
+
var StyledPointer = styled51(Svg)(
|
|
10834
10857
|
({ pointerVisible }) => ({
|
|
10835
10858
|
width: POINTER_WIDTH,
|
|
10836
10859
|
height: POINTER_HEIGHT,
|
|
10837
10860
|
opacity: pointerVisible ? 1 : 0
|
|
10838
10861
|
})
|
|
10839
10862
|
);
|
|
10840
|
-
var PictureSelector =
|
|
10863
|
+
var PictureSelector = React66.forwardRef(
|
|
10841
10864
|
(_a, ref) => {
|
|
10842
10865
|
var _b = _a, {
|
|
10843
10866
|
label,
|
|
@@ -10864,7 +10887,7 @@ var PictureSelector = React65.forwardRef(
|
|
|
10864
10887
|
const { pictureSelector } = theme2.tokens.components;
|
|
10865
10888
|
const { pictureButton } = pictureSelector;
|
|
10866
10889
|
const isControlled = value !== void 0;
|
|
10867
|
-
const [internalValue, setInternalValue] =
|
|
10890
|
+
const [internalValue, setInternalValue] = React66.useState(defaultValue);
|
|
10868
10891
|
const selectedValue = isControlled ? value : internalValue;
|
|
10869
10892
|
const selectedItem = items.find((item) => item.value === selectedValue);
|
|
10870
10893
|
const hasInsight = Boolean(
|
|
@@ -10874,21 +10897,21 @@ var PictureSelector = React65.forwardRef(
|
|
|
10874
10897
|
if (!isControlled) setInternalValue(nextValue);
|
|
10875
10898
|
onValueChange == null ? void 0 : onValueChange(nextValue);
|
|
10876
10899
|
};
|
|
10877
|
-
const rootGap =
|
|
10878
|
-
const rowGap =
|
|
10879
|
-
const stackGap =
|
|
10880
|
-
const buttonPadding =
|
|
10881
|
-
const buttonBorderRadius =
|
|
10900
|
+
const rootGap = parseTokenValue55(pictureSelector.spacing.container.gap);
|
|
10901
|
+
const rowGap = parseTokenValue55(pictureSelector.spacing.buttons.gap);
|
|
10902
|
+
const stackGap = parseTokenValue55(pictureButton.spacing.container.gap);
|
|
10903
|
+
const buttonPadding = parseTokenValue55(pictureButton.spacing.padding);
|
|
10904
|
+
const buttonBorderRadius = parseTokenValue55(
|
|
10882
10905
|
pictureButton.borderRadius.default
|
|
10883
10906
|
);
|
|
10884
|
-
const borderWidthDefault =
|
|
10907
|
+
const borderWidthDefault = parseTokenValue55(
|
|
10885
10908
|
pictureButton.borderWidth.default
|
|
10886
10909
|
);
|
|
10887
|
-
const borderWidthActive =
|
|
10910
|
+
const borderWidthActive = parseTokenValue55(pictureButton.borderWidth.active);
|
|
10888
10911
|
const pointerPath = buildPointerPath(
|
|
10889
|
-
|
|
10912
|
+
parseTokenValue55(pictureButton.pointer.borderRadius.default)
|
|
10890
10913
|
);
|
|
10891
|
-
const resolvedMinWidth = itemMinWidth != null ? itemMinWidth :
|
|
10914
|
+
const resolvedMinWidth = itemMinWidth != null ? itemMinWidth : parseTokenValue55(pictureButton.size.minWidth);
|
|
10892
10915
|
const resolvedMinHeight = itemMinHeight != null ? itemMinHeight : resolvedMinWidth;
|
|
10893
10916
|
return /* @__PURE__ */ jsxs(
|
|
10894
10917
|
StyledRoot16,
|
|
@@ -10981,15 +11004,15 @@ var DEFAULT_UNIT_LABELS = {
|
|
|
10981
11004
|
seconds: { singular: "sec", plural: "secs" }
|
|
10982
11005
|
};
|
|
10983
11006
|
var resolveLabel = (label, value) => typeof label === "string" ? label : value === 1 ? label.singular : label.plural;
|
|
10984
|
-
var
|
|
11007
|
+
var parseTokenValue56 = (value) => parseFloat(value);
|
|
10985
11008
|
var pad = (value) => String(Math.max(0, Math.floor(value))).padStart(2, "0");
|
|
10986
|
-
var StackedRoot =
|
|
11009
|
+
var StackedRoot = styled51(View)(({ rootGap }) => ({
|
|
10987
11010
|
flexDirection: "row",
|
|
10988
11011
|
alignItems: "center",
|
|
10989
11012
|
alignSelf: "flex-start",
|
|
10990
11013
|
gap: rootGap
|
|
10991
11014
|
}));
|
|
10992
|
-
var StackedItem =
|
|
11015
|
+
var StackedItem = styled51(View)(
|
|
10993
11016
|
({
|
|
10994
11017
|
itemGap,
|
|
10995
11018
|
itemVerticalPadding,
|
|
@@ -11007,7 +11030,7 @@ var StackedItem = styled50(View)(
|
|
|
11007
11030
|
borderRadius: itemBorderRadius
|
|
11008
11031
|
})
|
|
11009
11032
|
);
|
|
11010
|
-
var StackedCountBox =
|
|
11033
|
+
var StackedCountBox = styled51(View)(({ countPaddingTop, countBgColor, countBorderRadius }) => ({
|
|
11011
11034
|
alignItems: "center",
|
|
11012
11035
|
justifyContent: "center",
|
|
11013
11036
|
// TODO: Add token — fixed count box dimensions are not yet tokenised.
|
|
@@ -11017,7 +11040,7 @@ var StackedCountBox = styled50(View)(({ countPaddingTop, countBgColor, countBord
|
|
|
11017
11040
|
backgroundColor: countBgColor,
|
|
11018
11041
|
borderRadius: countBorderRadius
|
|
11019
11042
|
}));
|
|
11020
|
-
var InlineRoot =
|
|
11043
|
+
var InlineRoot = styled51(View)(
|
|
11021
11044
|
({
|
|
11022
11045
|
rootGap,
|
|
11023
11046
|
rootVerticalPadding,
|
|
@@ -11037,18 +11060,18 @@ var InlineRoot = styled50(View)(
|
|
|
11037
11060
|
overflow: "hidden"
|
|
11038
11061
|
})
|
|
11039
11062
|
);
|
|
11040
|
-
var InlineGroup =
|
|
11063
|
+
var InlineGroup = styled51(View)(({ groupGap }) => ({
|
|
11041
11064
|
flexDirection: "row",
|
|
11042
11065
|
alignItems: "center",
|
|
11043
11066
|
justifyContent: "flex-end",
|
|
11044
11067
|
gap: groupGap
|
|
11045
11068
|
}));
|
|
11046
|
-
var InlineCount =
|
|
11069
|
+
var InlineCount = styled51(View)(({ countGap }) => ({
|
|
11047
11070
|
flexDirection: "row",
|
|
11048
11071
|
alignItems: "center",
|
|
11049
11072
|
gap: countGap
|
|
11050
11073
|
}));
|
|
11051
|
-
var Countdown =
|
|
11074
|
+
var Countdown = React66.forwardRef(
|
|
11052
11075
|
(_a, ref) => {
|
|
11053
11076
|
var _b = _a, {
|
|
11054
11077
|
layout = "stacked",
|
|
@@ -11111,28 +11134,28 @@ var Countdown = React65.forwardRef(
|
|
|
11111
11134
|
InlineRoot,
|
|
11112
11135
|
__spreadProps(__spreadValues({
|
|
11113
11136
|
ref,
|
|
11114
|
-
rootGap:
|
|
11115
|
-
rootVerticalPadding:
|
|
11137
|
+
rootGap: parseTokenValue56(countdown.spacing.gap),
|
|
11138
|
+
rootVerticalPadding: parseTokenValue56(
|
|
11116
11139
|
countdown.spacing.verticalPadding
|
|
11117
11140
|
),
|
|
11118
|
-
rootHorizontalPadding:
|
|
11141
|
+
rootHorizontalPadding: parseTokenValue56(
|
|
11119
11142
|
countdown.spacing.horizontalPadding
|
|
11120
11143
|
),
|
|
11121
11144
|
rootBgColor: countdown.colour.background.default,
|
|
11122
|
-
rootBorderRadius:
|
|
11145
|
+
rootBorderRadius: parseTokenValue56(countdown.borderRadius.default)
|
|
11123
11146
|
}, rest), {
|
|
11124
11147
|
children: [
|
|
11125
11148
|
label != null && /* @__PURE__ */ jsx(Typography, { variant: "body", weight: "bold", size: "md", color: "primary", children: label }),
|
|
11126
11149
|
/* @__PURE__ */ jsx(
|
|
11127
11150
|
InlineGroup,
|
|
11128
11151
|
{
|
|
11129
|
-
groupGap:
|
|
11130
|
-
children: units.map((unit, index) => /* @__PURE__ */ jsxs(
|
|
11152
|
+
groupGap: parseTokenValue56(countdown.countdownGroup.spacing.gap),
|
|
11153
|
+
children: units.map((unit, index) => /* @__PURE__ */ jsxs(React66.Fragment, { children: [
|
|
11131
11154
|
index > 0 && colon(`colon-${unit.key}`),
|
|
11132
11155
|
/* @__PURE__ */ jsxs(
|
|
11133
11156
|
InlineCount,
|
|
11134
11157
|
{
|
|
11135
|
-
countGap:
|
|
11158
|
+
countGap: parseTokenValue56(countdown.count.spacing.gap),
|
|
11136
11159
|
children: [
|
|
11137
11160
|
/* @__PURE__ */ jsx(
|
|
11138
11161
|
Typography,
|
|
@@ -11168,33 +11191,33 @@ var Countdown = React65.forwardRef(
|
|
|
11168
11191
|
StackedRoot,
|
|
11169
11192
|
__spreadProps(__spreadValues({
|
|
11170
11193
|
ref,
|
|
11171
|
-
rootGap:
|
|
11194
|
+
rootGap: parseTokenValue56(countdown.spacing.gap)
|
|
11172
11195
|
}, rest), {
|
|
11173
|
-
children: units.map((unit, index) => /* @__PURE__ */ jsxs(
|
|
11196
|
+
children: units.map((unit, index) => /* @__PURE__ */ jsxs(React66.Fragment, { children: [
|
|
11174
11197
|
index > 0 && colon(`colon-${unit.key}`),
|
|
11175
11198
|
/* @__PURE__ */ jsxs(
|
|
11176
11199
|
StackedItem,
|
|
11177
11200
|
{
|
|
11178
|
-
itemGap:
|
|
11179
|
-
itemVerticalPadding:
|
|
11201
|
+
itemGap: parseTokenValue56(countdownItem.spacing.gap),
|
|
11202
|
+
itemVerticalPadding: parseTokenValue56(
|
|
11180
11203
|
countdownItem.spacing.verticalPadding
|
|
11181
11204
|
),
|
|
11182
|
-
itemHorizontalPadding:
|
|
11205
|
+
itemHorizontalPadding: parseTokenValue56(
|
|
11183
11206
|
countdownItem.spacing.horizontalPadding
|
|
11184
11207
|
),
|
|
11185
11208
|
itemBgColor: countdownItem.colour.background.default,
|
|
11186
|
-
itemBorderRadius:
|
|
11209
|
+
itemBorderRadius: parseTokenValue56(
|
|
11187
11210
|
countdownItem.borderRadius.default
|
|
11188
11211
|
),
|
|
11189
11212
|
children: [
|
|
11190
11213
|
/* @__PURE__ */ jsx(
|
|
11191
11214
|
StackedCountBox,
|
|
11192
11215
|
{
|
|
11193
|
-
countPaddingTop:
|
|
11216
|
+
countPaddingTop: parseTokenValue56(
|
|
11194
11217
|
countdownItem.count.spacing.paddingTop
|
|
11195
11218
|
),
|
|
11196
11219
|
countBgColor: countdownItem.count.colour.background.default,
|
|
11197
|
-
countBorderRadius:
|
|
11220
|
+
countBorderRadius: parseTokenValue56(
|
|
11198
11221
|
countdownItem.count.borderRadius.default
|
|
11199
11222
|
),
|
|
11200
11223
|
children: /* @__PURE__ */ jsx(
|
|
@@ -11224,41 +11247,41 @@ var Countdown = React65.forwardRef(
|
|
|
11224
11247
|
}
|
|
11225
11248
|
);
|
|
11226
11249
|
Countdown.displayName = "Countdown";
|
|
11227
|
-
var
|
|
11250
|
+
var parseTokenValue57 = (value) => {
|
|
11228
11251
|
if (typeof value === "number") return value;
|
|
11229
11252
|
return parseFloat(value);
|
|
11230
11253
|
};
|
|
11231
|
-
var BadgeContainer =
|
|
11254
|
+
var BadgeContainer = styled51(View)(({ theme: theme2 }) => {
|
|
11232
11255
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
11233
11256
|
const { sizing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
11234
11257
|
const { colour } = theme2.tokens.semantics;
|
|
11235
11258
|
return {
|
|
11236
11259
|
display: "flex",
|
|
11237
11260
|
flexDirection: "row",
|
|
11238
|
-
gap:
|
|
11261
|
+
gap: parseTokenValue57(spacing["2xs"]),
|
|
11239
11262
|
alignItems: "center",
|
|
11240
11263
|
justifyContent: "center",
|
|
11241
|
-
height:
|
|
11242
|
-
paddingRight:
|
|
11264
|
+
height: parseTokenValue57(sizing["2xl"]),
|
|
11265
|
+
paddingRight: parseTokenValue57(spacing.xs),
|
|
11243
11266
|
backgroundColor: colour.background.container.brand,
|
|
11244
|
-
borderTopRightRadius:
|
|
11245
|
-
borderBottomRightRadius:
|
|
11267
|
+
borderTopRightRadius: parseTokenValue57(borderRadius.xs),
|
|
11268
|
+
borderBottomRightRadius: parseTokenValue57(borderRadius.xs)
|
|
11246
11269
|
};
|
|
11247
11270
|
});
|
|
11248
|
-
var BadgeIcon =
|
|
11271
|
+
var BadgeIcon = styled51(View)(({ theme: theme2 }) => {
|
|
11249
11272
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
11250
11273
|
const sizing = theme2.tokens.semantics.dimensions.sizing;
|
|
11251
11274
|
return {
|
|
11252
11275
|
display: "flex",
|
|
11253
11276
|
alignItems: "center",
|
|
11254
11277
|
justifyContent: "center",
|
|
11255
|
-
width:
|
|
11256
|
-
height:
|
|
11257
|
-
marginLeft:
|
|
11278
|
+
width: parseTokenValue57(sizing.md),
|
|
11279
|
+
height: parseTokenValue57(sizing.md),
|
|
11280
|
+
marginLeft: parseTokenValue57(spacing.xs),
|
|
11258
11281
|
flexShrink: 0
|
|
11259
11282
|
};
|
|
11260
11283
|
});
|
|
11261
|
-
var Badge2 =
|
|
11284
|
+
var Badge2 = React66.forwardRef(
|
|
11262
11285
|
(_a, ref) => {
|
|
11263
11286
|
var _b = _a, { icon, text } = _b, rest = __objRest(_b, ["icon", "text"]);
|
|
11264
11287
|
return /* @__PURE__ */ jsxs(BadgeContainer, __spreadProps(__spreadValues({ ref }, rest), { children: [
|
|
@@ -11268,7 +11291,7 @@ var Badge2 = React65.forwardRef(
|
|
|
11268
11291
|
}
|
|
11269
11292
|
);
|
|
11270
11293
|
Badge2.displayName = "ProductListingCard.Badge";
|
|
11271
|
-
var StyledGrid =
|
|
11294
|
+
var StyledGrid = styled51(View)(({ theme: theme2 }) => {
|
|
11272
11295
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
11273
11296
|
return {
|
|
11274
11297
|
display: "grid",
|
|
@@ -11276,7 +11299,7 @@ var StyledGrid = styled50(View)(({ theme: theme2 }) => {
|
|
|
11276
11299
|
"grid-row-gap": spacing.xl
|
|
11277
11300
|
};
|
|
11278
11301
|
});
|
|
11279
|
-
var Grid =
|
|
11302
|
+
var Grid = React66.forwardRef(
|
|
11280
11303
|
(_a, ref) => {
|
|
11281
11304
|
var _b = _a, { children, xs = 1, md = 2, lg = 3 } = _b, rest = __objRest(_b, ["children", "xs", "md", "lg"]);
|
|
11282
11305
|
const { width } = useWindowDimensions();
|
|
@@ -11303,69 +11326,69 @@ var Grid = React65.forwardRef(
|
|
|
11303
11326
|
}
|
|
11304
11327
|
);
|
|
11305
11328
|
Grid.displayName = "ProductListingCard.Grid";
|
|
11306
|
-
var
|
|
11329
|
+
var parseTokenValue58 = (value) => {
|
|
11307
11330
|
if (typeof value === "number") return value;
|
|
11308
11331
|
return parseFloat(value);
|
|
11309
11332
|
};
|
|
11310
|
-
var StyledRoot17 =
|
|
11333
|
+
var StyledRoot17 = styled51(Pressable)(({ theme: theme2 }) => {
|
|
11311
11334
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
11312
11335
|
return {
|
|
11313
11336
|
display: "flex",
|
|
11314
11337
|
flexDirection: "column",
|
|
11315
|
-
gap:
|
|
11338
|
+
gap: parseTokenValue58(spacing.md),
|
|
11316
11339
|
alignItems: "flex-start",
|
|
11317
11340
|
width: "100%"
|
|
11318
11341
|
};
|
|
11319
11342
|
});
|
|
11320
|
-
var ImageContainer =
|
|
11343
|
+
var ImageContainer = styled51(View)(({ theme: theme2 }) => ({
|
|
11321
11344
|
position: "relative",
|
|
11322
11345
|
width: "100%",
|
|
11323
11346
|
aspectRatio: 1,
|
|
11324
11347
|
overflow: "hidden",
|
|
11325
|
-
borderRadius:
|
|
11348
|
+
borderRadius: parseTokenValue58(
|
|
11326
11349
|
theme2.tokens.semantics.dimensions.borderRadius.md
|
|
11327
11350
|
)
|
|
11328
11351
|
}));
|
|
11329
|
-
var StyledImage2 =
|
|
11352
|
+
var StyledImage2 = styled51(Image)({
|
|
11330
11353
|
width: "100%",
|
|
11331
11354
|
height: "100%",
|
|
11332
11355
|
resizeMode: "cover"
|
|
11333
11356
|
});
|
|
11334
|
-
var BadgeContainer2 =
|
|
11357
|
+
var BadgeContainer2 = styled51(View)(({ theme: theme2 }) => ({
|
|
11335
11358
|
position: "absolute",
|
|
11336
|
-
top:
|
|
11359
|
+
top: parseTokenValue58(theme2.tokens.semantics.dimensions.spacing.md),
|
|
11337
11360
|
left: 0
|
|
11338
11361
|
}));
|
|
11339
|
-
var ContentContainer =
|
|
11362
|
+
var ContentContainer = styled51(View)(({ theme: theme2 }) => {
|
|
11340
11363
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
11341
11364
|
return {
|
|
11342
11365
|
display: "flex",
|
|
11343
11366
|
flexDirection: "column",
|
|
11344
|
-
gap:
|
|
11367
|
+
gap: parseTokenValue58(spacing.md),
|
|
11345
11368
|
alignItems: "flex-start",
|
|
11346
11369
|
width: "100%"
|
|
11347
11370
|
};
|
|
11348
11371
|
});
|
|
11349
|
-
var DetailsContainer =
|
|
11372
|
+
var DetailsContainer = styled51(View)({
|
|
11350
11373
|
display: "flex",
|
|
11351
11374
|
flexDirection: "column",
|
|
11352
11375
|
alignItems: "flex-start",
|
|
11353
11376
|
width: "100%"
|
|
11354
11377
|
});
|
|
11355
|
-
var CategoryWrapper =
|
|
11378
|
+
var CategoryWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
11356
11379
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
11357
11380
|
return {
|
|
11358
|
-
marginBottom:
|
|
11381
|
+
marginBottom: parseTokenValue58(spacing["3xs"])
|
|
11359
11382
|
};
|
|
11360
11383
|
});
|
|
11361
|
-
var TitleContainer =
|
|
11384
|
+
var TitleContainer = styled51(View)({
|
|
11362
11385
|
display: "flex",
|
|
11363
11386
|
flexDirection: "row",
|
|
11364
11387
|
width: "100%",
|
|
11365
11388
|
// 6px below the title to match Figma (4px title bottom padding + 2px gap).
|
|
11366
11389
|
marginBottom: 6
|
|
11367
11390
|
});
|
|
11368
|
-
var PricingContainer =
|
|
11391
|
+
var PricingContainer = styled51(View)(({ theme: theme2 }) => {
|
|
11369
11392
|
const spacing = theme2.tokens.semantics.dimensions.spacing;
|
|
11370
11393
|
return {
|
|
11371
11394
|
display: "flex",
|
|
@@ -11375,7 +11398,7 @@ var PricingContainer = styled50(View)(({ theme: theme2 }) => {
|
|
|
11375
11398
|
width: "100%"
|
|
11376
11399
|
};
|
|
11377
11400
|
});
|
|
11378
|
-
var _ProductListingCard =
|
|
11401
|
+
var _ProductListingCard = React66.forwardRef(
|
|
11379
11402
|
(_a, ref) => {
|
|
11380
11403
|
var _b = _a, {
|
|
11381
11404
|
image,
|
|
@@ -11417,7 +11440,7 @@ var _ProductListingCard = React65.forwardRef(
|
|
|
11417
11440
|
accessibilityLabel: imageAlt,
|
|
11418
11441
|
accessible: true
|
|
11419
11442
|
}
|
|
11420
|
-
) :
|
|
11443
|
+
) : React66.isValidElement(image) ? image : /* @__PURE__ */ jsx(
|
|
11421
11444
|
StyledImage2,
|
|
11422
11445
|
{
|
|
11423
11446
|
source: image,
|
|
@@ -11455,14 +11478,14 @@ var ProductListingCardWithBadgeAndGrid = Object.assign(_ProductListingCard, {
|
|
|
11455
11478
|
Badge: Badge2,
|
|
11456
11479
|
Grid
|
|
11457
11480
|
});
|
|
11458
|
-
var StyledCardContainer =
|
|
11481
|
+
var StyledCardContainer = styled51(View, {
|
|
11459
11482
|
shouldForwardProp: (prop) => prop !== "showBanner"
|
|
11460
11483
|
})(({ theme: theme2 }) => {
|
|
11461
11484
|
const { spacing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
11462
11485
|
const { colour } = theme2.tokens.semantics;
|
|
11463
|
-
const spacingMd =
|
|
11464
|
-
const spacingXl =
|
|
11465
|
-
const radiusMd =
|
|
11486
|
+
const spacingMd = parseTokenValue9(spacing.md);
|
|
11487
|
+
const spacingXl = parseTokenValue9(spacing.xl);
|
|
11488
|
+
const radiusMd = parseTokenValue9(borderRadius.md);
|
|
11466
11489
|
return {
|
|
11467
11490
|
flexDirection: "row",
|
|
11468
11491
|
width: "100%",
|
|
@@ -11486,7 +11509,7 @@ var StyledCardContainer = styled50(View, {
|
|
|
11486
11509
|
flex: 1
|
|
11487
11510
|
};
|
|
11488
11511
|
});
|
|
11489
|
-
var StyledImage3 =
|
|
11512
|
+
var StyledImage3 = styled51(View)(({ theme: theme2, imageBackgroundColor, thumbnailWidth = 148 }) => ({
|
|
11490
11513
|
flexShrink: 0,
|
|
11491
11514
|
backgroundColor: imageBackgroundColor || theme2.tokens.semantics.colour.background.container.secondary,
|
|
11492
11515
|
overflow: "hidden",
|
|
@@ -11496,24 +11519,24 @@ var StyledImage3 = styled50(View)(({ theme: theme2, imageBackgroundColor, thumbn
|
|
|
11496
11519
|
minHeight: thumbnailWidth,
|
|
11497
11520
|
position: "relative"
|
|
11498
11521
|
}));
|
|
11499
|
-
var StyledContentArea =
|
|
11522
|
+
var StyledContentArea = styled51(View)(({ theme: theme2 }) => {
|
|
11500
11523
|
const { spacing } = theme2.tokens.semantics.dimensions;
|
|
11501
|
-
const paddingValue =
|
|
11524
|
+
const paddingValue = parseTokenValue9(spacing.md);
|
|
11502
11525
|
return {
|
|
11503
11526
|
flex: 1,
|
|
11504
11527
|
paddingHorizontal: paddingValue,
|
|
11505
11528
|
paddingVertical: paddingValue,
|
|
11506
|
-
gap:
|
|
11529
|
+
gap: parseTokenValue9(spacing.xs),
|
|
11507
11530
|
justifyContent: "space-between"
|
|
11508
11531
|
};
|
|
11509
11532
|
});
|
|
11510
|
-
var StyledTextContainer =
|
|
11533
|
+
var StyledTextContainer = styled51(View)(() => ({
|
|
11511
11534
|
gap: 2
|
|
11512
11535
|
}));
|
|
11513
|
-
var StyledBannerWrapper =
|
|
11536
|
+
var StyledBannerWrapper = styled51(View)(({ theme: theme2 }) => {
|
|
11514
11537
|
const { spacing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
11515
|
-
const radiusMd =
|
|
11516
|
-
const spacingMd =
|
|
11538
|
+
const radiusMd = parseTokenValue9(borderRadius.md);
|
|
11539
|
+
const spacingMd = parseTokenValue9(spacing.md);
|
|
11517
11540
|
return {
|
|
11518
11541
|
width: "100%",
|
|
11519
11542
|
// Tuck the banner up to overlap with card bottom; the 27px notification padding
|
|
@@ -11524,16 +11547,16 @@ var StyledBannerWrapper = styled50(View)(({ theme: theme2 }) => {
|
|
|
11524
11547
|
paddingBottom: spacingMd
|
|
11525
11548
|
};
|
|
11526
11549
|
});
|
|
11527
|
-
var StyledRootWrapper =
|
|
11550
|
+
var StyledRootWrapper = styled51(View)(() => {
|
|
11528
11551
|
return {
|
|
11529
11552
|
flexDirection: "column",
|
|
11530
11553
|
width: "100%"
|
|
11531
11554
|
};
|
|
11532
11555
|
});
|
|
11533
|
-
var StyledNotification =
|
|
11556
|
+
var StyledNotification = styled51(Notification)(({ theme: theme2 }) => {
|
|
11534
11557
|
const { spacing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
11535
|
-
const spacingMd =
|
|
11536
|
-
const radiusMd =
|
|
11558
|
+
const spacingMd = parseTokenValue9(spacing.md);
|
|
11559
|
+
const radiusMd = parseTokenValue9(borderRadius.md);
|
|
11537
11560
|
return {
|
|
11538
11561
|
paddingHorizontal: spacingMd,
|
|
11539
11562
|
// 27px top padding (Figma) leaves a small cream reveal above the text once
|
|
@@ -11547,11 +11570,11 @@ var StyledNotification = styled50(Notification)(({ theme: theme2 }) => {
|
|
|
11547
11570
|
borderBottomRightRadius: radiusMd
|
|
11548
11571
|
};
|
|
11549
11572
|
});
|
|
11550
|
-
var StyledNoneBanner =
|
|
11573
|
+
var StyledNoneBanner = styled51(View)(({ theme: theme2 }) => {
|
|
11551
11574
|
const { spacing, borderRadius } = theme2.tokens.semantics.dimensions;
|
|
11552
11575
|
const { colour } = theme2.tokens.semantics;
|
|
11553
|
-
const spacingMd =
|
|
11554
|
-
const radiusMd =
|
|
11576
|
+
const spacingMd = parseTokenValue9(spacing.md);
|
|
11577
|
+
const radiusMd = parseTokenValue9(borderRadius.md);
|
|
11555
11578
|
return {
|
|
11556
11579
|
paddingHorizontal: spacingMd,
|
|
11557
11580
|
paddingTop: 27,
|
|
@@ -11563,7 +11586,7 @@ var StyledNoneBanner = styled50(View)(({ theme: theme2 }) => {
|
|
|
11563
11586
|
borderBottomRightRadius: radiusMd
|
|
11564
11587
|
};
|
|
11565
11588
|
});
|
|
11566
|
-
var ProductDisplayCard =
|
|
11589
|
+
var ProductDisplayCard = React66.forwardRef(
|
|
11567
11590
|
(_a, ref) => {
|
|
11568
11591
|
var _b = _a, {
|
|
11569
11592
|
title,
|
|
@@ -11693,9 +11716,9 @@ var ProductDisplayCard = React65.forwardRef(
|
|
|
11693
11716
|
}
|
|
11694
11717
|
);
|
|
11695
11718
|
ProductDisplayCard.displayName = "ProductDisplayCard";
|
|
11696
|
-
var TabNavigationContext =
|
|
11719
|
+
var TabNavigationContext = React66.createContext(void 0);
|
|
11697
11720
|
var useTabNavigationContext = () => {
|
|
11698
|
-
const context =
|
|
11721
|
+
const context = React66.useContext(TabNavigationContext);
|
|
11699
11722
|
if (!context) {
|
|
11700
11723
|
throw new Error(
|
|
11701
11724
|
"TabNavigation.List, TabNavigation.Tab and TabNavigation.Panel must be used within a TabNavigation component."
|
|
@@ -11703,13 +11726,13 @@ var useTabNavigationContext = () => {
|
|
|
11703
11726
|
}
|
|
11704
11727
|
return context;
|
|
11705
11728
|
};
|
|
11706
|
-
var
|
|
11707
|
-
var StyledFixedList =
|
|
11729
|
+
var parseTokenValue59 = (value) => parseFloat(value);
|
|
11730
|
+
var StyledFixedList = styled51(View)({
|
|
11708
11731
|
flexDirection: "row",
|
|
11709
11732
|
alignItems: "stretch",
|
|
11710
11733
|
width: "100%"
|
|
11711
11734
|
});
|
|
11712
|
-
var StyledTab =
|
|
11735
|
+
var StyledTab = styled51(Pressable)(
|
|
11713
11736
|
({
|
|
11714
11737
|
tabHeight,
|
|
11715
11738
|
tabMinWidth,
|
|
@@ -11734,7 +11757,7 @@ var StyledTab = styled50(Pressable)(
|
|
|
11734
11757
|
borderBottomColor: tabBorderColor
|
|
11735
11758
|
}, tabFlex !== void 0 ? { flex: tabFlex } : { flexShrink: 0 })
|
|
11736
11759
|
);
|
|
11737
|
-
var TabNavigationList =
|
|
11760
|
+
var TabNavigationList = React66.forwardRef(
|
|
11738
11761
|
(_a, ref) => {
|
|
11739
11762
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
11740
11763
|
const { layout } = useTabNavigationContext();
|
|
@@ -11753,7 +11776,7 @@ var TabNavigationList = React65.forwardRef(
|
|
|
11753
11776
|
}
|
|
11754
11777
|
);
|
|
11755
11778
|
TabNavigationList.displayName = "TabNavigation.List";
|
|
11756
|
-
var TabNavigationTab =
|
|
11779
|
+
var TabNavigationTab = React66.forwardRef(
|
|
11757
11780
|
(_a, ref) => {
|
|
11758
11781
|
var _b = _a, { value, disabled = false, icon, avatar, children } = _b, rest = __objRest(_b, ["value", "disabled", "icon", "avatar", "children"]);
|
|
11759
11782
|
const { layout } = useTabNavigationContext();
|
|
@@ -11769,13 +11792,13 @@ var TabNavigationTab = React65.forwardRef(
|
|
|
11769
11792
|
StyledTab,
|
|
11770
11793
|
__spreadProps(__spreadValues({
|
|
11771
11794
|
ref,
|
|
11772
|
-
tabHeight:
|
|
11773
|
-
tabMinWidth:
|
|
11774
|
-
tabPaddingTop:
|
|
11775
|
-
tabPaddingBottom:
|
|
11776
|
-
tabPaddingHorizontal:
|
|
11777
|
-
tabGap:
|
|
11778
|
-
tabBorderWidth:
|
|
11795
|
+
tabHeight: parseTokenValue59(tabitem.size.height),
|
|
11796
|
+
tabMinWidth: parseTokenValue59(tabitem.size.minWidth),
|
|
11797
|
+
tabPaddingTop: parseTokenValue59(spacing.topPadding),
|
|
11798
|
+
tabPaddingBottom: parseTokenValue59(spacing.bottomPadding),
|
|
11799
|
+
tabPaddingHorizontal: parseTokenValue59(spacing.horizontalPadding),
|
|
11800
|
+
tabGap: parseTokenValue59(spacing.gap),
|
|
11801
|
+
tabBorderWidth: parseTokenValue59(borderWidth.default),
|
|
11779
11802
|
tabBorderColor: borderColour,
|
|
11780
11803
|
tabFlex: layout === "fixed" ? 1 : void 0
|
|
11781
11804
|
}, rest), {
|
|
@@ -11789,7 +11812,7 @@ var TabNavigationTab = React65.forwardRef(
|
|
|
11789
11812
|
}
|
|
11790
11813
|
);
|
|
11791
11814
|
TabNavigationTab.displayName = "TabNavigation.Tab";
|
|
11792
|
-
var TabNavigationPanel =
|
|
11815
|
+
var TabNavigationPanel = React66.forwardRef(
|
|
11793
11816
|
(_a, ref) => {
|
|
11794
11817
|
var _b = _a, { value, children } = _b, rest = __objRest(_b, ["value", "children"]);
|
|
11795
11818
|
const { animation } = useTabNavigationContext();
|
|
@@ -11797,7 +11820,7 @@ var TabNavigationPanel = React65.forwardRef(
|
|
|
11797
11820
|
}
|
|
11798
11821
|
);
|
|
11799
11822
|
TabNavigationPanel.displayName = "TabNavigation.Panel";
|
|
11800
|
-
var TabNavigationRoot =
|
|
11823
|
+
var TabNavigationRoot = React66.forwardRef(
|
|
11801
11824
|
(_a, ref) => {
|
|
11802
11825
|
var _b = _a, {
|
|
11803
11826
|
value,
|
|
@@ -11815,11 +11838,11 @@ var TabNavigationRoot = React65.forwardRef(
|
|
|
11815
11838
|
"children"
|
|
11816
11839
|
]);
|
|
11817
11840
|
const isControlled = typeof value === "string";
|
|
11818
|
-
const [uncontrolledValue, setUncontrolledValue] =
|
|
11841
|
+
const [uncontrolledValue, setUncontrolledValue] = React66.useState(
|
|
11819
11842
|
() => defaultValue != null ? defaultValue : ""
|
|
11820
11843
|
);
|
|
11821
11844
|
const currentValue = isControlled ? value : uncontrolledValue;
|
|
11822
|
-
const handleValueChange =
|
|
11845
|
+
const handleValueChange = React66.useCallback(
|
|
11823
11846
|
(newValue) => {
|
|
11824
11847
|
if (!isControlled) {
|
|
11825
11848
|
setUncontrolledValue(newValue);
|
|
@@ -11828,7 +11851,7 @@ var TabNavigationRoot = React65.forwardRef(
|
|
|
11828
11851
|
},
|
|
11829
11852
|
[isControlled, onValueChange]
|
|
11830
11853
|
);
|
|
11831
|
-
const contextValue =
|
|
11854
|
+
const contextValue = React66.useMemo(
|
|
11832
11855
|
() => ({ layout, animation }),
|
|
11833
11856
|
[layout, animation]
|
|
11834
11857
|
);
|
|
@@ -11857,6 +11880,6 @@ var TabNavigation = Object.assign(TabNavigationRoot, {
|
|
|
11857
11880
|
Panel: TabNavigationPanel
|
|
11858
11881
|
});
|
|
11859
11882
|
|
|
11860
|
-
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, InputText, Link, Logo, MessageCard, MessageCardBanner, MessageCardInsight, NativeSelectPicker, Notification, NumberField, NumberInput, NumberInputField, PasswordField, PasswordFieldInput, PasswordFieldRequirements, PawprintProvider, PictureSelector, ProductDisplayCard, ProductListingCardWithBadgeAndGrid as ProductListingCard, Progress, Radio, RadioGroup, RadioTile, SearchField, SearchFieldInput, SegmentedControl, SelectField, SelectFieldContent, SelectFieldItem, SelectFieldTrigger, SelectFieldValue, Slider, Spinner, StackedNotifications, 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 };
|
|
11883
|
+
export { Accordion, Animated5 as Animated, Avatar, BRAND_FONTS, Badge, Button, ButtonDock, ButtonGroup, CarouselControls, Checkbox, CheckboxGroup, CopyField, CopyFieldInput, Countdown, DatePicker, Divider, Drawer, FilterTab, Hint, Icon, IconButton, Illustration, Input, InputDescription, InputError, InputField, InputLabel, InputText, Link, Logo, MessageCard, MessageCardBanner, MessageCardInsight, NativeSelectPicker, Notification, NumberField, NumberInput, NumberInputField, PasswordField, PasswordFieldInput, PasswordFieldRequirements, PawprintProvider, PictureSelector, ProductDisplayCard, ProductListingCardWithBadgeAndGrid as ProductListingCard, Progress, Radio, RadioGroup, RadioTile, SearchField, SearchFieldInput, SegmentedControl, SelectField, SelectFieldContent, SelectFieldItem, SelectFieldTrigger, SelectFieldValue, Slider, Spinner, StackedNotifications, 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 };
|
|
11861
11884
|
//# sourceMappingURL=index.js.map
|
|
11862
11885
|
//# sourceMappingURL=index.js.map
|