@huntflow/ui 0.1.6 → 0.1.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.
Files changed (52) hide show
  1. package/package.json +1 -1
  2. package/dist/components/index.d.ts +0 -19
  3. package/dist/components/ui-avatar/avatar.vue.d.ts +0 -22
  4. package/dist/components/ui-avatar/index.d.ts +0 -3
  5. package/dist/components/ui-avatar/types.d.ts +0 -6
  6. package/dist/components/ui-button/button.vue.d.ts +0 -33
  7. package/dist/components/ui-button/index.d.ts +0 -3
  8. package/dist/components/ui-button/types.d.ts +0 -16
  9. package/dist/components/ui-button-icon/button-icon.vue.d.ts +0 -15
  10. package/dist/components/ui-button-icon/index.d.ts +0 -2
  11. package/dist/components/ui-button-icon/types.d.ts +0 -14
  12. package/dist/components/ui-button-link/button-link.vue.d.ts +0 -21
  13. package/dist/components/ui-button-link/index.d.ts +0 -2
  14. package/dist/components/ui-error/error.vue.d.ts +0 -18
  15. package/dist/components/ui-error/index.d.ts +0 -3
  16. package/dist/components/ui-error/types.d.ts +0 -3
  17. package/dist/components/ui-icon/icon-list.d.ts +0 -1
  18. package/dist/components/ui-icon/icon.vue.d.ts +0 -3
  19. package/dist/components/ui-icon/index.d.ts +0 -4
  20. package/dist/components/ui-icon/types.d.ts +0 -7
  21. package/dist/components/ui-input/index.d.ts +0 -3
  22. package/dist/components/ui-input/input.vue.d.ts +0 -27
  23. package/dist/components/ui-input/types.d.ts +0 -20
  24. package/dist/components/ui-label/index.d.ts +0 -3
  25. package/dist/components/ui-label/label.vue.d.ts +0 -18
  26. package/dist/components/ui-label/types.d.ts +0 -3
  27. package/dist/components/ui-label-content/index.d.ts +0 -2
  28. package/dist/components/ui-label-content/label-content.vue.d.ts +0 -24
  29. package/dist/components/ui-loader/index.d.ts +0 -3
  30. package/dist/components/ui-loader/loader.vue.d.ts +0 -6
  31. package/dist/components/ui-loader/types.d.ts +0 -6
  32. package/dist/components/ui-plank/index.d.ts +0 -3
  33. package/dist/components/ui-plank/plank.vue.d.ts +0 -24
  34. package/dist/components/ui-plank/types.d.ts +0 -7
  35. package/dist/components/ui-radio-button/index.d.ts +0 -3
  36. package/dist/components/ui-radio-button/radio-button.vue.d.ts +0 -13
  37. package/dist/components/ui-radio-button/types.d.ts +0 -19
  38. package/dist/components/ui-text/index.d.ts +0 -3
  39. package/dist/components/ui-text/text.vue.d.ts +0 -21
  40. package/dist/components/ui-text/types.d.ts +0 -5
  41. package/dist/components/ui-textarea/index.d.ts +0 -3
  42. package/dist/components/ui-textarea/textarea.vue.d.ts +0 -25
  43. package/dist/components/ui-textarea/types.d.ts +0 -16
  44. package/dist/components/ui-title/index.d.ts +0 -3
  45. package/dist/components/ui-title/title.vue.d.ts +0 -18
  46. package/dist/components/ui-title/types.d.ts +0 -5
  47. package/dist/global.css +0 -1
  48. package/dist/global.css.d.ts +0 -1
  49. package/dist/index.d.ts +0 -1
  50. package/dist/shared/utils.d.ts +0 -3
  51. package/dist/sprite-CzhZOw1N.js +0 -4
  52. package/dist/ui.es.js +0 -674
package/dist/ui.es.js DELETED
@@ -1,674 +0,0 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=document.head.querySelector("meta[property=csp-nonce]")?.content,t.appendChild(document.createTextNode("@keyframes _loader-animation_t6bg6_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_t6bg6_10{display:block;color:var(--hf-loader-color);flex:0 0 auto}._circle_t6bg6_15{animation-name:_loader-animation_t6bg6_1;animation-iteration-count:infinite;animation-duration:1s;animation-timing-function:linear}._white_t6bg6_22{--hf-loader-color: var(--hf-color-text-invert)}._black_t6bg6_26{--hf-loader-color: var(--hf-color-text-main)}._s_t6bg6_30{width:18px;height:18px}._m_t6bg6_35{width:28px;height:28px}._l_t6bg6_10{width:56px;height:56px}._spinner_t6bg6_45{display:inline-block;border:1px solid var(--hf-loader-color);border-top-color:transparent;border-left-color:transparent;border-radius:50%}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._button_8zhhb_1{position:relative;display:inline-flex;align-items:center;justify-content:center;border:solid 1px;cursor:pointer;font-family:var(--hf-font-family-body),sans-serif;font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:var(--hf-spacing-button-icon)}._button_8zhhb_1:active{background-color:#999}._button_8zhhb_1:focus{outline:none}._button_8zhhb_1:focus-visible{outline:solid 3px var(--hf-color-button-disable-default)}._button_8zhhb_1:is(._disabled_8zhhb_1),._button_8zhhb_1:is(._disabled_8zhhb_1):hover{background:var(--hf-color-button-disable-default);border-color:transparent;color:var(--hf-color-text-light);box-shadow:none;transform:none;cursor:default}._button_8zhhb_1._loading_8zhhb_1{cursor:default}._button_8zhhb_1._loading_8zhhb_1>*:not(._loader_8zhhb_1){visibility:hidden}._button_8zhhb_1+._button_8zhhb_1{margin-left:var(--hf-spacing-button-between)}._content_8zhhb_1{display:flex;line-height:inherit}._content_8zhhb_1:first-child:last-child{width:100%;text-align:center}._loader_8zhhb_1{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}._dropdownIcon_8zhhb_1{margin-left:calc(var(--hf-spacing-button-icon) * -1)}._s_8zhhb_2{border-radius:var(--hf-radius-button-s);font-size:var(--hf-font-size-button-s);font-weight:var(--hf-font-weight-button-s);line-height:var(--hf-font-line-height-button-s);padding:var(--hf-padding-button-top-bottom-s) var(--hf-padding-button-left-right-s)}._xs_8zhhb_1{font-size:var(--hf-font-size-button-xs);font-weight:var(--hf-font-weight-button-xs);line-height:var(--hf-font-line-height-button-xs);padding:var(--hf-padding-button-top-bottom-xs) var(--hf-padding-button-left-right-xs)}._xs_8zhhb_1._square_8zhhb_1{border-radius:var(--hf-radius-button-xs)}._xs_8zhhb_1._circle_8zhhb_1{border-radius:var(--hf-radius-button-circle)}._m_8zhhb_1{border-radius:var(--hf-radius-button-m);font-size:var(--hf-font-size-button-m);font-weight:var(--hf-font-weight-button-m);line-height:var(--hf-font-line-height-button-m);padding:var(--hf-padding-button-top-bottom-m) var(--hf-padding-button-left-right-m)}._l_8zhhb_1{border-radius:var(--hf-radius-button-l);font-size:var(--hf-font-size-button-l);font-weight:var(--hf-font-weight-button-l);line-height:var(--hf-font-line-height-button-l);padding:var(--hf-padding-button-top-bottom-l) var(--hf-padding-button-left-right-l)}._primary_8zhhb_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_8zhhb_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_8zhhb_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._secondary_8zhhb_1{color:var(--hf-color-text-main);background-color:var(--hf-color-button-secondary-fill-default);border-color:var(--hf-color-button-secondary-border-default);box-shadow:0 1px 4px #0505050a}._secondary_8zhhb_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_8zhhb_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._accent_8zhhb_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_8zhhb_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_8zhhb_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._danger_8zhhb_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_8zhhb_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_8zhhb_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._jobsites_8zhhb_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_8zhhb_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_8zhhb_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._ghost_8zhhb_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost_8zhhb_1:hover{background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_8zhhb_1:active{background-color:var(--hf-color-button-secondary-fill-active)}._ghost-danger_8zhhb_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost-danger_8zhhb_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_8zhhb_1:active{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-active)}:root{--hf-btn-size-xs: 28px;--hf-btn-size-s: 32px;--hf-btn-size-m: 36px;--hf-btn-size-l: 40px}._s_1oi85_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_1oi85_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs);border-radius:var(--hf-radius-button-circle)}._m_1oi85_20{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_1oi85_25{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_1oi85_31{padding:0}._button_1vqio_1{padding:0 2px 0 0;border:none;margin:0;cursor:pointer;display:flex;flex-direction:row;gap:var(--hf-spacing-button-link-s);align-items:center;background-color:transparent;color:var(--hf-color-link-default);font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-button-link-s);font-style:normal;font-weight:var(--hf-font-weight-button-link-s);line-height:var(--hf-font-line-height-button-link-s)}._button_1vqio_1:hover{color:var(--hf-color-link-hover)}._label_1a45q_1{color:var(--hf-color-text-main);font-size:var(--hf-font-size-label-title);font-style:normal;font-weight:var(--hf-font-weight-regular);line-height:var(--hf-font-line-height-label-title)}._content_14uwa_1{display:flex;flex-direction:row;gap:var(--hf-spacing-xs);flex:1;margin-bottom:var(--hf-spacing-xs)}._label_14uwa_9{display:flex;flex-direction:row;gap:var(--hf-spacing-xs);font-style:normal;flex:1;margin-bottom:var(--hf-spacing-xs)}._header_14uwa_18{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._headerWrapper_14uwa_26{flex-grow:1;gap:var(--hf-spacing-xs);display:flex;flex-direction:column}._title_14uwa_33{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-label-title);font-weight:var(--hf-font-weight-label-title);line-height:var(--hf-font-line-height-label-title)}._subTitleRow_14uwa_41{display:flex;justify-content:space-between;font-size:var(--hf-font-size-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle)}._subTitle_14uwa_41{line-height:var(--hf-font-line-height-label-subtitle)}._link_14uwa_53{overflow:hidden;text-overflow:ellipsis;font-size:var(--hf-font-size-label-title);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle);margin-left:auto;align-self:flex-end;height:20px}._link_14uwa_53 a{text-decoration:none;color:var(--hf-color-text-semilight)}._linkUpper_14uwa_70{margin-bottom:1px}._wrapper_ep5oa_1{margin-bottom:var(--hf-spacing-xs)}._input_ep5oa_5{border-radius:var(--hf-radius-input-default);border:var(--hf-border-xs) solid var(--hf-color-input-border-default);background:var(--hf-color-input-background-default);padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-right-default) var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-default);width:100%;box-sizing:border-box;color:var(--hf-color-input-text-default);font-size:var(--hf-font-size-field-text);font-weight:var(--hf-font-weight-field-text);line-height:var(--hf-font-line-height-field-text)}._input_ep5oa_5:active{border-color:var(--hf-color-input-border-focus)}._input_ep5oa_5:focus{border-color:var(--hf-color-input-border-focus);outline:solid 3px var(--hf-color-input-border-focus-visible)}._input_ep5oa_5:disabled{outline:none;border-color:var(--hf-color-input-text-disable);background:var(--hf-color-input-background-disable);color:var(--hf-color-input-text-disable)}._error_ep5oa_36,._error_ep5oa_36:active{border-color:var(--hf-color-input-border-error)}._error_ep5oa_36:focus{border-color:var(--hf-color-input-border-error);outline:solid 3px var(--hf-color-input-border-error-focus-visible)}._description_ep5oa_48{margin-top:var(--hf-spacing-xs);font-size:var(--hf-font-size-field-error);font-weight:var(--hf-font-weight-field-description);line-height:var(--hf-font-line-height-field-description)}._description_ep5oa_48 a{text-decoration:underline}._descriptionText_ep5oa_59{color:var(--hf-color-input-text-description)}._errorText_ep5oa_63{color:var(--hf-color-text-danger)}._inputWrapper_ep5oa_67{position:relative}._leftSpace_ep5oa_71{padding-left:42px}._rightSpace_ep5oa_75{padding-right:42px}._leftIcon_ep5oa_79,._rightIcon_ep5oa_80{position:absolute;height:100%}._leftIcon_ep5oa_79{left:15px}._rightIcon_ep5oa_80{padding:0 9px;right:0}._rightIcon_ep5oa_80[aria-label^=close]{color:var(--hf-color-text-light);cursor:pointer}._plank_8tn62_1{border-radius:var(--hf-radius-m);padding:var(--hf-spacing-m) var(--hf-spacing-l);border-width:1px;border-style:solid;font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary-regular);line-height:var(--hf-font-line-height-text-primary);font-style:normal;display:flex;flex-direction:row;gap:var(--hf-spacing-m);align-items:center;justify-content:space-between}._default_8tn62_19{color:var(--hf-color-text-main);border-color:var(--hf-color-plank-default-border);background-color:var(--hf-color-plank-default-background)}._accent_8tn62_25{color:var(--hf-color-plank-success-text);border-color:var(--hf-color-plank-success-border);background-color:var(--hf-color-plank-success-background)}._danger_8tn62_31{color:var(--hf-color-plank-danger-text);border-color:var(--hf-color-plank-danger-border);background-color:var(--hf-color-plank-danger-background)}._text_8tn62_37{flex-grow:1}._icon_8tn62_41{width:var(--hf-font-line-height-text-primary);height:var(--hf-font-line-height-text-primary)}._text_1mrtv_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._primary_1mrtv_8{font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary-regular);line-height:var(--hf-font-line-height-text-primary)}._primary_1mrtv_8._medium_1mrtv_12{font-weight:var(--hf-font-weight-text-primary-medium)}._secondary_1mrtv_17{font-size:var(--hf-font-size-text-secondary);font-weight:var(--hf-font-weight-text-secondary-regular);line-height:var(--hf-font-line-height-text-secondary)}._secondary_1mrtv_17._medium_1mrtv_12{font-weight:var(--hf-font-weight-text-secondary-medium)}._accent_1mrtv_26{font-size:var(--hf-font-size-text-accent);font-weight:var(--hf-font-weight-text-accent-regular);line-height:var(--hf-font-line-height-text-accent)}._accent_1mrtv_26._medium_1mrtv_12{font-weight:var(--hf-font-weight-text-accent-medium)}._subtitle_1mrtv_35{font-size:var(--hf-font-size-text-subtitle);font-weight:var(--hf-font-weight-text-subtitle);line-height:var(--hf-font-line-height-text-subtitle)}._title_471uj_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._level-1_471uj_8{font-size:var(--hf-font-size-text-h1);font-weight:var(--hf-font-weight-text-h1-regular);line-height:var(--hf-font-line-height-text-h1)}._level-1_471uj_8._medium_471uj_12{font-weight:var(--hf-font-weight-text-h1-medium)}._level-2_471uj_17{font-size:var(--hf-font-size-text-h2);font-weight:var(--hf-font-weight-text-h2-regular);line-height:var(--hf-font-line-height-text-h2)}._level-2_471uj_17._medium_471uj_12{font-weight:var(--hf-font-weight-text-h2-medium)}._level-3_471uj_26{font-size:var(--hf-font-size-text-h3);font-weight:var(--hf-font-weight-text-h3-regular);line-height:var(--hf-font-line-height-text-h3)}._level-3_471uj_26._medium_471uj_12{font-weight:var(--hf-font-weight-text-h3-medium)}._level-4_471uj_35{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4-regular);line-height:var(--hf-font-line-height-text-h4)}._level-4_471uj_35._medium_471uj_12{font-weight:var(--hf-font-weight-text-h4-medium)}._error_1y1de_1{font-size:var(--hf-font-size-label-subtitle);font-weight:var(--hf-font-weight-regular);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-danger)}")),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { defineComponent as f, computed as c, createElementBlock as p, openBlock as a, normalizeClass as r, unref as l, normalizeStyle as K, createElementVNode as j, useSlots as P, createCommentVNode as m, renderSlot as b, createBlock as g, createVNode as B, mergeProps as U, withCtx as v, Fragment as J, toValue as Q, getCurrentInstance as X, ref as Y, Comment as Z, cloneVNode as ee, h as M, mergeModels as R, useAttrs as te, useModel as ne, createTextVNode as z, toDisplayString as S, resolveDynamicComponent as x } from "vue";
3
- const C = (s, e) => (e ? s[e] : s.default)?.().some((n) => {
4
- const o = n.children;
5
- return o && o.toString().trim() !== "";
6
- }) ?? !1, se = "_loader_t6bg6_10", oe = "_circle_t6bg6_15", le = "_white_t6bg6_22", ae = "_black_t6bg6_26", re = "_s_t6bg6_30", ce = "_m_t6bg6_35", ie = "_l_t6bg6_10", ue = "_spinner_t6bg6_45", I = {
7
- loader: se,
8
- circle: oe,
9
- "loader-animation": "_loader-animation_t6bg6_1",
10
- white: le,
11
- black: ae,
12
- s: re,
13
- m: ce,
14
- l: ie,
15
- spinner: ue
16
- }, de = /* @__PURE__ */ f({
17
- __name: "loader",
18
- props: {
19
- className: {},
20
- size: { default: "l" },
21
- color: { default: "black" }
22
- },
23
- setup(s) {
24
- const e = s, t = c(() => [I.loader, I[e.size], I[e.color], I.circle]);
25
- return (n, o) => (a(), p("span", {
26
- class: r([l(I).spinner, t.value])
27
- }, null, 2));
28
- }
29
- }), _e = ["aria-label", "width", "height"], pe = ["xlink:href"], me = /* @__PURE__ */ f({
30
- __name: "icon",
31
- props: {
32
- name: {},
33
- color: {},
34
- block: { type: Boolean }
35
- },
36
- setup(s) {
37
- const e = s, t = c(() => {
38
- const o = e?.name?.match(/(\d+)$/);
39
- return o ? Number.parseInt(o[1], 10) : 16;
40
- }), n = c(() => {
41
- const o = {};
42
- return e.color && (o.color = e.color), e.block && (o.display = "block"), o;
43
- });
44
- return (o, i) => (a(), p("svg", {
45
- class: r(o.$style.icon),
46
- "aria-label": o.name,
47
- style: K(n.value),
48
- role: "img",
49
- width: t.value,
50
- height: t.value
51
- }, [
52
- j("use", {
53
- "xlink:href": `#${o.name}`
54
- }, null, 8, pe)
55
- ], 14, _e));
56
- }
57
- }), fe = "_icon_1p8iz_2", be = {
58
- icon: fe
59
- }, he = (s, e) => {
60
- const t = s.__vccOpts || s;
61
- for (const [n, o] of e)
62
- t[n] = o;
63
- return t;
64
- }, ye = {
65
- $style: be
66
- }, T = /* @__PURE__ */ he(me, [["__cssModules", ye]]), Ht = async () => {
67
- if (!(typeof document > "u") && !document.getElementById("__svg-sprite__"))
68
- try {
69
- const e = `
70
- <svg id="__svg-sprite__" xmlns="http://www.w3.org/2000/svg" style="display: none;">
71
- ${(await import("./sprite-CzhZOw1N.js")).default}
72
- </svg>
73
- `;
74
- document.body.insertAdjacentHTML("afterbegin", e);
75
- } catch (s) {
76
- console.error("Failed to load SVG sprite:", s);
77
- }
78
- }, ve = "_button_8zhhb_1", ge = "_disabled_8zhhb_1", ke = "_loading_8zhhb_1", $e = "_loader_8zhhb_1", we = "_content_8zhhb_1", Ce = "_dropdownIcon_8zhhb_1", Te = "_s_8zhhb_2", Ie = "_xs_8zhhb_1", ze = "_square_8zhhb_1", Se = "_circle_8zhhb_1", Be = "_m_8zhhb_1", Ne = "_l_8zhhb_1", Le = "_primary_8zhhb_1", je = "_secondary_8zhhb_1", Ue = "_accent_8zhhb_1", Me = "_danger_8zhhb_1", Ee = "_jobsites_8zhhb_1", Oe = "_ghost_8zhhb_1", y = {
79
- button: ve,
80
- disabled: ge,
81
- loading: ke,
82
- loader: $e,
83
- content: we,
84
- dropdownIcon: Ce,
85
- s: Te,
86
- xs: Ie,
87
- square: ze,
88
- circle: Se,
89
- m: Be,
90
- l: Ne,
91
- primary: Le,
92
- secondary: je,
93
- accent: Ue,
94
- danger: Me,
95
- jobsites: Ee,
96
- ghost: Oe,
97
- "ghost-danger": "_ghost-danger_8zhhb_1"
98
- }, Pe = ["name", "type", "disabled"], H = /* @__PURE__ */ f({
99
- __name: "button",
100
- props: {
101
- size: { default: "m" },
102
- className: {},
103
- type: { default: "primary" },
104
- disabled: { type: Boolean, default: !1 },
105
- loading: { type: Boolean, default: !1 },
106
- dropdown: { type: Boolean, default: !1 },
107
- active: { type: Boolean, default: !1 },
108
- name: {},
109
- circle: { type: Boolean, default: !1 },
110
- bordered: { type: Boolean, default: !1 },
111
- htmlType: {}
112
- },
113
- emits: ["click"],
114
- setup(s) {
115
- const e = s, t = P(), n = {
116
- primary: "white",
117
- secondary: "black",
118
- accent: "white",
119
- danger: "white",
120
- jobsites: "white",
121
- ghost: "black",
122
- "ghost-danger": "black"
123
- }, o = c(() => C(t)), i = c(() => [
124
- y.button,
125
- y[e.size],
126
- y[e.type],
127
- e.circle ? [y.circle] : [y.square],
128
- {
129
- [y.disabled]: e.disabled,
130
- [y.loading]: e.loading,
131
- [y.active]: e.active,
132
- [y.bordered]: e.bordered
133
- },
134
- e.className
135
- ]), u = c(() => n[e.type] || "white");
136
- return (_, k) => (a(), p("button", {
137
- name: _.name,
138
- class: r(i.value),
139
- type: _.htmlType,
140
- disabled: _.disabled || _.loading,
141
- onClick: k[0] || (k[0] = ($) => _.$emit("click"))
142
- }, [
143
- _.loading ? (a(), p("div", {
144
- key: 0,
145
- class: r(l(y).loader)
146
- }, [
147
- B(l(de), {
148
- size: "s",
149
- color: u.value
150
- }, null, 8, ["color"])
151
- ], 2)) : m("", !0),
152
- _.$slots.before ? b(_.$slots, "before", { key: 1 }) : m("", !0),
153
- o.value ? (a(), p("span", {
154
- key: 2,
155
- class: r(l(y).content)
156
- }, [
157
- b(_.$slots, "default")
158
- ], 2)) : m("", !0),
159
- _.$slots.after ? b(_.$slots, "after", { key: 3 }) : m("", !0),
160
- _.dropdown ? (a(), g(l(T), {
161
- key: 4,
162
- class: r(l(y).dropdownIcon),
163
- name: "chevron-down-18"
164
- }, null, 8, ["class"])) : m("", !0)
165
- ], 10, Pe));
166
- }
167
- }), qe = "_s_1oi85_9", Re = "_xs_1oi85_14", We = "_m_1oi85_20", xe = "_l_1oi85_25", He = "_button_1oi85_31", W = {
168
- s: qe,
169
- xs: Re,
170
- m: We,
171
- l: xe,
172
- button: He
173
- }, Vt = /* @__PURE__ */ f({
174
- __name: "button-icon",
175
- props: {
176
- icon: {},
177
- size: { default: "m" },
178
- className: {},
179
- type: { default: "primary" },
180
- disabled: { type: Boolean, default: !1 },
181
- loading: { type: Boolean, default: !1 },
182
- active: { type: Boolean, default: !1 },
183
- name: {},
184
- circle: { type: Boolean, default: !1 },
185
- bordered: { type: Boolean, default: !1 }
186
- },
187
- emits: ["click"],
188
- setup(s) {
189
- const e = s, t = c(() => [W.button, W[e.size], e.className]), n = c(() => {
190
- const i = e.size === "xs" ? "18" : "20";
191
- return e.icon.replace(/-?\d*$/, `-${i}`);
192
- }), o = c(() => e.size === "xs");
193
- return (i, u) => (a(), g(l(H), U({ class: t.value }, e, {
194
- "html-type": "button",
195
- circle: o.value,
196
- onClick: u[0] || (u[0] = (_) => i.$emit("click"))
197
- }), {
198
- before: v(() => [
199
- B(l(T), { name: n.value }, null, 8, ["name"])
200
- ]),
201
- _: 1
202
- }, 16, ["class", "circle"]));
203
- }
204
- }), Ve = "_button_1vqio_1", Ae = {
205
- button: Ve
206
- }, At = /* @__PURE__ */ f({
207
- __name: "button-link",
208
- emits: ["click"],
209
- setup(s) {
210
- return (e, t) => (a(), p("button", {
211
- class: r(l(Ae).button),
212
- type: "button",
213
- onClick: t[0] || (t[0] = (n) => e.$emit("click"))
214
- }, [
215
- B(l(T), { name: "plus-18" }),
216
- b(e.$slots, "default")
217
- ], 2));
218
- }
219
- });
220
- function V(s) {
221
- return s ? s.flatMap((e) => e.type === J ? V(e.children) : [e]) : [];
222
- }
223
- function De(s) {
224
- var e;
225
- const t = Q(s);
226
- return (e = t?.$el) != null ? e : t;
227
- }
228
- function Fe() {
229
- const s = X(), e = Y(), t = c(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : De(e)), n = Object.assign({}, s.exposed), o = {};
230
- for (const u in s.props) Object.defineProperty(o, u, {
231
- enumerable: !0,
232
- configurable: !0,
233
- get: () => s.props[u]
234
- });
235
- if (Object.keys(n).length > 0) for (const u in n) Object.defineProperty(o, u, {
236
- enumerable: !0,
237
- configurable: !0,
238
- get: () => n[u]
239
- });
240
- Object.defineProperty(o, "$el", {
241
- enumerable: !0,
242
- configurable: !0,
243
- get: () => s.vnode.el
244
- }), s.exposed = o;
245
- function i(u) {
246
- e.value = u, u && (Object.defineProperty(o, "$el", {
247
- enumerable: !0,
248
- configurable: !0,
249
- get: () => u instanceof Element ? u : u.$el
250
- }), s.exposed = o);
251
- }
252
- return {
253
- forwardRef: i,
254
- currentRef: e,
255
- currentElement: t
256
- };
257
- }
258
- const Ge = f({
259
- name: "PrimitiveSlot",
260
- inheritAttrs: !1,
261
- setup(s, { attrs: e, slots: t }) {
262
- return () => {
263
- if (!t.default) return null;
264
- const n = V(t.default()), o = n.findIndex((k) => k.type !== Z);
265
- if (o === -1) return n;
266
- const i = n[o];
267
- delete i.props?.ref;
268
- const u = i.props ? U(e, i.props) : e, _ = ee({
269
- ...i,
270
- props: {}
271
- }, u);
272
- return n.length === 1 ? _ : (n[o] = _, n);
273
- };
274
- }
275
- }), Ke = [
276
- "area",
277
- "img",
278
- "input"
279
- ], Je = f({
280
- name: "Primitive",
281
- inheritAttrs: !1,
282
- props: {
283
- asChild: {
284
- type: Boolean,
285
- default: !1
286
- },
287
- as: {
288
- type: [String, Object],
289
- default: "div"
290
- }
291
- },
292
- setup(s, { attrs: e, slots: t }) {
293
- const n = s.asChild ? "template" : s.as;
294
- return typeof n == "string" && Ke.includes(n) ? () => M(n, e) : n !== "template" ? () => M(s.as, e, { default: t.default }) : () => M(Ge, e, { default: t.default });
295
- }
296
- });
297
- var Qe = /* @__PURE__ */ f({
298
- __name: "Label",
299
- props: {
300
- for: {
301
- type: String,
302
- required: !1
303
- },
304
- asChild: {
305
- type: Boolean,
306
- required: !1
307
- },
308
- as: {
309
- type: null,
310
- required: !1,
311
- default: "label"
312
- }
313
- },
314
- setup(s) {
315
- const e = s;
316
- return Fe(), (t, n) => (a(), g(l(Je), U(e, { onMousedown: n[0] || (n[0] = (o) => {
317
- !o.defaultPrevented && o.detail > 1 && o.preventDefault();
318
- }) }), {
319
- default: v(() => [b(t.$slots, "default")]),
320
- _: 3
321
- }, 16));
322
- }
323
- }), Xe = Qe;
324
- const Ye = "_label_1a45q_1", Ze = {
325
- label: Ye
326
- }, et = /* @__PURE__ */ f({
327
- __name: "label",
328
- props: {
329
- className: {}
330
- },
331
- setup(s) {
332
- const e = s, t = c(() => [
333
- Ze.label,
334
- e.className
335
- ]);
336
- return (n, o) => (a(), g(l(Xe), {
337
- class: r(t.value)
338
- }, {
339
- default: v(() => [
340
- b(n.$slots, "default")
341
- ]),
342
- _: 3
343
- }, 8, ["class"]));
344
- }
345
- }), tt = "_content_14uwa_1", nt = "_label_14uwa_9", st = "_header_14uwa_18", ot = "_headerWrapper_14uwa_26", lt = "_title_14uwa_33", at = "_subTitleRow_14uwa_41", rt = "_subTitle_14uwa_41", ct = "_link_14uwa_53", it = "_linkUpper_14uwa_70", w = {
346
- content: tt,
347
- label: nt,
348
- header: st,
349
- headerWrapper: ot,
350
- title: lt,
351
- subTitleRow: at,
352
- subTitle: rt,
353
- link: ct,
354
- linkUpper: it
355
- }, ut = /* @__PURE__ */ f({
356
- __name: "label-content",
357
- emits: ["click"],
358
- setup(s) {
359
- const e = P(), t = c(() => C(e, "header")), n = c(() => C(e)), o = c(() => C(e, "subTitle")), i = c(() => C(e, "link")), u = c(() => t.value || n.value || o.value), _ = c(() => !n.value && !o.value), k = c(
360
- () => [w.link, _.value && w.linkUpper].filter(Boolean)
361
- );
362
- return ($, N) => (a(), p("div", {
363
- class: r(l(w).content)
364
- }, [
365
- u.value ? (a(), p("span", {
366
- key: 0,
367
- class: r(l(w).headerWrapper)
368
- }, [
369
- t.value ? (a(), p("span", {
370
- key: 0,
371
- class: r(l(w).header)
372
- }, [
373
- b($.$slots, "header")
374
- ], 2)) : m("", !0),
375
- n.value ? (a(), p("span", {
376
- key: 1,
377
- class: r(l(w).title)
378
- }, [
379
- b($.$slots, "default")
380
- ], 2)) : m("", !0),
381
- o.value ? (a(), p("span", {
382
- key: 2,
383
- class: r(l(w).subTitleRow)
384
- }, [
385
- j("span", {
386
- class: r(l(w).subTitle)
387
- }, [
388
- b($.$slots, "subTitle")
389
- ], 2)
390
- ], 2)) : m("", !0)
391
- ], 2)) : m("", !0),
392
- i.value ? (a(), p("span", {
393
- key: 1,
394
- class: r(k.value),
395
- onClick: N[0] || (N[0] = (q) => $.$emit("click"))
396
- }, [
397
- b($.$slots, "link")
398
- ], 2)) : m("", !0)
399
- ], 2));
400
- }
401
- }), dt = "_wrapper_ep5oa_1", _t = "_input_ep5oa_5", pt = "_error_ep5oa_36", mt = "_description_ep5oa_48", ft = "_descriptionText_ep5oa_59", bt = "_errorText_ep5oa_63", ht = "_inputWrapper_ep5oa_67", yt = "_leftSpace_ep5oa_71", vt = "_rightSpace_ep5oa_75", gt = "_leftIcon_ep5oa_79", kt = "_rightIcon_ep5oa_80", h = {
402
- wrapper: dt,
403
- input: _t,
404
- error: pt,
405
- description: mt,
406
- descriptionText: ft,
407
- errorText: bt,
408
- inputWrapper: ht,
409
- leftSpace: yt,
410
- rightSpace: vt,
411
- leftIcon: gt,
412
- rightIcon: kt
413
- }, $t = ["id", "value", "name", "type", "disabled", "placeholder", "aria-invalid"], wt = ["innerHTML"], Ct = ["innerHTML"], Dt = /* @__PURE__ */ f({
414
- __name: "input",
415
- props: /* @__PURE__ */ R({
416
- value: {},
417
- type: { default: "text" },
418
- id: {},
419
- name: {},
420
- disabled: { type: Boolean },
421
- title: {},
422
- header: {},
423
- subTitle: {},
424
- link: {},
425
- placeholder: {},
426
- loading: { type: Boolean },
427
- error: {},
428
- description: {},
429
- className: {},
430
- leftIcon: {},
431
- rightIcon: {}
432
- }, {
433
- value: {},
434
- valueModifiers: {}
435
- }),
436
- emits: /* @__PURE__ */ R(["update:value", "enter", "clickLink", "clickIcon", "click", "focus", "blur"], ["update:value"]),
437
- setup(s, { emit: e }) {
438
- const t = s, n = e, o = te(), i = ne(s, "value"), u = c(() => [
439
- h.input,
440
- {
441
- [h.disabled]: t.disabled,
442
- [h.error]: t.error,
443
- [h.loading]: t.loading,
444
- [h.leftSpace]: !!t.leftIcon,
445
- [h.rightSpace]: !!t.rightIcon
446
- },
447
- t.className
448
- ]), _ = c(() => t.header || t.title || t.subTitle || t.link), k = c(() => t.description || t.error), $ = (d) => {
449
- d.key === "Enter" && n("enter");
450
- }, N = (d) => {
451
- n("update:value", d.target.value);
452
- }, q = () => {
453
- n("focus");
454
- }, A = () => {
455
- n("blur");
456
- }, D = () => {
457
- n("clickLink");
458
- }, F = () => {
459
- n("click");
460
- }, G = (d) => {
461
- d.preventDefault(), n("clickIcon");
462
- };
463
- return (d, Wt) => (a(), p("div", {
464
- class: r(l(h).wrapper)
465
- }, [
466
- _.value ? (a(), g(l(et), {
467
- key: 0,
468
- for: d.id,
469
- onClick: D
470
- }, {
471
- default: v(() => [
472
- B(l(ut), null, {
473
- header: v(() => [
474
- z(S(t.header), 1)
475
- ]),
476
- subTitle: v(() => [
477
- z(S(t.subTitle), 1)
478
- ]),
479
- link: v(() => [
480
- z(S(t.link), 1)
481
- ]),
482
- default: v(() => [
483
- z(" " + S(t.title) + " ", 1)
484
- ]),
485
- _: 1
486
- })
487
- ]),
488
- _: 1
489
- }, 8, ["for"])) : m("", !0),
490
- j("div", {
491
- class: r(l(h).inputWrapper)
492
- }, [
493
- d.leftIcon ? (a(), g(l(T), {
494
- key: 0,
495
- name: d.leftIcon,
496
- class: r(l(h).leftIcon)
497
- }, null, 8, ["name", "class"])) : m("", !0),
498
- j("input", U({
499
- id: d.id,
500
- value: i.value,
501
- name: d.name,
502
- type: d.type,
503
- disabled: d.disabled || d.loading,
504
- placeholder: d.placeholder,
505
- class: u.value,
506
- "aria-invalid": !!d.error
507
- }, l(o), {
508
- onInput: N,
509
- onKeydown: $,
510
- onFocus: q,
511
- onBlur: A,
512
- onClick: F
513
- }), null, 16, $t),
514
- d.rightIcon ? (a(), g(l(T), {
515
- key: 1,
516
- name: d.rightIcon,
517
- class: r(l(h).rightIcon),
518
- onClick: G
519
- }, null, 8, ["name", "class"])) : m("", !0)
520
- ], 2),
521
- k.value ? (a(), p("div", {
522
- key: 1,
523
- class: r(l(h).description)
524
- }, [
525
- d.error ? (a(), p("div", {
526
- key: 0,
527
- class: r(l(h).errorText),
528
- innerHTML: d.error
529
- }, null, 10, wt)) : m("", !0),
530
- d.description ? (a(), p("div", {
531
- key: 1,
532
- class: r(l(h).descriptionText),
533
- innerHTML: d.description
534
- }, null, 10, Ct)) : m("", !0)
535
- ], 2)) : m("", !0)
536
- ], 2));
537
- }
538
- }), Tt = "_plank_8tn62_1", It = "_accent_8tn62_25", zt = "_danger_8tn62_31", St = "_text_8tn62_37", Bt = "_icon_8tn62_41", L = {
539
- plank: Tt,
540
- default: "_default_8tn62_19",
541
- accent: It,
542
- danger: zt,
543
- text: St,
544
- icon: Bt
545
- }, Ft = /* @__PURE__ */ f({
546
- __name: "plank",
547
- props: {
548
- type: { default: "default" },
549
- icon: {},
550
- label: {}
551
- },
552
- emits: ["click"],
553
- setup(s) {
554
- const e = s, t = P(), n = c(() => C(t)), o = c(() => [L.plank, L[e.type]]);
555
- return (i, u) => (a(), p("div", {
556
- class: r(o.value)
557
- }, [
558
- i.icon ? (a(), p("div", {
559
- key: 0,
560
- class: r(l(L).icon)
561
- }, [
562
- B(l(T), { name: i.icon }, null, 8, ["name"])
563
- ], 2)) : m("", !0),
564
- n.value ? (a(), p("div", {
565
- key: 1,
566
- class: r(l(L).text)
567
- }, [
568
- b(i.$slots, "default")
569
- ], 2)) : m("", !0),
570
- i.label ? (a(), g(l(H), {
571
- key: 2,
572
- size: "xs",
573
- type: "secondary",
574
- onClick: u[0] || (u[0] = (_) => i.$emit("click"))
575
- }, {
576
- default: v(() => [
577
- z(S(i.label), 1)
578
- ]),
579
- _: 1
580
- })) : m("", !0)
581
- ], 2));
582
- }
583
- }), Nt = "_text_1mrtv_1", Lt = "_primary_1mrtv_8", jt = "_medium_1mrtv_12", Ut = "_secondary_1mrtv_17", Mt = "_accent_1mrtv_26", Et = "_subtitle_1mrtv_35", E = {
584
- text: Nt,
585
- primary: Lt,
586
- medium: jt,
587
- secondary: Ut,
588
- accent: Mt,
589
- subtitle: Et
590
- }, Gt = /* @__PURE__ */ f({
591
- __name: "text",
592
- props: {
593
- tagName: { default: "p" },
594
- kind: { default: "primary" },
595
- weight: {}
596
- },
597
- setup(s) {
598
- const e = s, t = c(() => [
599
- E.text,
600
- E[e.kind],
601
- e.weight && E[e.weight]
602
- ]);
603
- return (n, o) => (a(), g(x(n.tagName), {
604
- class: r(t.value)
605
- }, {
606
- default: v(() => [
607
- b(n.$slots, "default")
608
- ]),
609
- _: 3
610
- }, 8, ["class"]));
611
- }
612
- }), Ot = "_title_471uj_1", Pt = "_medium_471uj_12", O = {
613
- title: Ot,
614
- "level-1": "_level-1_471uj_8",
615
- medium: Pt,
616
- "level-2": "_level-2_471uj_17",
617
- "level-3": "_level-3_471uj_26",
618
- "level-4": "_level-4_471uj_35"
619
- }, Kt = /* @__PURE__ */ f({
620
- __name: "title",
621
- props: {
622
- level: {},
623
- className: {},
624
- weight: {}
625
- },
626
- setup(s) {
627
- const e = s, t = c(() => [
628
- O.title,
629
- O[`level-${e.level ?? 1}`],
630
- e.className,
631
- e.weight && O[e.weight]
632
- ]), n = c(() => `h${e.level ?? 1}`);
633
- return (o, i) => (a(), g(x(n.value), {
634
- class: r(t.value)
635
- }, {
636
- default: v(() => [
637
- b(o.$slots, "default")
638
- ]),
639
- _: 3
640
- }, 8, ["class"]));
641
- }
642
- }), qt = "_error_1y1de_1", Rt = {
643
- error: qt
644
- }, Jt = /* @__PURE__ */ f({
645
- __name: "error",
646
- props: {
647
- className: {}
648
- },
649
- setup(s) {
650
- const e = s, t = c(() => [
651
- Rt.error,
652
- e.className
653
- ]);
654
- return (n, o) => (a(), p("span", {
655
- class: r(t.value)
656
- }, [
657
- b(n.$slots, "default")
658
- ], 2));
659
- }
660
- });
661
- export {
662
- H as UiButton,
663
- Vt as UiButtonIcon,
664
- At as UiButtonLink,
665
- Jt as UiError,
666
- T as UiIcon,
667
- Dt as UiInput,
668
- et as UiLabel,
669
- de as UiLoader,
670
- Ft as UiPlank,
671
- Gt as UiText,
672
- Kt as UiTitle,
673
- Ht as injectSvgSprite
674
- };