@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.
Files changed (130) hide show
  1. package/README.md +109 -113
  2. package/dist/alert/index.cjs +6 -9
  3. package/dist/alert/index.js +4 -7
  4. package/dist/app-bar/index.cjs +4 -4
  5. package/dist/app-bar/index.js +2 -2
  6. package/dist/autocomplete/index.cjs +20 -25
  7. package/dist/autocomplete/index.d.cts +1 -1
  8. package/dist/autocomplete/index.d.ts +1 -1
  9. package/dist/autocomplete/index.js +11 -16
  10. package/dist/avatar/index.cjs +9 -9
  11. package/dist/avatar/index.js +5 -5
  12. package/dist/badge/index.cjs +13 -14
  13. package/dist/badge/index.js +10 -11
  14. package/dist/bottom-sheet/index.cjs +3 -3
  15. package/dist/bottom-sheet/index.js +2 -2
  16. package/dist/bottom-tab-bar/index.cjs +2 -2
  17. package/dist/bottom-tab-bar/index.js +1 -1
  18. package/dist/button/index.cjs +19 -22
  19. package/dist/button/index.d.cts +3 -3
  20. package/dist/button/index.d.ts +3 -3
  21. package/dist/button/index.js +12 -15
  22. package/dist/card/index.cjs +8 -8
  23. package/dist/card/index.js +3 -3
  24. package/dist/carousel/index.cjs +2 -2
  25. package/dist/carousel/index.js +1 -1
  26. package/dist/checkbox/index.cjs +11 -11
  27. package/dist/checkbox/index.js +6 -6
  28. package/dist/chip/index.cjs +11 -11
  29. package/dist/chip/index.js +9 -9
  30. package/dist/{chunk-K24VDBNN.js → chunk-4JFWQ5XT.js} +2 -2
  31. package/dist/{chunk-RZJFCDFS.cjs → chunk-7UFBLUMV.cjs} +13 -19
  32. package/dist/{chunk-M6A23KUM.js → chunk-A45TVXU5.js} +29 -5
  33. package/dist/{chunk-3XWF77Y3.cjs → chunk-BYWUAPC4.cjs} +4 -4
  34. package/dist/{chunk-X5KNZ6YJ.cjs → chunk-DJ4Q37UT.cjs} +2 -2
  35. package/dist/{chunk-LVNBYERF.js → chunk-RBSA4NH4.js} +13 -19
  36. package/dist/{chunk-HYL4EU3Y.cjs → chunk-UGEINZM7.cjs} +14 -13
  37. package/dist/{chunk-WGWXGIZ3.js → chunk-UU4HHBDN.js} +10 -9
  38. package/dist/{chunk-J3BOFXIH.js → chunk-VSZEXOUN.js} +4 -4
  39. package/dist/{chunk-FBTBWI3P.cjs → chunk-YIEUN3G5.cjs} +7 -7
  40. package/dist/{chunk-43I45LX7.cjs → chunk-ZH6ZSV2Q.cjs} +33 -9
  41. package/dist/{chunk-2JKWVIPB.js → chunk-ZY7IUTAT.js} +1 -1
  42. package/dist/color-picker/index.cjs +7 -7
  43. package/dist/color-picker/index.d.cts +1 -1
  44. package/dist/color-picker/index.d.ts +1 -1
  45. package/dist/color-picker/index.js +4 -4
  46. package/dist/core/index.cjs +2 -2
  47. package/dist/core/index.d.cts +1 -2
  48. package/dist/core/index.d.ts +1 -2
  49. package/dist/core/index.js +1 -1
  50. package/dist/datepicker/index.cjs +28 -30
  51. package/dist/datepicker/index.d.cts +1 -1
  52. package/dist/datepicker/index.d.ts +1 -1
  53. package/dist/datepicker/index.js +17 -19
  54. package/dist/dialog/index.cjs +5 -5
  55. package/dist/dialog/index.js +1 -1
  56. package/dist/divider/index.cjs +3 -3
  57. package/dist/divider/index.js +2 -2
  58. package/dist/drawer/index.cjs +4 -4
  59. package/dist/drawer/index.js +3 -3
  60. package/dist/expansion-panel/index.cjs +12 -12
  61. package/dist/expansion-panel/index.js +3 -3
  62. package/dist/fab/index.cjs +4 -4
  63. package/dist/fab/index.js +3 -3
  64. package/dist/fab-menu/index.cjs +8 -8
  65. package/dist/fab-menu/index.js +4 -4
  66. package/dist/feature-discovery/index.cjs +6 -6
  67. package/dist/feature-discovery/index.js +5 -5
  68. package/dist/indicator/index.cjs +3 -3
  69. package/dist/indicator/index.js +2 -2
  70. package/dist/input/index.cjs +38 -20
  71. package/dist/input/index.d.cts +2 -2
  72. package/dist/input/index.d.ts +2 -2
  73. package/dist/input/index.js +36 -18
  74. package/dist/input-trigger/index.cjs +193 -4
  75. package/dist/input-trigger/index.d.cts +5 -3
  76. package/dist/input-trigger/index.d.ts +5 -3
  77. package/dist/input-trigger/index.js +192 -3
  78. package/dist/{input-trigger.type-BL70fHE9.d.cts → input-trigger.type-By_1ZjKd.d.cts} +86 -3
  79. package/dist/{input-trigger.type-BODYStHk.d.ts → input-trigger.type-DlSqg2eG.d.ts} +86 -3
  80. package/dist/list/index.cjs +6 -6
  81. package/dist/list/index.js +2 -2
  82. package/dist/menu/index.cjs +4 -4
  83. package/dist/menu/index.js +2 -2
  84. package/dist/menubox/index.cjs +7 -7
  85. package/dist/menubox/index.d.cts +1 -1
  86. package/dist/menubox/index.d.ts +1 -1
  87. package/dist/menubox/index.js +3 -3
  88. package/dist/picker/index.cjs +7 -7
  89. package/dist/picker/index.d.cts +1 -1
  90. package/dist/picker/index.d.ts +1 -1
  91. package/dist/picker/index.js +4 -4
  92. package/dist/progress/index.cjs +3 -3
  93. package/dist/progress/index.js +2 -2
  94. package/dist/radio/index.cjs +9 -9
  95. package/dist/radio/index.js +3 -3
  96. package/dist/refresh-control/index.cjs +45 -0
  97. package/dist/refresh-control/index.d.cts +55 -0
  98. package/dist/refresh-control/index.d.ts +55 -0
  99. package/dist/refresh-control/index.js +45 -0
  100. package/dist/segment-button/index.cjs +8 -8
  101. package/dist/segment-button/index.js +5 -5
  102. package/dist/select/index.cjs +50 -58
  103. package/dist/select/index.d.cts +2 -2
  104. package/dist/select/index.d.ts +2 -2
  105. package/dist/select/index.js +37 -45
  106. package/dist/skeleton/index.cjs +4 -4
  107. package/dist/skeleton/index.js +3 -3
  108. package/dist/slider/index.cjs +5 -5
  109. package/dist/slider/index.js +1 -1
  110. package/dist/snackbar/index.cjs +6 -6
  111. package/dist/snackbar/index.js +4 -4
  112. package/dist/snippet/index.cjs +4 -4
  113. package/dist/snippet/index.js +2 -2
  114. package/dist/stepper/index.cjs +3 -3
  115. package/dist/stepper/index.js +2 -2
  116. package/dist/switch/index.cjs +8 -8
  117. package/dist/switch/index.js +2 -2
  118. package/dist/tabs/index.cjs +7 -7
  119. package/dist/tabs/index.js +4 -4
  120. package/dist/timepicker/index.cjs +7 -7
  121. package/dist/timepicker/index.js +4 -4
  122. package/dist/toolbar/index.cjs +3 -3
  123. package/dist/toolbar/index.js +2 -2
  124. package/dist/typography/index.cjs +5 -3
  125. package/dist/typography/index.d.cts +4 -0
  126. package/dist/typography/index.d.ts +4 -0
  127. package/dist/typography/index.js +3 -1
  128. package/dist/view/index.cjs +4 -4
  129. package/dist/view/index.js +2 -2
  130. package/package.json +8 -3
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 ((variant === "outlined" || variant === "faded") && themeColor === "default") {
74
+ if (variant === "bordered" && themeColor === "default") {
75
75
  borderColor = _palette.colors.gray[300];
76
76
  }
77
77
  const variantStyles = {
78
- outlined: {
78
+ bordered: {
79
79
  backgroundColor: "transparent",
80
80
  borderWidth: theme.borderWidth.md,
81
81
  borderColor
82
82
  },
83
- flat: {
84
- backgroundColor: colorScheme.background,
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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.foreground;
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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.foreground }] }, selectDateLabel), /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles2.headerDateRow }, /* @__PURE__ */ _react2.default.createElement(_reactnative.Text, { style: [styles2.headerDate, { color: colorScheme.foreground }] }, dateText), selectedDate ? /* @__PURE__ */ _react2.default.createElement(
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.foreground })
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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.foreground;
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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.foreground;
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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(_chunkRZJFCDFScjs.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(
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: sizeStyles.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 = "flat",
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = 'outlined' | 'flat' | 'light' | 'faded' | 'underlined';
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 = 'outlined' | 'flat' | 'light' | 'faded' | 'underlined';
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 "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  Portal,
4
4
  useXUITheme
5
- } from "../chunk-LVNBYERF.js";
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 ((variant === "outlined" || variant === "faded") && themeColor === "default") {
74
+ if (variant === "bordered" && themeColor === "default") {
75
75
  borderColor = colors.gray[300];
76
76
  }
77
77
  const variantStyles = {
78
- outlined: {
78
+ bordered: {
79
79
  backgroundColor: "transparent",
80
80
  borderWidth: theme.borderWidth.md,
81
81
  borderColor
82
82
  },
83
- flat: {
84
- backgroundColor: colorScheme.background,
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.foreground;
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.foreground }] }, selectDateLabel), /* @__PURE__ */ React2.createElement(View2, { style: styles2.headerDateRow }, /* @__PURE__ */ React2.createElement(Text2, { style: [styles2.headerDate, { color: colorScheme.foreground }] }, dateText), selectedDate ? /* @__PURE__ */ React2.createElement(
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.foreground })
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.foreground;
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.foreground;
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: sizeStyles.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 = "flat",
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,
@@ -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 _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
179
- const radiusStyles = _chunkRZJFCDFScjs.useBorderRadiusStyles.call(void 0, radius);
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useBorderRadiusStyles,
3
3
  useXUITheme
4
- } from "../chunk-LVNBYERF.js";
4
+ } from "../chunk-RBSA4NH4.js";
5
5
 
6
6
  // src/components/dialog/dialog.tsx
7
7
  import React, {
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkX5KNZ6YJcjs = require('../chunk-X5KNZ6YJ.cjs');
3
+ var _chunkDJ4Q37UTcjs = require('../chunk-DJ4Q37UT.cjs');
4
4
  require('../chunk-56RPWZD2.cjs');
5
- require('../chunk-RZJFCDFS.cjs');
5
+ require('../chunk-7UFBLUMV.cjs');
6
6
 
7
7
 
8
- exports.Divider = _chunkX5KNZ6YJcjs.Divider;
8
+ exports.Divider = _chunkDJ4Q37UTcjs.Divider;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Divider
3
- } from "../chunk-2JKWVIPB.js";
3
+ } from "../chunk-ZY7IUTAT.js";
4
4
  import "../chunk-SHBDANQN.js";
5
- import "../chunk-LVNBYERF.js";
5
+ import "../chunk-RBSA4NH4.js";
6
6
  export {
7
7
  Divider
8
8
  };
@@ -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 _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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.background : "#FFFFFF";
20
- const backgroundColor = isDefaultThemeColor ? defaultBackgroundColor : colorScheme.background;
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,7 +1,7 @@
1
1
  import "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  useXUITheme
4
- } from "../chunk-LVNBYERF.js";
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.background : "#FFFFFF";
20
- const backgroundColor = isDefaultThemeColor ? defaultBackgroundColor : colorScheme.background;
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 _chunkX5KNZ6YJcjs = require('../chunk-X5KNZ6YJ.cjs');
3
+ var _chunkDJ4Q37UTcjs = require('../chunk-DJ4Q37UT.cjs');
4
4
  require('../chunk-56RPWZD2.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
34
- const palette2 = _chunkRZJFCDFScjs.useXUIPalette.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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.background, 0.5);
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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 = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
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(_chunkX5KNZ6YJcjs.Divider, { color: dividerColor, size: 1 }));
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-2JKWVIPB.js";
3
+ } from "../chunk-ZY7IUTAT.js";
4
4
  import "../chunk-SHBDANQN.js";
5
5
  import {
6
6
  useXUIPalette,
7
7
  useXUITheme
8
- } from "../chunk-LVNBYERF.js";
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.background, 0.5);
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") {
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkHYL4EU3Ycjs = require('../chunk-HYL4EU3Y.cjs');
4
- require('../chunk-FBTBWI3P.cjs');
3
+ var _chunkUGEINZM7cjs = require('../chunk-UGEINZM7.cjs');
4
+ require('../chunk-YIEUN3G5.cjs');
5
5
  require('../chunk-56RPWZD2.cjs');
6
- require('../chunk-RZJFCDFS.cjs');
6
+ require('../chunk-7UFBLUMV.cjs');
7
7
 
8
8
 
9
- exports.Fab = _chunkHYL4EU3Ycjs.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-WGWXGIZ3.js";
4
- import "../chunk-J3BOFXIH.js";
3
+ } from "../chunk-UU4HHBDN.js";
4
+ import "../chunk-VSZEXOUN.js";
5
5
  import "../chunk-SHBDANQN.js";
6
- import "../chunk-LVNBYERF.js";
6
+ import "../chunk-RBSA4NH4.js";
7
7
  export {
8
8
  Fab
9
9
  };