@hydrateless/svelte 0.3.0 → 0.4.0
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/index.d.ts +7 -1
- package/dist/index.js +9 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ declare const popover: Action<HTMLElement, undefined, Record<never, any>>;
|
|
|
20
20
|
declare const tooltip: Action<HTMLElement, undefined, Record<never, any>>;
|
|
21
21
|
/** `use:toc` — builds a table of contents from the surrounding document. */
|
|
22
22
|
declare const toc: Action<HTMLElement, undefined, Record<never, any>>;
|
|
23
|
+
/** `use:menu` — menubar/navigation pattern on a `[data-hl-menu]` element. */
|
|
24
|
+
declare const menu: Action<HTMLElement, undefined, Record<never, any>>;
|
|
25
|
+
/** `use:combobox` — editable combobox on a `[data-hl-combobox]` element. */
|
|
26
|
+
declare const combobox: Action<HTMLElement, undefined, Record<never, any>>;
|
|
27
|
+
/** `use:command` — command palette on a `[data-hl-command]` element. */
|
|
28
|
+
declare const command: Action<HTMLElement, undefined, Record<never, any>>;
|
|
23
29
|
|
|
24
30
|
/**
|
|
25
31
|
* Create a toast controller. Call in `onMount` and tear down in `onDestroy`:
|
|
@@ -35,4 +41,4 @@ declare const toc: Action<HTMLElement, undefined, Record<never, any>>;
|
|
|
35
41
|
*/
|
|
36
42
|
declare function createToast(container?: Document | HTMLElement): ToastApi;
|
|
37
43
|
|
|
38
|
-
export { accordion, createToast, disclosure, drawer, dropdown, modal, popover, tabs, toc, tooltip };
|
|
44
|
+
export { accordion, combobox, command, createToast, disclosure, drawer, dropdown, menu, modal, popover, tabs, toc, tooltip };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
// src/actions.ts
|
|
2
2
|
import {
|
|
3
3
|
enhanceAccordion,
|
|
4
|
+
enhanceCombobox,
|
|
5
|
+
enhanceCommand,
|
|
4
6
|
enhanceDisclosure,
|
|
5
7
|
enhanceDropdown,
|
|
6
8
|
enhanceDrawer,
|
|
9
|
+
enhanceMenu,
|
|
7
10
|
enhanceModal,
|
|
8
11
|
enhancePopover,
|
|
9
12
|
enhanceTabs,
|
|
@@ -29,6 +32,9 @@ var drawer = actionFor((node) => enhanceDrawer(node));
|
|
|
29
32
|
var popover = actionFor((node) => enhancePopover(node));
|
|
30
33
|
var tooltip = actionFor((node) => enhanceTooltip(node));
|
|
31
34
|
var toc = actionFor((node) => enhanceToc(node.ownerDocument));
|
|
35
|
+
var menu = actionFor((node) => enhanceMenu(node));
|
|
36
|
+
var combobox = actionFor((node) => enhanceCombobox(node));
|
|
37
|
+
var command = actionFor((node) => enhanceCommand(node));
|
|
32
38
|
|
|
33
39
|
// src/toast.ts
|
|
34
40
|
import { enhanceToast } from "@hydrateless/enhancers";
|
|
@@ -37,10 +43,13 @@ function createToast(container = document) {
|
|
|
37
43
|
}
|
|
38
44
|
export {
|
|
39
45
|
accordion,
|
|
46
|
+
combobox,
|
|
47
|
+
command,
|
|
40
48
|
createToast,
|
|
41
49
|
disclosure,
|
|
42
50
|
drawer,
|
|
43
51
|
dropdown,
|
|
52
|
+
menu,
|
|
44
53
|
modal,
|
|
45
54
|
popover,
|
|
46
55
|
tabs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hydrateless/svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Svelte bindings for Hydrateless — actions that wire the framework-agnostic enhancers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"test": "vitest run"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@hydrateless/enhancers": "^0.
|
|
31
|
+
"@hydrateless/enhancers": "^0.4.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"svelte": ">=4"
|