@vellira-ui/react-native 2.188.7 → 2.188.9
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/dist/index.js
CHANGED
|
@@ -3623,6 +3623,8 @@ const createContentStyles = (theme) => StyleSheet.create({
|
|
|
3623
3623
|
},
|
|
3624
3624
|
title: {
|
|
3625
3625
|
flex: 1,
|
|
3626
|
+
flexShrink: 1,
|
|
3627
|
+
minWidth: 0,
|
|
3626
3628
|
marginHorizontal: theme.tokens.spacing[3],
|
|
3627
3629
|
color: theme.components.select.dropdown.fg,
|
|
3628
3630
|
fontFamily: theme.tokens.typography.family.medium,
|
|
@@ -4477,6 +4479,8 @@ const SelectContent = createSelectSlot("content", "Select.Content");
|
|
|
4477
4479
|
const SelectContentSurface = () => {
|
|
4478
4480
|
const styles = useThemeStyles(createContentStyles);
|
|
4479
4481
|
const { theme } = useTheme();
|
|
4482
|
+
const { fontScale } = useWindowDimensions();
|
|
4483
|
+
const largeText = fontScale >= 1.5;
|
|
4480
4484
|
const wasOpenRef = useRef(false);
|
|
4481
4485
|
const [openCycle, setOpenCycle] = useState(0);
|
|
4482
4486
|
const context = useSelectContext();
|
|
@@ -4531,13 +4535,20 @@ const SelectContentSurface = () => {
|
|
|
4531
4535
|
accessibilityRole: "button",
|
|
4532
4536
|
accessibilityLabel: "Close selection",
|
|
4533
4537
|
children: /* @__PURE__ */ jsx(Text, {
|
|
4534
|
-
|
|
4538
|
+
numberOfLines: 1,
|
|
4539
|
+
adjustsFontSizeToFit: true,
|
|
4540
|
+
minimumFontScale: .85,
|
|
4541
|
+
maxFontSizeMultiplier: 1.4,
|
|
4542
|
+
style: [styles.cancelText, largeText && { lineHeight: void 0 }],
|
|
4535
4543
|
children: "Cancel"
|
|
4536
4544
|
})
|
|
4537
4545
|
}),
|
|
4538
4546
|
/* @__PURE__ */ jsx(Text, {
|
|
4539
|
-
style: styles.title,
|
|
4547
|
+
style: [styles.title, largeText && { lineHeight: void 0 }],
|
|
4540
4548
|
numberOfLines: 1,
|
|
4549
|
+
adjustsFontSizeToFit: true,
|
|
4550
|
+
minimumFontScale: .85,
|
|
4551
|
+
maxFontSizeMultiplier: 1.4,
|
|
4541
4552
|
accessibilityRole: "header",
|
|
4542
4553
|
children: resolvedLabel
|
|
4543
4554
|
}),
|
|
@@ -4548,7 +4559,11 @@ const SelectContentSurface = () => {
|
|
|
4548
4559
|
accessibilityRole: "button",
|
|
4549
4560
|
accessibilityLabel: "Done",
|
|
4550
4561
|
children: /* @__PURE__ */ jsx(Text, {
|
|
4551
|
-
|
|
4562
|
+
numberOfLines: 1,
|
|
4563
|
+
adjustsFontSizeToFit: true,
|
|
4564
|
+
minimumFontScale: .85,
|
|
4565
|
+
maxFontSizeMultiplier: 1.4,
|
|
4566
|
+
style: [styles.doneText, largeText && { lineHeight: void 0 }],
|
|
4552
4567
|
children: "Done"
|
|
4553
4568
|
})
|
|
4554
4569
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vellira-ui/react-native",
|
|
3
|
-
"version": "2.188.
|
|
3
|
+
"version": "2.188.9",
|
|
4
4
|
"description": "React Native components for Vellira Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vellira",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"react-native-svg": ">=13"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@vellira-ui/core": "2.188.
|
|
53
|
-
"@vellira-ui/
|
|
54
|
-
"@vellira-ui/types": "2.188.
|
|
55
|
-
"@vellira-ui/
|
|
52
|
+
"@vellira-ui/core": "2.188.9",
|
|
53
|
+
"@vellira-ui/icons": "2.188.9",
|
|
54
|
+
"@vellira-ui/types": "2.188.9",
|
|
55
|
+
"@vellira-ui/tokens": "2.188.9"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@storybook/react-native": "^10.7.0",
|