@huntflow/ui 0.0.49 → 0.0.51

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_12dq3_1{display:flex;flex-direction:row;gap:var(--hf-gap-xs);font-style:normal;flex:1;margin-bottom:var(--hf-gap-xs)}._header_12dq3_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_12dq3_18{flex-grow:1;gap:var(--hf-gap-xs);display:flex;flex-direction:column}._title_12dq3_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_12dq3_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_12dq3_33{line-height:var(--hf-font-line-height-label-subtitle)}._link_12dq3_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_12dq3_45 a{text-decoration:none;color:var(--hf-color-text-semilight)}._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 v, computed as p, openBlock as r, createElementBlock as i, normalizeClass as l, unref as o, createVNode as V, createCommentVNode as _, renderSlot as y, createElementVNode as $, mergeModels as B, useModel as C, createBlock as R, withCtx as T, createTextVNode as w, toDisplayString as g, withDirectives as L, vModelDynamic as D, vModelCheckbox as E, normalizeStyle as H } from "vue";
3
+ const I = "_button_1syl2_1", O = "_disabled_1syl2_1", W = "_loading_1syl2_1", A = "_loader_1syl2_1", U = "_content_1syl2_1", F = "_s_1syl2_2", G = "_xs_1syl2_1", K = "_square_1syl2_1", J = "_circle_1syl2_1", P = "_m_1syl2_1", Q = "_l_1syl2_1", X = "_primary_1syl2_1", Y = "_secondary_1syl2_1", Z = "_accent_1syl2_1", x = "_danger_1syl2_1", ee = "_jobsites_1syl2_1", se = "_ghost_1syl2_1", u = {
4
+ button: I,
5
+ disabled: O,
6
+ loading: W,
7
+ loader: A,
8
+ content: U,
9
+ s: F,
10
+ xs: G,
11
+ square: K,
12
+ circle: J,
13
+ m: P,
14
+ l: Q,
15
+ primary: X,
16
+ secondary: Y,
17
+ accent: Z,
18
+ danger: x,
19
+ jobsites: ee,
20
+ ghost: se,
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
+ }, te = "_loader_t6bg6_10", le = "_circle_t6bg6_15", oe = "_white_t6bg6_22", ne = "_black_t6bg6_26", re = "_s_t6bg6_30", ae = "_m_t6bg6_35", ie = "_l_t6bg6_10", ce = "_spinner_t6bg6_45", f = {
23
+ loader: te,
24
+ circle: le,
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: oe,
27
+ black: ne,
28
+ s: re,
29
+ m: ae,
30
+ l: ie,
31
+ spinner: ce
32
+ }, de = /* @__PURE__ */ v({
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(a) {
40
+ const e = a, n = p(() => [f.loader, f[e.size], f[e.color], f.circle]);
41
+ return (t, s) => (r(), i("span", {
42
+ class: l([o(f).spinner, n.value])
43
43
  }, null, 2));
44
44
  }
45
- }), ne = ["name", "type", "disabled"], Ae = /* @__PURE__ */ $({
46
- name: "BaseButton",
45
+ }), _e = ["name", "type", "disabled"], Ge = /* @__PURE__ */ v({
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(a) {
61
+ const e = a, n = {
63
62
  primary: "white",
64
63
  secondary: "black",
65
64
  accent: "white",
@@ -67,153 +66,203 @@ 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(() => [
71
- p.button,
72
- p[s.size],
73
- p[s.type],
74
- s.circle ? [p.circle] : [p.square],
69
+ }, t = p(() => [
70
+ u.button,
71
+ u[e.size],
72
+ u[e.type],
73
+ e.circle ? [u.circle] : [u.square],
75
74
  {
76
- [p.disabled]: s.disabled,
77
- [p.loading]: s.loading,
78
- [p.active]: s.active,
79
- [p.bordered]: s.bordered
75
+ [u.disabled]: e.disabled,
76
+ [u.loading]: e.loading,
77
+ [u.active]: e.active,
78
+ [u.bordered]: e.bordered
80
79
  },
81
- 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"))
80
+ e.className
81
+ ]), s = p(() => n[e.type] || "white");
82
+ return (c, h) => (r(), i("button", {
83
+ name: c.name,
84
+ class: l(t.value),
85
+ type: c.htmlType,
86
+ disabled: c.disabled || c.loading,
87
+ onClick: h[0] || (h[0] = (q) => c.$emit("click"))
89
88
  }, [
90
- a.loading ? (i(), d("div", {
89
+ c.loading ? (r(), i("div", {
91
90
  key: 0,
92
- class: r(c(p).loader)
91
+ class: l(o(u).loader)
93
92
  }, [
94
- j(c(oe), {
93
+ V(o(de), {
95
94
  size: "s",
96
- color: e.value
95
+ color: s.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
+ c.$slots.before ? y(c.$slots, "before", { key: 1 }) : _("", !0),
99
+ $("span", {
100
+ class: l(o(u).content)
102
101
  }, [
103
- y(a.$slots, "default")
102
+ y(c.$slots, "default")
104
103
  ], 2),
105
- a.$slots.after ? y(a.$slots, "after", { key: 2 }) : u("", !0)
106
- ], 10, ne));
104
+ c.$slots.after ? y(c.$slots, "after", { key: 2 }) : _("", !0)
105
+ ], 10, _e));
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
+ }), ue = "_wrapper_6qo53_1", pe = "_input_6qo53_5", be = "_error_6qo53_35", ye = "_description_6qo53_47", me = "_descriptionText_6qo53_58", he = "_errorText_6qo53_62", b = {
108
+ wrapper: ue,
109
+ input: pe,
110
+ error: be,
111
+ description: ye,
112
+ descriptionText: me,
113
+ errorText: he
114
+ }, ke = "_label_12dq3_1", ve = "_header_12dq3_10", fe = "_headerWrapper_12dq3_18", ge = "_title_12dq3_25", $e = "_subTitleRow_12dq3_33", Te = "_subTitle_12dq3_33", we = "_link_12dq3_45", m = {
115
+ label: ke,
116
+ header: ve,
117
+ headerWrapper: fe,
118
+ title: ge,
119
+ subTitleRow: $e,
120
+ subTitle: Te,
121
+ link: we
122
+ }, Be = /* @__PURE__ */ v({
123
+ __name: "label",
124
+ emits: ["click"],
125
+ setup(a) {
126
+ return (e, n) => (r(), i("label", {
127
+ class: l(o(m).label)
128
+ }, [
129
+ e.$slots.header || e.$slots.title ? (r(), i("span", {
130
+ key: 0,
131
+ class: l(o(m).headerWrapper)
132
+ }, [
133
+ e.$slots.header ? (r(), i("span", {
134
+ key: 0,
135
+ class: l(o(m).header)
136
+ }, [
137
+ y(e.$slots, "header")
138
+ ], 2)) : _("", !0),
139
+ e.$slots.default ? (r(), i("span", {
140
+ key: 1,
141
+ class: l(o(m).title)
142
+ }, [
143
+ y(e.$slots, "default")
144
+ ], 2)) : _("", !0),
145
+ e.$slots.subTitle || e.$slots.link ? (r(), i("span", {
146
+ key: 2,
147
+ class: l(o(m).subTitleRow)
148
+ }, [
149
+ e.$slots.subTitle ? (r(), i("span", {
150
+ key: 0,
151
+ class: l(o(m).subTitle)
152
+ }, [
153
+ y(e.$slots, "subTitle")
154
+ ], 2)) : _("", !0)
155
+ ], 2)) : _("", !0)
156
+ ], 2)) : _("", !0),
157
+ e.$slots.link ? (r(), i("span", {
158
+ key: 1,
159
+ class: l(o(m).link),
160
+ onClick: n[0] || (n[0] = (t) => e.$emit("click"))
161
+ }, [
162
+ y(e.$slots, "link")
163
+ ], 2)) : _("", !0)
164
+ ], 2));
165
+ }
166
+ }), qe = ["id", "name", "type", "disabled", "placeholder"], Me = ["innerHTML"], Ce = ["innerHTML"], Ke = /* @__PURE__ */ v({
127
167
  __name: "input",
128
- props: /* @__PURE__ */ v({
168
+ props: /* @__PURE__ */ B({
129
169
  value: {},
130
170
  type: { default: "text" },
131
171
  id: {},
132
172
  name: {},
133
173
  disabled: { type: Boolean },
134
174
  label: {},
175
+ header: {},
176
+ subTitle: {},
177
+ link: {},
135
178
  placeholder: {},
136
179
  loading: { type: Boolean },
137
180
  error: {},
138
- size: { default: "m" },
181
+ description: {},
139
182
  className: {}
140
183
  }, {
141
184
  value: {},
142
185
  valueModifiers: {}
143
186
  }),
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],
187
+ emits: /* @__PURE__ */ B(["update:value", "enter", "click-link"], ["update:value"]),
188
+ setup(a, { emit: e }) {
189
+ const n = C(a, "value"), t = a, s = e, c = p(() => [
190
+ b.input,
149
191
  {
150
- [_.disabled]: l.disabled,
151
- [_.error]: l.error,
152
- [_.loading]: l.loading
192
+ [b.disabled]: t.disabled,
193
+ [b.error]: t.error,
194
+ [b.loading]: t.loading
153
195
  },
154
- l.className
155
- ]), m = (o) => {
156
- e("update:value", o.target.value);
157
- }, B = (o) => {
158
- o.key === "Enter" && e("enter");
196
+ t.className
197
+ ]), h = p(() => t.header || t.label || t.subTitle || t.link), q = p(() => t.description || t.error), j = (d) => {
198
+ s("update:value", d.target.value);
199
+ }, N = (d) => {
200
+ d.key === "Enter" && s("enter");
201
+ }, z = () => {
202
+ s("click-link");
159
203
  };
160
- return (o, w) => (i(), d("div", {
161
- class: r(c(_).wrapper)
204
+ return (d, M) => (r(), i("div", {
205
+ class: l(o(b).wrapper)
162
206
  }, [
163
- o.label ? (i(), d("label", {
207
+ h.value ? (r(), R(o(Be), {
164
208
  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)
209
+ for: d.id,
210
+ onClick: z
211
+ }, {
212
+ header: T(() => [
213
+ w(g(t.header), 1)
214
+ ]),
215
+ subTitle: T(() => [
216
+ w(g(t.subTitle), 1)
217
+ ]),
218
+ link: T(() => [
219
+ w(g(t.link), 1)
220
+ ]),
221
+ default: T(() => [
222
+ w(" " + g(t.label) + " ", 1)
223
+ ]),
224
+ _: 1
225
+ }, 8, ["for"])) : _("", !0),
226
+ L($("input", {
227
+ id: d.id,
228
+ "onUpdate:modelValue": M[0] || (M[0] = (S) => n.value = S),
229
+ name: d.name,
230
+ type: d.type,
231
+ disabled: d.disabled || d.loading,
232
+ placeholder: d.placeholder,
233
+ class: l(c.value),
234
+ onInput: j,
235
+ onKeydown: N
236
+ }, null, 42, qe), [
237
+ [D, n.value]
238
+ ]),
239
+ q.value ? (r(), i("div", {
240
+ key: 1,
241
+ class: l(o(b).description)
170
242
  }, [
171
- o.$slots.prefix ? (i(), d("span", {
243
+ d.error ? (r(), i("div", {
172
244
  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", {
245
+ class: l(o(b).errorText),
246
+ innerHTML: d.error
247
+ }, null, 10, Me)) : _("", !0),
248
+ d.description ? (r(), i("div", {
191
249
  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)
250
+ class: l(o(b).descriptionText),
251
+ innerHTML: d.description
252
+ }, null, 10, Ce)) : _("", !0)
253
+ ], 2)) : _("", !0)
205
254
  ], 2));
206
255
  }
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__ */ $({
256
+ }), Le = "_label_jcdiv_1", je = "_disabled_jcdiv_7", Ne = "_input_jcdiv_17", ze = "_error_jcdiv_30", Se = "_text_jcdiv_70", Ve = "_errorText_jcdiv_76", k = {
257
+ label: Le,
258
+ disabled: je,
259
+ input: Ne,
260
+ error: ze,
261
+ text: Se,
262
+ errorText: Ve
263
+ }, Re = ["for"], De = ["id", "name", "disabled"], Je = /* @__PURE__ */ v({
215
264
  __name: "checkbox",
216
- props: /* @__PURE__ */ v({
265
+ props: /* @__PURE__ */ B({
217
266
  id: {},
218
267
  name: {},
219
268
  disabled: { type: Boolean },
@@ -225,93 +274,98 @@ const M = "_button_1syl2_1", I = "_disabled_1syl2_1", L = "_loading_1syl2_1", V
225
274
  checkedModifiers: {}
226
275
  }),
227
276
  emits: ["update:checked"],
228
- setup(n) {
229
- const s = C(n, "checked"), t = n, l = f(() => [
230
- b.label,
277
+ setup(a) {
278
+ const e = C(a, "checked"), n = a, t = p(() => [
279
+ k.label,
231
280
  {
232
- [b.disabled]: t.disabled
281
+ [k.disabled]: n.disabled
233
282
  },
234
- t.className
283
+ n.className
235
284
  ]);
236
- return (e, a) => (i(), d("div", null, [
237
- h("label", {
238
- for: e.id,
239
- class: r(l.value)
285
+ return (s, c) => (r(), i("div", null, [
286
+ $("label", {
287
+ for: s.id,
288
+ class: l(t.value)
240
289
  }, [
241
- z(h("input", {
242
- id: e.id,
243
- "onUpdate:modelValue": a[0] || (a[0] = (m) => s.value = m),
244
- name: e.name,
290
+ L($("input", {
291
+ id: s.id,
292
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => e.value = h),
293
+ name: s.name,
245
294
  type: "checkbox",
246
- disabled: e.disabled,
247
- class: r([c(b).input, { [c(b).error]: !!t.error }])
248
- }, null, 10, xe), [
249
- [T, s.value]
295
+ disabled: s.disabled,
296
+ class: l([o(k).input, { [o(k).error]: !!n.error }])
297
+ }, null, 10, De), [
298
+ [E, e.value]
250
299
  ]),
251
- e.$slots.default ? (i(), d("span", {
300
+ s.$slots.default ? (r(), i("span", {
252
301
  key: 0,
253
- class: r(c(b).text)
302
+ class: l(o(k).text)
254
303
  }, [
255
- y(e.$slots, "default")
256
- ], 2)) : u("", !0)
257
- ], 10, Te),
258
- e.error ? (i(), d("div", {
304
+ y(s.$slots, "default")
305
+ ], 2)) : _("", !0)
306
+ ], 10, Re),
307
+ s.error ? (r(), i("div", {
259
308
  key: 0,
260
- class: r(c(b).errorText)
261
- }, k(e.error), 3)) : u("", !0)
309
+ class: l(o(k).errorText)
310
+ }, g(s.error), 3)) : _("", !0)
262
311
  ]));
263
312
  }
264
- }), Me = ["aria-label", "width", "height"], Ie = ["xlink:href"], Le = /* @__PURE__ */ $({
313
+ }), Ee = ["aria-label", "width", "height"], He = ["xlink:href"], Ie = /* @__PURE__ */ v({
265
314
  __name: "icon",
266
315
  props: {
267
316
  type: {},
268
317
  color: {},
269
318
  block: { type: Boolean }
270
319
  },
271
- setup(n) {
272
- const s = n, t = f(() => {
273
- const e = s.type.match(/(\d+)$/);
274
- return e ? parseInt(e[1], 10) : 16;
275
- }), l = f(() => {
276
- const e = {};
277
- return s.color && (e.color = s.color), s.block && (e.display = "block"), e;
320
+ setup(a) {
321
+ const e = a, n = p(() => {
322
+ const s = e.type.match(/(\d+)$/);
323
+ return s ? parseInt(s[1], 10) : 16;
324
+ }), t = p(() => {
325
+ const s = {};
326
+ return e.color && (s.color = e.color), e.block && (s.display = "block"), s;
278
327
  });
279
- return (e, a) => (i(), d("svg", {
280
- class: r(e.$style.icon),
281
- "aria-label": e.type,
282
- style: x(l.value),
328
+ return (s, c) => (r(), i("svg", {
329
+ class: l(s.$style.icon),
330
+ "aria-label": s.type,
331
+ style: H(t.value),
283
332
  role: "img",
284
- width: t.value,
285
- height: t.value
333
+ width: n.value,
334
+ height: n.value
286
335
  }, [
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);
336
+ $("use", {
337
+ "xlink:href": `../assets/sprite.svg#${s.type}`
338
+ }, null, 8, He)
339
+ ], 14, Ee));
308
340
  }
341
+ }), Oe = "_icon_1p8iz_2", We = {
342
+ icon: Oe
343
+ }, Ae = (a, e) => {
344
+ const n = a.__vccOpts || a;
345
+ for (const [t, s] of e)
346
+ n[t] = s;
347
+ return n;
348
+ }, Ue = {
349
+ $style: We
350
+ }, Pe = /* @__PURE__ */ Ae(Ie, [["__cssModules", Ue]]), Qe = async () => {
351
+ if (!(typeof document > "u") && !document.getElementById("__svg-sprite__"))
352
+ try {
353
+ const e = `
354
+ <svg id="__svg-sprite__" xmlns="http://www.w3.org/2000/svg" style="display: none;">
355
+ ${(await import("./sprite-CP6qWMMh.js")).default}
356
+ </svg>
357
+ `;
358
+ document.body.insertAdjacentHTML("afterbegin", e);
359
+ } catch (a) {
360
+ console.error("Failed to load SVG sprite:", a);
361
+ }
309
362
  };
310
363
  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
364
+ Ge as BaseButton,
365
+ Je as BaseCheckbox,
366
+ Pe as BaseIcon,
367
+ Ke as BaseInput,
368
+ Be as BaseLabel,
369
+ de as BaseLoader,
370
+ Qe as injectSvgSprite
317
371
  };