@finema/core 2.50.0 → 2.52.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": "2.50.0",
3
+ "version": "2.52.0",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
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 = "2.50.0";
7
+ const version = "2.52.0";
8
8
 
9
9
  const nuxtAppOptions = {
10
10
  head: {
@@ -1,7 +1,7 @@
1
1
  import { type ISimpleTableOptions, type ITableOptions } from '#core/components/Table/types';
2
2
  import { tableTheme } from '#core/theme/table';
3
3
  type __VLS_Props = {
4
- options: ITableOptions<any> | ISimpleTableOptions<any>;
4
+ options: ITableOptions<any> & ISimpleTableOptions<any>;
5
5
  ui?: typeof tableTheme['slots'];
6
6
  };
7
7
  declare var __VLS_22: {}, __VLS_29: {}, __VLS_31: {}, __VLS_45: string | number, __VLS_46: any;
@@ -3,7 +3,7 @@ import { tableTheme } from '../../theme/table.js';
3
3
  type __VLS_Props = {
4
4
  page: number;
5
5
  pageLimit: number;
6
- options: ITableOptions<any> | ISimpleTableOptions<any>;
6
+ options: ITableOptions<any> & ISimpleTableOptions<any>;
7
7
  ui?: typeof tableTheme['slots'];
8
8
  };
9
9
  declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -1,11 +1,13 @@
1
1
  import type { ISimpleTableOptions } from '#core/components/Table/types';
2
+ import type { tableTheme } from '../../theme/table.js';
3
+ import type { TableSlots } from '@nuxt/ui';
2
4
  type __VLS_Props = {
3
5
  options: ISimpleTableOptions<any>;
4
- ui?: any;
6
+ ui?: typeof tableTheme['slots'];
5
7
  };
6
- type __VLS_Slots = {
7
- 'empty-state': () => any;
8
- 'loading-state': () => any;
8
+ type __VLS_Slots = Slot;
9
+ type Slot = TableSlots<any> & {
10
+ error: (props?: Record<string, any>) => any;
9
11
  };
10
12
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
13
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1,6 +1,7 @@
1
1
  export declare const inputTheme: {
2
2
  slots: {
3
3
  root: string;
4
+ base: string[];
4
5
  suggestionsContainer: string;
5
6
  suggestionItem: string;
6
7
  suggestionItemActive: string;
@@ -1,7 +1,8 @@
1
1
  export const inputTheme = {
2
2
  slots: {
3
3
  root: "w-full",
4
- suggestionsContainer: "w-full bg-white max-h-60 overflow-y-auto rounded-md",
4
+ base: ["rounded-lg"],
5
+ suggestionsContainer: "w-full bg-white max-h-60 overflow-y-auto rounded-lg",
5
6
  suggestionItem: "px-3 py-3 text-sm cursor-pointer hover:bg-(--ui-color-primary-100) truncate",
6
7
  suggestionItemActive: "bg-(--ui-color-primary-100)"
7
8
  },
@@ -1,6 +1,7 @@
1
1
  export declare const inputNumberTheme: {
2
2
  slots: {
3
3
  root: string;
4
+ base: string[];
4
5
  };
5
6
  variants: {
6
7
  size: {
@@ -1,6 +1,7 @@
1
1
  export const inputNumberTheme = {
2
2
  slots: {
3
- root: "w-full"
3
+ root: "w-full",
4
+ base: ["rounded-lg"]
4
5
  },
5
6
  variants: {
6
7
  size: {
@@ -1,4 +1,7 @@
1
1
  export declare const inputTagsTheme: {
2
+ slots: {
3
+ base: string[];
4
+ };
2
5
  variants: {
3
6
  size: {
4
7
  xl: {
@@ -1,4 +1,7 @@
1
1
  export const inputTagsTheme = {
2
+ slots: {
3
+ base: ["rounded-lg"]
4
+ },
2
5
  variants: {
3
6
  size: {
4
7
  xl: {
@@ -1,6 +1,6 @@
1
1
  export declare const selectMenuTheme: {
2
2
  slots: {
3
- base: string;
3
+ base: string[];
4
4
  trailingIcon: string;
5
5
  selectedWrapper: string;
6
6
  selectedLabel: string;
@@ -1,6 +1,6 @@
1
1
  export const selectMenuTheme = {
2
2
  slots: {
3
- base: "cursor-pointer w-full",
3
+ base: ["cursor-pointer w-full rounded-lg"],
4
4
  trailingIcon: "group-data-[state=open]:rotate-180 transition-transform duration-200",
5
5
  selectedWrapper: "flex w-full items-center justify-between",
6
6
  selectedLabel: "truncate",
@@ -1,6 +1,7 @@
1
1
  export declare const textareaTheme: {
2
2
  slots: {
3
3
  root: string;
4
+ base: string[];
4
5
  };
5
6
  variants: {
6
7
  size: {
@@ -1,6 +1,7 @@
1
1
  export const textareaTheme = {
2
2
  slots: {
3
- root: "w-full"
3
+ root: "w-full",
4
+ base: ["rounded-lg"]
4
5
  },
5
6
  variants: {
6
7
  size: {
@@ -11,7 +11,7 @@ export const uploadFileDropzoneTheme = {
11
11
  actionRetryIcon: "stash:arrow-retry"
12
12
  },
13
13
  slots: {
14
- base: "relative w-full text-base p-4 transition rounded-md flex items-center justify-center ring-1 bg-white ring-gray-300",
14
+ base: "relative w-full text-base p-4 transition rounded-lg flex items-center justify-center ring-1 bg-white ring-accented",
15
15
  wrapper: "flex flex-col items-center w-full",
16
16
  disabled: "bg-gray-100 border-none grayscale cursor-not-allowed",
17
17
  failed: "border-error",
@@ -26,14 +26,14 @@ export const uploadFileDropzoneTheme = {
26
26
  onLoadingTextWrapper: "flex-1 min-w-0 flex items-center justify-between",
27
27
  onLoadingLoadingIconClass: "size-10 text-primary animate-spin",
28
28
  // Preview state
29
- onPreviewWrapper: "flex items-center space-x-4 rounded-md w-full",
30
- onPreviewImgWrapper: "flex-shrink-0 w-16 h-16 flex justify-center items-center rounded-md overflow-hidden bg-gray-100",
29
+ onPreviewWrapper: "flex items-center space-x-4 rounded-lg w-full",
30
+ onPreviewImgWrapper: "flex-shrink-0 w-16 h-16 flex justify-center items-center rounded-lg overflow-hidden bg-gray-100",
31
31
  onPreviewImgClass: "w-full h-full object-cover",
32
- onPreviewFileWrapper: "flex-shrink-0 w-16 h-16 flex justify-center items-center rounded-md overflow-hidden",
32
+ onPreviewFileWrapper: "flex-shrink-0 w-16 h-16 flex justify-center items-center rounded-lg overflow-hidden",
33
33
  onPreviewFileClass: "size-8 text-gray-400 m-auto",
34
34
  onPreviewTextWrapper: "flex-1 min-w-0 flex items-center justify-between",
35
35
  // Failed state
36
- onFailedWrapper: "flex items-start space-x-4 w-full rounded-md",
36
+ onFailedWrapper: "flex items-start space-x-4 w-full rounded-lg",
37
37
  onFailedFailedImgWrapper: "flex-shrink-0",
38
38
  onFailedFailedIconClass: "size-12",
39
39
  onFailedTextWrapper: "flex-1 min-w-0 flex items-start justify-between",
@@ -1,9 +1,9 @@
1
1
  export const wysiwygTheme = {
2
2
  slots: {
3
- container: "border border-gray-200 rounded focus:ring-primary-500 relative block w-full resize-none rounded-md border-0 bg-white p-0 pb-3 text-sm text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-75",
4
- toolbar: "flex flex-wrap border py-2 px-2 gap-1 border-gray-300 bg-white rounded-t-md",
5
- toolbarGroup: "flex items-center border-r border-gray-200 pr-2",
6
- menuItem: "px-1 py-1 rounded-md hover:bg-gray-100 transition-colors flex justify-center items-center cursor-pointer flex-wrap",
3
+ container: "border border-neutral-300 focus:ring-primary-500 relative block w-full resize-none rounded-lg border-0 bg-white p-0 pb-3 text-sm text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-75",
4
+ toolbar: "flex flex-wrap border py-2 px-2 gap-1 border-gray-300 bg-white rounded-t-lg",
5
+ toolbarGroup: "flex items-center border-r border-neutral-300 pr-2",
6
+ menuItem: "px-1 py-1 rounded-lg hover:bg-gray-100 transition-colors flex justify-center items-center cursor-pointer flex-wrap",
7
7
  menuItemActive: "bg-primary-100 text-primary-600",
8
8
  icon: "size-5",
9
9
  editorContent: ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.50.0",
3
+ "version": "2.52.0",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",