@xaui/native 0.9.1-alpha.23 → 0.9.1-alpha.25
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/dist/{chunk-E3LXUXE7.js → chunk-2OY76YNB.js} +47 -13
- package/dist/{chunk-KM2TI5IC.js → chunk-4HELPMAK.js} +76 -82
- package/dist/{chunk-AHL33YAO.js → chunk-4J26FA6O.js} +9 -7
- package/dist/{chunk-BNWS26PX.cjs → chunk-6FBGCF5T.cjs} +9 -7
- package/dist/{chunk-ZQ3JSWRO.js → chunk-A4RGJBP2.js} +4 -2
- package/dist/{chunk-I6PE5UUH.cjs → chunk-AV5LMFS3.cjs} +13 -11
- package/dist/{chunk-OGC4RKE3.js → chunk-AXSJPWSJ.js} +5 -5
- package/dist/chunk-BULNTP5N.cjs +620 -0
- package/dist/chunk-EGLLDKN6.js +9 -0
- package/dist/chunk-EJQCQPET.cjs +9 -0
- package/dist/{chunk-VDRRD6GM.cjs → chunk-EWBBDVTM.cjs} +22 -21
- package/dist/chunk-GSEK6OCY.cjs +72 -0
- package/dist/chunk-I6UCYAO2.js +731 -0
- package/dist/{chunk-BH5DSJVX.cjs → chunk-IG4Q3WQO.cjs} +61 -68
- package/dist/{chunk-6WW4CSPY.cjs → chunk-J2JJLKLG.cjs} +6 -4
- package/dist/{chunk-4MHJOWM4.cjs → chunk-J4JFIC4W.cjs} +7 -7
- package/dist/{chunk-FNQF4KQV.js → chunk-MRYLLKML.js} +18 -17
- package/dist/{chunk-GBPWTFTU.cjs → chunk-OHEHPQLC.cjs} +10 -1
- package/dist/{chunk-GG2WWCBK.js → chunk-TZG3DERP.js} +10 -1
- package/dist/{chunk-TIP3T7JJ.cjs → chunk-YEW5LPWL.cjs} +47 -13
- package/dist/chunk-ZDCGPK5Z.js +72 -0
- package/dist/{chunk-FTCTTBLG.js → chunk-ZTA47PO5.js} +7 -5
- package/dist/components/alert/index.cjs +7 -6
- package/dist/components/alert/index.js +6 -5
- package/dist/components/button/index.cjs +6 -5
- package/dist/components/button/index.js +5 -4
- package/dist/components/card/index.cjs +5 -4
- package/dist/components/card/index.js +4 -3
- package/dist/components/chip/index.cjs +7 -6
- package/dist/components/chip/index.js +6 -5
- package/dist/components/input/index.cjs +13 -3
- package/dist/components/input/index.d.cts +109 -117
- package/dist/components/input/index.d.ts +109 -117
- package/dist/components/input/index.js +12 -2
- package/dist/components/input-otp/index.cjs +27 -0
- package/dist/components/input-otp/index.d.cts +325 -0
- package/dist/components/input-otp/index.d.ts +325 -0
- package/dist/components/input-otp/index.js +27 -0
- package/dist/components/text-area/index.cjs +13 -0
- package/dist/components/text-area/index.d.cts +73 -0
- package/dist/components/text-area/index.d.ts +73 -0
- package/dist/components/text-area/index.js +13 -0
- package/dist/components/typography/index.cjs +3 -3
- package/dist/components/typography/index.js +2 -2
- package/dist/index.cjs +53 -51
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +69 -67
- package/dist/input.type-BpJeUIe8.d.cts +151 -0
- package/dist/input.type-DjyZ6P2C.d.ts +151 -0
- package/dist/system/index.cjs +6 -5
- package/dist/system/index.js +5 -4
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +1 -1
- package/package.json +21 -1
- package/dist/{chunk-DXGQ43IV.cjs → chunk-B4W2XNBP.cjs} +2 -2
- package/dist/{chunk-2U6JR7BF.js → chunk-G52TQJBI.js} +3 -3
- package/dist/{chunk-FVP5FUVS.js → chunk-ICR42HHG.js} +3 -3
- package/dist/{chunk-RAWOJ3N3.cjs → chunk-Y7U6ACMB.cjs} +2 -2
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJ2JJLKLGcjs = require('./chunk-J2JJLKLG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
|
|
14
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
var _chunkYXVKQMCKcjs = require('./chunk-YXVKQMCK.cjs');
|
|
17
19
|
|
|
18
20
|
|
|
19
|
-
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
|
|
24
|
+
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
23
25
|
|
|
24
26
|
|
|
25
|
-
var
|
|
27
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
26
28
|
|
|
27
29
|
// src/components/chip/chip-avatar.tsx
|
|
28
30
|
var _react = require('react');
|
|
@@ -52,7 +54,7 @@ ChipAvatar.displayName = "XAUI.Chip.Avatar";
|
|
|
52
54
|
var ChipClose = _react.forwardRef.call(void 0, function ChipClose2({ isDisabled, ...props }, ref) {
|
|
53
55
|
const { closeStyle, closeGlyphStyle, isDisabled: isChipDisabled } = useChip();
|
|
54
56
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55
|
-
|
|
57
|
+
_chunkJ2JJLKLGcjs.CloseButton,
|
|
56
58
|
{
|
|
57
59
|
ref,
|
|
58
60
|
name: "Chip.Close",
|
|
@@ -80,7 +82,7 @@ ChipDot.displayName = "XAUI.Chip.Dot";
|
|
|
80
82
|
|
|
81
83
|
function ChipIcon({ size, color, ...rest }) {
|
|
82
84
|
const { icon } = useChip();
|
|
83
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
85
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4W2XNBPcjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
|
|
84
86
|
}
|
|
85
87
|
ChipIcon.displayName = "XAUI.Chip.Icon";
|
|
86
88
|
|
|
@@ -236,7 +238,7 @@ var chipRecipe = _chunkYXVKQMCKcjs.createRecipe.call(void 0, {
|
|
|
236
238
|
// The cross's own geometry — thickness and centring — belongs to the shared
|
|
237
239
|
// `CloseButton`; what stays below is the box and bar size this component's scale sets.
|
|
238
240
|
base: (theme) => ({
|
|
239
|
-
...
|
|
241
|
+
..._chunkJ2JJLKLGcjs.closeButtonBase.call(void 0, theme),
|
|
240
242
|
root: {
|
|
241
243
|
// A chip hugs its content where a `Button` fills its column. The difference is what
|
|
242
244
|
// the two are: a button is a control the layout sizes, a chip is a token *about*
|
|
@@ -329,7 +331,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
329
331
|
}, ref) {
|
|
330
332
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
331
333
|
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
332
|
-
const [isPressed, press] =
|
|
334
|
+
const [isPressed, press] = _chunkIG4Q3WQOcjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
333
335
|
const selection = { variant, size, radius };
|
|
334
336
|
const states = { pressed: isPressed, disabled: isDisabled };
|
|
335
337
|
const styles = chipRecipe.resolve({ theme, selection, states });
|
|
@@ -360,12 +362,12 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
360
362
|
const text = _chunkHUZ4AUM2cjs.childrenToString.call(void 0, children);
|
|
361
363
|
const content = text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChipLabel, { children: text }) : children;
|
|
362
364
|
if (!isPressable && !asChild && (onPressIn || onPressOut || rest.onPress || rest.onLongPress)) {
|
|
363
|
-
|
|
365
|
+
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
364
366
|
"Chip: a press handler needs `isPressable`. Without it the chip renders a View, which never receives the touch \u2014 add `isPressable` to make it a control. A `Chip.Close` is its own control and needs neither."
|
|
365
367
|
);
|
|
366
368
|
}
|
|
367
369
|
const surface = isPressable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
368
|
-
|
|
370
|
+
_chunkIG4Q3WQOcjs.PressableFeedback,
|
|
369
371
|
{
|
|
370
372
|
ref,
|
|
371
373
|
isPressed,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CloseButton,
|
|
3
3
|
closeButtonBase
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-A4RGJBP2.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ICR42HHG.js";
|
|
8
8
|
import {
|
|
9
9
|
createRecipe,
|
|
10
10
|
radiusAxis
|
|
11
11
|
} from "./chunk-3JATAB7S.js";
|
|
12
|
-
import {
|
|
13
|
-
useXAUITheme
|
|
14
|
-
} from "./chunk-A3EGFI6T.js";
|
|
15
12
|
import {
|
|
16
13
|
Slot,
|
|
17
14
|
childrenToString,
|
|
18
15
|
createSlotContext,
|
|
19
16
|
useStyleProps
|
|
20
17
|
} from "./chunk-PMO62QK4.js";
|
|
18
|
+
import {
|
|
19
|
+
useXAUITheme
|
|
20
|
+
} from "./chunk-A3EGFI6T.js";
|
|
21
21
|
|
|
22
22
|
// src/components/alert/alert-close.tsx
|
|
23
23
|
import { forwardRef } from "react";
|