@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.
Files changed (141) hide show
  1. package/LICENSE +21 -0
  2. package/dist/Alert/Alert.d.ts +1 -0
  3. package/dist/Alert/elements.d.ts +18 -17
  4. package/dist/Alert/variants.d.ts +2 -1
  5. package/dist/Anchor/index.d.ts +15 -15
  6. package/dist/Animation/ExpandInCollapseOut.d.ts +1 -0
  7. package/dist/AppWrapper/index.d.ts +3 -2
  8. package/dist/Badge/index.d.ts +3 -2
  9. package/dist/BarChart/BarChartProvider.d.ts +19 -0
  10. package/dist/BarChart/BarChartProvider.js +27 -0
  11. package/dist/BarChart/BarRow/ValueLabelsContent.d.ts +7 -0
  12. package/dist/BarChart/BarRow/ValueLabelsContent.js +34 -0
  13. package/dist/BarChart/BarRow/elements.d.ts +959 -0
  14. package/dist/BarChart/BarRow/elements.js +110 -0
  15. package/dist/BarChart/BarRow/index.d.ts +6 -0
  16. package/dist/BarChart/BarRow/index.js +231 -0
  17. package/dist/BarChart/SortSelect/index.d.ts +15 -0
  18. package/dist/BarChart/SortSelect/index.js +18 -0
  19. package/dist/BarChart/index.d.ts +4 -0
  20. package/dist/BarChart/index.js +136 -0
  21. package/dist/BarChart/layout/GridLines.d.ts +3 -0
  22. package/dist/BarChart/layout/GridLines.js +69 -0
  23. package/dist/BarChart/layout/LabelSpacer.d.ts +6 -0
  24. package/dist/BarChart/layout/LabelSpacer.js +56 -0
  25. package/dist/BarChart/layout/ScaleChartHeader.d.ts +3 -0
  26. package/dist/BarChart/layout/ScaleChartHeader.js +87 -0
  27. package/dist/BarChart/shared/elements.d.ts +7 -0
  28. package/dist/BarChart/shared/elements.js +12 -0
  29. package/dist/BarChart/shared/styles.d.ts +4 -0
  30. package/dist/BarChart/shared/styles.js +4 -0
  31. package/dist/BarChart/shared/translations.d.ts +69 -0
  32. package/dist/BarChart/shared/translations.js +57 -0
  33. package/dist/BarChart/shared/types.d.ts +100 -0
  34. package/dist/BarChart/shared/types.js +1 -0
  35. package/dist/BarChart/utils/hooks.d.ts +89 -0
  36. package/dist/BarChart/utils/hooks.js +281 -0
  37. package/dist/BarChart/utils/index.d.ts +56 -0
  38. package/dist/BarChart/utils/index.js +122 -0
  39. package/dist/Box/Box.d.ts +3 -2
  40. package/dist/Box/FlexBox.d.ts +3 -2
  41. package/dist/Box/GridBox.d.ts +3 -2
  42. package/dist/Box/props.d.ts +3 -3
  43. package/dist/Button/CTAButton.d.ts +9 -8
  44. package/dist/Button/FillButton.d.ts +18 -17
  45. package/dist/Button/IconButton.d.ts +19 -19
  46. package/dist/Button/StrokeButton.d.ts +18 -17
  47. package/dist/Button/TextButton.d.ts +18 -17
  48. package/dist/Button/shared/InlineIconButton.d.ts +13 -12
  49. package/dist/Button/shared/styles.d.ts +15 -10
  50. package/dist/Button/shared/variants.d.ts +6 -6
  51. package/dist/ButtonBase/ButtonBase.d.ts +9 -7
  52. package/dist/Card/elements.d.ts +4 -2
  53. package/dist/Card/styles.d.ts +2 -2
  54. package/dist/ConnectedForm/ConnectedInputs/ConnectedNestedCheckboxes/utils.d.ts +1 -0
  55. package/dist/ConnectedForm/utils.d.ts +6 -6
  56. package/dist/ContentContainer/index.d.ts +4 -3
  57. package/dist/DataList/Tables/Rows/elements.d.ts +2 -1
  58. package/dist/DataList/hooks/useListControls.d.ts +2 -1
  59. package/dist/DataList/hooks/useListState.d.ts +1 -0
  60. package/dist/Disclosure/elements.d.ts +58 -57
  61. package/dist/Disclosure/helpers.d.ts +4 -4
  62. package/dist/Disclosure/types.d.ts +1 -0
  63. package/dist/Drawer/index.d.ts +1 -0
  64. package/dist/FeatureShimmer/index.d.ts +1 -0
  65. package/dist/Form/SelectDropdown/elements/constants.d.ts +1 -0
  66. package/dist/Form/SelectDropdown/elements/containers.d.ts +1 -0
  67. package/dist/Form/SelectDropdown/styles.d.ts +2 -2
  68. package/dist/Form/SelectDropdown/utils.d.ts +2 -2
  69. package/dist/Form/__fixtures__/utils.d.ts +1 -0
  70. package/dist/Form/elements/Form.d.ts +4 -4
  71. package/dist/Form/elements/FormError.d.ts +1 -1
  72. package/dist/Form/elements/FormGroup.d.ts +4 -4
  73. package/dist/Form/elements/FormGroupDescription.d.ts +4 -3
  74. package/dist/Form/elements/FormGroupLabel.d.ts +2 -2
  75. package/dist/Form/elements/FormGroupLabel.js +2 -2
  76. package/dist/Form/inputs/Input.d.ts +8 -4
  77. package/dist/Form/inputs/Radio.d.ts +8 -8
  78. package/dist/Form/inputs/Select.d.ts +2 -2
  79. package/dist/Form/inputs/Select.js +6 -5
  80. package/dist/Form/inputs/TextArea.d.ts +2 -2
  81. package/dist/Form/styles/Checkbox-styles.d.ts +16 -8
  82. package/dist/Form/styles/Radio-styles.d.ts +8 -4
  83. package/dist/Form/styles/shared-system-props.d.ts +12 -7
  84. package/dist/GridForm/GridFormButtons/index.d.ts +18 -18
  85. package/dist/GridForm/GridFormInputGroup/__fixtures__/assertions.d.ts +2 -2
  86. package/dist/GridForm/GridFormSections/GridFormSectionBreak.d.ts +2 -2
  87. package/dist/HiddenText/index.d.ts +3 -2
  88. package/dist/InternalFloatingCard/InternalFloatingCard.d.ts +3 -3
  89. package/dist/Layout/Column.d.ts +4 -3
  90. package/dist/Layout/LayoutGrid.d.ts +3 -2
  91. package/dist/List/ListProvider.d.ts +1 -0
  92. package/dist/List/elements.d.ts +40 -28
  93. package/dist/List/hooks.d.ts +1 -0
  94. package/dist/Menu/Menu.d.ts +3 -2
  95. package/dist/Menu/MenuContext.d.ts +1 -0
  96. package/dist/Menu/elements.d.ts +11 -11
  97. package/dist/Modals/elements.d.ts +4 -3
  98. package/dist/Pagination/AnimatedPaginationButtons.d.ts +37 -3
  99. package/dist/Pagination/EllipsisButton.d.ts +52 -19
  100. package/dist/Pagination/PaginationButton.d.ts +30 -30
  101. package/dist/Pagination/styles.d.ts +4 -4
  102. package/dist/Pagination/utils.d.ts +5 -5
  103. package/dist/Popover/Popover.d.ts +1 -0
  104. package/dist/Popover/elements.d.ts +17 -16
  105. package/dist/Popover/styles/base.d.ts +2 -2
  106. package/dist/Popover/styles/beak.d.ts +1 -1
  107. package/dist/Popover/styles/variants.d.ts +6 -6
  108. package/dist/Popover/utils.d.ts +1 -1
  109. package/dist/PopoverContainer/hooks.d.ts +2 -2
  110. package/dist/PopoverContainer/utils.d.ts +1 -1
  111. package/dist/SkipToContent/index.d.ts +2 -2
  112. package/dist/Tabs/TabButton.d.ts +10 -9
  113. package/dist/Tabs/TabNav.d.ts +3 -2
  114. package/dist/Tabs/TabNavLink.d.ts +8 -8
  115. package/dist/Tabs/TabPanels.d.ts +3 -2
  116. package/dist/Tabs/TabProvider.d.ts +1 -0
  117. package/dist/Tabs/styles.d.ts +2 -2
  118. package/dist/Tag/elements.d.ts +42 -41
  119. package/dist/Tag/styles.d.ts +22 -12
  120. package/dist/Tip/InfoTip/InfoTipButton.d.ts +20 -20
  121. package/dist/Tip/InfoTip/index.d.ts +1 -0
  122. package/dist/Tip/InfoTip/styles.d.ts +11 -8
  123. package/dist/Tip/PreviewTip/elements.d.ts +17 -16
  124. package/dist/Tip/PreviewTip/utils.d.ts +1 -1
  125. package/dist/Tip/ToolTip/elements.d.ts +4 -3
  126. package/dist/Tip/ToolTip/index.d.ts +1 -0
  127. package/dist/Tip/__tests__/helpers.d.ts +4 -4
  128. package/dist/Tip/shared/InlineTip.d.ts +1 -0
  129. package/dist/Tip/shared/elements.d.ts +20 -19
  130. package/dist/Tip/shared/styles/composeVariantsUtils.d.ts +2 -2
  131. package/dist/Tip/shared/styles/styles.d.ts +4 -4
  132. package/dist/Tip/shared/utils.d.ts +1 -0
  133. package/dist/Toggle/elements.d.ts +12 -11
  134. package/dist/Toggle/utils.d.ts +1 -1
  135. package/dist/Typography/Text.d.ts +9 -8
  136. package/dist/Video/lib/ReactPlayer.d.ts +3 -2
  137. package/dist/Video/lib/VideoLayout.d.ts +1 -0
  138. package/dist/index.d.ts +1 -0
  139. package/dist/index.js +1 -0
  140. package/dist/utils/types.d.ts +1 -0
  141. 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, "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">);
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="node" />
1
2
  export declare const runWithDelay: (func: () => void) => NodeJS.Timeout;
2
3
  export declare const escapeKeyPressHandler: (event: React.KeyboardEvent<HTMLDivElement>) => void;
3
4
  /**
@@ -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?: React.ElementType;
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?: React.ElementType;
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?: React.ElementType;
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?: React.ElementType;
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";
@@ -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, "ariaLabel" | "as" | "checked" | "disabled" | "label" | "onChange" | "onClick">) => Omit<ToggleInputStyledProps, "size" | "color">;
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?: React.ElementType;
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?: React.ElementType;
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
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DefaultLayoutTranslations, ThumbnailSrc } from '@vidstack/react/types/vidstack';
2
3
  export type VideoLayoutProps = {
3
4
  controls?: boolean;
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './Anchor';
6
6
  export * from './Animation';
7
7
  export * from './AppWrapper';
8
8
  export * from './Badge';
9
+ export * from './BarChart';
9
10
  export * from './BodyPortal';
10
11
  export * from './Box';
11
12
  export * from './Breadcrumbs';
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ export * from './Anchor';
6
6
  export * from './Animation';
7
7
  export * from './AppWrapper';
8
8
  export * from './Badge';
9
+ export * from './BarChart';
9
10
  export * from './BodyPortal';
10
11
  export * from './Box';
11
12
  export * from './Breadcrumbs';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GamutIconProps } from '@codecademy/gamut-icons';
2
3
  export interface WithChildrenProp {
3
4
  children?: React.ReactNode | React.ReactNode[];
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.fbf911.0",
4
+ "version": "68.2.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
- "@codecademy/gamut-icons": "9.57.1-alpha.fbf911.0",
8
- "@codecademy/gamut-illustrations": "0.58.8-alpha.fbf911.0",
9
- "@codecademy/gamut-patterns": "0.10.27-alpha.fbf911.0",
10
- "@codecademy/gamut-styles": "17.12.2-alpha.fbf911.0",
11
- "@codecademy/variance": "0.26.1-alpha.fbf911.0",
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
  }