@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;
@@ -123,6 +123,7 @@ export interface ProgressingProps {
123
123
  theme?: 'white' | 'default';
124
124
  styles?: React.CSSProperties;
125
125
  children?: React.ReactNode;
126
+ fillColor?: string;
126
127
  }
127
128
  export interface PopupMenuType {
128
129
  children?: any;
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: "#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" })] })) })) })) })));
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: "form__raRadioGroupItemdio-item-content" }, { children: [jsxRuntime.jsx("span", { className: "radio__button" }), jsxRuntime.jsx("span", __assign({ className: "radio__title" }, { children: _this.props.children }))] }))] })) }));
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.7-beta-28",
3
+ "version": "0.0.7-beta-31",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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="#06C"
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="form__raRadioGroupItemdio-item-content">
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>
@@ -135,6 +135,7 @@ export interface ProgressingProps {
135
135
  theme?: 'white' | 'default'
136
136
  styles?: React.CSSProperties
137
137
  children?: React.ReactNode
138
+ fillColor?: string
138
139
  }
139
140
 
140
141
  export interface PopupMenuType {