@marianmeres/stuic 2.1.30 → 2.1.31

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.
@@ -29,6 +29,9 @@
29
29
  classButtonCancel?: string;
30
30
  classButtonCustom?: string;
31
31
  classButtonPrimary?: string;
32
+ variantButtonCancel?: string;
33
+ variantButtonCustom?: string;
34
+ variantButtonPrimary?: string;
32
35
  classSpinnerBox?: string;
33
36
  defaultIcons?: Partial<
34
37
  Record<"info" | "success" | "warn" | "error" | "spinner", () => string | undefined>
@@ -56,6 +59,9 @@
56
59
  classButtonCancel,
57
60
  classButtonCustom,
58
61
  classButtonPrimary,
62
+ variantButtonCancel,
63
+ variantButtonCustom,
64
+ variantButtonPrimary,
59
65
  }: Props = $props();
60
66
 
61
67
  let modal = $state<ModalDialog>();
@@ -112,6 +118,9 @@
112
118
  {classButtonCancel}
113
119
  {classButtonCustom}
114
120
  {classButtonPrimary}
121
+ {variantButtonCancel}
122
+ {variantButtonCustom}
123
+ {variantButtonPrimary}
115
124
  />
116
125
  </ModalDialog>
117
126
  {/if}
@@ -17,6 +17,9 @@ interface Props {
17
17
  classButtonCancel?: string;
18
18
  classButtonCustom?: string;
19
19
  classButtonPrimary?: string;
20
+ variantButtonCancel?: string;
21
+ variantButtonCustom?: string;
22
+ variantButtonPrimary?: string;
20
23
  classSpinnerBox?: string;
21
24
  defaultIcons?: Partial<Record<"info" | "success" | "warn" | "error" | "spinner", () => string | undefined>>;
22
25
  }
@@ -33,6 +33,9 @@
33
33
  classButtonCancel?: string;
34
34
  classButtonCustom?: string;
35
35
  classButtonPrimary?: string;
36
+ variantButtonCancel?: string;
37
+ variantButtonCustom?: string;
38
+ variantButtonPrimary?: string;
36
39
  classSpinnerBox?: string;
37
40
  defaultIcons?: Partial<
38
41
  Record<"info" | "success" | "warn" | "error" | "spinner", () => string | undefined>
@@ -57,6 +60,9 @@
57
60
  classButtonCancel,
58
61
  classButtonCustom,
59
62
  classButtonPrimary,
63
+ variantButtonCancel,
64
+ variantButtonCustom,
65
+ variantButtonPrimary = "primary",
60
66
  classSpinnerBox,
61
67
  defaultIcons = acpDefaultIcons,
62
68
  }: Props = $props();
@@ -201,6 +207,7 @@
201
207
  <li class={twMerge(_classMenuLi, classMenuLi)}>
202
208
  <CmpButtonCancel
203
209
  class={twMerge("cancel", _classButton, classButton, classButtonCancel)}
210
+ variant={variantButtonCancel}
204
211
  disabled={isPending}
205
212
  onclick={createOnClick("cancel", current.onCancel)}
206
213
  >
@@ -212,6 +219,7 @@
212
219
  <li class={twMerge(_classMenuLi, classMenuLi)}>
213
220
  <CmpButtonCustom
214
221
  class={twMerge("custom", _classButton, classButton, classButtonCustom)}
222
+ variant={variantButtonCustom}
215
223
  disabled={isPending}
216
224
  onclick={createOnClick("custom", current.onCustom)}
217
225
  >
@@ -222,7 +230,7 @@
222
230
  <li class={twMerge(_classMenuLi, classMenuLi)}>
223
231
  <CmpButtonOk
224
232
  class={twMerge("ok", _classButton, classButton, classButtonPrimary)}
225
- variant="primary"
233
+ variant={variantButtonPrimary}
226
234
  disabled={isPending}
227
235
  onclick={createOnClick("ok", current.onOk)}
228
236
  bind:el={okButtonEl}
@@ -17,6 +17,9 @@ interface Props {
17
17
  classButtonCancel?: string;
18
18
  classButtonCustom?: string;
19
19
  classButtonPrimary?: string;
20
+ variantButtonCancel?: string;
21
+ variantButtonCustom?: string;
22
+ variantButtonPrimary?: string;
20
23
  classSpinnerBox?: string;
21
24
  defaultIcons?: Partial<Record<"info" | "success" | "warn" | "error" | "spinner", () => string | undefined>>;
22
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "2.1.30",
3
+ "version": "2.1.31",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",