@finema/core 2.14.1 → 2.15.1

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 (43) hide show
  1. package/README.md +79 -79
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/components/DevToolsWindow/index.vue +95 -95
  5. package/dist/runtime/components/FlexDeck/Base.vue +67 -67
  6. package/dist/runtime/components/FlexDeck/index.vue +33 -33
  7. package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
  8. package/dist/runtime/components/Form/Fields.vue +23 -15
  9. package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
  10. package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
  11. package/dist/runtime/components/Form/InputRadio/index.vue +56 -0
  12. package/dist/runtime/components/Form/InputRadio/index.vue.d.ts +11 -0
  13. package/dist/runtime/components/Form/InputRadio/types.d.ts +19 -0
  14. package/dist/runtime/components/Form/InputRadio/types.js +0 -0
  15. package/dist/runtime/components/Form/InputSelectMultiple/index.vue +43 -43
  16. package/dist/runtime/components/Form/InputText/index.vue +48 -48
  17. package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
  18. package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
  19. package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.vue +38 -0
  20. package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.vue.d.ts +11 -0
  21. package/dist/runtime/components/Form/InputWYSIWYG/index.vue +281 -0
  22. package/dist/runtime/components/Form/InputWYSIWYG/index.vue.d.ts +6 -0
  23. package/dist/runtime/components/Form/InputWYSIWYG/types.d.ts +52 -0
  24. package/dist/runtime/components/Form/InputWYSIWYG/types.js +0 -0
  25. package/dist/runtime/components/Form/index.vue +5 -5
  26. package/dist/runtime/components/Form/types.d.ts +3 -1
  27. package/dist/runtime/components/Image.vue +28 -28
  28. package/dist/runtime/components/Log/index.vue +17 -17
  29. package/dist/runtime/components/Table/ColumnDate.vue +1 -1
  30. package/dist/runtime/components/Table/ColumnDateTime.vue +1 -1
  31. package/dist/runtime/components/Table/ColumnImage.vue +4 -4
  32. package/dist/runtime/components/Table/ColumnNumber.vue +1 -1
  33. package/dist/runtime/components/Table/ColumnText.vue +1 -1
  34. package/dist/runtime/server/tsconfig.json +3 -3
  35. package/dist/runtime/styles/main.css +1 -1
  36. package/dist/runtime/theme/index.d.ts +2 -0
  37. package/dist/runtime/theme/index.js +2 -0
  38. package/dist/runtime/theme/radioGroup.d.ts +6 -0
  39. package/dist/runtime/theme/radioGroup.js +6 -0
  40. package/dist/runtime/theme/uploadFileDropzone.js +4 -4
  41. package/dist/runtime/theme/wysiwyg.d.ts +53 -0
  42. package/dist/runtime/theme/wysiwyg.js +53 -0
  43. package/package.json +4 -3
@@ -0,0 +1,53 @@
1
+ export const wysiwygTheme = {
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",
7
+ menuItemActive: "bg-primary-100 text-primary-600",
8
+ icon: "size-5",
9
+ editorContent: ""
10
+ },
11
+ variants: {
12
+ size: {
13
+ xs: {
14
+ button: "px-1.5 py-0.5 text-xs",
15
+ icon: "h-3 w-3",
16
+ select: "px-1.5 py-0.5 text-xs"
17
+ },
18
+ sm: {
19
+ button: "px-2 py-1 text-sm",
20
+ icon: "h-3.5 w-3.5",
21
+ select: "px-2 py-1 text-xs"
22
+ },
23
+ md: {
24
+ button: "px-2 py-1 text-sm",
25
+ icon: "h-4 w-4",
26
+ select: "px-2 py-1 text-xs"
27
+ },
28
+ lg: {
29
+ button: "px-3 py-1.5 text-base",
30
+ icon: "h-5 w-5",
31
+ select: "px-3 py-1.5 text-sm"
32
+ },
33
+ xl: {
34
+ button: "px-4 py-2 text-lg",
35
+ icon: "h-6 w-6",
36
+ select: "px-4 py-2 text-base"
37
+ }
38
+ },
39
+ color: {
40
+ primary: {
41
+ button: "hover:bg-blue-50 hover:border-blue-300"
42
+ },
43
+ gray: {
44
+ button: "hover:bg-gray-100 hover:border-gray-300"
45
+ }
46
+ }
47
+ },
48
+ compoundVariants: [],
49
+ defaultVariants: {
50
+ size: "md",
51
+ color: "gray"
52
+ }
53
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.14.1",
3
+ "version": "2.15.1",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",
@@ -28,7 +28,7 @@
28
28
  "dev": "nuxi dev playground -o",
29
29
  "dev:build": "nuxi build playground",
30
30
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
31
- "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
31
+ "release": "npm run prepack && changelogen --release && npm publish && git push --follow-tags",
32
32
  "lint": "eslint .",
33
33
  "lint:fix": "eslint --fix .",
34
34
  "test": "vitest run",
@@ -67,13 +67,14 @@
67
67
  "url-join": "^5.0.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@hyoban/eslint-plugin-tailwindcss": "^4.0.0-alpha.12",
71
70
  "@eslint/js": "^9.26.0",
71
+ "@hyoban/eslint-plugin-tailwindcss": "^4.0.0-alpha.12",
72
72
  "@nuxt/devtools": "^2.4.1",
73
73
  "@nuxt/eslint-config": "^1.3.1",
74
74
  "@nuxt/module-builder": "^1.0.1",
75
75
  "@nuxt/schema": "^3.17.3",
76
76
  "@nuxt/test-utils": "^3.19.0",
77
+ "@tailwindcss/typography": "^0.5.0-alpha.3",
77
78
  "@types/node": "latest",
78
79
  "changelogen": "^0.5.7",
79
80
  "eslint": "^9.26.0",