@outs-tand-ing/ui 0.2.17 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessWrapper.vue.d.ts","sourceRoot":"","sources":["../../src/components/AccessWrapper.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccessWrapper.vue.d.ts","sourceRoot":"","sources":["../../src/components/AccessWrapper.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAIlD,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;AA4GF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -290,32 +290,28 @@ var R = /* @__PURE__ */ S(O, [
|
|
|
290
290
|
},
|
|
291
291
|
setup(e, { expose: t }) {
|
|
292
292
|
t();
|
|
293
|
-
let n = h(null)
|
|
293
|
+
let n = h(null);
|
|
294
294
|
f(() => {
|
|
295
|
-
if (
|
|
295
|
+
if (n.value) {
|
|
296
296
|
let e = n.value.offsetHeight;
|
|
297
297
|
document.documentElement.style.setProperty("--access-footer-h", `${e}px`);
|
|
298
298
|
}
|
|
299
|
-
}), p(() => {
|
|
300
|
-
window.removeEventListener("scroll", i), window.removeEventListener("resize", i);
|
|
301
299
|
});
|
|
302
|
-
let
|
|
300
|
+
let r = {
|
|
303
301
|
footerRef: n,
|
|
304
|
-
canScroll: r,
|
|
305
|
-
update: i,
|
|
306
302
|
BrandLogo: w,
|
|
307
303
|
SVGShape: R
|
|
308
304
|
};
|
|
309
|
-
return Object.defineProperty(
|
|
305
|
+
return Object.defineProperty(r, "__isScriptSetup", {
|
|
310
306
|
enumerable: !1,
|
|
311
307
|
value: !0
|
|
312
|
-
}),
|
|
308
|
+
}), r;
|
|
313
309
|
}
|
|
314
310
|
}), B = { class: "min-h-screen bg-gray-50 flex flex-col" }, V = { class: "sticky top-0 z-10 pt-[var(--access-pt)] pb-4 flex flex-col items-center gap-4" }, H = { href: "/" }, U = { class: "flex-1 flex items-center justify-center pb-[var(--access-footer-h)]" }, W = {
|
|
315
311
|
ref: "footerRef",
|
|
316
312
|
class: "fixed bottom-0 left-0 right-0 z-10"
|
|
317
313
|
}, G = { class: "bg-gray-50" };
|
|
318
|
-
function K(e, t, s, c, l,
|
|
314
|
+
function K(e, t, s, c, l, u) {
|
|
319
315
|
return m(), i("div", B, [
|
|
320
316
|
a("div", V, [
|
|
321
317
|
a("a", H, [o(c.BrandLogo, { class: "text-gray-900" })]),
|
|
@@ -329,10 +325,10 @@ function K(e, t, s, c, l, d) {
|
|
|
329
325
|
_(e.$slots, "header")
|
|
330
326
|
]),
|
|
331
327
|
a("div", U, [_(e.$slots, "default")]),
|
|
332
|
-
a("div", W, [a("div", {
|
|
333
|
-
class:
|
|
328
|
+
a("div", W, [t[0] ||= a("div", {
|
|
329
|
+
class: "pointer-events-none h-10",
|
|
334
330
|
style: { background: "linear-gradient(to top, var(--color-surface, #f9fafb), transparent)" }
|
|
335
|
-
}, null,
|
|
331
|
+
}, null, -1), a("div", G, [_(e.$slots, "footer")])], 512)
|
|
336
332
|
]);
|
|
337
333
|
}
|
|
338
334
|
var q = /* @__PURE__ */ S(z, [["render", K], ["__file", "/Users/kemal/Desktop/Kite/_Code/outs/ui/src/components/AccessWrapper.vue"]]), J = /* @__PURE__ */ s({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outs-tand-ing/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "Shared Vue components, icons, and design tokens for Outs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"eslint-plugin-vue": "^10.8.0",
|
|
73
73
|
"typescript": "^6.0.2",
|
|
74
74
|
"typescript-eslint": "^8.58.0",
|
|
75
|
-
"vite": "^8.0.
|
|
75
|
+
"vite": "^8.0.5",
|
|
76
76
|
"vue": "^3.5.32",
|
|
77
77
|
"vue-tsc": "^3.2.6"
|
|
78
78
|
}
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
<div ref="footerRef" class="fixed bottom-0 left-0 right-0 z-10">
|
|
12
12
|
<div
|
|
13
|
-
class="pointer-events-none h-10
|
|
14
|
-
:class="canScroll ? 'opacity-100' : 'opacity-0'"
|
|
13
|
+
class="pointer-events-none h-10"
|
|
15
14
|
:style="{ background: 'linear-gradient(to top, var(--color-surface, #f9fafb), transparent)' }"
|
|
16
15
|
/>
|
|
17
16
|
<div class="bg-gray-50">
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
</template>
|
|
23
22
|
|
|
24
23
|
<script setup lang="ts">
|
|
25
|
-
import { ref, onMounted
|
|
24
|
+
import { ref, onMounted } from 'vue'
|
|
26
25
|
import type { LogoData } from '../utils/svg-parse'
|
|
27
26
|
import BrandLogo from './BrandLogo.vue'
|
|
28
27
|
import SVGShape from './SVGShape.vue'
|
|
@@ -33,22 +32,11 @@ defineProps<{
|
|
|
33
32
|
}>()
|
|
34
33
|
|
|
35
34
|
const footerRef = ref<HTMLElement | null>(null)
|
|
36
|
-
const canScroll = ref(true)
|
|
37
|
-
|
|
38
|
-
const update = () => (canScroll.value = document.documentElement.scrollHeight > window.innerHeight + 2)
|
|
39
35
|
|
|
40
36
|
onMounted(() => {
|
|
41
|
-
update()
|
|
42
|
-
window.addEventListener('scroll', update, { passive: true })
|
|
43
|
-
window.addEventListener('resize', update, { passive: true })
|
|
44
37
|
if (footerRef.value) {
|
|
45
38
|
const h = footerRef.value.offsetHeight
|
|
46
39
|
document.documentElement.style.setProperty('--access-footer-h', `${h}px`)
|
|
47
40
|
}
|
|
48
41
|
})
|
|
49
|
-
|
|
50
|
-
onUnmounted(() => {
|
|
51
|
-
window.removeEventListener('scroll', update)
|
|
52
|
-
window.removeEventListener('resize', update)
|
|
53
|
-
})
|
|
54
42
|
</script>
|