@xaui/native 0.1.4 → 0.2.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/README.md +109 -113
- package/dist/alert/index.cjs +6 -9
- package/dist/alert/index.js +4 -7
- package/dist/app-bar/index.cjs +4 -4
- package/dist/app-bar/index.js +2 -2
- package/dist/autocomplete/index.cjs +20 -25
- package/dist/autocomplete/index.d.cts +1 -1
- package/dist/autocomplete/index.d.ts +1 -1
- package/dist/autocomplete/index.js +11 -16
- package/dist/avatar/index.cjs +9 -9
- package/dist/avatar/index.js +5 -5
- package/dist/badge/index.cjs +13 -14
- package/dist/badge/index.js +10 -11
- package/dist/bottom-sheet/index.cjs +3 -3
- package/dist/bottom-sheet/index.js +2 -2
- package/dist/bottom-tab-bar/index.cjs +2 -2
- package/dist/bottom-tab-bar/index.js +1 -1
- package/dist/button/index.cjs +19 -22
- package/dist/button/index.d.cts +3 -3
- package/dist/button/index.d.ts +3 -3
- package/dist/button/index.js +12 -15
- package/dist/card/index.cjs +8 -8
- package/dist/card/index.js +3 -3
- package/dist/carousel/index.cjs +2 -2
- package/dist/carousel/index.js +1 -1
- package/dist/checkbox/index.cjs +11 -11
- package/dist/checkbox/index.js +6 -6
- package/dist/chip/index.cjs +11 -11
- package/dist/chip/index.js +9 -9
- package/dist/{chunk-K24VDBNN.js → chunk-4JFWQ5XT.js} +2 -2
- package/dist/{chunk-RZJFCDFS.cjs → chunk-7UFBLUMV.cjs} +13 -19
- package/dist/{chunk-M6A23KUM.js → chunk-A45TVXU5.js} +29 -5
- package/dist/{chunk-3XWF77Y3.cjs → chunk-BYWUAPC4.cjs} +4 -4
- package/dist/{chunk-X5KNZ6YJ.cjs → chunk-DJ4Q37UT.cjs} +2 -2
- package/dist/{chunk-LVNBYERF.js → chunk-RBSA4NH4.js} +13 -19
- package/dist/{chunk-HYL4EU3Y.cjs → chunk-UGEINZM7.cjs} +14 -13
- package/dist/{chunk-WGWXGIZ3.js → chunk-UU4HHBDN.js} +10 -9
- package/dist/{chunk-J3BOFXIH.js → chunk-VSZEXOUN.js} +4 -4
- package/dist/{chunk-FBTBWI3P.cjs → chunk-YIEUN3G5.cjs} +7 -7
- package/dist/{chunk-43I45LX7.cjs → chunk-ZH6ZSV2Q.cjs} +33 -9
- package/dist/{chunk-2JKWVIPB.js → chunk-ZY7IUTAT.js} +1 -1
- package/dist/color-picker/index.cjs +7 -7
- package/dist/color-picker/index.d.cts +1 -1
- package/dist/color-picker/index.d.ts +1 -1
- package/dist/color-picker/index.js +4 -4
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.d.cts +1 -2
- package/dist/core/index.d.ts +1 -2
- package/dist/core/index.js +1 -1
- package/dist/datepicker/index.cjs +28 -30
- package/dist/datepicker/index.d.cts +1 -1
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/index.js +17 -19
- package/dist/dialog/index.cjs +5 -5
- package/dist/dialog/index.js +1 -1
- package/dist/divider/index.cjs +3 -3
- package/dist/divider/index.js +2 -2
- package/dist/drawer/index.cjs +4 -4
- package/dist/drawer/index.js +3 -3
- package/dist/expansion-panel/index.cjs +12 -12
- package/dist/expansion-panel/index.js +3 -3
- package/dist/fab/index.cjs +4 -4
- package/dist/fab/index.js +3 -3
- package/dist/fab-menu/index.cjs +8 -8
- package/dist/fab-menu/index.js +4 -4
- package/dist/feature-discovery/index.cjs +6 -6
- package/dist/feature-discovery/index.js +5 -5
- package/dist/indicator/index.cjs +3 -3
- package/dist/indicator/index.js +2 -2
- package/dist/input/index.cjs +38 -20
- package/dist/input/index.d.cts +2 -2
- package/dist/input/index.d.ts +2 -2
- package/dist/input/index.js +36 -18
- package/dist/input-trigger/index.cjs +193 -4
- package/dist/input-trigger/index.d.cts +5 -3
- package/dist/input-trigger/index.d.ts +5 -3
- package/dist/input-trigger/index.js +192 -3
- package/dist/{input-trigger.type-BL70fHE9.d.cts → input-trigger.type-By_1ZjKd.d.cts} +86 -3
- package/dist/{input-trigger.type-BODYStHk.d.ts → input-trigger.type-DlSqg2eG.d.ts} +86 -3
- package/dist/list/index.cjs +6 -6
- package/dist/list/index.js +2 -2
- package/dist/menu/index.cjs +4 -4
- package/dist/menu/index.js +2 -2
- package/dist/menubox/index.cjs +7 -7
- package/dist/menubox/index.d.cts +1 -1
- package/dist/menubox/index.d.ts +1 -1
- package/dist/menubox/index.js +3 -3
- package/dist/picker/index.cjs +7 -7
- package/dist/picker/index.d.cts +1 -1
- package/dist/picker/index.d.ts +1 -1
- package/dist/picker/index.js +4 -4
- package/dist/progress/index.cjs +3 -3
- package/dist/progress/index.js +2 -2
- package/dist/radio/index.cjs +9 -9
- package/dist/radio/index.js +3 -3
- package/dist/refresh-control/index.cjs +45 -0
- package/dist/refresh-control/index.d.cts +55 -0
- package/dist/refresh-control/index.d.ts +55 -0
- package/dist/refresh-control/index.js +45 -0
- package/dist/segment-button/index.cjs +8 -8
- package/dist/segment-button/index.js +5 -5
- package/dist/select/index.cjs +50 -58
- package/dist/select/index.d.cts +2 -2
- package/dist/select/index.d.ts +2 -2
- package/dist/select/index.js +37 -45
- package/dist/skeleton/index.cjs +4 -4
- package/dist/skeleton/index.js +3 -3
- package/dist/slider/index.cjs +5 -5
- package/dist/slider/index.js +1 -1
- package/dist/snackbar/index.cjs +6 -6
- package/dist/snackbar/index.js +4 -4
- package/dist/snippet/index.cjs +4 -4
- package/dist/snippet/index.js +2 -2
- package/dist/stepper/index.cjs +3 -3
- package/dist/stepper/index.js +2 -2
- package/dist/switch/index.cjs +8 -8
- package/dist/switch/index.js +2 -2
- package/dist/tabs/index.cjs +7 -7
- package/dist/tabs/index.js +4 -4
- package/dist/timepicker/index.cjs +7 -7
- package/dist/timepicker/index.js +4 -4
- package/dist/toolbar/index.cjs +3 -3
- package/dist/toolbar/index.js +2 -2
- package/dist/typography/index.cjs +5 -3
- package/dist/typography/index.d.cts +4 -0
- package/dist/typography/index.d.ts +4 -0
- package/dist/typography/index.js +3 -1
- package/dist/view/index.cjs +4 -4
- package/dist/view/index.js +2 -2
- package/package.json +8 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk7UFBLUMVcjs = require('../chunk-7UFBLUMV.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/datepicker/datepicker.tsx
|
|
8
8
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -13,13 +13,13 @@ var _reactnative = require('react-native');
|
|
|
13
13
|
var _core = require('@xaui/core');
|
|
14
14
|
var _palette = require('@xaui/core/palette');
|
|
15
15
|
var useDatePickerColorScheme = (themeColor) => {
|
|
16
|
-
const theme =
|
|
16
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
17
17
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
18
18
|
const colorScheme = theme.colors[safeThemeColor];
|
|
19
19
|
return { theme, colorScheme };
|
|
20
20
|
};
|
|
21
21
|
var useDatePickerSizeStyles = (size) => {
|
|
22
|
-
const theme =
|
|
22
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
23
23
|
return _react.useMemo.call(void 0, () => {
|
|
24
24
|
const sizes = {
|
|
25
25
|
xs: {
|
|
@@ -55,7 +55,7 @@ var useDatePickerSizeStyles = (size) => {
|
|
|
55
55
|
}, [size, theme]);
|
|
56
56
|
};
|
|
57
57
|
var useDatePickerRadiusStyles = (radius) => {
|
|
58
|
-
const theme =
|
|
58
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
59
59
|
return _react.useMemo.call(void 0, () => {
|
|
60
60
|
const radii = {
|
|
61
61
|
none: theme.borderRadius.none,
|
|
@@ -71,28 +71,23 @@ var useDatePickerVariantStyles = (themeColor, variant, isInvalid) => {
|
|
|
71
71
|
const { theme, colorScheme } = useDatePickerColorScheme(themeColor);
|
|
72
72
|
return _react.useMemo.call(void 0, () => {
|
|
73
73
|
let borderColor = isInvalid ? theme.colors.danger.main : colorScheme.main;
|
|
74
|
-
if (
|
|
74
|
+
if (variant === "bordered" && themeColor === "default") {
|
|
75
75
|
borderColor = _palette.colors.gray[300];
|
|
76
76
|
}
|
|
77
77
|
const variantStyles = {
|
|
78
|
-
|
|
78
|
+
bordered: {
|
|
79
79
|
backgroundColor: "transparent",
|
|
80
80
|
borderWidth: theme.borderWidth.md,
|
|
81
81
|
borderColor
|
|
82
82
|
},
|
|
83
|
-
|
|
84
|
-
backgroundColor: colorScheme.
|
|
83
|
+
colored: {
|
|
84
|
+
backgroundColor: _core.withOpacity.call(void 0, colorScheme.container, 0.5),
|
|
85
85
|
borderWidth: 0
|
|
86
86
|
},
|
|
87
87
|
light: {
|
|
88
88
|
backgroundColor: "transparent",
|
|
89
89
|
borderWidth: 0
|
|
90
90
|
},
|
|
91
|
-
faded: {
|
|
92
|
-
backgroundColor: `${colorScheme.background}90`,
|
|
93
|
-
borderWidth: theme.borderWidth.md,
|
|
94
|
-
borderColor
|
|
95
|
-
},
|
|
96
91
|
underlined: {
|
|
97
92
|
backgroundColor: "transparent",
|
|
98
93
|
borderBottomWidth: theme.borderWidth.md,
|
|
@@ -118,7 +113,7 @@ var useDatePickerLabelStyle = (themeColor, isInvalid, labelSize) => {
|
|
|
118
113
|
}, [isInvalid, labelSize, theme, themeColor, colorScheme]);
|
|
119
114
|
};
|
|
120
115
|
var useDatePickerHelperColor = (isInvalid) => {
|
|
121
|
-
const theme =
|
|
116
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
122
117
|
return _react.useMemo.call(void 0, () => {
|
|
123
118
|
if (isInvalid) {
|
|
124
119
|
return theme.colors.danger.main;
|
|
@@ -771,11 +766,11 @@ var AnimatedDayCell = ({
|
|
|
771
766
|
themeColor,
|
|
772
767
|
onSelectDay
|
|
773
768
|
}) => {
|
|
774
|
-
const theme =
|
|
769
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
775
770
|
const colorScheme = _nullishCoalesce(theme.colors[themeColor], () => ( theme.colors.primary));
|
|
776
771
|
const isDefault = themeColor === "default";
|
|
777
772
|
const accentColor = isDefault ? theme.colors.foreground : colorScheme.main;
|
|
778
|
-
const accentFg = isDefault ? theme.colors.background : colorScheme.
|
|
773
|
+
const accentFg = isDefault ? theme.colors.background : colorScheme.onMain;
|
|
779
774
|
const scaleAnim = _react.useRef.call(void 0, new _reactnative.Animated.Value(isSelected ? 1 : 0)).current;
|
|
780
775
|
_react.useEffect.call(void 0, () => {
|
|
781
776
|
if (isSelected) {
|
|
@@ -855,7 +850,7 @@ var DatePickerDialogCalendar = ({
|
|
|
855
850
|
onPreviousMonth,
|
|
856
851
|
onNextMonth
|
|
857
852
|
}) => {
|
|
858
|
-
const theme =
|
|
853
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
859
854
|
const swipeHandledRef = _react.useRef.call(void 0, false);
|
|
860
855
|
const weekdays = _react.useMemo.call(void 0,
|
|
861
856
|
() => getWeekdayNames(locale, firstDayOfWeek),
|
|
@@ -948,7 +943,7 @@ var DatePickerDialogHeader = ({
|
|
|
948
943
|
onNextMonth,
|
|
949
944
|
onToggleYearPicker
|
|
950
945
|
}) => {
|
|
951
|
-
const theme =
|
|
946
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
952
947
|
const colorScheme = _nullishCoalesce(theme.colors[themeColor], () => ( theme.colors.primary));
|
|
953
948
|
const dateText = _react.useMemo.call(void 0, () => {
|
|
954
949
|
if (!selectedDate) return "---";
|
|
@@ -958,7 +953,7 @@ var DatePickerDialogHeader = ({
|
|
|
958
953
|
const month = getMonthName(viewDate.getMonth(), locale);
|
|
959
954
|
return `${month} ${viewDate.getFullYear()}`;
|
|
960
955
|
}, [viewDate, locale]);
|
|
961
|
-
return /* @__PURE__ */ _react2.default.createElement(_react2.default.Fragment, null, /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: [styles2.header, { backgroundColor: colorScheme.main }] }, /* @__PURE__ */ _react2.default.createElement(_reactnative.Text, { style: [styles2.headerLabel, { color: colorScheme.
|
|
956
|
+
return /* @__PURE__ */ _react2.default.createElement(_react2.default.Fragment, null, /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: [styles2.header, { backgroundColor: colorScheme.main }] }, /* @__PURE__ */ _react2.default.createElement(_reactnative.Text, { style: [styles2.headerLabel, { color: colorScheme.onMain }] }, selectDateLabel), /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles2.headerDateRow }, /* @__PURE__ */ _react2.default.createElement(_reactnative.Text, { style: [styles2.headerDate, { color: colorScheme.onMain }] }, dateText), selectedDate ? /* @__PURE__ */ _react2.default.createElement(
|
|
962
957
|
_reactnative.Pressable,
|
|
963
958
|
{
|
|
964
959
|
onPress: onClearValue,
|
|
@@ -966,7 +961,7 @@ var DatePickerDialogHeader = ({
|
|
|
966
961
|
accessibilityLabel: "Clear date",
|
|
967
962
|
accessibilityRole: "button"
|
|
968
963
|
},
|
|
969
|
-
/* @__PURE__ */ _react2.default.createElement(_close.CloseIcon, { size: 20, color: colorScheme.
|
|
964
|
+
/* @__PURE__ */ _react2.default.createElement(_close.CloseIcon, { size: 20, color: colorScheme.onMain })
|
|
970
965
|
) : null)), /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles2.navigationRow }, /* @__PURE__ */ _react2.default.createElement(
|
|
971
966
|
_reactnative.Pressable,
|
|
972
967
|
{
|
|
@@ -1002,11 +997,11 @@ var DatePickerDialogHeader = ({
|
|
|
1002
997
|
|
|
1003
998
|
|
|
1004
999
|
var DatePickerDialogMonthPicker = ({ viewDate, locale, themeColor, onSelectMonth }) => {
|
|
1005
|
-
const theme =
|
|
1000
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
1006
1001
|
const colorScheme = _nullishCoalesce(theme.colors[themeColor], () => ( theme.colors.primary));
|
|
1007
1002
|
const isDefault = themeColor === "default";
|
|
1008
1003
|
const accentColor = isDefault ? theme.colors.foreground : colorScheme.main;
|
|
1009
|
-
const accentFg = isDefault ? theme.colors.background : colorScheme.
|
|
1004
|
+
const accentFg = isDefault ? theme.colors.background : colorScheme.onMain;
|
|
1010
1005
|
const months = _react.useMemo.call(void 0, () => getMonthNames(locale), [locale]);
|
|
1011
1006
|
const currentMonth = viewDate.getMonth();
|
|
1012
1007
|
const groupAnim = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
|
|
@@ -1076,11 +1071,11 @@ var NUM_COLUMNS = 4;
|
|
|
1076
1071
|
var DatePickerDialogYearPicker = ({ viewDate, themeColor, minDate, maxDate, onSelectYear }) => {
|
|
1077
1072
|
const listRef = _react.useRef.call(void 0, null);
|
|
1078
1073
|
const groupAnim = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
|
|
1079
|
-
const theme =
|
|
1074
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
1080
1075
|
const colorScheme = _nullishCoalesce(theme.colors[themeColor], () => ( theme.colors.primary));
|
|
1081
1076
|
const isDefault = themeColor === "default";
|
|
1082
1077
|
const accentColor = isDefault ? theme.colors.foreground : colorScheme.main;
|
|
1083
|
-
const accentFg = isDefault ? theme.colors.background : colorScheme.
|
|
1078
|
+
const accentFg = isDefault ? theme.colors.background : colorScheme.onMain;
|
|
1084
1079
|
const years = _react.useMemo.call(void 0, () => getYearRange(minDate, maxDate), [minDate, maxDate]);
|
|
1085
1080
|
const currentYear = viewDate.getFullYear();
|
|
1086
1081
|
const initialIndex = _react.useMemo.call(void 0, () => {
|
|
@@ -1186,7 +1181,7 @@ var DatePickerDialog = ({
|
|
|
1186
1181
|
onClearValue,
|
|
1187
1182
|
onClose
|
|
1188
1183
|
}) => {
|
|
1189
|
-
const theme =
|
|
1184
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
1190
1185
|
const { width: screenWidth, height: screenHeight } = _reactnative.useWindowDimensions.call(void 0, );
|
|
1191
1186
|
const fadeAnim = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
|
|
1192
1187
|
const slideAnim = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
|
|
@@ -1355,7 +1350,7 @@ var DatePickerDialog = ({
|
|
|
1355
1350
|
));
|
|
1356
1351
|
}
|
|
1357
1352
|
};
|
|
1358
|
-
return /* @__PURE__ */ _react2.default.createElement(
|
|
1353
|
+
return /* @__PURE__ */ _react2.default.createElement(_chunk7UFBLUMVcjs.Portal, null, /* @__PURE__ */ _react2.default.createElement(_reactnativegesturehandler.GestureHandlerRootView, { style: [overlayStyle, style] }, /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: overlayStyle }, /* @__PURE__ */ _react2.default.createElement(_reactnative.Animated.View, { style: [styles2.backdrop, { opacity: fadeAnim }] }, /* @__PURE__ */ _react2.default.createElement(
|
|
1359
1354
|
_reactnative.Pressable,
|
|
1360
1355
|
{
|
|
1361
1356
|
style: { flex: 1 },
|
|
@@ -1419,6 +1414,7 @@ var DatePickerTrigger = ({
|
|
|
1419
1414
|
hasValue,
|
|
1420
1415
|
displayValue,
|
|
1421
1416
|
sizeStyles,
|
|
1417
|
+
variant,
|
|
1422
1418
|
radiusStyles,
|
|
1423
1419
|
variantStyles,
|
|
1424
1420
|
theme,
|
|
@@ -1434,6 +1430,7 @@ var DatePickerTrigger = ({
|
|
|
1434
1430
|
onLayout: handleTriggerLayout
|
|
1435
1431
|
}) => {
|
|
1436
1432
|
const renderLabel = isLabelInside && label;
|
|
1433
|
+
const horizontalPadding = variant === "light" || variant === "underlined" ? 0 : sizeStyles.paddingHorizontal;
|
|
1437
1434
|
return /* @__PURE__ */ _react2.default.createElement(
|
|
1438
1435
|
_reactnative.Pressable,
|
|
1439
1436
|
{
|
|
@@ -1445,10 +1442,10 @@ var DatePickerTrigger = ({
|
|
|
1445
1442
|
styles.trigger,
|
|
1446
1443
|
{
|
|
1447
1444
|
minHeight: sizeStyles.minHeight,
|
|
1448
|
-
paddingHorizontal:
|
|
1445
|
+
paddingHorizontal: horizontalPadding,
|
|
1449
1446
|
paddingVertical: sizeStyles.paddingVertical
|
|
1450
1447
|
},
|
|
1451
|
-
radiusStyles,
|
|
1448
|
+
variant === "underlined" ? { borderRadius: 0 } : radiusStyles,
|
|
1452
1449
|
variantStyles,
|
|
1453
1450
|
isDisabled && styles.disabled,
|
|
1454
1451
|
style
|
|
@@ -1492,7 +1489,7 @@ var DatePicker = ({
|
|
|
1492
1489
|
minDate,
|
|
1493
1490
|
maxDate,
|
|
1494
1491
|
firstDayOfWeek: firstDayOfWeekProp,
|
|
1495
|
-
variant = "
|
|
1492
|
+
variant = "colored",
|
|
1496
1493
|
themeColor = "default",
|
|
1497
1494
|
size = "md",
|
|
1498
1495
|
radius = "md",
|
|
@@ -1512,7 +1509,7 @@ var DatePicker = ({
|
|
|
1512
1509
|
onClose,
|
|
1513
1510
|
onOpenChange
|
|
1514
1511
|
}) => {
|
|
1515
|
-
const theme =
|
|
1512
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
1516
1513
|
const { selectedDate, updateDate } = useDatePickerState({
|
|
1517
1514
|
value,
|
|
1518
1515
|
defaultValue,
|
|
@@ -1576,6 +1573,7 @@ var DatePicker = ({
|
|
|
1576
1573
|
hasValue: !!selectedDate,
|
|
1577
1574
|
displayValue,
|
|
1578
1575
|
sizeStyles,
|
|
1576
|
+
variant,
|
|
1579
1577
|
radiusStyles,
|
|
1580
1578
|
variantStyles,
|
|
1581
1579
|
theme,
|
|
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
3
|
import { T as ThemeColor, S as Size, R as Radius } from '../index-BOw6tbkc.cjs';
|
|
4
4
|
|
|
5
|
-
type DatePickerVariant = '
|
|
5
|
+
type DatePickerVariant = 'bordered' | 'colored' | 'light' | 'underlined';
|
|
6
6
|
type DatePickerLabelPlacement = 'inside' | 'outside' | 'outside-left' | 'outside-top';
|
|
7
7
|
type DatePickerCustomAppearance = {
|
|
8
8
|
container?: ViewStyle;
|
|
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
3
|
import { T as ThemeColor, S as Size, R as Radius } from '../index-BOw6tbkc.js';
|
|
4
4
|
|
|
5
|
-
type DatePickerVariant = '
|
|
5
|
+
type DatePickerVariant = 'bordered' | 'colored' | 'light' | 'underlined';
|
|
6
6
|
type DatePickerLabelPlacement = 'inside' | 'outside' | 'outside-left' | 'outside-top';
|
|
7
7
|
type DatePickerCustomAppearance = {
|
|
8
8
|
container?: ViewStyle;
|
package/dist/datepicker/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "../chunk-SHBDANQN.js";
|
|
|
2
2
|
import {
|
|
3
3
|
Portal,
|
|
4
4
|
useXUITheme
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-RBSA4NH4.js";
|
|
6
6
|
|
|
7
7
|
// src/components/datepicker/datepicker.tsx
|
|
8
8
|
import React7, { useCallback as useCallback5, useMemo as useMemo6, useRef as useRef6 } from "react";
|
|
@@ -10,7 +10,7 @@ import { Text as Text7, View as View7 } from "react-native";
|
|
|
10
10
|
|
|
11
11
|
// src/components/datepicker/datepicker.hook.ts
|
|
12
12
|
import { useMemo } from "react";
|
|
13
|
-
import { getSafeThemeColor } from "@xaui/core";
|
|
13
|
+
import { getSafeThemeColor, withOpacity } from "@xaui/core";
|
|
14
14
|
import { colors } from "@xaui/core/palette";
|
|
15
15
|
var useDatePickerColorScheme = (themeColor) => {
|
|
16
16
|
const theme = useXUITheme();
|
|
@@ -71,28 +71,23 @@ var useDatePickerVariantStyles = (themeColor, variant, isInvalid) => {
|
|
|
71
71
|
const { theme, colorScheme } = useDatePickerColorScheme(themeColor);
|
|
72
72
|
return useMemo(() => {
|
|
73
73
|
let borderColor = isInvalid ? theme.colors.danger.main : colorScheme.main;
|
|
74
|
-
if (
|
|
74
|
+
if (variant === "bordered" && themeColor === "default") {
|
|
75
75
|
borderColor = colors.gray[300];
|
|
76
76
|
}
|
|
77
77
|
const variantStyles = {
|
|
78
|
-
|
|
78
|
+
bordered: {
|
|
79
79
|
backgroundColor: "transparent",
|
|
80
80
|
borderWidth: theme.borderWidth.md,
|
|
81
81
|
borderColor
|
|
82
82
|
},
|
|
83
|
-
|
|
84
|
-
backgroundColor: colorScheme.
|
|
83
|
+
colored: {
|
|
84
|
+
backgroundColor: withOpacity(colorScheme.container, 0.5),
|
|
85
85
|
borderWidth: 0
|
|
86
86
|
},
|
|
87
87
|
light: {
|
|
88
88
|
backgroundColor: "transparent",
|
|
89
89
|
borderWidth: 0
|
|
90
90
|
},
|
|
91
|
-
faded: {
|
|
92
|
-
backgroundColor: `${colorScheme.background}90`,
|
|
93
|
-
borderWidth: theme.borderWidth.md,
|
|
94
|
-
borderColor
|
|
95
|
-
},
|
|
96
91
|
underlined: {
|
|
97
92
|
backgroundColor: "transparent",
|
|
98
93
|
borderBottomWidth: theme.borderWidth.md,
|
|
@@ -775,7 +770,7 @@ var AnimatedDayCell = ({
|
|
|
775
770
|
const colorScheme = theme.colors[themeColor] ?? theme.colors.primary;
|
|
776
771
|
const isDefault = themeColor === "default";
|
|
777
772
|
const accentColor = isDefault ? theme.colors.foreground : colorScheme.main;
|
|
778
|
-
const accentFg = isDefault ? theme.colors.background : colorScheme.
|
|
773
|
+
const accentFg = isDefault ? theme.colors.background : colorScheme.onMain;
|
|
779
774
|
const scaleAnim = useRef2(new Animated2.Value(isSelected ? 1 : 0)).current;
|
|
780
775
|
useEffect2(() => {
|
|
781
776
|
if (isSelected) {
|
|
@@ -958,7 +953,7 @@ var DatePickerDialogHeader = ({
|
|
|
958
953
|
const month = getMonthName(viewDate.getMonth(), locale);
|
|
959
954
|
return `${month} ${viewDate.getFullYear()}`;
|
|
960
955
|
}, [viewDate, locale]);
|
|
961
|
-
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(View2, { style: [styles2.header, { backgroundColor: colorScheme.main }] }, /* @__PURE__ */ React2.createElement(Text2, { style: [styles2.headerLabel, { color: colorScheme.
|
|
956
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(View2, { style: [styles2.header, { backgroundColor: colorScheme.main }] }, /* @__PURE__ */ React2.createElement(Text2, { style: [styles2.headerLabel, { color: colorScheme.onMain }] }, selectDateLabel), /* @__PURE__ */ React2.createElement(View2, { style: styles2.headerDateRow }, /* @__PURE__ */ React2.createElement(Text2, { style: [styles2.headerDate, { color: colorScheme.onMain }] }, dateText), selectedDate ? /* @__PURE__ */ React2.createElement(
|
|
962
957
|
Pressable2,
|
|
963
958
|
{
|
|
964
959
|
onPress: onClearValue,
|
|
@@ -966,7 +961,7 @@ var DatePickerDialogHeader = ({
|
|
|
966
961
|
accessibilityLabel: "Clear date",
|
|
967
962
|
accessibilityRole: "button"
|
|
968
963
|
},
|
|
969
|
-
/* @__PURE__ */ React2.createElement(CloseIcon, { size: 20, color: colorScheme.
|
|
964
|
+
/* @__PURE__ */ React2.createElement(CloseIcon, { size: 20, color: colorScheme.onMain })
|
|
970
965
|
) : null)), /* @__PURE__ */ React2.createElement(View2, { style: styles2.navigationRow }, /* @__PURE__ */ React2.createElement(
|
|
971
966
|
Pressable2,
|
|
972
967
|
{
|
|
@@ -1006,7 +1001,7 @@ var DatePickerDialogMonthPicker = ({ viewDate, locale, themeColor, onSelectMonth
|
|
|
1006
1001
|
const colorScheme = theme.colors[themeColor] ?? theme.colors.primary;
|
|
1007
1002
|
const isDefault = themeColor === "default";
|
|
1008
1003
|
const accentColor = isDefault ? theme.colors.foreground : colorScheme.main;
|
|
1009
|
-
const accentFg = isDefault ? theme.colors.background : colorScheme.
|
|
1004
|
+
const accentFg = isDefault ? theme.colors.background : colorScheme.onMain;
|
|
1010
1005
|
const months = useMemo4(() => getMonthNames(locale), [locale]);
|
|
1011
1006
|
const currentMonth = viewDate.getMonth();
|
|
1012
1007
|
const groupAnim = useRef3(new Animated3.Value(0)).current;
|
|
@@ -1080,7 +1075,7 @@ var DatePickerDialogYearPicker = ({ viewDate, themeColor, minDate, maxDate, onSe
|
|
|
1080
1075
|
const colorScheme = theme.colors[themeColor] ?? theme.colors.primary;
|
|
1081
1076
|
const isDefault = themeColor === "default";
|
|
1082
1077
|
const accentColor = isDefault ? theme.colors.foreground : colorScheme.main;
|
|
1083
|
-
const accentFg = isDefault ? theme.colors.background : colorScheme.
|
|
1078
|
+
const accentFg = isDefault ? theme.colors.background : colorScheme.onMain;
|
|
1084
1079
|
const years = useMemo5(() => getYearRange(minDate, maxDate), [minDate, maxDate]);
|
|
1085
1080
|
const currentYear = viewDate.getFullYear();
|
|
1086
1081
|
const initialIndex = useMemo5(() => {
|
|
@@ -1419,6 +1414,7 @@ var DatePickerTrigger = ({
|
|
|
1419
1414
|
hasValue,
|
|
1420
1415
|
displayValue,
|
|
1421
1416
|
sizeStyles,
|
|
1417
|
+
variant,
|
|
1422
1418
|
radiusStyles,
|
|
1423
1419
|
variantStyles,
|
|
1424
1420
|
theme,
|
|
@@ -1434,6 +1430,7 @@ var DatePickerTrigger = ({
|
|
|
1434
1430
|
onLayout: handleTriggerLayout
|
|
1435
1431
|
}) => {
|
|
1436
1432
|
const renderLabel = isLabelInside && label;
|
|
1433
|
+
const horizontalPadding = variant === "light" || variant === "underlined" ? 0 : sizeStyles.paddingHorizontal;
|
|
1437
1434
|
return /* @__PURE__ */ React6.createElement(
|
|
1438
1435
|
Pressable6,
|
|
1439
1436
|
{
|
|
@@ -1445,10 +1442,10 @@ var DatePickerTrigger = ({
|
|
|
1445
1442
|
styles.trigger,
|
|
1446
1443
|
{
|
|
1447
1444
|
minHeight: sizeStyles.minHeight,
|
|
1448
|
-
paddingHorizontal:
|
|
1445
|
+
paddingHorizontal: horizontalPadding,
|
|
1449
1446
|
paddingVertical: sizeStyles.paddingVertical
|
|
1450
1447
|
},
|
|
1451
|
-
radiusStyles,
|
|
1448
|
+
variant === "underlined" ? { borderRadius: 0 } : radiusStyles,
|
|
1452
1449
|
variantStyles,
|
|
1453
1450
|
isDisabled && styles.disabled,
|
|
1454
1451
|
style
|
|
@@ -1492,7 +1489,7 @@ var DatePicker = ({
|
|
|
1492
1489
|
minDate,
|
|
1493
1490
|
maxDate,
|
|
1494
1491
|
firstDayOfWeek: firstDayOfWeekProp,
|
|
1495
|
-
variant = "
|
|
1492
|
+
variant = "colored",
|
|
1496
1493
|
themeColor = "default",
|
|
1497
1494
|
size = "md",
|
|
1498
1495
|
radius = "md",
|
|
@@ -1576,6 +1573,7 @@ var DatePicker = ({
|
|
|
1576
1573
|
hasValue: !!selectedDate,
|
|
1577
1574
|
displayValue,
|
|
1578
1575
|
sizeStyles,
|
|
1576
|
+
variant,
|
|
1579
1577
|
radiusStyles,
|
|
1580
1578
|
variantStyles,
|
|
1581
1579
|
theme,
|
package/dist/dialog/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7UFBLUMVcjs = require('../chunk-7UFBLUMV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/dialog/dialog.tsx
|
|
7
7
|
|
|
@@ -175,8 +175,8 @@ var Dialog = ({
|
|
|
175
175
|
style,
|
|
176
176
|
customAppearance
|
|
177
177
|
}) => {
|
|
178
|
-
const theme =
|
|
179
|
-
const radiusStyles =
|
|
178
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
179
|
+
const radiusStyles = _chunk7UFBLUMVcjs.useBorderRadiusStyles.call(void 0, radius);
|
|
180
180
|
const [shouldRender, setShouldRender] = _react.useState.call(void 0, isOpen);
|
|
181
181
|
const openRef = _react.useRef.call(void 0, isOpen);
|
|
182
182
|
const shouldAnimate = !disableAnimation && animationType !== "none";
|
|
@@ -342,7 +342,7 @@ var DialogHeader = ({
|
|
|
342
342
|
onClose,
|
|
343
343
|
style
|
|
344
344
|
}) => {
|
|
345
|
-
const theme =
|
|
345
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
346
346
|
const { onClose: contextClose, customAppearance } = _react.useContext.call(void 0, DialogContext);
|
|
347
347
|
const close = _nullishCoalesce(onClose, () => ( contextClose));
|
|
348
348
|
return /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: [styles.header, _optionalChain([customAppearance, 'optionalAccess', _5 => _5.header]), style] }, /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.headerContent }, resolveChildrenContent(children, [
|
|
@@ -361,7 +361,7 @@ var DialogHeader = ({
|
|
|
361
361
|
));
|
|
362
362
|
};
|
|
363
363
|
var DialogBody = ({ children, style }) => {
|
|
364
|
-
const theme =
|
|
364
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
365
365
|
const { customAppearance } = _react.useContext.call(void 0, DialogContext);
|
|
366
366
|
return /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: [styles.body, _optionalChain([customAppearance, 'optionalAccess', _8 => _8.body]), style] }, resolveChildrenContent(children, [
|
|
367
367
|
styles.bodyText,
|
package/dist/dialog/index.js
CHANGED
package/dist/divider/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDJ4Q37UTcjs = require('../chunk-DJ4Q37UT.cjs');
|
|
4
4
|
require('../chunk-56RPWZD2.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-7UFBLUMV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Divider =
|
|
8
|
+
exports.Divider = _chunkDJ4Q37UTcjs.Divider;
|
package/dist/divider/index.js
CHANGED
package/dist/drawer/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('../chunk-56RPWZD2.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7UFBLUMVcjs = require('../chunk-7UFBLUMV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/drawer/drawer.tsx
|
|
7
7
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -11,13 +11,13 @@ var _reactnative = require('react-native');
|
|
|
11
11
|
|
|
12
12
|
var _core = require('@xaui/core');
|
|
13
13
|
var useDrawerStyles = (themeColor, position, width, height) => {
|
|
14
|
-
const theme =
|
|
14
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
15
15
|
return _react.useMemo.call(void 0, () => {
|
|
16
16
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
17
17
|
const colorScheme = theme.colors[safeThemeColor];
|
|
18
18
|
const isDefaultThemeColor = safeThemeColor === "default";
|
|
19
|
-
const defaultBackgroundColor = theme.mode === "dark" ? theme.colors.default.
|
|
20
|
-
const backgroundColor = isDefaultThemeColor ? defaultBackgroundColor : colorScheme.
|
|
19
|
+
const defaultBackgroundColor = theme.mode === "dark" ? theme.colors.default.container : "#FFFFFF";
|
|
20
|
+
const backgroundColor = isDefaultThemeColor ? defaultBackgroundColor : colorScheme.container;
|
|
21
21
|
const sizeStyle = position === "left" || position === "right" ? { width } : { height };
|
|
22
22
|
return {
|
|
23
23
|
backgroundColor,
|
package/dist/drawer/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-SHBDANQN.js";
|
|
2
2
|
import {
|
|
3
3
|
useXUITheme
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RBSA4NH4.js";
|
|
5
5
|
|
|
6
6
|
// src/components/drawer/drawer.tsx
|
|
7
7
|
import React, { useEffect, useMemo as useMemo2, useRef, useState } from "react";
|
|
@@ -16,8 +16,8 @@ var useDrawerStyles = (themeColor, position, width, height) => {
|
|
|
16
16
|
const safeThemeColor = getSafeThemeColor(themeColor);
|
|
17
17
|
const colorScheme = theme.colors[safeThemeColor];
|
|
18
18
|
const isDefaultThemeColor = safeThemeColor === "default";
|
|
19
|
-
const defaultBackgroundColor = theme.mode === "dark" ? theme.colors.default.
|
|
20
|
-
const backgroundColor = isDefaultThemeColor ? defaultBackgroundColor : colorScheme.
|
|
19
|
+
const defaultBackgroundColor = theme.mode === "dark" ? theme.colors.default.container : "#FFFFFF";
|
|
20
|
+
const backgroundColor = isDefaultThemeColor ? defaultBackgroundColor : colorScheme.container;
|
|
21
21
|
const sizeStyle = position === "left" || position === "right" ? { width } : { height };
|
|
22
22
|
return {
|
|
23
23
|
backgroundColor,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDJ4Q37UTcjs = require('../chunk-DJ4Q37UT.cjs');
|
|
4
4
|
require('../chunk-56RPWZD2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7UFBLUMVcjs = require('../chunk-7UFBLUMV.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/expansion-panel/expansion-panel.tsx
|
|
11
11
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -30,8 +30,8 @@ var useExpansionPanelStyles = ({
|
|
|
30
30
|
variant,
|
|
31
31
|
fullWidth
|
|
32
32
|
}) => {
|
|
33
|
-
const theme =
|
|
34
|
-
const palette2 =
|
|
33
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
34
|
+
const palette2 = _chunk7UFBLUMVcjs.useXUIPalette.call(void 0, );
|
|
35
35
|
const containerStyles = _react.useMemo.call(void 0, () => {
|
|
36
36
|
const base = {};
|
|
37
37
|
if (fullWidth) {
|
|
@@ -213,12 +213,12 @@ var useExpansionPanelItemAnimation = (isExpanded, disableAnimation) => {
|
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
215
|
var useBaseStyles = (variant, isDisabled) => {
|
|
216
|
-
const theme =
|
|
216
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
217
217
|
const baseStyles = _react.useMemo.call(void 0, () => {
|
|
218
218
|
const base = { overflow: "hidden" };
|
|
219
219
|
if (variant === "splitted") {
|
|
220
220
|
base.paddingHorizontal = theme.spacing.md;
|
|
221
|
-
base.backgroundColor = _core.withOpacity.call(void 0, theme.colors.default.
|
|
221
|
+
base.backgroundColor = _core.withOpacity.call(void 0, theme.colors.default.container, 0.5);
|
|
222
222
|
base.borderRadius = theme.borderRadius.md;
|
|
223
223
|
base.marginBottom = theme.spacing.xs;
|
|
224
224
|
} else if (variant === "bordered") {
|
|
@@ -232,7 +232,7 @@ var useBaseStyles = (variant, isDisabled) => {
|
|
|
232
232
|
return baseStyles;
|
|
233
233
|
};
|
|
234
234
|
var useTriggerStyles = (variant, isCompact) => {
|
|
235
|
-
const theme =
|
|
235
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
236
236
|
const triggerStyles = _react.useMemo.call(void 0, () => {
|
|
237
237
|
const trigger = {
|
|
238
238
|
flexDirection: "row",
|
|
@@ -248,7 +248,7 @@ var useTriggerStyles = (variant, isCompact) => {
|
|
|
248
248
|
return triggerStyles;
|
|
249
249
|
};
|
|
250
250
|
var useTitleTextStyle = (isCompact) => {
|
|
251
|
-
const theme =
|
|
251
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
252
252
|
const titleTextStyle = _react.useMemo.call(void 0,
|
|
253
253
|
() => ({
|
|
254
254
|
fontSize: isCompact ? theme.fontSizes.md : theme.fontSizes.lg,
|
|
@@ -260,7 +260,7 @@ var useTitleTextStyle = (isCompact) => {
|
|
|
260
260
|
return titleTextStyle;
|
|
261
261
|
};
|
|
262
262
|
var useSubtitleTextStyle = () => {
|
|
263
|
-
const theme =
|
|
263
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
264
264
|
const subtitleTextStyle = _react.useMemo.call(void 0,
|
|
265
265
|
() => ({
|
|
266
266
|
fontSize: theme.fontSizes.sm,
|
|
@@ -272,7 +272,7 @@ var useSubtitleTextStyle = () => {
|
|
|
272
272
|
return subtitleTextStyle;
|
|
273
273
|
};
|
|
274
274
|
var useContentContainerStyle = (isCompact, variant) => {
|
|
275
|
-
const theme =
|
|
275
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
276
276
|
const contentContainerStyle = _react.useMemo.call(void 0,
|
|
277
277
|
() => ({
|
|
278
278
|
paddingBottom: isCompact ? theme.spacing.xs : theme.spacing.sm,
|
|
@@ -283,7 +283,7 @@ var useContentContainerStyle = (isCompact, variant) => {
|
|
|
283
283
|
return contentContainerStyle;
|
|
284
284
|
};
|
|
285
285
|
var useForegroundColor = () => {
|
|
286
|
-
const theme =
|
|
286
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
287
287
|
return theme.colors.foreground;
|
|
288
288
|
};
|
|
289
289
|
|
|
@@ -432,7 +432,7 @@ var ExpansionPanel = (props) => {
|
|
|
432
432
|
_react2.default.isValidElement(child) ? normalizeElementKey(child.key) : void 0,
|
|
433
433
|
index
|
|
434
434
|
);
|
|
435
|
-
return /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { key: resolvedChildKey, style: _optionalChain([customAppearance, 'optionalAccess', _13 => _13.item]) }, isExpansionPanelItem(child) ? _react2.default.cloneElement(child, { itemKey: resolvedChildKey }) : child, showBottomDivider && /* @__PURE__ */ _react2.default.createElement(
|
|
435
|
+
return /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { key: resolvedChildKey, style: _optionalChain([customAppearance, 'optionalAccess', _13 => _13.item]) }, isExpansionPanelItem(child) ? _react2.default.cloneElement(child, { itemKey: resolvedChildKey }) : child, showBottomDivider && /* @__PURE__ */ _react2.default.createElement(_chunkDJ4Q37UTcjs.Divider, { color: dividerColor, size: 1 }));
|
|
436
436
|
})));
|
|
437
437
|
};
|
|
438
438
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Divider
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ZY7IUTAT.js";
|
|
4
4
|
import "../chunk-SHBDANQN.js";
|
|
5
5
|
import {
|
|
6
6
|
useXUIPalette,
|
|
7
7
|
useXUITheme
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-RBSA4NH4.js";
|
|
9
9
|
|
|
10
10
|
// src/components/expansion-panel/expansion-panel.tsx
|
|
11
11
|
import React4 from "react";
|
|
@@ -218,7 +218,7 @@ var useBaseStyles = (variant, isDisabled) => {
|
|
|
218
218
|
const base = { overflow: "hidden" };
|
|
219
219
|
if (variant === "splitted") {
|
|
220
220
|
base.paddingHorizontal = theme.spacing.md;
|
|
221
|
-
base.backgroundColor = withOpacity(theme.colors.default.
|
|
221
|
+
base.backgroundColor = withOpacity(theme.colors.default.container, 0.5);
|
|
222
222
|
base.borderRadius = theme.borderRadius.md;
|
|
223
223
|
base.marginBottom = theme.spacing.xs;
|
|
224
224
|
} else if (variant === "bordered") {
|
package/dist/fab/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkUGEINZM7cjs = require('../chunk-UGEINZM7.cjs');
|
|
4
|
+
require('../chunk-YIEUN3G5.cjs');
|
|
5
5
|
require('../chunk-56RPWZD2.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-7UFBLUMV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.Fab =
|
|
9
|
+
exports.Fab = _chunkUGEINZM7cjs.Fab;
|
package/dist/fab/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Fab
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-UU4HHBDN.js";
|
|
4
|
+
import "../chunk-VSZEXOUN.js";
|
|
5
5
|
import "../chunk-SHBDANQN.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-RBSA4NH4.js";
|
|
7
7
|
export {
|
|
8
8
|
Fab
|
|
9
9
|
};
|