@huntflow/ui 0.0.49 → 0.0.52

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.es.js CHANGED
@@ -1,49 +1,48 @@
1
- (function(){"use strict";var r;try{if(typeof document<"u"){var o=document.createElement("style");o.nonce=(r=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:r.content,o.appendChild(document.createTextNode('._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);font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:4px}._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>*:not(._loader_1syl2_1){visibility:hidden}._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}._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)}@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%}._wrapper_f5n0f_1{display:flex;flex-direction:column}._label_f5n0f_6{margin-bottom:4px;font-size:15px;font-weight:500;line-height:20px}._container_f5n0f_13{position:relative;display:flex;align-items:center}._input_f5n0f_19{flex:1;padding:8px 12px;font-size:15px;line-height:24px;border:1px solid #00000029;border-radius:12px;outline:none;transition:border-color .3s}._input_f5n0f_19._error_f5n0f_29{border:1px solid #FF0000}._input_f5n0f_19._error_f5n0f_29:focus{outline:3px solid #FFD6D6}._input_f5n0f_19:focus{outline:3px solid #C4EDFA}._xs_f5n0f_41{padding:4px 8px;font-size:12px}._s_f5n0f_46{padding:6px 10px;font-size:13px}._m_f5n0f_51{padding:8px 12px;font-size:14px}._l_f5n0f_6{padding:10px 14px;font-size:16px}._xl_f5n0f_61{padding:12px 16px;font-size:18px}._disabled_f5n0f_66{background-color:#e9ecef;cursor:not-allowed}._errorText_f5n0f_71{margin-top:4px;font-size:14px;line-height:20px;color:red}._prefix_f5n0f_78,._suffix_f5n0f_79{position:absolute;display:flex;align-items:center;color:#6c757d}._prefix_f5n0f_78{left:8px}._suffix_f5n0f_79{right:8px}._loading_f5n0f_94{cursor:wait}._spinner_f5n0f_98{position:absolute;right:8px;width:16px;height:16px;border:2px solid rgba(0,0,0,.2);border-top-color:#007bff;border-radius:50%;animation:_spin_f5n0f_98 .6s linear infinite}@keyframes _spin_f5n0f_98{to{transform:rotate(360deg)}}._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}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { defineComponent as $, computed as f, openBlock as i, createElementBlock as d, normalizeClass as r, unref as c, createVNode as j, createCommentVNode as u, renderSlot as y, createElementVNode as h, mergeModels as v, useModel as C, toDisplayString as k, withDirectives as z, vModelDynamic as N, vModelCheckbox as T, normalizeStyle as x } from "vue";
3
- const M = "_button_1syl2_1", I = "_disabled_1syl2_1", L = "_loading_1syl2_1", V = "_loader_1syl2_1", q = "_content_1syl2_1", D = "_s_1syl2_2", O = "_xs_1syl2_1", S = "_square_1syl2_1", A = "_circle_1syl2_1", R = "_m_1syl2_1", U = "_l_1syl2_1", K = "_primary_1syl2_1", P = "_secondary_1syl2_1", F = "_accent_1syl2_1", G = "_danger_1syl2_1", H = "_jobsites_1syl2_1", J = "_ghost_1syl2_1", p = {
4
- button: M,
5
- disabled: I,
6
- loading: L,
7
- loader: V,
8
- content: q,
9
- s: D,
10
- xs: O,
11
- square: S,
12
- circle: A,
13
- m: R,
14
- l: U,
15
- primary: K,
16
- secondary: P,
17
- accent: F,
18
- danger: G,
19
- jobsites: H,
20
- ghost: J,
1
+ (function(){"use strict";var r;try{if(typeof document<"u"){var o=document.createElement("style");o.nonce=(r=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:r.content,o.appendChild(document.createTextNode('._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);font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:var(--hf-gap-xs)}._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>*:not(._loader_1syl2_1){visibility:hidden}._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}._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)}@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%}._wrapper_6qo53_1{margin-bottom:var(--hf-gap-xs)}._input_6qo53_5{border-radius:var(--hf-radius-input-default);border:var(--hf-border-xs) solid var(--hf-color-field-border-default);background:var(--hf-color-field-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-field-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_6qo53_5:active{border-color:var(--hf-color-field-border-focus)}._input_6qo53_5:focus{border-color:var(--hf-color-field-border-focus);outline:solid 3px var(--hf-color-field-border-focus-visible)}._input_6qo53_5:disabled{outline:none;border-color:var(--hf-color-field-text-disable);background:var(--hf-color-field-background-disable);color:var(--hf-color-field-text-disable)}._error_6qo53_35,._error_6qo53_35:active{border-color:var(--hf-color-field-border-error)}._error_6qo53_35:focus{border-color:var(--hf-color-field-border-error);outline:solid 3px var(--hf-color-field-border-error-focus-visible)}._description_6qo53_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_6qo53_47 a{text-decoration:underline}._descriptionText_6qo53_58{color:var(--hf-color-field-text-description)}._errorText_6qo53_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}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import { defineComponent as g, computed as u, openBlock as i, createElementBlock as c, normalizeClass as n, unref as a, createVNode as U, createCommentVNode as _, renderSlot as h, createElementVNode as f, useSlots as V, mergeModels as S, useModel as q, createBlock as R, withCtx as C, createTextVNode as L, toDisplayString as T, withDirectives as z, vModelDynamic as D, vModelCheckbox as E, normalizeStyle as I } from "vue";
3
+ const O = "_button_1syl2_1", W = "_disabled_1syl2_1", A = "_loading_1syl2_1", F = "_loader_1syl2_1", G = "_content_1syl2_1", K = "_s_1syl2_2", J = "_xs_1syl2_1", P = "_square_1syl2_1", Q = "_circle_1syl2_1", X = "_m_1syl2_1", Y = "_l_1syl2_1", Z = "_primary_1syl2_1", x = "_secondary_1syl2_1", ee = "_accent_1syl2_1", se = "_danger_1syl2_1", te = "_jobsites_1syl2_1", le = "_ghost_1syl2_1", p = {
4
+ button: O,
5
+ disabled: W,
6
+ loading: A,
7
+ loader: F,
8
+ content: G,
9
+ s: K,
10
+ xs: J,
11
+ square: P,
12
+ circle: Q,
13
+ m: X,
14
+ l: Y,
15
+ primary: Z,
16
+ secondary: x,
17
+ accent: ee,
18
+ danger: se,
19
+ jobsites: te,
20
+ ghost: le,
21
21
  "ghost-danger": "_ghost-danger_1syl2_1"
22
- }, Q = "_loader_t6bg6_10", W = "_circle_t6bg6_15", X = "_white_t6bg6_22", Y = "_black_t6bg6_26", Z = "_s_t6bg6_30", ee = "_m_t6bg6_35", se = "_l_t6bg6_10", te = "_spinner_t6bg6_45", g = {
23
- loader: Q,
24
- circle: W,
22
+ }, oe = "_loader_t6bg6_10", ne = "_circle_t6bg6_15", re = "_white_t6bg6_22", ae = "_black_t6bg6_26", ie = "_s_t6bg6_30", ce = "_m_t6bg6_35", de = "_l_t6bg6_10", ue = "_spinner_t6bg6_45", $ = {
23
+ loader: oe,
24
+ circle: ne,
25
25
  "loader-animation": "_loader-animation_t6bg6_1",
26
- white: X,
27
- black: Y,
28
- s: Z,
29
- m: ee,
30
- l: se,
31
- spinner: te
32
- }, oe = /* @__PURE__ */ $({
26
+ white: re,
27
+ black: ae,
28
+ s: ie,
29
+ m: ce,
30
+ l: de,
31
+ spinner: ue
32
+ }, _e = /* @__PURE__ */ g({
33
33
  __name: "loader",
34
34
  props: {
35
35
  className: {},
36
36
  size: { default: "l" },
37
37
  color: { default: "black" }
38
38
  },
39
- setup(n) {
40
- const s = n, t = f(() => [g.loader, g[s.size], g[s.color], g.circle]);
41
- return (l, e) => (i(), d("span", {
42
- class: r([c(g).spinner, t.value])
39
+ setup(o) {
40
+ const s = o, l = u(() => [$.loader, $[s.size], $[s.color], $.circle]);
41
+ return (t, e) => (i(), c("span", {
42
+ class: n([a($).spinner, l.value])
43
43
  }, null, 2));
44
44
  }
45
- }), ne = ["name", "type", "disabled"], Ae = /* @__PURE__ */ $({
46
- name: "BaseButton",
45
+ }), pe = ["name", "type", "disabled"], Pe = /* @__PURE__ */ g({
47
46
  __name: "button",
48
47
  props: {
49
48
  size: { default: "m" },
@@ -58,8 +57,8 @@ const M = "_button_1syl2_1", I = "_disabled_1syl2_1", L = "_loading_1syl2_1", V
58
57
  htmlType: {}
59
58
  },
60
59
  emits: ["click"],
61
- setup(n) {
62
- const s = n, t = {
60
+ setup(o) {
61
+ const s = o, l = {
63
62
  primary: "white",
64
63
  secondary: "black",
65
64
  accent: "white",
@@ -67,7 +66,7 @@ const M = "_button_1syl2_1", I = "_disabled_1syl2_1", L = "_loading_1syl2_1", V
67
66
  jobsites: "white",
68
67
  ghost: "black",
69
68
  "ghost-danger": "black"
70
- }, l = f(() => [
69
+ }, t = u(() => [
71
70
  p.button,
72
71
  p[s.size],
73
72
  p[s.type],
@@ -79,141 +78,200 @@ const M = "_button_1syl2_1", I = "_disabled_1syl2_1", L = "_loading_1syl2_1", V
79
78
  [p.bordered]: s.bordered
80
79
  },
81
80
  s.className
82
- ]), e = f(() => t[s.type] || "white");
83
- return (a, m) => (i(), d("button", {
84
- name: a.name,
85
- class: r(l.value),
86
- type: a.htmlType,
87
- disabled: a.disabled || a.loading,
88
- onClick: m[0] || (m[0] = (B) => a.$emit("click"))
81
+ ]), e = u(() => l[s.type] || "white");
82
+ return (r, b) => (i(), c("button", {
83
+ name: r.name,
84
+ class: n(t.value),
85
+ type: r.htmlType,
86
+ disabled: r.disabled || r.loading,
87
+ onClick: b[0] || (b[0] = (w) => r.$emit("click"))
89
88
  }, [
90
- a.loading ? (i(), d("div", {
89
+ r.loading ? (i(), c("div", {
91
90
  key: 0,
92
- class: r(c(p).loader)
91
+ class: n(a(p).loader)
93
92
  }, [
94
- j(c(oe), {
93
+ U(a(_e), {
95
94
  size: "s",
96
95
  color: e.value
97
96
  }, null, 8, ["color"])
98
- ], 2)) : u("", !0),
99
- a.$slots.before ? y(a.$slots, "before", { key: 1 }) : u("", !0),
100
- h("span", {
101
- class: r(c(p).content)
97
+ ], 2)) : _("", !0),
98
+ r.$slots.before ? h(r.$slots, "before", { key: 1 }) : _("", !0),
99
+ f("span", {
100
+ class: n(a(p).content)
102
101
  }, [
103
- y(a.$slots, "default")
102
+ h(r.$slots, "default")
104
103
  ], 2),
105
- a.$slots.after ? y(a.$slots, "after", { key: 2 }) : u("", !0)
106
- ], 10, ne));
104
+ r.$slots.after ? h(r.$slots, "after", { key: 2 }) : _("", !0)
105
+ ], 10, pe));
107
106
  }
108
- }), le = "_wrapper_f5n0f_1", ae = "_label_f5n0f_6", re = "_container_f5n0f_13", ce = "_input_f5n0f_19", ie = "_error_f5n0f_29", de = "_xs_f5n0f_41", _e = "_s_f5n0f_46", pe = "_m_f5n0f_51", ue = "_l_f5n0f_6", fe = "_xl_f5n0f_61", me = "_disabled_f5n0f_66", be = "_errorText_f5n0f_71", ye = "_prefix_f5n0f_78", he = "_suffix_f5n0f_79", ge = "_loading_f5n0f_94", $e = "_spinner_f5n0f_98", ve = "_spin_f5n0f_98", _ = {
109
- wrapper: le,
110
- label: ae,
111
- container: re,
112
- input: ce,
113
- error: ie,
114
- xs: de,
115
- s: _e,
116
- m: pe,
117
- l: ue,
118
- xl: fe,
119
- disabled: me,
120
- errorText: be,
121
- prefix: ye,
122
- suffix: he,
123
- loading: ge,
124
- spinner: $e,
125
- spin: ve
126
- }, ke = ["for"], Be = ["id", "name", "type", "disabled", "placeholder"], Re = /* @__PURE__ */ $({
107
+ }), be = "_wrapper_6qo53_1", ye = "_input_6qo53_5", me = "_error_6qo53_35", he = "_description_6qo53_47", ke = "_descriptionText_6qo53_58", ve = "_errorText_6qo53_62", y = {
108
+ wrapper: be,
109
+ input: ye,
110
+ error: me,
111
+ description: he,
112
+ descriptionText: ke,
113
+ errorText: ve
114
+ }, M = (o, s) => {
115
+ const l = s ? o[s] : o.default;
116
+ return (l == null ? void 0 : l().some((t) => {
117
+ const e = t.children;
118
+ return e && e.toString().trim() !== "";
119
+ })) ?? !1;
120
+ }, fe = "_label_12r0e_1", ge = "_header_12r0e_10", $e = "_headerWrapper_12r0e_18", Te = "_title_12r0e_25", we = "_subTitleRow_12r0e_33", Be = "_subTitle_12r0e_33", Ce = "_link_12r0e_45", Le = "_linkUpper_12r0e_62", m = {
121
+ label: fe,
122
+ header: ge,
123
+ headerWrapper: $e,
124
+ title: Te,
125
+ subTitleRow: we,
126
+ subTitle: Be,
127
+ link: Ce,
128
+ linkUpper: Le
129
+ }, Me = /* @__PURE__ */ g({
130
+ __name: "label",
131
+ emits: ["click"],
132
+ setup(o) {
133
+ const s = V(), l = u(() => M(s, "header")), t = u(() => M(s)), e = u(() => M(s, "subTitle")), r = u(() => M(s, "link")), b = u(() => l.value || t.value || e.value), w = u(() => !t.value && !e.value), j = u(
134
+ () => [m.link, w.value && m.linkUpper].filter(Boolean)
135
+ );
136
+ return (k, B) => (i(), c("label", {
137
+ class: n(a(m).label)
138
+ }, [
139
+ b.value ? (i(), c("span", {
140
+ key: 0,
141
+ class: n(a(m).headerWrapper)
142
+ }, [
143
+ l.value ? (i(), c("span", {
144
+ key: 0,
145
+ class: n(a(m).header)
146
+ }, [
147
+ h(k.$slots, "header")
148
+ ], 2)) : _("", !0),
149
+ t.value ? (i(), c("span", {
150
+ key: 1,
151
+ class: n(a(m).title)
152
+ }, [
153
+ h(k.$slots, "default")
154
+ ], 2)) : _("", !0),
155
+ e.value ? (i(), c("span", {
156
+ key: 2,
157
+ class: n(a(m).subTitleRow)
158
+ }, [
159
+ f("span", {
160
+ class: n(a(m).subTitle)
161
+ }, [
162
+ h(k.$slots, "subTitle")
163
+ ], 2)
164
+ ], 2)) : _("", !0)
165
+ ], 2)) : _("", !0),
166
+ r.value ? (i(), c("span", {
167
+ key: 1,
168
+ class: n(j.value),
169
+ onClick: B[0] || (B[0] = (d) => k.$emit("click"))
170
+ }, [
171
+ h(k.$slots, "link")
172
+ ], 2)) : _("", !0)
173
+ ], 2));
174
+ }
175
+ }), je = ["id", "name", "type", "disabled", "placeholder"], Se = ["innerHTML"], Ne = ["innerHTML"], Qe = /* @__PURE__ */ g({
127
176
  __name: "input",
128
- props: /* @__PURE__ */ v({
177
+ props: /* @__PURE__ */ S({
129
178
  value: {},
130
179
  type: { default: "text" },
131
180
  id: {},
132
181
  name: {},
133
182
  disabled: { type: Boolean },
134
- label: {},
183
+ title: {},
184
+ header: {},
185
+ subTitle: {},
186
+ link: {},
135
187
  placeholder: {},
136
188
  loading: { type: Boolean },
137
189
  error: {},
138
- size: { default: "m" },
190
+ description: {},
139
191
  className: {}
140
192
  }, {
141
193
  value: {},
142
194
  valueModifiers: {}
143
195
  }),
144
- emits: /* @__PURE__ */ v(["update:value", "enter"], ["update:value"]),
145
- setup(n, { emit: s }) {
146
- const t = C(n, "value"), l = n, e = s, a = f(() => [
147
- _.input,
148
- _[l.size],
196
+ emits: /* @__PURE__ */ S(["update:value", "enter", "click-link"], ["update:value"]),
197
+ setup(o, { emit: s }) {
198
+ const l = q(o, "value"), t = o, e = s, r = u(() => [
199
+ y.input,
149
200
  {
150
- [_.disabled]: l.disabled,
151
- [_.error]: l.error,
152
- [_.loading]: l.loading
201
+ [y.disabled]: t.disabled,
202
+ [y.error]: t.error,
203
+ [y.loading]: t.loading
153
204
  },
154
- l.className
155
- ]), m = (o) => {
156
- e("update:value", o.target.value);
157
- }, B = (o) => {
158
- o.key === "Enter" && e("enter");
205
+ t.className
206
+ ]), b = u(() => t.header || t.title || t.subTitle || t.link), w = u(() => t.description || t.error), j = (d) => {
207
+ e("update:value", d.target.value);
208
+ }, k = (d) => {
209
+ d.key === "Enter" && e("enter");
210
+ }, B = () => {
211
+ e("click-link");
159
212
  };
160
- return (o, w) => (i(), d("div", {
161
- class: r(c(_).wrapper)
213
+ return (d, N) => (i(), c("div", {
214
+ class: n(a(y).wrapper)
162
215
  }, [
163
- o.label ? (i(), d("label", {
216
+ b.value ? (i(), R(a(Me), {
164
217
  key: 0,
165
- for: o.id,
166
- class: r(c(_).label)
167
- }, k(o.label), 11, ke)) : u("", !0),
168
- h("div", {
169
- class: r(c(_).container)
218
+ for: d.id,
219
+ onClick: B
220
+ }, {
221
+ header: C(() => [
222
+ L(T(t.header), 1)
223
+ ]),
224
+ subTitle: C(() => [
225
+ L(T(t.subTitle), 1)
226
+ ]),
227
+ link: C(() => [
228
+ L(T(t.link), 1)
229
+ ]),
230
+ default: C(() => [
231
+ L(" " + T(t.title) + " ", 1)
232
+ ]),
233
+ _: 1
234
+ }, 8, ["for"])) : _("", !0),
235
+ z(f("input", {
236
+ id: d.id,
237
+ "onUpdate:modelValue": N[0] || (N[0] = (H) => l.value = H),
238
+ name: d.name,
239
+ type: d.type,
240
+ disabled: d.disabled || d.loading,
241
+ placeholder: d.placeholder,
242
+ class: n(r.value),
243
+ onInput: j,
244
+ onKeydown: k
245
+ }, null, 42, je), [
246
+ [D, l.value]
247
+ ]),
248
+ w.value ? (i(), c("div", {
249
+ key: 1,
250
+ class: n(a(y).description)
170
251
  }, [
171
- o.$slots.prefix ? (i(), d("span", {
252
+ d.error ? (i(), c("div", {
172
253
  key: 0,
173
- class: r(c(_).prefix)
174
- }, [
175
- y(o.$slots, "prefix")
176
- ], 2)) : u("", !0),
177
- z(h("input", {
178
- id: o.id,
179
- "onUpdate:modelValue": w[0] || (w[0] = (E) => t.value = E),
180
- name: o.name,
181
- type: o.type,
182
- disabled: o.disabled || o.loading,
183
- placeholder: o.placeholder,
184
- class: r(a.value),
185
- onInput: m,
186
- onKeydown: B
187
- }, null, 42, Be), [
188
- [N, t.value]
189
- ]),
190
- o.$slots.suffix ? (i(), d("span", {
254
+ class: n(a(y).errorText),
255
+ innerHTML: d.error
256
+ }, null, 10, Se)) : _("", !0),
257
+ d.description ? (i(), c("div", {
191
258
  key: 1,
192
- class: r(c(_).suffix)
193
- }, [
194
- y(o.$slots, "suffix")
195
- ], 2)) : u("", !0),
196
- o.loading ? (i(), d("span", {
197
- key: 2,
198
- class: r(c(_).spinner)
199
- }, null, 2)) : u("", !0)
200
- ], 2),
201
- o.error ? (i(), d("p", {
202
- key: 1,
203
- class: r(c(_).errorText)
204
- }, k(o.error), 3)) : u("", !0)
259
+ class: n(a(y).descriptionText),
260
+ innerHTML: d.description
261
+ }, null, 10, Ne)) : _("", !0)
262
+ ], 2)) : _("", !0)
205
263
  ], 2));
206
264
  }
207
- }), we = "_label_jcdiv_1", Ce = "_disabled_jcdiv_7", ze = "_input_jcdiv_17", Ee = "_error_jcdiv_30", je = "_text_jcdiv_70", Ne = "_errorText_jcdiv_76", b = {
208
- label: we,
209
- disabled: Ce,
210
- input: ze,
211
- error: Ee,
212
- text: je,
213
- errorText: Ne
214
- }, Te = ["for"], xe = ["id", "name", "disabled"], Ue = /* @__PURE__ */ $({
265
+ }), qe = "_label_jcdiv_1", ze = "_disabled_jcdiv_7", He = "_input_jcdiv_17", Ue = "_error_jcdiv_30", Ve = "_text_jcdiv_70", Re = "_errorText_jcdiv_76", v = {
266
+ label: qe,
267
+ disabled: ze,
268
+ input: He,
269
+ error: Ue,
270
+ text: Ve,
271
+ errorText: Re
272
+ }, De = ["for"], Ee = ["id", "name", "disabled"], Xe = /* @__PURE__ */ g({
215
273
  __name: "checkbox",
216
- props: /* @__PURE__ */ v({
274
+ props: /* @__PURE__ */ S({
217
275
  id: {},
218
276
  name: {},
219
277
  disabled: { type: Boolean },
@@ -225,93 +283,98 @@ const M = "_button_1syl2_1", I = "_disabled_1syl2_1", L = "_loading_1syl2_1", V
225
283
  checkedModifiers: {}
226
284
  }),
227
285
  emits: ["update:checked"],
228
- setup(n) {
229
- const s = C(n, "checked"), t = n, l = f(() => [
230
- b.label,
286
+ setup(o) {
287
+ const s = q(o, "checked"), l = o, t = u(() => [
288
+ v.label,
231
289
  {
232
- [b.disabled]: t.disabled
290
+ [v.disabled]: l.disabled
233
291
  },
234
- t.className
292
+ l.className
235
293
  ]);
236
- return (e, a) => (i(), d("div", null, [
237
- h("label", {
294
+ return (e, r) => (i(), c("div", null, [
295
+ f("label", {
238
296
  for: e.id,
239
- class: r(l.value)
297
+ class: n(t.value)
240
298
  }, [
241
- z(h("input", {
299
+ z(f("input", {
242
300
  id: e.id,
243
- "onUpdate:modelValue": a[0] || (a[0] = (m) => s.value = m),
301
+ "onUpdate:modelValue": r[0] || (r[0] = (b) => s.value = b),
244
302
  name: e.name,
245
303
  type: "checkbox",
246
304
  disabled: e.disabled,
247
- class: r([c(b).input, { [c(b).error]: !!t.error }])
248
- }, null, 10, xe), [
249
- [T, s.value]
305
+ class: n([a(v).input, { [a(v).error]: !!l.error }])
306
+ }, null, 10, Ee), [
307
+ [E, s.value]
250
308
  ]),
251
- e.$slots.default ? (i(), d("span", {
309
+ e.$slots.default ? (i(), c("span", {
252
310
  key: 0,
253
- class: r(c(b).text)
311
+ class: n(a(v).text)
254
312
  }, [
255
- y(e.$slots, "default")
256
- ], 2)) : u("", !0)
257
- ], 10, Te),
258
- e.error ? (i(), d("div", {
313
+ h(e.$slots, "default")
314
+ ], 2)) : _("", !0)
315
+ ], 10, De),
316
+ e.error ? (i(), c("div", {
259
317
  key: 0,
260
- class: r(c(b).errorText)
261
- }, k(e.error), 3)) : u("", !0)
318
+ class: n(a(v).errorText)
319
+ }, T(e.error), 3)) : _("", !0)
262
320
  ]));
263
321
  }
264
- }), Me = ["aria-label", "width", "height"], Ie = ["xlink:href"], Le = /* @__PURE__ */ $({
322
+ }), Ie = ["aria-label", "width", "height"], Oe = ["xlink:href"], We = /* @__PURE__ */ g({
265
323
  __name: "icon",
266
324
  props: {
267
325
  type: {},
268
326
  color: {},
269
327
  block: { type: Boolean }
270
328
  },
271
- setup(n) {
272
- const s = n, t = f(() => {
329
+ setup(o) {
330
+ const s = o, l = u(() => {
273
331
  const e = s.type.match(/(\d+)$/);
274
332
  return e ? parseInt(e[1], 10) : 16;
275
- }), l = f(() => {
333
+ }), t = u(() => {
276
334
  const e = {};
277
335
  return s.color && (e.color = s.color), s.block && (e.display = "block"), e;
278
336
  });
279
- return (e, a) => (i(), d("svg", {
280
- class: r(e.$style.icon),
337
+ return (e, r) => (i(), c("svg", {
338
+ class: n(e.$style.icon),
281
339
  "aria-label": e.type,
282
- style: x(l.value),
340
+ style: I(t.value),
283
341
  role: "img",
284
- width: t.value,
285
- height: t.value
342
+ width: l.value,
343
+ height: l.value
286
344
  }, [
287
- h("use", {
288
- "xlink:href": `../assets/sprite.svg#${e.type}`
289
- }, null, 8, Ie)
290
- ], 14, Me));
291
- }
292
- }), Ve = "_icon_1p8iz_2", qe = {
293
- icon: Ve
294
- }, De = (n, s) => {
295
- const t = n.__vccOpts || n;
296
- for (const [l, e] of s)
297
- t[l] = e;
298
- return t;
299
- }, Oe = {
300
- $style: qe
301
- }, Ke = /* @__PURE__ */ De(Le, [["__cssModules", Oe]]), Pe = () => {
302
- const n = "huntflow-uikit-icons-sprite", s = "/src/assets/sprite.svg";
303
- if (!document.getElementById(n)) {
304
- const t = document.createElement("svg");
305
- t.style.display = "none", t.id = n;
306
- const l = document.createElement("defs"), e = document.createElement("use");
307
- e.setAttribute("href", `${s}`), l.appendChild(e), t.appendChild(l), document.body.appendChild(t);
345
+ f("use", {
346
+ "xlink:href": `#${e.type}`
347
+ }, null, 8, Oe)
348
+ ], 14, Ie));
308
349
  }
350
+ }), Ae = "_icon_1p8iz_2", Fe = {
351
+ icon: Ae
352
+ }, Ge = (o, s) => {
353
+ const l = o.__vccOpts || o;
354
+ for (const [t, e] of s)
355
+ l[t] = e;
356
+ return l;
357
+ }, Ke = {
358
+ $style: Fe
359
+ }, Ye = /* @__PURE__ */ Ge(We, [["__cssModules", Ke]]), Ze = async () => {
360
+ if (!(typeof document > "u") && !document.getElementById("__svg-sprite__"))
361
+ try {
362
+ const s = `
363
+ <svg id="__svg-sprite__" xmlns="http://www.w3.org/2000/svg" style="display: none;">
364
+ ${(await import("./sprite-CP6qWMMh.js")).default}
365
+ </svg>
366
+ `;
367
+ document.body.insertAdjacentHTML("afterbegin", s);
368
+ } catch (o) {
369
+ console.error("Failed to load SVG sprite:", o);
370
+ }
309
371
  };
310
372
  export {
311
- Ae as BaseButton,
312
- Ue as BaseCheckbox,
313
- Ke as BaseIcon,
314
- Re as BaseInput,
315
- oe as BaseLoader,
316
- Pe as useIcons
373
+ Pe as BaseButton,
374
+ Xe as BaseCheckbox,
375
+ Ye as BaseIcon,
376
+ Qe as BaseInput,
377
+ Me as BaseLabel,
378
+ _e as BaseLoader,
379
+ Ze as injectSvgSprite
317
380
  };