y200subcontrols 0.0.31 → 0.0.32

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
@@ -4,3 +4,6 @@ In your tailwind.config.js file add the following to content
4
4
 
5
5
  './node_modules/y200subcontrols/**/*.{html,js,svelte,ts}'
6
6
 
7
+
8
+ Please note, this is a work in progress, it is not in a usable state yet!
9
+
@@ -2,6 +2,8 @@
2
2
  import ModalDialog from "./ModalDialog.svelte";
3
3
  export let message = "Message goes here";
4
4
  export let style = "warning";
5
+ export let okButtonContent = "<span>Ok</span>";
6
+ export let cancelButtonContent = "<span>Ok</span>";
5
7
  let dialog;
6
8
  export async function showDialog() {
7
9
  const okButton = document.getElementById("okButtonDialog");
@@ -96,10 +98,10 @@ export async function showDialog() {
96
98
  </slot>
97
99
  <div class="grid grid-cols-2 gap-2" slot="buttons">
98
100
  <Button type="button" id="okButtonDialog">
99
- <span>Ok</span>
101
+ {@html okButtonContent}
100
102
  </Button>
101
103
  <Button type="button" buttonStyle="dark" id="cancelButtonDialog">
102
- <span>Cancel</span>
104
+ {@html cancelButtonContent}
103
105
  </Button>
104
106
  </div>
105
107
  </ModalDialog>
@@ -3,6 +3,8 @@ declare const __propDef: {
3
3
  props: {
4
4
  message?: string | undefined;
5
5
  style?: "warning" | "info" | "danger" | "success";
6
+ okButtonContent?: string;
7
+ cancelButtonContent?: string;
6
8
  showDialog?: () => Promise<"cancel" | "accept">;
7
9
  };
8
10
  events: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y200subcontrols",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",