juxscript 1.1.344 → 1.1.345
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 +77 -140
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,143 +1,80 @@
|
|
|
1
|
-
import { Tag, TagOptions } from "./components/tag.js";
|
|
2
|
-
import {
|
|
1
|
+
import { tag, div, h1, h2, h3, h4, h5, h6, p, span, pre, code, Tag, TagOptions } from "./components/tag.js";
|
|
2
|
+
import { include } from "./components/include.js";
|
|
3
|
+
import { input, email, password, number, tel, url, search, date, time, datetime, color, range, file, hidden, Input, InputOptions } from "./components/input.js";
|
|
4
|
+
import { select } from "./components/select.js";
|
|
5
|
+
import { radio } from "./components/radio.js";
|
|
6
|
+
import { checkbox, checkboxGroup } from "./components/checkbox.js";
|
|
3
7
|
import { pageState } from "./state/pageState.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
url(id: string, options?: InputOptions): Input;
|
|
65
|
-
/** Create a search input. */
|
|
66
|
-
search(id: string, options?: InputOptions): Input;
|
|
67
|
-
/** Create a date input. */
|
|
68
|
-
date(id: string, options?: InputOptions): Input;
|
|
69
|
-
/** Create a time input. */
|
|
70
|
-
time(id: string, options?: InputOptions): Input;
|
|
71
|
-
/** Create a datetime-local input. */
|
|
72
|
-
datetime(id: string, options?: InputOptions): Input;
|
|
73
|
-
/** Create a color picker input. */
|
|
74
|
-
color(id: string, options?: InputOptions): Input;
|
|
75
|
-
/** Create a range slider input. */
|
|
76
|
-
range(id: string, options?: InputOptions): Input;
|
|
77
|
-
/** Create a file input. */
|
|
78
|
-
file(id: string, options?: InputOptions): Input;
|
|
79
|
-
/** Create a hidden input. */
|
|
80
|
-
hidden(id: string, options?: InputOptions): Input;
|
|
81
|
-
/** Create a `<select>` dropdown. */
|
|
82
|
-
select(id: string, options?: any): any;
|
|
83
|
-
/** Create a radio group. */
|
|
84
|
-
radio(id: string, options?: any): any;
|
|
85
|
-
/** Create a checkbox. */
|
|
86
|
-
checkbox(id: string, options?: any): any;
|
|
87
|
-
/** Create a checkbox group. */
|
|
88
|
-
checkboxGroup(id: string, options?: any): any;
|
|
89
|
-
/** Create a `<button>`. */
|
|
90
|
-
button(id: string, options?: ButtonOptions): Button;
|
|
91
|
-
/** Alias for `button`. */
|
|
92
|
-
btn(id: string, options?: ButtonOptions): Button;
|
|
93
|
-
/** Create an `<a>` link with SPA navigation support. */
|
|
94
|
-
link(id: string, options?: LinkOptions): Link;
|
|
95
|
-
/** Alias for `link`. */
|
|
96
|
-
a(id: string, options?: LinkOptions): Link;
|
|
97
|
-
/** Create a `<nav>` with items. */
|
|
98
|
-
nav(id: string, options?: NavOptions): Nav;
|
|
99
|
-
/** Create a `<ul>` or `<ol>` list. */
|
|
100
|
-
list(id: string, options?: ListOptions): List;
|
|
101
|
-
/** Create a `<table>` with auto-columns and selection. */
|
|
102
|
-
table(id: string, options?: TableOptions): Table;
|
|
103
|
-
/** Create a tabbed interface. */
|
|
104
|
-
tabs(id: string, options?: any): any;
|
|
105
|
-
/**
|
|
106
|
-
* Create a sidebar menu. Supports one-liner, sectioned, and fluent chain patterns.
|
|
107
|
-
* @example
|
|
108
|
-
* jux.sidebar('m', ['home', 'about'], { title: 'App', target: 'sidebar' });
|
|
109
|
-
* jux.sidebar('m').title('App').section('Nav', ['/home']).footer('v1');
|
|
110
|
-
*/
|
|
111
|
-
sidebar(id: string, sections?: (string | MenuSection | MenuItem)[], options?: MenuOptions): SidebarApi;
|
|
112
|
-
/** Fetch JSON data from a URL into pageState. */
|
|
113
|
-
data(id: string, options?: any): any;
|
|
114
|
-
/**
|
|
115
|
-
* Create a reactive IndexedDB store.
|
|
116
|
-
* @example
|
|
117
|
-
* const todos = await jux.store('todos', { db: 'app', table: 'todos' });
|
|
118
|
-
*/
|
|
119
|
-
store(id: string, options: StoreOptions): Promise<Store>;
|
|
120
|
-
/** Include a CSS file in the document head. */
|
|
121
|
-
include(path: string): void;
|
|
122
|
-
/** Inject a `<style>` tag with CSS. */
|
|
123
|
-
style(id: string, css: string): Style;
|
|
124
|
-
/** Open the JUX devtools panel. */
|
|
125
|
-
devtools(): void;
|
|
126
|
-
/** Watch reactive dependencies and re-run on change. */
|
|
127
|
-
watch(fn: () => void | Promise<void>): void;
|
|
128
|
-
}
|
|
129
|
-
export declare const jux: Jux;
|
|
8
|
+
import { data } from "./components/data.js";
|
|
9
|
+
import { store, Store, StoreOptions } from "./components/store.js";
|
|
10
|
+
import { devtools } from "./devtools/devtools.js";
|
|
11
|
+
import { style, Style } from "./components/style.js";
|
|
12
|
+
import { nav, Nav, NavOptions, NavItem } from "./components/nav.js";
|
|
13
|
+
import { table, Table, TableOptions } from "./components/table.js";
|
|
14
|
+
import { list, List, ListOptions } from "./components/list.js";
|
|
15
|
+
import { tabs } from "./components/tabs.js";
|
|
16
|
+
import { button, btn, Button, ButtonOptions } from "./components/button.js";
|
|
17
|
+
import { link, a, Link, LinkOptions } from "./components/link.js";
|
|
18
|
+
import { container, Container, ContainerOptions } from "./components/container.js";
|
|
19
|
+
import { grid, Grid, GridOptions, GridColumn } from "./components/grid.js";
|
|
20
|
+
export declare const jux: {
|
|
21
|
+
tag: typeof tag;
|
|
22
|
+
div: typeof div;
|
|
23
|
+
h1: typeof h1;
|
|
24
|
+
h2: typeof h2;
|
|
25
|
+
h3: typeof h3;
|
|
26
|
+
h4: typeof h4;
|
|
27
|
+
h5: typeof h5;
|
|
28
|
+
h6: typeof h6;
|
|
29
|
+
p: typeof p;
|
|
30
|
+
span: typeof span;
|
|
31
|
+
pre: typeof pre;
|
|
32
|
+
code: typeof code;
|
|
33
|
+
include: typeof include;
|
|
34
|
+
input: typeof input;
|
|
35
|
+
email: typeof email;
|
|
36
|
+
password: typeof password;
|
|
37
|
+
number: typeof number;
|
|
38
|
+
tel: typeof tel;
|
|
39
|
+
url: typeof url;
|
|
40
|
+
search: typeof search;
|
|
41
|
+
date: typeof date;
|
|
42
|
+
time: typeof time;
|
|
43
|
+
datetime: typeof datetime;
|
|
44
|
+
color: typeof color;
|
|
45
|
+
range: typeof range;
|
|
46
|
+
file: typeof file;
|
|
47
|
+
hidden: typeof hidden;
|
|
48
|
+
select: typeof select;
|
|
49
|
+
radio: typeof radio;
|
|
50
|
+
checkbox: typeof checkbox;
|
|
51
|
+
checkboxGroup: typeof checkboxGroup;
|
|
52
|
+
data: typeof data;
|
|
53
|
+
store: typeof store;
|
|
54
|
+
devtools: typeof devtools;
|
|
55
|
+
style: typeof style;
|
|
56
|
+
nav: typeof nav;
|
|
57
|
+
table: typeof table;
|
|
58
|
+
list: typeof list;
|
|
59
|
+
tabs: typeof tabs;
|
|
60
|
+
button: typeof button;
|
|
61
|
+
btn: typeof btn;
|
|
62
|
+
link: typeof link;
|
|
63
|
+
a: typeof a;
|
|
64
|
+
container: typeof container;
|
|
65
|
+
grid: typeof grid;
|
|
66
|
+
watch: any;
|
|
67
|
+
};
|
|
130
68
|
export { pageState };
|
|
131
|
-
export type { Tag, TagOptions }
|
|
132
|
-
export type { Input, InputOptions }
|
|
133
|
-
export type { Button, ButtonOptions }
|
|
134
|
-
export type { Link, LinkOptions }
|
|
135
|
-
export type { Nav, NavOptions }
|
|
136
|
-
export type { List, ListOptions }
|
|
137
|
-
export type { Table, TableOptions }
|
|
138
|
-
export type { Container, ContainerOptions }
|
|
139
|
-
export type { Grid, GridOptions, GridColumn }
|
|
140
|
-
export type { Store, StoreOptions }
|
|
141
|
-
export type { Style }
|
|
142
|
-
export type { SidebarApi, MenuItem, MenuSection, MenuOptions } from "./components/sidebar.js";
|
|
69
|
+
export type { Tag, TagOptions };
|
|
70
|
+
export type { Input, InputOptions };
|
|
71
|
+
export type { Button, ButtonOptions };
|
|
72
|
+
export type { Link, LinkOptions };
|
|
73
|
+
export type { Nav, NavOptions, NavItem };
|
|
74
|
+
export type { List, ListOptions };
|
|
75
|
+
export type { Table, TableOptions };
|
|
76
|
+
export type { Container, ContainerOptions };
|
|
77
|
+
export type { Grid, GridOptions, GridColumn };
|
|
78
|
+
export type { Store, StoreOptions };
|
|
79
|
+
export type { Style };
|
|
143
80
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,E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E,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE3E,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Cf,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC;AAChC,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AACpC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;AACtC,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AAClC,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AACzC,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AAClC,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AACpC,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;AAC5C,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AAC9C,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AACpC,YAAY,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,6 @@ import { button, btn } from "./components/button.js";
|
|
|
17
17
|
import { link, a } from "./components/link.js";
|
|
18
18
|
import { container } from "./components/container.js";
|
|
19
19
|
import { grid } from "./components/grid.js";
|
|
20
|
-
import { sidebar } from "./components/sidebar.js";
|
|
21
20
|
export const jux = {
|
|
22
21
|
tag,
|
|
23
22
|
div,
|
|
@@ -59,7 +58,6 @@ export const jux = {
|
|
|
59
58
|
a,
|
|
60
59
|
container,
|
|
61
60
|
grid,
|
|
62
|
-
sidebar,
|
|
63
61
|
watch: pageState.__watch
|
|
64
62
|
};
|
|
65
63
|
export { pageState };
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAmB,MAAM,qBAAqB,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAuB,MAAM,uBAAuB,CAAC;AAChK,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAuB,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAS,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE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