@instructure/ui-breadcrumb 8.9.2-snapshot.1 → 8.9.2-snapshot.12
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/es/Breadcrumb/BreadcrumbLink/index.js +1 -1
- package/lib/Breadcrumb/BreadcrumbLink/index.js +1 -1
- package/package.json +16 -16
- package/src/Breadcrumb/BreadcrumbLink/index.tsx +1 -1
- package/src/Breadcrumb/props.ts +11 -4
- package/src/Breadcrumb/styles.ts +3 -3
- package/types/Breadcrumb/props.d.ts +5 -4
- package/types/Breadcrumb/props.d.ts.map +1 -1
- package/types/Breadcrumb/styles.d.ts +3 -76
- package/types/Breadcrumb/styles.d.ts.map +1 -1
|
@@ -44,7 +44,7 @@ let BreadcrumbLink = (_dec = testable(), _dec(_class = (_temp = _class2 = class
|
|
|
44
44
|
renderIcon = _this$props.renderIcon,
|
|
45
45
|
iconPlacement = _this$props.iconPlacement,
|
|
46
46
|
onClick = _this$props.onClick;
|
|
47
|
-
const props = omitProps(this.props, BreadcrumbLink.
|
|
47
|
+
const props = omitProps(this.props, BreadcrumbLink.allowedProps);
|
|
48
48
|
return /*#__PURE__*/React.createElement(Link, Object.assign({
|
|
49
49
|
as: this.element
|
|
50
50
|
}, props, {
|
|
@@ -35,7 +35,7 @@ let BreadcrumbLink = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _
|
|
|
35
35
|
renderIcon = _this$props.renderIcon,
|
|
36
36
|
iconPlacement = _this$props.iconPlacement,
|
|
37
37
|
onClick = _this$props.onClick;
|
|
38
|
-
const props = (0, _omitProps.omitProps)(this.props, BreadcrumbLink.
|
|
38
|
+
const props = (0, _omitProps.omitProps)(this.props, BreadcrumbLink.allowedProps);
|
|
39
39
|
return /*#__PURE__*/_react.default.createElement(_Link.Link, Object.assign({
|
|
40
40
|
as: this.element
|
|
41
41
|
}, props, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-breadcrumb",
|
|
3
|
-
"version": "8.9.2-snapshot.
|
|
3
|
+
"version": "8.9.2-snapshot.12+6231ada93",
|
|
4
4
|
"description": "A breadcrumb component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.9.2-snapshot.
|
|
28
|
-
"@instructure/ui-test-locator": "8.9.2-snapshot.
|
|
29
|
-
"@instructure/ui-test-utils": "8.9.2-snapshot.
|
|
30
|
-
"@instructure/ui-themes": "8.9.2-snapshot.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.9.2-snapshot.12+6231ada93",
|
|
28
|
+
"@instructure/ui-test-locator": "8.9.2-snapshot.12+6231ada93",
|
|
29
|
+
"@instructure/ui-test-utils": "8.9.2-snapshot.12+6231ada93",
|
|
30
|
+
"@instructure/ui-themes": "8.9.2-snapshot.12+6231ada93"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/emotion": "8.9.2-snapshot.
|
|
35
|
-
"@instructure/shared-types": "8.9.2-snapshot.
|
|
36
|
-
"@instructure/ui-icons": "8.9.2-snapshot.
|
|
37
|
-
"@instructure/ui-link": "8.9.2-snapshot.
|
|
38
|
-
"@instructure/ui-prop-types": "8.9.2-snapshot.
|
|
39
|
-
"@instructure/ui-react-utils": "8.9.2-snapshot.
|
|
40
|
-
"@instructure/ui-testable": "8.9.2-snapshot.
|
|
41
|
-
"@instructure/ui-truncate-text": "8.9.2-snapshot.
|
|
42
|
-
"@instructure/ui-utils": "8.9.2-snapshot.
|
|
43
|
-
"@instructure/ui-view": "8.9.2-snapshot.
|
|
34
|
+
"@instructure/emotion": "8.9.2-snapshot.12+6231ada93",
|
|
35
|
+
"@instructure/shared-types": "8.9.2-snapshot.12+6231ada93",
|
|
36
|
+
"@instructure/ui-icons": "8.9.2-snapshot.12+6231ada93",
|
|
37
|
+
"@instructure/ui-link": "8.9.2-snapshot.12+6231ada93",
|
|
38
|
+
"@instructure/ui-prop-types": "8.9.2-snapshot.12+6231ada93",
|
|
39
|
+
"@instructure/ui-react-utils": "8.9.2-snapshot.12+6231ada93",
|
|
40
|
+
"@instructure/ui-testable": "8.9.2-snapshot.12+6231ada93",
|
|
41
|
+
"@instructure/ui-truncate-text": "8.9.2-snapshot.12+6231ada93",
|
|
42
|
+
"@instructure/ui-utils": "8.9.2-snapshot.12+6231ada93",
|
|
43
|
+
"@instructure/ui-view": "8.9.2-snapshot.12+6231ada93",
|
|
44
44
|
"prop-types": "^15"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"sideEffects": false,
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "6231ada93bd4299d640b5d39d7e44b0f54852b2a"
|
|
54
54
|
}
|
|
@@ -50,7 +50,7 @@ class BreadcrumbLink extends Component<BreadcrumbLinkProps> {
|
|
|
50
50
|
render() {
|
|
51
51
|
const { children, href, renderIcon, iconPlacement, onClick } = this.props
|
|
52
52
|
|
|
53
|
-
const props = omitProps(this.props, BreadcrumbLink.
|
|
53
|
+
const props = omitProps(this.props, BreadcrumbLink.allowedProps)
|
|
54
54
|
|
|
55
55
|
return (
|
|
56
56
|
<Link
|
package/src/Breadcrumb/props.ts
CHANGED
|
@@ -29,8 +29,12 @@ import { ThemeablePropTypes } from '@instructure/emotion'
|
|
|
29
29
|
|
|
30
30
|
import { BreadcrumbLink } from './BreadcrumbLink'
|
|
31
31
|
|
|
32
|
-
import type {
|
|
33
|
-
|
|
32
|
+
import type {
|
|
33
|
+
Spacing,
|
|
34
|
+
WithStyleProps,
|
|
35
|
+
ComponentStyle
|
|
36
|
+
} from '@instructure/emotion'
|
|
37
|
+
import type { BreadcrumbTheme, PropValidators } from '@instructure/shared-types'
|
|
34
38
|
|
|
35
39
|
type BreadcrumbOwnProps = {
|
|
36
40
|
children?: React.ReactNode // TODO: oneOf([BreadcrumbLink])
|
|
@@ -43,7 +47,10 @@ type PropKeys = keyof BreadcrumbOwnProps
|
|
|
43
47
|
|
|
44
48
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
45
49
|
|
|
46
|
-
type BreadcrumbProps = BreadcrumbOwnProps &
|
|
50
|
+
type BreadcrumbProps = BreadcrumbOwnProps &
|
|
51
|
+
WithStyleProps<BreadcrumbTheme, BreadcrumbStyle>
|
|
52
|
+
|
|
53
|
+
type BreadcrumbStyle = ComponentStyle<'breadcrumb' | 'crumb' | 'separator'>
|
|
47
54
|
|
|
48
55
|
const propTypes: PropValidators<PropKeys> = {
|
|
49
56
|
/**
|
|
@@ -68,5 +75,5 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
68
75
|
|
|
69
76
|
const allowedProps: AllowedPropKeys = ['children', 'label', 'margin', 'size']
|
|
70
77
|
|
|
71
|
-
export type { BreadcrumbProps }
|
|
78
|
+
export type { BreadcrumbProps, BreadcrumbStyle }
|
|
72
79
|
export { propTypes, allowedProps }
|
package/src/Breadcrumb/styles.ts
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { BreadcrumbTheme } from '@instructure/shared-types'
|
|
26
|
-
import { BreadcrumbProps } from './props'
|
|
25
|
+
import type { BreadcrumbTheme } from '@instructure/shared-types'
|
|
26
|
+
import type { BreadcrumbProps, BreadcrumbStyle } from './props'
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* ---
|
|
@@ -38,7 +38,7 @@ import { BreadcrumbProps } from './props'
|
|
|
38
38
|
const generateStyle = (
|
|
39
39
|
componentTheme: BreadcrumbTheme,
|
|
40
40
|
props: BreadcrumbProps
|
|
41
|
-
) => {
|
|
41
|
+
): BreadcrumbStyle => {
|
|
42
42
|
const { size } = props
|
|
43
43
|
|
|
44
44
|
const crumbSizeVariants = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
3
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
2
|
+
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
+
import type { BreadcrumbTheme, PropValidators } from '@instructure/shared-types';
|
|
4
4
|
declare type BreadcrumbOwnProps = {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
label: string;
|
|
@@ -9,9 +9,10 @@ declare type BreadcrumbOwnProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare type PropKeys = keyof BreadcrumbOwnProps;
|
|
11
11
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
12
|
-
declare type BreadcrumbProps = BreadcrumbOwnProps & WithStyleProps
|
|
12
|
+
declare type BreadcrumbProps = BreadcrumbOwnProps & WithStyleProps<BreadcrumbTheme, BreadcrumbStyle>;
|
|
13
|
+
declare type BreadcrumbStyle = ComponentStyle<'breadcrumb' | 'crumb' | 'separator'>;
|
|
13
14
|
declare const propTypes: PropValidators<PropKeys>;
|
|
14
15
|
declare const allowedProps: AllowedPropKeys;
|
|
15
|
-
export type { BreadcrumbProps };
|
|
16
|
+
export type { BreadcrumbProps, BreadcrumbStyle };
|
|
16
17
|
export { propTypes, allowedProps };
|
|
17
18
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Breadcrumb/props.ts"],"names":[],"mappings":";AA+BA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Breadcrumb/props.ts"],"names":[],"mappings":";AA+BA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEhF,aAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,eAAe,GAAG,kBAAkB,GACvC,cAAc,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;AAElD,aAAK,eAAe,GAAG,cAAc,CAAC,YAAY,GAAG,OAAO,GAAG,WAAW,CAAC,CAAA;AAE3E,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAmBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAAyD,CAAA;AAE7E,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BreadcrumbTheme } from '@instructure/shared-types';
|
|
2
|
-
import { BreadcrumbProps } from './props';
|
|
1
|
+
import type { BreadcrumbTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { BreadcrumbProps, BreadcrumbStyle } from './props';
|
|
3
3
|
/**
|
|
4
4
|
* ---
|
|
5
5
|
* private: true
|
|
@@ -10,79 +10,6 @@ import { BreadcrumbProps } from './props';
|
|
|
10
10
|
* @param {Object} state the state of the component, the style is applied to
|
|
11
11
|
* @return {Object} The final style object, which will be used in the component
|
|
12
12
|
*/
|
|
13
|
-
declare const generateStyle: (componentTheme: BreadcrumbTheme, props: BreadcrumbProps) =>
|
|
14
|
-
breadcrumb: {
|
|
15
|
-
label: string;
|
|
16
|
-
fontFamily: string;
|
|
17
|
-
margin: number;
|
|
18
|
-
padding: number;
|
|
19
|
-
listStyleType: string;
|
|
20
|
-
overflow: string;
|
|
21
|
-
display: string;
|
|
22
|
-
alignItems: string;
|
|
23
|
-
};
|
|
24
|
-
crumb: {
|
|
25
|
-
'&:last-child': {
|
|
26
|
-
paddingInlineEnd: number;
|
|
27
|
-
};
|
|
28
|
-
fontSize: string | 0;
|
|
29
|
-
paddingInlineEnd: string;
|
|
30
|
-
paddingInlineStart: number;
|
|
31
|
-
label: string;
|
|
32
|
-
boxSizing: string;
|
|
33
|
-
position: string;
|
|
34
|
-
} | {
|
|
35
|
-
'&:last-child': {
|
|
36
|
-
paddingInlineEnd: number;
|
|
37
|
-
};
|
|
38
|
-
fontSize: string | 0;
|
|
39
|
-
paddingInlineEnd: string;
|
|
40
|
-
paddingInlineStart: number;
|
|
41
|
-
label: string;
|
|
42
|
-
boxSizing: string;
|
|
43
|
-
position: string;
|
|
44
|
-
} | {
|
|
45
|
-
'&:last-child': {
|
|
46
|
-
paddingInlineEnd: number;
|
|
47
|
-
};
|
|
48
|
-
fontSize: string | 0;
|
|
49
|
-
paddingInlineEnd: string;
|
|
50
|
-
paddingInlineStart: number;
|
|
51
|
-
label: string;
|
|
52
|
-
boxSizing: string;
|
|
53
|
-
position: string;
|
|
54
|
-
};
|
|
55
|
-
separator: {
|
|
56
|
-
fontSize: string;
|
|
57
|
-
insetInlineEnd: string;
|
|
58
|
-
insetInlineStart: string;
|
|
59
|
-
marginTop: string;
|
|
60
|
-
label: string;
|
|
61
|
-
boxSizing: string;
|
|
62
|
-
position: string;
|
|
63
|
-
top: string;
|
|
64
|
-
color: string;
|
|
65
|
-
} | {
|
|
66
|
-
fontSize: string;
|
|
67
|
-
insetInlineEnd: string;
|
|
68
|
-
insetInlineStart: string;
|
|
69
|
-
marginTop: string;
|
|
70
|
-
label: string;
|
|
71
|
-
boxSizing: string;
|
|
72
|
-
position: string;
|
|
73
|
-
top: string;
|
|
74
|
-
color: string;
|
|
75
|
-
} | {
|
|
76
|
-
fontSize: string;
|
|
77
|
-
insetInlineEnd: string;
|
|
78
|
-
insetInlineStart: string;
|
|
79
|
-
marginTop: string;
|
|
80
|
-
label: string;
|
|
81
|
-
boxSizing: string;
|
|
82
|
-
position: string;
|
|
83
|
-
top: string;
|
|
84
|
-
color: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
13
|
+
declare const generateStyle: (componentTheme: BreadcrumbTheme, props: BreadcrumbProps) => BreadcrumbStyle;
|
|
87
14
|
export default generateStyle;
|
|
88
15
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Breadcrumb/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Breadcrumb/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE/D;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,eAAe,SACxB,eAAe,KACrB,eAyEF,CAAA;AAED,eAAe,aAAa,CAAA"}
|