@marianmeres/stuic 2.1.10 → 2.1.11

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.
@@ -15,9 +15,42 @@
15
15
  forceAsHtml?: boolean;
16
16
  class?: string;
17
17
  classModalInnerBox?: string;
18
+ //
19
+ classWrap?: string;
20
+ classIconBox?: string;
21
+ classContentBox?: string;
22
+ classTitle?: string;
23
+ classContent?: string;
24
+ classInputBox?: string;
25
+ classInput?: string;
26
+ classMenu?: string;
27
+ classMenuLi?: string;
28
+ classButton?: string;
29
+ classSpinnerBox?: string;
30
+ defaultIcons?: Partial<
31
+ Record<"info" | "success" | "warn" | "error" | "spinner", () => string | undefined>
32
+ >;
18
33
  }
19
34
 
20
- let { acp, forceAsHtml, class: classProp, classModalInnerBox }: Props = $props();
35
+ let {
36
+ acp,
37
+ forceAsHtml,
38
+ class: classProp,
39
+ classModalInnerBox,
40
+ //
41
+ classWrap,
42
+ classIconBox,
43
+ classContentBox,
44
+ classTitle,
45
+ classContent,
46
+ classInputBox,
47
+ classInput,
48
+ classMenu,
49
+ classMenuLi,
50
+ classButton,
51
+ classSpinnerBox,
52
+ defaultIcons,
53
+ }: Props = $props();
21
54
 
22
55
  let modal = $state<ModalDialog>();
23
56
 
@@ -55,6 +88,21 @@
55
88
  classProp
56
89
  )}
57
90
  >
58
- <Current bind:isPending {acp} />
91
+ <Current
92
+ bind:isPending
93
+ {acp}
94
+ {classWrap}
95
+ {classIconBox}
96
+ {classContentBox}
97
+ {classTitle}
98
+ {classContent}
99
+ {classInputBox}
100
+ {classInput}
101
+ {classMenu}
102
+ {classMenuLi}
103
+ {classButton}
104
+ {classSpinnerBox}
105
+ {defaultIcons}
106
+ />
59
107
  </ModalDialog>
60
108
  {/if}
@@ -4,6 +4,18 @@ interface Props {
4
4
  forceAsHtml?: boolean;
5
5
  class?: string;
6
6
  classModalInnerBox?: string;
7
+ classWrap?: string;
8
+ classIconBox?: string;
9
+ classContentBox?: string;
10
+ classTitle?: string;
11
+ classContent?: string;
12
+ classInputBox?: string;
13
+ classInput?: string;
14
+ classMenu?: string;
15
+ classMenuLi?: string;
16
+ classButton?: string;
17
+ classSpinnerBox?: string;
18
+ defaultIcons?: Partial<Record<"info" | "success" | "warn" | "error" | "spinner", () => string | undefined>>;
7
19
  }
8
20
  declare const AlertConfirmPrompt: import("svelte").Component<Props, {}, "">;
9
21
  type AlertConfirmPrompt = ReturnType<typeof AlertConfirmPrompt>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "2.1.10",
3
+ "version": "2.1.11",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",