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