@codecademy/gamut-styles 16.1.2 → 16.1.3-alpha.0f0cb9.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/Background.d.ts +1 -1
- package/dist/Background.js +2 -2
- package/dist/ColorMode.d.ts +9 -9
- package/dist/ColorMode.js +2 -2
- package/dist/cache/createEmotionCache.d.ts +1 -1
- package/dist/cache/stylisPlugins/focusVisible.js +1 -0
- package/dist/globals/Variables.js +1 -1
- package/dist/styles/boxShadow.d.ts +1 -1
- package/dist/styles/boxShadow.js +1 -1
- package/dist/themes/admin.d.ts +25 -37
- package/dist/themes/core.d.ts +14 -26
- package/dist/themes/core.js +2 -2
- package/dist/themes/platform.d.ts +27 -39
- package/dist/utilities/themed.d.ts +1 -1
- package/dist/variables/colors.d.ts +3 -3
- package/dist/variables/responsive.d.ts +1 -1
- package/dist/variance/utils.d.ts +4 -4
- package/package.json +3 -7
package/dist/Background.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import { ColorMode, Colors } from './ColorMode';
|
|
|
3
3
|
export interface BackgroundProps extends Omit<ComponentProps<typeof ColorMode>, 'mode' | 'alwaysSetVariables' | 'bg'> {
|
|
4
4
|
bg: Colors;
|
|
5
5
|
}
|
|
6
|
-
export declare const Background: import("react").ForwardRefExoticComponent<Pick<BackgroundProps, "style" | "p" | "slot" | "title" | "as" | "
|
|
6
|
+
export declare const Background: import("react").ForwardRefExoticComponent<Pick<BackgroundProps, "style" | "p" | "slot" | "title" | "as" | "id" | "key" | "color" | "background" | "property" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "bottom" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "inset" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "top" | "translate" | "verticalAlign" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "overflow" | "hidden" | "variables" | "children" | "theme" | "dimensions" | "textColor" | "bg" | "borderColorX" | "borderColorY" | "borderColorLeft" | "borderColorRight" | "borderColorTop" | "borderColorBottom" | "px" | "py" | "pt" | "pb" | "pr" | "pl" | "m" | "mx" | "my" | "mt" | "mb" | "mr" | "ml" | "borderX" | "borderY" | "borderWidthX" | "borderWidthY" | "borderWidthLeft" | "borderWidthRight" | "borderWidthTop" | "borderWidthBottom" | "borderRadiusLeft" | "borderRadiusTop" | "borderRadiusBottom" | "borderRadiusRight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft" | "borderStyleX" | "borderStyleY" | "borderStyleLeft" | "borderStyleRight" | "borderStyleTop" | "borderStyleBottom" | "className" | "prefix" | "role" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-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" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/Background.js
CHANGED
|
@@ -8,7 +8,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -19,7 +19,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
19
19
|
var isColorAlias = function isColorAlias(mode, color) {
|
|
20
20
|
return Object.keys(mode).includes(color);
|
|
21
21
|
};
|
|
22
|
-
export var Background = /*#__PURE__*/forwardRef(function
|
|
22
|
+
export var Background = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
23
23
|
var bg = _ref.bg,
|
|
24
24
|
rest = _objectWithoutProperties(_ref, ["bg"]);
|
|
25
25
|
var _useColorModes = useColorModes(),
|
package/dist/ColorMode.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ThemeProps } from '@codecademy/variance';
|
|
3
3
|
import { CSSObject, Theme } from '@emotion/react';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
4
|
+
export type Colors = keyof Theme['colors'];
|
|
5
|
+
export type ColorModeConfig = Theme['modes'];
|
|
6
|
+
export type ColorModes = keyof ColorModeConfig;
|
|
7
|
+
export type ColorModeShape = ColorModeConfig[ColorModes];
|
|
8
|
+
export type ColorAlias = keyof ColorModeShape;
|
|
9
|
+
export type ColorModeProps = {
|
|
10
10
|
mode: ColorModes | 'system';
|
|
11
11
|
bg?: Colors;
|
|
12
12
|
};
|
|
@@ -875,7 +875,7 @@ export declare const VariableProvider: import("@emotion/styled").StyledComponent
|
|
|
875
875
|
} & {
|
|
876
876
|
variables?: CSSObject | undefined;
|
|
877
877
|
alwaysSetVariables?: boolean | undefined;
|
|
878
|
-
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "slot" | "title" | "
|
|
878
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "slot" | "title" | "id" | "property" | "translate" | "hidden" | "children" | "className" | "prefix" | "role" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-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" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | keyof import("react").ClassAttributes<HTMLDivElement>>, {}>;
|
|
879
879
|
export declare const ColorMode: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
880
880
|
theme?: Theme | undefined;
|
|
881
881
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1273,6 +1273,6 @@ export declare const ColorMode: import("react").ForwardRefExoticComponent<Pick<O
|
|
|
1273
1273
|
} & {
|
|
1274
1274
|
variables?: CSSObject | undefined;
|
|
1275
1275
|
alwaysSetVariables?: boolean | undefined;
|
|
1276
|
-
} & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "slot" | "title" | "
|
|
1276
|
+
} & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "slot" | "title" | "id" | "property" | "translate" | "hidden" | "children" | "className" | "prefix" | "role" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-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" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | keyof import("react").ClassAttributes<HTMLDivElement>> & {
|
|
1277
1277
|
children?: import("react").ReactNode;
|
|
1278
|
-
}, "bg"> & ColorModeProps, "style" | "p" | "slot" | "title" | "as" | "
|
|
1278
|
+
}, "bg"> & ColorModeProps, "style" | "p" | "slot" | "title" | "as" | "id" | "key" | "color" | "background" | "property" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "bottom" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "inset" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "top" | "translate" | "verticalAlign" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "overflow" | "hidden" | "variables" | "children" | "theme" | "dimensions" | "textColor" | "borderColorX" | "borderColorY" | "borderColorLeft" | "borderColorRight" | "borderColorTop" | "borderColorBottom" | "px" | "py" | "pt" | "pb" | "pr" | "pl" | "m" | "mx" | "my" | "mt" | "mb" | "mr" | "ml" | "borderX" | "borderY" | "borderWidthX" | "borderWidthY" | "borderWidthLeft" | "borderWidthRight" | "borderWidthTop" | "borderWidthBottom" | "borderRadiusLeft" | "borderRadiusTop" | "borderRadiusBottom" | "borderRadiusRight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft" | "borderStyleX" | "borderStyleY" | "borderStyleLeft" | "borderStyleRight" | "borderStyleTop" | "borderStyleBottom" | "className" | "prefix" | "role" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-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" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alwaysSetVariables" | keyof ColorModeProps> & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/ColorMode.js
CHANGED
|
@@ -6,7 +6,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
6
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
7
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
9
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
12
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -87,7 +87,7 @@ export var VariableProvider = /*#__PURE__*/_styled('div', _extends({}, {
|
|
|
87
87
|
}, css({
|
|
88
88
|
textColor: 'text'
|
|
89
89
|
}), providerProps, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Db2xvck1vZGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9JZ0MiLCJmaWxlIjoiLi4vc3JjL0NvbG9yTW9kZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBzZXJpYWxpemVUb2tlbnMsXG4gIFN0eWxlUHJvcHMsXG4gIFRoZW1lUHJvcHMsXG4gIHZhcmlhbmNlLFxufSBmcm9tICdAY29kZWNhZGVteS92YXJpYW5jZSc7XG5pbXBvcnQgeyBDU1NPYmplY3QsIFRoZW1lLCBUaGVtZVByb3ZpZGVyLCB1c2VUaGVtZSB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IG1hcFZhbHVlcywgcGljayB9IGZyb20gJ2xvZGFzaCc7XG5pbXBvcnQge1xuICBDb21wb25lbnRQcm9wcyxcbiAgY3JlYXRlQ29udGV4dCxcbiAgZm9yd2FyZFJlZixcbiAgdXNlQ29udGV4dCxcbiAgdXNlRWZmZWN0LFxuICB1c2VNZW1vLFxuICB1c2VTdGF0ZSxcbn0gZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgeyB0aGVtZSBhcyBHYW11dFRoZW1lIH0gZnJvbSAnLic7XG5pbXBvcnQge1xuICBiYWNrZ3JvdW5kLFxuICBib3JkZXIsXG4gIGNvbG9yLFxuICBjc3MsXG4gIGZsZXgsXG4gIGdyaWQsX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VzXG4gICAgICA6IHBpY2sodmFyaWFibGVzLCBbJy0tY29sb3ItYmFja2dyb3VuZC1jdXJyZW50J10pO1xuXG4gICAgcmV0dXJuIChcbiAgICAgIDxCYWNrZ3JvdW5kQ3VycmVudENvbnRleHQuUHJvdmlkZXJcbiAgICAgICAgdmFsdWU9e3sgJ2JhY2tncm91bmQtY3VycmVudCc6IGJnQ3VycmVudCB9fVxuICAgICAgPlxuICAgICAgICA8VmFyaWFibGVQcm92aWRlciB7Li4ucmVzdH0gdmFyaWFibGVzPXt2YXJzfSBiZz17Y29udGV4dEJnfSByZWY9e3JlZn0gLz5cbiAgICAgIDwvQmFja2dyb3VuZEN1cnJlbnRDb250ZXh0LlByb3ZpZGVyPlxuICAgICk7XG4gIH1cblxuICByZXR1cm4gKFxuICAgIDxUaGVtZVByb3ZpZGVyIHRoZW1lPXt7IG1vZGUgfX0+XG4gICAgICA8VmFyaWFibGVQcm92aWRlclxuICAgICAgICB7Li4ucmVzdH1cbiAgICAgICAgdmFyaWFibGVzPXt2YXJpYWJsZXN9XG4gICAgICAgIGJnPXtjb250ZXh0Qmd9XG4gICAgICAgIHJlZj17cmVmfVxuICAgICAgLz5cbiAgICA8L1RoZW1lUHJvdmlkZXI+XG4gICk7XG59KTtcbiJdfQ== */");
|
|
90
|
-
export var ColorMode = /*#__PURE__*/forwardRef(function
|
|
90
|
+
export var ColorMode = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
91
91
|
var preference = _ref4.mode,
|
|
92
92
|
alwaysSetVariables = _ref4.alwaysSetVariables,
|
|
93
93
|
bg = _ref4.bg,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Options } from '@emotion/cache';
|
|
2
2
|
export declare const EMOTION_KEY = "gamut";
|
|
3
3
|
export declare const EMOTION_CONTAINER = "emotion-styles";
|
|
4
|
-
export declare const createEmotionCache: (overrides?: Partial<Options>
|
|
4
|
+
export declare const createEmotionCache: (overrides?: Partial<Options>) => import("@emotion/cache").EmotionCache;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export var focusVisible = function focusVisible(element) {
|
|
2
2
|
if (element.type === 'rule' && element.value.includes(':focus-visible')) {
|
|
3
|
+
if (typeof element.props === 'string') element.props = [element.props];
|
|
3
4
|
element.props = element.props.map(function (prop) {
|
|
4
5
|
var poly = prop.replace(/:focus-visible/g, '[data-focus-visible-added]');
|
|
5
6
|
return "".concat(prop, ", ").concat(poly);
|
|
@@ -3,7 +3,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
3
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
4
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
5
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
package/dist/styles/boxShadow.js
CHANGED
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { css } from '@emotion/react';
|
|
8
8
|
var shadowsForDepth = {
|
package/dist/themes/admin.d.ts
CHANGED
|
@@ -96,8 +96,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
96
96
|
readonly "shadow-black-slight": string;
|
|
97
97
|
readonly "shadow-black-heavy": string;
|
|
98
98
|
readonly "beige-100": "#FFF0E5";
|
|
99
|
-
readonly "blue-100": "#D3F2FF";
|
|
100
99
|
readonly "blue-0": "#F5FCFF";
|
|
100
|
+
readonly "blue-100": "#D3F2FF";
|
|
101
101
|
readonly "blue-300": "#66C4FF";
|
|
102
102
|
readonly "blue-400": "#3388FF";
|
|
103
103
|
readonly "blue-500": "#1557FF";
|
|
@@ -111,8 +111,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
111
111
|
readonly "navy-600": string;
|
|
112
112
|
readonly "navy-700": string;
|
|
113
113
|
readonly "navy-900": "#0A0D1C";
|
|
114
|
-
readonly "green-100": "#EAFDC6";
|
|
115
114
|
readonly "green-0": "#F5FFE3";
|
|
115
|
+
readonly "green-100": "#EAFDC6";
|
|
116
116
|
readonly "green-400": "#AEE938";
|
|
117
117
|
readonly "green-700": "#008A27";
|
|
118
118
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -120,8 +120,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
120
120
|
readonly "yellow-500": "#FFD300";
|
|
121
121
|
readonly "pink-0": "#FFF5FF";
|
|
122
122
|
readonly "pink-400": "#F966FF";
|
|
123
|
-
readonly "red-100": "#DC5879";
|
|
124
123
|
readonly "red-0": "#E85D7F";
|
|
124
|
+
readonly "red-100": "#DC5879";
|
|
125
125
|
readonly "red-500": "#E91C11";
|
|
126
126
|
readonly "red-600": "#BE1809";
|
|
127
127
|
readonly "orange-500": "#FF8C00";
|
|
@@ -140,7 +140,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
140
140
|
readonly "white-200": string;
|
|
141
141
|
readonly "white-600": string;
|
|
142
142
|
readonly "white-700": string;
|
|
143
|
-
}, "-"
|
|
143
|
+
}, "-">, "color">>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
|
|
144
144
|
colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
145
145
|
text: {
|
|
146
146
|
_: "navy-800";
|
|
@@ -249,8 +249,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
249
249
|
readonly "shadow-black-slight": string;
|
|
250
250
|
readonly "shadow-black-heavy": string;
|
|
251
251
|
readonly "beige-100": "#FFF0E5";
|
|
252
|
-
readonly "blue-100": "#D3F2FF";
|
|
253
252
|
readonly "blue-0": "#F5FCFF";
|
|
253
|
+
readonly "blue-100": "#D3F2FF";
|
|
254
254
|
readonly "blue-300": "#66C4FF";
|
|
255
255
|
readonly "blue-400": "#3388FF";
|
|
256
256
|
readonly "blue-500": "#1557FF";
|
|
@@ -264,8 +264,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
264
264
|
readonly "navy-600": string;
|
|
265
265
|
readonly "navy-700": string;
|
|
266
266
|
readonly "navy-900": "#0A0D1C";
|
|
267
|
-
readonly "green-100": "#EAFDC6";
|
|
268
267
|
readonly "green-0": "#F5FFE3";
|
|
268
|
+
readonly "green-100": "#EAFDC6";
|
|
269
269
|
readonly "green-400": "#AEE938";
|
|
270
270
|
readonly "green-700": "#008A27";
|
|
271
271
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -273,8 +273,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
273
273
|
readonly "yellow-500": "#FFD300";
|
|
274
274
|
readonly "pink-0": "#FFF5FF";
|
|
275
275
|
readonly "pink-400": "#F966FF";
|
|
276
|
-
readonly "red-100": "#DC5879";
|
|
277
276
|
readonly "red-0": "#E85D7F";
|
|
277
|
+
readonly "red-100": "#DC5879";
|
|
278
278
|
readonly "red-500": "#E91C11";
|
|
279
279
|
readonly "red-600": "#BE1809";
|
|
280
280
|
readonly "orange-500": "#FF8C00";
|
|
@@ -293,7 +293,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
293
293
|
readonly "white-200": string;
|
|
294
294
|
readonly "white-600": string;
|
|
295
295
|
readonly "white-700": string;
|
|
296
|
-
}, "-"
|
|
296
|
+
}, "-">, "color">;
|
|
297
297
|
modes: import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
|
|
298
298
|
light: import("@codecademy/variance").LiteralPaths<{
|
|
299
299
|
text: {
|
|
@@ -407,8 +407,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
407
407
|
readonly "shadow-black-slight": string;
|
|
408
408
|
readonly "shadow-black-heavy": string;
|
|
409
409
|
readonly "beige-100": "#FFF0E5";
|
|
410
|
-
readonly "blue-100": "#D3F2FF";
|
|
411
410
|
readonly "blue-0": "#F5FCFF";
|
|
411
|
+
readonly "blue-100": "#D3F2FF";
|
|
412
412
|
readonly "blue-300": "#66C4FF";
|
|
413
413
|
readonly "blue-400": "#3388FF";
|
|
414
414
|
readonly "blue-500": "#1557FF";
|
|
@@ -422,8 +422,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
422
422
|
readonly "navy-600": string;
|
|
423
423
|
readonly "navy-700": string;
|
|
424
424
|
readonly "navy-900": "#0A0D1C";
|
|
425
|
-
readonly "green-100": "#EAFDC6";
|
|
426
425
|
readonly "green-0": "#F5FFE3";
|
|
426
|
+
readonly "green-100": "#EAFDC6";
|
|
427
427
|
readonly "green-400": "#AEE938";
|
|
428
428
|
readonly "green-700": "#008A27";
|
|
429
429
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -431,8 +431,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
431
431
|
readonly "yellow-500": "#FFD300";
|
|
432
432
|
readonly "pink-0": "#FFF5FF";
|
|
433
433
|
readonly "pink-400": "#F966FF";
|
|
434
|
-
readonly "red-100": "#DC5879";
|
|
435
434
|
readonly "red-0": "#E85D7F";
|
|
435
|
+
readonly "red-100": "#DC5879";
|
|
436
436
|
readonly "red-500": "#E91C11";
|
|
437
437
|
readonly "red-600": "#BE1809";
|
|
438
438
|
readonly "orange-500": "#FF8C00";
|
|
@@ -452,22 +452,10 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
452
452
|
readonly "white-600": string;
|
|
453
453
|
readonly "white-700": string;
|
|
454
454
|
}, "-">) => string;
|
|
455
|
-
}
|
|
456
|
-
xs: string;
|
|
457
|
-
sm: string;
|
|
458
|
-
md: string;
|
|
459
|
-
lg: string;
|
|
460
|
-
xl: string;
|
|
461
|
-
}>>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
|
|
455
|
+
}>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
|
|
462
456
|
1: string;
|
|
463
457
|
2: string;
|
|
464
|
-
}, "-"
|
|
465
|
-
xs: string;
|
|
466
|
-
sm: string;
|
|
467
|
-
md: string;
|
|
468
|
-
lg: string;
|
|
469
|
-
xl: string;
|
|
470
|
-
}>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
|
|
458
|
+
}, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
|
|
471
459
|
colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
472
460
|
primary: {
|
|
473
461
|
_: "blue-500";
|
|
@@ -501,8 +489,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
501
489
|
readonly "shadow-black-slight": string;
|
|
502
490
|
readonly "shadow-black-heavy": string;
|
|
503
491
|
readonly "beige-100": "#FFF0E5";
|
|
504
|
-
readonly "blue-100": "#D3F2FF";
|
|
505
492
|
readonly "blue-0": "#F5FCFF";
|
|
493
|
+
readonly "blue-100": "#D3F2FF";
|
|
506
494
|
readonly "blue-300": "#66C4FF";
|
|
507
495
|
readonly "blue-400": "#3388FF";
|
|
508
496
|
readonly "blue-500": "#1557FF";
|
|
@@ -516,8 +504,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
516
504
|
readonly "navy-600": string;
|
|
517
505
|
readonly "navy-700": string;
|
|
518
506
|
readonly "navy-900": "#0A0D1C";
|
|
519
|
-
readonly "green-100": "#EAFDC6";
|
|
520
507
|
readonly "green-0": "#F5FFE3";
|
|
508
|
+
readonly "green-100": "#EAFDC6";
|
|
521
509
|
readonly "green-400": "#AEE938";
|
|
522
510
|
readonly "green-700": "#008A27";
|
|
523
511
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -525,8 +513,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
525
513
|
readonly "yellow-500": "#FFD300";
|
|
526
514
|
readonly "pink-0": "#FFF5FF";
|
|
527
515
|
readonly "pink-400": "#F966FF";
|
|
528
|
-
readonly "red-100": "#DC5879";
|
|
529
516
|
readonly "red-0": "#E85D7F";
|
|
517
|
+
readonly "red-100": "#DC5879";
|
|
530
518
|
readonly "red-500": "#E91C11";
|
|
531
519
|
readonly "red-600": "#BE1809";
|
|
532
520
|
readonly "orange-500": "#FF8C00";
|
|
@@ -545,7 +533,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
545
533
|
readonly "white-200": string;
|
|
546
534
|
readonly "white-600": string;
|
|
547
535
|
readonly "white-700": string;
|
|
548
|
-
}, "-"
|
|
536
|
+
}, "-">, "color">, import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
549
537
|
text: {
|
|
550
538
|
_: "navy-800";
|
|
551
539
|
accent: "navy-900";
|
|
@@ -653,8 +641,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
653
641
|
readonly "shadow-black-slight": string;
|
|
654
642
|
readonly "shadow-black-heavy": string;
|
|
655
643
|
readonly "beige-100": "#FFF0E5";
|
|
656
|
-
readonly "blue-100": "#D3F2FF";
|
|
657
644
|
readonly "blue-0": "#F5FCFF";
|
|
645
|
+
readonly "blue-100": "#D3F2FF";
|
|
658
646
|
readonly "blue-300": "#66C4FF";
|
|
659
647
|
readonly "blue-400": "#3388FF";
|
|
660
648
|
readonly "blue-500": "#1557FF";
|
|
@@ -668,8 +656,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
668
656
|
readonly "navy-600": string;
|
|
669
657
|
readonly "navy-700": string;
|
|
670
658
|
readonly "navy-900": "#0A0D1C";
|
|
671
|
-
readonly "green-100": "#EAFDC6";
|
|
672
659
|
readonly "green-0": "#F5FFE3";
|
|
660
|
+
readonly "green-100": "#EAFDC6";
|
|
673
661
|
readonly "green-400": "#AEE938";
|
|
674
662
|
readonly "green-700": "#008A27";
|
|
675
663
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -677,8 +665,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
677
665
|
readonly "yellow-500": "#FFD300";
|
|
678
666
|
readonly "pink-0": "#FFF5FF";
|
|
679
667
|
readonly "pink-400": "#F966FF";
|
|
680
|
-
readonly "red-100": "#DC5879";
|
|
681
668
|
readonly "red-0": "#E85D7F";
|
|
669
|
+
readonly "red-100": "#DC5879";
|
|
682
670
|
readonly "red-500": "#E91C11";
|
|
683
671
|
readonly "red-600": "#BE1809";
|
|
684
672
|
readonly "orange-500": "#FF8C00";
|
|
@@ -697,7 +685,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
697
685
|
readonly "white-200": string;
|
|
698
686
|
readonly "white-600": string;
|
|
699
687
|
readonly "white-700": string;
|
|
700
|
-
}, "-"
|
|
688
|
+
}, "-">, "color">>;
|
|
701
689
|
modes: import("@codecademy/variance/dist/createTheme/types").Merge<import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
|
|
702
690
|
light: import("@codecademy/variance").LiteralPaths<{
|
|
703
691
|
text: {
|
|
@@ -823,8 +811,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
823
811
|
readonly "shadow-black-slight": string;
|
|
824
812
|
readonly "shadow-black-heavy": string;
|
|
825
813
|
readonly "beige-100": "#FFF0E5";
|
|
826
|
-
readonly "blue-100": "#D3F2FF";
|
|
827
814
|
readonly "blue-0": "#F5FCFF";
|
|
815
|
+
readonly "blue-100": "#D3F2FF";
|
|
828
816
|
readonly "blue-300": "#66C4FF";
|
|
829
817
|
readonly "blue-400": "#3388FF";
|
|
830
818
|
readonly "blue-500": "#1557FF";
|
|
@@ -838,8 +826,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
838
826
|
readonly "navy-600": string;
|
|
839
827
|
readonly "navy-700": string;
|
|
840
828
|
readonly "navy-900": "#0A0D1C";
|
|
841
|
-
readonly "green-100": "#EAFDC6";
|
|
842
829
|
readonly "green-0": "#F5FFE3";
|
|
830
|
+
readonly "green-100": "#EAFDC6";
|
|
843
831
|
readonly "green-400": "#AEE938";
|
|
844
832
|
readonly "green-700": "#008A27";
|
|
845
833
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -847,8 +835,8 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
847
835
|
readonly "yellow-500": "#FFD300";
|
|
848
836
|
readonly "pink-0": "#FFF5FF";
|
|
849
837
|
readonly "pink-400": "#F966FF";
|
|
850
|
-
readonly "red-100": "#DC5879";
|
|
851
838
|
readonly "red-0": "#E85D7F";
|
|
839
|
+
readonly "red-100": "#DC5879";
|
|
852
840
|
readonly "red-500": "#E91C11";
|
|
853
841
|
readonly "red-600": "#BE1809";
|
|
854
842
|
readonly "orange-500": "#FF8C00";
|
|
@@ -869,6 +857,6 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
869
857
|
readonly "white-700": string;
|
|
870
858
|
}, "-"> | "secondary" | "background" | "primary" | "danger" | "interface" | "text-disabled" | "text-accent" | "text-secondary" | "shadow-opaque" | "shadow-solid" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "danger-hover" | "interface-hover") => string;
|
|
871
859
|
}> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
|
|
872
|
-
export
|
|
860
|
+
export type AdminThemeShape = typeof adminTheme;
|
|
873
861
|
export interface AdminTheme extends AdminThemeShape {
|
|
874
862
|
}
|
package/dist/themes/core.d.ts
CHANGED
|
@@ -95,8 +95,8 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
95
95
|
readonly "shadow-black-slight": string;
|
|
96
96
|
readonly "shadow-black-heavy": string;
|
|
97
97
|
readonly "beige-100": "#FFF0E5";
|
|
98
|
-
readonly "blue-100": "#D3F2FF";
|
|
99
98
|
readonly "blue-0": "#F5FCFF";
|
|
99
|
+
readonly "blue-100": "#D3F2FF";
|
|
100
100
|
readonly "blue-300": "#66C4FF";
|
|
101
101
|
readonly "blue-400": "#3388FF";
|
|
102
102
|
readonly "blue-500": "#1557FF";
|
|
@@ -110,8 +110,8 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
110
110
|
readonly "navy-600": string;
|
|
111
111
|
readonly "navy-700": string;
|
|
112
112
|
readonly "navy-900": "#0A0D1C";
|
|
113
|
-
readonly "green-100": "#EAFDC6";
|
|
114
113
|
readonly "green-0": "#F5FFE3";
|
|
114
|
+
readonly "green-100": "#EAFDC6";
|
|
115
115
|
readonly "green-400": "#AEE938";
|
|
116
116
|
readonly "green-700": "#008A27";
|
|
117
117
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -119,8 +119,8 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
119
119
|
readonly "yellow-500": "#FFD300";
|
|
120
120
|
readonly "pink-0": "#FFF5FF";
|
|
121
121
|
readonly "pink-400": "#F966FF";
|
|
122
|
-
readonly "red-100": "#DC5879";
|
|
123
122
|
readonly "red-0": "#E85D7F";
|
|
123
|
+
readonly "red-100": "#DC5879";
|
|
124
124
|
readonly "red-500": "#E91C11";
|
|
125
125
|
readonly "red-600": "#BE1809";
|
|
126
126
|
readonly "orange-500": "#FF8C00";
|
|
@@ -139,7 +139,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
139
139
|
readonly "white-200": string;
|
|
140
140
|
readonly "white-600": string;
|
|
141
141
|
readonly "white-700": string;
|
|
142
|
-
}, "-"
|
|
142
|
+
}, "-">, "color">>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
|
|
143
143
|
colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
144
144
|
text: {
|
|
145
145
|
_: "navy-800";
|
|
@@ -248,8 +248,8 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
248
248
|
readonly "shadow-black-slight": string;
|
|
249
249
|
readonly "shadow-black-heavy": string;
|
|
250
250
|
readonly "beige-100": "#FFF0E5";
|
|
251
|
-
readonly "blue-100": "#D3F2FF";
|
|
252
251
|
readonly "blue-0": "#F5FCFF";
|
|
252
|
+
readonly "blue-100": "#D3F2FF";
|
|
253
253
|
readonly "blue-300": "#66C4FF";
|
|
254
254
|
readonly "blue-400": "#3388FF";
|
|
255
255
|
readonly "blue-500": "#1557FF";
|
|
@@ -263,8 +263,8 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
263
263
|
readonly "navy-600": string;
|
|
264
264
|
readonly "navy-700": string;
|
|
265
265
|
readonly "navy-900": "#0A0D1C";
|
|
266
|
-
readonly "green-100": "#EAFDC6";
|
|
267
266
|
readonly "green-0": "#F5FFE3";
|
|
267
|
+
readonly "green-100": "#EAFDC6";
|
|
268
268
|
readonly "green-400": "#AEE938";
|
|
269
269
|
readonly "green-700": "#008A27";
|
|
270
270
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -272,8 +272,8 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
272
272
|
readonly "yellow-500": "#FFD300";
|
|
273
273
|
readonly "pink-0": "#FFF5FF";
|
|
274
274
|
readonly "pink-400": "#F966FF";
|
|
275
|
-
readonly "red-100": "#DC5879";
|
|
276
275
|
readonly "red-0": "#E85D7F";
|
|
276
|
+
readonly "red-100": "#DC5879";
|
|
277
277
|
readonly "red-500": "#E91C11";
|
|
278
278
|
readonly "red-600": "#BE1809";
|
|
279
279
|
readonly "orange-500": "#FF8C00";
|
|
@@ -292,7 +292,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
292
292
|
readonly "white-200": string;
|
|
293
293
|
readonly "white-600": string;
|
|
294
294
|
readonly "white-700": string;
|
|
295
|
-
}, "-"
|
|
295
|
+
}, "-">, "color">;
|
|
296
296
|
modes: import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
|
|
297
297
|
light: import("@codecademy/variance").LiteralPaths<{
|
|
298
298
|
text: {
|
|
@@ -406,8 +406,8 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
406
406
|
readonly "shadow-black-slight": string;
|
|
407
407
|
readonly "shadow-black-heavy": string;
|
|
408
408
|
readonly "beige-100": "#FFF0E5";
|
|
409
|
-
readonly "blue-100": "#D3F2FF";
|
|
410
409
|
readonly "blue-0": "#F5FCFF";
|
|
410
|
+
readonly "blue-100": "#D3F2FF";
|
|
411
411
|
readonly "blue-300": "#66C4FF";
|
|
412
412
|
readonly "blue-400": "#3388FF";
|
|
413
413
|
readonly "blue-500": "#1557FF";
|
|
@@ -421,8 +421,8 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
421
421
|
readonly "navy-600": string;
|
|
422
422
|
readonly "navy-700": string;
|
|
423
423
|
readonly "navy-900": "#0A0D1C";
|
|
424
|
-
readonly "green-100": "#EAFDC6";
|
|
425
424
|
readonly "green-0": "#F5FFE3";
|
|
425
|
+
readonly "green-100": "#EAFDC6";
|
|
426
426
|
readonly "green-400": "#AEE938";
|
|
427
427
|
readonly "green-700": "#008A27";
|
|
428
428
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -430,8 +430,8 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
430
430
|
readonly "yellow-500": "#FFD300";
|
|
431
431
|
readonly "pink-0": "#FFF5FF";
|
|
432
432
|
readonly "pink-400": "#F966FF";
|
|
433
|
-
readonly "red-100": "#DC5879";
|
|
434
433
|
readonly "red-0": "#E85D7F";
|
|
434
|
+
readonly "red-100": "#DC5879";
|
|
435
435
|
readonly "red-500": "#E91C11";
|
|
436
436
|
readonly "red-600": "#BE1809";
|
|
437
437
|
readonly "orange-500": "#FF8C00";
|
|
@@ -451,22 +451,10 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
451
451
|
readonly "white-600": string;
|
|
452
452
|
readonly "white-700": string;
|
|
453
453
|
}, "-">) => string;
|
|
454
|
-
}
|
|
455
|
-
xs: string;
|
|
456
|
-
sm: string;
|
|
457
|
-
md: string;
|
|
458
|
-
lg: string;
|
|
459
|
-
xl: string;
|
|
460
|
-
}>>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
|
|
454
|
+
}>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
|
|
461
455
|
1: string;
|
|
462
456
|
2: string;
|
|
463
|
-
}, "-"
|
|
464
|
-
|
|
465
|
-
sm: string;
|
|
466
|
-
md: string;
|
|
467
|
-
lg: string;
|
|
468
|
-
xl: string;
|
|
469
|
-
}>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
|
|
470
|
-
export declare type CoreThemeShape = typeof coreTheme;
|
|
457
|
+
}, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
|
|
458
|
+
export type CoreThemeShape = typeof coreTheme;
|
|
471
459
|
export interface CoreTheme extends CoreThemeShape {
|
|
472
460
|
}
|
package/dist/themes/core.js
CHANGED
|
@@ -54,7 +54,7 @@ export var coreTheme = createTheme({
|
|
|
54
54
|
_: 'red-500',
|
|
55
55
|
hover: 'red-600'
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
interface: {
|
|
58
58
|
_: 'hyper-500',
|
|
59
59
|
hover: 'hyper-400'
|
|
60
60
|
}
|
|
@@ -97,7 +97,7 @@ export var coreTheme = createTheme({
|
|
|
97
97
|
_: 'red-0',
|
|
98
98
|
hover: 'red-100'
|
|
99
99
|
},
|
|
100
|
-
|
|
100
|
+
interface: {
|
|
101
101
|
_: 'yellow-500',
|
|
102
102
|
hover: 'yellow-400'
|
|
103
103
|
}
|
|
@@ -106,8 +106,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
106
106
|
readonly "shadow-black-slight": string;
|
|
107
107
|
readonly "shadow-black-heavy": string;
|
|
108
108
|
readonly "beige-100": "#FFF0E5";
|
|
109
|
-
readonly "blue-100": "#D3F2FF";
|
|
110
109
|
readonly "blue-0": "#F5FCFF";
|
|
110
|
+
readonly "blue-100": "#D3F2FF";
|
|
111
111
|
readonly "blue-300": "#66C4FF";
|
|
112
112
|
readonly "blue-400": "#3388FF";
|
|
113
113
|
readonly "blue-500": "#1557FF";
|
|
@@ -121,8 +121,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
121
121
|
readonly "navy-600": string;
|
|
122
122
|
readonly "navy-700": string;
|
|
123
123
|
readonly "navy-900": "#0A0D1C";
|
|
124
|
-
readonly "green-100": "#EAFDC6";
|
|
125
124
|
readonly "green-0": "#F5FFE3";
|
|
125
|
+
readonly "green-100": "#EAFDC6";
|
|
126
126
|
readonly "green-400": "#AEE938";
|
|
127
127
|
readonly "green-700": "#008A27";
|
|
128
128
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -130,8 +130,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
130
130
|
readonly "yellow-500": "#FFD300";
|
|
131
131
|
readonly "pink-0": "#FFF5FF";
|
|
132
132
|
readonly "pink-400": "#F966FF";
|
|
133
|
-
readonly "red-100": "#DC5879";
|
|
134
133
|
readonly "red-0": "#E85D7F";
|
|
134
|
+
readonly "red-100": "#DC5879";
|
|
135
135
|
readonly "red-500": "#E91C11";
|
|
136
136
|
readonly "red-600": "#BE1809";
|
|
137
137
|
readonly "orange-500": "#FF8C00";
|
|
@@ -150,7 +150,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
150
150
|
readonly "white-200": string;
|
|
151
151
|
readonly "white-600": string;
|
|
152
152
|
readonly "white-700": string;
|
|
153
|
-
}, "-"
|
|
153
|
+
}, "-">, "color">>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
|
|
154
154
|
colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
155
155
|
text: {
|
|
156
156
|
_: "navy-800";
|
|
@@ -259,8 +259,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
259
259
|
readonly "shadow-black-slight": string;
|
|
260
260
|
readonly "shadow-black-heavy": string;
|
|
261
261
|
readonly "beige-100": "#FFF0E5";
|
|
262
|
-
readonly "blue-100": "#D3F2FF";
|
|
263
262
|
readonly "blue-0": "#F5FCFF";
|
|
263
|
+
readonly "blue-100": "#D3F2FF";
|
|
264
264
|
readonly "blue-300": "#66C4FF";
|
|
265
265
|
readonly "blue-400": "#3388FF";
|
|
266
266
|
readonly "blue-500": "#1557FF";
|
|
@@ -274,8 +274,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
274
274
|
readonly "navy-600": string;
|
|
275
275
|
readonly "navy-700": string;
|
|
276
276
|
readonly "navy-900": "#0A0D1C";
|
|
277
|
-
readonly "green-100": "#EAFDC6";
|
|
278
277
|
readonly "green-0": "#F5FFE3";
|
|
278
|
+
readonly "green-100": "#EAFDC6";
|
|
279
279
|
readonly "green-400": "#AEE938";
|
|
280
280
|
readonly "green-700": "#008A27";
|
|
281
281
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -283,8 +283,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
283
283
|
readonly "yellow-500": "#FFD300";
|
|
284
284
|
readonly "pink-0": "#FFF5FF";
|
|
285
285
|
readonly "pink-400": "#F966FF";
|
|
286
|
-
readonly "red-100": "#DC5879";
|
|
287
286
|
readonly "red-0": "#E85D7F";
|
|
287
|
+
readonly "red-100": "#DC5879";
|
|
288
288
|
readonly "red-500": "#E91C11";
|
|
289
289
|
readonly "red-600": "#BE1809";
|
|
290
290
|
readonly "orange-500": "#FF8C00";
|
|
@@ -303,7 +303,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
303
303
|
readonly "white-200": string;
|
|
304
304
|
readonly "white-600": string;
|
|
305
305
|
readonly "white-700": string;
|
|
306
|
-
}, "-"
|
|
306
|
+
}, "-">, "color">;
|
|
307
307
|
modes: import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
|
|
308
308
|
light: import("@codecademy/variance").LiteralPaths<{
|
|
309
309
|
text: {
|
|
@@ -417,8 +417,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
417
417
|
readonly "shadow-black-slight": string;
|
|
418
418
|
readonly "shadow-black-heavy": string;
|
|
419
419
|
readonly "beige-100": "#FFF0E5";
|
|
420
|
-
readonly "blue-100": "#D3F2FF";
|
|
421
420
|
readonly "blue-0": "#F5FCFF";
|
|
421
|
+
readonly "blue-100": "#D3F2FF";
|
|
422
422
|
readonly "blue-300": "#66C4FF";
|
|
423
423
|
readonly "blue-400": "#3388FF";
|
|
424
424
|
readonly "blue-500": "#1557FF";
|
|
@@ -432,8 +432,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
432
432
|
readonly "navy-600": string;
|
|
433
433
|
readonly "navy-700": string;
|
|
434
434
|
readonly "navy-900": "#0A0D1C";
|
|
435
|
-
readonly "green-100": "#EAFDC6";
|
|
436
435
|
readonly "green-0": "#F5FFE3";
|
|
436
|
+
readonly "green-100": "#EAFDC6";
|
|
437
437
|
readonly "green-400": "#AEE938";
|
|
438
438
|
readonly "green-700": "#008A27";
|
|
439
439
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -441,8 +441,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
441
441
|
readonly "yellow-500": "#FFD300";
|
|
442
442
|
readonly "pink-0": "#FFF5FF";
|
|
443
443
|
readonly "pink-400": "#F966FF";
|
|
444
|
-
readonly "red-100": "#DC5879";
|
|
445
444
|
readonly "red-0": "#E85D7F";
|
|
445
|
+
readonly "red-100": "#DC5879";
|
|
446
446
|
readonly "red-500": "#E91C11";
|
|
447
447
|
readonly "red-600": "#BE1809";
|
|
448
448
|
readonly "orange-500": "#FF8C00";
|
|
@@ -462,22 +462,10 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
462
462
|
readonly "white-600": string;
|
|
463
463
|
readonly "white-700": string;
|
|
464
464
|
}, "-">) => string;
|
|
465
|
-
}
|
|
466
|
-
xs: string;
|
|
467
|
-
sm: string;
|
|
468
|
-
md: string;
|
|
469
|
-
lg: string;
|
|
470
|
-
xl: string;
|
|
471
|
-
}>>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
|
|
465
|
+
}>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
|
|
472
466
|
1: string;
|
|
473
467
|
2: string;
|
|
474
|
-
}, "-"
|
|
475
|
-
xs: string;
|
|
476
|
-
sm: string;
|
|
477
|
-
md: string;
|
|
478
|
-
lg: string;
|
|
479
|
-
xl: string;
|
|
480
|
-
}>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
468
|
+
}, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
481
469
|
readonly lightBeige: "#FFFBF8";
|
|
482
470
|
readonly gold: "#8A7300";
|
|
483
471
|
readonly teal: "#027E97";
|
|
@@ -488,7 +476,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
488
476
|
readonly "gold-800": "#8A7300";
|
|
489
477
|
readonly "teal-500": "#027E97";
|
|
490
478
|
readonly "purple-300": "#B3CCFF";
|
|
491
|
-
}, "-"
|
|
479
|
+
}, "-">, "color">>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
|
|
492
480
|
colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
493
481
|
editor: {
|
|
494
482
|
attribute: "green-700";
|
|
@@ -573,8 +561,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
573
561
|
readonly "shadow-black-slight": string;
|
|
574
562
|
readonly "shadow-black-heavy": string;
|
|
575
563
|
readonly "beige-100": "#FFF0E5";
|
|
576
|
-
readonly "blue-100": "#D3F2FF";
|
|
577
564
|
readonly "blue-0": "#F5FCFF";
|
|
565
|
+
readonly "blue-100": "#D3F2FF";
|
|
578
566
|
readonly "blue-300": "#66C4FF";
|
|
579
567
|
readonly "blue-400": "#3388FF";
|
|
580
568
|
readonly "blue-500": "#1557FF";
|
|
@@ -588,8 +576,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
588
576
|
readonly "navy-600": string;
|
|
589
577
|
readonly "navy-700": string;
|
|
590
578
|
readonly "navy-900": "#0A0D1C";
|
|
591
|
-
readonly "green-100": "#EAFDC6";
|
|
592
579
|
readonly "green-0": "#F5FFE3";
|
|
580
|
+
readonly "green-100": "#EAFDC6";
|
|
593
581
|
readonly "green-400": "#AEE938";
|
|
594
582
|
readonly "green-700": "#008A27";
|
|
595
583
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -597,8 +585,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
597
585
|
readonly "yellow-500": "#FFD300";
|
|
598
586
|
readonly "pink-0": "#FFF5FF";
|
|
599
587
|
readonly "pink-400": "#F966FF";
|
|
600
|
-
readonly "red-100": "#DC5879";
|
|
601
588
|
readonly "red-0": "#E85D7F";
|
|
589
|
+
readonly "red-100": "#DC5879";
|
|
602
590
|
readonly "red-500": "#E91C11";
|
|
603
591
|
readonly "red-600": "#BE1809";
|
|
604
592
|
readonly "orange-500": "#FF8C00";
|
|
@@ -617,7 +605,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
617
605
|
readonly "white-200": string;
|
|
618
606
|
readonly "white-600": string;
|
|
619
607
|
readonly "white-700": string;
|
|
620
|
-
}, "-"
|
|
608
|
+
}, "-">, "color">, import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
621
609
|
text: {
|
|
622
610
|
_: "navy-800";
|
|
623
611
|
accent: "navy-900";
|
|
@@ -725,8 +713,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
725
713
|
readonly "shadow-black-slight": string;
|
|
726
714
|
readonly "shadow-black-heavy": string;
|
|
727
715
|
readonly "beige-100": "#FFF0E5";
|
|
728
|
-
readonly "blue-100": "#D3F2FF";
|
|
729
716
|
readonly "blue-0": "#F5FCFF";
|
|
717
|
+
readonly "blue-100": "#D3F2FF";
|
|
730
718
|
readonly "blue-300": "#66C4FF";
|
|
731
719
|
readonly "blue-400": "#3388FF";
|
|
732
720
|
readonly "blue-500": "#1557FF";
|
|
@@ -740,8 +728,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
740
728
|
readonly "navy-600": string;
|
|
741
729
|
readonly "navy-700": string;
|
|
742
730
|
readonly "navy-900": "#0A0D1C";
|
|
743
|
-
readonly "green-100": "#EAFDC6";
|
|
744
731
|
readonly "green-0": "#F5FFE3";
|
|
732
|
+
readonly "green-100": "#EAFDC6";
|
|
745
733
|
readonly "green-400": "#AEE938";
|
|
746
734
|
readonly "green-700": "#008A27";
|
|
747
735
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -749,8 +737,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
749
737
|
readonly "yellow-500": "#FFD300";
|
|
750
738
|
readonly "pink-0": "#FFF5FF";
|
|
751
739
|
readonly "pink-400": "#F966FF";
|
|
752
|
-
readonly "red-100": "#DC5879";
|
|
753
740
|
readonly "red-0": "#E85D7F";
|
|
741
|
+
readonly "red-100": "#DC5879";
|
|
754
742
|
readonly "red-500": "#E91C11";
|
|
755
743
|
readonly "red-600": "#BE1809";
|
|
756
744
|
readonly "orange-500": "#FF8C00";
|
|
@@ -769,7 +757,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
769
757
|
readonly "white-200": string;
|
|
770
758
|
readonly "white-600": string;
|
|
771
759
|
readonly "white-700": string;
|
|
772
|
-
}, "-"
|
|
760
|
+
}, "-">, "color">>, import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
773
761
|
readonly lightBeige: "#FFFBF8";
|
|
774
762
|
readonly gold: "#8A7300";
|
|
775
763
|
readonly teal: "#027E97";
|
|
@@ -780,7 +768,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
780
768
|
readonly "gold-800": "#8A7300";
|
|
781
769
|
readonly "teal-500": "#027E97";
|
|
782
770
|
readonly "purple-300": "#B3CCFF";
|
|
783
|
-
}, "-"
|
|
771
|
+
}, "-">, "color">>;
|
|
784
772
|
modes: import("@codecademy/variance/dist/createTheme/types").Merge<import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
|
|
785
773
|
light: import("@codecademy/variance").LiteralPaths<{
|
|
786
774
|
text: {
|
|
@@ -957,8 +945,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
957
945
|
readonly "shadow-black-slight": string;
|
|
958
946
|
readonly "shadow-black-heavy": string;
|
|
959
947
|
readonly "beige-100": "#FFF0E5";
|
|
960
|
-
readonly "blue-100": "#D3F2FF";
|
|
961
948
|
readonly "blue-0": "#F5FCFF";
|
|
949
|
+
readonly "blue-100": "#D3F2FF";
|
|
962
950
|
readonly "blue-300": "#66C4FF";
|
|
963
951
|
readonly "blue-400": "#3388FF";
|
|
964
952
|
readonly "blue-500": "#1557FF";
|
|
@@ -972,8 +960,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
972
960
|
readonly "navy-600": string;
|
|
973
961
|
readonly "navy-700": string;
|
|
974
962
|
readonly "navy-900": "#0A0D1C";
|
|
975
|
-
readonly "green-100": "#EAFDC6";
|
|
976
963
|
readonly "green-0": "#F5FFE3";
|
|
964
|
+
readonly "green-100": "#EAFDC6";
|
|
977
965
|
readonly "green-400": "#AEE938";
|
|
978
966
|
readonly "green-700": "#008A27";
|
|
979
967
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -981,8 +969,8 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
981
969
|
readonly "yellow-500": "#FFD300";
|
|
982
970
|
readonly "pink-0": "#FFF5FF";
|
|
983
971
|
readonly "pink-400": "#F966FF";
|
|
984
|
-
readonly "red-100": "#DC5879";
|
|
985
972
|
readonly "red-0": "#E85D7F";
|
|
973
|
+
readonly "red-100": "#DC5879";
|
|
986
974
|
readonly "red-500": "#E91C11";
|
|
987
975
|
readonly "red-600": "#BE1809";
|
|
988
976
|
readonly "orange-500": "#FF8C00";
|
|
@@ -1014,6 +1002,6 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
1014
1002
|
readonly "purple-300": "#B3CCFF";
|
|
1015
1003
|
}, "-">) => string;
|
|
1016
1004
|
}> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
|
|
1017
|
-
export
|
|
1005
|
+
export type PlatformThemeShape = typeof platformTheme;
|
|
1018
1006
|
export interface PlatformTheme extends PlatformThemeShape {
|
|
1019
1007
|
}
|
|
@@ -8,7 +8,7 @@ import { Theme } from '@emotion/react';
|
|
|
8
8
|
* @returns A function that accepts an object with a keyof `theme` and looks up the
|
|
9
9
|
* value at supplied path parameter
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type SafeThemeValues = Omit<Theme, '_variables' | '_tokens' | '_getColorValue' | 'modes'>;
|
|
12
12
|
export declare function themed<P extends Path<SafeThemeValues>>(path: P): (props: {
|
|
13
13
|
theme: Theme;
|
|
14
14
|
}) => PathValue<SafeThemeValues, P>;
|
|
@@ -111,8 +111,8 @@ export declare const corePalette: {
|
|
|
111
111
|
readonly "shadow-black-slight": string;
|
|
112
112
|
readonly "shadow-black-heavy": string;
|
|
113
113
|
readonly "beige-100": "#FFF0E5";
|
|
114
|
-
readonly "blue-100": "#D3F2FF";
|
|
115
114
|
readonly "blue-0": "#F5FCFF";
|
|
115
|
+
readonly "blue-100": "#D3F2FF";
|
|
116
116
|
readonly "blue-300": "#66C4FF";
|
|
117
117
|
readonly "blue-400": "#3388FF";
|
|
118
118
|
readonly "blue-500": "#1557FF";
|
|
@@ -126,8 +126,8 @@ export declare const corePalette: {
|
|
|
126
126
|
readonly "navy-600": string;
|
|
127
127
|
readonly "navy-700": string;
|
|
128
128
|
readonly "navy-900": "#0A0D1C";
|
|
129
|
-
readonly "green-100": "#EAFDC6";
|
|
130
129
|
readonly "green-0": "#F5FFE3";
|
|
130
|
+
readonly "green-100": "#EAFDC6";
|
|
131
131
|
readonly "green-400": "#AEE938";
|
|
132
132
|
readonly "green-700": "#008A27";
|
|
133
133
|
readonly "yellow-0": "#FFFAE5";
|
|
@@ -135,8 +135,8 @@ export declare const corePalette: {
|
|
|
135
135
|
readonly "yellow-500": "#FFD300";
|
|
136
136
|
readonly "pink-0": "#FFF5FF";
|
|
137
137
|
readonly "pink-400": "#F966FF";
|
|
138
|
-
readonly "red-100": "#DC5879";
|
|
139
138
|
readonly "red-0": "#E85D7F";
|
|
139
|
+
readonly "red-100": "#DC5879";
|
|
140
140
|
readonly "red-500": "#E91C11";
|
|
141
141
|
readonly "red-600": "#BE1809";
|
|
142
142
|
readonly "orange-500": "#FF8C00";
|
|
@@ -5,7 +5,7 @@ export declare const breakpoints: {
|
|
|
5
5
|
readonly lg: "1200px";
|
|
6
6
|
readonly xl: "1440px";
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type MediaSize = keyof typeof breakpoints;
|
|
9
9
|
export declare const mediaQueries: {
|
|
10
10
|
xs: string;
|
|
11
11
|
sm: string;
|
package/dist/variance/utils.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ThemeProps } from '@codecademy/variance';
|
|
3
3
|
declare const allPropnames: ["mode", "variant", "p" | "fontSize" | "fontFamily" | "lineHeight" | "fontWeight" | "color" | "background" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "inset" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "overflow" | "textDecoration" | "dimensions" | "textColor" | "bg" | "borderColorX" | "borderColorY" | "borderColorLeft" | "borderColorRight" | "borderColorTop" | "borderColorBottom" | "px" | "py" | "pt" | "pb" | "pr" | "pl" | "m" | "mx" | "my" | "mt" | "mb" | "mr" | "ml" | "borderX" | "borderY" | "borderWidthX" | "borderWidthY" | "borderWidthLeft" | "borderWidthRight" | "borderWidthTop" | "borderWidthBottom" | "borderRadiusLeft" | "borderRadiusTop" | "borderRadiusBottom" | "borderRadiusRight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft" | "borderStyleX" | "borderStyleY" | "borderStyleLeft" | "borderStyleRight" | "borderStyleTop" | "borderStyleBottom"];
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
4
|
+
export type SystemPropNames = typeof allPropnames[number];
|
|
5
|
+
export type ElementOrProps = keyof JSX.IntrinsicElements | ThemeProps;
|
|
6
|
+
export type ForwardableProps<El extends ElementOrProps, Additional> = Exclude<El extends keyof JSX.IntrinsicElements ? keyof JSX.IntrinsicElements[El] : keyof Element, Additional | SystemPropNames>;
|
|
7
7
|
export declare function createStyledOptions<El extends ElementOrProps = 'div', Additional extends string = never>(additional?: readonly Additional[]): {
|
|
8
8
|
shouldForwardProp: (prop: PropertyKey) => prop is Exclude<El extends keyof JSX.IntrinsicElements ? keyof JSX.IntrinsicElements[El] : keyof Element, "p" | "fontSize" | "fontFamily" | "lineHeight" | "fontWeight" | "color" | "background" | "mode" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "inset" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "overflow" | "textDecoration" | "dimensions" | "textColor" | "bg" | "borderColorX" | "borderColorY" | "borderColorLeft" | "borderColorRight" | "borderColorTop" | "borderColorBottom" | "px" | "py" | "pt" | "pb" | "pr" | "pl" | "m" | "mx" | "my" | "mt" | "mb" | "mr" | "ml" | "borderX" | "borderY" | "borderWidthX" | "borderWidthY" | "borderWidthLeft" | "borderWidthRight" | "borderWidthTop" | "borderWidthBottom" | "borderRadiusLeft" | "borderRadiusTop" | "borderRadiusBottom" | "borderRadiusRight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft" | "borderStyleX" | "borderStyleY" | "borderStyleLeft" | "borderStyleRight" | "borderStyleTop" | "borderStyleBottom" | "variant" | Additional>;
|
|
9
9
|
};
|
|
@@ -24,6 +24,6 @@ export declare function createStyledOptions<El extends ElementOrProps = 'div', A
|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare const styledOptions: typeof createStyledOptions & {
|
|
27
|
-
shouldForwardProp: (prop: PropertyKey) => prop is "style" | "slot" | "title" | "
|
|
27
|
+
shouldForwardProp: (prop: PropertyKey) => prop is "style" | "slot" | "title" | "id" | "property" | "translate" | "hidden" | "children" | "className" | "prefix" | "role" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-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" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | keyof import("react").ClassAttributes<HTMLDivElement>;
|
|
28
28
|
};
|
|
29
29
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut-styles",
|
|
3
3
|
"description": "Styleguide & Component library for codecademy.com",
|
|
4
|
-
"version": "16.1.
|
|
4
|
+
"version": "16.1.3-alpha.0f0cb9.0",
|
|
5
5
|
"author": "Jake Hiller <jake@codecademy.com>",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "git@github.com:Codecademy/gamut.git"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@codecademy/variance": "0.21.0",
|
|
24
|
+
"@codecademy/variance": "0.21.1-alpha.0f0cb9.0",
|
|
25
25
|
"@emotion/is-prop-valid": "^1.1.0",
|
|
26
26
|
"polished": "^4.1.2"
|
|
27
27
|
},
|
|
@@ -33,13 +33,9 @@
|
|
|
33
33
|
"react": "^17.0.2 || ^18.2.0",
|
|
34
34
|
"stylis": "^4.0.7"
|
|
35
35
|
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@emotion/jest": "^11.3.0",
|
|
38
|
-
"component-test-setup": "^0.3.1"
|
|
39
|
-
},
|
|
40
36
|
"license": "MIT",
|
|
41
37
|
"publishConfig": {
|
|
42
38
|
"access": "public"
|
|
43
39
|
},
|
|
44
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "e561bba04029a40f6de5f0b6bc24baa1df2f4ecb"
|
|
45
41
|
}
|