@xaui/native 0.9.1-alpha.27 → 0.9.1-alpha.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/dist/chunk-3YN7JQ55.js +342 -0
- package/dist/chunk-5A4M6X5B.cjs +289 -0
- package/dist/chunk-E6EFYPJR.cjs +41 -0
- package/dist/chunk-EYJEUXXC.js +98 -0
- package/dist/chunk-LKB3RIR2.js +289 -0
- package/dist/{chunk-2EBB5BO3.cjs → chunk-V6DGGDHF.cjs} +11 -30
- package/dist/components/checkbox/index.cjs +3 -2
- package/dist/components/checkbox/index.d.cts +4 -5
- package/dist/components/checkbox/index.d.ts +4 -5
- package/dist/components/checkbox/index.js +2 -1
- package/dist/components/radio/index.cjs +24 -0
- package/dist/components/radio/index.d.cts +1102 -0
- package/dist/components/radio/index.d.ts +1102 -0
- package/dist/components/radio/index.js +24 -0
- package/dist/index.cjs +21 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +20 -2
- package/dist/system/index.cjs +6 -2
- package/dist/system/index.d.cts +34 -1
- package/dist/system/index.d.ts +34 -1
- package/dist/system/index.js +5 -1
- package/package.json +11 -1
- package/dist/chunk-LGVIZAB2.js +0 -503
- /package/dist/{chunk-6HXWQ5AU.cjs → chunk-VZGBEGDV.cjs} +0 -0
- /package/dist/{chunk-AKXG43S4.js → chunk-Y4BPKSD3.js} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Radio,
|
|
3
|
+
RadioIndicator,
|
|
4
|
+
RadioLabel,
|
|
5
|
+
RadioRoot,
|
|
6
|
+
radioRecipe,
|
|
7
|
+
useRadio
|
|
8
|
+
} from "../../chunk-LKB3RIR2.js";
|
|
9
|
+
import "../../chunk-F6W3JQ7K.js";
|
|
10
|
+
import "../../chunk-EYJEUXXC.js";
|
|
11
|
+
import "../../chunk-4HELPMAK.js";
|
|
12
|
+
import "../../chunk-EGLLDKN6.js";
|
|
13
|
+
import "../../chunk-3JATAB7S.js";
|
|
14
|
+
import "../../chunk-PMO62QK4.js";
|
|
15
|
+
import "../../chunk-A3EGFI6T.js";
|
|
16
|
+
import "../../chunk-GGW42MY4.js";
|
|
17
|
+
export {
|
|
18
|
+
Radio,
|
|
19
|
+
RadioIndicator,
|
|
20
|
+
RadioLabel,
|
|
21
|
+
RadioRoot,
|
|
22
|
+
radioRecipe,
|
|
23
|
+
useRadio
|
|
24
|
+
};
|
package/dist/index.cjs
CHANGED
|
@@ -12,6 +12,14 @@ var _chunk63TWVWHGcjs = require('./chunk-63TWVWHG.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var _chunk5A4M6X5Bcjs = require('./chunk-5A4M6X5B.cjs');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
15
23
|
var _chunk5OXZIZRZcjs = require('./chunk-5OXZIZRZ.cjs');
|
|
16
24
|
|
|
17
25
|
|
|
@@ -29,7 +37,7 @@ var _chunkIBEX4XGVcjs = require('./chunk-IBEX4XGV.cjs');
|
|
|
29
37
|
|
|
30
38
|
|
|
31
39
|
|
|
32
|
-
var
|
|
40
|
+
var _chunkVZGBEGDVcjs = require('./chunk-VZGBEGDV.cjs');
|
|
33
41
|
|
|
34
42
|
|
|
35
43
|
|
|
@@ -66,12 +74,15 @@ var _chunk6FBGCF5Tcjs = require('./chunk-6FBGCF5T.cjs');
|
|
|
66
74
|
|
|
67
75
|
|
|
68
76
|
|
|
69
|
-
var
|
|
77
|
+
var _chunkV6DGGDHFcjs = require('./chunk-V6DGGDHF.cjs');
|
|
70
78
|
|
|
71
79
|
|
|
72
80
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
73
81
|
|
|
74
82
|
|
|
83
|
+
var _chunkE6EFYPJRcjs = require('./chunk-E6EFYPJR.cjs');
|
|
84
|
+
|
|
85
|
+
|
|
75
86
|
|
|
76
87
|
|
|
77
88
|
var _chunkH7DVR52Zcjs = require('./chunk-H7DVR52Z.cjs');
|
|
@@ -275,4 +286,11 @@ function usePrevious(value) {
|
|
|
275
286
|
|
|
276
287
|
|
|
277
288
|
|
|
278
|
-
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
exports.Alert = _chunkJ4JFIC4Wcjs.Alert; exports.Button = _chunkCQRUNV6Scjs.Button; exports.CARD_BACKGROUND = _chunk6FBGCF5Tcjs.CARD_BACKGROUND; exports.Card = _chunk6FBGCF5Tcjs.Card; exports.Checkbox = _chunkV6DGGDHFcjs.Checkbox; exports.CheckboxIndicator = _chunkV6DGGDHFcjs.CheckboxIndicator; exports.CheckboxLabel = _chunkV6DGGDHFcjs.CheckboxLabel; exports.CheckboxRoot = _chunkV6DGGDHFcjs.CheckboxRoot; exports.Chip = _chunkH7DVR52Zcjs.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 = _chunkJCKVYYZOcjs.Input; exports.InputDescription = _chunkJCKVYYZOcjs.InputDescription; exports.InputError = _chunkJCKVYYZOcjs.InputError; exports.InputField = _chunkJCKVYYZOcjs.InputField; exports.InputGroup = _chunk3LKGVKQYcjs.InputGroup; exports.InputGroupField = _chunk3LKGVKQYcjs.InputGroupField; exports.InputGroupIcon = _chunk3LKGVKQYcjs.InputGroupIcon; exports.InputGroupPrefix = _chunk3LKGVKQYcjs.InputGroupPrefix; exports.InputGroupRoot = _chunk3LKGVKQYcjs.InputGroupRoot; exports.InputGroupSuffix = _chunk3LKGVKQYcjs.InputGroupSuffix; exports.InputLabel = _chunkJCKVYYZOcjs.InputLabel; exports.InputOTP = _chunk63TWVWHGcjs.InputOTP; exports.InputRoot = _chunkJCKVYYZOcjs.InputRoot; exports.OTP_ALPHANUMERIC = _chunk63TWVWHGcjs.OTP_ALPHANUMERIC; exports.OTP_DIGITS = _chunk63TWVWHGcjs.OTP_DIGITS; exports.OTP_LETTERS = _chunk63TWVWHGcjs.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 = _chunk5A4M6X5Bcjs.Radio; exports.RadioIndicator = _chunk5A4M6X5Bcjs.RadioIndicator; exports.RadioLabel = _chunk5A4M6X5Bcjs.RadioLabel; exports.RadioRoot = _chunk5A4M6X5Bcjs.RadioRoot; exports.Row = _chunkIBEX4XGVcjs.Row; exports.SCALE_REFERENCE_WIDTH = _chunkIG4Q3WQOcjs.SCALE_REFERENCE_WIDTH; exports.SelectionFill = _chunkE6EFYPJRcjs.SelectionFill; exports.Slot = _chunkHUZ4AUM2cjs.Slot; exports.Stack = _chunkIBEX4XGVcjs.Stack; exports.TextArea = _chunk5OXZIZRZcjs.TextArea; exports.TextSpan = _chunkY7U6ACMBcjs.TextSpan; exports.ThemeContext = _chunk57SJ4LJFcjs.ThemeContext; exports.Typography = _chunkY7U6ACMBcjs.Typography; exports.XAUIProvider = _chunkOHEHPQLCcjs.XAUIProvider; exports.alertRecipe = _chunkJ4JFIC4Wcjs.alertRecipe; exports.buildRadius = _chunkOHEHPQLCcjs.buildRadius; exports.buildShadows = _chunkOHEHPQLCcjs.buildShadows; exports.buildSlots = _chunk63TWVWHGcjs.buildSlots; exports.buttonRecipe = _chunkCQRUNV6Scjs.buttonRecipe; exports.cardRecipe = _chunk6FBGCF5Tcjs.cardRecipe; exports.checkboxRecipe = _chunkV6DGGDHFcjs.checkboxRecipe; exports.childrenToString = _chunkHUZ4AUM2cjs.childrenToString; exports.chipRecipe = _chunkH7DVR52Zcjs.chipRecipe; exports.closeButtonBase = _chunkJ2JJLKLGcjs.closeButtonBase; exports.createRecipe = _chunkYXVKQMCKcjs.createRecipe; exports.createSlotContext = _chunkHUZ4AUM2cjs.createSlotContext; exports.createTheme = _chunkOHEHPQLCcjs.createTheme; exports.decoratorPadding = _chunk3LKGVKQYcjs.decoratorPadding; exports.defaultTheme = _chunkOHEHPQLCcjs.defaultTheme; exports.deriveColors = _chunkOHEHPQLCcjs.deriveColors; exports.deriveTint = _chunk57SJ4LJFcjs.deriveTint; exports.extractPastedCode = _chunk63TWVWHGcjs.extractPastedCode; exports.inputOTPRecipe = _chunk63TWVWHGcjs.inputOTPRecipe; exports.inputRecipe = _chunkJCKVYYZOcjs.inputRecipe; exports.markBackground = _chunk6FBGCF5Tcjs.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 = _chunk5A4M6X5Bcjs.radioRecipe; exports.radiusAxis = _chunkYXVKQMCKcjs.radiusAxis; exports.resolveAnimation = _chunkIG4Q3WQOcjs.resolveAnimation; exports.resolveSlotAnimation = _chunkIG4Q3WQOcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkIG4Q3WQOcjs.rippleRadiusFor; exports.sourceKeys = _chunkOHEHPQLCcjs.sourceKeys; exports.tokens = _chunkOHEHPQLCcjs.tokens; exports.typographyRecipe = _chunkY7U6ACMBcjs.typographyRecipe; exports.useAlert = _chunkJ4JFIC4Wcjs.useAlert; exports.useButton = _chunkCQRUNV6Scjs.useButton; exports.useCard = _chunk6FBGCF5Tcjs.useCard; exports.useCheckbox = _chunkV6DGGDHFcjs.useCheckbox; exports.useChip = _chunkH7DVR52Zcjs.useChip; exports.useColorMode = _chunk57SJ4LJFcjs.useColorMode; exports.useControllableState = _chunk7EIHHOHPcjs.useControllableState; exports.useFeedback = _chunkIG4Q3WQOcjs.useFeedback; exports.useGrid = _chunkIBEX4XGVcjs.useGrid; exports.useIconContext = _chunkB4W2XNBPcjs.useIconContext; exports.useInput = _chunkJCKVYYZOcjs.useInput; exports.useInputGroup = _chunk3LKGVKQYcjs.useInputGroup; exports.useInputOTP = _chunk63TWVWHGcjs.useInputOTP; exports.useInputOTPBox = _chunk63TWVWHGcjs.useInputOTPBox; exports.useMergedRef = useMergedRef; exports.usePressState = _chunkIG4Q3WQOcjs.usePressState; exports.usePrevious = usePrevious; exports.useRadio = _chunk5A4M6X5Bcjs.useRadio; exports.useStyleProps = _chunkHUZ4AUM2cjs.useStyleProps; exports.useTextArea = _chunk5OXZIZRZcjs.useTextArea; exports.useThemeColor = _chunk57SJ4LJFcjs.useThemeColor; exports.useXAUITheme = _chunk57SJ4LJFcjs.useXAUITheme;
|
package/dist/index.d.cts
CHANGED
|
@@ -6,12 +6,13 @@ export { Chip, ChipAvatarProps, ChipCloseProps, ChipContextValue, ChipDotProps,
|
|
|
6
6
|
export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot, inputRecipe, useInput } from './components/input/index.cjs';
|
|
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
|
+
export { Radio, RadioContextValue, RadioIndicator, RadioIndicatorProps, RadioLabel, RadioLabelProps, RadioProps, RadioRoot, RadioSize, RadioSlot, RadioVariant, radioRecipe, useRadio } from './components/radio/index.cjs';
|
|
9
10
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.cjs';
|
|
10
11
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.cjs';
|
|
11
12
|
export { AxisProps, Column, ColumnProps, Grid, GridContextValue, GridItemProps, GridProps, Row, RowProps, Stack, StackItemProps, StackProps, useGrid } from './components/view/index.cjs';
|
|
12
13
|
import { RefCallback } from 'react';
|
|
13
14
|
import { PossibleRef } from './system/index.cjs';
|
|
14
|
-
export { AsChildProps, CloseButton, CloseButtonSlots, FEEDBACK_OVERLAY, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, PortalHostProps, PortalMethods, PortalProps, PressableFeedback, PressableFeedbackHighlightProps, PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, SCALE_REFERENCE_WIDTH, Slot, SlotProps, childrenToString, closeButtonBase, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, radiusAxis, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps } from './system/index.cjs';
|
|
15
|
+
export { AsChildProps, CloseButton, CloseButtonSlots, FEEDBACK_OVERLAY, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, PortalHostProps, PortalMethods, PortalProps, PressableFeedback, PressableFeedbackHighlightProps, PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, SCALE_REFERENCE_WIDTH, SelectionFill, SelectionFillProps, Slot, SlotProps, childrenToString, closeButtonBase, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, radiusAxis, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps } from './system/index.cjs';
|
|
15
16
|
import { GestureResponderEvent } from 'react-native';
|
|
16
17
|
export { C as CloseButtonProps } from './close-button.type-CHsgZ3wO.cjs';
|
|
17
18
|
export { I as IconComponentProps, a as IconContextValue, b as IconProps } from './icon.type-CF4KiMKl.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -6,12 +6,13 @@ export { Chip, ChipAvatarProps, ChipCloseProps, ChipContextValue, ChipDotProps,
|
|
|
6
6
|
export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot, inputRecipe, useInput } from './components/input/index.js';
|
|
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
|
+
export { Radio, RadioContextValue, RadioIndicator, RadioIndicatorProps, RadioLabel, RadioLabelProps, RadioProps, RadioRoot, RadioSize, RadioSlot, RadioVariant, radioRecipe, useRadio } from './components/radio/index.js';
|
|
9
10
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.js';
|
|
10
11
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.js';
|
|
11
12
|
export { AxisProps, Column, ColumnProps, Grid, GridContextValue, GridItemProps, GridProps, Row, RowProps, Stack, StackItemProps, StackProps, useGrid } from './components/view/index.js';
|
|
12
13
|
import { RefCallback } from 'react';
|
|
13
14
|
import { PossibleRef } from './system/index.js';
|
|
14
|
-
export { AsChildProps, CloseButton, CloseButtonSlots, FEEDBACK_OVERLAY, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, PortalHostProps, PortalMethods, PortalProps, PressableFeedback, PressableFeedbackHighlightProps, PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, SCALE_REFERENCE_WIDTH, Slot, SlotProps, childrenToString, closeButtonBase, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, radiusAxis, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps } from './system/index.js';
|
|
15
|
+
export { AsChildProps, CloseButton, CloseButtonSlots, FEEDBACK_OVERLAY, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, PortalHostProps, PortalMethods, PortalProps, PressableFeedback, PressableFeedbackHighlightProps, PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, SCALE_REFERENCE_WIDTH, SelectionFill, SelectionFillProps, Slot, SlotProps, childrenToString, closeButtonBase, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, radiusAxis, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps } from './system/index.js';
|
|
15
16
|
import { GestureResponderEvent } from 'react-native';
|
|
16
17
|
export { C as CloseButtonProps } from './close-button.type-BUYuoSt2.js';
|
|
17
18
|
export { I as IconComponentProps, a as IconContextValue, b as IconProps } from './icon.type-Dq4_qePa.js';
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,14 @@ import {
|
|
|
9
9
|
useInputOTP,
|
|
10
10
|
useInputOTPBox
|
|
11
11
|
} from "./chunk-N4UJYDOW.js";
|
|
12
|
+
import {
|
|
13
|
+
Radio,
|
|
14
|
+
RadioIndicator,
|
|
15
|
+
RadioLabel,
|
|
16
|
+
RadioRoot,
|
|
17
|
+
radioRecipe,
|
|
18
|
+
useRadio
|
|
19
|
+
} from "./chunk-LKB3RIR2.js";
|
|
12
20
|
import {
|
|
13
21
|
TextArea,
|
|
14
22
|
useTextArea
|
|
@@ -29,7 +37,7 @@ import {
|
|
|
29
37
|
Portal,
|
|
30
38
|
PortalContext,
|
|
31
39
|
PortalHost
|
|
32
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-Y4BPKSD3.js";
|
|
33
41
|
import {
|
|
34
42
|
XAUIProvider,
|
|
35
43
|
buildRadius,
|
|
@@ -66,10 +74,13 @@ import {
|
|
|
66
74
|
CheckboxRoot,
|
|
67
75
|
checkboxRecipe,
|
|
68
76
|
useCheckbox
|
|
69
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-3YN7JQ55.js";
|
|
70
78
|
import {
|
|
71
79
|
useControllableState
|
|
72
80
|
} from "./chunk-F6W3JQ7K.js";
|
|
81
|
+
import {
|
|
82
|
+
SelectionFill
|
|
83
|
+
} from "./chunk-EYJEUXXC.js";
|
|
73
84
|
import {
|
|
74
85
|
Chip,
|
|
75
86
|
chipRecipe,
|
|
@@ -211,8 +222,13 @@ export {
|
|
|
211
222
|
RIPPLE_FADE_OUT_DELAY,
|
|
212
223
|
RIPPLE_OPACITY,
|
|
213
224
|
RIPPLE_START_SCALE,
|
|
225
|
+
Radio,
|
|
226
|
+
RadioIndicator,
|
|
227
|
+
RadioLabel,
|
|
228
|
+
RadioRoot,
|
|
214
229
|
Row,
|
|
215
230
|
SCALE_REFERENCE_WIDTH,
|
|
231
|
+
SelectionFill,
|
|
216
232
|
Slot,
|
|
217
233
|
Stack,
|
|
218
234
|
TextArea,
|
|
@@ -247,6 +263,7 @@ export {
|
|
|
247
263
|
palette,
|
|
248
264
|
pressScaleFor,
|
|
249
265
|
primitives,
|
|
266
|
+
radioRecipe,
|
|
250
267
|
radiusAxis,
|
|
251
268
|
resolveAnimation,
|
|
252
269
|
resolveSlotAnimation,
|
|
@@ -271,6 +288,7 @@ export {
|
|
|
271
288
|
useMergedRef,
|
|
272
289
|
usePressState,
|
|
273
290
|
usePrevious,
|
|
291
|
+
useRadio,
|
|
274
292
|
useStyleProps,
|
|
275
293
|
useTextArea,
|
|
276
294
|
useThemeColor,
|
package/dist/system/index.cjs
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVZGBEGDVcjs = require('../chunk-VZGBEGDV.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkE6EFYPJRcjs = require('../chunk-E6EFYPJR.cjs');
|
|
6
9
|
|
|
7
10
|
|
|
8
11
|
|
|
@@ -86,4 +89,5 @@ require('../chunk-MC7SY2QH.cjs');
|
|
|
86
89
|
|
|
87
90
|
|
|
88
91
|
|
|
89
|
-
|
|
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 = _chunkE6EFYPJRcjs.SelectionFill; exports.Slot = _chunkHUZ4AUM2cjs.Slot; exports.childrenToString = _chunkHUZ4AUM2cjs.childrenToString; exports.closeButtonBase = _chunkJ2JJLKLGcjs.closeButtonBase; exports.createRecipe = _chunkYXVKQMCKcjs.createRecipe; exports.createSlotContext = _chunkHUZ4AUM2cjs.createSlotContext; exports.markOverlay = _chunkIG4Q3WQOcjs.markOverlay; exports.mergeProps = _chunkHUZ4AUM2cjs.mergeProps; exports.mergeRefs = _chunkHUZ4AUM2cjs.mergeRefs; exports.pressScaleFor = _chunkIG4Q3WQOcjs.pressScaleFor; exports.radiusAxis = _chunkYXVKQMCKcjs.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
|
@@ -328,6 +328,39 @@ declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_nati
|
|
|
328
328
|
*/
|
|
329
329
|
declare function radiusAxis<Slot extends string>(slot: Slot): Record<RadiusKey, StyleFn<Slot>>;
|
|
330
330
|
|
|
331
|
+
type SelectionFillProps = {
|
|
332
|
+
/** Whether the control is on. The fill is the answer, and the mark rides on it. */
|
|
333
|
+
isVisible: boolean;
|
|
334
|
+
/** The resolved style of the host component's `fill` slot (R5). */
|
|
335
|
+
style: StyleProp<ViewStyle>;
|
|
336
|
+
/** `false` shows the fill without the fade and the scale, and mounts no worklet. */
|
|
337
|
+
animation?: boolean;
|
|
338
|
+
/** The mark — a check, a dash, a dot. It appears with the fill, never before it. */
|
|
339
|
+
children?: ReactNode;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* The colour a control takes when it is on, and the mark that arrives with it — the
|
|
344
|
+
* `Checkbox`'s check on its accent square, the `Radio`'s dot in its accent circle.
|
|
345
|
+
*
|
|
346
|
+
* It is a node of its own rather than a background on the box, because it has to fade and
|
|
347
|
+
* grow in **without taking the border with it**, and the mark has to ride along: a check
|
|
348
|
+
* arriving before its background reads as a glitch rather than as an animation.
|
|
349
|
+
*
|
|
350
|
+
* ```tsx
|
|
351
|
+
* <SelectionFill isVisible={isSelected} style={fillStyle} animation={animation}>
|
|
352
|
+
* <Check />
|
|
353
|
+
* </SelectionFill>
|
|
354
|
+
* ```
|
|
355
|
+
*
|
|
356
|
+
* The style is the host component's own resolved `fill` slot (R5) — this owns the motion
|
|
357
|
+
* and nothing else, which is what lets two components share it without sharing a recipe.
|
|
358
|
+
*/
|
|
359
|
+
declare function SelectionFill({ isVisible, style, animation, children, }: SelectionFillProps): react.JSX.Element | null;
|
|
360
|
+
declare namespace SelectionFill {
|
|
361
|
+
var displayName: string;
|
|
362
|
+
}
|
|
363
|
+
|
|
331
364
|
/**
|
|
332
365
|
* R3: the string a root should wrap in its default text slot, or `null` when it should
|
|
333
366
|
* render its children as they are.
|
|
@@ -471,4 +504,4 @@ type CloseButtonSlots = {
|
|
|
471
504
|
*/
|
|
472
505
|
declare function closeButtonBase(theme: XAUITheme): CloseButtonSlots;
|
|
473
506
|
|
|
474
|
-
export { AnimationProp, type AsChildProps, CloseButton, type CloseButtonSlots, FEEDBACK_OVERLAY, FeedbackContext, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, IconContextValue, IconProps, type MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, type PortalHostProps, type PortalMethods, type PortalProps, type PossibleRef, PressableFeedback, type PressableFeedbackHighlightProps, PressableFeedbackProps, type PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, ResolvedAnimation, SCALE_REFERENCE_WIDTH, Slot, SlotAnimation, type SlotProps, SlotStyle, StyleFn, ViewStyleProps, childrenToString, closeButtonBase, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, radiusAxis, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps };
|
|
507
|
+
export { AnimationProp, type AsChildProps, CloseButton, type CloseButtonSlots, FEEDBACK_OVERLAY, FeedbackContext, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, IconContextValue, IconProps, type MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, type PortalHostProps, type PortalMethods, type PortalProps, type PossibleRef, PressableFeedback, type PressableFeedbackHighlightProps, PressableFeedbackProps, type PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, ResolvedAnimation, SCALE_REFERENCE_WIDTH, SelectionFill, type SelectionFillProps, Slot, SlotAnimation, type SlotProps, SlotStyle, StyleFn, ViewStyleProps, childrenToString, closeButtonBase, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, radiusAxis, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps };
|
package/dist/system/index.d.ts
CHANGED
|
@@ -328,6 +328,39 @@ declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_nati
|
|
|
328
328
|
*/
|
|
329
329
|
declare function radiusAxis<Slot extends string>(slot: Slot): Record<RadiusKey, StyleFn<Slot>>;
|
|
330
330
|
|
|
331
|
+
type SelectionFillProps = {
|
|
332
|
+
/** Whether the control is on. The fill is the answer, and the mark rides on it. */
|
|
333
|
+
isVisible: boolean;
|
|
334
|
+
/** The resolved style of the host component's `fill` slot (R5). */
|
|
335
|
+
style: StyleProp<ViewStyle>;
|
|
336
|
+
/** `false` shows the fill without the fade and the scale, and mounts no worklet. */
|
|
337
|
+
animation?: boolean;
|
|
338
|
+
/** The mark — a check, a dash, a dot. It appears with the fill, never before it. */
|
|
339
|
+
children?: ReactNode;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* The colour a control takes when it is on, and the mark that arrives with it — the
|
|
344
|
+
* `Checkbox`'s check on its accent square, the `Radio`'s dot in its accent circle.
|
|
345
|
+
*
|
|
346
|
+
* It is a node of its own rather than a background on the box, because it has to fade and
|
|
347
|
+
* grow in **without taking the border with it**, and the mark has to ride along: a check
|
|
348
|
+
* arriving before its background reads as a glitch rather than as an animation.
|
|
349
|
+
*
|
|
350
|
+
* ```tsx
|
|
351
|
+
* <SelectionFill isVisible={isSelected} style={fillStyle} animation={animation}>
|
|
352
|
+
* <Check />
|
|
353
|
+
* </SelectionFill>
|
|
354
|
+
* ```
|
|
355
|
+
*
|
|
356
|
+
* The style is the host component's own resolved `fill` slot (R5) — this owns the motion
|
|
357
|
+
* and nothing else, which is what lets two components share it without sharing a recipe.
|
|
358
|
+
*/
|
|
359
|
+
declare function SelectionFill({ isVisible, style, animation, children, }: SelectionFillProps): react.JSX.Element | null;
|
|
360
|
+
declare namespace SelectionFill {
|
|
361
|
+
var displayName: string;
|
|
362
|
+
}
|
|
363
|
+
|
|
331
364
|
/**
|
|
332
365
|
* R3: the string a root should wrap in its default text slot, or `null` when it should
|
|
333
366
|
* render its children as they are.
|
|
@@ -471,4 +504,4 @@ type CloseButtonSlots = {
|
|
|
471
504
|
*/
|
|
472
505
|
declare function closeButtonBase(theme: XAUITheme): CloseButtonSlots;
|
|
473
506
|
|
|
474
|
-
export { AnimationProp, type AsChildProps, CloseButton, type CloseButtonSlots, FEEDBACK_OVERLAY, FeedbackContext, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, IconContextValue, IconProps, type MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, type PortalHostProps, type PortalMethods, type PortalProps, type PossibleRef, PressableFeedback, type PressableFeedbackHighlightProps, PressableFeedbackProps, type PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, ResolvedAnimation, SCALE_REFERENCE_WIDTH, Slot, SlotAnimation, type SlotProps, SlotStyle, StyleFn, ViewStyleProps, childrenToString, closeButtonBase, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, radiusAxis, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps };
|
|
507
|
+
export { AnimationProp, type AsChildProps, CloseButton, type CloseButtonSlots, FEEDBACK_OVERLAY, FeedbackContext, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, Icon, IconContext, IconContextValue, IconProps, type MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, type PortalHostProps, type PortalMethods, type PortalProps, type PossibleRef, PressableFeedback, type PressableFeedbackHighlightProps, PressableFeedbackProps, type PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, ResolvedAnimation, SCALE_REFERENCE_WIDTH, SelectionFill, type SelectionFillProps, Slot, SlotAnimation, type SlotProps, SlotStyle, StyleFn, ViewStyleProps, childrenToString, closeButtonBase, createSlotContext, markOverlay, mergeProps, mergeRefs, pressScaleFor, radiusAxis, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps };
|
package/dist/system/index.js
CHANGED
|
@@ -2,7 +2,10 @@ import {
|
|
|
2
2
|
Portal,
|
|
3
3
|
PortalContext,
|
|
4
4
|
PortalHost
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-Y4BPKSD3.js";
|
|
6
|
+
import {
|
|
7
|
+
SelectionFill
|
|
8
|
+
} from "../chunk-EYJEUXXC.js";
|
|
6
9
|
import {
|
|
7
10
|
CloseButton,
|
|
8
11
|
closeButtonBase
|
|
@@ -70,6 +73,7 @@ export {
|
|
|
70
73
|
RIPPLE_OPACITY,
|
|
71
74
|
RIPPLE_START_SCALE,
|
|
72
75
|
SCALE_REFERENCE_WIDTH,
|
|
76
|
+
SelectionFill,
|
|
73
77
|
Slot,
|
|
74
78
|
childrenToString,
|
|
75
79
|
closeButtonBase,
|
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.28",
|
|
4
4
|
"description": "Composition-first React Native UI components with native animations powered by Reanimated",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -107,6 +107,16 @@
|
|
|
107
107
|
"default": "./dist/components/input-otp/index.cjs"
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
+
"./radio": {
|
|
111
|
+
"import": {
|
|
112
|
+
"types": "./dist/components/radio/index.d.ts",
|
|
113
|
+
"default": "./dist/components/radio/index.js"
|
|
114
|
+
},
|
|
115
|
+
"require": {
|
|
116
|
+
"types": "./dist/components/radio/index.d.cts",
|
|
117
|
+
"default": "./dist/components/radio/index.cjs"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
110
120
|
"./text-area": {
|
|
111
121
|
"import": {
|
|
112
122
|
"types": "./dist/components/text-area/index.d.ts",
|