@instructure/ui-breadcrumb 10.26.1-snapshot-2 → 10.26.1
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 +2 -23
- package/es/Breadcrumb/BreadcrumbLink/index.js +5 -9
- package/es/Breadcrumb/BreadcrumbLink/props.js +12 -1
- package/es/Breadcrumb/index.js +6 -6
- package/es/Breadcrumb/props.js +10 -1
- package/lib/Breadcrumb/BreadcrumbLink/index.js +4 -10
- package/lib/Breadcrumb/BreadcrumbLink/props.js +13 -1
- package/lib/Breadcrumb/index.js +5 -5
- package/lib/Breadcrumb/props.js +11 -1
- package/package.json +19 -16
- package/src/Breadcrumb/BreadcrumbLink/index.tsx +4 -2
- package/src/Breadcrumb/BreadcrumbLink/props.ts +16 -1
- package/src/Breadcrumb/index.tsx +7 -12
- package/src/Breadcrumb/props.ts +17 -2
- package/tsconfig.build.json +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Breadcrumb/BreadcrumbLink/index.d.ts +10 -0
- package/types/Breadcrumb/BreadcrumbLink/index.d.ts.map +1 -1
- package/types/Breadcrumb/BreadcrumbLink/props.d.ts +3 -2
- package/types/Breadcrumb/BreadcrumbLink/props.d.ts.map +1 -1
- package/types/Breadcrumb/index.d.ts +8 -2
- package/types/Breadcrumb/index.d.ts.map +1 -1
- package/types/Breadcrumb/props.d.ts +3 -2
- package/types/Breadcrumb/props.d.ts.map +1 -1
|
@@ -8,6 +8,16 @@ id: Breadcrumb.Link
|
|
|
8
8
|
**/
|
|
9
9
|
declare class BreadcrumbLink extends Component<BreadcrumbLinkProps, BreadcrumbLinkState> {
|
|
10
10
|
static readonly componentId = "Breadcrumb.Link";
|
|
11
|
+
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
href?: string;
|
|
14
|
+
onClick?: (event: React.MouseEvent<import("@instructure/ui-view").ViewOwnProps, MouseEvent>) => void;
|
|
15
|
+
onMouseEnter?: (event: React.MouseEvent<import("@instructure/ui-view").ViewOwnProps, MouseEvent>) => void;
|
|
16
|
+
size?: "small" | "medium" | "large";
|
|
17
|
+
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
18
|
+
iconPlacement?: "start" | "end";
|
|
19
|
+
isCurrentPage?: boolean;
|
|
20
|
+
}>;
|
|
11
21
|
static allowedProps: readonly (keyof {
|
|
12
22
|
children: React.ReactNode;
|
|
13
23
|
href?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Breadcrumb/BreadcrumbLink/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Breadcrumb/BreadcrumbLink/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAEvE;;;;;GAKG;AAEH,cACM,cAAe,SAAQ,SAAS,CACpC,mBAAmB,EACnB,mBAAmB,CACpB;IACC,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,SAAS;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY,KAAK;IAExB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAE9B;gBACW,KAAK,EAAE,mBAAmB;IAOtC,gBAAgB,CAAC,WAAW,EAAE,OAAO;IAMrC,MAAM;CAgDP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PickPropsWithExceptions, OtherHTMLAttributes, Renderable } from '@instructure/shared-types';
|
|
2
|
+
import type { PickPropsWithExceptions, OtherHTMLAttributes, PropValidators, Renderable } from '@instructure/shared-types';
|
|
3
3
|
import type { ViewOwnProps } from '@instructure/ui-view';
|
|
4
4
|
import type { LinkProps } from '@instructure/ui-link';
|
|
5
5
|
type BreadcrumbLinkOwnProps = {
|
|
@@ -40,10 +40,11 @@ type BreadcrumbLinkOwnProps = {
|
|
|
40
40
|
type PropKeys = keyof BreadcrumbLinkOwnProps;
|
|
41
41
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
42
42
|
type BreadcrumbLinkProps = PickPropsWithExceptions<LinkProps, 'children' | 'href' | 'onClick' | 'renderIcon' | 'iconPlacement' | 'isWithinText' | 'elementRef'> & BreadcrumbLinkOwnProps & OtherHTMLAttributes<BreadcrumbLinkOwnProps & LinkProps>;
|
|
43
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
43
44
|
declare const allowedProps: AllowedPropKeys;
|
|
44
45
|
type BreadcrumbLinkState = {
|
|
45
46
|
isTruncated: boolean;
|
|
46
47
|
};
|
|
47
48
|
export type { BreadcrumbLinkProps, BreadcrumbLinkState };
|
|
48
|
-
export { allowedProps };
|
|
49
|
+
export { propTypes, allowedProps };
|
|
49
50
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Breadcrumb/BreadcrumbLink/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Breadcrumb/BreadcrumbLink/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,cAAc,EACd,UAAU,EACX,MAAM,2BAA2B,CAAA;AACl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AAmB,EAAE,mBAAmB,EAAE,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
import { BreadcrumbLink } from './BreadcrumbLink';
|
|
3
3
|
import type { BreadcrumbProps } from './props';
|
|
4
4
|
/**
|
|
@@ -8,6 +8,12 @@ category: components
|
|
|
8
8
|
**/
|
|
9
9
|
declare class Breadcrumb extends Component<BreadcrumbProps> {
|
|
10
10
|
static readonly componentId = "Breadcrumb";
|
|
11
|
+
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
label: string;
|
|
14
|
+
size?: "small" | "medium" | "large";
|
|
15
|
+
margin?: import("@instructure/emotion").Spacing;
|
|
16
|
+
}>;
|
|
11
17
|
static allowedProps: readonly (keyof {
|
|
12
18
|
children?: React.ReactNode;
|
|
13
19
|
label: string;
|
|
@@ -20,7 +26,7 @@ declare class Breadcrumb extends Component<BreadcrumbProps> {
|
|
|
20
26
|
};
|
|
21
27
|
ref: Element | null;
|
|
22
28
|
handleRef: (el: Element | null) => void;
|
|
23
|
-
addAriaCurrent: (child: React.ReactNode) => ReactElement<{
|
|
29
|
+
addAriaCurrent: (child: React.ReactNode) => import("react").ReactElement<{
|
|
24
30
|
'aria-current'?: string;
|
|
25
31
|
}, string | import("react").JSXElementConstructor<any>>;
|
|
26
32
|
componentDidMount(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Breadcrumb/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Breadcrumb/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAA0C,SAAS,EAAE,MAAM,OAAO,CAAA;AAOzE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAMjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;;;GAIG;AAEH,cAEM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,SAAS;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;MAGlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAE9B;IAED,cAAc,GAAI,OAAO,KAAK,CAAC,SAAS;yBAEW,MAAM;4DAMxD;IAED,iBAAiB;IAGjB,kBAAkB;IAIlB,MAAM,CAAC,IAAI,wBAAiB;IAE5B,cAAc;IAoCd,MAAM;CAeP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
2
|
-
import type { BreadcrumbTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { BreadcrumbTheme, PropValidators } from '@instructure/shared-types';
|
|
3
3
|
type BreadcrumbOwnProps = {
|
|
4
4
|
/**
|
|
5
5
|
* children of type Breadcrumb.Link
|
|
@@ -24,7 +24,8 @@ type PropKeys = keyof BreadcrumbOwnProps;
|
|
|
24
24
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
25
25
|
type BreadcrumbProps = BreadcrumbOwnProps & WithStyleProps<BreadcrumbTheme, BreadcrumbStyle>;
|
|
26
26
|
type BreadcrumbStyle = ComponentStyle<'breadcrumb' | 'crumb' | 'separator'>;
|
|
27
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
27
28
|
declare const allowedProps: AllowedPropKeys;
|
|
28
29
|
export type { BreadcrumbProps, BreadcrumbStyle };
|
|
29
|
-
export { allowedProps };
|
|
30
|
+
export { propTypes, allowedProps };
|
|
30
31
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Breadcrumb/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Breadcrumb/props.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEhF,KAAK,kBAAkB,GAAG;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,eAAe,GAAG,kBAAkB,GACvC,cAAc,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;AAElD,KAAK,eAAe,GAAG,cAAc,CAAC,YAAY,GAAG,OAAO,GAAG,WAAW,CAAC,CAAA;AAE3E,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAKvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAAyD,CAAA;AAE7E,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|