@xaui/native 0.9.1-alpha.28 → 0.9.1-alpha.29
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-3JATAB7S.js → chunk-4GTAZM2C.js} +4 -2
- package/dist/{chunk-N4UJYDOW.js → chunk-5RFRASSB.js} +20 -18
- package/dist/{chunk-V2FQN6ZK.js → chunk-7BOFQN2G.js} +1 -1
- package/dist/{chunk-5OXZIZRZ.cjs → chunk-APONC4DB.cjs} +7 -7
- package/dist/{chunk-6FBGCF5T.cjs → chunk-AQNWXJYV.cjs} +2 -2
- package/dist/chunk-BA2DBSAN.js +102 -0
- package/dist/{chunk-TR2TGPDQ.js → chunk-D4SOU26X.js} +1 -1
- package/dist/{chunk-CQRUNV6S.cjs → chunk-E25JH7W2.cjs} +17 -17
- package/dist/{chunk-V6DGGDHF.cjs → chunk-F3H4TXAY.cjs} +5 -5
- package/dist/chunk-F6CQ6CBI.cjs +112 -0
- package/dist/{chunk-ZTA47PO5.js → chunk-FDSQOPJH.js} +1 -1
- package/dist/{chunk-JCKVYYZO.cjs → chunk-FFEUGWVA.cjs} +3 -3
- package/dist/{chunk-YXVKQMCK.cjs → chunk-FNEUOBCV.cjs} +4 -2
- package/dist/{chunk-Y7U6ACMB.cjs → chunk-FXHRNUCS.cjs} +2 -2
- package/dist/{chunk-J4JFIC4W.cjs → chunk-GCU5A5MM.cjs} +3 -3
- package/dist/{chunk-G52TQJBI.js → chunk-HOIQRGSK.js} +1 -1
- package/dist/chunk-L3Q5TVYE.js +659 -0
- package/dist/{chunk-WEMZ4VMC.js → chunk-NG4GFBDR.js} +1 -1
- package/dist/chunk-O5KDIEDH.cjs +735 -0
- package/dist/chunk-RZC4VFB5.cjs +698 -0
- package/dist/{chunk-5A4M6X5B.cjs → chunk-SVRZJEDU.cjs} +5 -5
- package/dist/{chunk-3LKGVKQY.cjs → chunk-TFNB2PNI.cjs} +4 -4
- package/dist/{chunk-3YN7JQ55.js → chunk-V3KS5PPK.js} +2 -2
- package/dist/{chunk-AXSJPWSJ.js → chunk-V56334S3.js} +1 -1
- package/dist/{chunk-EHARM2EN.js → chunk-VUEDYW3M.js} +1 -1
- package/dist/{chunk-LKB3RIR2.js → chunk-XYFMSRNJ.js} +2 -2
- package/dist/{chunk-56KVKM27.js → chunk-YGOXQSNU.js} +15 -15
- package/dist/{chunk-H7DVR52Z.cjs → chunk-YWBTIWT5.cjs} +3 -3
- package/dist/components/alert/index.cjs +3 -3
- package/dist/components/alert/index.js +2 -2
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.js +2 -2
- package/dist/components/card/index.cjs +3 -3
- package/dist/components/card/index.js +2 -2
- package/dist/components/checkbox/index.cjs +4 -4
- package/dist/components/checkbox/index.js +3 -3
- package/dist/components/chip/index.cjs +3 -3
- package/dist/components/chip/index.js +2 -2
- package/dist/components/input/index.cjs +3 -3
- package/dist/components/input/index.js +2 -2
- package/dist/components/input-group/index.cjs +4 -4
- package/dist/components/input-group/index.js +3 -3
- package/dist/components/input-otp/index.cjs +3 -3
- package/dist/components/input-otp/index.js +2 -2
- package/dist/components/radio/index.cjs +4 -4
- package/dist/components/radio/index.js +3 -3
- package/dist/components/switch/index.cjs +25 -0
- package/dist/components/switch/index.d.cts +1154 -0
- package/dist/components/switch/index.d.ts +1154 -0
- package/dist/components/switch/index.js +25 -0
- package/dist/components/text-area/index.cjs +4 -4
- package/dist/components/text-area/index.js +3 -3
- package/dist/components/typography/index.cjs +3 -3
- package/dist/components/typography/index.js +2 -2
- package/dist/index.cjs +30 -14
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +29 -13
- package/dist/system/index.cjs +3 -3
- package/dist/system/index.d.cts +13 -1
- package/dist/system/index.d.ts +13 -1
- package/dist/system/index.js +2 -2
- package/package.json +11 -1
- package/dist/chunk-63TWVWHG.cjs +0 -584
- package/dist/chunk-E6EFYPJR.cjs +0 -41
- package/dist/chunk-EYJEUXXC.js +0 -98
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Switch,
|
|
3
|
+
SwitchLabel,
|
|
4
|
+
SwitchRoot,
|
|
5
|
+
SwitchThumb,
|
|
6
|
+
SwitchTrack,
|
|
7
|
+
switchRecipe,
|
|
8
|
+
useSwitch
|
|
9
|
+
} from "../../chunk-L3Q5TVYE.js";
|
|
10
|
+
import "../../chunk-F6W3JQ7K.js";
|
|
11
|
+
import "../../chunk-4HELPMAK.js";
|
|
12
|
+
import "../../chunk-EGLLDKN6.js";
|
|
13
|
+
import "../../chunk-4GTAZM2C.js";
|
|
14
|
+
import "../../chunk-PMO62QK4.js";
|
|
15
|
+
import "../../chunk-A3EGFI6T.js";
|
|
16
|
+
import "../../chunk-GGW42MY4.js";
|
|
17
|
+
export {
|
|
18
|
+
Switch,
|
|
19
|
+
SwitchLabel,
|
|
20
|
+
SwitchRoot,
|
|
21
|
+
SwitchThumb,
|
|
22
|
+
SwitchTrack,
|
|
23
|
+
switchRecipe,
|
|
24
|
+
useSwitch
|
|
25
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
4
|
+
var _chunkAPONC4DBcjs = require('../../chunk-APONC4DB.cjs');
|
|
5
|
+
require('../../chunk-FFEUGWVA.cjs');
|
|
6
|
+
require('../../chunk-FNEUOBCV.cjs');
|
|
7
7
|
require('../../chunk-HUZ4AUM2.cjs');
|
|
8
8
|
require('../../chunk-57SJ4LJF.cjs');
|
|
9
9
|
require('../../chunk-MC7SY2QH.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.TextArea =
|
|
13
|
+
exports.TextArea = _chunkAPONC4DBcjs.TextArea; exports.useTextArea = _chunkAPONC4DBcjs.useTextArea;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextArea,
|
|
3
3
|
useTextArea
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-D4SOU26X.js";
|
|
5
|
+
import "../../chunk-7BOFQN2G.js";
|
|
6
|
+
import "../../chunk-4GTAZM2C.js";
|
|
7
7
|
import "../../chunk-PMO62QK4.js";
|
|
8
8
|
import "../../chunk-A3EGFI6T.js";
|
|
9
9
|
import "../../chunk-GGW42MY4.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
5
|
+
var _chunkFXHRNUCScjs = require('../../chunk-FXHRNUCS.cjs');
|
|
6
|
+
require('../../chunk-FNEUOBCV.cjs');
|
|
7
7
|
require('../../chunk-HUZ4AUM2.cjs');
|
|
8
8
|
require('../../chunk-57SJ4LJF.cjs');
|
|
9
9
|
require('../../chunk-MC7SY2QH.cjs');
|
|
@@ -11,4 +11,4 @@ require('../../chunk-MC7SY2QH.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.TextSpan =
|
|
14
|
+
exports.TextSpan = _chunkFXHRNUCScjs.TextSpan; exports.Typography = _chunkFXHRNUCScjs.Typography; exports.typographyRecipe = _chunkFXHRNUCScjs.typographyRecipe;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
TextSpan,
|
|
3
3
|
Typography,
|
|
4
4
|
typographyRecipe
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-HOIQRGSK.js";
|
|
6
|
+
import "../../chunk-4GTAZM2C.js";
|
|
7
7
|
import "../../chunk-PMO62QK4.js";
|
|
8
8
|
import "../../chunk-A3EGFI6T.js";
|
|
9
9
|
import "../../chunk-GGW42MY4.js";
|
package/dist/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkO5KDIEDHcjs = require('./chunk-O5KDIEDH.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -16,16 +16,25 @@ var _chunk63TWVWHGcjs = require('./chunk-63TWVWHG.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkSVRZJEDUcjs = require('./chunk-SVRZJEDU.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var _chunk5OXZIZRZcjs = require('./chunk-5OXZIZRZ.cjs');
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
|
|
28
|
+
var _chunkRZC4VFB5cjs = require('./chunk-RZC4VFB5.cjs');
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
var _chunkAPONC4DBcjs = require('./chunk-APONC4DB.cjs');
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
var _chunkFXHRNUCScjs = require('./chunk-FXHRNUCS.cjs');
|
|
29
38
|
|
|
30
39
|
|
|
31
40
|
|
|
@@ -54,19 +63,19 @@ var _chunkOHEHPQLCcjs = require('./chunk-OHEHPQLC.cjs');
|
|
|
54
63
|
|
|
55
64
|
|
|
56
65
|
|
|
57
|
-
var
|
|
66
|
+
var _chunkGCU5A5MMcjs = require('./chunk-GCU5A5MM.cjs');
|
|
58
67
|
|
|
59
68
|
|
|
60
69
|
|
|
61
70
|
|
|
62
|
-
var
|
|
71
|
+
var _chunkE25JH7W2cjs = require('./chunk-E25JH7W2.cjs');
|
|
63
72
|
|
|
64
73
|
|
|
65
74
|
|
|
66
75
|
|
|
67
76
|
|
|
68
77
|
|
|
69
|
-
var
|
|
78
|
+
var _chunkAQNWXJYVcjs = require('./chunk-AQNWXJYV.cjs');
|
|
70
79
|
|
|
71
80
|
|
|
72
81
|
|
|
@@ -74,18 +83,18 @@ var _chunk6FBGCF5Tcjs = require('./chunk-6FBGCF5T.cjs');
|
|
|
74
83
|
|
|
75
84
|
|
|
76
85
|
|
|
77
|
-
var
|
|
86
|
+
var _chunkF3H4TXAYcjs = require('./chunk-F3H4TXAY.cjs');
|
|
78
87
|
|
|
79
88
|
|
|
80
89
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
81
90
|
|
|
82
91
|
|
|
83
|
-
var
|
|
92
|
+
var _chunkF6CQ6CBIcjs = require('./chunk-F6CQ6CBI.cjs');
|
|
84
93
|
|
|
85
94
|
|
|
86
95
|
|
|
87
96
|
|
|
88
|
-
var
|
|
97
|
+
var _chunkYWBTIWT5cjs = require('./chunk-YWBTIWT5.cjs');
|
|
89
98
|
|
|
90
99
|
|
|
91
100
|
|
|
@@ -123,7 +132,7 @@ require('./chunk-EJQCQPET.cjs');
|
|
|
123
132
|
|
|
124
133
|
|
|
125
134
|
|
|
126
|
-
var
|
|
135
|
+
var _chunkTFNB2PNIcjs = require('./chunk-TFNB2PNI.cjs');
|
|
127
136
|
|
|
128
137
|
|
|
129
138
|
|
|
@@ -138,11 +147,11 @@ var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
|
138
147
|
|
|
139
148
|
|
|
140
149
|
|
|
141
|
-
var
|
|
150
|
+
var _chunkFFEUGWVAcjs = require('./chunk-FFEUGWVA.cjs');
|
|
142
151
|
|
|
143
152
|
|
|
144
153
|
|
|
145
|
-
var
|
|
154
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
146
155
|
|
|
147
156
|
|
|
148
157
|
|
|
@@ -293,4 +302,11 @@ function usePrevious(value) {
|
|
|
293
302
|
|
|
294
303
|
|
|
295
304
|
|
|
296
|
-
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
exports.Alert = _chunkGCU5A5MMcjs.Alert; exports.Button = _chunkE25JH7W2cjs.Button; exports.CARD_BACKGROUND = _chunkAQNWXJYVcjs.CARD_BACKGROUND; exports.Card = _chunkAQNWXJYVcjs.Card; exports.Checkbox = _chunkF3H4TXAYcjs.Checkbox; exports.CheckboxIndicator = _chunkF3H4TXAYcjs.CheckboxIndicator; exports.CheckboxLabel = _chunkF3H4TXAYcjs.CheckboxLabel; exports.CheckboxRoot = _chunkF3H4TXAYcjs.CheckboxRoot; exports.Chip = _chunkYWBTIWT5cjs.Chip; exports.CloseButton = _chunkJ2JJLKLGcjs.CloseButton; exports.Column = _chunkIBEX4XGVcjs.Column; exports.FEEDBACK_OVERLAY = _chunkIG4Q3WQOcjs.FEEDBACK_OVERLAY; exports.Grid = _chunkIBEX4XGVcjs.Grid; exports.HIGHLIGHT_DURATION = _chunkIG4Q3WQOcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkIG4Q3WQOcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkB4W2XNBPcjs.Icon; exports.IconContext = _chunkB4W2XNBPcjs.IconContext; exports.Input = _chunkFFEUGWVAcjs.Input; exports.InputDescription = _chunkFFEUGWVAcjs.InputDescription; exports.InputError = _chunkFFEUGWVAcjs.InputError; exports.InputField = _chunkFFEUGWVAcjs.InputField; exports.InputGroup = _chunkTFNB2PNIcjs.InputGroup; exports.InputGroupField = _chunkTFNB2PNIcjs.InputGroupField; exports.InputGroupIcon = _chunkTFNB2PNIcjs.InputGroupIcon; exports.InputGroupPrefix = _chunkTFNB2PNIcjs.InputGroupPrefix; exports.InputGroupRoot = _chunkTFNB2PNIcjs.InputGroupRoot; exports.InputGroupSuffix = _chunkTFNB2PNIcjs.InputGroupSuffix; exports.InputLabel = _chunkFFEUGWVAcjs.InputLabel; exports.InputOTP = _chunkO5KDIEDHcjs.InputOTP; exports.InputRoot = _chunkFFEUGWVAcjs.InputRoot; exports.OTP_ALPHANUMERIC = _chunkO5KDIEDHcjs.OTP_ALPHANUMERIC; exports.OTP_DIGITS = _chunkO5KDIEDHcjs.OTP_DIGITS; exports.OTP_LETTERS = _chunkO5KDIEDHcjs.OTP_LETTERS; exports.PRESS_DURATION = _chunkIG4Q3WQOcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkIG4Q3WQOcjs.PRESS_SCALE; exports.Portal = _chunkVZGBEGDVcjs.Portal; exports.PortalContext = _chunkVZGBEGDVcjs.PortalContext; exports.PortalHost = _chunkVZGBEGDVcjs.PortalHost; exports.PressableFeedback = _chunkIG4Q3WQOcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkIG4Q3WQOcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkIG4Q3WQOcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkIG4Q3WQOcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkIG4Q3WQOcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkIG4Q3WQOcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkIG4Q3WQOcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkIG4Q3WQOcjs.RIPPLE_START_SCALE; exports.Radio = _chunkSVRZJEDUcjs.Radio; exports.RadioIndicator = _chunkSVRZJEDUcjs.RadioIndicator; exports.RadioLabel = _chunkSVRZJEDUcjs.RadioLabel; exports.RadioRoot = _chunkSVRZJEDUcjs.RadioRoot; exports.Row = _chunkIBEX4XGVcjs.Row; exports.SCALE_REFERENCE_WIDTH = _chunkIG4Q3WQOcjs.SCALE_REFERENCE_WIDTH; exports.SelectionFill = _chunkF6CQ6CBIcjs.SelectionFill; exports.Slot = _chunkHUZ4AUM2cjs.Slot; exports.Stack = _chunkIBEX4XGVcjs.Stack; exports.Switch = _chunkRZC4VFB5cjs.Switch; exports.SwitchLabel = _chunkRZC4VFB5cjs.SwitchLabel; exports.SwitchRoot = _chunkRZC4VFB5cjs.SwitchRoot; exports.SwitchThumb = _chunkRZC4VFB5cjs.SwitchThumb; exports.SwitchTrack = _chunkRZC4VFB5cjs.SwitchTrack; exports.TextArea = _chunkAPONC4DBcjs.TextArea; exports.TextSpan = _chunkFXHRNUCScjs.TextSpan; exports.ThemeContext = _chunk57SJ4LJFcjs.ThemeContext; exports.Typography = _chunkFXHRNUCScjs.Typography; exports.XAUIProvider = _chunkOHEHPQLCcjs.XAUIProvider; exports.alertRecipe = _chunkGCU5A5MMcjs.alertRecipe; exports.buildRadius = _chunkOHEHPQLCcjs.buildRadius; exports.buildShadows = _chunkOHEHPQLCcjs.buildShadows; exports.buildSlots = _chunkO5KDIEDHcjs.buildSlots; exports.buttonRecipe = _chunkE25JH7W2cjs.buttonRecipe; exports.cardRecipe = _chunkAQNWXJYVcjs.cardRecipe; exports.checkboxRecipe = _chunkF3H4TXAYcjs.checkboxRecipe; exports.childrenToString = _chunkHUZ4AUM2cjs.childrenToString; exports.chipRecipe = _chunkYWBTIWT5cjs.chipRecipe; exports.closeButtonBase = _chunkJ2JJLKLGcjs.closeButtonBase; exports.createRecipe = _chunkFNEUOBCVcjs.createRecipe; exports.createSlotContext = _chunkHUZ4AUM2cjs.createSlotContext; exports.createTheme = _chunkOHEHPQLCcjs.createTheme; exports.decoratorPadding = _chunkTFNB2PNIcjs.decoratorPadding; exports.defaultTheme = _chunkOHEHPQLCcjs.defaultTheme; exports.deriveColors = _chunkOHEHPQLCcjs.deriveColors; exports.deriveTint = _chunk57SJ4LJFcjs.deriveTint; exports.extractPastedCode = _chunkO5KDIEDHcjs.extractPastedCode; exports.inputOTPRecipe = _chunkO5KDIEDHcjs.inputOTPRecipe; exports.inputRecipe = _chunkFFEUGWVAcjs.inputRecipe; exports.markBackground = _chunkAQNWXJYVcjs.markBackground; exports.markOverlay = _chunkIG4Q3WQOcjs.markOverlay; exports.mergeProps = _chunkHUZ4AUM2cjs.mergeProps; exports.mergeRefs = _chunkHUZ4AUM2cjs.mergeRefs; exports.palette = _chunkOHEHPQLCcjs.palette; exports.pressScaleFor = _chunkIG4Q3WQOcjs.pressScaleFor; exports.primitives = _chunkOHEHPQLCcjs.primitives; exports.radioRecipe = _chunkSVRZJEDUcjs.radioRecipe; exports.radiusAxis = _chunkFNEUOBCVcjs.radiusAxis; exports.resolveAnimation = _chunkIG4Q3WQOcjs.resolveAnimation; exports.resolveSlotAnimation = _chunkIG4Q3WQOcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkIG4Q3WQOcjs.rippleRadiusFor; exports.sourceKeys = _chunkOHEHPQLCcjs.sourceKeys; exports.switchRecipe = _chunkRZC4VFB5cjs.switchRecipe; exports.tokens = _chunkOHEHPQLCcjs.tokens; exports.typographyRecipe = _chunkFXHRNUCScjs.typographyRecipe; exports.useAlert = _chunkGCU5A5MMcjs.useAlert; exports.useButton = _chunkE25JH7W2cjs.useButton; exports.useCard = _chunkAQNWXJYVcjs.useCard; exports.useCheckbox = _chunkF3H4TXAYcjs.useCheckbox; exports.useChip = _chunkYWBTIWT5cjs.useChip; exports.useColorMode = _chunk57SJ4LJFcjs.useColorMode; exports.useControllableState = _chunk7EIHHOHPcjs.useControllableState; exports.useFeedback = _chunkIG4Q3WQOcjs.useFeedback; exports.useGrid = _chunkIBEX4XGVcjs.useGrid; exports.useIconContext = _chunkB4W2XNBPcjs.useIconContext; exports.useInput = _chunkFFEUGWVAcjs.useInput; exports.useInputGroup = _chunkTFNB2PNIcjs.useInputGroup; exports.useInputOTP = _chunkO5KDIEDHcjs.useInputOTP; exports.useInputOTPBox = _chunkO5KDIEDHcjs.useInputOTPBox; exports.useMergedRef = useMergedRef; exports.usePressState = _chunkIG4Q3WQOcjs.usePressState; exports.usePrevious = usePrevious; exports.useRadio = _chunkSVRZJEDUcjs.useRadio; exports.useStyleProps = _chunkHUZ4AUM2cjs.useStyleProps; exports.useSwitch = _chunkRZC4VFB5cjs.useSwitch; exports.useTextArea = _chunkAPONC4DBcjs.useTextArea; exports.useThemeColor = _chunk57SJ4LJFcjs.useThemeColor; exports.useXAUITheme = _chunk57SJ4LJFcjs.useXAUITheme;
|
package/dist/index.d.cts
CHANGED
|
@@ -7,6 +7,7 @@ export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot,
|
|
|
7
7
|
export { InputGroup, InputGroupContextValue, InputGroupField, InputGroupFieldProps, InputGroupIcon, InputGroupIconProps, InputGroupPrefix, InputGroupPrefixProps, InputGroupProps, InputGroupRoot, InputGroupSide, InputGroupSuffix, InputGroupSuffixProps, decoratorPadding, useInputGroup } from './components/input-group/index.cjs';
|
|
8
8
|
export { InputOTP, InputOTPBoxContextValue, InputOTPBoxProps, InputOTPCaretProps, InputOTPContextValue, InputOTPGroupProps, InputOTPHandle, InputOTPPattern, InputOTPPlaceholderProps, InputOTPProps, InputOTPRenderState, InputOTPSeparatorProps, InputOTPSize, InputOTPSlot, InputOTPValueProps, InputOTPVariant, OTPSlotState, OTP_ALPHANUMERIC, OTP_DIGITS, OTP_LETTERS, buildSlots, extractPastedCode, inputOTPRecipe, useInputOTP, useInputOTPBox } from './components/input-otp/index.cjs';
|
|
9
9
|
export { Radio, RadioContextValue, RadioIndicator, RadioIndicatorProps, RadioLabel, RadioLabelProps, RadioProps, RadioRoot, RadioSize, RadioSlot, RadioVariant, radioRecipe, useRadio } from './components/radio/index.cjs';
|
|
10
|
+
export { Switch, SwitchContextValue, SwitchLabel, SwitchLabelProps, SwitchProps, SwitchRoot, SwitchSize, SwitchSlot, SwitchThumb, SwitchThumbProps, SwitchTrack, SwitchTrackProps, SwitchVariant, switchRecipe, useSwitch } from './components/switch/index.cjs';
|
|
10
11
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.cjs';
|
|
11
12
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.cjs';
|
|
12
13
|
export { AxisProps, Column, ColumnProps, Grid, GridContextValue, GridItemProps, GridProps, Row, RowProps, Stack, StackItemProps, StackProps, useGrid } from './components/view/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot,
|
|
|
7
7
|
export { InputGroup, InputGroupContextValue, InputGroupField, InputGroupFieldProps, InputGroupIcon, InputGroupIconProps, InputGroupPrefix, InputGroupPrefixProps, InputGroupProps, InputGroupRoot, InputGroupSide, InputGroupSuffix, InputGroupSuffixProps, decoratorPadding, useInputGroup } from './components/input-group/index.js';
|
|
8
8
|
export { InputOTP, InputOTPBoxContextValue, InputOTPBoxProps, InputOTPCaretProps, InputOTPContextValue, InputOTPGroupProps, InputOTPHandle, InputOTPPattern, InputOTPPlaceholderProps, InputOTPProps, InputOTPRenderState, InputOTPSeparatorProps, InputOTPSize, InputOTPSlot, InputOTPValueProps, InputOTPVariant, OTPSlotState, OTP_ALPHANUMERIC, OTP_DIGITS, OTP_LETTERS, buildSlots, extractPastedCode, inputOTPRecipe, useInputOTP, useInputOTPBox } from './components/input-otp/index.js';
|
|
9
9
|
export { Radio, RadioContextValue, RadioIndicator, RadioIndicatorProps, RadioLabel, RadioLabelProps, RadioProps, RadioRoot, RadioSize, RadioSlot, RadioVariant, radioRecipe, useRadio } from './components/radio/index.js';
|
|
10
|
+
export { Switch, SwitchContextValue, SwitchLabel, SwitchLabelProps, SwitchProps, SwitchRoot, SwitchSize, SwitchSlot, SwitchThumb, SwitchThumbProps, SwitchTrack, SwitchTrackProps, SwitchVariant, switchRecipe, useSwitch } from './components/switch/index.js';
|
|
10
11
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.js';
|
|
11
12
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.js';
|
|
12
13
|
export { AxisProps, Column, ColumnProps, Grid, GridContextValue, GridItemProps, GridProps, Row, RowProps, Stack, StackItemProps, StackProps, useGrid } from './components/view/index.js';
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
inputOTPRecipe,
|
|
9
9
|
useInputOTP,
|
|
10
10
|
useInputOTPBox
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5RFRASSB.js";
|
|
12
12
|
import {
|
|
13
13
|
Radio,
|
|
14
14
|
RadioIndicator,
|
|
@@ -16,16 +16,25 @@ import {
|
|
|
16
16
|
RadioRoot,
|
|
17
17
|
radioRecipe,
|
|
18
18
|
useRadio
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XYFMSRNJ.js";
|
|
20
|
+
import {
|
|
21
|
+
Switch,
|
|
22
|
+
SwitchLabel,
|
|
23
|
+
SwitchRoot,
|
|
24
|
+
SwitchThumb,
|
|
25
|
+
SwitchTrack,
|
|
26
|
+
switchRecipe,
|
|
27
|
+
useSwitch
|
|
28
|
+
} from "./chunk-L3Q5TVYE.js";
|
|
20
29
|
import {
|
|
21
30
|
TextArea,
|
|
22
31
|
useTextArea
|
|
23
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-D4SOU26X.js";
|
|
24
33
|
import {
|
|
25
34
|
TextSpan,
|
|
26
35
|
Typography,
|
|
27
36
|
typographyRecipe
|
|
28
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-HOIQRGSK.js";
|
|
29
38
|
import {
|
|
30
39
|
Column,
|
|
31
40
|
Grid,
|
|
@@ -54,19 +63,19 @@ import {
|
|
|
54
63
|
Alert,
|
|
55
64
|
alertRecipe,
|
|
56
65
|
useAlert
|
|
57
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-V56334S3.js";
|
|
58
67
|
import {
|
|
59
68
|
Button,
|
|
60
69
|
buttonRecipe,
|
|
61
70
|
useButton
|
|
62
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-YGOXQSNU.js";
|
|
63
72
|
import {
|
|
64
73
|
CARD_BACKGROUND,
|
|
65
74
|
Card,
|
|
66
75
|
cardRecipe,
|
|
67
76
|
markBackground,
|
|
68
77
|
useCard
|
|
69
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-FDSQOPJH.js";
|
|
70
79
|
import {
|
|
71
80
|
Checkbox,
|
|
72
81
|
CheckboxIndicator,
|
|
@@ -74,18 +83,18 @@ import {
|
|
|
74
83
|
CheckboxRoot,
|
|
75
84
|
checkboxRecipe,
|
|
76
85
|
useCheckbox
|
|
77
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-V3KS5PPK.js";
|
|
78
87
|
import {
|
|
79
88
|
useControllableState
|
|
80
89
|
} from "./chunk-F6W3JQ7K.js";
|
|
81
90
|
import {
|
|
82
91
|
SelectionFill
|
|
83
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-BA2DBSAN.js";
|
|
84
93
|
import {
|
|
85
94
|
Chip,
|
|
86
95
|
chipRecipe,
|
|
87
96
|
useChip
|
|
88
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-VUEDYW3M.js";
|
|
89
98
|
import {
|
|
90
99
|
CloseButton,
|
|
91
100
|
closeButtonBase
|
|
@@ -123,7 +132,7 @@ import {
|
|
|
123
132
|
InputGroupSuffix,
|
|
124
133
|
decoratorPadding,
|
|
125
134
|
useInputGroup
|
|
126
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-NG4GFBDR.js";
|
|
127
136
|
import {
|
|
128
137
|
Icon,
|
|
129
138
|
IconContext,
|
|
@@ -138,11 +147,11 @@ import {
|
|
|
138
147
|
InputRoot,
|
|
139
148
|
inputRecipe,
|
|
140
149
|
useInput
|
|
141
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-7BOFQN2G.js";
|
|
142
151
|
import {
|
|
143
152
|
createRecipe,
|
|
144
153
|
radiusAxis
|
|
145
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-4GTAZM2C.js";
|
|
146
155
|
import {
|
|
147
156
|
Slot,
|
|
148
157
|
childrenToString,
|
|
@@ -231,6 +240,11 @@ export {
|
|
|
231
240
|
SelectionFill,
|
|
232
241
|
Slot,
|
|
233
242
|
Stack,
|
|
243
|
+
Switch,
|
|
244
|
+
SwitchLabel,
|
|
245
|
+
SwitchRoot,
|
|
246
|
+
SwitchThumb,
|
|
247
|
+
SwitchTrack,
|
|
234
248
|
TextArea,
|
|
235
249
|
TextSpan,
|
|
236
250
|
ThemeContext,
|
|
@@ -269,6 +283,7 @@ export {
|
|
|
269
283
|
resolveSlotAnimation,
|
|
270
284
|
rippleRadiusFor,
|
|
271
285
|
sourceKeys,
|
|
286
|
+
switchRecipe,
|
|
272
287
|
tokens,
|
|
273
288
|
typographyRecipe,
|
|
274
289
|
useAlert,
|
|
@@ -290,6 +305,7 @@ export {
|
|
|
290
305
|
usePrevious,
|
|
291
306
|
useRadio,
|
|
292
307
|
useStyleProps,
|
|
308
|
+
useSwitch,
|
|
293
309
|
useTextArea,
|
|
294
310
|
useThemeColor,
|
|
295
311
|
useXAUITheme
|
package/dist/system/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
var _chunkVZGBEGDVcjs = require('../chunk-VZGBEGDV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkF6CQ6CBIcjs = require('../chunk-F6CQ6CBI.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -41,7 +41,7 @@ var _chunkB4W2XNBPcjs = require('../chunk-B4W2XNBP.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkFNEUOBCVcjs = require('../chunk-FNEUOBCV.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -90,4 +90,4 @@ require('../chunk-MC7SY2QH.cjs');
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
exports.CloseButton = _chunkJ2JJLKLGcjs.CloseButton; exports.FEEDBACK_OVERLAY = _chunkIG4Q3WQOcjs.FEEDBACK_OVERLAY; exports.HIGHLIGHT_DURATION = _chunkIG4Q3WQOcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkIG4Q3WQOcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkB4W2XNBPcjs.Icon; exports.IconContext = _chunkB4W2XNBPcjs.IconContext; exports.PRESS_DURATION = _chunkIG4Q3WQOcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkIG4Q3WQOcjs.PRESS_SCALE; exports.Portal = _chunkVZGBEGDVcjs.Portal; exports.PortalContext = _chunkVZGBEGDVcjs.PortalContext; exports.PortalHost = _chunkVZGBEGDVcjs.PortalHost; exports.PressableFeedback = _chunkIG4Q3WQOcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkIG4Q3WQOcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkIG4Q3WQOcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkIG4Q3WQOcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkIG4Q3WQOcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkIG4Q3WQOcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkIG4Q3WQOcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkIG4Q3WQOcjs.RIPPLE_START_SCALE; exports.SCALE_REFERENCE_WIDTH = _chunkIG4Q3WQOcjs.SCALE_REFERENCE_WIDTH; exports.SelectionFill =
|
|
93
|
+
exports.CloseButton = _chunkJ2JJLKLGcjs.CloseButton; exports.FEEDBACK_OVERLAY = _chunkIG4Q3WQOcjs.FEEDBACK_OVERLAY; exports.HIGHLIGHT_DURATION = _chunkIG4Q3WQOcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkIG4Q3WQOcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkB4W2XNBPcjs.Icon; exports.IconContext = _chunkB4W2XNBPcjs.IconContext; exports.PRESS_DURATION = _chunkIG4Q3WQOcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkIG4Q3WQOcjs.PRESS_SCALE; exports.Portal = _chunkVZGBEGDVcjs.Portal; exports.PortalContext = _chunkVZGBEGDVcjs.PortalContext; exports.PortalHost = _chunkVZGBEGDVcjs.PortalHost; exports.PressableFeedback = _chunkIG4Q3WQOcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkIG4Q3WQOcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkIG4Q3WQOcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkIG4Q3WQOcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkIG4Q3WQOcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkIG4Q3WQOcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkIG4Q3WQOcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkIG4Q3WQOcjs.RIPPLE_START_SCALE; exports.SCALE_REFERENCE_WIDTH = _chunkIG4Q3WQOcjs.SCALE_REFERENCE_WIDTH; exports.SelectionFill = _chunkF6CQ6CBIcjs.SelectionFill; exports.Slot = _chunkHUZ4AUM2cjs.Slot; exports.childrenToString = _chunkHUZ4AUM2cjs.childrenToString; exports.closeButtonBase = _chunkJ2JJLKLGcjs.closeButtonBase; exports.createRecipe = _chunkFNEUOBCVcjs.createRecipe; exports.createSlotContext = _chunkHUZ4AUM2cjs.createSlotContext; exports.markOverlay = _chunkIG4Q3WQOcjs.markOverlay; exports.mergeProps = _chunkHUZ4AUM2cjs.mergeProps; exports.mergeRefs = _chunkHUZ4AUM2cjs.mergeRefs; exports.pressScaleFor = _chunkIG4Q3WQOcjs.pressScaleFor; exports.radiusAxis = _chunkFNEUOBCVcjs.radiusAxis; exports.resolveAnimation = _chunkIG4Q3WQOcjs.resolveAnimation; exports.resolveSlotAnimation = _chunkIG4Q3WQOcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkIG4Q3WQOcjs.rippleRadiusFor; exports.useFeedback = _chunkIG4Q3WQOcjs.useFeedback; exports.useIconContext = _chunkB4W2XNBPcjs.useIconContext; exports.useStyleProps = _chunkHUZ4AUM2cjs.useStyleProps;
|
package/dist/system/index.d.cts
CHANGED
|
@@ -322,11 +322,23 @@ declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_nati
|
|
|
322
322
|
* variants: { size: { … }, radius: radiusAxis('root') }
|
|
323
323
|
* ```
|
|
324
324
|
*
|
|
325
|
+
* **More than one slot when a second node has to square off with the first.** A `Switch`
|
|
326
|
+
* whose track lost its capsule and kept a circular knob is half-rounded, so the axis moves
|
|
327
|
+
* both: `radiusAxis('track', 'thumb')`.
|
|
328
|
+
*
|
|
329
|
+
* The same named corner on each, not an inset-corrected one. Nesting rules would say the
|
|
330
|
+
* inner radius is the outer less the gap, but here that reaches zero before the outer does
|
|
331
|
+
* — at `xs` a 3pt track would hold a sharp-cornered knob — and two matched corners read
|
|
332
|
+
* better than one correct one.
|
|
333
|
+
*
|
|
334
|
+
* Variadic rather than an array because every call but that one passes a single slot, and
|
|
335
|
+
* `radiusAxis('root')` reads better than `radiusAxis(['root'])`.
|
|
336
|
+
*
|
|
325
337
|
* The return type is a full `Record<RadiusKey, …>` rather than a partial one, so
|
|
326
338
|
* `createRecipe` still infers `radius="3xl"` as the axis's value union and a typo in a
|
|
327
339
|
* caller's `radius` is a type error rather than a silently ignored key.
|
|
328
340
|
*/
|
|
329
|
-
declare function radiusAxis<Slot extends string>(
|
|
341
|
+
declare function radiusAxis<Slot extends string>(...slots: Slot[]): Record<RadiusKey, StyleFn<Slot>>;
|
|
330
342
|
|
|
331
343
|
type SelectionFillProps = {
|
|
332
344
|
/** Whether the control is on. The fill is the answer, and the mark rides on it. */
|
package/dist/system/index.d.ts
CHANGED
|
@@ -322,11 +322,23 @@ declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_nati
|
|
|
322
322
|
* variants: { size: { … }, radius: radiusAxis('root') }
|
|
323
323
|
* ```
|
|
324
324
|
*
|
|
325
|
+
* **More than one slot when a second node has to square off with the first.** A `Switch`
|
|
326
|
+
* whose track lost its capsule and kept a circular knob is half-rounded, so the axis moves
|
|
327
|
+
* both: `radiusAxis('track', 'thumb')`.
|
|
328
|
+
*
|
|
329
|
+
* The same named corner on each, not an inset-corrected one. Nesting rules would say the
|
|
330
|
+
* inner radius is the outer less the gap, but here that reaches zero before the outer does
|
|
331
|
+
* — at `xs` a 3pt track would hold a sharp-cornered knob — and two matched corners read
|
|
332
|
+
* better than one correct one.
|
|
333
|
+
*
|
|
334
|
+
* Variadic rather than an array because every call but that one passes a single slot, and
|
|
335
|
+
* `radiusAxis('root')` reads better than `radiusAxis(['root'])`.
|
|
336
|
+
*
|
|
325
337
|
* The return type is a full `Record<RadiusKey, …>` rather than a partial one, so
|
|
326
338
|
* `createRecipe` still infers `radius="3xl"` as the axis's value union and a typo in a
|
|
327
339
|
* caller's `radius` is a type error rather than a silently ignored key.
|
|
328
340
|
*/
|
|
329
|
-
declare function radiusAxis<Slot extends string>(
|
|
341
|
+
declare function radiusAxis<Slot extends string>(...slots: Slot[]): Record<RadiusKey, StyleFn<Slot>>;
|
|
330
342
|
|
|
331
343
|
type SelectionFillProps = {
|
|
332
344
|
/** Whether the control is on. The fill is the answer, and the mark rides on it. */
|
package/dist/system/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "../chunk-Y4BPKSD3.js";
|
|
6
6
|
import {
|
|
7
7
|
SelectionFill
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-BA2DBSAN.js";
|
|
9
9
|
import {
|
|
10
10
|
CloseButton,
|
|
11
11
|
closeButtonBase
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
createRecipe,
|
|
43
43
|
radiusAxis
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-4GTAZM2C.js";
|
|
45
45
|
import {
|
|
46
46
|
Slot,
|
|
47
47
|
childrenToString,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xaui/native",
|
|
3
|
-
"version": "0.9.1-alpha.
|
|
3
|
+
"version": "0.9.1-alpha.29",
|
|
4
4
|
"description": "Composition-first React Native UI components with native animations powered by Reanimated",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -117,6 +117,16 @@
|
|
|
117
117
|
"default": "./dist/components/radio/index.cjs"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
+
"./switch": {
|
|
121
|
+
"import": {
|
|
122
|
+
"types": "./dist/components/switch/index.d.ts",
|
|
123
|
+
"default": "./dist/components/switch/index.js"
|
|
124
|
+
},
|
|
125
|
+
"require": {
|
|
126
|
+
"types": "./dist/components/switch/index.d.cts",
|
|
127
|
+
"default": "./dist/components/switch/index.cjs"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
120
130
|
"./text-area": {
|
|
121
131
|
"import": {
|
|
122
132
|
"types": "./dist/components/text-area/index.d.ts",
|