@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.
@@ -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
- } from "./alert-confirm-prompt.js";
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 clog = createClog("AlertConfirmPrompt");
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 { type createAlertConfirmPromptStore } from './alert-confirm-prompt.js';
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";
@@ -94,7 +94,7 @@ $:
94
94
  variant && `${variant || ""}`.split(" ").reduce((m, v) => {
95
95
  m += ButtonConfig.variant?.[v] + " ";
96
96
  return m;
97
- }, ""),
97
+ }, " "),
98
98
  //
99
99
  square && ButtonConfig.presetSquare,
100
100
  //
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
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "1.21.0",
3
+ "version": "1.23.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package && node ./scripts/date.js",