@corva/ui 0.105.0-0 → 0.105.0-2

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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("classnames"),r=require("../../Text/Text.js"),s=require("./AppBadge.scss.js"),t=require("../../../constants/appPackages.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(a);exports.AppBadge=function(a){var n=a.app,c=(null==n?void 0:n.package)||{},u=c.label,A=c.version,l=c.package_code_version||A;return u!==t.PACKAGE_LABELS.PROD&&(u&&t.TEXT_FOR_PACKAGE_LABELS[u]||l)?e.jsx(r.Text,{size:14,className:i.default(s.root,u===t.PACKAGE_LABELS.DEV&&s.dev,u===t.PACKAGE_LABELS.BETA&&s.beta),tagName:"div",children:e.jsx("div",{className:s.inner,children:u?t.TEXT_FOR_PACKAGE_LABELS[u]:"v".concat(l)})}):null};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("classnames"),a=require("../../TextEndTruncated/TextEndTruncated.js"),t=require("./AppBadge.scss.js"),n=require("../../../constants/appPackages.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=s(r);exports.AppBadge=function(r){var s=r.app,c=(null==s?void 0:s.package)||{},A=c.label,d=c.version,E=c.package_code_version||d;return A!==n.PACKAGE_LABELS.PROD&&(A&&n.TEXT_FOR_PACKAGE_LABELS[A]||E)?e.jsx(a.TextEndTruncated,{className:u.default(t.root,A===n.PACKAGE_LABELS.DEV&&t.dev,A===n.PACKAGE_LABELS.BETA&&t.beta),children:A?n.TEXT_FOR_PACKAGE_LABELS[A]:"v".concat(E)}):null};
@@ -1 +1 @@
1
- "use strict";require('./../../../ext-esm/style-inject/dist/style-inject.es.js')('.AppBadge_root__adxXV{--CorvaUI-AppHeader-AppBadge-bg:var(--palette-background-b-6);font-style:italic;line-height:20px;padding-right:12px;position:relative;vertical-align:middle;white-space:nowrap}.AppBadge_root__adxXV:after{border-bottom:20px solid transparent;border-left:12px solid var(--CorvaUI-AppHeader-AppBadge-bg);content:"";position:absolute;right:0;top:0}.AppBadge_inner__6Zu7J{background:var(--CorvaUI-AppHeader-AppBadge-bg);padding:0 4px}.AppBadge_dev__6H456{--CorvaUI-AppHeader-AppBadge-bg:var(--palette-info-main)}.AppBadge_beta__VAt1O{--CorvaUI-AppHeader-AppBadge-bg:#ff5982}'),module.exports={spacing:"8",root:"AppBadge_root__adxXV",inner:"AppBadge_inner__6Zu7J",dev:"AppBadge_dev__6H456",beta:"AppBadge_beta__VAt1O"};
1
+ "use strict";require('./../../../ext-esm/style-inject/dist/style-inject.es.js')(".AppBadge_root__adxXV{background:var(--palette-background-b-6);flex-shrink:0;font-size:14px;font-style:italic;line-height:20px;mask:linear-gradient(-59deg,transparent 10.7px,#000 0);max-width:85px;padding:0 16px 0 4px;position:relative;vertical-align:middle;white-space:nowrap}.AppBadge_dev__6H456{background:var(--palette-info-main)}.AppBadge_beta__VAt1O{background:#ff5982}"),module.exports={spacing:"8",root:"AppBadge_root__adxXV",dev:"AppBadge_dev__6H456",beta:"AppBadge_beta__VAt1O"};
@@ -1 +1 @@
1
- {"version":3,"file":"AppBadge.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/AppHeader/AppBadge/AppBadge.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAG9B,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,QAAQ,YAAa,aAAa,gBA0B9C,CAAC"}
1
+ {"version":3,"file":"AppBadge.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/AppHeader/AppBadge/AppBadge.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAG9B,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,QAAQ,YAAa,aAAa,gBAsB9C,CAAC"}
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import e from"classnames";import{Text as r}from"../../Text/Text.js";import o from"./AppBadge.scss.js";import{PACKAGE_LABELS as s,TEXT_FOR_PACKAGE_LABELS as t}from"../../../constants/appPackages.js";var i=function(i){var n=i.app,c=(null==n?void 0:n.package)||{},m=c.label,p=c.version,l=c.package_code_version||p;return m!==s.PROD&&(m&&t[m]||l)?a(r,{size:14,className:e(o.root,m===s.DEV&&o.dev,m===s.BETA&&o.beta),tagName:"div",children:a("div",{className:o.inner,children:m?t[m]:"v".concat(l)})}):null};export{i as AppBadge};
1
+ import{jsx as r}from"react/jsx-runtime";import a from"classnames";import{TextEndTruncated as e}from"../../TextEndTruncated/TextEndTruncated.js";import o from"./AppBadge.scss.js";import{PACKAGE_LABELS as t,TEXT_FOR_PACKAGE_LABELS as n}from"../../../constants/appPackages.js";var s=function(s){var c=s.app,p=(null==c?void 0:c.package)||{},m=p.label,i=p.version,d=p.package_code_version||i;return m!==t.PROD&&(m&&n[m]||d)?r(e,{className:a(o.root,m===t.DEV&&o.dev,m===t.BETA&&o.beta),children:m?n[m]:"v".concat(d)}):null};export{s as AppBadge};
@@ -1 +1 @@
1
- import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var p={spacing:"8",root:"AppBadge_root__adxXV",inner:"AppBadge_inner__6Zu7J",dev:"AppBadge_dev__6H456",beta:"AppBadge_beta__VAt1O"};e('.AppBadge_root__adxXV{--CorvaUI-AppHeader-AppBadge-bg:var(--palette-background-b-6);font-style:italic;line-height:20px;padding-right:12px;position:relative;vertical-align:middle;white-space:nowrap}.AppBadge_root__adxXV:after{border-bottom:20px solid transparent;border-left:12px solid var(--CorvaUI-AppHeader-AppBadge-bg);content:"";position:absolute;right:0;top:0}.AppBadge_inner__6Zu7J{background:var(--CorvaUI-AppHeader-AppBadge-bg);padding:0 4px}.AppBadge_dev__6H456{--CorvaUI-AppHeader-AppBadge-bg:var(--palette-info-main)}.AppBadge_beta__VAt1O{--CorvaUI-AppHeader-AppBadge-bg:#ff5982}');export{p as default};
1
+ import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var a={spacing:"8",root:"AppBadge_root__adxXV",dev:"AppBadge_dev__6H456",beta:"AppBadge_beta__VAt1O"};e(".AppBadge_root__adxXV{background:var(--palette-background-b-6);flex-shrink:0;font-size:14px;font-style:italic;line-height:20px;mask:linear-gradient(-59deg,transparent 10.7px,#000 0);max-width:85px;padding:0 16px 0 4px;position:relative;vertical-align:middle;white-space:nowrap}.AppBadge_dev__6H456{background:var(--palette-info-main)}.AppBadge_beta__VAt1O{background:#ff5982}");export{a as default};
@@ -1 +1 @@
1
- {"version":3,"file":"AppHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AppHeader/AppHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAUjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAgG9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAInC,CAAC;AAEF,eAAO,MAAM,aAAa,mBAkCzB,CAAC;AAOF,eAAO,MAAM,QAAQ,mBAIpB,CAAC;AAMF,eAAO,MAAM,WAAW,mBAoDvB,CAAC;AAOF,eAAO,MAAM,kBAAkB,mBA0B9B,CAAC;AAOF,eAAO,MAAM,8BAA8B,mBAuB1C,CAAC;AAOF,eAAO,MAAM,cAAc,mBAyG1B,CAAC"}
1
+ {"version":3,"file":"AppHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AppHeader/AppHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAUjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAgG9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAInC,CAAC;AAEF,eAAO,MAAM,aAAa,mBA0CzB,CAAC;AAOF,eAAO,MAAM,QAAQ,mBAIpB,CAAC;AAMF,eAAO,MAAM,WAAW,mBAoDvB,CAAC;AAOF,eAAO,MAAM,kBAAkB,mBA0B9B,CAAC;AAOF,eAAO,MAAM,8BAA8B,mBAuB1C,CAAC;AAOF,eAAO,MAAM,cAAc,mBAsI1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.105.0-0",
3
+ "version": "0.105.0-2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"