@xaui/native 0.9.1-alpha.34 → 0.9.1-alpha.35
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-KQKD3KB3.js → chunk-HNW4HIMO.js} +18 -19
- package/dist/{chunk-LT6XHFXJ.cjs → chunk-YUG22AXX.cjs} +18 -19
- package/dist/components/skeleton/index.cjs +2 -2
- package/dist/components/skeleton/index.d.cts +44 -53
- package/dist/components/skeleton/index.d.ts +44 -53
- package/dist/components/skeleton/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -12,9 +12,6 @@ var SLOTS = ["root"];
|
|
|
12
12
|
var VARIANT_TOKENS = {
|
|
13
13
|
default: {
|
|
14
14
|
bg: "default"
|
|
15
|
-
},
|
|
16
|
-
secondary: {
|
|
17
|
-
bg: "defaultSoft"
|
|
18
15
|
}
|
|
19
16
|
};
|
|
20
17
|
var skeletonRecipe = createRecipe({
|
|
@@ -42,6 +39,10 @@ var skeletonRecipe = createRecipe({
|
|
|
42
39
|
* R14's `width` and `height`, because only they know the shape of the thing that is
|
|
43
40
|
* missing.
|
|
44
41
|
*/
|
|
42
|
+
/**
|
|
43
|
+
* `variant` is named here and nowhere else: there is one, the caller cannot choose it,
|
|
44
|
+
* and the recipe still needs it selected for `paint` and the tint to resolve.
|
|
45
|
+
*/
|
|
45
46
|
defaultVariants: {
|
|
46
47
|
variant: "default",
|
|
47
48
|
radius: "md"
|
|
@@ -53,7 +54,6 @@ import { Fragment, jsx } from "react/jsx-runtime";
|
|
|
53
54
|
var PULSE_DURATION = 1e3;
|
|
54
55
|
var PULSE_MIN_OPACITY = 0.5;
|
|
55
56
|
var Skeleton = forwardRef(function Skeleton2({
|
|
56
|
-
variant,
|
|
57
57
|
radius,
|
|
58
58
|
color,
|
|
59
59
|
isLoading = true,
|
|
@@ -65,7 +65,6 @@ var Skeleton = forwardRef(function Skeleton2({
|
|
|
65
65
|
const theme = useXAUITheme();
|
|
66
66
|
const [styleProps, rest] = useStyleProps(props);
|
|
67
67
|
const selection = {
|
|
68
|
-
variant,
|
|
69
68
|
radius
|
|
70
69
|
};
|
|
71
70
|
const styles = skeletonRecipe.resolve({
|
|
@@ -101,10 +100,10 @@ var Skeleton = forwardRef(function Skeleton2({
|
|
|
101
100
|
});
|
|
102
101
|
});
|
|
103
102
|
Skeleton.displayName = "XAUI.Skeleton";
|
|
104
|
-
const
|
|
105
|
-
code: "function
|
|
106
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
107
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
103
|
+
const _worklet_11158666407002_init_data = {
|
|
104
|
+
code: "function chunkHNW4HIMOJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
105
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-HNW4HIMO.js",
|
|
106
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkHNW4HIMOJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-HNW4HIMO.js\"],\"mappings\":\"AAyF2C,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
108
107
|
};
|
|
109
108
|
var PulsingBlock = forwardRef(function PulsingBlock2({
|
|
110
109
|
style,
|
|
@@ -120,26 +119,26 @@ var PulsingBlock = forwardRef(function PulsingBlock2({
|
|
|
120
119
|
true);
|
|
121
120
|
return () => cancelAnimation(opacity);
|
|
122
121
|
}, [opacity]);
|
|
123
|
-
const animatedStyle = useAnimatedStyle(function
|
|
124
|
-
|
|
122
|
+
const animatedStyle = useAnimatedStyle(function chunkHNW4HIMOJs1Factory({
|
|
123
|
+
_worklet_11158666407002_init_data,
|
|
125
124
|
opacity
|
|
126
125
|
}) {
|
|
127
126
|
const _e = [new global.Error(), -2, -27];
|
|
128
|
-
const
|
|
127
|
+
const chunkHNW4HIMOJs1 = function () {
|
|
129
128
|
return {
|
|
130
129
|
opacity: opacity.value
|
|
131
130
|
};
|
|
132
131
|
};
|
|
133
|
-
|
|
132
|
+
chunkHNW4HIMOJs1.__closure = {
|
|
134
133
|
opacity
|
|
135
134
|
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
return
|
|
135
|
+
chunkHNW4HIMOJs1.__workletHash = 11158666407002;
|
|
136
|
+
chunkHNW4HIMOJs1.__pluginVersion = "0.7.4";
|
|
137
|
+
chunkHNW4HIMOJs1.__initData = _worklet_11158666407002_init_data;
|
|
138
|
+
chunkHNW4HIMOJs1.__stackDetails = _e;
|
|
139
|
+
return chunkHNW4HIMOJs1;
|
|
141
140
|
}({
|
|
142
|
-
|
|
141
|
+
_worklet_11158666407002_init_data,
|
|
143
142
|
opacity
|
|
144
143
|
}), [opacity]);
|
|
145
144
|
return /* @__PURE__ */jsx(Animated.View, {
|
|
@@ -44,9 +44,6 @@ var SLOTS = ["root"];
|
|
|
44
44
|
var VARIANT_TOKENS = {
|
|
45
45
|
default: {
|
|
46
46
|
bg: "default"
|
|
47
|
-
},
|
|
48
|
-
secondary: {
|
|
49
|
-
bg: "defaultSoft"
|
|
50
47
|
}
|
|
51
48
|
};
|
|
52
49
|
var skeletonRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
@@ -74,6 +71,10 @@ var skeletonRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
|
74
71
|
* R14's `width` and `height`, because only they know the shape of the thing that is
|
|
75
72
|
* missing.
|
|
76
73
|
*/
|
|
74
|
+
/**
|
|
75
|
+
* `variant` is named here and nowhere else: there is one, the caller cannot choose it,
|
|
76
|
+
* and the recipe still needs it selected for `paint` and the tint to resolve.
|
|
77
|
+
*/
|
|
77
78
|
defaultVariants: {
|
|
78
79
|
variant: "default",
|
|
79
80
|
radius: "md"
|
|
@@ -85,7 +86,6 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
85
86
|
var PULSE_DURATION = 1e3;
|
|
86
87
|
var PULSE_MIN_OPACITY = 0.5;
|
|
87
88
|
var Skeleton = _react.forwardRef.call(void 0, function Skeleton2({
|
|
88
|
-
variant,
|
|
89
89
|
radius,
|
|
90
90
|
color,
|
|
91
91
|
isLoading = true,
|
|
@@ -97,7 +97,6 @@ var Skeleton = _react.forwardRef.call(void 0, function Skeleton2({
|
|
|
97
97
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0);
|
|
98
98
|
const [styleProps, rest] = _chunkI6ZB3FZIcjs.useStyleProps.call(void 0, props);
|
|
99
99
|
const selection = {
|
|
100
|
-
variant,
|
|
101
100
|
radius
|
|
102
101
|
};
|
|
103
102
|
const styles = skeletonRecipe.resolve({
|
|
@@ -133,10 +132,10 @@ var Skeleton = _react.forwardRef.call(void 0, function Skeleton2({
|
|
|
133
132
|
});
|
|
134
133
|
});
|
|
135
134
|
Skeleton.displayName = "XAUI.Skeleton";
|
|
136
|
-
const
|
|
137
|
-
code: "function
|
|
138
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
139
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
135
|
+
const _worklet_15371887532149_init_data = {
|
|
136
|
+
code: "function chunkYUG22AXXCjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
137
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-YUG22AXX.cjs",
|
|
138
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkYUG22AXXCjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-YUG22AXX.cjs\"],\"mappings\":\"AAyF+E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
140
139
|
};
|
|
141
140
|
var PulsingBlock = _react.forwardRef.call(void 0, function PulsingBlock2({
|
|
142
141
|
style,
|
|
@@ -152,26 +151,26 @@ var PulsingBlock = _react.forwardRef.call(void 0, function PulsingBlock2({
|
|
|
152
151
|
true);
|
|
153
152
|
return () => _reactnativereanimated.cancelAnimation.call(void 0, opacity);
|
|
154
153
|
}, [opacity]);
|
|
155
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
156
|
-
|
|
154
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkYUG22AXXCjs1Factory({
|
|
155
|
+
_worklet_15371887532149_init_data,
|
|
157
156
|
opacity
|
|
158
157
|
}) {
|
|
159
158
|
const _e = [new global.Error(), -2, -27];
|
|
160
|
-
const
|
|
159
|
+
const chunkYUG22AXXCjs1 = function () {
|
|
161
160
|
return {
|
|
162
161
|
opacity: opacity.value
|
|
163
162
|
};
|
|
164
163
|
};
|
|
165
|
-
|
|
164
|
+
chunkYUG22AXXCjs1.__closure = {
|
|
166
165
|
opacity
|
|
167
166
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return
|
|
167
|
+
chunkYUG22AXXCjs1.__workletHash = 15371887532149;
|
|
168
|
+
chunkYUG22AXXCjs1.__pluginVersion = "0.7.4";
|
|
169
|
+
chunkYUG22AXXCjs1.__initData = _worklet_15371887532149_init_data;
|
|
170
|
+
chunkYUG22AXXCjs1.__stackDetails = _e;
|
|
171
|
+
return chunkYUG22AXXCjs1;
|
|
173
172
|
}({
|
|
174
|
-
|
|
173
|
+
_worklet_15371887532149_init_data,
|
|
175
174
|
opacity
|
|
176
175
|
}), [opacity]);
|
|
177
176
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYUG22AXXcjs = require('../../chunk-YUG22AXX.cjs');
|
|
5
5
|
require('../../chunk-FNEUOBCV.cjs');
|
|
6
6
|
require('../../chunk-I6ZB3FZI.cjs');
|
|
7
7
|
require('../../chunk-57SJ4LJF.cjs');
|
|
@@ -9,4 +9,4 @@ require('../../chunk-MC7SY2QH.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.Skeleton =
|
|
12
|
+
exports.Skeleton = _chunkYUG22AXXcjs.Skeleton; exports.skeletonRecipe = _chunkYUG22AXXcjs.skeletonRecipe;
|
|
@@ -5,27 +5,58 @@ import { V as ViewStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
|
|
|
5
5
|
import { R as RadiusKey } from '../../theme.type-C2gNHpEx.cjs';
|
|
6
6
|
import { R as Recipe, a as StyleFn } from '../../create-recipe-dC7wMfnj.cjs';
|
|
7
7
|
|
|
8
|
-
type SkeletonSlot = 'root';
|
|
9
8
|
/**
|
|
10
|
-
*
|
|
9
|
+
* The shape of what has not arrived yet.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Skeleton width={140} height={20} />
|
|
13
|
+
* <Skeleton width={48} height={48} radius="full" />
|
|
14
|
+
*
|
|
15
|
+
* <Skeleton isLoading={!user} height={20} width={140}>
|
|
16
|
+
* <Typography>{user?.name}</Typography>
|
|
17
|
+
* </Skeleton>
|
|
18
|
+
* ```
|
|
15
19
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
20
|
+
* **One node and no slots.** A placeholder is a rectangle; there is nothing inside it to
|
|
21
|
+
* name. A paragraph of them is three of these in a `Column`, which is composition doing
|
|
22
|
+
* what a `lines={3}` prop would otherwise hard-code — including the last line being
|
|
23
|
+
* shorter, which is the only reason the paragraph reads as a paragraph.
|
|
19
24
|
*
|
|
20
|
-
* **
|
|
21
|
-
*
|
|
22
|
-
*
|
|
25
|
+
* **It has no `size`, and that is the design.** Only the caller knows the shape of the
|
|
26
|
+
* thing that is missing, so R14's `width` and `height` are the whole sizing API — full
|
|
27
|
+
* React Native names and values, `width="60%"` as readily as `width={140}`. A `size`
|
|
28
|
+
* token here would be a scale of rectangles nobody's content happens to be.
|
|
29
|
+
*
|
|
30
|
+
* **`isLoading={false}` renders `children`**, which is what makes it a gate rather than a
|
|
31
|
+
* shape you mount and unmount around your own content.
|
|
23
32
|
*/
|
|
24
|
-
|
|
33
|
+
declare const Skeleton: react.ForwardRefExoticComponent<Omit<ViewProps, "style"> & {
|
|
34
|
+
radius?: RadiusKey;
|
|
35
|
+
color?: string;
|
|
36
|
+
isLoading?: boolean;
|
|
37
|
+
animation?: boolean;
|
|
38
|
+
children?: react.ReactNode;
|
|
39
|
+
style?: StyleProp<ViewStyle>;
|
|
40
|
+
} & Omit<ViewStyleProps, "color" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "animation" | "radius" | "isLoading"> & react.RefAttributes<View>>;
|
|
41
|
+
|
|
42
|
+
declare const skeletonRecipe: Recipe<"root", "default", {
|
|
43
|
+
readonly radius: Record<RadiusKey, StyleFn<"root">>;
|
|
44
|
+
}>;
|
|
45
|
+
|
|
46
|
+
type SkeletonSlot = 'root';
|
|
25
47
|
/**
|
|
26
48
|
* What the `Skeleton` itself understands. R14 — a name in here is the component's, so the
|
|
27
49
|
* style prop that shares it is not exposed: `color` is R7's tint.
|
|
28
50
|
*
|
|
51
|
+
* **No `variant`.** It had two — the neutral fill and that fill at half — sold as the two
|
|
52
|
+
* backgrounds a placeholder is drawn on. Measured, the second is *less* visible than the
|
|
53
|
+
* first on every surface in both modes, so it was never the answer to "this block reads as
|
|
54
|
+
* a hole"; and on a `secondary` `Card` in dark mode both resolve to the surface's own
|
|
55
|
+
* `#27272a` and vanish. A skeleton has to contrast with whatever is under it, and a fixed
|
|
56
|
+
* token cannot know what that is — two frozen values were never going to cover three
|
|
57
|
+
* surfaces times two modes. `color` is the way past it, and it is honest about being a
|
|
58
|
+
* raw value rather than a name that promises a system.
|
|
59
|
+
*
|
|
29
60
|
* **No `asChild`** (R12), because `children` is already taken and means the opposite of
|
|
30
61
|
* what the prop would need it to. Here it is the content the block stands in for — what
|
|
31
62
|
* renders once `isLoading` is `false` — while `asChild` hands `Slot` an element to merge
|
|
@@ -34,7 +65,6 @@ type SkeletonVariant = 'default' | 'secondary';
|
|
|
34
65
|
* instead, and R14 gives every `ViewStyle` key as a prop.
|
|
35
66
|
*/
|
|
36
67
|
type SkeletonOwnProps = {
|
|
37
|
-
variant?: SkeletonVariant;
|
|
38
68
|
/**
|
|
39
69
|
* The corner. `full` is the circle an avatar placeholder needs, and it is why this is a
|
|
40
70
|
* prop rather than the caller's `borderRadius` — a circle is a shape the vocabulary
|
|
@@ -78,43 +108,4 @@ type SkeletonOwnProps = {
|
|
|
78
108
|
};
|
|
79
109
|
type SkeletonProps = Omit<ViewProps, 'style'> & SkeletonOwnProps & Omit<ViewStyleProps, keyof SkeletonOwnProps | keyof ViewProps>;
|
|
80
110
|
|
|
81
|
-
|
|
82
|
-
* The shape of what has not arrived yet.
|
|
83
|
-
*
|
|
84
|
-
* ```tsx
|
|
85
|
-
* <Skeleton width={140} height={20} />
|
|
86
|
-
* <Skeleton width={48} height={48} radius="full" />
|
|
87
|
-
*
|
|
88
|
-
* <Skeleton isLoading={!user} height={20} width={140}>
|
|
89
|
-
* <Typography>{user?.name}</Typography>
|
|
90
|
-
* </Skeleton>
|
|
91
|
-
* ```
|
|
92
|
-
*
|
|
93
|
-
* **One node and no slots.** A placeholder is a rectangle; there is nothing inside it to
|
|
94
|
-
* name. A paragraph of them is three of these in a `Column`, which is composition doing
|
|
95
|
-
* what a `lines={3}` prop would otherwise hard-code — including the last line being
|
|
96
|
-
* shorter, which is the only reason the paragraph reads as a paragraph.
|
|
97
|
-
*
|
|
98
|
-
* **It has no `size`, and that is the design.** Only the caller knows the shape of the
|
|
99
|
-
* thing that is missing, so R14's `width` and `height` are the whole sizing API — full
|
|
100
|
-
* React Native names and values, `width="60%"` as readily as `width={140}`. A `size`
|
|
101
|
-
* token here would be a scale of rectangles nobody's content happens to be.
|
|
102
|
-
*
|
|
103
|
-
* **`isLoading={false}` renders `children`**, which is what makes it a gate rather than a
|
|
104
|
-
* shape you mount and unmount around your own content.
|
|
105
|
-
*/
|
|
106
|
-
declare const Skeleton: react.ForwardRefExoticComponent<Omit<ViewProps, "style"> & {
|
|
107
|
-
variant?: SkeletonVariant;
|
|
108
|
-
radius?: RadiusKey;
|
|
109
|
-
color?: string;
|
|
110
|
-
isLoading?: boolean;
|
|
111
|
-
animation?: boolean;
|
|
112
|
-
children?: react.ReactNode;
|
|
113
|
-
style?: StyleProp<ViewStyle>;
|
|
114
|
-
} & Omit<ViewStyleProps, "color" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "animation" | "radius" | "variant" | "isLoading"> & react.RefAttributes<View>>;
|
|
115
|
-
|
|
116
|
-
declare const skeletonRecipe: Recipe<"root", SkeletonVariant, {
|
|
117
|
-
readonly radius: Record<RadiusKey, StyleFn<"root">>;
|
|
118
|
-
}>;
|
|
119
|
-
|
|
120
|
-
export { Skeleton, type SkeletonProps, type SkeletonSlot, type SkeletonVariant, skeletonRecipe };
|
|
111
|
+
export { Skeleton, type SkeletonProps, type SkeletonSlot, skeletonRecipe };
|
|
@@ -5,27 +5,58 @@ import { V as ViewStyleProps } from '../../style-props.type-CfnoGEP7.js';
|
|
|
5
5
|
import { R as RadiusKey } from '../../theme.type-C2gNHpEx.js';
|
|
6
6
|
import { R as Recipe, a as StyleFn } from '../../create-recipe-BdVd2ffi.js';
|
|
7
7
|
|
|
8
|
-
type SkeletonSlot = 'root';
|
|
9
8
|
/**
|
|
10
|
-
*
|
|
9
|
+
* The shape of what has not arrived yet.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Skeleton width={140} height={20} />
|
|
13
|
+
* <Skeleton width={48} height={48} radius="full" />
|
|
14
|
+
*
|
|
15
|
+
* <Skeleton isLoading={!user} height={20} width={140}>
|
|
16
|
+
* <Typography>{user?.name}</Typography>
|
|
17
|
+
* </Skeleton>
|
|
18
|
+
* ```
|
|
15
19
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
20
|
+
* **One node and no slots.** A placeholder is a rectangle; there is nothing inside it to
|
|
21
|
+
* name. A paragraph of them is three of these in a `Column`, which is composition doing
|
|
22
|
+
* what a `lines={3}` prop would otherwise hard-code — including the last line being
|
|
23
|
+
* shorter, which is the only reason the paragraph reads as a paragraph.
|
|
19
24
|
*
|
|
20
|
-
* **
|
|
21
|
-
*
|
|
22
|
-
*
|
|
25
|
+
* **It has no `size`, and that is the design.** Only the caller knows the shape of the
|
|
26
|
+
* thing that is missing, so R14's `width` and `height` are the whole sizing API — full
|
|
27
|
+
* React Native names and values, `width="60%"` as readily as `width={140}`. A `size`
|
|
28
|
+
* token here would be a scale of rectangles nobody's content happens to be.
|
|
29
|
+
*
|
|
30
|
+
* **`isLoading={false}` renders `children`**, which is what makes it a gate rather than a
|
|
31
|
+
* shape you mount and unmount around your own content.
|
|
23
32
|
*/
|
|
24
|
-
|
|
33
|
+
declare const Skeleton: react.ForwardRefExoticComponent<Omit<ViewProps, "style"> & {
|
|
34
|
+
radius?: RadiusKey;
|
|
35
|
+
color?: string;
|
|
36
|
+
isLoading?: boolean;
|
|
37
|
+
animation?: boolean;
|
|
38
|
+
children?: react.ReactNode;
|
|
39
|
+
style?: StyleProp<ViewStyle>;
|
|
40
|
+
} & Omit<ViewStyleProps, "color" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "animation" | "radius" | "isLoading"> & react.RefAttributes<View>>;
|
|
41
|
+
|
|
42
|
+
declare const skeletonRecipe: Recipe<"root", "default", {
|
|
43
|
+
readonly radius: Record<RadiusKey, StyleFn<"root">>;
|
|
44
|
+
}>;
|
|
45
|
+
|
|
46
|
+
type SkeletonSlot = 'root';
|
|
25
47
|
/**
|
|
26
48
|
* What the `Skeleton` itself understands. R14 — a name in here is the component's, so the
|
|
27
49
|
* style prop that shares it is not exposed: `color` is R7's tint.
|
|
28
50
|
*
|
|
51
|
+
* **No `variant`.** It had two — the neutral fill and that fill at half — sold as the two
|
|
52
|
+
* backgrounds a placeholder is drawn on. Measured, the second is *less* visible than the
|
|
53
|
+
* first on every surface in both modes, so it was never the answer to "this block reads as
|
|
54
|
+
* a hole"; and on a `secondary` `Card` in dark mode both resolve to the surface's own
|
|
55
|
+
* `#27272a` and vanish. A skeleton has to contrast with whatever is under it, and a fixed
|
|
56
|
+
* token cannot know what that is — two frozen values were never going to cover three
|
|
57
|
+
* surfaces times two modes. `color` is the way past it, and it is honest about being a
|
|
58
|
+
* raw value rather than a name that promises a system.
|
|
59
|
+
*
|
|
29
60
|
* **No `asChild`** (R12), because `children` is already taken and means the opposite of
|
|
30
61
|
* what the prop would need it to. Here it is the content the block stands in for — what
|
|
31
62
|
* renders once `isLoading` is `false` — while `asChild` hands `Slot` an element to merge
|
|
@@ -34,7 +65,6 @@ type SkeletonVariant = 'default' | 'secondary';
|
|
|
34
65
|
* instead, and R14 gives every `ViewStyle` key as a prop.
|
|
35
66
|
*/
|
|
36
67
|
type SkeletonOwnProps = {
|
|
37
|
-
variant?: SkeletonVariant;
|
|
38
68
|
/**
|
|
39
69
|
* The corner. `full` is the circle an avatar placeholder needs, and it is why this is a
|
|
40
70
|
* prop rather than the caller's `borderRadius` — a circle is a shape the vocabulary
|
|
@@ -78,43 +108,4 @@ type SkeletonOwnProps = {
|
|
|
78
108
|
};
|
|
79
109
|
type SkeletonProps = Omit<ViewProps, 'style'> & SkeletonOwnProps & Omit<ViewStyleProps, keyof SkeletonOwnProps | keyof ViewProps>;
|
|
80
110
|
|
|
81
|
-
|
|
82
|
-
* The shape of what has not arrived yet.
|
|
83
|
-
*
|
|
84
|
-
* ```tsx
|
|
85
|
-
* <Skeleton width={140} height={20} />
|
|
86
|
-
* <Skeleton width={48} height={48} radius="full" />
|
|
87
|
-
*
|
|
88
|
-
* <Skeleton isLoading={!user} height={20} width={140}>
|
|
89
|
-
* <Typography>{user?.name}</Typography>
|
|
90
|
-
* </Skeleton>
|
|
91
|
-
* ```
|
|
92
|
-
*
|
|
93
|
-
* **One node and no slots.** A placeholder is a rectangle; there is nothing inside it to
|
|
94
|
-
* name. A paragraph of them is three of these in a `Column`, which is composition doing
|
|
95
|
-
* what a `lines={3}` prop would otherwise hard-code — including the last line being
|
|
96
|
-
* shorter, which is the only reason the paragraph reads as a paragraph.
|
|
97
|
-
*
|
|
98
|
-
* **It has no `size`, and that is the design.** Only the caller knows the shape of the
|
|
99
|
-
* thing that is missing, so R14's `width` and `height` are the whole sizing API — full
|
|
100
|
-
* React Native names and values, `width="60%"` as readily as `width={140}`. A `size`
|
|
101
|
-
* token here would be a scale of rectangles nobody's content happens to be.
|
|
102
|
-
*
|
|
103
|
-
* **`isLoading={false}` renders `children`**, which is what makes it a gate rather than a
|
|
104
|
-
* shape you mount and unmount around your own content.
|
|
105
|
-
*/
|
|
106
|
-
declare const Skeleton: react.ForwardRefExoticComponent<Omit<ViewProps, "style"> & {
|
|
107
|
-
variant?: SkeletonVariant;
|
|
108
|
-
radius?: RadiusKey;
|
|
109
|
-
color?: string;
|
|
110
|
-
isLoading?: boolean;
|
|
111
|
-
animation?: boolean;
|
|
112
|
-
children?: react.ReactNode;
|
|
113
|
-
style?: StyleProp<ViewStyle>;
|
|
114
|
-
} & Omit<ViewStyleProps, "color" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "animation" | "radius" | "variant" | "isLoading"> & react.RefAttributes<View>>;
|
|
115
|
-
|
|
116
|
-
declare const skeletonRecipe: Recipe<"root", SkeletonVariant, {
|
|
117
|
-
readonly radius: Record<RadiusKey, StyleFn<"root">>;
|
|
118
|
-
}>;
|
|
119
|
-
|
|
120
|
-
export { Skeleton, type SkeletonProps, type SkeletonSlot, type SkeletonVariant, skeletonRecipe };
|
|
111
|
+
export { Skeleton, type SkeletonProps, type SkeletonSlot, skeletonRecipe };
|
package/dist/index.cjs
CHANGED
|
@@ -77,7 +77,7 @@ var _chunkMSMZBUZOcjs = require('./chunk-MSMZBUZO.cjs');
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _chunkYUG22AXXcjs = require('./chunk-YUG22AXX.cjs');
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
@@ -341,4 +341,4 @@ require('./chunk-MC7SY2QH.cjs');
|
|
|
341
341
|
|
|
342
342
|
|
|
343
343
|
|
|
344
|
-
exports.Alert = _chunkK7LLERKTcjs.Alert; exports.Avatar = _chunkI66VMLHEcjs.Avatar; exports.Badge = _chunkDUQUCOUYcjs.Badge; exports.Button = _chunkDBXFFJTCcjs.Button; exports.CARD_BACKGROUND = _chunkUORTYL63cjs.CARD_BACKGROUND; exports.Card = _chunkUORTYL63cjs.Card; exports.Checkbox = _chunkCNNLMMFVcjs.Checkbox; exports.CheckboxIndicator = _chunkCNNLMMFVcjs.CheckboxIndicator; exports.CheckboxLabel = _chunkCNNLMMFVcjs.CheckboxLabel; exports.CheckboxRoot = _chunkCNNLMMFVcjs.CheckboxRoot; exports.Chip = _chunkQY4MN7X3cjs.Chip; exports.CloseButton = _chunkCYS6U374cjs.CloseButton; exports.Column = _chunk7CTIE42Jcjs.Column; exports.Divider = _chunkVSALV7VOcjs.Divider; exports.FEEDBACK_OVERLAY = _chunk6M7RUU7Vcjs.FEEDBACK_OVERLAY; exports.Grid = _chunk7CTIE42Jcjs.Grid; exports.HIGHLIGHT_DURATION = _chunk6M7RUU7Vcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunk6M7RUU7Vcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkPCWT2YBEcjs.Icon; exports.IconContext = _chunkPCWT2YBEcjs.IconContext; exports.Input = _chunkQ3D6KIVFcjs.Input; exports.InputDescription = _chunkQ3D6KIVFcjs.InputDescription; exports.InputError = _chunkQ3D6KIVFcjs.InputError; exports.InputField = _chunkQ3D6KIVFcjs.InputField; exports.InputGroup = _chunkTVCS5UOEcjs.InputGroup; exports.InputGroupField = _chunkTVCS5UOEcjs.InputGroupField; exports.InputGroupIcon = _chunkTVCS5UOEcjs.InputGroupIcon; exports.InputGroupPrefix = _chunkTVCS5UOEcjs.InputGroupPrefix; exports.InputGroupRoot = _chunkTVCS5UOEcjs.InputGroupRoot; exports.InputGroupSuffix = _chunkTVCS5UOEcjs.InputGroupSuffix; exports.InputLabel = _chunkQ3D6KIVFcjs.InputLabel; exports.InputOTP = _chunkPBR44KVVcjs.InputOTP; exports.InputRoot = _chunkQ3D6KIVFcjs.InputRoot; exports.OTP_ALPHANUMERIC = _chunkPBR44KVVcjs.OTP_ALPHANUMERIC; exports.OTP_DIGITS = _chunkPBR44KVVcjs.OTP_DIGITS; exports.OTP_LETTERS = _chunkPBR44KVVcjs.OTP_LETTERS; exports.PRESS_DURATION = _chunk6M7RUU7Vcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunk6M7RUU7Vcjs.PRESS_SCALE; exports.Portal = _chunk4SLOOIE5cjs.Portal; exports.PortalContext = _chunk4SLOOIE5cjs.PortalContext; exports.PortalHost = _chunk4SLOOIE5cjs.PortalHost; exports.PressableFeedback = _chunk6M7RUU7Vcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunk6M7RUU7Vcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunk6M7RUU7Vcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunk6M7RUU7Vcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunk6M7RUU7Vcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunk6M7RUU7Vcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunk6M7RUU7Vcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunk6M7RUU7Vcjs.RIPPLE_START_SCALE; exports.ROTATION_DURATION = _chunkK4TWKF5Ucjs.ROTATION_DURATION; exports.Radio = _chunkMSMZBUZOcjs.Radio; exports.RadioIndicator = _chunkMSMZBUZOcjs.RadioIndicator; exports.RadioLabel = _chunkMSMZBUZOcjs.RadioLabel; exports.RadioRoot = _chunkMSMZBUZOcjs.RadioRoot; exports.Row = _chunk7CTIE42Jcjs.Row; exports.SCALE_REFERENCE_WIDTH = _chunk6M7RUU7Vcjs.SCALE_REFERENCE_WIDTH; exports.SelectionFill = _chunkF6CQ6CBIcjs.SelectionFill; exports.Skeleton =
|
|
344
|
+
exports.Alert = _chunkK7LLERKTcjs.Alert; exports.Avatar = _chunkI66VMLHEcjs.Avatar; exports.Badge = _chunkDUQUCOUYcjs.Badge; exports.Button = _chunkDBXFFJTCcjs.Button; exports.CARD_BACKGROUND = _chunkUORTYL63cjs.CARD_BACKGROUND; exports.Card = _chunkUORTYL63cjs.Card; exports.Checkbox = _chunkCNNLMMFVcjs.Checkbox; exports.CheckboxIndicator = _chunkCNNLMMFVcjs.CheckboxIndicator; exports.CheckboxLabel = _chunkCNNLMMFVcjs.CheckboxLabel; exports.CheckboxRoot = _chunkCNNLMMFVcjs.CheckboxRoot; exports.Chip = _chunkQY4MN7X3cjs.Chip; exports.CloseButton = _chunkCYS6U374cjs.CloseButton; exports.Column = _chunk7CTIE42Jcjs.Column; exports.Divider = _chunkVSALV7VOcjs.Divider; exports.FEEDBACK_OVERLAY = _chunk6M7RUU7Vcjs.FEEDBACK_OVERLAY; exports.Grid = _chunk7CTIE42Jcjs.Grid; exports.HIGHLIGHT_DURATION = _chunk6M7RUU7Vcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunk6M7RUU7Vcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkPCWT2YBEcjs.Icon; exports.IconContext = _chunkPCWT2YBEcjs.IconContext; exports.Input = _chunkQ3D6KIVFcjs.Input; exports.InputDescription = _chunkQ3D6KIVFcjs.InputDescription; exports.InputError = _chunkQ3D6KIVFcjs.InputError; exports.InputField = _chunkQ3D6KIVFcjs.InputField; exports.InputGroup = _chunkTVCS5UOEcjs.InputGroup; exports.InputGroupField = _chunkTVCS5UOEcjs.InputGroupField; exports.InputGroupIcon = _chunkTVCS5UOEcjs.InputGroupIcon; exports.InputGroupPrefix = _chunkTVCS5UOEcjs.InputGroupPrefix; exports.InputGroupRoot = _chunkTVCS5UOEcjs.InputGroupRoot; exports.InputGroupSuffix = _chunkTVCS5UOEcjs.InputGroupSuffix; exports.InputLabel = _chunkQ3D6KIVFcjs.InputLabel; exports.InputOTP = _chunkPBR44KVVcjs.InputOTP; exports.InputRoot = _chunkQ3D6KIVFcjs.InputRoot; exports.OTP_ALPHANUMERIC = _chunkPBR44KVVcjs.OTP_ALPHANUMERIC; exports.OTP_DIGITS = _chunkPBR44KVVcjs.OTP_DIGITS; exports.OTP_LETTERS = _chunkPBR44KVVcjs.OTP_LETTERS; exports.PRESS_DURATION = _chunk6M7RUU7Vcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunk6M7RUU7Vcjs.PRESS_SCALE; exports.Portal = _chunk4SLOOIE5cjs.Portal; exports.PortalContext = _chunk4SLOOIE5cjs.PortalContext; exports.PortalHost = _chunk4SLOOIE5cjs.PortalHost; exports.PressableFeedback = _chunk6M7RUU7Vcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunk6M7RUU7Vcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunk6M7RUU7Vcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunk6M7RUU7Vcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunk6M7RUU7Vcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunk6M7RUU7Vcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunk6M7RUU7Vcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunk6M7RUU7Vcjs.RIPPLE_START_SCALE; exports.ROTATION_DURATION = _chunkK4TWKF5Ucjs.ROTATION_DURATION; exports.Radio = _chunkMSMZBUZOcjs.Radio; exports.RadioIndicator = _chunkMSMZBUZOcjs.RadioIndicator; exports.RadioLabel = _chunkMSMZBUZOcjs.RadioLabel; exports.RadioRoot = _chunkMSMZBUZOcjs.RadioRoot; exports.Row = _chunk7CTIE42Jcjs.Row; exports.SCALE_REFERENCE_WIDTH = _chunk6M7RUU7Vcjs.SCALE_REFERENCE_WIDTH; exports.SelectionFill = _chunkF6CQ6CBIcjs.SelectionFill; exports.Skeleton = _chunkYUG22AXXcjs.Skeleton; exports.Slot = _chunk54FJOKANcjs.Slot; exports.Spinner = _chunkXWMB66ZMcjs.Spinner; exports.Stack = _chunk7CTIE42Jcjs.Stack; exports.Switch = _chunkOX2YNMNScjs.Switch; exports.SwitchLabel = _chunkOX2YNMNScjs.SwitchLabel; exports.SwitchRoot = _chunkOX2YNMNScjs.SwitchRoot; exports.SwitchThumb = _chunkOX2YNMNScjs.SwitchThumb; exports.SwitchTrack = _chunkOX2YNMNScjs.SwitchTrack; exports.TextArea = _chunkCM4LI5OHcjs.TextArea; exports.TextSpan = _chunkAOEXU5UVcjs.TextSpan; exports.ThemeContext = _chunk57SJ4LJFcjs.ThemeContext; exports.Typography = _chunkAOEXU5UVcjs.Typography; exports.XAUIProvider = _chunkOHEHPQLCcjs.XAUIProvider; exports.alertRecipe = _chunkK7LLERKTcjs.alertRecipe; exports.avatarRecipe = _chunkI66VMLHEcjs.avatarRecipe; exports.badgeRecipe = _chunkDUQUCOUYcjs.badgeRecipe; exports.buildRadius = _chunkOHEHPQLCcjs.buildRadius; exports.buildShadows = _chunkOHEHPQLCcjs.buildShadows; exports.buildSlots = _chunkPBR44KVVcjs.buildSlots; exports.buttonRecipe = _chunkDBXFFJTCcjs.buttonRecipe; exports.cardRecipe = _chunkUORTYL63cjs.cardRecipe; exports.checkboxRecipe = _chunkCNNLMMFVcjs.checkboxRecipe; exports.childrenToString = _chunk54FJOKANcjs.childrenToString; exports.chipRecipe = _chunkQY4MN7X3cjs.chipRecipe; exports.closeButtonBase = _chunkCYS6U374cjs.closeButtonBase; exports.createRecipe = _chunkFNEUOBCVcjs.createRecipe; exports.createSlotContext = _chunk54FJOKANcjs.createSlotContext; exports.createTheme = _chunkOHEHPQLCcjs.createTheme; exports.decoratorPadding = _chunkTVCS5UOEcjs.decoratorPadding; exports.defaultTheme = _chunkOHEHPQLCcjs.defaultTheme; exports.deriveColors = _chunkOHEHPQLCcjs.deriveColors; exports.deriveTint = _chunk57SJ4LJFcjs.deriveTint; exports.dividerRecipe = _chunkVSALV7VOcjs.dividerRecipe; exports.extractPastedCode = _chunkPBR44KVVcjs.extractPastedCode; exports.inputOTPRecipe = _chunkPBR44KVVcjs.inputOTPRecipe; exports.inputRecipe = _chunkQ3D6KIVFcjs.inputRecipe; exports.markBackground = _chunkUORTYL63cjs.markBackground; exports.markOverlay = _chunk6M7RUU7Vcjs.markOverlay; exports.mergeProps = _chunk54FJOKANcjs.mergeProps; exports.mergeRefs = _chunkH4E4HDEPcjs.mergeRefs; exports.palette = _chunkOHEHPQLCcjs.palette; exports.placementInsets = _chunkDUQUCOUYcjs.placementInsets; exports.pressScaleFor = _chunk6M7RUU7Vcjs.pressScaleFor; exports.primitives = _chunkOHEHPQLCcjs.primitives; exports.radioRecipe = _chunkMSMZBUZOcjs.radioRecipe; exports.radiusAxis = _chunkFNEUOBCVcjs.radiusAxis; exports.resolveAnimation = _chunk6M7RUU7Vcjs.resolveAnimation; exports.resolveSlotAnimation = _chunk6M7RUU7Vcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunk6M7RUU7Vcjs.rippleRadiusFor; exports.skeletonRecipe = _chunkYUG22AXXcjs.skeletonRecipe; exports.sourceKeys = _chunkOHEHPQLCcjs.sourceKeys; exports.spinnerRecipe = _chunkXWMB66ZMcjs.spinnerRecipe; exports.switchRecipe = _chunkOX2YNMNScjs.switchRecipe; exports.tokens = _chunkOHEHPQLCcjs.tokens; exports.typographyRecipe = _chunkAOEXU5UVcjs.typographyRecipe; exports.useAlert = _chunkK7LLERKTcjs.useAlert; exports.useAvatar = _chunkI66VMLHEcjs.useAvatar; exports.useButton = _chunkDBXFFJTCcjs.useButton; exports.useCard = _chunkUORTYL63cjs.useCard; exports.useCheckbox = _chunkCNNLMMFVcjs.useCheckbox; exports.useChip = _chunkQY4MN7X3cjs.useChip; exports.useColorMode = _chunk57SJ4LJFcjs.useColorMode; exports.useControllableState = _chunk7EIHHOHPcjs.useControllableState; exports.useFeedback = _chunk6M7RUU7Vcjs.useFeedback; exports.useGrid = _chunk7CTIE42Jcjs.useGrid; exports.useIconContext = _chunkPCWT2YBEcjs.useIconContext; exports.useInput = _chunkQ3D6KIVFcjs.useInput; exports.useInputGroup = _chunkTVCS5UOEcjs.useInputGroup; exports.useInputOTP = _chunkPBR44KVVcjs.useInputOTP; exports.useInputOTPBox = _chunkPBR44KVVcjs.useInputOTPBox; exports.useMergedRef = _chunkK4TWKF5Ucjs.useMergedRef; exports.usePressState = _chunk7DPL3ZDScjs.usePressState; exports.usePrevious = _chunkK4TWKF5Ucjs.usePrevious; exports.useRadio = _chunkMSMZBUZOcjs.useRadio; exports.useRotation = _chunkK4TWKF5Ucjs.useRotation; exports.useStyleProps = _chunkI6ZB3FZIcjs.useStyleProps; exports.useSwitch = _chunkOX2YNMNScjs.useSwitch; exports.useTextArea = _chunkCM4LI5OHcjs.useTextArea; exports.useThemeColor = _chunk57SJ4LJFcjs.useThemeColor; exports.useXAUITheme = _chunk57SJ4LJFcjs.useXAUITheme;
|
package/dist/index.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot,
|
|
|
10
10
|
export { InputGroup, InputGroupContextValue, InputGroupField, InputGroupFieldProps, InputGroupIcon, InputGroupIconProps, InputGroupPrefix, InputGroupPrefixProps, InputGroupProps, InputGroupRoot, InputGroupSide, InputGroupSuffix, InputGroupSuffixProps, decoratorPadding, useInputGroup } from './components/input-group/index.cjs';
|
|
11
11
|
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';
|
|
12
12
|
export { Radio, RadioContextValue, RadioIndicator, RadioIndicatorProps, RadioLabel, RadioLabelProps, RadioProps, RadioRoot, RadioSize, RadioSlot, RadioVariant, radioRecipe, useRadio } from './components/radio/index.cjs';
|
|
13
|
-
export { Skeleton, SkeletonProps, SkeletonSlot,
|
|
13
|
+
export { Skeleton, SkeletonProps, SkeletonSlot, skeletonRecipe } from './components/skeleton/index.cjs';
|
|
14
14
|
export { Spinner, SpinnerProps, SpinnerSize, SpinnerSlot, SpinnerVariant, spinnerRecipe } from './components/spinner/index.cjs';
|
|
15
15
|
export { Switch, SwitchContextValue, SwitchLabel, SwitchLabelProps, SwitchProps, SwitchRoot, SwitchSize, SwitchSlot, SwitchThumb, SwitchThumbProps, SwitchTrack, SwitchTrackProps, SwitchVariant, switchRecipe, useSwitch } from './components/switch/index.cjs';
|
|
16
16
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot,
|
|
|
10
10
|
export { InputGroup, InputGroupContextValue, InputGroupField, InputGroupFieldProps, InputGroupIcon, InputGroupIconProps, InputGroupPrefix, InputGroupPrefixProps, InputGroupProps, InputGroupRoot, InputGroupSide, InputGroupSuffix, InputGroupSuffixProps, decoratorPadding, useInputGroup } from './components/input-group/index.js';
|
|
11
11
|
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';
|
|
12
12
|
export { Radio, RadioContextValue, RadioIndicator, RadioIndicatorProps, RadioLabel, RadioLabelProps, RadioProps, RadioRoot, RadioSize, RadioSlot, RadioVariant, radioRecipe, useRadio } from './components/radio/index.js';
|
|
13
|
-
export { Skeleton, SkeletonProps, SkeletonSlot,
|
|
13
|
+
export { Skeleton, SkeletonProps, SkeletonSlot, skeletonRecipe } from './components/skeleton/index.js';
|
|
14
14
|
export { Spinner, SpinnerProps, SpinnerSize, SpinnerSlot, SpinnerVariant, spinnerRecipe } from './components/spinner/index.js';
|
|
15
15
|
export { Switch, SwitchContextValue, SwitchLabel, SwitchLabelProps, SwitchProps, SwitchRoot, SwitchSize, SwitchSlot, SwitchThumb, SwitchThumbProps, SwitchTrack, SwitchTrackProps, SwitchVariant, switchRecipe, useSwitch } from './components/switch/index.js';
|
|
16
16
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.js';
|
package/dist/index.js
CHANGED