@huntflow/ui 0.2.5 → 0.2.6

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 (2) hide show
  1. package/dist/ui.es.js +198 -185
  2. package/package.json +1 -1
package/dist/ui.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.nonce=document.head.querySelector("meta[property=csp-nonce]")?.content,o.appendChild(document.createTextNode(`@keyframes _loader-animation_tpkd0_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_tpkd0_11{color:var(--hf-loader-color);display:block;flex:0 0 auto}._circle_tpkd0_17{animation-name:_loader-animation_tpkd0_1;animation-duration:1s;animation-timing-function:linear;animation-iteration-count:infinite}._white_tpkd0_24{--hf-loader-color: var(--hf-color-text-invert)}._black_tpkd0_28{--hf-loader-color: var(--hf-color-text-main)}._s_tpkd0_32{width:18px;height:18px}._m_tpkd0_37{width:28px;height:28px}._l_tpkd0_11{width:56px;height:56px}._spinner_tpkd0_47{display:inline-block;border:1px solid var(--hf-loader-color);border-radius:50%;border-left-color:transparent;border-top-color:transparent}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._button_mb1r2_1{font-family:var(--hf-font-family-body),sans-serif;font-style:normal;color:inherit;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--hf-spacing-button-icon);min-width:-moz-max-content;min-width:max-content;border:solid 1px;position:relative;cursor:pointer;-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._button_mb1r2_1:active{background-color:#999}._button_mb1r2_1:focus{outline:none}._button_mb1r2_1:focus-visible{outline:solid 3px var(--hf-color-button-primary-border-focus)}._button_mb1r2_1:is(._disabled_mb1r2_1),._button_mb1r2_1:is(._disabled_mb1r2_1):hover{color:var(--hf-color-text-light);background-color:var(--hf-color-button-disable-default);border-color:transparent;box-shadow:none;transform:none;cursor:default}._button_mb1r2_1._loading_mb1r2_1{cursor:default}._button_mb1r2_1._loading_mb1r2_1>*:not(._loader_mb1r2_1){visibility:hidden}._button_mb1r2_1+._button_mb1r2_1{margin-left:var(--hf-spacing-button-gap)}._content_mb1r2_1{line-height:inherit;display:flex}._content_mb1r2_1:first-child:last-child{text-align:center;width:100%}._loader_mb1r2_1{display:flex;justify-content:center;align-items:center;position:absolute;inset:0}._s_mb1r2_2{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);border-radius:var(--hf-radius-button-s)}._xs_mb1r2_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_mb1r2_1._square_mb1r2_1{border-radius:var(--hf-radius-button-xs)}._xs_mb1r2_1._circle_mb1r2_1{border-radius:var(--hf-radius-button-circle)}._m_mb1r2_1{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);border-radius:var(--hf-radius-button-m)}._l_mb1r2_1{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);border-radius:var(--hf-radius-button-l)}._primary_mb1r2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_mb1r2_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_mb1r2_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._primary_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-primary-default)}._secondary_mb1r2_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_mb1r2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_mb1r2_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._secondary_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-secondary-fill-default)}._accent_mb1r2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_mb1r2_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_mb1r2_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._accent_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-accent-default)}._danger_mb1r2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_mb1r2_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_mb1r2_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._danger_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-danger-default)}._jobsites_mb1r2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_mb1r2_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_mb1r2_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._jobsites_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-jobsite-default)}._ghost_mb1r2_1{color:var(--hf-color-text-secondary);background-color:transparent;border-color:transparent}._ghost_mb1r2_1:hover{color:var(--hf-color-text-main);background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_mb1r2_1:active{color:var(--hf-color-text-main);background-color:var(--hf-color-button-secondary-fill-active)}._ghost_mb1r2_1._loading_mb1r2_1{background-color:transparent}._ghost-danger_mb1r2_1{color:var(--hf-color-text-secondary);background-color:transparent;border-color:transparent}._ghost-danger_mb1r2_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_mb1r2_1:active{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-active)}._ghost-danger_mb1r2_1._loading_mb1r2_1{background-color:transparent}:root{--hf-btn-size-xs: 28px;--hf-btn-size-s: 32px;--hf-btn-size-m: 36px;--hf-btn-size-l: 40px}._s_o7jd7_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_o7jd7_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs);border-radius:var(--hf-radius-button-circle)}._m_o7jd7_20{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_o7jd7_25{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_o7jd7_31{padding:0}._button_1xnk4_1{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);color:var(--hf-color-link-default);display:flex;flex-direction:row;align-items:center;gap:var(--hf-spacing-button-link-s);margin:0;padding:0 2px 0 0;background-color:transparent;border:none;cursor:pointer;-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._button_1xnk4_1:hover{color:var(--hf-color-link-hover)}._label_1ic51_1{font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-label-title);font-style:normal;font-weight:var(--hf-font-weight-regular);line-height:var(--hf-font-line-height-label-title);color:var(--hf-color-text-main);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._content_1g21n_1{font-family:var(--hf-font-family-body),sans-serif;display:flex;flex:1;flex-direction:row;gap:var(--hf-spacing-xs);margin-bottom:var(--hf-spacing-xs);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._label_1g21n_12{font-style:normal;display:flex;flex:1;flex-direction:row;gap:var(--hf-spacing-xs);margin-bottom:var(--hf-spacing-xs)}._header_1g21n_21{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4-medium);line-height:var(--hf-font-line-height-text-h4);color:var(--hf-color-text-main);display:block}._headerWrapper_1g21n_29{display:flex;flex-direction:column;flex-grow:1;gap:var(--hf-spacing-xs)}._title_1g21n_36{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);color:var(--hf-color-text-main);display:block}._subTitleRow_1g21n_44{font-size:var(--hf-font-size-label-subtitle);font-weight:var(--hf-font-weight-label-subtitle);color:var(--hf-color-text-semilight);display:flex;justify-content:space-between}._subTitle_1g21n_44{line-height:var(--hf-font-line-height-label-subtitle)}._link_1g21n_56{font-size:var(--hf-font-size-label-title);font-weight:var(--hf-font-weight-label-subtitle);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-semilight);align-self:flex-end;height:20px;margin-left:auto;overflow:hidden;text-overflow:ellipsis}._link_1g21n_56 a{color:var(--hf-color-text-semilight);text-decoration:none}._linkUpper_1g21n_73{margin-bottom:1px}._wrapper_1i81c_1{font-family:var(--hf-font-family-body),sans-serif;margin-bottom:var(--hf-spacing-xs);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._input_1i81c_8{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);color:var(--hf-color-input-text-default);box-sizing:border-box;width:100%;padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-right-default) var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-default);background:var(--hf-color-input-background-default);border:var(--hf-border-xs) solid var(--hf-color-input-border-default);border-radius:var(--hf-radius-input-default)}._input_1i81c_8:active{border-color:var(--hf-color-input-border-focus)}._input_1i81c_8:focus{border-color:var(--hf-color-input-border-focus);outline:solid 3px var(--hf-color-input-border-focus-visible)}._input_1i81c_8:disabled{color:var(--hf-color-input-text-disable);background:var(--hf-color-input-background-disable);border-color:var(--hf-color-input-text-disable);outline:none}._error_1i81c_38,._error_1i81c_38:active{border-color:var(--hf-color-input-border-error)}._error_1i81c_38:focus{border-color:var(--hf-color-input-border-error);outline:solid 3px var(--hf-color-input-border-error-focus-visible)}._description_1i81c_51{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);margin-top:var(--hf-spacing-xs)}._description_1i81c_51 a{text-decoration:underline}._descriptionText_1i81c_62{color:var(--hf-color-input-text-description)}._errorText_1i81c_66{color:var(--hf-color-text-danger)}._inputWrapper_1i81c_70{position:relative}._leftSpace_1i81c_74{padding-left:42px}._rightSpace_1i81c_78{padding-right:42px}._leftIcon_1i81c_82,._rightIcon_1i81c_83{height:100%;position:absolute}._leftIcon_1i81c_82{left:15px}._rightIcon_1i81c_83{padding:0 9px;right:0}._rightIcon_1i81c_83[aria-label^=close]{color:var(--hf-color-text-light);cursor:pointer}._plank_1yp3k_1{font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-text-primary);font-style:normal;font-weight:var(--hf-font-weight-text-primary-regular);line-height:var(--hf-font-line-height-text-primary);display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--hf-spacing-m);padding:var(--hf-spacing-m) var(--hf-spacing-l);border-width:1px;border-style:solid;border-radius:var(--hf-radius-m);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._default_1yp3k_20{color:var(--hf-color-text-main);background-color:var(--hf-color-plank-default-background);border-color:var(--hf-color-plank-default-border)}._accent_1yp3k_26{color:var(--hf-color-plank-success-text);background-color:var(--hf-color-plank-success-background);border-color:var(--hf-color-plank-success-border)}._danger_1yp3k_32{color:var(--hf-color-plank-danger-text);background-color:var(--hf-color-plank-danger-background);border-color:var(--hf-color-plank-danger-border)}._text_1yp3k_38{flex-grow:1}._icon_1yp3k_42{width:var(--hf-font-line-height-text-primary);height:var(--hf-font-line-height-text-primary)}._text_dbd8t_1{font-family:var(--hf-font-family-body),sans-serif;font-style:normal;color:var(--hf-color-text-main);margin:0;-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._primary_dbd8t_10{font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary-regular);line-height:var(--hf-font-line-height-text-primary)}._primary_dbd8t_10._medium_dbd8t_15{font-weight:var(--hf-font-weight-text-primary-medium)}._secondary_dbd8t_20{font-size:var(--hf-font-size-text-secondary);font-weight:var(--hf-font-weight-text-secondary-regular);line-height:var(--hf-font-line-height-text-secondary)}._secondary_dbd8t_20._medium_dbd8t_15{font-weight:var(--hf-font-weight-text-secondary-medium)}._accent_dbd8t_30{font-size:var(--hf-font-size-text-accent);font-weight:var(--hf-font-weight-text-accent-regular);line-height:var(--hf-font-line-height-text-accent)}._accent_dbd8t_30._medium_dbd8t_15{font-weight:var(--hf-font-weight-text-accent-medium)}._subtitle_dbd8t_40{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)}._color-main_dbd8t_46{color:var(--hf-color-text-main)}._color-secondary_dbd8t_50{color:var(--hf-color-text-secondary)}._color-semilight_dbd8t_54{color:var(--hf-color-text-semilight)}._color-light_dbd8t_58{color:var(--hf-color-text-light)}._color-invert_dbd8t_62{color:var(--hf-color-text-invert)}._color-danger_dbd8t_66{color:var(--hf-color-text-danger)}._color-success_dbd8t_70{color:var(--hf-color-text-success)}._title_1m0wo_1{font-family:var(--hf-font-family-body),sans-serif;font-style:normal;color:var(--hf-color-text-main);margin:0;-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._level-1_1m0wo_10{font-size:var(--hf-font-size-text-h1);font-weight:var(--hf-font-weight-text-h1-regular);line-height:var(--hf-font-line-height-text-h1)}._level-1_1m0wo_10._medium_1m0wo_15{font-weight:var(--hf-font-weight-text-h1-medium)}._level-2_1m0wo_20{font-size:var(--hf-font-size-text-h2);font-weight:var(--hf-font-weight-text-h2-regular);line-height:var(--hf-font-line-height-text-h2)}._level-2_1m0wo_20._medium_1m0wo_15{font-weight:var(--hf-font-weight-text-h2-medium)}._level-3_1m0wo_30{font-size:var(--hf-font-size-text-h3);font-weight:var(--hf-font-weight-text-h3-regular);line-height:var(--hf-font-line-height-text-h3)}._level-3_1m0wo_30._medium_1m0wo_15{font-weight:var(--hf-font-weight-text-h3-medium)}._level-4_1m0wo_40{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4-regular);line-height:var(--hf-font-line-height-text-h4)}._level-4_1m0wo_40._medium_1m0wo_15{font-weight:var(--hf-font-weight-text-h4-medium)}._color-main_1m0wo_50{color:var(--hf-color-text-main)}._color-secondary_1m0wo_54{color:var(--hf-color-text-secondary)}._color-semilight_1m0wo_58{color:var(--hf-color-text-semilight)}._color-light_1m0wo_62{color:var(--hf-color-text-light)}._color-invert_1m0wo_66{color:var(--hf-color-text-invert)}._color-danger_1m0wo_70{color:var(--hf-color-text-danger)}._color-success_1m0wo_74{color:var(--hf-color-text-success)}._error_lk2jx_1{font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-label-subtitle);font-weight:var(--hf-font-weight-regular);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-danger);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._root_1tj1b_1{overflow:hidden;border-radius:50%;position:relative;aspect-ratio:1/1}._root_1tj1b_1 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._default_1tj1b_14{background-color:var(--hf-color-avatar-background);background-image:url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.3731%2012.2451C8.04067%2011.4614%207.47001%207.04127%2010.5054%205.5244C11.4539%205.05047%2012.6607%205.02109%2013.5811%205.44961C15.802%206.48374%2016.3914%209.29209%2014.7734%2011.1304C13.9547%2012.0605%2012.5483%2012.5215%2011.3731%2012.2451Z'%20fill='%23D7D7D7'/%3e%3cpath%20d='M7.06146%2014.4533C7.36479%2013.8666%208.78017%2013.2895%2010.4265%2013.081C12.0578%2012.8746%2013.8883%2012.9839%2015.2382%2013.3686C17.2103%2013.9304%2017.7187%2014.6903%2017.0375%2016.0575C16.2941%2017.5493%2013.9853%2018.8659%2012.1058%2018.8699C10.2126%2018.874%207.85172%2017.5174%207.15739%2016.0265C6.84163%2015.3485%206.81597%2014.9279%207.06146%2014.4533Z'%20fill='%23D7D7D7'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:center center;background-size:cover}._default_1tj1b_14 img{display:none}._xxs_1tj1b_26{width:var(--hf-size-avatar-xxs)}._xs_1tj1b_30{width:var(--hf-size-avatar-xs)}._s_1tj1b_16{width:var(--hf-size-avatar-s)}._m_1tj1b_38{width:var(--hf-size-avatar-m)}._l_1tj1b_42{width:var(--hf-size-avatar-l)}._l_1tj1b_42._square_1tj1b_45{border-radius:var(--hf-radius-s)}._xl_1tj1b_50{width:var(--hf-size-avatar-xl)}._xl_1tj1b_50._square_1tj1b_45{border-radius:var(--hf-radius-l)}._xxl_1tj1b_58{width:var(--hf-size-avatar-xxl)}._xxl_1tj1b_58._square_1tj1b_45{border-radius:var(--hf-radius-l)}._3xl_1tj1b_66{width:var(--hf-size-avatar-3xl)}._3xl_1tj1b_66._square_1tj1b_45{border-radius:var(--hf-radius-l)}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { defineComponent as f, computed as c, createElementBlock as p, openBlock as a, normalizeClass as u, unref as r, normalizeStyle as Q, createElementVNode as E, useSlots as P, createCommentVNode as m, renderSlot as h, createBlock as k, createVNode as x, mergeProps as M, withCtx as v, Fragment as X, toValue as Y, getCurrentInstance as Z, ref as O, Comment as ee, cloneVNode as te, h as q, mergeModels as H, useAttrs as se, useModel as ne, createTextVNode as S, toDisplayString as j, resolveDynamicComponent as A, watch as oe } from "vue";
3
- const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
4
- const o = s.children;
2
+ import { defineComponent as f, computed as c, createElementBlock as p, openBlock as a, normalizeClass as u, unref as r, normalizeStyle as Q, createElementVNode as E, useSlots as P, createCommentVNode as m, renderSlot as h, createBlock as k, createVNode as L, mergeProps as M, withCtx as g, Fragment as X, toValue as Y, getCurrentInstance as Z, ref as O, Comment as ee, cloneVNode as te, h as q, mergeModels as A, useAttrs as ne, useModel as se, createTextVNode as x, toDisplayString as B, resolveDynamicComponent as R, watch as oe } from "vue";
3
+ const C = (s, e) => (e ? s[e] : s.default)?.().some((n) => {
4
+ const o = n.children;
5
5
  return o && o.toString().trim() !== "";
6
6
  }) ?? !1, le = "_loader_tpkd0_11", re = "_circle_tpkd0_17", ae = "_white_tpkd0_24", ce = "_black_tpkd0_28", ie = "_s_tpkd0_32", ue = "_m_tpkd0_37", _e = "_l_tpkd0_11", de = "_spinner_tpkd0_47", I = {
7
7
  loader: le,
@@ -14,19 +14,21 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
14
14
  l: _e,
15
15
  spinner: de
16
16
  }, pe = /* @__PURE__ */ f({
17
+ name: "UiLoader",
17
18
  __name: "loader",
18
19
  props: {
19
20
  className: {},
20
21
  size: { default: "l" },
21
22
  color: { default: "black" }
22
23
  },
23
- setup(n) {
24
- const e = n, t = c(() => [I.loader, I[e.size], I[e.color], I.circle]);
25
- return (s, o) => (a(), p("span", {
24
+ setup(s) {
25
+ const e = s, t = c(() => [I.loader, I[e.size], I[e.color], I.circle]);
26
+ return (n, o) => (a(), p("span", {
26
27
  class: u([r(I).spinner, t.value])
27
28
  }, null, 2));
28
29
  }
29
30
  }), me = ["aria-label", "width", "height"], fe = ["xlink:href"], be = /* @__PURE__ */ f({
31
+ name: "UiIcon",
30
32
  __name: "icon",
31
33
  props: {
32
34
  name: {},
@@ -35,11 +37,11 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
35
37
  width: {},
36
38
  height: {}
37
39
  },
38
- setup(n) {
39
- const e = n, t = c(() => {
40
+ setup(s) {
41
+ const e = s, t = c(() => {
40
42
  const l = e?.name?.match(/(\d+)$/);
41
43
  return l ? Number.parseInt(l[1], 10) : 16;
42
- }), s = c(() => e.width ? e.width : t.value), o = c(() => e.height ? e.height : t.value), i = c(() => {
44
+ }), n = c(() => e.width ? e.width : t.value), o = c(() => e.height ? e.height : t.value), i = c(() => {
43
45
  const l = {};
44
46
  return e.color && (l.color = e.color), e.block && (l.display = "block"), l;
45
47
  });
@@ -48,7 +50,7 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
48
50
  "aria-label": l.name,
49
51
  style: Q(i.value),
50
52
  role: "img",
51
- width: s.value,
53
+ width: n.value,
52
54
  height: o.value
53
55
  }, [
54
56
  E("use", {
@@ -58,14 +60,14 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
58
60
  }
59
61
  }), he = "_icon_1p8iz_2", ye = {
60
62
  icon: he
61
- }, ge = (n, e) => {
62
- const t = n.__vccOpts || n;
63
- for (const [s, o] of e)
64
- t[s] = o;
63
+ }, ve = (s, e) => {
64
+ const t = s.__vccOpts || s;
65
+ for (const [n, o] of e)
66
+ t[n] = o;
65
67
  return t;
66
- }, ve = {
68
+ }, ge = {
67
69
  $style: ye
68
- }, T = /* @__PURE__ */ ge(be, [["__cssModules", ve]]), Zt = async () => {
70
+ }, T = /* @__PURE__ */ ve(be, [["__cssModules", ge]]), Zt = async () => {
69
71
  if (!(typeof document > "u") && !document.getElementById("__svg-sprite__"))
70
72
  try {
71
73
  const e = `
@@ -74,29 +76,30 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
74
76
  </svg>
75
77
  `;
76
78
  document.body.insertAdjacentHTML("afterbegin", e);
77
- } catch (n) {
78
- console.error("Failed to load SVG sprite:", n);
79
+ } catch (s) {
80
+ console.error("Failed to load SVG sprite:", s);
79
81
  }
80
- }, ke = "_button_mb1r2_1", $e = "_disabled_mb1r2_1", we = "_loading_mb1r2_1", Ce = "_loader_mb1r2_1", Te = "_content_mb1r2_1", Ie = "_s_mb1r2_2", Se = "_xs_mb1r2_1", je = "_square_mb1r2_1", xe = "_circle_mb1r2_1", Be = "_m_mb1r2_1", Le = "_l_mb1r2_1", Ne = "_primary_mb1r2_1", ze = "_secondary_mb1r2_1", Ue = "_accent_mb1r2_1", Ee = "_danger_mb1r2_1", Me = "_jobsites_mb1r2_1", qe = "_ghost_mb1r2_1", g = {
82
+ }, ke = "_button_mb1r2_1", $e = "_disabled_mb1r2_1", we = "_loading_mb1r2_1", Ce = "_loader_mb1r2_1", Te = "_content_mb1r2_1", Ie = "_s_mb1r2_2", xe = "_xs_mb1r2_1", Be = "_square_mb1r2_1", Le = "_circle_mb1r2_1", Se = "_m_mb1r2_1", je = "_l_mb1r2_1", Ue = "_primary_mb1r2_1", Ne = "_secondary_mb1r2_1", ze = "_accent_mb1r2_1", Ee = "_danger_mb1r2_1", Me = "_jobsites_mb1r2_1", qe = "_ghost_mb1r2_1", v = {
81
83
  button: ke,
82
84
  disabled: $e,
83
85
  loading: we,
84
86
  loader: Ce,
85
87
  content: Te,
86
88
  s: Ie,
87
- xs: Se,
88
- square: je,
89
- circle: xe,
90
- m: Be,
91
- l: Le,
92
- primary: Ne,
93
- secondary: ze,
94
- accent: Ue,
89
+ xs: xe,
90
+ square: Be,
91
+ circle: Le,
92
+ m: Se,
93
+ l: je,
94
+ primary: Ue,
95
+ secondary: Ne,
96
+ accent: ze,
95
97
  danger: Ee,
96
98
  jobsites: Me,
97
99
  ghost: qe,
98
100
  "ghost-danger": "_ghost-danger_mb1r2_1"
99
101
  }, Oe = ["name", "type", "disabled"], D = /* @__PURE__ */ f({
102
+ name: "UiButton",
100
103
  __name: "button",
101
104
  props: {
102
105
  size: { default: "m" },
@@ -112,8 +115,8 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
112
115
  htmlType: {}
113
116
  },
114
117
  emits: ["click"],
115
- setup(n) {
116
- const e = n, t = P(), s = {
118
+ setup(s) {
119
+ const e = s, t = P(), n = {
117
120
  primary: "white",
118
121
  secondary: "black",
119
122
  accent: "white",
@@ -122,18 +125,18 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
122
125
  ghost: "black",
123
126
  "ghost-danger": "black"
124
127
  }, o = c(() => C(t)), i = c(() => [
125
- g.button,
126
- g[e.size],
127
- g[e.type],
128
- e.circle ? [g.circle] : [g.square],
128
+ v.button,
129
+ v[e.size],
130
+ v[e.type],
131
+ e.circle ? [v.circle] : [v.square],
129
132
  {
130
- [g.disabled]: e.disabled,
131
- [g.loading]: e.loading,
132
- [g.active]: e.active,
133
- [g.bordered]: e.bordered
133
+ [v.disabled]: e.disabled,
134
+ [v.loading]: e.loading,
135
+ [v.active]: e.active,
136
+ [v.bordered]: e.bordered
134
137
  },
135
138
  e.className
136
- ]), l = c(() => s[e.type] || "white");
139
+ ]), l = c(() => n[e.type] || "white");
137
140
  return (_, b) => (a(), p("button", {
138
141
  name: _.name,
139
142
  class: u(i.value),
@@ -143,9 +146,9 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
143
146
  }, [
144
147
  _.loading ? (a(), p("div", {
145
148
  key: 0,
146
- class: u(r(g).loader)
149
+ class: u(r(v).loader)
147
150
  }, [
148
- x(r(pe), {
151
+ L(r(pe), {
149
152
  size: "s",
150
153
  color: l.value
151
154
  }, null, 8, ["color"])
@@ -153,7 +156,7 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
153
156
  _.$slots.before ? h(_.$slots, "before", { key: 1 }) : m("", !0),
154
157
  o.value ? (a(), p("span", {
155
158
  key: 2,
156
- class: u(r(g).content)
159
+ class: u(r(v).content)
157
160
  }, [
158
161
  h(_.$slots, "default")
159
162
  ], 2)) : m("", !0),
@@ -166,13 +169,14 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
166
169
  })) : m("", !0)
167
170
  ], 10, Oe));
168
171
  }
169
- }), Pe = "_s_o7jd7_9", We = "_xs_o7jd7_14", He = "_m_o7jd7_20", Re = "_l_o7jd7_25", Ae = "_button_o7jd7_31", R = {
172
+ }), Pe = "_s_o7jd7_9", We = "_xs_o7jd7_14", Ae = "_m_o7jd7_20", He = "_l_o7jd7_25", Re = "_button_o7jd7_31", H = {
170
173
  s: Pe,
171
174
  xs: We,
172
- m: He,
173
- l: Re,
174
- button: Ae
175
- }, es = /* @__PURE__ */ f({
175
+ m: Ae,
176
+ l: He,
177
+ button: Re
178
+ }, en = /* @__PURE__ */ f({
179
+ name: "UiButtonIcon",
176
180
  __name: "button-icon",
177
181
  props: {
178
182
  icon: {},
@@ -187,8 +191,8 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
187
191
  bordered: { type: Boolean, default: !1 }
188
192
  },
189
193
  emits: ["click"],
190
- setup(n) {
191
- const e = n, t = c(() => [R.button, R[e.size], e.className]), s = c(() => {
194
+ setup(s) {
195
+ const e = s, t = c(() => [H.button, H[e.size], e.className]), n = c(() => {
192
196
  const i = e.size === "xs" ? "18" : "20";
193
197
  return e.icon.replace(/-?\d*$/, `-${i}`);
194
198
  }), o = c(() => e.size === "xs");
@@ -197,59 +201,60 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
197
201
  circle: o.value,
198
202
  onClick: l[0] || (l[0] = (_) => i.$emit("click"))
199
203
  }), {
200
- before: v(() => [
201
- x(r(T), { name: s.value }, null, 8, ["name"])
204
+ before: g(() => [
205
+ L(r(T), { name: n.value }, null, 8, ["name"])
202
206
  ]),
203
207
  _: 1
204
208
  }, 16, ["class", "circle"]));
205
209
  }
206
210
  }), De = "_button_1xnk4_1", Ve = {
207
211
  button: De
208
- }, ts = /* @__PURE__ */ f({
212
+ }, tn = /* @__PURE__ */ f({
213
+ name: "UiButtonLink",
209
214
  __name: "button-link",
210
215
  emits: ["click"],
211
- setup(n) {
216
+ setup(s) {
212
217
  return (e, t) => (a(), p("button", {
213
218
  class: u(r(Ve).button),
214
219
  type: "button",
215
- onClick: t[0] || (t[0] = (s) => e.$emit("click"))
220
+ onClick: t[0] || (t[0] = (n) => e.$emit("click"))
216
221
  }, [
217
- x(r(T), { name: "plus-18" }),
222
+ L(r(T), { name: "plus-18" }),
218
223
  h(e.$slots, "default")
219
224
  ], 2));
220
225
  }
221
226
  });
222
- function V(n) {
223
- return n ? n.flatMap((e) => e.type === X ? V(e.children) : [e]) : [];
227
+ function V(s) {
228
+ return s ? s.flatMap((e) => e.type === X ? V(e.children) : [e]) : [];
224
229
  }
225
- function Fe(n) {
230
+ function Fe(s) {
226
231
  var e;
227
- const t = Y(n);
232
+ const t = Y(s);
228
233
  return (e = t?.$el) != null ? e : t;
229
234
  }
230
235
  function Ge() {
231
- const n = Z(), e = O(), t = c(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : Fe(e)), s = Object.assign({}, n.exposed), o = {};
232
- for (const l in n.props) Object.defineProperty(o, l, {
236
+ const s = Z(), e = O(), t = c(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : Fe(e)), n = Object.assign({}, s.exposed), o = {};
237
+ for (const l in s.props) Object.defineProperty(o, l, {
233
238
  enumerable: !0,
234
239
  configurable: !0,
235
- get: () => n.props[l]
240
+ get: () => s.props[l]
236
241
  });
237
- if (Object.keys(s).length > 0) for (const l in s) Object.defineProperty(o, l, {
242
+ if (Object.keys(n).length > 0) for (const l in n) Object.defineProperty(o, l, {
238
243
  enumerable: !0,
239
244
  configurable: !0,
240
- get: () => s[l]
245
+ get: () => n[l]
241
246
  });
242
247
  Object.defineProperty(o, "$el", {
243
248
  enumerable: !0,
244
249
  configurable: !0,
245
- get: () => n.vnode.el
246
- }), n.exposed = o;
250
+ get: () => s.vnode.el
251
+ }), s.exposed = o;
247
252
  function i(l) {
248
253
  e.value = l, l && (Object.defineProperty(o, "$el", {
249
254
  enumerable: !0,
250
255
  configurable: !0,
251
256
  get: () => l instanceof Element ? l : l.$el
252
- }), n.exposed = o);
257
+ }), s.exposed = o);
253
258
  }
254
259
  return {
255
260
  forwardRef: i,
@@ -260,18 +265,18 @@ function Ge() {
260
265
  const Ke = f({
261
266
  name: "PrimitiveSlot",
262
267
  inheritAttrs: !1,
263
- setup(n, { attrs: e, slots: t }) {
268
+ setup(s, { attrs: e, slots: t }) {
264
269
  return () => {
265
270
  if (!t.default) return null;
266
- const s = V(t.default()), o = s.findIndex((b) => b.type !== ee);
267
- if (o === -1) return s;
268
- const i = s[o];
271
+ const n = V(t.default()), o = n.findIndex((b) => b.type !== ee);
272
+ if (o === -1) return n;
273
+ const i = n[o];
269
274
  delete i.props?.ref;
270
275
  const l = i.props ? M(e, i.props) : e, _ = te({
271
276
  ...i,
272
277
  props: {}
273
278
  }, l);
274
- return s.length === 1 ? _ : (s[o] = _, s);
279
+ return n.length === 1 ? _ : (n[o] = _, n);
275
280
  };
276
281
  }
277
282
  }), Je = [
@@ -291,9 +296,9 @@ const Ke = f({
291
296
  default: "div"
292
297
  }
293
298
  },
294
- setup(n, { attrs: e, slots: t }) {
295
- const s = n.asChild ? "template" : n.as;
296
- return typeof s == "string" && Je.includes(s) ? () => q(s, e) : s !== "template" ? () => q(n.as, e, { default: t.default }) : () => q(Ke, e, { default: t.default });
299
+ setup(s, { attrs: e, slots: t }) {
300
+ const n = s.asChild ? "template" : s.as;
301
+ return typeof n == "string" && Je.includes(n) ? () => q(n, e) : n !== "template" ? () => q(s.as, e, { default: t.default }) : () => q(Ke, e, { default: t.default });
297
302
  }
298
303
  });
299
304
  var Xe = /* @__PURE__ */ f({
@@ -313,12 +318,12 @@ var Xe = /* @__PURE__ */ f({
313
318
  default: "label"
314
319
  }
315
320
  },
316
- setup(n) {
317
- const e = n;
318
- return Ge(), (t, s) => (a(), k(r(Qe), M(e, { onMousedown: s[0] || (s[0] = (o) => {
321
+ setup(s) {
322
+ const e = s;
323
+ return Ge(), (t, n) => (a(), k(r(Qe), M(e, { onMousedown: n[0] || (n[0] = (o) => {
319
324
  !o.defaultPrevented && o.detail > 1 && o.preventDefault();
320
325
  }) }), {
321
- default: v(() => [h(t.$slots, "default")]),
326
+ default: g(() => [h(t.$slots, "default")]),
322
327
  _: 3
323
328
  }, 16));
324
329
  }
@@ -326,27 +331,28 @@ var Xe = /* @__PURE__ */ f({
326
331
  const Ze = "_label_1ic51_1", et = {
327
332
  label: Ze
328
333
  }, tt = /* @__PURE__ */ f({
334
+ name: "UiLabel",
329
335
  __name: "label",
330
336
  props: {
331
337
  className: {}
332
338
  },
333
- setup(n) {
334
- const e = n, t = c(() => [
339
+ setup(s) {
340
+ const e = s, t = c(() => [
335
341
  et.label,
336
342
  e.className
337
343
  ]);
338
- return (s, o) => (a(), k(r(Ye), {
344
+ return (n, o) => (a(), k(r(Ye), {
339
345
  class: u(t.value)
340
346
  }, {
341
- default: v(() => [
342
- h(s.$slots, "default")
347
+ default: g(() => [
348
+ h(n.$slots, "default")
343
349
  ]),
344
350
  _: 3
345
351
  }, 8, ["class"]));
346
352
  }
347
- }), st = "_content_1g21n_1", nt = "_label_1g21n_12", ot = "_header_1g21n_21", lt = "_headerWrapper_1g21n_29", rt = "_title_1g21n_36", at = "_subTitleRow_1g21n_44", ct = "_subTitle_1g21n_44", it = "_link_1g21n_56", ut = "_linkUpper_1g21n_73", w = {
348
- content: st,
349
- label: nt,
353
+ }), nt = "_content_1g21n_1", st = "_label_1g21n_12", ot = "_header_1g21n_21", lt = "_headerWrapper_1g21n_29", rt = "_title_1g21n_36", at = "_subTitleRow_1g21n_44", ct = "_subTitle_1g21n_44", it = "_link_1g21n_56", ut = "_linkUpper_1g21n_73", w = {
354
+ content: nt,
355
+ label: st,
350
356
  header: ot,
351
357
  headerWrapper: lt,
352
358
  title: rt,
@@ -355,13 +361,14 @@ const Ze = "_label_1ic51_1", et = {
355
361
  link: it,
356
362
  linkUpper: ut
357
363
  }, _t = /* @__PURE__ */ f({
364
+ name: "UiLabelContent",
358
365
  __name: "label-content",
359
366
  emits: ["click"],
360
- setup(n) {
361
- const e = P(), t = c(() => C(e, "header")), s = c(() => C(e)), o = c(() => C(e, "subTitle")), i = c(() => C(e, "link")), l = c(() => t.value || s.value || o.value), _ = c(() => !s.value && !o.value), b = c(
367
+ setup(s) {
368
+ const e = P(), t = c(() => C(e, "header")), n = c(() => C(e)), o = c(() => C(e, "subTitle")), i = c(() => C(e, "link")), l = c(() => t.value || n.value || o.value), _ = c(() => !n.value && !o.value), b = c(
362
369
  () => [w.link, _.value && w.linkUpper].filter(Boolean)
363
370
  );
364
- return ($, B) => (a(), p("div", {
371
+ return ($, S) => (a(), p("div", {
365
372
  class: u(r(w).content)
366
373
  }, [
367
374
  l.value ? (a(), p("span", {
@@ -374,7 +381,7 @@ const Ze = "_label_1ic51_1", et = {
374
381
  }, [
375
382
  h($.$slots, "header")
376
383
  ], 2)) : m("", !0),
377
- s.value ? (a(), p("span", {
384
+ n.value ? (a(), p("span", {
378
385
  key: 1,
379
386
  class: u(r(w).title)
380
387
  }, [
@@ -394,13 +401,13 @@ const Ze = "_label_1ic51_1", et = {
394
401
  i.value ? (a(), p("span", {
395
402
  key: 1,
396
403
  class: u(b.value),
397
- onClick: B[0] || (B[0] = (W) => $.$emit("click"))
404
+ onClick: S[0] || (S[0] = (W) => $.$emit("click"))
398
405
  }, [
399
406
  h($.$slots, "link")
400
407
  ], 2)) : m("", !0)
401
408
  ], 2));
402
409
  }
403
- }), dt = "_wrapper_1i81c_1", pt = "_input_1i81c_8", mt = "_error_1i81c_38", ft = "_description_1i81c_51", bt = "_descriptionText_1i81c_62", ht = "_errorText_1i81c_66", yt = "_inputWrapper_1i81c_70", gt = "_leftSpace_1i81c_74", vt = "_rightSpace_1i81c_78", kt = "_leftIcon_1i81c_82", $t = "_rightIcon_1i81c_83", y = {
410
+ }), dt = "_wrapper_1i81c_1", pt = "_input_1i81c_8", mt = "_error_1i81c_38", ft = "_description_1i81c_51", bt = "_descriptionText_1i81c_62", ht = "_errorText_1i81c_66", yt = "_inputWrapper_1i81c_70", vt = "_leftSpace_1i81c_74", gt = "_rightSpace_1i81c_78", kt = "_leftIcon_1i81c_82", $t = "_rightIcon_1i81c_83", y = {
404
411
  wrapper: dt,
405
412
  input: pt,
406
413
  error: mt,
@@ -408,13 +415,14 @@ const Ze = "_label_1ic51_1", et = {
408
415
  descriptionText: bt,
409
416
  errorText: ht,
410
417
  inputWrapper: yt,
411
- leftSpace: gt,
412
- rightSpace: vt,
418
+ leftSpace: vt,
419
+ rightSpace: gt,
413
420
  leftIcon: kt,
414
421
  rightIcon: $t
415
- }, wt = ["id", "value", "name", "type", "disabled", "placeholder", "aria-invalid"], Ct = ["innerHTML"], Tt = ["innerHTML"], ss = /* @__PURE__ */ f({
422
+ }, wt = ["id", "value", "name", "type", "disabled", "placeholder", "aria-invalid"], Ct = ["innerHTML"], Tt = ["innerHTML"], nn = /* @__PURE__ */ f({
423
+ name: "UiInput",
416
424
  __name: "input",
417
- props: /* @__PURE__ */ H({
425
+ props: /* @__PURE__ */ A({
418
426
  value: {},
419
427
  type: { default: "text" },
420
428
  id: {},
@@ -435,9 +443,9 @@ const Ze = "_label_1ic51_1", et = {
435
443
  value: {},
436
444
  valueModifiers: {}
437
445
  }),
438
- emits: /* @__PURE__ */ H(["update:value", "enter", "clickLink", "clickIcon", "click", "focus", "blur"], ["update:value"]),
439
- setup(n, { emit: e }) {
440
- const t = n, s = e, o = se(), i = ne(n, "value"), l = c(() => [
446
+ emits: /* @__PURE__ */ A(["update:value", "enter", "clickLink", "clickIcon", "click", "focus", "blur"], ["update:value"]),
447
+ setup(s, { emit: e }) {
448
+ const t = s, n = e, o = ne(), i = se(s, "value"), l = c(() => [
441
449
  y.input,
442
450
  {
443
451
  [y.disabled]: t.disabled,
@@ -448,19 +456,19 @@ const Ze = "_label_1ic51_1", et = {
448
456
  },
449
457
  t.className
450
458
  ]), _ = c(() => t.header || t.title || t.subTitle || t.link), b = c(() => t.description || t.error), $ = (d) => {
451
- d.key === "Enter" && s("enter");
452
- }, B = (d) => {
453
- s("update:value", d.target.value);
459
+ d.key === "Enter" && n("enter");
460
+ }, S = (d) => {
461
+ n("update:value", d.target.value);
454
462
  }, W = () => {
455
- s("focus");
463
+ n("focus");
456
464
  }, F = () => {
457
- s("blur");
465
+ n("blur");
458
466
  }, G = () => {
459
- s("clickLink");
467
+ n("clickLink");
460
468
  }, K = () => {
461
- s("click");
469
+ n("click");
462
470
  }, J = (d) => {
463
- d.preventDefault(), s("clickIcon");
471
+ d.preventDefault(), n("clickIcon");
464
472
  };
465
473
  return (d, Xt) => (a(), p("div", {
466
474
  class: u(r(y).wrapper)
@@ -470,19 +478,19 @@ const Ze = "_label_1ic51_1", et = {
470
478
  for: d.id,
471
479
  onClick: G
472
480
  }, {
473
- default: v(() => [
474
- x(r(_t), null, {
475
- header: v(() => [
476
- S(j(t.header), 1)
481
+ default: g(() => [
482
+ L(r(_t), null, {
483
+ header: g(() => [
484
+ x(B(t.header), 1)
477
485
  ]),
478
- subTitle: v(() => [
479
- S(j(t.subTitle), 1)
486
+ subTitle: g(() => [
487
+ x(B(t.subTitle), 1)
480
488
  ]),
481
- link: v(() => [
482
- S(j(t.link), 1)
489
+ link: g(() => [
490
+ x(B(t.link), 1)
483
491
  ]),
484
- default: v(() => [
485
- S(" " + j(t.title) + " ", 1)
492
+ default: g(() => [
493
+ x(" " + B(t.title) + " ", 1)
486
494
  ]),
487
495
  _: 1
488
496
  })
@@ -507,7 +515,7 @@ const Ze = "_label_1ic51_1", et = {
507
515
  class: l.value,
508
516
  "aria-invalid": !!d.error
509
517
  }, r(o), {
510
- onInput: B,
518
+ onInput: S,
511
519
  onKeydown: $,
512
520
  onFocus: W,
513
521
  onBlur: F,
@@ -537,14 +545,15 @@ const Ze = "_label_1ic51_1", et = {
537
545
  ], 2)) : m("", !0)
538
546
  ], 2));
539
547
  }
540
- }), It = "_plank_1yp3k_1", St = "_accent_1yp3k_26", jt = "_danger_1yp3k_32", xt = "_text_1yp3k_38", Bt = "_icon_1yp3k_42", L = {
548
+ }), It = "_plank_1yp3k_1", xt = "_accent_1yp3k_26", Bt = "_danger_1yp3k_32", Lt = "_text_1yp3k_38", St = "_icon_1yp3k_42", j = {
541
549
  plank: It,
542
550
  default: "_default_1yp3k_20",
543
- accent: St,
544
- danger: jt,
545
- text: xt,
546
- icon: Bt
547
- }, ns = /* @__PURE__ */ f({
551
+ accent: xt,
552
+ danger: Bt,
553
+ text: Lt,
554
+ icon: St
555
+ }, sn = /* @__PURE__ */ f({
556
+ name: "UiPlank",
548
557
  __name: "plank",
549
558
  props: {
550
559
  type: { default: "default" },
@@ -552,20 +561,20 @@ const Ze = "_label_1ic51_1", et = {
552
561
  label: {}
553
562
  },
554
563
  emits: ["click"],
555
- setup(n) {
556
- const e = n, t = P(), s = c(() => C(t)), o = c(() => [L.plank, L[e.type]]);
564
+ setup(s) {
565
+ const e = s, t = P(), n = c(() => C(t)), o = c(() => [j.plank, j[e.type]]);
557
566
  return (i, l) => (a(), p("div", {
558
567
  class: u(o.value)
559
568
  }, [
560
569
  i.icon ? (a(), p("div", {
561
570
  key: 0,
562
- class: u(r(L).icon)
571
+ class: u(r(j).icon)
563
572
  }, [
564
- x(r(T), { name: i.icon }, null, 8, ["name"])
573
+ L(r(T), { name: i.icon }, null, 8, ["name"])
565
574
  ], 2)) : m("", !0),
566
- s.value ? (a(), p("div", {
575
+ n.value ? (a(), p("div", {
567
576
  key: 1,
568
- class: u(r(L).text)
577
+ class: u(r(j).text)
569
578
  }, [
570
579
  h(i.$slots, "default")
571
580
  ], 2)) : m("", !0),
@@ -575,18 +584,18 @@ const Ze = "_label_1ic51_1", et = {
575
584
  type: "secondary",
576
585
  onClick: l[0] || (l[0] = (_) => i.$emit("click"))
577
586
  }, {
578
- default: v(() => [
579
- S(j(i.label), 1)
587
+ default: g(() => [
588
+ x(B(i.label), 1)
580
589
  ]),
581
590
  _: 1
582
591
  })) : m("", !0)
583
592
  ], 2));
584
593
  }
585
- }), Lt = "_text_dbd8t_1", Nt = "_primary_dbd8t_10", zt = "_medium_dbd8t_15", Ut = "_secondary_dbd8t_20", Et = "_accent_dbd8t_30", Mt = "_subtitle_dbd8t_40", N = {
586
- text: Lt,
587
- primary: Nt,
588
- medium: zt,
589
- secondary: Ut,
594
+ }), jt = "_text_dbd8t_1", Ut = "_primary_dbd8t_10", Nt = "_medium_dbd8t_15", zt = "_secondary_dbd8t_20", Et = "_accent_dbd8t_30", Mt = "_subtitle_dbd8t_40", U = {
595
+ text: jt,
596
+ primary: Ut,
597
+ medium: Nt,
598
+ secondary: zt,
590
599
  accent: Et,
591
600
  subtitle: Mt,
592
601
  "color-main": "_color-main_dbd8t_46",
@@ -596,7 +605,8 @@ const Ze = "_label_1ic51_1", et = {
596
605
  "color-invert": "_color-invert_dbd8t_62",
597
606
  "color-danger": "_color-danger_dbd8t_66",
598
607
  "color-success": "_color-success_dbd8t_70"
599
- }, os = /* @__PURE__ */ f({
608
+ }, on = /* @__PURE__ */ f({
609
+ name: "UiText",
600
610
  __name: "text",
601
611
  props: {
602
612
  tagName: { default: "p" },
@@ -604,23 +614,23 @@ const Ze = "_label_1ic51_1", et = {
604
614
  weight: {},
605
615
  color: {}
606
616
  },
607
- setup(n) {
608
- const e = n, t = c(() => [
609
- N.text,
610
- N[e.kind],
611
- e.weight && N[e.weight],
612
- e.color && N[`color-${e.color}`]
617
+ setup(s) {
618
+ const e = s, t = c(() => [
619
+ U.text,
620
+ U[e.kind],
621
+ e.weight && U[e.weight],
622
+ e.color && U[`color-${e.color}`]
613
623
  ]);
614
- return (s, o) => (a(), k(A(s.tagName), {
624
+ return (n, o) => (a(), k(R(n.tagName), {
615
625
  class: u(t.value)
616
626
  }, {
617
- default: v(() => [
618
- h(s.$slots, "default")
627
+ default: g(() => [
628
+ h(n.$slots, "default")
619
629
  ]),
620
630
  _: 3
621
631
  }, 8, ["class"]));
622
632
  }
623
- }), qt = "_title_1m0wo_1", Ot = "_medium_1m0wo_15", z = {
633
+ }), qt = "_title_1m0wo_1", Ot = "_medium_1m0wo_15", N = {
624
634
  title: qt,
625
635
  "level-1": "_level-1_1m0wo_10",
626
636
  medium: Ot,
@@ -634,7 +644,8 @@ const Ze = "_label_1ic51_1", et = {
634
644
  "color-invert": "_color-invert_1m0wo_66",
635
645
  "color-danger": "_color-danger_1m0wo_70",
636
646
  "color-success": "_color-success_1m0wo_74"
637
- }, ls = /* @__PURE__ */ f({
647
+ }, ln = /* @__PURE__ */ f({
648
+ name: "UiTitle",
638
649
  __name: "title",
639
650
  props: {
640
651
  level: {},
@@ -642,18 +653,18 @@ const Ze = "_label_1ic51_1", et = {
642
653
  weight: {},
643
654
  color: {}
644
655
  },
645
- setup(n) {
646
- const e = n, t = c(() => [
647
- z.title,
648
- z[`level-${e.level ?? 1}`],
656
+ setup(s) {
657
+ const e = s, t = c(() => [
658
+ N.title,
659
+ N[`level-${e.level ?? 1}`],
649
660
  e.className,
650
- e.weight && z[e.weight],
651
- e.color && z[`color-${e.color}`]
652
- ]), s = c(() => `h${e.level ?? 1}`);
653
- return (o, i) => (a(), k(A(s.value), {
661
+ e.weight && N[e.weight],
662
+ e.color && N[`color-${e.color}`]
663
+ ]), n = c(() => `h${e.level ?? 1}`);
664
+ return (o, i) => (a(), k(R(n.value), {
654
665
  class: u(t.value)
655
666
  }, {
656
- default: v(() => [
667
+ default: g(() => [
657
668
  h(o.$slots, "default")
658
669
  ]),
659
670
  _: 3
@@ -661,27 +672,28 @@ const Ze = "_label_1ic51_1", et = {
661
672
  }
662
673
  }), Pt = "_error_lk2jx_1", Wt = {
663
674
  error: Pt
664
- }, rs = /* @__PURE__ */ f({
675
+ }, rn = /* @__PURE__ */ f({
676
+ name: "UiError",
665
677
  __name: "error",
666
678
  props: {
667
679
  className: {}
668
680
  },
669
- setup(n) {
670
- const e = n, t = c(() => [
681
+ setup(s) {
682
+ const e = s, t = c(() => [
671
683
  Wt.error,
672
684
  e.className
673
685
  ]);
674
- return (s, o) => (a(), p("span", {
686
+ return (n, o) => (a(), p("span", {
675
687
  class: u(t.value)
676
688
  }, [
677
- h(s.$slots, "default")
689
+ h(n.$slots, "default")
678
690
  ], 2));
679
691
  }
680
- }), Ht = "_root_1tj1b_1", Rt = "_xxs_1tj1b_26", At = "_xs_1tj1b_30", Dt = "_s_1tj1b_16", Vt = "_m_1tj1b_38", Ft = "_l_1tj1b_42", Gt = "_square_1tj1b_45", Kt = "_xl_1tj1b_50", Jt = "_xxl_1tj1b_58", U = {
681
- root: Ht,
692
+ }), At = "_root_1tj1b_1", Ht = "_xxs_1tj1b_26", Rt = "_xs_1tj1b_30", Dt = "_s_1tj1b_16", Vt = "_m_1tj1b_38", Ft = "_l_1tj1b_42", Gt = "_square_1tj1b_45", Kt = "_xl_1tj1b_50", Jt = "_xxl_1tj1b_58", z = {
693
+ root: At,
682
694
  default: "_default_1tj1b_14",
683
- xxs: Rt,
684
- xs: At,
695
+ xxs: Ht,
696
+ xs: Rt,
685
697
  s: Dt,
686
698
  m: Vt,
687
699
  l: Ft,
@@ -689,27 +701,28 @@ const Ze = "_label_1ic51_1", et = {
689
701
  xl: Kt,
690
702
  xxl: Jt,
691
703
  "3xl": "_3xl_1tj1b_66"
692
- }, Qt = ["src"], as = /* @__PURE__ */ f({
704
+ }, Qt = ["src"], an = /* @__PURE__ */ f({
705
+ name: "UiAvatar",
693
706
  __name: "avatar",
694
707
  props: {
695
708
  src: { default: void 0 },
696
709
  size: { default: "xxs" },
697
710
  square: { type: Boolean, default: !1 }
698
711
  },
699
- setup(n) {
700
- const e = n, t = O(!e.src), s = O(!1), o = c(() => e.src && !s.value), i = c(() => {
701
- const b = !t.value || s.value || !e.src;
712
+ setup(s) {
713
+ const e = s, t = O(!e.src), n = O(!1), o = c(() => e.src && !n.value), i = c(() => {
714
+ const b = !t.value || n.value || !e.src;
702
715
  return [
703
- U.root,
704
- U[e.size],
705
- e.square && U.square,
706
- b && U.default
716
+ z.root,
717
+ z[e.size],
718
+ e.square && z.square,
719
+ b && z.default
707
720
  ];
708
721
  });
709
722
  oe(
710
723
  () => e.src,
711
724
  (b) => {
712
- t.value = !b, s.value = !1;
725
+ t.value = !b, n.value = !1;
713
726
  },
714
727
  { immediate: !0 }
715
728
  );
@@ -717,7 +730,7 @@ const Ze = "_label_1ic51_1", et = {
717
730
  t.value = !0;
718
731
  }
719
732
  function _() {
720
- s.value = !0;
733
+ n.value = !0;
721
734
  }
722
735
  return (b, $) => (a(), p("div", {
723
736
  class: u(i.value)
@@ -733,17 +746,17 @@ const Ze = "_label_1ic51_1", et = {
733
746
  }
734
747
  });
735
748
  export {
736
- as as UiAvatar,
749
+ an as UiAvatar,
737
750
  D as UiButton,
738
- es as UiButtonIcon,
739
- ts as UiButtonLink,
740
- rs as UiError,
751
+ en as UiButtonIcon,
752
+ tn as UiButtonLink,
753
+ rn as UiError,
741
754
  T as UiIcon,
742
- ss as UiInput,
755
+ nn as UiInput,
743
756
  tt as UiLabel,
744
757
  pe as UiLoader,
745
- ns as UiPlank,
746
- os as UiText,
747
- ls as UiTitle,
758
+ sn as UiPlank,
759
+ on as UiText,
760
+ ln as UiTitle,
748
761
  Zt as injectSvgSprite
749
762
  };
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.2.5",
5
+ "version": "0.2.6",
6
6
  "author": {
7
7
  "name": "HuntFlow Developer",
8
8
  "nickname": "developer",