@codecademy/gamut 68.1.5-alpha.e16cd1.0 → 68.1.5-alpha.f4347e.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/dist/Alert/Alert.d.ts +0 -1
- package/dist/Alert/elements.d.ts +17 -18
- package/dist/Alert/variants.d.ts +1 -2
- package/dist/Anchor/index.d.ts +15 -15
- package/dist/Animation/ExpandInCollapseOut.d.ts +0 -1
- package/dist/AppWrapper/index.d.ts +2 -3
- package/dist/Badge/index.d.ts +2 -3
- package/dist/Box/Box.d.ts +2 -3
- package/dist/Box/FlexBox.d.ts +2 -3
- package/dist/Box/GridBox.d.ts +2 -3
- package/dist/Box/props.d.ts +3 -3
- package/dist/Button/CTAButton.d.ts +8 -9
- package/dist/Button/FillButton.d.ts +17 -18
- package/dist/Button/IconButton.d.ts +19 -19
- package/dist/Button/StrokeButton.d.ts +17 -18
- package/dist/Button/TextButton.d.ts +17 -18
- package/dist/Button/shared/InlineIconButton.d.ts +12 -13
- package/dist/Button/shared/styles.d.ts +10 -15
- package/dist/Button/shared/variants.d.ts +6 -6
- package/dist/ButtonBase/ButtonBase.d.ts +7 -9
- package/dist/Card/elements.d.ts +2 -4
- package/dist/Card/styles.d.ts +2 -2
- package/dist/ConnectedForm/ConnectedInputs/ConnectedNestedCheckboxes/utils.d.ts +0 -1
- package/dist/ConnectedForm/utils.d.ts +6 -6
- package/dist/ContentContainer/index.d.ts +3 -4
- package/dist/DataList/Tables/Rows/elements.d.ts +1 -2
- package/dist/DataList/hooks/useListControls.d.ts +1 -2
- package/dist/DataList/hooks/useListState.d.ts +0 -1
- package/dist/Disclosure/elements.d.ts +57 -58
- package/dist/Disclosure/helpers.d.ts +4 -4
- package/dist/Disclosure/types.d.ts +0 -1
- package/dist/Drawer/index.d.ts +0 -1
- package/dist/FeatureShimmer/index.d.ts +0 -1
- package/dist/Form/SelectDropdown/elements/constants.d.ts +0 -1
- package/dist/Form/SelectDropdown/elements/containers.d.ts +0 -1
- 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 +0 -1
- 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 +3 -4
- package/dist/Form/elements/FormGroupLabel.d.ts +2 -2
- package/dist/Form/elements/FormGroupLabel.js +2 -2
- package/dist/Form/inputs/Input.d.ts +4 -8
- package/dist/Form/inputs/Radio.d.ts +8 -8
- package/dist/Form/inputs/Select.d.ts +2 -2
- package/dist/Form/inputs/Select.js +5 -6
- package/dist/Form/inputs/TextArea.d.ts +2 -2
- package/dist/Form/styles/Checkbox-styles.d.ts +8 -16
- package/dist/Form/styles/Radio-styles.d.ts +4 -8
- package/dist/Form/styles/shared-system-props.d.ts +7 -12
- 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 +2 -3
- package/dist/InternalFloatingCard/InternalFloatingCard.d.ts +3 -3
- package/dist/Layout/Column.d.ts +3 -4
- package/dist/Layout/LayoutGrid.d.ts +2 -3
- package/dist/List/ListProvider.d.ts +0 -1
- package/dist/List/elements.d.ts +28 -40
- package/dist/List/hooks.d.ts +0 -1
- package/dist/Menu/Menu.d.ts +2 -3
- package/dist/Menu/MenuContext.d.ts +0 -1
- package/dist/Menu/elements.d.ts +11 -11
- package/dist/Modals/elements.d.ts +3 -4
- package/dist/Pagination/AnimatedPaginationButtons.d.ts +3 -37
- package/dist/Pagination/EllipsisButton.d.ts +19 -52
- 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 +0 -1
- package/dist/Popover/elements.d.ts +16 -17
- 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 +9 -10
- package/dist/Tabs/TabNav.d.ts +2 -3
- package/dist/Tabs/TabNavLink.d.ts +8 -8
- package/dist/Tabs/TabPanels.d.ts +2 -3
- package/dist/Tabs/TabProvider.d.ts +0 -1
- package/dist/Tabs/styles.d.ts +2 -2
- package/dist/Tag/elements.d.ts +41 -42
- package/dist/Tag/styles.d.ts +12 -22
- package/dist/Tip/InfoTip/InfoTipButton.d.ts +20 -20
- package/dist/Tip/InfoTip/index.d.ts +0 -1
- package/dist/Tip/InfoTip/styles.d.ts +8 -11
- package/dist/Tip/PreviewTip/elements.d.ts +16 -17
- package/dist/Tip/PreviewTip/utils.d.ts +1 -1
- package/dist/Tip/ToolTip/elements.d.ts +3 -4
- package/dist/Tip/ToolTip/index.d.ts +0 -1
- package/dist/Tip/__tests__/helpers.d.ts +4 -4
- package/dist/Tip/shared/InlineTip.d.ts +0 -1
- package/dist/Tip/shared/elements.d.ts +19 -20
- 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 +0 -1
- package/dist/Toggle/elements.d.ts +11 -12
- package/dist/Toggle/utils.d.ts +1 -1
- package/dist/Typography/Text.d.ts +8 -9
- package/dist/Video/lib/ReactPlayer.d.ts +2 -3
- package/dist/Video/lib/VideoLayout.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/utils/types.d.ts +0 -1
- package/package.json +7 -8
- package/LICENSE +0 -21
- package/dist/BarChart/BarChartProvider.d.ts +0 -19
- package/dist/BarChart/BarChartProvider.js +0 -27
- package/dist/BarChart/BarRow/ValueLabelsContent.d.ts +0 -7
- package/dist/BarChart/BarRow/ValueLabelsContent.js +0 -34
- package/dist/BarChart/BarRow/elements.d.ts +0 -948
- package/dist/BarChart/BarRow/elements.js +0 -100
- package/dist/BarChart/BarRow/index.d.ts +0 -6
- package/dist/BarChart/BarRow/index.js +0 -235
- package/dist/BarChart/GENERIC_EXAMPLE.d.ts +0 -14
- package/dist/BarChart/GENERIC_EXAMPLE.js +0 -327
- package/dist/BarChart/SortSelect/index.d.ts +0 -15
- package/dist/BarChart/SortSelect/index.js +0 -18
- package/dist/BarChart/index.d.ts +0 -4
- package/dist/BarChart/index.js +0 -136
- package/dist/BarChart/layout/GridLines.d.ts +0 -3
- package/dist/BarChart/layout/GridLines.js +0 -69
- package/dist/BarChart/layout/LabelSpacer.d.ts +0 -6
- package/dist/BarChart/layout/LabelSpacer.js +0 -56
- package/dist/BarChart/layout/ScaleChartHeader.d.ts +0 -3
- package/dist/BarChart/layout/ScaleChartHeader.js +0 -87
- package/dist/BarChart/shared/elements.d.ts +0 -7
- package/dist/BarChart/shared/elements.js +0 -12
- package/dist/BarChart/shared/styles.d.ts +0 -4
- package/dist/BarChart/shared/styles.js +0 -4
- package/dist/BarChart/shared/translations.d.ts +0 -69
- package/dist/BarChart/shared/translations.js +0 -57
- package/dist/BarChart/shared/types.d.ts +0 -100
- package/dist/BarChart/shared/types.js +0 -1
- package/dist/BarChart/utils/hooks.d.ts +0 -89
- package/dist/BarChart/utils/hooks.js +0 -281
- package/dist/BarChart/utils/index.d.ts +0 -56
- package/dist/BarChart/utils/index.js +0 -122
|
@@ -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;
|
|
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;
|
|
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;
|
|
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;
|
|
178
178
|
}) => import("@codecademy/variance").CSSObject;
|
|
179
179
|
export declare const toolTipBodyCss: {
|
|
180
180
|
readonly bg: "background-contrast";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { system } from '@codecademy/gamut-styles';
|
|
3
2
|
import { StyleProps } from '@codecademy/variance';
|
|
4
3
|
export declare const sizes: {
|
|
@@ -12,10 +11,10 @@ export declare const sizes: {
|
|
|
12
11
|
};
|
|
13
12
|
};
|
|
14
13
|
export declare const ToggleTrack: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme
|
|
16
|
-
as?:
|
|
14
|
+
theme?: import("@emotion/react").Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
17
16
|
} & import("@codecademy/variance/dist/types/config").VariantProps<"size", false | "small" | "medium"> & {
|
|
18
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
+
theme?: import("@emotion/react").Theme;
|
|
19
18
|
} & {
|
|
20
19
|
color?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
21
20
|
readonly property: "color";
|
|
@@ -181,21 +180,21 @@ export declare const ToggleTrack: import("@emotion/styled").StyledComponent<{
|
|
|
181
180
|
}>;
|
|
182
181
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
183
182
|
export declare const Circle: import("@emotion/styled").StyledComponent<{
|
|
184
|
-
theme?: import("@emotion/react").Theme
|
|
185
|
-
as?:
|
|
183
|
+
theme?: import("@emotion/react").Theme;
|
|
184
|
+
as?: React.ElementType;
|
|
186
185
|
} & 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"> & {
|
|
187
|
-
theme?: import("@emotion/react").Theme
|
|
186
|
+
theme?: import("@emotion/react").Theme;
|
|
188
187
|
}, {}, {}>;
|
|
189
188
|
export declare const ToggleInput: import("@emotion/styled").StyledComponent<{
|
|
190
|
-
theme?: import("@emotion/react").Theme
|
|
191
|
-
as?:
|
|
189
|
+
theme?: import("@emotion/react").Theme;
|
|
190
|
+
as?: React.ElementType;
|
|
192
191
|
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
193
192
|
export type ToggleStyleProps = StyleProps<typeof system.space>;
|
|
194
193
|
export declare const ToggleLabel: import("@emotion/styled").StyledComponent<{
|
|
195
|
-
theme?: import("@emotion/react").Theme
|
|
196
|
-
as?:
|
|
194
|
+
theme?: import("@emotion/react").Theme;
|
|
195
|
+
as?: React.ElementType;
|
|
197
196
|
} & Partial<Record<"disabled" | "labelRight", boolean>> & {
|
|
198
|
-
theme?: import("@emotion/react").Theme
|
|
197
|
+
theme?: import("@emotion/react").Theme;
|
|
199
198
|
} & {
|
|
200
199
|
p?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
201
200
|
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, "ariaLabel" | "as" | "checked" | "disabled" | "label" | "onChange" | "onClick">) => Omit<ToggleInputStyledProps, "size" | "color">;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { StyleProps } from '@codecademy/variance';
|
|
3
2
|
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"> & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
5
4
|
}) => import("@codecademy/variance").CSSObject;
|
|
6
5
|
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"> & {
|
|
7
|
-
theme?: import("@emotion/react").Theme
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
8
7
|
}) => import("@codecademy/variance").CSSObject;
|
|
9
8
|
declare const truncateVariants: (props: import("@codecademy/variance/dist/types/config").VariantProps<"truncate", false | "ellipsis" | "fade"> & {
|
|
10
|
-
theme?: import("@emotion/react").Theme
|
|
9
|
+
theme?: import("@emotion/react").Theme;
|
|
11
10
|
}) => import("@codecademy/variance").CSSObject;
|
|
12
11
|
declare const textStates: (props: Partial<Record<"center" | "block" | "smooth" | "highlight" | "screenreader", boolean>> & {
|
|
13
|
-
theme?: import("@emotion/react").Theme
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
14
13
|
}) => import("@codecademy/variance").CSSObject;
|
|
15
14
|
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<{
|
|
16
15
|
readonly flexBasis: {
|
|
@@ -378,10 +377,10 @@ export interface TextNoTruncateProps extends BaseTextProps {
|
|
|
378
377
|
}
|
|
379
378
|
export type TextProps = TextTruncateProps | TextNoTruncateProps;
|
|
380
379
|
export declare const Text: import("react").ForwardRefExoticComponent<(Omit<{
|
|
381
|
-
theme?: import("@emotion/react").Theme
|
|
382
|
-
as?:
|
|
380
|
+
theme?: import("@emotion/react").Theme;
|
|
381
|
+
as?: React.ElementType;
|
|
383
382
|
} & 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<{
|
|
384
|
-
theme?: import("@emotion/react").Theme
|
|
385
|
-
as?:
|
|
383
|
+
theme?: import("@emotion/react").Theme;
|
|
384
|
+
as?: React.ElementType;
|
|
386
385
|
} & 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>>;
|
|
387
386
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import ReactPlayer from 'react-player';
|
|
3
2
|
export declare const ReactVideoPlayer: import("@emotion/styled").StyledComponent<import("react-player").ReactPlayerProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
5
4
|
}, {}, {
|
|
6
5
|
ref?: import("react").Ref<ReactPlayer> | undefined;
|
|
7
6
|
}>;
|
|
8
7
|
export declare const OverlayPlayButton: ({ videoTitle }: {
|
|
9
|
-
videoTitle?: string
|
|
8
|
+
videoTitle?: string;
|
|
10
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
/**
|
|
12
11
|
* @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.1.5-alpha.
|
|
4
|
+
"version": "68.1.5-alpha.f4347e.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/gamut-icons": "9.57.1-alpha.
|
|
8
|
-
"@codecademy/gamut-illustrations": "0.58.8-alpha.
|
|
9
|
-
"@codecademy/gamut-patterns": "0.10.27-alpha.
|
|
10
|
-
"@codecademy/gamut-styles": "17.12.2-alpha.
|
|
11
|
-
"@codecademy/variance": "0.26.0",
|
|
7
|
+
"@codecademy/gamut-icons": "9.57.1-alpha.f4347e.0",
|
|
8
|
+
"@codecademy/gamut-illustrations": "0.58.8-alpha.f4347e.0",
|
|
9
|
+
"@codecademy/gamut-patterns": "0.10.27-alpha.f4347e.0",
|
|
10
|
+
"@codecademy/gamut-styles": "17.12.2-alpha.f4347e.0",
|
|
11
|
+
"@codecademy/variance": "0.26.1-alpha.f4347e.0",
|
|
12
12
|
"@react-aria/interactions": "3.25.0",
|
|
13
13
|
"@types/marked": "^4.0.8",
|
|
14
14
|
"@vidstack/react": "^1.12.12",
|
|
@@ -58,6 +58,5 @@
|
|
|
58
58
|
"**/*.scss",
|
|
59
59
|
"dist/**/[A-Z]**/[A-Z]*.js",
|
|
60
60
|
"dist/**/[A-Z]**/index.js"
|
|
61
|
-
]
|
|
62
|
-
"gitHead": "1ee3c2794a5ccc5117ffa7ce9a807502979ad7db"
|
|
61
|
+
]
|
|
63
62
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 Codecademy LLC
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BarChartTranslations } from './shared/translations';
|
|
3
|
-
import { BarChartStyles, MaxScaleValue } from './shared/types';
|
|
4
|
-
export interface BarChartContextProps {
|
|
5
|
-
maxScaleValue: MaxScaleValue;
|
|
6
|
-
scaleInterval: number;
|
|
7
|
-
unit: string;
|
|
8
|
-
styleConfig: Required<BarChartStyles>;
|
|
9
|
-
animate: boolean;
|
|
10
|
-
widestCategoryLabelWidth: number | null;
|
|
11
|
-
setWidestCategoryLabelWidth: (width: number) => void;
|
|
12
|
-
widestTotalValueLabelWidth: number | null;
|
|
13
|
-
setWidestTotalValueLabelWidth: (width: number) => void;
|
|
14
|
-
isMeasuring: boolean;
|
|
15
|
-
translations: BarChartTranslations;
|
|
16
|
-
}
|
|
17
|
-
export declare const defaultStyleConfig: Required<BarChartStyles>;
|
|
18
|
-
export declare const BarChartContext: import("react").Context<BarChartContextProps>;
|
|
19
|
-
export declare const BarChartProvider: import("react").Provider<BarChartContextProps>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createContext } from 'react';
|
|
2
|
-
import { defaultBarChartTranslations } from './shared/translations';
|
|
3
|
-
export const defaultStyleConfig = {
|
|
4
|
-
textColor: 'text',
|
|
5
|
-
seriesOneBarColor: 'text',
|
|
6
|
-
seriesTwoBarColor: 'primary',
|
|
7
|
-
seriesOneLabel: 'text-secondary',
|
|
8
|
-
seriesTwoLabel: 'primary'
|
|
9
|
-
};
|
|
10
|
-
export const BarChartContext = /*#__PURE__*/createContext({
|
|
11
|
-
maxScaleValue: 100,
|
|
12
|
-
scaleInterval: 10,
|
|
13
|
-
unit: '',
|
|
14
|
-
styleConfig: defaultStyleConfig,
|
|
15
|
-
animate: false,
|
|
16
|
-
widestCategoryLabelWidth: null,
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
18
|
-
setWidestCategoryLabelWidth: () => {},
|
|
19
|
-
widestTotalValueLabelWidth: null,
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
21
|
-
setWidestTotalValueLabelWidth: () => {
|
|
22
|
-
// No-op: default context value
|
|
23
|
-
},
|
|
24
|
-
isMeasuring: true,
|
|
25
|
-
translations: defaultBarChartTranslations
|
|
26
|
-
});
|
|
27
|
-
export const BarChartProvider = BarChartContext.Provider;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BarChartStyles } from '../shared/types';
|
|
2
|
-
export type ValueLabelsContentProps = {
|
|
3
|
-
seriesOneFormatted: string;
|
|
4
|
-
displayValueFormatted: string;
|
|
5
|
-
isStacked: boolean;
|
|
6
|
-
} & Pick<Required<BarChartStyles>, 'seriesOneLabel' | 'seriesTwoLabel'>;
|
|
7
|
-
export declare const ValueLabelsContent: ({ seriesOneFormatted, displayValueFormatted, isStacked, seriesOneLabel, seriesTwoLabel, }: ValueLabelsContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { MiniArrowRightIcon } from '@codecademy/gamut-icons';
|
|
2
|
-
import { Text } from '../../Typography';
|
|
3
|
-
import { iconPadding } from '../shared/styles';
|
|
4
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
-
const valueLabelProps = {
|
|
6
|
-
height: 'fit-content',
|
|
7
|
-
lineHeight: 'title',
|
|
8
|
-
variant: 'p-small',
|
|
9
|
-
whiteSpace: 'nowrap'
|
|
10
|
-
};
|
|
11
|
-
export const ValueLabelsContent = ({
|
|
12
|
-
seriesOneFormatted,
|
|
13
|
-
displayValueFormatted,
|
|
14
|
-
isStacked,
|
|
15
|
-
seriesOneLabel,
|
|
16
|
-
seriesTwoLabel
|
|
17
|
-
}) => /*#__PURE__*/_jsxs(_Fragment, {
|
|
18
|
-
children: [isStacked && /*#__PURE__*/_jsxs(_Fragment, {
|
|
19
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
20
|
-
color: seriesOneLabel,
|
|
21
|
-
...valueLabelProps,
|
|
22
|
-
children: seriesOneFormatted
|
|
23
|
-
}), /*#__PURE__*/_jsx(MiniArrowRightIcon, {
|
|
24
|
-
color: seriesOneLabel,
|
|
25
|
-
mx: iconPadding,
|
|
26
|
-
size: 16
|
|
27
|
-
})]
|
|
28
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
29
|
-
color: isStacked ? seriesTwoLabel : seriesOneLabel,
|
|
30
|
-
fontWeight: isStacked ? 'bold' : 'normal',
|
|
31
|
-
...valueLabelProps,
|
|
32
|
-
children: displayValueFormatted
|
|
33
|
-
})]
|
|
34
|
-
});
|