@instructure/ui-heading 11.7.5 → 11.7.6-snapshot-11

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.
@@ -10,28 +10,28 @@ declare class Heading extends Component<HeadingProps> {
10
10
  static displayName: string;
11
11
  static readonly componentId = "Heading";
12
12
  static allowedProps: readonly (keyof {
13
- aiVariant?: "stacked" | "horizontal" | "iconOnly";
13
+ aiVariant?: 'stacked' | 'horizontal' | 'iconOnly';
14
14
  children?: React.ReactNode;
15
- border?: "none" | "top" | "bottom";
16
- color?: "primary" | "secondary" | "primary-inverse" | "secondary-inverse" | "inherit" | "ai";
17
- level?: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6") | "reset";
15
+ border?: 'none' | 'top' | 'bottom';
16
+ color?: 'primary' | 'secondary' | 'primary-inverse' | 'secondary-inverse' | 'inherit' | 'ai';
17
+ level?: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6") | 'reset';
18
18
  as?: AsElementType;
19
19
  margin?: import("@instructure/emotion").Spacing;
20
20
  elementRef?: (element: Element | null) => void;
21
21
  renderIcon?: import("@instructure/shared-types").Renderable;
22
- variant?: "titlePageDesktop" | "titlePageMobile" | "titleSection" | "titleCardSection" | "titleModule" | "titleCardLarge" | "titleCardRegular" | "titleCardMini" | "label" | "labelInline";
22
+ variant?: 'titlePageDesktop' | 'titlePageMobile' | 'titleSection' | 'titleCardSection' | 'titleModule' | 'titleCardLarge' | 'titleCardRegular' | 'titleCardMini' | 'label' | 'labelInline';
23
23
  })[];
24
24
  static defaultProps: {
25
25
  readonly children: null;
26
- readonly border: "none";
27
- readonly color: "inherit";
26
+ readonly border: 'none';
27
+ readonly color: 'inherit';
28
28
  };
29
29
  ref: Element | null;
30
30
  handleRef: (el: Element | null) => void;
31
31
  checkProps(): void;
32
32
  componentDidMount(): void;
33
33
  componentDidUpdate(): void;
34
- renderContent(): string | number | boolean | Iterable<import("react").ReactNode> | import("@emotion/react/jsx-runtime").JSX.Element | null | undefined;
34
+ renderContent(): string | number | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
35
35
  getAriaLabel(): string | undefined;
36
36
  render(): import("@emotion/react/jsx-runtime").JSX.Element;
37
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Heading/v1/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAkBzD;;;;GAIG;AACH,cACM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,WAAW,SAAY;IAC9B,MAAM,CAAC,QAAQ,CAAC,WAAW,aAAY;IAEvC,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;MAIT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,UAAU;IASV,iBAAiB;IAKjB,kBAAkB;IAKlB,aAAa;IAsEb,YAAY;IAWZ,MAAM;CAgDP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Heading/v1/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAkBzD;;;;GAIG;AACH,cACM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,WAAW,SAAY;IAC9B,MAAM,CAAC,QAAQ,CAAC,WAAW,aAAY;IAEvC,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;iBACjB,QAAQ;iBACR,MAAM,EAAE,MAAM;iBACd,KAAK,EAAE,SAAS;MACR;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,UAAU,SAOT;IAED,iBAAiB,SAGhB;IAED,kBAAkB,SAGjB;IAED,aAAa,0IAmEZ;IAGD,YAAY,uBASX;IAED,MAAM,qDA+CL;CACF;eAEc,OAAO;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Heading/v1/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,YAAY,EAC5B,OAAO,YAAY,KAClB,YAwMF,CAAA;AACD,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Heading/v1/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,YAAY,SACrB,YAAY,KAClB,YAwMF,CAAA;eACc,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/Heading/v1/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,GAAI,OAAO,KAAK,KAAG,YAyD9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/Heading/v1/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,YAyD9C,CAAA;eAEc,sBAAsB"}
@@ -10,29 +10,29 @@ declare class Heading extends Component<HeadingProps> {
10
10
  static displayName: string;
11
11
  static readonly componentId = "Heading";
12
12
  static allowedProps: readonly (keyof {
13
- aiVariant?: "stacked" | "horizontal" | "iconOnly";
13
+ aiVariant?: 'stacked' | 'horizontal' | 'iconOnly';
14
14
  children?: React.ReactNode;
15
- border?: "none" | "top" | "bottom";
16
- color?: "primary" | "secondary" | "primary-inverse" | "secondary-inverse" | "inherit" | "primary-on" | "secondary-on";
17
- level?: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6") | "reset";
15
+ border?: 'none' | 'top' | 'bottom';
16
+ color?: 'primary' | 'secondary' | 'primary-inverse' | 'secondary-inverse' | 'inherit' | 'primary-on' | 'secondary-on';
17
+ level?: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6") | 'reset';
18
18
  as?: AsElementType;
19
19
  margin?: import("@instructure/emotion").Spacing;
20
20
  elementRef?: (element: Element | null) => void;
21
21
  renderIcon?: import("@instructure/shared-types").Renderable;
22
- variant?: "titlePageDesktop" | "titlePageMobile" | "titleSection" | "titleCardSection" | "titleModule" | "titleCardLarge" | "titleCardRegular" | "titleCardMini" | "label" | "labelInline";
22
+ variant?: 'titlePageDesktop' | 'titlePageMobile' | 'titleSection' | 'titleCardSection' | 'titleModule' | 'titleCardLarge' | 'titleCardRegular' | 'titleCardMini' | 'label' | 'labelInline';
23
23
  })[];
24
24
  static defaultProps: {
25
25
  readonly children: null;
26
- readonly border: "none";
27
- readonly color: "primary";
26
+ readonly border: 'none';
27
+ readonly color: 'primary';
28
28
  };
29
29
  ref: Element | null;
30
30
  handleRef: (el: Element | null) => void;
31
31
  checkProps(): void;
32
32
  componentDidMount(): void;
33
33
  componentDidUpdate(): void;
34
- getIconSize(forAIHorizontal?: boolean): "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
35
- renderContent(): string | number | boolean | Iterable<import("react").ReactNode> | import("@emotion/react/jsx-runtime").JSX.Element | null | undefined;
34
+ getIconSize(forAIHorizontal?: boolean): "2xl" | "lg" | "md" | "sm" | "xl" | "xs";
35
+ renderContent(): string | number | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
36
36
  getAriaLabel(): string | undefined;
37
37
  render(): import("@emotion/react/jsx-runtime").JSX.Element;
38
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Heading/v2/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAcjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AA0EzD;;;;GAIG;AACH,cACM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,WAAW,SAAY;IAC9B,MAAM,CAAC,QAAQ,CAAC,WAAW,aAAY;IAEvC,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;MAIT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,UAAU;IASV,iBAAiB;IAKjB,kBAAkB;IAKlB,WAAW,CAAC,eAAe,UAAQ;IA0BnC,aAAa;IA6Cb,YAAY;IAWZ,MAAM;CAgDP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Heading/v2/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAcjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AA0EzD;;;;GAIG;AACH,cACM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,WAAW,SAAY;IAC9B,MAAM,CAAC,QAAQ,CAAC,WAAW,aAAY;IAEvC,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;iBACjB,QAAQ;iBACR,MAAM,EAAE,MAAM;iBACd,KAAK,EAAE,SAAS;MACR;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,UAAU,SAOT;IAED,iBAAiB,SAGhB;IAED,kBAAkB,SAGjB;IAED,WAAW,CAAC,eAAe,UAAQ,4CAwBlC;IAED,aAAa,0IA0CZ;IAGD,YAAY,uBASX;IAED,MAAM,qDA+CL;CACF;eAEc,OAAO;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -9,6 +9,6 @@ import type { HeadingProps, HeadingStyle } from './props';
9
9
  * @param {Object} props the props of the component, the style is applied to
10
10
  * @return {Object} The final style object, which will be used in the component
11
11
  */
12
- declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes["Heading"]>, props: HeadingProps) => HeadingStyle;
12
+ declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes['Heading']>, props: HeadingProps) => HeadingStyle;
13
13
  export default generateStyle;
14
14
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Heading/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,EACxD,OAAO,YAAY,KAClB,YA+NF,CAAA;AACD,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Heading/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa,mBACD,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,SACjD,YAAY,KAClB,YA+NF,CAAA;eACc,aAAa"}