@huntflow/ui 0.2.17 → 0.2.18
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { IconBySize } from '../ui-icon';
|
|
1
2
|
export type UiButtonProps = {
|
|
2
3
|
size?: UiButtonSize;
|
|
3
|
-
className?: string;
|
|
4
4
|
type?: UiButtonType;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
loading?: boolean;
|
|
@@ -11,6 +11,8 @@ export type UiButtonProps = {
|
|
|
11
11
|
bordered?: boolean;
|
|
12
12
|
htmlType?: UiButtonHTMLType;
|
|
13
13
|
to?: string;
|
|
14
|
+
iconBefore?: IconBySize<18> | IconBySize<20>;
|
|
15
|
+
iconAfter?: IconBySize<18> | IconBySize<20>;
|
|
14
16
|
};
|
|
15
17
|
export type UiButtonSize = 's' | 'xs' | 'm' | 'l';
|
|
16
18
|
export type UiButtonType = 'primary' | 'secondary' | 'accent' | 'jobsites' | 'ghost' | 'ghost-danger' | 'danger';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { icons } from './icon-list.ts';
|
|
2
2
|
export type IconType = typeof icons[number];
|
|
3
|
+
export type IconBySize<Size extends number, Icons = IconType> = Icons extends `${infer Icon}-${Size}` ? Icon : never;
|
|
3
4
|
export type UiIconProps = {
|
|
4
5
|
name: IconType;
|
|
5
6
|
color?: string;
|
package/dist/ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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}._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}._dropDown_mb1r2_1{margin-right:-4px}._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_cmm43_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_cmm43_1:hover{color:var(--hf-color-link-hover)}._button_cmm43_1:disabled,._button_cmm43_1:disabled:hover{color:var(--hf-color-link-default)}._lock_cmm43_30{margin:-12px -16px 0 0}._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_1qwte_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_1qwte_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-s) var(--hf-padding-input-right-s) var(--hf-padding-input-top-bottom-s) var(--hf-padding-input-left-s);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_1qwte_8:active{border-color:var(--hf-color-input-border-focus)}._input_1qwte_8:focus{border-color:var(--hf-color-input-border-focus);outline:solid 3px var(--hf-color-input-border-focus-visible)}._input_1qwte_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_1qwte_38,._error_1qwte_38:active{border-color:var(--hf-color-input-border-error)}._error_1qwte_38:focus{border-color:var(--hf-color-input-border-error);outline:solid 3px var(--hf-color-input-border-error-focus-visible)}._description_1qwte_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_1qwte_51 a{text-decoration:underline}._descriptionText_1qwte_62{color:var(--hf-color-input-text-description)}._errorText_1qwte_66{color:var(--hf-color-text-danger)}._inputWrapper_1qwte_70{position:relative}._leftSpace_1qwte_74{padding-left:42px}._rightSpace_1qwte_78{padding-right:42px}._leftIcon_1qwte_82,._rightIcon_1qwte_83{height:100%;position:absolute}._leftIcon_1qwte_82{left:15px}._rightIcon_1qwte_83{padding:0 9px;right:0}._rightIcon_1qwte_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_1sbhq_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_1sbhq_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)}._secondary_1sbhq_16{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)}._accent_1sbhq_22{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)}._subtitle_1sbhq_28{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)}._medium_1sbhq_34{font-weight:var(--hf-font-weight-text-primary-medium)}._color-main_1sbhq_38{color:var(--hf-color-text-main)}._color-secondary_1sbhq_42{color:var(--hf-color-text-secondary)}._color-semilight_1sbhq_46{color:var(--hf-color-text-semilight)}._color-light_1sbhq_50{color:var(--hf-color-text-light)}._color-invert_1sbhq_54{color:var(--hf-color-text-invert)}._color-danger_1sbhq_58{color:var(--hf-color-text-danger)}._color-success_1sbhq_62{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)}._stack_1b4a2_1{list-style:none;display:flex;flex-wrap:wrap;margin:0;padding:0}._auto_1b4a2_9{width:auto}._row_1b4a2_13{flex-direction:row}._row_1b4a2_13._reverse_1b4a2_16{flex-direction:row-reverse}._column_1b4a2_21{flex-direction:column;width:-moz-fit-content;width:fit-content}._column_1b4a2_21._reverse_1b4a2_16{flex-direction:column-reverse}._full_1b4a2_30{width:100%}._xxs_1b4a2_34{gap:var(--hf-spacing-xxs)}._xs_1b4a2_38{gap:var(--hf-spacing-xs)}._s_1b4a2_1{gap:var(--hf-spacing-s)}._m_1b4a2_46{gap:var(--hf-spacing-m)}._l_1b4a2_50{gap:var(--hf-spacing-l)}._xl_1b4a2_54{gap:var(--hf-spacing-xl)}._xxl_1b4a2_58{gap:var(--hf-spacing-xxl)}._xxxl_1b4a2_62{gap:var(--hf-spacing-3xl)}._xxxxl_1b4a2_66{gap:var(--hf-spacing-4xl)}._xxxxxl_1b4a2_70{gap:var(--hf-spacing-5xl)}._main-start_1b4a2_74{justify-content:flex-start}._main-center_1b4a2_78{justify-content:center}._main-between_1b4a2_82{justify-content:space-between}._main-around_1b4a2_86{justify-content:space-around}._main-end_1b4a2_90{justify-content:flex-end}._cross-start_1b4a2_94{align-items:flex-start}._cross-center_1b4a2_98{align-items:center}._cross-end_1b4a2_102{align-items:flex-end}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24", ue = "_black_tpkd0_28", de = "_s_tpkd0_32", _e = "_m_tpkd0_37", me = "_l_tpkd0_11",
|
|
2
|
+
import { defineComponent as y, toRefs as J, computed as i, createElementBlock as m, openBlock as a, normalizeClass as r, unref as o, normalizeStyle as Q, createElementVNode as L, renderSlot as p, createBlock as k, withCtx as h, createCommentVNode as _, createVNode as z, mergeProps as N, Fragment as X, toValue as Y, getCurrentInstance as Z, ref as E, Comment as ee, cloneVNode as te, h as A, useSlots as ne, mergeModels as O, useModel as se, useAttrs as le, createSlots as oe, createTextVNode as T, toDisplayString as q, resolveDynamicComponent as M, watch as ae } from "vue";
|
|
3
|
+
const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24", ue = "_black_tpkd0_28", de = "_s_tpkd0_32", _e = "_m_tpkd0_37", me = "_l_tpkd0_11", fe = "_spinner_tpkd0_47", C = {
|
|
4
4
|
loader: re,
|
|
5
5
|
circle: ce,
|
|
6
6
|
"loader-animation": "_loader-animation_tpkd0_1",
|
|
@@ -9,8 +9,8 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
9
9
|
s: de,
|
|
10
10
|
m: _e,
|
|
11
11
|
l: me,
|
|
12
|
-
spinner:
|
|
13
|
-
}, be = /* @__PURE__ */
|
|
12
|
+
spinner: fe
|
|
13
|
+
}, be = /* @__PURE__ */ y({
|
|
14
14
|
name: "UiLoader",
|
|
15
15
|
__name: "loader",
|
|
16
16
|
props: {
|
|
@@ -19,17 +19,17 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
19
19
|
color: {}
|
|
20
20
|
},
|
|
21
21
|
setup(e) {
|
|
22
|
-
const t = e, { size: n, color: s } = J(t), l =
|
|
22
|
+
const t = e, { size: n, color: s } = J(t), l = i(() => n?.value ?? "l"), d = i(() => s?.value ?? "black"), u = i(() => [
|
|
23
23
|
C.loader,
|
|
24
24
|
C[l.value],
|
|
25
|
-
C[
|
|
25
|
+
C[d.value],
|
|
26
26
|
C.circle
|
|
27
27
|
]);
|
|
28
|
-
return (
|
|
29
|
-
class: r([
|
|
28
|
+
return (b, w) => (a(), m("span", {
|
|
29
|
+
class: r([o(C).spinner, u.value])
|
|
30
30
|
}, null, 2));
|
|
31
31
|
}
|
|
32
|
-
}),
|
|
32
|
+
}), pe = ["aria-label", "width", "height"], ye = ["xlink:href"], ke = /* @__PURE__ */ y({
|
|
33
33
|
name: "UiIcon",
|
|
34
34
|
__name: "icon",
|
|
35
35
|
props: {
|
|
@@ -38,14 +38,14 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
38
38
|
block: { type: Boolean }
|
|
39
39
|
},
|
|
40
40
|
setup(e) {
|
|
41
|
-
const t = e, n =
|
|
41
|
+
const t = e, n = i(() => {
|
|
42
42
|
const l = t?.name?.match(/(\d+)$/);
|
|
43
43
|
return l ? Number.parseInt(l[1], 10) : 16;
|
|
44
|
-
}), s =
|
|
44
|
+
}), s = i(() => {
|
|
45
45
|
const l = {};
|
|
46
46
|
return t.color && (l.color = t.color), t.block && (l.display = "block"), l;
|
|
47
47
|
});
|
|
48
|
-
return (l,
|
|
48
|
+
return (l, d) => (a(), m("svg", {
|
|
49
49
|
class: r(l.$style.icon),
|
|
50
50
|
"aria-label": l.name,
|
|
51
51
|
style: Q(s.value),
|
|
@@ -53,10 +53,10 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
53
53
|
width: n.value,
|
|
54
54
|
height: n.value
|
|
55
55
|
}, [
|
|
56
|
-
|
|
56
|
+
L("use", {
|
|
57
57
|
"xlink:href": `#${l.name}`
|
|
58
58
|
}, null, 8, ye)
|
|
59
|
-
], 14,
|
|
59
|
+
], 14, pe));
|
|
60
60
|
}
|
|
61
61
|
}), ge = "_icon_1p8iz_2", he = {
|
|
62
62
|
icon: ge
|
|
@@ -67,7 +67,7 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
67
67
|
return n;
|
|
68
68
|
}, $e = {
|
|
69
69
|
$style: he
|
|
70
|
-
},
|
|
70
|
+
}, $ = /* @__PURE__ */ ve(ke, [["__cssModules", $e]]), $n = async () => {
|
|
71
71
|
if (!(typeof document > "u") && !document.getElementById("__svg-sprite__"))
|
|
72
72
|
try {
|
|
73
73
|
const t = `
|
|
@@ -79,51 +79,50 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
79
79
|
} catch (e) {
|
|
80
80
|
console.error("Failed to load SVG sprite:", e);
|
|
81
81
|
}
|
|
82
|
-
}, xe = "_button_mb1r2_1", we = "_disabled_mb1r2_1",
|
|
82
|
+
}, xe = "_button_mb1r2_1", we = "_disabled_mb1r2_1", Be = "_loading_mb1r2_1", Ce = "_loader_mb1r2_1", Te = "_content_mb1r2_1", qe = "_dropDown_mb1r2_1", Ie = "_s_mb1r2_2", Se = "_xs_mb1r2_1", Ue = "_square_mb1r2_1", je = "_circle_mb1r2_1", Le = "_m_mb1r2_1", ze = "_l_mb1r2_1", Ne = "_primary_mb1r2_1", Ae = "_secondary_mb1r2_1", Ee = "_accent_mb1r2_1", Me = "_danger_mb1r2_1", Ve = "_jobsites_mb1r2_1", Oe = "_ghost_mb1r2_1", v = {
|
|
83
83
|
button: xe,
|
|
84
84
|
disabled: we,
|
|
85
|
-
loading:
|
|
86
|
-
loader:
|
|
87
|
-
content:
|
|
88
|
-
dropDown:
|
|
85
|
+
loading: Be,
|
|
86
|
+
loader: Ce,
|
|
87
|
+
content: Te,
|
|
88
|
+
dropDown: qe,
|
|
89
89
|
s: Ie,
|
|
90
90
|
xs: Se,
|
|
91
91
|
square: Ue,
|
|
92
92
|
circle: je,
|
|
93
93
|
m: Le,
|
|
94
|
-
l:
|
|
95
|
-
primary:
|
|
96
|
-
secondary:
|
|
97
|
-
accent:
|
|
94
|
+
l: ze,
|
|
95
|
+
primary: Ne,
|
|
96
|
+
secondary: Ae,
|
|
97
|
+
accent: Ee,
|
|
98
98
|
danger: Me,
|
|
99
99
|
jobsites: Ve,
|
|
100
100
|
ghost: Oe,
|
|
101
101
|
"ghost-danger": "_ghost-danger_mb1r2_1"
|
|
102
|
-
}, Pe = ["href"], De = ["disabled"], Re = /* @__PURE__ */
|
|
102
|
+
}, Pe = ["href"], De = ["disabled"], Re = /* @__PURE__ */ y({
|
|
103
103
|
__name: "tag-variant",
|
|
104
104
|
props: {
|
|
105
105
|
to: {},
|
|
106
106
|
disabled: { type: Boolean }
|
|
107
107
|
},
|
|
108
108
|
setup(e) {
|
|
109
|
-
return (t, n) => t.to && !t.disabled ? (
|
|
109
|
+
return (t, n) => t.to && !t.disabled ? (a(), m("a", {
|
|
110
110
|
key: 0,
|
|
111
111
|
href: t.to
|
|
112
112
|
}, [
|
|
113
|
-
|
|
114
|
-
], 8, Pe)) : (
|
|
113
|
+
p(t.$slots, "default")
|
|
114
|
+
], 8, Pe)) : (a(), m("button", {
|
|
115
115
|
key: 1,
|
|
116
116
|
disabled: t.disabled
|
|
117
117
|
}, [
|
|
118
|
-
|
|
118
|
+
p(t.$slots, "default")
|
|
119
119
|
], 8, De));
|
|
120
120
|
}
|
|
121
|
-
}),
|
|
121
|
+
}), R = /* @__PURE__ */ y({
|
|
122
122
|
name: "UiButton",
|
|
123
123
|
__name: "button",
|
|
124
124
|
props: {
|
|
125
125
|
size: { default: "s" },
|
|
126
|
-
className: { default: "" },
|
|
127
126
|
type: { default: "primary" },
|
|
128
127
|
disabled: { type: Boolean, default: !1 },
|
|
129
128
|
loading: { type: Boolean, default: !1 },
|
|
@@ -133,7 +132,9 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
133
132
|
circle: { type: Boolean, default: !1 },
|
|
134
133
|
bordered: { type: Boolean, default: !1 },
|
|
135
134
|
htmlType: { default: "button" },
|
|
136
|
-
to: {}
|
|
135
|
+
to: {},
|
|
136
|
+
iconBefore: {},
|
|
137
|
+
iconAfter: {}
|
|
137
138
|
},
|
|
138
139
|
emits: ["click"],
|
|
139
140
|
setup(e, { emit: t }) {
|
|
@@ -145,69 +146,88 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
145
146
|
jobsites: "white",
|
|
146
147
|
ghost: "black",
|
|
147
148
|
"ghost-danger": "black"
|
|
148
|
-
}, l =
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
e.circle ?
|
|
149
|
+
}, l = i(() => [
|
|
150
|
+
v.button,
|
|
151
|
+
v[e.size],
|
|
152
|
+
v[e.type],
|
|
153
|
+
e.circle ? v.circle : v.square,
|
|
153
154
|
{
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[
|
|
157
|
-
[
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
155
|
+
[v.disabled]: e.disabled,
|
|
156
|
+
[v.loading]: e.loading,
|
|
157
|
+
[v.active]: e.active,
|
|
158
|
+
[v.bordered]: e.bordered
|
|
159
|
+
}
|
|
160
|
+
]), d = i(() => s[e.type] || "white"), u = i(() => {
|
|
161
|
+
if (!e.iconBefore)
|
|
162
|
+
return;
|
|
163
|
+
const f = e.size === "xs" ? "18" : "20";
|
|
164
|
+
return `${e.iconBefore}-${f}`;
|
|
165
|
+
}), b = i(() => {
|
|
166
|
+
if (!e.iconAfter)
|
|
167
|
+
return;
|
|
168
|
+
const f = e.size === "xs" ? "18" : "20";
|
|
169
|
+
return `${e.iconAfter}-${f}`;
|
|
170
|
+
}), w = (f) => {
|
|
171
|
+
n("click", f);
|
|
162
172
|
};
|
|
163
|
-
return (
|
|
164
|
-
to:
|
|
165
|
-
name:
|
|
173
|
+
return (f, V) => (a(), k(Re, {
|
|
174
|
+
to: f.to,
|
|
175
|
+
name: f.name,
|
|
166
176
|
class: r(l.value),
|
|
167
|
-
type:
|
|
168
|
-
disabled:
|
|
169
|
-
onClick:
|
|
177
|
+
type: f.htmlType,
|
|
178
|
+
disabled: f.disabled || f.loading,
|
|
179
|
+
onClick: w
|
|
170
180
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
|
|
181
|
+
default: h(() => [
|
|
182
|
+
f.loading ? (a(), m("div", {
|
|
173
183
|
key: 0,
|
|
174
|
-
class: r(
|
|
184
|
+
class: r(o(v).loader)
|
|
175
185
|
}, [
|
|
176
|
-
|
|
186
|
+
z(o(be), {
|
|
177
187
|
size: "s",
|
|
178
|
-
color:
|
|
188
|
+
color: d.value
|
|
179
189
|
}, null, 8, ["color"])
|
|
180
|
-
], 2)) :
|
|
181
|
-
|
|
182
|
-
|
|
190
|
+
], 2)) : _("", !0),
|
|
191
|
+
f.$slots.before || u.value ? p(f.$slots, "before", { key: 1 }, () => [
|
|
192
|
+
u.value ? (a(), k(o($), {
|
|
193
|
+
key: 0,
|
|
194
|
+
name: u.value
|
|
195
|
+
}, null, 8, ["name"])) : _("", !0)
|
|
196
|
+
]) : _("", !0),
|
|
197
|
+
f.$slots.default ? (a(), m("span", {
|
|
183
198
|
key: 2,
|
|
184
|
-
class: r(
|
|
199
|
+
class: r(o(v).content)
|
|
185
200
|
}, [
|
|
186
|
-
|
|
187
|
-
], 2)) :
|
|
188
|
-
|
|
189
|
-
|
|
201
|
+
p(f.$slots, "default")
|
|
202
|
+
], 2)) : _("", !0),
|
|
203
|
+
f.$slots.after || b.value ? p(f.$slots, "after", { key: 3 }, () => [
|
|
204
|
+
b.value ? (a(), k(o($), {
|
|
205
|
+
key: 0,
|
|
206
|
+
name: b.value
|
|
207
|
+
}, null, 8, ["name"])) : _("", !0)
|
|
208
|
+
]) : _("", !0),
|
|
209
|
+
f.dropdown ? (a(), k(o($), {
|
|
190
210
|
key: 4,
|
|
191
|
-
class: r(
|
|
211
|
+
class: r(o(v).dropDown),
|
|
192
212
|
name: "chevron-down-16"
|
|
193
|
-
}, null, 8, ["class"])) :
|
|
213
|
+
}, null, 8, ["class"])) : _("", !0)
|
|
194
214
|
]),
|
|
195
215
|
_: 3
|
|
196
216
|
}, 8, ["to", "name", "class", "type", "disabled"]));
|
|
197
217
|
}
|
|
198
|
-
}), We = "_s_o7jd7_9", Fe = "_xs_o7jd7_14", He = "_m_o7jd7_20", Ge = "_l_o7jd7_25", Ke = "_button_o7jd7_31",
|
|
218
|
+
}), We = "_s_o7jd7_9", Fe = "_xs_o7jd7_14", He = "_m_o7jd7_20", Ge = "_l_o7jd7_25", Ke = "_button_o7jd7_31", P = {
|
|
199
219
|
s: We,
|
|
200
220
|
xs: Fe,
|
|
201
221
|
m: He,
|
|
202
222
|
l: Ge,
|
|
203
223
|
button: Ke
|
|
204
|
-
}, xn = /* @__PURE__ */
|
|
224
|
+
}, xn = /* @__PURE__ */ y({
|
|
205
225
|
name: "UiButtonIcon",
|
|
206
226
|
__name: "button-icon",
|
|
207
227
|
props: {
|
|
208
|
-
icon: {
|
|
228
|
+
icon: {},
|
|
209
229
|
size: { default: "m" },
|
|
210
|
-
className: {
|
|
230
|
+
className: {},
|
|
211
231
|
type: { default: "primary" },
|
|
212
232
|
disabled: { type: Boolean, default: !1 },
|
|
213
233
|
loading: { type: Boolean, default: !1 },
|
|
@@ -218,16 +238,13 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
218
238
|
},
|
|
219
239
|
emits: ["click"],
|
|
220
240
|
setup(e) {
|
|
221
|
-
const t =
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
const c = e.size === "xs" ? "18" : "20";
|
|
229
|
-
return e.icon.replace(/-?\d*$/, `-${c}`);
|
|
230
|
-
}), s = d(() => e.size === "xs" || e.circle), l = d(() => ({
|
|
241
|
+
const t = i(() => [
|
|
242
|
+
P.button,
|
|
243
|
+
P[e.size]
|
|
244
|
+
]), n = i(() => {
|
|
245
|
+
const d = e.size === "xs" ? "18" : "20";
|
|
246
|
+
return `${e.icon}-${d}`;
|
|
247
|
+
}), s = i(() => e.size === "xs" || e.circle), l = i(() => ({
|
|
231
248
|
size: e.size,
|
|
232
249
|
type: e.type,
|
|
233
250
|
disabled: e.disabled,
|
|
@@ -236,20 +253,20 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
236
253
|
circle: s.value,
|
|
237
254
|
bordered: e.bordered
|
|
238
255
|
}));
|
|
239
|
-
return (
|
|
256
|
+
return (d, u) => (a(), k(o(R), N({ class: t.value }, l.value, {
|
|
240
257
|
"html-type": "button",
|
|
241
|
-
onClick:
|
|
258
|
+
onClick: u[0] || (u[0] = (b) => d.$emit("click"))
|
|
242
259
|
}), {
|
|
243
|
-
before:
|
|
244
|
-
|
|
260
|
+
before: h(() => [
|
|
261
|
+
z(o($), { name: n.value }, null, 8, ["name"])
|
|
245
262
|
]),
|
|
246
263
|
_: 1
|
|
247
264
|
}, 16, ["class"]));
|
|
248
265
|
}
|
|
249
|
-
}), Je = "_button_cmm43_1", Qe = "_lock_cmm43_30",
|
|
266
|
+
}), Je = "_button_cmm43_1", Qe = "_lock_cmm43_30", D = {
|
|
250
267
|
button: Je,
|
|
251
268
|
lock: Qe
|
|
252
|
-
}, Xe = ["disabled"], wn = /* @__PURE__ */
|
|
269
|
+
}, Xe = ["disabled"], wn = /* @__PURE__ */ y({
|
|
253
270
|
name: "UiButtonLink",
|
|
254
271
|
__name: "button-link",
|
|
255
272
|
props: {
|
|
@@ -258,27 +275,27 @@ const re = "_loader_tpkd0_11", ce = "_circle_tpkd0_17", ie = "_white_tpkd0_24",
|
|
|
258
275
|
},
|
|
259
276
|
emits: ["click"],
|
|
260
277
|
setup(e) {
|
|
261
|
-
return (t, n) => (
|
|
262
|
-
class: r(
|
|
278
|
+
return (t, n) => (a(), m("button", {
|
|
279
|
+
class: r(o(D).button),
|
|
263
280
|
type: "button",
|
|
264
281
|
disabled: t.lock,
|
|
265
282
|
onClick: n[0] || (n[0] = (s) => t.$emit("click"))
|
|
266
283
|
}, [
|
|
267
|
-
t.lock ? (
|
|
284
|
+
t.lock ? (a(), k(o($), {
|
|
268
285
|
key: 0,
|
|
269
286
|
name: "lock-color-16",
|
|
270
|
-
class: r(
|
|
271
|
-
}, null, 8, ["class"])) :
|
|
272
|
-
t.icon ? (
|
|
287
|
+
class: r(o(D).lock)
|
|
288
|
+
}, null, 8, ["class"])) : _("", !0),
|
|
289
|
+
t.icon ? (a(), k(o($), {
|
|
273
290
|
key: 1,
|
|
274
291
|
name: "plus-18"
|
|
275
|
-
})) :
|
|
276
|
-
|
|
292
|
+
})) : _("", !0),
|
|
293
|
+
p(t.$slots, "default")
|
|
277
294
|
], 10, Xe));
|
|
278
295
|
}
|
|
279
296
|
});
|
|
280
|
-
function
|
|
281
|
-
return e ? e.flatMap((t) => t.type === X ?
|
|
297
|
+
function W(e) {
|
|
298
|
+
return e ? e.flatMap((t) => t.type === X ? W(t.children) : [t]) : [];
|
|
282
299
|
}
|
|
283
300
|
function Ye(e) {
|
|
284
301
|
var t;
|
|
@@ -286,57 +303,57 @@ function Ye(e) {
|
|
|
286
303
|
return (t = n?.$el) != null ? t : n;
|
|
287
304
|
}
|
|
288
305
|
function Ze() {
|
|
289
|
-
const e = Z(), t = E(), n =
|
|
290
|
-
for (const
|
|
306
|
+
const e = Z(), t = E(), n = i(() => ["#text", "#comment"].includes(t.value?.$el.nodeName) ? t.value?.$el.nextElementSibling : Ye(t)), s = Object.assign({}, e.exposed), l = {};
|
|
307
|
+
for (const u in e.props) Object.defineProperty(l, u, {
|
|
291
308
|
enumerable: !0,
|
|
292
309
|
configurable: !0,
|
|
293
|
-
get: () => e.props[
|
|
310
|
+
get: () => e.props[u]
|
|
294
311
|
});
|
|
295
|
-
if (Object.keys(s).length > 0) for (const
|
|
312
|
+
if (Object.keys(s).length > 0) for (const u in s) Object.defineProperty(l, u, {
|
|
296
313
|
enumerable: !0,
|
|
297
314
|
configurable: !0,
|
|
298
|
-
get: () => s[
|
|
315
|
+
get: () => s[u]
|
|
299
316
|
});
|
|
300
317
|
Object.defineProperty(l, "$el", {
|
|
301
318
|
enumerable: !0,
|
|
302
319
|
configurable: !0,
|
|
303
320
|
get: () => e.vnode.el
|
|
304
321
|
}), e.exposed = l;
|
|
305
|
-
function
|
|
306
|
-
t.value =
|
|
322
|
+
function d(u) {
|
|
323
|
+
t.value = u, u && (Object.defineProperty(l, "$el", {
|
|
307
324
|
enumerable: !0,
|
|
308
325
|
configurable: !0,
|
|
309
|
-
get: () =>
|
|
326
|
+
get: () => u instanceof Element ? u : u.$el
|
|
310
327
|
}), e.exposed = l);
|
|
311
328
|
}
|
|
312
329
|
return {
|
|
313
|
-
forwardRef:
|
|
330
|
+
forwardRef: d,
|
|
314
331
|
currentRef: t,
|
|
315
332
|
currentElement: n
|
|
316
333
|
};
|
|
317
334
|
}
|
|
318
|
-
const et =
|
|
335
|
+
const et = y({
|
|
319
336
|
name: "PrimitiveSlot",
|
|
320
337
|
inheritAttrs: !1,
|
|
321
338
|
setup(e, { attrs: t, slots: n }) {
|
|
322
339
|
return () => {
|
|
323
340
|
if (!n.default) return null;
|
|
324
|
-
const s =
|
|
341
|
+
const s = W(n.default()), l = s.findIndex((w) => w.type !== ee);
|
|
325
342
|
if (l === -1) return s;
|
|
326
|
-
const
|
|
327
|
-
delete
|
|
328
|
-
const
|
|
329
|
-
...
|
|
343
|
+
const d = s[l];
|
|
344
|
+
delete d.props?.ref;
|
|
345
|
+
const u = d.props ? N(t, d.props) : t, b = te({
|
|
346
|
+
...d,
|
|
330
347
|
props: {}
|
|
331
|
-
},
|
|
332
|
-
return s.length === 1 ?
|
|
348
|
+
}, u);
|
|
349
|
+
return s.length === 1 ? b : (s[l] = b, s);
|
|
333
350
|
};
|
|
334
351
|
}
|
|
335
352
|
}), tt = [
|
|
336
353
|
"area",
|
|
337
354
|
"img",
|
|
338
355
|
"input"
|
|
339
|
-
], nt =
|
|
356
|
+
], nt = y({
|
|
340
357
|
name: "Primitive",
|
|
341
358
|
inheritAttrs: !1,
|
|
342
359
|
props: {
|
|
@@ -351,10 +368,10 @@ const et = f({
|
|
|
351
368
|
},
|
|
352
369
|
setup(e, { attrs: t, slots: n }) {
|
|
353
370
|
const s = e.asChild ? "template" : e.as;
|
|
354
|
-
return typeof s == "string" && tt.includes(s) ? () =>
|
|
371
|
+
return typeof s == "string" && tt.includes(s) ? () => A(s, t) : s !== "template" ? () => A(e.as, t, { default: n.default }) : () => A(et, t, { default: n.default });
|
|
355
372
|
}
|
|
356
373
|
});
|
|
357
|
-
var st = /* @__PURE__ */
|
|
374
|
+
var st = /* @__PURE__ */ y({
|
|
358
375
|
__name: "Label",
|
|
359
376
|
props: {
|
|
360
377
|
for: {
|
|
@@ -373,94 +390,94 @@ var st = /* @__PURE__ */ f({
|
|
|
373
390
|
},
|
|
374
391
|
setup(e) {
|
|
375
392
|
const t = e;
|
|
376
|
-
return Ze(), (n, s) => (
|
|
393
|
+
return Ze(), (n, s) => (a(), k(o(nt), N(t, { onMousedown: s[0] || (s[0] = (l) => {
|
|
377
394
|
!l.defaultPrevented && l.detail > 1 && l.preventDefault();
|
|
378
395
|
}) }), {
|
|
379
|
-
default:
|
|
396
|
+
default: h(() => [p(n.$slots, "default")]),
|
|
380
397
|
_: 3
|
|
381
398
|
}, 16));
|
|
382
399
|
}
|
|
383
400
|
}), lt = st;
|
|
384
401
|
const ot = "_label_1ic51_1", at = {
|
|
385
402
|
label: ot
|
|
386
|
-
}, rt = /* @__PURE__ */
|
|
403
|
+
}, rt = /* @__PURE__ */ y({
|
|
387
404
|
name: "UiLabel",
|
|
388
405
|
__name: "label",
|
|
389
406
|
props: {
|
|
390
407
|
className: {}
|
|
391
408
|
},
|
|
392
409
|
setup(e) {
|
|
393
|
-
const t = e, n =
|
|
410
|
+
const t = e, n = i(() => [
|
|
394
411
|
at.label,
|
|
395
412
|
t.className
|
|
396
413
|
]);
|
|
397
|
-
return (s, l) => (
|
|
414
|
+
return (s, l) => (a(), k(o(lt), {
|
|
398
415
|
class: r(n.value)
|
|
399
416
|
}, {
|
|
400
|
-
default:
|
|
401
|
-
|
|
417
|
+
default: h(() => [
|
|
418
|
+
p(s.$slots, "default")
|
|
402
419
|
]),
|
|
403
420
|
_: 3
|
|
404
421
|
}, 8, ["class"]));
|
|
405
422
|
}
|
|
406
|
-
}), ct = "_content_1g21n_1", it = "_label_1g21n_12", ut = "_header_1g21n_21", dt = "_headerWrapper_1g21n_29", _t = "_title_1g21n_36", mt = "_subTitleRow_1g21n_44",
|
|
423
|
+
}), ct = "_content_1g21n_1", it = "_label_1g21n_12", ut = "_header_1g21n_21", dt = "_headerWrapper_1g21n_29", _t = "_title_1g21n_36", mt = "_subTitleRow_1g21n_44", ft = "_subTitle_1g21n_44", bt = "_link_1g21n_56", pt = "_linkUpper_1g21n_73", x = {
|
|
407
424
|
content: ct,
|
|
408
425
|
label: it,
|
|
409
426
|
header: ut,
|
|
410
427
|
headerWrapper: dt,
|
|
411
428
|
title: _t,
|
|
412
429
|
subTitleRow: mt,
|
|
413
|
-
subTitle:
|
|
430
|
+
subTitle: ft,
|
|
414
431
|
link: bt,
|
|
415
|
-
linkUpper:
|
|
416
|
-
}, yt = /* @__PURE__ */
|
|
432
|
+
linkUpper: pt
|
|
433
|
+
}, yt = /* @__PURE__ */ y({
|
|
417
434
|
name: "UiLabelContent",
|
|
418
435
|
__name: "label-content",
|
|
419
436
|
emits: ["click"],
|
|
420
437
|
setup(e) {
|
|
421
|
-
const t = ne(), n =
|
|
422
|
-
() => [
|
|
438
|
+
const t = ne(), n = i(() => t.header || t.default || t.subTitle), s = i(() => !t.default && !t.subTitle), l = i(
|
|
439
|
+
() => [x.link, s.value && x.linkUpper].filter(Boolean)
|
|
423
440
|
);
|
|
424
|
-
return (
|
|
425
|
-
class: r(
|
|
441
|
+
return (d, u) => (a(), m("div", {
|
|
442
|
+
class: r(o(x).content)
|
|
426
443
|
}, [
|
|
427
|
-
n.value ? (
|
|
444
|
+
n.value ? (a(), m("span", {
|
|
428
445
|
key: 0,
|
|
429
|
-
class: r(
|
|
446
|
+
class: r(o(x).headerWrapper)
|
|
430
447
|
}, [
|
|
431
|
-
|
|
448
|
+
o(t).header ? (a(), m("span", {
|
|
432
449
|
key: 0,
|
|
433
|
-
class: r(
|
|
450
|
+
class: r(o(x).header)
|
|
434
451
|
}, [
|
|
435
|
-
|
|
436
|
-
], 2)) :
|
|
437
|
-
|
|
452
|
+
p(d.$slots, "header")
|
|
453
|
+
], 2)) : _("", !0),
|
|
454
|
+
o(t).default ? (a(), m("span", {
|
|
438
455
|
key: 1,
|
|
439
|
-
class: r(
|
|
456
|
+
class: r(o(x).title)
|
|
440
457
|
}, [
|
|
441
|
-
|
|
442
|
-
], 2)) :
|
|
443
|
-
|
|
458
|
+
p(d.$slots, "default")
|
|
459
|
+
], 2)) : _("", !0),
|
|
460
|
+
o(t).subTitle ? (a(), m("span", {
|
|
444
461
|
key: 2,
|
|
445
|
-
class: r(
|
|
462
|
+
class: r(o(x).subTitleRow)
|
|
446
463
|
}, [
|
|
447
|
-
|
|
448
|
-
class: r(
|
|
464
|
+
L("span", {
|
|
465
|
+
class: r(o(x).subTitle)
|
|
449
466
|
}, [
|
|
450
|
-
|
|
467
|
+
p(d.$slots, "subTitle")
|
|
451
468
|
], 2)
|
|
452
|
-
], 2)) :
|
|
453
|
-
], 2)) :
|
|
454
|
-
|
|
469
|
+
], 2)) : _("", !0)
|
|
470
|
+
], 2)) : _("", !0),
|
|
471
|
+
o(t).link ? (a(), m("span", {
|
|
455
472
|
key: 1,
|
|
456
473
|
class: r(l.value),
|
|
457
|
-
onClick:
|
|
474
|
+
onClick: u[0] || (u[0] = (b) => d.$emit("click"))
|
|
458
475
|
}, [
|
|
459
|
-
|
|
460
|
-
], 2)) :
|
|
476
|
+
p(d.$slots, "link")
|
|
477
|
+
], 2)) : _("", !0)
|
|
461
478
|
], 2));
|
|
462
479
|
}
|
|
463
|
-
}), kt = "_wrapper_1qwte_1", gt = "_input_1qwte_8", ht = "_error_1qwte_38", vt = "_description_1qwte_51", $t = "_descriptionText_1qwte_62", xt = "_errorText_1qwte_66", wt = "_inputWrapper_1qwte_70",
|
|
480
|
+
}), kt = "_wrapper_1qwte_1", gt = "_input_1qwte_8", ht = "_error_1qwte_38", vt = "_description_1qwte_51", $t = "_descriptionText_1qwte_62", xt = "_errorText_1qwte_66", wt = "_inputWrapper_1qwte_70", Bt = "_leftSpace_1qwte_74", Ct = "_rightSpace_1qwte_78", Tt = "_leftIcon_1qwte_82", qt = "_rightIcon_1qwte_83", g = {
|
|
464
481
|
wrapper: kt,
|
|
465
482
|
input: gt,
|
|
466
483
|
error: ht,
|
|
@@ -468,14 +485,14 @@ const ot = "_label_1ic51_1", at = {
|
|
|
468
485
|
descriptionText: $t,
|
|
469
486
|
errorText: xt,
|
|
470
487
|
inputWrapper: wt,
|
|
471
|
-
leftSpace:
|
|
472
|
-
rightSpace:
|
|
473
|
-
leftIcon:
|
|
474
|
-
rightIcon:
|
|
475
|
-
}, It = ["id", "value", "name", "type", "disabled", "placeholder", "aria-invalid"], St = ["innerHTML"], Ut = ["innerHTML"],
|
|
488
|
+
leftSpace: Bt,
|
|
489
|
+
rightSpace: Ct,
|
|
490
|
+
leftIcon: Tt,
|
|
491
|
+
rightIcon: qt
|
|
492
|
+
}, It = ["id", "value", "name", "type", "disabled", "placeholder", "aria-invalid"], St = ["innerHTML"], Ut = ["innerHTML"], Bn = /* @__PURE__ */ y({
|
|
476
493
|
name: "UiInput",
|
|
477
494
|
__name: "input",
|
|
478
|
-
props: /* @__PURE__ */
|
|
495
|
+
props: /* @__PURE__ */ O({
|
|
479
496
|
type: { default: "text" },
|
|
480
497
|
id: {},
|
|
481
498
|
name: {},
|
|
@@ -495,121 +512,121 @@ const ot = "_label_1ic51_1", at = {
|
|
|
495
512
|
modelValue: { type: String },
|
|
496
513
|
modelModifiers: {}
|
|
497
514
|
}),
|
|
498
|
-
emits: /* @__PURE__ */
|
|
515
|
+
emits: /* @__PURE__ */ O(["update:modelValue", "inputValue", "enter", "clickLink", "clickIcon", "click", "focus", "blur"], ["update:modelValue"]),
|
|
499
516
|
setup(e, { emit: t }) {
|
|
500
|
-
const n = t, s = se(e, "modelValue"), l = le(),
|
|
501
|
-
|
|
517
|
+
const n = t, s = se(e, "modelValue"), l = le(), d = i(() => [
|
|
518
|
+
g.input,
|
|
502
519
|
{
|
|
503
|
-
[
|
|
504
|
-
[
|
|
505
|
-
[
|
|
506
|
-
[
|
|
507
|
-
[
|
|
520
|
+
[g.disabled]: e.disabled,
|
|
521
|
+
[g.error]: e.error,
|
|
522
|
+
[g.loading]: e.loading,
|
|
523
|
+
[g.leftSpace]: !!e.leftIcon,
|
|
524
|
+
[g.rightSpace]: !!e.rightIcon
|
|
508
525
|
},
|
|
509
526
|
e.className
|
|
510
|
-
]),
|
|
511
|
-
|
|
512
|
-
},
|
|
513
|
-
n("update:modelValue",
|
|
514
|
-
},
|
|
515
|
-
|
|
527
|
+
]), u = i(() => e.header || e.title || e.subTitle || e.link), b = i(() => e.description || e.error), w = (c) => {
|
|
528
|
+
c.key === "Enter" && n("enter");
|
|
529
|
+
}, f = (c) => {
|
|
530
|
+
n("update:modelValue", c.target.value), n("inputValue", c.target.value);
|
|
531
|
+
}, V = () => n("focus"), F = () => n("blur"), H = () => n("clickLink"), G = () => n("click"), K = (c) => {
|
|
532
|
+
c.preventDefault(), n("clickIcon");
|
|
516
533
|
};
|
|
517
|
-
return (
|
|
518
|
-
class: r(
|
|
534
|
+
return (c, hn) => (a(), m("div", {
|
|
535
|
+
class: r(o(g).wrapper)
|
|
519
536
|
}, [
|
|
520
|
-
|
|
537
|
+
u.value ? (a(), k(o(rt), {
|
|
521
538
|
key: 0,
|
|
522
|
-
for:
|
|
539
|
+
for: c.id,
|
|
523
540
|
onClick: H
|
|
524
541
|
}, {
|
|
525
|
-
default:
|
|
526
|
-
|
|
527
|
-
default:
|
|
528
|
-
T(" " + q(
|
|
542
|
+
default: h(() => [
|
|
543
|
+
z(o(yt), null, oe({
|
|
544
|
+
default: h(() => [
|
|
545
|
+
T(" " + q(c.title) + " ", 1)
|
|
529
546
|
]),
|
|
530
547
|
_: 2
|
|
531
548
|
}, [
|
|
532
|
-
|
|
549
|
+
c.header ? {
|
|
533
550
|
name: "header",
|
|
534
|
-
fn:
|
|
535
|
-
T(q(
|
|
551
|
+
fn: h(() => [
|
|
552
|
+
T(q(c.header), 1)
|
|
536
553
|
]),
|
|
537
554
|
key: "0"
|
|
538
555
|
} : void 0,
|
|
539
|
-
|
|
556
|
+
c.subTitle ? {
|
|
540
557
|
name: "subTitle",
|
|
541
|
-
fn:
|
|
542
|
-
T(q(
|
|
558
|
+
fn: h(() => [
|
|
559
|
+
T(q(c.subTitle), 1)
|
|
543
560
|
]),
|
|
544
561
|
key: "1"
|
|
545
562
|
} : void 0,
|
|
546
|
-
|
|
563
|
+
c.link ? {
|
|
547
564
|
name: "link",
|
|
548
|
-
fn:
|
|
549
|
-
T(q(
|
|
565
|
+
fn: h(() => [
|
|
566
|
+
T(q(c.link), 1)
|
|
550
567
|
]),
|
|
551
568
|
key: "2"
|
|
552
569
|
} : void 0
|
|
553
570
|
]), 1024)
|
|
554
571
|
]),
|
|
555
572
|
_: 1
|
|
556
|
-
}, 8, ["for"])) :
|
|
557
|
-
|
|
558
|
-
class: r(
|
|
573
|
+
}, 8, ["for"])) : _("", !0),
|
|
574
|
+
L("div", {
|
|
575
|
+
class: r(o(g).inputWrapper)
|
|
559
576
|
}, [
|
|
560
|
-
|
|
577
|
+
c.leftIcon ? (a(), k(o($), {
|
|
561
578
|
key: 0,
|
|
562
|
-
name:
|
|
563
|
-
class: r(
|
|
564
|
-
}, null, 8, ["name", "class"])) :
|
|
565
|
-
|
|
566
|
-
id:
|
|
579
|
+
name: c.leftIcon,
|
|
580
|
+
class: r(o(g).leftIcon)
|
|
581
|
+
}, null, 8, ["name", "class"])) : _("", !0),
|
|
582
|
+
L("input", N({
|
|
583
|
+
id: c.id,
|
|
567
584
|
value: s.value,
|
|
568
|
-
name:
|
|
569
|
-
type:
|
|
570
|
-
disabled:
|
|
571
|
-
placeholder:
|
|
572
|
-
class:
|
|
573
|
-
"aria-invalid": !!
|
|
574
|
-
},
|
|
575
|
-
onInput:
|
|
585
|
+
name: c.name,
|
|
586
|
+
type: c.type,
|
|
587
|
+
disabled: c.disabled || c.loading,
|
|
588
|
+
placeholder: c.placeholder,
|
|
589
|
+
class: d.value,
|
|
590
|
+
"aria-invalid": !!c.error
|
|
591
|
+
}, o(l), {
|
|
592
|
+
onInput: f,
|
|
576
593
|
onKeydown: w,
|
|
577
|
-
onFocus:
|
|
594
|
+
onFocus: V,
|
|
578
595
|
onBlur: F,
|
|
579
596
|
onClick: G
|
|
580
597
|
}), null, 16, It),
|
|
581
|
-
|
|
598
|
+
c.rightIcon ? (a(), k(o($), {
|
|
582
599
|
key: 1,
|
|
583
|
-
name:
|
|
584
|
-
class: r(
|
|
600
|
+
name: c.rightIcon,
|
|
601
|
+
class: r(o(g).rightIcon),
|
|
585
602
|
onClick: K
|
|
586
|
-
}, null, 8, ["name", "class"])) :
|
|
603
|
+
}, null, 8, ["name", "class"])) : _("", !0)
|
|
587
604
|
], 2),
|
|
588
|
-
|
|
605
|
+
b.value ? (a(), m("div", {
|
|
589
606
|
key: 1,
|
|
590
|
-
class: r(
|
|
607
|
+
class: r(o(g).description)
|
|
591
608
|
}, [
|
|
592
|
-
|
|
609
|
+
c.error ? (a(), m("div", {
|
|
593
610
|
key: 0,
|
|
594
|
-
class: r(
|
|
595
|
-
innerHTML:
|
|
596
|
-
}, null, 10, St)) :
|
|
597
|
-
|
|
611
|
+
class: r(o(g).errorText),
|
|
612
|
+
innerHTML: c.error
|
|
613
|
+
}, null, 10, St)) : _("", !0),
|
|
614
|
+
c.description ? (a(), m("div", {
|
|
598
615
|
key: 1,
|
|
599
|
-
class: r(
|
|
600
|
-
innerHTML:
|
|
601
|
-
}, null, 10, Ut)) :
|
|
602
|
-
], 2)) :
|
|
616
|
+
class: r(o(g).descriptionText),
|
|
617
|
+
innerHTML: c.description
|
|
618
|
+
}, null, 10, Ut)) : _("", !0)
|
|
619
|
+
], 2)) : _("", !0)
|
|
603
620
|
], 2));
|
|
604
621
|
}
|
|
605
|
-
}), jt = "_plank_1yp3k_1", Lt = "_accent_1yp3k_26",
|
|
622
|
+
}), jt = "_plank_1yp3k_1", Lt = "_accent_1yp3k_26", zt = "_danger_1yp3k_32", Nt = "_text_1yp3k_38", At = "_icon_1yp3k_42", I = {
|
|
606
623
|
plank: jt,
|
|
607
624
|
default: "_default_1yp3k_20",
|
|
608
625
|
accent: Lt,
|
|
609
|
-
danger:
|
|
610
|
-
text:
|
|
611
|
-
icon:
|
|
612
|
-
},
|
|
626
|
+
danger: zt,
|
|
627
|
+
text: Nt,
|
|
628
|
+
icon: At
|
|
629
|
+
}, Cn = /* @__PURE__ */ y({
|
|
613
630
|
name: "UiPlank",
|
|
614
631
|
__name: "plank",
|
|
615
632
|
props: {
|
|
@@ -619,40 +636,40 @@ const ot = "_label_1ic51_1", at = {
|
|
|
619
636
|
},
|
|
620
637
|
emits: ["click"],
|
|
621
638
|
setup(e) {
|
|
622
|
-
const t =
|
|
623
|
-
|
|
624
|
-
|
|
639
|
+
const t = i(() => [
|
|
640
|
+
I.plank,
|
|
641
|
+
I[e.type]
|
|
625
642
|
]);
|
|
626
|
-
return (n, s) => (
|
|
643
|
+
return (n, s) => (a(), m("div", {
|
|
627
644
|
class: r(t.value)
|
|
628
645
|
}, [
|
|
629
|
-
n.icon ? (
|
|
646
|
+
n.icon ? (a(), m("div", {
|
|
630
647
|
key: 0,
|
|
631
|
-
class: r(
|
|
648
|
+
class: r(o(I).icon)
|
|
632
649
|
}, [
|
|
633
|
-
|
|
634
|
-
], 2)) :
|
|
635
|
-
n.$slots.default ? (
|
|
650
|
+
z(o($), { name: n.icon }, null, 8, ["name"])
|
|
651
|
+
], 2)) : _("", !0),
|
|
652
|
+
n.$slots.default ? (a(), m("div", {
|
|
636
653
|
key: 1,
|
|
637
|
-
class: r(
|
|
654
|
+
class: r(o(I).text)
|
|
638
655
|
}, [
|
|
639
|
-
|
|
640
|
-
], 2)) :
|
|
641
|
-
n.label ? (
|
|
656
|
+
p(n.$slots, "default")
|
|
657
|
+
], 2)) : _("", !0),
|
|
658
|
+
n.label ? (a(), k(o(R), {
|
|
642
659
|
key: 2,
|
|
643
660
|
size: "xs",
|
|
644
661
|
type: "secondary",
|
|
645
662
|
onClick: s[0] || (s[0] = (l) => n.$emit("click"))
|
|
646
663
|
}, {
|
|
647
|
-
default:
|
|
664
|
+
default: h(() => [
|
|
648
665
|
T(q(n.label), 1)
|
|
649
666
|
]),
|
|
650
667
|
_: 1
|
|
651
|
-
})) :
|
|
668
|
+
})) : _("", !0)
|
|
652
669
|
], 2));
|
|
653
670
|
}
|
|
654
|
-
}),
|
|
655
|
-
text:
|
|
671
|
+
}), Et = "_text_1sbhq_1", Mt = "_primary_1sbhq_10", Vt = "_secondary_1sbhq_16", Ot = "_accent_1sbhq_22", Pt = "_subtitle_1sbhq_28", Dt = "_medium_1sbhq_34", S = {
|
|
672
|
+
text: Et,
|
|
656
673
|
primary: Mt,
|
|
657
674
|
secondary: Vt,
|
|
658
675
|
accent: Ot,
|
|
@@ -665,7 +682,7 @@ const ot = "_label_1ic51_1", at = {
|
|
|
665
682
|
"color-invert": "_color-invert_1sbhq_54",
|
|
666
683
|
"color-danger": "_color-danger_1sbhq_58",
|
|
667
684
|
"color-success": "_color-success_1sbhq_62"
|
|
668
|
-
},
|
|
685
|
+
}, Tn = /* @__PURE__ */ y({
|
|
669
686
|
name: "UiText",
|
|
670
687
|
__name: "text",
|
|
671
688
|
props: {
|
|
@@ -675,22 +692,22 @@ const ot = "_label_1ic51_1", at = {
|
|
|
675
692
|
color: {}
|
|
676
693
|
},
|
|
677
694
|
setup(e) {
|
|
678
|
-
const t =
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
e.weight &&
|
|
682
|
-
e.color &&
|
|
695
|
+
const t = i(() => [
|
|
696
|
+
S.text,
|
|
697
|
+
S[e.kind],
|
|
698
|
+
e.weight && S[e.weight],
|
|
699
|
+
e.color && S[`color-${e.color}`]
|
|
683
700
|
]);
|
|
684
|
-
return (n, s) => (
|
|
701
|
+
return (n, s) => (a(), k(M(n.tagName), {
|
|
685
702
|
class: r(t.value)
|
|
686
703
|
}, {
|
|
687
|
-
default:
|
|
688
|
-
|
|
704
|
+
default: h(() => [
|
|
705
|
+
p(n.$slots, "default")
|
|
689
706
|
]),
|
|
690
707
|
_: 3
|
|
691
708
|
}, 8, ["class"]));
|
|
692
709
|
}
|
|
693
|
-
}), Rt = "_title_1m0wo_1", Wt = "_medium_1m0wo_15",
|
|
710
|
+
}), Rt = "_title_1m0wo_1", Wt = "_medium_1m0wo_15", U = {
|
|
694
711
|
title: Rt,
|
|
695
712
|
"level-1": "_level-1_1m0wo_10",
|
|
696
713
|
medium: Wt,
|
|
@@ -704,7 +721,7 @@ const ot = "_label_1ic51_1", at = {
|
|
|
704
721
|
"color-invert": "_color-invert_1m0wo_66",
|
|
705
722
|
"color-danger": "_color-danger_1m0wo_70",
|
|
706
723
|
"color-success": "_color-success_1m0wo_74"
|
|
707
|
-
},
|
|
724
|
+
}, qn = /* @__PURE__ */ y({
|
|
708
725
|
name: "UiTitle",
|
|
709
726
|
__name: "title",
|
|
710
727
|
props: {
|
|
@@ -714,42 +731,42 @@ const ot = "_label_1ic51_1", at = {
|
|
|
714
731
|
color: {}
|
|
715
732
|
},
|
|
716
733
|
setup(e) {
|
|
717
|
-
const t = e, n =
|
|
718
|
-
|
|
719
|
-
|
|
734
|
+
const t = e, n = i(() => [
|
|
735
|
+
U.title,
|
|
736
|
+
U[`level-${t.level ?? 1}`],
|
|
720
737
|
t.className,
|
|
721
|
-
t.weight &&
|
|
722
|
-
t.color &&
|
|
723
|
-
]), s =
|
|
724
|
-
return (l,
|
|
738
|
+
t.weight && U[t.weight],
|
|
739
|
+
t.color && U[`color-${t.color}`]
|
|
740
|
+
]), s = i(() => `h${t.level ?? 1}`);
|
|
741
|
+
return (l, d) => (a(), k(M(s.value), {
|
|
725
742
|
class: r(n.value)
|
|
726
743
|
}, {
|
|
727
|
-
default:
|
|
728
|
-
|
|
744
|
+
default: h(() => [
|
|
745
|
+
p(l.$slots, "default")
|
|
729
746
|
]),
|
|
730
747
|
_: 3
|
|
731
748
|
}, 8, ["class"]));
|
|
732
749
|
}
|
|
733
750
|
}), Ft = "_error_lk2jx_1", Ht = {
|
|
734
751
|
error: Ft
|
|
735
|
-
}, In = /* @__PURE__ */
|
|
752
|
+
}, In = /* @__PURE__ */ y({
|
|
736
753
|
name: "UiError",
|
|
737
754
|
__name: "error",
|
|
738
755
|
props: {
|
|
739
756
|
className: {}
|
|
740
757
|
},
|
|
741
758
|
setup(e) {
|
|
742
|
-
const t = e, n =
|
|
759
|
+
const t = e, n = i(() => [
|
|
743
760
|
Ht.error,
|
|
744
761
|
t.className
|
|
745
762
|
]);
|
|
746
|
-
return (s, l) => (
|
|
763
|
+
return (s, l) => (a(), m("span", {
|
|
747
764
|
class: r(n.value)
|
|
748
765
|
}, [
|
|
749
|
-
|
|
766
|
+
p(s.$slots, "default")
|
|
750
767
|
], 2));
|
|
751
768
|
}
|
|
752
|
-
}), Gt = "_root_1tj1b_1", Kt = "_xxs_1tj1b_26", Jt = "_xs_1tj1b_30", Qt = "_s_1tj1b_16", Xt = "_m_1tj1b_38", Yt = "_l_1tj1b_42", Zt = "_square_1tj1b_45", en = "_xl_1tj1b_50", tn = "_xxl_1tj1b_58",
|
|
769
|
+
}), Gt = "_root_1tj1b_1", Kt = "_xxs_1tj1b_26", Jt = "_xs_1tj1b_30", Qt = "_s_1tj1b_16", Xt = "_m_1tj1b_38", Yt = "_l_1tj1b_42", Zt = "_square_1tj1b_45", en = "_xl_1tj1b_50", tn = "_xxl_1tj1b_58", j = {
|
|
753
770
|
root: Gt,
|
|
754
771
|
default: "_default_1tj1b_14",
|
|
755
772
|
xxs: Kt,
|
|
@@ -761,7 +778,7 @@ const ot = "_label_1ic51_1", at = {
|
|
|
761
778
|
xl: en,
|
|
762
779
|
xxl: tn,
|
|
763
780
|
"3xl": "_3xl_1tj1b_66"
|
|
764
|
-
}, nn = ["src"], Sn = /* @__PURE__ */
|
|
781
|
+
}, nn = ["src"], Sn = /* @__PURE__ */ y({
|
|
765
782
|
name: "UiAvatar",
|
|
766
783
|
__name: "avatar",
|
|
767
784
|
props: {
|
|
@@ -770,41 +787,41 @@ const ot = "_label_1ic51_1", at = {
|
|
|
770
787
|
square: { type: Boolean, default: !1 }
|
|
771
788
|
},
|
|
772
789
|
setup(e) {
|
|
773
|
-
const t = E(!e.src), n = E(!1), s =
|
|
774
|
-
const
|
|
790
|
+
const t = E(!e.src), n = E(!1), s = i(() => e.src && !n.value), l = i(() => {
|
|
791
|
+
const b = !t.value || n.value || !e.src;
|
|
775
792
|
return [
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
e.square &&
|
|
779
|
-
|
|
793
|
+
j.root,
|
|
794
|
+
j[e.size],
|
|
795
|
+
e.square && j.square,
|
|
796
|
+
b && j.default
|
|
780
797
|
];
|
|
781
798
|
});
|
|
782
799
|
ae(
|
|
783
800
|
() => e.src,
|
|
784
|
-
(
|
|
785
|
-
t.value = !
|
|
801
|
+
(b) => {
|
|
802
|
+
t.value = !b, n.value = !1;
|
|
786
803
|
},
|
|
787
804
|
{ immediate: !0 }
|
|
788
805
|
);
|
|
789
|
-
function
|
|
806
|
+
function d() {
|
|
790
807
|
t.value = !0;
|
|
791
808
|
}
|
|
792
|
-
function
|
|
809
|
+
function u() {
|
|
793
810
|
n.value = !0;
|
|
794
811
|
}
|
|
795
|
-
return (
|
|
812
|
+
return (b, w) => (a(), m("div", {
|
|
796
813
|
class: r(l.value)
|
|
797
814
|
}, [
|
|
798
|
-
s.value ? (
|
|
815
|
+
s.value ? (a(), m("img", {
|
|
799
816
|
key: 0,
|
|
800
|
-
src:
|
|
801
|
-
onLoad:
|
|
802
|
-
onError:
|
|
803
|
-
}, null, 40, nn)) :
|
|
804
|
-
b
|
|
817
|
+
src: b.src,
|
|
818
|
+
onLoad: d,
|
|
819
|
+
onError: u
|
|
820
|
+
}, null, 40, nn)) : _("", !0),
|
|
821
|
+
p(b.$slots, "default")
|
|
805
822
|
], 2));
|
|
806
823
|
}
|
|
807
|
-
}), sn = "_stack_1b4a2_1", ln = "_auto_1b4a2_9", on = "_row_1b4a2_13", an = "_reverse_1b4a2_16", rn = "_column_1b4a2_21", cn = "_full_1b4a2_30", un = "_xxs_1b4a2_34", dn = "_xs_1b4a2_38", _n = "_s_1b4a2_1", mn = "_m_1b4a2_46",
|
|
824
|
+
}), sn = "_stack_1b4a2_1", ln = "_auto_1b4a2_9", on = "_row_1b4a2_13", an = "_reverse_1b4a2_16", rn = "_column_1b4a2_21", cn = "_full_1b4a2_30", un = "_xxs_1b4a2_34", dn = "_xs_1b4a2_38", _n = "_s_1b4a2_1", mn = "_m_1b4a2_46", fn = "_l_1b4a2_50", bn = "_xl_1b4a2_54", pn = "_xxl_1b4a2_58", yn = "_xxxl_1b4a2_62", kn = "_xxxxl_1b4a2_66", gn = "_xxxxxl_1b4a2_70", B = {
|
|
808
825
|
stack: sn,
|
|
809
826
|
auto: ln,
|
|
810
827
|
row: on,
|
|
@@ -815,9 +832,9 @@ const ot = "_label_1ic51_1", at = {
|
|
|
815
832
|
xs: dn,
|
|
816
833
|
s: _n,
|
|
817
834
|
m: mn,
|
|
818
|
-
l:
|
|
835
|
+
l: fn,
|
|
819
836
|
xl: bn,
|
|
820
|
-
xxl:
|
|
837
|
+
xxl: pn,
|
|
821
838
|
xxxl: yn,
|
|
822
839
|
xxxxl: kn,
|
|
823
840
|
xxxxxl: gn,
|
|
@@ -829,7 +846,7 @@ const ot = "_label_1ic51_1", at = {
|
|
|
829
846
|
"cross-start": "_cross-start_1b4a2_94",
|
|
830
847
|
"cross-center": "_cross-center_1b4a2_98",
|
|
831
848
|
"cross-end": "_cross-end_1b4a2_102"
|
|
832
|
-
}, Un = /* @__PURE__ */
|
|
849
|
+
}, Un = /* @__PURE__ */ y({
|
|
833
850
|
name: "UiStack",
|
|
834
851
|
__name: "stack",
|
|
835
852
|
props: {
|
|
@@ -842,7 +859,7 @@ const ot = "_label_1ic51_1", at = {
|
|
|
842
859
|
size: { default: "full" }
|
|
843
860
|
},
|
|
844
861
|
setup(e) {
|
|
845
|
-
const t =
|
|
862
|
+
const t = i(() => e.gap ? {
|
|
846
863
|
xxs: "xxs",
|
|
847
864
|
xs: "xs",
|
|
848
865
|
s: "s",
|
|
@@ -853,20 +870,20 @@ const ot = "_label_1ic51_1", at = {
|
|
|
853
870
|
"3xl": "xxxl",
|
|
854
871
|
"4xl": "xxxxl",
|
|
855
872
|
"5xl": "xxxxxl"
|
|
856
|
-
}[e.gap] : ""), n =
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
e.mainAlignment ?
|
|
861
|
-
e.crossAlignment ?
|
|
862
|
-
e.reverse ?
|
|
863
|
-
|
|
873
|
+
}[e.gap] : ""), n = i(() => [
|
|
874
|
+
B.stack,
|
|
875
|
+
B[e.direction],
|
|
876
|
+
B[t.value],
|
|
877
|
+
e.mainAlignment ? B[`main-${e.mainAlignment}`] : "",
|
|
878
|
+
e.crossAlignment ? B[`cross-${e.crossAlignment}`] : "",
|
|
879
|
+
e.reverse ? B.reverse : "",
|
|
880
|
+
B[e.size]
|
|
864
881
|
]);
|
|
865
|
-
return (s, l) => (
|
|
882
|
+
return (s, l) => (a(), k(M(s.tagName), {
|
|
866
883
|
class: r(n.value)
|
|
867
884
|
}, {
|
|
868
|
-
default:
|
|
869
|
-
|
|
885
|
+
default: h(() => [
|
|
886
|
+
p(s.$slots, "default")
|
|
870
887
|
]),
|
|
871
888
|
_: 3
|
|
872
889
|
}, 8, ["class"]));
|
|
@@ -874,17 +891,17 @@ const ot = "_label_1ic51_1", at = {
|
|
|
874
891
|
});
|
|
875
892
|
export {
|
|
876
893
|
Sn as UiAvatar,
|
|
877
|
-
|
|
894
|
+
R as UiButton,
|
|
878
895
|
xn as UiButtonIcon,
|
|
879
896
|
wn as UiButtonLink,
|
|
880
897
|
In as UiError,
|
|
881
|
-
|
|
882
|
-
|
|
898
|
+
$ as UiIcon,
|
|
899
|
+
Bn as UiInput,
|
|
883
900
|
rt as UiLabel,
|
|
884
901
|
be as UiLoader,
|
|
885
|
-
|
|
902
|
+
Cn as UiPlank,
|
|
886
903
|
Un as UiStack,
|
|
887
|
-
|
|
888
|
-
|
|
904
|
+
Tn as UiText,
|
|
905
|
+
qn as UiTitle,
|
|
889
906
|
$n as injectSvgSprite
|
|
890
907
|
};
|