@codecademy/brand 1.20.0-alpha.b7bd463f14.0 → 1.20.0-alpha.cc6f658e11.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,5 +1,5 @@
|
|
|
1
|
-
import { ButtonProps,
|
|
2
|
-
import {
|
|
1
|
+
import { ButtonProps, IconButton, PopoverProps } from '@codecademy/gamut';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { DropdownListProps } from './DropdownList';
|
|
5
5
|
export type DropdownButtonRefType = {
|
|
@@ -7,14 +7,14 @@ export type DropdownButtonRefType = {
|
|
|
7
7
|
};
|
|
8
8
|
export type DropdownButtonProps = PropsWithChildren<{
|
|
9
9
|
align?: PopoverProps['align'];
|
|
10
|
-
/**
|
|
11
|
-
* Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.
|
|
12
|
-
*/
|
|
13
|
-
iconSize?: number;
|
|
14
10
|
buttonType: 'fill' | 'stroke' | 'text' | 'kebab' | 'horizontalKebab';
|
|
15
11
|
defaultPosition?: PopoverProps['position'];
|
|
16
12
|
dropdownItems: DropdownListProps['dropdownItems'];
|
|
17
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;
|
|
18
18
|
/**
|
|
19
19
|
* If the dropdown should semantically be a menu
|
|
20
20
|
*/
|
|
@@ -22,17 +22,17 @@ export type DropdownButtonProps = PropsWithChildren<{
|
|
|
22
22
|
onClick?: (event: React.MouseEvent) => void;
|
|
23
23
|
tipProps?: React.ComponentProps<typeof IconButton>['tipProps'];
|
|
24
24
|
verticalOffset?: number;
|
|
25
|
-
} &
|
|
25
|
+
} & ButtonProps>;
|
|
26
26
|
export declare const DropdownButton: React.ForwardRefExoticComponent<(Omit<{
|
|
27
27
|
align?: PopoverProps["align"];
|
|
28
|
-
/**
|
|
29
|
-
* Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.
|
|
30
|
-
*/
|
|
31
|
-
iconSize?: number;
|
|
32
28
|
buttonType: "fill" | "stroke" | "text" | "kebab" | "horizontalKebab";
|
|
33
29
|
defaultPosition?: PopoverProps["position"];
|
|
34
30
|
dropdownItems: DropdownListProps["dropdownItems"];
|
|
35
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;
|
|
36
36
|
/**
|
|
37
37
|
* If the dropdown should semantically be a menu
|
|
38
38
|
*/
|
|
@@ -40,27 +40,23 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<(Omit<{
|
|
|
40
40
|
onClick?: (event: React.MouseEvent) => void;
|
|
41
41
|
tipProps?: React.ComponentProps<typeof IconButton>["tipProps"];
|
|
42
42
|
verticalOffset?: number;
|
|
43
|
-
} & Omit<
|
|
43
|
+
} & import("@codecademy/gamut/dist/Button/shared").ButtonBaseProps & Omit<{
|
|
44
44
|
theme?: import("@emotion/react").Theme | undefined;
|
|
45
45
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
theme?: import("@emotion/react").Theme | undefined;
|
|
48
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
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
-
} & import("@codecademy/gamut/dist/Button/shared").ButtonBaseProps & Partial<import("@codecademy/gamut").IconComponentType> & {
|
|
51
|
-
iconPosition?: "left" | "right" | undefined;
|
|
52
|
-
}, "ref"> & React.RefAttributes<import("@codecademy/gamut").ButtonBaseElements> & Partial<Pick<ButtonProps, "variant" | "size">> & {
|
|
53
49
|
children?: React.ReactNode | undefined;
|
|
54
50
|
}, "ref"> | Omit<{
|
|
55
51
|
align?: PopoverProps["align"];
|
|
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
52
|
buttonType: "fill" | "stroke" | "text" | "kebab" | "horizontalKebab";
|
|
61
53
|
defaultPosition?: PopoverProps["position"];
|
|
62
54
|
dropdownItems: DropdownListProps["dropdownItems"];
|
|
63
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;
|
|
64
60
|
/**
|
|
65
61
|
* If the dropdown should semantically be a menu
|
|
66
62
|
*/
|
|
@@ -68,15 +64,11 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<(Omit<{
|
|
|
68
64
|
onClick?: (event: React.MouseEvent) => void;
|
|
69
65
|
tipProps?: React.ComponentProps<typeof IconButton>["tipProps"];
|
|
70
66
|
verticalOffset?: number;
|
|
71
|
-
} & Omit<
|
|
67
|
+
} & import("@codecademy/gamut/dist/Button/shared").ButtonBaseProps & Omit<{
|
|
72
68
|
theme?: import("@emotion/react").Theme | undefined;
|
|
73
69
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
74
70
|
} & {
|
|
75
71
|
theme?: import("@emotion/react").Theme | undefined;
|
|
76
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> & {
|
|
77
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
78
|
-
} & import("@codecademy/gamut/dist/Button/shared").ButtonBaseProps & Partial<import("@codecademy/gamut").IconComponentType> & {
|
|
79
|
-
iconPosition?: "left" | "right" | undefined;
|
|
80
|
-
}, "ref"> & React.RefAttributes<import("@codecademy/gamut").ButtonBaseElements> & Partial<Pick<ButtonProps, "variant" | "size">> & {
|
|
81
73
|
children?: React.ReactNode | undefined;
|
|
82
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Ecm9wZG93bkJ1dHRvbi9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOEJFIiwiZmlsZSI6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Q9XCJkcm9wZG93bi1maWxsLWJ1dHRvblwiXG4gICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgdmFyaWFudD17dmFyaWFudH1cbiAgICAgICAgICAgIHsuLi4oYnV0dG9uU3R5bGVQcm9wcyA/PyB7fSl9XG4gICAgICAgICAgPlxuICAgICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICAgICAgPERvd25BcnJvdyBpc09wZW49e2lzT3Blbn0gc2l6ZT17aWNvblNpemUgfHwgMTJ9IC8+XG4gICAgICAgICAgPC9GaWxsQnV0dG9uPlxuICAgICAgICApO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3N0cm9rZSc6XG4gICAgICAgIGNsaWNrVGFyZ2V0ID0gKFxuICAgICAgICAgIDxTdHJva2VCdXR0b25cbiAgICAgICAgICAgIHJlZj17dGFyZ2V0UmVmfVxuICAgICAgICAgICAgYXJpYS1leHBhbmRlZD17aXNPcGVufVxuICAgICAgICAgICAgaWQ9e2J1dHRvbklkfVxuICAgICAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgICAgICBkYXRhLXRlc3RpZD1cImRyb3Bkb3duLXN0cm9rZS1idXR0b25cIlxuICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgIHZhcmlhbnQ9e3ZhcmlhbnR9XG4gICAgICAgICAgICB7Li4uKGJ1dHRvblN0eWxlUHJvcHMgPz8ge30pfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDxEb3duQXJyb3cgaXNPcGVuPXtpc09wZW59IHNpemU9e2ljb25TaXplIHx8IDEyfSAvPlxuICAgICAgICAgIDwvU3Ryb2tlQnV0dG9uPlxuICAgICAgICApO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3RleHQnOlxuICAgICAgICBjbGlja1RhcmdldCA9IChcbiAgICAgICAgICA8VGV4dEJ1dHRvblxuICAgICAgICAgICAgcmVmPXt0YXJnZXRSZWZ9XG4gICAgICAgICAgICBpZD17YnV0dG9uSWR9XG4gICAgICAgICAgICBvbkNsaWNrPXtoYW5kbGVDbGlja31cbiAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiZHJvcGRvd24tc3Ryb2tlLWJ1dHRvblwiXG4gICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgdmFyaWFudD17dmFyaWFudH1cbiAgICAgICAgICAgIHsuLi4oYnV0dG9uU3R5bGVQcm9wcyA/PyB7fSl9XG4gICAgICAgICAgPlxuICAgICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICAgICAgPERvd25BcnJvdyBpc09wZW49e2lzT3Blbn0gc2l6ZT17MTJ9IC8+XG4gICAgICAgICAgPC9UZXh0QnV0dG9uPlxuICAgICAgICApO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2tlYmFiJzpcbiAgICAgICAgY2xpY2tUYXJnZXQgPSAoXG4gICAgICAgICAgPEljb25CdXR0b25cbiAgICAgICAgICAgIHJlZj17dGFyZ2V0UmVmfVxuICAgICAgICAgICAgYXJpYS1leHBhbmRlZD17aXNPcGVufVxuICAgICAgICAgICAgYXJpYS1oYXNwb3B1cD1cIm1lbnVcIlxuICAgICAgICAgICAgaWQ9e2J1dHRvbklkfVxuICAgICAgICAgICAgaWNvbj17KCkgPT4gPE1pbmlLZWJhYk1lbnVJY29uIHNpemU9e2ljb25TaXplfSAvPn1cbiAgICAgICAgICAgIHZhcmlhbnQ9XCJzZWNvbmRhcnlcIlxuICAgICAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgICAgICBkYXRhLXRlc3RpZD1cImRyb3Bkb3duLWtlYmFiLWJ1dHRvblwiXG4gICAgICAgICAgICB0aXA9XCJTaG93IG9wdGlvbnNcIlxuICAgICAgICAgICAgdGlwUHJvcHM9e3RpcFByb3BzfVxuICAgICAgICAgICAgey4uLihidXR0b25TdHlsZVByb3BzID8/IHt9KX1cbiAgICAgICAgICAvPlxuICAgICAgICApO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2hvcml6b250YWxLZWJhYic6XG4gICAgICAgIGNsaWNrVGFyZ2V0ID0gKFxuICAgICAgICAgIDxJY29uQnV0dG9uXG4gICAgICAgICAgICBhcmlhLWxhYmVsPVwiT3B0aW9uc1wiXG4gICAgICAgICAgICByZWY9e3RhcmdldFJlZn1cbiAgICAgICAgICAgIGFyaWEtZXhwYW5kZWQ9e2lzT3Blbn1cbiAgICAgICAgICAgIGFyaWEtaGFzcG9wdXA9XCJtZW51XCJcbiAgICAgICAgICAgIGlkPXtidXR0b25JZH1cbiAgICAgICAgICAgIGljb249eygpID0+IDxIb3Jpem9udGFsS2ViYWJJY29uIHNpemU9e2ljb25TaXplfSAvPn1cbiAgICAgICAgICAgIHZhcmlhbnQ9XCJzZWNvbmRhcnlcIlxuICAgICAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgICAgICBkYXRhLXRlc3RpZD1cImRyb3Bkb3duLWhvcml6b250YWwta2ViYWItYnV0dG9uXCJcbiAgICAgICAgICAgIHRpcFByb3BzPXt0aXBQcm9wc31cbiAgICAgICAgICAgIHRpcD1cIlNob3cgbW9yZSBvcHRpb25zXCJcbiAgICAgICAgICAgIHsuLi4oYnV0dG9uU3R5bGVQcm9wcyA/PyB7fSl9XG4gICAgICAgICAgLz5cbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICByZXR1cm4gKFxuICAgICAgPD5cbiAgICAgICAge2NsaWNrVGFyZ2V0fVxuICAgICAgICB7ZHJvcGRvd25JdGVtcy5sZW5ndGggIT09IDAgJiYgKFxuICAgICAgICAgIDxQb3BvdmVyXG4gICAgICAgICAgICBwb3BvdmVyQ29udGFpbmVyUmVmPXtwb3BvdmVyQ29udGFpbmVyUmVmQ2FsbGJhY2t9XG4gICAgICAgICAgICB0YXJnZXRSZWY9e3RhcmdldFJlZn1cbiAgICAgICAgICAgIGlzT3Blbj17aXNPcGVufVxuICAgICAgICAgICAgb25SZXF1ZXN0Q2xvc2U9e2hhbmRsZVJlcXVlc3RDbG9zZWR9XG4gICAgICAgICAgICBhbGlnbj17YWxpZ259XG4gICAgICAgICAgICB2ZXJ0aWNhbE9mZnNldD17dmVydGljYWxPZmZzZXR9XG4gICAgICAgICAgICBob3Jpem9udGFsT2Zmc2V0PXtob3Jpem9udGFsT2Zmc2V0fVxuICAgICAgICAgICAgcG9zaXRpb249e3Bvc2l0aW9ufVxuICAgICAgICAgICAgb3V0bGluZVxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxEcm9wZG93bkxpc3RcbiAgICAgICAgICAgICAgZHJvcGRvd25JdGVtcz17ZHJvcGRvd25JdGVtc31cbiAgICAgICAgICAgICAgaXNNZW51PXtpc01lbnV9XG4gICAgICAgICAgICAgIG1lbnVCdXR0b25JZD17YnV0dG9uSWR9XG4gICAgICAgICAgICAgIG9uQ2xvc2U9e2hhbmRsZVJlcXVlc3RDbG9zZWR9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvUG9wb3Zlcj5cbiAgICAgICAgKX1cbiAgICAgIDwvPlxuICAgICk7XG4gIH1cbik7XG4iXX0= */"));
|
|
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Ecm9wZG93bkJ1dHRvbi9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0M0QiIsImZpbGUiO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ZHJvcGRvd24tZmlsbC1idXR0b25cIlxuICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgIHZhcmlhbnQ9e3ZhcmlhbnR9XG4gICAgICAgICAgICB7Li4uKGJ1dHRvblN0eWxlUHJvcHMgPz8ge30pfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDxEb3duQXJyb3cgaXNPcGVuPXtpc09wZW59IHNpemU9e2ljb25TaXplIHx8IDEyfSAvPlxuICAgICAgICAgIDwvRmlsbEJ1dHRvbj5cbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdzdHJva2UnOlxuICAgICAgICBjbGlja1RhcmdldCA9IChcbiAgICAgICAgICA8U3Ryb2tlQnV0dG9uXG4gICAgICAgICAgICByZWY9e3RhcmdldFJlZn1cbiAgICAgICAgICAgIGFyaWEtZXhwYW5kZWQ9e2lzT3Blbn1cbiAgICAgICAgICAgIGlkPXtidXR0b25JZH1cbiAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9XCJkcm9wZG93bi1zdHJva2UtYnV0dG9uXCJcbiAgICAgICAgICAgIHNpemU9e3NpemV9XG4gICAgICAgICAgICB2YXJpYW50PXt2YXJpYW50fVxuICAgICAgICAgICAgey4uLihidXR0b25TdHlsZVByb3BzID8/IHt9KX1cbiAgICAgICAgICA+XG4gICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgICA8RG93bkFycm93IGlzT3Blbj17aXNPcGVufSBzaXplPXtpY29uU2l6ZSB8fCAxMn0gLz5cbiAgICAgICAgICA8L1N0cm9rZUJ1dHRvbj5cbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICd0ZXh0JzpcbiAgICAgICAgY2xpY2tUYXJnZXQgPSAoXG4gICAgICAgICAgPFRleHRCdXR0b25cbiAgICAgICAgICAgIHJlZj17dGFyZ2V0UmVmfVxuICAgICAgICAgICAgaWQ9e2J1dHRvbklkfVxuICAgICAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgICAgICBkYXRhLXRlc3RpZD1cImRyb3Bkb3duLXN0cm9rZS1idXR0b25cIlxuICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgIHZhcmlhbnQ9e3ZhcmlhbnR9XG4gICAgICAgICAgICB7Li4uKGJ1dHRvblN0eWxlUHJvcHMgPz8ge30pfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDxEb3duQXJyb3cgaXNPcGVuPXtpc09wZW59IHNpemU9ezEyfSAvPlxuICAgICAgICAgIDwvVGV4dEJ1dHRvbj5cbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdrZWJhYic6XG4gICAgICAgIGNsaWNrVGFyZ2V0ID0gKFxuICAgICAgICAgIDxJY29uQnV0dG9uXG4gICAgICAgICAgICByZWY9e3RhcmdldFJlZn1cbiAgICAgICAgICAgIGFyaWEtZXhwYW5kZWQ9e2lzT3Blbn1cbiAgICAgICAgICAgIGFyaWEtaGFzcG9wdXA9XCJtZW51XCJcbiAgICAgICAgICAgIGlkPXtidXR0b25JZH1cbiAgICAgICAgICAgIGljb249eygpID0+IDxNaW5pS2ViYWJNZW51SWNvbiBzaXplPXtpY29uU2l6ZX0gLz59XG4gICAgICAgICAgICB2YXJpYW50PVwic2Vjb25kYXJ5XCJcbiAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9XCJkcm9wZG93bi1rZWJhYi1idXR0b25cIlxuICAgICAgICAgICAgdGlwPVwiU2hvdyBvcHRpb25zXCJcbiAgICAgICAgICAgIHRpcFByb3BzPXt0aXBQcm9wc31cbiAgICAgICAgICAgIHsuLi4oYnV0dG9uU3R5bGVQcm9wcyA/PyB7fSl9XG4gICAgICAgICAgLz5cbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdob3Jpem9udGFsS2ViYWInOlxuICAgICAgICBjbGlja1RhcmdldCA9IChcbiAgICAgICAgICA8SWNvbkJ1dHRvblxuICAgICAgICAgICAgYXJpYS1sYWJlbD1cIk9wdGlvbnNcIlxuICAgICAgICAgICAgcmVmPXt0YXJnZXRSZWZ9XG4gICAgICAgICAgICBhcmlhLWV4cGFuZGVkPXtpc09wZW59XG4gICAgICAgICAgICBhcmlhLWhhc3BvcHVwPVwibWVudVwiXG4gICAgICAgICAgICBpZD17YnV0dG9uSWR9XG4gICAgICAgICAgICBpY29uPXsoKSA9PiA8SG9yaXpvbnRhbEtlYmFiSWNvbiBzaXplPXtpY29uU2l6ZX0gLz59XG4gICAgICAgICAgICB2YXJpYW50PVwic2Vjb25kYXJ5XCJcbiAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9XCJkcm9wZG93bi1ob3Jpem9udGFsLWtlYmFiLWJ1dHRvblwiXG4gICAgICAgICAgICB0aXBQcm9wcz17dGlwUHJvcHN9XG4gICAgICAgICAgICB0aXA9XCJTaG93IG1vcmUgb3B0aW9uc1wiXG4gICAgICAgICAgICB7Li4uKGJ1dHRvblN0eWxlUHJvcHMgPz8ge30pfVxuICAgICAgICAgIC8+XG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgcmV0dXJuIChcbiAgICAgIDw+XG4gICAgICAgIHtjbGlja1RhcmdldH1cbiAgICAgICAge2Ryb3Bkb3duSXRlbXMubGVuZ3RoICE9PSAwICYmIChcbiAgICAgICAgICA8UG9wb3ZlclxuICAgICAgICAgICAgcG9wb3ZlckNvbnRhaW5lclJlZj17cG9wb3ZlckNvbnRhaW5lclJlZkNhbGxiYWNrfVxuICAgICAgICAgICAgdGFyZ2V0UmVmPXt0YXJnZXRSZWZ9XG4gICAgICAgICAgICBpc09wZW49e2lzT3Blbn1cbiAgICAgICAgICAgIG9uUmVxdWVzdENsb3NlPXtoYW5kbGVSZXF1ZXN0Q2xvc2VkfVxuICAgICAgICAgICAgYWxpZ249e2FsaWdufVxuICAgICAgICAgICAgdmVydGljYWxPZmZzZXQ9e3ZlcnRpY2FsT2Zmc2V0fVxuICAgICAgICAgICAgaG9yaXpvbnRhbE9mZnNldD17aG9yaXpvbnRhbE9mZnNldH1cbiAgICAgICAgICAgIHBvc2l0aW9uPXtwb3NpdGlvbn1cbiAgICAgICAgICAgIG91dGxpbmVcbiAgICAgICAgICA+XG4gICAgICAgICAgICA8RHJvcGRvd25MaXN0XG4gICAgICAgICAgICAgIGRyb3Bkb3duSXRlbXM9e2Ryb3Bkb3duSXRlbXN9XG4gICAgICAgICAgICAgIGlzTWVudT17aXNNZW51fVxuICAgICAgICAgICAgICBtZW51QnV0dG9uSWQ9e2J1dHRvbklkfVxuICAgICAgICAgICAgICBvbkNsb3NlPXtoYW5kbGVSZXF1ZXN0Q2xvc2VkfVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICA8L1BvcG92ZXI+XG4gICAgICAgICl9XG4gICAgICA8Lz5cbiAgICApO1xuICB9XG4pO1xuIl19 */");
|
|
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
|
-
iconSize,
|
|
34
33
|
tipProps,
|
|
34
|
+
verticalOffset = 0,
|
|
35
|
+
size = 'normal',
|
|
36
|
+
variant = 'primary',
|
|
35
37
|
...buttonStyleProps
|
|
36
38
|
}, ref) => {
|
|
37
39
|
const buttonId = useId();
|
|
@@ -66,6 +68,8 @@ 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,
|
|
@@ -80,6 +84,8 @@ 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,
|
|
@@ -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,
|
|
@@ -109,7 +117,6 @@ export const DropdownButton = /*#__PURE__*/forwardRef(({
|
|
|
109
117
|
icon: () => /*#__PURE__*/_jsx(MiniKebabMenuIcon, {
|
|
110
118
|
size: iconSize
|
|
111
119
|
}),
|
|
112
|
-
size: "small",
|
|
113
120
|
variant: "secondary",
|
|
114
121
|
onClick: handleClick,
|
|
115
122
|
"data-testid": "dropdown-kebab-button",
|
|
@@ -128,7 +135,6 @@ export const DropdownButton = /*#__PURE__*/forwardRef(({
|
|
|
128
135
|
icon: () => /*#__PURE__*/_jsx(HorizontalKebabIcon, {
|
|
129
136
|
size: iconSize
|
|
130
137
|
}),
|
|
131
|
-
size: "small",
|
|
132
138
|
variant: "secondary",
|
|
133
139
|
onClick: handleClick,
|
|
134
140
|
"data-testid": "dropdown-horizontal-kebab-button",
|
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.20.0-alpha.
|
|
4
|
+
"version": "1.20.0-alpha.cc6f658e11.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@codecademy/gamut-illustrations": "*",
|
|
32
32
|
"@codecademy/gamut-patterns": "*",
|
|
33
33
|
"@codecademy/gamut-styles": "*",
|
|
34
|
-
"@codecademy/tracking": "
|
|
34
|
+
"@codecademy/tracking": "1.1.2",
|
|
35
35
|
"@codecademy/variance": "*",
|
|
36
36
|
"@emotion/react": "^11.4.0",
|
|
37
37
|
"@emotion/styled": "^11.3.0",
|