@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.
- package/dist/tool/index.js +1 -0
- package/dist/tool/vite-plugin.d.ts.map +1 -1
- package/dist/vui.cjs.js +616 -39
- package/dist/vui.cjs.prod.js +616 -39
- package/dist/vui.css +219 -0
- package/dist/vui.d.ts +141 -4
- package/dist/vui.min.css +1 -1
- package/dist/vui.min.css.map +1 -1
- package/dist/vui.mjs +606 -39
- package/package.json +7 -6
- package/src/components/VButton/VButtonGroup.scss +4 -0
- package/src/components/VButton/VButtonGroup.tsx +12 -1
- package/src/components/VWysiwygEditor/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/VWysiwygEditor.scss +4 -0
- package/src/components/VWysiwygEditor/VWysiwygEditor.tsx +65 -22
- package/src/components/VWysiwygEditor/extensions/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/extensions/color.ts +72 -0
- package/src/components/VWysiwygEditor/extensions/index.ts +2 -0
- package/src/components/VWysiwygEditor/extensions/linter/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/extensions/linter/Linter.scss +140 -0
- package/src/components/VWysiwygEditor/extensions/linter/Linter.tsx +214 -0
- package/src/components/VWysiwygEditor/extensions/linter/LinterPlugin.ts +65 -0
- package/src/components/VWysiwygEditor/extensions/linter/index.ts +5 -0
- package/src/components/VWysiwygEditor/extensions/linter/plugins/BadWords.tsx +50 -0
- package/src/components/VWysiwygEditor/extensions/linter/plugins/HeadingLevel.ts +39 -0
- package/src/components/VWysiwygEditor/extensions/linter/plugins/Punctuation.ts +49 -0
- package/src/components/VWysiwygEditor/extensions/linter/plugins/index.ts +3 -0
- package/src/components/VWysiwygEditor/extensions/linter/utils.ts +28 -0
- package/src/components/VWysiwygEditor/index.ts +1 -0
- package/src/components/VWysiwygEditor/schemes.ts +190 -4
- package/src/components/VWysiwygEditor/tools/color.scss +140 -0
- package/src/components/VWysiwygEditor/tools/color.tsx +90 -0
- package/src/components/VWysiwygEditor/tools/index.ts +1 -1
- package/src/service.tsx +5 -0
- package/src/tool/vite-plugin.ts +1 -0
- 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: (
|
package/src/tool/vite-plugin.ts
CHANGED
|
@@ -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
|
-
};
|