@descope/web-components-ui 1.0.415 → 1.0.417
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/dist/cjs/index.cjs.js +1579 -1410
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1519 -1351
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -0
- package/dist/umd/descope-enriched-text-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +2 -2
- package/src/components/descope-alert/AlertClass.js +104 -0
- package/src/components/descope-alert/index.js +6 -0
- package/src/components/descope-enriched-text/EnrichedTextClass.js +0 -3
- package/src/index.cjs.js +1 -0
- package/src/index.js +1 -0
- package/src/theme/components/alert.js +76 -0
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/link.js +0 -6
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[1456,5710],{35479:(e,t,r)=>{r.r(t),r.d(t,{AlertClass:()=>h});var n=r(94694),o=r(94619),s=r(7138),i=r(14944),l=r(70263);const a=(0,i.xE)("alert");class d extends((0,l.q)({componentName:a,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n    <style>\n      :host {\n        display: inline-flex;\n      }\n      :host > div {\n        display: flex;\n        width: 100%;\n      }\n      .icon {\n        flex-shrink: 0;\n      }\n      .content {\n        display: flex;\n        flex-wrap: wrap;\n        white-space: normal;\n        overflow-wrap: break-word;\n      }\n    </style>\n    <div>\n      <div class="icon"></div>\n      <div class="content">\n        <descope-enriched-text>\n          <slot></slot>\n        </descope-enriched-text>\n      </div>\n    </div>\n    '}init(){super.init?.(),this.slotEle=this.shadowRoot.querySelector("slot"),this.textComp=this.shadowRoot.querySelector("descope-enriched-text"),this.slotEle.addEventListener("slotchange",this.handleSlotChange.bind(this)),(0,i.EA)(this,this.textComp,["variant","full-width","link-target-blank"])}handleSlotChange(){const e=this.slotEle.assignedNodes({flatten:!0});e.length&&(this.textComp.textContent=e[0]?.textContent||"")}}const{icon:c}={icon:{selector:()=>".icon"}},h=(0,s.Zz)((0,o.RF)({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},textColor:{selector:n.EnrichedTextClass.componentName,property:n.EnrichedTextClass.cssVarList.textColor},backgroundColor:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},fontSize:[{},{selector:n.EnrichedTextClass.componentName,property:n.EnrichedTextClass.cssVarList.fontSize}],gap:{},horizontalPadding:[{property:"padding-top"},{property:"padding-bottom"}],verticalPadding:[{property:"padding-right"},{property:"padding-left"}],alignItems:{},icon:[{...c,property:"content"},{...c,property:"display",fallback:"none"}],iconSize:[{...c,property:"width"},{...c,property:"height"}]}}),(0,o.RF)({componentNameOverride:(0,i.xE)("enriched-text")}),(0,o.RF)({componentNameOverride:(0,i.xE)("text")}),o.VO,o.tQ)(d);customElements.define(a,h)},96431:(e,t,r)=>{r.d(t,{T:()=>c,m:()=>p});var n=r(61672),o=r(94619),s=r(7138),i=r(14944),l=r(74136),a=r(70263),d=r(62583);const c=(0,i.xE)("enriched-text");class h extends((0,a.q)({componentName:c,baseSelector:":host > div"})){#e;#t;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n    <style>\n      :host {\n        line-height: 1em;\n        word-break: break-word;\n      }\n      :host > slot {\n        width: 100%;\n        display: inline-block;\n      }\n      *, *:last-child {\n        margin: 0;\n      }\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6,\n      p {\n        margin-bottom: 1em;\n      }\n      a {\n        cursor: pointer;\n      }\n      blockquote {\n        padding: 0 2em;\n      }\n      u {\n        text-decoration: underline\n      }\n      s {\n        color: currentColor;\n      }\n    </style>\n    <div class="content"></div>\n    ',this.#r(),(0,i.Ge)(this,this.#n.bind(this))}static get observedAttributes(){return["readonly","link-target-blank"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&("readonly"===e&&this.onReadOnlyChange("true"===r),"link-target-blank"===e&&this.#r())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(e,t,r,n,o)=>("_"===e[t].markup&&(e[t].tag="u"),this.#t(e,t,r,n,o)),this.processor.renderer.rules.em_close=(e,t,r,n,o)=>("_"===e[t].markup&&(e[t].tag="u"),this.#t(e,t,r,n,o))}#o(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(e,t,r,n,o)=>(e[t].attrSet("target","_blank"),this.#e(e,t,r,n,o)):this.processor.renderer.rules.link_open=this.#e}#s(){this.processor&&this.processor.disable(l.M)}#i(){this.#s()}#l(){this.#e=this.processor.renderer.rules.link_open||((e,t,r,n,o)=>o.renderToken(e,t,r)),this.#t=this.processor.renderer.rules.em_open||((e,t,r,n,o)=>o.renderToken(e,t,r))}#r(){this.processor=new n.A("commonmark",{html:!0}),this.#l(),this.#i(),this.#o(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#n(){if(!this.processor)return;let e=(0,d.G)(this.innerHTML);!e?.trim()&&this.isConnected?this.setAttribute("empty","true"):this.removeAttribute("empty");try{const t=this.processor.parse(e,{references:void 0});e=this.processor.renderer.render(t,{html:!0,breaks:!0})}catch(e){console.warn("Not parsing invalid markdown token")}this.contentNode.innerHTML=e}onReadOnlyChange(e){e?this.contentNode.setAttribute("inert",e):this.contentNode.removeAttribute("inert")}}const p=(0,s.Zz)((0,o.RF)({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDisplay:{selector:()=>":host",property:"display",fallback:"inline-block"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},fontWeightBold:[{selector:()=>":host strong",property:"font-weight"},{selector:()=>":host b",property:"font-weight"}],textColor:{property:"color"},textLineHeight:{property:"line-height"},textAlign:{},linkColor:{selector:"a",property:"color"},linkTextDecoration:{selector:"a",property:"text-decoration"},linkHoverTextDecoration:{selector:"a:hover",property:"text-decoration"},minHeight:{},minWidth:{}}}),(0,o.RF)({componentNameOverride:(0,i.xE)("link")}),(0,o.RF)({componentNameOverride:(0,i.xE)("text")}),o.VO,o.tQ)(h)},74136:(e,t,r)=>{r.d(t,{M:()=>n});const n=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"]},62583:(e,t,r)=>{r.d(t,{G:()=>n});const n=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value}},94694:(e,t,r)=>{r.r(t),r.d(t,{EnrichedTextClass:()=>n.m});var n=r(96431);customElements.define(n.T,n.m)}}]);
         | 
| @@ -1 +1 @@ | |
| 1 | 
            -
            "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5710],{ | 
| 1 | 
            +
            "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5710],{96431:(e,t,r)=>{r.d(t,{T:()=>a,m:()=>p});var n=r(61672),o=r(94619),s=r(7138),i=r(14944),l=r(74136),c=r(70263),h=r(62583);const a=(0,i.xE)("enriched-text");class d extends((0,c.q)({componentName:a,baseSelector:":host > div"})){#e;#t;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n    <style>\n      :host {\n        line-height: 1em;\n        word-break: break-word;\n      }\n      :host > slot {\n        width: 100%;\n        display: inline-block;\n      }\n      *, *:last-child {\n        margin: 0;\n      }\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6,\n      p {\n        margin-bottom: 1em;\n      }\n      a {\n        cursor: pointer;\n      }\n      blockquote {\n        padding: 0 2em;\n      }\n      u {\n        text-decoration: underline\n      }\n      s {\n        color: currentColor;\n      }\n    </style>\n    <div class="content"></div>\n    ',this.#r(),(0,i.Ge)(this,this.#n.bind(this))}static get observedAttributes(){return["readonly","link-target-blank"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&("readonly"===e&&this.onReadOnlyChange("true"===r),"link-target-blank"===e&&this.#r())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(e,t,r,n,o)=>("_"===e[t].markup&&(e[t].tag="u"),this.#t(e,t,r,n,o)),this.processor.renderer.rules.em_close=(e,t,r,n,o)=>("_"===e[t].markup&&(e[t].tag="u"),this.#t(e,t,r,n,o))}#o(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(e,t,r,n,o)=>(e[t].attrSet("target","_blank"),this.#e(e,t,r,n,o)):this.processor.renderer.rules.link_open=this.#e}#s(){this.processor&&this.processor.disable(l.M)}#i(){this.#s()}#l(){this.#e=this.processor.renderer.rules.link_open||((e,t,r,n,o)=>o.renderToken(e,t,r)),this.#t=this.processor.renderer.rules.em_open||((e,t,r,n,o)=>o.renderToken(e,t,r))}#r(){this.processor=new n.A("commonmark",{html:!0}),this.#l(),this.#i(),this.#o(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#n(){if(!this.processor)return;let e=(0,h.G)(this.innerHTML);!e?.trim()&&this.isConnected?this.setAttribute("empty","true"):this.removeAttribute("empty");try{const t=this.processor.parse(e,{references:void 0});e=this.processor.renderer.render(t,{html:!0,breaks:!0})}catch(e){console.warn("Not parsing invalid markdown token")}this.contentNode.innerHTML=e}onReadOnlyChange(e){e?this.contentNode.setAttribute("inert",e):this.contentNode.removeAttribute("inert")}}const p=(0,s.Zz)((0,o.RF)({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDisplay:{selector:()=>":host",property:"display",fallback:"inline-block"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},fontWeightBold:[{selector:()=>":host strong",property:"font-weight"},{selector:()=>":host b",property:"font-weight"}],textColor:{property:"color"},textLineHeight:{property:"line-height"},textAlign:{},linkColor:{selector:"a",property:"color"},linkTextDecoration:{selector:"a",property:"text-decoration"},linkHoverTextDecoration:{selector:"a:hover",property:"text-decoration"},minHeight:{},minWidth:{}}}),(0,o.RF)({componentNameOverride:(0,i.xE)("link")}),(0,o.RF)({componentNameOverride:(0,i.xE)("text")}),o.VO,o.tQ)(d)},74136:(e,t,r)=>{r.d(t,{M:()=>n});const n=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"]},62583:(e,t,r)=>{r.d(t,{G:()=>n});const n=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value}},94694:(e,t,r)=>{r.r(t),r.d(t,{EnrichedTextClass:()=>n.m});var n=r(96431);customElements.define(n.T,n.m)}}]);
         | 
    
        package/dist/umd/index.js
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            !function(e,s){"object"==typeof exports&&"object"==typeof module?module.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof exports?exports.DescopeUI=s():e.DescopeUI=s()}(self,(()=>(()=>{var e,s,o,d={97301:(e,s,o)=>{var d={"./boolean-fields/descope-boolean-field-internal/index.js":[53716,650,4619,7362],"./boolean-fields/descope-checkbox/index.js":[12388,650,8164,9895,3222,9167,1033,5273,4619,4838],"./boolean-fields/descope-switch-toggle/index.js":[57836,650,8164,9895,3222,9167,1033,5273,4619,1448],"./button-selection-group-fields/descope-button-multi-selection-group-internal/index.js":[39173,650,4619,8399],"./button-selection-group-fields/descope-button-multi-selection-group/index.js":[82329,650,8164,9895,1033,2838,7824,4619,3829],"./button-selection-group-fields/descope-button-selection-group-internal/index.js":[19509,650,4619,7079],"./button-selection-group-fields/descope-button-selection-group-item/index.js":[42426,650,8164,9895,1033,2838,7824,4619,1837],"./button-selection-group-fields/descope-button-selection-group/index.js":[7815,650,8164,9895,1033,2838,7824,4619,2141],"./descope-apps-list/index.js":[94073,650,8164,9895,6637,6418,3711,1414,4619,3057],"./descope-avatar/index.js":[23008,650,8164,9895,6637,6418,3711,1414,4619,2645],"./descope-badge/index.js":[58765,650,4619,9553],"./descope-button/index.js":[1058,650,8164,9895,1033,2838,4619,9984],"./descope-code-snippet/index.js":[52475,650,9878,4619,3521],"./descope-combo-box/index.js":[4480,650,8164,9895,3222,9167,3711,2566,9632,4619,4480,7052],"./descope-container/index.js":[43713,650,4619,8689],"./descope-date-field/descope-calendar/index.js":[18562,650,8164,9895,3222,9167,1033,3711,2838,2566,9632,7607,4619,4480,6028],"./descope-date-field/index.js":[66509,650,8164,9895,3222,9167,6637,1033,6418,3711,2838,2566,9632,7607,8980,4619,4480,6028,9257],"./descope-divider/index.js":[53665,650,4619,8819],"./descope-email-field/index.js":[91046,650,8164,9895,3222,9167,4619,5695],"./descope-enriched-text/index.js":[39e3,650,1672,4619,5710],"./descope-grid/descope-grid-custom-column/index.js":[96969,8164,3607,9176],"./descope-grid/descope-grid-item-details-column/index.js":[85198,8164,9895,6637,6418,3607,2381],"./descope-grid/descope-grid-selection-column/index.js":[79120,650,8164,9895,3222,9167,1033,3607,5273,4619,3305],"./descope-grid/descope-grid-text-column/index.js":[36486,8164,3607,8108],"./descope-grid/index.js":[30954,650,8164,9895,3222,9167,6637,1033,6418,2566,3607,5273,9878,2919,4619,2200],"./descope-hybrid-field/index.js":[56614,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,6726,4619,4480,2755,9894,7299],"./descope-icon/index.js":[21471,650,2838,4619,7401],"./descope-image/index.js":[90313,650,4619,9175],"./descope-link/index.js":[31678,650,4619,7792],"./descope-list/index.js":[36911,650,4619,7640],"./descope-loader-linear/index.js":[22339,650,4619,8009],"./descope-loader-radial/index.js":[86715,650,4619,7163],"./descope-logo/index.js":[47713,650,4619,1239],"./descope-modal/index.js":[826,650,8164,3711,1437,4619,4139],"./descope-multi-select-combo-box/index.js":[10664,650,8164,9895,3222,9167,3711,2566,9632,6474,4619,1331],"./descope-new-password/descope-new-password-internal/index.js":[32039,650,4619,8603],"./descope-new-password/index.js":[26586,650,8164,9895,3222,9167,6637,1033,6418,351,4619,4364],"./descope-notification/descope-notification-card/index.js":[39749,650,8164,4834,4619,7326],"./descope-notification/index.js":[35592,650,8164,4834,4619,8019],"./descope-notp-image/index.js":[22529,650,4619,2251],"./descope-number-field/index.js":[37041,650,8164,9895,3222,9167,5412,4619,7944],"./descope-passcode/descope-passcode-internal/index.js":[81443,650,4619,3359],"./descope-passcode/index.js":[40868,650,8164,9895,3222,9167,6637,6418,8162,4619,8884],"./descope-password/index.js":[1279,650,8164,9895,3222,9167,1033,351,4619,6969],"./descope-policy-validation/index.js":[28184,650,4619,2996],"./descope-radio-group/index.js":[94702,650,8164,9895,3222,1033,5086,4619,9399],"./descope-recaptcha/index.js":[19552,650,4619,3847],"./descope-scopes-list/index.js":[78538,650,8164,9895,3222,9167,1033,5273,4619,1674],"./descope-security-questions-setup/index.js":[69555,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,7212,4619,4480,3594],"./descope-security-questions-verify/index.js":[45307,650,8164,9895,3222,9167,6637,6418,4619,9446],"./descope-text-area/index.js":[641,650,8164,9895,3222,9167,286,4619,5686],"./descope-text-field/index.js":[89348,650,8164,9895,3222,9167,6637,6418,4619,5166],"./descope-text/index.js":[16429,650,4619,171],"./descope-third-party-app-logo/index.js":[63200,650,2838,4619,230],"./descope-totp-image/index.js":[89011,650,4619,6213],"./descope-upload-file/index.js":[82147,650,8164,9895,1033,2838,5443,4619,9636],"./descope-user-attribute/index.js":[91132,650,8164,9895,6637,1033,2838,5026,4619,1578],"./descope-user-auth-method/index.js":[56780,650,8164,9895,6637,1033,2838,7407,4619,9990],"./mapping-fields/descope-mappings-field/descope-mapping-item/index.js":[91491,650,4619,2230],"./mapping-fields/descope-mappings-field/descope-mappings-field-internal/index.js":[88858,650,4619,9522],"./mapping-fields/descope-mappings-field/index.js":[64551,650,8164,9895,3222,9167,6637,1033,6418,3711,2838,2566,9632,1053,4619,4480,7095],"./mapping-fields/descope-saml-group-mappings/descope-saml-group-mappings-internal/index.js":[71828,650,4619,9708],"./mapping-fields/descope-saml-group-mappings/index.js":[28511,650,8164,9895,3222,9167,6637,1033,6418,3711,2838,2566,9632,1053,4619,4480,6832],"./phone-fields/descope-phone-field/descope-phone-field-internal/index.js":[54930,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,6726,4619,4480,2755,2878],"./phone-fields/descope-phone-field/index.js":[96442,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,6726,4619,4480,2755,9894],"./phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/index.js":[46633,650,8164,9895,3222,9167,6637,6418,4619,2755,8657],"./phone-fields/descope-phone-input-box-field/index.js":[87743,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,4619,4480,2755,4043]};function i(e){if(!o.o(d,e))return Promise.resolve().then((()=>{var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}));var s=d[e],i=s[0];return Promise.all(s.slice(1).map(o.e)).then((()=>o(i)))}i.keys=()=>Object.keys(d),i.id=97301,e.exports=i},6461:(e,s,o)=>{"use strict";o.r(s),o.d(s,{componentsThemeManager:()=>d});const d=new class{static mountOnPropName="DescopeThemeManager";#e={};#s="light";#o=new Set;#d(){this.#o.forEach((e=>e?.()))}get currentThemeName(){return this.#s}set currentThemeName(e){this.#s=e,this.#d()}get currentTheme(){return this.#e[this.currentThemeName]}onCurrentThemeChange(e){return this.#o.add(e),()=>{this.#o.delete(e)}}set themes(e){this.#e=e,this.#d()}get hasThemes(){return!!Object.keys(this.#e).length}}},41216:(e,s,o)=>{const{componentsThemeManager:d}=o(6461),i=o(97301);e.exports=i.keys().reduce(((e,s)=>{const o=s.replace(/.*?([^\/]+)\/index\.js$/,"$1");return o.endsWith("-internal")||(e[o]=()=>i(s)),e}),{}),e.exports.componentsThemeManager=d}},i={};function n(e){var s=i[e];if(void 0!==s)return s.exports;var o=i[e]={exports:{}};return d[e].call(o.exports,o,o.exports,n),o.exports}n.m=d,e=[],n.O=(s,o,d,i)=>{if(!o){var t=1/0;for(a=0;a<e.length;a++){for(var[o,d,i]=e[a],p=!0,c=0;c<o.length;c++)(!1&i||t>=i)&&Object.keys(n.O).every((e=>n.O[e](o[c])))?o.splice(c--,1):(p=!1,i<t&&(t=i));if(p){e.splice(a--,1);var r=d();void 0!==r&&(s=r)}}return s}i=i||0;for(var a=e.length;a>0&&e[a-1][2]>i;a--)e[a]=e[a-1];e[a]=[o,d,i]},n.F={},n.E=e=>{Object.keys(n.F).map((s=>{n.F[s](e)}))},n.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return n.d(s,{a:s}),s},n.d=(e,s)=>{for(var o in s)n.o(s,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:s[o]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((s,o)=>(n.f[o](e,s),s)),[])),n.u=e=>(({171:"descope-text-index-js",230:"descope-third-party-app-logo-index-js",1239:"descope-logo-index-js",1331:"descope-multi-select-combo-box-index-js",1448:"boolean-fields-descope-switch-toggle-index-js",1578:"descope-user-attribute-index-js",1674:"descope-scopes-list-index-js",1837:"button-selection-group-fields-descope-button-selection-group-item-index-js",2141:"button-selection-group-fields-descope-button-selection-group-index-js",2200:"descope-grid-index-js",2230:"mapping-fields-descope-mappings-field-descope-mapping-item-index-js",2251:"descope-notp-image-index-js",2381:"descope-grid-descope-grid-item-details-column-index-js",2645:"descope-avatar-index-js",2878:"phone-fields-descope-phone-field-descope-phone-field-internal-index-js",2996:"descope-policy-validation-index-js",3057:"descope-apps-list-index-js",3305:"descope-grid-descope-grid-selection-column-index-js",3359:"descope-passcode-descope-passcode-internal-index-js",3521:"descope-code-snippet-index-js",3594:"descope-security-questions-setup-index-js",3829:"button-selection-group-fields-descope-button-multi-selection-group-index-js",3847:"descope-recaptcha-index-js",4043:"phone-fields-descope-phone-input-box-field-index-js",4139:"descope-modal-index-js",4364:"descope-new-password-index-js",4838:"boolean-fields-descope-checkbox-index-js",5166:"descope-text-field-index-js",5686:"descope-text-area-index-js",5695:"descope-email-field-index-js",5710:"descope-enriched-text-index-js",6028:"descope-date-field-descope-calendar-index-js",6213:"descope-totp-image-index-js",6832:"mapping-fields-descope-saml-group-mappings-index-js",6969:"descope-password-index-js",7052:"descope-combo-box-index-js",7079:"button-selection-group-fields-descope-button-selection-group-internal-index-js",7095:"mapping-fields-descope-mappings-field-index-js",7163:"descope-loader-radial-index-js",7299:"descope-hybrid-field-index-js",7326:"descope-notification-descope-notification-card-index-js",7362:"boolean-fields-descope-boolean-field-internal-index-js",7401:"descope-icon-index-js",7640:"descope-list-index-js",7792:"descope-link-index-js",7944:"descope-number-field-index-js",8009:"descope-loader-linear-index-js",8019:"descope-notification-index-js",8108:"descope-grid-descope-grid-text-column-index-js",8399:"button-selection-group-fields-descope-button-multi-selection-group-internal-index-js",8603:"descope-new-password-descope-new-password-internal-index-js",8657:"phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js",8689:"descope-container-index-js",8819:"descope-divider-index-js",8884:"descope-passcode-index-js",9175:"descope-image-index-js",9176:"descope-grid-descope-grid-custom-column-index-js",9257:"descope-date-field-index-js",9399:"descope-radio-group-index-js",9446:"descope-security-questions-verify-index-js",9522:"mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js",9553:"descope-badge-index-js",9636:"descope-upload-file-index-js",9708:"mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js",9894:"phone-fields-descope-phone-field-index-js",9984:"descope-button-index-js",9990:"descope-user-auth-method-index-js"}[e]||e)+".js"),n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),s={},o="@descope/web-components-ui:",n.l=(e,d,i,t)=>{if(s[e])s[e].push(d);else{var p,c;if(void 0!==i)for(var r=document.getElementsByTagName("script"),a=0;a<r.length;a++){var l=r[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+i){p=l;break}}p||(c=!0,(p=document.createElement("script")).charset="utf-8",p.timeout=120,n.nc&&p.setAttribute("nonce",n.nc),p.setAttribute("data-webpack",o+i),p.src=e),s[e]=[d];var u=(o,d)=>{p.onerror=p.onload=null,clearTimeout(x);var i=s[e];if(delete s[e],p.parentNode&&p.parentNode.removeChild(p),i&&i.forEach((e=>e(d))),o)return o(d)},x=setTimeout(u.bind(null,void 0,{type:"timeout",target:p}),12e4);p.onerror=u.bind(null,p.onerror),p.onload=u.bind(null,p.onload),c&&document.head.appendChild(p)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var s=n.g.document;if(!e&&s&&(s.currentScript&&"SCRIPT"===s.currentScript.tagName.toUpperCase()&&(e=s.currentScript.src),!e)){var o=s.getElementsByTagName("script");if(o.length)for(var d=o.length-1;d>-1&&(!e||!/^http(s?):/.test(e));)e=o[d--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={5536:0};n.f.j=(s,o)=>{var d=n.o(e,s)?e[s]:void 0;if(0!==d)if(d)o.push(d[2]);else{var i=new Promise(((o,i)=>d=e[s]=[o,i]));o.push(d[2]=i);var t=n.p+n.u(s),p=new Error;n.l(t,(o=>{if(n.o(e,s)&&(0!==(d=e[s])&&(e[s]=void 0),d)){var i=o&&("load"===o.type?"missing":o.type),t=o&&o.target&&o.target.src;p.message="Loading chunk "+s+" failed.\n("+i+": "+t+")",p.name="ChunkLoadError",p.type=i,p.request=t,d[1](p)}}),"chunk-"+s,s)}},n.F.j=s=>{if(!n.o(e,s)||void 0===e[s]){e[s]=null;var o=document.createElement("link");n.nc&&o.setAttribute("nonce",n.nc),o.rel="prefetch",o.as="script",o.href=n.p+n.u(s),document.head.appendChild(o)}},n.O.j=s=>0===e[s];var s=(s,o)=>{var d,i,[t,p,c]=o,r=0;if(t.some((s=>0!==e[s]))){for(d in p)n.o(p,d)&&(n.m[d]=p[d]);if(c)var a=c(n)}for(s&&s(o);r<t.length;r++)i=t[r],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(a)},o=self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[];o.forEach(s.bind(null,0)),o.push=s.bind(null,o.push.bind(o))})(),n.O(0,[5536],(()=>{[650,4619,7362,8164,9895,3222,9167,1033,5273,4838,1448,8399,2838,7824,3829,7079,1837,2141,6637,6418,3711,1414,3057,2645,9553,9984,9878,3521,2566,9632,4480,7052,8689,7607,6028,8980,9257,8819,5695,1672,5710,3607,9176,2381,3305,8108,2919,2200,6726,2755,9894,7299,7401,9175,7792,7640,8009,7163,1239,1437,4139,6474,1331,8603,351,4364,4834,7326,8019,2251,5412,7944,3359,8162,8884,6969,2996,5086,9399,3847,1674,7212,3594,9446,286,5686,5166,171,230,6213,5443,9636,5026,1578,7407,9990,2230,9522,1053,7095,9708,6832,2878,8657,4043].map(n.E)}),5);var t=n(41216);return n.O(t)})()));
         | 
| 1 | 
            +
            !function(e,s){"object"==typeof exports&&"object"==typeof module?module.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof exports?exports.DescopeUI=s():e.DescopeUI=s()}(self,(()=>(()=>{var e,s,o,d={97301:(e,s,o)=>{var d={"./boolean-fields/descope-boolean-field-internal/index.js":[53716,650,4619,7362],"./boolean-fields/descope-checkbox/index.js":[12388,650,8164,9895,3222,9167,1033,5273,4619,4838],"./boolean-fields/descope-switch-toggle/index.js":[57836,650,8164,9895,3222,9167,1033,5273,4619,1448],"./button-selection-group-fields/descope-button-multi-selection-group-internal/index.js":[39173,650,4619,8399],"./button-selection-group-fields/descope-button-multi-selection-group/index.js":[82329,650,8164,9895,1033,2838,7824,4619,3829],"./button-selection-group-fields/descope-button-selection-group-internal/index.js":[19509,650,4619,7079],"./button-selection-group-fields/descope-button-selection-group-item/index.js":[42426,650,8164,9895,1033,2838,7824,4619,1837],"./button-selection-group-fields/descope-button-selection-group/index.js":[7815,650,8164,9895,1033,2838,7824,4619,2141],"./descope-alert/index.js":[35479,650,1672,4619,1456],"./descope-apps-list/index.js":[94073,650,8164,9895,6637,6418,3711,1414,4619,3057],"./descope-avatar/index.js":[23008,650,8164,9895,6637,6418,3711,1414,4619,2645],"./descope-badge/index.js":[58765,650,4619,9553],"./descope-button/index.js":[1058,650,8164,9895,1033,2838,4619,9984],"./descope-code-snippet/index.js":[52475,650,9878,4619,3521],"./descope-combo-box/index.js":[4480,650,8164,9895,3222,9167,3711,2566,9632,4619,4480,7052],"./descope-container/index.js":[43713,650,4619,8689],"./descope-date-field/descope-calendar/index.js":[18562,650,8164,9895,3222,9167,1033,3711,2838,2566,9632,7607,4619,4480,6028],"./descope-date-field/index.js":[66509,650,8164,9895,3222,9167,6637,1033,6418,3711,2838,2566,9632,7607,8980,4619,4480,6028,9257],"./descope-divider/index.js":[53665,650,4619,8819],"./descope-email-field/index.js":[91046,650,8164,9895,3222,9167,4619,5695],"./descope-enriched-text/index.js":[94694,650,1672,4619,5710],"./descope-grid/descope-grid-custom-column/index.js":[96969,8164,3607,9176],"./descope-grid/descope-grid-item-details-column/index.js":[85198,8164,9895,6637,6418,3607,2381],"./descope-grid/descope-grid-selection-column/index.js":[79120,650,8164,9895,3222,9167,1033,3607,5273,4619,3305],"./descope-grid/descope-grid-text-column/index.js":[36486,8164,3607,8108],"./descope-grid/index.js":[30954,650,8164,9895,3222,9167,6637,1033,6418,2566,3607,5273,9878,2919,4619,2200],"./descope-hybrid-field/index.js":[56614,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,6726,4619,4480,2755,9894,7299],"./descope-icon/index.js":[21471,650,2838,4619,7401],"./descope-image/index.js":[90313,650,4619,9175],"./descope-link/index.js":[31678,650,4619,7792],"./descope-list/index.js":[36911,650,4619,7640],"./descope-loader-linear/index.js":[22339,650,4619,8009],"./descope-loader-radial/index.js":[86715,650,4619,7163],"./descope-logo/index.js":[47713,650,4619,1239],"./descope-modal/index.js":[826,650,8164,3711,1437,4619,4139],"./descope-multi-select-combo-box/index.js":[10664,650,8164,9895,3222,9167,3711,2566,9632,6474,4619,1331],"./descope-new-password/descope-new-password-internal/index.js":[32039,650,4619,8603],"./descope-new-password/index.js":[26586,650,8164,9895,3222,9167,6637,1033,6418,351,4619,4364],"./descope-notification/descope-notification-card/index.js":[39749,650,8164,4834,4619,7326],"./descope-notification/index.js":[35592,650,8164,4834,4619,8019],"./descope-notp-image/index.js":[22529,650,4619,2251],"./descope-number-field/index.js":[37041,650,8164,9895,3222,9167,5412,4619,7944],"./descope-passcode/descope-passcode-internal/index.js":[81443,650,4619,3359],"./descope-passcode/index.js":[40868,650,8164,9895,3222,9167,6637,6418,8162,4619,8884],"./descope-password/index.js":[1279,650,8164,9895,3222,9167,1033,351,4619,6969],"./descope-policy-validation/index.js":[28184,650,4619,2996],"./descope-radio-group/index.js":[94702,650,8164,9895,3222,1033,5086,4619,9399],"./descope-recaptcha/index.js":[19552,650,4619,3847],"./descope-scopes-list/index.js":[78538,650,8164,9895,3222,9167,1033,5273,4619,1674],"./descope-security-questions-setup/index.js":[69555,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,7212,4619,4480,3594],"./descope-security-questions-verify/index.js":[45307,650,8164,9895,3222,9167,6637,6418,4619,9446],"./descope-text-area/index.js":[641,650,8164,9895,3222,9167,286,4619,5686],"./descope-text-field/index.js":[89348,650,8164,9895,3222,9167,6637,6418,4619,5166],"./descope-text/index.js":[16429,650,4619,171],"./descope-third-party-app-logo/index.js":[63200,650,2838,4619,230],"./descope-totp-image/index.js":[89011,650,4619,6213],"./descope-upload-file/index.js":[82147,650,8164,9895,1033,2838,5443,4619,9636],"./descope-user-attribute/index.js":[91132,650,8164,9895,6637,1033,2838,5026,4619,1578],"./descope-user-auth-method/index.js":[56780,650,8164,9895,6637,1033,2838,7407,4619,9990],"./mapping-fields/descope-mappings-field/descope-mapping-item/index.js":[91491,650,4619,2230],"./mapping-fields/descope-mappings-field/descope-mappings-field-internal/index.js":[88858,650,4619,9522],"./mapping-fields/descope-mappings-field/index.js":[64551,650,8164,9895,3222,9167,6637,1033,6418,3711,2838,2566,9632,1053,4619,4480,7095],"./mapping-fields/descope-saml-group-mappings/descope-saml-group-mappings-internal/index.js":[71828,650,4619,9708],"./mapping-fields/descope-saml-group-mappings/index.js":[28511,650,8164,9895,3222,9167,6637,1033,6418,3711,2838,2566,9632,1053,4619,4480,6832],"./phone-fields/descope-phone-field/descope-phone-field-internal/index.js":[54930,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,6726,4619,4480,2755,2878],"./phone-fields/descope-phone-field/index.js":[96442,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,6726,4619,4480,2755,9894],"./phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/index.js":[46633,650,8164,9895,3222,9167,6637,6418,4619,2755,8657],"./phone-fields/descope-phone-input-box-field/index.js":[87743,650,8164,9895,3222,9167,6637,6418,3711,2566,9632,4619,4480,2755,4043]};function i(e){if(!o.o(d,e))return Promise.resolve().then((()=>{var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}));var s=d[e],i=s[0];return Promise.all(s.slice(1).map(o.e)).then((()=>o(i)))}i.keys=()=>Object.keys(d),i.id=97301,e.exports=i},6461:(e,s,o)=>{"use strict";o.r(s),o.d(s,{componentsThemeManager:()=>d});const d=new class{static mountOnPropName="DescopeThemeManager";#e={};#s="light";#o=new Set;#d(){this.#o.forEach((e=>e?.()))}get currentThemeName(){return this.#s}set currentThemeName(e){this.#s=e,this.#d()}get currentTheme(){return this.#e[this.currentThemeName]}onCurrentThemeChange(e){return this.#o.add(e),()=>{this.#o.delete(e)}}set themes(e){this.#e=e,this.#d()}get hasThemes(){return!!Object.keys(this.#e).length}}},41216:(e,s,o)=>{const{componentsThemeManager:d}=o(6461),i=o(97301);e.exports=i.keys().reduce(((e,s)=>{const o=s.replace(/.*?([^\/]+)\/index\.js$/,"$1");return o.endsWith("-internal")||(e[o]=()=>i(s)),e}),{}),e.exports.componentsThemeManager=d}},i={};function n(e){var s=i[e];if(void 0!==s)return s.exports;var o=i[e]={exports:{}};return d[e].call(o.exports,o,o.exports,n),o.exports}n.m=d,e=[],n.O=(s,o,d,i)=>{if(!o){var t=1/0;for(a=0;a<e.length;a++){for(var[o,d,i]=e[a],p=!0,c=0;c<o.length;c++)(!1&i||t>=i)&&Object.keys(n.O).every((e=>n.O[e](o[c])))?o.splice(c--,1):(p=!1,i<t&&(t=i));if(p){e.splice(a--,1);var r=d();void 0!==r&&(s=r)}}return s}i=i||0;for(var a=e.length;a>0&&e[a-1][2]>i;a--)e[a]=e[a-1];e[a]=[o,d,i]},n.F={},n.E=e=>{Object.keys(n.F).map((s=>{n.F[s](e)}))},n.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return n.d(s,{a:s}),s},n.d=(e,s)=>{for(var o in s)n.o(s,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:s[o]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((s,o)=>(n.f[o](e,s),s)),[])),n.u=e=>(({171:"descope-text-index-js",230:"descope-third-party-app-logo-index-js",1239:"descope-logo-index-js",1331:"descope-multi-select-combo-box-index-js",1448:"boolean-fields-descope-switch-toggle-index-js",1456:"descope-alert-index-js",1578:"descope-user-attribute-index-js",1674:"descope-scopes-list-index-js",1837:"button-selection-group-fields-descope-button-selection-group-item-index-js",2141:"button-selection-group-fields-descope-button-selection-group-index-js",2200:"descope-grid-index-js",2230:"mapping-fields-descope-mappings-field-descope-mapping-item-index-js",2251:"descope-notp-image-index-js",2381:"descope-grid-descope-grid-item-details-column-index-js",2645:"descope-avatar-index-js",2878:"phone-fields-descope-phone-field-descope-phone-field-internal-index-js",2996:"descope-policy-validation-index-js",3057:"descope-apps-list-index-js",3305:"descope-grid-descope-grid-selection-column-index-js",3359:"descope-passcode-descope-passcode-internal-index-js",3521:"descope-code-snippet-index-js",3594:"descope-security-questions-setup-index-js",3829:"button-selection-group-fields-descope-button-multi-selection-group-index-js",3847:"descope-recaptcha-index-js",4043:"phone-fields-descope-phone-input-box-field-index-js",4139:"descope-modal-index-js",4364:"descope-new-password-index-js",4838:"boolean-fields-descope-checkbox-index-js",5166:"descope-text-field-index-js",5686:"descope-text-area-index-js",5695:"descope-email-field-index-js",5710:"descope-enriched-text-index-js",6028:"descope-date-field-descope-calendar-index-js",6213:"descope-totp-image-index-js",6832:"mapping-fields-descope-saml-group-mappings-index-js",6969:"descope-password-index-js",7052:"descope-combo-box-index-js",7079:"button-selection-group-fields-descope-button-selection-group-internal-index-js",7095:"mapping-fields-descope-mappings-field-index-js",7163:"descope-loader-radial-index-js",7299:"descope-hybrid-field-index-js",7326:"descope-notification-descope-notification-card-index-js",7362:"boolean-fields-descope-boolean-field-internal-index-js",7401:"descope-icon-index-js",7640:"descope-list-index-js",7792:"descope-link-index-js",7944:"descope-number-field-index-js",8009:"descope-loader-linear-index-js",8019:"descope-notification-index-js",8108:"descope-grid-descope-grid-text-column-index-js",8399:"button-selection-group-fields-descope-button-multi-selection-group-internal-index-js",8603:"descope-new-password-descope-new-password-internal-index-js",8657:"phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js",8689:"descope-container-index-js",8819:"descope-divider-index-js",8884:"descope-passcode-index-js",9175:"descope-image-index-js",9176:"descope-grid-descope-grid-custom-column-index-js",9257:"descope-date-field-index-js",9399:"descope-radio-group-index-js",9446:"descope-security-questions-verify-index-js",9522:"mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js",9553:"descope-badge-index-js",9636:"descope-upload-file-index-js",9708:"mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js",9894:"phone-fields-descope-phone-field-index-js",9984:"descope-button-index-js",9990:"descope-user-auth-method-index-js"}[e]||e)+".js"),n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),s={},o="@descope/web-components-ui:",n.l=(e,d,i,t)=>{if(s[e])s[e].push(d);else{var p,c;if(void 0!==i)for(var r=document.getElementsByTagName("script"),a=0;a<r.length;a++){var l=r[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+i){p=l;break}}p||(c=!0,(p=document.createElement("script")).charset="utf-8",p.timeout=120,n.nc&&p.setAttribute("nonce",n.nc),p.setAttribute("data-webpack",o+i),p.src=e),s[e]=[d];var u=(o,d)=>{p.onerror=p.onload=null,clearTimeout(x);var i=s[e];if(delete s[e],p.parentNode&&p.parentNode.removeChild(p),i&&i.forEach((e=>e(d))),o)return o(d)},x=setTimeout(u.bind(null,void 0,{type:"timeout",target:p}),12e4);p.onerror=u.bind(null,p.onerror),p.onload=u.bind(null,p.onload),c&&document.head.appendChild(p)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var s=n.g.document;if(!e&&s&&(s.currentScript&&"SCRIPT"===s.currentScript.tagName.toUpperCase()&&(e=s.currentScript.src),!e)){var o=s.getElementsByTagName("script");if(o.length)for(var d=o.length-1;d>-1&&(!e||!/^http(s?):/.test(e));)e=o[d--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={5536:0};n.f.j=(s,o)=>{var d=n.o(e,s)?e[s]:void 0;if(0!==d)if(d)o.push(d[2]);else{var i=new Promise(((o,i)=>d=e[s]=[o,i]));o.push(d[2]=i);var t=n.p+n.u(s),p=new Error;n.l(t,(o=>{if(n.o(e,s)&&(0!==(d=e[s])&&(e[s]=void 0),d)){var i=o&&("load"===o.type?"missing":o.type),t=o&&o.target&&o.target.src;p.message="Loading chunk "+s+" failed.\n("+i+": "+t+")",p.name="ChunkLoadError",p.type=i,p.request=t,d[1](p)}}),"chunk-"+s,s)}},n.F.j=s=>{if(!n.o(e,s)||void 0===e[s]){e[s]=null;var o=document.createElement("link");n.nc&&o.setAttribute("nonce",n.nc),o.rel="prefetch",o.as="script",o.href=n.p+n.u(s),document.head.appendChild(o)}},n.O.j=s=>0===e[s];var s=(s,o)=>{var d,i,[t,p,c]=o,r=0;if(t.some((s=>0!==e[s]))){for(d in p)n.o(p,d)&&(n.m[d]=p[d]);if(c)var a=c(n)}for(s&&s(o);r<t.length;r++)i=t[r],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(a)},o=self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[];o.forEach(s.bind(null,0)),o.push=s.bind(null,o.push.bind(o))})(),n.O(0,[5536],(()=>{[650,4619,7362,8164,9895,3222,9167,1033,5273,4838,1448,8399,2838,7824,3829,7079,1837,2141,1672,1456,6637,6418,3711,1414,3057,2645,9553,9984,9878,3521,2566,9632,4480,7052,8689,7607,6028,8980,9257,8819,5695,5710,3607,9176,2381,3305,8108,2919,2200,6726,2755,9894,7299,7401,9175,7792,7640,8009,7163,1239,1437,4139,6474,1331,8603,351,4364,4834,7326,8019,2251,5412,7944,3359,8162,8884,6969,2996,5086,9399,3847,1674,7212,3594,9446,286,5686,5166,171,230,6213,5443,9636,5026,1578,7407,9990,2230,9522,1053,7095,9708,6832,2878,8657,4043].map(n.E)}),5);var t=n(41216);return n.O(t)})()));
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "@descope/web-components-ui",
         | 
| 3 | 
            -
              "version": "1.0. | 
| 3 | 
            +
              "version": "1.0.417",
         | 
| 4 4 | 
             
              "description": "",
         | 
| 5 5 | 
             
              "main": "dist/cjs/index.cjs.js",
         | 
| 6 6 | 
             
              "module": "dist/index.esm.js",
         | 
| @@ -62,7 +62,7 @@ | |
| 62 62 | 
             
                "@storybook/html": "^6.4.9",
         | 
| 63 63 | 
             
                "@storybook/manager-api": "^7.4.6",
         | 
| 64 64 | 
             
                "@types/lodash.debounce": "^4.0.9",
         | 
| 65 | 
            -
                "@types/node": "^ | 
| 65 | 
            +
                "@types/node": "^22.0.0",
         | 
| 66 66 | 
             
                "eslint": "^8.48.0",
         | 
| 67 67 | 
             
                "eslint-config-airbnb-base": "^15.0.0",
         | 
| 68 68 | 
             
                "eslint-config-prettier": "^9.0.0",
         | 
| @@ -0,0 +1,104 @@ | |
| 1 | 
            +
            import { createStyleMixin, draggableMixin, componentNameValidationMixin } from '../../mixins';
         | 
| 2 | 
            +
            import { compose } from '../../helpers';
         | 
| 3 | 
            +
            import { forwardAttrs, getComponentName } from '../../helpers/componentHelpers';
         | 
| 4 | 
            +
            import { createBaseClass } from '../../baseClasses/createBaseClass';
         | 
| 5 | 
            +
            import { EnrichedTextClass } from '../descope-enriched-text';
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            export const componentName = getComponentName('alert');
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            class RawAlert extends createBaseClass({ componentName, baseSelector: ':host > div' }) {
         | 
| 10 | 
            +
              constructor() {
         | 
| 11 | 
            +
                super();
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                this.attachShadow({ mode: 'open' }).innerHTML = `
         | 
| 14 | 
            +
                <style>
         | 
| 15 | 
            +
                  :host {
         | 
| 16 | 
            +
                    display: inline-flex;
         | 
| 17 | 
            +
                  }
         | 
| 18 | 
            +
                  :host > div {
         | 
| 19 | 
            +
                    display: flex;
         | 
| 20 | 
            +
                    width: 100%;
         | 
| 21 | 
            +
                  }
         | 
| 22 | 
            +
                  .icon {
         | 
| 23 | 
            +
                    flex-shrink: 0;
         | 
| 24 | 
            +
                  }
         | 
| 25 | 
            +
                  .content {
         | 
| 26 | 
            +
                    display: flex;
         | 
| 27 | 
            +
                    flex-wrap: wrap;
         | 
| 28 | 
            +
                    white-space: normal;
         | 
| 29 | 
            +
                    overflow-wrap: break-word;
         | 
| 30 | 
            +
                  }
         | 
| 31 | 
            +
                </style>
         | 
| 32 | 
            +
                <div>
         | 
| 33 | 
            +
                  <div class="icon"></div>
         | 
| 34 | 
            +
                  <div class="content">
         | 
| 35 | 
            +
                    <descope-enriched-text>
         | 
| 36 | 
            +
                      <slot></slot>
         | 
| 37 | 
            +
                    </descope-enriched-text>
         | 
| 38 | 
            +
                  </div>
         | 
| 39 | 
            +
                </div>
         | 
| 40 | 
            +
                `;
         | 
| 41 | 
            +
              }
         | 
| 42 | 
            +
             | 
| 43 | 
            +
              init() {
         | 
| 44 | 
            +
                super.init?.();
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                this.slotEle = this.shadowRoot.querySelector('slot');
         | 
| 47 | 
            +
                this.textComp = this.shadowRoot.querySelector('descope-enriched-text');
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                this.slotEle.addEventListener('slotchange', this.handleSlotChange.bind(this));
         | 
| 50 | 
            +
             | 
| 51 | 
            +
                forwardAttrs(this, this.textComp, ['variant', 'full-width', 'link-target-blank']);
         | 
| 52 | 
            +
              }
         | 
| 53 | 
            +
             | 
| 54 | 
            +
              handleSlotChange() {
         | 
| 55 | 
            +
                const assignedNodes = this.slotEle.assignedNodes({ flatten: true });
         | 
| 56 | 
            +
                if (!assignedNodes.length) return;
         | 
| 57 | 
            +
                this.textComp.textContent = assignedNodes[0]?.textContent || '';
         | 
| 58 | 
            +
              }
         | 
| 59 | 
            +
            }
         | 
| 60 | 
            +
             | 
| 61 | 
            +
            const { icon } = {
         | 
| 62 | 
            +
              icon: { selector: () => '.icon' },
         | 
| 63 | 
            +
            };
         | 
| 64 | 
            +
             | 
| 65 | 
            +
            export const AlertClass = compose(
         | 
| 66 | 
            +
              createStyleMixin({
         | 
| 67 | 
            +
                mappings: {
         | 
| 68 | 
            +
                  hostWidth: { selector: () => ':host', property: 'width' },
         | 
| 69 | 
            +
                  hostDirection: { selector: () => ':host', property: 'direction' },
         | 
| 70 | 
            +
                  textColor: {
         | 
| 71 | 
            +
                    selector: EnrichedTextClass.componentName,
         | 
| 72 | 
            +
                    property: EnrichedTextClass.cssVarList.textColor,
         | 
| 73 | 
            +
                  },
         | 
| 74 | 
            +
                  backgroundColor: {},
         | 
| 75 | 
            +
                  borderColor: {},
         | 
| 76 | 
            +
                  borderWidth: {},
         | 
| 77 | 
            +
                  borderStyle: {},
         | 
| 78 | 
            +
                  borderRadius: {},
         | 
| 79 | 
            +
                  fontSize: [
         | 
| 80 | 
            +
                    {},
         | 
| 81 | 
            +
                    {
         | 
| 82 | 
            +
                      selector: EnrichedTextClass.componentName,
         | 
| 83 | 
            +
                      property: EnrichedTextClass.cssVarList.fontSize,
         | 
| 84 | 
            +
                    },
         | 
| 85 | 
            +
                  ],
         | 
| 86 | 
            +
                  gap: {},
         | 
| 87 | 
            +
                  horizontalPadding: [{ property: 'padding-top' }, { property: 'padding-bottom' }],
         | 
| 88 | 
            +
                  verticalPadding: [{ property: 'padding-right' }, { property: 'padding-left' }],
         | 
| 89 | 
            +
                  alignItems: {},
         | 
| 90 | 
            +
                  icon: [
         | 
| 91 | 
            +
                    { ...icon, property: 'content' },
         | 
| 92 | 
            +
                    { ...icon, property: 'display', fallback: 'none' },
         | 
| 93 | 
            +
                  ],
         | 
| 94 | 
            +
                  iconSize: [
         | 
| 95 | 
            +
                    { ...icon, property: 'width' },
         | 
| 96 | 
            +
                    { ...icon, property: 'height' },
         | 
| 97 | 
            +
                  ],
         | 
| 98 | 
            +
                },
         | 
| 99 | 
            +
              }),
         | 
| 100 | 
            +
              createStyleMixin({ componentNameOverride: getComponentName('enriched-text') }),
         | 
| 101 | 
            +
              createStyleMixin({ componentNameOverride: getComponentName('text') }),
         | 
| 102 | 
            +
              draggableMixin,
         | 
| 103 | 
            +
              componentNameValidationMixin
         | 
| 104 | 
            +
            )(RawAlert);
         | 
| @@ -53,12 +53,9 @@ class EnrichedText extends createBaseClass({ componentName, baseSelector: ':host | |
| 53 53 | 
             
                    color: currentColor;
         | 
| 54 54 | 
             
                  }
         | 
| 55 55 | 
             
                </style>
         | 
| 56 | 
            -
                <slot part="text-wrapper" style="display:none"></slot>
         | 
| 57 56 | 
             
                <div class="content"></div>
         | 
| 58 57 | 
             
                `;
         | 
| 59 58 |  | 
| 60 | 
            -
                this.textSlot = this.shadowRoot.querySelector('slot');
         | 
| 61 | 
            -
             | 
| 62 59 | 
             
                this.#initProcessor();
         | 
| 63 60 |  | 
| 64 61 | 
             
                observeChildren(this, this.#parseChildren.bind(this));
         | 
    
        package/src/index.cjs.js
    CHANGED
    
    | @@ -57,3 +57,4 @@ export { ThirdPartyAppLogoClass } from './components/descope-third-party-app-log | |
| 57 57 | 
             
            export { SecurityQuestionsSetupClass } from './components/descope-security-questions-setup/SecurityQuestionsSetupClass';
         | 
| 58 58 | 
             
            export { SecurityQuestionsVerifyClass } from './components/descope-security-questions-verify/SecurityQuestionsVerifyClass';
         | 
| 59 59 | 
             
            export { HybridFieldClass } from './components/descope-hybrid-field/HybridFieldClass';
         | 
| 60 | 
            +
            export { AlertClass } from './components/descope-alert/AlertClass';
         | 
    
        package/src/index.js
    CHANGED
    
    | @@ -49,6 +49,7 @@ export * from './components/descope-third-party-app-logo'; | |
| 49 49 | 
             
            export * from './components/descope-security-questions-setup';
         | 
| 50 50 | 
             
            export * from './components/descope-security-questions-verify';
         | 
| 51 51 | 
             
            export * from './components/descope-hybrid-field';
         | 
| 52 | 
            +
            export * from './components/descope-alert';
         | 
| 52 53 |  | 
| 53 54 | 
             
            export {
         | 
| 54 55 | 
             
              globalsThemeToStyle,
         | 
| @@ -0,0 +1,76 @@ | |
| 1 | 
            +
            import globals from '../globals';
         | 
| 2 | 
            +
            import { getThemeRefs, useVar } from '../../helpers/themeHelpers';
         | 
| 3 | 
            +
            import { AlertClass } from '../../components/descope-alert/AlertClass';
         | 
| 4 | 
            +
            import { vars as textCompVars } from './text';
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            const globalRefs = getThemeRefs(globals);
         | 
| 7 | 
            +
            const vars = AlertClass.cssVarList;
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            const alert = {
         | 
| 10 | 
            +
              [vars.hostDirection]: globalRefs.direction,
         | 
| 11 | 
            +
              [vars.backgroundColor]: 'transparent',
         | 
| 12 | 
            +
              [vars.iconSize]: '1.35em',
         | 
| 13 | 
            +
              [vars.alignItems]: 'center',
         | 
| 14 | 
            +
              [vars.borderRadius]: globalRefs.radius.md,
         | 
| 15 | 
            +
              [vars.horizontalPadding]: '0',
         | 
| 16 | 
            +
              [vars.verticalPadding]: '0',
         | 
| 17 | 
            +
              [vars.gap]: `0.5em`,
         | 
| 18 | 
            +
              [vars.fontSize]: useVar(textCompVars.fontSize),
         | 
| 19 | 
            +
             | 
| 20 | 
            +
              mode: {
         | 
| 21 | 
            +
                error: {
         | 
| 22 | 
            +
                  // Notice: If icon is empty, we need to remove it from the theme, to prevent it from rendering minimal layout
         | 
| 23 | 
            +
                  // [vars.icon]: `url(${icon})`,
         | 
| 24 | 
            +
                  [vars.textColor]: globalRefs.colors.error.main,
         | 
| 25 | 
            +
                  _bordered: {
         | 
| 26 | 
            +
                    [vars.borderColor]: globalRefs.colors.error.main,
         | 
| 27 | 
            +
                  },
         | 
| 28 | 
            +
                },
         | 
| 29 | 
            +
                success: {
         | 
| 30 | 
            +
                  // Notice: If icon is empty, we need to remove it from the theme, to prevent it from rendering minimal layout
         | 
| 31 | 
            +
                  // [vars.icon]: '',
         | 
| 32 | 
            +
                  [vars.textColor]: globalRefs.colors.success.main,
         | 
| 33 | 
            +
                  _bordered: {
         | 
| 34 | 
            +
                    [vars.borderColor]: globalRefs.colors.success.main,
         | 
| 35 | 
            +
                  },
         | 
| 36 | 
            +
                },
         | 
| 37 | 
            +
              },
         | 
| 38 | 
            +
             | 
| 39 | 
            +
              spacing: {
         | 
| 40 | 
            +
                xs: {
         | 
| 41 | 
            +
                  [vars.horizontalPadding]: globalRefs.spacing.xs,
         | 
| 42 | 
            +
                  [vars.verticalPadding]: globalRefs.spacing.xs,
         | 
| 43 | 
            +
                },
         | 
| 44 | 
            +
                sm: {
         | 
| 45 | 
            +
                  [vars.horizontalPadding]: globalRefs.spacing.sm,
         | 
| 46 | 
            +
                  [vars.verticalPadding]: globalRefs.spacing.sm,
         | 
| 47 | 
            +
                },
         | 
| 48 | 
            +
                md: {
         | 
| 49 | 
            +
                  [vars.horizontalPadding]: globalRefs.spacing.md,
         | 
| 50 | 
            +
                  [vars.verticalPadding]: globalRefs.spacing.md,
         | 
| 51 | 
            +
                },
         | 
| 52 | 
            +
                lg: {
         | 
| 53 | 
            +
                  [vars.horizontalPadding]: globalRefs.spacing.lg,
         | 
| 54 | 
            +
                  [vars.verticalPadding]: globalRefs.spacing.lg,
         | 
| 55 | 
            +
                },
         | 
| 56 | 
            +
                xl: {
         | 
| 57 | 
            +
                  [vars.horizontalPadding]: globalRefs.spacing.xl,
         | 
| 58 | 
            +
                  [vars.verticalPadding]: globalRefs.spacing.xl,
         | 
| 59 | 
            +
                },
         | 
| 60 | 
            +
              },
         | 
| 61 | 
            +
             | 
| 62 | 
            +
              _bordered: {
         | 
| 63 | 
            +
                [vars.borderWidth]: globalRefs.border.xs,
         | 
| 64 | 
            +
                [vars.borderColor]: 'transparent',
         | 
| 65 | 
            +
                [vars.borderStyle]: 'solid',
         | 
| 66 | 
            +
                [vars.borderWidth]: globalRefs.border.xs,
         | 
| 67 | 
            +
                [vars.borderRadius]: globalRefs.radius.sm,
         | 
| 68 | 
            +
              },
         | 
| 69 | 
            +
             | 
| 70 | 
            +
              _fullWidth: {
         | 
| 71 | 
            +
                [vars.hostWidth]: '100%',
         | 
| 72 | 
            +
              },
         | 
| 73 | 
            +
            };
         | 
| 74 | 
            +
             | 
| 75 | 
            +
            export default alert;
         | 
| 76 | 
            +
            export { vars };
         | 
| @@ -51,6 +51,7 @@ import * as thirdPartyAppLogo from './thirdPartyAppLogo'; | |
| 51 51 | 
             
            import * as securityQuestionsSetup from './securityQuestionsSetup';
         | 
| 52 52 | 
             
            import * as securityQuestionsVerify from './securityQuestionsVerify';
         | 
| 53 53 | 
             
            import * as hybridField from './hybridField';
         | 
| 54 | 
            +
            import * as alert from './alert';
         | 
| 54 55 |  | 
| 55 56 | 
             
            const components = {
         | 
| 56 57 | 
             
              button,
         | 
| @@ -107,6 +108,7 @@ const components = { | |
| 107 108 | 
             
              securityQuestionsSetup,
         | 
| 108 109 | 
             
              securityQuestionsVerify,
         | 
| 109 110 | 
             
              hybridField,
         | 
| 111 | 
            +
              alert,
         | 
| 110 112 | 
             
            };
         | 
| 111 113 |  | 
| 112 114 | 
             
            const theme = Object.keys(components).reduce(
         |