@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
@@ -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/typography/typography.tsx
7
7
  import React, { useMemo as useMemo2 } from "react";
@@ -146,6 +146,7 @@ var Typography = ({
146
146
  overflow = "clip",
147
147
  color,
148
148
  letterSpacing,
149
+ lineHeight,
149
150
  fontWeight,
150
151
  fontStyle,
151
152
  textDecorationLine,
@@ -159,6 +160,7 @@ var Typography = ({
159
160
  const textStyleOverrides = {
160
161
  color: color ?? inheritedStyle.color ?? themeColorValue,
161
162
  letterSpacing,
163
+ lineHeight,
162
164
  fontWeight: fontWeight ?? inheritedStyle.fontWeight,
163
165
  fontStyle: fontStyle ?? inheritedStyle.fontStyle,
164
166
  textDecorationLine,
@@ -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/view/column/column.tsx
8
8
  var _react = require('react'); var _react2 = _interopRequireDefault(_react);
@@ -402,7 +402,7 @@ var resolveBackgroundColor = (color, theme) => {
402
402
  return theme.colors[color];
403
403
  }
404
404
  const safeColor = _core.getSafeThemeColor.call(void 0, color);
405
- return theme.colors[safeColor].background;
405
+ return theme.colors[safeColor].container;
406
406
  };
407
407
  var Surface = ({
408
408
  children,
@@ -412,8 +412,8 @@ var Surface = ({
412
412
  fullWidth = false,
413
413
  style
414
414
  }) => {
415
- const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
416
- const radiusStyle = _chunkRZJFCDFScjs.useBorderRadiusStyles.call(void 0, radius);
415
+ const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
416
+ const radiusStyle = _chunk7UFBLUMVcjs.useBorderRadiusStyles.call(void 0, radius);
417
417
  const background = resolveBackgroundColor(themeColor, theme);
418
418
  return /* @__PURE__ */ _react2.default.createElement(
419
419
  _reactnative.View,
@@ -2,7 +2,7 @@ import "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  useBorderRadiusStyles,
4
4
  useXUITheme
5
- } from "../chunk-LVNBYERF.js";
5
+ } from "../chunk-RBSA4NH4.js";
6
6
 
7
7
  // src/components/view/column/column.tsx
8
8
  import React from "react";
@@ -402,7 +402,7 @@ var resolveBackgroundColor = (color, theme) => {
402
402
  return theme.colors[color];
403
403
  }
404
404
  const safeColor = getSafeThemeColor(color);
405
- return theme.colors[safeColor].background;
405
+ return theme.colors[safeColor].container;
406
406
  };
407
407
  var Surface = ({
408
408
  children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaui/native",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "Flutter-inspired React Native UI components with native animations powered by React Native Reanimated",
5
5
  "keywords": [
6
6
  "react-native",
@@ -251,6 +251,11 @@
251
251
  "types": "./dist/snippet/index.d.ts",
252
252
  "import": "./dist/snippet/index.js",
253
253
  "require": "./dist/snippet/index.js"
254
+ },
255
+ "./refresh-control": {
256
+ "types": "./dist/refresh-control/index.d.ts",
257
+ "import": "./dist/refresh-control/index.js",
258
+ "require": "./dist/refresh-control/index.js"
254
259
  }
255
260
  },
256
261
  "files": [
@@ -263,8 +268,8 @@
263
268
  "directory": "packages/native"
264
269
  },
265
270
  "dependencies": {
266
- "@xaui/core": "0.1.11",
267
- "@xaui/icons": "0.0.8"
271
+ "@xaui/core": "0.2.0",
272
+ "@xaui/icons": "0.0.9"
268
273
  },
269
274
  "peerDependencies": {
270
275
  "react": "^18.0.0 || ^19.0.0",