@instructure/ui-heading 10.26.1 → 11.0.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/CHANGELOG.md +23 -2
- package/es/Heading/index.js +6 -6
- package/es/Heading/props.js +1 -15
- package/lib/Heading/index.js +5 -5
- package/lib/Heading/props.js +1 -16
- package/package.json +12 -15
- package/src/Heading/index.tsx +2 -4
- package/src/Heading/props.ts +4 -40
- package/tsconfig.build.json +0 -6
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Heading/index.d.ts +0 -12
- package/types/Heading/index.d.ts.map +1 -1
- package/types/Heading/props.d.ts +5 -5
- package/types/Heading/props.d.ts.map +1 -1
package/types/Heading/index.d.ts
CHANGED
|
@@ -8,18 +8,6 @@ category: components
|
|
|
8
8
|
**/
|
|
9
9
|
declare class Heading extends Component<HeadingProps> {
|
|
10
10
|
static readonly componentId = "Heading";
|
|
11
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
|
-
aiVariant?: "stacked" | "horizontal" | "iconOnly";
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
border?: "none" | "top" | "bottom";
|
|
15
|
-
color?: "primary" | "secondary" | "primary-inverse" | "secondary-inverse" | "inherit" | "ai";
|
|
16
|
-
level?: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6") | "reset";
|
|
17
|
-
as?: AsElementType;
|
|
18
|
-
margin?: import("@instructure/emotion").Spacing;
|
|
19
|
-
elementRef?: (element: Element | null) => void;
|
|
20
|
-
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
21
|
-
variant?: "titlePageDesktop" | "titlePageMobile" | "titleSection" | "titleCardSection" | "titleModule" | "titleCardLarge" | "titleCardRegular" | "titleCardMini" | "label" | "labelInline";
|
|
22
|
-
}>;
|
|
23
11
|
static allowedProps: readonly (keyof {
|
|
24
12
|
aiVariant?: "stacked" | "horizontal" | "iconOnly";
|
|
25
13
|
children?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Heading/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Heading/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,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"}
|
package/types/Heading/props.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AsElementType, HeadingTheme, OtherHTMLAttributes, Renderable } from '@instructure/shared-types';
|
|
2
3
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
type HeadingLevel<U extends keyof JSX.IntrinsicElements> = U;
|
|
4
|
+
type HeadingLevel<U extends keyof React.JSX.IntrinsicElements> = U;
|
|
4
5
|
type HeadingOwnProps = {
|
|
5
6
|
/**
|
|
6
7
|
* transforms heading into an `ai` variant
|
|
@@ -19,7 +20,7 @@ type HeadingOwnProps = {
|
|
|
19
20
|
*/
|
|
20
21
|
color?: 'primary' | 'secondary' | 'primary-inverse' | 'secondary-inverse' | 'inherit' | 'ai';
|
|
21
22
|
/**
|
|
22
|
-
* The level of the heading in the DOM: h1 is largest;
|
|
23
|
+
* The level of the heading in the DOM: h1 is largest; h6 is smallest.
|
|
23
24
|
*/
|
|
24
25
|
level?: HeadingLevel<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'> | 'reset';
|
|
25
26
|
/**
|
|
@@ -55,8 +56,7 @@ type PropKeys = keyof HeadingOwnProps;
|
|
|
55
56
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
56
57
|
type HeadingProps = HeadingOwnProps & WithStyleProps<HeadingTheme, HeadingStyle> & OtherHTMLAttributes<HeadingOwnProps>;
|
|
57
58
|
type HeadingStyle = ComponentStyle<'heading' | 'igniteAI' | 'igniteAIStacked' | 'withIcon'>;
|
|
58
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
59
59
|
declare const allowedProps: AllowedPropKeys;
|
|
60
60
|
export type { HeadingProps, HeadingStyle };
|
|
61
|
-
export {
|
|
61
|
+
export { allowedProps };
|
|
62
62
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Heading/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Heading/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACX,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAE7B,KAAK,YAAY,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,GAAG,CAAC,iBAAiB,IAAI,CAAC,CAA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