@finema/core 1.4.151 → 1.4.152

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,12 +1,12 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.151",
3
+ "version": "1.4.152",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
7
7
  },
8
8
  "builder": {
9
- "@nuxt/module-builder": "0.7.0",
9
+ "@nuxt/module-builder": "0.8.0",
10
10
  "unbuild": "2.0.0"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
2
 
3
3
  const name = "@finema/core";
4
- const version = "1.4.151";
4
+ const version = "1.4.152";
5
5
 
6
6
  const colors = {
7
7
  black: "#20243E",
@@ -18,9 +18,9 @@ const colors = {
18
18
  DEFAULT: "#9095A6",
19
19
  disabled: "#C1C4D0",
20
20
  border: "#E2E4EA",
21
- fill: "#F4F5FA",
22
- 50: "#E0E0E0",
23
- 600: "#616161"
21
+ fill: "#F4F5FA"
22
+ // 50: '#E0E0E0',
23
+ // 600: '#616161',
24
24
  },
25
25
  secondary: {
26
26
  DEFAULT: "#EE8B36",
@@ -227,9 +227,6 @@ const toggle = {
227
227
 
228
228
  const badge = {};
229
229
 
230
- const colorModeOptions = {
231
- preference: "light"
232
- };
233
230
  const veeValidateNuxtOptions = {
234
231
  // disable or enable auto imports
235
232
  autoImports: true,
@@ -340,6 +337,13 @@ const module = defineNuxtModule({
340
337
  nuxt.options.build.transpile.push(runtimeDir);
341
338
  nuxt.options.alias["#core"] = runtimeDir;
342
339
  nuxt.options.css.push(resolve(runtimeDir, "ui.css"));
340
+ await installModule("@nuxt/ui", {
341
+ safelistColors: ["secondary", "success", "info", "danger", "warning"]
342
+ });
343
+ await installModule("nuxt-lodash", {
344
+ prefix: "_",
345
+ upperAfterPrefix: false
346
+ });
343
347
  nuxt.hook("tailwindcss:config", (tailwindConfig) => {
344
348
  tailwindConfig.content = {
345
349
  ...tailwindConfig.content,
@@ -354,38 +358,30 @@ const module = defineNuxtModule({
354
358
  ...tailwindConfig.theme.extend.colors,
355
359
  ...colors
356
360
  };
361
+ nuxt.options.appConfig.ui = _deepMerge(
362
+ {
363
+ table,
364
+ pagination,
365
+ alert,
366
+ button,
367
+ buttonGroup,
368
+ formGroup,
369
+ checkbox,
370
+ input,
371
+ select,
372
+ selectMenu,
373
+ textarea,
374
+ toggle,
375
+ badge,
376
+ icons: {
377
+ dynamic: true
378
+ }
379
+ },
380
+ nuxt.options.appConfig.ui
381
+ );
382
+ nuxt.options.appConfig.ui.strategy = "override";
357
383
  });
358
- await installModule("@nuxt/ui", {
359
- safelistColors: ["secondary", "success", "info", "danger", "warning"]
360
- });
361
- await installModule("nuxt-lodash", {
362
- prefix: "_",
363
- upperAfterPrefix: false
364
- });
365
- nuxt.options.appConfig.ui = _deepMerge(
366
- {
367
- table,
368
- pagination,
369
- alert,
370
- button,
371
- buttonGroup,
372
- formGroup,
373
- checkbox,
374
- input,
375
- select,
376
- selectMenu,
377
- textarea,
378
- toggle,
379
- badge,
380
- icons: {
381
- dynamic: true
382
- }
383
- },
384
- nuxt.options.appConfig.ui
385
- );
386
- nuxt.options.appConfig.ui.strategy = "override";
387
384
  nuxt.options.app = _deepMerge({}, nuxtAppOptions, nuxt.options.app);
388
- nuxt.options.colorMode = _deepMerge({}, colorModeOptions, nuxt.options.colorMode);
389
385
  nuxt.options.devtools = _deepMerge({}, { enabled: true }, nuxt.options.devtools);
390
386
  nuxt.options.runtimeConfig = _deepMerge(
391
387
  {},
@@ -13,7 +13,7 @@ const props = defineProps({
13
13
  },
14
14
  dynamic: {
15
15
  type: Boolean,
16
- default: false,
16
+ default: true,
17
17
  },
18
18
  })
19
19
 
@@ -4,7 +4,7 @@
4
4
  <UInput
5
5
  v-model="q"
6
6
  icon="i-heroicons-magnifying-glass"
7
- :placeholder="options.searchPlaceholder || 'ค้นหา...'"
7
+ :placeholder="options.searchPlaceholder || 'ค้นหา....'"
8
8
  />
9
9
  </div>
10
10
  <Base
package/dist/types.d.mts CHANGED
@@ -1,16 +1 @@
1
-
2
- import type { ModuleOptions } from './module.js'
3
-
4
-
5
- declare module '@nuxt/schema' {
6
- interface NuxtConfig { ['core']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['core']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['core']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['core']?: ModuleOptions }
13
- }
14
-
15
-
16
- export type { core } from './module.js'
1
+ export { type core } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1,16 +1 @@
1
-
2
- import type { ModuleOptions } from './module'
3
-
4
-
5
- declare module '@nuxt/schema' {
6
- interface NuxtConfig { ['core']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['core']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['core']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['core']?: ModuleOptions }
13
- }
14
-
15
-
16
- export type { core } from './module'
1
+ export { type core } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.151",
3
+ "version": "1.4.152",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",
@@ -35,11 +35,11 @@
35
35
  "prepare": "husky install"
36
36
  },
37
37
  "dependencies": {
38
- "@nuxt/kit": "^3.11.2",
39
- "@nuxt/ui": "2.15.2",
38
+ "@nuxt/kit": "^3.12.2",
39
+ "@nuxt/ui": "2.17.0",
40
40
  "@pinia/nuxt": "^0.5.1",
41
- "@vee-validate/nuxt": "^4.13.0",
42
- "@vee-validate/zod": "^4.13.0",
41
+ "@vee-validate/nuxt": "^4.13.1",
42
+ "@vee-validate/zod": "^4.13.1",
43
43
  "@vuepic/vue-datepicker": "^8.2.0",
44
44
  "@vueup/vue-quill": "^1.2.0",
45
45
  "@wdns/vue-code-block": "^2.3.2",
@@ -57,10 +57,10 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@finema/eslint-config": "^1.2.0",
60
- "@nuxt/devtools": "^1.3.3",
61
- "@nuxt/eslint-config": "^0.2.0",
62
- "@nuxt/module-builder": "^0.7.0",
63
- "@nuxt/schema": "^3.11.2",
60
+ "@nuxt/devtools": "^1.3.6",
61
+ "@nuxt/eslint-config": "^0.3.13",
62
+ "@nuxt/module-builder": "^0.8.0",
63
+ "@nuxt/schema": "^3.12.2",
64
64
  "@nuxt/test-utils": "^3.13.1",
65
65
  "@release-it/conventional-changelog": "^8.0.1",
66
66
  "@types/node": "^20.10.17",
@@ -71,7 +71,7 @@
71
71
  "happy-dom": "^13.0.0",
72
72
  "husky": "^9.0.11",
73
73
  "lint-staged": "^15.2.0",
74
- "nuxt": "^3.11.2",
74
+ "nuxt": "^3.12.2",
75
75
  "playwright-core": "^1.42.1",
76
76
  "prettier": "^3.1.1",
77
77
  "release-it": "^17.0.1",
@@ -80,10 +80,7 @@
80
80
  "stylelint-config-prettier-scss": "^1.0.0",
81
81
  "stylelint-config-standard-scss": "^13.0.0",
82
82
  "vitest": "^1.3.1",
83
- "vue": "^3.4.27"
84
- },
85
- "resolutions": {
86
- "@nuxtjs/tailwindcss": "6.11.4"
83
+ "vue": "^3.4.30"
87
84
  },
88
85
  "lint-staged": {
89
86
  "*.{ts,vue,tsx,js}": "eslint --fix --cache",