@clayui/breadcrumb 3.55.0 → 3.56.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/lib/Ellipsis.d.ts CHANGED
@@ -1,7 +1,17 @@
1
+ /**
2
+ * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
3
+ * SPDX-License-Identifier: BSD-3-Clause
4
+ */
1
5
  import React from 'react';
2
6
  import Item from './Item';
3
7
  interface IEllipsisProps extends React.HTMLAttributes<HTMLLIElement> {
8
+ /**
9
+ * Property to define BreadcrumbEllipsis's items.
10
+ */
4
11
  items: Array<React.ComponentProps<typeof Item>>;
12
+ /**
13
+ * Path to the location of the spritemap resource.
14
+ */
5
15
  spritemap?: string;
6
16
  }
7
17
  declare const Ellipsis: React.FunctionComponent<IEllipsisProps>;
package/lib/Item.d.ts CHANGED
@@ -1,8 +1,24 @@
1
+ /**
2
+ * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
3
+ * SPDX-License-Identifier: BSD-3-Clause
4
+ */
1
5
  import React from 'react';
2
6
  interface IItem extends React.HTMLAttributes<HTMLLIElement> {
7
+ /**
8
+ * Flag to indicate if the Breadcrumb item is active or not.
9
+ */
3
10
  active?: boolean;
11
+ /**
12
+ * This value is used to be the target of the link.
13
+ */
4
14
  href?: string;
15
+ /**
16
+ * Label of the Breadcrumb item
17
+ */
5
18
  label: string;
19
+ /**
20
+ * Callback for when a Breadcrumb item is clicked.
21
+ */
6
22
  onClick?: (event: React.SyntheticEvent) => void;
7
23
  }
8
24
  declare const Item: ({ active, href, label, onClick, ...otherProps }: IItem) => JSX.Element;
package/lib/index.d.ts CHANGED
@@ -1,11 +1,28 @@
1
+ /**
2
+ * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
3
+ * SPDX-License-Identifier: BSD-3-Clause
4
+ */
1
5
  import React from 'react';
2
6
  import Item from './Item';
3
7
  declare type TItem = React.ComponentProps<typeof Item>;
4
8
  declare type TItems = Array<TItem>;
5
9
  interface IProps extends React.HTMLAttributes<HTMLOListElement> {
10
+ /**
11
+ * The number of Breadcrumb Items to show on each side of the active Breadcrumb Item before
12
+ * using an ellipsis dropdown.
13
+ */
6
14
  ellipsisBuffer?: number;
15
+ /**
16
+ * Use this property for defining `otherProps` that will be passed to ellipsis dropdown trigger.
17
+ */
7
18
  ellipsisProps?: Object;
19
+ /**
20
+ * Property to define Breadcrumb's items.
21
+ */
8
22
  items: TItems;
23
+ /**
24
+ * Path to the location of the spritemap resource.
25
+ */
9
26
  spritemap?: string;
10
27
  }
11
28
  declare const ClayBreadcrumb: React.FunctionComponent<IProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clayui/breadcrumb",
3
- "version": "3.55.0",
3
+ "version": "3.56.0",
4
4
  "description": "ClayBreadcrumb component",
5
5
  "license": "BSD-3-Clause",
6
6
  "repository": "https://github.com/liferay/clay",
@@ -17,8 +17,8 @@
17
17
  ],
18
18
  "scripts": {
19
19
  "build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
20
- "build:types": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
21
- "prepublishOnly": "yarn build && yarn build:types",
20
+ "buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
21
+ "prepublishOnly": "yarn build && yarn buildTypes",
22
22
  "test": "jest --config ../../jest.config.js"
23
23
  },
24
24
  "keywords": [
@@ -26,11 +26,11 @@
26
26
  "react"
27
27
  ],
28
28
  "dependencies": {
29
- "@clayui/button": "^3.40.0",
30
- "@clayui/drop-down": "^3.55.0",
31
- "@clayui/icon": "^3.40.0",
32
- "@clayui/link": "^3.45.0",
33
- "@clayui/shared": "^3.55.0",
29
+ "@clayui/button": "^3.56.0",
30
+ "@clayui/drop-down": "^3.56.0",
31
+ "@clayui/icon": "^3.56.0",
32
+ "@clayui/link": "^3.56.0",
33
+ "@clayui/shared": "^3.56.0",
34
34
  "classnames": "^2.2.6",
35
35
  "warning": "^4.0.3"
36
36
  },
@@ -42,5 +42,5 @@
42
42
  "browserslist": [
43
43
  "extends browserslist-config-clay"
44
44
  ],
45
- "gitHead": "5310f4650d453a3659b0bc73a5f098732168c9c1"
45
+ "gitHead": "1c33d9c709d8ce071862f0087c76ac23ce11465b"
46
46
  }