@corva/ui 0.87.0-6 → 0.87.0-8
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/cjs-bundle/components/Button/components/LiveButton/components/LiveButtonStateIndicator/index.js +1 -1
- package/cjs-bundle/config/theme/fabOverrides.js +1 -1
- package/components/Button/components/LiveButton/components/LiveButtonStateIndicator/index.js +1 -1
- package/components/Button/components/LiveButton/index.d.ts +3 -2
- package/components/Button/components/LiveButton/index.d.ts.map +1 -1
- package/config/theme/fabOverrides.d.ts +1 -0
- package/config/theme/fabOverrides.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("react"),r=require("@material-ui/core/styles"),a=require("../../constants.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(i),n=r.makeStyles((function(e){return{offline:{marginLeft:4,position:"relative",top:-4},livePulsed:{marginLeft:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("react"),r=require("@material-ui/core/styles"),a=require("../../constants.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(i),n=r.makeStyles((function(e){return{offline:{marginLeft:4,position:"relative",top:-4},livePulsed:{marginLeft:8,position:"relative",transform:"translateX(-50%) translateY(-50%)",width:8,height:8,"&:before":{content:'""',position:"relative",display:"block",width:"150%",height:"150%",boxSizing:"border-box",marginTop:"-2px",marginLeft:"-2px",borderRadius:"45px",backgroundColor:e.palette.success.bright,animation:"$pulseRing 3.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite"},"&:after":{content:'""',position:"absolute",left:0,top:0,display:"block",width:"100%",height:"100%",backgroundColor:e.palette.success.bright,borderRadius:"15px",boxShadow:"0 0 8px rgba(0,0,0,.3)",animation:"$pulseDot 3.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -.4s infinite"}},"@keyframes pulseRing":{"0%":{opacity:0,transform:"scale(.55)"},"50%":{opacity:.5},"100%":{opacity:0}},"@keyframes pulseDot":{"0%":{transform:"scale(.6)",opacity:.5},"50%":{transform:"scale(.7)",opacity:1},"100%":{transform:"scale(.6)",opacity:.5}}}})),l=s.default.memo((function(i){var r=i.state,o=n();return r===a.LiveButtonState.Default?null:r===a.LiveButtonState.Live?t.jsx("div",{className:o.livePulsed,"aria-label":"Live indicator"}):t.jsxs("svg",e.__assign({className:o.offline,fill:"none",height:"8",viewBox:"0 0 8 8",width:"8",xmlns:"http://www.w3.org/2000/svg","aria-label":"Idle indicator"},{children:[t.jsx("circle",{opacity:"0.4",cx:"4",cy:"4",r:"4",fill:"#616161"}),t.jsx("circle",{cx:"4",cy:"4",r:"2",fill:"#616161"})]}))}));exports.LiveButtonStateIndicator=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var o=require("./palette.mjs.js").primary,i={MuiFab:{root:{width:40,height:40,borderRadius:8,boxShadow:"none",color:"#141414","&.Mui-disabled":{backgroundColor:o.main,color:"#141414",opacity:"0.4"}},primary:{color:"#141414","&:hover":{backgroundColor:o.light}},sizeSmall:{width:32,height:32,minHeight:32,"& .MuiSvgIcon-root":{fontSize:16}},sizeMedium:{width:36,height:36}}};module.exports=i;
|
package/components/Button/components/LiveButton/components/LiveButtonStateIndicator/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as i}from'./../../../../../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as t}from"react/jsx-runtime";import o from"react";import{makeStyles as r}from"@material-ui/core/styles";import{LiveButtonState as a}from"../../constants.js";var s=r((function(i){return{offline:{marginLeft:4,position:"relative",top:-4},livePulsed:{marginLeft:
|
|
1
|
+
import{__assign as i}from'./../../../../../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as t}from"react/jsx-runtime";import o from"react";import{makeStyles as r}from"@material-ui/core/styles";import{LiveButtonState as a}from"../../constants.js";var s=r((function(i){return{offline:{marginLeft:4,position:"relative",top:-4},livePulsed:{marginLeft:8,position:"relative",transform:"translateX(-50%) translateY(-50%)",width:8,height:8,"&:before":{content:'""',position:"relative",display:"block",width:"150%",height:"150%",boxSizing:"border-box",marginTop:"-2px",marginLeft:"-2px",borderRadius:"45px",backgroundColor:i.palette.success.bright,animation:"$pulseRing 3.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite"},"&:after":{content:'""',position:"absolute",left:0,top:0,display:"block",width:"100%",height:"100%",backgroundColor:i.palette.success.bright,borderRadius:"15px",boxShadow:"0 0 8px rgba(0,0,0,.3)",animation:"$pulseDot 3.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -.4s infinite"}},"@keyframes pulseRing":{"0%":{opacity:0,transform:"scale(.55)"},"50%":{opacity:.5},"100%":{opacity:0}},"@keyframes pulseDot":{"0%":{transform:"scale(.6)",opacity:.5},"50%":{transform:"scale(.7)",opacity:1},"100%":{transform:"scale(.6)",opacity:.5}}}})),l=o.memo((function(o){var r=o.state,l=s();return r===a.Default?null:r===a.Live?e("div",{className:l.livePulsed,"aria-label":"Live indicator"}):t("svg",i({className:l.offline,fill:"none",height:"8",viewBox:"0 0 8 8",width:"8",xmlns:"http://www.w3.org/2000/svg","aria-label":"Idle indicator"},{children:[e("circle",{opacity:"0.4",cx:"4",cy:"4",r:"4",fill:"#616161"}),e("circle",{cx:"4",cy:"4",r:"2",fill:"#616161"})]}))}));export{l as LiveButtonStateIndicator};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
2
3
|
import { LiveButtonState, LiveButtonStateType } from './constants';
|
|
3
|
-
export interface LiveButtonProps {
|
|
4
|
+
export interface LiveButtonProps extends ButtonProps {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
7
|
lastActiveAt?: string;
|
|
@@ -9,7 +10,7 @@ export interface LiveButtonProps {
|
|
|
9
10
|
state?: LiveButtonStateType;
|
|
10
11
|
tooltipProps?: Record<string, any>;
|
|
11
12
|
}
|
|
12
|
-
export declare const getTooltipText: (state: LiveButtonStateType, lastActiveAt
|
|
13
|
+
export declare const getTooltipText: (state: LiveButtonStateType, lastActiveAt?: string) => JSX.Element | "Go to Live data" | "Data receiving in real-time";
|
|
13
14
|
export declare const LiveButton: React.FC<LiveButtonProps>;
|
|
14
15
|
export { LiveButtonState };
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/components/LiveButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/components/LiveButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAInE,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,cAAc,UAAW,mBAAmB,iBAAiB,MAAM,oEAW/E,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyChD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./palette.mjs.js";var i=o.primary,r={MuiFab:{root:{width:40,height:40,borderRadius:8,color:"#141414","&.Mui-disabled":{backgroundColor:i.main,color:"#141414",opacity:"0.4"}},primary:{color:"#141414","&:hover":{backgroundColor:i.light}},sizeSmall:{width:32,height:32,minHeight:32,"& .MuiSvgIcon-root":{fontSize:16}},sizeMedium:{width:36,height:36}}};export{r as default};
|
|
1
|
+
import o from"./palette.mjs.js";var i=o.primary,r={MuiFab:{root:{width:40,height:40,borderRadius:8,boxShadow:"none",color:"#141414","&.Mui-disabled":{backgroundColor:i.main,color:"#141414",opacity:"0.4"}},primary:{color:"#141414","&:hover":{backgroundColor:i.light}},sizeSmall:{width:32,height:32,minHeight:32,"& .MuiSvgIcon-root":{fontSize:16}},sizeMedium:{width:36,height:36}}};export{r as default};
|