@finema/core 3.27.1 → 3.28.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/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "3.27.1",
3
+ "version": "3.28.0",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.3",
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import * as lodash from 'lodash-es';
4
4
  import * as theme from '../dist/runtime/theme/index.js';
5
5
 
6
6
  const name = "@finema/core";
7
- const version = "3.27.1";
7
+ const version = "3.28.0";
8
8
 
9
9
  const nuxtAppOptions = {
10
10
  head: {
@@ -20,6 +20,25 @@
20
20
  >
21
21
  {{ propsSafe.description }}
22
22
  </AlertDialogDescription>
23
+ <div
24
+ v-if="propsSafe.details?.items?.length"
25
+ :class="theme.details()"
26
+ >
27
+ <p
28
+ v-if="propsSafe.details.title"
29
+ :class="theme.detailsTitle()"
30
+ >
31
+ {{ propsSafe.details.title }}
32
+ </p>
33
+ <ul :class="theme.detailsList()">
34
+ <li
35
+ v-for="item in propsSafe.details.items"
36
+ :key="item"
37
+ >
38
+ {{ item }}
39
+ </li>
40
+ </ul>
41
+ </div>
23
42
  <div
24
43
  v-if="propsSafe.type !== DialogType.LOADING"
25
44
  :class="theme.buttonGroup()"
@@ -38,6 +57,7 @@
38
57
  type="button"
39
58
  :color="propsSafe.type"
40
59
  :class="theme.confirmButton()"
60
+ :icon="propsSafe.confirmIcon"
41
61
  @click="emits('close', true)"
42
62
  >
43
63
  {{ propsSafe.confirmText }}
@@ -15,6 +15,13 @@ export interface IDialogMetaItem {
15
15
  isShowCancelBtn?: boolean;
16
16
  isHideIcon?: boolean;
17
17
  isConfirm?: boolean;
18
+ /** Bulleted "what happens next" box shown under the description */
19
+ details?: {
20
+ title?: string;
21
+ items: string[];
22
+ };
23
+ /** Icon shown inside the confirm button */
24
+ confirmIcon?: string;
18
25
  }
19
26
  export interface IDialog {
20
27
  error: (payload: IDialogMetaItem) => Promise<boolean>;
@@ -16,6 +16,9 @@ export declare const dialogTheme: {
16
16
  title: string;
17
17
  description: string;
18
18
  buttonGroup: string;
19
+ details: string;
20
+ detailsTitle: string;
21
+ detailsList: string;
19
22
  icon: string;
20
23
  confirmButton: string;
21
24
  cancelButton: string;
@@ -26,6 +26,9 @@ export const dialogTheme = {
26
26
  title: "font-bold text-lg mt-4",
27
27
  description: "text-neutral-400 text-sm whitespace-pre-line",
28
28
  buttonGroup: "flex items-center space-x-3 mt-4 justify-center w-full mt-6",
29
+ details: "w-full mt-4 rounded-xl border border-default bg-elevated/50 p-3 text-left",
30
+ detailsTitle: "font-semibold text-sm mb-1.5",
31
+ detailsList: "list-disc pl-5 space-y-1 text-sm text-neutral-500",
29
32
  icon: "size-6",
30
33
  confirmButton: "w-full justify-center",
31
34
  cancelButton: "w-full justify-center"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "3.27.1",
3
+ "version": "3.28.0",
4
4
  "license": "MIT",
5
5
  "author": "Finema Dev Core Team",
6
6
  "repository": "https://gitlab.finema.co/finema/ui-kit",