@xaui/native 0.9.1-alpha.26 → 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-PQHC65AG.js → chunk-56KVKM27.js} +15 -15
- package/dist/chunk-5A4M6X5B.cjs +289 -0
- package/dist/{chunk-BULNTP5N.cjs → chunk-63TWVWHG.cjs} +9 -45
- package/dist/chunk-7EIHHOHP.cjs +42 -0
- package/dist/{chunk-WVCAFORA.cjs → chunk-CQRUNV6S.cjs} +15 -15
- package/dist/chunk-E6EFYPJR.cjs +41 -0
- package/dist/chunk-EYJEUXXC.js +98 -0
- package/dist/chunk-F6W3JQ7K.js +42 -0
- package/dist/chunk-LKB3RIR2.js +289 -0
- package/dist/{chunk-I6UCYAO2.js → chunk-N4UJYDOW.js} +23 -56
- package/dist/chunk-V6DGGDHF.cjs +342 -0
- package/dist/components/alert/index.cjs +1 -1
- package/dist/components/alert/index.d.cts +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.d.cts +1 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/card/index.d.cts +1 -1
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/checkbox/index.cjs +24 -0
- package/dist/components/checkbox/index.d.cts +1136 -0
- package/dist/components/checkbox/index.d.ts +1136 -0
- package/dist/components/checkbox/index.js +24 -0
- package/dist/components/chip/index.cjs +3 -3
- package/dist/components/chip/index.d.cts +1 -1
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/chip/index.js +2 -2
- package/dist/components/input/index.d.cts +3 -3
- package/dist/components/input/index.d.ts +3 -3
- package/dist/components/input-otp/index.cjs +3 -2
- package/dist/components/input-otp/index.d.cts +3 -3
- package/dist/components/input-otp/index.d.ts +3 -3
- package/dist/components/input-otp/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/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/{create-recipe-dBN_ewZc.d.cts → create-recipe-CWvI5ot3.d.cts} +8 -1
- package/dist/{create-recipe-C4JkINrA.d.ts → create-recipe-DUo8doTt.d.ts} +8 -1
- package/dist/index.cjs +45 -11
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +50 -16
- package/dist/system/index.cjs +7 -3
- package/dist/system/index.d.cts +36 -3
- package/dist/system/index.d.ts +36 -3
- package/dist/system/index.js +6 -2
- package/package.json +21 -1
- package/dist/{chunk-3WISQT22.js → chunk-EHARM2EN.js} +3 -3
- package/dist/{chunk-I7G77Q65.cjs → chunk-H7DVR52Z.cjs} +2 -2
- /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
|
+
};
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { TextProps, StyleProp, TextStyle, Text } from 'react-native';
|
|
5
5
|
import { T as TextStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
|
|
6
|
-
import { R as Recipe } from '../../create-recipe-
|
|
6
|
+
import { R as Recipe } from '../../create-recipe-CWvI5ot3.cjs';
|
|
7
7
|
import { X as XAUITheme } from '../../theme.type-C2gNHpEx.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { TextProps, StyleProp, TextStyle, Text } from 'react-native';
|
|
5
5
|
import { T as TextStyleProps } from '../../style-props.type-CfnoGEP7.js';
|
|
6
|
-
import { R as Recipe } from '../../create-recipe-
|
|
6
|
+
import { R as Recipe } from '../../create-recipe-DUo8doTt.js';
|
|
7
7
|
import { X as XAUITheme } from '../../theme.type-C2gNHpEx.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -19,8 +19,15 @@ type SlotStyles<Slot extends string> = Partial<Record<Slot, SlotStyle>>;
|
|
|
19
19
|
* **A state that reads a role must find it declared on every variant.** The merge is a
|
|
20
20
|
* shallow spread, so a `borderColor: colors.borderFocus` on a variant that names no
|
|
21
21
|
* `borderFocus` writes `undefined` over the colour `paint` had set.
|
|
22
|
+
*
|
|
23
|
+
* `bgSelected` and `fgSelected` are the same reasoning for a control that **toggles**:
|
|
24
|
+
* `bg` is the box at rest and `bgSelected` is the box once it is on, with `fgSelected`
|
|
25
|
+
* the mark that has to read against it. They are roles rather than tokens named in an
|
|
26
|
+
* `isSelected` axis for one reason — **the tint pass re-runs `paint` and the states, not
|
|
27
|
+
* the axes** — and that is what makes a raw `color` the colour a `Checkbox` checks in,
|
|
28
|
+
* rather than a colour that disappears the moment it is ticked.
|
|
22
29
|
*/
|
|
23
|
-
type VariantRole = 'bg' | 'bgPressed' | 'fg' | 'border' | 'borderFocus';
|
|
30
|
+
type VariantRole = 'bg' | 'bgPressed' | 'bgSelected' | 'fg' | 'fgSelected' | 'border' | 'borderFocus';
|
|
24
31
|
/** Token names per role — no colour value ever appears in a recipe. */
|
|
25
32
|
type VariantTokens = Partial<Record<VariantRole, keyof XAUIColors>>;
|
|
26
33
|
/** The same roles resolved: theme colours, or the slices of a raw `color`. */
|
|
@@ -19,8 +19,15 @@ type SlotStyles<Slot extends string> = Partial<Record<Slot, SlotStyle>>;
|
|
|
19
19
|
* **A state that reads a role must find it declared on every variant.** The merge is a
|
|
20
20
|
* shallow spread, so a `borderColor: colors.borderFocus` on a variant that names no
|
|
21
21
|
* `borderFocus` writes `undefined` over the colour `paint` had set.
|
|
22
|
+
*
|
|
23
|
+
* `bgSelected` and `fgSelected` are the same reasoning for a control that **toggles**:
|
|
24
|
+
* `bg` is the box at rest and `bgSelected` is the box once it is on, with `fgSelected`
|
|
25
|
+
* the mark that has to read against it. They are roles rather than tokens named in an
|
|
26
|
+
* `isSelected` axis for one reason — **the tint pass re-runs `paint` and the states, not
|
|
27
|
+
* the axes** — and that is what makes a raw `color` the colour a `Checkbox` checks in,
|
|
28
|
+
* rather than a colour that disappears the moment it is ticked.
|
|
22
29
|
*/
|
|
23
|
-
type VariantRole = 'bg' | 'bgPressed' | 'fg' | 'border' | 'borderFocus';
|
|
30
|
+
type VariantRole = 'bg' | 'bgPressed' | 'bgSelected' | 'fg' | 'fgSelected' | 'border' | 'borderFocus';
|
|
24
31
|
/** Token names per role — no colour value ever appears in a recipe. */
|
|
25
32
|
type VariantTokens = Partial<Record<VariantRole, keyof XAUIColors>>;
|
|
26
33
|
/** The same roles resolved: theme colours, or the slices of a raw `color`. */
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunk63TWVWHGcjs = require('./chunk-63TWVWHG.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var _chunk5A4M6X5Bcjs = require('./chunk-5A4M6X5B.cjs');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
4
23
|
var _chunk5OXZIZRZcjs = require('./chunk-5OXZIZRZ.cjs');
|
|
5
24
|
|
|
6
25
|
|
|
@@ -18,7 +37,7 @@ var _chunkIBEX4XGVcjs = require('./chunk-IBEX4XGV.cjs');
|
|
|
18
37
|
|
|
19
38
|
|
|
20
39
|
|
|
21
|
-
var
|
|
40
|
+
var _chunkVZGBEGDVcjs = require('./chunk-VZGBEGDV.cjs');
|
|
22
41
|
|
|
23
42
|
|
|
24
43
|
|
|
@@ -40,7 +59,7 @@ var _chunkJ4JFIC4Wcjs = require('./chunk-J4JFIC4W.cjs');
|
|
|
40
59
|
|
|
41
60
|
|
|
42
61
|
|
|
43
|
-
var
|
|
62
|
+
var _chunkCQRUNV6Scjs = require('./chunk-CQRUNV6S.cjs');
|
|
44
63
|
|
|
45
64
|
|
|
46
65
|
|
|
@@ -52,22 +71,25 @@ var _chunk6FBGCF5Tcjs = require('./chunk-6FBGCF5T.cjs');
|
|
|
52
71
|
|
|
53
72
|
|
|
54
73
|
|
|
55
|
-
var _chunkI7G77Q65cjs = require('./chunk-I7G77Q65.cjs');
|
|
56
74
|
|
|
57
75
|
|
|
58
76
|
|
|
59
|
-
var
|
|
77
|
+
var _chunkV6DGGDHFcjs = require('./chunk-V6DGGDHF.cjs');
|
|
60
78
|
|
|
61
79
|
|
|
80
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
62
81
|
|
|
63
82
|
|
|
83
|
+
var _chunkE6EFYPJRcjs = require('./chunk-E6EFYPJR.cjs');
|
|
64
84
|
|
|
65
85
|
|
|
66
86
|
|
|
67
87
|
|
|
88
|
+
var _chunkH7DVR52Zcjs = require('./chunk-H7DVR52Z.cjs');
|
|
68
89
|
|
|
69
90
|
|
|
70
91
|
|
|
92
|
+
var _chunkJ2JJLKLGcjs = require('./chunk-J2JJLKLG.cjs');
|
|
71
93
|
|
|
72
94
|
|
|
73
95
|
|
|
@@ -79,7 +101,6 @@ var _chunkJ2JJLKLGcjs = require('./chunk-J2JJLKLG.cjs');
|
|
|
79
101
|
|
|
80
102
|
|
|
81
103
|
|
|
82
|
-
var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
83
104
|
|
|
84
105
|
|
|
85
106
|
|
|
@@ -89,12 +110,12 @@ var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
|
89
110
|
|
|
90
111
|
|
|
91
112
|
|
|
92
|
-
var _chunk3LKGVKQYcjs = require('./chunk-3LKGVKQY.cjs');
|
|
93
113
|
|
|
94
114
|
|
|
115
|
+
var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
116
|
+
require('./chunk-EJQCQPET.cjs');
|
|
95
117
|
|
|
96
118
|
|
|
97
|
-
var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
98
119
|
|
|
99
120
|
|
|
100
121
|
|
|
@@ -102,11 +123,12 @@ var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
|
102
123
|
|
|
103
124
|
|
|
104
125
|
|
|
126
|
+
var _chunk3LKGVKQYcjs = require('./chunk-3LKGVKQY.cjs');
|
|
105
127
|
|
|
106
128
|
|
|
107
|
-
var _chunkJCKVYYZOcjs = require('./chunk-JCKVYYZO.cjs');
|
|
108
129
|
|
|
109
130
|
|
|
131
|
+
var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
110
132
|
|
|
111
133
|
|
|
112
134
|
|
|
@@ -116,8 +138,7 @@ var _chunkJCKVYYZOcjs = require('./chunk-JCKVYYZO.cjs');
|
|
|
116
138
|
|
|
117
139
|
|
|
118
140
|
|
|
119
|
-
var
|
|
120
|
-
require('./chunk-EJQCQPET.cjs');
|
|
141
|
+
var _chunkJCKVYYZOcjs = require('./chunk-JCKVYYZO.cjs');
|
|
121
142
|
|
|
122
143
|
|
|
123
144
|
|
|
@@ -259,4 +280,17 @@ function usePrevious(value) {
|
|
|
259
280
|
|
|
260
281
|
|
|
261
282
|
|
|
262
|
-
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
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
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
export { Alert, AlertCloseProps, AlertContentProps, AlertContextValue, AlertDescriptionProps, AlertIconProps, AlertProps, AlertSize, AlertSlot, AlertTitleProps, AlertVariant, alertRecipe, useAlert } from './components/alert/index.cjs';
|
|
2
2
|
export { Button, ButtonContextValue, ButtonIconProps, ButtonLabelProps, ButtonProps, ButtonSize, ButtonSlot, ButtonSpinnerProps, ButtonVariant, buttonRecipe, useButton } from './components/button/index.cjs';
|
|
3
3
|
export { CARD_BACKGROUND, Card, CardBackgroundProps, CardBodyProps, CardContextValue, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSlot, CardTitleProps, CardVariant, cardRecipe, markBackground, useCard } from './components/card/index.cjs';
|
|
4
|
+
export { Checkbox, CheckboxContextValue, CheckboxIndicator, CheckboxIndicatorProps, CheckboxLabel, CheckboxLabelProps, CheckboxProps, CheckboxRoot, CheckboxSize, CheckboxSlot, CheckboxVariant, checkboxRecipe, useCheckbox } from './components/checkbox/index.cjs';
|
|
4
5
|
export { Chip, ChipAvatarProps, ChipCloseProps, ChipContextValue, ChipDotProps, ChipIconProps, ChipLabelProps, ChipProps, ChipSize, ChipSlot, ChipVariant, chipRecipe, useChip } from './components/chip/index.cjs';
|
|
5
6
|
export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot, inputRecipe, useInput } from './components/input/index.cjs';
|
|
6
7
|
export { InputGroup, InputGroupContextValue, InputGroupField, InputGroupFieldProps, InputGroupIcon, InputGroupIconProps, InputGroupPrefix, InputGroupPrefixProps, InputGroupProps, InputGroupRoot, InputGroupSide, InputGroupSuffix, InputGroupSuffixProps, decoratorPadding, useInputGroup } from './components/input-group/index.cjs';
|
|
7
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';
|
|
8
10
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.cjs';
|
|
9
11
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.cjs';
|
|
10
12
|
export { AxisProps, Column, ColumnProps, Grid, GridContextValue, GridItemProps, GridProps, Row, RowProps, Stack, StackItemProps, StackProps, useGrid } from './components/view/index.cjs';
|
|
11
13
|
import { RefCallback } from 'react';
|
|
12
14
|
import { PossibleRef } from './system/index.cjs';
|
|
13
|
-
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';
|
|
14
16
|
import { GestureResponderEvent } from 'react-native';
|
|
15
17
|
export { C as CloseButtonProps } from './close-button.type-CHsgZ3wO.cjs';
|
|
16
18
|
export { I as IconComponentProps, a as IconContextValue, b as IconProps } from './icon.type-CF4KiMKl.cjs';
|
|
17
|
-
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, f as SlotStyle, g as SlotStyles, h as StateName, i as States, j as StyleFn, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from './create-recipe-
|
|
19
|
+
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, f as SlotStyle, g as SlotStyles, h as StateName, i as States, j as StyleFn, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from './create-recipe-CWvI5ot3.cjs';
|
|
18
20
|
export { D as DirectionalStyleKey, I as ImageStyleProps, S as StyleProps, T as TextStyleProps, V as ViewStyleProps } from './style-props.type-CfnoGEP7.cjs';
|
|
19
21
|
export { ColorModePreference, PaletteFamily, PaletteShade, ThemeContext, XAUIProvider, XAUIProviderProps, XAUITint, buildRadius, buildShadows, createTheme, defaultTheme, deriveColors, deriveTint, palette, primitives, sourceKeys, tokens, useColorMode, useThemeColor, useXAUITheme } from './theme/index.cjs';
|
|
20
22
|
export { C as ColorMode, F as FontSizeKey, b as FontWeightKey, R as RadiusKey, S as Size, a as XAUIColors, c as XAUIDerivedColors, d as XAUIPrimitiveColors, e as XAUIRadius, f as XAUIShadow, g as XAUISourceColors, X as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C2gNHpEx.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
export { Alert, AlertCloseProps, AlertContentProps, AlertContextValue, AlertDescriptionProps, AlertIconProps, AlertProps, AlertSize, AlertSlot, AlertTitleProps, AlertVariant, alertRecipe, useAlert } from './components/alert/index.js';
|
|
2
2
|
export { Button, ButtonContextValue, ButtonIconProps, ButtonLabelProps, ButtonProps, ButtonSize, ButtonSlot, ButtonSpinnerProps, ButtonVariant, buttonRecipe, useButton } from './components/button/index.js';
|
|
3
3
|
export { CARD_BACKGROUND, Card, CardBackgroundProps, CardBodyProps, CardContextValue, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSlot, CardTitleProps, CardVariant, cardRecipe, markBackground, useCard } from './components/card/index.js';
|
|
4
|
+
export { Checkbox, CheckboxContextValue, CheckboxIndicator, CheckboxIndicatorProps, CheckboxLabel, CheckboxLabelProps, CheckboxProps, CheckboxRoot, CheckboxSize, CheckboxSlot, CheckboxVariant, checkboxRecipe, useCheckbox } from './components/checkbox/index.js';
|
|
4
5
|
export { Chip, ChipAvatarProps, ChipCloseProps, ChipContextValue, ChipDotProps, ChipIconProps, ChipLabelProps, ChipProps, ChipSize, ChipSlot, ChipVariant, chipRecipe, useChip } from './components/chip/index.js';
|
|
5
6
|
export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot, inputRecipe, useInput } from './components/input/index.js';
|
|
6
7
|
export { InputGroup, InputGroupContextValue, InputGroupField, InputGroupFieldProps, InputGroupIcon, InputGroupIconProps, InputGroupPrefix, InputGroupPrefixProps, InputGroupProps, InputGroupRoot, InputGroupSide, InputGroupSuffix, InputGroupSuffixProps, decoratorPadding, useInputGroup } from './components/input-group/index.js';
|
|
7
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';
|
|
8
10
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.js';
|
|
9
11
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.js';
|
|
10
12
|
export { AxisProps, Column, ColumnProps, Grid, GridContextValue, GridItemProps, GridProps, Row, RowProps, Stack, StackItemProps, StackProps, useGrid } from './components/view/index.js';
|
|
11
13
|
import { RefCallback } from 'react';
|
|
12
14
|
import { PossibleRef } from './system/index.js';
|
|
13
|
-
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';
|
|
14
16
|
import { GestureResponderEvent } from 'react-native';
|
|
15
17
|
export { C as CloseButtonProps } from './close-button.type-BUYuoSt2.js';
|
|
16
18
|
export { I as IconComponentProps, a as IconContextValue, b as IconProps } from './icon.type-Dq4_qePa.js';
|
|
17
|
-
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, f as SlotStyle, g as SlotStyles, h as StateName, i as States, j as StyleFn, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from './create-recipe-
|
|
19
|
+
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, f as SlotStyle, g as SlotStyles, h as StateName, i as States, j as StyleFn, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from './create-recipe-DUo8doTt.js';
|
|
18
20
|
export { D as DirectionalStyleKey, I as ImageStyleProps, S as StyleProps, T as TextStyleProps, V as ViewStyleProps } from './style-props.type-CfnoGEP7.js';
|
|
19
21
|
export { ColorModePreference, PaletteFamily, PaletteShade, ThemeContext, XAUIProvider, XAUIProviderProps, XAUITint, buildRadius, buildShadows, createTheme, defaultTheme, deriveColors, deriveTint, palette, primitives, sourceKeys, tokens, useColorMode, useThemeColor, useXAUITheme } from './theme/index.js';
|
|
20
22
|
export { C as ColorMode, F as FontSizeKey, b as FontWeightKey, R as RadiusKey, S as Size, a as XAUIColors, c as XAUIDerivedColors, d as XAUIPrimitiveColors, e as XAUIRadius, f as XAUIShadow, g as XAUISourceColors, X as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C2gNHpEx.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
InputOTP,
|
|
3
|
+
OTP_ALPHANUMERIC,
|
|
4
|
+
OTP_DIGITS,
|
|
5
|
+
OTP_LETTERS,
|
|
6
|
+
buildSlots,
|
|
7
|
+
extractPastedCode,
|
|
8
|
+
inputOTPRecipe,
|
|
9
|
+
useInputOTP,
|
|
10
|
+
useInputOTPBox
|
|
11
|
+
} from "./chunk-N4UJYDOW.js";
|
|
12
|
+
import {
|
|
13
|
+
Radio,
|
|
14
|
+
RadioIndicator,
|
|
15
|
+
RadioLabel,
|
|
16
|
+
RadioRoot,
|
|
17
|
+
radioRecipe,
|
|
18
|
+
useRadio
|
|
19
|
+
} from "./chunk-LKB3RIR2.js";
|
|
1
20
|
import {
|
|
2
21
|
TextArea,
|
|
3
22
|
useTextArea
|
|
@@ -18,7 +37,7 @@ import {
|
|
|
18
37
|
Portal,
|
|
19
38
|
PortalContext,
|
|
20
39
|
PortalHost
|
|
21
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-Y4BPKSD3.js";
|
|
22
41
|
import {
|
|
23
42
|
XAUIProvider,
|
|
24
43
|
buildRadius,
|
|
@@ -40,7 +59,7 @@ import {
|
|
|
40
59
|
Button,
|
|
41
60
|
buttonRecipe,
|
|
42
61
|
useButton
|
|
43
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-56KVKM27.js";
|
|
44
63
|
import {
|
|
45
64
|
CARD_BACKGROUND,
|
|
46
65
|
Card,
|
|
@@ -48,11 +67,25 @@ import {
|
|
|
48
67
|
markBackground,
|
|
49
68
|
useCard
|
|
50
69
|
} from "./chunk-ZTA47PO5.js";
|
|
70
|
+
import {
|
|
71
|
+
Checkbox,
|
|
72
|
+
CheckboxIndicator,
|
|
73
|
+
CheckboxLabel,
|
|
74
|
+
CheckboxRoot,
|
|
75
|
+
checkboxRecipe,
|
|
76
|
+
useCheckbox
|
|
77
|
+
} from "./chunk-3YN7JQ55.js";
|
|
78
|
+
import {
|
|
79
|
+
useControllableState
|
|
80
|
+
} from "./chunk-F6W3JQ7K.js";
|
|
81
|
+
import {
|
|
82
|
+
SelectionFill
|
|
83
|
+
} from "./chunk-EYJEUXXC.js";
|
|
51
84
|
import {
|
|
52
85
|
Chip,
|
|
53
86
|
chipRecipe,
|
|
54
87
|
useChip
|
|
55
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-EHARM2EN.js";
|
|
56
89
|
import {
|
|
57
90
|
CloseButton,
|
|
58
91
|
closeButtonBase
|
|
@@ -80,6 +113,7 @@ import {
|
|
|
80
113
|
useFeedback,
|
|
81
114
|
usePressState
|
|
82
115
|
} from "./chunk-4HELPMAK.js";
|
|
116
|
+
import "./chunk-EGLLDKN6.js";
|
|
83
117
|
import {
|
|
84
118
|
InputGroup,
|
|
85
119
|
InputGroupField,
|
|
@@ -105,19 +139,6 @@ import {
|
|
|
105
139
|
inputRecipe,
|
|
106
140
|
useInput
|
|
107
141
|
} from "./chunk-V2FQN6ZK.js";
|
|
108
|
-
import {
|
|
109
|
-
InputOTP,
|
|
110
|
-
OTP_ALPHANUMERIC,
|
|
111
|
-
OTP_DIGITS,
|
|
112
|
-
OTP_LETTERS,
|
|
113
|
-
buildSlots,
|
|
114
|
-
extractPastedCode,
|
|
115
|
-
inputOTPRecipe,
|
|
116
|
-
useControllableState,
|
|
117
|
-
useInputOTP,
|
|
118
|
-
useInputOTPBox
|
|
119
|
-
} from "./chunk-I6UCYAO2.js";
|
|
120
|
-
import "./chunk-EGLLDKN6.js";
|
|
121
142
|
import {
|
|
122
143
|
createRecipe,
|
|
123
144
|
radiusAxis
|
|
@@ -159,6 +180,10 @@ export {
|
|
|
159
180
|
Button,
|
|
160
181
|
CARD_BACKGROUND,
|
|
161
182
|
Card,
|
|
183
|
+
Checkbox,
|
|
184
|
+
CheckboxIndicator,
|
|
185
|
+
CheckboxLabel,
|
|
186
|
+
CheckboxRoot,
|
|
162
187
|
Chip,
|
|
163
188
|
CloseButton,
|
|
164
189
|
Column,
|
|
@@ -197,8 +222,13 @@ export {
|
|
|
197
222
|
RIPPLE_FADE_OUT_DELAY,
|
|
198
223
|
RIPPLE_OPACITY,
|
|
199
224
|
RIPPLE_START_SCALE,
|
|
225
|
+
Radio,
|
|
226
|
+
RadioIndicator,
|
|
227
|
+
RadioLabel,
|
|
228
|
+
RadioRoot,
|
|
200
229
|
Row,
|
|
201
230
|
SCALE_REFERENCE_WIDTH,
|
|
231
|
+
SelectionFill,
|
|
202
232
|
Slot,
|
|
203
233
|
Stack,
|
|
204
234
|
TextArea,
|
|
@@ -212,6 +242,7 @@ export {
|
|
|
212
242
|
buildSlots,
|
|
213
243
|
buttonRecipe,
|
|
214
244
|
cardRecipe,
|
|
245
|
+
checkboxRecipe,
|
|
215
246
|
childrenToString,
|
|
216
247
|
chipRecipe,
|
|
217
248
|
closeButtonBase,
|
|
@@ -232,6 +263,7 @@ export {
|
|
|
232
263
|
palette,
|
|
233
264
|
pressScaleFor,
|
|
234
265
|
primitives,
|
|
266
|
+
radioRecipe,
|
|
235
267
|
radiusAxis,
|
|
236
268
|
resolveAnimation,
|
|
237
269
|
resolveSlotAnimation,
|
|
@@ -242,6 +274,7 @@ export {
|
|
|
242
274
|
useAlert,
|
|
243
275
|
useButton,
|
|
244
276
|
useCard,
|
|
277
|
+
useCheckbox,
|
|
245
278
|
useChip,
|
|
246
279
|
useColorMode,
|
|
247
280
|
useControllableState,
|
|
@@ -255,6 +288,7 @@ export {
|
|
|
255
288
|
useMergedRef,
|
|
256
289
|
usePressState,
|
|
257
290
|
usePrevious,
|
|
291
|
+
useRadio,
|
|
258
292
|
useStyleProps,
|
|
259
293
|
useTextArea,
|
|
260
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
|
|
|
@@ -29,12 +32,12 @@ var _chunkJ2JJLKLGcjs = require('../chunk-J2JJLKLG.cjs');
|
|
|
29
32
|
|
|
30
33
|
|
|
31
34
|
var _chunkIG4Q3WQOcjs = require('../chunk-IG4Q3WQO.cjs');
|
|
35
|
+
require('../chunk-EJQCQPET.cjs');
|
|
32
36
|
|
|
33
37
|
|
|
34
38
|
|
|
35
39
|
|
|
36
40
|
var _chunkB4W2XNBPcjs = require('../chunk-B4W2XNBP.cjs');
|
|
37
|
-
require('../chunk-EJQCQPET.cjs');
|
|
38
41
|
|
|
39
42
|
|
|
40
43
|
|
|
@@ -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
|
@@ -5,8 +5,8 @@ import { ReactNode, Provider, Ref, RefCallback } from 'react';
|
|
|
5
5
|
import { S as SlotAnimation, F as FeedbackContext, a as AnimationProp, b as ResolvedAnimation, P as PressableFeedbackProps } from '../pressable-feedback.type-BA2C9sSz.cjs';
|
|
6
6
|
export { A as AnimationConfig, R as RadiusStyle, c as RippleWave } from '../pressable-feedback.type-BA2C9sSz.cjs';
|
|
7
7
|
import { R as RadiusKey, X as XAUITheme } from '../theme.type-C2gNHpEx.cjs';
|
|
8
|
-
import { j as StyleFn, f as SlotStyle } from '../create-recipe-
|
|
9
|
-
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, g as SlotStyles, h as StateName, i as States, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from '../create-recipe-
|
|
8
|
+
import { j as StyleFn, f as SlotStyle } from '../create-recipe-CWvI5ot3.cjs';
|
|
9
|
+
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, g as SlotStyles, h as StateName, i as States, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from '../create-recipe-CWvI5ot3.cjs';
|
|
10
10
|
export { C as CloseButtonProps } from '../close-button.type-CHsgZ3wO.cjs';
|
|
11
11
|
import { b as IconProps, a as IconContextValue } from '../icon.type-CF4KiMKl.cjs';
|
|
12
12
|
export { I as IconComponentProps } from '../icon.type-CF4KiMKl.cjs';
|
|
@@ -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
|
@@ -5,8 +5,8 @@ import { ReactNode, Provider, Ref, RefCallback } from 'react';
|
|
|
5
5
|
import { S as SlotAnimation, F as FeedbackContext, a as AnimationProp, b as ResolvedAnimation, P as PressableFeedbackProps } from '../pressable-feedback.type-Bs4dQlGj.js';
|
|
6
6
|
export { A as AnimationConfig, R as RadiusStyle, c as RippleWave } from '../pressable-feedback.type-Bs4dQlGj.js';
|
|
7
7
|
import { R as RadiusKey, X as XAUITheme } from '../theme.type-C2gNHpEx.js';
|
|
8
|
-
import { j as StyleFn, f as SlotStyle } from '../create-recipe-
|
|
9
|
-
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, g as SlotStyles, h as StateName, i as States, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from '../create-recipe-
|
|
8
|
+
import { j as StyleFn, f as SlotStyle } from '../create-recipe-DUo8doTt.js';
|
|
9
|
+
export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as ResolveArgs, d as ResolvedSelection, e as ResolvedStyles, S as Selection, g as SlotStyles, h as StateName, i as States, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from '../create-recipe-DUo8doTt.js';
|
|
10
10
|
export { C as CloseButtonProps } from '../close-button.type-BUYuoSt2.js';
|
|
11
11
|
import { b as IconProps, a as IconContextValue } from '../icon.type-Dq4_qePa.js';
|
|
12
12
|
export { I as IconComponentProps } from '../icon.type-Dq4_qePa.js';
|
|
@@ -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
|
|
@@ -29,12 +32,12 @@ import {
|
|
|
29
32
|
rippleRadiusFor,
|
|
30
33
|
useFeedback
|
|
31
34
|
} from "../chunk-4HELPMAK.js";
|
|
35
|
+
import "../chunk-EGLLDKN6.js";
|
|
32
36
|
import {
|
|
33
37
|
Icon,
|
|
34
38
|
IconContext,
|
|
35
39
|
useIconContext
|
|
36
40
|
} from "../chunk-ICR42HHG.js";
|
|
37
|
-
import "../chunk-EGLLDKN6.js";
|
|
38
41
|
import {
|
|
39
42
|
createRecipe,
|
|
40
43
|
radiusAxis
|
|
@@ -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,
|