@fastkit/vui 0.7.59 → 0.7.65

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 (36) hide show
  1. package/dist/tool/index.js +1 -0
  2. package/dist/tool/vite-plugin.d.ts.map +1 -1
  3. package/dist/vui.cjs.js +616 -39
  4. package/dist/vui.cjs.prod.js +616 -39
  5. package/dist/vui.css +219 -0
  6. package/dist/vui.d.ts +141 -4
  7. package/dist/vui.min.css +1 -1
  8. package/dist/vui.min.css.map +1 -1
  9. package/dist/vui.mjs +606 -39
  10. package/package.json +7 -6
  11. package/src/components/VButton/VButtonGroup.scss +4 -0
  12. package/src/components/VButton/VButtonGroup.tsx +12 -1
  13. package/src/components/VWysiwygEditor/.DS_Store +0 -0
  14. package/src/components/VWysiwygEditor/VWysiwygEditor.scss +4 -0
  15. package/src/components/VWysiwygEditor/VWysiwygEditor.tsx +65 -22
  16. package/src/components/VWysiwygEditor/extensions/.DS_Store +0 -0
  17. package/src/components/VWysiwygEditor/extensions/color.ts +72 -0
  18. package/src/components/VWysiwygEditor/extensions/index.ts +2 -0
  19. package/src/components/VWysiwygEditor/extensions/linter/.DS_Store +0 -0
  20. package/src/components/VWysiwygEditor/extensions/linter/Linter.scss +140 -0
  21. package/src/components/VWysiwygEditor/extensions/linter/Linter.tsx +214 -0
  22. package/src/components/VWysiwygEditor/extensions/linter/LinterPlugin.ts +65 -0
  23. package/src/components/VWysiwygEditor/extensions/linter/index.ts +5 -0
  24. package/src/components/VWysiwygEditor/extensions/linter/plugins/BadWords.tsx +50 -0
  25. package/src/components/VWysiwygEditor/extensions/linter/plugins/HeadingLevel.ts +39 -0
  26. package/src/components/VWysiwygEditor/extensions/linter/plugins/Punctuation.ts +49 -0
  27. package/src/components/VWysiwygEditor/extensions/linter/plugins/index.ts +3 -0
  28. package/src/components/VWysiwygEditor/extensions/linter/utils.ts +28 -0
  29. package/src/components/VWysiwygEditor/index.ts +1 -0
  30. package/src/components/VWysiwygEditor/schemes.ts +190 -4
  31. package/src/components/VWysiwygEditor/tools/color.scss +140 -0
  32. package/src/components/VWysiwygEditor/tools/color.tsx +90 -0
  33. package/src/components/VWysiwygEditor/tools/index.ts +1 -1
  34. package/src/service.tsx +5 -0
  35. package/src/tool/vite-plugin.ts +1 -0
  36. package/src/components/VWysiwygEditor/tools/text-color.ts +0 -14
package/src/service.tsx CHANGED
@@ -40,6 +40,7 @@ export interface VuiServiceUISettings {
40
40
  primaryScope: ScopeName;
41
41
  plainVariant: ColorVariant;
42
42
  containedVariant: ColorVariant;
43
+ warningScope: ScopeName;
43
44
  errorScope: ScopeName;
44
45
  buttonDefault: {
45
46
  color: ScopeName;
@@ -258,6 +259,10 @@ export class VuiService {
258
259
  return this.stack.snackbar(...args);
259
260
  }
260
261
 
262
+ menu(...args: Parameters<VueStackService['menu']>) {
263
+ return this.stack.menu(...args);
264
+ }
265
+
261
266
  formPrompt<T extends { [key: string]: any } = { [key: string]: any }>(
262
267
  settings: VuiFormPromptSettings<T>,
263
268
  slot: (
@@ -143,6 +143,7 @@ export function viteVuiPlugin(
143
143
  primaryScope: 'primary' as any,
144
144
  plainVariant: 'plain' as any,
145
145
  containedVariant: 'contained' as any,
146
+ warningScope: 'warning' as any,
146
147
  errorScope: 'error' as any,
147
148
  buttonDefault: {
148
149
  color: 'base' as any,
@@ -1,14 +0,0 @@
1
- import { WysiwygEditorToolFactory, WysiwygEditorTool } from '../schemes';
2
-
3
- export const WysiwygTextColorTool: WysiwygEditorToolFactory = (vui) => {
4
- const tool: WysiwygEditorTool = {
5
- key: 'textColor',
6
- icon: vui.icon('editorTextColor'),
7
- // icon: (gen) => vui.icon('editorTextColor'),
8
- onClick: (ctx) => {
9
- ctx.vui.alert('ok');
10
- },
11
- floating: true,
12
- };
13
- return tool;
14
- };