@codecademy/brand 1.21.0 → 1.22.0-alpha.e29fc5868c.0
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.
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { IconButton, PopoverProps } from '@codecademy/gamut';
|
|
2
|
-
import { buttonProps } from '@codecademy/gamut/dist/Button/shared';
|
|
3
|
-
import { StyleProps } from '@codecademy/variance';
|
|
1
|
+
import { ButtonProps, IconButton, PopoverProps } from '@codecademy/gamut';
|
|
4
2
|
import { PropsWithChildren } from 'react';
|
|
5
3
|
import * as React from 'react';
|
|
6
4
|
import { DropdownListProps } from './DropdownList';
|
|
@@ -13,321 +11,64 @@ export type DropdownButtonProps = PropsWithChildren<{
|
|
|
13
11
|
defaultPosition?: PopoverProps['position'];
|
|
14
12
|
dropdownItems: DropdownListProps['dropdownItems'];
|
|
15
13
|
horizontalOffset?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.
|
|
16
|
+
*/
|
|
17
|
+
iconSize?: number;
|
|
16
18
|
/**
|
|
17
19
|
* If the dropdown should semantically be a menu
|
|
18
20
|
*/
|
|
19
21
|
isMenu?: boolean;
|
|
20
22
|
onClick?: (event: React.MouseEvent) => void;
|
|
21
|
-
size?: number;
|
|
22
23
|
tipProps?: React.ComponentProps<typeof IconButton>['tipProps'];
|
|
23
24
|
verticalOffset?: number;
|
|
24
|
-
} &
|
|
25
|
-
export declare const DropdownButton: React.ForwardRefExoticComponent<{
|
|
25
|
+
} & ButtonProps>;
|
|
26
|
+
export declare const DropdownButton: React.ForwardRefExoticComponent<(Omit<{
|
|
26
27
|
align?: PopoverProps["align"];
|
|
27
28
|
buttonType?: "fill" | "stroke" | "text" | "kebab" | "horizontalKebab";
|
|
28
29
|
defaultPosition?: PopoverProps["position"];
|
|
29
30
|
dropdownItems: DropdownListProps["dropdownItems"];
|
|
30
31
|
horizontalOffset?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.
|
|
34
|
+
*/
|
|
35
|
+
iconSize?: number;
|
|
31
36
|
/**
|
|
32
37
|
* If the dropdown should semantically be a menu
|
|
33
38
|
*/
|
|
34
39
|
isMenu?: boolean;
|
|
35
40
|
onClick?: (event: React.MouseEvent) => void;
|
|
36
|
-
size?: number;
|
|
37
41
|
tipProps?: React.ComponentProps<typeof IconButton>["tipProps"];
|
|
38
42
|
verticalOffset?: number;
|
|
43
|
+
} & import("@codecademy/gamut/dist/Button/shared").ButtonBaseProps & Omit<{
|
|
44
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
45
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
39
46
|
} & {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}>;
|
|
64
|
-
gridColumnEnd?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
65
|
-
readonly property: "gridColumnEnd";
|
|
66
|
-
}>;
|
|
67
|
-
gridRowEnd?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
68
|
-
readonly property: "gridRowEnd";
|
|
69
|
-
}>;
|
|
70
|
-
justifySelf?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
71
|
-
readonly property: "justifySelf";
|
|
72
|
-
}>;
|
|
73
|
-
alignSelf?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
74
|
-
readonly property: "alignSelf";
|
|
75
|
-
}>;
|
|
76
|
-
gridArea?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
77
|
-
readonly property: "gridArea";
|
|
78
|
-
}>;
|
|
79
|
-
display?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
80
|
-
readonly property: "display";
|
|
81
|
-
}>;
|
|
82
|
-
overflow?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
83
|
-
readonly property: "overflow";
|
|
84
|
-
}>;
|
|
85
|
-
overflowX?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
86
|
-
readonly property: "overflowX";
|
|
87
|
-
}>;
|
|
88
|
-
overflowY?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
89
|
-
readonly property: "overflowY";
|
|
90
|
-
}>;
|
|
91
|
-
dimensions?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
92
|
-
readonly property: "width";
|
|
93
|
-
readonly properties: readonly ["width", "height"];
|
|
94
|
-
readonly transform: (value: string | number) => string | 0;
|
|
95
|
-
}>;
|
|
96
|
-
width?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
97
|
-
readonly property: "width";
|
|
98
|
-
readonly transform: (value: string | number) => string | 0;
|
|
99
|
-
}>;
|
|
100
|
-
minWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
101
|
-
readonly property: "minWidth";
|
|
102
|
-
readonly transform: (value: string | number) => string | 0;
|
|
103
|
-
}>;
|
|
104
|
-
maxWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
105
|
-
readonly property: "maxWidth";
|
|
106
|
-
readonly transform: (value: string | number) => string | 0;
|
|
107
|
-
}>;
|
|
108
|
-
height?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
109
|
-
readonly property: "height";
|
|
110
|
-
readonly transform: (value: string | number) => string | 0;
|
|
111
|
-
}>;
|
|
112
|
-
minHeight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
113
|
-
readonly property: "minHeight";
|
|
114
|
-
readonly transform: (value: string | number) => string | 0;
|
|
115
|
-
}>;
|
|
116
|
-
maxHeight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
117
|
-
readonly property: "maxHeight";
|
|
118
|
-
readonly transform: (value: string | number) => string | 0;
|
|
119
|
-
}>;
|
|
120
|
-
verticalAlign?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
121
|
-
readonly property: "verticalAlign";
|
|
122
|
-
}>;
|
|
123
|
-
p?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
124
|
-
readonly property: "padding";
|
|
125
|
-
readonly scale: "spacing";
|
|
126
|
-
}>;
|
|
127
|
-
px?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
128
|
-
readonly property: "padding";
|
|
129
|
-
readonly properties: readonly ["paddingLeft", "paddingRight"];
|
|
130
|
-
readonly scale: "spacing";
|
|
131
|
-
}>;
|
|
132
|
-
py?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
133
|
-
readonly property: "padding";
|
|
134
|
-
readonly properties: readonly ["paddingTop", "paddingBottom"];
|
|
135
|
-
readonly scale: "spacing";
|
|
136
|
-
}>;
|
|
137
|
-
pt?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
138
|
-
readonly property: "paddingTop";
|
|
139
|
-
readonly scale: "spacing";
|
|
140
|
-
}>;
|
|
141
|
-
pb?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
142
|
-
readonly property: "paddingBottom";
|
|
143
|
-
readonly scale: "spacing";
|
|
144
|
-
}>;
|
|
145
|
-
pr?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
146
|
-
readonly property: "paddingRight";
|
|
147
|
-
readonly scale: "spacing";
|
|
148
|
-
}>;
|
|
149
|
-
pl?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
150
|
-
readonly property: "paddingLeft";
|
|
151
|
-
readonly scale: "spacing";
|
|
152
|
-
}>;
|
|
153
|
-
m?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
154
|
-
readonly property: "margin";
|
|
155
|
-
readonly scale: "spacing";
|
|
156
|
-
}>;
|
|
157
|
-
mx?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
158
|
-
readonly property: "margin";
|
|
159
|
-
readonly properties: readonly ["marginLeft", "marginRight"];
|
|
160
|
-
readonly scale: "spacing";
|
|
161
|
-
}>;
|
|
162
|
-
my?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
163
|
-
readonly property: "margin";
|
|
164
|
-
readonly properties: readonly ["marginTop", "marginBottom"];
|
|
165
|
-
readonly scale: "spacing";
|
|
166
|
-
}>;
|
|
167
|
-
mt?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
168
|
-
readonly property: "marginTop";
|
|
169
|
-
readonly scale: "spacing";
|
|
170
|
-
}>;
|
|
171
|
-
mb?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
172
|
-
readonly property: "marginBottom";
|
|
173
|
-
readonly scale: "spacing";
|
|
174
|
-
}>;
|
|
175
|
-
mr?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
176
|
-
readonly property: "marginRight";
|
|
177
|
-
readonly scale: "spacing";
|
|
178
|
-
}>;
|
|
179
|
-
ml?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
180
|
-
readonly property: "marginLeft";
|
|
181
|
-
readonly scale: "spacing";
|
|
182
|
-
}>;
|
|
183
|
-
border?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
184
|
-
readonly property: "border";
|
|
185
|
-
readonly scale: "borders";
|
|
186
|
-
}>;
|
|
187
|
-
bottom?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
188
|
-
readonly property: "bottom";
|
|
189
|
-
readonly transform: (value: string | number) => string | 0;
|
|
190
|
-
}>;
|
|
191
|
-
inset?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
192
|
-
readonly property: "inset";
|
|
193
|
-
readonly properties: readonly ["top", "right", "bottom", "left"];
|
|
194
|
-
readonly transform: (value: string | number) => string | 0;
|
|
195
|
-
}>;
|
|
196
|
-
left?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
197
|
-
readonly property: "left";
|
|
198
|
-
readonly transform: (value: string | number) => string | 0;
|
|
199
|
-
}>;
|
|
200
|
-
opacity?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
201
|
-
readonly property: "opacity";
|
|
202
|
-
}>;
|
|
203
|
-
position?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
204
|
-
readonly property: "position";
|
|
205
|
-
}>;
|
|
206
|
-
right?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
207
|
-
readonly property: "right";
|
|
208
|
-
readonly transform: (value: string | number) => string | 0;
|
|
209
|
-
}>;
|
|
210
|
-
top?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
211
|
-
readonly property: "top";
|
|
212
|
-
readonly transform: (value: string | number) => string | 0;
|
|
213
|
-
}>;
|
|
214
|
-
zIndex?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
215
|
-
readonly property: "zIndex";
|
|
216
|
-
}>;
|
|
217
|
-
borderBottom?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
218
|
-
readonly property: "borderBottom";
|
|
219
|
-
readonly scale: "borders";
|
|
220
|
-
}>;
|
|
221
|
-
borderLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
222
|
-
readonly property: "borderLeft";
|
|
223
|
-
readonly scale: "borders";
|
|
224
|
-
}>;
|
|
225
|
-
borderRadius?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
226
|
-
readonly property: "borderRadius";
|
|
227
|
-
readonly scale: "borderRadii";
|
|
228
|
-
}>;
|
|
229
|
-
borderRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
230
|
-
readonly property: "borderRight";
|
|
231
|
-
readonly scale: "borders";
|
|
232
|
-
}>;
|
|
233
|
-
borderStyle?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
234
|
-
readonly property: "borderStyle";
|
|
235
|
-
}>;
|
|
236
|
-
borderTop?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
237
|
-
readonly property: "borderTop";
|
|
238
|
-
readonly scale: "borders";
|
|
239
|
-
}>;
|
|
240
|
-
borderWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
241
|
-
readonly property: "borderWidth";
|
|
242
|
-
}>;
|
|
243
|
-
borderX?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
244
|
-
readonly property: "border";
|
|
245
|
-
readonly properties: readonly ["borderLeft", "borderRight"];
|
|
246
|
-
readonly scale: "borders";
|
|
247
|
-
}>;
|
|
248
|
-
borderY?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
249
|
-
readonly property: "border";
|
|
250
|
-
readonly properties: readonly ["borderTop", "borderBottom"];
|
|
251
|
-
readonly scale: "borders";
|
|
252
|
-
}>;
|
|
253
|
-
borderWidthX?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
254
|
-
readonly property: "borderWidth";
|
|
255
|
-
readonly properties: readonly ["borderLeftWidth", "borderRightWidth"];
|
|
256
|
-
}>;
|
|
257
|
-
borderWidthY?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
258
|
-
readonly property: "borderWidth";
|
|
259
|
-
readonly properties: readonly ["borderTopWidth", "borderBottomWidth"];
|
|
260
|
-
}>;
|
|
261
|
-
borderWidthLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
262
|
-
readonly property: "borderLeftWidth";
|
|
263
|
-
}>;
|
|
264
|
-
borderWidthRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
265
|
-
readonly property: "borderRightWidth";
|
|
266
|
-
}>;
|
|
267
|
-
borderWidthTop?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
268
|
-
readonly property: "borderTopWidth";
|
|
269
|
-
}>;
|
|
270
|
-
borderWidthBottom?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
271
|
-
readonly property: "borderBottomWidth";
|
|
272
|
-
}>;
|
|
273
|
-
borderRadiusLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
274
|
-
readonly property: "borderRadius";
|
|
275
|
-
readonly properties: readonly ["borderTopLeftRadius", "borderBottomLeftRadius"];
|
|
276
|
-
readonly scale: "borderRadii";
|
|
277
|
-
}>;
|
|
278
|
-
borderRadiusTop?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
279
|
-
readonly property: "borderRadius";
|
|
280
|
-
readonly properties: readonly ["borderTopLeftRadius", "borderTopRightRadius"];
|
|
281
|
-
readonly scale: "borderRadii";
|
|
282
|
-
}>;
|
|
283
|
-
borderRadiusBottom?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
284
|
-
readonly property: "borderRadius";
|
|
285
|
-
readonly properties: readonly ["borderBottomLeftRadius", "borderBottomRightRadius"];
|
|
286
|
-
readonly scale: "borderRadii";
|
|
287
|
-
}>;
|
|
288
|
-
borderRadiusRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
289
|
-
readonly property: "borderRadius";
|
|
290
|
-
readonly properties: readonly ["borderTopRightRadius", "borderBottomRightRadius"];
|
|
291
|
-
readonly scale: "borderRadii";
|
|
292
|
-
}>;
|
|
293
|
-
borderRadiusTopLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
294
|
-
readonly property: "borderTopLeftRadius";
|
|
295
|
-
readonly scale: "borderRadii";
|
|
296
|
-
}>;
|
|
297
|
-
borderRadiusTopRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
298
|
-
readonly property: "borderTopRightRadius";
|
|
299
|
-
readonly scale: "borderRadii";
|
|
300
|
-
}>;
|
|
301
|
-
borderRadiusBottomRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
302
|
-
readonly property: "borderBottomRightRadius";
|
|
303
|
-
readonly scale: "borderRadii";
|
|
304
|
-
}>;
|
|
305
|
-
borderRadiusBottomLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
306
|
-
readonly property: "borderBottomLeftRadius";
|
|
307
|
-
readonly scale: "borderRadii";
|
|
308
|
-
}>;
|
|
309
|
-
borderStyleX?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
310
|
-
readonly property: "borderStyle";
|
|
311
|
-
readonly properties: readonly ["borderLeftStyle", "borderRightStyle"];
|
|
312
|
-
}>;
|
|
313
|
-
borderStyleY?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
314
|
-
readonly property: "borderStyle";
|
|
315
|
-
readonly properties: readonly ["borderTopStyle", "borderBottomStyle"];
|
|
316
|
-
}>;
|
|
317
|
-
borderStyleLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
318
|
-
readonly property: "borderLeftStyle";
|
|
319
|
-
}>;
|
|
320
|
-
borderStyleRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
321
|
-
readonly property: "borderRightStyle";
|
|
322
|
-
}>;
|
|
323
|
-
borderStyleTop?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
324
|
-
readonly property: "borderTopStyle";
|
|
325
|
-
}>;
|
|
326
|
-
borderStyleBottom?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
327
|
-
readonly property: "borderBottomStyle";
|
|
328
|
-
}>;
|
|
329
|
-
} & {
|
|
330
|
-
theme?: import("@emotion/react").Theme;
|
|
47
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
48
|
+
} & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "onClick" | "slot" | "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "type" | "form" | "name" | "disabled" | keyof React.ClassAttributes<HTMLButtonElement> | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value">, "ref"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement> & {
|
|
49
|
+
children?: React.ReactNode | undefined;
|
|
50
|
+
}, "ref"> | Omit<{
|
|
51
|
+
align?: PopoverProps["align"];
|
|
52
|
+
buttonType?: "fill" | "stroke" | "text" | "kebab" | "horizontalKebab";
|
|
53
|
+
defaultPosition?: PopoverProps["position"];
|
|
54
|
+
dropdownItems: DropdownListProps["dropdownItems"];
|
|
55
|
+
horizontalOffset?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.
|
|
58
|
+
*/
|
|
59
|
+
iconSize?: number;
|
|
60
|
+
/**
|
|
61
|
+
* If the dropdown should semantically be a menu
|
|
62
|
+
*/
|
|
63
|
+
isMenu?: boolean;
|
|
64
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
65
|
+
tipProps?: React.ComponentProps<typeof IconButton>["tipProps"];
|
|
66
|
+
verticalOffset?: number;
|
|
67
|
+
} & import("@codecademy/gamut/dist/Button/shared").ButtonBaseProps & Omit<{
|
|
68
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
69
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
331
70
|
} & {
|
|
71
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
72
|
+
} & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "onClick" | "slot" | "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "type" | "form" | "name" | "disabled" | keyof React.ClassAttributes<HTMLButtonElement> | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value"> & Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "onClick" | "href" | "slot" | "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "media" | "target" | "type" | keyof React.ClassAttributes<HTMLAnchorElement> | "download" | "hrefLang" | "ping" | "referrerPolicy">, "ref"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement> & {
|
|
332
73
|
children?: React.ReactNode | undefined;
|
|
333
|
-
} & React.RefAttributes<DropdownButtonRefType>>;
|
|
74
|
+
}, "ref">) & React.RefAttributes<DropdownButtonRefType>>;
|
|
@@ -13,13 +13,13 @@ const DownArrow = /*#__PURE__*/_styled(ArrowChevronDownFilledIcon, _extends({},
|
|
|
13
13
|
label: "DownArrow"
|
|
14
14
|
}, styledOptions))("margin-left:", pxRem(8), ";transition:transform 0.35s ease-out;", ({
|
|
15
15
|
isOpen
|
|
16
|
-
}) => isOpen && 'transform: rotate(-180deg)', ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
16
|
+
}) => isOpen && 'transform: rotate(-180deg)', ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Ecm9wZG93bkJ1dHRvbi9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOEJFIiwiZmlsZSI6Ii4uLy4uL3NyYy9Ecm9wZG93bkJ1dHRvbi9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBCdXR0b25Qcm9wcyxcbiAgRmlsbEJ1dHRvbixcbiAgSWNvbkJ1dHRvbixcbiAgUG9wb3ZlcixcbiAgUG9wb3ZlclByb3BzLFxuICBTdHJva2VCdXR0b24sXG4gIFRleHRCdXR0b24sXG59IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7XG4gIEFycm93Q2hldnJvbkRvd25GaWxsZWRJY29uLFxuICBNaW5pS2ViYWJNZW51SWNvbixcbn0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtaWNvbnMnO1xuaW1wb3J0IHsgY3NzLCBweFJlbSwgc3R5bGVkT3B0aW9ucyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQge1xuICBmb3J3YXJkUmVmLFxuICBQcm9wc1dpdGhDaGlsZHJlbixcbiAgdXNlSWQsXG4gIHVzZUltcGVyYXRpdmVIYW5kbGUsXG4gIHVzZVJlZixcbiAgdXNlU3RhdGUsXG59IGZyb20gJ3JlYWN0JztcbmltcG9ydCAqIGFzIFJlYWN0IG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nZXQ6IFJlYWN0LlJlYWN0Tm9kZTtcbiAgICBzd2l0Y2ggKGJ1dHRvblR5cGUpIHtcbiAgICAgIGNhc2UgJ2ZpbGwnOlxuICAgICAgICBjbGlja1RhcmdldCA9IChcbiAgICAgICAgICA8RmlsbEJ1dHRvblxuICAgICAgICAgICAgcmVmPXt0YXJnZXRSZWZ9XG4gICAgICAgICAgICBhcmlhLWV4cGFuZGVkPXtpc09wZW59XG4gICAgICAgICAgICBpZD17YnV0dG9uSWR9XG4gICAgICAgICAgICBvbkNsaWNrPXtoYW5kbGVDbGlja31cbiAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiZHJvcGRvd24tZmlsbC1idXR0b25cIlxuICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgIHZhcmlhbnQ9e3ZhcmlhbnR9XG4gICAgICAgICAgICB7Li4uKGJ1dHRvblN0eWxlUHJvcHMgPz8ge30pfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDxEb3duQXJyb3cgaXNPcGVuPXtpc09wZW59IHNpemU9e2ljb25TaXplIHx8IDEyfSAvPlxuICAgICAgICAgIDwvRmlsbEJ1dHRvbj5cbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdzdHJva2UnOlxuICAgICAgICBjbGlja1RhcmdldCA9IChcbiAgICAgICAgICA8U3Ryb2tlQnV0dG9uXG4gICAgICAgICAgICByZWY9e3RhcmdldFJlZn1cbiAgICAgICAgICAgIGFyaWEtZXhwYW5kZWQ9e2lzT3Blbn1cbiAgICAgICAgICAgIGlkPXtidXR0b25JZH1cbiAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9XCJkcm9wZG93bi1zdHJva2UtYnV0dG9uXCJcbiAgICAgICAgICAgIHNpemU9e3NpemV9XG4gICAgICAgICAgICB2YXJpYW50PXt2YXJpYW50fVxuICAgICAgICAgICAgey4uLihidXR0b25TdHlsZVByb3BzID8/IHt9KX1cbiAgICAgICAgICA+XG4gICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgICA8RG93bkFycm93IGlzT3Blbj17aXNPcGVufSBzaXplPXtpY29uU2l6ZSB8fCAxMn0gLz5cbiAgICAgICAgICA8L1N0cm9rZUJ1dHRvbj5cbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICd0ZXh0JzpcbiAgICAgICAgY2xpY2tUYXJnZXQgPSAoXG4gICAgICAgICAgPFRleHRCdXR0b25cbiAgICAgICAgICAgIHJlZj17dGFyZ2V0UmVmfVxuICAgICAgICAgICAgaWQ9e2J1dHRvbklkfVxuICAgICAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgICAgICBkYXRhLXRlc3RpZD1cImRyb3Bkb3duLXN0cm9rZS1idXR0b25cIlxuICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgIHZhcmlhbnQ9e3ZhcmlhbnR9XG4gICAgICAgICAgICB7Li4uKGJ1dHRvblN0eWxlUHJvcHMgPz8ge30pfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDxEb3duQXJyb3cgaXNPcGVuPXtpc09wZW59IHNpemU9ezEyfSAvPlxuICAgICAgICAgIDwvVGV4dEJ1dHRvbj5cbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdrZWJhYic6XG4gICAgICAgIGNsaWNrVGFyZ2V0ID0gKFxuICAgICAgICAgIDxJY29uQnV0dG9uXG4gICAgICAgICAgICByZWY9e3RhcmdldFJlZn1cbiAgICAgICAgICAgIGFyaWEtZXhwYW5kZWQ9e2lzT3Blbn1cbiAgICAgICAgICAgIGFyaWEtaGFzcG9wdXA9XCJtZW51XCJcbiAgICAgICAgICAgIGlkPXtidXR0b25JZH1cbiAgICAgICAgICAgIGljb249eygpID0+IDxNaW5pS2ViYWJNZW51SWNvbiBzaXplPXtpY29uU2l6ZX0gLz59XG4gICAgICAgICAgICB2YXJpYW50PVwic2Vjb25kYXJ5XCJcbiAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9XCJkcm9wZG93bi1rZWJhYi1idXR0b25cIlxuICAgICAgICAgICAgdGlwPVwiU2hvdyBvcHRpb25zXCJcbiAgICAgICAgICAgIHRpcFByb3BzPXt0aXBQcm9wc31cbiAgICAgICAgICAgIHsuLi4oYnV0dG9uU3R5bGVQcm9wcyA/PyB7fSl9XG4gICAgICAgICAgLz5cbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdob3Jpem9udGFsS2ViYWInOlxuICAgICAgICBjbGlja1RhcmdldCA9IChcbiAgICAgICAgICA8SWNvbkJ1dHRvblxuICAgICAgICAgICAgYXJpYS1sYWJlbD1cIk9wdGlvbnNcIlxuICAgICAgICAgICAgcmVmPXt0YXJnZXRSZWZ9XG4gICAgICAgICAgICBhcmlhLWV4cGFuZGVkPXtpc09wZW59XG4gICAgICAgICAgICBhcmlhLWhhc3BvcHVwPVwibWVudVwiXG4gICAgICAgICAgICBpZD17YnV0dG9uSWR9XG4gICAgICAgICAgICBpY29uPXsoKSA9PiA8SG9yaXpvbnRhbEtlYmFiSWNvbiBzaXplPXtpY29uU2l6ZX0gLz59XG4gICAgICAgICAgICB2YXJpYW50PVwic2Vjb25kYXJ5XCJcbiAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9XCJkcm9wZG93bi1ob3Jpem9udGFsLWtlYmFiLWJ1dHRvblwiXG4gICAgICAgICAgICB0aXBQcm9wcz17dGlwUHJvcHN9XG4gICAgICAgICAgICB0aXA9XCJTaG93IG1vcmUgb3B0aW9uc1wiXG4gICAgICAgICAgICB7Li4uKGJ1dHRvblN0eWxlUHJvcHMgPz8ge30pfVxuICAgICAgICAgIC8+XG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgcmV0dXJuIChcbiAgICAgIDw+XG4gICAgICAgIHtjbGlja1RhcmdldH1cbiAgICAgICAge2Ryb3Bkb3duSXRlbXMubGVuZ3RoICE9PSAwICYmIChcbiAgICAgICAgICA8UG9wb3ZlclxuICAgICAgICAgICAgcG9wb3ZlckNvbnRhaW5lclJlZj17cG9wb3ZlckNvbnRhaW5lclJlZkNhbGxiYWNrfVxuICAgICAgICAgICAgdGFyZ2V0UmVmPXt0YXJnZXRSZWZ9XG4gICAgICAgICAgICBpc09wZW49e2lzT3Blbn1cbiAgICAgICAgICAgIG9uUmVxdWVzdENsb3NlPXtoYW5kbGVSZXF1ZXN0Q2xvc2VkfVxuICAgICAgICAgICAgYWxpZ249e2FsaWdufVxuICAgICAgICAgICAgdmVydGljYWxPZmZzZXQ9e3ZlcnRpY2FsT2Zmc2V0fVxuICAgICAgICAgICAgaG9yaXpvbnRhbE9mZnNldD17aG9yaXpvbnRhbE9mZnNldH1cbiAgICAgICAgICAgIHBvc2l0aW9uPXtwb3NpdGlvbn1cbiAgICAgICAgICAgIG91dGxpbmVcbiAgICAgICAgICA+XG4gICAgICAgICAgICA8RHJvcGRvd25MaXN0XG4gICAgICAgICAgICAgIGRyb3Bkb3duSXRlbXM9e2Ryb3Bkb3duSXRlbXN9XG4gICAgICAgICAgICAgIGlzTWVudT17aXNNZW51fVxuICAgICAgICAgICAgICBtZW51QnV0dG9uSWQ9e2J1dHRvbklkfVxuICAgICAgICAgICAgICBvbkNsb3NlPXtoYW5kbGVSZXF1ZXN0Q2xvc2VkfVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICA8L1BvcG92ZXI+XG4gICAgICAgICl9XG4gICAgICA8Lz5cbiAgICApO1xuICB9XG4pO1xuIl19 */"));
|
|
17
17
|
const HorizontalKebabIcon = /*#__PURE__*/_styled(MiniKebabMenuIcon, {
|
|
18
18
|
target: "e1mfstzo0",
|
|
19
19
|
label: "HorizontalKebabIcon"
|
|
20
20
|
})(css({
|
|
21
21
|
transform: 'rotate(90deg)'
|
|
22
|
-
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
22
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Ecm9wZG93bkJ1dHRvbi9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0M0QiIsImZpbGUiOiIuLi8uLi9zcmMvRHJvcGRvd25CdXR0b24vaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgQnV0dG9uUHJvcHMsXG4gIEZpbGxCdXR0b24sXG4gIEljb25CdXR0b24sXG4gIFBvcG92ZXIsXG4gIFBvcG92ZXJQcm9wcyxcbiAgU3Ryb2tlQnV0dG9uLFxuICBUZXh0QnV0dG9uLFxufSBmcm9tICdAY29kZWNhZGVteS9nYW11dCc7XG5pbXBvcnQge1xuICBBcnJvd0NoZXZyb25Eb3duRmlsbGVkSWNvbixcbiAgTWluaUtlYmFiTWVudUljb24sXG59IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LWljb25zJztcbmltcG9ydCB7IGNzcywgcHhSZW0sIHN0eWxlZE9wdGlvbnMgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHtcbiAgZm9yd2FyZFJlZixcbiAgUHJvcHNXaXRoQ2hpbGRyZW4sXG4gIHVzZUlkLFxuICB1c2VJbXBlcmF0aXZlSGFuZGxlLFxuICB1c2VSZWYsXG4gIHVzZVN0YXRlLFxufSBmcm9tICdyZ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saWNrVGFyZ2V0OiBSZWFjdC5SZWFjdE5vZGU7XG4gICAgc3dpdGNoIChidXR0b25UeXBlKSB7XG4gICAgICBjYXNlICdmaWxsJzpcbiAgICAgICAgY2xpY2tUYXJnZXQgPSAoXG4gICAgICAgICAgPEZpbGxCdXR0b25cbiAgICAgICAgICAgIHJlZj17dGFyZ2V0UmVmfVxuICAgICAgICAgICAgYXJpYS1leHBhbmRlZD17aXNPcGVufVxuICAgICAgICAgICAgaWQ9e2J1dHRvbklkfVxuICAgICAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgICAgICBkYXRhLXRlc3RpZD1cImRyb3Bkb3duLWZpbGwtYnV0dG9uXCJcbiAgICAgICAgICAgIHNpemU9e3NpemV9XG4gICAgICAgICAgICB2YXJpYW50PXt2YXJpYW50fVxuICAgICAgICAgICAgey4uLihidXR0b25TdHlsZVByb3BzID8/IHt9KX1cbiAgICAgICAgICA+XG4gICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgICA8RG93bkFycm93IGlzT3Blbj17aXNPcGVufSBzaXplPXtpY29uU2l6ZSB8fCAxMn0gLz5cbiAgICAgICAgICA8L0ZpbGxCdXR0b24+XG4gICAgICAgICk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAnc3Ryb2tlJzpcbiAgICAgICAgY2xpY2tUYXJnZXQgPSAoXG4gICAgICAgICAgPFN0cm9rZUJ1dHRvblxuICAgICAgICAgICAgcmVmPXt0YXJnZXRSZWZ9XG4gICAgICAgICAgICBhcmlhLWV4cGFuZGVkPXtpc09wZW59XG4gICAgICAgICAgICBpZD17YnV0dG9uSWR9XG4gICAgICAgICAgICBvbkNsaWNrPXtoYW5kbGVDbGlja31cbiAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiZHJvcGRvd24tc3Ryb2tlLWJ1dHRvblwiXG4gICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgdmFyaWFudD17dmFyaWFudH1cbiAgICAgICAgICAgIHsuLi4oYnV0dG9uU3R5bGVQcm9wcyA/PyB7fSl9XG4gICAgICAgICAgPlxuICAgICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICAgICAgPERvd25BcnJvdyBpc09wZW49e2lzT3Blbn0gc2l6ZT17aWNvblNpemUgfHwgMTJ9IC8+XG4gICAgICAgICAgPC9TdHJva2VCdXR0b24+XG4gICAgICAgICk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAndGV4dCc6XG4gICAgICAgIGNsaWNrVGFyZ2V0ID0gKFxuICAgICAgICAgIDxUZXh0QnV0dG9uXG4gICAgICAgICAgICByZWY9e3RhcmdldFJlZn1cbiAgICAgICAgICAgIGlkPXtidXR0b25JZH1cbiAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9XCJkcm9wZG93bi1zdHJva2UtYnV0dG9uXCJcbiAgICAgICAgICAgIHNpemU9e3NpemV9XG4gICAgICAgICAgICB2YXJpYW50PXt2YXJpYW50fVxuICAgICAgICAgICAgey4uLihidXR0b25TdHlsZVByb3BzID8/IHt9KX1cbiAgICAgICAgICA+XG4gICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgICA8RG93bkFycm93IGlzT3Blbj17aXNPcGVufSBzaXplPXsxMn0gLz5cbiAgICAgICAgICA8L1RleHRCdXR0b24+XG4gICAgICAgICk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAna2ViYWInOlxuICAgICAgICBjbGlja1RhcmdldCA9IChcbiAgICAgICAgICA8SWNvbkJ1dHRvblxuICAgICAgICAgICAgcmVmPXt0YXJnZXRSZWZ9XG4gICAgICAgICAgICBhcmlhLWV4cGFuZGVkPXtpc09wZW59XG4gICAgICAgICAgICBhcmlhLWhhc3BvcHVwPVwibWVudVwiXG4gICAgICAgICAgICBpZD17YnV0dG9uSWR9XG4gICAgICAgICAgICBpY29uPXsoKSA9PiA8TWluaUtlYmFiTWVudUljb24gc2l6ZT17aWNvblNpemV9IC8+fVxuICAgICAgICAgICAgdmFyaWFudD1cInNlY29uZGFyeVwiXG4gICAgICAgICAgICBvbkNsaWNrPXtoYW5kbGVDbGlja31cbiAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiZHJvcGRvd24ta2ViYWItYnV0dG9uXCJcbiAgICAgICAgICAgIHRpcD1cIlNob3cgb3B0aW9uc1wiXG4gICAgICAgICAgICB0aXBQcm9wcz17dGlwUHJvcHN9XG4gICAgICAgICAgICB7Li4uKGJ1dHRvblN0eWxlUHJvcHMgPz8ge30pfVxuICAgICAgICAgIC8+XG4gICAgICAgICk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAnaG9yaXpvbnRhbEtlYmFiJzpcbiAgICAgICAgY2xpY2tUYXJnZXQgPSAoXG4gICAgICAgICAgPEljb25CdXR0b25cbiAgICAgICAgICAgIGFyaWEtbGFiZWw9XCJPcHRpb25zXCJcbiAgICAgICAgICAgIHJlZj17dGFyZ2V0UmVmfVxuICAgICAgICAgICAgYXJpYS1leHBhbmRlZD17aXNPcGVufVxuICAgICAgICAgICAgYXJpYS1oYXNwb3B1cD1cIm1lbnVcIlxuICAgICAgICAgICAgaWQ9e2J1dHRvbklkfVxuICAgICAgICAgICAgaWNvbj17KCkgPT4gPEhvcml6b250YWxLZWJhYkljb24gc2l6ZT17aWNvblNpemV9IC8+fVxuICAgICAgICAgICAgdmFyaWFudD1cInNlY29uZGFyeVwiXG4gICAgICAgICAgICBvbkNsaWNrPXtoYW5kbGVDbGlja31cbiAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiZHJvcGRvd24taG9yaXpvbnRhbC1rZWJhYi1idXR0b25cIlxuICAgICAgICAgICAgdGlwUHJvcHM9e3RpcFByb3BzfVxuICAgICAgICAgICAgdGlwPVwiU2hvdyBtb3JlIG9wdGlvbnNcIlxuICAgICAgICAgICAgey4uLihidXR0b25TdHlsZVByb3BzID8/IHt9KX1cbiAgICAgICAgICAvPlxuICAgICAgICApO1xuICAgIH1cblxuICAgIHJldHVybiAoXG4gICAgICA8PlxuICAgICAgICB7Y2xpY2tUYXJnZXR9XG4gICAgICAgIHtkcm9wZG93bkl0ZW1zLmxlbmd0aCAhPT0gMCAmJiAoXG4gICAgICAgICAgPFBvcG92ZXJcbiAgICAgICAgICAgIHBvcG92ZXJDb250YWluZXJSZWY9e3BvcG92ZXJDb250YWluZXJSZWZDYWxsYmFja31cbiAgICAgICAgICAgIHRhcmdldFJlZj17dGFyZ2V0UmVmfVxuICAgICAgICAgICAgaXNPcGVuPXtpc09wZW59XG4gICAgICAgICAgICBvblJlcXVlc3RDbG9zZT17aGFuZGxlUmVxdWVzdENsb3NlZH1cbiAgICAgICAgICAgIGFsaWduPXthbGlnbn1cbiAgICAgICAgICAgIHZlcnRpY2FsT2Zmc2V0PXt2ZXJ0aWNhbE9mZnNldH1cbiAgICAgICAgICAgIGhvcml6b250YWxPZmZzZXQ9e2hvcml6b250YWxPZmZzZXR9XG4gICAgICAgICAgICBwb3NpdGlvbj17cG9zaXRpb259XG4gICAgICAgICAgICBvdXRsaW5lXG4gICAgICAgICAgPlxuICAgICAgICAgICAgPERyb3Bkb3duTGlzdFxuICAgICAgICAgICAgICBkcm9wZG93bkl0ZW1zPXtkcm9wZG93bkl0ZW1zfVxuICAgICAgICAgICAgICBpc01lbnU9e2lzTWVudX1cbiAgICAgICAgICAgICAgbWVudUJ1dHRvbklkPXtidXR0b25JZH1cbiAgICAgICAgICAgICAgb25DbG9zZT17aGFuZGxlUmVxdWVzdENsb3NlZH1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9Qb3BvdmVyPlxuICAgICAgICApfVxuICAgICAgPC8+XG4gICAgKTtcbiAgfVxuKTtcbiJdfQ== */");
|
|
23
23
|
export const DropdownButton = /*#__PURE__*/forwardRef(({
|
|
24
24
|
align = 'left',
|
|
25
25
|
buttonType = 'fill',
|
|
@@ -27,11 +27,13 @@ export const DropdownButton = /*#__PURE__*/forwardRef(({
|
|
|
27
27
|
defaultPosition = 'below',
|
|
28
28
|
dropdownItems,
|
|
29
29
|
horizontalOffset,
|
|
30
|
+
iconSize,
|
|
30
31
|
isMenu,
|
|
31
32
|
onClick,
|
|
32
|
-
verticalOffset = 0,
|
|
33
|
-
size,
|
|
34
33
|
tipProps,
|
|
34
|
+
verticalOffset = 0,
|
|
35
|
+
size = 'normal',
|
|
36
|
+
variant = 'primary',
|
|
35
37
|
...buttonStyleProps
|
|
36
38
|
}, ref) => {
|
|
37
39
|
const buttonId = useId();
|
|
@@ -66,10 +68,12 @@ export const DropdownButton = /*#__PURE__*/forwardRef(({
|
|
|
66
68
|
id: buttonId,
|
|
67
69
|
onClick: handleClick,
|
|
68
70
|
"data-testid": "dropdown-fill-button",
|
|
71
|
+
size: size,
|
|
72
|
+
variant: variant,
|
|
69
73
|
...(buttonStyleProps ?? {}),
|
|
70
74
|
children: [children, /*#__PURE__*/_jsx(DownArrow, {
|
|
71
75
|
isOpen: isOpen,
|
|
72
|
-
size:
|
|
76
|
+
size: iconSize || 12
|
|
73
77
|
})]
|
|
74
78
|
});
|
|
75
79
|
break;
|
|
@@ -80,10 +84,12 @@ export const DropdownButton = /*#__PURE__*/forwardRef(({
|
|
|
80
84
|
id: buttonId,
|
|
81
85
|
onClick: handleClick,
|
|
82
86
|
"data-testid": "dropdown-stroke-button",
|
|
87
|
+
size: size,
|
|
88
|
+
variant: variant,
|
|
83
89
|
...(buttonStyleProps ?? {}),
|
|
84
90
|
children: [children, /*#__PURE__*/_jsx(DownArrow, {
|
|
85
91
|
isOpen: isOpen,
|
|
86
|
-
size:
|
|
92
|
+
size: iconSize || 12
|
|
87
93
|
})]
|
|
88
94
|
});
|
|
89
95
|
break;
|
|
@@ -93,6 +99,8 @@ export const DropdownButton = /*#__PURE__*/forwardRef(({
|
|
|
93
99
|
id: buttonId,
|
|
94
100
|
onClick: handleClick,
|
|
95
101
|
"data-testid": "dropdown-stroke-button",
|
|
102
|
+
size: size,
|
|
103
|
+
variant: variant,
|
|
96
104
|
...(buttonStyleProps ?? {}),
|
|
97
105
|
children: [children, /*#__PURE__*/_jsx(DownArrow, {
|
|
98
106
|
isOpen: isOpen,
|
|
@@ -107,9 +115,8 @@ export const DropdownButton = /*#__PURE__*/forwardRef(({
|
|
|
107
115
|
"aria-haspopup": "menu",
|
|
108
116
|
id: buttonId,
|
|
109
117
|
icon: () => /*#__PURE__*/_jsx(MiniKebabMenuIcon, {
|
|
110
|
-
size:
|
|
118
|
+
size: iconSize
|
|
111
119
|
}),
|
|
112
|
-
size: "small",
|
|
113
120
|
variant: "secondary",
|
|
114
121
|
onClick: handleClick,
|
|
115
122
|
"data-testid": "dropdown-kebab-button",
|
|
@@ -126,9 +133,8 @@ export const DropdownButton = /*#__PURE__*/forwardRef(({
|
|
|
126
133
|
"aria-haspopup": "menu",
|
|
127
134
|
id: buttonId,
|
|
128
135
|
icon: () => /*#__PURE__*/_jsx(HorizontalKebabIcon, {
|
|
129
|
-
size:
|
|
136
|
+
size: iconSize
|
|
130
137
|
}),
|
|
131
|
-
size: "small",
|
|
132
138
|
variant: "secondary",
|
|
133
139
|
onClick: handleClick,
|
|
134
140
|
"data-testid": "dropdown-horizontal-kebab-button",
|
|
@@ -4,3 +4,8 @@ declare const meta: Meta<typeof DropdownButton>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof DropdownButton>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
+
export declare const DropdownButtonTypes: Story;
|
|
8
|
+
export declare const DropdownButtonVariants: Story;
|
|
9
|
+
export declare const DropdownTextButtonSizes: Story;
|
|
10
|
+
export declare const DropdownIconButtonSizes: Story;
|
|
11
|
+
export declare const DropdownPopoverAlignment: Story;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Box, FlexBox } from '@codecademy/gamut';
|
|
2
|
+
import { SparkleIcon } from '@codecademy/gamut-icons';
|
|
1
3
|
import { DropdownButton } from '../../index';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
5
|
const items = [{
|
|
4
6
|
id: 'one',
|
|
5
7
|
text: 'I have an href',
|
|
@@ -9,25 +11,197 @@ const items = [{
|
|
|
9
11
|
text: 'I have an onClick',
|
|
10
12
|
// eslint-disable-next-line no-console
|
|
11
13
|
clickHandler: () => console.log('hi')
|
|
12
|
-
}
|
|
14
|
+
}];
|
|
15
|
+
const extraItems = [{
|
|
13
16
|
id: 'three',
|
|
14
17
|
text: 'I have an href & onClick',
|
|
15
18
|
href: '#',
|
|
16
19
|
// eslint-disable-next-line no-console
|
|
17
20
|
clickHandler: () => console.log('hi')
|
|
21
|
+
}, 'separator', {
|
|
22
|
+
id: 'four',
|
|
23
|
+
text: 'I have an href & onClick & icon',
|
|
24
|
+
href: '#',
|
|
25
|
+
// eslint-disable-next-line no-console
|
|
26
|
+
clickHandler: () => console.log('hi'),
|
|
27
|
+
icon: SparkleIcon
|
|
18
28
|
}];
|
|
19
29
|
const meta = {
|
|
20
30
|
component: DropdownButton,
|
|
21
31
|
args: {
|
|
22
32
|
buttonType: 'fill',
|
|
23
|
-
dropdownItems: items
|
|
33
|
+
dropdownItems: items,
|
|
34
|
+
variant: 'primary'
|
|
35
|
+
},
|
|
36
|
+
parameters: {
|
|
37
|
+
controls: {
|
|
38
|
+
include: ['align', 'buttonType', 'children', 'dropDownItems', 'horizontalOffset', 'iconSize', 'isMenu', 'onClick', 'size', 'tipProps', 'variant', 'verticalOffset']
|
|
39
|
+
}
|
|
24
40
|
}
|
|
25
41
|
};
|
|
26
42
|
export default meta;
|
|
27
43
|
export const Default = {
|
|
44
|
+
args: {
|
|
45
|
+
dropdownItems: [...items, ...extraItems],
|
|
46
|
+
isMenu: false
|
|
47
|
+
},
|
|
28
48
|
render: args => /*#__PURE__*/_jsx(DropdownButton, {
|
|
29
49
|
...args,
|
|
30
50
|
children: "click me"
|
|
31
51
|
}),
|
|
32
52
|
name: 'DropdownButton'
|
|
53
|
+
};
|
|
54
|
+
export const DropdownButtonTypes = {
|
|
55
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
56
|
+
justifyContent: "space-between",
|
|
57
|
+
p: 40,
|
|
58
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
59
|
+
width: "fit-content",
|
|
60
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
61
|
+
...args,
|
|
62
|
+
buttonType: "fill",
|
|
63
|
+
children: "Fill"
|
|
64
|
+
})
|
|
65
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
66
|
+
width: "fit-content",
|
|
67
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
68
|
+
...args,
|
|
69
|
+
buttonType: "stroke",
|
|
70
|
+
children: "Stroke"
|
|
71
|
+
})
|
|
72
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
73
|
+
width: "fit-content",
|
|
74
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
75
|
+
...args,
|
|
76
|
+
buttonType: "text",
|
|
77
|
+
children: "Text"
|
|
78
|
+
})
|
|
79
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
80
|
+
width: "fit-content",
|
|
81
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
82
|
+
...args,
|
|
83
|
+
buttonType: "kebab"
|
|
84
|
+
})
|
|
85
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
86
|
+
width: "fit-content",
|
|
87
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
88
|
+
...args,
|
|
89
|
+
buttonType: "horizontalKebab"
|
|
90
|
+
})
|
|
91
|
+
})]
|
|
92
|
+
})
|
|
93
|
+
};
|
|
94
|
+
export const DropdownButtonVariants = {
|
|
95
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
96
|
+
justifyContent: "space-around",
|
|
97
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
98
|
+
width: "fit-content",
|
|
99
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
100
|
+
...args,
|
|
101
|
+
buttonType: "stroke",
|
|
102
|
+
children: "Stroke primary"
|
|
103
|
+
})
|
|
104
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
105
|
+
width: "fit-content",
|
|
106
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
107
|
+
...args,
|
|
108
|
+
buttonType: "stroke",
|
|
109
|
+
variant: "secondary",
|
|
110
|
+
children: "Stroke secondary"
|
|
111
|
+
})
|
|
112
|
+
})]
|
|
113
|
+
})
|
|
114
|
+
};
|
|
115
|
+
export const DropdownTextButtonSizes = {
|
|
116
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
117
|
+
justifyContent: "space-around",
|
|
118
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
119
|
+
alignSelf: "center",
|
|
120
|
+
width: "fit-content",
|
|
121
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
122
|
+
...args,
|
|
123
|
+
buttonType: "fill",
|
|
124
|
+
size: "small",
|
|
125
|
+
children: "Fill small"
|
|
126
|
+
})
|
|
127
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
128
|
+
alignSelf: "center",
|
|
129
|
+
width: "fit-content",
|
|
130
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
131
|
+
...args,
|
|
132
|
+
buttonType: "fill",
|
|
133
|
+
size: "normal",
|
|
134
|
+
children: "Fill normal"
|
|
135
|
+
})
|
|
136
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
137
|
+
alignSelf: "center",
|
|
138
|
+
width: "fit-content",
|
|
139
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
140
|
+
...args,
|
|
141
|
+
buttonType: "fill",
|
|
142
|
+
size: "large",
|
|
143
|
+
children: "Fill large"
|
|
144
|
+
})
|
|
145
|
+
})]
|
|
146
|
+
})
|
|
147
|
+
};
|
|
148
|
+
export const DropdownIconButtonSizes = {
|
|
149
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
150
|
+
row: true,
|
|
151
|
+
justifyContent: "space-around",
|
|
152
|
+
mt: 16,
|
|
153
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
154
|
+
alignSelf: "center",
|
|
155
|
+
width: "fit-content",
|
|
156
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
157
|
+
...args,
|
|
158
|
+
buttonType: "kebab",
|
|
159
|
+
size: "small",
|
|
160
|
+
iconSize: 12
|
|
161
|
+
})
|
|
162
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
163
|
+
alignSelf: "center",
|
|
164
|
+
width: "fit-content",
|
|
165
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
166
|
+
...args,
|
|
167
|
+
buttonType: "kebab",
|
|
168
|
+
size: "normal"
|
|
169
|
+
})
|
|
170
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
171
|
+
alignSelf: "center",
|
|
172
|
+
width: "fit-content",
|
|
173
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
174
|
+
...args,
|
|
175
|
+
buttonType: "kebab",
|
|
176
|
+
size: "large",
|
|
177
|
+
iconSize: 20
|
|
178
|
+
})
|
|
179
|
+
})]
|
|
180
|
+
})
|
|
181
|
+
};
|
|
182
|
+
export const DropdownPopoverAlignment = {
|
|
183
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
184
|
+
row: true,
|
|
185
|
+
justifyContent: "space-around",
|
|
186
|
+
mt: 16,
|
|
187
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
188
|
+
width: "fit-content",
|
|
189
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
190
|
+
...args,
|
|
191
|
+
buttonType: "text",
|
|
192
|
+
size: "small",
|
|
193
|
+
align: "left",
|
|
194
|
+
children: "Align left"
|
|
195
|
+
})
|
|
196
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
197
|
+
width: "fit-content",
|
|
198
|
+
children: /*#__PURE__*/_jsx(DropdownButton, {
|
|
199
|
+
...args,
|
|
200
|
+
buttonType: "text",
|
|
201
|
+
size: "small",
|
|
202
|
+
align: "right",
|
|
203
|
+
children: "Align right"
|
|
204
|
+
})
|
|
205
|
+
})]
|
|
206
|
+
})
|
|
33
207
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/brand",
|
|
3
3
|
"description": "Brand component library for Codecademy",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.22.0-alpha.e29fc5868c.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|