@codecademy/gamut 68.1.5-alpha.fbf911.0 → 68.2.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.
- package/LICENSE +21 -0
- package/dist/Alert/Alert.d.ts +1 -0
- package/dist/Alert/elements.d.ts +18 -17
- package/dist/Alert/variants.d.ts +2 -1
- package/dist/Anchor/index.d.ts +15 -15
- package/dist/Animation/ExpandInCollapseOut.d.ts +1 -0
- package/dist/AppWrapper/index.d.ts +3 -2
- package/dist/Badge/index.d.ts +3 -2
- package/dist/BarChart/BarChartProvider.d.ts +19 -0
- package/dist/BarChart/BarChartProvider.js +27 -0
- package/dist/BarChart/BarRow/ValueLabelsContent.d.ts +7 -0
- package/dist/BarChart/BarRow/ValueLabelsContent.js +34 -0
- package/dist/BarChart/BarRow/elements.d.ts +959 -0
- package/dist/BarChart/BarRow/elements.js +110 -0
- package/dist/BarChart/BarRow/index.d.ts +6 -0
- package/dist/BarChart/BarRow/index.js +231 -0
- package/dist/BarChart/SortSelect/index.d.ts +15 -0
- package/dist/BarChart/SortSelect/index.js +18 -0
- package/dist/BarChart/index.d.ts +4 -0
- package/dist/BarChart/index.js +136 -0
- package/dist/BarChart/layout/GridLines.d.ts +3 -0
- package/dist/BarChart/layout/GridLines.js +69 -0
- package/dist/BarChart/layout/LabelSpacer.d.ts +6 -0
- package/dist/BarChart/layout/LabelSpacer.js +56 -0
- package/dist/BarChart/layout/ScaleChartHeader.d.ts +3 -0
- package/dist/BarChart/layout/ScaleChartHeader.js +87 -0
- package/dist/BarChart/shared/elements.d.ts +7 -0
- package/dist/BarChart/shared/elements.js +12 -0
- package/dist/BarChart/shared/styles.d.ts +4 -0
- package/dist/BarChart/shared/styles.js +4 -0
- package/dist/BarChart/shared/translations.d.ts +69 -0
- package/dist/BarChart/shared/translations.js +57 -0
- package/dist/BarChart/shared/types.d.ts +100 -0
- package/dist/BarChart/shared/types.js +1 -0
- package/dist/BarChart/utils/hooks.d.ts +89 -0
- package/dist/BarChart/utils/hooks.js +281 -0
- package/dist/BarChart/utils/index.d.ts +56 -0
- package/dist/BarChart/utils/index.js +122 -0
- package/dist/Box/Box.d.ts +3 -2
- package/dist/Box/FlexBox.d.ts +3 -2
- package/dist/Box/GridBox.d.ts +3 -2
- package/dist/Box/props.d.ts +3 -3
- package/dist/Button/CTAButton.d.ts +9 -8
- package/dist/Button/FillButton.d.ts +18 -17
- package/dist/Button/IconButton.d.ts +19 -19
- package/dist/Button/StrokeButton.d.ts +18 -17
- package/dist/Button/TextButton.d.ts +18 -17
- package/dist/Button/shared/InlineIconButton.d.ts +13 -12
- package/dist/Button/shared/styles.d.ts +15 -10
- package/dist/Button/shared/variants.d.ts +6 -6
- package/dist/ButtonBase/ButtonBase.d.ts +9 -7
- package/dist/Card/elements.d.ts +4 -2
- package/dist/Card/styles.d.ts +2 -2
- package/dist/ConnectedForm/ConnectedInputs/ConnectedNestedCheckboxes/utils.d.ts +1 -0
- package/dist/ConnectedForm/utils.d.ts +6 -6
- package/dist/ContentContainer/index.d.ts +4 -3
- package/dist/DataList/Tables/Rows/elements.d.ts +2 -1
- package/dist/DataList/hooks/useListControls.d.ts +2 -1
- package/dist/DataList/hooks/useListState.d.ts +1 -0
- package/dist/Disclosure/elements.d.ts +58 -57
- package/dist/Disclosure/helpers.d.ts +4 -4
- package/dist/Disclosure/types.d.ts +1 -0
- package/dist/Drawer/index.d.ts +1 -0
- package/dist/FeatureShimmer/index.d.ts +1 -0
- package/dist/Form/SelectDropdown/elements/constants.d.ts +1 -0
- package/dist/Form/SelectDropdown/elements/containers.d.ts +1 -0
- package/dist/Form/SelectDropdown/styles.d.ts +2 -2
- package/dist/Form/SelectDropdown/utils.d.ts +2 -2
- package/dist/Form/__fixtures__/utils.d.ts +1 -0
- package/dist/Form/elements/Form.d.ts +4 -4
- package/dist/Form/elements/FormError.d.ts +1 -1
- package/dist/Form/elements/FormGroup.d.ts +4 -4
- package/dist/Form/elements/FormGroupDescription.d.ts +4 -3
- package/dist/Form/elements/FormGroupLabel.d.ts +2 -2
- package/dist/Form/elements/FormGroupLabel.js +2 -2
- package/dist/Form/inputs/Input.d.ts +8 -4
- package/dist/Form/inputs/Radio.d.ts +8 -8
- package/dist/Form/inputs/Select.d.ts +2 -2
- package/dist/Form/inputs/Select.js +6 -5
- package/dist/Form/inputs/TextArea.d.ts +2 -2
- package/dist/Form/styles/Checkbox-styles.d.ts +16 -8
- package/dist/Form/styles/Radio-styles.d.ts +8 -4
- package/dist/Form/styles/shared-system-props.d.ts +12 -7
- package/dist/GridForm/GridFormButtons/index.d.ts +18 -18
- package/dist/GridForm/GridFormInputGroup/__fixtures__/assertions.d.ts +2 -2
- package/dist/GridForm/GridFormSections/GridFormSectionBreak.d.ts +2 -2
- package/dist/HiddenText/index.d.ts +3 -2
- package/dist/InternalFloatingCard/InternalFloatingCard.d.ts +3 -3
- package/dist/Layout/Column.d.ts +4 -3
- package/dist/Layout/LayoutGrid.d.ts +3 -2
- package/dist/List/ListProvider.d.ts +1 -0
- package/dist/List/elements.d.ts +40 -28
- package/dist/List/hooks.d.ts +1 -0
- package/dist/Menu/Menu.d.ts +3 -2
- package/dist/Menu/MenuContext.d.ts +1 -0
- package/dist/Menu/elements.d.ts +11 -11
- package/dist/Modals/elements.d.ts +4 -3
- package/dist/Pagination/AnimatedPaginationButtons.d.ts +37 -3
- package/dist/Pagination/EllipsisButton.d.ts +52 -19
- package/dist/Pagination/PaginationButton.d.ts +30 -30
- package/dist/Pagination/styles.d.ts +4 -4
- package/dist/Pagination/utils.d.ts +5 -5
- package/dist/Popover/Popover.d.ts +1 -0
- package/dist/Popover/elements.d.ts +17 -16
- package/dist/Popover/styles/base.d.ts +2 -2
- package/dist/Popover/styles/beak.d.ts +1 -1
- package/dist/Popover/styles/variants.d.ts +6 -6
- package/dist/Popover/utils.d.ts +1 -1
- package/dist/PopoverContainer/hooks.d.ts +2 -2
- package/dist/PopoverContainer/utils.d.ts +1 -1
- package/dist/SkipToContent/index.d.ts +2 -2
- package/dist/Tabs/TabButton.d.ts +10 -9
- package/dist/Tabs/TabNav.d.ts +3 -2
- package/dist/Tabs/TabNavLink.d.ts +8 -8
- package/dist/Tabs/TabPanels.d.ts +3 -2
- package/dist/Tabs/TabProvider.d.ts +1 -0
- package/dist/Tabs/styles.d.ts +2 -2
- package/dist/Tag/elements.d.ts +42 -41
- package/dist/Tag/styles.d.ts +22 -12
- package/dist/Tip/InfoTip/InfoTipButton.d.ts +20 -20
- package/dist/Tip/InfoTip/index.d.ts +1 -0
- package/dist/Tip/InfoTip/styles.d.ts +11 -8
- package/dist/Tip/PreviewTip/elements.d.ts +17 -16
- package/dist/Tip/PreviewTip/utils.d.ts +1 -1
- package/dist/Tip/ToolTip/elements.d.ts +4 -3
- package/dist/Tip/ToolTip/index.d.ts +1 -0
- package/dist/Tip/__tests__/helpers.d.ts +4 -4
- package/dist/Tip/shared/InlineTip.d.ts +1 -0
- package/dist/Tip/shared/elements.d.ts +20 -19
- package/dist/Tip/shared/styles/composeVariantsUtils.d.ts +2 -2
- package/dist/Tip/shared/styles/styles.d.ts +4 -4
- package/dist/Tip/shared/utils.d.ts +1 -0
- package/dist/Toggle/elements.d.ts +12 -11
- package/dist/Toggle/utils.d.ts +1 -1
- package/dist/Typography/Text.d.ts +9 -8
- package/dist/Video/lib/ReactPlayer.d.ts +3 -2
- package/dist/Video/lib/VideoLayout.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/utils/types.d.ts +1 -0
- package/package.json +8 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopoverProps, PopoverXPositionType, PopoverYPositionType } from '../../../Popover';
|
|
2
2
|
import { TipPlacementComponentProps, TipWrapperProps } from '../types';
|
|
3
|
-
export declare const getAlignmentStyles: ({ alignment, avatar, type, }: Pick<TipWrapperProps,
|
|
4
|
-
export declare const getPopoverAlignmentAndPattern: ({ alignment, type, }: Partial<Pick<TipPlacementComponentProps,
|
|
3
|
+
export declare const getAlignmentStyles: ({ alignment, avatar, type, }: Pick<TipWrapperProps, 'alignment' | 'avatar' | 'type'>) => "avatarAligned" | "previewAligned" | "horizontalCenter" | "vertCenter" | "aligned";
|
|
4
|
+
export declare const getPopoverAlignmentAndPattern: ({ alignment, type, }: Partial<Pick<TipPlacementComponentProps, 'alignment' | 'type'>>) => (PopoverXPositionType & Pick<PopoverProps, 'align'>) | (PopoverYPositionType & Pick<PopoverProps, 'align'>);
|
|
5
5
|
export declare const createToolTipVariantFromAlignment: (alignment: string) => {
|
|
6
6
|
'&::after': {};
|
|
7
7
|
'&::before': {};
|
|
@@ -165,16 +165,16 @@ export declare const tooltipVariantStyles: {
|
|
|
165
165
|
};
|
|
166
166
|
export declare const tooltipCenteredPadding = 4;
|
|
167
167
|
export declare const toolTipAlignmentVariants: (props: import("@codecademy/variance/dist/types/config").VariantProps<"alignment", string | number | false> & {
|
|
168
|
-
theme?: import("@emotion/react").Theme;
|
|
168
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
169
169
|
}) => import("@codecademy/variance").CSSObject;
|
|
170
170
|
export declare const inlineToolTipBodyAlignments: (props: import("@codecademy/variance/dist/types/config").VariantProps<"alignment", false | "avatarAligned" | "previewAligned" | "horizontalCenter" | "vertCenter" | "aligned"> & {
|
|
171
|
-
theme?: import("@emotion/react").Theme;
|
|
171
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
172
172
|
}) => import("@codecademy/variance").CSSObject;
|
|
173
173
|
export declare const popoverToolTipBodyAlignments: (props: import("@codecademy/variance/dist/types/config").VariantProps<"alignment", false | "aligned" | "centered"> & {
|
|
174
|
-
theme?: import("@emotion/react").Theme;
|
|
174
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
175
175
|
}) => import("@codecademy/variance").CSSObject;
|
|
176
176
|
export declare const toolTipWidthRestrictions: (props: import("@codecademy/variance/dist/types/config").VariantProps<"dims", false | "avatarAligned" | "previewAligned" | "horizontalCenter" | "vertCenter" | "aligned"> & {
|
|
177
|
-
theme?: import("@emotion/react").Theme;
|
|
177
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
178
178
|
}) => import("@codecademy/variance").CSSObject;
|
|
179
179
|
export declare const toolTipBodyCss: {
|
|
180
180
|
readonly bg: "background-contrast";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { system } from '@codecademy/gamut-styles';
|
|
2
3
|
import { StyleProps } from '@codecademy/variance';
|
|
3
4
|
export declare const sizes: {
|
|
@@ -11,10 +12,10 @@ export declare const sizes: {
|
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
14
|
export declare const ToggleTrack: import("@emotion/styled").StyledComponent<{
|
|
14
|
-
theme?: import("@emotion/react").Theme;
|
|
15
|
-
as?:
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
16
17
|
} & import("@codecademy/variance/dist/types/config").VariantProps<"size", false | "small" | "medium"> & {
|
|
17
|
-
theme?: import("@emotion/react").Theme;
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
19
|
} & {
|
|
19
20
|
color?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
20
21
|
readonly property: "color";
|
|
@@ -180,21 +181,21 @@ export declare const ToggleTrack: import("@emotion/styled").StyledComponent<{
|
|
|
180
181
|
}>;
|
|
181
182
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
182
183
|
export declare const Circle: import("@emotion/styled").StyledComponent<{
|
|
183
|
-
theme?: import("@emotion/react").Theme;
|
|
184
|
-
as?:
|
|
184
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
185
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
185
186
|
} & import("../Box").BoxProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | keyof import("react").ClassAttributes<HTMLDivElement> | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "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-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" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "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"> & {
|
|
186
|
-
theme?: import("@emotion/react").Theme;
|
|
187
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
187
188
|
}, {}, {}>;
|
|
188
189
|
export declare const ToggleInput: import("@emotion/styled").StyledComponent<{
|
|
189
|
-
theme?: import("@emotion/react").Theme;
|
|
190
|
-
as?:
|
|
190
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
191
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
191
192
|
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
192
193
|
export type ToggleStyleProps = StyleProps<typeof system.space>;
|
|
193
194
|
export declare const ToggleLabel: import("@emotion/styled").StyledComponent<{
|
|
194
|
-
theme?: import("@emotion/react").Theme;
|
|
195
|
-
as?:
|
|
195
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
196
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
196
197
|
} & Partial<Record<"disabled" | "labelRight", boolean>> & {
|
|
197
|
-
theme?: import("@emotion/react").Theme;
|
|
198
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
198
199
|
} & {
|
|
199
200
|
p?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
200
201
|
readonly property: "padding";
|
package/dist/Toggle/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ToggleInputStyledProps, ToggleProps } from './types';
|
|
2
|
-
export declare const getToggleElementProps: <Props extends ToggleProps>({ ariaLabel, as, checked, disabled, label, onChange, onClick, }: Pick<Props, "
|
|
2
|
+
export declare const getToggleElementProps: <Props extends ToggleProps>({ ariaLabel, as, checked, disabled, label, onChange, onClick, }: Pick<Props, "disabled" | "label" | "onChange" | "onClick" | "ariaLabel" | "as" | "checked">) => Omit<ToggleInputStyledProps, 'size' | 'color'>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { StyleProps } from '@codecademy/variance';
|
|
2
3
|
declare const displayVariants: (props: import("@codecademy/variance/dist/types/config").VariantProps<"variant", false | "title-xxl" | "title-xl" | "title-lg" | "title-md" | "title-sm" | "title-xs" | "p-base" | "p-small" | "p-large"> & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
5
|
}) => import("@codecademy/variance").CSSObject;
|
|
5
6
|
declare const elementVariants: (props: import("@codecademy/variance/dist/types/config").VariantProps<"as", false | "small" | "code" | "div" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "p" | "span" | "strong"> & {
|
|
6
|
-
theme?: import("@emotion/react").Theme;
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
8
|
}) => import("@codecademy/variance").CSSObject;
|
|
8
9
|
declare const truncateVariants: (props: import("@codecademy/variance/dist/types/config").VariantProps<"truncate", false | "ellipsis" | "fade"> & {
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}) => import("@codecademy/variance").CSSObject;
|
|
11
12
|
declare const textStates: (props: Partial<Record<"center" | "block" | "smooth" | "highlight" | "screenreader", boolean>> & {
|
|
12
|
-
theme?: import("@emotion/react").Theme;
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
14
|
}) => import("@codecademy/variance").CSSObject;
|
|
14
15
|
declare const textProps: import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").Compose<[import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
|
|
15
16
|
readonly flexBasis: {
|
|
@@ -377,10 +378,10 @@ export interface TextNoTruncateProps extends BaseTextProps {
|
|
|
377
378
|
}
|
|
378
379
|
export type TextProps = TextTruncateProps | TextNoTruncateProps;
|
|
379
380
|
export declare const Text: import("react").ForwardRefExoticComponent<(Omit<{
|
|
380
|
-
theme?: import("@emotion/react").Theme;
|
|
381
|
-
as?:
|
|
381
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
382
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
382
383
|
} & TextTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "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-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" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "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" | keyof import("react").ClassAttributes<HTMLSpanElement>>, "ref"> | Omit<{
|
|
383
|
-
theme?: import("@emotion/react").Theme;
|
|
384
|
-
as?:
|
|
384
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
385
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
385
386
|
} & TextNoTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "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-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" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "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" | keyof import("react").ClassAttributes<HTMLSpanElement>>, "ref">) & import("react").RefAttributes<HTMLSpanElement>>;
|
|
386
387
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import ReactPlayer from 'react-player';
|
|
2
3
|
export declare const ReactVideoPlayer: import("@emotion/styled").StyledComponent<import("react-player").ReactPlayerProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
5
|
}, {}, {
|
|
5
6
|
ref?: import("react").Ref<ReactPlayer> | undefined;
|
|
6
7
|
}>;
|
|
7
8
|
export declare const OverlayPlayButton: ({ videoTitle }: {
|
|
8
|
-
videoTitle?: string;
|
|
9
|
+
videoTitle?: string | undefined;
|
|
9
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
/**
|
|
11
12
|
* @remarks ReactPlayer has optional key 'wrapper' that we require for the onReady callback
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/utils/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut",
|
|
3
3
|
"description": "Styleguide & Component library for Codecademy",
|
|
4
|
-
"version": "68.
|
|
4
|
+
"version": "68.2.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/gamut-icons": "9.57.1
|
|
8
|
-
"@codecademy/gamut-illustrations": "0.58.8
|
|
9
|
-
"@codecademy/gamut-patterns": "0.10.27
|
|
10
|
-
"@codecademy/gamut-styles": "17.
|
|
11
|
-
"@codecademy/variance": "0.26.
|
|
7
|
+
"@codecademy/gamut-icons": "9.57.1",
|
|
8
|
+
"@codecademy/gamut-illustrations": "0.58.8",
|
|
9
|
+
"@codecademy/gamut-patterns": "0.10.27",
|
|
10
|
+
"@codecademy/gamut-styles": "17.13.0",
|
|
11
|
+
"@codecademy/variance": "0.26.0",
|
|
12
12
|
"@react-aria/interactions": "3.25.0",
|
|
13
13
|
"@types/marked": "^4.0.8",
|
|
14
14
|
"@vidstack/react": "^1.12.12",
|
|
@@ -58,5 +58,6 @@
|
|
|
58
58
|
"**/*.scss",
|
|
59
59
|
"dist/**/[A-Z]**/[A-Z]*.js",
|
|
60
60
|
"dist/**/[A-Z]**/index.js"
|
|
61
|
-
]
|
|
61
|
+
],
|
|
62
|
+
"gitHead": "502f9c61b71cb0479cbe5ff3bcd7301041a3c3bd"
|
|
62
63
|
}
|