@cdx-ui/components 0.1.5 → 0.1.7
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/coverage.svg +1 -1
- package/lib/commonjs/components/Alert/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/index.js +6 -4
- package/lib/commonjs/components/Avatar/index.js.map +1 -1
- package/lib/commonjs/components/Badge/index.js.map +1 -1
- package/lib/commonjs/components/Badge/styles.js +2 -2
- package/lib/commonjs/components/BottomSheet/index.js +106 -91
- package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/styles.js +1 -12
- package/lib/commonjs/components/BottomSheet/styles.js.map +1 -1
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Card/index.js.map +1 -1
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Divider/index.js.map +1 -1
- package/lib/commonjs/components/Form/styles.js +1 -1
- package/lib/commonjs/components/Form/styles.js.map +1 -1
- package/lib/commonjs/components/FullScreenDialog/animation.js +46 -0
- package/lib/commonjs/components/FullScreenDialog/animation.js.map +1 -0
- package/lib/commonjs/components/FullScreenDialog/index.js +343 -0
- package/lib/commonjs/components/FullScreenDialog/index.js.map +1 -0
- package/lib/commonjs/components/FullScreenDialog/styles.js +14 -0
- package/lib/commonjs/components/FullScreenDialog/styles.js.map +1 -0
- package/lib/commonjs/components/IconButton/styles.js +7 -5
- package/lib/commonjs/components/IconButton/styles.js.map +1 -1
- package/lib/commonjs/components/InsuranceDisclosure/index.js.map +1 -1
- package/lib/commonjs/components/Link/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/index.js +2 -0
- package/lib/commonjs/components/ListItem/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/styles.js +6 -0
- package/lib/commonjs/components/ListItem/styles.js.map +1 -1
- package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/ScopedTheme/index.js +11 -3
- package/lib/commonjs/components/ScopedTheme/index.js.map +1 -1
- package/lib/commonjs/components/Skeleton/index.js.map +1 -1
- package/lib/commonjs/components/Stack/HStack.js.map +1 -1
- package/lib/commonjs/components/Stack/VStack.js.map +1 -1
- package/lib/commonjs/components/Textarea/index.js.map +1 -1
- package/lib/commonjs/components/Tile/index.js.map +1 -1
- package/lib/commonjs/components/Toast/index.js +40 -12
- package/lib/commonjs/components/Toast/index.js.map +1 -1
- package/lib/commonjs/components/Toast/styles.js +15 -4
- package/lib/commonjs/components/Toast/styles.js.map +1 -1
- package/lib/commonjs/components/ToggleButton/index.js +249 -0
- package/lib/commonjs/components/ToggleButton/index.js.map +1 -0
- package/lib/commonjs/components/ToggleButton/styles.js +155 -0
- package/lib/commonjs/components/ToggleButton/styles.js.map +1 -0
- package/lib/commonjs/components/index.js +24 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/picker/styles.js +6 -2
- package/lib/commonjs/components/picker/styles.js.map +1 -1
- package/lib/commonjs/components/sheet-header/index.js +97 -0
- package/lib/commonjs/components/sheet-header/index.js.map +1 -0
- package/lib/commonjs/components/sheet-header/styles.js +28 -0
- package/lib/commonjs/components/sheet-header/styles.js.map +1 -0
- package/lib/commonjs/figma/BottomSheet.figma.js +1 -1
- package/lib/commonjs/providers/toast/provider.js +44 -11
- package/lib/commonjs/providers/toast/provider.js.map +1 -1
- package/lib/module/components/Alert/index.js.map +1 -1
- package/lib/module/components/Avatar/index.js +6 -4
- package/lib/module/components/Avatar/index.js.map +1 -1
- package/lib/module/components/Badge/index.js.map +1 -1
- package/lib/module/components/Badge/styles.js +2 -2
- package/lib/module/components/BottomSheet/index.js +110 -95
- package/lib/module/components/BottomSheet/index.js.map +1 -1
- package/lib/module/components/BottomSheet/styles.js +0 -11
- package/lib/module/components/BottomSheet/styles.js.map +1 -1
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Card/index.js.map +1 -1
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Divider/index.js.map +1 -1
- package/lib/module/components/Form/styles.js +1 -1
- package/lib/module/components/Form/styles.js.map +1 -1
- package/lib/module/components/FullScreenDialog/animation.js +41 -0
- package/lib/module/components/FullScreenDialog/animation.js.map +1 -0
- package/lib/module/components/FullScreenDialog/index.js +338 -0
- package/lib/module/components/FullScreenDialog/index.js.map +1 -0
- package/lib/module/components/FullScreenDialog/styles.js +10 -0
- package/lib/module/components/FullScreenDialog/styles.js.map +1 -0
- package/lib/module/components/IconButton/styles.js +7 -4
- package/lib/module/components/IconButton/styles.js.map +1 -1
- package/lib/module/components/InsuranceDisclosure/index.js.map +1 -1
- package/lib/module/components/Link/index.js.map +1 -1
- package/lib/module/components/ListItem/index.js +2 -0
- package/lib/module/components/ListItem/index.js.map +1 -1
- package/lib/module/components/ListItem/styles.js +6 -0
- package/lib/module/components/ListItem/styles.js.map +1 -1
- package/lib/module/components/ProgressSegmented/index.js.map +1 -1
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/ScopedTheme/index.js +11 -3
- package/lib/module/components/ScopedTheme/index.js.map +1 -1
- package/lib/module/components/Skeleton/index.js.map +1 -1
- package/lib/module/components/Stack/HStack.js.map +1 -1
- package/lib/module/components/Stack/VStack.js.map +1 -1
- package/lib/module/components/Textarea/index.js.map +1 -1
- package/lib/module/components/Tile/index.js.map +1 -1
- package/lib/module/components/Toast/index.js +43 -15
- package/lib/module/components/Toast/index.js.map +1 -1
- package/lib/module/components/Toast/styles.js +14 -3
- package/lib/module/components/Toast/styles.js.map +1 -1
- package/lib/module/components/ToggleButton/index.js +245 -0
- package/lib/module/components/ToggleButton/index.js.map +1 -0
- package/lib/module/components/ToggleButton/styles.js +152 -0
- package/lib/module/components/ToggleButton/styles.js.map +1 -0
- package/lib/module/components/index.js +2 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/picker/styles.js +6 -2
- package/lib/module/components/picker/styles.js.map +1 -1
- package/lib/module/components/sheet-header/index.js +94 -0
- package/lib/module/components/sheet-header/index.js.map +1 -0
- package/lib/module/components/sheet-header/styles.js +25 -0
- package/lib/module/components/sheet-header/styles.js.map +1 -0
- package/lib/module/figma/BottomSheet.figma.js +1 -1
- package/lib/module/providers/toast/provider.js +44 -11
- package/lib/module/providers/toast/provider.js.map +1 -1
- package/lib/typescript/components/Alert/index.d.ts +4 -1
- package/lib/typescript/components/Alert/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/index.d.ts +10 -4
- package/lib/typescript/components/Avatar/index.d.ts.map +1 -1
- package/lib/typescript/components/Badge/index.d.ts +34 -0
- package/lib/typescript/components/Badge/index.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/index.d.ts +12 -1
- package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/styles.d.ts +0 -5
- package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -1
- package/lib/typescript/components/Button/index.d.ts +9 -1
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Card/index.d.ts +14 -0
- package/lib/typescript/components/Card/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +1 -1
- package/lib/typescript/components/CurrencyInput/index.d.ts +2 -2
- package/lib/typescript/components/CurrencyInput/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/index.d.ts +10 -0
- package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/styles.d.ts +1 -0
- package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
- package/lib/typescript/components/Divider/index.d.ts +5 -0
- package/lib/typescript/components/Divider/index.d.ts.map +1 -1
- package/lib/typescript/components/Drawer/styles.d.ts +1 -1
- package/lib/typescript/components/Form/styles.d.ts.map +1 -1
- package/lib/typescript/components/FullScreenDialog/animation.d.ts +9 -0
- package/lib/typescript/components/FullScreenDialog/animation.d.ts.map +1 -0
- package/lib/typescript/components/FullScreenDialog/index.d.ts +85 -0
- package/lib/typescript/components/FullScreenDialog/index.d.ts.map +1 -0
- package/lib/typescript/components/FullScreenDialog/styles.d.ts +6 -0
- package/lib/typescript/components/FullScreenDialog/styles.d.ts.map +1 -0
- package/lib/typescript/components/IconButton/styles.d.ts +5 -0
- package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Input/index.d.ts +1 -1
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts +1 -0
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts.map +1 -1
- package/lib/typescript/components/Link/index.d.ts +2 -0
- package/lib/typescript/components/Link/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/index.d.ts +43 -4
- package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/styles.d.ts +2 -0
- package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
- package/lib/typescript/components/ProgressSegmented/index.d.ts +10 -3
- package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
- package/lib/typescript/components/Radio/index.d.ts +1 -0
- package/lib/typescript/components/Radio/index.d.ts.map +1 -1
- package/lib/typescript/components/ScopedTheme/index.d.ts +11 -3
- package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -1
- package/lib/typescript/components/Skeleton/index.d.ts +5 -1
- package/lib/typescript/components/Skeleton/index.d.ts.map +1 -1
- package/lib/typescript/components/Stack/HStack.d.ts +6 -0
- package/lib/typescript/components/Stack/HStack.d.ts.map +1 -1
- package/lib/typescript/components/Stack/VStack.d.ts +6 -0
- package/lib/typescript/components/Stack/VStack.d.ts.map +1 -1
- package/lib/typescript/components/Switch/index.d.ts +1 -1
- package/lib/typescript/components/Tabs/index.d.ts +2 -2
- package/lib/typescript/components/Textarea/index.d.ts +1 -0
- package/lib/typescript/components/Textarea/index.d.ts.map +1 -1
- package/lib/typescript/components/Tile/index.d.ts +49 -0
- package/lib/typescript/components/Tile/index.d.ts.map +1 -1
- package/lib/typescript/components/Toast/index.d.ts +15 -0
- package/lib/typescript/components/Toast/index.d.ts.map +1 -1
- package/lib/typescript/components/Toast/styles.d.ts +10 -0
- package/lib/typescript/components/Toast/styles.d.ts.map +1 -1
- package/lib/typescript/components/Toast/types.d.ts +9 -0
- package/lib/typescript/components/Toast/types.d.ts.map +1 -1
- package/lib/typescript/components/ToggleButton/index.d.ts +78 -0
- package/lib/typescript/components/ToggleButton/index.d.ts.map +1 -0
- package/lib/typescript/components/ToggleButton/styles.d.ts +30 -0
- package/lib/typescript/components/ToggleButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +2 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/picker/styles.d.ts +5 -2
- package/lib/typescript/components/picker/styles.d.ts.map +1 -1
- package/lib/typescript/components/sheet-header/index.d.ts +24 -0
- package/lib/typescript/components/sheet-header/index.d.ts.map +1 -0
- package/lib/typescript/components/sheet-header/styles.d.ts +12 -0
- package/lib/typescript/components/sheet-header/styles.d.ts.map +1 -0
- package/lib/typescript/providers/toast/provider.d.ts +1 -1
- package/lib/typescript/providers/toast/provider.d.ts.map +1 -1
- package/lib/typescript/providers/toast/types.d.ts +16 -4
- package/lib/typescript/providers/toast/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/components/Alert/index.tsx +4 -1
- package/src/components/Avatar/index.tsx +10 -4
- package/src/components/Badge/index.tsx +34 -0
- package/src/components/Badge/styles.ts +2 -2
- package/src/components/BottomSheet/index.tsx +156 -125
- package/src/components/BottomSheet/styles.ts +1 -22
- package/src/components/Button/index.tsx +9 -1
- package/src/components/Card/index.tsx +14 -0
- package/src/components/Chip/index.tsx +1 -1
- package/src/components/CurrencyInput/index.tsx +2 -2
- package/src/components/Dialog/index.tsx +10 -0
- package/src/components/Dialog/styles.ts +1 -0
- package/src/components/Divider/index.tsx +5 -0
- package/src/components/Form/styles.ts +1 -1
- package/src/components/FullScreenDialog/animation.ts +22 -0
- package/src/components/FullScreenDialog/index.tsx +484 -0
- package/src/components/FullScreenDialog/styles.ts +23 -0
- package/src/components/IconButton/styles.ts +7 -4
- package/src/components/Input/index.tsx +1 -1
- package/src/components/InsuranceDisclosure/index.tsx +1 -0
- package/src/components/Link/index.tsx +2 -0
- package/src/components/ListItem/index.tsx +48 -4
- package/src/components/ListItem/styles.ts +7 -0
- package/src/components/ProgressSegmented/index.tsx +10 -3
- package/src/components/Radio/index.tsx +1 -0
- package/src/components/ScopedTheme/index.tsx +11 -3
- package/src/components/Skeleton/index.tsx +5 -1
- package/src/components/Stack/HStack.tsx +6 -0
- package/src/components/Stack/VStack.tsx +6 -0
- package/src/components/Switch/index.tsx +1 -1
- package/src/components/Tabs/index.tsx +2 -2
- package/src/components/Textarea/index.tsx +1 -0
- package/src/components/Tile/index.tsx +49 -0
- package/src/components/Toast/index.tsx +55 -9
- package/src/components/Toast/styles.ts +14 -3
- package/src/components/Toast/types.ts +9 -0
- package/src/components/ToggleButton/index.tsx +346 -0
- package/src/components/ToggleButton/styles.ts +191 -0
- package/src/components/index.ts +2 -0
- package/src/components/picker/styles.ts +6 -2
- package/src/components/sheet-header/index.tsx +148 -0
- package/src/components/sheet-header/styles.ts +28 -0
- package/src/providers/toast/provider.tsx +47 -13
- package/src/providers/toast/types.ts +16 -4
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { Text, View, type TextProps, type ViewProps } from 'react-native';
|
|
3
3
|
import { type IListItemProps, type ListItemCrossAlign } from '@cdx-ui/primitives';
|
|
4
|
-
import { type ListItemVariantProps } from './styles';
|
|
4
|
+
import { type ListItemSectionHeaderVariantProps, type ListItemVariantProps } from './styles';
|
|
5
5
|
export interface ListItemProps extends Omit<IListItemProps, 'crossAlign'>, ListItemVariantProps {
|
|
6
|
+
/**
|
|
7
|
+
* Vertical density. `compact` reduces padding and min-height; typography stays the same.
|
|
8
|
+
* @default 'default'
|
|
9
|
+
* @remarks `'default' | 'compact'`
|
|
10
|
+
* @fumadocsType `'default' | 'compact'`
|
|
11
|
+
*/
|
|
12
|
+
size?: 'default' | 'compact' | null | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Bottom border between rows. Set `false` on the last row to avoid a trailing border.
|
|
15
|
+
* @default true
|
|
16
|
+
* @remarks `boolean`
|
|
17
|
+
* @fumadocsType `boolean`
|
|
18
|
+
*/
|
|
19
|
+
showSeparator?: boolean | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Vertical alignment of the leading, content, and trailing slots.
|
|
22
|
+
* `start` top-aligns them so trailing text lines up with the title.
|
|
23
|
+
* @default 'center'
|
|
24
|
+
* @remarks `'center' | 'start'`
|
|
25
|
+
* @fumadocsType `'center' | 'start'`
|
|
26
|
+
*/
|
|
27
|
+
crossAlign?: 'center' | 'start' | null | undefined;
|
|
6
28
|
className?: string;
|
|
7
29
|
}
|
|
8
30
|
declare const ListItemRoot: import("react").ForwardRefExoticComponent<ListItemProps & import("react").RefAttributes<View>>;
|
|
9
31
|
export interface ListItemLeadingSlotProps extends ViewProps {
|
|
32
|
+
/** Renders the consumer's child element in place of the default `View` host. */
|
|
10
33
|
asChild?: boolean;
|
|
11
34
|
className?: string;
|
|
12
35
|
/**
|
|
@@ -18,39 +41,55 @@ export interface ListItemLeadingSlotProps extends ViewProps {
|
|
|
18
41
|
}
|
|
19
42
|
declare const ListItemLeadingSlot: import("react").ForwardRefExoticComponent<ListItemLeadingSlotProps & import("react").RefAttributes<View>>;
|
|
20
43
|
export interface ListItemContentProps extends ViewProps {
|
|
44
|
+
/** Renders the consumer's child element in place of the default `View` host. */
|
|
21
45
|
asChild?: boolean;
|
|
22
46
|
className?: string;
|
|
23
47
|
}
|
|
24
48
|
declare const ListItemContent: import("react").ForwardRefExoticComponent<ListItemContentProps & import("react").RefAttributes<View>>;
|
|
25
49
|
export interface ListItemTitleProps extends TextProps {
|
|
50
|
+
/** Renders the consumer's child element in place of the default `Text` host. */
|
|
26
51
|
asChild?: boolean;
|
|
27
52
|
className?: string;
|
|
28
53
|
}
|
|
29
54
|
declare const ListItemTitle: import("react").ForwardRefExoticComponent<ListItemTitleProps & import("react").RefAttributes<Text>>;
|
|
30
55
|
export interface ListItemDescriptionProps extends TextProps {
|
|
56
|
+
/** Renders the consumer's child element in place of the default `Text` host. */
|
|
31
57
|
asChild?: boolean;
|
|
32
58
|
className?: string;
|
|
33
59
|
}
|
|
34
60
|
declare const ListItemDescription: import("react").ForwardRefExoticComponent<ListItemDescriptionProps & import("react").RefAttributes<Text>>;
|
|
35
61
|
export interface ListItemMetaProps extends TextProps {
|
|
62
|
+
/** Renders the consumer's child element in place of the default `Text` host. */
|
|
36
63
|
asChild?: boolean;
|
|
37
64
|
className?: string;
|
|
38
65
|
}
|
|
39
66
|
declare const ListItemMeta: import("react").ForwardRefExoticComponent<ListItemMetaProps & import("react").RefAttributes<Text>>;
|
|
40
67
|
export interface ListItemTrailingSlotProps extends ViewProps {
|
|
68
|
+
/** Renders the consumer's child element in place of the default `View` host. */
|
|
41
69
|
asChild?: boolean;
|
|
42
70
|
className?: string;
|
|
43
71
|
}
|
|
44
72
|
declare const ListItemTrailingSlot: import("react").ForwardRefExoticComponent<ListItemTrailingSlotProps & import("react").RefAttributes<View>>;
|
|
73
|
+
export type ListItemSectionHeaderVariant = NonNullable<ListItemSectionHeaderVariantProps['variant']>;
|
|
45
74
|
export interface ListItemSectionHeaderProps extends ViewProps {
|
|
75
|
+
/** Renders the consumer's child element in place of the default `View` host. */
|
|
46
76
|
asChild?: boolean;
|
|
47
77
|
className?: string;
|
|
48
|
-
/** Primary section label
|
|
78
|
+
/** Primary section label. String or number children are styled as an uppercase label. */
|
|
49
79
|
children: ReactNode;
|
|
50
80
|
/** Optional right-aligned adornment (e.g. section Chip). */
|
|
51
81
|
trailing?: ReactNode;
|
|
52
82
|
/**
|
|
53
|
-
*
|
|
83
|
+
* Background treatment. `ghost` has no fill and a bottom border; `subtle` adds a neutral fill
|
|
84
|
+
* (matching `subtle` on Avatar, Chip, and IconButton) and drops the bottom border.
|
|
85
|
+
* Label typography is the same for both.
|
|
86
|
+
* @default 'ghost'
|
|
87
|
+
* @remarks `'ghost' | 'subtle'`
|
|
88
|
+
* @fumadocsType `'ghost' | 'subtle'`
|
|
89
|
+
*/
|
|
90
|
+
variant?: ListItemSectionHeaderVariant;
|
|
91
|
+
/**
|
|
92
|
+
* Accent top border above the header.
|
|
54
93
|
* @default true
|
|
55
94
|
*/
|
|
56
95
|
showDivider?: boolean;
|
|
@@ -66,6 +105,6 @@ type ListItemCompound = typeof ListItemRoot & {
|
|
|
66
105
|
SectionHeader: typeof ListItemSectionHeader;
|
|
67
106
|
};
|
|
68
107
|
export declare const ListItem: ListItemCompound;
|
|
69
|
-
export type { ListItemCrossAlign, ListItemVariantProps };
|
|
108
|
+
export type { ListItemCrossAlign, ListItemSectionHeaderVariantProps, ListItemVariantProps };
|
|
70
109
|
export { listItemContentVariants, listItemDescriptionVariants, listItemLeadingSlotVariants, listItemMetaVariants, listItemRootVariants, listItemSectionHeaderLabelVariants, listItemSectionHeaderVariants, listItemTitleVariants, listItemTrailingSlotVariants, } from './styles';
|
|
71
110
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAUL,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAC;AAalB,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE,oBAAoB;IAC7F,SAAS,CAAC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EAAE,OAAO,mBAAmB,CAAC;IACxC,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B,YAAY,EAAE,OAAO,oBAAoB,CAAC;IAC1C,aAAa,EAAE,OAAO,qBAAqB,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAQf,gBAAgB,CAAC;AAEvB,YAAY,EAAE,kBAAkB,EAAE,iCAAiC,EAAE,oBAAoB,EAAE,CAAC;AAC5F,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,kCAAkC,EAClC,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,UAAU,CAAC"}
|
|
@@ -15,9 +15,11 @@ export declare const listItemTitleVariants: (props?: import("class-variance-auth
|
|
|
15
15
|
export declare const listItemDescriptionVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
16
16
|
export declare const listItemMetaVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
17
17
|
export declare const listItemSectionHeaderVariants: (props?: ({
|
|
18
|
+
variant?: "ghost" | "subtle" | null | undefined;
|
|
18
19
|
showDivider?: boolean | null | undefined;
|
|
19
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
21
|
/** Default section-title typography; applied by `ListItem.SectionHeader` for string/number children. Exported for rare custom composition. */
|
|
21
22
|
export declare const listItemSectionHeaderLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
22
23
|
export type ListItemVariantProps = VariantProps<typeof listItemRootVariants>;
|
|
24
|
+
export type ListItemSectionHeaderVariantProps = VariantProps<typeof listItemSectionHeaderVariants>;
|
|
23
25
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAcvD,eAAO,MAAM,oBAAoB;;;;8EA2ChC,CAAC;AAIF,eAAO,MAAM,2BAA2B,oFAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;8EAaxC,CAAC;AAIF,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAIH,eAAO,MAAM,qBAAqB,oFAAkD,CAAC;AAErF,eAAO,MAAM,2BAA2B,oFAAwC,CAAC;AAEjF,eAAO,MAAM,oBAAoB,oFAAuC,CAAC;AAIzE,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAcvD,eAAO,MAAM,oBAAoB;;;;8EA2ChC,CAAC;AAIF,eAAO,MAAM,2BAA2B,oFAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;8EAaxC,CAAC;AAIF,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAIH,eAAO,MAAM,qBAAqB,oFAAkD,CAAC;AAErF,eAAO,MAAM,2BAA2B,oFAAwC,CAAC;AAEjF,eAAO,MAAM,oBAAoB,oFAAuC,CAAC;AAIzE,eAAO,MAAM,6BAA6B;;;8EAsBzC,CAAC;AAEF,8IAA8I;AAC9I,eAAO,MAAM,kCAAkC,oFAE9C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC7E,MAAM,MAAM,iCAAiC,GAAG,YAAY,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { View, type ViewProps } from 'react-native';
|
|
2
2
|
import { type ProgressSegmentedVariants } from './styles';
|
|
3
3
|
export interface ProgressSegmentedProps extends ViewProps, ProgressSegmentedVariants {
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Current step (1-based index into the segment count).
|
|
6
|
+
* Clamped to `[0, segments]` (`0` leaves every segment incomplete).
|
|
7
|
+
*/
|
|
5
8
|
readonly step: number;
|
|
6
9
|
/**
|
|
7
10
|
* Number of segments in the bar. Matches the Figma `segments` variant (2–6 in the design
|
|
8
11
|
* system file); the prop accepts any positive integer for backward compatibility.
|
|
12
|
+
* @default 5
|
|
9
13
|
*/
|
|
10
14
|
readonly segments?: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* When true, the current step segment is marked as complete rather than in-progress.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
12
19
|
readonly isStepComplete?: boolean;
|
|
13
20
|
/**
|
|
14
21
|
* Returns the accessibility value text announced by screen readers. Receives the clamped
|
|
15
|
-
* step, segment count, and whether the step is complete.
|
|
22
|
+
* step, segment count, and whether the step is complete. Replaces the English default.
|
|
16
23
|
*/
|
|
17
24
|
readonly getAccessibilityText?: (step: number, segmentCount: number, isStepComplete: boolean) => string;
|
|
18
25
|
readonly className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressSegmented/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,sBAAuB,SAAQ,SAAS,EAAE,yBAAyB;IAClF
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressSegmented/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,sBAAuB,SAAQ,SAAS,EAAE,yBAAyB;IAClF;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAC9B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,OAAO,KACpB,MAAM,CAAC;IACZ,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,iBAAiB,yGA2D7B,CAAC"}
|
|
@@ -27,6 +27,7 @@ export interface RadioGroupProps extends ViewProps {
|
|
|
27
27
|
isDisabled?: boolean;
|
|
28
28
|
isInvalid?: boolean;
|
|
29
29
|
isRequired?: boolean;
|
|
30
|
+
/** Makes every radio in the group read-only. Items stay focusable, but the selection cannot be changed. */
|
|
30
31
|
isReadOnly?: boolean;
|
|
31
32
|
direction?: 'column' | 'row';
|
|
32
33
|
name?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAOL,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAC;AAc5B,MAAM,WAAW,UAAW,SAAQ,WAAW;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,SAAS,6FAeb,CAAC;AAoBH,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM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tB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,UAAU,kGA0Cf,CAAC;AAQF,KAAK,sBAAsB,GAAG,OAAO,SAAS,GAAG;IAC/C,SAAS,EAAE,OAAO,cAAc,CAAC;IACjC,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,KAAK,EAAE,OAAO,UAAU,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,KAAK,EAIZ,sBAAsB,CAAC"}
|
|
@@ -8,9 +8,17 @@ export type ScopedThemeProps = ComponentProps<typeof UniwindScopedTheme>;
|
|
|
8
8
|
*
|
|
9
9
|
* Wraps Uniwind's `ScopedTheme` to keep `uniwind` an internal implementation detail.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* On web, the consuming app's `global.css` must include
|
|
12
|
+
* `@custom-variant dark (&:where(.dark, .dark *));`. Without that directive,
|
|
13
|
+
* `theme="dark"` does not flip CSS variables. Native applies the scoped theme
|
|
14
|
+
* through React context and does not use the directive.
|
|
15
|
+
*
|
|
16
|
+
* On web, `theme="dark"` forces dark tokens inside a light app. `theme="light"`
|
|
17
|
+
* applies when no `.dark` ancestor is present; there is no `@custom-variant light`
|
|
18
|
+
* to override one. Native honors either value through context.
|
|
19
|
+
*
|
|
20
|
+
* Pass a static `theme`. Changing `theme` on an already-mounted instance can leave
|
|
21
|
+
* stale styles; remount to switch.
|
|
14
22
|
*/
|
|
15
23
|
export declare const ScopedTheme: (props: ScopedThemeProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScopedTheme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScopedTheme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAAsC,CAAC"}
|
|
@@ -2,7 +2,11 @@ import { type ViewProps } from 'react-native';
|
|
|
2
2
|
import Animated from 'react-native-reanimated';
|
|
3
3
|
export interface SkeletonProps extends ViewProps {
|
|
4
4
|
className?: string;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Half-cycle of the opacity pulse (`1` → `0.35`) in milliseconds.
|
|
7
|
+
* A full pulse takes `duration × 2`.
|
|
8
|
+
* @default 1000
|
|
9
|
+
*/
|
|
6
10
|
duration?: number;
|
|
7
11
|
}
|
|
8
12
|
export declare const Skeleton: import("react").ForwardRefExoticComponent<SkeletonProps & import("react").RefAttributes<Animated.View>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,QAMN,MAAM,yBAAyB,CAAC;AAIjC,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,QAMN,MAAM,yBAAyB,CAAC;AAIjC,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,yGAsBpB,CAAC"}
|
|
@@ -2,7 +2,13 @@ import { View, type ViewProps } from 'react-native';
|
|
|
2
2
|
import { type StackSpace } from './styles';
|
|
3
3
|
export interface HStackProps extends ViewProps {
|
|
4
4
|
className?: string;
|
|
5
|
+
/** Token-based gap between children. */
|
|
5
6
|
space?: StackSpace;
|
|
7
|
+
/**
|
|
8
|
+
* Reverses the visual order of children along the stack axis.
|
|
9
|
+
* Source order and screen-reader order stay unchanged.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
6
12
|
reversed?: boolean;
|
|
7
13
|
}
|
|
8
14
|
export declare const HStack: import("react").ForwardRefExoticComponent<HStackProps & import("react").RefAttributes<View>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HStack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/HStack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,8FAgBlB,CAAC"}
|
|
1
|
+
{"version":3,"file":"HStack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/HStack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,8FAgBlB,CAAC"}
|
|
@@ -2,7 +2,13 @@ import { View, type ViewProps } from 'react-native';
|
|
|
2
2
|
import { type StackSpace } from './styles';
|
|
3
3
|
export interface VStackProps extends ViewProps {
|
|
4
4
|
className?: string;
|
|
5
|
+
/** Token-based gap between children. */
|
|
5
6
|
space?: StackSpace;
|
|
7
|
+
/**
|
|
8
|
+
* Reverses the visual order of children along the stack axis.
|
|
9
|
+
* Source order and screen-reader order stay unchanged.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
6
12
|
reversed?: boolean;
|
|
7
13
|
}
|
|
8
14
|
export declare const VStack: import("react").ForwardRefExoticComponent<VStackProps & import("react").RefAttributes<View>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/VStack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,8FAgBlB,CAAC"}
|
|
1
|
+
{"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/VStack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,8FAgBlB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { Switch as RNSwitch, View } from 'react-native';
|
|
|
2
2
|
import { type ISwitchProps } from '@cdx-ui/primitives';
|
|
3
3
|
export interface SwitchProps extends ISwitchProps {
|
|
4
4
|
/**
|
|
5
|
-
* Track and thumb size.
|
|
5
|
+
* Track and thumb size on web. iOS and Android render the system switch, so `size` has no effect.
|
|
6
6
|
* @default 'md'
|
|
7
7
|
*/
|
|
8
8
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -14,8 +14,8 @@ export interface TabsListProps extends ITabsListProps {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
/**
|
|
16
16
|
* When `orientation="horizontal"`, scroll tab triggers if they overflow the list width.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* On native, selecting a tab scrolls it into view. On web, edge fades and paging
|
|
18
|
+
* controls appear when more tabs are off-screen. Vertical lists do not scroll.
|
|
19
19
|
* @default true
|
|
20
20
|
*/
|
|
21
21
|
scrollable?: boolean;
|
|
@@ -3,6 +3,7 @@ import { type IInputFieldProps } from '@cdx-ui/primitives';
|
|
|
3
3
|
import { type TextareaVariantProps } from './styles';
|
|
4
4
|
export type TextareaResize = 'none' | 'vertical';
|
|
5
5
|
export interface TextareaProps extends Omit<TextInputProps, 'multiline' | 'children' | 'style'>, IInputFieldProps, TextareaVariantProps {
|
|
6
|
+
/** Additional Tailwind classes, applied to the root shell rather than the inner field. */
|
|
6
7
|
className?: string;
|
|
7
8
|
placeholderTextColorClassName?: string;
|
|
8
9
|
/** Initial / minimum visible rows. Defaults to 2 on web and 8 on native. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Textarea/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EAEnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,KAAK,oBAAoB,EAI1B,MAAM,UAAU,CAAC;AAelB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC;AAEjD,MAAM,WAAW,aACf,SACE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC,EACxD,gBAAgB,EAChB,oBAAoB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED,eAAO,MAAM,QAAQ,qGAkHpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Textarea/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EAEnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,KAAK,oBAAoB,EAI1B,MAAM,UAAU,CAAC;AAelB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC;AAEjD,MAAM,WAAW,aACf,SACE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC,EACxD,gBAAgB,EAChB,oBAAoB;IACtB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED,eAAO,MAAM,QAAQ,qGAkHpB,CAAC"}
|
|
@@ -17,17 +17,60 @@ import { type TileGroupVariantProps, type TileVariantProps } from './styles';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface TileGroupSingleProps extends ITileGroupSingleProps, TileGroupVariantProps {
|
|
19
19
|
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Layout axis. `row` places tiles side by side.
|
|
22
|
+
* @default 'column'
|
|
23
|
+
* @remarks `'column' | 'row'`
|
|
24
|
+
* @fumadocsType `'column' | 'row'`
|
|
25
|
+
*/
|
|
26
|
+
direction?: 'column' | 'row' | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Gap between tiles. `none` removes it so rows touch.
|
|
29
|
+
* @default 'default'
|
|
30
|
+
* @remarks `'default' | 'none'`
|
|
31
|
+
* @fumadocsType `'default' | 'none'`
|
|
32
|
+
*/
|
|
33
|
+
spacing?: 'default' | 'none' | null | undefined;
|
|
20
34
|
/** Visual shape inherited by child `Tile`s. Per-tile `shape` overrides this. */
|
|
21
35
|
shape?: TileVariantProps['shape'];
|
|
22
36
|
}
|
|
23
37
|
export interface TileGroupMultipleProps extends ITileGroupMultipleProps, TileGroupVariantProps {
|
|
24
38
|
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Layout axis. `row` places tiles side by side.
|
|
41
|
+
* @default 'column'
|
|
42
|
+
* @remarks `'column' | 'row'`
|
|
43
|
+
* @fumadocsType `'column' | 'row'`
|
|
44
|
+
*/
|
|
45
|
+
direction?: 'column' | 'row' | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Gap between tiles. `none` removes it so rows touch.
|
|
48
|
+
* @default 'default'
|
|
49
|
+
* @remarks `'default' | 'none'`
|
|
50
|
+
* @fumadocsType `'default' | 'none'`
|
|
51
|
+
*/
|
|
52
|
+
spacing?: 'default' | 'none' | null | undefined;
|
|
25
53
|
/** Visual shape inherited by child `Tile`s. Per-tile `shape` overrides this. */
|
|
26
54
|
shape?: TileVariantProps['shape'];
|
|
27
55
|
}
|
|
28
56
|
export type TileGroupProps = TileGroupSingleProps | TileGroupMultipleProps;
|
|
29
57
|
declare const TileGroup: import("react").ForwardRefExoticComponent<TileGroupProps & import("react").RefAttributes<View>>;
|
|
30
58
|
export interface TileProps extends ITileProps, TileVariantProps {
|
|
59
|
+
/**
|
|
60
|
+
* Visual shape. Overrides the shape inherited from `Tile.Group`.
|
|
61
|
+
* `card` is a bordered surface; `flat` is a borderless row.
|
|
62
|
+
* @default 'card'
|
|
63
|
+
* @remarks `'card' | 'flat'`
|
|
64
|
+
* @fumadocsType `'card' | 'flat'`
|
|
65
|
+
*/
|
|
66
|
+
shape?: 'card' | 'flat' | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Renders a bottom border. Omit it on the last row of a tight list.
|
|
69
|
+
* @default false
|
|
70
|
+
* @remarks `boolean`
|
|
71
|
+
* @fumadocsType `boolean`
|
|
72
|
+
*/
|
|
73
|
+
showSeparator?: boolean | null | undefined;
|
|
31
74
|
className?: string;
|
|
32
75
|
}
|
|
33
76
|
declare const TileRoot: import("react").ForwardRefExoticComponent<TileProps & import("react").RefAttributes<View>>;
|
|
@@ -44,6 +87,11 @@ declare const TileContent: import("react").ForwardRefExoticComponent<TileContent
|
|
|
44
87
|
export interface TileTitleProps extends TextProps {
|
|
45
88
|
asChild?: boolean;
|
|
46
89
|
className?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Maximum lines before the title truncates.
|
|
92
|
+
* @default 1
|
|
93
|
+
*/
|
|
94
|
+
numberOfLines?: number;
|
|
47
95
|
}
|
|
48
96
|
declare const TileTitle: import("react").ForwardRefExoticComponent<TileTitleProps & import("react").RefAttributes<Text>>;
|
|
49
97
|
export interface TileDescriptionProps extends TextProps {
|
|
@@ -54,6 +102,7 @@ declare const TileDescription: import("react").ForwardRefExoticComponent<TileDes
|
|
|
54
102
|
export interface TileIndicatorProps extends ITileIndicatorProps {
|
|
55
103
|
asChild?: boolean;
|
|
56
104
|
className?: string;
|
|
105
|
+
/** Replaces the default radio or checkbox visual when provided. */
|
|
57
106
|
children?: ReactNode;
|
|
58
107
|
}
|
|
59
108
|
declare const TileIndicator: import("react").ForwardRefExoticComponent<TileIndicatorProps & import("react").RefAttributes<View>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Tile/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAML,cAAc,EACd,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC5B,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EASL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,UAAU,CAAC;AAqB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AQ,GAAG;IACpC,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB,WAAW,EAAE,OAAO,eAAe,CAAC;IACpC,OAAO,EAAE,OAAO,WAAW,CAAC;IAC5B,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB,WAAW,EAAE,OAAO,eAAe,CAAC;IACpC,SAAS,EAAE,OAAO,aAAa,CAAC;IAChC,YAAY,EAAE,OAAO,gBAAgB,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,IAAI,EAQX,YAAY,CAAC;AAEnB,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -23,6 +23,21 @@ type ToastCompoundComponent = typeof ToastRoot & {
|
|
|
23
23
|
Action: typeof ToastAction;
|
|
24
24
|
Close: typeof ToastClose;
|
|
25
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* Presentational toast root, rendered inside a `toast.show({ component })`
|
|
28
|
+
* render function with the supplied props spread onto it.
|
|
29
|
+
*
|
|
30
|
+
* The root lays out its direct children as a fixed row regardless of JSX
|
|
31
|
+
* order: the first `Toast.Icon` at the start, every `Toast.Action` and
|
|
32
|
+
* `Toast.Close` at the end in source order, and every other child
|
|
33
|
+
* (`Toast.Title`, `Toast.Description`, custom content) in a text column
|
|
34
|
+
* between them. Additional `Toast.Icon` children are dropped.
|
|
35
|
+
*
|
|
36
|
+
* `Toast.Icon`, `Toast.Action`, and `Toast.Close` must be direct children.
|
|
37
|
+
* They are matched by component identity, so wrapping them in `memo()`, an
|
|
38
|
+
* HOC, or a custom component hides them from the root and they render in the
|
|
39
|
+
* text column instead.
|
|
40
|
+
*/
|
|
26
41
|
export declare const Toast: ToastCompoundComponent;
|
|
27
42
|
export type { ToastColor, ToastPlacement, ToastRootAnimation, ToastProps, ToastTitleProps, ToastDescriptionProps, ToastIconProps, ToastActionProps, ToastCloseProps, ToastContextValue, ToastRootRef, DefaultToastProps, } from './types';
|
|
28
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAY,IAAI,EAAE,MAAM,cAAc,CAAC;AA+B9C,OAAO,KAAK,EACV,iBAAiB,EAKjB,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,eAAe,EAChB,MAAM,SAAS,CAAC;AA6CjB,QAAA,MAAM,SAAS,6FA0Ob,CAAC;AAIH,QAAA,MAAM,UAAU,kGAoBd,CAAC;AAIH,QAAA,MAAM,gBAAgB,wGAiBpB,CAAC;AAIH,QAAA,MAAM,SAAS;kDAAiD,cAAc;;CA4B7E,CAAC;AAMF,QAAA,MAAM,WAAW,2GAqBf,CAAC;AAIH,QAAA,MAAM,UAAU;;wCA8Bd,CAAC;AAIH;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAiEpD;AAWD,KAAK,sBAAsB,GAAG,OAAO,SAAS,GAAG;IAC/C,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,WAAW,EAAE,OAAO,gBAAgB,CAAC;IACrC,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,KAAK,EAAE,OAAO,UAAU,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,KAAK,EAMZ,sBAAsB,CAAC;AAE7B,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
|
|
@@ -48,6 +48,10 @@ export declare const toastRootVariants: (props?: ({
|
|
|
48
48
|
* on the `top-*` / `bottom-*` variants also seeds the entering-state offset synchronously
|
|
49
49
|
* — CSS transitions to `translate-y-0` when `data-state` flips to `open`.
|
|
50
50
|
*
|
|
51
|
+
* Centered placements span the row (`inset-x-0`) and center a `w-fit` box with auto margins.
|
|
52
|
+
* Do not center with `left-1/2` + `-translate-x-1/2`: an absolute box that starts at the
|
|
53
|
+
* midpoint shrink-to-fits into half the container, so short labels wrap long before 460px.
|
|
54
|
+
*
|
|
51
55
|
* `motion-reduce:transition-none` collapses the transition for users with
|
|
52
56
|
* `prefers-reduced-motion: reduce`. In that case `transitionend` may never fire, so
|
|
53
57
|
* the Toast component's safety timeout handles removal.
|
|
@@ -55,6 +59,12 @@ export declare const toastRootVariants: (props?: ({
|
|
|
55
59
|
export declare const toastWrapperVariants: (props?: ({
|
|
56
60
|
placement?: "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | null | undefined;
|
|
57
61
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
62
|
+
/**
|
|
63
|
+
* Internal text column the root renders between the leading icon and the
|
|
64
|
+
* trailing controls. Holds `Toast.Title`, `Toast.Description`, and any
|
|
65
|
+
* unrecognized children.
|
|
66
|
+
*/
|
|
67
|
+
export declare const toastTextVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
58
68
|
export declare const toastLabelVariants: (props?: ({
|
|
59
69
|
color?: "danger" | "warning" | "success" | "info" | "neutral" | null | undefined;
|
|
60
70
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB;;8EAuB7B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB;;8EAuB7B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB;;8EAsDhC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,oFAAmC,CAAC;AAElE,eAAO,MAAM,kBAAkB;;8EAa7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;8EAanC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;8EAa5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;CAI1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -175,6 +175,15 @@ export interface ToastProps extends ToastRootProps, Omit<ToastComponentProps, 'i
|
|
|
175
175
|
* @default true
|
|
176
176
|
*/
|
|
177
177
|
isAnimatedStyleActive?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Laid out automatically: the first `Toast.Icon` at the start, `Toast.Action`
|
|
180
|
+
* and `Toast.Close` at the end, and everything else in a text column between
|
|
181
|
+
* them. Additional `Toast.Icon` children are dropped. `Toast.Icon`,
|
|
182
|
+
* `Toast.Action`, and `Toast.Close` must be **direct** children — wrapping
|
|
183
|
+
* them in `memo()` or an HOC hides them from the layout, and they render in
|
|
184
|
+
* the text column instead.
|
|
185
|
+
*/
|
|
186
|
+
children?: React.ReactNode;
|
|
178
187
|
}
|
|
179
188
|
/**
|
|
180
189
|
* Props for the Toast.Title component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO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C;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE;QACxB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB,KAAK,MAAM,CAAC;QACrD,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,MAAM,EAAE,GAAG,KAAK,KAAK,IAAI,CAAC;KACxD,KAAK,IAAI,CAAC;IACX;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React, { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { Text, View, type TextProps } from 'react-native';
|
|
3
|
+
import { type IToggleButtonGroupMultipleProps, type IToggleButtonGroupSingleProps, type IToggleButtonProps } from '@cdx-ui/primitives';
|
|
4
|
+
import { type IconProps } from '../Icon';
|
|
5
|
+
import { type IconSlotPosition } from '../../utils/positionToDataIcon';
|
|
6
|
+
import { type ToggleButtonGroupVariantProps, type ToggleButtonVariantProps } from './styles';
|
|
7
|
+
export type ToggleButtonVariant = 'default' | 'outline' | 'ghost';
|
|
8
|
+
export type ToggleButtonShape = NonNullable<ToggleButtonVariantProps['shape']>;
|
|
9
|
+
export interface ToggleButtonProps extends IToggleButtonProps {
|
|
10
|
+
/**
|
|
11
|
+
* Visual style. `default` is a muted filled surface; `outline` adds a border; `ghost` is transparent.
|
|
12
|
+
* @default 'default'
|
|
13
|
+
*/
|
|
14
|
+
variant?: ToggleButtonVariant;
|
|
15
|
+
/**
|
|
16
|
+
* Corner geometry — mirrors `Avatar.shape`.
|
|
17
|
+
* @default 'circle'
|
|
18
|
+
*/
|
|
19
|
+
shape?: ToggleButtonShape;
|
|
20
|
+
/**
|
|
21
|
+
* Height and padding scale.
|
|
22
|
+
* @default 'default'
|
|
23
|
+
*/
|
|
24
|
+
size?: 'small' | 'default' | 'large';
|
|
25
|
+
className?: string;
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
declare const ToggleButtonRoot: React.ForwardRefExoticComponent<ToggleButtonProps & React.RefAttributes<View>>;
|
|
29
|
+
export interface ToggleButtonLabelProps extends TextProps {
|
|
30
|
+
/** Render the consumer's child in place of the default `Text` host. */
|
|
31
|
+
asChild?: boolean;
|
|
32
|
+
className?: string;
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
declare const ToggleButtonLabel: React.ForwardRefExoticComponent<ToggleButtonLabelProps & React.RefAttributes<Text>>;
|
|
36
|
+
export interface ToggleButtonIconProps extends Omit<IconProps, 'children' | 'as'> {
|
|
37
|
+
/** Render a custom element instead of the default icon. */
|
|
38
|
+
asChild?: boolean;
|
|
39
|
+
/** Forge icon component to render. */
|
|
40
|
+
as?: IconProps['as'];
|
|
41
|
+
/** Leading or trailing placement relative to the label. */
|
|
42
|
+
position?: IconSlotPosition;
|
|
43
|
+
/**
|
|
44
|
+
* Render the filled icon variant. Defaults to the toggle's selected state.
|
|
45
|
+
* Icons without filled path data stay outlined.
|
|
46
|
+
*/
|
|
47
|
+
filled?: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare const ToggleButtonIcon: {
|
|
50
|
+
({ asChild, className, style, as, position, filled, ...props }: ToggleButtonIconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
type ToggleButtonGroupSingleStyledProps = IToggleButtonGroupSingleProps & ToggleButtonGroupVariantProps & {
|
|
54
|
+
className?: string;
|
|
55
|
+
children: ReactElement | ReactElement[];
|
|
56
|
+
/**
|
|
57
|
+
* Collapse gaps and adjoining corners into a single segmented control.
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
isAttached?: boolean;
|
|
61
|
+
};
|
|
62
|
+
type ToggleButtonGroupMultipleStyledProps = IToggleButtonGroupMultipleProps & ToggleButtonGroupVariantProps & {
|
|
63
|
+
className?: string;
|
|
64
|
+
children: ReactElement | ReactElement[];
|
|
65
|
+
/**
|
|
66
|
+
* Collapse gaps and adjoining corners into a single segmented control.
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
isAttached?: boolean;
|
|
70
|
+
};
|
|
71
|
+
export type ToggleButtonGroupProps = ToggleButtonGroupSingleStyledProps | ToggleButtonGroupMultipleStyledProps;
|
|
72
|
+
declare const ToggleButtonGroup: React.ForwardRefExoticComponent<ToggleButtonGroupProps & React.RefAttributes<View>>;
|
|
73
|
+
export declare const ToggleButton: typeof ToggleButtonRoot & {
|
|
74
|
+
Label: typeof ToggleButtonLabel;
|
|
75
|
+
Icon: typeof ToggleButtonIcon;
|
|
76
|
+
};
|
|
77
|
+
export { ToggleButtonGroup };
|
|
78
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ToggleButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAuB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACtF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAkB,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAC1F,OAAO,EAOL,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAsB,KAAK,gBAAgB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