@dloizides/ui-forms 1.13.1 → 1.13.3
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/CHANGELOG.md +15 -0
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React2, { useState, useCallback, useMemo, useRef, useEffect, useLayoutEffect } from 'react';
|
|
2
|
-
import { Platform, StyleSheet, TextInput, View, Text, Switch, Pressable, TouchableOpacity } from 'react-native';
|
|
2
|
+
import { Platform, StyleSheet, TextInput, View, Text, Switch, Pressable, ScrollView, TouchableOpacity } from 'react-native';
|
|
3
3
|
import { useUi } from '@dloizides/ui-feedback';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import { Button } from '@dloizides/ui-buttons';
|
|
@@ -465,6 +465,7 @@ var TRANSITION_TIMING = "ease";
|
|
|
465
465
|
var FOCUS_RING_WIDTH = 3;
|
|
466
466
|
var FOCUS_RING_ALPHA = 0.16;
|
|
467
467
|
var HOVER_BORDER_ALPHA = 0.22;
|
|
468
|
+
var PLACEHOLDER_ALPHA = 0.6;
|
|
468
469
|
var HEX_RADIX = 16;
|
|
469
470
|
var HEX_SHORT_LENGTH = 4;
|
|
470
471
|
var HEX_FULL_LENGTH = 7;
|
|
@@ -546,7 +547,7 @@ function useThemedInput(options = {}) {
|
|
|
546
547
|
);
|
|
547
548
|
return {
|
|
548
549
|
style,
|
|
549
|
-
placeholderTextColor: colors.textSecondary,
|
|
550
|
+
placeholderTextColor: withAlpha(colors.textSecondary, PLACEHOLDER_ALPHA),
|
|
550
551
|
isFocused,
|
|
551
552
|
isHovered,
|
|
552
553
|
focusBind,
|
|
@@ -1113,7 +1114,7 @@ function AnchoredMenu({
|
|
|
1113
1114
|
accessibilityRole: "menu",
|
|
1114
1115
|
style: [controlStyles.menu, { borderColor: colors.border, backgroundColor: colors.surface }, portalStyle],
|
|
1115
1116
|
testID: `${testID}-menu`,
|
|
1116
|
-
children: options.map((opt) => {
|
|
1117
|
+
children: /* @__PURE__ */ jsx(ScrollView, { keyboardShouldPersistTaps: "handled", nestedScrollEnabled: true, children: options.map((opt) => {
|
|
1117
1118
|
const active = opt.value === selectedValue;
|
|
1118
1119
|
return /* @__PURE__ */ jsx(
|
|
1119
1120
|
Pressable,
|
|
@@ -1130,7 +1131,7 @@ function AnchoredMenu({
|
|
|
1130
1131
|
},
|
|
1131
1132
|
opt.value
|
|
1132
1133
|
);
|
|
1133
|
-
})
|
|
1134
|
+
}) })
|
|
1134
1135
|
}
|
|
1135
1136
|
);
|
|
1136
1137
|
if (usePortal && IS_WEB6) return createPortal(menu, document.body);
|