tosijs-ui 1.0.2 → 1.0.4
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/README.md +6 -5
- package/dist/dialog.d.ts +22 -0
- package/dist/icon-data.d.ts +4 -0
- package/dist/iife.js +40 -40
- package/dist/iife.js.map +32 -30
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -8
- package/dist/index.js.map +33 -31
- package/dist/live-example.d.ts +2 -1
- package/dist/menu.d.ts +1 -0
- package/dist/month.d.ts +61 -0
- package/dist/notifications.d.ts +1 -0
- package/dist/pop-float.d.ts +3 -1
- package/dist/select.d.ts +7 -2
- package/dist/version.d.ts +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# tosijs-ui
|
|
2
2
|
|
|
3
|
-
> xinjs-ui
|
|
3
|
+
> `xinjs-ui` has been renamed `tosijs-ui`. Updating the documentation and links is a
|
|
4
|
+
> work in progress. The goal is for the API to remain stable during the transition.
|
|
4
5
|
|
|
5
6
|
<!--{ "pin": "top" }-->
|
|
6
7
|
|
|
7
|
-
[ui.xinjs.net live demo](https://ui.xinjs.net) | [xinjs](https://xinjs.net) | [discord](https://discord.gg/ramJ9rgky5) | [github](https://github.com/tonioloewald/
|
|
8
|
+
[ui.xinjs.net live demo](https://ui.xinjs.net) | [xinjs](https://xinjs.net) | [discord](https://discord.gg/ramJ9rgky5) | [github](https://github.com/tonioloewald/tosijs-ui#readme) | [npm](https://www.npmjs.com/package/tosijs-ui)
|
|
8
9
|
|
|
9
10
|
<center>
|
|
10
11
|
<xin-icon class="logo" icon="tosiUi" size=300></xin-icon>
|
|
@@ -53,8 +54,8 @@ as globals which contain all the things exported by `tosijs` and `tosijs-ui`.
|
|
|
53
54
|
<script src="https://ui.xinjs.net/iife.js"></script>
|
|
54
55
|
<button id="menu">Menu <xin-icon icon="chevronDown"></xin-icon></button>
|
|
55
56
|
<script>
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
import { elements } from 'tosijs'
|
|
58
|
+
import { popMenu, icons } from 'tosijs-ui'
|
|
58
59
|
|
|
59
60
|
const button = { elements }
|
|
60
61
|
|
|
@@ -108,7 +109,7 @@ document.body.append(markdownViewer('# hello world\nthis is a test'))
|
|
|
108
109
|
```
|
|
109
110
|
|
|
110
111
|
```js
|
|
111
|
-
|
|
112
|
+
import { markdownViewer } from 'tosijs-ui'
|
|
112
113
|
|
|
113
114
|
preview.append(
|
|
114
115
|
markdownViewer(`
|
package/dist/dialog.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, PartsMap } from 'tosijs';
|
|
2
|
+
interface DialogParts extends PartsMap {
|
|
3
|
+
dialog: HTMLDialogElement;
|
|
4
|
+
ok: HTMLButtonElement;
|
|
5
|
+
}
|
|
6
|
+
export declare class TosiDialog extends Component<DialogParts> {
|
|
7
|
+
#private;
|
|
8
|
+
static alert(message: string, title?: string): Promise<void>;
|
|
9
|
+
static confirm(message: string, title?: string): Promise<boolean>;
|
|
10
|
+
static prompt(message: string, title?: string, currentValue?: string): Promise<string | null>;
|
|
11
|
+
removeOnClose: boolean;
|
|
12
|
+
closeOnBackgroundClick: boolean;
|
|
13
|
+
constructor();
|
|
14
|
+
dialogWillClose: (reason?: string) => void;
|
|
15
|
+
initialFocus(): void;
|
|
16
|
+
showModal: () => Promise<string | null>;
|
|
17
|
+
close: (reason?: string) => void;
|
|
18
|
+
ok: () => void;
|
|
19
|
+
content: () => HTMLDialogElement;
|
|
20
|
+
}
|
|
21
|
+
export declare const tosiDialog: import("tosijs").ElementCreator<Component<PartsMap>>;
|
|
22
|
+
export {};
|
package/dist/icon-data.d.ts
CHANGED
|
@@ -297,9 +297,13 @@ declare const _default: {
|
|
|
297
297
|
alignLeft: string;
|
|
298
298
|
heart: string;
|
|
299
299
|
trendingUp: string;
|
|
300
|
+
listBullet: string;
|
|
301
|
+
indent: string;
|
|
300
302
|
fontBold: string;
|
|
301
303
|
fontItalic: string;
|
|
302
304
|
fontUnderline: string;
|
|
305
|
+
outdent: string;
|
|
306
|
+
listNumber: string;
|
|
303
307
|
resize: string;
|
|
304
308
|
bug: string;
|
|
305
309
|
blog: string;
|