@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
27 lines (26 loc) • 763 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.progressStateAttributesMapping = void 0;
var _ProgressRootDataAttributes = require("./ProgressRootDataAttributes");
const progressStateAttributesMapping = exports.progressStateAttributesMapping = {
status(value) {
if (value === 'progressing') {
return {
[_ProgressRootDataAttributes.ProgressRootDataAttributes.progressing]: ''
};
}
if (value === 'complete') {
return {
[_ProgressRootDataAttributes.ProgressRootDataAttributes.complete]: ''
};
}
if (value === 'indeterminate') {
return {
[_ProgressRootDataAttributes.ProgressRootDataAttributes.indeterminate]: ''
};
}
return null;
}
};