@zydon/common-csr 1.1.2 → 1.1.4
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/README.md +4 -0
- package/dist/components/Editor/EditorToolbar.d.ts +9 -0
- package/dist/components/Editor/EditorToolbar.d.ts.map +1 -0
- package/dist/components/Editor/index.d.ts +5 -0
- package/dist/components/Editor/index.d.ts.map +1 -0
- package/dist/components/Editor/styles.d.ts +6 -0
- package/dist/components/Editor/styles.d.ts.map +1 -0
- package/dist/components/EditorField/index.d.ts +5 -0
- package/dist/components/EditorField/index.d.ts.map +1 -0
- package/dist/components/EditorField/props.d.ts +4 -0
- package/dist/components/EditorField/props.d.ts.map +1 -0
- package/dist/components/SQLEditor/index.d.ts +5 -0
- package/dist/components/SQLEditor/index.d.ts.map +1 -0
- package/dist/components/SQLEditor/props.d.ts +9 -0
- package/dist/components/SQLEditor/props.d.ts.map +1 -0
- package/dist/components/SQLEditor/styles.d.ts +8 -0
- package/dist/components/SQLEditor/styles.d.ts.map +1 -0
- package/dist/components/SQLEditorEditorField/index.d.ts +5 -0
- package/dist/components/SQLEditorEditorField/index.d.ts.map +1 -0
- package/dist/components/SQLEditorEditorField/props.d.ts +4 -0
- package/dist/components/SQLEditorEditorField/props.d.ts.map +1 -0
- package/dist/components/index.d.ts +8 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +78098 -3925
- package/dist/index.umd.cjs +88 -29
- package/dist/style.css +6 -1
- package/dist/types/baseField.d.ts +7 -0
- package/dist/types/baseField.d.ts.map +1 -0
- package/dist/types/editor.d.ts +12 -0
- package/dist/types/editor.d.ts.map +1 -0
- package/dist/utils/highlight.d.ts +6 -0
- package/dist/utils/highlight.d.ts.map +1 -0
- package/package.json +18 -6
package/README.md
CHANGED
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
- **NavSectionHorizontal:** itens para navegação na horizontal
|
|
18
18
|
- **NavSectionMini:** itens para navegação, versão mini
|
|
19
19
|
- **NavSectionVertical:** itens para navegação na vertical
|
|
20
|
+
- **Editor:** editor `rich text` construido em cima do [react-quill](https://www.npmjs.com/package/react-quill)
|
|
21
|
+
- **EditorField:** editor `rich text` construido em cima do [react-quill](https://www.npmjs.com/package/react-quill)
|
|
22
|
+
- **SQLEditor:** editor `sql` construido em cima do [react-quill](https://www.npmjs.com/package/react-quill)
|
|
23
|
+
- **SQLEditorEditorField:** editor `sql` construido em cima do [react-quill](https://www.npmjs.com/package/react-quill) e que funciona como campo de formulário [react-hook-form](https://www.npmjs.com/package/react-hook-form)
|
|
20
24
|
|
|
21
25
|
### Hooks
|
|
22
26
|
- **useActiveLink:** hook que mostra se a rota passada está ativa ou não
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const formats: string[];
|
|
3
|
+
type EditorToolbarProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
isSimple?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const EditorToolbar: React.FC<EditorToolbarProps>;
|
|
8
|
+
export default EditorToolbar;
|
|
9
|
+
//# sourceMappingURL=EditorToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/EditorToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,eAAO,MAAM,OAAO,UAwBnB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4E/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AACzB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsDjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledEditor: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledEditorToolbar: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,YAAY;;+JAwBtB,CAAC;AAEJ,eAAO,MAAM,mBAAmB,6NA+H9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EditorField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+B3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/EditorField/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SQLEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA2BvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
import { ReactCodeMirrorProps } from '@uiw/react-codemirror';
|
|
4
|
+
export interface SQLEditorProps extends ReactCodeMirrorProps {
|
|
5
|
+
error?: boolean;
|
|
6
|
+
helperText?: ReactNode;
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/SQLEditor/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,MAAM,WAAW,cAAe,SAAQ,oBAAoB;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ContainerProps {
|
|
3
|
+
error?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ContainerProps, {}, {}>;
|
|
8
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/SQLEditor/styles.ts"],"names":[],"mappings":";AAEA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,SAAS;;sNA8BnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SQLEditorEditorField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA2B7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/SQLEditorEditorField/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -2,6 +2,13 @@ export { NavSectionHorizontal, NavSectionMini, NavSectionVertical, NavSectionVer
|
|
|
2
2
|
export type { INavItem, NavItemProps, NavListProps, NavSectionProps, NavSectionWithButtonProps, } from './nav-section';
|
|
3
3
|
export { default as Image } from './Image';
|
|
4
4
|
export type { ImageProps } from './Image/props';
|
|
5
|
-
export type { IconifyProps } from './Iconify/props';
|
|
6
5
|
export { default as Iconify } from './Iconify';
|
|
6
|
+
export type { IconifyProps } from './Iconify/props';
|
|
7
|
+
export { default as Editor } from './Editor';
|
|
8
|
+
export { default as EditorField } from './EditorField';
|
|
9
|
+
export type { EditorFieldProps } from './EditorField/props';
|
|
10
|
+
export { default as SQLEditor } from './SQLEditor';
|
|
11
|
+
export type { SQLEditorProps } from './SQLEditor/props';
|
|
12
|
+
export { default as SQLEditorEditorField } from './SQLEditorEditorField';
|
|
13
|
+
export type { SQLEditorEditorFieldProps } from './SQLEditorEditorField/props';
|
|
7
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,OAAO,iCAAiC,CAAC"}
|