bits-ui 0.13.1 → 0.13.2
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.
- package/dist/bits/slider/components/slider-input.svelte +2 -2
- package/dist/internal/kbd.d.ts +1 -1
- package/dist/internal/kbd.js +37 -35
- package/dist/internal/style.d.ts +1 -2
- package/dist/internal/style.js +13 -20
- package/package.json +1 -1
- package/dist/internal/overlay.svelte +0 -10
- package/dist/internal/overlay.svelte.d.ts +0 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>import { getCtx } from "../ctx.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getSrOnlyStyles } from "../../../internal/style.js";
|
|
3
3
|
export let el = void 0;
|
|
4
4
|
const {
|
|
5
5
|
states: { value },
|
|
@@ -14,7 +14,7 @@ function getValue(value2) {
|
|
|
14
14
|
}
|
|
15
15
|
const attrs = {
|
|
16
16
|
...getAttrs("input"),
|
|
17
|
-
style:
|
|
17
|
+
style: getSrOnlyStyles()
|
|
18
18
|
};
|
|
19
19
|
$:
|
|
20
20
|
inputValue = getValue($value);
|
package/dist/internal/kbd.d.ts
CHANGED
package/dist/internal/kbd.js
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
export function getKbd() {
|
|
2
|
+
return {
|
|
3
|
+
ALT: "Alt",
|
|
4
|
+
ARROW_DOWN: "ArrowDown",
|
|
5
|
+
ARROW_LEFT: "ArrowLeft",
|
|
6
|
+
ARROW_RIGHT: "ArrowRight",
|
|
7
|
+
ARROW_UP: "ArrowUp",
|
|
8
|
+
BACKSPACE: "Backspace",
|
|
9
|
+
CAPS_LOCK: "CapsLock",
|
|
10
|
+
CONTROL: "Control",
|
|
11
|
+
DELETE: "Delete",
|
|
12
|
+
END: "End",
|
|
13
|
+
ENTER: "Enter",
|
|
14
|
+
ESCAPE: "Escape",
|
|
15
|
+
F1: "F1",
|
|
16
|
+
F10: "F10",
|
|
17
|
+
F11: "F11",
|
|
18
|
+
F12: "F12",
|
|
19
|
+
F2: "F2",
|
|
20
|
+
F3: "F3",
|
|
21
|
+
F4: "F4",
|
|
22
|
+
F5: "F5",
|
|
23
|
+
F6: "F6",
|
|
24
|
+
F7: "F7",
|
|
25
|
+
F8: "F8",
|
|
26
|
+
F9: "F9",
|
|
27
|
+
HOME: "Home",
|
|
28
|
+
META: "Meta",
|
|
29
|
+
PAGE_DOWN: "PageDown",
|
|
30
|
+
PAGE_UP: "PageUp",
|
|
31
|
+
SHIFT: "Shift",
|
|
32
|
+
SPACE: " ",
|
|
33
|
+
TAB: "Tab",
|
|
34
|
+
CTRL: "Control",
|
|
35
|
+
ASTERISK: "*"
|
|
36
|
+
};
|
|
37
|
+
}
|
package/dist/internal/style.d.ts
CHANGED
package/dist/internal/style.js
CHANGED
|
@@ -5,23 +5,16 @@ export function styleToString(style) {
|
|
|
5
5
|
return str + `${key}:${style[key]};`;
|
|
6
6
|
}, "");
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
width: "25px",
|
|
22
|
-
height: "25px",
|
|
23
|
-
opacity: "0",
|
|
24
|
-
margin: "0px",
|
|
25
|
-
pointerEvents: "none",
|
|
26
|
-
transform: "translateX(-100%)"
|
|
27
|
-
});
|
|
8
|
+
export function getSrOnlyStyles() {
|
|
9
|
+
return styleToString({
|
|
10
|
+
position: "absolute",
|
|
11
|
+
width: "1px",
|
|
12
|
+
height: "1px",
|
|
13
|
+
padding: "0",
|
|
14
|
+
margin: "-1px",
|
|
15
|
+
overflow: "hidden",
|
|
16
|
+
clip: "rect(0, 0, 0, 0)",
|
|
17
|
+
whiteSpace: "nowrap",
|
|
18
|
+
borderWidth: "0"
|
|
19
|
+
});
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: Record<string, never>;
|
|
4
|
-
events: {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
};
|
|
7
|
-
slots: {};
|
|
8
|
-
};
|
|
9
|
-
export type OverlayProps = typeof __propDef.props;
|
|
10
|
-
export type OverlayEvents = typeof __propDef.events;
|
|
11
|
-
export type OverlaySlots = typeof __propDef.slots;
|
|
12
|
-
export default class Overlay extends SvelteComponent<OverlayProps, OverlayEvents, OverlaySlots> {
|
|
13
|
-
}
|
|
14
|
-
export {};
|