radix-native-ui 0.1.2 → 0.1.3
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/README.md +1 -1
- package/dist/index.cjs +59 -53
- package/dist/index.d.cts +58 -31
- package/dist/index.d.mts +58 -31
- package/dist/index.mjs +59 -54
- package/package.json +16 -16
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -313,7 +313,7 @@ If you're familiar with Radix Themes for web, here are the key differences for R
|
|
|
313
313
|
|------------------|-------------------------------|
|
|
314
314
|
| `css={{ p: '$4' }}` | `padding={4}` |
|
|
315
315
|
| `variant="solid"` | `variant="solid"` (same) |
|
|
316
|
-
| `size="2"` | `size={2}` (number
|
|
316
|
+
| `size="2"` | `size={2}` (number is canonical; strings also accepted) |
|
|
317
317
|
| `onClick` | `onPress` |
|
|
318
318
|
| `color="red"` | `color="red"` (same) |
|
|
319
319
|
|
package/dist/index.cjs
CHANGED
|
@@ -4512,21 +4512,20 @@ Separator.displayName = "Separator";
|
|
|
4512
4512
|
* </Stack>
|
|
4513
4513
|
*/
|
|
4514
4514
|
const Stack = react.default.memo(({ children, direction = "vertical", gap, align, justify, wrap = "nowrap", asChild = false, style, width, height, flexGrow, flexShrink, padding, backgroundColor }) => {
|
|
4515
|
-
const theme = useTheme$1();
|
|
4516
4515
|
const stackStyle = (0, react.useMemo)(() => {
|
|
4517
4516
|
const baseStyle = {
|
|
4518
4517
|
display: "flex",
|
|
4519
4518
|
flexDirection: direction === "horizontal" ? "row" : "column",
|
|
4520
4519
|
flexWrap: wrap
|
|
4521
4520
|
};
|
|
4522
|
-
if (gap !== void 0) baseStyle.gap =
|
|
4521
|
+
if (gap !== void 0) baseStyle.gap = gap;
|
|
4523
4522
|
if (align !== void 0) baseStyle.alignItems = align;
|
|
4524
4523
|
if (justify !== void 0) baseStyle.justifyContent = justify;
|
|
4525
4524
|
if (width !== void 0) baseStyle.width = width;
|
|
4526
4525
|
if (height !== void 0) baseStyle.height = height;
|
|
4527
4526
|
if (flexGrow !== void 0) baseStyle.flexGrow = flexGrow;
|
|
4528
4527
|
if (flexShrink !== void 0) baseStyle.flexShrink = flexShrink;
|
|
4529
|
-
if (padding !== void 0) baseStyle.padding =
|
|
4528
|
+
if (padding !== void 0) baseStyle.padding = padding;
|
|
4530
4529
|
if (backgroundColor !== void 0) baseStyle.backgroundColor = backgroundColor;
|
|
4531
4530
|
return baseStyle;
|
|
4532
4531
|
}, [
|
|
@@ -4540,8 +4539,7 @@ const Stack = react.default.memo(({ children, direction = "vertical", gap, align
|
|
|
4540
4539
|
flexGrow,
|
|
4541
4540
|
flexShrink,
|
|
4542
4541
|
padding,
|
|
4543
|
-
backgroundColor
|
|
4544
|
-
theme.space
|
|
4542
|
+
backgroundColor
|
|
4545
4543
|
]);
|
|
4546
4544
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(asChild ? Slot : RnView, {
|
|
4547
4545
|
style: [stackStyle, style],
|
|
@@ -5413,8 +5411,8 @@ const TextFieldRoot = react.default.forwardRef(({ children, ...props }, ref) =>
|
|
|
5413
5411
|
const variantColors = getVariantColors(theme, activeColor, mode, variant || "outline", highContrast || false);
|
|
5414
5412
|
const [isFocused, setIsFocused] = react.default.useState(false);
|
|
5415
5413
|
const getSizeValues = () => {
|
|
5416
|
-
switch (size) {
|
|
5417
|
-
case
|
|
5414
|
+
switch (Number(size)) {
|
|
5415
|
+
case 1: return {
|
|
5418
5416
|
fontSize: theme.typography.fontSizes[4].fontSize,
|
|
5419
5417
|
paddingVertical: theme.space[2],
|
|
5420
5418
|
paddingHorizontal: theme.space[3],
|
|
@@ -5422,7 +5420,7 @@ const TextFieldRoot = react.default.forwardRef(({ children, ...props }, ref) =>
|
|
|
5422
5420
|
height: multiline ? void 0 : 36,
|
|
5423
5421
|
slotPadding: theme.space[1]
|
|
5424
5422
|
};
|
|
5425
|
-
case
|
|
5423
|
+
case 3: return {
|
|
5426
5424
|
fontSize: theme.typography.fontSizes[6].fontSize,
|
|
5427
5425
|
paddingVertical: theme.space[4],
|
|
5428
5426
|
paddingHorizontal: theme.space[4],
|
|
@@ -5685,13 +5683,13 @@ const TextAreaRoot = react.default.forwardRef(({ children, ...props }, ref) => {
|
|
|
5685
5683
|
const variantColors = getVariantColors(theme, activeColor, mode, variant, highContrast);
|
|
5686
5684
|
const accentColorScale = getColorScale(theme, activeColor, mode);
|
|
5687
5685
|
const getSizeValues = () => {
|
|
5688
|
-
switch (size) {
|
|
5689
|
-
case
|
|
5686
|
+
switch (Number(size)) {
|
|
5687
|
+
case 1: return {
|
|
5690
5688
|
fontSize: theme.typography.fontSizes[4].fontSize,
|
|
5691
5689
|
padding: theme.space[2],
|
|
5692
5690
|
height: 100
|
|
5693
5691
|
};
|
|
5694
|
-
case
|
|
5692
|
+
case 3: return {
|
|
5695
5693
|
fontSize: theme.typography.fontSizes[6].fontSize,
|
|
5696
5694
|
padding: theme.space[4],
|
|
5697
5695
|
height: 140
|
|
@@ -5855,8 +5853,8 @@ const Checkbox = react.default.forwardRef(({ checked, defaultChecked = false, on
|
|
|
5855
5853
|
getContrast(theme, activeColor, mode, highContrast);
|
|
5856
5854
|
const variantColors = getVariantColors(theme, activeColor, mode, variant, highContrast);
|
|
5857
5855
|
const getSizeValues = () => {
|
|
5858
|
-
switch (size) {
|
|
5859
|
-
case
|
|
5856
|
+
switch (Number(size)) {
|
|
5857
|
+
case 1: return {
|
|
5860
5858
|
boxSize: 20,
|
|
5861
5859
|
iconSize: 11,
|
|
5862
5860
|
fontSize: theme.typography.fontSizes[1].fontSize,
|
|
@@ -5864,7 +5862,7 @@ const Checkbox = react.default.forwardRef(({ checked, defaultChecked = false, on
|
|
|
5864
5862
|
borderWidth: 1,
|
|
5865
5863
|
height: 2.5
|
|
5866
5864
|
};
|
|
5867
|
-
case
|
|
5865
|
+
case 3: return {
|
|
5868
5866
|
boxSize: 28,
|
|
5869
5867
|
iconSize: 16,
|
|
5870
5868
|
fontSize: theme.typography.fontSizes[3].fontSize,
|
|
@@ -6081,15 +6079,15 @@ const CheckboxCardsItem = react.default.forwardRef(({ value, side: itemSide, dis
|
|
|
6081
6079
|
getAccentColor(theme, mode);
|
|
6082
6080
|
const variantColors = getVariantColors(theme, color || theme.accentColor, mode, variant, highContrast);
|
|
6083
6081
|
const getSizeValues = () => {
|
|
6084
|
-
switch (size) {
|
|
6085
|
-
case
|
|
6082
|
+
switch (Number(size)) {
|
|
6083
|
+
case 1: return {
|
|
6086
6084
|
padding: theme.space[3],
|
|
6087
6085
|
indicatorSize: 18,
|
|
6088
6086
|
innerIndicatorSize: 6,
|
|
6089
6087
|
borderWidth: 1,
|
|
6090
6088
|
checkHeight: 2.2
|
|
6091
6089
|
};
|
|
6092
|
-
case
|
|
6090
|
+
case 3: return {
|
|
6093
6091
|
padding: theme.space[5],
|
|
6094
6092
|
indicatorSize: 26,
|
|
6095
6093
|
innerIndicatorSize: 10,
|
|
@@ -6188,15 +6186,15 @@ const Radio = react.default.forwardRef(({ defaultChecked, value, selected, onSel
|
|
|
6188
6186
|
const [isInternallySelected, setIsInternallySelected] = react.default.useState(defaultChecked ?? false);
|
|
6189
6187
|
const isSelected = selected !== void 0 ? selected : isInternallySelected;
|
|
6190
6188
|
const getSizeValues = () => {
|
|
6191
|
-
switch (size) {
|
|
6192
|
-
case
|
|
6189
|
+
switch (Number(size)) {
|
|
6190
|
+
case 1: return {
|
|
6193
6191
|
boxSize: 18,
|
|
6194
6192
|
innerSize: 6,
|
|
6195
6193
|
iconSize: 8,
|
|
6196
6194
|
fontSize: theme.typography.fontSizes[1].fontSize,
|
|
6197
6195
|
gap: theme.space[1]
|
|
6198
6196
|
};
|
|
6199
|
-
case
|
|
6197
|
+
case 3: return {
|
|
6200
6198
|
boxSize: 28,
|
|
6201
6199
|
innerSize: 12,
|
|
6202
6200
|
iconSize: 16,
|
|
@@ -6419,14 +6417,14 @@ const RadioCardsItem = react.default.forwardRef(({ value, side: itemSide, disabl
|
|
|
6419
6417
|
getAccentColor(theme, mode);
|
|
6420
6418
|
const variantColors = getVariantColors(theme, color || theme.accentColor, mode, variant, highContrast);
|
|
6421
6419
|
const getSizeValues = () => {
|
|
6422
|
-
switch (size) {
|
|
6423
|
-
case
|
|
6420
|
+
switch (Number(size)) {
|
|
6421
|
+
case 1: return {
|
|
6424
6422
|
padding: theme.space[3],
|
|
6425
6423
|
indicatorSize: 18,
|
|
6426
6424
|
innerIndicatorSize: 8,
|
|
6427
6425
|
borderWidth: 1
|
|
6428
6426
|
};
|
|
6429
|
-
case
|
|
6427
|
+
case 3: return {
|
|
6430
6428
|
padding: theme.space[5],
|
|
6431
6429
|
indicatorSize: 26,
|
|
6432
6430
|
innerIndicatorSize: 12,
|
|
@@ -6554,15 +6552,15 @@ const Switch = react.default.forwardRef(({ defaultChecked, checked, onCheckedCha
|
|
|
6554
6552
|
}).start();
|
|
6555
6553
|
}, [isChecked]);
|
|
6556
6554
|
const getSizeValues = () => {
|
|
6557
|
-
switch (size) {
|
|
6558
|
-
case
|
|
6555
|
+
switch (Number(size)) {
|
|
6556
|
+
case 1: return {
|
|
6559
6557
|
trackWidth: 32,
|
|
6560
6558
|
trackHeight: 20,
|
|
6561
6559
|
thumbSize: 14,
|
|
6562
6560
|
gap: theme.space[1],
|
|
6563
6561
|
fontSize: theme.typography.fontSizes[1].fontSize
|
|
6564
6562
|
};
|
|
6565
|
-
case
|
|
6563
|
+
case 3: return {
|
|
6566
6564
|
trackWidth: 58,
|
|
6567
6565
|
trackHeight: 32,
|
|
6568
6566
|
thumbSize: 26,
|
|
@@ -7605,18 +7603,18 @@ const Slider = react.default.forwardRef(({ value: controlledValue, defaultValue,
|
|
|
7605
7603
|
};
|
|
7606
7604
|
const thumbAnimations = (0, react.useRef)(values.map((v) => new react_native.Animated.Value(getInitialPosition(v)))).current;
|
|
7607
7605
|
const sizeValues = (0, react.useMemo)(() => {
|
|
7608
|
-
switch (size) {
|
|
7609
|
-
case
|
|
7606
|
+
switch (Number(size)) {
|
|
7607
|
+
case 1: return {
|
|
7610
7608
|
trackHeight: 4,
|
|
7611
7609
|
thumbSize: 16,
|
|
7612
7610
|
fontSize: theme.typography.fontSizes[1].fontSize
|
|
7613
7611
|
};
|
|
7614
|
-
case
|
|
7612
|
+
case 3: return {
|
|
7615
7613
|
trackHeight: 8,
|
|
7616
7614
|
thumbSize: 28,
|
|
7617
7615
|
fontSize: theme.typography.fontSizes[3].fontSize
|
|
7618
7616
|
};
|
|
7619
|
-
case
|
|
7617
|
+
case 4: return {
|
|
7620
7618
|
trackHeight: 10,
|
|
7621
7619
|
thumbSize: 34,
|
|
7622
7620
|
fontSize: theme.typography.fontSizes[4].fontSize
|
|
@@ -12204,11 +12202,9 @@ const PULSE_ANIMATION = {
|
|
|
12204
12202
|
duration: 1e3,
|
|
12205
12203
|
useNativeDriver: true
|
|
12206
12204
|
};
|
|
12207
|
-
const SKELEON_COLORS = {
|
|
12208
|
-
light: "#E5E7EB",
|
|
12209
|
-
dark: "#D1D5DB"
|
|
12210
|
-
};
|
|
12211
12205
|
const Skeleton = react.default.forwardRef(({ children, loading = true, style, textStyle, width, height, accessibilityLabel = "Loading", testID }, ref) => {
|
|
12206
|
+
const theme = useTheme$1();
|
|
12207
|
+
const grayScale = useThemeMode$1() === "dark" ? theme.colors.gray.dark : theme.colors.gray;
|
|
12212
12208
|
const pulseAnim = (0, react.useRef)(new react_native.Animated.Value(0)).current;
|
|
12213
12209
|
(0, react.useEffect)(() => {
|
|
12214
12210
|
const animation = react_native.Animated.loop(react_native.Animated.sequence([react_native.Animated.timing(pulseAnim, {
|
|
@@ -12225,7 +12221,7 @@ const Skeleton = react.default.forwardRef(({ children, loading = true, style, te
|
|
|
12225
12221
|
}, [pulseAnim]);
|
|
12226
12222
|
const pulseStyle = { backgroundColor: pulseAnim.interpolate({
|
|
12227
12223
|
inputRange: [0, 1],
|
|
12228
|
-
outputRange: [
|
|
12224
|
+
outputRange: [grayScale[3], grayScale[5]]
|
|
12229
12225
|
}) };
|
|
12230
12226
|
if (!loading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children });
|
|
12231
12227
|
if (!react.default.isValidElement(children) && typeof children === "string") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.Animated.Text, {
|
|
@@ -12371,12 +12367,12 @@ const TableColumnHeaderCell = react.default.forwardRef(({ children, width, align
|
|
|
12371
12367
|
const theme = useTheme$1();
|
|
12372
12368
|
const grayScale = useThemeMode$1() === "dark" ? theme.colors.gray.dark : theme.colors.gray;
|
|
12373
12369
|
const getSizePadding = () => {
|
|
12374
|
-
switch (context.size) {
|
|
12375
|
-
case
|
|
12370
|
+
switch (Number(context.size)) {
|
|
12371
|
+
case 1: return {
|
|
12376
12372
|
paddingVertical: theme.space[2],
|
|
12377
12373
|
paddingHorizontal: theme.space[3]
|
|
12378
12374
|
};
|
|
12379
|
-
case
|
|
12375
|
+
case 3: return {
|
|
12380
12376
|
paddingVertical: theme.space[4],
|
|
12381
12377
|
paddingHorizontal: theme.space[5]
|
|
12382
12378
|
};
|
|
@@ -12387,9 +12383,9 @@ const TableColumnHeaderCell = react.default.forwardRef(({ children, width, align
|
|
|
12387
12383
|
}
|
|
12388
12384
|
};
|
|
12389
12385
|
const getSizeFont = () => {
|
|
12390
|
-
switch (context.size) {
|
|
12391
|
-
case
|
|
12392
|
-
case
|
|
12386
|
+
switch (Number(context.size)) {
|
|
12387
|
+
case 1: return { fontSize: theme.typography.fontSizes[1].fontSize };
|
|
12388
|
+
case 3: return { fontSize: theme.typography.fontSizes[3].fontSize };
|
|
12393
12389
|
default: return { fontSize: theme.typography.fontSizes[2].fontSize };
|
|
12394
12390
|
}
|
|
12395
12391
|
};
|
|
@@ -12426,12 +12422,12 @@ const TableCell = react.default.forwardRef(({ children, align = "left", style },
|
|
|
12426
12422
|
const theme = useTheme$1();
|
|
12427
12423
|
const grayScale = useThemeMode$1() === "dark" ? theme.colors.gray.dark : theme.colors.gray;
|
|
12428
12424
|
const getSizePadding = () => {
|
|
12429
|
-
switch (context.size) {
|
|
12430
|
-
case
|
|
12425
|
+
switch (Number(context.size)) {
|
|
12426
|
+
case 1: return {
|
|
12431
12427
|
paddingVertical: theme.space[2],
|
|
12432
12428
|
paddingHorizontal: theme.space[3]
|
|
12433
12429
|
};
|
|
12434
|
-
case
|
|
12430
|
+
case 3: return {
|
|
12435
12431
|
paddingVertical: theme.space[4],
|
|
12436
12432
|
paddingHorizontal: theme.space[5]
|
|
12437
12433
|
};
|
|
@@ -12442,9 +12438,9 @@ const TableCell = react.default.forwardRef(({ children, align = "left", style },
|
|
|
12442
12438
|
}
|
|
12443
12439
|
};
|
|
12444
12440
|
const getSizeFont = () => {
|
|
12445
|
-
switch (context.size) {
|
|
12446
|
-
case
|
|
12447
|
-
case
|
|
12441
|
+
switch (Number(context.size)) {
|
|
12442
|
+
case 1: return { fontSize: theme.typography.fontSizes[1].fontSize };
|
|
12443
|
+
case 3: return { fontSize: theme.typography.fontSizes[3].fontSize };
|
|
12448
12444
|
default: return { fontSize: theme.typography.fontSizes[2].fontSize };
|
|
12449
12445
|
}
|
|
12450
12446
|
};
|
|
@@ -13112,15 +13108,15 @@ const AccordionTrigger = react.default.forwardRef(({ children, style, icon, hapt
|
|
|
13112
13108
|
}).start();
|
|
13113
13109
|
}, [open, rotationAnim]);
|
|
13114
13110
|
const getSizeStyles = () => {
|
|
13115
|
-
switch (size) {
|
|
13116
|
-
case
|
|
13111
|
+
switch (Number(size)) {
|
|
13112
|
+
case 1: return {
|
|
13117
13113
|
paddingVertical: theme.space[2],
|
|
13118
13114
|
paddingHorizontal: theme.space[3],
|
|
13119
13115
|
fontSize: theme.typography.fontSizes[1].fontSize,
|
|
13120
13116
|
lineHeight: theme.typography.fontSizes[1].lineHeight,
|
|
13121
13117
|
iconSize: 14
|
|
13122
13118
|
};
|
|
13123
|
-
case
|
|
13119
|
+
case 3: return {
|
|
13124
13120
|
paddingVertical: theme.space[4],
|
|
13125
13121
|
paddingHorizontal: theme.space[5],
|
|
13126
13122
|
fontSize: theme.typography.fontSizes[4].fontSize,
|
|
@@ -13226,9 +13222,9 @@ const AccordionContent = react.default.forwardRef(({ children, style }, ref) =>
|
|
|
13226
13222
|
const heightAnim = (0, react.useRef)(new react_native.Animated.Value(0)).current;
|
|
13227
13223
|
const opacityAnim = (0, react.useRef)(new react_native.Animated.Value(0)).current;
|
|
13228
13224
|
const getContentPadding = () => {
|
|
13229
|
-
switch (size) {
|
|
13230
|
-
case
|
|
13231
|
-
case
|
|
13225
|
+
switch (Number(size)) {
|
|
13226
|
+
case 1: return theme.space[2];
|
|
13227
|
+
case 3: return theme.space[5];
|
|
13232
13228
|
default: return theme.space[4];
|
|
13233
13229
|
}
|
|
13234
13230
|
};
|
|
@@ -13354,6 +13350,15 @@ const useResponsive = (breakpoints = defaultBreakpoints) => {
|
|
|
13354
13350
|
return getResponsiveInfo(window, breakpoints);
|
|
13355
13351
|
};
|
|
13356
13352
|
|
|
13353
|
+
//#endregion
|
|
13354
|
+
//#region src/utils/size.ts
|
|
13355
|
+
/**
|
|
13356
|
+
* Normalize a SizeInput to its canonical numeric form.
|
|
13357
|
+
* Returns the value unchanged when already numeric, the parsed number for
|
|
13358
|
+
* legacy string inputs, or `undefined` when absent.
|
|
13359
|
+
*/
|
|
13360
|
+
const toNumericSize = (size) => size === void 0 ? void 0 : Number(size);
|
|
13361
|
+
|
|
13357
13362
|
//#endregion
|
|
13358
13363
|
exports.AbsoluteCenter = AbsoluteCenter;
|
|
13359
13364
|
exports.Accordion = Accordion;
|
|
@@ -13560,6 +13565,7 @@ exports.slateAlpha = slateAlpha;
|
|
|
13560
13565
|
exports.space = space;
|
|
13561
13566
|
exports.teal = teal;
|
|
13562
13567
|
exports.tealAlpha = tealAlpha;
|
|
13568
|
+
exports.toNumericSize = toNumericSize;
|
|
13563
13569
|
exports.tomato = tomato;
|
|
13564
13570
|
exports.tomatoAlpha = tomatoAlpha;
|
|
13565
13571
|
exports.typography = typography;
|
package/dist/index.d.cts
CHANGED
|
@@ -355,6 +355,12 @@ interface Theme extends ThemeTokens {
|
|
|
355
355
|
type ThemeMode = 'light' | 'dark';
|
|
356
356
|
type ThemeAppearance = 'light' | 'dark' | 'inherit';
|
|
357
357
|
type Color = 'white' | 'black' | 'gray' | 'gold' | 'bronze' | 'brown' | 'yellow' | 'amber' | 'orange' | 'tomato' | 'red' | 'ruby' | 'crimson' | 'pink' | 'plum' | 'purple' | 'violet' | 'iris' | 'indigo' | 'blue' | 'cyan' | 'teal' | 'jade' | 'green' | 'grass' | 'lime' | 'mint' | 'sky';
|
|
358
|
+
/**
|
|
359
|
+
* A color value: a theme color token (autocomplete-friendly) or any valid
|
|
360
|
+
* CSS/React Native color string such as '#ff8800' or 'rgba(...).'
|
|
361
|
+
*/
|
|
362
|
+
type ColorToken = Color;
|
|
363
|
+
type ColorValue = ColorToken | (string & {});
|
|
358
364
|
//#endregion
|
|
359
365
|
//#region src/theme/colors.d.ts
|
|
360
366
|
declare const gray: ColorScale;
|
|
@@ -1779,9 +1785,9 @@ declare const Separator: React$1.NamedExoticComponent<SeparatorProps>;
|
|
|
1779
1785
|
*/
|
|
1780
1786
|
type StackDirection = 'horizontal' | 'vertical';
|
|
1781
1787
|
/**
|
|
1782
|
-
* Gap
|
|
1788
|
+
* Gap between children in pixels (same semantics as Flex and Grid).
|
|
1783
1789
|
*/
|
|
1784
|
-
type StackGap =
|
|
1790
|
+
type StackGap = number;
|
|
1785
1791
|
/**
|
|
1786
1792
|
* Align items on cross axis
|
|
1787
1793
|
*/
|
|
@@ -1807,7 +1813,7 @@ interface StackProps {
|
|
|
1807
1813
|
*/
|
|
1808
1814
|
direction?: StackDirection;
|
|
1809
1815
|
/**
|
|
1810
|
-
* Gap between items
|
|
1816
|
+
* Gap between items in pixels
|
|
1811
1817
|
*/
|
|
1812
1818
|
gap?: StackGap;
|
|
1813
1819
|
/**
|
|
@@ -1848,7 +1854,7 @@ interface StackProps {
|
|
|
1848
1854
|
*/
|
|
1849
1855
|
flexShrink?: number;
|
|
1850
1856
|
/**
|
|
1851
|
-
* Padding
|
|
1857
|
+
* Padding in pixels
|
|
1852
1858
|
*/
|
|
1853
1859
|
padding?: StackGap;
|
|
1854
1860
|
/**
|
|
@@ -2052,7 +2058,7 @@ interface TextProps$1 {
|
|
|
2052
2058
|
/**
|
|
2053
2059
|
* Text color
|
|
2054
2060
|
*/
|
|
2055
|
-
color?:
|
|
2061
|
+
color?: ColorValue;
|
|
2056
2062
|
/**
|
|
2057
2063
|
* Whether to truncate text
|
|
2058
2064
|
*/
|
|
@@ -2120,7 +2126,7 @@ interface HeadingProps {
|
|
|
2120
2126
|
/**
|
|
2121
2127
|
* Text color
|
|
2122
2128
|
*/
|
|
2123
|
-
color?:
|
|
2129
|
+
color?: ColorValue;
|
|
2124
2130
|
/**
|
|
2125
2131
|
* Whether to truncate text
|
|
2126
2132
|
*/
|
|
@@ -2154,7 +2160,7 @@ interface StrongProps {
|
|
|
2154
2160
|
/**
|
|
2155
2161
|
* Text color
|
|
2156
2162
|
*/
|
|
2157
|
-
color?:
|
|
2163
|
+
color?: ColorValue;
|
|
2158
2164
|
}
|
|
2159
2165
|
declare const Strong: React$1.NamedExoticComponent<StrongProps & React$1.RefAttributes<Text$1>>;
|
|
2160
2166
|
//#endregion
|
|
@@ -2171,7 +2177,7 @@ interface EmProps {
|
|
|
2171
2177
|
/**
|
|
2172
2178
|
* Text color
|
|
2173
2179
|
*/
|
|
2174
|
-
color?:
|
|
2180
|
+
color?: ColorValue;
|
|
2175
2181
|
}
|
|
2176
2182
|
declare const Em: React$1.NamedExoticComponent<EmProps & React$1.RefAttributes<Text$1>>;
|
|
2177
2183
|
//#endregion
|
|
@@ -2193,7 +2199,7 @@ interface CodeProps {
|
|
|
2193
2199
|
/**
|
|
2194
2200
|
* Text color
|
|
2195
2201
|
*/
|
|
2196
|
-
color?:
|
|
2202
|
+
color?: ColorValue;
|
|
2197
2203
|
/**
|
|
2198
2204
|
* Background color
|
|
2199
2205
|
*/
|
|
@@ -2248,7 +2254,7 @@ interface LinkProps {
|
|
|
2248
2254
|
/**
|
|
2249
2255
|
* Text color
|
|
2250
2256
|
*/
|
|
2251
|
-
color?:
|
|
2257
|
+
color?: ColorValue;
|
|
2252
2258
|
/**
|
|
2253
2259
|
* Whether the link is disabled
|
|
2254
2260
|
*/
|
|
@@ -2278,7 +2284,7 @@ interface BlockquoteProps {
|
|
|
2278
2284
|
/**
|
|
2279
2285
|
* Text color
|
|
2280
2286
|
*/
|
|
2281
|
-
color?:
|
|
2287
|
+
color?: ColorValue;
|
|
2282
2288
|
/**
|
|
2283
2289
|
* Border color
|
|
2284
2290
|
*/
|
|
@@ -2459,6 +2465,27 @@ interface IconButtonProps {
|
|
|
2459
2465
|
}
|
|
2460
2466
|
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<react_native0.View | react_native0.Animated.LegacyRef<react_native0.View>>>;
|
|
2461
2467
|
//#endregion
|
|
2468
|
+
//#region src/utils/size.d.ts
|
|
2469
|
+
/**
|
|
2470
|
+
* Shared size prop normalization.
|
|
2471
|
+
*
|
|
2472
|
+
* The canonical size API is NUMERIC (`size={2}`). String sizes (`size="2"`,
|
|
2473
|
+
* the web Radix Themes convention) are still accepted for compatibility and
|
|
2474
|
+
* will be deprecated in a future release. Components should switch on the
|
|
2475
|
+
* normalized numeric value via `toNumericSize` at their resolution boundaries.
|
|
2476
|
+
*/
|
|
2477
|
+
/**
|
|
2478
|
+
* A size value expressed either as a number or its string literal form.
|
|
2479
|
+
* Example: `SizeInput<1 | 2 | 3>` = `1 | 2 | 3 | '1' | '2' | '3'`
|
|
2480
|
+
*/
|
|
2481
|
+
type SizeInput<N extends number> = N | `${N}`;
|
|
2482
|
+
/**
|
|
2483
|
+
* Normalize a SizeInput to its canonical numeric form.
|
|
2484
|
+
* Returns the value unchanged when already numeric, the parsed number for
|
|
2485
|
+
* legacy string inputs, or `undefined` when absent.
|
|
2486
|
+
*/
|
|
2487
|
+
declare const toNumericSize: <N extends number>(size?: SizeInput<N>) => N | undefined;
|
|
2488
|
+
//#endregion
|
|
2462
2489
|
//#region src/components/forms/TextField.d.ts
|
|
2463
2490
|
interface TextFieldProps extends TextInputProps$1 {
|
|
2464
2491
|
/**
|
|
@@ -2508,7 +2535,7 @@ interface TextFieldProps extends TextInputProps$1 {
|
|
|
2508
2535
|
* Size variant
|
|
2509
2536
|
* @default 2
|
|
2510
2537
|
*/
|
|
2511
|
-
size?:
|
|
2538
|
+
size?: SizeInput<1 | 2 | 3>;
|
|
2512
2539
|
/**
|
|
2513
2540
|
* Whether this is a multiline input
|
|
2514
2541
|
*/
|
|
@@ -2626,7 +2653,7 @@ interface TextAreaProps extends Omit<TextInputProps$1, 'multiline'> {
|
|
|
2626
2653
|
/**
|
|
2627
2654
|
* Size variant
|
|
2628
2655
|
*/
|
|
2629
|
-
size?:
|
|
2656
|
+
size?: SizeInput<1 | 2 | 3>;
|
|
2630
2657
|
/**
|
|
2631
2658
|
* Number of rows
|
|
2632
2659
|
*/
|
|
@@ -2720,7 +2747,7 @@ interface CheckboxProps {
|
|
|
2720
2747
|
* Size variant
|
|
2721
2748
|
* @default 2
|
|
2722
2749
|
*/
|
|
2723
|
-
size?:
|
|
2750
|
+
size?: SizeInput<1 | 2 | 3>;
|
|
2724
2751
|
/**
|
|
2725
2752
|
* Badge variant
|
|
2726
2753
|
* @default 'soft'
|
|
@@ -2775,7 +2802,7 @@ interface CheckboxItem {
|
|
|
2775
2802
|
/**
|
|
2776
2803
|
* Custom color for this item's checkbox
|
|
2777
2804
|
*/
|
|
2778
|
-
color?:
|
|
2805
|
+
color?: Color;
|
|
2779
2806
|
}
|
|
2780
2807
|
interface CheckboxGroupProps {
|
|
2781
2808
|
/**
|
|
@@ -2798,7 +2825,7 @@ interface CheckboxGroupProps {
|
|
|
2798
2825
|
* Size variant for checkboxes
|
|
2799
2826
|
* @default 2
|
|
2800
2827
|
*/
|
|
2801
|
-
size?:
|
|
2828
|
+
size?: SizeInput<1 | 2 | 3>;
|
|
2802
2829
|
/**
|
|
2803
2830
|
* Custom style
|
|
2804
2831
|
*/
|
|
@@ -2815,7 +2842,7 @@ interface CheckboxGroupProps {
|
|
|
2815
2842
|
/**
|
|
2816
2843
|
* Custom color for all checkboxes
|
|
2817
2844
|
*/
|
|
2818
|
-
color?:
|
|
2845
|
+
color?: Color;
|
|
2819
2846
|
}
|
|
2820
2847
|
type StyleProp$2<T> = T | T[];
|
|
2821
2848
|
declare const CheckboxGroup: React$1.ForwardRefExoticComponent<CheckboxGroupProps & React$1.RefAttributes<react_native0.View>>;
|
|
@@ -2825,7 +2852,7 @@ interface CheckboxCardsContextValue {
|
|
|
2825
2852
|
value: string[];
|
|
2826
2853
|
onValueChange: (value: string[]) => void;
|
|
2827
2854
|
variant: 'solid' | 'soft' | 'surface' | 'outline';
|
|
2828
|
-
size:
|
|
2855
|
+
size: SizeInput<1 | 2 | 3>;
|
|
2829
2856
|
color?: Color;
|
|
2830
2857
|
highContrast: boolean;
|
|
2831
2858
|
radius: RadiusSize;
|
|
@@ -2854,7 +2881,7 @@ interface CheckboxCardsRootProps {
|
|
|
2854
2881
|
* Size variant
|
|
2855
2882
|
* @default '2'
|
|
2856
2883
|
*/
|
|
2857
|
-
size?:
|
|
2884
|
+
size?: SizeInput<1 | 2 | 3>;
|
|
2858
2885
|
/**
|
|
2859
2886
|
* Custom color
|
|
2860
2887
|
*/
|
|
@@ -2959,7 +2986,7 @@ interface RadioProps {
|
|
|
2959
2986
|
* Size variant
|
|
2960
2987
|
* @default 2
|
|
2961
2988
|
*/
|
|
2962
|
-
size?:
|
|
2989
|
+
size?: SizeInput<1 | 2 | 3>;
|
|
2963
2990
|
/**
|
|
2964
2991
|
* Custom color for selected state
|
|
2965
2992
|
*/
|
|
@@ -3002,7 +3029,7 @@ interface RadioGroupContextValue {
|
|
|
3002
3029
|
value: string;
|
|
3003
3030
|
onValueChange: (value: string) => void;
|
|
3004
3031
|
disabled: boolean;
|
|
3005
|
-
size:
|
|
3032
|
+
size: SizeInput<1 | 2 | 3>;
|
|
3006
3033
|
color?: Color;
|
|
3007
3034
|
variant: 'solid' | 'soft' | 'surface' | 'outline';
|
|
3008
3035
|
highContrast: boolean;
|
|
@@ -3029,7 +3056,7 @@ interface RadioGroupRootProps {
|
|
|
3029
3056
|
* Size variant for radios
|
|
3030
3057
|
* @default '2'
|
|
3031
3058
|
*/
|
|
3032
|
-
size?:
|
|
3059
|
+
size?: SizeInput<1 | 2 | 3>;
|
|
3033
3060
|
/**
|
|
3034
3061
|
* Custom color for selected state
|
|
3035
3062
|
*/
|
|
@@ -3084,7 +3111,7 @@ interface RadioCardsContextValue {
|
|
|
3084
3111
|
value: string;
|
|
3085
3112
|
onValueChange: (value: string) => void;
|
|
3086
3113
|
variant: 'solid' | 'soft' | 'surface' | 'outline';
|
|
3087
|
-
size:
|
|
3114
|
+
size: SizeInput<1 | 2 | 3>;
|
|
3088
3115
|
color?: Color;
|
|
3089
3116
|
highContrast: boolean;
|
|
3090
3117
|
radius: RadiusSize;
|
|
@@ -3113,7 +3140,7 @@ interface RadioCardsRootProps {
|
|
|
3113
3140
|
* Size variant
|
|
3114
3141
|
* @default '2'
|
|
3115
3142
|
*/
|
|
3116
|
-
size?:
|
|
3143
|
+
size?: SizeInput<1 | 2 | 3>;
|
|
3117
3144
|
/**
|
|
3118
3145
|
* Custom color
|
|
3119
3146
|
*/
|
|
@@ -3219,7 +3246,7 @@ interface SwitchProps {
|
|
|
3219
3246
|
* Size variant
|
|
3220
3247
|
* @default '2'
|
|
3221
3248
|
*/
|
|
3222
|
-
size?:
|
|
3249
|
+
size?: SizeInput<1 | 2 | 3>;
|
|
3223
3250
|
/**
|
|
3224
3251
|
* Badge variant
|
|
3225
3252
|
* @default 'solid'
|
|
@@ -3560,7 +3587,7 @@ interface SliderProps {
|
|
|
3560
3587
|
* Size variant
|
|
3561
3588
|
* @default '2'
|
|
3562
3589
|
*/
|
|
3563
|
-
size?:
|
|
3590
|
+
size?: SizeInput<1 | 2 | 3 | 4>;
|
|
3564
3591
|
/**
|
|
3565
3592
|
* Visual style variant
|
|
3566
3593
|
* @default 'surface'
|
|
@@ -4076,7 +4103,7 @@ interface TooltipContentProps {
|
|
|
4076
4103
|
style?: StyleProp<ViewStyle>;
|
|
4077
4104
|
avoidCollisions?: boolean;
|
|
4078
4105
|
/** Radius variant for the tooltip. Inherits from theme by default. */
|
|
4079
|
-
radius?:
|
|
4106
|
+
radius?: RadiusSize;
|
|
4080
4107
|
}
|
|
4081
4108
|
interface TooltipArrowProps {
|
|
4082
4109
|
size?: number;
|
|
@@ -4094,7 +4121,7 @@ interface SimpleTooltipProps {
|
|
|
4094
4121
|
longPressDuration?: number;
|
|
4095
4122
|
avoidCollisions?: boolean;
|
|
4096
4123
|
/** Radius variant for the tooltip. Inherits from theme by default. */
|
|
4097
|
-
radius?:
|
|
4124
|
+
radius?: RadiusSize;
|
|
4098
4125
|
}
|
|
4099
4126
|
declare const TooltipExport: (({
|
|
4100
4127
|
children,
|
|
@@ -5328,7 +5355,7 @@ interface SkeletonProps {
|
|
|
5328
5355
|
declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<any>>;
|
|
5329
5356
|
//#endregion
|
|
5330
5357
|
//#region src/components/data-display/Table.d.ts
|
|
5331
|
-
type TableSize =
|
|
5358
|
+
type TableSize = SizeInput<1 | 2 | 3>;
|
|
5332
5359
|
interface TableRootProps {
|
|
5333
5360
|
/**
|
|
5334
5361
|
* Table content
|
|
@@ -5761,7 +5788,7 @@ declare const Slot: React$1.ForwardRefExoticComponent<Omit<SlotProps, "ref"> & R
|
|
|
5761
5788
|
//#endregion
|
|
5762
5789
|
//#region src/components/disclosure/Accordion.d.ts
|
|
5763
5790
|
type AccordionType = 'single' | 'multiple';
|
|
5764
|
-
type AccordionSize =
|
|
5791
|
+
type AccordionSize = SizeInput<1 | 2 | 3>;
|
|
5765
5792
|
type Direction = 'ltr' | 'rtl';
|
|
5766
5793
|
interface AccordionRootProps {
|
|
5767
5794
|
/**
|
|
@@ -5930,4 +5957,4 @@ interface ResponsiveInfo {
|
|
|
5930
5957
|
*/
|
|
5931
5958
|
declare const useResponsive: (breakpoints?: ResponsiveBreakpoints) => ResponsiveInfo;
|
|
5932
5959
|
//#endregion
|
|
5933
|
-
export { AbsoluteCenter, AbsoluteCenterProps, Accordion, AccordionContent, type AccordionContentProps, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, AccordionRoot, type AccordionRootProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionType, RnActivityIndicator as ActivityIndicator, ActivityIndicatorProps, AlertDialogComponent as AlertDialog, type AlertDialogActionProps, type AlertDialogCancelProps, type AlertDialogContentProps, type AlertDialogDescriptionProps, type AlertDialogOverlayProps, type AlertDialogPortalProps, type AlertDialogProps, type AlertDialogRootProps, type AlertDialogTitleProps, type AlertDialogTriggerProps, AlphaColorScale, AnchorPosition, AnimatedPressable, AnimatedPressableProps, AspectRatio, AspectRatioProps, Avatar, AvatarFallbackProps, AvatarProps, Badge, type BadgeProps, BaseColorScale, Blockquote, type BlockquoteProps, BottomSheet, type BottomSheetActionProps, type BottomSheetCloseProps, type BottomSheetContentProps, type BottomSheetDescriptionProps, type BottomSheetFooterProps, type BottomSheetHandleProps, type BottomSheetOverlayProps, type BottomSheetPortalProps, type BottomSheetRootProps, type BottomSheetTitleProps, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonCompoundComponent, ButtonIcon, type ButtonIconProps, ButtonLabel, type ButtonLabelProps, type ButtonProps, CalculatedPosition, Callout, CalloutIcon, type CalloutIconProps, CalloutRoot, type CalloutRootProps, type CalloutSize, CalloutText, type CalloutTextProps, type CalloutVariant, Card, type CardFooterProps, type CardProps, Center, CenterAxis, CenterProps, Checkbox, CheckboxCards, type CheckboxCardsContextValue, CheckboxCardsItem, type CheckboxCardsItemProps, CheckboxCardsRoot, type CheckboxCardsRootProps, CheckboxGroup, type CheckboxGroupProps, type CheckboxItem, type CheckboxProps, Code, type CodeProps, Color, ColorScale, ColorTokens, Container, type ContainerProps, ContentSize, ContextMenu, type ContextMenuAlign, type ContextMenuCheckboxItemProps, type ContextMenuContentProps, type ContextMenuGroupProps, type ContextMenuItemProps, type ContextMenuLabelProps, type ContextMenuOverlayProps, type ContextMenuPortalProps, type ContextMenuRadioItemProps, type ContextMenuRootProps, type ContextMenuSeparatorProps, type ContextMenuSide, type ContextMenuSize, type ContextMenuTriggerProps, DataList, DataListItem, type DataListItemAlign, type DataListItemProps, DataListLabel, type DataListLabelProps, type DataListOrientation, DataListRoot, type DataListRootProps, type DataListSize, type DataListTrim, DataListValue, type DataListValueProps, Dialog, type DialogActionProps, type DialogCloseProps, type DialogContentProps, type DialogDescriptionProps, type DialogOverlayProps, type DialogPortalProps, type DialogRootProps, type DialogTitleProps, type DialogTriggerProps, DropdownMenu, type DropdownMenuCheckboxItemProps, type DropdownMenuContentProps, type DropdownMenuGroupProps, type DropdownMenuItemProps, type DropdownMenuLabelProps, type DropdownMenuOverlayProps, type DropdownMenuPortalProps, type DropdownMenuRadioItemProps, type DropdownMenuRootProps, type DropdownMenuSeparatorProps, type DropdownMenuSubContentProps, type DropdownMenuSubProps, type DropdownMenuSubTriggerProps, type DropdownMenuTriggerProps, Em, type EmProps, type ExtendedColorScale, FancyList, type FancyListItem, type FancyListProps, RnFlatList as FlatList, FlatListProps, Flex, type FlexProps, FontScale, FontSize, FontSizeSpec, FontToken, GrayScaleWithAlpha, Grid, type GridProps, HCenter, HCenterProps, HStack, HStackProps, Heading, type HeadingProps, IconButton, type IconButtonProps, RnImage as Image, ImageProps, Inset, type InsetProps, Kbd, type KbdProps, Link, type LinkProps, ManagedPortal, type ManagedPortalProps, Popover, type PopoverAlign, type PopoverAlign as SelectAlign, type PopoverArrowProps, type PopoverCloseProps, type PopoverContentProps, type PopoverDescriptionProps, type PopoverOverlayProps, type PopoverPortalProps, type PopoverRootProps, type PopoverSide, type PopoverSide as SelectSide, type PopoverTitleProps, type PopoverTriggerProps, Portal, type PortalHostProps, type PortalProps, PortalProvider, RnPressable as Pressable, PressableProps, RnText as PrimitiveText, TextProps as PrimitiveTextProps, Progress, type ProgressProps, Radio, RadioCards, type RadioCardsContextValue, RadioCardsItem, type RadioCardsItemProps, RadioCardsRoot, type RadioCardsRootProps, RadioGroup, type RadioGroupContextValue, RadioGroupItem, type RadioGroupItemProps, RadioGroupRoot, type RadioGroupRootProps, type RadioProps, RadiusScale, type RadiusSize, ScreenSize, ScrollArea, ScrollAreaProps, RnScrollView as ScrollView, ScrollViewProps, SegmentedControl, type SegmentedControlIconProps, type SegmentedControlItemProps, type SegmentedControlRootProps, type SegmentedControlValueProps, Select, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, SelectOverlay, type SelectOverlayProps, SelectPortal, type SelectPortalProps, SelectRoot, type SelectRootProps, SelectSeparator, type SelectSeparatorProps, SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, SeparatorMarginSize, SeparatorOrientation, SeparatorProps, ShadowToken, ShadowTokens, SidePosition, Sidebar, type SidebarBackdropProps, type SidebarContainerProps, type SidebarContentProps, type SidebarHeaderProps, type SidebarItemProps, type SidebarMainProps, type SidebarOverlayProps, type SidebarPortalProps, type SidebarRootProps, type SidebarSeparatorProps, type SidebarTriggerProps, SidebarVariant, type SimpleTooltipProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderValue, Slot, type SlotProps, SnapPoint, SpaceScale, Spacer, SpacerDirection, SpacerProps, SpacerSize, Spinner, type SpinnerProps, Stack, StackAlign, StackDirection, StackGap, StackJustify, StackProps, StackWrap, Strong, type StrongProps, Switch, type SwitchProps, TabNav, type TabNavItemProps, type TabNavProps, Table, type TableBodyProps, type TableCellProps, type TableColumnHeaderCellProps, type TableHeaderProps, type TableRootProps, type TableRowProps, type TableSize, Tabs, type TabsContentProps, type TabsIconProps, type TabsListProps, type TabsRootProps, type TabsTriggerProps, TextComponent as Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextFieldSlotProps, RnTextInput as TextInput, TextInputProps, type TextProps$1 as TextProps, Theme, ThemeAppearance, ThemeMode, ThemeProvider, ThemeTokens, Toast, type ToastActionProps, type ToastCloseProps, type ToastConfig, type ToastContextValue, type ToastController, type ToastData, type ToastDescriptionProps, type ToastOptions, type ToastPosition, type ToastRootProps, type ToastTitleProps, type ToastVariant, type ToastViewportProps, TooltipExport as Tooltip, TooltipAlign, type TooltipArrowProps, type TooltipContentProps, type TooltipPortalProps, type TooltipRootProps, TooltipSide, type TooltipTriggerProps, RnTouchableHighlight as TouchableHighlight, TouchableHighlightProps, RnTouchableOpacity as TouchableOpacity, TouchableOpacityProps, TypographyTokens, VCenter, VCenterProps, VStack, VStackProps, RnView as View, ViewProps, VisuallyHidden, type VisuallyHiddenProps, addColorSchemeListener, amber, amberAlpha, black, blackAlpha, blue, blueAlpha, bronze, bronzeAlpha, brown, brownAlpha, calculatePopoverPosition, createTheme, crimson, crimsonAlpha, cyan, cyanAlpha, defaultTheme, fontFamilies, getAccentAlpha, getAccentAlphaScale, getAccentColor, getAccentContrast, getAccentScale, getAccentTextColor, getActiveColors, getColorAlpha, getColorScale, getColorScheme, getContrast, getDisabledColors, getExtendedAccentScale, getFocusColor, getForegroundColor, getGrayAlpha, getGrayScale, getHighContrastBackground, getHighContrastTextColor, getHoverColors, getRadii, getSelectionColor, getShadow, getShadows, getSpace, getThemeColors, getThemeShadow, getTypography, getVariantColors, gold, goldAlpha, grass, grassAlpha, gray, grayAlpha, green, greenAlpha, indigo, indigoAlpha, iris, irisAlpha, jade, jadeAlpha, lime, limeAlpha, mauve, mauveAlpha, mint, mintAlpha, needsDarkText, olive, oliveAlpha, orange, orangeAlpha, pink, pinkAlpha, plum, plumAlpha, purple, purpleAlpha, radii, radiusFactors, red, redAlpha, ruby, rubyAlpha, sage, sageAlpha, sand, sandAlpha, scalingOptions, shadows, sky, skyAlpha, slate, slateAlpha, space, teal, tealAlpha, tomato, tomatoAlpha, typography, useAnchorPosition, useDeviceColorScheme, useHaptics, usePortal, useResponsive, useTheme, useThemeActions, useThemeColors, useThemeContext, useThemeMode, useToast, useToastContext, violet, violetAlpha, white, whiteAlpha, yellow, yellowAlpha };
|
|
5960
|
+
export { AbsoluteCenter, AbsoluteCenterProps, Accordion, AccordionContent, type AccordionContentProps, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, AccordionRoot, type AccordionRootProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionType, RnActivityIndicator as ActivityIndicator, ActivityIndicatorProps, AlertDialogComponent as AlertDialog, type AlertDialogActionProps, type AlertDialogCancelProps, type AlertDialogContentProps, type AlertDialogDescriptionProps, type AlertDialogOverlayProps, type AlertDialogPortalProps, type AlertDialogProps, type AlertDialogRootProps, type AlertDialogTitleProps, type AlertDialogTriggerProps, AlphaColorScale, AnchorPosition, AnimatedPressable, AnimatedPressableProps, AspectRatio, AspectRatioProps, Avatar, AvatarFallbackProps, AvatarProps, Badge, type BadgeProps, BaseColorScale, Blockquote, type BlockquoteProps, BottomSheet, type BottomSheetActionProps, type BottomSheetCloseProps, type BottomSheetContentProps, type BottomSheetDescriptionProps, type BottomSheetFooterProps, type BottomSheetHandleProps, type BottomSheetOverlayProps, type BottomSheetPortalProps, type BottomSheetRootProps, type BottomSheetTitleProps, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonCompoundComponent, ButtonIcon, type ButtonIconProps, ButtonLabel, type ButtonLabelProps, type ButtonProps, CalculatedPosition, Callout, CalloutIcon, type CalloutIconProps, CalloutRoot, type CalloutRootProps, type CalloutSize, CalloutText, type CalloutTextProps, type CalloutVariant, Card, type CardFooterProps, type CardProps, Center, CenterAxis, CenterProps, Checkbox, CheckboxCards, type CheckboxCardsContextValue, CheckboxCardsItem, type CheckboxCardsItemProps, CheckboxCardsRoot, type CheckboxCardsRootProps, CheckboxGroup, type CheckboxGroupProps, type CheckboxItem, type CheckboxProps, Code, type CodeProps, Color, ColorScale, ColorTokens, ColorValue, Container, type ContainerProps, ContentSize, ContextMenu, type ContextMenuAlign, type ContextMenuCheckboxItemProps, type ContextMenuContentProps, type ContextMenuGroupProps, type ContextMenuItemProps, type ContextMenuLabelProps, type ContextMenuOverlayProps, type ContextMenuPortalProps, type ContextMenuRadioItemProps, type ContextMenuRootProps, type ContextMenuSeparatorProps, type ContextMenuSide, type ContextMenuSize, type ContextMenuTriggerProps, DataList, DataListItem, type DataListItemAlign, type DataListItemProps, DataListLabel, type DataListLabelProps, type DataListOrientation, DataListRoot, type DataListRootProps, type DataListSize, type DataListTrim, DataListValue, type DataListValueProps, Dialog, type DialogActionProps, type DialogCloseProps, type DialogContentProps, type DialogDescriptionProps, type DialogOverlayProps, type DialogPortalProps, type DialogRootProps, type DialogTitleProps, type DialogTriggerProps, DropdownMenu, type DropdownMenuCheckboxItemProps, type DropdownMenuContentProps, type DropdownMenuGroupProps, type DropdownMenuItemProps, type DropdownMenuLabelProps, type DropdownMenuOverlayProps, type DropdownMenuPortalProps, type DropdownMenuRadioItemProps, type DropdownMenuRootProps, type DropdownMenuSeparatorProps, type DropdownMenuSubContentProps, type DropdownMenuSubProps, type DropdownMenuSubTriggerProps, type DropdownMenuTriggerProps, Em, type EmProps, type ExtendedColorScale, FancyList, type FancyListItem, type FancyListProps, RnFlatList as FlatList, FlatListProps, Flex, type FlexProps, FontScale, FontSize, FontSizeSpec, FontToken, GrayScaleWithAlpha, Grid, type GridProps, HCenter, HCenterProps, HStack, HStackProps, Heading, type HeadingProps, IconButton, type IconButtonProps, RnImage as Image, ImageProps, Inset, type InsetProps, Kbd, type KbdProps, Link, type LinkProps, ManagedPortal, type ManagedPortalProps, Popover, type PopoverAlign, type PopoverAlign as SelectAlign, type PopoverArrowProps, type PopoverCloseProps, type PopoverContentProps, type PopoverDescriptionProps, type PopoverOverlayProps, type PopoverPortalProps, type PopoverRootProps, type PopoverSide, type PopoverSide as SelectSide, type PopoverTitleProps, type PopoverTriggerProps, Portal, type PortalHostProps, type PortalProps, PortalProvider, RnPressable as Pressable, PressableProps, RnText as PrimitiveText, TextProps as PrimitiveTextProps, Progress, type ProgressProps, Radio, RadioCards, type RadioCardsContextValue, RadioCardsItem, type RadioCardsItemProps, RadioCardsRoot, type RadioCardsRootProps, RadioGroup, type RadioGroupContextValue, RadioGroupItem, type RadioGroupItemProps, RadioGroupRoot, type RadioGroupRootProps, type RadioProps, RadiusScale, type RadiusSize, ScreenSize, ScrollArea, ScrollAreaProps, RnScrollView as ScrollView, ScrollViewProps, SegmentedControl, type SegmentedControlIconProps, type SegmentedControlItemProps, type SegmentedControlRootProps, type SegmentedControlValueProps, Select, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, SelectOverlay, type SelectOverlayProps, SelectPortal, type SelectPortalProps, SelectRoot, type SelectRootProps, SelectSeparator, type SelectSeparatorProps, SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, SeparatorMarginSize, SeparatorOrientation, SeparatorProps, ShadowToken, ShadowTokens, SidePosition, Sidebar, type SidebarBackdropProps, type SidebarContainerProps, type SidebarContentProps, type SidebarHeaderProps, type SidebarItemProps, type SidebarMainProps, type SidebarOverlayProps, type SidebarPortalProps, type SidebarRootProps, type SidebarSeparatorProps, type SidebarTriggerProps, SidebarVariant, type SimpleTooltipProps, SizeInput, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderValue, Slot, type SlotProps, SnapPoint, SpaceScale, Spacer, SpacerDirection, SpacerProps, SpacerSize, Spinner, type SpinnerProps, Stack, StackAlign, StackDirection, StackGap, StackJustify, StackProps, StackWrap, Strong, type StrongProps, Switch, type SwitchProps, TabNav, type TabNavItemProps, type TabNavProps, Table, type TableBodyProps, type TableCellProps, type TableColumnHeaderCellProps, type TableHeaderProps, type TableRootProps, type TableRowProps, type TableSize, Tabs, type TabsContentProps, type TabsIconProps, type TabsListProps, type TabsRootProps, type TabsTriggerProps, TextComponent as Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextFieldSlotProps, RnTextInput as TextInput, TextInputProps, type TextProps$1 as TextProps, Theme, ThemeAppearance, ThemeMode, ThemeProvider, ThemeTokens, Toast, type ToastActionProps, type ToastCloseProps, type ToastConfig, type ToastContextValue, type ToastController, type ToastData, type ToastDescriptionProps, type ToastOptions, type ToastPosition, type ToastRootProps, type ToastTitleProps, type ToastVariant, type ToastViewportProps, TooltipExport as Tooltip, TooltipAlign, type TooltipArrowProps, type TooltipContentProps, type TooltipPortalProps, type TooltipRootProps, TooltipSide, type TooltipTriggerProps, RnTouchableHighlight as TouchableHighlight, TouchableHighlightProps, RnTouchableOpacity as TouchableOpacity, TouchableOpacityProps, TypographyTokens, VCenter, VCenterProps, VStack, VStackProps, RnView as View, ViewProps, VisuallyHidden, type VisuallyHiddenProps, addColorSchemeListener, amber, amberAlpha, black, blackAlpha, blue, blueAlpha, bronze, bronzeAlpha, brown, brownAlpha, calculatePopoverPosition, createTheme, crimson, crimsonAlpha, cyan, cyanAlpha, defaultTheme, fontFamilies, getAccentAlpha, getAccentAlphaScale, getAccentColor, getAccentContrast, getAccentScale, getAccentTextColor, getActiveColors, getColorAlpha, getColorScale, getColorScheme, getContrast, getDisabledColors, getExtendedAccentScale, getFocusColor, getForegroundColor, getGrayAlpha, getGrayScale, getHighContrastBackground, getHighContrastTextColor, getHoverColors, getRadii, getSelectionColor, getShadow, getShadows, getSpace, getThemeColors, getThemeShadow, getTypography, getVariantColors, gold, goldAlpha, grass, grassAlpha, gray, grayAlpha, green, greenAlpha, indigo, indigoAlpha, iris, irisAlpha, jade, jadeAlpha, lime, limeAlpha, mauve, mauveAlpha, mint, mintAlpha, needsDarkText, olive, oliveAlpha, orange, orangeAlpha, pink, pinkAlpha, plum, plumAlpha, purple, purpleAlpha, radii, radiusFactors, red, redAlpha, ruby, rubyAlpha, sage, sageAlpha, sand, sandAlpha, scalingOptions, shadows, sky, skyAlpha, slate, slateAlpha, space, teal, tealAlpha, toNumericSize, tomato, tomatoAlpha, typography, useAnchorPosition, useDeviceColorScheme, useHaptics, usePortal, useResponsive, useTheme, useThemeActions, useThemeColors, useThemeContext, useThemeMode, useToast, useToastContext, violet, violetAlpha, white, whiteAlpha, yellow, yellowAlpha };
|