@finema/core 1.4.196 → 1.4.197

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": "1.4.196",
3
+ "version": "1.4.197",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, installModule, addPlugin, addComponen
2
2
  import { defu } from 'defu';
3
3
 
4
4
  const name = "@finema/core";
5
- const version = "1.4.196";
5
+ const version = "1.4.197";
6
6
 
7
7
  const colorModeOptions = {
8
8
  preference: "light"
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <div class="flex flex-col items-center justify-center py-6 text-gray-300">
3
- <Icon :name="icon" class="w-[42px]" />
4
- <p class="mt-6" v-html="message" />
2
+ <div class="flex flex-col items-center justify-center py-6 text-gray-400">
3
+ <Icon :name="icon" class="text-[100px]" />
4
+ <p class="mt-4" v-html="message" />
5
5
  </div>
6
6
  </template>
7
7
  <script lang="ts" setup>
@@ -12,7 +12,7 @@ withDefaults(
12
12
  }>(),
13
13
  {
14
14
  message: 'ไม่พบข้อมูล!',
15
- icon: 'ph:table',
15
+ icon: 'ph:table-thin',
16
16
  }
17
17
  )
18
18
  </script>
@@ -21,7 +21,10 @@ export const table = {
21
21
  padding: "px-3 py-4",
22
22
  color: "text-gray-500 dark:text-gray-400",
23
23
  font: "",
24
- size: "text-sm"
24
+ size: "text-base"
25
+ },
26
+ progress: {
27
+ wrapper: "absolute inset-x-0 p-0"
25
28
  },
26
29
  default: {
27
30
  sortButton: {
@@ -0,0 +1,48 @@
1
+ import type { DeepPartial } from '#ui/types'
2
+ import type * as config from '#ui/ui.config'
3
+
4
+ export const table: DeepPartial<(typeof config)['table']> = {
5
+ wrapper: 'relative overflow-x-auto bg-white rounded-lg',
6
+ base: 'min-w-full table-fixed',
7
+ divide: 'divide-y divide-y-2 divide-gray-300 dark:divide-gray-700',
8
+ thead: '',
9
+ tbody: 'divide-y divide-gray-200 dark:divide-gray-800',
10
+ tr: {
11
+ base: 'even:bg-gray-50',
12
+ selected: 'bg-gray-50 dark:bg-gray-800/50',
13
+ active: 'hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer',
14
+ },
15
+ th: {
16
+ base: 'text-left rtl:text-right',
17
+ padding: 'px-3 py-3.5',
18
+ color: 'text-gray-700 dark:text-white',
19
+ font: 'font-normal',
20
+ size: 'text-sm',
21
+ },
22
+ td: {
23
+ base: 'whitespace-nowrap',
24
+ padding: 'px-3 py-4',
25
+ color: 'text-gray-500 dark:text-gray-400',
26
+ font: '',
27
+ size: 'text-sm',
28
+ },
29
+ progress: {
30
+ wrapper: 'absolute inset-x-0 p-0',
31
+ },
32
+ default: {
33
+ sortButton: {
34
+ icon: 'i-heroicons-arrows-up-down-20-solid',
35
+ trailing: true,
36
+ square: true,
37
+ color: 'gray',
38
+ variant: 'ghost',
39
+ class: '-m-1.5 text-gray-700 font-normal',
40
+ },
41
+ loadingState: {
42
+ label: 'กำลังโหลด...',
43
+ },
44
+ emptyState: {
45
+ label: 'ไม่พบข้อมูล',
46
+ },
47
+ },
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.196",
3
+ "version": "1.4.197",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",