@quoreadmin/ui 1.10.24 → 1.10.26

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 (193) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index10.js +209 -180
  3. package/dist/index131.js +172 -158
  4. package/dist/index149.js +11 -5
  5. package/dist/index15.js +26 -26
  6. package/dist/index16.js +64 -52
  7. package/dist/index182.js +14 -14
  8. package/dist/index183.js +3 -3
  9. package/dist/index193.js +10 -10
  10. package/dist/index195.js +10 -10
  11. package/dist/index198.js +17 -17
  12. package/dist/index201.js +28 -28
  13. package/dist/index202.js +2 -2
  14. package/dist/index203.js +2 -2
  15. package/dist/index204.js +1 -1
  16. package/dist/index206.js +2 -2
  17. package/dist/index208.js +14 -14
  18. package/dist/index209.js +1 -1
  19. package/dist/index210.js +1 -1
  20. package/dist/index211.js +3 -3
  21. package/dist/index212.js +6 -6
  22. package/dist/index213.js +84 -29
  23. package/dist/index214.js +400 -109
  24. package/dist/index215.js +22 -36
  25. package/dist/index216.js +33 -26
  26. package/dist/index217.js +111 -31
  27. package/dist/index218.js +35 -50
  28. package/dist/index219.js +26 -43
  29. package/dist/index220.js +35 -3
  30. package/dist/index221.js +51 -9
  31. package/dist/index222.js +42 -18
  32. package/dist/index223.js +4 -10
  33. package/dist/index224.js +9 -10
  34. package/dist/index225.js +18 -38
  35. package/dist/index226.js +10 -21
  36. package/dist/index227.js +10 -88
  37. package/dist/index228.js +35 -403
  38. package/dist/index229.js +21 -22
  39. package/dist/index230.js +121 -155
  40. package/dist/index231.js +37 -19
  41. package/dist/index232.js +80 -20
  42. package/dist/index233.js +13 -15
  43. package/dist/index234.js +19 -198
  44. package/dist/index235.js +18 -68
  45. package/dist/index236.js +20 -34
  46. package/dist/index237.js +19 -39
  47. package/dist/index242.js +155 -121
  48. package/dist/index243.js +19 -37
  49. package/dist/index244.js +22 -80
  50. package/dist/index245.js +198 -19
  51. package/dist/index246.js +68 -18
  52. package/dist/index247.js +34 -20
  53. package/dist/index248.js +39 -19
  54. package/dist/index249.js +3673 -217
  55. package/dist/index250.js +59 -7
  56. package/dist/index251.js +78 -133
  57. package/dist/index252.js +51 -82
  58. package/dist/index253.js +215 -20
  59. package/dist/index254.js +9 -53
  60. package/dist/index255.js +55 -77
  61. package/dist/index256.js +61 -20
  62. package/dist/index257.js +54 -26
  63. package/dist/index258.js +81 -22
  64. package/dist/index259.js +727 -21
  65. package/dist/index260.js +45 -14
  66. package/dist/index261.js +62 -15
  67. package/dist/index262.js +10 -22
  68. package/dist/index263.js +705 -22
  69. package/dist/index264.js +820 -22
  70. package/dist/index265.js +22 -836
  71. package/dist/index266.js +21 -701
  72. package/dist/index267.js +20 -176
  73. package/dist/index268.js +836 -22
  74. package/dist/index269.js +701 -19
  75. package/dist/index270.js +176 -3
  76. package/dist/index271.js +21 -186
  77. package/dist/index272.js +19 -132
  78. package/dist/index273.js +20 -1223
  79. package/dist/index274.js +3 -20
  80. package/dist/index275.js +186 -21
  81. package/dist/index276.js +132 -21
  82. package/dist/index277.js +1223 -29
  83. package/dist/index278.js +12 -12
  84. package/dist/index279.js +15 -13
  85. package/dist/index280.js +22 -2
  86. package/dist/index281.js +29 -2
  87. package/dist/index282.js +20 -3709
  88. package/dist/index283.js +20 -60
  89. package/dist/index284.js +2 -83
  90. package/dist/index285.js +2 -52
  91. package/dist/index286.js +236 -198
  92. package/dist/index287.js +7 -9
  93. package/dist/index288.js +135 -54
  94. package/dist/index289.js +82 -60
  95. package/dist/index290.js +2 -54
  96. package/dist/index291.js +76 -78
  97. package/dist/index292.js +3 -728
  98. package/dist/index293.js +26 -46
  99. package/dist/index294.js +51 -61
  100. package/dist/index295.js +26 -11
  101. package/dist/index296.js +22 -705
  102. package/dist/index297.js +22 -820
  103. package/dist/index298.js +16 -2
  104. package/dist/index299.js +17 -3
  105. package/dist/index300.js +23 -27
  106. package/dist/index301.js +1520 -251
  107. package/dist/index302.js +384 -4
  108. package/dist/index303.js +2715 -134
  109. package/dist/index304.js +83 -66
  110. package/dist/index305.js +3796 -89
  111. package/dist/index306.js +57 -26
  112. package/dist/index307.js +15 -16
  113. package/dist/index308.js +74 -65
  114. package/dist/index309.js +201 -3
  115. package/dist/index310.js +246 -2
  116. package/dist/index311.js +74 -79
  117. package/dist/index312.js +21 -57
  118. package/dist/index313.js +934 -5
  119. package/dist/index314.js +21 -4
  120. package/dist/index315.js +19 -185
  121. package/dist/index316.js +19 -62
  122. package/dist/index317.js +68 -74
  123. package/dist/index318.js +18 -36
  124. package/dist/index319.js +19 -1534
  125. package/dist/index320.js +22 -386
  126. package/dist/index321.js +22 -2731
  127. package/dist/index322.js +63 -86
  128. package/dist/index323.js +28 -3789
  129. package/dist/index324.js +256 -51
  130. package/dist/index325.js +5 -78
  131. package/dist/index326.js +149 -21
  132. package/dist/index327.js +63 -929
  133. package/dist/index328.js +90 -21
  134. package/dist/index329.js +28 -19
  135. package/dist/index330.js +15 -19
  136. package/dist/index331.js +73 -67
  137. package/dist/index332.js +4 -19
  138. package/dist/index333.js +2 -19
  139. package/dist/index334.js +83 -21
  140. package/dist/index335.js +57 -21
  141. package/dist/index336.js +6 -63
  142. package/dist/index337.js +5 -15
  143. package/dist/index338.js +173 -71
  144. package/dist/index339.js +57 -196
  145. package/dist/index340.js +75 -246
  146. package/dist/index343.js +1 -1
  147. package/dist/index348.js +1 -1
  148. package/dist/index353.js +2 -2
  149. package/dist/index357.js +2 -2
  150. package/dist/index358.js +1 -1
  151. package/dist/index364.js +19 -18
  152. package/dist/index365.js +19 -56
  153. package/dist/index366.js +61 -22
  154. package/dist/index367.js +37 -7
  155. package/dist/index368.js +16 -52
  156. package/dist/index369.js +57 -7
  157. package/dist/index370.js +23 -10
  158. package/dist/index371.js +7 -7
  159. package/dist/index372.js +54 -27
  160. package/dist/index373.js +7 -2
  161. package/dist/index374.js +11 -81
  162. package/dist/index375.js +6 -179
  163. package/dist/index376.js +28 -20
  164. package/dist/index377.js +2 -20
  165. package/dist/index378.js +79 -61
  166. package/dist/index379.js +179 -36
  167. package/dist/index38.js +1 -1
  168. package/dist/index380.js +97 -30
  169. package/dist/index381.js +100 -10
  170. package/dist/index382.js +90 -3
  171. package/dist/index383.js +17 -4
  172. package/dist/index384.js +30 -12
  173. package/dist/index385.js +11 -7
  174. package/dist/index386.js +3 -13
  175. package/dist/index387.js +3 -4
  176. package/dist/index388.js +13 -36
  177. package/dist/index389.js +7 -37
  178. package/dist/index390.js +14 -30
  179. package/dist/index391.js +5 -64
  180. package/dist/index392.js +36 -17
  181. package/dist/index393.js +35 -99
  182. package/dist/index394.js +30 -91
  183. package/dist/index395.js +62 -96
  184. package/dist/index396.js +1 -1
  185. package/dist/index401.js +1 -1
  186. package/dist/index402.js +2 -2
  187. package/dist/index79.js +218 -129
  188. package/dist/src/components/avatar/avatar.stories.d.ts +1 -0
  189. package/dist/src/components/calendar/calendar.d.ts +18 -1
  190. package/dist/src/components/page-layout/page-layout.stories.d.ts +319 -0
  191. package/dist/src/components/page-layout/page-layout.vue.d.ts +2 -0
  192. package/package.json +1 -1
  193. package/src/assets/illustrations/pending-to-do.png +0 -0
package/dist/index131.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as te, useSlots as le, ref as n, computed as i, onMounted as ae, nextTick as _, onUnmounted as re, resolveComponent as se, openBlock as p, createElementBlock as b, normalizeClass as r, createElementVNode as d, normalizeStyle as S, unref as T, renderSlot as v, createCommentVNode as E, createVNode as ne } from "vue";
1
+ import { defineComponent as ae, useSlots as re, ref as n, computed as c, watch as se, nextTick as q, onMounted as ne, onUnmounted as de, resolveComponent as ie, openBlock as C, createElementBlock as x, normalizeClass as s, createElementVNode as d, normalizeStyle as z, unref as B, renderSlot as m, createCommentVNode as L, createVNode as ue } from "vue";
2
2
  import u from "./index57.js";
3
- import de from "./index58.js";
4
- const ie = { class: "flex-grow m-0 font-bold sm-down:text-md md:text-lg leading-none text-left" }, ue = 100, ce = "4.5rem", ve = "4.8125rem", W = 80, me = 24, we = /* @__PURE__ */ te({
3
+ import ce from "./index58.js";
4
+ const ve = { class: "flex-grow m-0 font-bold sm-down:text-md md:text-lg leading-none text-left" }, me = 100, fe = "4.5rem", he = "4.8125rem", A = 80, ge = 24, ye = /* @__PURE__ */ ae({
5
5
  __name: "page-layout",
6
6
  props: {
7
7
  headerBackgroundColor: { default: "green-20" },
@@ -27,288 +27,302 @@ const ie = { class: "flex-grow m-0 font-bold sm-down:text-md md:text-lg leading-
27
27
  adjustForKeyboard: { type: Boolean, default: !1 }
28
28
  },
29
29
  emits: ["update:sidebarCollapsed"],
30
- setup(t, { expose: I, emit: P }) {
31
- const l = t, U = P, { deviceType: G } = de(), J = le(), k = n(null), y = n(null), R = n(null), C = n(null), m = n(!0), c = n(!1), f = n(!1), z = n(!1), B = n(0), V = n(0), D = n({
30
+ setup(o, { expose: P, emit: U }) {
31
+ const a = o, G = U, { deviceType: J } = ce(), Q = re(), $ = n(null), T = n(null), M = n(null), h = n(null), H = n(null), g = n(!0), v = n(!1), w = n(!1), V = n(!1), S = n(0), F = n(0), I = n({
32
32
  top: "50vh",
33
33
  left: "24px",
34
34
  transform: "translate(-50%, -50%)"
35
35
  });
36
- let x = 0, H = !1, F = 0, M = 0, L = null;
37
- const g = i(() => !!J.sidebar), h = i(() => l.headerFixed !== void 0 ? l.headerFixed : g.value), a = i({
38
- get: () => l.sidebarCollapsed,
39
- set: (e) => U("update:sidebarCollapsed", e)
40
- }), Q = i(() => G.value === "desktop"), X = i(
41
- () => g.value && l.sidebarCollapsible && u.md
42
- ), Z = i(
43
- () => `${l.headerTop + W}px`
44
- ), ee = i(
45
- () => `calc(100vh - ${l.headerTop + W}px)`
46
- ), Y = i(
47
- () => a.value ? l.sidebarCollapsedWidth : l.sidebarWidth
48
- ), oe = i(() => {
49
- const e = l.headerTop + W, o = window.innerHeight / 2 + 97, w = e + 16 + V.value / 2;
50
- return `${Math.min(o, w)}px`;
36
+ let p = 0, k = !1, Y = 0, O = 0, W = null;
37
+ const f = c(() => !!Q.sidebar), b = c(() => a.headerFixed !== void 0 ? a.headerFixed : f.value), t = c({
38
+ get: () => a.sidebarCollapsed,
39
+ set: (e) => G("update:sidebarCollapsed", e)
40
+ }), X = c(() => J.value === "desktop"), Z = c(
41
+ () => f.value && a.sidebarCollapsible && u.md
42
+ ), ee = c(
43
+ () => `${a.headerTop + A}px`
44
+ ), oe = c(
45
+ () => `calc(100vh - ${a.headerTop + A}px)`
46
+ ), D = c(
47
+ () => t.value ? a.sidebarCollapsedWidth : a.sidebarWidth
48
+ ), te = c(() => {
49
+ const e = a.headerTop + A, l = window.innerHeight / 2 + 97, i = e + 16 + F.value / 2;
50
+ return `${Math.min(l, i)}px`;
51
51
  }), j = () => {
52
- const e = y.value, o = !u.md && e;
53
- return {
54
- scrollY: o ? e.scrollTop : window.scrollY,
55
- atTop: o ? e.scrollTop <= 0 : window.scrollY <= 0,
56
- atBottom: o ? e.scrollTop + e.clientHeight >= e.scrollHeight : window.scrollY + window.innerHeight >= document.documentElement.scrollHeight
57
- };
58
- }, $ = () => {
59
- H || (window.requestAnimationFrame(() => {
60
- const { scrollY: e, atTop: o, atBottom: s } = j();
61
- if (m.value = o, c.value = s, l.headerHideOnScroll && (h.value || !u.md)) {
62
- if (e <= l.headerHideScrollThreshold) {
63
- f.value = !1, x = e, H = !1;
52
+ const e = T.value;
53
+ if (!u.md && e)
54
+ return {
55
+ scrollY: e.scrollTop,
56
+ atTop: e.scrollTop <= 0,
57
+ atBottom: e.scrollTop + e.clientHeight >= e.scrollHeight
58
+ };
59
+ const r = window.scrollY;
60
+ let i = 0;
61
+ f.value && u.md && !t.value && h.value && (i = h.value.scrollTop);
62
+ const E = Math.max(r, i), R = r <= 0 && i <= 0, le = r + window.innerHeight >= document.documentElement.scrollHeight;
63
+ return { scrollY: E, atTop: R, atBottom: le };
64
+ }, y = () => {
65
+ k || (k = !0, window.requestAnimationFrame(() => {
66
+ const { scrollY: e, atTop: l, atBottom: r } = j();
67
+ if (g.value = l, v.value = r, a.headerHideOnScroll && (b.value || !u.md)) {
68
+ if (e <= a.headerHideScrollThreshold) {
69
+ w.value = !1, p = e, k = !1;
64
70
  return;
65
71
  }
66
- if (s) {
67
- x = e, H = !1;
72
+ if (r) {
73
+ p = e, k = !1;
68
74
  return;
69
75
  }
70
- const K = Math.max(0, e), N = K - x;
71
- Math.abs(N) > 15 && (f.value = N > 0, x = K);
76
+ const E = Math.max(0, e), R = E - p;
77
+ Math.abs(R) > 15 && (w.value = R > 0, p = E);
72
78
  } else
73
- f.value = !1;
74
- O(), H = !1;
75
- }), H = !0);
76
- }, q = () => {
77
- a.value = !a.value, _(O);
78
- }, O = () => {
79
- if (!a.value || !R.value) return;
80
- const e = R.value.getBoundingClientRect(), o = Math.max(0, e.top), s = Math.min(window.innerHeight, e.bottom);
81
- s <= o || (D.value = {
82
- top: `${(o + s) / 2}px`,
83
- left: `${e.left + me}px`,
79
+ w.value = !1;
80
+ _(), k = !1;
81
+ }));
82
+ }, K = () => {
83
+ t.value = !t.value, q(_);
84
+ }, _ = () => {
85
+ if (!t.value || !M.value) return;
86
+ const e = M.value.getBoundingClientRect(), l = Math.max(0, e.top), r = Math.min(window.innerHeight, e.bottom);
87
+ r <= l || (I.value = {
88
+ top: `${(l + r) / 2}px`,
89
+ left: `${e.left + ge}px`,
84
90
  transform: "translate(-50%, -50%)"
85
91
  });
86
- }, A = () => {
87
- if (!l.adjustForKeyboard || u.md) return;
88
- const e = window.visualViewport?.height ?? window.innerHeight, o = F - e;
89
- if (o <= ue)
90
- F = window.innerHeight, M = k.value?.clientHeight ?? window.innerHeight, B.value = 0;
92
+ }, N = () => {
93
+ if (!a.adjustForKeyboard || u.md) return;
94
+ const e = window.visualViewport?.height ?? window.innerHeight, l = Y - e;
95
+ if (l <= me)
96
+ Y = window.innerHeight, O = $.value?.clientHeight ?? window.innerHeight, S.value = 0;
91
97
  else {
92
- const s = k.value?.clientHeight ?? window.innerHeight, w = Math.max(0, M - s);
93
- B.value = Math.max(0, o - w);
98
+ const r = $.value?.clientHeight ?? window.innerHeight, i = Math.max(0, O - r);
99
+ S.value = Math.max(0, l - i);
94
100
  }
95
101
  };
96
- return ae(() => {
97
- F = window.innerHeight, M = k.value?.clientHeight ?? window.innerHeight, window.addEventListener("scroll", $, { passive: !0 }), y.value && y.value.addEventListener("scroll", $, {
102
+ return se(t, () => {
103
+ q(() => {
104
+ p = j().scrollY;
105
+ });
106
+ }), ne(() => {
107
+ Y = window.innerHeight, O = $.value?.clientHeight ?? window.innerHeight, window.addEventListener("scroll", y, { passive: !0 }), T.value && T.value.addEventListener("scroll", y, {
108
+ passive: !0
109
+ }), h.value && h.value.addEventListener("scroll", y, {
98
110
  passive: !0
99
111
  });
100
- const { scrollY: e, atTop: o, atBottom: s } = j();
101
- x = e, m.value = o, c.value = s, l.adjustForKeyboard && window.visualViewport?.addEventListener("resize", A), _(O), C.value && (L = new ResizeObserver(() => {
102
- V.value = C.value?.offsetHeight ?? 0;
103
- }), L.observe(C.value), V.value = C.value.offsetHeight);
104
- }), re(() => {
105
- window.removeEventListener("scroll", $), y.value?.removeEventListener("scroll", $), window.visualViewport?.removeEventListener("resize", A), L?.disconnect();
106
- }), I({ scrolledToTop: m, scrolledToBottom: c, headerHidden: f, keyboardOffset: B }), (e, o) => {
107
- const s = se("q-icon");
108
- return p(), b("div", {
112
+ const { scrollY: e, atTop: l, atBottom: r } = j();
113
+ p = e, g.value = l, v.value = r, a.adjustForKeyboard && window.visualViewport?.addEventListener("resize", N), q(_), H.value && (W = new ResizeObserver(() => {
114
+ F.value = H.value?.offsetHeight ?? 0;
115
+ }), W.observe(H.value), F.value = H.value.offsetHeight);
116
+ }), de(() => {
117
+ window.removeEventListener("scroll", y), T.value?.removeEventListener("scroll", y), h.value?.removeEventListener("scroll", y), window.visualViewport?.removeEventListener("resize", N), W?.disconnect();
118
+ }), P({ scrolledToTop: g, scrolledToBottom: v, headerHidden: w, keyboardOffset: S }), (e, l) => {
119
+ const r = ie("q-icon");
120
+ return C(), x("div", {
109
121
  ref_key: "rootRef",
110
- ref: k,
111
- class: r([
122
+ ref: $,
123
+ class: s([
112
124
  "page-layout",
113
- `bg-${t.containerBackgroundColor}`,
125
+ `bg-${o.containerBackgroundColor}`,
114
126
  "sm-down:absolute sm-down:inset-x-0 sm-down:top-0 sm-down:bottom-0"
115
127
  ])
116
128
  }, [
117
129
  d("div", {
118
- class: r([
130
+ class: s([
119
131
  "page-layout__header",
120
132
  "flex items-center justify-center",
121
- T(u).md ? `bg-${t.containerBackgroundColor}` : "",
122
- h.value ? "fixed left-0 w-full sm-down:z-50 md:z-[45] md:pt-6 md:px-6" : "md:mb-4 relative sm-down:absolute sm-down:top-0 sm-down:inset-x-0 sm-down:z-50",
123
- { "page-layout__header--hidden": f.value }
133
+ B(u).md ? `bg-${o.containerBackgroundColor}` : "",
134
+ b.value ? "fixed left-0 w-full sm-down:z-50 md:z-[45] md:pt-6 md:px-6" : "md:mb-4 relative sm-down:absolute sm-down:top-0 sm-down:inset-x-0 sm-down:z-50",
135
+ { "page-layout__header--hidden": w.value }
124
136
  ]),
125
- style: S(h.value ? { top: `${t.headerTop}px` } : void 0)
137
+ style: z(b.value ? { top: `${o.headerTop}px` } : void 0)
126
138
  }, [
127
139
  d("div", {
128
- class: r([
140
+ class: s([
129
141
  "page-layout__header-bar",
130
142
  "flex items-center text-left md:rounded-lg",
131
- `md:h-[3.5rem] ${t.maxContentWidth} w-full p-4 md:pl-6`,
143
+ `md:h-[3.5rem] ${o.maxContentWidth} w-full p-4 md:pl-6`,
132
144
  "sm-down:py-6 sm-down:h-[4.5rem]",
133
- `bg-${t.headerBackgroundColor}`,
134
- `text-${t.headerColor}`,
135
- t.headerBarClass,
145
+ `bg-${o.headerBackgroundColor}`,
146
+ `text-${o.headerColor}`,
147
+ o.headerBarClass,
136
148
  {
137
- "md:shadow-[0_0.375rem_0.5rem_0_rgba(0,0,0,0.05)] md:shadow-gray-20": h.value && (!m.value || t.headerShowShadow)
149
+ "md:shadow-[0_0.375rem_0.5rem_0_rgba(0,0,0,0.05)] md:shadow-gray-20": b.value && (!g.value || o.headerShowShadow)
138
150
  }
139
151
  ])
140
152
  }, [
141
- d("h1", ie, [
142
- v(e.$slots, "header", {
143
- scrolledToTop: m.value,
144
- scrolledToBottom: c.value
153
+ d("h1", ve, [
154
+ m(e.$slots, "header", {
155
+ scrolledToTop: g.value,
156
+ scrolledToBottom: v.value
145
157
  }, void 0, !0)
146
158
  ]),
147
- v(e.$slots, "header-actions", {}, void 0, !0)
159
+ m(e.$slots, "header-actions", {}, void 0, !0)
148
160
  ], 2)
149
161
  ], 6),
150
162
  d("div", {
151
163
  ref_key: "contentRef",
152
- ref: y,
153
- class: r([
164
+ ref: T,
165
+ class: s([
154
166
  "page-layout__content",
155
167
  "sm-down:absolute sm-down:left-0 sm-down:right-0",
156
168
  "sm-down:overflow-y-auto sm-down:scroll-smooth sm-down:overscroll-none",
157
- { "md:pt-[4.5rem]": h.value },
158
- { "md:mb-[0.5rem]": h.value && l.footerVisible },
159
- t.contentClass
169
+ { "md:pt-[4.5rem]": b.value },
170
+ { "md:mb-[0.5rem]": b.value && a.footerVisible },
171
+ o.contentClass
160
172
  ]),
161
- style: S({
162
- "--sm-top": f.value ? "0px" : ce,
163
- "--sm-bottom": l.footerVisible ? ve : "0px",
164
- "--keyboard-offset": `${B.value}px`
173
+ style: z({
174
+ "--sm-top": w.value ? "0px" : fe,
175
+ "--sm-bottom": a.footerVisible ? he : "0px",
176
+ "--keyboard-offset": `${S.value}px`
165
177
  })
166
178
  }, [
167
179
  d("div", {
168
- class: r([
180
+ class: s([
169
181
  "page-layout__content-inner",
170
- { "md:flex md:gap-4": g.value }
182
+ { "md:flex md:gap-4": f.value }
171
183
  ])
172
184
  }, [
173
- g.value && T(u).md ? (p(), b("div", {
185
+ f.value && B(u).md ? (C(), x("div", {
174
186
  key: 0,
175
187
  ref_key: "sidebarRef",
176
- ref: R,
177
- class: r([
188
+ ref: M,
189
+ class: s([
178
190
  "page-layout__sidebar",
179
191
  "relative shrink-0 flex flex-col gap-4",
180
192
  "md:transition-[width] md:duration-300",
181
- Y.value,
182
- { "!overflow-hidden": a.value },
183
- t.sidebarClass
193
+ D.value,
194
+ { "!overflow-hidden": t.value },
195
+ o.sidebarClass
184
196
  ]),
185
- onMouseenter: o[0] || (o[0] = (w) => z.value = !0),
186
- onMouseleave: o[1] || (o[1] = (w) => z.value = !1)
197
+ onMouseenter: l[0] || (l[0] = (i) => V.value = !0),
198
+ onMouseleave: l[1] || (l[1] = (i) => V.value = !1)
187
199
  }, [
188
200
  d("div", {
189
- class: r([
201
+ ref_key: "sidebarInnerRef",
202
+ ref: h,
203
+ class: s([
190
204
  "page-layout__sidebar-inner",
191
- a.value ? "absolute inset-0 !overflow-hidden" : "fixed overflow-y-auto",
205
+ t.value ? "absolute inset-0 !overflow-hidden" : "fixed overflow-y-auto",
192
206
  "z-10 md:pb-6 md:pt-4",
193
- `bg-${t.containerBackgroundColor}`,
194
- !a.value && Y.value
207
+ `bg-${o.containerBackgroundColor}`,
208
+ !t.value && D.value
195
209
  ]),
196
- style: S(a.value ? void 0 : {
197
- top: Z.value,
198
- height: ee.value
210
+ style: z(t.value ? void 0 : {
211
+ top: ee.value,
212
+ height: oe.value
199
213
  })
200
214
  }, [
201
215
  d("div", {
202
216
  ref_key: "sidebarContentRef",
203
- ref: C
217
+ ref: H
204
218
  }, [
205
- v(e.$slots, "sidebar", {}, void 0, !0)
219
+ m(e.$slots, "sidebar", {}, void 0, !0)
206
220
  ], 512)
207
221
  ], 6),
208
- a.value ? (p(), b("div", {
222
+ t.value ? (C(), x("div", {
209
223
  key: 0,
210
224
  class: "absolute inset-0 cursor-pointer rounded-lg bg-white z-10",
211
- onClick: q
212
- })) : E("", !0),
213
- X.value && (!Q.value || z.value || a.value) ? (p(), b("div", {
225
+ onClick: K
226
+ })) : L("", !0),
227
+ Z.value && (!X.value || V.value || t.value) ? (C(), x("div", {
214
228
  key: 1,
215
- class: r([
229
+ class: s([
216
230
  "page-layout__sidebar-toggle",
217
231
  "cursor-pointer fixed z-30",
218
232
  "bg-white rounded",
219
- !a.value && "transition-all duration-300 ease-in-out",
220
- { "border border-gray-10": !a.value }
233
+ !t.value && "transition-all duration-300 ease-in-out",
234
+ { "border border-gray-10": !t.value }
221
235
  ]),
222
- style: S(
223
- a.value ? D.value : {
224
- top: oe.value,
225
- marginLeft: T(u).lg ? "22.125rem" : "18.125rem"
236
+ style: z(
237
+ t.value ? I.value : {
238
+ top: te.value,
239
+ marginLeft: B(u).lg ? "22.125rem" : "18.125rem"
226
240
  }
227
241
  ),
228
- onClick: q
242
+ onClick: K
229
243
  }, [
230
- v(e.$slots, "sidebar-toggle", { collapsed: a.value }, () => [
231
- ne(s, {
244
+ m(e.$slots, "sidebar-toggle", { collapsed: t.value }, () => [
245
+ ue(r, {
232
246
  icon: "double-chevron-right",
233
247
  color: "inkwell-30",
234
248
  type: "",
235
- class: r([
249
+ class: s([
236
250
  "page-layout__sidebar-toggle-icon",
237
251
  "w-6 h-6 p-1 text-inkwell-30",
238
- { "rotate-180": a.value }
252
+ { "rotate-180": t.value }
239
253
  ])
240
254
  }, null, 8, ["class"])
241
255
  ], !0)
242
- ], 6)) : E("", !0)
243
- ], 34)) : E("", !0),
256
+ ], 6)) : L("", !0)
257
+ ], 34)) : L("", !0),
244
258
  d("div", {
245
- class: r([
259
+ class: s([
246
260
  "page-layout__main",
247
261
  "block w-full grow leading-normal",
248
- { "md:mb-4": g.value },
249
- t.mainClass
262
+ { "md:mb-4": f.value },
263
+ o.mainClass
250
264
  ])
251
265
  }, [
252
- v(e.$slots, "default", {
253
- sidebarCollapsed: a.value,
254
- scrolledToTop: m.value,
255
- scrolledToBottom: c.value
266
+ m(e.$slots, "default", {
267
+ sidebarCollapsed: t.value,
268
+ scrolledToTop: g.value,
269
+ scrolledToBottom: v.value
256
270
  }, void 0, !0)
257
271
  ], 2)
258
272
  ], 2)
259
273
  ], 6),
260
- v(e.$slots, "overlay", {}, void 0, !0),
261
- l.footerVisible ? (p(), b("div", {
274
+ m(e.$slots, "overlay", {}, void 0, !0),
275
+ a.footerVisible ? (C(), x("div", {
262
276
  key: 0,
263
- class: r([
277
+ class: s([
264
278
  "page-layout__footer",
265
279
  "fixed bottom-0 left-0 right-0 z-20 justify-center",
266
- `bg-${t.footerBackgroundColor}`,
267
- T(u).md ? "overflow-visible h-0 w-full px-6 flex" : "py-6 px-4 bg-white border-t border-gray-20 flex gap-4 sm-down:absolute sm-down:!py-4"
280
+ `bg-${o.footerBackgroundColor}`,
281
+ B(u).md ? "overflow-visible h-0 w-full px-6 flex" : "py-6 px-4 bg-white border-t border-gray-20 flex gap-4 sm-down:absolute sm-down:!py-4"
268
282
  ])
269
283
  }, [
270
- T(u).md ? (p(), b("div", {
284
+ B(u).md ? (C(), x("div", {
271
285
  key: 0,
272
- class: r([
286
+ class: s([
273
287
  "flex gap-4 items-end h-0 overflow-visible margin-x-auto w-full",
274
- t.maxContentWidth
288
+ o.maxContentWidth
275
289
  ])
276
290
  }, [
277
291
  d("div", {
278
- class: r([
292
+ class: s([
279
293
  "shrink-0 w-0 transition-[width] duration-300",
280
- g.value ? Y.value : "hidden"
294
+ f.value ? D.value : "hidden"
281
295
  ])
282
296
  }, null, 2),
283
297
  d("div", {
284
- class: r([
298
+ class: s([
285
299
  "grow pb-6 rounded-t-lg",
286
- `bg-${t.containerBackgroundColor}`
300
+ `bg-${o.containerBackgroundColor}`
287
301
  ])
288
302
  }, [
289
303
  d("div", {
290
- class: r([
304
+ class: s([
291
305
  "page-layout__footer-bar",
292
306
  "flex items-center justify-center gap-4",
293
307
  "left-auto right-auto py-4",
294
308
  "rounded-lg shadow-[0_-2px_5px_0_rgba(0,0,0,0.05)] shadow-gray-10",
295
- `bg-${t.footerBackgroundColor}`,
296
- { "shadow-none": c.value },
297
- t.footerBarClass
309
+ `bg-${o.footerBackgroundColor}`,
310
+ { "shadow-none": v.value },
311
+ o.footerBarClass
298
312
  ])
299
313
  }, [
300
- v(e.$slots, "footer", { scrolledToBottom: c.value }, void 0, !0)
314
+ m(e.$slots, "footer", { scrolledToBottom: v.value }, void 0, !0)
301
315
  ], 2)
302
316
  ], 2)
303
- ], 2)) : v(e.$slots, "footer", {
317
+ ], 2)) : m(e.$slots, "footer", {
304
318
  key: 1,
305
- scrolledToBottom: c.value
319
+ scrolledToBottom: v.value
306
320
  }, void 0, !0)
307
- ], 2)) : E("", !0)
321
+ ], 2)) : L("", !0)
308
322
  ], 2);
309
323
  };
310
324
  }
311
325
  });
312
326
  export {
313
- we as default
327
+ ye as default
314
328
  };
package/dist/index149.js CHANGED
@@ -263,11 +263,17 @@ const z = I({
263
263
  t.value.push(n);
264
264
  }) : t.value = e.filteredOptions, s("update:model-value", t.value);
265
265
  };
266
- return h(() => l.modelValue, (e) => {
267
- t.value = e;
268
- }), h(() => l.options, (e) => {
269
- i.value && (f.value = e);
270
- }), {
266
+ return h(
267
+ () => l.modelValue,
268
+ (e) => {
269
+ t.value = e;
270
+ }
271
+ ), h(
272
+ () => l.options,
273
+ (e) => {
274
+ i.value && (f.value = e);
275
+ }
276
+ ), {
271
277
  currentSelect: o,
272
278
  currentContainer: d,
273
279
  search: p,