@corva/ui 3.32.0-5 → 3.32.0-6

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,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("classnames"),i=require("../LiveDotIndicator/LiveDotIndicator.js"),r=require("../Text/Text.js"),s=require("../Tooltip/Tooltip.js"),a=require("./IndicatorLive.scss.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(t),o={large:a.large,medium:a.medium,small:a.small},c={buttonLike:a.buttonLike,indicator:a.indicator},d={large:18,medium:16,small:16},u={live:a.live,offline:a.offline},m=function(t,i){return"live"===t?"Data receiving in real-time":e.jsxs(e.Fragment,{children:["Asset isn’t Live",i&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),"Last active: ",i]})]})};exports.IndicatorLive=function(t){var l=t.className,v=t.testId,f=t.children,j=t.state,x=t.size,L=void 0===x?"medium":x,p=t.type,b=void 0===p?"buttonLike":p,g=t.lastActive,q=f||("live"===j?"Live":"Offline");return e.jsx(s.Tooltip,{title:m(j,g),placement:"bottom-start",children:e.jsxs(r.Text,{className:n.default(a.root,o[L],c[b],u[j],l),"data-testid":v,size:d[L],children:[q,e.jsx(i.LiveDotIndicator,{state:j,className:a.dot})]})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("classnames"),i=require("../LiveDotIndicator/LiveDotIndicator.js"),r=require("../Text/Text.js"),s=require("../Tooltip/Tooltip.js"),a=require("./IndicatorLive.scss.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(t),n={large:a.large,medium:a.medium,small:a.small},d={buttonLike:a.buttonLike,indicator:a.indicator},c={large:18,medium:16,small:16},u={live:a.live,offline:a.offline},m=function(t,i){return"live"===t?"Data receiving in real-time":e.jsxs(e.Fragment,{children:["Asset isn’t Live",i&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),"Last active: ",i]})]})};exports.IndicatorLive=function(t){var l=t.className,v=t.testId,f=t.children,j=t.state,x=t.size,L=void 0===x?"medium":x,p=t.type,b=void 0===p?"buttonLike":p,T=t.lastActive,g=t.disableTooltip,q=f||("live"===j?"Live":"Offline");return e.jsx(s.Tooltip,{title:m(j,T),placement:"bottom-start",disabled:g,children:e.jsxs(r.Text,{className:o.default(a.root,n[L],d[b],u[j],l),"data-testid":v,size:c[L],children:[q,e.jsx(i.LiveDotIndicator,{state:j,className:a.dot})]})})};
2
2
  //# sourceMappingURL=IndicatorLive.js.map
@@ -7,8 +7,9 @@ export type IndicatorLiveProps = {
7
7
  children?: React.ReactNode;
8
8
  size?: 'small' | 'medium' | 'large';
9
9
  lastActive?: string;
10
+ disableTooltip?: boolean;
10
11
  className?: string;
11
12
  testId?: string;
12
13
  };
13
- export declare const IndicatorLive: ({ className, testId, children, state, size, type, lastActive, }: IndicatorLiveProps) => JSX.Element;
14
+ export declare const IndicatorLive: ({ className, testId, children, state, size, type, lastActive, disableTooltip, }: IndicatorLiveProps) => JSX.Element;
14
15
  //# sourceMappingURL=IndicatorLive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IndicatorLive.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/IndicatorLive/IndicatorLive.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,YAAY,GAAG,WAAW,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA6CF,eAAO,MAAM,aAAa,oEAQvB,kBAAkB,gBAsBpB,CAAC"}
1
+ {"version":3,"file":"IndicatorLive.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/IndicatorLive/IndicatorLive.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,YAAY,GAAG,WAAW,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA6CF,eAAO,MAAM,aAAa,oFASvB,kBAAkB,gBA0BpB,CAAC"}
@@ -1,2 +1,2 @@
1
- import{jsx as t,jsxs as e,Fragment as i}from"react/jsx-runtime";import r from"classnames";import{LiveDotIndicator as o}from"../LiveDotIndicator/LiveDotIndicator.js";import{Text as a}from"../Text/Text.js";import{Tooltip as s}from"../Tooltip/Tooltip.js";import l from"./IndicatorLive.scss.js";var m={large:l.large,medium:l.medium,small:l.small},n={buttonLike:l.buttonLike,indicator:l.indicator},c={large:18,medium:16,small:16},d={live:l.live,offline:l.offline},v=function(r,o){return"live"===r?"Data receiving in real-time":e(i,{children:["Asset isn’t Live",o&&e(i,{children:[t("br",{}),"Last active: ",o]})]})},f=function(i){var f=i.className,u=i.testId,p=i.children,L=i.state,b=i.size,h=void 0===b?"medium":b,j=i.type,g=void 0===j?"buttonLike":j,x=i.lastActive,I=p||("live"===L?"Live":"Offline");return t(s,{title:v(L,x),placement:"bottom-start",children:e(a,{className:r(l.root,m[h],n[g],d[L],f),"data-testid":u,size:c[h],children:[I,t(o,{state:L,className:l.dot})]})})};export{f as IndicatorLive};
1
+ import{jsx as i,jsxs as t,Fragment as e}from"react/jsx-runtime";import o from"classnames";import{LiveDotIndicator as r}from"../LiveDotIndicator/LiveDotIndicator.js";import{Text as a}from"../Text/Text.js";import{Tooltip as l}from"../Tooltip/Tooltip.js";import s from"./IndicatorLive.scss.js";var m={large:s.large,medium:s.medium,small:s.small},n={buttonLike:s.buttonLike,indicator:s.indicator},d={large:18,medium:16,small:16},c={live:s.live,offline:s.offline},v=function(o,r){return"live"===o?"Data receiving in real-time":t(e,{children:["Asset isn’t Live",r&&t(e,{children:[i("br",{}),"Last active: ",r]})]})},f=function(e){var f=e.className,p=e.testId,u=e.children,L=e.state,b=e.size,h=void 0===b?"medium":b,j=e.type,T=void 0===j?"buttonLike":j,g=e.lastActive,x=e.disableTooltip,I=u||("live"===L?"Live":"Offline");return i(l,{title:v(L,g),placement:"bottom-start",disabled:x,children:t(a,{className:o(s.root,m[h],n[T],c[L],f),"data-testid":p,size:d[h],children:[I,i(r,{state:L,className:s.dot})]})})};export{f as IndicatorLive};
2
2
  //# sourceMappingURL=IndicatorLive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Menu/Menu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAoD,MAAM,OAAO,CAAC;AAQzF,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,OAAO,UAAW,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,gBAgCrD,CAAC;AAEF,eAAO,MAAM,WAAW,mBAsBvB,CAAC;AAMF,eAAO,MAAM,KAAK,mBA2BjB,CAAC;AAQF,eAAO,MAAM,aAAa,mBAiBzB,CAAC;AAKF,eAAO,MAAM,eAAe,mBAoB3B,CAAC;AAQF,eAAO,MAAM,UAAU,mBAwDtB,CAAC;AAMF,eAAO,MAAM,MAAM,mBA0BlB,CAAC;AAKF,eAAO,MAAM,eAAe,mBAsB3B,CAAC;AAQF,eAAO,MAAM,WAAW,mBAsCvB,CAAC;AAMF,eAAO,MAAM,QAAQ,mBAqCpB,CAAC"}
1
+ {"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Menu/Menu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAoD,MAAM,OAAO,CAAC;AAQzF,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,OAAO,UAAW,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,gBAgCrD,CAAC;AAEF,eAAO,MAAM,WAAW,mBAsBvB,CAAC;AAMF,eAAO,MAAM,KAAK,mBA2BjB,CAAC;AAQF,eAAO,MAAM,aAAa,mBAiBzB,CAAC;AAKF,eAAO,MAAM,eAAe,mBAoB3B,CAAC;AAQF,eAAO,MAAM,UAAU,mBAwDtB,CAAC;AAMF,eAAO,MAAM,MAAM,mBA0BlB,CAAC;AAKF,eAAO,MAAM,eAAe,mBAsB3B,CAAC;AAQF,eAAO,MAAM,WAAW,mBAsCvB,CAAC;AAMF,eAAO,MAAM,QAAQ,mBAsCpB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.32.0-5",
3
+ "version": "3.32.0-6",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "Shared components/utils for Corva ui projects",
6
6
  "keywords": [