@moul-dev/ui 2026.8.21 → 2026.8.25
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 +456 -4
- package/dist/moul-ui.js +4639 -1724
- 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/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/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/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/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 +97 -12
- package/dist/src/components/Table/Table.styles.d.ts +171 -30
- package/dist/src/components/Table/index.d.ts +2 -2
- package/dist/src/index.d.ts +22 -8
- package/dist/tokens.stylex.js +137 -125
- package/package.json +1 -1
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export type AvatarShape = 'circle' | 'square';
|
|
5
|
+
export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away';
|
|
6
|
+
export type AvatarStatusPosition = 'bottom-right' | 'top-right';
|
|
3
7
|
export interface AvatarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
4
8
|
src?: string;
|
|
5
9
|
alt?: string;
|
|
6
10
|
initials?: string;
|
|
11
|
+
size?: AvatarSize;
|
|
12
|
+
shape?: AvatarShape;
|
|
13
|
+
status?: AvatarStatus;
|
|
14
|
+
statusPosition?: AvatarStatusPosition;
|
|
15
|
+
statusAriaLabel?: string;
|
|
16
|
+
fallback?: React.ReactNode;
|
|
7
17
|
style?: StyleXStyles;
|
|
8
18
|
className?: string;
|
|
9
19
|
}
|
|
@@ -2,20 +2,85 @@ import * as stylex from '@stylexjs/stylex';
|
|
|
2
2
|
export declare const styles: Readonly<{
|
|
3
3
|
readonly base: Readonly<{
|
|
4
4
|
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
5
|
+
readonly position: stylex.StyleXClassNameFor<"position", "relative">;
|
|
5
6
|
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
6
7
|
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
7
|
-
readonly width: stylex.StyleXClassNameFor<"width", string>;
|
|
8
|
-
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
9
|
-
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
10
8
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
11
9
|
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
12
|
-
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
13
|
-
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
14
10
|
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
15
|
-
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
16
11
|
readonly userSelect: stylex.StyleXClassNameFor<"userSelect", "none">;
|
|
17
12
|
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
18
13
|
readonly verticalAlign: stylex.StyleXClassNameFor<"verticalAlign", "middle">;
|
|
14
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
15
|
+
}>;
|
|
16
|
+
readonly innerWrapper: Readonly<{
|
|
17
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
18
|
+
readonly height: stylex.StyleXClassNameFor<"height", "100%">;
|
|
19
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
20
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
21
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
22
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
|
|
23
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", "inherit">;
|
|
24
|
+
}>;
|
|
25
|
+
readonly xs: Readonly<{
|
|
26
|
+
readonly width: stylex.StyleXClassNameFor<"width", "24px">;
|
|
27
|
+
readonly height: stylex.StyleXClassNameFor<"height", "24px">;
|
|
28
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", "10px">;
|
|
29
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", "12px">;
|
|
30
|
+
}>;
|
|
31
|
+
readonly sm: Readonly<{
|
|
32
|
+
readonly width: stylex.StyleXClassNameFor<"width", string>;
|
|
33
|
+
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
34
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
35
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
36
|
+
}>;
|
|
37
|
+
readonly md: Readonly<{
|
|
38
|
+
readonly width: stylex.StyleXClassNameFor<"width", "40px">;
|
|
39
|
+
readonly height: stylex.StyleXClassNameFor<"height", "40px">;
|
|
40
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
41
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
42
|
+
}>;
|
|
43
|
+
readonly lg: Readonly<{
|
|
44
|
+
readonly width: stylex.StyleXClassNameFor<"width", "48px">;
|
|
45
|
+
readonly height: stylex.StyleXClassNameFor<"height", "48px">;
|
|
46
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
47
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
48
|
+
}>;
|
|
49
|
+
readonly xl: Readonly<{
|
|
50
|
+
readonly width: stylex.StyleXClassNameFor<"width", "56px">;
|
|
51
|
+
readonly height: stylex.StyleXClassNameFor<"height", "56px">;
|
|
52
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
53
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
54
|
+
}>;
|
|
55
|
+
readonly '2xl': Readonly<{
|
|
56
|
+
readonly width: stylex.StyleXClassNameFor<"width", "64px">;
|
|
57
|
+
readonly height: stylex.StyleXClassNameFor<"height", "64px">;
|
|
58
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
59
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
60
|
+
}>;
|
|
61
|
+
readonly circle: Readonly<{
|
|
62
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
63
|
+
}>;
|
|
64
|
+
readonly square: Readonly<{
|
|
65
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
66
|
+
}>;
|
|
67
|
+
readonly square_xs: Readonly<{
|
|
68
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
69
|
+
}>;
|
|
70
|
+
readonly square_sm: Readonly<{
|
|
71
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
72
|
+
}>;
|
|
73
|
+
readonly square_md: Readonly<{
|
|
74
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
75
|
+
}>;
|
|
76
|
+
readonly square_lg: Readonly<{
|
|
77
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
78
|
+
}>;
|
|
79
|
+
readonly square_xl: Readonly<{
|
|
80
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
81
|
+
}>;
|
|
82
|
+
readonly square_2xl: Readonly<{
|
|
83
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
19
84
|
}>;
|
|
20
85
|
readonly image: Readonly<{
|
|
21
86
|
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
@@ -27,5 +92,112 @@ export declare const styles: Readonly<{
|
|
|
27
92
|
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
28
93
|
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
29
94
|
readonly textTransform: stylex.StyleXClassNameFor<"textTransform", "uppercase">;
|
|
95
|
+
readonly letterSpacing: stylex.StyleXClassNameFor<"letterSpacing", "0.02em">;
|
|
96
|
+
}>;
|
|
97
|
+
readonly fallbackIcon: Readonly<{
|
|
98
|
+
readonly width: stylex.StyleXClassNameFor<"width", "55%">;
|
|
99
|
+
readonly height: stylex.StyleXClassNameFor<"height", "55%">;
|
|
100
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
101
|
+
}>;
|
|
102
|
+
readonly statusDot: Readonly<{
|
|
103
|
+
readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
|
|
104
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
105
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
106
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
107
|
+
readonly zIndex: stylex.StyleXClassNameFor<"zIndex", 2>;
|
|
108
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "content-box">;
|
|
109
|
+
}>;
|
|
110
|
+
readonly status_bottomRight: Readonly<{
|
|
111
|
+
readonly insetBlockEnd: stylex.StyleXClassNameFor<"insetBlockEnd", 0>;
|
|
112
|
+
readonly insetInlineEnd: stylex.StyleXClassNameFor<"insetInlineEnd", 0>;
|
|
113
|
+
readonly transform: stylex.StyleXClassNameFor<"transform", "translate(10%, 10%)">;
|
|
114
|
+
}>;
|
|
115
|
+
readonly status_topRight: Readonly<{
|
|
116
|
+
readonly insetBlockStart: stylex.StyleXClassNameFor<"insetBlockStart", 0>;
|
|
117
|
+
readonly insetInlineEnd: stylex.StyleXClassNameFor<"insetInlineEnd", 0>;
|
|
118
|
+
readonly transform: stylex.StyleXClassNameFor<"transform", "translate(10%, -10%)">;
|
|
119
|
+
}>;
|
|
120
|
+
readonly status_online: Readonly<{
|
|
121
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
122
|
+
}>;
|
|
123
|
+
readonly status_offline: Readonly<{
|
|
124
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
125
|
+
}>;
|
|
126
|
+
readonly status_busy: Readonly<{
|
|
127
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
128
|
+
}>;
|
|
129
|
+
readonly status_away: Readonly<{
|
|
130
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
131
|
+
}>;
|
|
132
|
+
readonly statusSize_xs: Readonly<{
|
|
133
|
+
readonly width: stylex.StyleXClassNameFor<"width", "6px">;
|
|
134
|
+
readonly height: stylex.StyleXClassNameFor<"height", "6px">;
|
|
135
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1.5px">;
|
|
136
|
+
}>;
|
|
137
|
+
readonly statusSize_sm: Readonly<{
|
|
138
|
+
readonly width: stylex.StyleXClassNameFor<"width", "8px">;
|
|
139
|
+
readonly height: stylex.StyleXClassNameFor<"height", "8px">;
|
|
140
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "2px">;
|
|
141
|
+
}>;
|
|
142
|
+
readonly statusSize_md: Readonly<{
|
|
143
|
+
readonly width: stylex.StyleXClassNameFor<"width", "10px">;
|
|
144
|
+
readonly height: stylex.StyleXClassNameFor<"height", "10px">;
|
|
145
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "2px">;
|
|
146
|
+
}>;
|
|
147
|
+
readonly statusSize_lg: Readonly<{
|
|
148
|
+
readonly width: stylex.StyleXClassNameFor<"width", "12px">;
|
|
149
|
+
readonly height: stylex.StyleXClassNameFor<"height", "12px">;
|
|
150
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "2.5px">;
|
|
151
|
+
}>;
|
|
152
|
+
readonly statusSize_xl: Readonly<{
|
|
153
|
+
readonly width: stylex.StyleXClassNameFor<"width", "14px">;
|
|
154
|
+
readonly height: stylex.StyleXClassNameFor<"height", "14px">;
|
|
155
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "2.5px">;
|
|
156
|
+
}>;
|
|
157
|
+
readonly statusSize_2xl: Readonly<{
|
|
158
|
+
readonly width: stylex.StyleXClassNameFor<"width", "16px">;
|
|
159
|
+
readonly height: stylex.StyleXClassNameFor<"height", "16px">;
|
|
160
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "3px">;
|
|
161
|
+
}>;
|
|
162
|
+
readonly group: Readonly<{
|
|
163
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
164
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
165
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "row">;
|
|
166
|
+
}>;
|
|
167
|
+
readonly groupItem: Readonly<{
|
|
168
|
+
readonly position: stylex.StyleXClassNameFor<"position", "relative">;
|
|
169
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
170
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
171
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
172
|
+
readonly transition: stylex.StyleXClassNameFor<"transition", "transform 0.15s ease, z-index 0.15s ease">;
|
|
173
|
+
readonly ':hover': stylex.StyleXClassNameFor<":hover", {
|
|
174
|
+
readonly zIndex: 10;
|
|
175
|
+
}>;
|
|
176
|
+
}>;
|
|
177
|
+
readonly groupItemRing: Readonly<{
|
|
178
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `0 0 0 2px ${stylex.StyleXVar<string>}`>;
|
|
179
|
+
}>;
|
|
180
|
+
readonly groupOverlap_xs: Readonly<{
|
|
181
|
+
readonly marginInlineStart: stylex.StyleXClassNameFor<"marginInlineStart", "-6px">;
|
|
182
|
+
}>;
|
|
183
|
+
readonly groupOverlap_sm: Readonly<{
|
|
184
|
+
readonly marginInlineStart: stylex.StyleXClassNameFor<"marginInlineStart", "-8px">;
|
|
185
|
+
}>;
|
|
186
|
+
readonly groupOverlap_md: Readonly<{
|
|
187
|
+
readonly marginInlineStart: stylex.StyleXClassNameFor<"marginInlineStart", "-10px">;
|
|
188
|
+
}>;
|
|
189
|
+
readonly groupOverlap_lg: Readonly<{
|
|
190
|
+
readonly marginInlineStart: stylex.StyleXClassNameFor<"marginInlineStart", "-12px">;
|
|
191
|
+
}>;
|
|
192
|
+
readonly groupOverlap_xl: Readonly<{
|
|
193
|
+
readonly marginInlineStart: stylex.StyleXClassNameFor<"marginInlineStart", "-14px">;
|
|
194
|
+
}>;
|
|
195
|
+
readonly groupOverlap_2xl: Readonly<{
|
|
196
|
+
readonly marginInlineStart: stylex.StyleXClassNameFor<"marginInlineStart", "-16px">;
|
|
197
|
+
}>;
|
|
198
|
+
readonly excess: Readonly<{
|
|
199
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
200
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
201
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
30
202
|
}>;
|
|
31
203
|
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
|
+
import { AvatarShape, AvatarSize } from './Avatar';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface AvatarGroupContextValue {
|
|
5
|
+
size?: AvatarSize;
|
|
6
|
+
shape?: AvatarShape;
|
|
7
|
+
}
|
|
8
|
+
export declare const AvatarGroupContext: React.Context<AvatarGroupContextValue>;
|
|
9
|
+
export interface AvatarGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
10
|
+
size?: AvatarSize;
|
|
11
|
+
shape?: AvatarShape;
|
|
12
|
+
max?: number;
|
|
13
|
+
excessCount?: number;
|
|
14
|
+
renderExcess?: (count: number) => React.ReactNode;
|
|
15
|
+
style?: StyleXStyles;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export type { AvatarProps } from './Avatar';
|
|
1
|
+
export type { AvatarProps, AvatarShape, AvatarSize, AvatarStatus, AvatarStatusPosition, } from './Avatar';
|
|
2
2
|
export { Avatar } from './Avatar';
|
|
3
|
+
export type { AvatarGroupContextValue, AvatarGroupProps, } from './AvatarGroup';
|
|
4
|
+
export { AvatarGroup, AvatarGroupContext } from './AvatarGroup';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export type BadgeVariant = 'neutral' | 'primary' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type BadgeVariant = 'neutral' | 'primary' | 'success' | 'warning' | 'error' | 'dot';
|
|
4
|
+
export type BadgeSize = 'sm' | 'md' | 'lg';
|
|
4
5
|
export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'style'> {
|
|
5
6
|
variant?: BadgeVariant;
|
|
7
|
+
size?: BadgeSize;
|
|
8
|
+
dot?: boolean;
|
|
6
9
|
style?: StyleXStyles;
|
|
7
10
|
className?: string;
|
|
8
11
|
}
|
|
@@ -4,13 +4,27 @@ export declare const styles: Readonly<{
|
|
|
4
4
|
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
5
5
|
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
6
6
|
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
7
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
8
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
9
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
10
|
+
}>;
|
|
11
|
+
readonly sm: Readonly<{
|
|
12
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
|
|
13
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
14
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
15
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
16
|
+
}>;
|
|
17
|
+
readonly md: Readonly<{
|
|
18
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
19
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
20
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
21
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
22
|
+
}>;
|
|
23
|
+
readonly lg: Readonly<{
|
|
7
24
|
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
8
25
|
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
9
|
-
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
10
26
|
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
11
27
|
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
12
|
-
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
13
|
-
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
14
28
|
}>;
|
|
15
29
|
readonly neutral: Readonly<{
|
|
16
30
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
@@ -32,4 +46,46 @@ export declare const styles: Readonly<{
|
|
|
32
46
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
33
47
|
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
34
48
|
}>;
|
|
49
|
+
readonly dot: Readonly<{
|
|
50
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
51
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
52
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
53
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
54
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
55
|
+
}>;
|
|
56
|
+
readonly hasDot: Readonly<{
|
|
57
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
58
|
+
}>;
|
|
59
|
+
readonly dotIndicator: Readonly<{
|
|
60
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-block">;
|
|
61
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
62
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
63
|
+
}>;
|
|
64
|
+
readonly dot_sm: Readonly<{
|
|
65
|
+
readonly width: stylex.StyleXClassNameFor<"width", string>;
|
|
66
|
+
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
67
|
+
}>;
|
|
68
|
+
readonly dot_md: Readonly<{
|
|
69
|
+
readonly width: stylex.StyleXClassNameFor<"width", string>;
|
|
70
|
+
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
71
|
+
}>;
|
|
72
|
+
readonly dot_lg: Readonly<{
|
|
73
|
+
readonly width: stylex.StyleXClassNameFor<"width", string>;
|
|
74
|
+
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
75
|
+
}>;
|
|
76
|
+
readonly dot_neutral: Readonly<{
|
|
77
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
78
|
+
}>;
|
|
79
|
+
readonly dot_primary: Readonly<{
|
|
80
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
81
|
+
}>;
|
|
82
|
+
readonly dot_success: Readonly<{
|
|
83
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
84
|
+
}>;
|
|
85
|
+
readonly dot_warning: Readonly<{
|
|
86
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
87
|
+
}>;
|
|
88
|
+
readonly dot_error: Readonly<{
|
|
89
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
90
|
+
}>;
|
|
35
91
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { BadgeProps, BadgeVariant } from './Badge';
|
|
1
|
+
export type { BadgeProps, BadgeSize, BadgeVariant } from './Badge';
|
|
2
2
|
export { Badge } from './Badge';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { StyleXStyles } from '@stylexjs/stylex';
|
|
2
|
+
import { CalendarCellProps as AriaCalendarCellProps, CalendarProps as AriaCalendarProps, RangeCalendarProps as AriaRangeCalendarProps, DateValue } from 'react-aria-components';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface CalendarCellProps extends Omit<AriaCalendarCellProps, 'style' | 'className'> {
|
|
5
|
+
style?: StyleXStyles;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CalendarCell: React.ForwardRefExoticComponent<CalendarCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
|
+
export interface CalendarGridProps {
|
|
10
|
+
style?: StyleXStyles;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: (date: any) => React.ReactElement;
|
|
13
|
+
}
|
|
14
|
+
export declare function CalendarGrid({ style, className, children, }: CalendarGridProps): React.JSX.Element;
|
|
15
|
+
export interface CalendarProps<T extends DateValue = DateValue> extends Omit<AriaCalendarProps<T>, 'style' | 'className'> {
|
|
16
|
+
style?: StyleXStyles;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps<any> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export interface RangeCalendarProps<T extends DateValue = DateValue> extends Omit<AriaRangeCalendarProps<T>, 'style' | 'className'> {
|
|
21
|
+
style?: StyleXStyles;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const RangeCalendar: React.ForwardRefExoticComponent<RangeCalendarProps<any> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
export declare const styles: Readonly<{
|
|
3
|
+
readonly calendar: Readonly<{
|
|
4
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
5
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
6
|
+
readonly width: stylex.StyleXClassNameFor<"width", "fit-content">;
|
|
7
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
8
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
9
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", string>;
|
|
10
|
+
readonly userSelect: stylex.StyleXClassNameFor<"userSelect", "none">;
|
|
11
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
12
|
+
}>;
|
|
13
|
+
readonly header: Readonly<{
|
|
14
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
15
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
16
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
|
|
17
|
+
readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", string>;
|
|
18
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
19
|
+
}>;
|
|
20
|
+
readonly heading: Readonly<{
|
|
21
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
22
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
23
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
24
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
25
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
|
|
26
|
+
readonly flex: stylex.StyleXClassNameFor<"flex", 1>;
|
|
27
|
+
}>;
|
|
28
|
+
readonly navButton: Readonly<{
|
|
29
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
30
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
31
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
32
|
+
readonly width: stylex.StyleXClassNameFor<"width", string>;
|
|
33
|
+
readonly height: stylex.StyleXClassNameFor<"height", string>;
|
|
34
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
35
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
36
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
37
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
38
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
39
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
40
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
41
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
42
|
+
readonly transition: stylex.StyleXClassNameFor<"transition", "background-color 0.15s ease, border-color 0.15s ease">;
|
|
43
|
+
}>;
|
|
44
|
+
readonly navButtonHover: Readonly<{
|
|
45
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
46
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
47
|
+
}>;
|
|
48
|
+
readonly navButtonPressed: Readonly<{
|
|
49
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
50
|
+
}>;
|
|
51
|
+
readonly navButtonDisabled: Readonly<{
|
|
52
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.4>;
|
|
53
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
54
|
+
readonly pointerEvents: stylex.StyleXClassNameFor<"pointerEvents", "none">;
|
|
55
|
+
}>;
|
|
56
|
+
readonly navButtonFocused: Readonly<{
|
|
57
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
58
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `0 0 0 2px ${stylex.StyleXVar<string>}`>;
|
|
59
|
+
}>;
|
|
60
|
+
readonly navIcon: Readonly<{
|
|
61
|
+
readonly width: stylex.StyleXClassNameFor<"width", "16px">;
|
|
62
|
+
readonly height: stylex.StyleXClassNameFor<"height", "16px">;
|
|
63
|
+
}>;
|
|
64
|
+
readonly grid: Readonly<{
|
|
65
|
+
readonly borderCollapse: stylex.StyleXClassNameFor<"borderCollapse", "collapse">;
|
|
66
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
67
|
+
}>;
|
|
68
|
+
readonly gridHeaderCell: Readonly<{
|
|
69
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
70
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
71
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
72
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
|
|
73
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
74
|
+
readonly width: stylex.StyleXClassNameFor<"width", "36px">;
|
|
75
|
+
}>;
|
|
76
|
+
readonly gridBody: Readonly<{}>;
|
|
77
|
+
readonly gridRow: Readonly<{
|
|
78
|
+
readonly display: stylex.StyleXClassNameFor<"display", "table-row">;
|
|
79
|
+
}>;
|
|
80
|
+
readonly cellContainer: Readonly<{
|
|
81
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "2px">;
|
|
82
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 0>;
|
|
83
|
+
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
|
|
84
|
+
}>;
|
|
85
|
+
readonly cell: Readonly<{
|
|
86
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
87
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
88
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
89
|
+
readonly width: stylex.StyleXClassNameFor<"width", "34px">;
|
|
90
|
+
readonly height: stylex.StyleXClassNameFor<"height", "34px">;
|
|
91
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
92
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
93
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
94
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
95
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
96
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
97
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
98
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
99
|
+
readonly transition: stylex.StyleXClassNameFor<"transition", "background-color 0.12s ease, color 0.12s ease">;
|
|
100
|
+
}>;
|
|
101
|
+
readonly cellHovered: Readonly<{
|
|
102
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
103
|
+
}>;
|
|
104
|
+
readonly cellFocused: Readonly<{
|
|
105
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
106
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `0 0 0 2px ${stylex.StyleXVar<string>}`>;
|
|
107
|
+
}>;
|
|
108
|
+
readonly cellSelected: Readonly<{
|
|
109
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
110
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
111
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
112
|
+
}>;
|
|
113
|
+
readonly cellSelectionStart: Readonly<{
|
|
114
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
115
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
116
|
+
readonly borderStartStartRadius: stylex.StyleXClassNameFor<"borderStartStartRadius", string>;
|
|
117
|
+
readonly borderEndStartRadius: stylex.StyleXClassNameFor<"borderEndStartRadius", string>;
|
|
118
|
+
readonly borderStartEndRadius: stylex.StyleXClassNameFor<"borderStartEndRadius", 0>;
|
|
119
|
+
readonly borderEndEndRadius: stylex.StyleXClassNameFor<"borderEndEndRadius", 0>;
|
|
120
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
121
|
+
}>;
|
|
122
|
+
readonly cellSelectionEnd: Readonly<{
|
|
123
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
124
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
125
|
+
readonly borderStartEndRadius: stylex.StyleXClassNameFor<"borderStartEndRadius", string>;
|
|
126
|
+
readonly borderEndEndRadius: stylex.StyleXClassNameFor<"borderEndEndRadius", string>;
|
|
127
|
+
readonly borderStartStartRadius: stylex.StyleXClassNameFor<"borderStartStartRadius", 0>;
|
|
128
|
+
readonly borderEndStartRadius: stylex.StyleXClassNameFor<"borderEndStartRadius", 0>;
|
|
129
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
130
|
+
}>;
|
|
131
|
+
readonly cellRangeSelection: Readonly<{
|
|
132
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
133
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
134
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 0>;
|
|
135
|
+
}>;
|
|
136
|
+
readonly cellToday: Readonly<{
|
|
137
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", "1px">;
|
|
138
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
139
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
140
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
141
|
+
}>;
|
|
142
|
+
readonly cellOutsideMonth: Readonly<{
|
|
143
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
144
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.5>;
|
|
145
|
+
}>;
|
|
146
|
+
readonly cellDisabled: Readonly<{
|
|
147
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
148
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
149
|
+
readonly pointerEvents: stylex.StyleXClassNameFor<"pointerEvents", "none">;
|
|
150
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.4>;
|
|
151
|
+
}>;
|
|
152
|
+
readonly cellUnavailable: Readonly<{
|
|
153
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
154
|
+
readonly textDecoration: stylex.StyleXClassNameFor<"textDecoration", "line-through">;
|
|
155
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
156
|
+
}>;
|
|
157
|
+
readonly cellInvalid: Readonly<{
|
|
158
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
159
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
160
|
+
}>;
|
|
161
|
+
}>;
|
|
@@ -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 {};
|