@moul-dev/ui 2026.8.20 → 2026.8.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/stylex.css +434 -0
- package/dist/moul-ui.js +4860 -2148
- package/dist/src/components/Avatar/Avatar.d.ts +10 -0
- package/dist/src/components/Avatar/Avatar.styles.d.ts +178 -6
- package/dist/src/components/Avatar/AvatarGroup.d.ts +18 -0
- package/dist/src/components/Avatar/index.d.ts +3 -1
- package/dist/src/components/Badge/Badge.d.ts +4 -1
- package/dist/src/components/Badge/Badge.styles.d.ts +59 -3
- package/dist/src/components/Badge/index.d.ts +1 -1
- package/dist/src/components/Button/Button.styles.d.ts +1 -0
- package/dist/src/components/Calendar/Calendar.d.ts +24 -0
- package/dist/src/components/Calendar/Calendar.styles.d.ts +161 -0
- package/dist/src/components/Calendar/index.d.ts +2 -0
- package/dist/src/components/ComboBox/ComboBox.styles.d.ts +8 -0
- package/dist/src/components/CommandPalette/CommandPalette.d.ts +81 -0
- package/dist/src/components/CommandPalette/CommandPalette.styles.d.ts +216 -0
- package/dist/src/components/CommandPalette/index.d.ts +2 -0
- package/dist/src/components/DateField/DateField.d.ts +24 -0
- package/dist/src/components/DateField/DateField.styles.d.ts +99 -0
- package/dist/src/components/DateField/index.d.ts +2 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +23 -0
- package/dist/src/components/DatePicker/DatePicker.styles.d.ts +127 -0
- package/dist/src/components/DatePicker/index.d.ts +2 -0
- package/dist/src/components/EmptyState/EmptyState.d.ts +44 -0
- package/dist/src/components/EmptyState/EmptyState.styles.d.ts +134 -0
- package/dist/src/components/EmptyState/index.d.ts +2 -0
- package/dist/src/components/LogsViewer/Logs.styles.d.ts +4 -0
- package/dist/src/components/NumberField/NumberField.styles.d.ts +8 -0
- package/dist/src/components/Pagination/Pagination.d.ts +105 -0
- package/dist/src/components/Pagination/Pagination.styles.d.ts +152 -0
- package/dist/src/components/Pagination/index.d.ts +2 -0
- package/dist/src/components/ProgressBar/ProgressBar.d.ts +22 -0
- package/dist/src/components/ProgressBar/ProgressBar.styles.d.ts +83 -0
- package/dist/src/components/ProgressBar/index.d.ts +2 -0
- package/dist/src/components/SearchField/SearchField.styles.d.ts +23 -0
- package/dist/src/components/Skeleton/Skeleton.d.ts +5 -0
- package/dist/src/components/Skeleton/Skeleton.styles.d.ts +22 -1
- package/dist/src/components/Skeleton/index.d.ts +1 -1
- package/dist/src/components/Spinner/Spinner.d.ts +2 -0
- package/dist/src/components/Spinner/Spinner.styles.d.ts +19 -1
- package/dist/src/components/Spinner/index.d.ts +1 -1
- package/dist/src/components/Table/Table.d.ts +11 -2
- package/dist/src/components/Table/Table.styles.d.ts +54 -0
- package/dist/src/components/TextArea/TextArea.styles.d.ts +2 -0
- package/dist/src/components/TextField/TextField.styles.d.ts +2 -0
- package/dist/src/components/ToggleButton/ToggleButton.styles.d.ts +16 -9
- package/dist/src/index.d.ts +21 -6
- package/dist/src/tokens/tokens.stylex.d.ts +1 -0
- package/dist/tokens.stylex.js +138 -0
- package/package.json +9 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
export declare const styles: Readonly<{
|
|
3
|
+
readonly container: Readonly<{
|
|
4
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
5
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
6
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
7
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
8
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
|
|
9
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
10
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
11
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
12
|
+
}>;
|
|
13
|
+
readonly alignStart: Readonly<{
|
|
14
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "flex-start">;
|
|
15
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "start">;
|
|
16
|
+
}>;
|
|
17
|
+
readonly alignCenter: Readonly<{
|
|
18
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
19
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
|
|
20
|
+
}>;
|
|
21
|
+
readonly sizeSm: Readonly<{
|
|
22
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", `${stylex.StyleXVar<string>} ${stylex.StyleXVar<string>}`>;
|
|
23
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
24
|
+
}>;
|
|
25
|
+
readonly sizeMd: Readonly<{
|
|
26
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", `${stylex.StyleXVar<string>} ${stylex.StyleXVar<string>}`>;
|
|
27
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
28
|
+
}>;
|
|
29
|
+
readonly sizeLg: Readonly<{
|
|
30
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", `${stylex.StyleXVar<string>} ${stylex.StyleXVar<string>}`>;
|
|
31
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
32
|
+
}>;
|
|
33
|
+
readonly variantDefault: Readonly<{
|
|
34
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
35
|
+
}>;
|
|
36
|
+
readonly variantDashed: Readonly<{
|
|
37
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
38
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
39
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "dashed">;
|
|
40
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
41
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
42
|
+
}>;
|
|
43
|
+
readonly variantCard: Readonly<{
|
|
44
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
45
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
46
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
47
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
48
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
49
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
|
|
50
|
+
}>;
|
|
51
|
+
readonly iconWrapper: Readonly<{
|
|
52
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
53
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
54
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
55
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
56
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
57
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
58
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
59
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
60
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
61
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
62
|
+
}>;
|
|
63
|
+
readonly iconPrimary: Readonly<{
|
|
64
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
65
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
66
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
67
|
+
}>;
|
|
68
|
+
readonly iconSm: Readonly<{
|
|
69
|
+
readonly width: stylex.StyleXClassNameFor<"width", "36px">;
|
|
70
|
+
readonly height: stylex.StyleXClassNameFor<"height", "36px">;
|
|
71
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", "18px">;
|
|
72
|
+
}>;
|
|
73
|
+
readonly iconMd: Readonly<{
|
|
74
|
+
readonly width: stylex.StyleXClassNameFor<"width", "48px">;
|
|
75
|
+
readonly height: stylex.StyleXClassNameFor<"height", "48px">;
|
|
76
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", "24px">;
|
|
77
|
+
}>;
|
|
78
|
+
readonly iconLg: Readonly<{
|
|
79
|
+
readonly width: stylex.StyleXClassNameFor<"width", "64px">;
|
|
80
|
+
readonly height: stylex.StyleXClassNameFor<"height", "64px">;
|
|
81
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", "32px">;
|
|
82
|
+
}>;
|
|
83
|
+
readonly content: Readonly<{
|
|
84
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
85
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
86
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
87
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "inherit">;
|
|
88
|
+
readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "440px">;
|
|
89
|
+
}>;
|
|
90
|
+
readonly title: Readonly<{
|
|
91
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
92
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
93
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
94
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
95
|
+
}>;
|
|
96
|
+
readonly titleSm: Readonly<{
|
|
97
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
98
|
+
}>;
|
|
99
|
+
readonly titleMd: Readonly<{
|
|
100
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
101
|
+
}>;
|
|
102
|
+
readonly titleLg: Readonly<{
|
|
103
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
104
|
+
}>;
|
|
105
|
+
readonly description: Readonly<{
|
|
106
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
107
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
108
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
109
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
110
|
+
}>;
|
|
111
|
+
readonly descriptionSm: Readonly<{
|
|
112
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
113
|
+
}>;
|
|
114
|
+
readonly descriptionMd: Readonly<{
|
|
115
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
116
|
+
}>;
|
|
117
|
+
readonly descriptionLg: Readonly<{
|
|
118
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
119
|
+
}>;
|
|
120
|
+
readonly actions: Readonly<{
|
|
121
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
122
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "row">;
|
|
123
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
124
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
125
|
+
readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
|
|
126
|
+
readonly marginBlockStart: stylex.StyleXClassNameFor<"marginBlockStart", string>;
|
|
127
|
+
}>;
|
|
128
|
+
readonly actionsStart: Readonly<{
|
|
129
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "flex-start">;
|
|
130
|
+
}>;
|
|
131
|
+
readonly actionsCenter: Readonly<{
|
|
132
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
133
|
+
}>;
|
|
134
|
+
}>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { EmptyStateActionsProps, EmptyStateAlign, EmptyStateDescriptionProps, EmptyStateIconProps, EmptyStateProps, EmptyStateSize, EmptyStateTitleProps, EmptyStateVariant, } from './EmptyState';
|
|
2
|
+
export { EmptyState, EmptyStateActions, EmptyStateDescription, EmptyStateIcon, EmptyStateTitle, } from './EmptyState';
|
|
@@ -70,6 +70,10 @@ export declare const styles: Readonly<{
|
|
|
70
70
|
readonly overflowX: stylex.StyleXClassNameFor<"overflowX", "auto">;
|
|
71
71
|
readonly overflowY: stylex.StyleXClassNameFor<"overflowY", "auto">;
|
|
72
72
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
73
|
+
readonly scrollBehavior: stylex.StyleXClassNameFor<"scrollBehavior", "smooth">;
|
|
74
|
+
readonly '@media (prefers-reduced-motion: reduce)': stylex.StyleXClassNameFor<"@media (prefers-reduced-motion: reduce)", {
|
|
75
|
+
readonly scrollBehavior: "auto";
|
|
76
|
+
}>;
|
|
73
77
|
}>;
|
|
74
78
|
readonly table: Readonly<{
|
|
75
79
|
readonly borderCollapse: stylex.StyleXClassNameFor<"borderCollapse", "collapse">;
|
|
@@ -11,12 +11,20 @@ export declare const styles: Readonly<{
|
|
|
11
11
|
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "stretch">;
|
|
12
12
|
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
13
13
|
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
14
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
15
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
14
16
|
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
|
|
15
17
|
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
16
18
|
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
17
19
|
readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "border-color, box-shadow">;
|
|
18
20
|
readonly transitionDuration: stylex.StyleXClassNameFor<"transitionDuration", "0.15s">;
|
|
19
21
|
readonly transitionTimingFunction: stylex.StyleXClassNameFor<"transitionTimingFunction", "ease-in-out">;
|
|
22
|
+
readonly ':hover': stylex.StyleXClassNameFor<":hover", {
|
|
23
|
+
readonly borderColor: stylex.StyleXVar<string>;
|
|
24
|
+
}>;
|
|
25
|
+
readonly '@media (prefers-reduced-motion: reduce)': stylex.StyleXClassNameFor<"@media (prefers-reduced-motion: reduce)", {
|
|
26
|
+
readonly transitionProperty: "none";
|
|
27
|
+
}>;
|
|
20
28
|
}>;
|
|
21
29
|
readonly groupSm: Readonly<{
|
|
22
30
|
readonly height: stylex.StyleXClassNameFor<"height", `calc(${stylex.StyleXVar<string>} * 2 + ${stylex.StyleXVar<string>})`>;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export type PaginationVariant = 'primary' | 'outline' | 'ghost' | 'subtle';
|
|
5
|
+
export type PaginationSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
export type PaginationShape = 'rounded' | 'circle' | 'square';
|
|
7
|
+
export declare function generatePagination({ page, totalPages, siblingCount, }: {
|
|
8
|
+
page: number;
|
|
9
|
+
totalPages: number;
|
|
10
|
+
siblingCount?: number;
|
|
11
|
+
}): (number | 'ellipsis-start' | 'ellipsis-end')[];
|
|
12
|
+
export interface PaginationContentProps extends Omit<React.HTMLAttributes<HTMLUListElement>, 'style'> {
|
|
13
|
+
style?: StyleXStyles;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const PaginationContent: React.ForwardRefExoticComponent<PaginationContentProps & React.RefAttributes<HTMLUListElement>>;
|
|
17
|
+
export interface PaginationItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>, 'style'> {
|
|
18
|
+
style?: StyleXStyles;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const PaginationItem: React.ForwardRefExoticComponent<PaginationItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
22
|
+
export interface PaginationLinkProps extends Omit<AriaButtonProps, 'style' | 'children'> {
|
|
23
|
+
page?: number;
|
|
24
|
+
isActive?: boolean;
|
|
25
|
+
isDisabled?: boolean;
|
|
26
|
+
size?: PaginationSize;
|
|
27
|
+
variant?: PaginationVariant;
|
|
28
|
+
shape?: PaginationShape;
|
|
29
|
+
style?: StyleXStyles;
|
|
30
|
+
className?: string;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export declare const PaginationLink: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
export interface PaginationPreviousProps extends PaginationLinkProps {
|
|
35
|
+
showText?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare const PaginationPrevious: React.ForwardRefExoticComponent<PaginationPreviousProps & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
export interface PaginationNextProps extends PaginationLinkProps {
|
|
39
|
+
showText?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare const PaginationNext: React.ForwardRefExoticComponent<PaginationNextProps & React.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
export declare const PaginationFirst: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
export declare const PaginationLast: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLButtonElement>>;
|
|
44
|
+
export interface PaginationEllipsisProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'style'> {
|
|
45
|
+
style?: StyleXStyles;
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
export declare const PaginationEllipsis: React.ForwardRefExoticComponent<PaginationEllipsisProps & React.RefAttributes<HTMLSpanElement>>;
|
|
49
|
+
export interface PaginationSummaryProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'style' | 'children'> {
|
|
50
|
+
total?: number;
|
|
51
|
+
page?: number;
|
|
52
|
+
pageSize?: number;
|
|
53
|
+
totalPages?: number;
|
|
54
|
+
style?: StyleXStyles;
|
|
55
|
+
className?: string;
|
|
56
|
+
children?: React.ReactNode | ((info: {
|
|
57
|
+
start: number;
|
|
58
|
+
end: number;
|
|
59
|
+
total: number;
|
|
60
|
+
page: number;
|
|
61
|
+
totalPages: number;
|
|
62
|
+
}) => React.ReactNode);
|
|
63
|
+
}
|
|
64
|
+
export declare const PaginationSummary: React.ForwardRefExoticComponent<PaginationSummaryProps & React.RefAttributes<HTMLSpanElement>>;
|
|
65
|
+
export interface PaginationPageSizeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style' | 'onChange'> {
|
|
66
|
+
pageSize?: number;
|
|
67
|
+
pageSizeOptions?: number[];
|
|
68
|
+
onChange?: (pageSize: number) => void;
|
|
69
|
+
label?: string;
|
|
70
|
+
style?: StyleXStyles;
|
|
71
|
+
className?: string;
|
|
72
|
+
}
|
|
73
|
+
export declare const PaginationPageSize: React.ForwardRefExoticComponent<PaginationPageSizeProps & React.RefAttributes<HTMLDivElement>>;
|
|
74
|
+
export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLElement>, 'style' | 'onChange'> {
|
|
75
|
+
page?: number;
|
|
76
|
+
defaultPage?: number;
|
|
77
|
+
totalPages?: number;
|
|
78
|
+
total?: number;
|
|
79
|
+
pageSize?: number;
|
|
80
|
+
defaultPageSize?: number;
|
|
81
|
+
pageSizeOptions?: number[];
|
|
82
|
+
siblingCount?: number;
|
|
83
|
+
showPageSize?: boolean;
|
|
84
|
+
showSummary?: boolean;
|
|
85
|
+
showFirstLast?: boolean;
|
|
86
|
+
showPrevNext?: boolean;
|
|
87
|
+
showNavText?: boolean;
|
|
88
|
+
size?: PaginationSize;
|
|
89
|
+
variant?: PaginationVariant;
|
|
90
|
+
shape?: PaginationShape;
|
|
91
|
+
onChange?: (page: number) => void;
|
|
92
|
+
onPageChange?: (page: number) => void;
|
|
93
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
94
|
+
summary?: React.ReactNode | ((info: {
|
|
95
|
+
start: number;
|
|
96
|
+
end: number;
|
|
97
|
+
total: number;
|
|
98
|
+
page: number;
|
|
99
|
+
totalPages: number;
|
|
100
|
+
}) => React.ReactNode);
|
|
101
|
+
style?: StyleXStyles;
|
|
102
|
+
className?: string;
|
|
103
|
+
children?: React.ReactNode;
|
|
104
|
+
}
|
|
105
|
+
export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
export declare const styles: Readonly<{
|
|
3
|
+
readonly root: Readonly<{
|
|
4
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
5
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
6
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
|
|
7
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
8
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
9
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
10
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
11
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
12
|
+
readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
|
|
13
|
+
}>;
|
|
14
|
+
readonly content: Readonly<{
|
|
15
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
16
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "row">;
|
|
17
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
18
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
19
|
+
readonly listStyle: stylex.StyleXClassNameFor<"listStyle", "none">;
|
|
20
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
21
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", 0>;
|
|
22
|
+
}>;
|
|
23
|
+
readonly item: Readonly<{
|
|
24
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
25
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
26
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
27
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", 0>;
|
|
28
|
+
}>;
|
|
29
|
+
readonly link: Readonly<{
|
|
30
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
31
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
32
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
33
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
34
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
35
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
36
|
+
readonly userSelect: stylex.StyleXClassNameFor<"userSelect", "none">;
|
|
37
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
38
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
39
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
40
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "transparent">;
|
|
41
|
+
readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "background-color, border-color, color, box-shadow">;
|
|
42
|
+
readonly transitionDuration: stylex.StyleXClassNameFor<"transitionDuration", "0.15s">;
|
|
43
|
+
readonly transitionTimingFunction: stylex.StyleXClassNameFor<"transitionTimingFunction", "ease-in-out">;
|
|
44
|
+
readonly textDecoration: stylex.StyleXClassNameFor<"textDecoration", "none">;
|
|
45
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
46
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
47
|
+
}>;
|
|
48
|
+
readonly linkHover: Readonly<{
|
|
49
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
50
|
+
}>;
|
|
51
|
+
readonly linkFocus: Readonly<{
|
|
52
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `0 0 0 2px ${stylex.StyleXVar<string>}, 0 0 0 4px ${stylex.StyleXVar<string>}`>;
|
|
53
|
+
}>;
|
|
54
|
+
readonly linkDisabled: Readonly<{
|
|
55
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.35>;
|
|
56
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
57
|
+
readonly pointerEvents: stylex.StyleXClassNameFor<"pointerEvents", "none">;
|
|
58
|
+
}>;
|
|
59
|
+
readonly linkSm: Readonly<{
|
|
60
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", "28px">;
|
|
61
|
+
readonly height: stylex.StyleXClassNameFor<"height", "28px">;
|
|
62
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
63
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
64
|
+
}>;
|
|
65
|
+
readonly linkMd: Readonly<{
|
|
66
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", "36px">;
|
|
67
|
+
readonly height: stylex.StyleXClassNameFor<"height", "36px">;
|
|
68
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
69
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
70
|
+
}>;
|
|
71
|
+
readonly linkLg: Readonly<{
|
|
72
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", "44px">;
|
|
73
|
+
readonly height: stylex.StyleXClassNameFor<"height", "44px">;
|
|
74
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
75
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
76
|
+
}>;
|
|
77
|
+
readonly shapeRounded: Readonly<{
|
|
78
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
79
|
+
}>;
|
|
80
|
+
readonly shapeCircle: Readonly<{
|
|
81
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
82
|
+
}>;
|
|
83
|
+
readonly shapeSquare: Readonly<{
|
|
84
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
85
|
+
}>;
|
|
86
|
+
readonly variantGhost: Readonly<{
|
|
87
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
88
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "transparent">;
|
|
89
|
+
}>;
|
|
90
|
+
readonly variantOutline: Readonly<{
|
|
91
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
92
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
93
|
+
}>;
|
|
94
|
+
readonly variantSubtle: Readonly<{
|
|
95
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
96
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "transparent">;
|
|
97
|
+
}>;
|
|
98
|
+
readonly linkActive: Readonly<{
|
|
99
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
100
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
101
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
102
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
103
|
+
}>;
|
|
104
|
+
readonly linkActiveOutline: Readonly<{
|
|
105
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
106
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
107
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
108
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
109
|
+
}>;
|
|
110
|
+
readonly ellipsis: Readonly<{
|
|
111
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
112
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
113
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
114
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", "28px">;
|
|
115
|
+
readonly height: stylex.StyleXClassNameFor<"height", "28px">;
|
|
116
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
117
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
118
|
+
readonly userSelect: stylex.StyleXClassNameFor<"userSelect", "none">;
|
|
119
|
+
}>;
|
|
120
|
+
readonly navButtonText: Readonly<{
|
|
121
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
122
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
123
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
124
|
+
}>;
|
|
125
|
+
readonly summary: Readonly<{
|
|
126
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
127
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
128
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
129
|
+
}>;
|
|
130
|
+
readonly pageSizeContainer: Readonly<{
|
|
131
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
132
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
133
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
134
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
135
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
136
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
137
|
+
}>;
|
|
138
|
+
readonly pageSizeSelect: Readonly<{
|
|
139
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
140
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
141
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
142
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
143
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
144
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
145
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
146
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
147
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
148
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
149
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
150
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
151
|
+
}>;
|
|
152
|
+
}>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationLinkProps, PaginationNextProps, PaginationPageSizeProps, PaginationPreviousProps, PaginationProps, PaginationShape, PaginationSize, PaginationSummaryProps, PaginationVariant, } from './Pagination';
|
|
2
|
+
export { generatePagination, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPageSize, PaginationPrevious, PaginationSummary, } from './Pagination';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
|
+
import { ProgressBarProps as AriaProgressBarProps } from 'react-aria-components';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export type ProgressBarVariant = 'primary' | 'accent' | 'success' | 'warning' | 'error' | 'neutral';
|
|
5
|
+
export type ProgressBarSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
export type ProgressBarShape = 'pill' | 'square';
|
|
7
|
+
export interface ProgressBarProps extends Omit<AriaProgressBarProps, 'style' | 'children'> {
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
showValueText?: boolean;
|
|
10
|
+
variant?: ProgressBarVariant;
|
|
11
|
+
size?: ProgressBarSize;
|
|
12
|
+
shape?: ProgressBarShape;
|
|
13
|
+
color?: string;
|
|
14
|
+
style?: StyleXStyles;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode | ((values: {
|
|
17
|
+
percentage?: number;
|
|
18
|
+
valueText?: string;
|
|
19
|
+
isIndeterminate: boolean;
|
|
20
|
+
}) => React.ReactNode);
|
|
21
|
+
}
|
|
22
|
+
export declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
export declare const styles: Readonly<{
|
|
3
|
+
readonly container: Readonly<{
|
|
4
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
5
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
6
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
7
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
8
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
9
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
10
|
+
}>;
|
|
11
|
+
readonly header: Readonly<{
|
|
12
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
13
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
|
|
14
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
15
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
16
|
+
}>;
|
|
17
|
+
readonly label: Readonly<{
|
|
18
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
19
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
20
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
21
|
+
}>;
|
|
22
|
+
readonly value: Readonly<{
|
|
23
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
24
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
25
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
26
|
+
readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
|
|
27
|
+
}>;
|
|
28
|
+
readonly track: Readonly<{
|
|
29
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
30
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
31
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
32
|
+
readonly position: stylex.StyleXClassNameFor<"position", "relative">;
|
|
33
|
+
}>;
|
|
34
|
+
readonly trackSm: Readonly<{
|
|
35
|
+
readonly height: stylex.StyleXClassNameFor<"height", "4px">;
|
|
36
|
+
}>;
|
|
37
|
+
readonly trackMd: Readonly<{
|
|
38
|
+
readonly height: stylex.StyleXClassNameFor<"height", "8px">;
|
|
39
|
+
}>;
|
|
40
|
+
readonly trackLg: Readonly<{
|
|
41
|
+
readonly height: stylex.StyleXClassNameFor<"height", "12px">;
|
|
42
|
+
}>;
|
|
43
|
+
readonly shapePill: Readonly<{
|
|
44
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
45
|
+
}>;
|
|
46
|
+
readonly shapeSquare: Readonly<{
|
|
47
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
48
|
+
}>;
|
|
49
|
+
readonly fill: Readonly<{
|
|
50
|
+
readonly height: stylex.StyleXClassNameFor<"height", "100%">;
|
|
51
|
+
readonly transition: stylex.StyleXClassNameFor<"transition", "width 0.3s cubic-bezier(0.4, 0, 0.2, 1)">;
|
|
52
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", "inherit">;
|
|
53
|
+
}>;
|
|
54
|
+
readonly fillIndeterminate: Readonly<{
|
|
55
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
56
|
+
readonly transformOrigin: stylex.StyleXClassNameFor<"transformOrigin", "left center">;
|
|
57
|
+
readonly animationName: stylex.StyleXClassNameFor<"animationName", string>;
|
|
58
|
+
readonly animationDuration: stylex.StyleXClassNameFor<"animationDuration", "1.5s">;
|
|
59
|
+
readonly animationIterationCount: stylex.StyleXClassNameFor<"animationIterationCount", "infinite">;
|
|
60
|
+
readonly animationTimingFunction: stylex.StyleXClassNameFor<"animationTimingFunction", "easeInOut">;
|
|
61
|
+
readonly '@media (prefers-reduced-motion: reduce)': stylex.StyleXClassNameFor<"@media (prefers-reduced-motion: reduce)", {
|
|
62
|
+
readonly animationPlayState: "paused";
|
|
63
|
+
}>;
|
|
64
|
+
}>;
|
|
65
|
+
readonly primary: Readonly<{
|
|
66
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
67
|
+
}>;
|
|
68
|
+
readonly accent: Readonly<{
|
|
69
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
70
|
+
}>;
|
|
71
|
+
readonly success: Readonly<{
|
|
72
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
73
|
+
}>;
|
|
74
|
+
readonly warning: Readonly<{
|
|
75
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
76
|
+
}>;
|
|
77
|
+
readonly error: Readonly<{
|
|
78
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
79
|
+
}>;
|
|
80
|
+
readonly neutral: Readonly<{
|
|
81
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
82
|
+
}>;
|
|
83
|
+
}>;
|
|
@@ -11,11 +11,19 @@ export declare const styles: Readonly<{
|
|
|
11
11
|
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
12
12
|
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
13
13
|
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
14
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
15
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
14
16
|
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
|
|
15
17
|
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
16
18
|
readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "border-color, box-shadow">;
|
|
17
19
|
readonly transitionDuration: stylex.StyleXClassNameFor<"transitionDuration", "0.15s">;
|
|
18
20
|
readonly transitionTimingFunction: stylex.StyleXClassNameFor<"transitionTimingFunction", "ease-in-out">;
|
|
21
|
+
readonly ':hover': stylex.StyleXClassNameFor<":hover", {
|
|
22
|
+
readonly borderColor: stylex.StyleXVar<string>;
|
|
23
|
+
}>;
|
|
24
|
+
readonly '@media (prefers-reduced-motion: reduce)': stylex.StyleXClassNameFor<"@media (prefers-reduced-motion: reduce)", {
|
|
25
|
+
readonly transitionProperty: "none";
|
|
26
|
+
}>;
|
|
19
27
|
}>;
|
|
20
28
|
readonly groupSm: Readonly<{
|
|
21
29
|
readonly height: stylex.StyleXClassNameFor<"height", `calc(${stylex.StyleXVar<string>} * 2 + ${stylex.StyleXVar<string>})`>;
|
|
@@ -87,6 +95,21 @@ export declare const styles: Readonly<{
|
|
|
87
95
|
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
88
96
|
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
89
97
|
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
98
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
99
|
+
readonly '::-webkit-search-cancel-button': stylex.StyleXClassNameFor<"::-webkit-search-cancel-button", {
|
|
100
|
+
readonly display: "none";
|
|
101
|
+
readonly WebkitAppearance: "none";
|
|
102
|
+
}>;
|
|
103
|
+
readonly '::-webkit-search-decoration': stylex.StyleXClassNameFor<"::-webkit-search-decoration", {
|
|
104
|
+
readonly display: "none";
|
|
105
|
+
readonly WebkitAppearance: "none";
|
|
106
|
+
}>;
|
|
107
|
+
readonly '::-webkit-search-results-button': stylex.StyleXClassNameFor<"::-webkit-search-results-button", {
|
|
108
|
+
readonly display: "none";
|
|
109
|
+
}>;
|
|
110
|
+
readonly '::-webkit-search-results-decoration': stylex.StyleXClassNameFor<"::-webkit-search-results-decoration", {
|
|
111
|
+
readonly display: "none";
|
|
112
|
+
}>;
|
|
90
113
|
}>;
|
|
91
114
|
readonly inputSm: Readonly<{
|
|
92
115
|
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
export type SkeletonVariant = 'block' | 'text' | 'circle';
|
|
4
|
+
export type SkeletonShape = SkeletonVariant;
|
|
3
5
|
export interface SkeletonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
6
|
+
variant?: SkeletonVariant;
|
|
7
|
+
shape?: SkeletonShape;
|
|
8
|
+
count?: number;
|
|
4
9
|
style?: StyleXStyles;
|
|
5
10
|
className?: string;
|
|
6
11
|
}
|
|
@@ -4,14 +4,35 @@ export declare const styles: Readonly<{
|
|
|
4
4
|
readonly '@media (prefers-reduced-motion: reduce)': stylex.StyleXClassNameFor<"@media (prefers-reduced-motion: reduce)", {
|
|
5
5
|
readonly animationPlayState: "paused";
|
|
6
6
|
}>;
|
|
7
|
-
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
8
7
|
readonly animationDuration: stylex.StyleXClassNameFor<"animationDuration", "1.5s">;
|
|
9
8
|
readonly animationIterationCount: stylex.StyleXClassNameFor<"animationIterationCount", "infinite">;
|
|
10
9
|
readonly animationName: stylex.StyleXClassNameFor<"animationName", string>;
|
|
11
10
|
readonly animationTimingFunction: stylex.StyleXClassNameFor<"animationTimingFunction", "cubic-bezier(0.4, 0, 0.6, 1)">;
|
|
12
11
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
12
|
+
}>;
|
|
13
|
+
readonly block: Readonly<{
|
|
14
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
13
15
|
readonly display: stylex.StyleXClassNameFor<"display", "block">;
|
|
14
16
|
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
15
17
|
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
16
18
|
}>;
|
|
19
|
+
readonly text: Readonly<{
|
|
20
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
21
|
+
readonly display: stylex.StyleXClassNameFor<"display", "block">;
|
|
22
|
+
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
23
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
24
|
+
}>;
|
|
25
|
+
readonly circle: Readonly<{
|
|
26
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
27
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-block">;
|
|
28
|
+
readonly width: stylex.StyleXClassNameFor<"width", string>;
|
|
29
|
+
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
30
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
31
|
+
}>;
|
|
32
|
+
readonly container: Readonly<{
|
|
33
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
34
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
35
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
36
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
37
|
+
}>;
|
|
17
38
|
}>;
|