@evoke-tech/stencil-ui-kit 0.0.0-stage → 0.1.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 (87) hide show
  1. package/README.md +214 -2
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  3. package/dist/cjs/evoke-alert_6.cjs.entry.js +172 -0
  4. package/dist/cjs/evoke-card.cjs.entry.js +20 -0
  5. package/dist/cjs/evoke-modal.cjs.entry.js +34 -0
  6. package/dist/cjs/evoke-ui.cjs.js +25 -0
  7. package/dist/cjs/index-B8xS0y1i.js +1989 -0
  8. package/dist/cjs/index.cjs.js +2 -0
  9. package/dist/cjs/loader.cjs.js +13 -0
  10. package/dist/collection/collection-manifest.json +20 -0
  11. package/dist/collection/components/evoke-alert/evoke-alert.css +7 -0
  12. package/dist/collection/components/evoke-alert/evoke-alert.js +83 -0
  13. package/dist/collection/components/evoke-button/evoke-button.css +17 -0
  14. package/dist/collection/components/evoke-button/evoke-button.js +131 -0
  15. package/dist/collection/components/evoke-card/evoke-card.css +4 -0
  16. package/dist/collection/components/evoke-card/evoke-card.js +66 -0
  17. package/dist/collection/components/evoke-checkbox/evoke-checkbox.css +16 -0
  18. package/dist/collection/components/evoke-checkbox/evoke-checkbox.js +151 -0
  19. package/dist/collection/components/evoke-input/evoke-input.css +17 -0
  20. package/dist/collection/components/evoke-input/evoke-input.js +234 -0
  21. package/dist/collection/components/evoke-modal/evoke-modal.css +5 -0
  22. package/dist/collection/components/evoke-modal/evoke-modal.js +146 -0
  23. package/dist/collection/components/evoke-radio-group/evoke-radio-group.css +16 -0
  24. package/dist/collection/components/evoke-radio-group/evoke-radio-group.js +207 -0
  25. package/dist/collection/components/evoke-select/evoke-select.css +16 -0
  26. package/dist/collection/components/evoke-select/evoke-select.js +203 -0
  27. package/dist/collection/index.js +1 -0
  28. package/dist/collection/utils/options.js +12 -0
  29. package/dist/components/evoke-alert.d.ts +11 -0
  30. package/dist/components/evoke-alert.js +1 -0
  31. package/dist/components/evoke-button.d.ts +11 -0
  32. package/dist/components/evoke-button.js +1 -0
  33. package/dist/components/evoke-card.d.ts +11 -0
  34. package/dist/components/evoke-card.js +1 -0
  35. package/dist/components/evoke-checkbox.d.ts +11 -0
  36. package/dist/components/evoke-checkbox.js +1 -0
  37. package/dist/components/evoke-input.d.ts +11 -0
  38. package/dist/components/evoke-input.js +1 -0
  39. package/dist/components/evoke-modal.d.ts +11 -0
  40. package/dist/components/evoke-modal.js +1 -0
  41. package/dist/components/evoke-radio-group.d.ts +11 -0
  42. package/dist/components/evoke-radio-group.js +1 -0
  43. package/dist/components/evoke-select.d.ts +11 -0
  44. package/dist/components/evoke-select.js +1 -0
  45. package/dist/components/index.d.ts +35 -0
  46. package/dist/components/index.js +1 -0
  47. package/dist/components/options.js +1 -0
  48. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  49. package/dist/esm/evoke-alert_6.entry.js +165 -0
  50. package/dist/esm/evoke-card.entry.js +18 -0
  51. package/dist/esm/evoke-modal.entry.js +32 -0
  52. package/dist/esm/evoke-ui.js +21 -0
  53. package/dist/esm/index-BtM1wZ-I.js +1982 -0
  54. package/dist/esm/index.js +1 -0
  55. package/dist/esm/loader.js +11 -0
  56. package/dist/evoke-ui/evoke-ui.css +1 -0
  57. package/dist/evoke-ui/evoke-ui.esm.js +1 -0
  58. package/dist/evoke-ui/index.esm.js +0 -0
  59. package/dist/evoke-ui/p-243075cd.entry.js +1 -0
  60. package/dist/evoke-ui/p-605d4757.entry.js +1 -0
  61. package/dist/evoke-ui/p-9a6eaeb6.entry.js +1 -0
  62. package/dist/evoke-ui/p-BtM1wZ-I.js +3 -0
  63. package/dist/evoke-ui/p-DQuL1Twl.js +1 -0
  64. package/dist/index.cjs.js +1 -0
  65. package/dist/index.js +1 -0
  66. package/dist/themes/bootstrap.css +23 -0
  67. package/dist/themes/material.css +21 -0
  68. package/dist/themes/tailwind.css +24 -0
  69. package/dist/themes/tokens.css +26 -0
  70. package/dist/types/components/evoke-alert/evoke-alert.d.ts +8 -0
  71. package/dist/types/components/evoke-button/evoke-button.d.ts +11 -0
  72. package/dist/types/components/evoke-card/evoke-card.d.ts +6 -0
  73. package/dist/types/components/evoke-checkbox/evoke-checkbox.d.ts +13 -0
  74. package/dist/types/components/evoke-input/evoke-input.d.ts +19 -0
  75. package/dist/types/components/evoke-modal/evoke-modal.d.ts +14 -0
  76. package/dist/types/components/evoke-radio-group/evoke-radio-group.d.ts +18 -0
  77. package/dist/types/components/evoke-select/evoke-select.d.ts +18 -0
  78. package/dist/types/components.d.ts +657 -0
  79. package/dist/types/index.d.ts +2 -0
  80. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  81. package/dist/types/utils/options.d.ts +7 -0
  82. package/loader/cdn.js +1 -0
  83. package/loader/index.cjs.js +1 -0
  84. package/loader/index.d.ts +24 -0
  85. package/loader/index.es2017.js +1 -0
  86. package/loader/index.js +2 -0
  87. package/package.json +58 -4
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,11 @@
1
+ import { b as bootstrapLazy } from './index-BtM1wZ-I.js';
2
+ export { s as setNonce } from './index-BtM1wZ-I.js';
3
+ import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
+
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await globalScripts();
8
+ return bootstrapLazy([["evoke-alert_6",[[260,"evoke-alert",{"type":[1],"dismissible":[4]}],[260,"evoke-button",{"variant":[1],"type":[1],"disabled":[4],"block":[516],"buttonClass":[1,"button-class"]}],[260,"evoke-checkbox",{"label":[1],"checked":[1540],"disabled":[4],"error":[1],"inputClass":[1,"input-class"]}],[0,"evoke-input",{"label":[1],"value":[1025],"type":[1],"placeholder":[1],"disabled":[4],"error":[1],"icon":[1],"inputClass":[1,"input-class"]}],[0,"evoke-radio-group",{"label":[1],"options":[1],"value":[1025],"name":[1],"disabled":[4],"inline":[4],"error":[1]}],[0,"evoke-select",{"label":[1],"options":[1],"value":[1025],"placeholder":[1],"disabled":[4],"error":[1],"selectClass":[1,"select-class"]}]]],["evoke-card",[[260,"evoke-card",{"heading":[1],"cardClass":[1,"card-class"]}]]],["evoke-modal",[[260,"evoke-modal",{"open":[1540],"heading":[1],"closeOnBackdrop":[4,"close-on-backdrop"],"modalClass":[1,"modal-class"]},[[8,"keydown","onKeydown"]]]]]], options);
9
+ };
10
+
11
+ export { defineCustomElements };
@@ -0,0 +1 @@
1
+ :root{--evoke-primary:#ff5316;--evoke-primary-contrast:#ffffff;--evoke-secondary:#0b1560;--evoke-secondary-contrast:#ffffff;--evoke-danger:#dc2626;--evoke-success:#16a34a;--evoke-warning:#d97706;--evoke-info:#0891b2;--evoke-surface:#ffffff;--evoke-text:#1a1a1a;--evoke-text-muted:#7a7a7a;--evoke-border:#dedede;--evoke-radius:8px;--evoke-radius-field:8px;--evoke-radius-button:9999px;--evoke-control-height:56px;--evoke-button-padding-x:36px;--evoke-font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--evoke-font-size:16px;--evoke-focus-ring:0 0 0 3px rgba(11, 21, 96, 0.15)}
@@ -0,0 +1 @@
1
+ import{p as e,b as a}from"./p-BtM1wZ-I.js";export{s as setNonce}from"./p-BtM1wZ-I.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then((async e=>(await o(),a([["p-243075cd",[[260,"evoke-alert",{type:[1],dismissible:[4]}],[260,"evoke-button",{variant:[1],type:[1],disabled:[4],block:[516],buttonClass:[1,"button-class"]}],[260,"evoke-checkbox",{label:[1],checked:[1540],disabled:[4],error:[1],inputClass:[1,"input-class"]}],[0,"evoke-input",{label:[1],value:[1025],type:[1],placeholder:[1],disabled:[4],error:[1],icon:[1],inputClass:[1,"input-class"]}],[0,"evoke-radio-group",{label:[1],options:[1],value:[1025],name:[1],disabled:[4],inline:[4],error:[1]}],[0,"evoke-select",{label:[1],options:[1],value:[1025],placeholder:[1],disabled:[4],error:[1],selectClass:[1,"select-class"]}]]],["p-9a6eaeb6",[[260,"evoke-card",{heading:[1],cardClass:[1,"card-class"]}]]],["p-605d4757",[[260,"evoke-modal",{open:[1540],heading:[1],closeOnBackdrop:[4,"close-on-backdrop"],modalClass:[1,"modal-class"]},[[8,"keydown","onKeydown"]]]]]],e))));
File without changes
@@ -0,0 +1 @@
1
+ import{r as e,c as o,h as r}from"./p-BtM1wZ-I.js";const a=class{constructor(r){e(this,r),this.evokeDismiss=o(this,"evokeDismiss"),this.type="info",this.dismissible=!1}render(){return r("div",{key:"aa100cfbdf5f8551d0a46c50aa649a523bd05da7",class:`evoke-alert evoke-alert--${this.type}`,role:"alert"},r("div",{key:"93c4881344307580c8d1411259651f5eb22a72f5",class:"evoke-alert__content"},r("slot",{key:"ba362718033dff392088efed51e8332b8cccfa2d"})),this.dismissible&&r("button",{key:"5dcdd2e50ca6df6e430f59a4f88b63b3419c42b3",type:"button",class:"evoke-alert__close","aria-label":"Dismiss",onClick:()=>this.evokeDismiss.emit()},"×"))}};a.style="evoke-alert{display:block}evoke-alert .evoke-alert{display:flex;justify-content:space-between;gap:1rem;padding:0.75rem 1rem;border-radius:var(--evoke-radius, 8px);border:1px solid currentColor;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif)}evoke-alert .evoke-alert--info{color:var(--evoke-info, #0891b2);background:#ecfeff}evoke-alert .evoke-alert--success{color:var(--evoke-success, #16a34a);background:#f0fdf4}evoke-alert .evoke-alert--warning{color:var(--evoke-warning, #d97706);background:#fffbeb}evoke-alert .evoke-alert--danger{color:var(--evoke-danger, #dc2626);background:#fef2f2}evoke-alert .evoke-alert__close{background:none;border:0;color:inherit;font-size:1.25rem;cursor:pointer;line-height:1}";const i=class{constructor(o){e(this,o),this.variant="primary",this.type="button",this.disabled=!1,this.block=!1,this.buttonClass=""}render(){return r("button",{key:"b48e546fa722334e82989fe1125d7c9ab3fb4b17",type:this.type,disabled:this.disabled,class:`evoke-btn evoke-btn--${this.variant} ${this.buttonClass}`.trim()},r("slot",{key:"04716e70e788b071b67bbb25b8bc9d57b5066641"}))}};i.style="evoke-button{display:inline-block}evoke-button .evoke-btn{box-sizing:border-box;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);line-height:1.5;cursor:pointer;height:var(--evoke-control-height, 56px);padding:0 var(--evoke-button-padding-x, 36px);display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;border:1px solid transparent;border-radius:var(--evoke-radius-button, 9999px);transition:filter 0.15s, box-shadow 0.15s}evoke-button .evoke-btn:hover:not(:disabled){filter:brightness(0.92)}evoke-button .evoke-btn:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-button .evoke-btn:disabled{opacity:0.5;cursor:not-allowed}evoke-button .evoke-btn--primary{background:var(--evoke-primary, #ff5316);color:var(--evoke-primary-contrast, #ffffff)}evoke-button .evoke-btn--secondary{background:var(--evoke-secondary, #0b1560);color:var(--evoke-secondary-contrast, #ffffff)}evoke-button .evoke-btn--danger{background:var(--evoke-danger, #dc2626);color:#fff}evoke-button .evoke-btn--outline{background:transparent;color:var(--evoke-primary, #ff5316);border-color:var(--evoke-primary, #ff5316)}evoke-button[block]{display:block}evoke-button[block] .evoke-btn{width:100%}";const t=class{constructor(r){e(this,r),this.evokeChange=o(this,"evokeChange"),this.label="",this.checked=!1,this.disabled=!1,this.error="",this.inputClass=""}render(){return r("div",{key:"873dc82ace76a0e84e3ee13e9275b9db130e96eb",class:"evoke-check"},r("label",{key:"26b9e5ee359f855eca9f8e7722c06e62d6856005",class:"evoke-check__row "+(this.disabled?"evoke-check__row--disabled":"")},r("input",{key:"a338d54a0d91b8f2766dc540a0af2defa1241aa0",type:"checkbox",class:`evoke-check__input ${this.error?"evoke-check__input--error":""} ${this.inputClass}`.trim(),checked:this.checked,disabled:this.disabled,"aria-invalid":this.error?"true":void 0,onChange:e=>{this.checked=e.target.checked,this.evokeChange.emit(this.checked)}}),r("span",{key:"7036e0576bb0fcf561f1fa5a970409bd419cd363",class:"evoke-check__label"},this.label,r("slot",{key:"fba4bd96cecebce1b68297a7a59bbc660ad00107"}))),this.error&&r("span",{key:"924e7ca9becb279c733b9fa79daea6c1f7b4d140",class:"evoke-check__error",role:"alert"},this.error))}};t.style="evoke-checkbox{display:block}evoke-checkbox .evoke-check{display:flex;flex-direction:column;gap:0.25rem;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);color:var(--evoke-text, #1a1a1a)}evoke-checkbox .evoke-check__row{display:inline-flex;align-items:center;gap:0.5rem;cursor:pointer;font-size:0.875rem}evoke-checkbox .evoke-check__row--disabled{opacity:0.6;cursor:not-allowed}evoke-checkbox .evoke-check__input{appearance:none;-webkit-appearance:none;margin:0;flex:none;width:16px;height:16px;border:2px solid var(--evoke-primary, #ff5316);border-radius:4px;background:var(--evoke-surface, #ffffff) center / 12px no-repeat;cursor:inherit;transition:background-color 0.15s, box-shadow 0.15s}evoke-checkbox .evoke-check__input:checked{background-color:var(--evoke-primary, #ff5316);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\")}evoke-checkbox .evoke-check__input:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-checkbox .evoke-check__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-checkbox .evoke-check__error{color:var(--evoke-danger, #dc2626);font-size:0.875rem}";const s={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"]},n=class{constructor(r){e(this,r),this.evokeInput=o(this,"evokeInput"),this.evokeChange=o(this,"evokeChange"),this.label="",this.value="",this.type="text",this.placeholder="",this.disabled=!1,this.error="",this.inputClass="",this.inputId=`evoke-input-${Math.random().toString(36).slice(2,9)}`}render(){const e=this.icon?s[this.icon]:void 0;return r("div",{key:"1d86d23ab15a3f626d9fb970032d5214a94df0ef",class:"evoke-field"},this.label&&r("label",{key:"c3fea666855f42bf73dafb585645cb9035191d03",htmlFor:this.inputId,class:"evoke-field__label"},this.label),r("div",{key:"78656110961b784f80ce1a6efd5152452bff5f08",class:"evoke-field__control"},e&&r("svg",{key:"5635c5c5066042ea8c8a7a11067a1b00e6d92915",class:"evoke-field__icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},e.map((e=>r("path",{d:e})))),r("input",{key:"33ce669be666a515f053173c2a6f3105b4f806c9",id:this.inputId,class:`evoke-field__input ${e?"evoke-field__input--icon":""} ${this.error?"evoke-field__input--error":""} ${this.inputClass}`.trim(),type:this.type,value:this.value,placeholder:this.placeholder,disabled:this.disabled,"aria-invalid":this.error?"true":void 0,onInput:e=>{this.value=e.target.value,this.evokeInput.emit(this.value)},onChange:e=>this.evokeChange.emit(e.target.value)})),this.error&&r("span",{key:"c396800cb6a6f10309e936b1300ed9652e56d153",class:"evoke-field__error",role:"alert"},this.error))}};function c(e){if(Array.isArray(e))return e;try{const o=JSON.parse(e);return Array.isArray(o)?o:[]}catch(e){return[]}}n.style="evoke-input{display:block}evoke-input .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-input .evoke-field__label{color:var(--evoke-text, #1a1a1a)}evoke-input .evoke-field__control{position:relative}evoke-input .evoke-field__icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--evoke-text-muted, #7a7a7a);pointer-events:none}evoke-input .evoke-field__input{box-sizing:border-box;width:100%;height:var(--evoke-control-height, 56px);padding:0 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;transition:border-color 0.15s, box-shadow 0.15s}evoke-input .evoke-field__input--icon{padding-left:44px}evoke-input .evoke-field__input::placeholder{color:var(--evoke-text-muted, #7a7a7a)}evoke-input .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-input .evoke-field__input:disabled{opacity:0.6;cursor:not-allowed}evoke-input .evoke-field__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-input .evoke-field__error{color:var(--evoke-danger, #dc2626);font-size:0.875rem}";const d=class{constructor(r){e(this,r),this.evokeChange=o(this,"evokeChange"),this.label="",this.options=[],this.value="",this.name="",this.disabled=!1,this.inline=!1,this.error="",this.groupName=`evoke-radio-${Math.random().toString(36).slice(2,9)}`}render(){const e=this.name||this.groupName;return r("div",{key:"f90c5bee5d2eff847373e075c32689be55ded5b7",class:"evoke-radio",role:"radiogroup","aria-label":this.label||void 0},this.label&&r("span",{key:"1fbc7f744f3ec03637afce04a0dba2ee7beeec37",class:"evoke-radio__label"},this.label),r("div",{key:"cec0e44939dbca02e5623ce9b49c5c074f7c6fa7",class:"evoke-radio__options "+(this.inline?"evoke-radio__options--inline":"")},c(this.options).map((o=>{const a=this.disabled||o.disabled;return r("label",{class:"evoke-radio__row "+(a?"evoke-radio__row--disabled":"")},r("input",{type:"radio",class:("evoke-radio__input "+(this.error?"evoke-radio__input--error":"")).trim(),name:e,value:o.value,checked:o.value===this.value,disabled:a,onChange:()=>{this.value=o.value,this.evokeChange.emit(this.value)}}),r("span",null,o.label))}))),this.error&&r("span",{key:"d19f6043ee840711e62a6feb577a3f44dbed48be",class:"evoke-radio__error",role:"alert"},this.error))}};d.style="evoke-radio-group{display:block}evoke-radio-group .evoke-radio{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);color:var(--evoke-text, #1a1a1a)}evoke-radio-group .evoke-radio__label{font-size:var(--evoke-font-size, 16px)}evoke-radio-group .evoke-radio__options{display:flex;flex-direction:column;gap:0.5rem}evoke-radio-group .evoke-radio__options--inline{flex-direction:row;flex-wrap:wrap;gap:1.25rem}evoke-radio-group .evoke-radio__row{display:inline-flex;align-items:center;gap:0.5rem;cursor:pointer;font-size:0.875rem}evoke-radio-group .evoke-radio__row--disabled{opacity:0.6;cursor:not-allowed}evoke-radio-group .evoke-radio__input{appearance:none;-webkit-appearance:none;margin:0;flex:none;width:16px;height:16px;border:2px solid var(--evoke-primary, #ff5316);border-radius:50%;background:var(--evoke-surface, #ffffff);cursor:inherit;transition:box-shadow 0.15s}evoke-radio-group .evoke-radio__input:checked{background:radial-gradient(circle, var(--evoke-primary, #ff5316) 0 40%, var(--evoke-surface, #ffffff) 45%)}evoke-radio-group .evoke-radio__input:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-radio-group .evoke-radio__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-radio-group .evoke-radio__error{color:var(--evoke-danger, #dc2626);font-size:0.875rem}";const l=class{constructor(r){e(this,r),this.evokeChange=o(this,"evokeChange"),this.label="",this.options=[],this.value="",this.placeholder="Select an option",this.disabled=!1,this.error="",this.selectClass="",this.selectId=`evoke-select-${Math.random().toString(36).slice(2,9)}`}render(){return r("div",{key:"4a1543d6630c1594254213c2cafcfc6883f32ce2",class:"evoke-field"},this.label&&r("label",{key:"e387eb1dd52bd755ad848908603c06f45e99a9d8",htmlFor:this.selectId,class:"evoke-field__label"},this.label),r("div",{key:"4a23b2f05d408cd8f5d4942dc578e5a07233d17d",class:"evoke-field__control"},r("select",{key:"3aae8448326e8e4008570b07320f28a576d4c08c",id:this.selectId,class:`evoke-field__input evoke-field__select ${""===this.value?"evoke-field__select--empty":""} ${this.error?"evoke-field__input--error":""} ${this.selectClass}`.trim(),disabled:this.disabled,"aria-invalid":this.error?"true":void 0,onChange:e=>{this.value=e.target.value,this.evokeChange.emit(this.value)}},r("option",{key:"04defa87db88f21fc5bec7577afb7bb2ded1d6c6",value:"",disabled:!0,selected:""===this.value},this.placeholder),c(this.options).map((e=>r("option",{value:e.value,disabled:e.disabled,selected:e.value===this.value},e.label)))),r("svg",{key:"35046765ad125b7c7bfc66b3a55e8c2dfeae05a0",class:"evoke-field__chevron",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{key:"e65fd0cf45dd70061f37afa51db756906fe819d0",d:"m6 9 6 6 6-6"}))),this.error&&r("span",{key:"055c84a93853e14c2d1ec7c493c59f2d864c071a",class:"evoke-field__error",role:"alert"},this.error))}};l.style="evoke-select{display:block}evoke-select .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-select .evoke-field__control{position:relative}evoke-select .evoke-field__input{box-sizing:border-box;width:100%;height:var(--evoke-control-height, 56px);padding:0 48px 0 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;appearance:none;-webkit-appearance:none;cursor:pointer;transition:border-color 0.15s, box-shadow 0.15s}evoke-select .evoke-field__select--empty{color:var(--evoke-text-muted, #7a7a7a)}evoke-select .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-select .evoke-field__input:disabled{opacity:0.6;cursor:not-allowed}evoke-select .evoke-field__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-select .evoke-field__chevron{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--evoke-text-muted, #7a7a7a);pointer-events:none}evoke-select .evoke-field__error{color:var(--evoke-danger, #dc2626);font-size:0.875rem}";export{a as evoke_alert,i as evoke_button,t as evoke_checkbox,n as evoke_input,d as evoke_radio_group,l as evoke_select}
@@ -0,0 +1 @@
1
+ import{r as e,c as o,h as a}from"./p-BtM1wZ-I.js";const s=class{constructor(a){e(this,a),this.evokeClose=o(this,"evokeClose"),this.open=!1,this.heading="",this.closeOnBackdrop=!0,this.modalClass=""}onKeydown(e){this.open&&"Escape"===e.key&&this.close()}close(){this.open=!1,this.evokeClose.emit()}render(){return this.open?a("div",{class:"evoke-modal__backdrop",onClick:()=>this.closeOnBackdrop&&this.close()},a("div",{class:`evoke-modal ${this.modalClass}`.trim(),role:"dialog","aria-modal":"true","aria-label":this.heading||void 0,onClick:e=>e.stopPropagation()},a("div",{class:"evoke-modal__header"},a("span",null,this.heading),a("button",{type:"button",class:"evoke-modal__close","aria-label":"Close",onClick:()=>this.close()},"×")),a("div",{class:"evoke-modal__body"},a("slot",null)))):null}};s.style="evoke-modal .evoke-modal__backdrop{position:fixed;inset:0;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1000}evoke-modal .evoke-modal{background:var(--evoke-surface, #ffffff);color:var(--evoke-text, #1a1a1a);border-radius:var(--evoke-radius-field, 8px);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);min-width:min(90vw, 360px);max-width:90vw;max-height:90vh;overflow:auto;box-shadow:0 20px 40px rgba(0, 0, 0, 0.25)}evoke-modal .evoke-modal__header{display:flex;justify-content:space-between;align-items:center;padding:0.75rem 1rem;font-weight:600;border-bottom:1px solid var(--evoke-border, #dedede)}evoke-modal .evoke-modal__close{background:none;border:0;color:inherit;font-size:1.25rem;cursor:pointer;line-height:1}evoke-modal .evoke-modal__body{padding:1rem}";export{s as evoke_modal}
@@ -0,0 +1 @@
1
+ import{r as e,h as r}from"./p-BtM1wZ-I.js";const d=class{constructor(r){e(this,r),this.heading="",this.cardClass=""}render(){return r("div",{key:"cc5ba924fc7779952a0677c2e70303781928fe48",class:`evoke-card ${this.cardClass}`.trim()},this.heading&&r("div",{key:"bc64916a89f0309642d9b255c424e6764efbe76b",class:"evoke-card__header"},this.heading),r("div",{key:"bf3c54ab8eed335f9ce9143b8a29168563c1773f",class:"evoke-card__body"},r("slot",{key:"e4668d5c4fc9bd870012c84780918de81fb7a8f3"})))}};d.style="evoke-card{display:block}evoke-card .evoke-card{background:var(--evoke-surface, #ffffff);color:var(--evoke-text, #1a1a1a);border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-field, 8px);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);overflow:hidden}evoke-card .evoke-card__header{padding:0.75rem 1rem;font-weight:600;border-bottom:1px solid var(--evoke-border, #dedede)}evoke-card .evoke-card__body{padding:1rem}";export{d as evoke_card}
@@ -0,0 +1,3 @@
1
+ function t(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var n=(n,e)=>{var o;Object.entries(null!=(o=e.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=n[o],s=t(Object.getPrototypeOf(n),o,!0)||Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(n,o,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),e.l.has(o)?n[o]=e.l.get(o):void 0!==l&&(n[o]=l)}}))},e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&n(t,e))},l=(t,n)=>n in t,s=(t,n)=>(0,console.error)(t,n),i=new Map,r=new Map,c=new Map,u="slot-fb{display:contents}slot-fb[hidden]{display:none}",f="undefined"!=typeof window?window:{},a={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},d=t=>Promise.resolve(t),h=(()=>{try{return!!f.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),p=!!h&&(()=>!!f.document&&Object.getOwnPropertyDescriptor(f.document.adoptedStyleSheets,"length").writable)(),v=!1,m=[],b=[],y=()=>{var t;return(null==(t=f.document)?void 0:t.hidden)?setTimeout(g,16):a.raf(g)},$=(t,n)=>e=>{t.push(e),v||(v=!0,n&&4&a.u?j(g):y())},w=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){s(t)}t.length=0},g=()=>{w(m),w(b),(v=m.length>0)&&y()},j=t=>d().then(t),S=$(b,!0),O=t=>{const n=M(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&k(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!N(t,E(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&M(t,"childNodes").length&&O(t)}};function k(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||E(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...k(M(o,"childNodes"),n,e)]}return s}var N=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)E(l)!==n||!e&&l["s-sr"]||o.push(l);return o},C=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,E=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function M(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function T(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var L,R,A=new WeakMap,x=t=>"sc-"+t.p,D=t=>"object"==(t=typeof t)||"function"===t,F=(t,n,...e)=>{let o=null,l=null,i=null,r=!1,c=!1;const u=[],f=n=>{for(let e=0;e<n.length;e++)if(o=n[e],Array.isArray(o))f(o);else if(null!=o&&"boolean"!=typeof o){if(r="function"!=typeof t&&!D(o))o+="";else if("function"!=typeof t&&void 0===o.u){s("Invalid vNode child");continue}r&&c?u[u.length-1].v+=o:u.push(r?P(null,o):o),c=r}};if(f(e),n){n.key&&(l=n.key),n.name&&(i=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const a=P(t,null);return a.m=n,u.length>0&&(a.$=u),a.j=l,a.S=i,a},P=(t,n)=>({u:0,O:t,v:null!=n?n:null,k:null,$:null,m:null,j:null,S:null}),H={},_=(t,n)=>null==t||D(t)?t:4&n?"false"!==t&&(""===t||!!t):1&n?t+"":t,B=(t,n)=>{const o=(t=>{var n;return null==(n=e(t))?void 0:n.$hostElement$})(t);return{emit:t=>U(o,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},U=(t,n,e)=>{const o=a.ce(n,e);return t.dispatchEvent(o),o},W=(t,n,o,s,i,r)=>{if(o===s)return;let c=l(t,n),u=n.toLowerCase();if("class"===n){const n=t.classList,e=I(o);let l=I(s);{let t=e.filter((t=>t&&!l.includes(t)));n.remove(...t),n.add(...l.filter((t=>t&&!e.includes(t))))}}else if("key"===n);else if(c||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const o=n.slice(5);let l;{const n=e(t);if(n&&n.o&&n.o.t){const t=n.o.t[o];t&&t[1]&&(l=t[1])}}return l||(l=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==s||!1===s?!1===s&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===s?"":s))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=s}catch(t){}return}{const e=D(s);if((c||e&&null!==s)&&!i)try{if(t.tagName.includes("-"))t[n]!==s&&(t[n]=s);else{const e=null==s?"":s;"list"===n?c=!1:null!=o&&t[n]===e||("function"==typeof t.__lookupSetter__(n)?t[n]=e:t.setAttribute(n,e))}}catch(t){}null==s||!1===s?(!1!==s||""===t.getAttribute(n)||4&r&&!V(n))&&t.removeAttribute(n):(!c||4&r||i)&&!e&&1===t.nodeType&&t.setAttribute(n,s=!0===s?"":s)}}else if(n="-"===n[2]?n.slice(3):l(f,u)?u.slice(2):u[2]+n.slice(3),o||s){const e=n.endsWith(Y);n=n.replace(G,""),o&&a.rel(t,n,o,e),s&&a.ael(t,n,s,e)}},z=new Set(["draggable","contenteditable","spellcheck"]),V=t=>z.has(t)||t.startsWith("aria-"),q=/\s/,I=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(q):[]),Y="Capture",G=RegExp(Y+"$"),Z=(t,n,e)=>{const o=11===n.k.nodeType&&n.k.host?n.k.host:n.k,l=t&&t.m||{},s=n.m||{};for(const t of J(Object.keys(l)))t in s||W(o,t,l[t],void 0,e,n.u);for(const t of J(Object.keys(s)))W(o,t,l[t],s[t],e,n.u)};function J(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var K=!1,Q=!1,X=!1,tt=!1,nt=(t,n,e)=>{var o;const l=n.$[e];let s,i,r,c=0;if(K||(X=!0,"slot"===l.O&&(l.u|=l.$?2:1)),null!=l.v)s=l.k=f.document.createTextNode(l.v);else if(1&l.u)s=l.k=f.document.createTextNode(""),Z(null,l,tt);else{if(tt||(tt="svg"===l.O),!f.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.k=f.document.createElementNS(tt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!K&&2&l.u?"slot-fb":l.O),tt&&"foreignObject"===l.O&&(tt=!1),Z(null,l,tt),l.$){const n="template"===l.O?s.content:s;for(c=0;c<l.$.length;++c)i=nt(t,l,c),i&&n.appendChild(i)}"svg"===l.O?tt=!1:"foreignObject"===s.tagName&&(tt=!0)}return s["s-hn"]=R,3&l.u&&(s["s-sr"]=!0,s["s-cr"]=L,s["s-sn"]=l.S||"",s["s-rf"]=null==(o=l.m)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===E(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(s),r=t&&t.$&&t.$[e],r&&r.O===l.O&&t.k&&et(t.k)),s},et=t=>{a.u|=1;const n=t.closest(R.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(at(n,t,null!=e?e:null),t["s-sh"]=void 0,X=!0)}a.u&=-2},ot=(t,n)=>{a.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===R&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==R&&o["s-ol"]&&(at(rt(o).parentNode,o,rt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,X=!0),n&&ot(o,n)}a.u&=-2},lt=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===e.O&&(r=r.content);l<=s;++l)o[l]&&(i=nt(null,e,l),i&&(o[l].k=i,at(r,i,rt(n))))},st=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;t&&(Q=!0,t["s-ol"]?t["s-ol"].remove():ot(t,!0),t.remove())}}},it=(t,n,e=!1)=>t.O===n.O&&("slot"===t.O?t.S===n.S:e?(e&&!t.j&&n.j&&(t.j=n.j),!0):t.j===n.j),rt=t=>t&&t["s-ol"]||t,ct=(t,n,e=!1)=>{const o=n.k=t.k,l=t.$,s=n.$,i=n.O,r=n.v;let c;null==r?(tt="svg"===i||"foreignObject"!==i&&tt,"slot"!==i||K||t.S!==n.S&&(n.k["s-sn"]=n.S||"",et(n.k.parentElement)),Z(t,n,tt),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],h=n[a],p=o.length-1,v=o[0],m=o[p];const b="template"===e.O?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=n[++r];else if(null==h)h=n[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--p];else if(it(d,v,l))ct(d,v,l),d=n[++r],v=o[++c];else if(it(h,m,l))ct(h,m,l),h=n[--a],m=o[--p];else if(it(d,m,l))"slot"!==d.O&&"slot"!==m.O||ot(d.k.parentNode,!1),ct(d,m,l),at(b,d.k,h.k.nextSibling),d=n[++r],m=o[--p];else if(it(h,v,l))"slot"!==d.O&&"slot"!==m.O||ot(h.k.parentNode,!1),ct(h,v,l),at(b,h.k,d.k),h=n[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].j&&n[f].j===v.j){u=f;break}u>=0?(i=n[u],i.O!==v.O?s=nt(n&&n[c],e,c):(ct(i,v,l),n[u]=void 0,s=i.k),v=o[++c]):(s=nt(n&&n[c],e,c),v=o[++c]),s&&at(rt(d.k).parentNode,s,rt(d.k))}r>a?lt(t,null==o[p+1]?null:o[p+1].k,e,o,c,p):c>p&&st(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.v&&(o.textContent=""),lt(o,null,n,s,0,s.length-1)):!e&&null!==l&&st(l,0,l.length-1),tt&&"svg"===i&&(tt=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.v!==r&&(o.data=r)},ut=[],ft=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(!n["s-sh"]||n["s-sh"]!==t["s-hn"]||""!==l&&E(n)===l))if(C(n,l)){let e=ut.find((t=>t.N===n));Q=!0,n["s-sn"]=n["s-sn"]||l,e?(e.N["s-sh"]=t["s-hn"],e.C=t):(n["s-sh"]=t["s-hn"],ut.push({C:t,N:n})),n["s-sr"]&&ut.map((t=>{C(t.N,n["s-sn"])&&(e=ut.find((t=>t.N===n)),e&&!t.C&&(t.C=e.C))}))}else ut.some((t=>t.N===n))||ut.push({N:n})}1===t.nodeType&&ft(t)}},at=(t,n,e,o)=>{if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=E(t)||"";return{slotNode:k(M(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(l),n}return(null==t?void 0:t.__insertBefore)?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)},dt=(t,n)=>{if(n&&!t.M&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.M=()=>{n["s-p"].splice(e-1,1),o()})))}},ht=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);dt(t,t.T);const e=()=>pt(t,n);if(!n)return S(e);queueMicrotask((()=>{e()}))},pt=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.L&&(t.L=!1,gt(o,"connectedCallback",void 0,e)),t.u|=256,t.R&&(t.R.map((([t,n])=>gt(o,t,n,e))),t.R=void 0),t.A.length&&t.A.forEach((t=>t(e))),l=gt(o,"componentWillLoad",void 0,e)):l=gt(o,"componentWillUpdate",void 0,e),l=vt(l,(()=>gt(o,"componentWillRender",void 0,e))),vt(l,(()=>bt(t,o,n)))},vt=(t,n)=>mt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),mt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,bt=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o;((t,n)=>{var e,o,l;const s=x(n),i=c.get(s);if(!f.document)return s;if(t=11===t.nodeType?t:f.document,i)if("string"==typeof i){let l,r=A.get(t=t.head||t);if(r||A.set(t,r=new Set),!r.has(s)){l=f.document.createElement("style"),l.textContent=i;const c=null!=(e=a.D)?e:T(f.document);if(null!=c&&l.setAttribute("nonce",c),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(h){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(i),p?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=i+n.textContent:t.prepend(l)}else t.append(l);1&n.u&&t.insertBefore(l,null),4&n.u&&(l.textContent+=u),r&&r.add(s)}}else{let n=A.get(t);if(n||A.set(t,n=new Set),!n.has(s)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(i.constructor===e.CSSStyleSheet)o=i;else{o=new e.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)o.insertRule(i.cssRules[t].cssText,t)}p?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(s)}}})(t.$hostElement$.getRootNode(),n)})(t);yt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>$t(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.u|=4,n.length=0)}},yt=(t,n,e,o)=>{try{n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,s,i,r;const c=t.$hostElement$,u=t.o,d=t.F||P(null,null),h=(t=>t&&t.O===H)(n)?n:F(null,null,n);if(R=c.tagName,u.P&&(h.m=h.m||{},u.P.forEach((([t,n])=>{h.m[n]=c[t]}))),e&&h.m)for(const t of Object.keys(h.m))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(h.m[t]=c[t]);if(h.O=null,h.u|=4,t.F=h,h.k=d.k=c,K=!1,L=c["s-cr"],Q=!1,ct(d,h,e),a.u|=1,X){ft(h.k);for(const t of ut){const n=t.N;if(!n["s-ol"]&&f.document){const t=f.document.createTextNode("");t["s-nr"]=n,at(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of ut){const n=t.N,r=t.C;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(at(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=f.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,at(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(i=n["s-ih"])&&i)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(Q&&O(h.k),a.u&=-2,ut.length=0,!K&&!(1&u.u)&&c["s-cr"]){const t=h.k.__childNodes||h.k.childNodes;for(const n of t)if(n["s-hn"]!==R&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(r=n.hidden)&&r),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=f.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],at(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}L=void 0})(t,n,o)}catch(n){s(n,t.$hostElement$)}return null},$t=t=>{const n=t.$hostElement$,e=t.i,o=t.T;gt(e,"componentDidRender",void 0,n),64&t.u?gt(e,"componentDidUpdate",void 0,n):(t.u|=64,jt(n),gt(e,"componentDidLoad",void 0,n),t.H(n),o||wt()),t.M&&(t.M(),t.M=void 0),512&t.u&&j((()=>ht(t,!1))),t.u&=-517},wt=()=>{j((()=>U(f,"appload",{detail:{namespace:"evoke-ui"}})))},gt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){s(t,o)}},jt=t=>t.classList.add("hydrated"),St=(t,n)=>e(t).l.get(n),Ot=(t,n,o,l)=>{const s=e(t);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${l.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=s.l.get(n),r=s.u,c=s.i;if(o=_(o,l.t[n][0]),(!(8&r)||void 0===i)&&o!==i&&(!Number.isNaN(i)||!Number.isNaN(o))&&(s.l.set(n,o),2&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,i,n)&&!(16&r))return;16&r||ht(s,!1)}},kt=(n,o,l)=>{var s,i;const r=n.prototype;if(o.t){const c=Object.entries(null!=(s=o.t)?s:{});if(c.map((([n,[s]])=>{if(31&s||2&l&&32&s){const{get:i,set:c}=t(r,n)||{};i&&(o.t[n][0]|=2048),c&&(o.t[n][0]|=4096),(1&l||!i)&&Object.defineProperty(r,n,{get(){{if(!(2048&o.t[n][0]))return St(this,n);const t=e(this);return t?t.i?t.i[n]:St(this,n):r[n]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,n,{set(t){const i=e(this);if(i){if(c)return void 0===(32&s?this[n]:i.$hostElement$[n])&&i.l.get(n)&&(t=i.l.get(n)),c.call(this,_(t,s)),void Ot(this,n,t=32&s?this[n]:i.$hostElement$[n],o);{if(!(1&l&&4096&o.t[n][0]))return void Ot(this,n,t,o);const e=_(t,s);if(i.i){const t=i.i[n];!i.l.get(n)&&t&&i.l.set(n,t),i.i[n]=e,Ot(this,n,i.i[n],o)}else i.l.set(n,e)}}}})}})),1&l){const t=new Map;r.attributeChangedCallback=function(n,l,s){a.jmp((()=>{var i;const u=t.get(n),f=e(this);if(this.hasOwnProperty(u)&&(s=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&s!==l){const e=f.i,r=null==(i=o._)?void 0:i[n];null==r||r.forEach((o=>{const[[i,r]]=Object.entries(o);null!=e[i]&&(128&t||1&r)&&e[i].call(e,s,l,n)}))}return}const a=c.find((([t])=>t===u)),d=a?a[1][0]:0,h=4&d;if(512&d&&8&d&&!D(this[u])&&(t=>null==t||!1===t?null:!0===t?"":t+"")(this[u])===s)return;const p=h&&null===s&&void 0===this[u];h&&(s=null!==s&&"false"!==s);const v=Object.getOwnPropertyDescriptor(r,u);p||s==this[u]||v.get&&!v.set||(this[u]=s)}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=o._)?i:{}),...c.filter((([t,n])=>31&n[0])).map((([n,e])=>{var l;const s=e[1]||n;return t.set(s,n),512&e[0]&&(null==(l=o.P)||l.push([n,s])),s}))]))}}return n},Nt=async(t,n,e)=>{var o;let l;try{if(!(32&n.u)){if(n.u|=32,n.u&=-1025,e.B){const c=((t,n)=>{var e;const o=t.p.replace(/-/g,"_"),l=t.B;if(!l)return;const c=i.get(l);if(c)return c[o];const u=null!=(e=r.get(l))?e:0,f=[u>0?"s-retry="+u:"",""].filter(Boolean).join("&");
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
3
+ return import(`./${l}.entry.js${f?"?"+f:""}`).then((t=>(r.delete(l),i.set(l,t),t[o])),(t=>{r.set(l,u+1),s(t,n.$hostElement$)}))})(e,n);if(c&&"then"in c){const t=()=>{};l=await c,t()}else l=c;if(!l)throw n.u&=-33,n.U=(null!=(o=n.U)?o:0)+1,n.U<3&&(n.u|=1024),Error(`Constructor for "${e.p}#${n.W}" was not found`);l.isProxied||(kt(l,e,2),l.isProxied=!0);const u=()=>{};n.u|=8;try{new l(n)}catch(n){s(n,t)}n.u&=-9,((t,n)=>{var e;const o=t.i;if(o)for(const[l,[s]]of Object.entries(null!=(e=n.t)?e:{}))if(4096&s&&t.l.has(l)){const n=t.l.get(l);o[l]!==n&&(o[l]=n)}})(n,e),u(),4&e.u?n.L=!0:Ct(n.i,t)}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const n=x(e);if(!c.has(n)){const o=()=>{};((t,n,e)=>{let o=c.get(t);h&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,c.set(t,o)})(n,t,!!(1&e.u)),o()}}}const u=n.T,f=()=>ht(n,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(e){s(e,t),n.M&&(n.M(),n.M=void 0),!n.H||1024&n.u||n.H(t)}},Ct=(t,n)=>{gt(t,"connectedCallback",void 0,n)},Et=(t,n)=>{gt(t,"disconnectedCallback",void 0,n||t)},Mt=(t,n={})=>{var o;if(!f.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],s=n.exclude||[],i=f.customElements,r=f.document.head,c=r.querySelector("meta[charset]"),d=f.document.createElement("style"),h=[];let p,v=!0;Object.assign(a,n),a.h=new URL(n.resourcesUrl||"./",f.document.baseURI).href;let m=!1;if(t.map((t=>{t[1].map((n=>{const o={u:n[0],p:n[1],t:n[2],V:n[3]};4&o.u&&(m=!0),o.t=n[2],o.V=n[3],o.P=[];const r=o.p,c=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,q:new Map};e.I=new Promise((t=>e.H=t)),t["s-p"]=[],t["s-rc"]=[],e.A=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,o)}connectedCallback(){const t=e(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Tt(this,t,o.V)),p&&(clearTimeout(p),p=null),v?h.push(this):a.jmp((()=>(t=>{if(!(1&a.u)){const n=e(t);if(!n)return;const o=n.o,l=()=>{};if(1&n.u)Tt(t,n,o.V),(null==n?void 0:n.i)?Ct(n.i,t):1024&n.u?setTimeout((()=>Nt(t,n,o)),1e3):(null==n?void 0:n.I)&&n.I.then((()=>Ct(n.i,t)));else{n.u|=1,12&o.u&&(t=>{if(!f.document)return;const n=t["s-cr"]=f.document.createComment("");n["s-cn"]=!0,at(t,n,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){dt(n,n.T=e);break}}o.t&&Object.entries(o.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),Nt(t,n,o)}l()}})(this))))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.u)){const n=e(t);(null==n?void 0:n.Y)&&(n.Y.map((t=>t())),n.Y=void 0),(null==n?void 0:n.i)?Et(n.i,t):(null==n?void 0:n.I)&&n.I.then((()=>Et(n.i,t)))}A.has(t)&&A.delete(t),t.shadowRoot&&A.has(t.shadowRoot)&&A.delete(t.shadowRoot)})(this))),j((()=>{var t;const n=e(this);if(!n)return;const o=h.findIndex((t=>t===this));o>-1&&h.splice(o,1),(null==(t=null==n?void 0:n.F)?void 0:t.k)instanceof Node&&!n.F.k.isConnected&&delete n.F.k}))}componentOnReady(){var t;return null==(t=e(this))?void 0:t.I}};o.B=t[0],s.includes(r)||i.get(r)||(l.push(r),i.define(r,kt(c,o,1)))}))})),l.length>0&&(m&&(d.textContent+=u),d.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",d.innerHTML.length)){d.setAttribute("data-styles","");const t=null!=(o=a.D)?o:T(f.document);null!=t&&d.setAttribute("nonce",t),r.insertBefore(d,c?c.nextSibling:r.firstChild)}v=!1,h.length?h.map((t=>t.connectedCallback())):a.jmp((()=>p=setTimeout(wt,30)))},Tt=(t,n,e)=>{e&&f.document&&e.map((([e,o,l])=>{const s=Rt(f.document,t,e),i=Lt(n,l),r=At(e);a.ael(s,o,i,r),(n.Y=n.Y||[]).push((()=>a.rel(s,o,i,r)))}))},Lt=(t,n)=>e=>{var o;try{256&t.u?null==(o=t.i)||o[n](e):(t.R=t.R||[]).push([n,e])}catch(n){s(n,t.$hostElement$)}},Rt=(t,n,e)=>8&e?f:n,At=t=>({passive:!!(1&t),capture:!!(2&t)}),xt=t=>a.D=t;export{Mt as b,B as c,F as h,d as p,o as r,xt as s}
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,23 @@
1
+ /* Bootstrap 5 theme: maps Evoke tokens to Bootstrap CSS variables (--bs-*). */
2
+ :root {
3
+ --evoke-primary: var(--bs-primary, #0d6efd);
4
+ --evoke-primary-contrast: var(--bs-white, #fff);
5
+ --evoke-danger: var(--bs-danger, #dc3545);
6
+ --evoke-success: var(--bs-success, #198754);
7
+ --evoke-warning: var(--bs-warning, #ffc107);
8
+ --evoke-info: var(--bs-info, #0dcaf0);
9
+ --evoke-surface: var(--bs-body-bg, #fff);
10
+ --evoke-text: var(--bs-body-color, #212529);
11
+ --evoke-border: var(--bs-border-color, #dee2e6);
12
+ --evoke-radius: var(--bs-border-radius, 0.375rem);
13
+ --evoke-radius-field: var(--bs-border-radius, 0.375rem);
14
+ --evoke-font: var(--bs-body-font-family, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
15
+ --evoke-focus-ring: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
16
+ --evoke-secondary: var(--bs-secondary, #6c757d);
17
+ --evoke-secondary-contrast: var(--bs-white, #fff);
18
+ --evoke-text-muted: var(--bs-secondary-color, #6c757d);
19
+ --evoke-radius-button: var(--bs-border-radius, 0.375rem);
20
+ --evoke-control-height: 38px;
21
+ --evoke-button-padding-x: 0.75rem;
22
+ --evoke-font-size: 1rem;
23
+ }
@@ -0,0 +1,21 @@
1
+ /* Angular Material theme: maps Evoke tokens to Material 3 system tokens (--mat-sys-*).
2
+ Works with `mat.theme()` / `mat.system-level-colors`. Fallbacks are the M3 baseline palette. */
3
+ :root {
4
+ --evoke-primary: var(--mat-sys-primary, #6750a4);
5
+ --evoke-primary-contrast: var(--mat-sys-on-primary, #ffffff);
6
+ --evoke-danger: var(--mat-sys-error, #b3261e);
7
+ --evoke-surface: var(--mat-sys-surface, #fef7ff);
8
+ --evoke-text: var(--mat-sys-on-surface, #1d1b20);
9
+ --evoke-border: var(--mat-sys-outline, #79747e);
10
+ --evoke-radius: var(--mat-sys-corner-full, 20px);
11
+ --evoke-radius-field: var(--mat-sys-corner-extra-small, 4px);
12
+ --evoke-font: var(--mat-sys-body-large-font, Roboto, 'Helvetica Neue', sans-serif);
13
+ --evoke-focus-ring: 0 0 0 2px var(--mat-sys-primary, #6750a4);
14
+ --evoke-secondary: var(--mat-sys-secondary, #625b71);
15
+ --evoke-secondary-contrast: var(--mat-sys-on-secondary, #ffffff);
16
+ --evoke-text-muted: var(--mat-sys-on-surface-variant, #49454f);
17
+ --evoke-radius-button: var(--mat-sys-corner-full, 20px);
18
+ --evoke-control-height: 40px;
19
+ --evoke-button-padding-x: 24px;
20
+ --evoke-font-size: 1rem;
21
+ }
@@ -0,0 +1,24 @@
1
+ /* Tailwind theme: maps Evoke tokens to Tailwind v4 theme variables (--color-*, --radius-*).
2
+ Fallbacks are Tailwind's default palette values, so it also works with Tailwind v3. */
3
+ :root {
4
+ --evoke-primary: var(--color-blue-600, #2563eb);
5
+ --evoke-primary-contrast: var(--color-white, #ffffff);
6
+ --evoke-danger: var(--color-red-600, #dc2626);
7
+ --evoke-success: var(--color-green-600, #16a34a);
8
+ --evoke-warning: var(--color-amber-600, #d97706);
9
+ --evoke-info: var(--color-cyan-600, #0891b2);
10
+ --evoke-surface: var(--color-white, #ffffff);
11
+ --evoke-text: var(--color-gray-800, #1f2937);
12
+ --evoke-border: var(--color-gray-300, #d1d5db);
13
+ --evoke-radius: var(--radius-md, 0.375rem);
14
+ --evoke-radius-field: var(--radius-md, 0.375rem);
15
+ --evoke-font: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
16
+ --evoke-focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-blue-500, #3b82f6) 40%, transparent);
17
+ --evoke-secondary: var(--color-slate-800, #1e293b);
18
+ --evoke-secondary-contrast: var(--color-white, #ffffff);
19
+ --evoke-text-muted: var(--color-gray-500, #6b7280);
20
+ --evoke-radius-button: var(--radius-md, 0.375rem);
21
+ --evoke-control-height: 2.5rem;
22
+ --evoke-button-padding-x: 1rem;
23
+ --evoke-font-size: 1rem;
24
+ }
@@ -0,0 +1,26 @@
1
+ /* Base design tokens (default Evoke look, taken from the Evoke Figma design).
2
+ Always loaded via the package's global stylesheet.
3
+ Import material.css / tailwind.css / bootstrap.css AFTER this to remap tokens to that system,
4
+ or override any --evoke-* variable yourself. */
5
+ :root {
6
+ --evoke-primary: #ff5316;
7
+ --evoke-primary-contrast: #ffffff;
8
+ --evoke-secondary: #0b1560;
9
+ --evoke-secondary-contrast: #ffffff;
10
+ --evoke-danger: #dc2626;
11
+ --evoke-success: #16a34a;
12
+ --evoke-warning: #d97706;
13
+ --evoke-info: #0891b2;
14
+ --evoke-surface: #ffffff;
15
+ --evoke-text: #1a1a1a;
16
+ --evoke-text-muted: #7a7a7a;
17
+ --evoke-border: #dedede;
18
+ --evoke-radius: 8px;
19
+ --evoke-radius-field: 8px;
20
+ --evoke-radius-button: 9999px;
21
+ --evoke-control-height: 56px;
22
+ --evoke-button-padding-x: 36px;
23
+ --evoke-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
24
+ --evoke-font-size: 16px;
25
+ --evoke-focus-ring: 0 0 0 3px rgba(11, 21, 96, 0.15);
26
+ }
@@ -0,0 +1,8 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EvokeAlert {
3
+ type: 'info' | 'success' | 'warning' | 'danger';
4
+ dismissible: boolean;
5
+ /** Fired when the dismiss button is clicked */
6
+ evokeDismiss: EventEmitter<void>;
7
+ render(): any;
8
+ }
@@ -0,0 +1,11 @@
1
+ export declare class EvokeButton {
2
+ /** Visual variant */
3
+ variant: 'primary' | 'secondary' | 'danger' | 'outline';
4
+ type: 'button' | 'submit' | 'reset';
5
+ disabled: boolean;
6
+ /** Stretch to the full width of the container */
7
+ block: boolean;
8
+ /** Extra classes for the inner <button>, e.g. "btn btn-lg" (Bootstrap) or "shadow-lg" (Tailwind) */
9
+ buttonClass: string;
10
+ render(): any;
11
+ }
@@ -0,0 +1,6 @@
1
+ export declare class EvokeCard {
2
+ heading: string;
3
+ /** Extra classes for the card container, e.g. "shadow-md" (Tailwind) or "card" (Bootstrap) */
4
+ cardClass: string;
5
+ render(): any;
6
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EvokeCheckbox {
3
+ label: string;
4
+ checked: boolean;
5
+ disabled: boolean;
6
+ /** Error message shown below the checkbox */
7
+ error: string;
8
+ /** Extra classes for the inner <input> */
9
+ inputClass: string;
10
+ /** Emits the new checked state */
11
+ evokeChange: EventEmitter<boolean>;
12
+ render(): any;
13
+ }
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EvokeInput {
3
+ label: string;
4
+ value: string;
5
+ type: string;
6
+ placeholder: string;
7
+ disabled: boolean;
8
+ error: string;
9
+ /** Optional leading icon */
10
+ icon?: 'mail' | 'lock' | 'user' | 'search';
11
+ /** Extra classes for the inner <input>, e.g. "form-control" (Bootstrap) */
12
+ inputClass: string;
13
+ /** Emits the new value on every keystroke */
14
+ evokeInput: EventEmitter<string>;
15
+ /** Emits the new value on commit (blur/enter) */
16
+ evokeChange: EventEmitter<string>;
17
+ private inputId;
18
+ render(): any;
19
+ }
@@ -0,0 +1,14 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EvokeModal {
3
+ /** Whether the modal is visible */
4
+ open: boolean;
5
+ heading: string;
6
+ closeOnBackdrop: boolean;
7
+ /** Extra classes for the dialog panel */
8
+ modalClass: string;
9
+ /** Fired when the modal requests to close (backdrop, Esc, or close button) */
10
+ evokeClose: EventEmitter<void>;
11
+ onKeydown(e: KeyboardEvent): void;
12
+ private close;
13
+ render(): any;
14
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { EvokeOption } from '../../utils/options';
3
+ export declare class EvokeRadioGroup {
4
+ label: string;
5
+ /** Options as an array of { label, value, disabled? } or a JSON string of the same */
6
+ options: EvokeOption[] | string;
7
+ value: string;
8
+ name: string;
9
+ disabled: boolean;
10
+ /** Lay options out in a row instead of a column */
11
+ inline: boolean;
12
+ /** Error message shown below the group */
13
+ error: string;
14
+ /** Emits the selected value */
15
+ evokeChange: EventEmitter<string>;
16
+ private groupName;
17
+ render(): any;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { EvokeOption } from '../../utils/options';
3
+ export declare class EvokeSelect {
4
+ label: string;
5
+ /** Options as an array of { label, value, disabled? } or a JSON string of the same */
6
+ options: EvokeOption[] | string;
7
+ value: string;
8
+ placeholder: string;
9
+ disabled: boolean;
10
+ /** Error message shown below the field */
11
+ error: string;
12
+ /** Extra classes for the inner <select>, e.g. "form-select" (Bootstrap) */
13
+ selectClass: string;
14
+ /** Emits the selected value */
15
+ evokeChange: EventEmitter<string>;
16
+ private selectId;
17
+ render(): any;
18
+ }