@codecademy/gamut-styles 16.0.0-alpha.59d1f2.0 → 16.0.0-alpha.714737.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/ColorMode.d.ts +3 -3
- package/dist/GamutProvider.d.ts +1 -0
- package/dist/GamutProvider.js +8 -2
- package/dist/UniqueIdProvider/index.d.ts +6 -0
- package/dist/UniqueIdProvider/index.js +23 -0
- package/dist/themes/admin.d.ts +20 -20
- package/dist/themes/core.d.ts +10 -10
- package/dist/themes/core.js +5 -5
- package/dist/themes/platform.d.ts +20 -20
- package/dist/variance/utils.d.ts +1 -1
- package/package.json +2 -2
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" | "dir" | "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" | "
|
|
6
|
+
export declare const Background: import("react").ForwardRefExoticComponent<Pick<BackgroundProps, "style" | "p" | "slot" | "title" | "as" | "children" | "dir" | "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" | "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" | "lang" | "role" | "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" | "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/ColorMode.d.ts
CHANGED
|
@@ -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" | "dir" | "id" | "property" | "translate" | "hidden" | "
|
|
878
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "slot" | "title" | "children" | "dir" | "id" | "property" | "translate" | "hidden" | "className" | "prefix" | "lang" | "role" | "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" | "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" | "dir" | "id" | "property" | "translate" | "hidden" | "
|
|
1276
|
+
} & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "slot" | "title" | "children" | "dir" | "id" | "property" | "translate" | "hidden" | "className" | "prefix" | "lang" | "role" | "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" | "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" | "dir" | "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" | "
|
|
1278
|
+
}, "bg"> & ColorModeProps, "style" | "p" | "slot" | "title" | "as" | "children" | "dir" | "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" | "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" | "lang" | "role" | "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" | "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/GamutProvider.d.ts
CHANGED
package/dist/GamutProvider.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CacheProvider, ThemeProvider } from '@emotion/react';
|
|
2
2
|
import { useContext, useRef } from 'react';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { UniqueIdProvider } from '../src/UniqueIdProvider';
|
|
4
5
|
import { createEmotionCache } from './cache';
|
|
5
6
|
import { Reboot, Typography } from './globals';
|
|
6
7
|
import { Variables } from './globals/Variables';
|
|
@@ -22,7 +23,9 @@ export var GamutProvider = function GamutProvider(_ref) {
|
|
|
22
23
|
_ref$useGlobals = _ref.useGlobals,
|
|
23
24
|
useGlobals = _ref$useGlobals === void 0 ? true : _ref$useGlobals,
|
|
24
25
|
_ref$useCache = _ref.useCache,
|
|
25
|
-
useCache = _ref$useCache === void 0 ? true : _ref$useCache
|
|
26
|
+
useCache = _ref$useCache === void 0 ? true : _ref$useCache,
|
|
27
|
+
_ref$useIcons = _ref.useIcons,
|
|
28
|
+
useIcons = _ref$useIcons === void 0 ? true : _ref$useIcons;
|
|
26
29
|
var _useContext = useContext(GamutContext),
|
|
27
30
|
hasGlobals = _useContext.hasGlobals,
|
|
28
31
|
hasCache = _useContext.hasCache;
|
|
@@ -49,7 +52,10 @@ export var GamutProvider = function GamutProvider(_ref) {
|
|
|
49
52
|
value: activeCache.current,
|
|
50
53
|
children: [globals, /*#__PURE__*/_jsx(ThemeProvider, {
|
|
51
54
|
theme: theme,
|
|
52
|
-
children:
|
|
55
|
+
children: /*#__PURE__*/_jsx(UniqueIdProvider, {
|
|
56
|
+
useUniqueIconIds: useIcons,
|
|
57
|
+
children: children
|
|
58
|
+
})
|
|
53
59
|
})]
|
|
54
60
|
})
|
|
55
61
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
import { Provider as UniqueIdGeneratorProvider } from '@inline-svg-unique-id/react';
|
|
8
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export var UniqueIdProvider = function UniqueIdProvider(_ref) {
|
|
11
|
+
var _ref$useUniqueIconIds = _ref.useUniqueIconIds,
|
|
12
|
+
useUniqueIconIds = _ref$useUniqueIconIds === void 0 ? true : _ref$useUniqueIconIds,
|
|
13
|
+
children = _ref.children;
|
|
14
|
+
if (!useUniqueIconIds) /*#__PURE__*/_jsx(_Fragment, {
|
|
15
|
+
children: children
|
|
16
|
+
});
|
|
17
|
+
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
18
|
+
rest[_key - 1] = arguments[_key];
|
|
19
|
+
}
|
|
20
|
+
return /*#__PURE__*/_jsx(UniqueIdGeneratorProvider, _objectSpread(_objectSpread({}, rest), {}, {
|
|
21
|
+
children: children
|
|
22
|
+
}));
|
|
23
|
+
};
|
package/dist/themes/admin.d.ts
CHANGED
|
@@ -187,7 +187,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
187
187
|
text: {
|
|
188
188
|
_: "white";
|
|
189
189
|
accent: "beige";
|
|
190
|
-
disabled: "
|
|
190
|
+
disabled: "white-500";
|
|
191
191
|
secondary: "white-600";
|
|
192
192
|
};
|
|
193
193
|
feedback: {
|
|
@@ -200,9 +200,9 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
200
200
|
contrast: "black";
|
|
201
201
|
current: "navy-800";
|
|
202
202
|
primary: "navy-900";
|
|
203
|
-
selected: "
|
|
204
|
-
disabled: "
|
|
205
|
-
hover: "
|
|
203
|
+
selected: "white-100";
|
|
204
|
+
disabled: "white-200";
|
|
205
|
+
hover: "white-200";
|
|
206
206
|
};
|
|
207
207
|
shadow: {
|
|
208
208
|
opaque: "shadow-black-heavy";
|
|
@@ -215,7 +215,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
215
215
|
};
|
|
216
216
|
secondary: {
|
|
217
217
|
_: "white";
|
|
218
|
-
hover: "
|
|
218
|
+
hover: "white-700";
|
|
219
219
|
};
|
|
220
220
|
danger: {
|
|
221
221
|
_: "red-0";
|
|
@@ -342,7 +342,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
342
342
|
text: {
|
|
343
343
|
_: "white";
|
|
344
344
|
accent: "beige";
|
|
345
|
-
disabled: "
|
|
345
|
+
disabled: "white-500";
|
|
346
346
|
secondary: "white-600";
|
|
347
347
|
};
|
|
348
348
|
feedback: {
|
|
@@ -355,9 +355,9 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
355
355
|
contrast: "black";
|
|
356
356
|
current: "navy-800";
|
|
357
357
|
primary: "navy-900";
|
|
358
|
-
selected: "
|
|
359
|
-
disabled: "
|
|
360
|
-
hover: "
|
|
358
|
+
selected: "white-100";
|
|
359
|
+
disabled: "white-200";
|
|
360
|
+
hover: "white-200";
|
|
361
361
|
};
|
|
362
362
|
shadow: {
|
|
363
363
|
opaque: "shadow-black-heavy";
|
|
@@ -370,7 +370,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
370
370
|
};
|
|
371
371
|
secondary: {
|
|
372
372
|
_: "white";
|
|
373
|
-
hover: "
|
|
373
|
+
hover: "white-700";
|
|
374
374
|
};
|
|
375
375
|
danger: {
|
|
376
376
|
_: "red-0";
|
|
@@ -591,7 +591,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
591
591
|
text: {
|
|
592
592
|
_: "white";
|
|
593
593
|
accent: "beige";
|
|
594
|
-
disabled: "
|
|
594
|
+
disabled: "white-500";
|
|
595
595
|
secondary: "white-600";
|
|
596
596
|
};
|
|
597
597
|
feedback: {
|
|
@@ -604,9 +604,9 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
604
604
|
contrast: "black";
|
|
605
605
|
current: "navy-800";
|
|
606
606
|
primary: "navy-900";
|
|
607
|
-
selected: "
|
|
608
|
-
disabled: "
|
|
609
|
-
hover: "
|
|
607
|
+
selected: "white-100";
|
|
608
|
+
disabled: "white-200";
|
|
609
|
+
hover: "white-200";
|
|
610
610
|
};
|
|
611
611
|
shadow: {
|
|
612
612
|
opaque: "shadow-black-heavy";
|
|
@@ -619,7 +619,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
619
619
|
};
|
|
620
620
|
secondary: {
|
|
621
621
|
_: "white";
|
|
622
|
-
hover: "
|
|
622
|
+
hover: "white-700";
|
|
623
623
|
};
|
|
624
624
|
danger: {
|
|
625
625
|
_: "red-0";
|
|
@@ -746,7 +746,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
746
746
|
text: {
|
|
747
747
|
_: "white";
|
|
748
748
|
accent: "beige";
|
|
749
|
-
disabled: "
|
|
749
|
+
disabled: "white-500";
|
|
750
750
|
secondary: "white-600";
|
|
751
751
|
};
|
|
752
752
|
feedback: {
|
|
@@ -759,9 +759,9 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
759
759
|
contrast: "black";
|
|
760
760
|
current: "navy-800";
|
|
761
761
|
primary: "navy-900";
|
|
762
|
-
selected: "
|
|
763
|
-
disabled: "
|
|
764
|
-
hover: "
|
|
762
|
+
selected: "white-100";
|
|
763
|
+
disabled: "white-200";
|
|
764
|
+
hover: "white-200";
|
|
765
765
|
};
|
|
766
766
|
shadow: {
|
|
767
767
|
opaque: "shadow-black-heavy";
|
|
@@ -774,7 +774,7 @@ export declare const adminTheme: Record<"breakpoints", {
|
|
|
774
774
|
};
|
|
775
775
|
secondary: {
|
|
776
776
|
_: "white";
|
|
777
|
-
hover: "
|
|
777
|
+
hover: "white-700";
|
|
778
778
|
};
|
|
779
779
|
danger: {
|
|
780
780
|
_: "red-0";
|
package/dist/themes/core.d.ts
CHANGED
|
@@ -186,7 +186,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
186
186
|
text: {
|
|
187
187
|
_: "white";
|
|
188
188
|
accent: "beige";
|
|
189
|
-
disabled: "
|
|
189
|
+
disabled: "white-500";
|
|
190
190
|
secondary: "white-600";
|
|
191
191
|
};
|
|
192
192
|
feedback: {
|
|
@@ -199,9 +199,9 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
199
199
|
contrast: "black";
|
|
200
200
|
current: "navy-800";
|
|
201
201
|
primary: "navy-900";
|
|
202
|
-
selected: "
|
|
203
|
-
disabled: "
|
|
204
|
-
hover: "
|
|
202
|
+
selected: "white-100";
|
|
203
|
+
disabled: "white-200";
|
|
204
|
+
hover: "white-200";
|
|
205
205
|
};
|
|
206
206
|
shadow: {
|
|
207
207
|
opaque: "shadow-black-heavy";
|
|
@@ -214,7 +214,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
214
214
|
};
|
|
215
215
|
secondary: {
|
|
216
216
|
_: "white";
|
|
217
|
-
hover: "
|
|
217
|
+
hover: "white-700";
|
|
218
218
|
};
|
|
219
219
|
danger: {
|
|
220
220
|
_: "red-0";
|
|
@@ -341,7 +341,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
341
341
|
text: {
|
|
342
342
|
_: "white";
|
|
343
343
|
accent: "beige";
|
|
344
|
-
disabled: "
|
|
344
|
+
disabled: "white-500";
|
|
345
345
|
secondary: "white-600";
|
|
346
346
|
};
|
|
347
347
|
feedback: {
|
|
@@ -354,9 +354,9 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
354
354
|
contrast: "black";
|
|
355
355
|
current: "navy-800";
|
|
356
356
|
primary: "navy-900";
|
|
357
|
-
selected: "
|
|
358
|
-
disabled: "
|
|
359
|
-
hover: "
|
|
357
|
+
selected: "white-100";
|
|
358
|
+
disabled: "white-200";
|
|
359
|
+
hover: "white-200";
|
|
360
360
|
};
|
|
361
361
|
shadow: {
|
|
362
362
|
opaque: "shadow-black-heavy";
|
|
@@ -369,7 +369,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
|
|
|
369
369
|
};
|
|
370
370
|
secondary: {
|
|
371
371
|
_: "white";
|
|
372
|
-
hover: "
|
|
372
|
+
hover: "white-700";
|
|
373
373
|
};
|
|
374
374
|
danger: {
|
|
375
375
|
_: "red-0";
|
package/dist/themes/core.js
CHANGED
|
@@ -63,7 +63,7 @@ export var coreTheme = createTheme({
|
|
|
63
63
|
text: {
|
|
64
64
|
_: 'white',
|
|
65
65
|
accent: 'beige',
|
|
66
|
-
disabled: '
|
|
66
|
+
disabled: 'white-500',
|
|
67
67
|
secondary: 'white-600'
|
|
68
68
|
},
|
|
69
69
|
feedback: {
|
|
@@ -76,9 +76,9 @@ export var coreTheme = createTheme({
|
|
|
76
76
|
contrast: 'black',
|
|
77
77
|
current: 'navy-800',
|
|
78
78
|
primary: 'navy-900',
|
|
79
|
-
selected: '
|
|
80
|
-
disabled: '
|
|
81
|
-
hover: '
|
|
79
|
+
selected: 'white-100',
|
|
80
|
+
disabled: 'white-200',
|
|
81
|
+
hover: 'white-200'
|
|
82
82
|
},
|
|
83
83
|
shadow: {
|
|
84
84
|
opaque: 'shadow-black-heavy',
|
|
@@ -91,7 +91,7 @@ export var coreTheme = createTheme({
|
|
|
91
91
|
},
|
|
92
92
|
secondary: {
|
|
93
93
|
_: 'white',
|
|
94
|
-
hover: '
|
|
94
|
+
hover: 'white-700'
|
|
95
95
|
},
|
|
96
96
|
danger: {
|
|
97
97
|
_: 'red-0',
|
|
@@ -197,7 +197,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
197
197
|
text: {
|
|
198
198
|
_: "white";
|
|
199
199
|
accent: "beige";
|
|
200
|
-
disabled: "
|
|
200
|
+
disabled: "white-500";
|
|
201
201
|
secondary: "white-600";
|
|
202
202
|
};
|
|
203
203
|
feedback: {
|
|
@@ -210,9 +210,9 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
210
210
|
contrast: "black";
|
|
211
211
|
current: "navy-800";
|
|
212
212
|
primary: "navy-900";
|
|
213
|
-
selected: "
|
|
214
|
-
disabled: "
|
|
215
|
-
hover: "
|
|
213
|
+
selected: "white-100";
|
|
214
|
+
disabled: "white-200";
|
|
215
|
+
hover: "white-200";
|
|
216
216
|
};
|
|
217
217
|
shadow: {
|
|
218
218
|
opaque: "shadow-black-heavy";
|
|
@@ -225,7 +225,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
225
225
|
};
|
|
226
226
|
secondary: {
|
|
227
227
|
_: "white";
|
|
228
|
-
hover: "
|
|
228
|
+
hover: "white-700";
|
|
229
229
|
};
|
|
230
230
|
danger: {
|
|
231
231
|
_: "red-0";
|
|
@@ -352,7 +352,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
352
352
|
text: {
|
|
353
353
|
_: "white";
|
|
354
354
|
accent: "beige";
|
|
355
|
-
disabled: "
|
|
355
|
+
disabled: "white-500";
|
|
356
356
|
secondary: "white-600";
|
|
357
357
|
};
|
|
358
358
|
feedback: {
|
|
@@ -365,9 +365,9 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
365
365
|
contrast: "black";
|
|
366
366
|
current: "navy-800";
|
|
367
367
|
primary: "navy-900";
|
|
368
|
-
selected: "
|
|
369
|
-
disabled: "
|
|
370
|
-
hover: "
|
|
368
|
+
selected: "white-100";
|
|
369
|
+
disabled: "white-200";
|
|
370
|
+
hover: "white-200";
|
|
371
371
|
};
|
|
372
372
|
shadow: {
|
|
373
373
|
opaque: "shadow-black-heavy";
|
|
@@ -380,7 +380,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
380
380
|
};
|
|
381
381
|
secondary: {
|
|
382
382
|
_: "white";
|
|
383
|
-
hover: "
|
|
383
|
+
hover: "white-700";
|
|
384
384
|
};
|
|
385
385
|
danger: {
|
|
386
386
|
_: "red-0";
|
|
@@ -663,7 +663,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
663
663
|
text: {
|
|
664
664
|
_: "white";
|
|
665
665
|
accent: "beige";
|
|
666
|
-
disabled: "
|
|
666
|
+
disabled: "white-500";
|
|
667
667
|
secondary: "white-600";
|
|
668
668
|
};
|
|
669
669
|
feedback: {
|
|
@@ -676,9 +676,9 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
676
676
|
contrast: "black";
|
|
677
677
|
current: "navy-800";
|
|
678
678
|
primary: "navy-900";
|
|
679
|
-
selected: "
|
|
680
|
-
disabled: "
|
|
681
|
-
hover: "
|
|
679
|
+
selected: "white-100";
|
|
680
|
+
disabled: "white-200";
|
|
681
|
+
hover: "white-200";
|
|
682
682
|
};
|
|
683
683
|
shadow: {
|
|
684
684
|
opaque: "shadow-black-heavy";
|
|
@@ -691,7 +691,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
691
691
|
};
|
|
692
692
|
secondary: {
|
|
693
693
|
_: "white";
|
|
694
|
-
hover: "
|
|
694
|
+
hover: "white-700";
|
|
695
695
|
};
|
|
696
696
|
danger: {
|
|
697
697
|
_: "red-0";
|
|
@@ -829,7 +829,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
829
829
|
text: {
|
|
830
830
|
_: "white";
|
|
831
831
|
accent: "beige";
|
|
832
|
-
disabled: "
|
|
832
|
+
disabled: "white-500";
|
|
833
833
|
secondary: "white-600";
|
|
834
834
|
};
|
|
835
835
|
feedback: {
|
|
@@ -842,9 +842,9 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
842
842
|
contrast: "black";
|
|
843
843
|
current: "navy-800";
|
|
844
844
|
primary: "navy-900";
|
|
845
|
-
selected: "
|
|
846
|
-
disabled: "
|
|
847
|
-
hover: "
|
|
845
|
+
selected: "white-100";
|
|
846
|
+
disabled: "white-200";
|
|
847
|
+
hover: "white-200";
|
|
848
848
|
};
|
|
849
849
|
shadow: {
|
|
850
850
|
opaque: "shadow-black-heavy";
|
|
@@ -857,7 +857,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
857
857
|
};
|
|
858
858
|
secondary: {
|
|
859
859
|
_: "white";
|
|
860
|
-
hover: "
|
|
860
|
+
hover: "white-700";
|
|
861
861
|
};
|
|
862
862
|
danger: {
|
|
863
863
|
_: "red-0";
|
package/dist/variance/utils.d.ts
CHANGED
|
@@ -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" | "dir" | "id" | "property" | "translate" | "hidden" | "
|
|
27
|
+
shouldForwardProp: (prop: PropertyKey) => prop is "style" | "slot" | "title" | "children" | "dir" | "id" | "property" | "translate" | "hidden" | "className" | "prefix" | "lang" | "role" | "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" | "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.0.0-alpha.
|
|
4
|
+
"version": "16.0.0-alpha.714737.0",
|
|
5
5
|
"author": "Jake Hiller <jake@codecademy.com>",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b5bef971bef272026fadf73e00658ce31afe5bd8"
|
|
45
45
|
}
|