From 494abc6ff3682d8a2e699258cc4f283645e17d25 Mon Sep 17 00:00:00 2001 From: Dirk Holtwick Date: Sun, 19 May 2024 16:40:23 +0200 Subject: [PATCH 1/2] feat: oui-mobile --- index.html | 2 +- lib/index.styl | 1 + lib/lib.ts | 1 + lib/mobile/index.styl | 1 + lib/mobile/index.ts | 1 + lib/mobile/oui-mobile.demo.vue | 9 +++++++++ lib/mobile/oui-mobile.md | 7 +++++++ {src => lib/mobile}/oui-mobile.styl | 7 +++---- {src => lib/mobile}/oui-mobile.vue | 0 package.json | 2 +- src/app-mobile-using-oui.vue | 5 +++-- src/app-mobile.styl | 2 +- src/app.vue | 5 ++--- 13 files changed, 31 insertions(+), 12 deletions(-) create mode 100644 lib/mobile/index.styl create mode 100644 lib/mobile/index.ts create mode 100644 lib/mobile/oui-mobile.demo.vue create mode 100644 lib/mobile/oui-mobile.md rename {src => lib/mobile}/oui-mobile.styl (93%) rename {src => lib/mobile}/oui-mobile.vue (100%) diff --git a/index.html b/index.html index f86f662..e9c4bd7 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + Oui diff --git a/lib/index.styl b/lib/index.styl index e91ffcd..198d48b 100644 --- a/lib/index.styl +++ b/lib/index.styl @@ -3,3 +3,4 @@ @require "./modal/index.styl"; @require "./notification/index.styl"; @require "./object/index.styl"; +@require "./mobile/index.styl"; diff --git a/lib/lib.ts b/lib/lib.ts index b909519..ac4bf12 100644 --- a/lib/lib.ts +++ b/lib/lib.ts @@ -3,3 +3,4 @@ export * from './float' export * from './modal' export * from './notification' export * from './object' +export * from './mobile' diff --git a/lib/mobile/index.styl b/lib/mobile/index.styl new file mode 100644 index 0000000..4c26c3a --- /dev/null +++ b/lib/mobile/index.styl @@ -0,0 +1 @@ +@require "./oui-mobile.styl"; diff --git a/lib/mobile/index.ts b/lib/mobile/index.ts new file mode 100644 index 0000000..48290f0 --- /dev/null +++ b/lib/mobile/index.ts @@ -0,0 +1 @@ +export { default as OuiMobileActivator } from './oui-mobile.vue' diff --git a/lib/mobile/oui-mobile.demo.vue b/lib/mobile/oui-mobile.demo.vue new file mode 100644 index 0000000..4a38c93 --- /dev/null +++ b/lib/mobile/oui-mobile.demo.vue @@ -0,0 +1,9 @@ + + + diff --git a/lib/mobile/oui-mobile.md b/lib/mobile/oui-mobile.md new file mode 100644 index 0000000..f895433 --- /dev/null +++ b/lib/mobile/oui-mobile.md @@ -0,0 +1,7 @@ +# oui-mobile + +Place it somewhere to let the magic happen: + +```vue + +``` diff --git a/src/oui-mobile.styl b/lib/mobile/oui-mobile.styl similarity index 93% rename from src/oui-mobile.styl rename to lib/mobile/oui-mobile.styl index 632ac18..3d5c763 100644 --- a/src/oui-mobile.styl +++ b/lib/mobile/oui-mobile.styl @@ -1,12 +1,11 @@ @require "../stylus/index.styl"; html.oui-mobile { - height: 100%; - &, body { /* This seems to fix overscrolling */ /* https://www.bram.us/2016/05/02/prevent-overscroll-bounce-in-ios-mobilesafari-pure-css/ */ overflow: hidden; + height: 100%; } & { @@ -14,8 +13,8 @@ html.oui-mobile { transition: height 400ms cubic-bezier(0.38, 0.7, 0.125, 1); } - body { - /* Should avoids overflow */ + & { + /* Avoids bouncy scrolling */ -webkit-overflow-scrolling: none; overscroll-behavior: none; } diff --git a/src/oui-mobile.vue b/lib/mobile/oui-mobile.vue similarity index 100% rename from src/oui-mobile.vue rename to lib/mobile/oui-mobile.vue diff --git a/package.json b/package.json index 7151198..314c8ae 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "devDependencies": { "@antfu/eslint-config": "^2.18.1", "@antfu/ni": "^0.21.12", - "@shikijs/markdown-it": "^1.5.2", + "@shikijs/markdown-it": "^1.6.0", "@tsconfig/node18": "^18.2.4", "@types/jest": "^29.5.12", "@types/node": "^20.12.12", diff --git a/src/app-mobile-using-oui.vue b/src/app-mobile-using-oui.vue index f8ae459..081ccc2 100644 --- a/src/app-mobile-using-oui.vue +++ b/src/app-mobile-using-oui.vue @@ -1,10 +1,11 @@ From 7bc3974c27cdb28cb4d92b7ec029853daf2f7106 Mon Sep 17 00:00:00 2001 From: Dirk Holtwick Date: Sun, 19 May 2024 16:40:30 +0200 Subject: [PATCH 2/2] 0.19.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 314c8ae..2187fb2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "oui-kit", "type": "module", - "version": "0.19.0", + "version": "0.19.1", "author": { "email": "dirk.holtwick@gmail.com", "name": "Dirk Holtwick",