@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.
- package/CHANGELOG.md +8 -0
- package/package.json +10 -10
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Heading/v1/index.d.ts +8 -8
- package/types/Heading/v1/index.d.ts.map +1 -1
- package/types/Heading/v1/styles.d.ts.map +1 -1
- package/types/Heading/v1/theme.d.ts.map +1 -1
- package/types/Heading/v2/index.d.ts +9 -9
- package/types/Heading/v2/index.d.ts.map +1 -1
- package/types/Heading/v2/styles.d.ts +1 -1
- package/types/Heading/v2/styles.d.ts.map +1 -1
|
@@ -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?:
|
|
13
|
+
aiVariant?: 'stacked' | 'horizontal' | 'iconOnly';
|
|
14
14
|
children?: React.ReactNode;
|
|
15
|
-
border?:
|
|
16
|
-
color?:
|
|
17
|
-
level?: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6") |
|
|
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?:
|
|
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:
|
|
27
|
-
readonly color:
|
|
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 |
|
|
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
|
|
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,
|
|
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,
|
|
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?:
|
|
13
|
+
aiVariant?: 'stacked' | 'horizontal' | 'iconOnly';
|
|
14
14
|
children?: React.ReactNode;
|
|
15
|
-
border?:
|
|
16
|
-
color?:
|
|
17
|
-
level?: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6") |
|
|
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?:
|
|
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:
|
|
27
|
-
readonly color:
|
|
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): "
|
|
35
|
-
renderContent(): string | number | boolean |
|
|
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
|
|
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[
|
|
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,
|
|
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"}
|