@bbl-digital/snorre 4.1.28 → 4.1.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +347 -500
- package/esm/core/Editor/config.js +19 -7
- package/esm/core/Editor/index.js +173 -113
- package/esm/core/Editor/styles.js +60 -43
- package/esm/core/Html/index.js +1 -1
- package/esm/index.js +1 -2
- package/lib/core/Autocomplete/styles.d.ts +5 -5
- package/lib/core/Autocomplete/styles.d.ts.map +1 -1
- package/lib/core/Box/styles.d.ts +5 -5
- package/lib/core/Box/styles.d.ts.map +1 -1
- package/lib/core/Button/index.d.ts.map +1 -1
- package/lib/core/CollapseList/styles.d.ts +5 -5
- package/lib/core/CollapseList/styles.d.ts.map +1 -1
- package/lib/core/Editor/config.d.ts +0 -5
- package/lib/core/Editor/config.d.ts.map +1 -1
- package/lib/core/Editor/config.js +19 -7
- package/lib/core/Editor/index.d.ts +0 -43
- package/lib/core/Editor/index.d.ts.map +1 -1
- package/lib/core/Editor/index.js +173 -113
- package/lib/core/Editor/styles.d.ts +0 -13
- package/lib/core/Editor/styles.d.ts.map +1 -1
- package/lib/core/Editor/styles.js +60 -43
- package/lib/core/FileInput/styles.d.ts +5 -5
- package/lib/core/FileInput/styles.d.ts.map +1 -1
- package/lib/core/Html/index.d.ts +1 -1
- package/lib/core/Html/index.d.ts.map +1 -1
- package/lib/core/Html/index.js +1 -1
- package/lib/core/InfoButton/styles.d.ts +5 -5
- package/lib/core/InfoButton/styles.d.ts.map +1 -1
- package/lib/core/Modal/index.d.ts.map +1 -1
- package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts +5 -5
- package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts.map +1 -1
- package/lib/core/QuillEditor/config.d.ts +3 -3
- package/lib/index.d.ts +1 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -2
- package/lib/layout/Footer/FooterButton/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterButton/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterLink/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterLink/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuTop/styles.d.ts +5 -5
- package/lib/layout/Menu/MenuTop/styles.d.ts.map +1 -1
- package/package.json +1 -3
@@ -1,44 +1 @@
|
|
1
|
-
/** @jsxImportSource @emotion/react */
|
2
|
-
import { FC } from 'react';
|
3
|
-
interface IProps {
|
4
|
-
/** Input text */
|
5
|
-
initialValue?: string;
|
6
|
-
/** Input text that overrides the initialValue or already existing text value, if null is sent in we reset the field */
|
7
|
-
overrideValue?: string;
|
8
|
-
/** Editor type, defaults to basic */
|
9
|
-
type?: 'basic' | 'rich' | 'custom';
|
10
|
-
/** Adds a custom toolbar if type is set to custom */
|
11
|
-
customToolbar?: string;
|
12
|
-
/** Height of textarea */
|
13
|
-
label?: string;
|
14
|
-
/** Deafult height of texteditor */
|
15
|
-
height?: number;
|
16
|
-
/** Max resize height of texteditor */
|
17
|
-
maxHeight?: number;
|
18
|
-
/** Max resize width of texteditor */
|
19
|
-
maxWidth?: number;
|
20
|
-
/** Error message */
|
21
|
-
invalidMessage?: string;
|
22
|
-
/** Allow image in editor */
|
23
|
-
allowImages?: boolean;
|
24
|
-
/** Strip all pasted styles */
|
25
|
-
pasteAsText?: boolean;
|
26
|
-
/** Set resize, defaults to true (vertical) */
|
27
|
-
resize?: boolean | 'both';
|
28
|
-
/** Invalid html elements, must be comma separated, defaults to "button" */
|
29
|
-
invalidElements?: string;
|
30
|
-
/** Valid html elements, must be comma separated */
|
31
|
-
validElements?: string;
|
32
|
-
/** Disable editor */
|
33
|
-
disabled?: boolean;
|
34
|
-
/** Cb on blur */
|
35
|
-
onBlur?: (value: string) => void;
|
36
|
-
/** Cb on change */
|
37
|
-
onChange: (value: string, plainTextLength: number) => void;
|
38
|
-
}
|
39
|
-
/**
|
40
|
-
* @deprecated Use QuillEditor instead
|
41
|
-
*/
|
42
|
-
declare const Editor: FC<IProps>;
|
43
|
-
export default Editor;
|
44
1
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/index.tsx"],"names":[],"mappings":""}
|
package/lib/core/Editor/index.js
CHANGED
@@ -1,113 +1,173 @@
|
|
1
|
-
/** @jsxImportSource @emotion/react */
|
2
|
-
import { useState } from 'react'
|
3
|
-
import { Editor as TinyEditor } from '@tinymce/tinymce-react'
|
4
|
-
import { ErrorWrapper, Label, styles } from './styles'
|
5
|
-
import {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
import
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
}
|
113
|
-
|
1
|
+
// /** @jsxImportSource @emotion/react */
|
2
|
+
// import { FC, useState } from 'react'
|
3
|
+
// import { Editor as TinyEditor } from '@tinymce/tinymce-react'
|
4
|
+
// import { ErrorWrapper, Label, styles } from './styles'
|
5
|
+
// import {
|
6
|
+
// basicToolbar,
|
7
|
+
// editorBlockFormats,
|
8
|
+
// editorContentCss,
|
9
|
+
// plugins,
|
10
|
+
// richToolbar,
|
11
|
+
// } from './config'
|
12
|
+
// import Skeleton from '../Skeleton'
|
13
|
+
// import Text from '../Text'
|
14
|
+
// import IconErrorOutline from '../../icons/General/IconErrorOutline'
|
15
|
+
// import { useTheme } from '@emotion/react'
|
16
|
+
// import { useIsMobile } from '../../hooks/useIsMobile'
|
17
|
+
// import { useEffect } from 'react'
|
18
|
+
|
19
|
+
// interface IProps {
|
20
|
+
// /** Input text */
|
21
|
+
// initialValue?: string
|
22
|
+
// /** Input text that overrides the initialValue or already existing text value, if null is sent in we reset the field */
|
23
|
+
// overrideValue?: string
|
24
|
+
// /** Editor type, defaults to basic */
|
25
|
+
// type?: 'basic' | 'rich' | 'custom'
|
26
|
+
// /** Adds a custom toolbar if type is set to custom */
|
27
|
+
// customToolbar?: string
|
28
|
+
// /** Height of textarea */
|
29
|
+
// label?: string
|
30
|
+
// /** Deafult height of texteditor */
|
31
|
+
// height?: number
|
32
|
+
// /** Max resize height of texteditor */
|
33
|
+
// maxHeight?: number
|
34
|
+
// /** Max resize width of texteditor */
|
35
|
+
// maxWidth?: number
|
36
|
+
// /** Error message */
|
37
|
+
// invalidMessage?: string
|
38
|
+
// /** Allow image in editor */
|
39
|
+
// allowImages?: boolean
|
40
|
+
// /** Strip all pasted styles */
|
41
|
+
// pasteAsText?: boolean
|
42
|
+
// /** Set resize, defaults to true (vertical) */
|
43
|
+
// resize?: boolean | 'both'
|
44
|
+
// /** Invalid html elements, must be comma separated, defaults to "button" */
|
45
|
+
// invalidElements?: string
|
46
|
+
// /** Valid html elements, must be comma separated */
|
47
|
+
// validElements?: string
|
48
|
+
// /** Disable editor */
|
49
|
+
// disabled?: boolean
|
50
|
+
// /** Cb on blur */
|
51
|
+
// onBlur?: (value: string) => void
|
52
|
+
// /** Cb on change */
|
53
|
+
// onChange: (value: string, plainTextLength: number) => void
|
54
|
+
// }
|
55
|
+
|
56
|
+
// const TINYMCE_API_KEY = '1n4id0n4p67gr15sq9hvnk965wgh5ku8xjgqt30e2hnpccp3'
|
57
|
+
// /**
|
58
|
+
// * @deprecated Use QuillEditor instead
|
59
|
+
// */
|
60
|
+
// const Editor: FC<IProps> = ({
|
61
|
+
// initialValue,
|
62
|
+
// overrideValue,
|
63
|
+
// type = 'basic',
|
64
|
+
// label,
|
65
|
+
// height = 500,
|
66
|
+
// maxHeight,
|
67
|
+
// maxWidth,
|
68
|
+
// customToolbar,
|
69
|
+
// invalidMessage,
|
70
|
+
// allowImages,
|
71
|
+
// pasteAsText,
|
72
|
+
// resize = true,
|
73
|
+
// validElements,
|
74
|
+
// invalidElements = 'button',
|
75
|
+
// disabled,
|
76
|
+
// onChange,
|
77
|
+
// onBlur,
|
78
|
+
// }) => {
|
79
|
+
// const [loaded, setLoaded] = useState(false)
|
80
|
+
// const [value, setValue] = useState(initialValue || '')
|
81
|
+
// const { alert } = useTheme()
|
82
|
+
// const isMobile = useIsMobile()
|
83
|
+
|
84
|
+
// const handleChange = (html: string, editor: any) => {
|
85
|
+
// setValue(html)
|
86
|
+
// onChange(html, editor.getContent({ format: 'text' }).length)
|
87
|
+
// }
|
88
|
+
|
89
|
+
// const handleBlur = () => onBlur?.(value)
|
90
|
+
|
91
|
+
// const toolbar =
|
92
|
+
// type === 'basic'
|
93
|
+
// ? basicToolbar
|
94
|
+
// : type === 'rich'
|
95
|
+
// ? richToolbar
|
96
|
+
// : customToolbar
|
97
|
+
|
98
|
+
// useEffect(() => {
|
99
|
+
// if (overrideValue === undefined) return
|
100
|
+
|
101
|
+
// setValue(() => overrideValue)
|
102
|
+
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
103
|
+
// }, [overrideValue])
|
104
|
+
|
105
|
+
// return (
|
106
|
+
// <div css={(theme) => [styles.default(theme), !loaded && styles.hideEditor]}>
|
107
|
+
// {label && <Label>{label}</Label>}
|
108
|
+
|
109
|
+
// <div className="editor-wrapper">
|
110
|
+
// <TinyEditor
|
111
|
+
// onBlur={handleBlur}
|
112
|
+
// onInit={(_e) => setLoaded(true)}
|
113
|
+
// apiKey={TINYMCE_API_KEY}
|
114
|
+
// value={value}
|
115
|
+
// onEditorChange={handleChange}
|
116
|
+
// disabled={disabled}
|
117
|
+
// init={{
|
118
|
+
// browser_spellcheck: true,
|
119
|
+
// height,
|
120
|
+
// min_height: 100,
|
121
|
+
// max_height: maxHeight,
|
122
|
+
// min_width: 100,
|
123
|
+
// max_width: maxWidth,
|
124
|
+
// toolbar_mode: 'wrap',
|
125
|
+
// menubar: false,
|
126
|
+
// branding: false,
|
127
|
+
// elementpath: false,
|
128
|
+
// resize: resize,
|
129
|
+
// statusbar: !isMobile,
|
130
|
+
// plugins,
|
131
|
+
// toolbar,
|
132
|
+
// content_style: editorContentCss,
|
133
|
+
// language: 'nb_NO',
|
134
|
+
// block_formats: editorBlockFormats,
|
135
|
+
// paste_data_images: allowImages,
|
136
|
+
// paste_as_text:
|
137
|
+
// pasteAsText !== undefined ? pasteAsText : type === 'basic',
|
138
|
+
// contextmenu: false,
|
139
|
+
// invalid_elements: !allowImages
|
140
|
+
// ? 'img,' + invalidElements
|
141
|
+
// : invalidElements,
|
142
|
+
// valid_elements: validElements,
|
143
|
+
// default_link_target: '_blank',
|
144
|
+
// link_assume_external_targets: 'https',
|
145
|
+
// link_title: false,
|
146
|
+
// target_list: false,
|
147
|
+
// }}
|
148
|
+
// />
|
149
|
+
// </div>
|
150
|
+
|
151
|
+
// {!loaded && (
|
152
|
+
// <Skeleton
|
153
|
+
// height={`${height}px`}
|
154
|
+
// width="100%"
|
155
|
+
// borderRadius="3px"
|
156
|
+
// rectangle
|
157
|
+
// />
|
158
|
+
// )}
|
159
|
+
|
160
|
+
// {invalidMessage && (
|
161
|
+
// <ErrorWrapper>
|
162
|
+
// {invalidMessage && (
|
163
|
+
// <Text color={alert}>
|
164
|
+
// <IconErrorOutline size="16px" color={alert} /> {invalidMessage}
|
165
|
+
// </Text>
|
166
|
+
// )}
|
167
|
+
// </ErrorWrapper>
|
168
|
+
// )}
|
169
|
+
// </div>
|
170
|
+
// )
|
171
|
+
// }
|
172
|
+
|
173
|
+
// export default Editor
|
@@ -1,14 +1 @@
|
|
1
|
-
import { IAppTheme } from '../../app-shell/theme';
|
2
|
-
export declare const styles: {
|
3
|
-
default: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
4
|
-
hideEditor: import("@emotion/react").SerializedStyles;
|
5
|
-
};
|
6
|
-
export declare const Label: import("@emotion/styled").StyledComponent<{
|
7
|
-
theme?: import("@emotion/react").Theme;
|
8
|
-
as?: React.ElementType;
|
9
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
10
|
-
export declare const ErrorWrapper: import("@emotion/styled").StyledComponent<{
|
11
|
-
theme?: import("@emotion/react").Theme;
|
12
|
-
as?: React.ElementType;
|
13
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
14
1
|
//# sourceMappingURL=styles.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/styles.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/styles.ts"],"names":[],"mappings":""}
|
@@ -1,43 +1,60 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
1
|
+
// import { css } from '@emotion/react'
|
2
|
+
// import styled from '@emotion/styled'
|
3
|
+
// import { IAppTheme } from '../../app-shell/theme'
|
4
|
+
|
5
|
+
// export const styles = {
|
6
|
+
// default: (theme: IAppTheme) => css`
|
7
|
+
// display: flex;
|
8
|
+
// flex-direction: column;
|
9
|
+
// gap: 4px;
|
10
|
+
|
11
|
+
// .tox-tinymce {
|
12
|
+
// border: 1px solid ${theme.border};
|
13
|
+
// border-radius: 3px;
|
14
|
+
// }
|
15
|
+
// .tox-toolbar__group {
|
16
|
+
// border-color: ${theme.border} !important;
|
17
|
+
// }
|
18
|
+
// .tox-toolbar__primary {
|
19
|
+
// background: none !important;
|
20
|
+
// border-bottom: 1px solid ${theme.border};
|
21
|
+
// }
|
22
|
+
// .tox-statusbar {
|
23
|
+
// border-top: none !important;
|
24
|
+
// }
|
25
|
+
// .editor-wrapper {
|
26
|
+
// display: grid;
|
27
|
+
|
28
|
+
// .tox-toolbar--scrolling,
|
29
|
+
// .tox-edit-area {
|
30
|
+
// &::-webkit-scrollbar {
|
31
|
+
// width: 2px;
|
32
|
+
// height: 2px;
|
33
|
+
// }
|
34
|
+
// }
|
35
|
+
// }
|
36
|
+
// `,
|
37
|
+
// hideEditor: css`
|
38
|
+
// .editor-wrapper {
|
39
|
+
// display: none;
|
40
|
+
// }
|
41
|
+
// `,
|
42
|
+
// }
|
43
|
+
|
44
|
+
// export const Label = styled.span`
|
45
|
+
// line-height: 22px;
|
46
|
+
// font-size: 1em;
|
47
|
+
// font-weight: 600;
|
48
|
+
// margin-bottom: 4px;
|
49
|
+
// `
|
50
|
+
|
51
|
+
// export const ErrorWrapper = styled.div`
|
52
|
+
// display: grid;
|
53
|
+
|
54
|
+
// & > span {
|
55
|
+
// display: flex;
|
56
|
+
// align-items: center;
|
57
|
+
// gap: 6px;
|
58
|
+
// margin-left: 2px;
|
59
|
+
// }
|
60
|
+
// `
|
@@ -19,14 +19,14 @@ export declare const Document: import("@emotion/styled").StyledComponent<{
|
|
19
19
|
as?: React.ElementType;
|
20
20
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
21
21
|
export declare const Delete: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
22
|
-
afterIcon?:
|
23
|
-
beforeIcon?:
|
24
|
-
children: NonNullable<
|
22
|
+
afterIcon?: React.ReactNode;
|
23
|
+
beforeIcon?: React.ReactNode;
|
24
|
+
children: NonNullable<React.ReactNode>;
|
25
25
|
disabled?: boolean;
|
26
26
|
href?: string;
|
27
27
|
loading?: boolean;
|
28
|
-
onClick?: (event:
|
29
|
-
onMouseUp?: (event:
|
28
|
+
onClick?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
29
|
+
onMouseUp?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
30
30
|
onCustomKeyPress?: {
|
31
31
|
key: string;
|
32
32
|
action: (event: KeyboardEvent) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/FileInput/styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;eAoBkC,WACjD;yGAlBJ,CAAA;AAED,eAAO,MAAM,WAAW;;eAe8B,WACjD;yGAhBkC,CAAA;AAEvC,eAAO,MAAM,YAAY;;eAa6B,WACjD;yGAVJ,CAAA;AACD,eAAO,MAAM,eAAe;;eAQ0B,WACjD;yGALJ,CAAA;AAED,eAAO,MAAM,QAAQ;;eAEiC,WACjD;2GAWJ,CAAA;AAED,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/FileInput/styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;eAoBkC,WACjD;yGAlBJ,CAAA;AAED,eAAO,MAAM,WAAW;;eAe8B,WACjD;yGAhBkC,CAAA;AAEvC,eAAO,MAAM,YAAY;;eAa6B,WACjD;yGAVJ,CAAA;AACD,eAAO,MAAM,eAAe;;eAQ0B,WACjD;yGALJ,CAAA;AAED,eAAO,MAAM,QAAQ;;eAEiC,WACjD;2GAWJ,CAAA;AAED,eAAO,MAAM,MAAM;sBA1BjB,SAAM;uBAIU,SAAS;gCAGpB,SACP;;;;4BAWyB,UACjB;8BAQJ,UAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAKT,CAAA;AAED,eAAO,MAAM,UAAU;;eAvB+B,WACjD;;WAuBc,MAAM;cAAY,OAAO;qHAsB3C,CAAA;AAED,eAAO,MAAM,aAAa;;eAhD4B,WACjD;2GAsDJ,CAAA;AAED,eAAO,MAAM,WAAW;;eAzD8B,WACjD;kHA0DJ,CAAA;AAED,eAAO,MAAM,IAAI;;eA7DqC,WACjD;;cA6DuB,MAAM;2GAMjC,CAAA;AAED,eAAO,MAAM,KAAK;;eAtEoC,WACjD;2GA0EJ,CAAA;AAED,eAAO,MAAM,YAAY;;eA7E6B,WACjD;yGAkFJ,CAAA"}
|
package/lib/core/Html/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Html/index.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Html/index.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAA;AAElC,UAAU,MAAM;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,2BAA2B;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gCAAgC;IAChC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mCAAmC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,IAAI,0FASP,MAAM,qDAiBR,CAAA;AAED,eAAe,IAAI,CAAA"}
|
package/lib/core/Html/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
export declare const StyledButton: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
2
|
-
afterIcon?:
|
3
|
-
beforeIcon?:
|
4
|
-
children: NonNullable<
|
2
|
+
afterIcon?: React.ReactNode;
|
3
|
+
beforeIcon?: React.ReactNode;
|
4
|
+
children: NonNullable<React.ReactNode>;
|
5
5
|
disabled?: boolean;
|
6
6
|
href?: string;
|
7
7
|
loading?: boolean;
|
8
|
-
onClick?: (event:
|
9
|
-
onMouseUp?: (event:
|
8
|
+
onClick?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
9
|
+
onMouseUp?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
10
10
|
onCustomKeyPress?: {
|
11
11
|
key: string;
|
12
12
|
action: (event: KeyboardEvent) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/InfoButton/styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/InfoButton/styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;sBAKe,SACvC;uBAMI,SAAS;gCAIO,SACrB;;;;4BAUK,UACL;8BAGoD,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAxB7D,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;mBAmFF,MAAM,SAAS,MAAM;CAQrC,CAAA;AAED,eAAO,MAAM,OAAO;;eAjFP,WAAW;yGAkHvB,CAAA;AAED,eAAO,MAAM,OAAO;;eApHP,WAAW;2GAwHvB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Modal/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAsD,MAAM,OAAO,CAAA;AAkB1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAKjD,UAAU,MAAO,SAAQ,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC;IAC9D,8BAA8B;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,sCAAsC;IACtC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC9B,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qCAAqC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,6CAA6C;IAC7C,eAAe,CAAC,EAAE,OAAO,CAA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CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAA;IACpD,eAAe;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CAC/C;AAED,iBAAS,KAAK,CAAC,EACb,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,KAAe,EACf,QAAQ,EACR,mBAA0B,EAC1B,eAAe,EACf,aAAoB,EACpB,eAAe,EACf,UAAU,EACV,wBAAwB,EACxB,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,kBAAkB,EAClB,GAAG,SAAS,EACb,EAAE,MAAM,oDAkLR;kBAxMQ,KAAK;;kBAjED,MAAO,SAAS,GAAE,MAAO,SAAS;;;;;AA6Q/C,eAAe,KAAK,CAAA"}
|
@@ -9,14 +9,14 @@ export declare const TextContent: import("@emotion/styled").StyledComponent<{
|
|
9
9
|
as?: React.ElementType;
|
10
10
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
11
11
|
export declare const StyledButton: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
12
|
-
afterIcon?:
|
13
|
-
beforeIcon?:
|
14
|
-
children: NonNullable<
|
12
|
+
afterIcon?: React.ReactNode;
|
13
|
+
beforeIcon?: React.ReactNode;
|
14
|
+
children: NonNullable<React.ReactNode>;
|
15
15
|
disabled?: boolean;
|
16
16
|
href?: string;
|
17
17
|
loading?: boolean;
|
18
|
-
onClick?: (event:
|
19
|
-
onMouseUp?: (event:
|
18
|
+
onClick?: (event: React.MouseEvent<import("../../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
19
|
+
onMouseUp?: (event: React.MouseEvent<import("../../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
20
20
|
onCustomKeyPress?: {
|
21
21
|
key: string;
|
22
22
|
action: (event: KeyboardEvent) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/NotificationsMenu/NotificationRow/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;eAwBX,WAAW;;uBAvBW,OAAO;yGAYrC,CAAA;AAED,eAAO,MAAM,WAAW;;eASf,WAAW;2GAOnB,CAAA;AAED,eAAO,MAAM,YAAY
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/NotificationsMenu/NotificationRow/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;eAwBX,WAAW;;uBAvBW,OAAO;yGAYrC,CAAA;AAED,eAAO,MAAM,WAAW;;eASf,WAAW;2GAOnB,CAAA;AAED,eAAO,MAAM,YAAY;sBA3BU,SAAS;uBAItC,SAAS;gCAMD,SACR;;;;4BAgB6B,UAClC;8BAK4D,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UADtE,CAAA"}
|
@@ -5,15 +5,15 @@ export declare const basicToolbar: (string[] | ({
|
|
5
5
|
indent: string;
|
6
6
|
list?: undefined;
|
7
7
|
})[])[];
|
8
|
-
export declare const richToolbar: (string[] |
|
8
|
+
export declare const richToolbar: (string[] | {
|
9
|
+
header: (number | boolean)[];
|
10
|
+
}[] | ({
|
9
11
|
list: string;
|
10
12
|
indent?: undefined;
|
11
13
|
} | {
|
12
14
|
indent: string;
|
13
15
|
list?: undefined;
|
14
16
|
})[] | {
|
15
|
-
header: (number | boolean)[];
|
16
|
-
}[] | {
|
17
17
|
align: string;
|
18
18
|
}[])[];
|
19
19
|
//# sourceMappingURL=config.d.ts.map
|