@clayui/breadcrumb 3.37.0 → 3.41.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.js +4 -2
- package/lib/Item.js +3 -1
- package/lib/index.js +3 -1
- package/package.json +7 -7
- package/CHANGELOG.md +0 -187
package/lib/Ellipsis.js
CHANGED
|
@@ -13,6 +13,8 @@ var _icon = _interopRequireDefault(require("@clayui/icon"));
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
|
+
var _excluded = ["items", "spritemap"];
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -25,7 +27,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
25
27
|
|
|
26
28
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
27
29
|
|
|
28
|
-
function _iterableToArrayLimit(arr, i) {
|
|
30
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
29
31
|
|
|
30
32
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
33
|
|
|
@@ -36,7 +38,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
36
38
|
var Ellipsis = function Ellipsis(_ref) {
|
|
37
39
|
var items = _ref.items,
|
|
38
40
|
spritemap = _ref.spritemap,
|
|
39
|
-
otherProps = _objectWithoutProperties(_ref,
|
|
41
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
40
42
|
|
|
41
43
|
var _React$useState = _react.default.useState(false),
|
|
42
44
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
package/lib/Item.js
CHANGED
|
@@ -13,6 +13,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
|
+
var _excluded = ["active", "href", "label", "onClick"];
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -26,7 +28,7 @@ var Item = function Item(_ref) {
|
|
|
26
28
|
href = _ref.href,
|
|
27
29
|
label = _ref.label,
|
|
28
30
|
onClick = _ref.onClick,
|
|
29
|
-
otherProps = _objectWithoutProperties(_ref,
|
|
31
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
30
32
|
|
|
31
33
|
return /*#__PURE__*/_react.default.createElement("li", _extends({
|
|
32
34
|
className: (0, _classnames.default)('breadcrumb-item', {
|
package/lib/index.js
CHANGED
|
@@ -17,6 +17,8 @@ var _Ellipsis = _interopRequireDefault(require("./Ellipsis"));
|
|
|
17
17
|
|
|
18
18
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
19
19
|
|
|
20
|
+
var _excluded = ["className", "ellipsisBuffer", "ellipsisProps", "items", "spritemap"];
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
22
24
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -39,7 +41,7 @@ var ClayBreadcrumb = function ClayBreadcrumb(_ref) {
|
|
|
39
41
|
ellipsisProps = _ref$ellipsisProps === void 0 ? {} : _ref$ellipsisProps,
|
|
40
42
|
items = _ref.items,
|
|
41
43
|
spritemap = _ref.spritemap,
|
|
42
|
-
otherProps = _objectWithoutProperties(_ref,
|
|
44
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
43
45
|
|
|
44
46
|
"production" !== "production" ? (0, _warning.default)(findActiveItems(items).length === 1, 'ClayBreadcrumb expects at least one `active` item on `items`.') : void 0;
|
|
45
47
|
var activeItems = findActiveItems(items);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/breadcrumb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.41.0",
|
|
4
4
|
"description": "ClayBreadcrumb component",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"repository": "https://github.com/liferay/clay",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"react"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@clayui/button": "^3.
|
|
30
|
-
"@clayui/drop-down": "^3.
|
|
31
|
-
"@clayui/icon": "^3.
|
|
32
|
-
"@clayui/link": "^3.
|
|
33
|
-
"@clayui/shared": "^3.
|
|
29
|
+
"@clayui/button": "^3.40.0",
|
|
30
|
+
"@clayui/drop-down": "^3.41.0",
|
|
31
|
+
"@clayui/icon": "^3.40.0",
|
|
32
|
+
"@clayui/link": "^3.40.0",
|
|
33
|
+
"@clayui/shared": "^3.40.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": "
|
|
45
|
+
"gitHead": "5fcd39d3c7b8930614d098920894ba528c35f69c"
|
|
46
46
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [3.37.0](https://github.com/liferay/clay/compare/v3.36.0...v3.37.0) (2021-10-06)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
9
|
-
|
|
10
|
-
# [3.36.0](https://github.com/liferay/clay/compare/v3.35.3...v3.36.0) (2021-09-23)
|
|
11
|
-
|
|
12
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
13
|
-
|
|
14
|
-
## [3.35.3](https://github.com/liferay/clay/compare/v3.35.2...v3.35.3) (2021-09-09)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
17
|
-
|
|
18
|
-
## [3.35.2](https://github.com/liferay/clay/compare/v3.35.1...v3.35.2) (2021-08-30)
|
|
19
|
-
|
|
20
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
21
|
-
|
|
22
|
-
## [3.35.1](https://github.com/liferay/clay/compare/v3.35.0...v3.35.1) (2021-08-30)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
25
|
-
|
|
26
|
-
# [3.35.0](https://github.com/liferay/clay/compare/v3.34.0...v3.35.0) (2021-08-30)
|
|
27
|
-
|
|
28
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
29
|
-
|
|
30
|
-
# [3.32.0](https://github.com/liferay/clay/compare/v3.31.0...v3.32.0) (2021-07-28)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
33
|
-
|
|
34
|
-
# [3.30.0](https://github.com/liferay/clay/compare/v3.29.0...v3.30.0) (2021-06-16)
|
|
35
|
-
|
|
36
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
37
|
-
|
|
38
|
-
# [3.29.0](https://github.com/liferay/clay/compare/v3.28.0...v3.29.0) (2021-05-28)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
41
|
-
|
|
42
|
-
# [3.28.0](https://github.com/liferay/clay/compare/v3.27.0...v3.28.0) (2021-05-19)
|
|
43
|
-
|
|
44
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
45
|
-
|
|
46
|
-
# [3.27.0](https://github.com/liferay/clay/compare/v3.26.0...v3.27.0) (2021-05-05)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
49
|
-
|
|
50
|
-
## [3.25.1](https://github.com/liferay/clay/compare/v3.25.0...v3.25.1) (2021-03-05)
|
|
51
|
-
|
|
52
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
53
|
-
|
|
54
|
-
# [3.25.0](https://github.com/liferay/clay/compare/v3.24.1...v3.25.0) (2021-02-23)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
57
|
-
|
|
58
|
-
## [3.3.6](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.3.5...@clayui/breadcrumb@3.3.6) (2021-02-11)
|
|
59
|
-
|
|
60
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
61
|
-
|
|
62
|
-
## [3.3.5](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.3.4...@clayui/breadcrumb@3.3.5) (2021-01-27)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
65
|
-
|
|
66
|
-
## [3.3.4](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.3.3...@clayui/breadcrumb@3.3.4) (2021-01-13)
|
|
67
|
-
|
|
68
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
69
|
-
|
|
70
|
-
## [3.3.3](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.3.2...@clayui/breadcrumb@3.3.3) (2020-12-29)
|
|
71
|
-
|
|
72
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
73
|
-
|
|
74
|
-
## [3.3.2](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.3.0...@clayui/breadcrumb@3.3.2) (2020-12-16)
|
|
75
|
-
|
|
76
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
77
|
-
|
|
78
|
-
## [3.3.1](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.3.0...@clayui/breadcrumb@3.3.1) (2020-12-02)
|
|
79
|
-
|
|
80
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
81
|
-
|
|
82
|
-
# [3.3.0](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.2.8...@clayui/breadcrumb@3.3.0) (2020-10-01)
|
|
83
|
-
|
|
84
|
-
### Features
|
|
85
|
-
|
|
86
|
-
- **clayui.com:** Move API tables to new files and update document tabs, rename files to use singular naming instead of plural, change mainTabURL of pagination-bar to a proper one ([d812ee9](https://github.com/liferay/clay/commit/d812ee9))
|
|
87
|
-
|
|
88
|
-
## [3.2.8](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.2.7...@clayui/breadcrumb@3.2.8) (2020-08-28)
|
|
89
|
-
|
|
90
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
91
|
-
|
|
92
|
-
## [3.2.7](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.2.6...@clayui/breadcrumb@3.2.7) (2020-08-26)
|
|
93
|
-
|
|
94
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
95
|
-
|
|
96
|
-
## [3.2.6](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.2.5...@clayui/breadcrumb@3.2.6) (2020-08-21)
|
|
97
|
-
|
|
98
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
99
|
-
|
|
100
|
-
## [3.2.5](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.2.4...@clayui/breadcrumb@3.2.5) (2020-08-11)
|
|
101
|
-
|
|
102
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
103
|
-
|
|
104
|
-
## [3.2.4](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.2.3...@clayui/breadcrumb@3.2.4) (2020-07-28)
|
|
105
|
-
|
|
106
|
-
### Bug Fixes
|
|
107
|
-
|
|
108
|
-
- update packages to appropriate dependencies ([0026168](https://github.com/liferay/clay/commit/0026168))
|
|
109
|
-
|
|
110
|
-
## [3.2.3](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.2.2...@clayui/breadcrumb@3.2.3) (2020-07-14)
|
|
111
|
-
|
|
112
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
113
|
-
|
|
114
|
-
## [3.2.2](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.2.1...@clayui/breadcrumb@3.2.2) (2020-07-07)
|
|
115
|
-
|
|
116
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
117
|
-
|
|
118
|
-
## [3.2.1](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.2.0...@clayui/breadcrumb@3.2.1) (2020-06-18)
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
121
|
-
|
|
122
|
-
# [3.2.0](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.1.3...@clayui/breadcrumb@3.2.0) (2020-05-21)
|
|
123
|
-
|
|
124
|
-
### Features
|
|
125
|
-
|
|
126
|
-
- **clayui.com:** Improve component docs by updating content - Badge, Breadcrumb, Dual List Box, Loading Indicator, Localized Input & Multi Step Nav ([c4ad126](https://github.com/liferay/clay/commit/c4ad126))
|
|
127
|
-
|
|
128
|
-
## [3.1.3](https://github.com/liferay/clay/compare/@clayui/breadcrumb@3.1.2...@clayui/breadcrumb@3.1.3) (2020-04-24)
|
|
129
|
-
|
|
130
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
131
|
-
|
|
132
|
-
## [3.1.2](https://github.com/liferay/clay/tree/master/packages/clay-breadcrumb/compare/@clayui/breadcrumb@3.1.1...@clayui/breadcrumb@3.1.2) (2020-03-26)
|
|
133
|
-
|
|
134
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
135
|
-
|
|
136
|
-
## [3.1.1](https://github.com/liferay/clay/tree/master/packages/clay-breadcrumb/compare/@clayui/breadcrumb@3.1.0...@clayui/breadcrumb@3.1.1) (2020-03-12)
|
|
137
|
-
|
|
138
|
-
### Bug Fixes
|
|
139
|
-
|
|
140
|
-
- **@clayui/breadcrumb:** use ClayLink over anchor tag ([047c3be](https://github.com/liferay/clay/commit/047c3be))
|
|
141
|
-
|
|
142
|
-
# 3.1.0 (2020-02-28)
|
|
143
|
-
|
|
144
|
-
### Bug Fixes
|
|
145
|
-
|
|
146
|
-
- **drop-down:** use dom-align instead of metal-position ([335ff38](https://github.com/liferay/clay/commit/335ff38))
|
|
147
|
-
- add missing dependency declarations ([c591e2f](https://github.com/liferay/clay/commit/c591e2f))
|
|
148
|
-
|
|
149
|
-
### Features
|
|
150
|
-
|
|
151
|
-
- **breadcrumb:** move breadcrumb to its own package ([0994158](https://github.com/liferay/clay/commit/0994158))
|
|
152
|
-
|
|
153
|
-
## [3.0.7](https://github.com/liferay/clay/tree/master/packages/clay-breadcrumb/compare/@clayui/breadcrumb@3.0.6...@clayui/breadcrumb@3.0.7) (2020-02-13)
|
|
154
|
-
|
|
155
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
156
|
-
|
|
157
|
-
## [3.0.6](https://github.com/liferay/clay/tree/master/packages/clay-breadcrumb/compare/@clayui/breadcrumb@3.0.3...@clayui/breadcrumb@3.0.6) (2020-01-31)
|
|
158
|
-
|
|
159
|
-
### Bug Fixes
|
|
160
|
-
|
|
161
|
-
- **drop-down:** use dom-align instead of metal-position ([335ff38](https://github.com/liferay/clay/commit/335ff38))
|
|
162
|
-
- add missing dependency declarations ([c591e2f](https://github.com/liferay/clay/commit/c591e2f))
|
|
163
|
-
|
|
164
|
-
## [3.0.5](https://github.com/liferay/clay/tree/master/packages/clay-breadcrumb/compare/@clayui/breadcrumb@3.0.3...@clayui/breadcrumb@3.0.5) (2020-01-20)
|
|
165
|
-
|
|
166
|
-
### Bug Fixes
|
|
167
|
-
|
|
168
|
-
- add missing dependency declarations ([c591e2f](https://github.com/liferay/clay/commit/c591e2f))
|
|
169
|
-
- **drop-down:** use dom-align instead of metal-position ([335ff38](https://github.com/liferay/clay/commit/335ff38))
|
|
170
|
-
|
|
171
|
-
## [3.0.4](https://github.com/liferay/clay/tree/master/packages/clay-breadcrumb/compare/@clayui/breadcrumb@3.0.3...@clayui/breadcrumb@3.0.4) (2019-12-05)
|
|
172
|
-
|
|
173
|
-
### Bug Fixes
|
|
174
|
-
|
|
175
|
-
- **drop-down:** use dom-align instead of metal-position ([335ff38](https://github.com/liferay/clay/commit/335ff38))
|
|
176
|
-
|
|
177
|
-
## [3.0.3](https://github.com/liferay/clay/tree/master/packages/clay-breadcrumb/compare/@clayui/breadcrumb@3.0.2...@clayui/breadcrumb@3.0.3) (2019-11-07)
|
|
178
|
-
|
|
179
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
180
|
-
|
|
181
|
-
## [3.0.2](https://github.com/liferay/clay/tree/master/packages/clay-breadcrumb/compare/@clayui/breadcrumb@3.0.1...@clayui/breadcrumb@3.0.2) (2019-11-01)
|
|
182
|
-
|
|
183
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|
|
184
|
-
|
|
185
|
-
## [3.0.1](https://github.com/liferay/clay/tree/master/packages/clay-breadcrumb/compare/@clayui/breadcrumb@3.0.0...@clayui/breadcrumb@3.0.1) (2019-10-28)
|
|
186
|
-
|
|
187
|
-
**Note:** Version bump only for package @clayui/breadcrumb
|