@xaui/native 0.0.11 → 0.0.13
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/README.md +8 -1
- package/dist/accordion/index.cjs +7 -2
- package/dist/accordion/index.js +7 -2
- package/dist/alert/index.cjs +25 -188
- package/dist/alert/index.js +1 -2
- package/dist/autocomplete/index.cjs +106 -385
- package/dist/autocomplete/index.js +1 -3
- package/dist/button/index.cjs +126 -4
- package/dist/button/index.d.cts +63 -1
- package/dist/button/index.d.ts +63 -1
- package/dist/button/index.js +117 -3
- package/dist/checkbox/index.cjs +5 -1
- package/dist/checkbox/index.js +5 -1
- package/dist/{chunk-OFYJYQ2M.js → chunk-2T6FKPJW.js} +1 -3
- package/dist/chunk-7OFTYKK4.js +1627 -0
- package/dist/{chunk-63LRW4QD.js → chunk-MKHBEJLO.js} +8 -1
- package/dist/{chunk-W7JJVPK5.js → chunk-NMZUPH3R.js} +7 -12
- package/dist/datepicker/index.cjs +1708 -0
- package/dist/datepicker/index.d.cts +45 -0
- package/dist/datepicker/index.d.ts +45 -0
- package/dist/datepicker/index.js +7 -0
- package/dist/index.cjs +1794 -454
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -5
- package/dist/indicator/index.cjs +8 -1
- package/dist/indicator/index.js +1 -1
- package/dist/menu/index.cjs +371 -0
- package/dist/menu/index.d.cts +107 -0
- package/dist/menu/index.d.ts +107 -0
- package/dist/menu/index.js +304 -0
- package/dist/select/index.cjs +40 -16
- package/dist/select/index.js +40 -16
- package/dist/view/index.cjs +12 -7
- package/dist/view/index.js +12 -7
- package/package.json +14 -6
- package/dist/chunk-RE3CO277.js +0 -444
- package/dist/chunk-SIXET7TJ.js +0 -172
- package/dist/icon/index.cjs +0 -680
- package/dist/icon/index.d.cts +0 -36
- package/dist/icon/index.d.ts +0 -36
- package/dist/icon/index.js +0 -15
|
@@ -144,7 +144,14 @@ var CircularActivityIndicator = ({
|
|
|
144
144
|
borderWidth: strokeWidth,
|
|
145
145
|
borderRadius: size / 2
|
|
146
146
|
};
|
|
147
|
-
return /* @__PURE__ */ React.createElement(Animated.View, { key: index, style: [styles.layer] }, /* @__PURE__ */ React.createElement(Animated.View, { style: layerStyle }, /* @__PURE__ */ React.createElement(
|
|
147
|
+
return /* @__PURE__ */ React.createElement(Animated.View, { key: index, style: [styles.layer] }, /* @__PURE__ */ React.createElement(Animated.View, { style: layerStyle }, /* @__PURE__ */ React.createElement(
|
|
148
|
+
Animated.View,
|
|
149
|
+
{
|
|
150
|
+
style: [containerStyle, offsetStyle],
|
|
151
|
+
collapsable: false
|
|
152
|
+
},
|
|
153
|
+
/* @__PURE__ */ React.createElement(Animated.View, { style: viewportStyle }, /* @__PURE__ */ React.createElement(Animated.View, { style: containerStyle, collapsable: false }, /* @__PURE__ */ React.createElement(Animated.View, { style: lineStyle })))
|
|
154
|
+
)));
|
|
148
155
|
})
|
|
149
156
|
));
|
|
150
157
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ArrowBackIcon
|
|
3
|
-
} from "./chunk-RE3CO277.js";
|
|
4
1
|
import {
|
|
5
2
|
CheckmarkIcon
|
|
6
3
|
} from "./chunk-GBHQCAKW.js";
|
|
7
|
-
import {
|
|
8
|
-
CloseIcon
|
|
9
|
-
} from "./chunk-SIXET7TJ.js";
|
|
10
4
|
import {
|
|
11
5
|
Portal,
|
|
12
6
|
useXUITheme
|
|
@@ -275,7 +269,9 @@ var useAutocompleteInputState = ({
|
|
|
275
269
|
selectedKey,
|
|
276
270
|
onInputChange
|
|
277
271
|
}) => {
|
|
278
|
-
const [internalInputValue, setInternalInputValue] = useState(
|
|
272
|
+
const [internalInputValue, setInternalInputValue] = useState(
|
|
273
|
+
defaultInputValue ?? ""
|
|
274
|
+
);
|
|
279
275
|
const currentInputValue = inputValue !== void 0 ? inputValue : internalInputValue;
|
|
280
276
|
const updateInputValue = useCallback(
|
|
281
277
|
(value) => {
|
|
@@ -343,6 +339,7 @@ import {
|
|
|
343
339
|
TextInput,
|
|
344
340
|
View
|
|
345
341
|
} from "react-native";
|
|
342
|
+
import { ArrowBackIcon, CloseIcon } from "@xaui/icons";
|
|
346
343
|
|
|
347
344
|
// src/components/dialogs/autocomplete-dialog/autocomplete-dialog.style.ts
|
|
348
345
|
import { StyleSheet as StyleSheet2 } from "react-native";
|
|
@@ -459,10 +456,7 @@ var AutocompleteDialogHeader = ({
|
|
|
459
456
|
value: inputValue,
|
|
460
457
|
onChangeText: onInputChange,
|
|
461
458
|
placeholder,
|
|
462
|
-
placeholderTextColor: addOpacityToColor(
|
|
463
|
-
theme.colors.foreground,
|
|
464
|
-
0.5
|
|
465
|
-
),
|
|
459
|
+
placeholderTextColor: addOpacityToColor(theme.colors.foreground, 0.5),
|
|
466
460
|
style: [
|
|
467
461
|
styles2.input,
|
|
468
462
|
{
|
|
@@ -683,6 +677,7 @@ var AutocompleteDialog = ({
|
|
|
683
677
|
// src/components/autocomplete/autocomplete-trigger.tsx
|
|
684
678
|
import React3 from "react";
|
|
685
679
|
import { Pressable as Pressable3, Text as Text2, TouchableOpacity, View as View3 } from "react-native";
|
|
680
|
+
import { CloseIcon as CloseIcon2 } from "@xaui/icons";
|
|
686
681
|
var AutocompleteTrigger = ({
|
|
687
682
|
triggerRef,
|
|
688
683
|
isDisabled,
|
|
@@ -749,7 +744,7 @@ var AutocompleteTrigger = ({
|
|
|
749
744
|
style: styles.clearButton,
|
|
750
745
|
hitSlop: { top: 8, right: 8, bottom: 8, left: 8 }
|
|
751
746
|
},
|
|
752
|
-
clearIcon ?? /* @__PURE__ */ React3.createElement(
|
|
747
|
+
clearIcon ?? /* @__PURE__ */ React3.createElement(CloseIcon2, { color: theme.colors.foreground, size: 20 })
|
|
753
748
|
) : null
|
|
754
749
|
);
|
|
755
750
|
};
|