podo-ui 0.3.8 → 0.3.10
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/next.d.ts +16 -0
- package/dist/next.d.ts.map +1 -0
- package/dist/next.js +17 -0
- package/dist/react/atom/editor-view.d.ts +7 -0
- package/dist/react/atom/editor-view.d.ts.map +1 -0
- package/dist/react/atom/editor-view.js +6 -0
- package/dist/react/atom/editor-view.module.scss +3 -3
- package/dist/react/atom/editor.d.ts +15 -0
- package/dist/react/atom/editor.d.ts.map +1 -0
- package/dist/react/atom/editor.js +2224 -0
- package/dist/react/atom/editor.module.scss +5 -5
- package/dist/react/atom/input.d.ts +12 -0
- package/dist/react/atom/input.d.ts.map +1 -0
- package/dist/react/atom/input.js +29 -0
- package/dist/react/atom/textarea.d.ts +9 -0
- package/dist/react/atom/textarea.d.ts.map +1 -0
- package/dist/react/atom/textarea.js +26 -0
- package/dist/react/molecule/field.d.ts +16 -0
- package/dist/react/molecule/field.d.ts.map +1 -0
- package/dist/react/molecule/field.js +35 -0
- package/dist/react/molecule/pagination.d.ts +9 -0
- package/dist/react/molecule/pagination.d.ts.map +1 -0
- package/dist/react/molecule/pagination.js +28 -0
- package/dist/react/molecule/toast-provider.d.ts +22 -0
- package/dist/react/molecule/toast-provider.d.ts.map +1 -0
- package/dist/react/molecule/toast-provider.js +64 -0
- package/dist/react/molecule/toast.d.ts +16 -0
- package/dist/react/molecule/toast.d.ts.map +1 -0
- package/dist/react/molecule/toast.js +58 -0
- package/dist/react.d.ts +16 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +15 -0
- package/package.json +4 -3
package/dist/next.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Input from './react/atom/input';
|
|
2
|
+
import Textarea from './react/atom/textarea';
|
|
3
|
+
import EditorView from './react/atom/editor-view';
|
|
4
|
+
import Pagination from './react/molecule/pagination';
|
|
5
|
+
import Field from './react/molecule/field';
|
|
6
|
+
declare const Editor: import("react").ComponentType<import("./react/atom/editor").EditorProps>;
|
|
7
|
+
declare const Form: {
|
|
8
|
+
Input: import("react").FC<import("./react/atom/input").InputWrapperProps>;
|
|
9
|
+
Textarea: import("react").FC<import("./react/atom/textarea").TextareaWrapperProps>;
|
|
10
|
+
Editor: import("react").ComponentType<import("./react/atom/editor").EditorProps>;
|
|
11
|
+
EditorView: ({ value, className }: import("./react/atom/editor-view").EditorViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
Field: ({ label, labelClass, required, helper, helperClass, children, validator, value, setClassName, className, }: import("./react/molecule/field").FieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export default Form;
|
|
15
|
+
export { Input, Textarea, Editor, EditorView, Pagination, Field };
|
|
16
|
+
//# sourceMappingURL=next.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../next.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,QAAA,MAAM,MAAM,0EAA+D,CAAC;AAE5E,QAAA,MAAM,IAAI;;;;;;CAMT,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/next.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import dynamic from 'next/dynamic';
|
|
3
|
+
import Input from './react/atom/input';
|
|
4
|
+
import Textarea from './react/atom/textarea';
|
|
5
|
+
import EditorView from './react/atom/editor-view';
|
|
6
|
+
import Pagination from './react/molecule/pagination';
|
|
7
|
+
import Field from './react/molecule/field';
|
|
8
|
+
const Editor = dynamic(() => import('./react/atom/editor'), { ssr: false });
|
|
9
|
+
const Form = {
|
|
10
|
+
Input,
|
|
11
|
+
Textarea,
|
|
12
|
+
Editor,
|
|
13
|
+
EditorView,
|
|
14
|
+
Field,
|
|
15
|
+
};
|
|
16
|
+
export default Form;
|
|
17
|
+
export { Input, Textarea, Editor, EditorView, Pagination, Field };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-view.d.ts","sourceRoot":"","sources":["../../../react/atom/editor-view.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,yBAA0B,eAAe,4CAOxD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from './editor-view.module.scss';
|
|
3
|
+
const EditorView = ({ value, className }) => {
|
|
4
|
+
return (_jsx("div", { className: `${styles.editorView} ${className || ''}`, dangerouslySetInnerHTML: { __html: value } }));
|
|
5
|
+
};
|
|
6
|
+
export default EditorView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '
|
|
3
|
-
@use '
|
|
1
|
+
@use '../../../scss/color/function.scss' as *;
|
|
2
|
+
@use '../../../scss/typo/mixin.scss' as typo;
|
|
3
|
+
@use '../../../scss/layout/radius.scss' as *;
|
|
4
4
|
|
|
5
5
|
.editorView {
|
|
6
6
|
color: color(text-body);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export interface EditorProps {
|
|
3
|
+
value: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string | 'contents';
|
|
6
|
+
minHeight?: string;
|
|
7
|
+
maxHeight?: string;
|
|
8
|
+
resizable?: boolean;
|
|
9
|
+
onChange: (content: string) => void;
|
|
10
|
+
validator?: z.ZodType<unknown>;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const Editor: ({ value, width, height, minHeight, maxHeight, resizable, onChange, validator, placeholder, }: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default Editor;
|
|
15
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../react/atom/editor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,MAAM,iGAUT,WAAW,4CAovGb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|