@pingux/astro 1.29.0-alpha.0 → 1.29.0-alpha.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.
@@ -88,10 +88,6 @@ var BreadcrumbItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
88
88
  return _index.Text;
89
89
 
90
90
  case 'Link':
91
- if (isCurrent) {
92
- return _index.Text;
93
- }
94
-
95
91
  return _index.Link;
96
92
 
97
93
  case 'Fragment':
@@ -84,7 +84,8 @@ var Breadcrumbs = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
84
84
  minHeight: 42
85
85
  },
86
86
  as: "li",
87
- key: "li-".concat(child.key)
87
+ key: "li-".concat(child.key),
88
+ variant: "text.breadcrumbLi"
88
89
  }, (0, _react2.jsx)(_BreadcrumbItem["default"], (0, _extends2["default"])({
89
90
  "data-id": child['data-id'],
90
91
  isCurrent: isCurrentItem,
@@ -98,7 +99,9 @@ var Breadcrumbs = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
98
99
  size: 16
99
100
  }, iconProps)));
100
101
  }, [children.length, filteredChildren, icon, iconProps, onAction]);
101
- return (0, _react2.jsx)("nav", null, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
102
+ return (0, _react2.jsx)("nav", {
103
+ "aria-label": "Breadcrumb"
104
+ }, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
102
105
  ref: breadcrumbsRef,
103
106
  isRow: true,
104
107
  sx: {
@@ -141,6 +141,11 @@ var expandableRow = {
141
141
  }
142
142
  }
143
143
  };
144
+ var breadcrumbLi = {
145
+ 'a.is-hovered.is-current ': {
146
+ textDecoration: 'none'
147
+ }
148
+ };
144
149
  var breadcrumbLink = {
145
150
  color: 'active',
146
151
  fontFamily: 'standard',
@@ -255,6 +260,7 @@ var text = {
255
260
  color: 'text.secondary',
256
261
  fontFamily: 'standard'
257
262
  }),
263
+ breadcrumbLi: breadcrumbLi,
258
264
  breadcrumbLink: breadcrumbLink,
259
265
  buttonLabel: _objectSpread(_objectSpread({}, wordWrap), {}, {
260
266
  fontSize: 'md',
@@ -53,10 +53,6 @@ var BreadcrumbItem = /*#__PURE__*/forwardRef(function (props, ref) {
53
53
  return Text;
54
54
 
55
55
  case 'Link':
56
- if (isCurrent) {
57
- return Text;
58
- }
59
-
60
56
  return Link;
61
57
 
62
58
  case 'Fragment':
@@ -50,7 +50,8 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (props, ref) {
50
50
  minHeight: 42
51
51
  },
52
52
  as: "li",
53
- key: "li-".concat(child.key)
53
+ key: "li-".concat(child.key),
54
+ variant: "text.breadcrumbLi"
54
55
  }, ___EmotionJSX(BreadcrumbItem, _extends({
55
56
  "data-id": child['data-id'],
56
57
  isCurrent: isCurrentItem,
@@ -64,7 +65,9 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (props, ref) {
64
65
  size: 16
65
66
  }, iconProps)));
66
67
  }, [children.length, filteredChildren, icon, iconProps, onAction]);
67
- return ___EmotionJSX("nav", null, ___EmotionJSX(Box, _extends({
68
+ return ___EmotionJSX("nav", {
69
+ "aria-label": "Breadcrumb"
70
+ }, ___EmotionJSX(Box, _extends({
68
71
  ref: breadcrumbsRef,
69
72
  isRow: true,
70
73
  sx: {
@@ -123,6 +123,11 @@ var expandableRow = {
123
123
  }
124
124
  }
125
125
  };
126
+ var breadcrumbLi = {
127
+ 'a.is-hovered.is-current ': {
128
+ textDecoration: 'none'
129
+ }
130
+ };
126
131
  var breadcrumbLink = {
127
132
  color: 'active',
128
133
  fontFamily: 'standard',
@@ -237,6 +242,7 @@ export var text = {
237
242
  color: 'text.secondary',
238
243
  fontFamily: 'standard'
239
244
  }),
245
+ breadcrumbLi: breadcrumbLi,
240
246
  breadcrumbLink: breadcrumbLink,
241
247
  buttonLabel: _objectSpread(_objectSpread({}, wordWrap), {}, {
242
248
  fontSize: 'md',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.29.0-alpha.0",
3
+ "version": "1.29.0-alpha.1",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",