@quidgest/ui 0.14.16 → 0.14.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.
Files changed (42) hide show
  1. package/dist/manifest/components.json +1 -0
  2. package/dist/ui.css +96 -20
  3. package/dist/ui.esm.js +3852 -3675
  4. package/dist/ui.js +16 -16
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +640 -615
  7. package/dist/ui.scss +84 -23
  8. package/esm/components/QCheckbox/QCheckbox.d.ts +2 -1
  9. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  10. package/esm/components/QCheckbox/QCheckbox.vue.js +4 -4
  11. package/esm/components/QCheckbox/constants.d.ts +9 -0
  12. package/esm/components/QCheckbox/constants.d.ts.map +1 -0
  13. package/esm/components/QCheckbox/index.d.ts +6 -6
  14. package/esm/components/QCheckbox/types.d.ts +1 -8
  15. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  16. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  17. package/esm/components/QCollapsible/QCollapsible.vue.js +9 -8
  18. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  19. package/esm/components/QOverlay/QOverlay.vue.js +94 -102
  20. package/esm/components/QTextArea/QTextArea.d.ts +39 -0
  21. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -0
  22. package/esm/components/QTextArea/QTextArea.vue.js +105 -0
  23. package/esm/components/QTextArea/QTextArea.vue2.js +4 -0
  24. package/esm/components/QTextArea/index.d.ts +98 -0
  25. package/esm/components/QTextArea/index.d.ts.map +1 -0
  26. package/esm/components/QTextArea/index.js +6 -0
  27. package/esm/components/QTextArea/types.d.ts +33 -0
  28. package/esm/components/QTextArea/types.d.ts.map +1 -0
  29. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  30. package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -9
  31. package/esm/components/index.d.ts +1 -0
  32. package/esm/components/index.d.ts.map +1 -1
  33. package/esm/components/index.js +12 -10
  34. package/esm/composables/theme.d.ts +2 -0
  35. package/esm/composables/theme.d.ts.map +1 -1
  36. package/esm/index.d.ts +1 -0
  37. package/esm/utils/theme.d.ts.map +1 -1
  38. package/esm/utils/theme.js +27 -26
  39. package/esm/vendors/@vueuse/core/index.js +85 -0
  40. package/esm/vendors/@vueuse/shared/index.js +20 -0
  41. package/package.json +2 -1
  42. /package/esm/components/QCheckbox/{types.js → constants.js} +0 -0
@@ -1,22 +1,22 @@
1
- import { defineComponent as s, toRef as m, createElementBlock as n, openBlock as i, normalizeClass as c, renderSlot as d } from "vue";
2
- import { provideTheme as a } from "../../composables/theme.js";
3
- const l = ["id"], _ = /* @__PURE__ */ s({
1
+ import { defineComponent as n, toRef as m, createElementBlock as c, openBlock as a, normalizeClass as i, unref as l, renderSlot as d } from "vue";
2
+ import { provideTheme as p } from "../../composables/theme.js";
3
+ const f = ["id"], v = /* @__PURE__ */ n({
4
4
  __name: "QThemeProvider",
5
5
  props: {
6
6
  id: {},
7
7
  class: {},
8
8
  theme: {}
9
9
  },
10
- setup(t) {
11
- const e = t, o = m(e, "theme");
12
- return a(o), (r, p) => (i(), n("div", {
10
+ setup(o) {
11
+ const e = o, s = m(e, "theme"), { class: t } = p(s);
12
+ return (r, h) => (a(), c("div", {
13
13
  id: e.id,
14
- class: c(["q-theme-provider", `q-theme--${e.theme}`, e.class])
14
+ class: i(["q-theme-provider", l(t), e.class])
15
15
  }, [
16
16
  d(r.$slots, "default")
17
- ], 10, l));
17
+ ], 10, f));
18
18
  }
19
19
  });
20
20
  export {
21
- _ as default
21
+ v as default
22
22
  };
@@ -24,6 +24,7 @@ export * from './QPropertyList';
24
24
  export * from './QSelect';
25
25
  export * from './QSkeletonLoader';
26
26
  export * from './QSpinnerLoader';
27
+ export * from './QTextArea';
27
28
  export * from './QTextField';
28
29
  export * from './QThemeProvider';
29
30
  export * from './QTooltip';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
@@ -8,8 +8,8 @@ import { QCard as c } from "./QCard/index.js";
8
8
  import { QCheckbox as u } from "./QCheckbox/index.js";
9
9
  import { QCollapsible as P } from "./QCollapsible/index.js";
10
10
  import { QColorPicker as g } from "./QColorPicker/index.js";
11
- import { QCombobox as B } from "./QCombobox/index.js";
12
- import { QDateTimePicker as T } from "./QDateTimePicker/index.js";
11
+ import { QCombobox as y } from "./QCombobox/index.js";
12
+ import { QDateTimePicker as C } from "./QDateTimePicker/index.js";
13
13
  import { QDialog as k } from "./QDialog/index.js";
14
14
  import { QDropdownMenu as F } from "./QDropdownMenu/index.js";
15
15
  import { QField as S } from "./QField/index.js";
@@ -24,9 +24,10 @@ import { QPropertyList as Z, QPropertyListGroup as _, QPropertyListPanel as $, Q
24
24
  import { QSelect as eo } from "./QSelect/index.js";
25
25
  import { QSkeletonLoader as po } from "./QSkeletonLoader/index.js";
26
26
  import { QSpinnerLoader as mo } from "./QSpinnerLoader/index.js";
27
- import { QTextField as fo } from "./QTextField/index.js";
28
- import { QThemeProvider as no } from "./QThemeProvider/index.js";
29
- import { QTooltip as ao } from "./QTooltip/index.js";
27
+ import { QTextArea as fo } from "./QTextArea/index.js";
28
+ import { QTextField as no } from "./QTextField/index.js";
29
+ import { QThemeProvider as ao } from "./QThemeProvider/index.js";
30
+ import { QTooltip as Lo } from "./QTooltip/index.js";
30
31
  export {
31
32
  e as QAccordion,
32
33
  p as QBadge,
@@ -38,8 +39,8 @@ export {
38
39
  u as QCheckbox,
39
40
  P as QCollapsible,
40
41
  g as QColorPicker,
41
- B as QCombobox,
42
- T as QDateTimePicker,
42
+ y as QCombobox,
43
+ C as QDateTimePicker,
43
44
  k as QDialog,
44
45
  F as QDropdownMenu,
45
46
  S as QField,
@@ -62,7 +63,8 @@ export {
62
63
  eo as QSelect,
63
64
  po as QSkeletonLoader,
64
65
  mo as QSpinnerLoader,
65
- fo as QTextField,
66
- no as QThemeProvider,
67
- ao as QTooltip
66
+ fo as QTextArea,
67
+ no as QTextField,
68
+ ao as QThemeProvider,
69
+ Lo as QTooltip
68
70
  };
@@ -44,6 +44,8 @@ export type ThemeInstance = {
44
44
  readonly current: DeepReadonly<ComputedRef<ThemeDefinition>>;
45
45
  /** An array of available theme definitions. */
46
46
  readonly themes: DeepReadonly<ThemeDefinition[]>;
47
+ /** The theme class. */
48
+ readonly class: ComputedRef<string>;
47
49
  };
48
50
  /**
49
51
  * Custom hook for accessing the theme configuration in context.
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAMhD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,aAAa,CAAyB,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAA;IAEpB,mEAAmE;IACnE,MAAM,EAAE,KAAK,CAAC;QACb,6BAA6B;QAC7B,IAAI,EAAE,MAAM,CAAA;QAEZ,mDAAmD;QACnD,IAAI,EAAE,SAAS,CAAA;QAEf,qEAAqE;QACrE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAC7B,CAAC,CAAA;CACF,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IAEZ,mDAAmD;IACnD,IAAI,EAAE,SAAS,CAAA;IAEf,kDAAkD;IAClD,MAAM,EAAE,WAAW,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAE1B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE5D,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,CAAA;CAChD,CAAA;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,aAAa,CAQxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,aAAa,CAU7D"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAMhD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,aAAa,CAAyB,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAA;IAEpB,mEAAmE;IACnE,MAAM,EAAE,KAAK,CAAC;QACb,6BAA6B;QAC7B,IAAI,EAAE,MAAM,CAAA;QAEZ,mDAAmD;QACnD,IAAI,EAAE,SAAS,CAAA;QAEf,qEAAqE;QACrE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAC7B,CAAC,CAAA;CACF,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IAEZ,mDAAmD;IACnD,IAAI,EAAE,SAAS,CAAA;IAEf,kDAAkD;IAClD,MAAM,EAAE,WAAW,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAE1B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE5D,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,CAAA;IAEhD,uBAAuB;IACvB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACnC,CAAA;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,aAAa,CAQxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,aAAa,CAU7D"}
package/esm/index.d.ts CHANGED
@@ -41,6 +41,7 @@ declare module '@vue/runtime-core' {
41
41
  QSelect: typeof import('@quidgest/ui/components')['QSelect']
42
42
  QSkeletonLoader: typeof import('@quidgest/ui/components')['QSkeletonLoader']
43
43
  QSpinnerLoader: typeof import('@quidgest/ui/components')['QSpinnerLoader']
44
+ QTextArea: typeof import('@quidgest/ui/components')['QTextArea']
44
45
  QTextField: typeof import('@quidgest/ui/components')['QTextField']
45
46
  QThemeProvider: typeof import('@quidgest/ui/components')['QThemeProvider']
46
47
  QTooltip: typeof import('@quidgest/ui/components')['QTooltip']
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAQ5C,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,gBAAgB,CAY/C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,EAAE,QA2B1D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACjB,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,GACrC,aAAa,CAgBf"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAQ5C,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,gBAAgB,CAY/C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,EAAE,QA2B1D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACjB,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,GACrC,aAAa,CAmBf"}
@@ -1,56 +1,57 @@
1
- import { computed as h } from "vue";
2
- import { parseColor as i } from "./color.js";
3
- import { toKebabCase as d } from "./string.js";
4
- const u = "q-theme";
5
- function a() {
1
+ import { computed as u } from "vue";
2
+ import { parseColor as f } from "./color.js";
3
+ import { toKebabCase as i } from "./string.js";
4
+ const a = "q-theme";
5
+ function l() {
6
6
  let e = document.getElementById(
7
- u
7
+ a
8
8
  );
9
- return e || (e = document.createElement("style"), e.id = u, document.head.appendChild(e)), e;
9
+ return e || (e = document.createElement("style"), e.id = a, document.head.appendChild(e)), e;
10
10
  }
11
11
  function g(e) {
12
12
  let t = "";
13
13
  for (const c of e) {
14
14
  t += `.q-theme--${c.name} {
15
15
  `;
16
- const o = c.scheme;
16
+ const m = c.scheme;
17
17
  let n;
18
- for (n in o) {
19
- const m = o[n];
20
- if (m) {
21
- t += ` ${f(n)}: ${m};
18
+ for (n in m) {
19
+ const o = m[n];
20
+ if (o) {
21
+ t += ` ${h(n)}: ${o};
22
22
  `;
23
- const s = i(m);
24
- t += ` ${f(n)}-rgb: ${s.r} ${s.g} ${s.b};
23
+ const s = f(o);
24
+ t += ` ${h(n)}-rgb: ${s.r} ${s.g} ${s.b};
25
25
  `;
26
26
  }
27
27
  }
28
28
  t += `}
29
29
  `;
30
30
  }
31
- const r = a();
31
+ const r = l();
32
32
  r.textContent = t;
33
33
  }
34
- function f(e) {
35
- return e ? `--q-theme-${d(e)}` : "";
34
+ function h(e) {
35
+ return e ? `--q-theme-${i(e)}` : "";
36
36
  }
37
37
  function E(e, t) {
38
- const r = h(() => {
39
- const o = t.find((n) => n.name === e.value);
40
- if (!o)
38
+ const r = u(() => {
39
+ const n = t.find((o) => o.name === e.value);
40
+ if (!n)
41
41
  throw new Error(`Theme "${e}" not found`);
42
- return o;
43
- });
42
+ return n;
43
+ }), c = u(() => `q-theme--${r.value.name}`);
44
44
  return {
45
45
  name: e,
46
46
  current: r,
47
- themes: t
47
+ themes: t,
48
+ class: c
48
49
  };
49
50
  }
50
51
  export {
51
- u as THEME_NODE_ID,
52
+ a as THEME_NODE_ID,
52
53
  E as createThemeInstance,
53
54
  g as generateRootStyle,
54
- a as getThemeNode,
55
- f as toProperty
55
+ l as getThemeNode,
56
+ h as toProperty
56
57
  };
@@ -0,0 +1,85 @@
1
+ import { toRef as y, isClient as x, tryOnScopeDispose as _ } from "../shared/index.js";
2
+ import { noop as C } from "../shared/index.js";
3
+ import { shallowRef as m, watch as v, nextTick as b, toValue as h, computed as w, getCurrentInstance as R, onMounted as z } from "vue";
4
+ const p = x ? window : void 0;
5
+ function g(e) {
6
+ var t;
7
+ const r = h(e);
8
+ return (t = r == null ? void 0 : r.$el) != null ? t : r;
9
+ }
10
+ function A() {
11
+ const e = m(!1), t = R();
12
+ return t && z(() => {
13
+ e.value = !0;
14
+ }, t), e;
15
+ }
16
+ function O(e) {
17
+ const t = A();
18
+ return w(() => (t.value, !!e()));
19
+ }
20
+ function M(e, t, r = {}) {
21
+ const { window: d = p, ...u } = r;
22
+ let l;
23
+ const o = O(() => d && "ResizeObserver" in d), a = () => {
24
+ l && (l.disconnect(), l = void 0);
25
+ }, f = w(() => {
26
+ const i = h(e);
27
+ return Array.isArray(i) ? i.map((s) => g(s)) : [g(i)];
28
+ }), c = v(
29
+ f,
30
+ (i) => {
31
+ if (a(), o.value && d) {
32
+ l = new ResizeObserver(t);
33
+ for (const s of i)
34
+ s && l.observe(s, u);
35
+ }
36
+ },
37
+ { immediate: !0, flush: "post" }
38
+ ), n = () => {
39
+ a(), c();
40
+ };
41
+ return _(n), {
42
+ isSupported: o,
43
+ stop: n
44
+ };
45
+ }
46
+ function S(e = p, t) {
47
+ e && typeof e.requestAnimationFrame == "function" ? e.requestAnimationFrame(t) : t();
48
+ }
49
+ function F(e = {}) {
50
+ var t, r;
51
+ const { window: d = p } = e, u = y(e == null ? void 0 : e.element), l = y((t = e == null ? void 0 : e.input) != null ? t : ""), o = (r = e == null ? void 0 : e.styleProp) != null ? r : "height", a = m(1), f = m(0);
52
+ function c() {
53
+ var n;
54
+ if (!u.value)
55
+ return;
56
+ let i = "";
57
+ u.value.style[o] = "1px", a.value = (n = u.value) == null ? void 0 : n.scrollHeight;
58
+ const s = h(e == null ? void 0 : e.styleTarget);
59
+ s ? s.style[o] = `${a.value}px` : i = `${a.value}px`, u.value.style[o] = i;
60
+ }
61
+ return v([l, u], () => b(c), { immediate: !0 }), v(a, () => {
62
+ var n;
63
+ return (n = e == null ? void 0 : e.onResize) == null ? void 0 : n.call(e);
64
+ }), M(u, ([{ contentRect: n }]) => {
65
+ f.value !== n.width && S(d, () => {
66
+ f.value = n.width, c();
67
+ });
68
+ }), e != null && e.watch && v(e.watch, c, { immediate: !0, deep: !0 }), {
69
+ textarea: u,
70
+ input: l,
71
+ triggerResize: c
72
+ };
73
+ }
74
+ export {
75
+ p as defaultWindow,
76
+ x as isClient,
77
+ C as noop,
78
+ y as toRef,
79
+ _ as tryOnScopeDispose,
80
+ g as unrefElement,
81
+ A as useMounted,
82
+ M as useResizeObserver,
83
+ O as useSupported,
84
+ F as useTextareaAutosize
85
+ };
@@ -0,0 +1,20 @@
1
+ import { toRef as n, readonly as t, ref as f, customRef as r, getCurrentScope as i, onScopeDispose as c } from "vue";
2
+ function s(e) {
3
+ return i() ? (c(e), !0) : !1;
4
+ }
5
+ const l = typeof window < "u" && typeof document < "u";
6
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7
+ const p = () => {
8
+ };
9
+ function d(...e) {
10
+ if (e.length !== 1)
11
+ return n(...e);
12
+ const o = e[0];
13
+ return typeof o == "function" ? t(r(() => ({ get: o, set: p }))) : f(o);
14
+ }
15
+ export {
16
+ l as isClient,
17
+ p as noop,
18
+ d as toRef,
19
+ s as tryOnScopeDispose
20
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quidgest/ui",
3
3
  "description": "Quidgest's UI framework",
4
- "version": "0.14.16",
4
+ "version": "0.14.18",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",
@@ -70,6 +70,7 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@vuepic/vue-datepicker": "^11.0.1",
73
+ "@vueuse/core": "^13.0.0",
73
74
  "maska": "^3.1.0"
74
75
  },
75
76
  "scripts": {