@a-type/ui 4.0.7 → 4.0.8

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.
@@ -0,0 +1 @@
1
+ export declare const keyboardPreflight: import("unocss/index.js").Preflight<object>;
@@ -0,0 +1,16 @@
1
+ // @unocss-include
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.keyboardPreflight = void 0;
5
+ const _util_js_1 = require("./_util.js");
6
+ exports.keyboardPreflight = (0, _util_js_1.preflight)({
7
+ getCSS: () =>
8
+ // add space to bottom of body equal to virtual keyboard inset so that
9
+ // content is not hidden behind the keyboard
10
+ `
11
+ body {
12
+ margin-bottom: env(virtual-keyboard-inset-bottom, 0px);
13
+ }
14
+ `,
15
+ });
16
+ //# sourceMappingURL=keyboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../../src/uno/preflights/keyboard.ts"],"names":[],"mappings":";;;AAAA,yCAAuC;AAE1B,QAAA,iBAAiB,GAAG,IAAA,oBAAS,EAAC;IAC1C,MAAM,EAAE,GAAG,EAAE;IACZ,sEAAsE;IACtE,4CAA4C;IAC5C;;;;CAID;CACA,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const keyboardPreflight: import("unocss").Preflight<object>;
@@ -0,0 +1,13 @@
1
+ // @unocss-include
2
+ import { preflight } from './_util.js';
3
+ export const keyboardPreflight = preflight({
4
+ getCSS: () =>
5
+ // add space to bottom of body equal to virtual keyboard inset so that
6
+ // content is not hidden behind the keyboard
7
+ `
8
+ body {
9
+ margin-bottom: env(virtual-keyboard-inset-bottom, 0px);
10
+ }
11
+ `,
12
+ });
13
+ //# sourceMappingURL=keyboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../../src/uno/preflights/keyboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAC;IAC1C,MAAM,EAAE,GAAG,EAAE;IACZ,sEAAsE;IACtE,4CAA4C;IAC5C;;;;CAID;CACA,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-type/ui",
3
- "version": "4.0.7",
3
+ "version": "4.0.8",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "url": "https://github.com/a-type/ui"
@@ -0,0 +1,12 @@
1
+ import { preflight } from './_util.js';
2
+
3
+ export const keyboardPreflight = preflight({
4
+ getCSS: () =>
5
+ // add space to bottom of body equal to virtual keyboard inset so that
6
+ // content is not hidden behind the keyboard
7
+ `
8
+ body {
9
+ margin-bottom: env(virtual-keyboard-inset-bottom, 0px);
10
+ }
11
+ `,
12
+ });