@xaui/native 0.0.26 → 0.0.28

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 (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +105 -228
  3. package/dist/alert/index.cjs +92 -166
  4. package/dist/alert/index.js +2 -1
  5. package/dist/app-bar/index.cjs +24 -98
  6. package/dist/app-bar/index.js +2 -1
  7. package/dist/autocomplete/index.cjs +192 -281
  8. package/dist/autocomplete/index.js +36 -48
  9. package/dist/avatar/index.cjs +59 -133
  10. package/dist/avatar/index.js +2 -1
  11. package/dist/badge/index.cjs +26 -99
  12. package/dist/badge/index.js +2 -1
  13. package/dist/bottom-sheet/index.cjs +5 -456
  14. package/dist/bottom-sheet/index.js +4 -363
  15. package/dist/bottom-tab-bar/index.cjs +93 -167
  16. package/dist/bottom-tab-bar/index.js +2 -2
  17. package/dist/button/index.cjs +73 -525
  18. package/dist/button/index.js +3 -2
  19. package/dist/card/index.cjs +76 -169
  20. package/dist/card/index.js +2 -2
  21. package/dist/carousel/index.cjs +68 -145
  22. package/dist/carousel/index.js +1 -1
  23. package/dist/chart/index.cjs +132 -173
  24. package/dist/checkbox/index.cjs +70 -143
  25. package/dist/checkbox/index.js +2 -1
  26. package/dist/chip/index.cjs +89 -164
  27. package/dist/chip/index.js +2 -1
  28. package/dist/chunk-BD72HIPR.cjs +75 -0
  29. package/dist/chunk-DHSTKO3K.cjs +19 -0
  30. package/dist/{chunk-CZFDZPAS.js → chunk-DXXNBF5P.js} +5 -0
  31. package/dist/{chunk-UI5L26KD.js → chunk-F7WH4DMG.js} +1 -1
  32. package/dist/chunk-GBHQCAKW.js +19 -0
  33. package/dist/chunk-HC2SSHNU.js +368 -0
  34. package/dist/chunk-HSPTLUFA.cjs +7 -0
  35. package/dist/chunk-JEGEPGVU.js +287 -0
  36. package/dist/chunk-KTLGDLCB.cjs +287 -0
  37. package/dist/{chunk-GHCVNQET.js → chunk-LTKYHG5V.js} +5 -12
  38. package/dist/{chunk-ULJSCNPE.js → chunk-LUBWRVI2.js} +1 -1
  39. package/dist/chunk-OQ2BLOOG.cjs +138 -0
  40. package/dist/chunk-QMYWIWSX.cjs +384 -0
  41. package/dist/chunk-XFPPR2VB.cjs +368 -0
  42. package/dist/core/index.cjs +22 -168
  43. package/dist/core/index.d.cts +1 -1
  44. package/dist/core/index.d.ts +1 -1
  45. package/dist/core/index.js +5 -3
  46. package/dist/datepicker/index.cjs +239 -320
  47. package/dist/datepicker/index.js +2 -1
  48. package/dist/divider/index.cjs +5 -145
  49. package/dist/divider/index.js +3 -2
  50. package/dist/drawer/index.cjs +39 -112
  51. package/dist/drawer/index.js +2 -1
  52. package/dist/expansion-panel/index.cjs +91 -230
  53. package/dist/expansion-panel/index.js +3 -2
  54. package/dist/fab/index.cjs +6 -722
  55. package/dist/fab/index.js +4 -3
  56. package/dist/fab-menu/index.cjs +81 -814
  57. package/dist/fab-menu/index.js +4 -3
  58. package/dist/feature-discovery/index.cjs +72 -139
  59. package/dist/feature-discovery/index.js +2 -2
  60. package/dist/index.cjs +1 -18
  61. package/dist/indicator/index.cjs +5 -445
  62. package/dist/indicator/index.js +3 -2
  63. package/dist/input/index.cjs +214 -282
  64. package/dist/input/index.js +2 -2
  65. package/dist/list/index.cjs +71 -146
  66. package/dist/list/index.js +2 -1
  67. package/dist/menu/index.cjs +59 -127
  68. package/dist/menu/index.js +2 -2
  69. package/dist/menubox/index.cjs +60 -132
  70. package/dist/menubox/index.js +2 -1
  71. package/dist/pager/index.cjs +42 -80
  72. package/dist/progress/index.cjs +43 -114
  73. package/dist/progress/index.js +2 -1
  74. package/dist/radio/index.cjs +82 -154
  75. package/dist/radio/index.js +2 -1
  76. package/dist/segment-button/index.cjs +60 -147
  77. package/dist/segment-button/index.js +2 -2
  78. package/dist/select/index.cjs +149 -224
  79. package/dist/select/index.js +10 -22
  80. package/dist/skeleton/index.cjs +23 -94
  81. package/dist/skeleton/index.js +2 -2
  82. package/dist/slider/index.cjs +77 -156
  83. package/dist/slider/index.js +2 -1
  84. package/dist/snackbar/index.cjs +420 -0
  85. package/dist/snackbar/index.d.cts +175 -0
  86. package/dist/snackbar/index.d.ts +175 -0
  87. package/dist/snackbar/index.js +420 -0
  88. package/dist/stepper/index.cjs +121 -195
  89. package/dist/stepper/index.js +2 -1
  90. package/dist/switch/index.cjs +48 -121
  91. package/dist/switch/index.js +2 -1
  92. package/dist/tabs/index.cjs +67 -151
  93. package/dist/tabs/index.js +2 -1
  94. package/dist/timepicker/index.cjs +135 -593
  95. package/dist/timepicker/index.js +24 -383
  96. package/dist/toolbar/index.cjs +59 -128
  97. package/dist/toolbar/index.js +2 -1
  98. package/dist/typography/index.cjs +37 -92
  99. package/dist/typography/index.d.cts +1 -1
  100. package/dist/typography/index.d.ts +1 -1
  101. package/dist/typography/index.js +20 -1
  102. package/dist/view/index.cjs +178 -223
  103. package/package.json +7 -1
  104. package/dist/chunk-3XSXTM3G.js +0 -661
  105. package/dist/chunk-4KSZLONZ.js +0 -79
  106. package/dist/chunk-I4V5Y5GD.js +0 -76
  107. package/dist/chunk-URBEEDFX.js +0 -79
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  Fab
3
- } from "../chunk-3XSXTM3G.js";
4
- import "../chunk-CZFDZPAS.js";
3
+ } from "../chunk-JEGEPGVU.js";
4
+ import "../chunk-F7WH4DMG.js";
5
+ import "../chunk-DXXNBF5P.js";
5
6
  import {
6
7
  Portal,
7
8
  useXUITheme
8
- } from "../chunk-I4V5Y5GD.js";
9
+ } from "../chunk-LTKYHG5V.js";
9
10
 
10
11
  // src/components/fab-menu/fab-menu.tsx
11
12
  import React from "react";
@@ -1,52 +1,27 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
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; }require('../chunk-HSPTLUFA.cjs');
29
2
 
30
- // src/components/feature-discovery/index.ts
31
- var feature_discovery_exports = {};
32
- __export(feature_discovery_exports, {
33
- FeatureDiscovery: () => FeatureDiscovery
34
- });
35
- module.exports = __toCommonJS(feature_discovery_exports);
3
+
4
+ var _chunkOQ2BLOOGcjs = require('../chunk-OQ2BLOOG.cjs');
36
5
 
37
6
  // src/components/feature-discovery/feature-discovery.tsx
38
- var import_react7 = __toESM(require("react"), 1);
39
- var import_react_native6 = require("react-native");
40
- var import_core3 = require("@xaui/core");
7
+ var _react = require('react'); var _react2 = _interopRequireDefault(_react);
8
+
9
+
10
+
11
+
12
+
13
+
14
+ var _reactnative = require('react-native');
15
+ var _core = require('@xaui/core');
41
16
 
42
17
  // src/components/feature-discovery/feature-discovery.style.ts
43
- var import_react_native = require("react-native");
44
- var styles = import_react_native.StyleSheet.create({
18
+
19
+ var styles = _reactnative.StyleSheet.create({
45
20
  root: {
46
21
  flex: 1
47
22
  },
48
23
  absoluteFill: {
49
- ...import_react_native.StyleSheet.absoluteFillObject
24
+ ..._reactnative.StyleSheet.absoluteFillObject
50
25
  },
51
26
  circle: {
52
27
  position: "absolute"
@@ -105,74 +80,33 @@ var styles = import_react_native.StyleSheet.create({
105
80
  });
106
81
 
107
82
  // src/components/feature-discovery/feature-discovery.hook.ts
108
- var import_react6 = require("react");
109
- var import_react_native5 = require("react-native");
110
- var import_core = require("@xaui/core");
111
-
112
- // src/core/theme-context.tsx
113
- var import_react4 = __toESM(require("react"), 1);
114
- var import_react_native3 = require("react-native");
115
- var import_theme = require("@xaui/core/theme");
116
- var import_palette = require("@xaui/core/palette");
117
83
 
118
- // src/core/portal/portal.tsx
119
- var import_react2 = require("react");
120
84
 
121
- // src/core/portal/portal-context.ts
122
- var import_react = require("react");
123
- var PortalContext = (0, import_react.createContext)(null);
124
85
 
125
- // src/core/portal/portal-host.tsx
126
- var import_react3 = __toESM(require("react"), 1);
127
- var import_react_native2 = require("react-native");
128
- var hostStyles = import_react_native2.StyleSheet.create({
129
- container: {
130
- flex: 1
131
- }
132
- });
133
-
134
- // src/core/theme-context.tsx
135
- var XUIThemeContext = (0, import_react4.createContext)(null);
136
-
137
- // src/core/theme-hooks.ts
138
- var import_react5 = require("react");
139
- var import_react_native4 = require("react-native");
140
- function useXUITheme() {
141
- const theme = (0, import_react5.useContext)(XUIThemeContext);
142
- if (!theme) {
143
- throw new Error("useXUITheme must be used within XUIProvider");
144
- }
145
- return theme;
146
- }
147
-
148
- // src/core/index.ts
149
- var import_theme2 = require("@xaui/core/theme");
150
-
151
- // src/components/feature-discovery/feature-discovery.hook.ts
152
86
  var useFeatureDiscoveryAnimations = () => {
153
- const backdropOpacity = (0, import_react6.useRef)(new import_react_native5.Animated.Value(0)).current;
154
- const circleAnimScale = (0, import_react6.useRef)(new import_react_native5.Animated.Value(0.2)).current;
155
- const contentOpacity = (0, import_react6.useRef)(new import_react_native5.Animated.Value(0)).current;
156
- const haloScale = (0, import_react6.useRef)(new import_react_native5.Animated.Value(0.8)).current;
157
- const startAnimations = (0, import_react6.useCallback)(() => {
158
- import_react_native5.Animated.parallel([
159
- import_react_native5.Animated.timing(backdropOpacity, {
87
+ const backdropOpacity = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
88
+ const circleAnimScale = _react.useRef.call(void 0, new _reactnative.Animated.Value(0.2)).current;
89
+ const contentOpacity = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
90
+ const haloScale = _react.useRef.call(void 0, new _reactnative.Animated.Value(0.8)).current;
91
+ const startAnimations = _react.useCallback.call(void 0, () => {
92
+ _reactnative.Animated.parallel([
93
+ _reactnative.Animated.timing(backdropOpacity, {
160
94
  toValue: 1,
161
95
  duration: 220,
162
96
  useNativeDriver: true
163
97
  }),
164
- import_react_native5.Animated.spring(circleAnimScale, {
98
+ _reactnative.Animated.spring(circleAnimScale, {
165
99
  toValue: 1,
166
100
  friction: 8,
167
101
  tension: 80,
168
102
  useNativeDriver: true
169
103
  }),
170
- import_react_native5.Animated.timing(contentOpacity, {
104
+ _reactnative.Animated.timing(contentOpacity, {
171
105
  toValue: 1,
172
106
  duration: 260,
173
107
  useNativeDriver: true
174
108
  }),
175
- import_react_native5.Animated.spring(haloScale, {
109
+ _reactnative.Animated.spring(haloScale, {
176
110
  toValue: 1,
177
111
  friction: 8,
178
112
  tension: 80,
@@ -180,7 +114,7 @@ var useFeatureDiscoveryAnimations = () => {
180
114
  })
181
115
  ]).start();
182
116
  }, [backdropOpacity, circleAnimScale, contentOpacity, haloScale]);
183
- const resetAnimations = (0, import_react6.useCallback)(() => {
117
+ const resetAnimations = _react.useCallback.call(void 0, () => {
184
118
  backdropOpacity.setValue(0);
185
119
  circleAnimScale.setValue(0.2);
186
120
  contentOpacity.setValue(0);
@@ -196,10 +130,10 @@ var useFeatureDiscoveryAnimations = () => {
196
130
  };
197
131
  };
198
132
  var useFeatureDiscoveryLayout = (targetRef) => {
199
- const { width: viewportWidth, height: viewportHeight } = (0, import_react_native5.useWindowDimensions)();
200
- const [targetLayout, setTargetLayout] = (0, import_react6.useState)(null);
201
- const measureTarget = (0, import_react6.useCallback)(() => {
202
- targetRef.current?.measureInWindow((x, y, width, height) => {
133
+ const { width: viewportWidth, height: viewportHeight } = _reactnative.useWindowDimensions.call(void 0, );
134
+ const [targetLayout, setTargetLayout] = _react.useState.call(void 0, null);
135
+ const measureTarget = _react.useCallback.call(void 0, () => {
136
+ _optionalChain([targetRef, 'access', _ => _.current, 'optionalAccess', _2 => _2.measureInWindow, 'call', _3 => _3((x, y, width, height) => {
203
137
  if (!width && !height) {
204
138
  setTargetLayout({
205
139
  x: viewportWidth / 2 - 28,
@@ -210,9 +144,9 @@ var useFeatureDiscoveryLayout = (targetRef) => {
210
144
  return;
211
145
  }
212
146
  setTargetLayout({ x, y, width, height });
213
- });
147
+ })]);
214
148
  }, [targetRef, viewportHeight, viewportWidth]);
215
- const fallbackTarget = (0, import_react6.useMemo)(
149
+ const fallbackTarget = _react.useMemo.call(void 0,
216
150
  () => ({
217
151
  x: viewportWidth / 2 - 28,
218
152
  y: viewportHeight / 2 - 28,
@@ -221,7 +155,7 @@ var useFeatureDiscoveryLayout = (targetRef) => {
221
155
  }),
222
156
  [viewportWidth, viewportHeight]
223
157
  );
224
- const target = targetLayout ?? fallbackTarget;
158
+ const target = _nullishCoalesce(targetLayout, () => ( fallbackTarget));
225
159
  return {
226
160
  targetLayout,
227
161
  target,
@@ -252,7 +186,7 @@ var useFeatureDiscoveryGeometry = (target, viewportWidth, viewportHeight, spotli
252
186
  const targetCenterX = clampedTargetX + target.width / 2;
253
187
  const targetCenterY = clampedTargetY + target.height / 2;
254
188
  const spotlightSize = Math.max(target.width, target.height) + spotlightPadding * 2;
255
- const circleDiameter = (0, import_react6.useMemo)(() => {
189
+ const circleDiameter = _react.useMemo.call(void 0, () => {
256
190
  return viewportWidth * circleScale;
257
191
  }, [circleScale, viewportWidth]);
258
192
  const circleRadius = circleDiameter / 2;
@@ -301,10 +235,10 @@ var useFeatureDiscoveryGeometry = (target, viewportWidth, viewportHeight, spotli
301
235
  };
302
236
  };
303
237
  var useFeatureDiscoveryTheme = (themeColor, overlayColor) => {
304
- const theme = useXUITheme();
305
- const colorScheme = theme.colors[(0, import_core.getSafeThemeColor)(themeColor)];
306
- const resolvedOverlayColor = (0, import_react6.useMemo)(
307
- () => overlayColor ?? (0, import_core.withOpacity)(theme.colors.foreground, 0.42),
238
+ const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
239
+ const colorScheme = theme.colors[_core.getSafeThemeColor.call(void 0, themeColor)];
240
+ const resolvedOverlayColor = _react.useMemo.call(void 0,
241
+ () => _nullishCoalesce(overlayColor, () => ( _core.withOpacity.call(void 0, theme.colors.foreground, 0.42))),
308
242
  [overlayColor, theme.colors.foreground]
309
243
  );
310
244
  return {
@@ -364,7 +298,7 @@ var FeatureDiscovery = ({
364
298
  themeColor,
365
299
  overlayColor
366
300
  );
367
- (0, import_react7.useEffect)(() => {
301
+ _react.useEffect.call(void 0, () => {
368
302
  if (!isVisible) {
369
303
  setTargetLayout(null);
370
304
  return;
@@ -379,12 +313,12 @@ var FeatureDiscovery = ({
379
313
  if (!isVisible) return null;
380
314
  const renderContent = (content, textStyle) => {
381
315
  if (typeof content === "string" || typeof content === "number") {
382
- return /* @__PURE__ */ import_react7.default.createElement(import_react_native6.Text, { style: textStyle }, content);
316
+ return /* @__PURE__ */ _react2.default.createElement(_reactnative.Text, { style: textStyle }, content);
383
317
  }
384
318
  return content;
385
319
  };
386
- return /* @__PURE__ */ import_react7.default.createElement(
387
- import_react_native6.Modal,
320
+ return /* @__PURE__ */ _react2.default.createElement(
321
+ _reactnative.Modal,
388
322
  {
389
323
  visible: isVisible,
390
324
  transparent: true,
@@ -392,19 +326,19 @@ var FeatureDiscovery = ({
392
326
  statusBarTranslucent: true,
393
327
  onRequestClose: onDismiss
394
328
  },
395
- /* @__PURE__ */ import_react7.default.createElement(
396
- import_react_native6.View,
329
+ /* @__PURE__ */ _react2.default.createElement(
330
+ _reactnative.View,
397
331
  {
398
- style: [styles.root, customAppearance?.root, customAppearance?.container]
332
+ style: [styles.root, _optionalChain([customAppearance, 'optionalAccess', _4 => _4.root]), _optionalChain([customAppearance, 'optionalAccess', _5 => _5.container])]
399
333
  },
400
- /* @__PURE__ */ import_react7.default.createElement(
401
- import_react_native6.Pressable,
334
+ /* @__PURE__ */ _react2.default.createElement(
335
+ _reactnative.Pressable,
402
336
  {
403
337
  style: styles.absoluteFill,
404
338
  onPress: dismissOnBackdropPress ? onDismiss : void 0
405
339
  },
406
- /* @__PURE__ */ import_react7.default.createElement(
407
- import_react_native6.Animated.View,
340
+ /* @__PURE__ */ _react2.default.createElement(
341
+ _reactnative.Animated.View,
408
342
  {
409
343
  style: [
410
344
  styles.absoluteFill,
@@ -416,8 +350,8 @@ var FeatureDiscovery = ({
416
350
  }
417
351
  )
418
352
  ),
419
- /* @__PURE__ */ import_react7.default.createElement(
420
- import_react_native6.Animated.View,
353
+ /* @__PURE__ */ _react2.default.createElement(
354
+ _reactnative.Animated.View,
421
355
  {
422
356
  style: [
423
357
  styles.circle,
@@ -434,8 +368,8 @@ var FeatureDiscovery = ({
434
368
  ]
435
369
  }
436
370
  ),
437
- /* @__PURE__ */ import_react7.default.createElement(
438
- import_react_native6.Animated.View,
371
+ /* @__PURE__ */ _react2.default.createElement(
372
+ _reactnative.Animated.View,
439
373
  {
440
374
  style: [
441
375
  styles.spotlightHalo,
@@ -451,8 +385,8 @@ var FeatureDiscovery = ({
451
385
  ]
452
386
  }
453
387
  ),
454
- highlightContent && /* @__PURE__ */ import_react7.default.createElement(
455
- import_react_native6.Animated.View,
388
+ highlightContent && /* @__PURE__ */ _react2.default.createElement(
389
+ _reactnative.Animated.View,
456
390
  {
457
391
  style: [
458
392
  styles.highlightContainer,
@@ -463,14 +397,14 @@ var FeatureDiscovery = ({
463
397
  height: target.height,
464
398
  opacity: contentOpacity
465
399
  },
466
- customAppearance?.highlightContainer
400
+ _optionalChain([customAppearance, 'optionalAccess', _6 => _6.highlightContainer])
467
401
  ],
468
402
  pointerEvents: "none"
469
403
  },
470
404
  highlightContent
471
405
  ),
472
- /* @__PURE__ */ import_react7.default.createElement(
473
- import_react_native6.Animated.View,
406
+ /* @__PURE__ */ _react2.default.createElement(
407
+ _reactnative.Animated.View,
474
408
  {
475
409
  style: [
476
410
  styles.messageContainer,
@@ -481,32 +415,32 @@ var FeatureDiscovery = ({
481
415
  maxHeight: msgMaxHeight,
482
416
  opacity: contentOpacity
483
417
  },
484
- customAppearance?.messageContainer
418
+ _optionalChain([customAppearance, 'optionalAccess', _7 => _7.messageContainer])
485
419
  ],
486
420
  pointerEvents: "box-none"
487
421
  },
488
- /* @__PURE__ */ import_react7.default.createElement(import_react_native6.View, { style: styles.messageHeader }, /* @__PURE__ */ import_react7.default.createElement(import_react_native6.View, { style: styles.messageTitleWrapper }, renderContent(title, [
422
+ /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.messageHeader }, /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.messageTitleWrapper }, renderContent(title, [
489
423
  styles.title,
490
424
  { color: colorScheme.foreground },
491
425
  { textAlign: isTargetOnLeft ? "left" : "right" },
492
- customAppearance?.title
493
- ])), /* @__PURE__ */ import_react7.default.createElement(
494
- import_react_native6.Pressable,
426
+ _optionalChain([customAppearance, 'optionalAccess', _8 => _8.title])
427
+ ])), /* @__PURE__ */ _react2.default.createElement(
428
+ _reactnative.Pressable,
495
429
  {
496
430
  onPress: onDismiss,
497
431
  style: styles.closeButton,
498
432
  accessibilityRole: "button"
499
433
  },
500
- /* @__PURE__ */ import_react7.default.createElement(import_react_native6.Text, { style: [styles.closeIcon, { color: colorScheme.foreground }] }, "\u2715")
434
+ /* @__PURE__ */ _react2.default.createElement(_reactnative.Text, { style: [styles.closeIcon, { color: colorScheme.foreground }] }, "\u2715")
501
435
  )),
502
436
  description ? renderContent(description, [
503
437
  styles.description,
504
- { color: (0, import_core3.withOpacity)(colorScheme.foreground, 0.9) },
438
+ { color: _core.withOpacity.call(void 0, colorScheme.foreground, 0.9) },
505
439
  { textAlign: isTargetOnLeft ? "left" : "right" },
506
- customAppearance?.description
440
+ _optionalChain([customAppearance, 'optionalAccess', _9 => _9.description])
507
441
  ]) : null,
508
- actionText ? /* @__PURE__ */ import_react7.default.createElement(
509
- import_react_native6.Pressable,
442
+ actionText ? /* @__PURE__ */ _react2.default.createElement(
443
+ _reactnative.Pressable,
510
444
  {
511
445
  onPress: onActionPress,
512
446
  style: [
@@ -518,14 +452,13 @@ var FeatureDiscovery = ({
518
452
  renderContent(actionText, [
519
453
  styles.actionText,
520
454
  { color: colorScheme.foreground },
521
- customAppearance?.actionText
455
+ _optionalChain([customAppearance, 'optionalAccess', _10 => _10.actionText])
522
456
  ])
523
457
  ) : null
524
458
  )
525
459
  )
526
460
  );
527
461
  };
528
- // Annotate the CommonJS export names for ESM import in node:
529
- 0 && (module.exports = {
530
- FeatureDiscovery
531
- });
462
+
463
+
464
+ exports.FeatureDiscovery = FeatureDiscovery;
@@ -1,7 +1,7 @@
1
- import "../chunk-CZFDZPAS.js";
1
+ import "../chunk-DXXNBF5P.js";
2
2
  import {
3
3
  useXUITheme
4
- } from "../chunk-I4V5Y5GD.js";
4
+ } from "../chunk-LTKYHG5V.js";
5
5
 
6
6
  // src/components/feature-discovery/feature-discovery.tsx
7
7
  import React, { useEffect } from "react";
package/dist/index.cjs CHANGED
@@ -1,18 +1 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/index.ts
17
- var src_exports = {};
18
- module.exports = __toCommonJS(src_exports);
1
+ "use strict";