@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.
- package/LICENSE +21 -0
- package/README.md +105 -228
- package/dist/alert/index.cjs +92 -166
- package/dist/alert/index.js +2 -1
- package/dist/app-bar/index.cjs +24 -98
- package/dist/app-bar/index.js +2 -1
- package/dist/autocomplete/index.cjs +192 -281
- package/dist/autocomplete/index.js +36 -48
- package/dist/avatar/index.cjs +59 -133
- package/dist/avatar/index.js +2 -1
- package/dist/badge/index.cjs +26 -99
- package/dist/badge/index.js +2 -1
- package/dist/bottom-sheet/index.cjs +5 -456
- package/dist/bottom-sheet/index.js +4 -363
- package/dist/bottom-tab-bar/index.cjs +93 -167
- package/dist/bottom-tab-bar/index.js +2 -2
- package/dist/button/index.cjs +73 -525
- package/dist/button/index.js +3 -2
- package/dist/card/index.cjs +76 -169
- package/dist/card/index.js +2 -2
- package/dist/carousel/index.cjs +68 -145
- package/dist/carousel/index.js +1 -1
- package/dist/chart/index.cjs +132 -173
- package/dist/checkbox/index.cjs +70 -143
- package/dist/checkbox/index.js +2 -1
- package/dist/chip/index.cjs +89 -164
- package/dist/chip/index.js +2 -1
- package/dist/chunk-BD72HIPR.cjs +75 -0
- package/dist/chunk-DHSTKO3K.cjs +19 -0
- package/dist/{chunk-CZFDZPAS.js → chunk-DXXNBF5P.js} +5 -0
- package/dist/{chunk-UI5L26KD.js → chunk-F7WH4DMG.js} +1 -1
- package/dist/chunk-GBHQCAKW.js +19 -0
- package/dist/chunk-HC2SSHNU.js +368 -0
- package/dist/chunk-HSPTLUFA.cjs +7 -0
- package/dist/chunk-JEGEPGVU.js +287 -0
- package/dist/chunk-KTLGDLCB.cjs +287 -0
- package/dist/{chunk-GHCVNQET.js → chunk-LTKYHG5V.js} +5 -12
- package/dist/{chunk-ULJSCNPE.js → chunk-LUBWRVI2.js} +1 -1
- package/dist/chunk-OQ2BLOOG.cjs +138 -0
- package/dist/chunk-QMYWIWSX.cjs +384 -0
- package/dist/chunk-XFPPR2VB.cjs +368 -0
- package/dist/core/index.cjs +22 -168
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +5 -3
- package/dist/datepicker/index.cjs +239 -320
- package/dist/datepicker/index.js +2 -1
- package/dist/divider/index.cjs +5 -145
- package/dist/divider/index.js +3 -2
- package/dist/drawer/index.cjs +39 -112
- package/dist/drawer/index.js +2 -1
- package/dist/expansion-panel/index.cjs +91 -230
- package/dist/expansion-panel/index.js +3 -2
- package/dist/fab/index.cjs +6 -722
- package/dist/fab/index.js +4 -3
- package/dist/fab-menu/index.cjs +81 -814
- package/dist/fab-menu/index.js +4 -3
- package/dist/feature-discovery/index.cjs +72 -139
- package/dist/feature-discovery/index.js +2 -2
- package/dist/index.cjs +1 -18
- package/dist/indicator/index.cjs +5 -445
- package/dist/indicator/index.js +3 -2
- package/dist/input/index.cjs +214 -282
- package/dist/input/index.js +2 -2
- package/dist/list/index.cjs +71 -146
- package/dist/list/index.js +2 -1
- package/dist/menu/index.cjs +59 -127
- package/dist/menu/index.js +2 -2
- package/dist/menubox/index.cjs +60 -132
- package/dist/menubox/index.js +2 -1
- package/dist/pager/index.cjs +42 -80
- package/dist/progress/index.cjs +43 -114
- package/dist/progress/index.js +2 -1
- package/dist/radio/index.cjs +82 -154
- package/dist/radio/index.js +2 -1
- package/dist/segment-button/index.cjs +60 -147
- package/dist/segment-button/index.js +2 -2
- package/dist/select/index.cjs +149 -224
- package/dist/select/index.js +10 -22
- package/dist/skeleton/index.cjs +23 -94
- package/dist/skeleton/index.js +2 -2
- package/dist/slider/index.cjs +77 -156
- package/dist/slider/index.js +2 -1
- package/dist/snackbar/index.cjs +420 -0
- package/dist/snackbar/index.d.cts +175 -0
- package/dist/snackbar/index.d.ts +175 -0
- package/dist/snackbar/index.js +420 -0
- package/dist/stepper/index.cjs +121 -195
- package/dist/stepper/index.js +2 -1
- package/dist/switch/index.cjs +48 -121
- package/dist/switch/index.js +2 -1
- package/dist/tabs/index.cjs +67 -151
- package/dist/tabs/index.js +2 -1
- package/dist/timepicker/index.cjs +135 -593
- package/dist/timepicker/index.js +24 -383
- package/dist/toolbar/index.cjs +59 -128
- package/dist/toolbar/index.js +2 -1
- package/dist/typography/index.cjs +37 -92
- package/dist/typography/index.d.cts +1 -1
- package/dist/typography/index.d.ts +1 -1
- package/dist/typography/index.js +20 -1
- package/dist/view/index.cjs +178 -223
- package/package.json +7 -1
- package/dist/chunk-3XSXTM3G.js +0 -661
- package/dist/chunk-4KSZLONZ.js +0 -79
- package/dist/chunk-I4V5Y5GD.js +0 -76
- package/dist/chunk-URBEEDFX.js +0 -79
package/dist/fab-menu/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Fab
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
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-
|
|
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
|
-
|
|
31
|
-
var
|
|
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
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
44
|
-
var styles =
|
|
18
|
+
|
|
19
|
+
var styles = _reactnative.StyleSheet.create({
|
|
45
20
|
root: {
|
|
46
21
|
flex: 1
|
|
47
22
|
},
|
|
48
23
|
absoluteFill: {
|
|
49
|
-
...
|
|
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,
|
|
154
|
-
const circleAnimScale = (0,
|
|
155
|
-
const contentOpacity = (0,
|
|
156
|
-
const haloScale = (0,
|
|
157
|
-
const startAnimations = (0,
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
98
|
+
_reactnative.Animated.spring(circleAnimScale, {
|
|
165
99
|
toValue: 1,
|
|
166
100
|
friction: 8,
|
|
167
101
|
tension: 80,
|
|
168
102
|
useNativeDriver: true
|
|
169
103
|
}),
|
|
170
|
-
|
|
104
|
+
_reactnative.Animated.timing(contentOpacity, {
|
|
171
105
|
toValue: 1,
|
|
172
106
|
duration: 260,
|
|
173
107
|
useNativeDriver: true
|
|
174
108
|
}),
|
|
175
|
-
|
|
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,
|
|
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,
|
|
200
|
-
const [targetLayout, setTargetLayout] = (0,
|
|
201
|
-
const measureTarget = (0,
|
|
202
|
-
targetRef.current
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
306
|
-
const resolvedOverlayColor = (0,
|
|
307
|
-
() => overlayColor
|
|
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,
|
|
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__ */
|
|
316
|
+
return /* @__PURE__ */ _react2.default.createElement(_reactnative.Text, { style: textStyle }, content);
|
|
383
317
|
}
|
|
384
318
|
return content;
|
|
385
319
|
};
|
|
386
|
-
return /* @__PURE__ */
|
|
387
|
-
|
|
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__ */
|
|
396
|
-
|
|
329
|
+
/* @__PURE__ */ _react2.default.createElement(
|
|
330
|
+
_reactnative.View,
|
|
397
331
|
{
|
|
398
|
-
style: [styles.root, customAppearance
|
|
332
|
+
style: [styles.root, _optionalChain([customAppearance, 'optionalAccess', _4 => _4.root]), _optionalChain([customAppearance, 'optionalAccess', _5 => _5.container])]
|
|
399
333
|
},
|
|
400
|
-
/* @__PURE__ */
|
|
401
|
-
|
|
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__ */
|
|
407
|
-
|
|
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__ */
|
|
420
|
-
|
|
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__ */
|
|
438
|
-
|
|
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__ */
|
|
455
|
-
|
|
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
|
|
400
|
+
_optionalChain([customAppearance, 'optionalAccess', _6 => _6.highlightContainer])
|
|
467
401
|
],
|
|
468
402
|
pointerEvents: "none"
|
|
469
403
|
},
|
|
470
404
|
highlightContent
|
|
471
405
|
),
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
|
|
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
|
|
418
|
+
_optionalChain([customAppearance, 'optionalAccess', _7 => _7.messageContainer])
|
|
485
419
|
],
|
|
486
420
|
pointerEvents: "box-none"
|
|
487
421
|
},
|
|
488
|
-
/* @__PURE__ */
|
|
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
|
|
493
|
-
])), /* @__PURE__ */
|
|
494
|
-
|
|
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__ */
|
|
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,
|
|
438
|
+
{ color: _core.withOpacity.call(void 0, colorScheme.foreground, 0.9) },
|
|
505
439
|
{ textAlign: isTargetOnLeft ? "left" : "right" },
|
|
506
|
-
customAppearance
|
|
440
|
+
_optionalChain([customAppearance, 'optionalAccess', _9 => _9.description])
|
|
507
441
|
]) : null,
|
|
508
|
-
actionText ? /* @__PURE__ */
|
|
509
|
-
|
|
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
|
|
455
|
+
_optionalChain([customAppearance, 'optionalAccess', _10 => _10.actionText])
|
|
522
456
|
])
|
|
523
457
|
) : null
|
|
524
458
|
)
|
|
525
459
|
)
|
|
526
460
|
);
|
|
527
461
|
};
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
});
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
exports.FeatureDiscovery = FeatureDiscovery;
|
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";
|