@maggioli-design-system/mds-text
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -5,3 +5,3 @@ 'use strict'; | ||
const index = require('./index-65e4f456.js'); | ||
const index = require('./index-d7d88336.js'); | ||
@@ -8,0 +8,0 @@ const defineCustomElements = (win, options) => { |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const index = require('./index-65e4f456.js'); | ||
const index = require('./index-d7d88336.js'); | ||
@@ -8,0 +8,0 @@ const typographyDefaultsVariant = { |
@@ -5,6 +5,6 @@ 'use strict'; | ||
const index = require('./index-65e4f456.js'); | ||
const index = require('./index-d7d88336.js'); | ||
/* | ||
Stencil Client Patch Browser v4.2.1 | MIT Licensed | https://stenciljs.com | ||
Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
@@ -11,0 +11,0 @@ const patchBrowser = () => { |
@@ -7,3 +7,3 @@ { | ||
"name": "@stencil/core", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"typescriptVersion": "5.1.6" | ||
@@ -10,0 +10,0 @@ }, |
@@ -8,2 +8,3 @@ const hash = (s) => { | ||
}; | ||
const randomInt = (max) => Math.floor(Math.random() * max); | ||
const unslugName = (name) => { | ||
@@ -22,2 +23,9 @@ var _a, _b, _c; | ||
const hashValue = (value) => `${value}-${hash(value)}`; | ||
export { unslugName, setAttributeIfEmpty, hashValue, }; | ||
const hashRandomValue = (value) => { | ||
const randomValue = randomInt(1000000); | ||
if (value) { | ||
return `${value}-${hash(randomValue.toString())}`; | ||
} | ||
return hash(randomValue.toString()); | ||
}; | ||
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, }; |
{ | ||
"timestamp": "2023-09-18T09:22:59", | ||
"timestamp": "2023-09-25T12:53:16", | ||
"compiler": { | ||
"name": "@stencil/core", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"typescriptVersion": "5.1.6" | ||
@@ -7,0 +7,0 @@ }, |
@@ -1,1 +0,1 @@ | ||
import{b as bootstrapLazy}from"./index-72b68b6e.js";export{s as setNonce}from"./index-72b68b6e.js";var defineCustomElements=function(e,t){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-text",[[1,"mds-text",{tag:[1537],truncate:[516],typography:[513],variant:[513]}]]]],t)};export{defineCustomElements}; | ||
import{b as bootstrapLazy}from"./index-378635c4.js";export{s as setNonce}from"./index-378635c4.js";var defineCustomElements=function(t,e){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-text",[[1,"mds-text",{tag:[1537],truncate:[516],typography:[513],variant:[513]}]]]],e)};export{defineCustomElements}; |
@@ -1,1 +0,1 @@ | ||
import{r as registerInstance,h,H as Host}from"./index-72b68b6e.js";var typographyDefaultsVariant={action:{tag:"span",selector:{default:"text-title-action",title:"text-title-action"}},caption:{tag:"span",selector:{default:"text-info-caption",info:"text-info-caption",read:"text-read-caption"}},detail:{tag:"p",selector:{default:"text-info-detail",info:"text-info-detail",read:"text-read-detail"}},h1:{tag:"h1",selector:{default:"text-title-h1",title:"text-title-h1"}},h2:{tag:"h2",selector:{default:"text-title-h2",title:"text-title-h2"}},h3:{tag:"h3",selector:{default:"text-title-h3",title:"text-title-h3"}},h4:{tag:"h4",selector:{default:"text-title-h4",title:"text-title-h4"}},h5:{tag:"h5",selector:{default:"text-title-h5",title:"text-title-h5"}},h6:{tag:"h6",selector:{default:"text-title-h6",title:"text-title-h6"}},hack:{tag:"code",selector:{default:"text-code-hack",mono:"text-code-hack"}},label:{tag:"label",selector:{default:"text-info-label",info:"text-info-label"}},option:{tag:"label",selector:{default:"text-info-option",info:"text-info-option"}},paragraph:{tag:"p",selector:{default:"text-info-paragraph",secondary:"text-secondary-paragraph",info:"text-info-paragraph",read:"text-read-paragraph"}},snippet:{tag:"code",selector:{default:"text-code-snippet",mono:"text-code-snippet"}},tip:{tag:"div",selector:{default:"text-info-tip",info:"text-info-tip"}}};var mdsTextCss=".text-title-h1{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:48px;line-height:3rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h2{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:36px;line-height:2.5rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h3{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:30px;line-height:2.25rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h4{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:24px;line-height:2rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h5{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:20px;line-height:1.75rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h6{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:16px;line-height:1.5rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-action{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:14px;line-height:1.5rem;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-paragraph{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:20px;line-height:2rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-detail{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:16px;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-caption{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-label{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:12px;line-height:1rem;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-option{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:10px;line-height:0.625rem;letter-spacing:-0.025em;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-tip{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:12px;line-height:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-read-paragraph{font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:20px;line-height:2rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-read-detail{font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:16px;line-height:1.5rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-read-caption{font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-code-snippet{font-family:'Roboto Mono', monospace;font-size:16px;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-code-hack{font-family:'Roboto Mono', monospace;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fixed{position:fixed}.absolute{position:absolute}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-text-selection-background:rgb(var(--label-sky-09));--mds-text-selection-color:rgb(var(--label-sky-01));display:-ms-flexbox;display:flex;min-width:0px}.text::-moz-selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text::selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text{display:inherit}:host([typography=\"snippet\"]){font-family:'Roboto Mono', monospace;font-size:16px;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"hack\"]){font-family:'Roboto Mono', monospace;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h1\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:48px;line-height:3rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h2\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:36px;line-height:2.5rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h3\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:30px;line-height:2.25rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h4\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:24px;line-height:2rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h5\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:20px;line-height:1.75rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h6\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:16px;line-height:1.5rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"action\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:14px;line-height:1.5rem;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"paragraph\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:20px;line-height:2rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"detail\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:16px;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"caption\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"label\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:12px;line-height:1rem;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"tip\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:12px;line-height:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"option\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:10px;line-height:0.625rem;letter-spacing:-0.025em;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"paragraph\"][variant=\"read\"]){font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:20px;line-height:2rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"detail\"][variant=\"read\"]){font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:16px;line-height:1.5rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"caption\"][variant=\"read\"]){font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([tag=\"article\"]),:host([tag=\"blockquote\"]),:host([tag=\"dd\"]),:host([tag=\"details\"]),:host([tag=\"div\"]),:host([tag=\"dl\"]),:host([tag=\"dt\"]),:host([tag=\"figcaption\"]),:host([tag=\"h1\"]),:host([tag=\"h2\"]),:host([tag=\"h3\"]),:host([tag=\"h4\"]),:host([tag=\"h5\"]),:host([tag=\"h6\"]),:host([tag=\"label\"]),:host([tag=\"legend\"]),:host([tag=\"li\"]),:host([tag=\"ol\"]),:host([tag=\"p\"]),:host([tag=\"pre\"]),:host([tag=\"summary\"]),:host([tag=\"ul\"]){display:block}:host([tag=\"abbr\"]),:host([tag=\"address\"]),:host([tag=\"b\"]),:host([tag=\"bdo\"]),:host([tag=\"cite\"]),:host([tag=\"code\"]),:host([tag=\"del\"]),:host([tag=\"dfn\"]),:host([tag=\"em\"]),:host([tag=\"i\"]),:host([tag=\"ins\"]),:host([tag=\"kbd\"]),:host([tag=\"mark\"]),:host([tag=\"q\"]),:host([tag=\"rb\"]),:host([tag=\"rt\"]),:host([tag=\"ruby\"]),:host([tag=\"s\"]),:host([tag=\"samp\"]),:host([tag=\"small\"]),:host([tag=\"span\"]),:host([tag=\"strong\"]),:host([tag=\"sub\"]),:host([tag=\"sup\"]),:host([tag=\"time\"]),:host([tag=\"u\"]),:host([tag=\"var\"]){display:inline}:host([tag=\"code\"]){border-radius:0.25rem;--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-09), var(--tw-bg-opacity));padding-left:0.25rem;padding-right:0.25rem;--tw-text-opacity:1;color:rgba(var(--tone-neutral-03), var(--tw-text-opacity));-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}:host([truncate]:not([truncate=\"false\"])){display:-ms-flexbox;display:flex}:host([truncate]:not([truncate=\"false\"])) .text{min-width:0px;-ms-flex-positive:1;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}abbr,address,article,b,bdo,blockquote,cite,code,dd,del,details,dfn,div,dl,dt,em,figcaption,h1,h2,h3,h4,h5,h6,i,ins,kbd,label,legend,li,mark,ol,p,pre,q,rb,rt,ruby,s,samp,small,span,strong,sub,summary,sup,time,u,ul,var,wbr{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;overflow:inherit;text-overflow:inherit}";var MdsText=function(){function t(t){registerInstance(this,t);this.tag=undefined;this.truncate=undefined;this.typography="detail";this.variant=undefined}t.prototype.render=function(){var t;var e=typographyDefaultsVariant[this.typography].tag;this.tag=(t=this.tag)!==null&&t!==void 0?t:e;return h(Host,null,h(this.tag,{class:"text"},h("slot",null)))};return t}();MdsText.style=mdsTextCss;export{MdsText as mds_text}; | ||
import{r as registerInstance,h,H as Host}from"./index-378635c4.js";var typographyDefaultsVariant={action:{tag:"span",selector:{default:"text-title-action",title:"text-title-action"}},caption:{tag:"span",selector:{default:"text-info-caption",info:"text-info-caption",read:"text-read-caption"}},detail:{tag:"p",selector:{default:"text-info-detail",info:"text-info-detail",read:"text-read-detail"}},h1:{tag:"h1",selector:{default:"text-title-h1",title:"text-title-h1"}},h2:{tag:"h2",selector:{default:"text-title-h2",title:"text-title-h2"}},h3:{tag:"h3",selector:{default:"text-title-h3",title:"text-title-h3"}},h4:{tag:"h4",selector:{default:"text-title-h4",title:"text-title-h4"}},h5:{tag:"h5",selector:{default:"text-title-h5",title:"text-title-h5"}},h6:{tag:"h6",selector:{default:"text-title-h6",title:"text-title-h6"}},hack:{tag:"code",selector:{default:"text-code-hack",mono:"text-code-hack"}},label:{tag:"label",selector:{default:"text-info-label",info:"text-info-label"}},option:{tag:"label",selector:{default:"text-info-option",info:"text-info-option"}},paragraph:{tag:"p",selector:{default:"text-info-paragraph",secondary:"text-secondary-paragraph",info:"text-info-paragraph",read:"text-read-paragraph"}},snippet:{tag:"code",selector:{default:"text-code-snippet",mono:"text-code-snippet"}},tip:{tag:"div",selector:{default:"text-info-tip",info:"text-info-tip"}}};var mdsTextCss=".text-title-h1{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:48px;line-height:3rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h2{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:36px;line-height:2.5rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h3{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:30px;line-height:2.25rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h4{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:24px;line-height:2rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h5{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:20px;line-height:1.75rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-h6{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:16px;line-height:1.5rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-title-action{font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:14px;line-height:1.5rem;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-paragraph{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:20px;line-height:2rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-detail{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:16px;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-caption{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-label{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:12px;line-height:1rem;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-option{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:10px;line-height:0.625rem;letter-spacing:-0.025em;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-info-tip{font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:12px;line-height:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-read-paragraph{font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:20px;line-height:2rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-read-detail{font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:16px;line-height:1.5rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-read-caption{font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-code-snippet{font-family:'Roboto Mono', monospace;font-size:16px;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-code-hack{font-family:'Roboto Mono', monospace;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fixed{position:fixed}.absolute{position:absolute}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-text-selection-background:rgb(var(--label-sky-09));--mds-text-selection-color:rgb(var(--label-sky-01));display:-ms-flexbox;display:flex;min-width:0px}.text::-moz-selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text::selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text{display:inherit}:host([typography=\"snippet\"]){font-family:'Roboto Mono', monospace;font-size:16px;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"hack\"]){font-family:'Roboto Mono', monospace;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h1\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:48px;line-height:3rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h2\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:36px;line-height:2.5rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h3\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:30px;line-height:2.25rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h4\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:24px;line-height:2rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h5\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:20px;line-height:1.75rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"h6\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:16px;line-height:1.5rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"action\"]){font-family:Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:14px;line-height:1.5rem;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"paragraph\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:20px;line-height:2rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"detail\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:16px;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"caption\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"label\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:12px;line-height:1rem;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"tip\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:12px;line-height:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"option\"]){font-family:Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;font-size:10px;line-height:0.625rem;letter-spacing:-0.025em;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"paragraph\"][variant=\"read\"]){font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:20px;line-height:2rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"detail\"][variant=\"read\"]){font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:16px;line-height:1.5rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=\"caption\"][variant=\"read\"]){font-family:'Merriweather', Times, 'Times New Roman', serif;font-size:14px;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([tag=\"article\"]),:host([tag=\"blockquote\"]),:host([tag=\"dd\"]),:host([tag=\"details\"]),:host([tag=\"div\"]),:host([tag=\"dl\"]),:host([tag=\"dt\"]),:host([tag=\"figcaption\"]),:host([tag=\"h1\"]),:host([tag=\"h2\"]),:host([tag=\"h3\"]),:host([tag=\"h4\"]),:host([tag=\"h5\"]),:host([tag=\"h6\"]),:host([tag=\"label\"]),:host([tag=\"legend\"]),:host([tag=\"li\"]),:host([tag=\"ol\"]),:host([tag=\"p\"]),:host([tag=\"pre\"]),:host([tag=\"summary\"]),:host([tag=\"ul\"]){display:block}:host([tag=\"abbr\"]),:host([tag=\"address\"]),:host([tag=\"b\"]),:host([tag=\"bdo\"]),:host([tag=\"cite\"]),:host([tag=\"code\"]),:host([tag=\"del\"]),:host([tag=\"dfn\"]),:host([tag=\"em\"]),:host([tag=\"i\"]),:host([tag=\"ins\"]),:host([tag=\"kbd\"]),:host([tag=\"mark\"]),:host([tag=\"q\"]),:host([tag=\"rb\"]),:host([tag=\"rt\"]),:host([tag=\"ruby\"]),:host([tag=\"s\"]),:host([tag=\"samp\"]),:host([tag=\"small\"]),:host([tag=\"span\"]),:host([tag=\"strong\"]),:host([tag=\"sub\"]),:host([tag=\"sup\"]),:host([tag=\"time\"]),:host([tag=\"u\"]),:host([tag=\"var\"]){display:inline}:host([tag=\"code\"]){border-radius:0.25rem;--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-09), var(--tw-bg-opacity));padding-left:0.25rem;padding-right:0.25rem;--tw-text-opacity:1;color:rgba(var(--tone-neutral-03), var(--tw-text-opacity));-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}:host([truncate]:not([truncate=\"false\"])){display:-ms-flexbox;display:flex}:host([truncate]:not([truncate=\"false\"])) .text{min-width:0px;-ms-flex-positive:1;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}abbr,address,article,b,bdo,blockquote,cite,code,dd,del,details,dfn,div,dl,dt,em,figcaption,h1,h2,h3,h4,h5,h6,i,ins,kbd,label,legend,li,mark,ol,p,pre,q,rb,rt,ruby,s,samp,small,span,strong,sub,summary,sup,time,u,ul,var,wbr{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;overflow:inherit;text-overflow:inherit}";var MdsText=function(){function t(t){registerInstance(this,t);this.tag=undefined;this.truncate=undefined;this.typography="detail";this.variant=undefined}t.prototype.render=function(){var t;var e=typographyDefaultsVariant[this.typography].tag;this.tag=(t=this.tag)!==null&&t!==void 0?t:e;return h(Host,null,h(this.tag,{class:"text"},h("slot",null)))};return t}();MdsText.style=mdsTextCss;export{MdsText as mds_text}; |
@@ -1,1 +0,1 @@ | ||
import{p as promiseResolve,b as bootstrapLazy}from"./index-72b68b6e.js";export{s as setNonce}from"./index-72b68b6e.js";var patchBrowser=function(){var r=import.meta.url;var e={};if(r!==""){e.resourcesUrl=new URL(".",r).href}return promiseResolve(e)};patchBrowser().then((function(r){return bootstrapLazy([["mds-text",[[1,"mds-text",{tag:[1537],truncate:[516],typography:[513],variant:[513]}]]]],r)})); | ||
import{p as promiseResolve,b as bootstrapLazy}from"./index-378635c4.js";export{s as setNonce}from"./index-378635c4.js";var patchBrowser=function(){var r=import.meta.url;var t={};if(r!==""){t.resourcesUrl=new URL(".",r).href}return promiseResolve(t)};patchBrowser().then((function(r){return bootstrapLazy([["mds-text",[[1,"mds-text",{tag:[1537],truncate:[516],typography:[513],variant:[513]}]]]],r)})); |
@@ -1,3 +0,3 @@ | ||
import { b as bootstrapLazy } from './index-72b68b6e.js'; | ||
export { s as setNonce } from './index-72b68b6e.js'; | ||
import { b as bootstrapLazy } from './index-378635c4.js'; | ||
export { s as setNonce } from './index-378635c4.js'; | ||
@@ -4,0 +4,0 @@ const defineCustomElements = (win, options) => { |
@@ -1,2 +0,2 @@ | ||
import { r as registerInstance, h, H as Host } from './index-72b68b6e.js'; | ||
import { r as registerInstance, h, H as Host } from './index-378635c4.js'; | ||
@@ -3,0 +3,0 @@ const typographyDefaultsVariant = { |
@@ -1,6 +0,6 @@ | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-72b68b6e.js'; | ||
export { s as setNonce } from './index-72b68b6e.js'; | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-378635c4.js'; | ||
export { s as setNonce } from './index-378635c4.js'; | ||
/* | ||
Stencil Client Patch Browser v4.2.1 | MIT Licensed | https://stenciljs.com | ||
Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
@@ -7,0 +7,0 @@ const patchBrowser = () => { |
@@ -1,1 +0,1 @@ | ||
import{p as t,b as c}from"./p-cccca6c7.js";export{s as setNonce}from"./p-cccca6c7.js";(()=>{const c=import.meta.url,a={};return""!==c&&(a.resourcesUrl=new URL(".",c).href),t(a)})().then((t=>c([["p-85934d85",[[1,"mds-text",{tag:[1537],truncate:[516],typography:[513],variant:[513]}]]]],t))); | ||
import{p as t,b as a}from"./p-df2f9afe.js";export{s as setNonce}from"./p-df2f9afe.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),t(e)})().then((t=>a([["p-71a617fa",[[1,"mds-text",{tag:[1537],truncate:[516],typography:[513],variant:[513]}]]]],t))); |
{ | ||
"timestamp": "2023-09-18T09:22:59", | ||
"timestamp": "2023-09-25T12:53:16", | ||
"compiler": { | ||
@@ -63,3 +63,3 @@ "name": "node", | ||
"generatedFiles": [ | ||
"./dist/cjs/index-65e4f456.js", | ||
"./dist/cjs/index-d7d88336.js", | ||
"./dist/cjs/index.cjs.js", | ||
@@ -69,3 +69,3 @@ "./dist/cjs/loader.cjs.js", | ||
"./dist/cjs/mds-text.cjs.js", | ||
"./dist/esm-es5/index-72b68b6e.js", | ||
"./dist/esm-es5/index-378635c4.js", | ||
"./dist/esm-es5/index.js", | ||
@@ -75,3 +75,3 @@ "./dist/esm-es5/loader.js", | ||
"./dist/esm-es5/mds-text.js", | ||
"./dist/esm/index-72b68b6e.js", | ||
"./dist/esm/index-378635c4.js", | ||
"./dist/esm/index.js", | ||
@@ -86,17 +86,17 @@ "./dist/esm/loader.js", | ||
"./dist/mds-text/mds-text.js", | ||
"./dist/mds-text/p-36791b72.system.js", | ||
"./dist/mds-text/p-50ea2036.system.js", | ||
"./dist/mds-text/p-85934d85.entry.js", | ||
"./dist/mds-text/p-91a616fc.system.js", | ||
"./dist/mds-text/p-a44d652c.system.entry.js", | ||
"./dist/mds-text/p-cccca6c7.js", | ||
"./dist/mds-text/p-f877007d.system.js", | ||
"./dist/mds-text/p-71a617fa.entry.js", | ||
"./dist/mds-text/p-df2f9afe.js", | ||
"./dist/mds-text/p-e940fd8e.system.js", | ||
"./dist/mds-text/p-f9631121.system.entry.js", | ||
"./www/build/index.esm.js", | ||
"./www/build/mds-text.esm.js", | ||
"./www/build/mds-text.js", | ||
"./www/build/p-36791b72.system.js", | ||
"./www/build/p-50ea2036.system.js", | ||
"./www/build/p-85934d85.entry.js", | ||
"./www/build/p-91a616fc.system.js", | ||
"./www/build/p-a44d652c.system.entry.js", | ||
"./www/build/p-cccca6c7.js", | ||
"./www/build/p-f877007d.system.js" | ||
"./www/build/p-71a617fa.entry.js", | ||
"./www/build/p-df2f9afe.js", | ||
"./www/build/p-e940fd8e.system.js", | ||
"./www/build/p-f9631121.system.entry.js" | ||
] | ||
@@ -134,6 +134,6 @@ }, | ||
], | ||
"bundleId": "p-85934d85", | ||
"fileName": "p-85934d85.entry.js", | ||
"bundleId": "p-71a617fa", | ||
"fileName": "p-71a617fa.entry.js", | ||
"imports": [ | ||
"p-cccca6c7.js" | ||
"p-df2f9afe.js" | ||
], | ||
@@ -152,3 +152,3 @@ "originalByteSize": 14867 | ||
"imports": [ | ||
"index-72b68b6e.js" | ||
"index-378635c4.js" | ||
], | ||
@@ -167,3 +167,3 @@ "originalByteSize": 14871 | ||
"imports": [ | ||
"index-72b68b6e.js" | ||
"index-378635c4.js" | ||
], | ||
@@ -179,6 +179,6 @@ "originalByteSize": 14871 | ||
], | ||
"bundleId": "p-a44d652c.system", | ||
"fileName": "p-a44d652c.system.entry.js", | ||
"bundleId": "p-f9631121.system", | ||
"fileName": "p-f9631121.system.entry.js", | ||
"imports": [ | ||
"p-91a616fc.system.js" | ||
"p-36791b72.system.js" | ||
], | ||
@@ -197,3 +197,3 @@ "originalByteSize": 15840 | ||
"imports": [ | ||
"index-65e4f456.js" | ||
"index-d7d88336.js" | ||
], | ||
@@ -554,3 +554,3 @@ "originalByteSize": 14947 | ||
"sc-mds-text": [ | ||
"p-cccca6c7.js" | ||
"p-df2f9afe.js" | ||
] | ||
@@ -557,0 +557,0 @@ }, |
declare const unslugName: (name: string) => string; | ||
declare const setAttributeIfEmpty: (element: HTMLElement, attribute: string, value: string) => string; | ||
declare const hashValue: (value: string) => string; | ||
export { unslugName, setAttributeIfEmpty, hashValue, }; | ||
declare const hashRandomValue: (value?: string) => string; | ||
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, }; |
{ | ||
"timestamp": "2023-09-18T08:43:05", | ||
"timestamp": "2023-09-25T12:40:03", | ||
"compiler": { | ||
"name": "@stencil/core", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"typescriptVersion": "5.1.6" | ||
@@ -251,2 +251,5 @@ }, | ||
"mds-paginator-item", | ||
"mds-price-table-features", | ||
"mds-price-table-features-cell", | ||
"mds-price-table-list-item", | ||
"mds-quote", | ||
@@ -328,2 +331,11 @@ "mds-stepper-bar-item", | ||
], | ||
"mds-price-table-features": [ | ||
"mds-text" | ||
], | ||
"mds-price-table-features-cell": [ | ||
"mds-text" | ||
], | ||
"mds-price-table-list-item": [ | ||
"mds-text" | ||
], | ||
"mds-quote": [ | ||
@@ -519,2 +531,7 @@ "mds-text" | ||
}, | ||
"src/components/mds-header-bar/meta/types.ts::MenuType": { | ||
"declaration": "export type MenuType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'", | ||
"docstring": "", | ||
"path": "src/components/mds-header-bar/meta/types.ts" | ||
}, | ||
"src/components/mds-header/meta/event-detail.ts::MdsHeaderEventDetail": { | ||
@@ -625,2 +642,7 @@ "declaration": "export interface MdsHeaderEventDetail {\n bar: HTMLMdsHeaderBarElement\n}", | ||
}, | ||
"src/components/mds-price-table-features-cell/meta/types.ts::PriceTableFeaturesCellType": { | ||
"declaration": "export type PriceTableFeaturesCellType =\n | 'custom'\n | 'label'\n | 'supported'\n | 'text'\n | 'unsupported'", | ||
"docstring": "", | ||
"path": "src/components/mds-price-table-features-cell/meta/types.ts" | ||
}, | ||
"src/components/mds-progress/meta/types.ts::DirectionType": { | ||
@@ -627,0 +649,0 @@ "declaration": "export type DirectionType =\n | 'horizontal'\n | 'vertical'", |
{ | ||
"name": "@maggioli-design-system/mds-text", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "mds-text is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.", | ||
@@ -31,3 +31,3 @@ "main": "dist/index.cjs.js", | ||
"@maggioli-design-system/styles": "^11.7.0", | ||
"@stencil/core": "^4.2.1", | ||
"@stencil/core": "^4.3.0", | ||
"clsx": "^1.2.1" | ||
@@ -34,0 +34,0 @@ }, |
@@ -59,2 +59,5 @@ # mds-text | ||
- [mds-paginator-item](../mds-paginator-item) | ||
- [mds-price-table-features](../mds-price-table-features) | ||
- [mds-price-table-features-cell](../mds-price-table-features-cell) | ||
- [mds-price-table-list-item](../mds-price-table-list-item) | ||
- [mds-quote](../mds-quote) | ||
@@ -93,2 +96,5 @@ - [mds-stepper-bar-item](../mds-stepper-bar-item) | ||
mds-paginator-item --> mds-text | ||
mds-price-table-features --> mds-text | ||
mds-price-table-features-cell --> mds-text | ||
mds-price-table-list-item --> mds-text | ||
mds-quote --> mds-text | ||
@@ -95,0 +101,0 @@ mds-stepper-bar-item --> mds-text |
@@ -9,2 +9,4 @@ const hash = (s: string): string => { | ||
const randomInt = (max: number): number => Math.floor(Math.random() * max) | ||
const unslugName = (name: string): string => { | ||
@@ -24,6 +26,16 @@ return name.split('/')?.slice(-1).pop()?.replace(/-/g, ' ') ?? name | ||
const hashRandomValue = (value?: string): string => { | ||
const randomValue = randomInt(1000000) | ||
if (value) { | ||
return `${value}-${hash(randomValue.toString())}` | ||
} | ||
return hash(randomValue.toString()) | ||
} | ||
export { | ||
unslugName, | ||
setAttributeIfEmpty, | ||
hashRandomValue, | ||
hashValue, | ||
} |
@@ -250,2 +250,3 @@ [ | ||
"mi/baseline/groups", | ||
"mi/baseline/horizontal-rule", | ||
"mi/baseline/indeterminate-check-box", | ||
@@ -276,2 +277,3 @@ "mi/baseline/info", | ||
"mi/baseline/wysiwyg", | ||
"mi/outline/help-outline", | ||
"mi/round/arrow-circle-down", | ||
@@ -278,0 +280,0 @@ "mi/round/email", |
@@ -1,1 +0,1 @@ | ||
import{p as t,b as c}from"./p-cccca6c7.js";export{s as setNonce}from"./p-cccca6c7.js";(()=>{const c=import.meta.url,a={};return""!==c&&(a.resourcesUrl=new URL(".",c).href),t(a)})().then((t=>c([["p-85934d85",[[1,"mds-text",{tag:[1537],truncate:[516],typography:[513],variant:[513]}]]]],t))); | ||
import{p as t,b as a}from"./p-df2f9afe.js";export{s as setNonce}from"./p-df2f9afe.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),t(e)})().then((t=>a([["p-71a617fa",[[1,"mds-text",{tag:[1537],truncate:[516],typography:[513],variant:[513]}]]]],t))); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
917824
12993
111
1235
Updated@stencil/core@^4.3.0