@huntflow/ui 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -15
- package/dist/components/index.d.ts +19 -0
- package/dist/components/ui-avatar/avatar.vue.d.ts +22 -0
- package/dist/components/ui-avatar/index.d.ts +3 -0
- package/dist/components/ui-avatar/types.d.ts +6 -0
- package/dist/components/ui-button/button.vue.d.ts +33 -0
- package/dist/components/ui-button/index.d.ts +3 -0
- package/dist/components/ui-button/types.d.ts +16 -0
- package/dist/components/ui-button-icon/button-icon.vue.d.ts +15 -0
- package/dist/components/ui-button-icon/index.d.ts +2 -0
- package/dist/components/ui-button-icon/types.d.ts +14 -0
- package/dist/components/ui-button-link/button-link.vue.d.ts +21 -0
- package/dist/components/ui-button-link/index.d.ts +2 -0
- package/dist/components/ui-error/error.vue.d.ts +18 -0
- package/dist/components/ui-error/index.d.ts +3 -0
- package/dist/components/ui-error/types.d.ts +3 -0
- package/dist/components/ui-icon/icon-list.d.ts +1 -0
- package/dist/components/ui-icon/icon.vue.d.ts +3 -0
- package/dist/components/ui-icon/index.d.ts +4 -0
- package/dist/components/ui-icon/types.d.ts +7 -0
- package/dist/components/ui-input/index.d.ts +3 -0
- package/dist/components/ui-input/input.vue.d.ts +27 -0
- package/dist/components/ui-input/types.d.ts +20 -0
- package/dist/components/ui-label/index.d.ts +3 -0
- package/dist/components/ui-label/label.vue.d.ts +18 -0
- package/dist/components/ui-label/types.d.ts +3 -0
- package/dist/components/ui-label-content/index.d.ts +2 -0
- package/dist/components/ui-label-content/label-content.vue.d.ts +24 -0
- package/dist/components/ui-loader/index.d.ts +3 -0
- package/dist/components/ui-loader/loader.vue.d.ts +6 -0
- package/dist/components/ui-loader/types.d.ts +6 -0
- package/dist/components/ui-plank/index.d.ts +3 -0
- package/dist/components/ui-plank/plank.vue.d.ts +24 -0
- package/dist/components/ui-plank/types.d.ts +7 -0
- package/dist/components/ui-radio-button/index.d.ts +3 -0
- package/dist/components/ui-radio-button/radio-button.vue.d.ts +13 -0
- package/dist/components/ui-radio-button/types.d.ts +19 -0
- package/dist/components/ui-text/index.d.ts +3 -0
- package/dist/components/ui-text/text.vue.d.ts +21 -0
- package/dist/components/ui-text/types.d.ts +6 -0
- package/dist/components/ui-textarea/index.d.ts +3 -0
- package/dist/components/ui-textarea/textarea.vue.d.ts +25 -0
- package/dist/components/ui-textarea/types.d.ts +16 -0
- package/dist/components/ui-title/index.d.ts +3 -0
- package/dist/components/ui-title/title.vue.d.ts +18 -0
- package/dist/components/ui-title/types.d.ts +6 -0
- package/dist/global.css +1 -0
- package/dist/global.css.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/shared/utils.d.ts +3 -0
- package/dist/sprite-Ceyc7sd5.js +4 -0
- package/dist/ui.es.js +692 -0
- package/package.json +16 -5
package/dist/ui.es.js
ADDED
|
@@ -0,0 +1,692 @@
|
|
|
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-disable-default)}._button_mb1r2_1:is(._disabled_mb1r2_1),._button_mb1r2_1:is(._disabled_mb1r2_1):hover{color:var(--hf-color-text-light);background: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}._dropdownIcon_mb1r2_1{margin-left:calc(var(--hf-spacing-button-icon) * -1)}._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)}._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)}._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)}._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)}._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)}._ghost_mb1r2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost_mb1r2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_mb1r2_1:active{background-color:var(--hf-color-button-secondary-fill-active)}._ghost-danger_mb1r2_1{color:var(--hf-color-text-main);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)}: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}")),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 r, normalizeClass as a, unref as l, normalizeStyle as K, createElementVNode as M, useSlots as P, createCommentVNode as m, renderSlot as b, createBlock as h, createVNode as N, mergeProps as E, withCtx as k, Fragment as J, toValue as Q, getCurrentInstance as X, ref as Y, Comment as Z, cloneVNode as ee, h as O, mergeModels as R, useAttrs as te, useModel as ne, createTextVNode as S, toDisplayString as B, resolveDynamicComponent as q } from "vue";
|
|
3
|
+
const C = (o, e) => (e ? o[e] : o.default)?.().some((n) => {
|
|
4
|
+
const s = n.children;
|
|
5
|
+
return s && s.toString().trim() !== "";
|
|
6
|
+
}) ?? !1, oe = "_loader_tpkd0_11", se = "_circle_tpkd0_17", le = "_white_tpkd0_24", re = "_black_tpkd0_28", ae = "_s_tpkd0_32", ce = "_m_tpkd0_37", ie = "_l_tpkd0_11", ue = "_spinner_tpkd0_47", I = {
|
|
7
|
+
loader: oe,
|
|
8
|
+
circle: se,
|
|
9
|
+
"loader-animation": "_loader-animation_tpkd0_1",
|
|
10
|
+
white: le,
|
|
11
|
+
black: re,
|
|
12
|
+
s: ae,
|
|
13
|
+
m: ce,
|
|
14
|
+
l: ie,
|
|
15
|
+
spinner: ue
|
|
16
|
+
}, de = /* @__PURE__ */ f({
|
|
17
|
+
__name: "loader",
|
|
18
|
+
props: {
|
|
19
|
+
className: {},
|
|
20
|
+
size: { default: "l" },
|
|
21
|
+
color: { default: "black" }
|
|
22
|
+
},
|
|
23
|
+
setup(o) {
|
|
24
|
+
const e = o, t = c(() => [I.loader, I[e.size], I[e.color], I.circle]);
|
|
25
|
+
return (n, s) => (r(), p("span", {
|
|
26
|
+
class: a([l(I).spinner, t.value])
|
|
27
|
+
}, null, 2));
|
|
28
|
+
}
|
|
29
|
+
}), _e = ["aria-label", "width", "height"], pe = ["xlink:href"], me = /* @__PURE__ */ f({
|
|
30
|
+
__name: "icon",
|
|
31
|
+
props: {
|
|
32
|
+
name: {},
|
|
33
|
+
color: {},
|
|
34
|
+
block: { type: Boolean }
|
|
35
|
+
},
|
|
36
|
+
setup(o) {
|
|
37
|
+
const e = o, t = c(() => {
|
|
38
|
+
const s = e?.name?.match(/(\d+)$/);
|
|
39
|
+
return s ? Number.parseInt(s[1], 10) : 16;
|
|
40
|
+
}), n = c(() => {
|
|
41
|
+
const s = {};
|
|
42
|
+
return e.color && (s.color = e.color), e.block && (s.display = "block"), s;
|
|
43
|
+
});
|
|
44
|
+
return (s, i) => (r(), p("svg", {
|
|
45
|
+
class: a(s.$style.icon),
|
|
46
|
+
"aria-label": s.name,
|
|
47
|
+
style: K(n.value),
|
|
48
|
+
role: "img",
|
|
49
|
+
width: t.value,
|
|
50
|
+
height: t.value
|
|
51
|
+
}, [
|
|
52
|
+
M("use", {
|
|
53
|
+
"xlink:href": `#${s.name}`
|
|
54
|
+
}, null, 8, pe)
|
|
55
|
+
], 14, _e));
|
|
56
|
+
}
|
|
57
|
+
}), fe = "_icon_1p8iz_2", be = {
|
|
58
|
+
icon: fe
|
|
59
|
+
}, ye = (o, e) => {
|
|
60
|
+
const t = o.__vccOpts || o;
|
|
61
|
+
for (const [n, s] of e)
|
|
62
|
+
t[n] = s;
|
|
63
|
+
return t;
|
|
64
|
+
}, ge = {
|
|
65
|
+
$style: be
|
|
66
|
+
}, T = /* @__PURE__ */ ye(me, [["__cssModules", ge]]), Ht = async () => {
|
|
67
|
+
if (!(typeof document > "u") && !document.getElementById("__svg-sprite__"))
|
|
68
|
+
try {
|
|
69
|
+
const e = `
|
|
70
|
+
<svg id="__svg-sprite__" xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
71
|
+
${(await import("./sprite-Ceyc7sd5.js")).default}
|
|
72
|
+
</svg>
|
|
73
|
+
`;
|
|
74
|
+
document.body.insertAdjacentHTML("afterbegin", e);
|
|
75
|
+
} catch (o) {
|
|
76
|
+
console.error("Failed to load SVG sprite:", o);
|
|
77
|
+
}
|
|
78
|
+
}, ke = "_button_mb1r2_1", he = "_disabled_mb1r2_1", ve = "_loading_mb1r2_1", $e = "_loader_mb1r2_1", we = "_content_mb1r2_1", Ce = "_dropdownIcon_mb1r2_1", Te = "_s_mb1r2_2", Ie = "_xs_mb1r2_1", Se = "_square_mb1r2_1", Be = "_circle_mb1r2_1", Ne = "_m_mb1r2_1", Le = "_l_mb1r2_1", je = "_primary_mb1r2_1", Ue = "_secondary_mb1r2_1", ze = "_accent_mb1r2_1", Me = "_danger_mb1r2_1", Ee = "_jobsites_mb1r2_1", Oe = "_ghost_mb1r2_1", g = {
|
|
79
|
+
button: ke,
|
|
80
|
+
disabled: he,
|
|
81
|
+
loading: ve,
|
|
82
|
+
loader: $e,
|
|
83
|
+
content: we,
|
|
84
|
+
dropdownIcon: Ce,
|
|
85
|
+
s: Te,
|
|
86
|
+
xs: Ie,
|
|
87
|
+
square: Se,
|
|
88
|
+
circle: Be,
|
|
89
|
+
m: Ne,
|
|
90
|
+
l: Le,
|
|
91
|
+
primary: je,
|
|
92
|
+
secondary: Ue,
|
|
93
|
+
accent: ze,
|
|
94
|
+
danger: Me,
|
|
95
|
+
jobsites: Ee,
|
|
96
|
+
ghost: Oe,
|
|
97
|
+
"ghost-danger": "_ghost-danger_mb1r2_1"
|
|
98
|
+
}, Pe = ["name", "type", "disabled"], H = /* @__PURE__ */ f({
|
|
99
|
+
__name: "button",
|
|
100
|
+
props: {
|
|
101
|
+
size: { default: "m" },
|
|
102
|
+
className: {},
|
|
103
|
+
type: { default: "primary" },
|
|
104
|
+
disabled: { type: Boolean, default: !1 },
|
|
105
|
+
loading: { type: Boolean, default: !1 },
|
|
106
|
+
dropdown: { type: Boolean, default: !1 },
|
|
107
|
+
active: { type: Boolean, default: !1 },
|
|
108
|
+
name: {},
|
|
109
|
+
circle: { type: Boolean, default: !1 },
|
|
110
|
+
bordered: { type: Boolean, default: !1 },
|
|
111
|
+
htmlType: {}
|
|
112
|
+
},
|
|
113
|
+
emits: ["click"],
|
|
114
|
+
setup(o) {
|
|
115
|
+
const e = o, t = P(), n = {
|
|
116
|
+
primary: "white",
|
|
117
|
+
secondary: "black",
|
|
118
|
+
accent: "white",
|
|
119
|
+
danger: "white",
|
|
120
|
+
jobsites: "white",
|
|
121
|
+
ghost: "black",
|
|
122
|
+
"ghost-danger": "black"
|
|
123
|
+
}, s = c(() => C(t)), i = c(() => [
|
|
124
|
+
g.button,
|
|
125
|
+
g[e.size],
|
|
126
|
+
g[e.type],
|
|
127
|
+
e.circle ? [g.circle] : [g.square],
|
|
128
|
+
{
|
|
129
|
+
[g.disabled]: e.disabled,
|
|
130
|
+
[g.loading]: e.loading,
|
|
131
|
+
[g.active]: e.active,
|
|
132
|
+
[g.bordered]: e.bordered
|
|
133
|
+
},
|
|
134
|
+
e.className
|
|
135
|
+
]), u = c(() => n[e.type] || "white");
|
|
136
|
+
return (_, v) => (r(), p("button", {
|
|
137
|
+
name: _.name,
|
|
138
|
+
class: a(i.value),
|
|
139
|
+
type: _.htmlType,
|
|
140
|
+
disabled: _.disabled || _.loading,
|
|
141
|
+
onClick: v[0] || (v[0] = ($) => _.$emit("click"))
|
|
142
|
+
}, [
|
|
143
|
+
_.loading ? (r(), p("div", {
|
|
144
|
+
key: 0,
|
|
145
|
+
class: a(l(g).loader)
|
|
146
|
+
}, [
|
|
147
|
+
N(l(de), {
|
|
148
|
+
size: "s",
|
|
149
|
+
color: u.value
|
|
150
|
+
}, null, 8, ["color"])
|
|
151
|
+
], 2)) : m("", !0),
|
|
152
|
+
_.$slots.before ? b(_.$slots, "before", { key: 1 }) : m("", !0),
|
|
153
|
+
s.value ? (r(), p("span", {
|
|
154
|
+
key: 2,
|
|
155
|
+
class: a(l(g).content)
|
|
156
|
+
}, [
|
|
157
|
+
b(_.$slots, "default")
|
|
158
|
+
], 2)) : m("", !0),
|
|
159
|
+
_.$slots.after ? b(_.$slots, "after", { key: 3 }) : m("", !0),
|
|
160
|
+
_.dropdown ? (r(), h(l(T), {
|
|
161
|
+
key: 4,
|
|
162
|
+
class: a(l(g).dropdownIcon),
|
|
163
|
+
name: "chevron-down-18"
|
|
164
|
+
}, null, 8, ["class"])) : m("", !0)
|
|
165
|
+
], 10, Pe));
|
|
166
|
+
}
|
|
167
|
+
}), xe = "_s_o7jd7_9", Re = "_xs_o7jd7_14", We = "_m_o7jd7_20", qe = "_l_o7jd7_25", He = "_button_o7jd7_31", W = {
|
|
168
|
+
s: xe,
|
|
169
|
+
xs: Re,
|
|
170
|
+
m: We,
|
|
171
|
+
l: qe,
|
|
172
|
+
button: He
|
|
173
|
+
}, Vt = /* @__PURE__ */ f({
|
|
174
|
+
__name: "button-icon",
|
|
175
|
+
props: {
|
|
176
|
+
icon: {},
|
|
177
|
+
size: { default: "m" },
|
|
178
|
+
className: {},
|
|
179
|
+
type: { default: "primary" },
|
|
180
|
+
disabled: { type: Boolean, default: !1 },
|
|
181
|
+
loading: { type: Boolean, default: !1 },
|
|
182
|
+
active: { type: Boolean, default: !1 },
|
|
183
|
+
name: {},
|
|
184
|
+
circle: { type: Boolean, default: !1 },
|
|
185
|
+
bordered: { type: Boolean, default: !1 }
|
|
186
|
+
},
|
|
187
|
+
emits: ["click"],
|
|
188
|
+
setup(o) {
|
|
189
|
+
const e = o, t = c(() => [W.button, W[e.size], e.className]), n = c(() => {
|
|
190
|
+
const i = e.size === "xs" ? "18" : "20";
|
|
191
|
+
return e.icon.replace(/-?\d*$/, `-${i}`);
|
|
192
|
+
}), s = c(() => e.size === "xs");
|
|
193
|
+
return (i, u) => (r(), h(l(H), E({ class: t.value }, e, {
|
|
194
|
+
"html-type": "button",
|
|
195
|
+
circle: s.value,
|
|
196
|
+
onClick: u[0] || (u[0] = (_) => i.$emit("click"))
|
|
197
|
+
}), {
|
|
198
|
+
before: k(() => [
|
|
199
|
+
N(l(T), { name: n.value }, null, 8, ["name"])
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 16, ["class", "circle"]));
|
|
203
|
+
}
|
|
204
|
+
}), Ve = "_button_1xnk4_1", Ae = {
|
|
205
|
+
button: Ve
|
|
206
|
+
}, At = /* @__PURE__ */ f({
|
|
207
|
+
__name: "button-link",
|
|
208
|
+
emits: ["click"],
|
|
209
|
+
setup(o) {
|
|
210
|
+
return (e, t) => (r(), p("button", {
|
|
211
|
+
class: a(l(Ae).button),
|
|
212
|
+
type: "button",
|
|
213
|
+
onClick: t[0] || (t[0] = (n) => e.$emit("click"))
|
|
214
|
+
}, [
|
|
215
|
+
N(l(T), { name: "plus-18" }),
|
|
216
|
+
b(e.$slots, "default")
|
|
217
|
+
], 2));
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
function V(o) {
|
|
221
|
+
return o ? o.flatMap((e) => e.type === J ? V(e.children) : [e]) : [];
|
|
222
|
+
}
|
|
223
|
+
function De(o) {
|
|
224
|
+
var e;
|
|
225
|
+
const t = Q(o);
|
|
226
|
+
return (e = t?.$el) != null ? e : t;
|
|
227
|
+
}
|
|
228
|
+
function Fe() {
|
|
229
|
+
const o = X(), e = Y(), t = c(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : De(e)), n = Object.assign({}, o.exposed), s = {};
|
|
230
|
+
for (const u in o.props) Object.defineProperty(s, u, {
|
|
231
|
+
enumerable: !0,
|
|
232
|
+
configurable: !0,
|
|
233
|
+
get: () => o.props[u]
|
|
234
|
+
});
|
|
235
|
+
if (Object.keys(n).length > 0) for (const u in n) Object.defineProperty(s, u, {
|
|
236
|
+
enumerable: !0,
|
|
237
|
+
configurable: !0,
|
|
238
|
+
get: () => n[u]
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(s, "$el", {
|
|
241
|
+
enumerable: !0,
|
|
242
|
+
configurable: !0,
|
|
243
|
+
get: () => o.vnode.el
|
|
244
|
+
}), o.exposed = s;
|
|
245
|
+
function i(u) {
|
|
246
|
+
e.value = u, u && (Object.defineProperty(s, "$el", {
|
|
247
|
+
enumerable: !0,
|
|
248
|
+
configurable: !0,
|
|
249
|
+
get: () => u instanceof Element ? u : u.$el
|
|
250
|
+
}), o.exposed = s);
|
|
251
|
+
}
|
|
252
|
+
return {
|
|
253
|
+
forwardRef: i,
|
|
254
|
+
currentRef: e,
|
|
255
|
+
currentElement: t
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
const Ge = f({
|
|
259
|
+
name: "PrimitiveSlot",
|
|
260
|
+
inheritAttrs: !1,
|
|
261
|
+
setup(o, { attrs: e, slots: t }) {
|
|
262
|
+
return () => {
|
|
263
|
+
if (!t.default) return null;
|
|
264
|
+
const n = V(t.default()), s = n.findIndex((v) => v.type !== Z);
|
|
265
|
+
if (s === -1) return n;
|
|
266
|
+
const i = n[s];
|
|
267
|
+
delete i.props?.ref;
|
|
268
|
+
const u = i.props ? E(e, i.props) : e, _ = ee({
|
|
269
|
+
...i,
|
|
270
|
+
props: {}
|
|
271
|
+
}, u);
|
|
272
|
+
return n.length === 1 ? _ : (n[s] = _, n);
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
}), Ke = [
|
|
276
|
+
"area",
|
|
277
|
+
"img",
|
|
278
|
+
"input"
|
|
279
|
+
], Je = f({
|
|
280
|
+
name: "Primitive",
|
|
281
|
+
inheritAttrs: !1,
|
|
282
|
+
props: {
|
|
283
|
+
asChild: {
|
|
284
|
+
type: Boolean,
|
|
285
|
+
default: !1
|
|
286
|
+
},
|
|
287
|
+
as: {
|
|
288
|
+
type: [String, Object],
|
|
289
|
+
default: "div"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
setup(o, { attrs: e, slots: t }) {
|
|
293
|
+
const n = o.asChild ? "template" : o.as;
|
|
294
|
+
return typeof n == "string" && Ke.includes(n) ? () => O(n, e) : n !== "template" ? () => O(o.as, e, { default: t.default }) : () => O(Ge, e, { default: t.default });
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
var Qe = /* @__PURE__ */ f({
|
|
298
|
+
__name: "Label",
|
|
299
|
+
props: {
|
|
300
|
+
for: {
|
|
301
|
+
type: String,
|
|
302
|
+
required: !1
|
|
303
|
+
},
|
|
304
|
+
asChild: {
|
|
305
|
+
type: Boolean,
|
|
306
|
+
required: !1
|
|
307
|
+
},
|
|
308
|
+
as: {
|
|
309
|
+
type: null,
|
|
310
|
+
required: !1,
|
|
311
|
+
default: "label"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
setup(o) {
|
|
315
|
+
const e = o;
|
|
316
|
+
return Fe(), (t, n) => (r(), h(l(Je), E(e, { onMousedown: n[0] || (n[0] = (s) => {
|
|
317
|
+
!s.defaultPrevented && s.detail > 1 && s.preventDefault();
|
|
318
|
+
}) }), {
|
|
319
|
+
default: k(() => [b(t.$slots, "default")]),
|
|
320
|
+
_: 3
|
|
321
|
+
}, 16));
|
|
322
|
+
}
|
|
323
|
+
}), Xe = Qe;
|
|
324
|
+
const Ye = "_label_1ic51_1", Ze = {
|
|
325
|
+
label: Ye
|
|
326
|
+
}, et = /* @__PURE__ */ f({
|
|
327
|
+
__name: "label",
|
|
328
|
+
props: {
|
|
329
|
+
className: {}
|
|
330
|
+
},
|
|
331
|
+
setup(o) {
|
|
332
|
+
const e = o, t = c(() => [
|
|
333
|
+
Ze.label,
|
|
334
|
+
e.className
|
|
335
|
+
]);
|
|
336
|
+
return (n, s) => (r(), h(l(Xe), {
|
|
337
|
+
class: a(t.value)
|
|
338
|
+
}, {
|
|
339
|
+
default: k(() => [
|
|
340
|
+
b(n.$slots, "default")
|
|
341
|
+
]),
|
|
342
|
+
_: 3
|
|
343
|
+
}, 8, ["class"]));
|
|
344
|
+
}
|
|
345
|
+
}), tt = "_content_1g21n_1", nt = "_label_1g21n_12", ot = "_header_1g21n_21", st = "_headerWrapper_1g21n_29", lt = "_title_1g21n_36", rt = "_subTitleRow_1g21n_44", at = "_subTitle_1g21n_44", ct = "_link_1g21n_56", it = "_linkUpper_1g21n_73", w = {
|
|
346
|
+
content: tt,
|
|
347
|
+
label: nt,
|
|
348
|
+
header: ot,
|
|
349
|
+
headerWrapper: st,
|
|
350
|
+
title: lt,
|
|
351
|
+
subTitleRow: rt,
|
|
352
|
+
subTitle: at,
|
|
353
|
+
link: ct,
|
|
354
|
+
linkUpper: it
|
|
355
|
+
}, ut = /* @__PURE__ */ f({
|
|
356
|
+
__name: "label-content",
|
|
357
|
+
emits: ["click"],
|
|
358
|
+
setup(o) {
|
|
359
|
+
const e = P(), t = c(() => C(e, "header")), n = c(() => C(e)), s = c(() => C(e, "subTitle")), i = c(() => C(e, "link")), u = c(() => t.value || n.value || s.value), _ = c(() => !n.value && !s.value), v = c(
|
|
360
|
+
() => [w.link, _.value && w.linkUpper].filter(Boolean)
|
|
361
|
+
);
|
|
362
|
+
return ($, L) => (r(), p("div", {
|
|
363
|
+
class: a(l(w).content)
|
|
364
|
+
}, [
|
|
365
|
+
u.value ? (r(), p("span", {
|
|
366
|
+
key: 0,
|
|
367
|
+
class: a(l(w).headerWrapper)
|
|
368
|
+
}, [
|
|
369
|
+
t.value ? (r(), p("span", {
|
|
370
|
+
key: 0,
|
|
371
|
+
class: a(l(w).header)
|
|
372
|
+
}, [
|
|
373
|
+
b($.$slots, "header")
|
|
374
|
+
], 2)) : m("", !0),
|
|
375
|
+
n.value ? (r(), p("span", {
|
|
376
|
+
key: 1,
|
|
377
|
+
class: a(l(w).title)
|
|
378
|
+
}, [
|
|
379
|
+
b($.$slots, "default")
|
|
380
|
+
], 2)) : m("", !0),
|
|
381
|
+
s.value ? (r(), p("span", {
|
|
382
|
+
key: 2,
|
|
383
|
+
class: a(l(w).subTitleRow)
|
|
384
|
+
}, [
|
|
385
|
+
M("span", {
|
|
386
|
+
class: a(l(w).subTitle)
|
|
387
|
+
}, [
|
|
388
|
+
b($.$slots, "subTitle")
|
|
389
|
+
], 2)
|
|
390
|
+
], 2)) : m("", !0)
|
|
391
|
+
], 2)) : m("", !0),
|
|
392
|
+
i.value ? (r(), p("span", {
|
|
393
|
+
key: 1,
|
|
394
|
+
class: a(v.value),
|
|
395
|
+
onClick: L[0] || (L[0] = (x) => $.$emit("click"))
|
|
396
|
+
}, [
|
|
397
|
+
b($.$slots, "link")
|
|
398
|
+
], 2)) : m("", !0)
|
|
399
|
+
], 2));
|
|
400
|
+
}
|
|
401
|
+
}), dt = "_wrapper_1i81c_1", _t = "_input_1i81c_8", pt = "_error_1i81c_38", mt = "_description_1i81c_51", ft = "_descriptionText_1i81c_62", bt = "_errorText_1i81c_66", yt = "_inputWrapper_1i81c_70", gt = "_leftSpace_1i81c_74", kt = "_rightSpace_1i81c_78", ht = "_leftIcon_1i81c_82", vt = "_rightIcon_1i81c_83", y = {
|
|
402
|
+
wrapper: dt,
|
|
403
|
+
input: _t,
|
|
404
|
+
error: pt,
|
|
405
|
+
description: mt,
|
|
406
|
+
descriptionText: ft,
|
|
407
|
+
errorText: bt,
|
|
408
|
+
inputWrapper: yt,
|
|
409
|
+
leftSpace: gt,
|
|
410
|
+
rightSpace: kt,
|
|
411
|
+
leftIcon: ht,
|
|
412
|
+
rightIcon: vt
|
|
413
|
+
}, $t = ["id", "value", "name", "type", "disabled", "placeholder", "aria-invalid"], wt = ["innerHTML"], Ct = ["innerHTML"], Dt = /* @__PURE__ */ f({
|
|
414
|
+
__name: "input",
|
|
415
|
+
props: /* @__PURE__ */ R({
|
|
416
|
+
value: {},
|
|
417
|
+
type: { default: "text" },
|
|
418
|
+
id: {},
|
|
419
|
+
name: {},
|
|
420
|
+
disabled: { type: Boolean },
|
|
421
|
+
title: {},
|
|
422
|
+
header: {},
|
|
423
|
+
subTitle: {},
|
|
424
|
+
link: {},
|
|
425
|
+
placeholder: {},
|
|
426
|
+
loading: { type: Boolean },
|
|
427
|
+
error: {},
|
|
428
|
+
description: {},
|
|
429
|
+
className: {},
|
|
430
|
+
leftIcon: {},
|
|
431
|
+
rightIcon: {}
|
|
432
|
+
}, {
|
|
433
|
+
value: {},
|
|
434
|
+
valueModifiers: {}
|
|
435
|
+
}),
|
|
436
|
+
emits: /* @__PURE__ */ R(["update:value", "enter", "clickLink", "clickIcon", "click", "focus", "blur"], ["update:value"]),
|
|
437
|
+
setup(o, { emit: e }) {
|
|
438
|
+
const t = o, n = e, s = te(), i = ne(o, "value"), u = c(() => [
|
|
439
|
+
y.input,
|
|
440
|
+
{
|
|
441
|
+
[y.disabled]: t.disabled,
|
|
442
|
+
[y.error]: t.error,
|
|
443
|
+
[y.loading]: t.loading,
|
|
444
|
+
[y.leftSpace]: !!t.leftIcon,
|
|
445
|
+
[y.rightSpace]: !!t.rightIcon
|
|
446
|
+
},
|
|
447
|
+
t.className
|
|
448
|
+
]), _ = c(() => t.header || t.title || t.subTitle || t.link), v = c(() => t.description || t.error), $ = (d) => {
|
|
449
|
+
d.key === "Enter" && n("enter");
|
|
450
|
+
}, L = (d) => {
|
|
451
|
+
n("update:value", d.target.value);
|
|
452
|
+
}, x = () => {
|
|
453
|
+
n("focus");
|
|
454
|
+
}, A = () => {
|
|
455
|
+
n("blur");
|
|
456
|
+
}, D = () => {
|
|
457
|
+
n("clickLink");
|
|
458
|
+
}, F = () => {
|
|
459
|
+
n("click");
|
|
460
|
+
}, G = (d) => {
|
|
461
|
+
d.preventDefault(), n("clickIcon");
|
|
462
|
+
};
|
|
463
|
+
return (d, Wt) => (r(), p("div", {
|
|
464
|
+
class: a(l(y).wrapper)
|
|
465
|
+
}, [
|
|
466
|
+
_.value ? (r(), h(l(et), {
|
|
467
|
+
key: 0,
|
|
468
|
+
for: d.id,
|
|
469
|
+
onClick: D
|
|
470
|
+
}, {
|
|
471
|
+
default: k(() => [
|
|
472
|
+
N(l(ut), null, {
|
|
473
|
+
header: k(() => [
|
|
474
|
+
S(B(t.header), 1)
|
|
475
|
+
]),
|
|
476
|
+
subTitle: k(() => [
|
|
477
|
+
S(B(t.subTitle), 1)
|
|
478
|
+
]),
|
|
479
|
+
link: k(() => [
|
|
480
|
+
S(B(t.link), 1)
|
|
481
|
+
]),
|
|
482
|
+
default: k(() => [
|
|
483
|
+
S(" " + B(t.title) + " ", 1)
|
|
484
|
+
]),
|
|
485
|
+
_: 1
|
|
486
|
+
})
|
|
487
|
+
]),
|
|
488
|
+
_: 1
|
|
489
|
+
}, 8, ["for"])) : m("", !0),
|
|
490
|
+
M("div", {
|
|
491
|
+
class: a(l(y).inputWrapper)
|
|
492
|
+
}, [
|
|
493
|
+
d.leftIcon ? (r(), h(l(T), {
|
|
494
|
+
key: 0,
|
|
495
|
+
name: d.leftIcon,
|
|
496
|
+
class: a(l(y).leftIcon)
|
|
497
|
+
}, null, 8, ["name", "class"])) : m("", !0),
|
|
498
|
+
M("input", E({
|
|
499
|
+
id: d.id,
|
|
500
|
+
value: i.value,
|
|
501
|
+
name: d.name,
|
|
502
|
+
type: d.type,
|
|
503
|
+
disabled: d.disabled || d.loading,
|
|
504
|
+
placeholder: d.placeholder,
|
|
505
|
+
class: u.value,
|
|
506
|
+
"aria-invalid": !!d.error
|
|
507
|
+
}, l(s), {
|
|
508
|
+
onInput: L,
|
|
509
|
+
onKeydown: $,
|
|
510
|
+
onFocus: x,
|
|
511
|
+
onBlur: A,
|
|
512
|
+
onClick: F
|
|
513
|
+
}), null, 16, $t),
|
|
514
|
+
d.rightIcon ? (r(), h(l(T), {
|
|
515
|
+
key: 1,
|
|
516
|
+
name: d.rightIcon,
|
|
517
|
+
class: a(l(y).rightIcon),
|
|
518
|
+
onClick: G
|
|
519
|
+
}, null, 8, ["name", "class"])) : m("", !0)
|
|
520
|
+
], 2),
|
|
521
|
+
v.value ? (r(), p("div", {
|
|
522
|
+
key: 1,
|
|
523
|
+
class: a(l(y).description)
|
|
524
|
+
}, [
|
|
525
|
+
d.error ? (r(), p("div", {
|
|
526
|
+
key: 0,
|
|
527
|
+
class: a(l(y).errorText),
|
|
528
|
+
innerHTML: d.error
|
|
529
|
+
}, null, 10, wt)) : m("", !0),
|
|
530
|
+
d.description ? (r(), p("div", {
|
|
531
|
+
key: 1,
|
|
532
|
+
class: a(l(y).descriptionText),
|
|
533
|
+
innerHTML: d.description
|
|
534
|
+
}, null, 10, Ct)) : m("", !0)
|
|
535
|
+
], 2)) : m("", !0)
|
|
536
|
+
], 2));
|
|
537
|
+
}
|
|
538
|
+
}), Tt = "_plank_1yp3k_1", It = "_accent_1yp3k_26", St = "_danger_1yp3k_32", Bt = "_text_1yp3k_38", Nt = "_icon_1yp3k_42", j = {
|
|
539
|
+
plank: Tt,
|
|
540
|
+
default: "_default_1yp3k_20",
|
|
541
|
+
accent: It,
|
|
542
|
+
danger: St,
|
|
543
|
+
text: Bt,
|
|
544
|
+
icon: Nt
|
|
545
|
+
}, Ft = /* @__PURE__ */ f({
|
|
546
|
+
__name: "plank",
|
|
547
|
+
props: {
|
|
548
|
+
type: { default: "default" },
|
|
549
|
+
icon: {},
|
|
550
|
+
label: {}
|
|
551
|
+
},
|
|
552
|
+
emits: ["click"],
|
|
553
|
+
setup(o) {
|
|
554
|
+
const e = o, t = P(), n = c(() => C(t)), s = c(() => [j.plank, j[e.type]]);
|
|
555
|
+
return (i, u) => (r(), p("div", {
|
|
556
|
+
class: a(s.value)
|
|
557
|
+
}, [
|
|
558
|
+
i.icon ? (r(), p("div", {
|
|
559
|
+
key: 0,
|
|
560
|
+
class: a(l(j).icon)
|
|
561
|
+
}, [
|
|
562
|
+
N(l(T), { name: i.icon }, null, 8, ["name"])
|
|
563
|
+
], 2)) : m("", !0),
|
|
564
|
+
n.value ? (r(), p("div", {
|
|
565
|
+
key: 1,
|
|
566
|
+
class: a(l(j).text)
|
|
567
|
+
}, [
|
|
568
|
+
b(i.$slots, "default")
|
|
569
|
+
], 2)) : m("", !0),
|
|
570
|
+
i.label ? (r(), h(l(H), {
|
|
571
|
+
key: 2,
|
|
572
|
+
size: "xs",
|
|
573
|
+
type: "secondary",
|
|
574
|
+
onClick: u[0] || (u[0] = (_) => i.$emit("click"))
|
|
575
|
+
}, {
|
|
576
|
+
default: k(() => [
|
|
577
|
+
S(B(i.label), 1)
|
|
578
|
+
]),
|
|
579
|
+
_: 1
|
|
580
|
+
})) : m("", !0)
|
|
581
|
+
], 2));
|
|
582
|
+
}
|
|
583
|
+
}), Lt = "_text_dbd8t_1", jt = "_primary_dbd8t_10", Ut = "_medium_dbd8t_15", zt = "_secondary_dbd8t_20", Mt = "_accent_dbd8t_30", Et = "_subtitle_dbd8t_40", U = {
|
|
584
|
+
text: Lt,
|
|
585
|
+
primary: jt,
|
|
586
|
+
medium: Ut,
|
|
587
|
+
secondary: zt,
|
|
588
|
+
accent: Mt,
|
|
589
|
+
subtitle: Et,
|
|
590
|
+
"color-main": "_color-main_dbd8t_46",
|
|
591
|
+
"color-secondary": "_color-secondary_dbd8t_50",
|
|
592
|
+
"color-semilight": "_color-semilight_dbd8t_54",
|
|
593
|
+
"color-light": "_color-light_dbd8t_58",
|
|
594
|
+
"color-invert": "_color-invert_dbd8t_62",
|
|
595
|
+
"color-danger": "_color-danger_dbd8t_66",
|
|
596
|
+
"color-success": "_color-success_dbd8t_70"
|
|
597
|
+
}, Gt = /* @__PURE__ */ f({
|
|
598
|
+
__name: "text",
|
|
599
|
+
props: {
|
|
600
|
+
tagName: { default: "p" },
|
|
601
|
+
kind: { default: "primary" },
|
|
602
|
+
weight: {},
|
|
603
|
+
color: {}
|
|
604
|
+
},
|
|
605
|
+
setup(o) {
|
|
606
|
+
const e = o, t = c(() => [
|
|
607
|
+
U.text,
|
|
608
|
+
U[e.kind],
|
|
609
|
+
e.weight && U[e.weight],
|
|
610
|
+
e.color && U[`color-${e.color}`]
|
|
611
|
+
]);
|
|
612
|
+
return (n, s) => (r(), h(q(n.tagName), {
|
|
613
|
+
class: a(t.value)
|
|
614
|
+
}, {
|
|
615
|
+
default: k(() => [
|
|
616
|
+
b(n.$slots, "default")
|
|
617
|
+
]),
|
|
618
|
+
_: 3
|
|
619
|
+
}, 8, ["class"]));
|
|
620
|
+
}
|
|
621
|
+
}), Ot = "_title_1m0wo_1", Pt = "_medium_1m0wo_15", z = {
|
|
622
|
+
title: Ot,
|
|
623
|
+
"level-1": "_level-1_1m0wo_10",
|
|
624
|
+
medium: Pt,
|
|
625
|
+
"level-2": "_level-2_1m0wo_20",
|
|
626
|
+
"level-3": "_level-3_1m0wo_30",
|
|
627
|
+
"level-4": "_level-4_1m0wo_40",
|
|
628
|
+
"color-main": "_color-main_1m0wo_50",
|
|
629
|
+
"color-secondary": "_color-secondary_1m0wo_54",
|
|
630
|
+
"color-semilight": "_color-semilight_1m0wo_58",
|
|
631
|
+
"color-light": "_color-light_1m0wo_62",
|
|
632
|
+
"color-invert": "_color-invert_1m0wo_66",
|
|
633
|
+
"color-danger": "_color-danger_1m0wo_70",
|
|
634
|
+
"color-success": "_color-success_1m0wo_74"
|
|
635
|
+
}, Kt = /* @__PURE__ */ f({
|
|
636
|
+
__name: "title",
|
|
637
|
+
props: {
|
|
638
|
+
level: {},
|
|
639
|
+
className: {},
|
|
640
|
+
weight: {},
|
|
641
|
+
color: {}
|
|
642
|
+
},
|
|
643
|
+
setup(o) {
|
|
644
|
+
const e = o, t = c(() => [
|
|
645
|
+
z.title,
|
|
646
|
+
z[`level-${e.level ?? 1}`],
|
|
647
|
+
e.className,
|
|
648
|
+
e.weight && z[e.weight],
|
|
649
|
+
e.color && z[`color-${e.color}`]
|
|
650
|
+
]), n = c(() => `h${e.level ?? 1}`);
|
|
651
|
+
return (s, i) => (r(), h(q(n.value), {
|
|
652
|
+
class: a(t.value)
|
|
653
|
+
}, {
|
|
654
|
+
default: k(() => [
|
|
655
|
+
b(s.$slots, "default")
|
|
656
|
+
]),
|
|
657
|
+
_: 3
|
|
658
|
+
}, 8, ["class"]));
|
|
659
|
+
}
|
|
660
|
+
}), xt = "_error_lk2jx_1", Rt = {
|
|
661
|
+
error: xt
|
|
662
|
+
}, Jt = /* @__PURE__ */ f({
|
|
663
|
+
__name: "error",
|
|
664
|
+
props: {
|
|
665
|
+
className: {}
|
|
666
|
+
},
|
|
667
|
+
setup(o) {
|
|
668
|
+
const e = o, t = c(() => [
|
|
669
|
+
Rt.error,
|
|
670
|
+
e.className
|
|
671
|
+
]);
|
|
672
|
+
return (n, s) => (r(), p("span", {
|
|
673
|
+
class: a(t.value)
|
|
674
|
+
}, [
|
|
675
|
+
b(n.$slots, "default")
|
|
676
|
+
], 2));
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
export {
|
|
680
|
+
H as UiButton,
|
|
681
|
+
Vt as UiButtonIcon,
|
|
682
|
+
At as UiButtonLink,
|
|
683
|
+
Jt as UiError,
|
|
684
|
+
T as UiIcon,
|
|
685
|
+
Dt as UiInput,
|
|
686
|
+
et as UiLabel,
|
|
687
|
+
de as UiLoader,
|
|
688
|
+
Ft as UiPlank,
|
|
689
|
+
Gt as UiText,
|
|
690
|
+
Kt as UiTitle,
|
|
691
|
+
Ht as injectSvgSprite
|
|
692
|
+
};
|