@devtron-labs/devtron-fe-common-lib 0.0.7-beta-28 → 0.0.7-beta-31
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProgressingProps } from './Types';
|
|
3
|
-
export declare function Progressing({ pageLoader, size, theme, styles }: ProgressingProps): JSX.Element;
|
|
3
|
+
export declare function Progressing({ pageLoader, size, theme, styles, fillColor }: ProgressingProps): JSX.Element;
|
|
4
4
|
export declare function DetailsProgressing({ loadingText, size, fullHeight, children, styles, }: ProgressingProps): JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3985,9 +3985,9 @@ function useThrottledEffect(callback, delay, deps) {
|
|
|
3985
3985
|
}
|
|
3986
3986
|
|
|
3987
3987
|
function Progressing(_a) {
|
|
3988
|
-
var pageLoader = _a.pageLoader, size = _a.size, theme = _a.theme, styles = _a.styles;
|
|
3988
|
+
var pageLoader = _a.pageLoader, size = _a.size, theme = _a.theme, styles = _a.styles, fillColor = _a.fillColor;
|
|
3989
3989
|
var loaderSize = size ? "".concat(size, "px") : pageLoader ? '48px' : '20px';
|
|
3990
|
-
return (jsxRuntime.jsx("div", __assign({ className: "loader ".concat(theme || 'default', "-background"), style: styles, "data-testid": "progressing" }, { children: jsxRuntime.jsx("div", __assign({ style: { width: loaderSize, height: loaderSize } }, { children: jsxRuntime.jsx("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", className: "loader__svg" }, { children: jsxRuntime.jsxs("g", __assign({ fill: "none", fillRule: "evenodd", strokeLinecap: "round" }, { children: [jsxRuntime.jsx("animateTransform", { attributeName: "transform", attributeType: "XML", dur: "0.5s", from: "0 12 12", repeatCount: "indefinite", to: "360 12 12", type: "rotate" }), jsxRuntime.jsx("path", { fill:
|
|
3990
|
+
return (jsxRuntime.jsx("div", __assign({ className: "loader ".concat(theme || 'default', "-background"), style: styles, "data-testid": "progressing" }, { children: jsxRuntime.jsx("div", __assign({ style: { width: loaderSize, height: loaderSize } }, { children: jsxRuntime.jsx("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", className: "loader__svg" }, { children: jsxRuntime.jsxs("g", __assign({ fill: "none", fillRule: "evenodd", strokeLinecap: "round" }, { children: [jsxRuntime.jsx("animateTransform", { attributeName: "transform", attributeType: "XML", dur: "0.5s", from: "0 12 12", repeatCount: "indefinite", to: "360 12 12", type: "rotate" }), jsxRuntime.jsx("path", { fill: fillColor || '#06C', fillRule: "nonzero", d: "M12 2.5A9.5 9.5 0 1 1 2.5 12a1.5 1.5 0 0 1 3 0A6.5 6.5 0 1 0 12 5.5a1.5 1.5 0 0 1 0-3z" })] })) })) })) })));
|
|
3991
3991
|
}
|
|
3992
3992
|
function DetailsProgressing(_a) {
|
|
3993
3993
|
var loadingText = _a.loadingText, _b = _a.size, size = _b === void 0 ? 24 : _b, _c = _a.fullHeight, fullHeight = _c === void 0 ? false : _c, children = _a.children, styles = _a.styles;
|
|
@@ -4268,7 +4268,7 @@ var RadioGroupItem = /** @class */ (function (_super) {
|
|
|
4268
4268
|
RadioGroupItem.prototype.render = function () {
|
|
4269
4269
|
var _this = this;
|
|
4270
4270
|
return (jsxRuntime.jsx(RadioGroupContext.Consumer, { children: function (context) {
|
|
4271
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("label", __assign({ className: context.disabled ? 'form__radio-item disabled' : 'form__radio-item' }, { children: [jsxRuntime.jsx("input", { type: "radio", className: "form__checkbox", name: context.name, disabled: context.disabled, onChange: context.onChange, value: _this.props.value, checked: context.value === _this.props.value, "data-testid": _this.props.dataTestId }), jsxRuntime.jsxs("span", __assign({ className: "
|
|
4271
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("label", __assign({ className: context.disabled ? 'form__radio-item disabled' : 'form__radio-item' }, { children: [jsxRuntime.jsx("input", { type: "radio", className: "form__checkbox", name: context.name, disabled: context.disabled, onChange: context.onChange, value: _this.props.value, checked: context.value === _this.props.value, "data-testid": _this.props.dataTestId }), jsxRuntime.jsxs("span", __assign({ className: "form__radio-item-content" }, { children: [jsxRuntime.jsx("span", { className: "radio__button" }), jsxRuntime.jsx("span", __assign({ className: "radio__title" }, { children: _this.props.children }))] }))] })) }));
|
|
4272
4272
|
} }));
|
|
4273
4273
|
};
|
|
4274
4274
|
return RadioGroupItem;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { ProgressingProps } from './Types'
|
|
3
3
|
|
|
4
|
-
export function Progressing({ pageLoader, size, theme, styles }: ProgressingProps): JSX.Element {
|
|
4
|
+
export function Progressing({ pageLoader, size, theme, styles, fillColor }: ProgressingProps): JSX.Element {
|
|
5
5
|
const loaderSize = size ? `${size}px` : pageLoader ? '48px' : '20px'
|
|
6
6
|
return (
|
|
7
7
|
<div className={`loader ${theme || 'default'}-background`} style={styles} data-testid="progressing">
|
|
@@ -18,7 +18,7 @@ export function Progressing({ pageLoader, size, theme, styles }: ProgressingProp
|
|
|
18
18
|
type="rotate"
|
|
19
19
|
/>
|
|
20
20
|
<path
|
|
21
|
-
fill=
|
|
21
|
+
fill={fillColor || '#06C'}
|
|
22
22
|
fillRule="nonzero"
|
|
23
23
|
d="M12 2.5A9.5 9.5 0 1 1 2.5 12a1.5 1.5 0 0 1 3 0A6.5 6.5 0 1 0 12 5.5a1.5 1.5 0 0 1 0-3z"
|
|
24
24
|
/>
|
|
@@ -20,7 +20,7 @@ export class RadioGroupItem extends Component<RadioGroupItemProps> {
|
|
|
20
20
|
checked={context.value === this.props.value}
|
|
21
21
|
data-testid={this.props.dataTestId}
|
|
22
22
|
/>
|
|
23
|
-
<span className="
|
|
23
|
+
<span className="form__radio-item-content">
|
|
24
24
|
<span className="radio__button"></span>
|
|
25
25
|
<span className="radio__title">{this.props.children}</span>
|
|
26
26
|
</span>
|