@marianmeres/stuic 1.21.0 → 1.23.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/components/AlertConfirmPrompt/AlertConfirmPrompt.svelte +8 -6
- package/dist/components/AlertConfirmPrompt/AlertConfirmPrompt.svelte.d.ts +1 -1
- package/dist/components/AlertConfirmPrompt/alert-confirm-prompt.js +5 -0
- package/dist/components/Button/Button.svelte +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<script context="module">import { onMount } from "svelte";
|
|
2
|
-
import { Button, focusTrap } from "../../index.js";
|
|
3
|
-
import Thc from "../Thc/Thc.svelte";
|
|
4
2
|
import {
|
|
5
|
-
AlertConfirmPromptType
|
|
6
|
-
|
|
3
|
+
AlertConfirmPromptType,
|
|
4
|
+
Button,
|
|
5
|
+
createAlertConfirmPromptStore,
|
|
6
|
+
focusTrap
|
|
7
|
+
} from "../../index.js";
|
|
8
|
+
import Thc from "../Thc/Thc.svelte";
|
|
7
9
|
import { twMerge } from "tailwind-merge";
|
|
8
10
|
import { Field } from "../../index.js";
|
|
9
11
|
import { acpDefaultIcons } from "./acp-icons.js";
|
|
@@ -143,10 +145,10 @@ export class AlertConfirmPromptConfig {
|
|
|
143
145
|
};
|
|
144
146
|
}
|
|
145
147
|
const _isFn = (v) => typeof v === "function";
|
|
146
|
-
const { ALERT, CONFIRM, PROMPT } = AlertConfirmPromptType;
|
|
147
148
|
</script>
|
|
148
149
|
|
|
149
|
-
<script>const
|
|
150
|
+
<script>const { ALERT, CONFIRM, PROMPT } = AlertConfirmPromptType;
|
|
151
|
+
const clog = createClog("AlertConfirmPrompt");
|
|
150
152
|
export let acp;
|
|
151
153
|
$:
|
|
152
154
|
dialog = $acp[0];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import {
|
|
2
|
+
import { createAlertConfirmPromptStore } from '../../index.js';
|
|
3
3
|
export declare class AlertConfirmPromptConfig {
|
|
4
4
|
static preset: {
|
|
5
5
|
dialog: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { createStore } from '@marianmeres/store';
|
|
2
2
|
import { createClog } from '@marianmeres/clog';
|
|
3
3
|
const clog = createClog('alert-confirm-prompt');
|
|
4
|
+
// export class AlertConfirmPromptType {
|
|
5
|
+
// static readonly ALERT: 'alert';
|
|
6
|
+
// static readonly CONFIRM: 'confirm';
|
|
7
|
+
// static readonly PROMPT: 'prompt';
|
|
8
|
+
// }
|
|
4
9
|
export var AlertConfirmPromptType;
|
|
5
10
|
(function (AlertConfirmPromptType) {
|
|
6
11
|
AlertConfirmPromptType["ALERT"] = "alert";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as AlertConfirmPrompt } from './components/AlertConfirmPrompt/AlertConfirmPrompt.svelte';
|
|
2
|
-
export { createAlertConfirmPromptStore, createAlert, createConfirm, createPrompt, } from './components/AlertConfirmPrompt/alert-confirm-prompt.js';
|
|
1
|
+
export { default as AlertConfirmPrompt, AlertConfirmPromptConfig, } from './components/AlertConfirmPrompt/AlertConfirmPrompt.svelte';
|
|
2
|
+
export { createAlertConfirmPromptStore, createAlert, createConfirm, createPrompt, AlertConfirmPromptType, type AlertConfirmPromptVariant, } from './components/AlertConfirmPrompt/alert-confirm-prompt.js';
|
|
3
3
|
export { default as AppShell, appShellSetHtmlBodyHeight, } from './components/AppShell/AppShell.svelte';
|
|
4
4
|
export { default as Backdrop, BackdropConfig, } from './components/Backdrop/Backdrop.svelte';
|
|
5
5
|
export { default as Button, ButtonConfig } from './components/Button/Button.svelte';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Reexport your entry components here
|
|
2
2
|
//
|
|
3
|
-
export { default as AlertConfirmPrompt } from './components/AlertConfirmPrompt/AlertConfirmPrompt.svelte';
|
|
4
|
-
export { createAlertConfirmPromptStore, createAlert, createConfirm, createPrompt, } from './components/AlertConfirmPrompt/alert-confirm-prompt.js';
|
|
3
|
+
export { default as AlertConfirmPrompt, AlertConfirmPromptConfig, } from './components/AlertConfirmPrompt/AlertConfirmPrompt.svelte';
|
|
4
|
+
export { createAlertConfirmPromptStore, createAlert, createConfirm, createPrompt, AlertConfirmPromptType, } from './components/AlertConfirmPrompt/alert-confirm-prompt.js';
|
|
5
5
|
//
|
|
6
6
|
export { default as AppShell, appShellSetHtmlBodyHeight, } from './components/AppShell/AppShell.svelte';
|
|
7
7
|
//
|