@huntflow/ui 0.1.7 → 0.1.8
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/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-CzhZOw1N.js +4 -0
- package/dist/ui.es.js +692 -0
- package/package.json +2 -1
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_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%}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._button_8zhhb_1{position:relative;display:inline-flex;align-items:center;justify-content:center;border:solid 1px;cursor:pointer;font-family:var(--hf-font-family-body),sans-serif;font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:var(--hf-spacing-button-icon)}._button_8zhhb_1:active{background-color:#999}._button_8zhhb_1:focus{outline:none}._button_8zhhb_1:focus-visible{outline:solid 3px var(--hf-color-button-disable-default)}._button_8zhhb_1:is(._disabled_8zhhb_1),._button_8zhhb_1:is(._disabled_8zhhb_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_8zhhb_1._loading_8zhhb_1{cursor:default}._button_8zhhb_1._loading_8zhhb_1>*:not(._loader_8zhhb_1){visibility:hidden}._button_8zhhb_1+._button_8zhhb_1{margin-left:var(--hf-spacing-button-between)}._content_8zhhb_1{display:flex;line-height:inherit}._content_8zhhb_1:first-child:last-child{width:100%;text-align:center}._loader_8zhhb_1{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}._dropdownIcon_8zhhb_1{margin-left:calc(var(--hf-spacing-button-icon) * -1)}._s_8zhhb_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_8zhhb_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_8zhhb_1._square_8zhhb_1{border-radius:var(--hf-radius-button-xs)}._xs_8zhhb_1._circle_8zhhb_1{border-radius:var(--hf-radius-button-circle)}._m_8zhhb_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_8zhhb_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_8zhhb_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_8zhhb_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_8zhhb_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._secondary_8zhhb_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_8zhhb_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_8zhhb_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._accent_8zhhb_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_8zhhb_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_8zhhb_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._danger_8zhhb_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_8zhhb_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_8zhhb_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._jobsites_8zhhb_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_8zhhb_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_8zhhb_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._ghost_8zhhb_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost_8zhhb_1:hover{background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_8zhhb_1:active{background-color:var(--hf-color-button-secondary-fill-active)}._ghost-danger_8zhhb_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost-danger_8zhhb_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_8zhhb_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_1oi85_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_1oi85_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs);border-radius:var(--hf-radius-button-circle)}._m_1oi85_20{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_1oi85_25{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_1oi85_31{padding:0}._button_1vqio_1{padding:0 2px 0 0;border:none;margin:0;cursor:pointer;display:flex;flex-direction:row;gap:var(--hf-spacing-button-link-s);align-items:center;background-color:transparent;color:var(--hf-color-link-default);font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-button-link-s);font-style:normal;font-weight:var(--hf-font-weight-button-link-s);line-height:var(--hf-font-line-height-button-link-s)}._button_1vqio_1:hover{color:var(--hf-color-link-hover)}._label_1a45q_1{color:var(--hf-color-text-main);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)}._content_14uwa_1{display:flex;flex-direction:row;gap:var(--hf-spacing-xs);flex:1;margin-bottom:var(--hf-spacing-xs)}._label_14uwa_9{display:flex;flex-direction:row;gap:var(--hf-spacing-xs);font-style:normal;flex:1;margin-bottom:var(--hf-spacing-xs)}._header_14uwa_18{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_14uwa_26{flex-grow:1;gap:var(--hf-spacing-xs);display:flex;flex-direction:column}._title_14uwa_33{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_14uwa_41{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_14uwa_41{line-height:var(--hf-font-line-height-label-subtitle)}._link_14uwa_53{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_14uwa_53 a{text-decoration:none;color:var(--hf-color-text-semilight)}._linkUpper_14uwa_70{margin-bottom:1px}._wrapper_ep5oa_1{margin-bottom:var(--hf-spacing-xs)}._input_ep5oa_5{border-radius:var(--hf-radius-input-default);border:var(--hf-border-xs) solid var(--hf-color-input-border-default);background:var(--hf-color-input-background-default);padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-right-default) var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-default);width:100%;box-sizing:border-box;color:var(--hf-color-input-text-default);font-size:var(--hf-font-size-field-text);font-weight:var(--hf-font-weight-field-text);line-height:var(--hf-font-line-height-field-text)}._input_ep5oa_5:active{border-color:var(--hf-color-input-border-focus)}._input_ep5oa_5:focus{border-color:var(--hf-color-input-border-focus);outline:solid 3px var(--hf-color-input-border-focus-visible)}._input_ep5oa_5:disabled{outline:none;border-color:var(--hf-color-input-text-disable);background:var(--hf-color-input-background-disable);color:var(--hf-color-input-text-disable)}._error_ep5oa_36,._error_ep5oa_36:active{border-color:var(--hf-color-input-border-error)}._error_ep5oa_36:focus{border-color:var(--hf-color-input-border-error);outline:solid 3px var(--hf-color-input-border-error-focus-visible)}._description_ep5oa_48{margin-top:var(--hf-spacing-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_ep5oa_48 a{text-decoration:underline}._descriptionText_ep5oa_59{color:var(--hf-color-input-text-description)}._errorText_ep5oa_63{color:var(--hf-color-text-danger)}._inputWrapper_ep5oa_67{position:relative}._leftSpace_ep5oa_71{padding-left:42px}._rightSpace_ep5oa_75{padding-right:42px}._leftIcon_ep5oa_79,._rightIcon_ep5oa_80{position:absolute;height:100%}._leftIcon_ep5oa_79{left:15px}._rightIcon_ep5oa_80{padding:0 9px;right:0}._rightIcon_ep5oa_80[aria-label^=close]{color:var(--hf-color-text-light);cursor:pointer}._plank_8tn62_1{border-radius:var(--hf-radius-m);padding:var(--hf-spacing-m) var(--hf-spacing-l);border-width:1px;border-style:solid;font-family:var(--hf-font-family-body),sans-serif;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);font-style:normal;display:flex;flex-direction:row;gap:var(--hf-spacing-m);align-items:center;justify-content:space-between}._default_8tn62_19{color:var(--hf-color-text-main);border-color:var(--hf-color-plank-default-border);background-color:var(--hf-color-plank-default-background)}._accent_8tn62_25{color:var(--hf-color-plank-success-text);border-color:var(--hf-color-plank-success-border);background-color:var(--hf-color-plank-success-background)}._danger_8tn62_31{color:var(--hf-color-plank-danger-text);border-color:var(--hf-color-plank-danger-border);background-color:var(--hf-color-plank-danger-background)}._text_8tn62_37{flex-grow:1}._icon_8tn62_41{width:var(--hf-font-line-height-text-primary);height:var(--hf-font-line-height-text-primary)}._text_13xdn_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._primary_13xdn_8{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_13xdn_8._medium_13xdn_12{font-weight:var(--hf-font-weight-text-primary-medium)}._secondary_13xdn_17{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_13xdn_17._medium_13xdn_12{font-weight:var(--hf-font-weight-text-secondary-medium)}._accent_13xdn_26{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_13xdn_26._medium_13xdn_12{font-weight:var(--hf-font-weight-text-accent-medium)}._subtitle_13xdn_35{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_13xdn_41{color:var(--hf-color-text-main)}._color-secondary_13xdn_45{color:var(--hf-color-text-secondary)}._color-semilight_13xdn_49{color:var(--hf-color-text-semilight)}._color-light_13xdn_53{color:var(--hf-color-text-light)}._color-invert_13xdn_57{color:var(--hf-color-text-invert)}._color-danger_13xdn_61{color:var(--hf-color-text-danger)}._color-success_13xdn_65{color:var(--hf-color-text-success)}._title_1qk7l_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._level-1_1qk7l_8{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_1qk7l_8._medium_1qk7l_12{font-weight:var(--hf-font-weight-text-h1-medium)}._level-2_1qk7l_17{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_1qk7l_17._medium_1qk7l_12{font-weight:var(--hf-font-weight-text-h2-medium)}._level-3_1qk7l_26{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_1qk7l_26._medium_1qk7l_12{font-weight:var(--hf-font-weight-text-h3-medium)}._level-4_1qk7l_35{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_1qk7l_35._medium_1qk7l_12{font-weight:var(--hf-font-weight-text-h4-medium)}._color-main_1qk7l_44{color:var(--hf-color-text-main)}._color-secondary_1qk7l_48{color:var(--hf-color-text-secondary)}._color-semilight_1qk7l_52{color:var(--hf-color-text-semilight)}._color-light_1qk7l_56{color:var(--hf-color-text-light)}._color-invert_1qk7l_60{color:var(--hf-color-text-invert)}._color-danger_1qk7l_64{color:var(--hf-color-text-danger)}._color-success_1qk7l_68{color:var(--hf-color-text-success)}._error_1y1de_1{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)}")),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 U, useSlots as E, createCommentVNode as m, renderSlot as h, createBlock as k, createVNode as B, mergeProps as M, withCtx as g, Fragment as J, toValue as Q, getCurrentInstance as X, ref as Y, Comment as Z, cloneVNode as ee, h as j, mergeModels as P, useAttrs as te, useModel as ne, createTextVNode as z, toDisplayString as S, resolveDynamicComponent as W } 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_t6bg6_10", se = "_circle_t6bg6_15", le = "_white_t6bg6_22", re = "_black_t6bg6_26", ae = "_s_t6bg6_30", ce = "_m_t6bg6_35", ie = "_l_t6bg6_10", ue = "_spinner_t6bg6_45", I = {
|
|
7
|
+
loader: oe,
|
|
8
|
+
circle: se,
|
|
9
|
+
"loader-animation": "_loader-animation_t6bg6_1",
|
|
10
|
+
white: le,
|
|
11
|
+
black: re,
|
|
12
|
+
s: ae,
|
|
13
|
+
m: ce,
|
|
14
|
+
l: ie,
|
|
15
|
+
spinner: ue
|
|
16
|
+
}, _e = /* @__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
|
+
}), de = ["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
|
+
U("use", {
|
|
53
|
+
"xlink:href": `#${s.name}`
|
|
54
|
+
}, null, 8, pe)
|
|
55
|
+
], 14, de));
|
|
56
|
+
}
|
|
57
|
+
}), fe = "_icon_1p8iz_2", he = {
|
|
58
|
+
icon: fe
|
|
59
|
+
}, be = (o, e) => {
|
|
60
|
+
const t = o.__vccOpts || o;
|
|
61
|
+
for (const [n, s] of e)
|
|
62
|
+
t[n] = s;
|
|
63
|
+
return t;
|
|
64
|
+
}, ye = {
|
|
65
|
+
$style: he
|
|
66
|
+
}, T = /* @__PURE__ */ be(me, [["__cssModules", ye]]), 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-CzhZOw1N.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
|
+
}, ge = "_button_8zhhb_1", ke = "_disabled_8zhhb_1", ve = "_loading_8zhhb_1", $e = "_loader_8zhhb_1", we = "_content_8zhhb_1", Ce = "_dropdownIcon_8zhhb_1", Te = "_s_8zhhb_2", Ie = "_xs_8zhhb_1", ze = "_square_8zhhb_1", Se = "_circle_8zhhb_1", Be = "_m_8zhhb_1", Ne = "_l_8zhhb_1", Le = "_primary_8zhhb_1", qe = "_secondary_8zhhb_1", xe = "_accent_8zhhb_1", Ue = "_danger_8zhhb_1", Me = "_jobsites_8zhhb_1", je = "_ghost_8zhhb_1", y = {
|
|
79
|
+
button: ge,
|
|
80
|
+
disabled: ke,
|
|
81
|
+
loading: ve,
|
|
82
|
+
loader: $e,
|
|
83
|
+
content: we,
|
|
84
|
+
dropdownIcon: Ce,
|
|
85
|
+
s: Te,
|
|
86
|
+
xs: Ie,
|
|
87
|
+
square: ze,
|
|
88
|
+
circle: Se,
|
|
89
|
+
m: Be,
|
|
90
|
+
l: Ne,
|
|
91
|
+
primary: Le,
|
|
92
|
+
secondary: qe,
|
|
93
|
+
accent: xe,
|
|
94
|
+
danger: Ue,
|
|
95
|
+
jobsites: Me,
|
|
96
|
+
ghost: je,
|
|
97
|
+
"ghost-danger": "_ghost-danger_8zhhb_1"
|
|
98
|
+
}, Ee = ["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 = E(), 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
|
+
y.button,
|
|
125
|
+
y[e.size],
|
|
126
|
+
y[e.type],
|
|
127
|
+
e.circle ? [y.circle] : [y.square],
|
|
128
|
+
{
|
|
129
|
+
[y.disabled]: e.disabled,
|
|
130
|
+
[y.loading]: e.loading,
|
|
131
|
+
[y.active]: e.active,
|
|
132
|
+
[y.bordered]: e.bordered
|
|
133
|
+
},
|
|
134
|
+
e.className
|
|
135
|
+
]), u = c(() => n[e.type] || "white");
|
|
136
|
+
return (d, v) => (r(), p("button", {
|
|
137
|
+
name: d.name,
|
|
138
|
+
class: a(i.value),
|
|
139
|
+
type: d.htmlType,
|
|
140
|
+
disabled: d.disabled || d.loading,
|
|
141
|
+
onClick: v[0] || (v[0] = ($) => d.$emit("click"))
|
|
142
|
+
}, [
|
|
143
|
+
d.loading ? (r(), p("div", {
|
|
144
|
+
key: 0,
|
|
145
|
+
class: a(l(y).loader)
|
|
146
|
+
}, [
|
|
147
|
+
B(l(_e), {
|
|
148
|
+
size: "s",
|
|
149
|
+
color: u.value
|
|
150
|
+
}, null, 8, ["color"])
|
|
151
|
+
], 2)) : m("", !0),
|
|
152
|
+
d.$slots.before ? h(d.$slots, "before", { key: 1 }) : m("", !0),
|
|
153
|
+
s.value ? (r(), p("span", {
|
|
154
|
+
key: 2,
|
|
155
|
+
class: a(l(y).content)
|
|
156
|
+
}, [
|
|
157
|
+
h(d.$slots, "default")
|
|
158
|
+
], 2)) : m("", !0),
|
|
159
|
+
d.$slots.after ? h(d.$slots, "after", { key: 3 }) : m("", !0),
|
|
160
|
+
d.dropdown ? (r(), k(l(T), {
|
|
161
|
+
key: 4,
|
|
162
|
+
class: a(l(y).dropdownIcon),
|
|
163
|
+
name: "chevron-down-18"
|
|
164
|
+
}, null, 8, ["class"])) : m("", !0)
|
|
165
|
+
], 10, Ee));
|
|
166
|
+
}
|
|
167
|
+
}), Oe = "_s_1oi85_9", Pe = "_xs_1oi85_14", Re = "_m_1oi85_20", We = "_l_1oi85_25", He = "_button_1oi85_31", R = {
|
|
168
|
+
s: Oe,
|
|
169
|
+
xs: Pe,
|
|
170
|
+
m: Re,
|
|
171
|
+
l: We,
|
|
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(() => [R.button, R[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(), k(l(H), M({ class: t.value }, e, {
|
|
194
|
+
"html-type": "button",
|
|
195
|
+
circle: s.value,
|
|
196
|
+
onClick: u[0] || (u[0] = (d) => i.$emit("click"))
|
|
197
|
+
}), {
|
|
198
|
+
before: g(() => [
|
|
199
|
+
B(l(T), { name: n.value }, null, 8, ["name"])
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 16, ["class", "circle"]));
|
|
203
|
+
}
|
|
204
|
+
}), Ve = "_button_1vqio_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
|
+
B(l(T), { name: "plus-18" }),
|
|
216
|
+
h(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 ? M(e, i.props) : e, d = ee({
|
|
269
|
+
...i,
|
|
270
|
+
props: {}
|
|
271
|
+
}, u);
|
|
272
|
+
return n.length === 1 ? d : (n[s] = d, 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) ? () => j(n, e) : n !== "template" ? () => j(o.as, e, { default: t.default }) : () => j(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(), k(l(Je), M(e, { onMousedown: n[0] || (n[0] = (s) => {
|
|
317
|
+
!s.defaultPrevented && s.detail > 1 && s.preventDefault();
|
|
318
|
+
}) }), {
|
|
319
|
+
default: g(() => [h(t.$slots, "default")]),
|
|
320
|
+
_: 3
|
|
321
|
+
}, 16));
|
|
322
|
+
}
|
|
323
|
+
}), Xe = Qe;
|
|
324
|
+
const Ye = "_label_1a45q_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(), k(l(Xe), {
|
|
337
|
+
class: a(t.value)
|
|
338
|
+
}, {
|
|
339
|
+
default: g(() => [
|
|
340
|
+
h(n.$slots, "default")
|
|
341
|
+
]),
|
|
342
|
+
_: 3
|
|
343
|
+
}, 8, ["class"]));
|
|
344
|
+
}
|
|
345
|
+
}), tt = "_content_14uwa_1", nt = "_label_14uwa_9", ot = "_header_14uwa_18", st = "_headerWrapper_14uwa_26", lt = "_title_14uwa_33", rt = "_subTitleRow_14uwa_41", at = "_subTitle_14uwa_41", ct = "_link_14uwa_53", it = "_linkUpper_14uwa_70", 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 = E(), 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), d = c(() => !n.value && !s.value), v = c(
|
|
360
|
+
() => [w.link, d.value && w.linkUpper].filter(Boolean)
|
|
361
|
+
);
|
|
362
|
+
return ($, N) => (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
|
+
h($.$slots, "header")
|
|
374
|
+
], 2)) : m("", !0),
|
|
375
|
+
n.value ? (r(), p("span", {
|
|
376
|
+
key: 1,
|
|
377
|
+
class: a(l(w).title)
|
|
378
|
+
}, [
|
|
379
|
+
h($.$slots, "default")
|
|
380
|
+
], 2)) : m("", !0),
|
|
381
|
+
s.value ? (r(), p("span", {
|
|
382
|
+
key: 2,
|
|
383
|
+
class: a(l(w).subTitleRow)
|
|
384
|
+
}, [
|
|
385
|
+
U("span", {
|
|
386
|
+
class: a(l(w).subTitle)
|
|
387
|
+
}, [
|
|
388
|
+
h($.$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: N[0] || (N[0] = (O) => $.$emit("click"))
|
|
396
|
+
}, [
|
|
397
|
+
h($.$slots, "link")
|
|
398
|
+
], 2)) : m("", !0)
|
|
399
|
+
], 2));
|
|
400
|
+
}
|
|
401
|
+
}), _t = "_wrapper_ep5oa_1", dt = "_input_ep5oa_5", pt = "_error_ep5oa_36", mt = "_description_ep5oa_48", ft = "_descriptionText_ep5oa_59", ht = "_errorText_ep5oa_63", bt = "_inputWrapper_ep5oa_67", yt = "_leftSpace_ep5oa_71", gt = "_rightSpace_ep5oa_75", kt = "_leftIcon_ep5oa_79", vt = "_rightIcon_ep5oa_80", b = {
|
|
402
|
+
wrapper: _t,
|
|
403
|
+
input: dt,
|
|
404
|
+
error: pt,
|
|
405
|
+
description: mt,
|
|
406
|
+
descriptionText: ft,
|
|
407
|
+
errorText: ht,
|
|
408
|
+
inputWrapper: bt,
|
|
409
|
+
leftSpace: yt,
|
|
410
|
+
rightSpace: gt,
|
|
411
|
+
leftIcon: kt,
|
|
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__ */ P({
|
|
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__ */ P(["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
|
+
b.input,
|
|
440
|
+
{
|
|
441
|
+
[b.disabled]: t.disabled,
|
|
442
|
+
[b.error]: t.error,
|
|
443
|
+
[b.loading]: t.loading,
|
|
444
|
+
[b.leftSpace]: !!t.leftIcon,
|
|
445
|
+
[b.rightSpace]: !!t.rightIcon
|
|
446
|
+
},
|
|
447
|
+
t.className
|
|
448
|
+
]), d = c(() => t.header || t.title || t.subTitle || t.link), v = c(() => t.description || t.error), $ = (_) => {
|
|
449
|
+
_.key === "Enter" && n("enter");
|
|
450
|
+
}, N = (_) => {
|
|
451
|
+
n("update:value", _.target.value);
|
|
452
|
+
}, O = () => {
|
|
453
|
+
n("focus");
|
|
454
|
+
}, A = () => {
|
|
455
|
+
n("blur");
|
|
456
|
+
}, D = () => {
|
|
457
|
+
n("clickLink");
|
|
458
|
+
}, F = () => {
|
|
459
|
+
n("click");
|
|
460
|
+
}, G = (_) => {
|
|
461
|
+
_.preventDefault(), n("clickIcon");
|
|
462
|
+
};
|
|
463
|
+
return (_, Rt) => (r(), p("div", {
|
|
464
|
+
class: a(l(b).wrapper)
|
|
465
|
+
}, [
|
|
466
|
+
d.value ? (r(), k(l(et), {
|
|
467
|
+
key: 0,
|
|
468
|
+
for: _.id,
|
|
469
|
+
onClick: D
|
|
470
|
+
}, {
|
|
471
|
+
default: g(() => [
|
|
472
|
+
B(l(ut), null, {
|
|
473
|
+
header: g(() => [
|
|
474
|
+
z(S(t.header), 1)
|
|
475
|
+
]),
|
|
476
|
+
subTitle: g(() => [
|
|
477
|
+
z(S(t.subTitle), 1)
|
|
478
|
+
]),
|
|
479
|
+
link: g(() => [
|
|
480
|
+
z(S(t.link), 1)
|
|
481
|
+
]),
|
|
482
|
+
default: g(() => [
|
|
483
|
+
z(" " + S(t.title) + " ", 1)
|
|
484
|
+
]),
|
|
485
|
+
_: 1
|
|
486
|
+
})
|
|
487
|
+
]),
|
|
488
|
+
_: 1
|
|
489
|
+
}, 8, ["for"])) : m("", !0),
|
|
490
|
+
U("div", {
|
|
491
|
+
class: a(l(b).inputWrapper)
|
|
492
|
+
}, [
|
|
493
|
+
_.leftIcon ? (r(), k(l(T), {
|
|
494
|
+
key: 0,
|
|
495
|
+
name: _.leftIcon,
|
|
496
|
+
class: a(l(b).leftIcon)
|
|
497
|
+
}, null, 8, ["name", "class"])) : m("", !0),
|
|
498
|
+
U("input", M({
|
|
499
|
+
id: _.id,
|
|
500
|
+
value: i.value,
|
|
501
|
+
name: _.name,
|
|
502
|
+
type: _.type,
|
|
503
|
+
disabled: _.disabled || _.loading,
|
|
504
|
+
placeholder: _.placeholder,
|
|
505
|
+
class: u.value,
|
|
506
|
+
"aria-invalid": !!_.error
|
|
507
|
+
}, l(s), {
|
|
508
|
+
onInput: N,
|
|
509
|
+
onKeydown: $,
|
|
510
|
+
onFocus: O,
|
|
511
|
+
onBlur: A,
|
|
512
|
+
onClick: F
|
|
513
|
+
}), null, 16, $t),
|
|
514
|
+
_.rightIcon ? (r(), k(l(T), {
|
|
515
|
+
key: 1,
|
|
516
|
+
name: _.rightIcon,
|
|
517
|
+
class: a(l(b).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(b).description)
|
|
524
|
+
}, [
|
|
525
|
+
_.error ? (r(), p("div", {
|
|
526
|
+
key: 0,
|
|
527
|
+
class: a(l(b).errorText),
|
|
528
|
+
innerHTML: _.error
|
|
529
|
+
}, null, 10, wt)) : m("", !0),
|
|
530
|
+
_.description ? (r(), p("div", {
|
|
531
|
+
key: 1,
|
|
532
|
+
class: a(l(b).descriptionText),
|
|
533
|
+
innerHTML: _.description
|
|
534
|
+
}, null, 10, Ct)) : m("", !0)
|
|
535
|
+
], 2)) : m("", !0)
|
|
536
|
+
], 2));
|
|
537
|
+
}
|
|
538
|
+
}), Tt = "_plank_8tn62_1", It = "_accent_8tn62_25", zt = "_danger_8tn62_31", St = "_text_8tn62_37", Bt = "_icon_8tn62_41", L = {
|
|
539
|
+
plank: Tt,
|
|
540
|
+
default: "_default_8tn62_19",
|
|
541
|
+
accent: It,
|
|
542
|
+
danger: zt,
|
|
543
|
+
text: St,
|
|
544
|
+
icon: Bt
|
|
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 = E(), n = c(() => C(t)), s = c(() => [L.plank, L[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(L).icon)
|
|
561
|
+
}, [
|
|
562
|
+
B(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(L).text)
|
|
567
|
+
}, [
|
|
568
|
+
h(i.$slots, "default")
|
|
569
|
+
], 2)) : m("", !0),
|
|
570
|
+
i.label ? (r(), k(l(H), {
|
|
571
|
+
key: 2,
|
|
572
|
+
size: "xs",
|
|
573
|
+
type: "secondary",
|
|
574
|
+
onClick: u[0] || (u[0] = (d) => i.$emit("click"))
|
|
575
|
+
}, {
|
|
576
|
+
default: g(() => [
|
|
577
|
+
z(S(i.label), 1)
|
|
578
|
+
]),
|
|
579
|
+
_: 1
|
|
580
|
+
})) : m("", !0)
|
|
581
|
+
], 2));
|
|
582
|
+
}
|
|
583
|
+
}), Nt = "_text_13xdn_1", Lt = "_primary_13xdn_8", qt = "_medium_13xdn_12", xt = "_secondary_13xdn_17", Ut = "_accent_13xdn_26", Mt = "_subtitle_13xdn_35", q = {
|
|
584
|
+
text: Nt,
|
|
585
|
+
primary: Lt,
|
|
586
|
+
medium: qt,
|
|
587
|
+
secondary: xt,
|
|
588
|
+
accent: Ut,
|
|
589
|
+
subtitle: Mt,
|
|
590
|
+
"color-main": "_color-main_13xdn_41",
|
|
591
|
+
"color-secondary": "_color-secondary_13xdn_45",
|
|
592
|
+
"color-semilight": "_color-semilight_13xdn_49",
|
|
593
|
+
"color-light": "_color-light_13xdn_53",
|
|
594
|
+
"color-invert": "_color-invert_13xdn_57",
|
|
595
|
+
"color-danger": "_color-danger_13xdn_61",
|
|
596
|
+
"color-success": "_color-success_13xdn_65"
|
|
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
|
+
q.text,
|
|
608
|
+
q[e.kind],
|
|
609
|
+
e.weight && q[e.weight],
|
|
610
|
+
e.color && q[`color-${e.color}`]
|
|
611
|
+
]);
|
|
612
|
+
return (n, s) => (r(), k(W(n.tagName), {
|
|
613
|
+
class: a(t.value)
|
|
614
|
+
}, {
|
|
615
|
+
default: g(() => [
|
|
616
|
+
h(n.$slots, "default")
|
|
617
|
+
]),
|
|
618
|
+
_: 3
|
|
619
|
+
}, 8, ["class"]));
|
|
620
|
+
}
|
|
621
|
+
}), jt = "_title_1qk7l_1", Et = "_medium_1qk7l_12", x = {
|
|
622
|
+
title: jt,
|
|
623
|
+
"level-1": "_level-1_1qk7l_8",
|
|
624
|
+
medium: Et,
|
|
625
|
+
"level-2": "_level-2_1qk7l_17",
|
|
626
|
+
"level-3": "_level-3_1qk7l_26",
|
|
627
|
+
"level-4": "_level-4_1qk7l_35",
|
|
628
|
+
"color-main": "_color-main_1qk7l_44",
|
|
629
|
+
"color-secondary": "_color-secondary_1qk7l_48",
|
|
630
|
+
"color-semilight": "_color-semilight_1qk7l_52",
|
|
631
|
+
"color-light": "_color-light_1qk7l_56",
|
|
632
|
+
"color-invert": "_color-invert_1qk7l_60",
|
|
633
|
+
"color-danger": "_color-danger_1qk7l_64",
|
|
634
|
+
"color-success": "_color-success_1qk7l_68"
|
|
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
|
+
x.title,
|
|
646
|
+
x[`level-${e.level ?? 1}`],
|
|
647
|
+
e.className,
|
|
648
|
+
e.weight && x[e.weight],
|
|
649
|
+
e.color && x[`color-${e.color}`]
|
|
650
|
+
]), n = c(() => `h${e.level ?? 1}`);
|
|
651
|
+
return (s, i) => (r(), k(W(n.value), {
|
|
652
|
+
class: a(t.value)
|
|
653
|
+
}, {
|
|
654
|
+
default: g(() => [
|
|
655
|
+
h(s.$slots, "default")
|
|
656
|
+
]),
|
|
657
|
+
_: 3
|
|
658
|
+
}, 8, ["class"]));
|
|
659
|
+
}
|
|
660
|
+
}), Ot = "_error_1y1de_1", Pt = {
|
|
661
|
+
error: Ot
|
|
662
|
+
}, Jt = /* @__PURE__ */ f({
|
|
663
|
+
__name: "error",
|
|
664
|
+
props: {
|
|
665
|
+
className: {}
|
|
666
|
+
},
|
|
667
|
+
setup(o) {
|
|
668
|
+
const e = o, t = c(() => [
|
|
669
|
+
Pt.error,
|
|
670
|
+
e.className
|
|
671
|
+
]);
|
|
672
|
+
return (n, s) => (r(), p("span", {
|
|
673
|
+
class: a(t.value)
|
|
674
|
+
}, [
|
|
675
|
+
h(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
|
+
_e as UiLoader,
|
|
688
|
+
Ft as UiPlank,
|
|
689
|
+
Gt as UiText,
|
|
690
|
+
Kt as UiTitle,
|
|
691
|
+
Ht as injectSvgSprite
|
|
692
|
+
};
|