@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,81 @@
|
|
|
1
|
+
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface UseCommandPaletteOptions {
|
|
4
|
+
shortcut?: string | string[];
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function useCommandPalette(options?: UseCommandPaletteOptions): {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
+
open: () => void;
|
|
11
|
+
close: () => void;
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
};
|
|
14
|
+
export interface CommandPaletteItemData {
|
|
15
|
+
id: string;
|
|
16
|
+
onAction?: () => void;
|
|
17
|
+
getElement?: () => HTMLElement | null;
|
|
18
|
+
}
|
|
19
|
+
interface CommandPaletteContextValue {
|
|
20
|
+
search: string;
|
|
21
|
+
setSearch: (value: string) => void;
|
|
22
|
+
activeId: string | null;
|
|
23
|
+
setActiveId: (id: string | null) => void;
|
|
24
|
+
registerItem: (item: CommandPaletteItemData) => () => void;
|
|
25
|
+
handleKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
26
|
+
selectActive: () => void;
|
|
27
|
+
close: () => void;
|
|
28
|
+
matchCount: number;
|
|
29
|
+
}
|
|
30
|
+
export declare function useCommandPaletteContext(): CommandPaletteContextValue;
|
|
31
|
+
export interface CommandPaletteProps {
|
|
32
|
+
isOpen?: boolean;
|
|
33
|
+
defaultOpen?: boolean;
|
|
34
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
35
|
+
shortcut?: string | string[];
|
|
36
|
+
size?: 'sm' | 'md' | 'lg';
|
|
37
|
+
style?: StyleXStyles;
|
|
38
|
+
className?: string;
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
}
|
|
41
|
+
export declare const CommandPalette: React.ForwardRefExoticComponent<CommandPaletteProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
export interface CommandPaletteInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'style'> {
|
|
43
|
+
style?: StyleXStyles;
|
|
44
|
+
className?: string;
|
|
45
|
+
showKbd?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare const CommandPaletteInput: React.ForwardRefExoticComponent<CommandPaletteInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
48
|
+
export interface CommandPaletteListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
49
|
+
style?: StyleXStyles;
|
|
50
|
+
className?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare const CommandPaletteList: React.ForwardRefExoticComponent<CommandPaletteListProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
export interface CommandPaletteSectionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
54
|
+
heading?: string;
|
|
55
|
+
style?: StyleXStyles;
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare const CommandPaletteSection: React.ForwardRefExoticComponent<CommandPaletteSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
export interface CommandPaletteItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style' | 'onSelect'> {
|
|
60
|
+
icon?: React.ReactNode;
|
|
61
|
+
description?: React.ReactNode;
|
|
62
|
+
shortcut?: string | string[];
|
|
63
|
+
badge?: React.ReactNode;
|
|
64
|
+
keywords?: string[];
|
|
65
|
+
onAction?: () => void;
|
|
66
|
+
isDisabled?: boolean;
|
|
67
|
+
style?: StyleXStyles;
|
|
68
|
+
className?: string;
|
|
69
|
+
}
|
|
70
|
+
export declare const CommandPaletteItem: React.ForwardRefExoticComponent<CommandPaletteItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
71
|
+
export interface CommandPaletteEmptyProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
72
|
+
style?: StyleXStyles;
|
|
73
|
+
className?: string;
|
|
74
|
+
}
|
|
75
|
+
export declare const CommandPaletteEmpty: React.ForwardRefExoticComponent<CommandPaletteEmptyProps & React.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
export interface CommandPaletteFooterProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
77
|
+
style?: StyleXStyles;
|
|
78
|
+
className?: string;
|
|
79
|
+
}
|
|
80
|
+
export declare const CommandPaletteFooter: React.ForwardRefExoticComponent<CommandPaletteFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
export {};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
export declare const styles: Readonly<{
|
|
3
|
+
readonly overlay: Readonly<{
|
|
4
|
+
readonly position: stylex.StyleXClassNameFor<"position", "fixed">;
|
|
5
|
+
readonly inset: stylex.StyleXClassNameFor<"inset", 0>;
|
|
6
|
+
readonly zIndex: stylex.StyleXClassNameFor<"zIndex", string>;
|
|
7
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
8
|
+
readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "blur(4px)">;
|
|
9
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
10
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center" | "flex-start">;
|
|
11
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
12
|
+
readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", 0 | "12vh">;
|
|
13
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
14
|
+
readonly animationName: stylex.StyleXClassNameFor<"animationName", string>;
|
|
15
|
+
readonly animationDuration: stylex.StyleXClassNameFor<"animationDuration", "0.2s">;
|
|
16
|
+
readonly animationTimingFunction: stylex.StyleXClassNameFor<"animationTimingFunction", "ease-out">;
|
|
17
|
+
}>;
|
|
18
|
+
readonly dialog: Readonly<{
|
|
19
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
20
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
|
|
21
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
22
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
23
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
24
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
25
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
26
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
27
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
28
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
29
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
30
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
31
|
+
readonly animationName: stylex.StyleXClassNameFor<"animationName", string>;
|
|
32
|
+
readonly animationDuration: stylex.StyleXClassNameFor<"animationDuration", "0.2s">;
|
|
33
|
+
readonly animationTimingFunction: stylex.StyleXClassNameFor<"animationTimingFunction", "cubic-bezier(0.16, 1, 0.3, 1)">;
|
|
34
|
+
}>;
|
|
35
|
+
readonly sm: Readonly<{
|
|
36
|
+
readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "460px">;
|
|
37
|
+
}>;
|
|
38
|
+
readonly md: Readonly<{
|
|
39
|
+
readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "580px">;
|
|
40
|
+
}>;
|
|
41
|
+
readonly lg: Readonly<{
|
|
42
|
+
readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "700px">;
|
|
43
|
+
}>;
|
|
44
|
+
readonly inputWrapper: Readonly<{
|
|
45
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
46
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
47
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
48
|
+
readonly borderBlockEndWidth: stylex.StyleXClassNameFor<"borderBlockEndWidth", "1px">;
|
|
49
|
+
readonly borderBlockEndStyle: stylex.StyleXClassNameFor<"borderBlockEndStyle", "solid">;
|
|
50
|
+
readonly borderBlockEndColor: stylex.StyleXClassNameFor<"borderBlockEndColor", string>;
|
|
51
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
52
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", "52px">;
|
|
53
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
54
|
+
}>;
|
|
55
|
+
readonly searchIcon: Readonly<{
|
|
56
|
+
readonly width: stylex.StyleXClassNameFor<"width", "20px">;
|
|
57
|
+
readonly height: stylex.StyleXClassNameFor<"height", "20px">;
|
|
58
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
59
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
60
|
+
}>;
|
|
61
|
+
readonly input: Readonly<{
|
|
62
|
+
readonly flex: stylex.StyleXClassNameFor<"flex", 1>;
|
|
63
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
|
|
64
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
65
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
66
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
67
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
68
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
69
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
70
|
+
readonly '::placeholder': stylex.StyleXClassNameFor<"::placeholder", {
|
|
71
|
+
readonly color: stylex.StyleXVar<string>;
|
|
72
|
+
}>;
|
|
73
|
+
}>;
|
|
74
|
+
readonly clearButton: Readonly<{
|
|
75
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
76
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
77
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
78
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
79
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
|
|
80
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
81
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
82
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", string>;
|
|
83
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
84
|
+
readonly ':hover': stylex.StyleXClassNameFor<":hover", {
|
|
85
|
+
readonly color: stylex.StyleXVar<string>;
|
|
86
|
+
readonly backgroundColor: stylex.StyleXVar<string>;
|
|
87
|
+
}>;
|
|
88
|
+
}>;
|
|
89
|
+
readonly kbdEsc: Readonly<{
|
|
90
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
91
|
+
}>;
|
|
92
|
+
readonly list: Readonly<{
|
|
93
|
+
readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "340px">;
|
|
94
|
+
readonly overflowY: stylex.StyleXClassNameFor<"overflowY", "auto">;
|
|
95
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", string>;
|
|
96
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
97
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
98
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", "2px">;
|
|
99
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
100
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
101
|
+
}>;
|
|
102
|
+
readonly section: Readonly<{
|
|
103
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
104
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
105
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", "2px">;
|
|
106
|
+
}>;
|
|
107
|
+
readonly sectionHeader: Readonly<{
|
|
108
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
109
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
110
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
111
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
112
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
113
|
+
readonly textTransform: stylex.StyleXClassNameFor<"textTransform", "uppercase">;
|
|
114
|
+
readonly letterSpacing: stylex.StyleXClassNameFor<"letterSpacing", "0.05em">;
|
|
115
|
+
readonly userSelect: stylex.StyleXClassNameFor<"userSelect", "none">;
|
|
116
|
+
}>;
|
|
117
|
+
readonly item: Readonly<{
|
|
118
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
119
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
120
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
|
|
121
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
122
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
123
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
124
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
125
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
126
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
127
|
+
readonly userSelect: stylex.StyleXClassNameFor<"userSelect", "none">;
|
|
128
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
129
|
+
readonly textDecoration: stylex.StyleXClassNameFor<"textDecoration", "none">;
|
|
130
|
+
readonly transition: stylex.StyleXClassNameFor<"transition", "background-color 0.12s ease, color 0.12s ease">;
|
|
131
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
132
|
+
}>;
|
|
133
|
+
readonly itemContent: Readonly<{
|
|
134
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
135
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
136
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
137
|
+
readonly flex: stylex.StyleXClassNameFor<"flex", 1>;
|
|
138
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
|
|
139
|
+
}>;
|
|
140
|
+
readonly itemIcon: Readonly<{
|
|
141
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
142
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
143
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
144
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
145
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
146
|
+
readonly width: stylex.StyleXClassNameFor<"width", "18px">;
|
|
147
|
+
readonly height: stylex.StyleXClassNameFor<"height", "18px">;
|
|
148
|
+
}>;
|
|
149
|
+
readonly itemTextWrapper: Readonly<{
|
|
150
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
151
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
152
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
|
|
153
|
+
}>;
|
|
154
|
+
readonly itemLabel: Readonly<{
|
|
155
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
156
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
157
|
+
readonly textOverflow: stylex.StyleXClassNameFor<"textOverflow", "ellipsis">;
|
|
158
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
159
|
+
}>;
|
|
160
|
+
readonly itemDescription: Readonly<{
|
|
161
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
162
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
163
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
164
|
+
readonly textOverflow: stylex.StyleXClassNameFor<"textOverflow", "ellipsis">;
|
|
165
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
166
|
+
}>;
|
|
167
|
+
readonly itemMeta: Readonly<{
|
|
168
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
169
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
170
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
171
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
172
|
+
}>;
|
|
173
|
+
readonly itemHovered: Readonly<{
|
|
174
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
175
|
+
}>;
|
|
176
|
+
readonly itemActive: Readonly<{
|
|
177
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
178
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
179
|
+
}>;
|
|
180
|
+
readonly itemDisabled: Readonly<{
|
|
181
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.4>;
|
|
182
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
183
|
+
readonly pointerEvents: stylex.StyleXClassNameFor<"pointerEvents", "none">;
|
|
184
|
+
}>;
|
|
185
|
+
readonly empty: Readonly<{
|
|
186
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
187
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
188
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
189
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
190
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
191
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
192
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
193
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
194
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
|
|
195
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
196
|
+
}>;
|
|
197
|
+
readonly footer: Readonly<{
|
|
198
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
199
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
200
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "flex-end">;
|
|
201
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
202
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
203
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
204
|
+
readonly borderBlockStartWidth: stylex.StyleXClassNameFor<"borderBlockStartWidth", "1px">;
|
|
205
|
+
readonly borderBlockStartStyle: stylex.StyleXClassNameFor<"borderBlockStartStyle", "solid">;
|
|
206
|
+
readonly borderBlockStartColor: stylex.StyleXClassNameFor<"borderBlockStartColor", string>;
|
|
207
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
208
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
209
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
210
|
+
}>;
|
|
211
|
+
readonly footerKeyGroup: Readonly<{
|
|
212
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
213
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
214
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
215
|
+
}>;
|
|
216
|
+
}>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { CommandPaletteEmptyProps, CommandPaletteFooterProps, CommandPaletteInputProps, CommandPaletteItemProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteSectionProps, UseCommandPaletteOptions, } from './CommandPalette';
|
|
2
|
+
export { CommandPalette, CommandPaletteEmpty, CommandPaletteFooter, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteSection, useCommandPalette, useCommandPaletteContext, } from './CommandPalette';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
|
+
import { DateFieldProps as AriaDateFieldProps, DateInputProps as AriaDateInputProps, DateSegmentProps as AriaDateSegmentProps, DateValue, ValidationResult } from 'react-aria-components';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface DateSegmentProps extends Omit<AriaDateSegmentProps, 'style' | 'className'> {
|
|
5
|
+
style?: StyleXStyles;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DateSegment: React.ForwardRefExoticComponent<DateSegmentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export interface DateInputProps extends Omit<AriaDateInputProps, 'style' | 'className' | 'children'> {
|
|
10
|
+
style?: StyleXStyles;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: (segment: any) => React.ReactElement;
|
|
13
|
+
}
|
|
14
|
+
export declare const DateInput: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export interface DateFieldProps<T extends DateValue = DateValue> extends Omit<AriaDateFieldProps<T>, 'style' | 'className'> {
|
|
16
|
+
style?: StyleXStyles;
|
|
17
|
+
className?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
errorMessage?: string | ((v: ValidationResult) => string);
|
|
21
|
+
variant?: 'primary' | 'secondary';
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
}
|
|
24
|
+
export declare const DateField: React.ForwardRefExoticComponent<DateFieldProps<any> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
}>;
|
|
9
|
+
readonly group: Readonly<{
|
|
10
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
11
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
12
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
13
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
14
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
15
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
16
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
17
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
18
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
19
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
20
|
+
readonly transition: stylex.StyleXClassNameFor<"transition", "border-color 0.15s ease, box-shadow 0.15s ease">;
|
|
21
|
+
}>;
|
|
22
|
+
readonly groupSm: Readonly<{
|
|
23
|
+
readonly height: stylex.StyleXClassNameFor<"height", `calc(${stylex.StyleXVar<string>} * 2 + ${stylex.StyleXVar<string>})`>;
|
|
24
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
25
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
26
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
27
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
28
|
+
}>;
|
|
29
|
+
readonly groupMd: Readonly<{
|
|
30
|
+
readonly height: stylex.StyleXClassNameFor<"height", `calc(${stylex.StyleXVar<string>} * 2 + ${stylex.StyleXVar<string>})`>;
|
|
31
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
32
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
33
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
34
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
35
|
+
}>;
|
|
36
|
+
readonly groupLg: Readonly<{
|
|
37
|
+
readonly height: stylex.StyleXClassNameFor<"height", `calc(${stylex.StyleXVar<string>} * 2 + ${stylex.StyleXVar<string>})`>;
|
|
38
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
39
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
40
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
41
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
42
|
+
}>;
|
|
43
|
+
readonly primary: Readonly<{
|
|
44
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
45
|
+
}>;
|
|
46
|
+
readonly secondary: Readonly<{
|
|
47
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
48
|
+
}>;
|
|
49
|
+
readonly groupHover: Readonly<{
|
|
50
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
51
|
+
}>;
|
|
52
|
+
readonly groupFocused: Readonly<{
|
|
53
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
54
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `0 0 0 1px ${stylex.StyleXVar<string>}`>;
|
|
55
|
+
}>;
|
|
56
|
+
readonly groupInvalid: Readonly<{
|
|
57
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
58
|
+
}>;
|
|
59
|
+
readonly groupFocusedInvalid: Readonly<{
|
|
60
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
61
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `0 0 0 1px ${stylex.StyleXVar<string>}`>;
|
|
62
|
+
}>;
|
|
63
|
+
readonly groupDisabled: Readonly<{
|
|
64
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
65
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
66
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
67
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
68
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.6>;
|
|
69
|
+
}>;
|
|
70
|
+
readonly dateInput: Readonly<{
|
|
71
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
72
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
73
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
74
|
+
readonly flex: stylex.StyleXClassNameFor<"flex", 1>;
|
|
75
|
+
}>;
|
|
76
|
+
readonly segment: Readonly<{
|
|
77
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-block">;
|
|
78
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "2px">;
|
|
79
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", "2px">;
|
|
80
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
81
|
+
readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
|
|
82
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
83
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
84
|
+
}>;
|
|
85
|
+
readonly segmentFocused: Readonly<{
|
|
86
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
87
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
88
|
+
}>;
|
|
89
|
+
readonly segmentPlaceholder: Readonly<{
|
|
90
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
91
|
+
}>;
|
|
92
|
+
readonly segmentLiteral: Readonly<{
|
|
93
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
94
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "1px">;
|
|
95
|
+
}>;
|
|
96
|
+
readonly segmentDisabled: Readonly<{
|
|
97
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
98
|
+
}>;
|
|
99
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
|
+
import { DatePickerProps as AriaDatePickerProps, DateRangePickerProps as AriaDateRangePickerProps, DateValue, ValidationResult } from 'react-aria-components';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface DatePickerProps<T extends DateValue = DateValue> extends Omit<AriaDatePickerProps<T>, 'style' | 'className'> {
|
|
5
|
+
style?: StyleXStyles;
|
|
6
|
+
className?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
errorMessage?: string | ((v: ValidationResult) => string);
|
|
10
|
+
variant?: 'primary' | 'secondary';
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
}
|
|
13
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps<any> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export interface DateRangePickerProps<T extends DateValue = DateValue> extends Omit<AriaDateRangePickerProps<T>, 'style' | 'className'> {
|
|
15
|
+
style?: StyleXStyles;
|
|
16
|
+
className?: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
errorMessage?: string | ((v: ValidationResult) => string);
|
|
20
|
+
variant?: 'primary' | 'secondary';
|
|
21
|
+
size?: 'sm' | 'md' | 'lg';
|
|
22
|
+
}
|
|
23
|
+
export declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps<any> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
}>;
|
|
9
|
+
readonly group: Readonly<{
|
|
10
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
11
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
12
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
|
|
13
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
14
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
15
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
16
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
17
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
18
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
19
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
20
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
21
|
+
readonly transition: stylex.StyleXClassNameFor<"transition", "border-color 0.15s ease, box-shadow 0.15s ease">;
|
|
22
|
+
}>;
|
|
23
|
+
readonly groupSm: Readonly<{
|
|
24
|
+
readonly height: stylex.StyleXClassNameFor<"height", `calc(${stylex.StyleXVar<string>} * 2 + ${stylex.StyleXVar<string>})`>;
|
|
25
|
+
readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", string>;
|
|
26
|
+
readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", string>;
|
|
27
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
28
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
29
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
30
|
+
}>;
|
|
31
|
+
readonly groupMd: Readonly<{
|
|
32
|
+
readonly height: stylex.StyleXClassNameFor<"height", `calc(${stylex.StyleXVar<string>} * 2 + ${stylex.StyleXVar<string>})`>;
|
|
33
|
+
readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", string>;
|
|
34
|
+
readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", string>;
|
|
35
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
36
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
37
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
38
|
+
}>;
|
|
39
|
+
readonly groupLg: Readonly<{
|
|
40
|
+
readonly height: stylex.StyleXClassNameFor<"height", `calc(${stylex.StyleXVar<string>} * 2 + ${stylex.StyleXVar<string>})`>;
|
|
41
|
+
readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", string>;
|
|
42
|
+
readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", string>;
|
|
43
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
44
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
45
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
46
|
+
}>;
|
|
47
|
+
readonly primary: Readonly<{
|
|
48
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
49
|
+
}>;
|
|
50
|
+
readonly secondary: Readonly<{
|
|
51
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
52
|
+
}>;
|
|
53
|
+
readonly groupHover: Readonly<{
|
|
54
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
55
|
+
}>;
|
|
56
|
+
readonly groupFocused: Readonly<{
|
|
57
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
58
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `0 0 0 1px ${stylex.StyleXVar<string>}`>;
|
|
59
|
+
}>;
|
|
60
|
+
readonly groupInvalid: Readonly<{
|
|
61
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
62
|
+
}>;
|
|
63
|
+
readonly groupFocusedInvalid: Readonly<{
|
|
64
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
65
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `0 0 0 1px ${stylex.StyleXVar<string>}`>;
|
|
66
|
+
}>;
|
|
67
|
+
readonly groupDisabled: Readonly<{
|
|
68
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
69
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
70
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
71
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
72
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.6>;
|
|
73
|
+
}>;
|
|
74
|
+
readonly rangeSeparator: Readonly<{
|
|
75
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
76
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
77
|
+
readonly userSelect: stylex.StyleXClassNameFor<"userSelect", "none">;
|
|
78
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
79
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
80
|
+
}>;
|
|
81
|
+
readonly triggerButton: Readonly<{
|
|
82
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
83
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
84
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
85
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
86
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
|
|
87
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
88
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
89
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", string>;
|
|
90
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
91
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
92
|
+
readonly transition: stylex.StyleXClassNameFor<"transition", "color 0.15s ease, background-color 0.15s ease">;
|
|
93
|
+
}>;
|
|
94
|
+
readonly triggerButtonHover: Readonly<{
|
|
95
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
96
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
97
|
+
}>;
|
|
98
|
+
readonly triggerButtonPressed: Readonly<{
|
|
99
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
100
|
+
}>;
|
|
101
|
+
readonly triggerButtonDisabled: Readonly<{
|
|
102
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.4>;
|
|
103
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
104
|
+
readonly pointerEvents: stylex.StyleXClassNameFor<"pointerEvents", "none">;
|
|
105
|
+
}>;
|
|
106
|
+
readonly triggerButtonFocused: Readonly<{
|
|
107
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
108
|
+
}>;
|
|
109
|
+
readonly calendarIcon: Readonly<{
|
|
110
|
+
readonly width: stylex.StyleXClassNameFor<"width", "16px">;
|
|
111
|
+
readonly height: stylex.StyleXClassNameFor<"height", "16px">;
|
|
112
|
+
}>;
|
|
113
|
+
readonly popover: Readonly<{
|
|
114
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
115
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
|
|
116
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
117
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
118
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
119
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
120
|
+
readonly zIndex: stylex.StyleXClassNameFor<"zIndex", string>;
|
|
121
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
122
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", string>;
|
|
123
|
+
}>;
|
|
124
|
+
readonly dialog: Readonly<{
|
|
125
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
126
|
+
}>;
|
|
127
|
+
}>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type EmptyStateVariant = 'default' | 'card' | 'dashed';
|
|
4
|
+
export type EmptyStateSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type EmptyStateAlign = 'center' | 'start';
|
|
6
|
+
export interface EmptyStateIconProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
7
|
+
size?: EmptyStateSize;
|
|
8
|
+
variant?: 'default' | 'primary';
|
|
9
|
+
style?: StyleXStyles;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const EmptyStateIcon: React.ForwardRefExoticComponent<EmptyStateIconProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export interface EmptyStateTitleProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, 'style'> {
|
|
14
|
+
as?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
15
|
+
size?: EmptyStateSize;
|
|
16
|
+
style?: StyleXStyles;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const EmptyStateTitle: React.ForwardRefExoticComponent<EmptyStateTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
20
|
+
export interface EmptyStateDescriptionProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, 'style'> {
|
|
21
|
+
size?: EmptyStateSize;
|
|
22
|
+
style?: StyleXStyles;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const EmptyStateDescription: React.ForwardRefExoticComponent<EmptyStateDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
+
export interface EmptyStateActionsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
27
|
+
align?: EmptyStateAlign;
|
|
28
|
+
style?: StyleXStyles;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const EmptyStateActions: React.ForwardRefExoticComponent<EmptyStateActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export interface EmptyStateProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style' | 'title'> {
|
|
33
|
+
icon?: React.ReactNode;
|
|
34
|
+
title?: React.ReactNode;
|
|
35
|
+
description?: React.ReactNode;
|
|
36
|
+
action?: React.ReactNode;
|
|
37
|
+
secondaryAction?: React.ReactNode;
|
|
38
|
+
variant?: EmptyStateVariant;
|
|
39
|
+
size?: EmptyStateSize;
|
|
40
|
+
align?: EmptyStateAlign;
|
|
41
|
+
style?: StyleXStyles;
|
|
42
|
+
className?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|