@quoreadmin/ui 1.10.24 → 1.10.25

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 (180) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index131.js +172 -158
  3. package/dist/index16.js +52 -50
  4. package/dist/index182.js +14 -14
  5. package/dist/index183.js +3 -3
  6. package/dist/index186.js +4 -4
  7. package/dist/index193.js +2 -2
  8. package/dist/index195.js +9 -9
  9. package/dist/index198.js +17 -17
  10. package/dist/index201.js +25 -25
  11. package/dist/index202.js +2 -2
  12. package/dist/index203.js +2 -2
  13. package/dist/index204.js +1 -1
  14. package/dist/index206.js +2 -2
  15. package/dist/index208.js +14 -14
  16. package/dist/index209.js +1 -1
  17. package/dist/index210.js +1 -1
  18. package/dist/index211.js +3 -3
  19. package/dist/index212.js +6 -6
  20. package/dist/index213.js +84 -29
  21. package/dist/index214.js +400 -109
  22. package/dist/index215.js +22 -36
  23. package/dist/index216.js +33 -26
  24. package/dist/index217.js +111 -31
  25. package/dist/index218.js +35 -50
  26. package/dist/index219.js +26 -43
  27. package/dist/index220.js +35 -3
  28. package/dist/index221.js +51 -9
  29. package/dist/index222.js +42 -18
  30. package/dist/index223.js +4 -10
  31. package/dist/index224.js +9 -10
  32. package/dist/index225.js +18 -38
  33. package/dist/index226.js +10 -21
  34. package/dist/index227.js +10 -88
  35. package/dist/index228.js +35 -403
  36. package/dist/index229.js +21 -22
  37. package/dist/index230.js +4 -4
  38. package/dist/index231.js +1 -1
  39. package/dist/index232.js +1 -1
  40. package/dist/index233.js +1 -1
  41. package/dist/index234.js +7 -7
  42. package/dist/index235.js +2 -2
  43. package/dist/index236.js +1 -1
  44. package/dist/index237.js +2 -2
  45. package/dist/index238.js +21 -160
  46. package/dist/index239.js +22 -228
  47. package/dist/index240.js +19 -36
  48. package/dist/index241.js +835 -9
  49. package/dist/index242.js +679 -104
  50. package/dist/index243.js +174 -36
  51. package/dist/index244.js +20 -80
  52. package/dist/index245.js +3 -3
  53. package/dist/index246.js +14 -12
  54. package/dist/index247.js +10 -10
  55. package/dist/index248.js +9 -9
  56. package/dist/index249.js +3 -253
  57. package/dist/index250.js +187 -8
  58. package/dist/index251.js +127 -132
  59. package/dist/index252.js +1201 -61
  60. package/dist/index253.js +126 -19
  61. package/dist/index254.js +19 -53
  62. package/dist/index255.js +21 -78
  63. package/dist/index256.js +15 -13
  64. package/dist/index257.js +37 -25
  65. package/dist/index258.js +22 -15
  66. package/dist/index259.js +13 -15
  67. package/dist/index260.js +20 -16
  68. package/dist/index261.js +2 -17
  69. package/dist/index262.js +2 -23
  70. package/dist/index263.js +3709 -22
  71. package/dist/index264.js +60 -22
  72. package/dist/index265.js +68 -821
  73. package/dist/index266.js +43 -693
  74. package/dist/index267.js +204 -165
  75. package/dist/index268.js +10 -22
  76. package/dist/index269.js +57 -20
  77. package/dist/index270.js +61 -3
  78. package/dist/index271.js +49 -182
  79. package/dist/index272.js +75 -127
  80. package/dist/index273.js +699 -1194
  81. package/dist/index274.js +47 -20
  82. package/dist/index275.js +64 -22
  83. package/dist/index276.js +11 -22
  84. package/dist/index277.js +705 -29
  85. package/dist/index278.js +820 -20
  86. package/dist/index279.js +253 -20
  87. package/dist/index280.js +8 -2
  88. package/dist/index281.js +138 -2
  89. package/dist/index282.js +71 -3697
  90. package/dist/index283.js +51 -57
  91. package/dist/index284.js +76 -80
  92. package/dist/index285.js +26 -52
  93. package/dist/index286.js +22 -215
  94. package/dist/index287.js +22 -10
  95. package/dist/index288.js +14 -55
  96. package/dist/index289.js +15 -59
  97. package/dist/index290.js +21 -52
  98. package/dist/index291.js +72 -73
  99. package/dist/index292.js +19 -727
  100. package/dist/index293.js +20 -47
  101. package/dist/index294.js +160 -63
  102. package/dist/index295.js +227 -10
  103. package/dist/index296.js +36 -704
  104. package/dist/index297.js +9 -819
  105. package/dist/index298.js +3 -2
  106. package/dist/index299.js +27 -3
  107. package/dist/index300.js +260 -22
  108. package/dist/index301.js +4 -263
  109. package/dist/index302.js +149 -5
  110. package/dist/index303.js +64 -145
  111. package/dist/index304.js +90 -68
  112. package/dist/index305.js +27 -89
  113. package/dist/index306.js +14 -27
  114. package/dist/index307.js +71 -12
  115. package/dist/index308.js +3 -74
  116. package/dist/index309.js +2 -4
  117. package/dist/index310.js +84 -2
  118. package/dist/index311.js +54 -80
  119. package/dist/index312.js +5 -57
  120. package/dist/index313.js +4 -5
  121. package/dist/index314.js +185 -4
  122. package/dist/index315.js +58 -181
  123. package/dist/index316.js +73 -61
  124. package/dist/index317.js +1533 -74
  125. package/dist/index318.js +386 -37
  126. package/dist/index319.js +2486 -1289
  127. package/dist/index320.js +70 -370
  128. package/dist/index321.js +3476 -2409
  129. package/dist/index322.js +51 -77
  130. package/dist/index323.js +13 -3796
  131. package/dist/index324.js +79 -55
  132. package/dist/index325.js +196 -73
  133. package/dist/index326.js +246 -22
  134. package/dist/index327.js +67 -923
  135. package/dist/index328.js +4 -4
  136. package/dist/index329.js +935 -20
  137. package/dist/index330.js +15 -13
  138. package/dist/index331.js +19 -68
  139. package/dist/index332.js +20 -19
  140. package/dist/index333.js +67 -17
  141. package/dist/index334.js +19 -22
  142. package/dist/index335.js +19 -22
  143. package/dist/index336.js +21 -62
  144. package/dist/index337.js +22 -15
  145. package/dist/index338.js +63 -84
  146. package/dist/index339.js +2 -202
  147. package/dist/index340.js +31 -240
  148. package/dist/index343.js +1 -1
  149. package/dist/index348.js +1 -1
  150. package/dist/index353.js +2 -2
  151. package/dist/index357.js +2 -2
  152. package/dist/index358.js +1 -1
  153. package/dist/index364.js +1 -1
  154. package/dist/index365.js +1 -1
  155. package/dist/index366.js +5 -5
  156. package/dist/index368.js +2 -2
  157. package/dist/index370.js +2 -2
  158. package/dist/index372.js +1 -1
  159. package/dist/index374.js +4 -4
  160. package/dist/index375.js +3 -3
  161. package/dist/index376.js +1 -1
  162. package/dist/index377.js +1 -1
  163. package/dist/index378.js +2 -2
  164. package/dist/index379.js +1 -1
  165. package/dist/index38.js +1 -1
  166. package/dist/index380.js +1 -1
  167. package/dist/index381.js +3 -3
  168. package/dist/index386.js +1 -1
  169. package/dist/index388.js +1 -1
  170. package/dist/index389.js +3 -3
  171. package/dist/index390.js +3 -3
  172. package/dist/index392.js +97 -16
  173. package/dist/index393.js +16 -100
  174. package/dist/index394.js +100 -90
  175. package/dist/index395.js +91 -98
  176. package/dist/index402.js +1 -1
  177. package/dist/src/components/avatar/avatar.stories.d.ts +1 -0
  178. package/dist/src/components/page-layout/page-layout.stories.d.ts +319 -0
  179. package/dist/src/components/page-layout/page-layout.vue.d.ts +2 -0
  180. package/package.json +1 -1
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
  };