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 CHANGED
@@ -1,10 +1,11 @@
1
1
  # tosijs-ui
2
2
 
3
- > xinjs-ui is now tosijs-ui. This is work in progress.
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/xinjs-ui#readme) | [npm](https://www.npmjs.com/package/xinjs-ui)
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
- const { elements } = tosijs
57
- const { popMenu, icons } = tosijsui
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
- const { markdownViewer } = tosijsui
112
+ import { markdownViewer } from 'tosijs-ui'
112
113
 
113
114
  preview.append(
114
115
  markdownViewer(`
@@ -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 {};
@@ -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;