@finema/core 1.4.23 → 1.4.25

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.
Files changed (51) hide show
  1. package/README.md +63 -63
  2. package/dist/module.d.mts +5 -4
  3. package/dist/module.d.ts +5 -4
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +1 -1
  6. package/dist/runtime/components/Alert.vue +49 -49
  7. package/dist/runtime/components/Avatar.vue +27 -27
  8. package/dist/runtime/components/Badge.vue +54 -54
  9. package/dist/runtime/components/Breadcrumb.vue +45 -45
  10. package/dist/runtime/components/Button/Group.vue +37 -37
  11. package/dist/runtime/components/Button/index.vue +77 -77
  12. package/dist/runtime/components/Card.vue +38 -38
  13. package/dist/runtime/components/Core.vue +13 -13
  14. package/dist/runtime/components/Dialog/index.vue +108 -98
  15. package/dist/runtime/components/Dropdown/index.vue +71 -71
  16. package/dist/runtime/components/Form/FieldWrapper.vue +21 -21
  17. package/dist/runtime/components/Form/Fields.vue +129 -129
  18. package/dist/runtime/components/Form/InputCheckbox/index.vue +21 -21
  19. package/dist/runtime/components/Form/InputDateTime/index.vue +51 -51
  20. package/dist/runtime/components/Form/InputRadio/index.vue +27 -27
  21. package/dist/runtime/components/Form/InputSelect/index.vue +37 -37
  22. package/dist/runtime/components/Form/InputStatic/index.vue +16 -16
  23. package/dist/runtime/components/Form/InputText/index.vue +27 -27
  24. package/dist/runtime/components/Form/InputTextarea/index.vue +25 -25
  25. package/dist/runtime/components/Form/InputToggle/index.vue +14 -14
  26. package/dist/runtime/components/Form/InputUploadFileClassic/index.vue +36 -36
  27. package/dist/runtime/components/Form/index.vue +6 -6
  28. package/dist/runtime/components/Icon.vue +23 -23
  29. package/dist/runtime/components/Image.vue +36 -36
  30. package/dist/runtime/components/Loader.vue +14 -14
  31. package/dist/runtime/components/Modal/index.vue +146 -146
  32. package/dist/runtime/components/SimplePagination.vue +96 -96
  33. package/dist/runtime/components/Slideover/index.vue +110 -110
  34. package/dist/runtime/components/Table/Base.vue +127 -127
  35. package/dist/runtime/components/Table/ColumnDate.vue +16 -16
  36. package/dist/runtime/components/Table/ColumnDateTime.vue +30 -30
  37. package/dist/runtime/components/Table/ColumnImage.vue +13 -13
  38. package/dist/runtime/components/Table/ColumnNumber.vue +14 -14
  39. package/dist/runtime/components/Table/Simple.vue +57 -57
  40. package/dist/runtime/components/Table/index.vue +52 -52
  41. package/dist/runtime/components/Tabs/index.vue +65 -65
  42. package/dist/runtime/composables/useApp.mjs +3 -1
  43. package/dist/runtime/composables/useDialog.d.ts +1 -0
  44. package/dist/runtime/core.config.d.ts +1 -0
  45. package/dist/runtime/core.config.mjs +2 -1
  46. package/dist/runtime/types/config.d.ts +1 -1
  47. package/dist/runtime/types/utils.d.ts +29 -29
  48. package/dist/runtime/ui.config/notification.d.ts +11 -0
  49. package/dist/runtime/ui.config/notification.mjs +9 -0
  50. package/dist/runtime/ui.css +32 -32
  51. package/package.json +86 -86
@@ -1,16 +1,16 @@
1
- <template>
2
- {{ getValue }}
3
- </template>
4
- <script lang="ts" setup>
5
- import { computed } from 'vue'
6
- import { type IColumn } from '#core/components/Table/types'
7
- import { TimeHelper } from '#core/utils/TimeHelper'
8
-
9
- const props = defineProps<{
10
- value: any
11
- row: any
12
- column: IColumn
13
- }>()
14
-
15
- const getValue = computed<string>(() => TimeHelper.getDateFormTime(props.value))
16
- </script>
1
+ <template>
2
+ {{ getValue }}
3
+ </template>
4
+ <script lang="ts" setup>
5
+ import { computed } from 'vue'
6
+ import { type IColumn } from '#core/components/Table/types'
7
+ import { TimeHelper } from '#core/utils/TimeHelper'
8
+
9
+ const props = defineProps<{
10
+ value: any
11
+ row: any
12
+ column: IColumn
13
+ }>()
14
+
15
+ const getValue = computed<string>(() => TimeHelper.getDateFormTime(props.value))
16
+ </script>
@@ -1,30 +1,30 @@
1
- <template>
2
- <p :title="`${getValue.date} ${getValue.time}`" class="flex flex-col whitespace-nowrap px-4">
3
- <span>
4
- {{ getValue.date }}
5
- </span>
6
- <span class="text-gray text-xs">
7
- {{ getValue.time }}
8
- </span>
9
- </p>
10
- </template>
11
- <script lang="ts" setup>
12
- import { computed } from 'vue'
13
- import { type IColumn } from '#core/components/Table/types'
14
- import { TimeHelper } from '#core/utils/TimeHelper'
15
-
16
- const props = defineProps<{
17
- value: any
18
- row: any
19
- column: IColumn
20
- }>()
21
-
22
- const getValue = computed<{ date: string; time: string }>(() => {
23
- return props.value
24
- ? {
25
- date: TimeHelper.getDateFormTime(props.value),
26
- time: TimeHelper.getTimeFormTime(props.value),
27
- }
28
- : { date: '-', time: '-' }
29
- })
30
- </script>
1
+ <template>
2
+ <p :title="`${getValue.date} ${getValue.time}`" class="flex flex-col whitespace-nowrap px-4">
3
+ <span>
4
+ {{ getValue.date }}
5
+ </span>
6
+ <span class="text-gray text-xs">
7
+ {{ getValue.time }}
8
+ </span>
9
+ </p>
10
+ </template>
11
+ <script lang="ts" setup>
12
+ import { computed } from 'vue'
13
+ import { type IColumn } from '#core/components/Table/types'
14
+ import { TimeHelper } from '#core/utils/TimeHelper'
15
+
16
+ const props = defineProps<{
17
+ value: any
18
+ row: any
19
+ column: IColumn
20
+ }>()
21
+
22
+ const getValue = computed<{ date: string; time: string }>(() => {
23
+ return props.value
24
+ ? {
25
+ date: TimeHelper.getDateFormTime(props.value),
26
+ time: TimeHelper.getTimeFormTime(props.value),
27
+ }
28
+ : { date: '-', time: '-' }
29
+ })
30
+ </script>
@@ -1,13 +1,13 @@
1
- <template><img class="h-12" :src="getValue" /></template>
2
- <script lang="ts" setup>
3
- import { computed } from 'vue'
4
- import { type IColumn } from '#core/components/Table/types'
5
-
6
- const props = defineProps<{
7
- value: any
8
- row: any
9
- column: IColumn
10
- }>()
11
-
12
- const getValue = computed(() => props.value)
13
- </script>
1
+ <template><img class="h-12" :src="getValue" /></template>
2
+ <script lang="ts" setup>
3
+ import { computed } from 'vue'
4
+ import { type IColumn } from '#core/components/Table/types'
5
+
6
+ const props = defineProps<{
7
+ value: any
8
+ row: any
9
+ column: IColumn
10
+ }>()
11
+
12
+ const getValue = computed(() => props.value)
13
+ </script>
@@ -1,14 +1,14 @@
1
- <template>{{ getValue }}</template>
2
- <script lang="ts" setup>
3
- import { StringHelper } from '../../utils/StringHelper'
4
- import { computed } from 'vue'
5
- import { type IColumn } from '#core/components/Table/types'
6
-
7
- const props = defineProps<{
8
- value: any
9
- row: any
10
- column: IColumn
11
- }>()
12
-
13
- const getValue = computed(() => StringHelper.withComma(props.value))
14
- </script>
1
+ <template>{{ getValue }}</template>
2
+ <script lang="ts" setup>
3
+ import { StringHelper } from '../../utils/StringHelper'
4
+ import { computed } from 'vue'
5
+ import { type IColumn } from '#core/components/Table/types'
6
+
7
+ const props = defineProps<{
8
+ value: any
9
+ row: any
10
+ column: IColumn
11
+ }>()
12
+
13
+ const getValue = computed(() => StringHelper.withComma(props.value))
14
+ </script>
@@ -1,57 +1,57 @@
1
- <template>
2
- <Base
3
- v-bind="$attrs"
4
- :columns="options.columns"
5
- :raw-data="itemsByPage"
6
- :status="options.status"
7
- :page-options="pageOptions"
8
- @page-change="onPageChange"
9
- >
10
- <template v-for="(_, slot) of $slots" #[slot]="slotProps">
11
- <slot :name="slot" v-bind="slotProps || {}" />
12
- </template>
13
- </Base>
14
- </template>
15
- <script lang="ts" setup>
16
- import { computed, type PropType, ref } from 'vue'
17
- import { type ISimpleTableOptions } from '#core/components/Table/types'
18
- import Base from '#core/components/Table/Base.vue'
19
- import { initPageOptions } from '#core/composables/loaderPage'
20
-
21
- const props = defineProps({
22
- options: { type: Object as PropType<ISimpleTableOptions>, required: true },
23
- })
24
-
25
- const currentPage = ref(1)
26
-
27
- const pageOptions = computed(() => {
28
- if (!props.options?.limit) {
29
- return undefined
30
- }
31
-
32
- return {
33
- ...initPageOptions({
34
- limit: props.options.limit,
35
- primary: props.options.primary,
36
- }),
37
- totalCount: props.options.rawData.length,
38
- totalPage: Math.ceil(props.options.rawData.length / props.options.limit),
39
- currentPage: currentPage.value,
40
- }
41
- })
42
-
43
- const onPageChange = (page: number) => {
44
- currentPage.value = page
45
- }
46
-
47
- const itemsByPage = computed(() => {
48
- if (!pageOptions.value) {
49
- return props.options?.rawData
50
- }
51
-
52
- const start = (pageOptions.value.currentPage - 1) * pageOptions.value.limit
53
- const end = start + pageOptions.value.limit
54
-
55
- return props.options?.rawData.slice(start, end)
56
- })
57
- </script>
1
+ <template>
2
+ <Base
3
+ v-bind="$attrs"
4
+ :columns="options.columns"
5
+ :raw-data="itemsByPage"
6
+ :status="options.status"
7
+ :page-options="pageOptions"
8
+ @page-change="onPageChange"
9
+ >
10
+ <template v-for="(_, slot) of $slots" #[slot]="slotProps">
11
+ <slot :name="slot" v-bind="slotProps || {}" />
12
+ </template>
13
+ </Base>
14
+ </template>
15
+ <script lang="ts" setup>
16
+ import { computed, type PropType, ref } from 'vue'
17
+ import { type ISimpleTableOptions } from '#core/components/Table/types'
18
+ import Base from '#core/components/Table/Base.vue'
19
+ import { initPageOptions } from '#core/composables/loaderPage'
20
+
21
+ const props = defineProps({
22
+ options: { type: Object as PropType<ISimpleTableOptions>, required: true },
23
+ })
24
+
25
+ const currentPage = ref(1)
26
+
27
+ const pageOptions = computed(() => {
28
+ if (!props.options?.limit) {
29
+ return undefined
30
+ }
31
+
32
+ return {
33
+ ...initPageOptions({
34
+ limit: props.options.limit,
35
+ primary: props.options.primary,
36
+ }),
37
+ totalCount: props.options.rawData.length,
38
+ totalPage: Math.ceil(props.options.rawData.length / props.options.limit),
39
+ currentPage: currentPage.value,
40
+ }
41
+ })
42
+
43
+ const onPageChange = (page: number) => {
44
+ currentPage.value = page
45
+ }
46
+
47
+ const itemsByPage = computed(() => {
48
+ if (!pageOptions.value) {
49
+ return props.options?.rawData
50
+ }
51
+
52
+ const start = (pageOptions.value.currentPage - 1) * pageOptions.value.limit
53
+ const end = start + pageOptions.value.limit
54
+
55
+ return props.options?.rawData.slice(start, end)
56
+ })
57
+ </script>
@@ -1,52 +1,52 @@
1
- <template>
2
- <div>
3
- <div v-if="options.isEnabledSearch" class="mb-4 flex justify-end">
4
- <UInput
5
- v-model="q"
6
- icon="i-heroicons-magnifying-glass"
7
- :placeholder="options.searchPlaceholder || 'ค้นหา...'"
8
- />
9
- </div>
10
- <Base
11
- v-bind="$attrs"
12
- :columns="options.columns"
13
- :raw-data="options.rawData"
14
- :status="options.status"
15
- :page-options="options.pageOptions"
16
- :is-simple-pagination="options.isSimplePagination"
17
- @page-change="onPageChange"
18
- >
19
- <template v-for="(_, slot) of $slots" #[slot]="slotProps">
20
- <slot :name="slot" v-bind="slotProps || {}" />
21
- </template>
22
- </Base>
23
- </div>
24
- </template>
25
- <script lang="ts" setup>
26
- import { type PropType } from 'vue'
27
- import { type ITableOptions } from '#core/components/Table/types'
28
- import { _debounce, ref, watch } from '#imports'
29
- import Base from '#core/components/Table/Base.vue'
30
-
31
- const emits = defineEmits<{
32
- (event: 'pageChange', page: number): void
33
- (event: 'search', q: string): void
34
- }>()
35
-
36
- const props = defineProps({
37
- options: { type: Object as PropType<ITableOptions>, required: true },
38
- })
39
-
40
- const q = ref(props.options?.pageOptions.search ?? '')
41
-
42
- watch(
43
- q,
44
- _debounce((value) => {
45
- emits('search', value)
46
- }, 500)
47
- )
48
-
49
- const onPageChange = (page: number) => {
50
- emits('pageChange', page)
51
- }
52
- </script>
1
+ <template>
2
+ <div>
3
+ <div v-if="options.isEnabledSearch" class="mb-4 flex justify-end">
4
+ <UInput
5
+ v-model="q"
6
+ icon="i-heroicons-magnifying-glass"
7
+ :placeholder="options.searchPlaceholder || 'ค้นหา...'"
8
+ />
9
+ </div>
10
+ <Base
11
+ v-bind="$attrs"
12
+ :columns="options.columns"
13
+ :raw-data="options.rawData"
14
+ :status="options.status"
15
+ :page-options="options.pageOptions"
16
+ :is-simple-pagination="options.isSimplePagination"
17
+ @page-change="onPageChange"
18
+ >
19
+ <template v-for="(_, slot) of $slots" #[slot]="slotProps">
20
+ <slot :name="slot" v-bind="slotProps || {}" />
21
+ </template>
22
+ </Base>
23
+ </div>
24
+ </template>
25
+ <script lang="ts" setup>
26
+ import { type PropType } from 'vue'
27
+ import { type ITableOptions } from '#core/components/Table/types'
28
+ import { _debounce, ref, watch } from '#imports'
29
+ import Base from '#core/components/Table/Base.vue'
30
+
31
+ const emits = defineEmits<{
32
+ (event: 'pageChange', page: number): void
33
+ (event: 'search', q: string): void
34
+ }>()
35
+
36
+ const props = defineProps({
37
+ options: { type: Object as PropType<ITableOptions>, required: true },
38
+ })
39
+
40
+ const q = ref(props.options?.pageOptions.search ?? '')
41
+
42
+ watch(
43
+ q,
44
+ _debounce((value) => {
45
+ emits('search', value)
46
+ }, 500)
47
+ )
48
+
49
+ const onPageChange = (page: number) => {
50
+ emits('pageChange', page)
51
+ }
52
+ </script>
@@ -1,65 +1,65 @@
1
- <template>
2
- <UTabs
3
- v-bind="attrs"
4
- :model-value="modelValue"
5
- :class="$props.class"
6
- :items="items"
7
- :orientation="orientation"
8
- :default-index="defaultIndex"
9
- :ui="ui"
10
- @change="change"
11
- >
12
- <template #default="{ item, index, selected }">
13
- <slot name="default" :item="item" :index="index" :selected="selected" />
14
- </template>
15
-
16
- <template #item="{ item, index, selected }">
17
- <slot name="item" :item="item" :index="index" :selected="selected" />
18
- </template>
19
- </UTabs>
20
- </template>
21
-
22
- <script setup lang="ts">
23
- import { useUiConfig, type PropType, useUI, toRef } from '#imports'
24
- import { type TabItem } from '#ui/types'
25
- import type { Strategy } from '#core/types/utils'
26
- import { tabs } from '#core/ui.config'
27
-
28
- const config = useUiConfig<typeof tabs>(tabs, 'tabs')
29
-
30
- const props = defineProps({
31
- modelValue: {
32
- type: Number,
33
- default: undefined,
34
- },
35
- items: {
36
- type: Array as PropType<TabItem[]>,
37
- default: () => [],
38
- },
39
- orientation: {
40
- type: String as PropType<'horizontal' | 'vertical'>,
41
- default: 'horizontal',
42
- validator: (value: string) => ['horizontal', 'vertical'].includes(value),
43
- },
44
- defaultIndex: {
45
- type: Number,
46
- default: 0,
47
- },
48
- class: {
49
- type: [String, Object, Array] as PropType<any>,
50
- default: () => '',
51
- },
52
- ui: {
53
- type: Object as PropType<Partial<typeof config> & { strategy?: Strategy }>,
54
- default: () => ({}),
55
- },
56
- })
57
-
58
- const emits = defineEmits(['update:modelValue', 'change'])
59
-
60
- const change = (index: number) => {
61
- emits('change', index)
62
- }
63
-
64
- const { ui, attrs } = useUI('tabs', toRef(props, 'ui'), config, toRef(props, 'class'))
65
- </script>
1
+ <template>
2
+ <UTabs
3
+ v-bind="attrs"
4
+ :model-value="modelValue"
5
+ :class="$props.class"
6
+ :items="items"
7
+ :orientation="orientation"
8
+ :default-index="defaultIndex"
9
+ :ui="ui"
10
+ @change="change"
11
+ >
12
+ <template #default="{ item, index, selected }">
13
+ <slot name="default" :item="item" :index="index" :selected="selected" />
14
+ </template>
15
+
16
+ <template #item="{ item, index, selected }">
17
+ <slot name="item" :item="item" :index="index" :selected="selected" />
18
+ </template>
19
+ </UTabs>
20
+ </template>
21
+
22
+ <script setup lang="ts">
23
+ import { useUiConfig, type PropType, useUI, toRef } from '#imports'
24
+ import { type TabItem } from '#ui/types'
25
+ import type { Strategy } from '#core/types/utils'
26
+ import { tabs } from '#core/ui.config'
27
+
28
+ const config = useUiConfig<typeof tabs>(tabs, 'tabs')
29
+
30
+ const props = defineProps({
31
+ modelValue: {
32
+ type: Number,
33
+ default: undefined,
34
+ },
35
+ items: {
36
+ type: Array as PropType<TabItem[]>,
37
+ default: () => [],
38
+ },
39
+ orientation: {
40
+ type: String as PropType<'horizontal' | 'vertical'>,
41
+ default: 'horizontal',
42
+ validator: (value: string) => ['horizontal', 'vertical'].includes(value),
43
+ },
44
+ defaultIndex: {
45
+ type: Number,
46
+ default: 0,
47
+ },
48
+ class: {
49
+ type: [String, Object, Array] as PropType<any>,
50
+ default: () => '',
51
+ },
52
+ ui: {
53
+ type: Object as PropType<Partial<typeof config> & { strategy?: Strategy }>,
54
+ default: () => ({}),
55
+ },
56
+ })
57
+
58
+ const emits = defineEmits(['update:modelValue', 'change'])
59
+
60
+ const change = (index: number) => {
61
+ emits('change', index)
62
+ }
63
+
64
+ const { ui, attrs } = useUI('tabs', toRef(props, 'ui'), config, toRef(props, 'class'))
65
+ </script>
@@ -1,4 +1,4 @@
1
- import { useSeoMeta } from "#imports";
1
+ import { useCoreConfig, useSeoMeta } from "#imports";
2
2
  import { defineStore } from "pinia";
3
3
  export const useApp = defineStore("_app", {
4
4
  state: () => ({
@@ -16,8 +16,10 @@ export const useApp = defineStore("_app", {
16
16
  this.sidebar = items;
17
17
  },
18
18
  defineSEO(payload) {
19
+ const coreConfig = useCoreConfig();
19
20
  useSeoMeta({
20
21
  title: payload.title,
22
+ titleTemplate: (title) => title ? `${title} | ${coreConfig.site_name}` : coreConfig.site_name,
21
23
  ogTitle: payload.title,
22
24
  description: payload.description,
23
25
  ogDescription: payload.description,
@@ -11,6 +11,7 @@ export interface IDialogMetaItem {
11
11
  confirmText?: string;
12
12
  cancelText?: string;
13
13
  isShowCancelBtn?: boolean;
14
+ isHideIcon?: boolean;
14
15
  }
15
16
  export interface IDialog {
16
17
  isShow: boolean;
@@ -5,4 +5,5 @@ export declare const core: {
5
5
  date_time_format: string;
6
6
  time_format: string;
7
7
  is_thai_year: boolean;
8
+ site_name: string;
8
9
  };
@@ -4,5 +4,6 @@ export const core = {
4
4
  date_format: "dd-MM-yyyy",
5
5
  date_time_format: "dd-MM-yyyy HH:mm",
6
6
  time_format: "HH:mm",
7
- is_thai_year: false
7
+ is_thai_year: false,
8
+ site_name: ""
8
9
  };
@@ -1 +1 @@
1
- export type UIComponentList = 'modal' | 'slideover' | 'dropdown' | 'icon' | 'button' | 'buttonGroup' | 'tabs' | 'card' | 'breadcrumb' | 'badge' | 'input' | 'pagination';
1
+ export type UIComponentList = 'modal' | 'slideover' | 'dropdown' | 'icon' | 'button' | 'buttonGroup' | 'tabs' | 'card' | 'breadcrumb' | 'badge' | 'input' | 'pagination' | 'notification';
@@ -1,29 +1,29 @@
1
- export type Strategy = 'merge' | 'override'
2
-
3
- export type NestedKeyOf<ObjectType extends object> = {
4
- [Key in keyof ObjectType]: ObjectType[Key] extends object ? NestedKeyOf<ObjectType[Key]> : Key
5
- }[keyof ObjectType]
6
-
7
- export type DeepPartial<T> = Partial<{
8
- [P in keyof T]: DeepPartial<T[P]> | Record<string, string>
9
- }>
10
-
11
- type DeepKey<T, Keys extends string[]> = Keys extends [infer First, ...infer Rest]
12
- ? First extends keyof T
13
- ? Rest extends string[]
14
- ? DeepKey<T[First], Rest>
15
- : never
16
- : never
17
- : T
18
-
19
- export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
20
- ? Result extends Record<string, any>
21
- ? keyof Result
22
- : never
23
- : never
24
-
25
- export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
26
- ? Result extends Record<string, any>
27
- ? Result
28
- : never
29
- : never
1
+ export type Strategy = 'merge' | 'override'
2
+
3
+ export type NestedKeyOf<ObjectType extends object> = {
4
+ [Key in keyof ObjectType]: ObjectType[Key] extends object ? NestedKeyOf<ObjectType[Key]> : Key
5
+ }[keyof ObjectType]
6
+
7
+ export type DeepPartial<T> = Partial<{
8
+ [P in keyof T]: DeepPartial<T[P]> | Record<string, string>
9
+ }>
10
+
11
+ type DeepKey<T, Keys extends string[]> = Keys extends [infer First, ...infer Rest]
12
+ ? First extends keyof T
13
+ ? Rest extends string[]
14
+ ? DeepKey<T[First], Rest>
15
+ : never
16
+ : never
17
+ : T
18
+
19
+ export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
20
+ ? Result extends Record<string, any>
21
+ ? keyof Result
22
+ : never
23
+ : never
24
+
25
+ export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
26
+ ? Result extends Record<string, any>
27
+ ? Result
28
+ : never
29
+ : never
@@ -0,0 +1,11 @@
1
+ import type { DeepPartial } from '#ui/types';
2
+ import type * as config from '#ui/ui.config';
3
+ export declare const notification: DeepPartial<(typeof config)['notification'] & {
4
+ actionGroup: {
5
+ wrapper: string;
6
+ cancelColor: string;
7
+ cancelVariant: string;
8
+ confirmColor: string;
9
+ confirmVariant: string;
10
+ };
11
+ }>;
@@ -0,0 +1,9 @@
1
+ export const notification = {
2
+ actionGroup: {
3
+ wrapper: "mt-5 flex justify-end space-x-4",
4
+ cancelColor: "primary",
5
+ cancelVariant: "outline",
6
+ confirmColor: "primary",
7
+ confirmVariant: "solid"
8
+ }
9
+ };