@evoke-tech/stencil-ui-kit 0.1.0 → 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.
- package/README.md +120 -20
- package/dist/cjs/evoke-alert_20.cjs.entry.js +1047 -0
- package/dist/cjs/evoke-ui.cjs.js +2 -2
- package/dist/cjs/{index-B8xS0y1i.js → index-BpJ5gu8f.js} +146 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +13 -1
- package/dist/collection/components/evoke-alert/evoke-alert.css +17 -6
- package/dist/collection/components/evoke-alert/evoke-alert.js +25 -1
- package/dist/collection/components/evoke-app-bar/evoke-app-bar.css +13 -0
- package/dist/collection/components/evoke-app-bar/evoke-app-bar.js +94 -0
- package/dist/collection/components/evoke-badge/evoke-badge.css +13 -0
- package/dist/collection/components/evoke-badge/evoke-badge.js +162 -0
- package/dist/collection/components/evoke-button/evoke-button.css +16 -2
- package/dist/collection/components/evoke-button/evoke-button.js +117 -5
- package/dist/collection/components/evoke-card/evoke-card.css +9 -1
- package/dist/collection/components/evoke-card/evoke-card.js +75 -1
- package/dist/collection/components/evoke-checkbox/evoke-checkbox.css +7 -1
- package/dist/collection/components/evoke-checkbox/evoke-checkbox.js +31 -2
- package/dist/collection/components/evoke-chip/evoke-chip.css +16 -0
- package/dist/collection/components/evoke-chip/evoke-chip.js +149 -0
- package/dist/collection/components/evoke-input/evoke-input.css +11 -3
- package/dist/collection/components/evoke-input/evoke-input.js +103 -13
- package/dist/collection/components/evoke-modal/evoke-modal.css +21 -5
- package/dist/collection/components/evoke-modal/evoke-modal.js +129 -4
- package/dist/collection/components/evoke-pagination/evoke-pagination.css +12 -0
- package/dist/collection/components/evoke-pagination/evoke-pagination.js +156 -0
- package/dist/collection/components/evoke-progress/evoke-progress.css +12 -0
- package/dist/collection/components/evoke-progress/evoke-progress.js +146 -0
- package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.css +20 -0
- package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.js +201 -0
- package/dist/collection/components/evoke-radio-group/evoke-radio-group.css +14 -1
- package/dist/collection/components/evoke-radio-group/evoke-radio-group.js +34 -8
- package/dist/collection/components/evoke-select/evoke-select.css +25 -4
- package/dist/collection/components/evoke-select/evoke-select.js +245 -15
- package/dist/collection/components/evoke-switch/evoke-switch.css +16 -0
- package/dist/collection/components/evoke-switch/evoke-switch.js +151 -0
- package/dist/collection/components/evoke-table/evoke-table.css +20 -0
- package/dist/collection/components/evoke-table/evoke-table.js +222 -0
- package/dist/collection/components/evoke-tabs/evoke-tabs.css +20 -0
- package/dist/collection/components/evoke-tabs/evoke-tabs.js +179 -0
- package/dist/collection/components/evoke-textarea/evoke-textarea.css +19 -0
- package/dist/collection/components/evoke-textarea/evoke-textarea.js +328 -0
- package/dist/collection/components/evoke-toast/evoke-toast.css +24 -0
- package/dist/collection/components/evoke-toast/evoke-toast.js +225 -0
- package/dist/collection/components/evoke-tooltip/evoke-tooltip.css +22 -0
- package/dist/collection/components/evoke-tooltip/evoke-tooltip.js +119 -0
- package/dist/collection/utils/icons.js +29 -0
- package/dist/components/evoke-alert.js +1 -1
- package/dist/components/evoke-app-bar.d.ts +11 -0
- package/dist/components/evoke-app-bar.js +1 -0
- package/dist/components/evoke-badge.d.ts +11 -0
- package/dist/components/evoke-badge.js +1 -0
- package/dist/components/evoke-button.js +1 -1
- package/dist/components/evoke-card.js +1 -1
- package/dist/components/evoke-checkbox.js +1 -1
- package/dist/components/evoke-chip.d.ts +11 -0
- package/dist/components/evoke-chip.js +1 -0
- package/dist/components/evoke-input.js +1 -1
- package/dist/components/evoke-modal.js +1 -1
- package/dist/components/evoke-pagination.d.ts +11 -0
- package/dist/components/evoke-pagination.js +1 -0
- package/dist/components/evoke-progress.d.ts +11 -0
- package/dist/components/evoke-progress.js +1 -0
- package/dist/components/evoke-quantity-stepper.d.ts +11 -0
- package/dist/components/evoke-quantity-stepper.js +1 -0
- package/dist/components/evoke-radio-group.js +1 -1
- package/dist/components/evoke-select.js +1 -1
- package/dist/components/evoke-switch.d.ts +11 -0
- package/dist/components/evoke-switch.js +1 -0
- package/dist/components/evoke-table.d.ts +11 -0
- package/dist/components/evoke-table.js +1 -0
- package/dist/components/evoke-tabs.d.ts +11 -0
- package/dist/components/evoke-tabs.js +1 -0
- package/dist/components/evoke-textarea.d.ts +11 -0
- package/dist/components/evoke-textarea.js +1 -0
- package/dist/components/evoke-toast.d.ts +11 -0
- package/dist/components/evoke-toast.js +1 -0
- package/dist/components/evoke-tooltip.d.ts +11 -0
- package/dist/components/evoke-tooltip.js +1 -0
- package/dist/components/icons.js +1 -0
- package/dist/esm/evoke-alert_20.entry.js +1026 -0
- package/dist/esm/evoke-ui.js +3 -3
- package/dist/esm/{index-BtM1wZ-I.js → index-C-5sEjU8.js} +146 -6
- package/dist/esm/loader.js +3 -3
- package/dist/evoke-ui/evoke-ui.css +1 -1
- package/dist/evoke-ui/evoke-ui.esm.js +1 -1
- package/dist/evoke-ui/p-0841be89.entry.js +1 -0
- package/dist/evoke-ui/p-C-5sEjU8.js +3 -0
- package/dist/themes/bootstrap.css +3 -0
- package/dist/themes/material.css +3 -0
- package/dist/themes/tailwind.css +3 -0
- package/dist/themes/tokens.css +4 -1
- package/dist/types/components/evoke-alert/evoke-alert.d.ts +2 -0
- package/dist/types/components/evoke-app-bar/evoke-app-bar.d.ts +14 -0
- package/dist/types/components/evoke-badge/evoke-badge.d.ts +17 -0
- package/dist/types/components/evoke-button/evoke-button.d.ts +12 -2
- package/dist/types/components/evoke-card/evoke-card.d.ts +9 -0
- package/dist/types/components/evoke-checkbox/evoke-checkbox.d.ts +5 -0
- package/dist/types/components/evoke-chip/evoke-chip.d.ts +14 -0
- package/dist/types/components/evoke-input/evoke-input.d.ts +9 -1
- package/dist/types/components/evoke-modal/evoke-modal.d.ts +19 -1
- package/dist/types/components/evoke-pagination/evoke-pagination.d.ts +15 -0
- package/dist/types/components/evoke-progress/evoke-progress.d.ts +13 -0
- package/dist/types/components/evoke-quantity-stepper/evoke-quantity-stepper.d.ts +18 -0
- package/dist/types/components/evoke-radio-group/evoke-radio-group.d.ts +4 -2
- package/dist/types/components/evoke-select/evoke-select.d.ts +31 -6
- package/dist/types/components/evoke-switch/evoke-switch.d.ts +15 -0
- package/dist/types/components/evoke-table/evoke-table.d.ts +29 -0
- package/dist/types/components/evoke-tabs/evoke-tabs.d.ts +21 -0
- package/dist/types/components/evoke-textarea/evoke-textarea.d.ts +28 -0
- package/dist/types/components/evoke-toast/evoke-toast.d.ts +24 -0
- package/dist/types/components/evoke-tooltip/evoke-tooltip.d.ts +17 -0
- package/dist/types/components.d.ts +1237 -18
- package/dist/types/utils/icons.d.ts +25 -0
- package/package.json +11 -4
- package/dist/cjs/evoke-alert_6.cjs.entry.js +0 -172
- package/dist/cjs/evoke-card.cjs.entry.js +0 -20
- package/dist/cjs/evoke-modal.cjs.entry.js +0 -34
- package/dist/esm/evoke-alert_6.entry.js +0 -165
- package/dist/esm/evoke-card.entry.js +0 -18
- package/dist/esm/evoke-modal.entry.js +0 -32
- package/dist/evoke-ui/p-243075cd.entry.js +0 -1
- package/dist/evoke-ui/p-605d4757.entry.js +0 -1
- package/dist/evoke-ui/p-9a6eaeb6.entry.js +0 -1
- package/dist/evoke-ui/p-BtM1wZ-I.js +0 -3
|
@@ -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}
|