@evoke-tech/stencil-ui-kit 0.0.0-stage → 0.2.0

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.
Files changed (144) hide show
  1. package/README.md +314 -2
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  3. package/dist/cjs/evoke-alert_20.cjs.entry.js +1047 -0
  4. package/dist/cjs/evoke-ui.cjs.js +25 -0
  5. package/dist/cjs/index-BpJ5gu8f.js +2130 -0
  6. package/dist/cjs/index.cjs.js +2 -0
  7. package/dist/cjs/loader.cjs.js +13 -0
  8. package/dist/collection/collection-manifest.json +32 -0
  9. package/dist/collection/components/evoke-alert/evoke-alert.css +18 -0
  10. package/dist/collection/components/evoke-alert/evoke-alert.js +107 -0
  11. package/dist/collection/components/evoke-app-bar/evoke-app-bar.css +13 -0
  12. package/dist/collection/components/evoke-app-bar/evoke-app-bar.js +94 -0
  13. package/dist/collection/components/evoke-badge/evoke-badge.css +13 -0
  14. package/dist/collection/components/evoke-badge/evoke-badge.js +162 -0
  15. package/dist/collection/components/evoke-button/evoke-button.css +31 -0
  16. package/dist/collection/components/evoke-button/evoke-button.js +243 -0
  17. package/dist/collection/components/evoke-card/evoke-card.css +12 -0
  18. package/dist/collection/components/evoke-card/evoke-card.js +140 -0
  19. package/dist/collection/components/evoke-checkbox/evoke-checkbox.css +22 -0
  20. package/dist/collection/components/evoke-checkbox/evoke-checkbox.js +180 -0
  21. package/dist/collection/components/evoke-chip/evoke-chip.css +16 -0
  22. package/dist/collection/components/evoke-chip/evoke-chip.js +149 -0
  23. package/dist/collection/components/evoke-input/evoke-input.css +25 -0
  24. package/dist/collection/components/evoke-input/evoke-input.js +324 -0
  25. package/dist/collection/components/evoke-modal/evoke-modal.css +21 -0
  26. package/dist/collection/components/evoke-modal/evoke-modal.js +271 -0
  27. package/dist/collection/components/evoke-pagination/evoke-pagination.css +12 -0
  28. package/dist/collection/components/evoke-pagination/evoke-pagination.js +156 -0
  29. package/dist/collection/components/evoke-progress/evoke-progress.css +12 -0
  30. package/dist/collection/components/evoke-progress/evoke-progress.js +146 -0
  31. package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.css +20 -0
  32. package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.js +201 -0
  33. package/dist/collection/components/evoke-radio-group/evoke-radio-group.css +29 -0
  34. package/dist/collection/components/evoke-radio-group/evoke-radio-group.js +233 -0
  35. package/dist/collection/components/evoke-select/evoke-select.css +37 -0
  36. package/dist/collection/components/evoke-select/evoke-select.js +433 -0
  37. package/dist/collection/components/evoke-switch/evoke-switch.css +16 -0
  38. package/dist/collection/components/evoke-switch/evoke-switch.js +151 -0
  39. package/dist/collection/components/evoke-table/evoke-table.css +20 -0
  40. package/dist/collection/components/evoke-table/evoke-table.js +222 -0
  41. package/dist/collection/components/evoke-tabs/evoke-tabs.css +20 -0
  42. package/dist/collection/components/evoke-tabs/evoke-tabs.js +179 -0
  43. package/dist/collection/components/evoke-textarea/evoke-textarea.css +19 -0
  44. package/dist/collection/components/evoke-textarea/evoke-textarea.js +328 -0
  45. package/dist/collection/components/evoke-toast/evoke-toast.css +24 -0
  46. package/dist/collection/components/evoke-toast/evoke-toast.js +225 -0
  47. package/dist/collection/components/evoke-tooltip/evoke-tooltip.css +22 -0
  48. package/dist/collection/components/evoke-tooltip/evoke-tooltip.js +119 -0
  49. package/dist/collection/index.js +1 -0
  50. package/dist/collection/utils/icons.js +29 -0
  51. package/dist/collection/utils/options.js +12 -0
  52. package/dist/components/evoke-alert.d.ts +11 -0
  53. package/dist/components/evoke-alert.js +1 -0
  54. package/dist/components/evoke-app-bar.d.ts +11 -0
  55. package/dist/components/evoke-app-bar.js +1 -0
  56. package/dist/components/evoke-badge.d.ts +11 -0
  57. package/dist/components/evoke-badge.js +1 -0
  58. package/dist/components/evoke-button.d.ts +11 -0
  59. package/dist/components/evoke-button.js +1 -0
  60. package/dist/components/evoke-card.d.ts +11 -0
  61. package/dist/components/evoke-card.js +1 -0
  62. package/dist/components/evoke-checkbox.d.ts +11 -0
  63. package/dist/components/evoke-checkbox.js +1 -0
  64. package/dist/components/evoke-chip.d.ts +11 -0
  65. package/dist/components/evoke-chip.js +1 -0
  66. package/dist/components/evoke-input.d.ts +11 -0
  67. package/dist/components/evoke-input.js +1 -0
  68. package/dist/components/evoke-modal.d.ts +11 -0
  69. package/dist/components/evoke-modal.js +1 -0
  70. package/dist/components/evoke-pagination.d.ts +11 -0
  71. package/dist/components/evoke-pagination.js +1 -0
  72. package/dist/components/evoke-progress.d.ts +11 -0
  73. package/dist/components/evoke-progress.js +1 -0
  74. package/dist/components/evoke-quantity-stepper.d.ts +11 -0
  75. package/dist/components/evoke-quantity-stepper.js +1 -0
  76. package/dist/components/evoke-radio-group.d.ts +11 -0
  77. package/dist/components/evoke-radio-group.js +1 -0
  78. package/dist/components/evoke-select.d.ts +11 -0
  79. package/dist/components/evoke-select.js +1 -0
  80. package/dist/components/evoke-switch.d.ts +11 -0
  81. package/dist/components/evoke-switch.js +1 -0
  82. package/dist/components/evoke-table.d.ts +11 -0
  83. package/dist/components/evoke-table.js +1 -0
  84. package/dist/components/evoke-tabs.d.ts +11 -0
  85. package/dist/components/evoke-tabs.js +1 -0
  86. package/dist/components/evoke-textarea.d.ts +11 -0
  87. package/dist/components/evoke-textarea.js +1 -0
  88. package/dist/components/evoke-toast.d.ts +11 -0
  89. package/dist/components/evoke-toast.js +1 -0
  90. package/dist/components/evoke-tooltip.d.ts +11 -0
  91. package/dist/components/evoke-tooltip.js +1 -0
  92. package/dist/components/icons.js +1 -0
  93. package/dist/components/index.d.ts +35 -0
  94. package/dist/components/index.js +1 -0
  95. package/dist/components/options.js +1 -0
  96. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  97. package/dist/esm/evoke-alert_20.entry.js +1026 -0
  98. package/dist/esm/evoke-ui.js +21 -0
  99. package/dist/esm/index-C-5sEjU8.js +2122 -0
  100. package/dist/esm/index.js +1 -0
  101. package/dist/esm/loader.js +11 -0
  102. package/dist/evoke-ui/evoke-ui.css +1 -0
  103. package/dist/evoke-ui/evoke-ui.esm.js +1 -0
  104. package/dist/evoke-ui/index.esm.js +0 -0
  105. package/dist/evoke-ui/p-0841be89.entry.js +1 -0
  106. package/dist/evoke-ui/p-C-5sEjU8.js +3 -0
  107. package/dist/evoke-ui/p-DQuL1Twl.js +1 -0
  108. package/dist/index.cjs.js +1 -0
  109. package/dist/index.js +1 -0
  110. package/dist/themes/bootstrap.css +26 -0
  111. package/dist/themes/material.css +24 -0
  112. package/dist/themes/tailwind.css +27 -0
  113. package/dist/themes/tokens.css +29 -0
  114. package/dist/types/components/evoke-alert/evoke-alert.d.ts +10 -0
  115. package/dist/types/components/evoke-app-bar/evoke-app-bar.d.ts +14 -0
  116. package/dist/types/components/evoke-badge/evoke-badge.d.ts +17 -0
  117. package/dist/types/components/evoke-button/evoke-button.d.ts +21 -0
  118. package/dist/types/components/evoke-card/evoke-card.d.ts +15 -0
  119. package/dist/types/components/evoke-checkbox/evoke-checkbox.d.ts +18 -0
  120. package/dist/types/components/evoke-chip/evoke-chip.d.ts +14 -0
  121. package/dist/types/components/evoke-input/evoke-input.d.ts +27 -0
  122. package/dist/types/components/evoke-modal/evoke-modal.d.ts +32 -0
  123. package/dist/types/components/evoke-pagination/evoke-pagination.d.ts +15 -0
  124. package/dist/types/components/evoke-progress/evoke-progress.d.ts +13 -0
  125. package/dist/types/components/evoke-quantity-stepper/evoke-quantity-stepper.d.ts +18 -0
  126. package/dist/types/components/evoke-radio-group/evoke-radio-group.d.ts +20 -0
  127. package/dist/types/components/evoke-select/evoke-select.d.ts +43 -0
  128. package/dist/types/components/evoke-switch/evoke-switch.d.ts +15 -0
  129. package/dist/types/components/evoke-table/evoke-table.d.ts +29 -0
  130. package/dist/types/components/evoke-tabs/evoke-tabs.d.ts +21 -0
  131. package/dist/types/components/evoke-textarea/evoke-textarea.d.ts +28 -0
  132. package/dist/types/components/evoke-toast/evoke-toast.d.ts +24 -0
  133. package/dist/types/components/evoke-tooltip/evoke-tooltip.d.ts +17 -0
  134. package/dist/types/components.d.ts +1876 -0
  135. package/dist/types/index.d.ts +2 -0
  136. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  137. package/dist/types/utils/icons.d.ts +25 -0
  138. package/dist/types/utils/options.d.ts +7 -0
  139. package/loader/cdn.js +1 -0
  140. package/loader/index.cjs.js +1 -0
  141. package/loader/index.d.ts +24 -0
  142. package/loader/index.es2017.js +1 -0
  143. package/loader/index.js +2 -0
  144. package/package.json +65 -4
@@ -0,0 +1 @@
1
+ import{transformTag as e,proxyCustomElement as t,HTMLElement as o,createEvent as a,h as s}from"@stencil/core/internal/client";import{p as r}from"./options.js";const i=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.evokeChange=a(this,"evokeChange",7),this.options=[],this.value="",this.appearance="underline",this.label="",this.uid=Math.random().toString(36).slice(2,9),this.onKeyDown=e=>{if(!["ArrowRight","ArrowLeft","Home","End"].includes(e.key))return;const t=this.tabs,o=t.map(((e,t)=>e.disabled?-1:t)).filter((e=>e>=0));if(0===o.length)return;e.preventDefault();const a=t.findIndex((e=>e.value===this.activeValue)),s=o.indexOf(a);let r=o[0];"ArrowRight"===e.key?r=o[(s+1)%o.length]:"ArrowLeft"===e.key?r=o[(s-1+o.length)%o.length]:"End"===e.key&&(r=o[o.length-1]);const i=this.el.querySelectorAll('[role="tab"]')[r];null==i||i.focus(),this.select(t[r].value)}}get tabs(){return r(this.options)}get activeValue(){var e,t;const o=this.tabs;return o.some((e=>e.value===this.value&&!e.disabled))?this.value:null!==(t=null===(e=o.find((e=>!e.disabled)))||void 0===e?void 0:e.value)&&void 0!==t?t:""}select(e){e!==this.value&&(this.value=e,this.evokeChange.emit(e))}render(){const e=this.activeValue;return s("div",{key:"0eb147989be035ae85cc6778f7c5205ff450bbf0",class:"evoke-tabs evoke-tabs--"+this.appearance},s("div",{key:"2bed606eed52a8186fc6fdca50c179555a57de8c",class:"evoke-tabs__list",role:"tablist","aria-label":this.label||void 0,onKeyDown:this.onKeyDown},this.tabs.map((t=>{const o=t.value===e;return s("button",{type:"button",role:"tab",id:`evoke-tab-${this.uid}-${t.value}`,class:("evoke-tabs__tab "+(o?"evoke-tabs__tab--active":"")).trim(),"aria-selected":o?"true":"false","aria-controls":"evoke-panel-"+this.uid,tabindex:o?0:-1,disabled:t.disabled,onClick:()=>this.select(t.value)},t.label)}))),s("div",{key:"b80df36c152b9b189e359a1d59106eb9372d1d62",class:"evoke-tabs__panel",role:"tabpanel",id:"evoke-panel-"+this.uid,"aria-labelledby":e?`evoke-tab-${this.uid}-${e}`:void 0,tabindex:0},s("slot",{key:"df28c424c9fd41a51f6068d04cf1f71605207d9d"})))}get el(){return this}static get style(){return"evoke-tabs{display:block;min-width:0;max-width:100%}evoke-tabs .evoke-tabs{font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);color:var(--evoke-text, #1a1a1a)}evoke-tabs .evoke-tabs__list{display:flex;gap:4px;overflow-x:auto}evoke-tabs .evoke-tabs__tab{flex:none;font:inherit;font-size:1rem;padding:12px 20px;background:transparent;border:0;color:var(--evoke-text-muted, #6b6b6b);cursor:pointer;transition:color 0.15s, background-color 0.15s, filter 0.15s}evoke-tabs .evoke-tabs__tab:hover:not(:disabled):not(.evoke-tabs__tab--active){color:var(--evoke-text, #1a1a1a)}evoke-tabs .evoke-tabs__tab:disabled{opacity:0.5;cursor:not-allowed}evoke-tabs .evoke-tabs__tab:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-tabs .evoke-tabs--underline .evoke-tabs__list{border-bottom:1px solid var(--evoke-border, #dedede);gap:0}evoke-tabs .evoke-tabs--underline .evoke-tabs__tab{border-bottom:2px solid transparent;margin-bottom:-1px}evoke-tabs .evoke-tabs--underline .evoke-tabs__tab:hover:not(:disabled):not(.evoke-tabs__tab--active){border-bottom-color:var(--evoke-border, #dedede)}evoke-tabs .evoke-tabs--underline .evoke-tabs__tab--active{color:var(--evoke-primary-text, #cc3d0d);border-bottom-color:var(--evoke-primary, #ff5316);font-weight:500}evoke-tabs .evoke-tabs--underline .evoke-tabs__tab:active:not(:disabled){background:var(--evoke-surface-muted, #f5f5f5)}evoke-tabs .evoke-tabs--pill .evoke-tabs__tab{border-radius:var(--evoke-radius-button, 9999px);padding:8px 20px}evoke-tabs .evoke-tabs--pill .evoke-tabs__tab:hover:not(:disabled):not(.evoke-tabs__tab--active){background:var(--evoke-surface-muted, #f5f5f5)}evoke-tabs .evoke-tabs--pill .evoke-tabs__tab--active{background:var(--evoke-primary, #ff5316);color:var(--evoke-primary-contrast, #ffffff)}evoke-tabs .evoke-tabs--pill .evoke-tabs__tab:active:not(:disabled){filter:brightness(0.85)}evoke-tabs .evoke-tabs__panel{padding:16px 0}evoke-tabs .evoke-tabs__panel:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15));border-radius:var(--evoke-radius-field, 8px)}"}},[260,"evoke-tabs",{options:[1],value:[1025],appearance:[1],label:[1]}]);function b(){"undefined"!=typeof customElements&&["evoke-tabs"].forEach((t=>{"evoke-tabs"===t&&(customElements.get(e(t))||customElements.define(e(t),i))}))}b();const v=i,n=b;export{v as EvokeTabs,n as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface EvokeTextarea extends Components.EvokeTextarea, HTMLElement {}
4
+ export const EvokeTextarea: {
5
+ prototype: EvokeTextarea;
6
+ new (): EvokeTextarea;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{transformTag as e,proxyCustomElement as t,HTMLElement as o,createEvent as a,h as i}from"@stencil/core/internal/client";const r=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.evokeInput=a(this,"evokeInput",7),this.evokeChange=a(this,"evokeChange",7),this.label="",this.value="",this.name="",this.placeholder="",this.rows=4,this.autoGrow=!1,this.disabled=!1,this.required=!1,this.error="",this.hint="",this.textareaClass="",this.uid=Math.random().toString(36).slice(2,9)}componentDidRender(){this.resize()}resize(){this.autoGrow&&this.el&&(this.el.style.height="auto",this.el.style.height=this.el.scrollHeight+"px")}render(){var e;const t="evoke-textarea-"+this.uid,o=t+"-msg",a=(null!==(e=this.value)&&void 0!==e?e:"").length,r="number"==typeof this.maxLength&&this.maxLength>0;return i("div",{key:"5d950d88f2b9e191fd4a29e4eada4c5e4d8c779d",class:"evoke-field"},this.label&&i("label",{key:"46fee07268bedd23742d8d91018dfd47c93bd58b",htmlFor:t,class:"evoke-field__label"},this.label,this.required&&i("span",{key:"45af0e76daa25a15e0583777f5217757074c8d78","aria-hidden":"true"}," *")),i("textarea",{key:"917c3b5749cd5b75133bb2b71a90e036b3f4eef9",id:t,class:`evoke-field__input evoke-field__textarea ${this.autoGrow?"evoke-field__textarea--auto":""} ${this.error?"evoke-field__input--error":""} ${this.textareaClass}`.replace(/\s+/g," ").trim(),name:this.name||void 0,rows:this.rows,maxLength:r?this.maxLength:void 0,placeholder:this.placeholder,disabled:this.disabled,required:this.required,value:this.value,"aria-invalid":this.error?"true":void 0,"aria-describedby":this.error||this.hint?o:void 0,ref:e=>this.el=e,onInput:e=>{this.value=e.target.value,this.resize(),this.evokeInput.emit(this.value)},onChange:e=>this.evokeChange.emit(e.target.value)}),i("div",{key:"95530cc625c4500a7042adda05c105f03054d4f9",class:"evoke-field__footer"},this.error?i("span",{id:o,class:"evoke-field__error",role:"alert"},this.error):i("span",{id:o,class:"evoke-field__hint"},this.hint),r&&i("span",{key:"3f3fb731453b76cd7d2b0fa2f6ce334ca0bfd554",class:("evoke-field__counter "+(a>=this.maxLength?"evoke-field__counter--full":"")).trim(),"aria-live":"polite"},a," / ",this.maxLength)))}static get style(){return"evoke-textarea{display:block}evoke-textarea .evoke-field{display:flex;flex-direction:column;gap:0.5rem;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:var(--evoke-font-size, 16px);color:var(--evoke-text, #1a1a1a)}evoke-textarea .evoke-field__input{box-sizing:border-box;width:100%;padding:14px 24px;border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-field, 8px);background:var(--evoke-surface, #ffffff);color:var(--evoke-text, #1a1a1a);font:inherit;line-height:1.5;resize:vertical;transition:border-color 0.15s, box-shadow 0.15s}evoke-textarea .evoke-field__textarea--auto{resize:none;overflow:hidden}evoke-textarea .evoke-field__input::placeholder{color:var(--evoke-text-muted, #6b6b6b)}evoke-textarea .evoke-field__input:hover:not(:disabled):not(:focus){border-color:var(--evoke-text-muted, #6b6b6b)}evoke-textarea .evoke-field__input:focus{outline:none;border-color:var(--evoke-secondary, #0b1560);box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-textarea .evoke-field__input:disabled{opacity:0.6;cursor:not-allowed}evoke-textarea .evoke-field__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-textarea .evoke-field__footer{display:flex;justify-content:space-between;gap:1rem;font-size:0.875rem}evoke-textarea .evoke-field__footer:empty{display:none}evoke-textarea .evoke-field__hint{color:var(--evoke-text-muted, #6b6b6b)}evoke-textarea .evoke-field__error{color:var(--evoke-danger, #dc2626)}evoke-textarea .evoke-field__counter{margin-left:auto;color:var(--evoke-text-muted, #6b6b6b)}evoke-textarea .evoke-field__counter--full{color:var(--evoke-danger, #dc2626)}"}},[0,"evoke-textarea",{label:[1],value:[1025],name:[1],placeholder:[1],rows:[2],autoGrow:[4,"auto-grow"],maxLength:[2,"max-length"],disabled:[4],required:[4],error:[1],hint:[1],textareaClass:[1,"textarea-class"]}]);function s(){"undefined"!=typeof customElements&&["evoke-textarea"].forEach((t=>{"evoke-textarea"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}s();const d=r,l=s;export{d as EvokeTextarea,l as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface EvokeToast extends Components.EvokeToast, HTMLElement {}
4
+ export const EvokeToast: {
5
+ prototype: EvokeToast;
6
+ new (): EvokeToast;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{transformTag as e,proxyCustomElement as t,HTMLElement as o,createEvent as s,h as a}from"@stencil/core/internal/client";import{r as i}from"./icons.js";const n={info:"info",success:"check",warning:"alert",danger:"alert"},r=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.evokeAction=s(this,"evokeAction",7),this.evokeClose=s(this,"evokeClose",7),this.open=!1,this.message="",this.type="info",this.action="",this.duration=4e3,this.position="bottom"}onOpen(e){this.clearTimer(),e&&this.startTimer()}componentDidLoad(){this.open&&this.startTimer()}disconnectedCallback(){this.clearTimer()}startTimer(){this.duration>0&&(this.timer=setTimeout((()=>this.close()),this.duration))}clearTimer(){this.timer&&clearTimeout(this.timer),this.timer=void 0}close(){this.clearTimer(),this.open=!1,this.evokeClose.emit()}render(){if(!this.open)return null;const e="danger"===this.type||"warning"===this.type;return a("div",{class:`evoke-toast evoke-toast--${this.position} evoke-toast--${this.type}`,role:e?"alert":"status","aria-live":e?"assertive":"polite",onMouseEnter:()=>this.clearTimer(),onMouseLeave:()=>this.open&&this.startTimer()},i(n[this.type],"evoke-toast__icon"),a("span",{class:"evoke-toast__message"},this.message,a("slot",null)),this.action&&a("button",{type:"button",class:"evoke-toast__action",onClick:()=>{this.evokeAction.emit(),this.close()}},this.action),a("button",{type:"button",class:"evoke-toast__close","aria-label":"Dismiss",onClick:()=>this.close()},i("x","evoke-icon")))}static get watchers(){return{open:[{onOpen:0}]}}static get style(){return"evoke-toast .evoke-toast{position:fixed;left:50%;z-index:1100;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:max-content;max-width:min(92vw, 480px);padding:12px 12px 12px 16px;border-radius:var(--evoke-radius, 8px);background:var(--evoke-text, #1a1a1a);color:var(--evoke-surface, #ffffff);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:0.9375rem;box-shadow:var(--evoke-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));transform:translateX(-50%);animation:evoke-toast-in 0.2s ease-out}evoke-toast .evoke-toast--bottom{bottom:24px}evoke-toast .evoke-toast--top{top:24px}evoke-toast .evoke-toast--success .evoke-toast__icon{color:#4ade80}evoke-toast .evoke-toast--danger .evoke-toast__icon{color:#f87171}evoke-toast .evoke-toast--warning .evoke-toast__icon{color:#fbbf24}evoke-toast .evoke-toast--info .evoke-toast__icon{color:#67e8f9}evoke-toast .evoke-toast__icon{flex:none;width:20px;height:20px}evoke-toast .evoke-toast__message{flex:1;min-width:0}evoke-toast .evoke-toast__action{flex:none;padding:6px 12px;font:inherit;font-weight:600;background:transparent;color:#ffb199;border:0;border-radius:var(--evoke-radius-field, 8px);cursor:pointer}evoke-toast .evoke-toast__action:hover{background:rgba(255, 255, 255, 0.12)}evoke-toast .evoke-toast__action:active{background:rgba(255, 255, 255, 0.2)}evoke-toast .evoke-toast__close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer}evoke-toast .evoke-toast__close:hover{background:rgba(255, 255, 255, 0.12)}evoke-toast .evoke-toast__action:focus-visible,evoke-toast .evoke-toast__close:focus-visible{outline:2px solid var(--evoke-surface, #ffffff);outline-offset:1px}evoke-toast .evoke-toast__close .evoke-icon{width:16px;height:16px}@keyframes evoke-toast-in{from{opacity:0;transform:translate(-50%, 8px)}to{opacity:1;transform:translate(-50%, 0)}}@media (prefers-reduced-motion: reduce){evoke-toast .evoke-toast{animation:none}}"}},[260,"evoke-toast",{open:[1540],message:[1],type:[1],action:[1],duration:[2],position:[1]},void 0,{open:[{onOpen:0}]}]);function c(){"undefined"!=typeof customElements&&["evoke-toast"].forEach((t=>{"evoke-toast"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}c();const v=r,k=c;export{v as EvokeToast,k as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface EvokeTooltip extends Components.EvokeTooltip, HTMLElement {}
4
+ export const EvokeTooltip: {
5
+ prototype: EvokeTooltip;
6
+ new (): EvokeTooltip;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{transformTag as e,proxyCustomElement as t,HTMLElement as o,h as i}from"@stencil/core/internal/client";const l=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.text="",this.placement="top",this.theme="dark",this.visible=!1,this.id="evoke-tip-"+Math.random().toString(36).slice(2,9),this.show=()=>this.visible=!0,this.hide=()=>this.visible=!1}componentDidLoad(){this.link(),this.observer=new MutationObserver((()=>this.link())),this.observer.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}link(){this.el.querySelectorAll("button, a[href], input, select, textarea, [tabindex]").forEach((e=>{var t;if(e.closest(".evoke-tooltip__bubble"))return;const o=(null!==(t=e.getAttribute("aria-describedby"))&&void 0!==t?t:"").split(" ").filter(Boolean);o.includes(this.id)||e.setAttribute("aria-describedby",[...o,this.id].join(" "))}))}render(){return i("span",{key:"4fad6f7ab25d2d68bb6db42a02f16b36439ec504",class:"evoke-tooltip",onMouseEnter:this.show,onMouseLeave:this.hide,onFocusin:this.show,onFocusout:this.hide,onKeyDown:e=>"Escape"===e.key&&this.hide()},i("slot",{key:"b1169b0a9870c3420c581d095eb0c15073df55df"}),i("span",{key:"4ee1f48be749e54c93dc7fd555f8021079d68038",id:this.id,role:"tooltip",class:`evoke-tooltip__bubble evoke-tooltip__bubble--${this.placement} evoke-tooltip__bubble--${this.theme} ${this.visible?"evoke-tooltip__bubble--visible":""}`.trim()},this.text))}get el(){return this}static get style(){return"evoke-tooltip{display:inline-block}evoke-tooltip .evoke-tooltip{position:relative;display:inline-flex}evoke-tooltip .evoke-tooltip__bubble{--_bg:var(--evoke-text, #1a1a1a);--_fg:var(--evoke-surface, #ffffff);position:absolute;z-index:30;box-sizing:border-box;width:max-content;max-width:240px;padding:6px 10px;border-radius:calc(var(--evoke-radius-field, 8px) - 2px);background:var(--_bg);color:var(--_fg);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:0.875rem;line-height:1.4;pointer-events:none;opacity:0;visibility:hidden;transition:opacity 0.12s, visibility 0.12s}evoke-tooltip .evoke-tooltip__bubble--visible{opacity:1;visibility:visible}evoke-tooltip .evoke-tooltip__bubble--light{--_bg:var(--evoke-surface, #ffffff);--_fg:var(--evoke-text, #1a1a1a);border:1px solid var(--evoke-border, #dedede);box-shadow:var(--evoke-shadow, 0 4px 12px rgba(0, 0, 0, 0.12))}evoke-tooltip .evoke-tooltip__bubble--top{bottom:calc(100% + 8px);left:50%;transform:translateX(-50%)}evoke-tooltip .evoke-tooltip__bubble--bottom{top:calc(100% + 8px);left:50%;transform:translateX(-50%)}evoke-tooltip .evoke-tooltip__bubble--left{right:calc(100% + 8px);top:50%;transform:translateY(-50%)}evoke-tooltip .evoke-tooltip__bubble--right{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}evoke-tooltip .evoke-tooltip__bubble--light::after{content:'';position:absolute;width:8px;height:8px;background:var(--_bg);border:1px solid var(--evoke-border, #dedede);transform:rotate(45deg)}evoke-tooltip .evoke-tooltip__bubble--light.evoke-tooltip__bubble--top::after{bottom:-5px;left:calc(50% - 4px);border-top:0;border-left:0}evoke-tooltip .evoke-tooltip__bubble--light.evoke-tooltip__bubble--bottom::after{top:-5px;left:calc(50% - 4px);border-bottom:0;border-right:0}evoke-tooltip .evoke-tooltip__bubble--light.evoke-tooltip__bubble--left::after{right:-5px;top:calc(50% - 4px);border-bottom:0;border-left:0}evoke-tooltip .evoke-tooltip__bubble--light.evoke-tooltip__bubble--right::after{left:-5px;top:calc(50% - 4px);border-top:0;border-right:0}@media (prefers-reduced-motion: reduce){evoke-tooltip .evoke-tooltip__bubble{transition:none}}"}},[260,"evoke-tooltip",{text:[1],placement:[1],theme:[1],visible:[32]}]);function b(){"undefined"!=typeof customElements&&["evoke-tooltip"].forEach((t=>{"evoke-tooltip"===t&&(customElements.get(e(t))||customElements.define(e(t),l))}))}b();const r=l,s=b;export{r as EvokeTooltip,s as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{h as a}from"@stencil/core/internal/client";const r={mail:["M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z","m22 7-10 6L2 7"],lock:["M5 11h14a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2z","M7 11V7a5 5 0 0 1 10 0v4"],user:["M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2","M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"],search:["M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16z","m21 21-4.3-4.3"],plus:["M12 5v14","M5 12h14"],minus:["M5 12h14"],check:["M20 6 9 17l-5-5"],x:["M18 6 6 18","m6 6 12 12"],"chevron-down":["m6 9 6 6 6-6"],"chevron-up":["m18 15-6-6-6 6"],"chevron-left":["m15 18-6-6 6-6"],"chevron-right":["m9 18 6-6-6-6"],"arrow-right":["M5 12h14","m12 5 7 7-7 7"],"arrow-up":["M12 19V5","m5 12 7-7 7 7"],"arrow-down":["M12 5v14","m19 12-7 7-7-7"],sort:["m7 15 5 5 5-5","m7 9 5-5 5 5"],cart:["M9 21a1 1 0 1 0 0-2 1 1 0 0 0 0 2z","M20 21a1 1 0 1 0 0-2 1 1 0 0 0 0 2z","M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6"],info:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M12 16v-4","M12 8h.01"],alert:["M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z","M12 9v4","M12 17h.01"]};function o(o,e="evoke-icon"){const n=o?r[o]:void 0;return n?a("svg",{class:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false"},n.map((r=>a("path",{d:r})))):null}export{o as r}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
19
+ /**
20
+ * Used to specify a nonce value that corresponds with an application's CSP.
21
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
22
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
23
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
24
+ * will result in the same behavior.
25
+ */
26
+ export declare const setNonce: (nonce: string) => void
27
+
28
+ export interface SetPlatformOptions {
29
+ raf?: (c: FrameRequestCallback) => number;
30
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
31
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
+ }
33
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
34
+
35
+ export * from '../types';
@@ -0,0 +1 @@
1
+ export{getAssetPath,render,setAssetPath,setNonce,setPlatformOptions}from"@stencil/core/internal/client";
@@ -0,0 +1 @@
1
+ function r(r){if(Array.isArray(r))return r;try{const t=JSON.parse(r);return Array.isArray(t)?t:[]}catch(r){return[]}}export{r as p}
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };