@corva/ui 3.17.0-15 → 3.17.0-17
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/clients/subscriptions/constants.js +1 -1
- package/cjs-bundle/componentsV2/LoaderLinear/LoaderLinear.js +1 -1
- package/cjs-bundle/componentsV2/LoaderLinear/LoaderLinear.scss.js +1 -1
- package/clients/subscriptions/constants.d.ts.map +1 -1
- package/clients/subscriptions/constants.js +1 -1
- package/componentsV2/LoaderLinear/LoaderLinear.d.ts +3 -1
- package/componentsV2/LoaderLinear/LoaderLinear.d.ts.map +1 -1
- package/componentsV2/LoaderLinear/LoaderLinear.js +1 -1
- package/componentsV2/LoaderLinear/LoaderLinear.scss.js +1 -1
- package/componentsV2/LoaderLinear/LoaderLinear.stories.d.ts +2 -0
- package/componentsV2/LoaderLinear/LoaderLinear.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("query-string"),r=require("../../utils/env.js");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var s=t(e).parse(window.location.search),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("query-string"),r=require("../../utils/env.js");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var s=t(e).parse(window.location.search),o=r.isDevOrQAEnv?"2":"1",n=s.subscriptions_version||localStorage.getItem("subscriptions_version")||o;r.isDevOrQAEnv&&!localStorage.getItem("subscriptions_version_forced")&&(localStorage.setItem("subscriptions_version",n),localStorage.setItem("subscriptions_version_forced","1"));var i=function(){return"1"===n?"/":"/".concat(n)},c=process.env.REACT_APP_SUBSCRIPTIONS_URL||s.subscriptions_url||"https://subscriptions.qa.corva.ai",a="".concat(c).concat(i()),u=new RegExp("^/reports.*$");exports.IGNORED_ROUTES_REGEXP=u,exports.SUBSCRIPTIONS_URL=a,exports.getNamespace=i,exports.handleSubscriptionsVersion=function(e,r){return"1"===n?e:r};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("classnames"),t=require("react"),n=require("./LoaderLinear.scss.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(r),u={small:n.small,medium:n.medium},s={primary:n.primary,fancy:n.fancy};exports.LoaderLinear=function(r){var a=r.value,m=r.testId,c=r.className,o=r.size,d=void 0===o?"medium":o,l=r.type,f=void 0===l?"primary":l,v=(a||0===a)&&Number.isFinite(a),y=v?Math.min(100,Math.max(0,a)):0,p=t.useRef(null),j=t.useRef(0);return t.useEffect((function(){var e=p.current;if(!v&&e){var r=function(){j.current+=1,j.current>=5&&(j.current=0,requestAnimationFrame((function(){e.style.animation="none",requestAnimationFrame((function(){e.style.animation=null}))})))};return e.addEventListener("animationend",r),function(){return e.removeEventListener("animationend",r)}}}),[v]),e.jsx("div",{className:i.default(n.root,u[d],s[f],c),"data-testid":m,children:e.jsx("div",{className:i.default(n.bar,v?n.determinate:n.indeterminate),style:{"--percent":"".concat(y,"%")},ref:p})})};
|
|
2
2
|
//# sourceMappingURL=LoaderLinear.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')(".LoaderLinear_root__wqmu4.
|
|
1
|
+
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')("@keyframes LoaderLinear_indeterminate-right-1__AwGdJ{0%{right:120%}to{right:-5%}}@keyframes LoaderLinear_indeterminate-right-2__-tOZC{0%{right:-5%}to{right:-50%}}@keyframes LoaderLinear_indeterminate-left-1__ELBcb{0%{left:-150%}to{left:-100%}}@keyframes LoaderLinear_indeterminate-left-2__f8SYk{0%{left:-100%}to{left:10%}}@keyframes LoaderLinear_indeterminate-left-3__1Lpb1{0%{left:10%}to{left:100%}}.LoaderLinear_root__wqmu4{border-radius:10px;overflow:hidden;position:relative}.LoaderLinear_bar__Dviz3{border-radius:10px;bottom:0;left:0;position:absolute;top:0;transform-origin:left}.LoaderLinear_medium__8Risj{height:2px}.LoaderLinear_small__xjlaX{height:1px}.LoaderLinear_determinate__ANHde{left:calc(var(--percent) - 100%);transition:all .4s linear;width:100%}.LoaderLinear_indeterminate__wg0Dv{animation:LoaderLinear_indeterminate-right-1__AwGdJ 1.6s cubic-bezier(.16,1,.3,1) 0s 1,LoaderLinear_indeterminate-right-2__-tOZC .4s linear 1.6s 1,LoaderLinear_indeterminate-left-1__ELBcb .4s linear 0s 1,LoaderLinear_indeterminate-left-2__f8SYk 1.2s linear .4s 1,LoaderLinear_indeterminate-left-3__1Lpb1 .4s linear 1.6s 1;left:0;right:100%}.LoaderLinear_primary__-qVWv{background-color:#015e6a}.LoaderLinear_primary__-qVWv .LoaderLinear_bar__Dviz3{background-color:var(--palette-primary-main)}.LoaderLinear_fancy__VrbJs .LoaderLinear_determinate__ANHde{background:linear-gradient(90deg,rgb(from #a676ff r g b/.2),rgb(from #a676ff r g b/.6),rgb(from var(--palette-primary-main) r g b/.8),var(--palette-primary-light))}.LoaderLinear_fancy__VrbJs .LoaderLinear_indeterminate__wg0Dv{background:linear-gradient(90deg,rgb(from #a676ff r g b/0),rgb(from #a676ff r g b/.6),rgb(from var(--palette-primary-main) r g b/.8),var(--palette-primary-light))}"),module.exports={spacing:"8",root:"LoaderLinear_root__wqmu4",bar:"LoaderLinear_bar__Dviz3",medium:"LoaderLinear_medium__8Risj",small:"LoaderLinear_small__xjlaX",determinate:"LoaderLinear_determinate__ANHde",indeterminate:"LoaderLinear_indeterminate__wg0Dv","indeterminate-right-1":"LoaderLinear_indeterminate-right-1__AwGdJ","indeterminate-right-2":"LoaderLinear_indeterminate-right-2__-tOZC","indeterminate-left-1":"LoaderLinear_indeterminate-left-1__ELBcb","indeterminate-left-2":"LoaderLinear_indeterminate-left-2__f8SYk","indeterminate-left-3":"LoaderLinear_indeterminate-left-3__1Lpb1",primary:"LoaderLinear_primary__-qVWv",fancy:"LoaderLinear_fancy__VrbJs"};
|
|
2
2
|
//# sourceMappingURL=LoaderLinear.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/clients/subscriptions/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/clients/subscriptions/constants.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,0BAA0B,GAAI,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAMhE,CAAC;AAEF,eAAO,MAAM,YAAY,cAMxB,CAAC;AAOF,eAAO,MAAM,iBAAiB,QAA4B,CAAC;AAC3D,eAAO,MAAM,qBAAqB,QAA6B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as o from"query-string";import{isDevOrQAEnv as r}from"../../utils/env.js";var s=o.parse(window.location.search),t=r?"2":"1",e=s.subscriptions_version||localStorage.getItem("subscriptions_version")||t;r&&!localStorage.getItem("subscriptions_version_forced")&&(localStorage.setItem("subscriptions_version",e),localStorage.setItem("subscriptions_version_forced","1"));var i=function(o,r){return"1"===e?o:r},n=function(){return"1"===e?"/":"/".concat(e)},c=process.env.REACT_APP_SUBSCRIPTIONS_URL||s.subscriptions_url||"https://subscriptions.qa.corva.ai",a="".concat(c).concat(n()),p=new RegExp("^/reports.*$");export{p as IGNORED_ROUTES_REGEXP,a as SUBSCRIPTIONS_URL,n as getNamespace,i as handleSubscriptionsVersion};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
|
@@ -3,8 +3,10 @@ export type LoaderLinearProps = {
|
|
|
3
3
|
* Value in range of 0-100. If omitted, the loader becomes indeterminate
|
|
4
4
|
*/
|
|
5
5
|
value?: number;
|
|
6
|
+
type?: 'primary' | 'fancy';
|
|
7
|
+
size?: 'medium' | 'small';
|
|
6
8
|
className?: string;
|
|
7
9
|
testId?: string;
|
|
8
10
|
};
|
|
9
|
-
export declare const LoaderLinear: ({ value, testId, className }: LoaderLinearProps) => JSX.Element;
|
|
11
|
+
export declare const LoaderLinear: ({ value, testId, className, size, type, }: LoaderLinearProps) => JSX.Element;
|
|
10
12
|
//# sourceMappingURL=LoaderLinear.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderLinear.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/LoaderLinear/LoaderLinear.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;
|
|
1
|
+
{"version":3,"file":"LoaderLinear.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/LoaderLinear/LoaderLinear.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAE1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAeF,eAAO,MAAM,YAAY,8CAMtB,iBAAiB,gBA8DnB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import n from"classnames";import{useRef as r,useEffect as t}from"react";import i from"./LoaderLinear.scss.js";var a={small:i.small,medium:i.medium},m={primary:i.primary,fancy:i.fancy},o=function(o){var s=o.value,c=o.testId,u=o.className,d=o.size,l=void 0===d?"medium":d,f=o.type,v=void 0===f?"primary":f,p=(s||0===s)&&Number.isFinite(s),y=p?Math.min(100,Math.max(0,s)):0,L=r(null),N=r(0);return t((function(){var e=L.current;if(!p&&e){var n=function(){N.current+=1,N.current>=5&&(N.current=0,requestAnimationFrame((function(){e.style.animation="none",requestAnimationFrame((function(){e.style.animation=null}))})))};return e.addEventListener("animationend",n),function(){return e.removeEventListener("animationend",n)}}}),[p]),e("div",{className:n(i.root,a[l],m[v],u),"data-testid":c,children:e("div",{className:n(i.bar,p?i.determinate:i.indeterminate),style:{"--percent":"".concat(y,"%")},ref:L})})};export{o as LoaderLinear};
|
|
2
2
|
//# sourceMappingURL=LoaderLinear.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var r={spacing:"8",root:"LoaderLinear_root__wqmu4",bar:"LoaderLinear_bar__Dviz3",medium:"LoaderLinear_medium__8Risj",small:"LoaderLinear_small__xjlaX",determinate:"LoaderLinear_determinate__ANHde",indeterminate:"LoaderLinear_indeterminate__wg0Dv","indeterminate-right-1":"LoaderLinear_indeterminate-right-1__AwGdJ","indeterminate-right-2":"LoaderLinear_indeterminate-right-2__-tOZC","indeterminate-left-1":"LoaderLinear_indeterminate-left-1__ELBcb","indeterminate-left-2":"LoaderLinear_indeterminate-left-2__f8SYk","indeterminate-left-3":"LoaderLinear_indeterminate-left-3__1Lpb1",primary:"LoaderLinear_primary__-qVWv",fancy:"LoaderLinear_fancy__VrbJs"};e("@keyframes LoaderLinear_indeterminate-right-1__AwGdJ{0%{right:120%}to{right:-5%}}@keyframes LoaderLinear_indeterminate-right-2__-tOZC{0%{right:-5%}to{right:-50%}}@keyframes LoaderLinear_indeterminate-left-1__ELBcb{0%{left:-150%}to{left:-100%}}@keyframes LoaderLinear_indeterminate-left-2__f8SYk{0%{left:-100%}to{left:10%}}@keyframes LoaderLinear_indeterminate-left-3__1Lpb1{0%{left:10%}to{left:100%}}.LoaderLinear_root__wqmu4{border-radius:10px;overflow:hidden;position:relative}.LoaderLinear_bar__Dviz3{border-radius:10px;bottom:0;left:0;position:absolute;top:0;transform-origin:left}.LoaderLinear_medium__8Risj{height:2px}.LoaderLinear_small__xjlaX{height:1px}.LoaderLinear_determinate__ANHde{left:calc(var(--percent) - 100%);transition:all .4s linear;width:100%}.LoaderLinear_indeterminate__wg0Dv{animation:LoaderLinear_indeterminate-right-1__AwGdJ 1.6s cubic-bezier(.16,1,.3,1) 0s 1,LoaderLinear_indeterminate-right-2__-tOZC .4s linear 1.6s 1,LoaderLinear_indeterminate-left-1__ELBcb .4s linear 0s 1,LoaderLinear_indeterminate-left-2__f8SYk 1.2s linear .4s 1,LoaderLinear_indeterminate-left-3__1Lpb1 .4s linear 1.6s 1;left:0;right:100%}.LoaderLinear_primary__-qVWv{background-color:#015e6a}.LoaderLinear_primary__-qVWv .LoaderLinear_bar__Dviz3{background-color:var(--palette-primary-main)}.LoaderLinear_fancy__VrbJs .LoaderLinear_determinate__ANHde{background:linear-gradient(90deg,rgb(from #a676ff r g b/.2),rgb(from #a676ff r g b/.6),rgb(from var(--palette-primary-main) r g b/.8),var(--palette-primary-light))}.LoaderLinear_fancy__VrbJs .LoaderLinear_indeterminate__wg0Dv{background:linear-gradient(90deg,rgb(from #a676ff r g b/0),rgb(from #a676ff r g b/.6),rgb(from var(--palette-primary-main) r g b/.8),var(--palette-primary-light))}");export{r as default};
|
|
2
2
|
//# sourceMappingURL=LoaderLinear.scss.js.map
|
|
@@ -5,5 +5,7 @@ type Props = ComponentProps<typeof LoaderLinear>;
|
|
|
5
5
|
declare const meta: Meta<Props>;
|
|
6
6
|
export default meta;
|
|
7
7
|
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const Sizes: () => JSX.Element;
|
|
9
|
+
export declare const Types: () => JSX.Element;
|
|
8
10
|
export declare const DeterminateVsIndeterminate: () => JSX.Element;
|
|
9
11
|
//# sourceMappingURL=LoaderLinear.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderLinear.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/LoaderLinear/LoaderLinear.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LoaderLinear.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/LoaderLinear/LoaderLinear.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AASF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAAgC,CAAC;AAKrE,eAAO,MAAM,KAAK,mBAKjB,CAAC;AAQF,eAAO,MAAM,KAAK,mBAWjB,CAAC;AAQF,eAAO,MAAM,0BAA0B,mBAStC,CAAC"}
|