@deque/cauldron-react 6.25.3-canary.b4d0e96f → 6.25.3-canary.c30b80bc
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/cauldron.css
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--expandcollapse-trigger-color: var(--gray-90);
|
|
4
4
|
--expandcollapse-panel-background-color: transparent;
|
|
5
5
|
--expandcollapse-panel-color: var(--gray-90);
|
|
6
|
+
--expandcollapse-trigger-icon-offset: 0;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
.ExpandCollapse__trigger {
|
|
@@ -22,6 +23,11 @@
|
|
|
22
23
|
text-align: left;
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
.ExpandCollapse__trigger > .Icon:last-child {
|
|
27
|
+
position: relative;
|
|
28
|
+
right: var(--expandcollapse-trigger-icon-offset);
|
|
29
|
+
}
|
|
30
|
+
|
|
25
31
|
.ExpandCollapse__panel {
|
|
26
32
|
color: var(--expandcollapse-panel-color);
|
|
27
33
|
}
|
|
@@ -4,6 +4,7 @@ type ProgressBarProps = {
|
|
|
4
4
|
progress: number;
|
|
5
5
|
progressMax?: number;
|
|
6
6
|
progressMin?: number;
|
|
7
|
+
thin?: boolean;
|
|
7
8
|
} & Cauldron.LabelProps & React.HTMLAttributes<HTMLDivElement>;
|
|
8
9
|
declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
10
|
export default ProgressBar;
|
package/lib/index.js
CHANGED
|
@@ -3419,9 +3419,9 @@ var Stepper = function (_a) {
|
|
|
3419
3419
|
Stepper.displayName = 'Stepper';
|
|
3420
3420
|
|
|
3421
3421
|
var ProgressBar = React.forwardRef(function (_a, ref) {
|
|
3422
|
-
var _b = _a.progress, progress = _b === void 0 ? 0 : _b, _c = _a.progressMax, progressMax = _c === void 0 ? 100 : _c, _d = _a.progressMin, progressMin = _d === void 0 ? 0 : _d, props = tslib.__rest(_a, ["progress", "progressMax", "progressMin"]);
|
|
3422
|
+
var _b = _a.progress, progress = _b === void 0 ? 0 : _b, _c = _a.progressMax, progressMax = _c === void 0 ? 100 : _c, _d = _a.progressMin, progressMin = _d === void 0 ? 0 : _d, thin = _a.thin, props = tslib.__rest(_a, ["progress", "progressMax", "progressMin", "thin"]);
|
|
3423
3423
|
var className = props.className, otherProps = tslib.__rest(props, ["className"]);
|
|
3424
|
-
return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('ProgressBar', className), role: "progressbar", "aria-valuemin": progressMin, "aria-valuemax": progressMax, "aria-valuenow": progress, ref: ref }, otherProps),
|
|
3424
|
+
return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('ProgressBar', { 'ProgressBar--thin': thin }, className), role: "progressbar", "aria-valuemin": progressMin, "aria-valuemax": progressMax, "aria-valuenow": progress, ref: ref }, otherProps),
|
|
3425
3425
|
React__default["default"].createElement("div", { className: "ProgressBar--fill", style: { width: "".concat(Math.min((progress / progressMax) * 100, 100), "%") } })));
|
|
3426
3426
|
});
|
|
3427
3427
|
ProgressBar.displayName = 'ProgressBar';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "6.25.3-canary.
|
|
3
|
+
"version": "6.25.3-canary.c30b80bc",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
6
6
|
"homepage": "https://cauldron.dequelabs.com/",
|