@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.
- package/lib/cjs/components/Breadcrumbs/BreadcrumbItem.js +0 -4
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +5 -2
- package/lib/cjs/styles/variants/text.js +6 -0
- package/lib/components/Breadcrumbs/BreadcrumbItem.js +0 -4
- package/lib/components/Breadcrumbs/Breadcrumbs.js +5 -2
- package/lib/styles/variants/text.js +6 -0
- package/package.json +1 -1
@@ -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",
|
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',
|
@@ -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",
|
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',
|