@huntflow/ui 0.0.55 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";var o;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(o=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:o.content,t.appendChild(document.createTextNode('@keyframes _loader-animation_t6bg6_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_t6bg6_10{display:block;color:var(--hf-loader-color);flex:0 0 auto}._circle_t6bg6_15{animation-name:_loader-animation_t6bg6_1;animation-iteration-count:infinite;animation-duration:1s;animation-timing-function:linear}._white_t6bg6_22{--hf-loader-color: var(--hf-color-text-invert)}._black_t6bg6_26{--hf-loader-color: var(--hf-color-text-main)}._s_t6bg6_30{width:18px;height:18px}._m_t6bg6_35{width:28px;height:28px}._l_t6bg6_10{width:56px;height:56px}._spinner_t6bg6_45{display:inline-block;border:1px solid var(--hf-loader-color);border-top-color:transparent;border-left-color:transparent;border-radius:50%}._button_1syl2_1{position:relative;display:inline-flex;align-items:center;justify-content:center;border:solid 1px;cursor:pointer;font-family:var(--hf-font-family-body),sans-serif;font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:var(--hf-gap-button-icon)}._button_1syl2_1:active{background-color:#999}._button_1syl2_1:focus{outline:none}._button_1syl2_1:focus-visible{outline:solid 3px var(--hf-color-button-disable-default)}._button_1syl2_1:is(._disabled_1syl2_1),._button_1syl2_1:is(._disabled_1syl2_1):hover{background:var(--hf-color-button-disable-default);border-color:transparent;color:var(--hf-color-text-light);box-shadow:none;transform:none;cursor:default}._button_1syl2_1._loading_1syl2_1{cursor:default}._button_1syl2_1._loading_1syl2_1>*:not(._loader_1syl2_1){visibility:hidden}._button_1syl2_1+._button_1syl2_1{margin-left:var(--hf-gap-button-between)}._content_1syl2_1{display:flex;line-height:inherit}._content_1syl2_1:first-child:last-child{width:100%;text-align:center}._loader_1syl2_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}._dropdownIcon_1syl2_1{margin-left:calc(var(--hf-gap-button-icon) * -1)}._s_1syl2_2{border-radius:var(--hf-radius-button-s);font-size:var(--hf-font-size-button-s);font-weight:var(--hf-font-weight-button-s);line-height:var(--hf-font-line-height-button-s);padding:var(--hf-padding-button-top-bottom-s) var(--hf-padding-button-left-right-s)}._xs_1syl2_1{font-size:var(--hf-font-size-button-xs);font-weight:var(--hf-font-weight-button-xs);line-height:var(--hf-font-line-height-button-xs);padding:var(--hf-padding-button-top-bottom-xs) var(--hf-padding-button-left-right-xs)}._xs_1syl2_1._square_1syl2_1{border-radius:var(--hf-radius-button-xs)}._xs_1syl2_1._circle_1syl2_1{border-radius:var(--hf-radius-button-circle)}._m_1syl2_1{border-radius:var(--hf-radius-button-m);font-size:var(--hf-font-size-button-m);font-weight:var(--hf-font-weight-button-m);line-height:var(--hf-font-line-height-button-m);padding:var(--hf-padding-button-top-bottom-m) var(--hf-padding-button-left-right-m)}._l_1syl2_1{border-radius:var(--hf-radius-button-l);font-size:var(--hf-font-size-button-l);font-weight:var(--hf-font-weight-button-l);line-height:var(--hf-font-line-height-button-l);padding:var(--hf-padding-button-top-bottom-l) var(--hf-padding-button-left-right-l)}._primary_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_1syl2_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_1syl2_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._secondary_1syl2_1{color:var(--hf-color-text-main);background-color:var(--hf-color-button-secondary-fill-default);border-color:var(--hf-color-button-secondary-border-default);box-shadow:0 1px 4px #0505050a}._secondary_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._accent_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_1syl2_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_1syl2_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._danger_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_1syl2_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_1syl2_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._jobsites_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_1syl2_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_1syl2_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._ghost_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active)}._ghost-danger_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost-danger_1syl2_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_1syl2_1:active{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-active)}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._wrapper_1rgcl_1{margin-bottom:var(--hf-gap-xs)}._input_1rgcl_5{border-radius:var(--hf-radius-input-default);border:var(--hf-border-xs) solid var(--hf-color-input-border-default);background:var(--hf-color-input-background-default);padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-right-default);width:100%;box-sizing:border-box;color:var(--hf-color-input-text-default);font-size:var(--hf-font-size-field-text);font-weight:var(--hf-font-weight-field-text);line-height:var(--hf-font-line-height-field-text)}._input_1rgcl_5:active{border-color:var(--hf-color-input-border-focus)}._input_1rgcl_5:focus{border-color:var(--hf-color-input-border-focus);outline:solid 3px var(--hf-color-input-border-focus-visible)}._input_1rgcl_5:disabled{outline:none;border-color:var(--hf-color-input-text-disable);background:var(--hf-color-input-background-disable);color:var(--hf-color-input-text-disable)}._error_1rgcl_35,._error_1rgcl_35:active{border-color:var(--hf-color-input-border-error)}._error_1rgcl_35:focus{border-color:var(--hf-color-input-border-error);outline:solid 3px var(--hf-color-input-border-error-focus-visible)}._description_1rgcl_47{margin-top:var(--hf-gap-xs);font-size:var(--hf-font-size-field-error);font-weight:var(--hf-font-weight-field-description);line-height:var(--hf-font-line-height-field-description)}._description_1rgcl_47 a{text-decoration:underline}._descriptionText_1rgcl_58{color:var(--hf-color-input-text-description)}._errorText_1rgcl_62{color:var(--hf-color-text-danger)}._label_12r0e_1{display:flex;flex-direction:row;gap:var(--hf-gap-xs);font-style:normal;flex:1;margin-bottom:var(--hf-gap-xs)}._header_12r0e_10{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._headerWrapper_12r0e_18{flex-grow:1;gap:var(--hf-gap-xs);display:flex;flex-direction:column}._title_12r0e_25{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-label-title);font-weight:var(--hf-font-weight-label-title);line-height:var(--hf-font-line-height-label-title)}._subTitleRow_12r0e_33{display:flex;justify-content:space-between;font-size:var(--hf-font-size-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle)}._subTitle_12r0e_33{line-height:var(--hf-font-line-height-label-subtitle)}._link_12r0e_45{overflow:hidden;text-overflow:ellipsis;font-size:var(--hf-font-size-label-title);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle);margin-left:auto;align-self:flex-end;height:20px}._link_12r0e_45 a{text-decoration:none;color:var(--hf-color-text-semilight)}._linkUpper_12r0e_62{margin-bottom:1px}._label_jcdiv_1{display:flex;align-items:center;gap:8px;height:20px}._label_jcdiv_1._disabled_jcdiv_7{color:gray;cursor:not-allowed}._label_jcdiv_1 span{margin-top:-5px}._input_jcdiv_17[type=checkbox]{vertical-align:-2px;margin:0;border-radius:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;width:16px;height:16px;border:1px solid #25CFE8;transform:translateY(-.075em);display:grid;place-content:center}._input_jcdiv_17._error_jcdiv_30[type=checkbox]{border:1px solid #FF0000}._input_jcdiv_17[type=checkbox]:before{content:"";width:16px;height:16px;clip-path:polygon(0 0,50% 0,100% 0,100% 100%,50% 100%,0 100%);transform:scale(0);transform-origin:bottom left;transition:.12s transform ease-in-out;background-color:#25cfe8;border-radius:4px}._input_jcdiv_17[type=checkbox]:checked:before{transform:scale(1)}._input_jcdiv_17[type=checkbox]:focus{outline:2px solid #C4EDFA}._input_jcdiv_17._error_jcdiv_30[type=checkbox]:focus{outline:2px solid #FFD6D6}._input_jcdiv_17[type=checkbox]:disabled{border-color:#00000029;opacity:30%;color:#000;cursor:not-allowed}._text_jcdiv_70{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:15px;line-height:20px}._errorText_jcdiv_76{color:red;font-size:12px}._title_j3vxq_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._level-1_j3vxq_8{font-size:var(--hf-font-size-text-h1);font-weight:var(--hf-font-weight-text-h1);line-height:var(--hf-font-line-height-text-h1)}._level-2_j3vxq_14{font-size:var(--hf-font-size-text-h2);font-weight:var(--hf-font-weight-text-h2);line-height:var(--hf-font-line-height-text-h2)}._level-3_j3vxq_20{font-size:var(--hf-font-size-text-h3);font-weight:var(--hf-font-weight-text-h3);line-height:var(--hf-font-line-height-text-h3)}._level-4_j3vxq_26{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._text_pweht_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._primary_pweht_8{font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary);line-height:var(--hf-font-line-height-text-primary)}._primary_pweht_8._medium_pweht_13{font-weight:var(--hf-font-weight-text-primary-bold)}._secondary_pweht_18{font-size:var(--hf-font-size-text-secondary);font-weight:var(--hf-font-weight-text-secondary);line-height:var(--hf-font-line-height-text-secondary)}._secondary_pweht_18._medium_pweht_13{font-weight:var(--hf-font-weight-text-secondary-bold)}._accent_pweht_27{font-size:var(--hf-font-size-text-accent);font-weight:var(--hf-font-weight-text-accent);line-height:var(--hf-font-line-height-text-accent)}._accent_pweht_27._medium_pweht_13{font-weight:var(--hf-font-weight-text-accent-bold)}._subtitle_pweht_36{font-size:var(--hf-font-size-text-subtitle);font-weight:var(--hf-font-weight-text-subtitle);line-height:var(--hf-font-line-height-text-subtitle)}:root{--hf-btn-size-xs: 28px;--hf-btn-size-s: 32px;--hf-btn-size-m: 36px;--hf-btn-size-l: 40px}._s_n8n8w_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_n8n8w_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs)}._m_n8n8w_19{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_n8n8w_24{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_n8n8w_30{padding:0}._button_fj122_1{padding:0 2px 0 0;border:none;margin:0;cursor:pointer;display:flex;flex-direction:row;gap:var(--hf-gap-button-link-s);align-items:center;background-color:transparent;color:var(--hf-color-link-default);font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-button-link-s);font-style:normal;font-weight:var(--hf-font-weight-button-link-s);line-height:var(--hf-font-line-height-button-link-s)}._button_fj122_1:hover{color:var(--hf-color-link-hover)}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=(s,t)=>{const l=t?s[t]:s.default;return(l==null?void 0:l().some(n=>{const o=n.children;return o&&o.toString().trim()!==""}))??!1},z="_loader_t6bg6_10",S="_circle_t6bg6_15",V="_white_t6bg6_22",E="_black_t6bg6_26",x="_s_t6bg6_30",j="_m_t6bg6_35",M="_l_t6bg6_10",L="_spinner_t6bg6_45",k={loader:z,circle:S,"loader-animation":"_loader-animation_t6bg6_1",white:V,black:E,s:x,m:j,l:M,spinner:L},$=e.defineComponent({__name:"loader",props:{className:{},size:{default:"l"},color:{default:"black"}},setup(s){const t=s,l=e.computed(()=>[k.loader,k[t.size],k[t.color],k.circle]);return(n,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([e.unref(k).spinner,l.value])},null,2))}}),D="_button_1syl2_1",I="_disabled_1syl2_1",q="_loading_1syl2_1",H="_loader_1syl2_1",U="_content_1syl2_1",R="_dropdownIcon_1syl2_1",O="_s_1syl2_2",W="_xs_1syl2_1",P="_square_1syl2_1",A="_circle_1syl2_1",F="_m_1syl2_1",G="_l_1syl2_1",K="_primary_1syl2_1",J="_secondary_1syl2_1",Q="_accent_1syl2_1",X="_danger_1syl2_1",Y="_jobsites_1syl2_1",Z="_ghost_1syl2_1",i={button:D,disabled:I,loading:q,loader:H,content:U,dropdownIcon:R,s:O,xs:W,square:P,circle:A,m:F,l:G,primary:K,secondary:J,accent:Q,danger:X,jobsites:Y,ghost:Z,"ghost-danger":"_ghost-danger_1syl2_1"},ee=["aria-label","width","height"],te=["xlink:href"],oe=e.defineComponent({__name:"icon",props:{type:{},color:{},block:{type:Boolean}},setup(s){const t=s,l=e.computed(()=>{var r;const o=(r=t==null?void 0:t.type)==null?void 0:r.match(/(\d+)$/);return o?parseInt(o[1],10):16}),n=e.computed(()=>{const o={};return t.color&&(o.color=t.color),t.block&&(o.display="block"),o});return(o,r)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(o.$style.icon),"aria-label":o.type,style:e.normalizeStyle(n.value),role:"img",width:l.value,height:l.value},[e.createElementVNode("use",{"xlink:href":`#${o.type}`},null,8,te)],14,ee))}}),le="_icon_1p8iz_2",ne={icon:le},se=(s,t)=>{const l=s.__vccOpts||s;for(const[n,o]of t)l[n]=o;return l},re={$style:ne},v=se(oe,[["__cssModules",re]]),ae=["name","type","disabled"],w=e.defineComponent({__name:"button",props:{size:{default:"m"},className:{},type:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},dropdown:{type:Boolean,default:!1},active:{type:Boolean,default:!1},name:{},circle:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},htmlType:{}},emits:["click"],setup(s){const t=e.useSlots(),l=s,n={primary:"white",secondary:"black",accent:"white",danger:"white",jobsites:"white",ghost:"black","ghost-danger":"black"},o=e.computed(()=>b(t)),r=e.computed(()=>[i.button,i[l.size],i[l.type],l.circle?[i.circle]:[i.square],{[i.disabled]:l.disabled,[i.loading]:l.loading,[i.active]:l.active,[i.bordered]:l.bordered},l.className]),d=e.computed(()=>n[l.type]||"white");return(a,m)=>(e.openBlock(),e.createElementBlock("button",{name:a.name,class:e.normalizeClass(r.value),type:a.htmlType,disabled:a.disabled||a.loading,onClick:m[0]||(m[0]=u=>a.$emit("click"))},[a.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(i).loader)},[e.createVNode(e.unref($),{size:"s",color:d.value},null,8,["color"])],2)):e.createCommentVNode("",!0),a.$slots.before?e.renderSlot(a.$slots,"before",{key:1}):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(i).content)},[e.renderSlot(a.$slots,"default")],2)):e.createCommentVNode("",!0),a.$slots.after?e.renderSlot(a.$slots,"after",{key:3}):e.createCommentVNode("",!0),a.dropdown?(e.openBlock(),e.createBlock(v,{key:4,class:e.normalizeClass(e.unref(i).dropdownIcon),type:"chevron-down-18"},null,8,["class"])):e.createCommentVNode("",!0)],10,ae))}}),ce="_wrapper_1rgcl_1",ie="_input_1rgcl_5",de="_error_1rgcl_35",ue="_description_1rgcl_47",pe="_descriptionText_1rgcl_58",_e="_errorText_1rgcl_62",p={wrapper:ce,input:ie,error:de,description:ue,descriptionText:pe,errorText:_e},me="_label_12r0e_1",ye="_header_12r0e_10",ke="_headerWrapper_12r0e_18",be="_title_12r0e_25",fe="_subTitleRow_12r0e_33",ve="_subTitle_12r0e_33",he="_link_12r0e_45",Be="_linkUpper_12r0e_62",_={label:me,header:ye,headerWrapper:ke,title:be,subTitleRow:fe,subTitle:ve,link:he,linkUpper:Be},T=e.defineComponent({__name:"label",emits:["click"],setup(s){const t=e.useSlots(),l=e.computed(()=>b(t,"header")),n=e.computed(()=>b(t)),o=e.computed(()=>b(t,"subTitle")),r=e.computed(()=>b(t,"link")),d=e.computed(()=>l.value||n.value||o.value),a=e.computed(()=>!n.value&&!o.value),m=e.computed(()=>[_.link,a.value&&_.linkUpper].filter(Boolean));return(u,f)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(_).label)},[d.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(_).headerWrapper)},[l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(_).header)},[e.renderSlot(u.$slots,"header")],2)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(_).title)},[e.renderSlot(u.$slots,"default")],2)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(_).subTitleRow)},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(_).subTitle)},[e.renderSlot(u.$slots,"subTitle")],2)],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(m.value),onClick:f[0]||(f[0]=c=>u.$emit("click"))},[e.renderSlot(u.$slots,"link")],2)):e.createCommentVNode("",!0)],2))}}),ge=["id","name","type","disabled","placeholder"],Ce=["innerHTML"],$e=["innerHTML"],we=e.defineComponent({__name:"input",props:e.mergeModels({value:{},type:{default:"text"},id:{},name:{},disabled:{type:Boolean},title:{},header:{},subTitle:{},link:{},placeholder:{},loading:{type:Boolean},error:{},description:{},className:{}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","enter","click-link"],["update:value"]),setup(s,{emit:t}){const l=e.useModel(s,"value"),n=s,o=t,r=e.computed(()=>[p.input,{[p.disabled]:n.disabled,[p.error]:n.error,[p.loading]:n.loading},n.className]),d=e.computed(()=>n.header||n.title||n.subTitle||n.link),a=e.computed(()=>n.description||n.error),m=c=>{o("update:value",c.target.value)},u=c=>{c.key==="Enter"&&o("enter")},f=()=>{o("click-link")};return(c,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p).wrapper)},[d.value?(e.openBlock(),e.createBlock(e.unref(T),{key:0,for:c.id,onClick:f},{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.header),1)]),subTitle:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.subTitle),1)]),link:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.link),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(n.title)+" ",1)]),_:1},8,["for"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:c.id,"onUpdate:modelValue":B[0]||(B[0]=N=>l.value=N),name:c.name,type:c.type,disabled:c.disabled||c.loading,placeholder:c.placeholder,class:e.normalizeClass(r.value),onInput:m,onKeydown:u},null,42,ge),[[e.vModelDynamic,l.value]]),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).description)},[c.error?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(p).errorText),innerHTML:c.error},null,10,Ce)):e.createCommentVNode("",!0),c.description?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).descriptionText),innerHTML:c.description},null,10,$e)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2))}}),Te="_label_jcdiv_1",Ne="_disabled_jcdiv_7",ze="_input_jcdiv_17",Se="_error_jcdiv_30",Ve="_text_jcdiv_70",Ee="_errorText_jcdiv_76",y={label:Te,disabled:Ne,input:ze,error:Se,text:Ve,errorText:Ee},xe=["for"],je=["id","name","disabled"],Me=e.defineComponent({__name:"checkbox",props:e.mergeModels({id:{},name:{},disabled:{type:Boolean},label:{},error:{},className:{}},{checked:{type:Boolean},checkedModifiers:{}}),emits:["update:checked"],setup(s){const t=e.useModel(s,"checked"),l=s,n=e.computed(()=>[y.label,{[y.disabled]:l.disabled},l.className]);return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",{for:o.id,class:e.normalizeClass(n.value)},[e.withDirectives(e.createElementVNode("input",{id:o.id,"onUpdate:modelValue":r[0]||(r[0]=d=>t.value=d),name:o.name,type:"checkbox",disabled:o.disabled,class:e.normalizeClass([e.unref(y).input,{[e.unref(y).error]:!!l.error}])},null,10,je),[[e.vModelCheckbox,t.value]]),o.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(y).text)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0)],10,xe),o.error?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(y).errorText)},e.toDisplayString(o.error),3)):e.createCommentVNode("",!0)]))}}),Le=async()=>{if(!(typeof document>"u")&&!document.getElementById("__svg-sprite__"))try{const t=`
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=(s,t)=>{const l=t?s[t]:s.default;return(l==null?void 0:l().some(n=>{const o=n.children;return o&&o.toString().trim()!==""}))??!1},z="_loader_t6bg6_10",S="_circle_t6bg6_15",V="_white_t6bg6_22",E="_black_t6bg6_26",x="_s_t6bg6_30",j="_m_t6bg6_35",M="_l_t6bg6_10",L="_spinner_t6bg6_45",k={loader:z,circle:S,"loader-animation":"_loader-animation_t6bg6_1",white:V,black:E,s:x,m:j,l:M,spinner:L},$=e.defineComponent({__name:"loader",props:{className:{},size:{default:"l"},color:{default:"black"}},setup(s){const t=s,l=e.computed(()=>[k.loader,k[t.size],k[t.color],k.circle]);return(n,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([e.unref(k).spinner,l.value])},null,2))}}),D="_button_1syl2_1",I="_disabled_1syl2_1",q="_loading_1syl2_1",H="_loader_1syl2_1",U="_content_1syl2_1",R="_dropdownIcon_1syl2_1",O="_s_1syl2_2",W="_xs_1syl2_1",P="_square_1syl2_1",A="_circle_1syl2_1",F="_m_1syl2_1",G="_l_1syl2_1",K="_primary_1syl2_1",J="_secondary_1syl2_1",Q="_accent_1syl2_1",X="_danger_1syl2_1",Y="_jobsites_1syl2_1",Z="_ghost_1syl2_1",i={button:D,disabled:I,loading:q,loader:H,content:U,dropdownIcon:R,s:O,xs:W,square:P,circle:A,m:F,l:G,primary:K,secondary:J,accent:Q,danger:X,jobsites:Y,ghost:Z,"ghost-danger":"_ghost-danger_1syl2_1"},ee=["aria-label","width","height"],te=["xlink:href"],oe=e.defineComponent({__name:"icon",props:{type:{},color:{},block:{type:Boolean}},setup(s){const t=s,l=e.computed(()=>{var r;const o=(r=t==null?void 0:t.type)==null?void 0:r.match(/(\d+)$/);return o?parseInt(o[1],10):16}),n=e.computed(()=>{const o={};return t.color&&(o.color=t.color),t.block&&(o.display="block"),o});return(o,r)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(o.$style.icon),"aria-label":o.type,style:e.normalizeStyle(n.value),role:"img",width:l.value,height:l.value},[e.createElementVNode("use",{"xlink:href":`#${o.type}`},null,8,te)],14,ee))}}),le="_icon_1p8iz_2",ne={icon:le},se=(s,t)=>{const l=s.__vccOpts||s;for(const[n,o]of t)l[n]=o;return l},re={$style:ne},v=se(oe,[["__cssModules",re]]),ae=["name","type","disabled"],w=e.defineComponent({__name:"button",props:{size:{default:"m"},className:{},type:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},dropdown:{type:Boolean,default:!1},active:{type:Boolean,default:!1},name:{},circle:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},htmlType:{}},emits:["click"],setup(s){const t=e.useSlots(),l=s,n={primary:"white",secondary:"black",accent:"white",danger:"white",jobsites:"white",ghost:"black","ghost-danger":"black"},o=e.computed(()=>b(t)),r=e.computed(()=>[i.button,i[l.size],i[l.type],l.circle?[i.circle]:[i.square],{[i.disabled]:l.disabled,[i.loading]:l.loading,[i.active]:l.active,[i.bordered]:l.bordered},l.className]),d=e.computed(()=>n[l.type]||"white");return(a,m)=>(e.openBlock(),e.createElementBlock("button",{name:a.name,class:e.normalizeClass(r.value),type:a.htmlType,disabled:a.disabled||a.loading,onClick:m[0]||(m[0]=u=>a.$emit("click"))},[a.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(i).loader)},[e.createVNode(e.unref($),{size:"s",color:d.value},null,8,["color"])],2)):e.createCommentVNode("",!0),a.$slots.before?e.renderSlot(a.$slots,"before",{key:1}):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(i).content)},[e.renderSlot(a.$slots,"default")],2)):e.createCommentVNode("",!0),a.$slots.after?e.renderSlot(a.$slots,"after",{key:3}):e.createCommentVNode("",!0),a.dropdown?(e.openBlock(),e.createBlock(v,{key:4,class:e.normalizeClass(e.unref(i).dropdownIcon),type:"chevron-down-18"},null,8,["class"])):e.createCommentVNode("",!0)],10,ae))}}),ce="_wrapper_1rgcl_1",ie="_input_1rgcl_5",de="_error_1rgcl_35",ue="_description_1rgcl_47",pe="_descriptionText_1rgcl_58",_e="_errorText_1rgcl_62",p={wrapper:ce,input:ie,error:de,description:ue,descriptionText:pe,errorText:_e},me="_label_12r0e_1",ye="_header_12r0e_10",ke="_headerWrapper_12r0e_18",be="_title_12r0e_25",fe="_subTitleRow_12r0e_33",ve="_subTitle_12r0e_33",he="_link_12r0e_45",ge="_linkUpper_12r0e_62",_={label:me,header:ye,headerWrapper:ke,title:be,subTitleRow:fe,subTitle:ve,link:he,linkUpper:ge},N=e.defineComponent({__name:"label",emits:["click"],setup(s){const t=e.useSlots(),l=e.computed(()=>b(t,"header")),n=e.computed(()=>b(t)),o=e.computed(()=>b(t,"subTitle")),r=e.computed(()=>b(t,"link")),d=e.computed(()=>l.value||n.value||o.value),a=e.computed(()=>!n.value&&!o.value),m=e.computed(()=>[_.link,a.value&&_.linkUpper].filter(Boolean));return(u,f)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(_).label)},[d.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(_).headerWrapper)},[l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(_).header)},[e.renderSlot(u.$slots,"header")],2)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(_).title)},[e.renderSlot(u.$slots,"default")],2)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(_).subTitleRow)},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(_).subTitle)},[e.renderSlot(u.$slots,"subTitle")],2)],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(m.value),onClick:f[0]||(f[0]=c=>u.$emit("click"))},[e.renderSlot(u.$slots,"link")],2)):e.createCommentVNode("",!0)],2))}}),Be=["id","name","type","disabled","placeholder"],Ce=["innerHTML"],$e=["innerHTML"],we=e.defineComponent({__name:"input",props:e.mergeModels({value:{},type:{default:"text"},id:{},name:{},disabled:{type:Boolean},title:{},header:{},subTitle:{},link:{},placeholder:{},loading:{type:Boolean},error:{},description:{},className:{}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","enter","click-link"],["update:value"]),setup(s,{emit:t}){const l=e.useModel(s,"value"),n=s,o=t,r=e.computed(()=>[p.input,{[p.disabled]:n.disabled,[p.error]:n.error,[p.loading]:n.loading},n.className]),d=e.computed(()=>n.header||n.title||n.subTitle||n.link),a=e.computed(()=>n.description||n.error),m=c=>{o("update:value",c.target.value)},u=c=>{c.key==="Enter"&&o("enter")},f=()=>{o("click-link")};return(c,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p).wrapper)},[d.value?(e.openBlock(),e.createBlock(e.unref(N),{key:0,for:c.id,onClick:f},{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.header),1)]),subTitle:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.subTitle),1)]),link:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.link),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(n.title)+" ",1)]),_:1},8,["for"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:c.id,"onUpdate:modelValue":g[0]||(g[0]=T=>l.value=T),name:c.name,type:c.type,disabled:c.disabled||c.loading,placeholder:c.placeholder,class:e.normalizeClass(r.value),onInput:m,onKeydown:u},null,42,Be),[[e.vModelDynamic,l.value]]),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).description)},[c.error?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(p).errorText),innerHTML:c.error},null,10,Ce)):e.createCommentVNode("",!0),c.description?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).descriptionText),innerHTML:c.description},null,10,$e)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2))}}),Ne="_label_jcdiv_1",Te="_disabled_jcdiv_7",ze="_input_jcdiv_17",Se="_error_jcdiv_30",Ve="_text_jcdiv_70",Ee="_errorText_jcdiv_76",y={label:Ne,disabled:Te,input:ze,error:Se,text:Ve,errorText:Ee},xe=["for"],je=["id","name","disabled"],Me=e.defineComponent({__name:"checkbox",props:e.mergeModels({id:{},name:{},disabled:{type:Boolean},label:{},error:{},className:{}},{checked:{type:Boolean},checkedModifiers:{}}),emits:["update:checked"],setup(s){const t=e.useModel(s,"checked"),l=s,n=e.computed(()=>[y.label,{[y.disabled]:l.disabled},l.className]);return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",{for:o.id,class:e.normalizeClass(n.value)},[e.withDirectives(e.createElementVNode("input",{id:o.id,"onUpdate:modelValue":r[0]||(r[0]=d=>t.value=d),name:o.name,type:"checkbox",disabled:o.disabled,class:e.normalizeClass([e.unref(y).input,{[e.unref(y).error]:!!l.error}])},null,10,je),[[e.vModelCheckbox,t.value]]),o.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(y).text)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0)],10,xe),o.error?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(y).errorText)},e.toDisplayString(o.error),3)):e.createCommentVNode("",!0)]))}}),Le=async()=>{if(!(typeof document>"u")&&!document.getElementById("__svg-sprite__"))try{const t=`
3
3
  <svg id="__svg-sprite__" xmlns="http://www.w3.org/2000/svg" style="display: none;">
4
4
  ${(await Promise.resolve().then(()=>require("./sprite-BG3yTt8x.cjs"))).default}
5
5
  </svg>
6
- `;document.body.insertAdjacentHTML("afterbegin",t)}catch(s){console.error("Failed to load SVG sprite:",s)}},De="_title_j3vxq_1",g={title:De,"level-1":"_level-1_j3vxq_8","level-2":"_level-2_j3vxq_14","level-3":"_level-3_j3vxq_20","level-4":"_level-4_j3vxq_26"},Ie=e.defineComponent({__name:"title",props:{level:{},text:{},className:{}},setup(s){const t=s,l=e.computed(()=>[g.title,g[`level-${t.level}`],t.className]),n=e.computed(()=>`h${t.level}`);return(o,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),{class:e.normalizeClass(l.value)},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])]),_:3},8,["class"]))}}),qe="_text_pweht_1",He="_primary_pweht_8",Ue="_medium_pweht_13",Re="_secondary_pweht_18",Oe="_accent_pweht_27",We="_subtitle_pweht_36",h={text:qe,primary:He,medium:Ue,secondary:Re,accent:Oe,subtitle:We},Pe=e.defineComponent({__name:"text",props:{text:{},kind:{default:"primary"},weight:{}},setup(s){const t=s,l=e.computed(()=>[h.text,h[t.kind],t.weight&&h[t.weight]]);return(n,o)=>(e.openBlock(),e.createElementBlock("p",{class:e.normalizeClass(l.value)},[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],2))}}),Ae="_s_n8n8w_9",Fe="_xs_n8n8w_14",Ge="_m_n8n8w_19",Ke="_l_n8n8w_24",Je="_button_n8n8w_30",C={s:Ae,xs:Fe,m:Ge,l:Ke,button:Je},Qe=e.defineComponent({__name:"button-icon",props:{icon:{},size:{default:"m"},className:{},type:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},active:{type:Boolean,default:!1},name:{},circle:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1}},emits:["click"],setup(s){const t=s,l=e.computed(()=>[C.button,C[t.size],t.className]),n=e.computed(()=>{const o=t.size==="xs"?"18":"20";return t.icon.replace(/-?\d*$/,`-${o}`)});return(o,r)=>(e.openBlock(),e.createBlock(e.unref(w),e.mergeProps({class:l.value},t,{"html-type":"button",onClick:r[0]||(r[0]=d=>o.$emit("click"))}),{before:e.withCtx(()=>[e.createVNode(e.unref(v),{type:n.value},null,8,["type"])]),_:1},16,["class"]))}}),Xe="_button_fj122_1",Ye={button:Xe},Ze=e.defineComponent({__name:"button-link",emits:["click"],setup(s){return(t,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(e.unref(Ye).button),type:"button",onClick:l[0]||(l[0]=n=>t.$emit("click"))},[e.createVNode(e.unref(v),{type:"plus-18"}),e.renderSlot(t.$slots,"default")],2))}});exports.BaseButton=w;exports.BaseCheckbox=Me;exports.BaseIcon=v;exports.BaseInput=we;exports.BaseLabel=T;exports.BaseLoader=$;exports.BaseText=Pe;exports.BaseTitle=Ie;exports.ButtonIcon=Qe;exports.ButtonLink=Ze;exports.injectSvgSprite=Le;
6
+ `;document.body.insertAdjacentHTML("afterbegin",t)}catch(s){console.error("Failed to load SVG sprite:",s)}},De="_title_j3vxq_1",B={title:De,"level-1":"_level-1_j3vxq_8","level-2":"_level-2_j3vxq_14","level-3":"_level-3_j3vxq_20","level-4":"_level-4_j3vxq_26"},Ie=e.defineComponent({__name:"title",props:{level:{},text:{},className:{}},setup(s){const t=s,l=e.computed(()=>[B.title,B[`level-${t.level??1}`],t.className]),n=e.computed(()=>`h${t.level??1}`);return(o,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),{class:e.normalizeClass(l.value)},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])]),_:3},8,["class"]))}}),qe="_text_pweht_1",He="_primary_pweht_8",Ue="_medium_pweht_13",Re="_secondary_pweht_18",Oe="_accent_pweht_27",We="_subtitle_pweht_36",h={text:qe,primary:He,medium:Ue,secondary:Re,accent:Oe,subtitle:We},Pe=e.defineComponent({__name:"text",props:{tagName:{default:"p"},text:{},kind:{default:"primary"},weight:{}},setup(s){const t=s,l=e.computed(()=>[h.text,h[t.kind],t.weight&&h[t.weight]]);return(n,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.tagName),{class:e.normalizeClass(l.value)},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),Ae="_s_n8n8w_9",Fe="_xs_n8n8w_14",Ge="_m_n8n8w_19",Ke="_l_n8n8w_24",Je="_button_n8n8w_30",C={s:Ae,xs:Fe,m:Ge,l:Ke,button:Je},Qe=e.defineComponent({__name:"button-icon",props:{icon:{},size:{default:"m"},className:{},type:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},active:{type:Boolean,default:!1},name:{},circle:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1}},emits:["click"],setup(s){const t=s,l=e.computed(()=>[C.button,C[t.size],t.className]),n=e.computed(()=>{const o=t.size==="xs"?"18":"20";return t.icon.replace(/-?\d*$/,`-${o}`)});return(o,r)=>(e.openBlock(),e.createBlock(e.unref(w),e.mergeProps({class:l.value},t,{"html-type":"button",onClick:r[0]||(r[0]=d=>o.$emit("click"))}),{before:e.withCtx(()=>[e.createVNode(e.unref(v),{type:n.value},null,8,["type"])]),_:1},16,["class"]))}}),Xe="_button_fj122_1",Ye={button:Xe},Ze=e.defineComponent({__name:"button-link",emits:["click"],setup(s){return(t,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(e.unref(Ye).button),type:"button",onClick:l[0]||(l[0]=n=>t.$emit("click"))},[e.createVNode(e.unref(v),{type:"plus-18"}),e.renderSlot(t.$slots,"default")],2))}});exports.BaseButton=w;exports.BaseCheckbox=Me;exports.BaseIcon=v;exports.BaseInput=we;exports.BaseLabel=N;exports.BaseLoader=$;exports.BaseText=Pe;exports.BaseTitle=Ie;exports.ButtonIcon=Qe;exports.ButtonLink=Ze;exports.injectSvgSprite=Le;
package/dist/ui.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";var o;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(o=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:o.content,t.appendChild(document.createTextNode('@keyframes _loader-animation_t6bg6_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_t6bg6_10{display:block;color:var(--hf-loader-color);flex:0 0 auto}._circle_t6bg6_15{animation-name:_loader-animation_t6bg6_1;animation-iteration-count:infinite;animation-duration:1s;animation-timing-function:linear}._white_t6bg6_22{--hf-loader-color: var(--hf-color-text-invert)}._black_t6bg6_26{--hf-loader-color: var(--hf-color-text-main)}._s_t6bg6_30{width:18px;height:18px}._m_t6bg6_35{width:28px;height:28px}._l_t6bg6_10{width:56px;height:56px}._spinner_t6bg6_45{display:inline-block;border:1px solid var(--hf-loader-color);border-top-color:transparent;border-left-color:transparent;border-radius:50%}._button_1syl2_1{position:relative;display:inline-flex;align-items:center;justify-content:center;border:solid 1px;cursor:pointer;font-family:var(--hf-font-family-body),sans-serif;font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:var(--hf-gap-button-icon)}._button_1syl2_1:active{background-color:#999}._button_1syl2_1:focus{outline:none}._button_1syl2_1:focus-visible{outline:solid 3px var(--hf-color-button-disable-default)}._button_1syl2_1:is(._disabled_1syl2_1),._button_1syl2_1:is(._disabled_1syl2_1):hover{background:var(--hf-color-button-disable-default);border-color:transparent;color:var(--hf-color-text-light);box-shadow:none;transform:none;cursor:default}._button_1syl2_1._loading_1syl2_1{cursor:default}._button_1syl2_1._loading_1syl2_1>*:not(._loader_1syl2_1){visibility:hidden}._button_1syl2_1+._button_1syl2_1{margin-left:var(--hf-gap-button-between)}._content_1syl2_1{display:flex;line-height:inherit}._content_1syl2_1:first-child:last-child{width:100%;text-align:center}._loader_1syl2_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}._dropdownIcon_1syl2_1{margin-left:calc(var(--hf-gap-button-icon) * -1)}._s_1syl2_2{border-radius:var(--hf-radius-button-s);font-size:var(--hf-font-size-button-s);font-weight:var(--hf-font-weight-button-s);line-height:var(--hf-font-line-height-button-s);padding:var(--hf-padding-button-top-bottom-s) var(--hf-padding-button-left-right-s)}._xs_1syl2_1{font-size:var(--hf-font-size-button-xs);font-weight:var(--hf-font-weight-button-xs);line-height:var(--hf-font-line-height-button-xs);padding:var(--hf-padding-button-top-bottom-xs) var(--hf-padding-button-left-right-xs)}._xs_1syl2_1._square_1syl2_1{border-radius:var(--hf-radius-button-xs)}._xs_1syl2_1._circle_1syl2_1{border-radius:var(--hf-radius-button-circle)}._m_1syl2_1{border-radius:var(--hf-radius-button-m);font-size:var(--hf-font-size-button-m);font-weight:var(--hf-font-weight-button-m);line-height:var(--hf-font-line-height-button-m);padding:var(--hf-padding-button-top-bottom-m) var(--hf-padding-button-left-right-m)}._l_1syl2_1{border-radius:var(--hf-radius-button-l);font-size:var(--hf-font-size-button-l);font-weight:var(--hf-font-weight-button-l);line-height:var(--hf-font-line-height-button-l);padding:var(--hf-padding-button-top-bottom-l) var(--hf-padding-button-left-right-l)}._primary_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_1syl2_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_1syl2_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._secondary_1syl2_1{color:var(--hf-color-text-main);background-color:var(--hf-color-button-secondary-fill-default);border-color:var(--hf-color-button-secondary-border-default);box-shadow:0 1px 4px #0505050a}._secondary_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._accent_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_1syl2_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_1syl2_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._danger_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_1syl2_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_1syl2_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._jobsites_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_1syl2_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_1syl2_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._ghost_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active)}._ghost-danger_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost-danger_1syl2_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_1syl2_1:active{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-active)}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._wrapper_1rgcl_1{margin-bottom:var(--hf-gap-xs)}._input_1rgcl_5{border-radius:var(--hf-radius-input-default);border:var(--hf-border-xs) solid var(--hf-color-input-border-default);background:var(--hf-color-input-background-default);padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-right-default);width:100%;box-sizing:border-box;color:var(--hf-color-input-text-default);font-size:var(--hf-font-size-field-text);font-weight:var(--hf-font-weight-field-text);line-height:var(--hf-font-line-height-field-text)}._input_1rgcl_5:active{border-color:var(--hf-color-input-border-focus)}._input_1rgcl_5:focus{border-color:var(--hf-color-input-border-focus);outline:solid 3px var(--hf-color-input-border-focus-visible)}._input_1rgcl_5:disabled{outline:none;border-color:var(--hf-color-input-text-disable);background:var(--hf-color-input-background-disable);color:var(--hf-color-input-text-disable)}._error_1rgcl_35,._error_1rgcl_35:active{border-color:var(--hf-color-input-border-error)}._error_1rgcl_35:focus{border-color:var(--hf-color-input-border-error);outline:solid 3px var(--hf-color-input-border-error-focus-visible)}._description_1rgcl_47{margin-top:var(--hf-gap-xs);font-size:var(--hf-font-size-field-error);font-weight:var(--hf-font-weight-field-description);line-height:var(--hf-font-line-height-field-description)}._description_1rgcl_47 a{text-decoration:underline}._descriptionText_1rgcl_58{color:var(--hf-color-input-text-description)}._errorText_1rgcl_62{color:var(--hf-color-text-danger)}._label_12r0e_1{display:flex;flex-direction:row;gap:var(--hf-gap-xs);font-style:normal;flex:1;margin-bottom:var(--hf-gap-xs)}._header_12r0e_10{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._headerWrapper_12r0e_18{flex-grow:1;gap:var(--hf-gap-xs);display:flex;flex-direction:column}._title_12r0e_25{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-label-title);font-weight:var(--hf-font-weight-label-title);line-height:var(--hf-font-line-height-label-title)}._subTitleRow_12r0e_33{display:flex;justify-content:space-between;font-size:var(--hf-font-size-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle)}._subTitle_12r0e_33{line-height:var(--hf-font-line-height-label-subtitle)}._link_12r0e_45{overflow:hidden;text-overflow:ellipsis;font-size:var(--hf-font-size-label-title);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle);margin-left:auto;align-self:flex-end;height:20px}._link_12r0e_45 a{text-decoration:none;color:var(--hf-color-text-semilight)}._linkUpper_12r0e_62{margin-bottom:1px}._label_jcdiv_1{display:flex;align-items:center;gap:8px;height:20px}._label_jcdiv_1._disabled_jcdiv_7{color:gray;cursor:not-allowed}._label_jcdiv_1 span{margin-top:-5px}._input_jcdiv_17[type=checkbox]{vertical-align:-2px;margin:0;border-radius:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;width:16px;height:16px;border:1px solid #25CFE8;transform:translateY(-.075em);display:grid;place-content:center}._input_jcdiv_17._error_jcdiv_30[type=checkbox]{border:1px solid #FF0000}._input_jcdiv_17[type=checkbox]:before{content:"";width:16px;height:16px;clip-path:polygon(0 0,50% 0,100% 0,100% 100%,50% 100%,0 100%);transform:scale(0);transform-origin:bottom left;transition:.12s transform ease-in-out;background-color:#25cfe8;border-radius:4px}._input_jcdiv_17[type=checkbox]:checked:before{transform:scale(1)}._input_jcdiv_17[type=checkbox]:focus{outline:2px solid #C4EDFA}._input_jcdiv_17._error_jcdiv_30[type=checkbox]:focus{outline:2px solid #FFD6D6}._input_jcdiv_17[type=checkbox]:disabled{border-color:#00000029;opacity:30%;color:#000;cursor:not-allowed}._text_jcdiv_70{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:15px;line-height:20px}._errorText_jcdiv_76{color:red;font-size:12px}._title_j3vxq_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._level-1_j3vxq_8{font-size:var(--hf-font-size-text-h1);font-weight:var(--hf-font-weight-text-h1);line-height:var(--hf-font-line-height-text-h1)}._level-2_j3vxq_14{font-size:var(--hf-font-size-text-h2);font-weight:var(--hf-font-weight-text-h2);line-height:var(--hf-font-line-height-text-h2)}._level-3_j3vxq_20{font-size:var(--hf-font-size-text-h3);font-weight:var(--hf-font-weight-text-h3);line-height:var(--hf-font-line-height-text-h3)}._level-4_j3vxq_26{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._text_pweht_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._primary_pweht_8{font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary);line-height:var(--hf-font-line-height-text-primary)}._primary_pweht_8._medium_pweht_13{font-weight:var(--hf-font-weight-text-primary-bold)}._secondary_pweht_18{font-size:var(--hf-font-size-text-secondary);font-weight:var(--hf-font-weight-text-secondary);line-height:var(--hf-font-line-height-text-secondary)}._secondary_pweht_18._medium_pweht_13{font-weight:var(--hf-font-weight-text-secondary-bold)}._accent_pweht_27{font-size:var(--hf-font-size-text-accent);font-weight:var(--hf-font-weight-text-accent);line-height:var(--hf-font-line-height-text-accent)}._accent_pweht_27._medium_pweht_13{font-weight:var(--hf-font-weight-text-accent-bold)}._subtitle_pweht_36{font-size:var(--hf-font-size-text-subtitle);font-weight:var(--hf-font-weight-text-subtitle);line-height:var(--hf-font-line-height-text-subtitle)}:root{--hf-btn-size-xs: 28px;--hf-btn-size-s: 32px;--hf-btn-size-m: 36px;--hf-btn-size-l: 40px}._s_n8n8w_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_n8n8w_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs)}._m_n8n8w_19{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_n8n8w_24{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_n8n8w_30{padding:0}._button_fj122_1{padding:0 2px 0 0;border:none;margin:0;cursor:pointer;display:flex;flex-direction:row;gap:var(--hf-gap-button-link-s);align-items:center;background-color:transparent;color:var(--hf-color-link-default);font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-button-link-s);font-style:normal;font-weight:var(--hf-font-weight-button-link-s);line-height:var(--hf-font-line-height-button-link-s)}._button_fj122_1:hover{color:var(--hf-color-link-hover)}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import { defineComponent as b, computed as c, createElementBlock as i, openBlock as a, normalizeClass as o, unref as r, normalizeStyle as O, createElementVNode as L, useSlots as V, createCommentVNode as p, renderSlot as m, createBlock as x, createVNode as S, mergeModels as z, useModel as D, withDirectives as R, withCtx as T, createTextVNode as B, toDisplayString as $, vModelDynamic as W, vModelCheckbox as A, resolveDynamicComponent as F, mergeProps as G } from "vue";
2
+ import { defineComponent as b, computed as c, openBlock as a, createElementBlock as i, normalizeClass as o, unref as r, normalizeStyle as W, createElementVNode as N, useSlots as V, createVNode as S, createCommentVNode as p, renderSlot as m, createBlock as L, mergeModels as z, useModel as D, withCtx as $, createTextVNode as B, toDisplayString as g, withDirectives as R, vModelDynamic as A, vModelCheckbox as F, resolveDynamicComponent as E, mergeProps as G } from "vue";
3
3
  const j = (n, e) => {
4
4
  const s = e ? n[e] : n.default;
5
5
  return (s == null ? void 0 : s().some((l) => {
@@ -29,7 +29,7 @@ const j = (n, e) => {
29
29
  class: o([r(C).spinner, s.value])
30
30
  }, null, 2));
31
31
  }
32
- }), se = "_button_1syl2_1", le = "_disabled_1syl2_1", ne = "_loading_1syl2_1", oe = "_loader_1syl2_1", ae = "_content_1syl2_1", re = "_dropdownIcon_1syl2_1", ce = "_s_1syl2_2", ie = "_xs_1syl2_1", de = "_square_1syl2_1", _e = "_circle_1syl2_1", ue = "_m_1syl2_1", pe = "_l_1syl2_1", ye = "_primary_1syl2_1", me = "_secondary_1syl2_1", be = "_accent_1syl2_1", ve = "_danger_1syl2_1", he = "_jobsites_1syl2_1", ke = "_ghost_1syl2_1", y = {
32
+ }), se = "_button_1syl2_1", le = "_disabled_1syl2_1", ne = "_loading_1syl2_1", oe = "_loader_1syl2_1", ae = "_content_1syl2_1", re = "_dropdownIcon_1syl2_1", ce = "_s_1syl2_2", ie = "_xs_1syl2_1", de = "_square_1syl2_1", _e = "_circle_1syl2_1", ue = "_m_1syl2_1", pe = "_l_1syl2_1", ye = "_primary_1syl2_1", me = "_secondary_1syl2_1", be = "_accent_1syl2_1", ve = "_danger_1syl2_1", he = "_jobsites_1syl2_1", fe = "_ghost_1syl2_1", y = {
33
33
  button: se,
34
34
  disabled: le,
35
35
  loading: ne,
@@ -47,9 +47,9 @@ const j = (n, e) => {
47
47
  accent: be,
48
48
  danger: ve,
49
49
  jobsites: he,
50
- ghost: ke,
50
+ ghost: fe,
51
51
  "ghost-danger": "_ghost-danger_1syl2_1"
52
- }, fe = ["aria-label", "width", "height"], $e = ["xlink:href"], ge = /* @__PURE__ */ b({
52
+ }, ke = ["aria-label", "width", "height"], $e = ["xlink:href"], ge = /* @__PURE__ */ b({
53
53
  __name: "icon",
54
54
  props: {
55
55
  type: {},
@@ -68,15 +68,15 @@ const j = (n, e) => {
68
68
  return (t, d) => (a(), i("svg", {
69
69
  class: o(t.$style.icon),
70
70
  "aria-label": t.type,
71
- style: O(l.value),
71
+ style: W(l.value),
72
72
  role: "img",
73
73
  width: s.value,
74
74
  height: s.value
75
75
  }, [
76
- L("use", {
76
+ N("use", {
77
77
  "xlink:href": `#${t.type}`
78
78
  }, null, 8, $e)
79
- ], 14, fe));
79
+ ], 14, ke));
80
80
  }
81
81
  }), we = "_icon_1p8iz_2", Te = {
82
82
  icon: we
@@ -87,7 +87,7 @@ const j = (n, e) => {
87
87
  return s;
88
88
  }, Ce = {
89
89
  $style: Te
90
- }, I = /* @__PURE__ */ Be(ge, [["__cssModules", Ce]]), je = ["name", "type", "disabled"], Le = /* @__PURE__ */ b({
90
+ }, I = /* @__PURE__ */ Be(ge, [["__cssModules", Ce]]), je = ["name", "type", "disabled"], Ne = /* @__PURE__ */ b({
91
91
  __name: "button",
92
92
  props: {
93
93
  size: { default: "m" },
@@ -125,12 +125,12 @@ const j = (n, e) => {
125
125
  },
126
126
  s.className
127
127
  ]), v = c(() => l[s.type] || "white");
128
- return (_, g) => (a(), i("button", {
128
+ return (_, w) => (a(), i("button", {
129
129
  name: _.name,
130
130
  class: o(d.value),
131
131
  type: _.htmlType,
132
132
  disabled: _.disabled || _.loading,
133
- onClick: g[0] || (g[0] = (h) => _.$emit("click"))
133
+ onClick: w[0] || (w[0] = (h) => _.$emit("click"))
134
134
  }, [
135
135
  _.loading ? (a(), i("div", {
136
136
  key: 0,
@@ -149,21 +149,21 @@ const j = (n, e) => {
149
149
  m(_.$slots, "default")
150
150
  ], 2)) : p("", !0),
151
151
  _.$slots.after ? m(_.$slots, "after", { key: 3 }) : p("", !0),
152
- _.dropdown ? (a(), x(I, {
152
+ _.dropdown ? (a(), L(I, {
153
153
  key: 4,
154
154
  class: o(r(y).dropdownIcon),
155
155
  type: "chevron-down-18"
156
156
  }, null, 8, ["class"])) : p("", !0)
157
157
  ], 10, je));
158
158
  }
159
- }), Ne = "_wrapper_1rgcl_1", xe = "_input_1rgcl_5", Me = "_error_1rgcl_35", ze = "_description_1rgcl_47", Se = "_descriptionText_1rgcl_58", Ie = "_errorText_1rgcl_62", k = {
160
- wrapper: Ne,
161
- input: xe,
162
- error: Me,
159
+ }), Le = "_wrapper_1rgcl_1", Me = "_input_1rgcl_5", xe = "_error_1rgcl_35", ze = "_description_1rgcl_47", Se = "_descriptionText_1rgcl_58", Ie = "_errorText_1rgcl_62", f = {
160
+ wrapper: Le,
161
+ input: Me,
162
+ error: xe,
163
163
  description: ze,
164
164
  descriptionText: Se,
165
165
  errorText: Ie
166
- }, qe = "_label_12r0e_1", He = "_header_12r0e_10", Ue = "_headerWrapper_12r0e_18", Ve = "_title_12r0e_25", De = "_subTitleRow_12r0e_33", Re = "_subTitle_12r0e_33", Ee = "_link_12r0e_45", Oe = "_linkUpper_12r0e_62", f = {
166
+ }, qe = "_label_12r0e_1", He = "_header_12r0e_10", Ue = "_headerWrapper_12r0e_18", Ve = "_title_12r0e_25", De = "_subTitleRow_12r0e_33", Re = "_subTitle_12r0e_33", Ee = "_link_12r0e_45", Oe = "_linkUpper_12r0e_62", k = {
167
167
  label: qe,
168
168
  header: He,
169
169
  headerWrapper: Ue,
@@ -176,34 +176,34 @@ const j = (n, e) => {
176
176
  __name: "label",
177
177
  emits: ["click"],
178
178
  setup(n) {
179
- const e = V(), s = c(() => j(e, "header")), l = c(() => j(e)), t = c(() => j(e, "subTitle")), d = c(() => j(e, "link")), v = c(() => s.value || l.value || t.value), _ = c(() => !l.value && !t.value), g = c(
180
- () => [f.link, _.value && f.linkUpper].filter(Boolean)
179
+ const e = V(), s = c(() => j(e, "header")), l = c(() => j(e)), t = c(() => j(e, "subTitle")), d = c(() => j(e, "link")), v = c(() => s.value || l.value || t.value), _ = c(() => !l.value && !t.value), w = c(
180
+ () => [k.link, _.value && k.linkUpper].filter(Boolean)
181
181
  );
182
- return (h, N) => (a(), i("label", {
183
- class: o(r(f).label)
182
+ return (h, M) => (a(), i("label", {
183
+ class: o(r(k).label)
184
184
  }, [
185
185
  v.value ? (a(), i("span", {
186
186
  key: 0,
187
- class: o(r(f).headerWrapper)
187
+ class: o(r(k).headerWrapper)
188
188
  }, [
189
189
  s.value ? (a(), i("span", {
190
190
  key: 0,
191
- class: o(r(f).header)
191
+ class: o(r(k).header)
192
192
  }, [
193
193
  m(h.$slots, "header")
194
194
  ], 2)) : p("", !0),
195
195
  l.value ? (a(), i("span", {
196
196
  key: 1,
197
- class: o(r(f).title)
197
+ class: o(r(k).title)
198
198
  }, [
199
199
  m(h.$slots, "default")
200
200
  ], 2)) : p("", !0),
201
201
  t.value ? (a(), i("span", {
202
202
  key: 2,
203
- class: o(r(f).subTitleRow)
203
+ class: o(r(k).subTitleRow)
204
204
  }, [
205
- L("span", {
206
- class: o(r(f).subTitle)
205
+ N("span", {
206
+ class: o(r(k).subTitle)
207
207
  }, [
208
208
  m(h.$slots, "subTitle")
209
209
  ], 2)
@@ -211,8 +211,8 @@ const j = (n, e) => {
211
211
  ], 2)) : p("", !0),
212
212
  d.value ? (a(), i("span", {
213
213
  key: 1,
214
- class: o(g.value),
215
- onClick: N[0] || (N[0] = (u) => h.$emit("click"))
214
+ class: o(w.value),
215
+ onClick: M[0] || (M[0] = (u) => h.$emit("click"))
216
216
  }, [
217
217
  m(h.$slots, "link")
218
218
  ], 2)) : p("", !0)
@@ -242,73 +242,73 @@ const j = (n, e) => {
242
242
  emits: /* @__PURE__ */ z(["update:value", "enter", "click-link"], ["update:value"]),
243
243
  setup(n, { emit: e }) {
244
244
  const s = D(n, "value"), l = n, t = e, d = c(() => [
245
- k.input,
245
+ f.input,
246
246
  {
247
- [k.disabled]: l.disabled,
248
- [k.error]: l.error,
249
- [k.loading]: l.loading
247
+ [f.disabled]: l.disabled,
248
+ [f.error]: l.error,
249
+ [f.loading]: l.loading
250
250
  },
251
251
  l.className
252
- ]), v = c(() => l.header || l.title || l.subTitle || l.link), _ = c(() => l.description || l.error), g = (u) => {
252
+ ]), v = c(() => l.header || l.title || l.subTitle || l.link), _ = c(() => l.description || l.error), w = (u) => {
253
253
  t("update:value", u.target.value);
254
254
  }, h = (u) => {
255
255
  u.key === "Enter" && t("enter");
256
- }, N = () => {
256
+ }, M = () => {
257
257
  t("click-link");
258
258
  };
259
259
  return (u, q) => (a(), i("div", {
260
- class: o(r(k).wrapper)
260
+ class: o(r(f).wrapper)
261
261
  }, [
262
- v.value ? (a(), x(r(We), {
262
+ v.value ? (a(), L(r(We), {
263
263
  key: 0,
264
264
  for: u.id,
265
- onClick: N
265
+ onClick: M
266
266
  }, {
267
- header: T(() => [
268
- B($(l.header), 1)
267
+ header: $(() => [
268
+ B(g(l.header), 1)
269
269
  ]),
270
- subTitle: T(() => [
271
- B($(l.subTitle), 1)
270
+ subTitle: $(() => [
271
+ B(g(l.subTitle), 1)
272
272
  ]),
273
- link: T(() => [
274
- B($(l.link), 1)
273
+ link: $(() => [
274
+ B(g(l.link), 1)
275
275
  ]),
276
- default: T(() => [
277
- B(" " + $(l.title) + " ", 1)
276
+ default: $(() => [
277
+ B(" " + g(l.title) + " ", 1)
278
278
  ]),
279
279
  _: 1
280
280
  }, 8, ["for"])) : p("", !0),
281
- R(L("input", {
281
+ R(N("input", {
282
282
  id: u.id,
283
- "onUpdate:modelValue": q[0] || (q[0] = (E) => s.value = E),
283
+ "onUpdate:modelValue": q[0] || (q[0] = (O) => s.value = O),
284
284
  name: u.name,
285
285
  type: u.type,
286
286
  disabled: u.disabled || u.loading,
287
287
  placeholder: u.placeholder,
288
288
  class: o(d.value),
289
- onInput: g,
289
+ onInput: w,
290
290
  onKeydown: h
291
291
  }, null, 42, Ae), [
292
- [W, s.value]
292
+ [A, s.value]
293
293
  ]),
294
294
  _.value ? (a(), i("div", {
295
295
  key: 1,
296
- class: o(r(k).description)
296
+ class: o(r(f).description)
297
297
  }, [
298
298
  u.error ? (a(), i("div", {
299
299
  key: 0,
300
- class: o(r(k).errorText),
300
+ class: o(r(f).errorText),
301
301
  innerHTML: u.error
302
302
  }, null, 10, Fe)) : p("", !0),
303
303
  u.description ? (a(), i("div", {
304
304
  key: 1,
305
- class: o(r(k).descriptionText),
305
+ class: o(r(f).descriptionText),
306
306
  innerHTML: u.description
307
307
  }, null, 10, Ge)) : p("", !0)
308
308
  ], 2)) : p("", !0)
309
309
  ], 2));
310
310
  }
311
- }), Ke = "_label_jcdiv_1", Pe = "_disabled_jcdiv_7", Je = "_input_jcdiv_17", Qe = "_error_jcdiv_30", Xe = "_text_jcdiv_70", Ye = "_errorText_jcdiv_76", w = {
311
+ }), Ke = "_label_jcdiv_1", Pe = "_disabled_jcdiv_7", Je = "_input_jcdiv_17", Qe = "_error_jcdiv_30", Xe = "_text_jcdiv_70", Ye = "_errorText_jcdiv_76", T = {
312
312
  label: Ke,
313
313
  disabled: Pe,
314
314
  input: Je,
@@ -331,38 +331,38 @@ const j = (n, e) => {
331
331
  emits: ["update:checked"],
332
332
  setup(n) {
333
333
  const e = D(n, "checked"), s = n, l = c(() => [
334
- w.label,
334
+ T.label,
335
335
  {
336
- [w.disabled]: s.disabled
336
+ [T.disabled]: s.disabled
337
337
  },
338
338
  s.className
339
339
  ]);
340
340
  return (t, d) => (a(), i("div", null, [
341
- L("label", {
341
+ N("label", {
342
342
  for: t.id,
343
343
  class: o(l.value)
344
344
  }, [
345
- R(L("input", {
345
+ R(N("input", {
346
346
  id: t.id,
347
347
  "onUpdate:modelValue": d[0] || (d[0] = (v) => e.value = v),
348
348
  name: t.name,
349
349
  type: "checkbox",
350
350
  disabled: t.disabled,
351
- class: o([r(w).input, { [r(w).error]: !!s.error }])
351
+ class: o([r(T).input, { [r(T).error]: !!s.error }])
352
352
  }, null, 10, et), [
353
- [A, e.value]
353
+ [F, e.value]
354
354
  ]),
355
355
  t.$slots.default ? (a(), i("span", {
356
356
  key: 0,
357
- class: o(r(w).text)
357
+ class: o(r(T).text)
358
358
  }, [
359
359
  m(t.$slots, "default")
360
360
  ], 2)) : p("", !0)
361
361
  ], 10, Ze),
362
362
  t.error ? (a(), i("div", {
363
363
  key: 0,
364
- class: o(r(w).errorText)
365
- }, $(t.error), 3)) : p("", !0)
364
+ class: o(r(T).errorText)
365
+ }, g(t.error), 3)) : p("", !0)
366
366
  ]));
367
367
  }
368
368
  }), ht = async () => {
@@ -383,7 +383,7 @@ const j = (n, e) => {
383
383
  "level-2": "_level-2_j3vxq_14",
384
384
  "level-3": "_level-3_j3vxq_20",
385
385
  "level-4": "_level-4_j3vxq_26"
386
- }, kt = /* @__PURE__ */ b({
386
+ }, ft = /* @__PURE__ */ b({
387
387
  __name: "title",
388
388
  props: {
389
389
  level: {},
@@ -391,45 +391,53 @@ const j = (n, e) => {
391
391
  className: {}
392
392
  },
393
393
  setup(n) {
394
- const e = n, s = c(() => [H.title, H[`level-${e.level}`], e.className]), l = c(() => `h${e.level}`);
395
- return (t, d) => (a(), x(F(l.value), {
394
+ const e = n, s = c(() => [
395
+ H.title,
396
+ H[`level-${e.level ?? 1}`],
397
+ e.className
398
+ ]), l = c(() => `h${e.level ?? 1}`);
399
+ return (t, d) => (a(), L(E(l.value), {
396
400
  class: o(s.value)
397
401
  }, {
398
- default: T(() => [
402
+ default: $(() => [
399
403
  m(t.$slots, "default", {}, () => [
400
- B($(t.text), 1)
404
+ B(g(t.text), 1)
401
405
  ])
402
406
  ]),
403
407
  _: 3
404
408
  }, 8, ["class"]));
405
409
  }
406
- }), st = "_text_pweht_1", lt = "_primary_pweht_8", nt = "_medium_pweht_13", ot = "_secondary_pweht_18", at = "_accent_pweht_27", rt = "_subtitle_pweht_36", M = {
410
+ }), st = "_text_pweht_1", lt = "_primary_pweht_8", nt = "_medium_pweht_13", ot = "_secondary_pweht_18", at = "_accent_pweht_27", rt = "_subtitle_pweht_36", x = {
407
411
  text: st,
408
412
  primary: lt,
409
413
  medium: nt,
410
414
  secondary: ot,
411
415
  accent: at,
412
416
  subtitle: rt
413
- }, ft = /* @__PURE__ */ b({
417
+ }, kt = /* @__PURE__ */ b({
414
418
  __name: "text",
415
419
  props: {
420
+ tagName: { default: "p" },
416
421
  text: {},
417
422
  kind: { default: "primary" },
418
423
  weight: {}
419
424
  },
420
425
  setup(n) {
421
426
  const e = n, s = c(() => [
422
- M.text,
423
- M[e.kind],
424
- e.weight && M[e.weight]
427
+ x.text,
428
+ x[e.kind],
429
+ e.weight && x[e.weight]
425
430
  ]);
426
- return (l, t) => (a(), i("p", {
431
+ return (l, t) => (a(), L(E(l.tagName), {
427
432
  class: o(s.value)
428
- }, [
429
- m(l.$slots, "default", {}, () => [
430
- B($(l.text), 1)
431
- ])
432
- ], 2));
433
+ }, {
434
+ default: $(() => [
435
+ m(l.$slots, "default", {}, () => [
436
+ B(g(l.text), 1)
437
+ ])
438
+ ]),
439
+ _: 3
440
+ }, 8, ["class"]));
433
441
  }
434
442
  }), ct = "_s_n8n8w_9", it = "_xs_n8n8w_14", dt = "_m_n8n8w_19", _t = "_l_n8n8w_24", ut = "_button_n8n8w_30", U = {
435
443
  s: ct,
@@ -457,11 +465,11 @@ const j = (n, e) => {
457
465
  const t = e.size === "xs" ? "18" : "20";
458
466
  return e.icon.replace(/-?\d*$/, `-${t}`);
459
467
  });
460
- return (t, d) => (a(), x(r(Le), G({ class: s.value }, e, {
468
+ return (t, d) => (a(), L(r(Ne), G({ class: s.value }, e, {
461
469
  "html-type": "button",
462
470
  onClick: d[0] || (d[0] = (v) => t.$emit("click"))
463
471
  }), {
464
- before: T(() => [
472
+ before: $(() => [
465
473
  S(r(I), { type: l.value }, null, 8, ["type"])
466
474
  ]),
467
475
  _: 1
@@ -484,14 +492,14 @@ const j = (n, e) => {
484
492
  }
485
493
  });
486
494
  export {
487
- Le as BaseButton,
495
+ Ne as BaseButton,
488
496
  vt as BaseCheckbox,
489
497
  I as BaseIcon,
490
498
  bt as BaseInput,
491
499
  We as BaseLabel,
492
500
  te as BaseLoader,
493
- ft as BaseText,
494
- kt as BaseTitle,
501
+ kt as BaseText,
502
+ ft as BaseTitle,
495
503
  $t as ButtonIcon,
496
504
  gt as ButtonLink,
497
505
  ht as injectSvgSprite
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@huntflow/ui",
3
3
  "description": "HuntFlow UiKit, icons, utils library",
4
4
  "private": false,
5
- "version": "0.0.55",
5
+ "version": "0.0.56",
6
6
  "author": {
7
7
  "name": "HuntFlow Developer",
8
8
  "nickname": "developer",
@@ -87,7 +87,6 @@
87
87
  "vite-plugin-css-injected-by-js": "^3.5.2",
88
88
  "vite-plugin-dts": "^4.3.0",
89
89
  "vite-plugin-eslint2": "^5.0.3",
90
- "vite-plugin-static-copy": "^2.2.0",
91
90
  "vite-svg-sprite-wrapper": "^1.4.1",
92
91
  "vue-tsc": "^2.1.8"
93
92
  }