@codecademy/gamut-styles 17.10.0-alpha.4e9d26.0 → 17.10.0-alpha.4fbb62.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.
@@ -26,6 +26,30 @@ export declare const platformTheme: Record<"breakpoints", {
26
26
  md: string;
27
27
  lg: string;
28
28
  xl: string;
29
+ }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"breakpoints", {
30
+ c_base: string;
31
+ c_xs: string;
32
+ c_sm: string;
33
+ c_md: string;
34
+ c_lg: string;
35
+ c_xl: string;
36
+ xs: string;
37
+ sm: string;
38
+ md: string;
39
+ lg: string;
40
+ xl: string;
41
+ }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"breakpoints", {
42
+ c_base: string;
43
+ c_xs: string;
44
+ c_sm: string;
45
+ c_md: string;
46
+ c_lg: string;
47
+ c_xl: string;
48
+ xs: string;
49
+ sm: string;
50
+ md: string;
51
+ lg: string;
52
+ xl: string;
29
53
  }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"elements", Record<"elements", import("@codecademy/variance").KeyAsVariable<{
30
54
  readonly headerHeight: {
31
55
  readonly base: "4rem";
@@ -536,7 +560,7 @@ export declare const platformTheme: Record<"breakpoints", {
536
560
  }>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
537
561
  1: string;
538
562
  2: string;
539
- }, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
563
+ }, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
540
564
  readonly lightBeige: "#FFFBF8";
541
565
  readonly gold: "#8A7300";
542
566
  readonly teal: "#006D82";
@@ -1129,7 +1153,7 @@ export declare const platformTheme: Record<"breakpoints", {
1129
1153
  readonly "white-200": string;
1130
1154
  readonly "white-600": string;
1131
1155
  readonly "white-700": string;
1132
- }, "-"> | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-disabled" | "text-accent" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | import("@codecademy/variance").Path<{
1156
+ }, "-"> | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-accent" | "text-disabled" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | import("@codecademy/variance").Path<{
1133
1157
  readonly lightBeige: "#FFFBF8";
1134
1158
  readonly gold: "#8A7300";
1135
1159
  readonly teal: "#006D82";
@@ -1151,7 +1175,7 @@ export declare const platformTheme: Record<"breakpoints", {
1151
1175
  readonly "teal-500": "#006D82";
1152
1176
  readonly "purple-300": "#B3CCFF";
1153
1177
  }, "-">) => string;
1154
- }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1178
+ }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1155
1179
  export type PlatformThemeShape = typeof platformTheme;
1156
1180
  export interface PlatformTheme extends PlatformThemeShape {
1157
1181
  }
@@ -75,4 +75,4 @@ export const platformTheme = createTheme(coreTheme).addColors(platformPalette).a
75
75
  }
76
76
  }
77
77
  }
78
- }).build();
78
+ }).addName('platform').build();
@@ -10,10 +10,7 @@ import get from 'lodash/get';
10
10
  */
11
11
 
12
12
  export function themed(path) {
13
- return _ref => {
14
- let {
15
- theme
16
- } = _ref;
17
- return get(theme, path);
18
- };
13
+ return ({
14
+ theme
15
+ }) => get(theme, path);
19
16
  }
@@ -0,0 +1,33 @@
1
+ import { Theme } from '@emotion/react';
2
+ import * as React from 'react';
3
+ import { webFonts } from '../remoteAssets/fonts';
4
+ export interface FontConfig {
5
+ filePath: string;
6
+ extensions: readonly string[];
7
+ name: string;
8
+ style?: React.CSSProperties['fontStyle'];
9
+ weight?: React.CSSProperties['fontWeight'];
10
+ }
11
+ type ThemeName = keyof typeof webFonts;
12
+ export type NamedTheme = Theme & {
13
+ name?: ThemeName;
14
+ };
15
+ /**
16
+ * Retrieves font configurations based on the provided theme name.
17
+ *
18
+ * Returns the appropriate font configuration array for the given theme.
19
+ * If no theme name is provided or the theme name is not recognized,
20
+ * returns the core fonts as a fallback.
21
+ *
22
+ * @param themeName - The name of the theme to get fonts for, or undefined
23
+ * @returns A readonly array of FontConfig objects for the specified theme
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const fonts = getFonts('percipio'); // Returns percipio theme fonts
28
+ * const coreFonts = getFonts(undefined); // Returns core fonts
29
+ * const invalidFonts = getFonts('invalid'); // Returns core fonts as fallback
30
+ * ```
31
+ */
32
+ export declare const getFonts: (themeName: string | undefined) => readonly FontConfig[];
33
+ export {};
@@ -0,0 +1,27 @@
1
+ import { webFonts } from '../remoteAssets/fonts';
2
+ const isThemeName = name => {
3
+ return name in webFonts;
4
+ };
5
+ /**
6
+ * Retrieves font configurations based on the provided theme name.
7
+ *
8
+ * Returns the appropriate font configuration array for the given theme.
9
+ * If no theme name is provided or the theme name is not recognized,
10
+ * returns the core fonts as a fallback.
11
+ *
12
+ * @param themeName - The name of the theme to get fonts for, or undefined
13
+ * @returns A readonly array of FontConfig objects for the specified theme
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const fonts = getFonts('percipio'); // Returns percipio theme fonts
18
+ * const coreFonts = getFonts(undefined); // Returns core fonts
19
+ * const invalidFonts = getFonts('invalid'); // Returns core fonts as fallback
20
+ * ```
21
+ */
22
+ export const getFonts = themeName => {
23
+ if (!themeName || !isThemeName(themeName)) {
24
+ return webFonts.core;
25
+ }
26
+ return webFonts[themeName];
27
+ };
@@ -316,24 +316,12 @@ export declare const percipioColors: {
316
316
  readonly percipioTextSecondary: "rgba(34, 35, 37, 0.75)";
317
317
  readonly percipioTextDisabled: "#AFB6C2";
318
318
  readonly percipioTextAccent: "#222325";
319
- readonly percipioBgDefault: "#FFFFFF";
320
319
  readonly percipioBgPrimary: "#FAFBFC";
321
- readonly percipioBgContrast: "#FFFFFF";
322
- readonly percipioBgHover: "rgba(16, 22, 47, 0.12)";
323
- readonly percipioBgSelected: "rgba(16, 22, 47, 0.04)";
324
- readonly percipioBgDisabled: "rgba(16, 22, 47, 0.12)";
325
320
  readonly percipioBgSuccess: "#EEF7F3";
326
321
  readonly percipioBgWarning: "#FFF7E0";
327
322
  readonly percipioBgError: "#FFF1F5";
328
- readonly percipioBorderPrimary: "rgba(16, 22, 47, 0.47)";
329
- readonly percipioBorderSecondary: "rgba(16, 22, 47, 0.12)";
330
- readonly percipioBorderTertiary: "#10162F";
331
- readonly percipioBorderDisabled: "rgba(16, 22, 47, 0.28)";
332
- readonly percipioShadowPrimary: "rgba(16, 22, 47, 0.12)";
333
- readonly percipioShadowSecondary: "rgba(16, 22, 47, 0.47)";
334
323
  readonly percipioActionPrimary: "#0073C4";
335
324
  readonly percipioActionPrimaryHover: "#141C36";
336
- readonly percipioActionPrimaryInverse: "#FFFFFF";
337
325
  readonly percipioActionSecondary: "#6A6E75";
338
326
  readonly percipioActionSecondaryHover: "rgba(106, 110, 117, 0.86)";
339
327
  readonly percipioActionDanger: "#B83C3C";
@@ -347,24 +335,12 @@ export declare const percipioPalette: {
347
335
  percipioTextSecondary: "rgba(34, 35, 37, 0.75)";
348
336
  percipioTextDisabled: "#AFB6C2";
349
337
  percipioTextAccent: "#222325";
350
- percipioBgDefault: "#FFFFFF";
351
338
  percipioBgPrimary: "#FAFBFC";
352
- percipioBgContrast: "#FFFFFF";
353
- percipioBgHover: "rgba(16, 22, 47, 0.12)";
354
- percipioBgSelected: "rgba(16, 22, 47, 0.04)";
355
- percipioBgDisabled: "rgba(16, 22, 47, 0.12)";
356
339
  percipioBgSuccess: "#EEF7F3";
357
340
  percipioBgWarning: "#FFF7E0";
358
341
  percipioBgError: "#FFF1F5";
359
- percipioBorderPrimary: "rgba(16, 22, 47, 0.47)";
360
- percipioBorderSecondary: "rgba(16, 22, 47, 0.12)";
361
- percipioBorderTertiary: "#10162F";
362
- percipioBorderDisabled: "rgba(16, 22, 47, 0.28)";
363
- percipioShadowPrimary: "rgba(16, 22, 47, 0.12)";
364
- percipioShadowSecondary: "rgba(16, 22, 47, 0.47)";
365
342
  percipioActionPrimary: "#0073C4";
366
343
  percipioActionPrimaryHover: "#141C36";
367
- percipioActionPrimaryInverse: "#FFFFFF";
368
344
  percipioActionSecondary: "#6A6E75";
369
345
  percipioActionSecondaryHover: "rgba(106, 110, 117, 0.86)";
370
346
  percipioActionDanger: "#B83C3C";
@@ -180,27 +180,13 @@ export const percipioColors = {
180
180
  percipioTextDisabled: '#AFB6C2',
181
181
  percipioTextAccent: '#222325',
182
182
  // Background colors
183
- percipioBgDefault: '#FFFFFF',
184
183
  percipioBgPrimary: '#FAFBFC',
185
- percipioBgContrast: '#FFFFFF',
186
- percipioBgHover: 'rgba(16, 22, 47, 0.12)',
187
- percipioBgSelected: 'rgba(16, 22, 47, 0.04)',
188
- percipioBgDisabled: 'rgba(16, 22, 47, 0.12)',
189
184
  percipioBgSuccess: '#EEF7F3',
190
185
  percipioBgWarning: '#FFF7E0',
191
186
  percipioBgError: '#FFF1F5',
192
- // Border colors
193
- percipioBorderPrimary: 'rgba(16, 22, 47, 0.47)',
194
- percipioBorderSecondary: 'rgba(16, 22, 47, 0.12)',
195
- percipioBorderTertiary: '#10162F',
196
- percipioBorderDisabled: 'rgba(16, 22, 47, 0.28)',
197
- // Shadow colors
198
- percipioShadowPrimary: 'rgba(16, 22, 47, 0.12)',
199
- percipioShadowSecondary: 'rgba(16, 22, 47, 0.47)',
200
187
  // Action colors
201
188
  percipioActionPrimary: '#0073C4',
202
189
  percipioActionPrimaryHover: '#141C36',
203
- percipioActionPrimaryInverse: '#FFFFFF',
204
190
  percipioActionSecondary: '#6A6E75',
205
191
  percipioActionSecondaryHover: 'rgba(106, 110, 117, 0.86)',
206
192
  percipioActionDanger: '#B83C3C',
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { ThemeProps } from '@codecademy/variance';
3
- declare const allPropnames: ["mode", "variant", "p" | "fontSize" | "fontFamily" | "lineHeight" | "fontWeight" | "color" | "background" | "border" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "containerType" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "listStyleImage" | "listStylePosition" | "listStyleType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "backgroundPosition" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "inset" | "listStyle" | "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"];
3
+ declare const allPropnames: ["mode", "variant", "fontStyle" | "fontWeight" | "fontSize" | "fontFamily" | "lineHeight" | "color" | "background" | "border" | "p" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "containerType" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "listStyleImage" | "listStylePosition" | "listStyleType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "backgroundPosition" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "inset" | "listStyle" | "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
4
  export type SystemPropNames = (typeof allPropnames)[number];
5
5
  export type ElementOrProps = keyof JSX.IntrinsicElements | ThemeProps;
6
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
- shouldForwardProp: (prop: PropertyKey) => prop is Exclude<El extends keyof JSX.IntrinsicElements ? keyof JSX.IntrinsicElements[El] : keyof Element, "p" | "fontSize" | "fontFamily" | "lineHeight" | "fontWeight" | "color" | "background" | "border" | "mode" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "containerType" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "listStyleImage" | "listStylePosition" | "listStyleType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "backgroundPosition" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "inset" | "listStyle" | "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>;
8
+ shouldForwardProp: (prop: PropertyKey) => prop is Exclude<El extends keyof JSX.IntrinsicElements ? keyof JSX.IntrinsicElements[El] : keyof Element, "fontStyle" | "fontWeight" | "fontSize" | "fontFamily" | "lineHeight" | "color" | "background" | "border" | "mode" | "p" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "containerType" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "listStyleImage" | "listStylePosition" | "listStyleType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "backgroundPosition" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "inset" | "listStyle" | "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
  };
10
10
  /**
11
11
  * @description
@@ -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" | "rel" | "slot" | "title" | "rev" | "id" | "nonce" | "property" | "content" | "translate" | "hidden" | "children" | "className" | "prefix" | "role" | "suppressHydrationWarning" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-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-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "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>;
27
+ shouldForwardProp: (prop: PropertyKey) => prop is "style" | "property" | "rel" | "slot" | "title" | "rev" | "id" | "nonce" | "content" | "translate" | "children" | "className" | "prefix" | "role" | "suppressHydrationWarning" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-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-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "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 {};
@@ -7,8 +7,7 @@ const allPropnames = ['mode', 'variant', ...Object.keys(allProps)];
7
7
  * props like `color` and `width`.
8
8
  */
9
9
  const validPropnames = allPropnames.filter(isPropValid);
10
- export function createStyledOptions() {
11
- let additional = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
10
+ export function createStyledOptions(additional = []) {
12
11
  // Cache possible valid prop names to prevent searching a larger list.
13
12
  const additionalExclusions = additional.filter(isPropValid);
14
13
  return {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@codecademy/gamut-styles",
3
3
  "description": "Styleguide & Component library for codecademy.com",
4
- "version": "17.10.0-alpha.4e9d26.0",
4
+ "version": "17.10.0-alpha.4fbb62.0",
5
5
  "author": "Jake Hiller <jake@codecademy.com>",
6
6
  "dependencies": {
7
- "@codecademy/variance": "0.24.0",
7
+ "@codecademy/variance": "0.24.1-alpha.4fbb62.0",
8
8
  "@emotion/is-prop-valid": "^1.1.0",
9
9
  "polished": "^4.1.2"
10
10
  },
@@ -34,5 +34,5 @@
34
34
  "scripts": {
35
35
  "build": "nx build @codecademy/gamut-styles"
36
36
  },
37
- "gitHead": "06f20422fc4e5b287dd795d6828b9eb981975d8a"
37
+ "gitHead": "48bc8e3064b6108f6f4c35641a24b1ccab1a13fb"
38
38
  }