ish-ui 1.0.10 → 1.0.12
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.
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
7
7
|
*/
|
|
8
8
|
export * from './utils/index';
|
|
9
|
-
export * from './style';
|
|
10
9
|
export * from './HtmlEditor';
|
|
11
10
|
export * from './WysiwygEditor';
|
|
12
11
|
export { default as HtmlEditor } from './HtmlEditor';
|
package/dist/model/Fields.d.ts
CHANGED
|
@@ -223,7 +223,7 @@ export interface TagsFieldProps<T, IP, MP> extends EditInPlaceFieldProps<IP, MP>
|
|
|
223
223
|
classes?: any;
|
|
224
224
|
validateEntity?: string;
|
|
225
225
|
}
|
|
226
|
-
interface FormFieldBaseProps {
|
|
226
|
+
export interface FormFieldBaseProps {
|
|
227
227
|
required?: boolean;
|
|
228
228
|
format?: AnyArgFunction;
|
|
229
229
|
onClick?: AnyArgFunction;
|
|
@@ -248,4 +248,3 @@ export type FormFieldProps = ({
|
|
|
248
248
|
} & FormFieldBaseProps & TagsFieldProps<TagLike, FieldInputProps, FieldMetaProps>) | ({
|
|
249
249
|
type: 'stub';
|
|
250
250
|
});
|
|
251
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"@global" | "readonly" | "editable" | "textField" | "hoverIcon" | "editorArea" | "previewFrame">;
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright ish group pty ltd 2022.
|
|
3
|
-
*
|
|
4
|
-
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
5
|
-
*
|
|
6
|
-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
7
|
-
*/
|
|
8
|
-
import { makeStyles } from '@mui/styles';
|
|
9
|
-
export const useStyles = makeStyles((theme) => ({
|
|
10
|
-
hoverIcon: {
|
|
11
|
-
opacity: 0.5,
|
|
12
|
-
visibility: 'hidden',
|
|
13
|
-
marginLeft: theme.spacing(1)
|
|
14
|
-
},
|
|
15
|
-
editable: {
|
|
16
|
-
display: 'inline-flex',
|
|
17
|
-
cursor: 'text',
|
|
18
|
-
color: theme.palette.text.primaryEditable,
|
|
19
|
-
minHeight: '32px',
|
|
20
|
-
padding: '4px 0 4px',
|
|
21
|
-
marginTop: theme.spacing(2),
|
|
22
|
-
fontWeight: 400,
|
|
23
|
-
justifyContent: 'space-between',
|
|
24
|
-
alignItems: 'flex-end',
|
|
25
|
-
'&:hover $hoverIcon': {
|
|
26
|
-
visibility: 'visible'
|
|
27
|
-
},
|
|
28
|
-
'&:before': {
|
|
29
|
-
borderBottom: '1px solid transparent',
|
|
30
|
-
left: 0,
|
|
31
|
-
bottom: '4px',
|
|
32
|
-
content: '\' \'',
|
|
33
|
-
position: 'absolute',
|
|
34
|
-
right: 0,
|
|
35
|
-
transition: theme.transitions.create('border-bottom-color', {
|
|
36
|
-
duration: theme.transitions.duration.standard,
|
|
37
|
-
easing: theme.transitions.easing.easeInOut
|
|
38
|
-
}),
|
|
39
|
-
pointerEvents: 'none'
|
|
40
|
-
},
|
|
41
|
-
'&:hover:before': {
|
|
42
|
-
borderBottom: `1px solid ${theme.palette.primary.main}`
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
editorArea: {
|
|
46
|
-
'&#editorRoot': {
|
|
47
|
-
'& .ck-dropdown__button .ck-button__label': {
|
|
48
|
-
fontSize: '14px'
|
|
49
|
-
},
|
|
50
|
-
cursor: 'text',
|
|
51
|
-
overflowY: 'auto',
|
|
52
|
-
position: 'relative',
|
|
53
|
-
'& .ck-list__item .ck-button': {
|
|
54
|
-
height: 'unset',
|
|
55
|
-
padding: '5px 10px'
|
|
56
|
-
},
|
|
57
|
-
'& .ck-list__item .ck-heading_heading3': {
|
|
58
|
-
fontSize: '15px'
|
|
59
|
-
},
|
|
60
|
-
'& .ck-list__item .ck-heading_heading4': {
|
|
61
|
-
fontSize: '14px'
|
|
62
|
-
},
|
|
63
|
-
'& .ck-toolbar': {
|
|
64
|
-
height: '45px',
|
|
65
|
-
background: theme.table.contrastRow.main
|
|
66
|
-
},
|
|
67
|
-
'& .ck-list__item': {
|
|
68
|
-
fontSize: '15px'
|
|
69
|
-
},
|
|
70
|
-
'& .ck-dropdown': {
|
|
71
|
-
fontSize: '15px'
|
|
72
|
-
},
|
|
73
|
-
'& .ck.ck-dropdown .ck-button__label': {
|
|
74
|
-
fontFamily: 'Inter, sans-serif',
|
|
75
|
-
overflow: 'visible',
|
|
76
|
-
width: '120px'
|
|
77
|
-
},
|
|
78
|
-
'& .content-mode-wrapper': {
|
|
79
|
-
position: 'absolute',
|
|
80
|
-
right: '10px',
|
|
81
|
-
top: '6px',
|
|
82
|
-
padding: '5px',
|
|
83
|
-
zIndex: 1000,
|
|
84
|
-
'& .content-mode': {
|
|
85
|
-
maxWidth: '85px',
|
|
86
|
-
border: 0,
|
|
87
|
-
boxShadow: 'none',
|
|
88
|
-
backgroundColor: 'black',
|
|
89
|
-
color: 'white',
|
|
90
|
-
padding: '2px',
|
|
91
|
-
fontSize: '9px',
|
|
92
|
-
'&:hover': {
|
|
93
|
-
backgroundColor: theme.palette.primary.main,
|
|
94
|
-
color: theme.palette.primary.contrastText,
|
|
95
|
-
},
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
'& .ck-editor': {
|
|
99
|
-
'& .ck-content': {
|
|
100
|
-
resize: 'vertical',
|
|
101
|
-
maxHeight: '80vh',
|
|
102
|
-
minHeight: '200px',
|
|
103
|
-
fontFamily: 'Inter, sans-serif',
|
|
104
|
-
fontWeight: 400,
|
|
105
|
-
fontSize: '14px',
|
|
106
|
-
color: 'black'
|
|
107
|
-
},
|
|
108
|
-
'& .ck-content .table': {
|
|
109
|
-
marginLeft: 0
|
|
110
|
-
},
|
|
111
|
-
'& .ck-toolbar': {
|
|
112
|
-
padding: '3px'
|
|
113
|
-
},
|
|
114
|
-
'& .ck-source-editing-button': {
|
|
115
|
-
marginLeft: 'auto',
|
|
116
|
-
marginRight: '44px'
|
|
117
|
-
},
|
|
118
|
-
'& .ck-source-editing-button > *': {
|
|
119
|
-
visibility: 'hidden'
|
|
120
|
-
},
|
|
121
|
-
'& .ck-source-editing-button .ck_source_edit_custom': {
|
|
122
|
-
visibility: 'visible'
|
|
123
|
-
},
|
|
124
|
-
'& .ck-source-editing-button .ck_code_icon_custom': {
|
|
125
|
-
width: '24px'
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
'&.ace-wrapper': {
|
|
129
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
130
|
-
paddingTop: '44px',
|
|
131
|
-
background: theme.table.contrastRow.main,
|
|
132
|
-
'& .ace_editor': {
|
|
133
|
-
borderTop: `1px solid ${theme.palette.divider}`
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
previewFrame: {
|
|
139
|
-
width: '100%',
|
|
140
|
-
maxHeight: '300px',
|
|
141
|
-
overflow: 'auto',
|
|
142
|
-
fontSize: '16px',
|
|
143
|
-
'& > div': {
|
|
144
|
-
width: '100%'
|
|
145
|
-
},
|
|
146
|
-
'& h1,h2,h3,h4': {
|
|
147
|
-
all: 'revert'
|
|
148
|
-
},
|
|
149
|
-
'& table': {
|
|
150
|
-
marginLeft: 0,
|
|
151
|
-
marginRight: 'auto',
|
|
152
|
-
borderCollapse: 'collapse',
|
|
153
|
-
borderSpacing: 0,
|
|
154
|
-
border: '1px double #b3b3b3',
|
|
155
|
-
'& th': {
|
|
156
|
-
textAlign: 'left',
|
|
157
|
-
fontWeight: 700,
|
|
158
|
-
background: 'hsla(0,0%,0%,5%)',
|
|
159
|
-
minWidth: '2em',
|
|
160
|
-
padding: '0.4em',
|
|
161
|
-
border: '1px solid #bfbfbf'
|
|
162
|
-
},
|
|
163
|
-
'& td': {
|
|
164
|
-
minWidth: '2em',
|
|
165
|
-
padding: '0.4em',
|
|
166
|
-
border: '1px solid #bfbfbf'
|
|
167
|
-
},
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
readonly: {
|
|
171
|
-
fontWeight: 300,
|
|
172
|
-
pointerEvents: 'none'
|
|
173
|
-
},
|
|
174
|
-
textField: {
|
|
175
|
-
paddingLeft: '0',
|
|
176
|
-
// @ts-ignore
|
|
177
|
-
paddingBottom: `${theme.spacing(2) - 3}`,
|
|
178
|
-
margin: 0
|
|
179
|
-
},
|
|
180
|
-
'@global': {
|
|
181
|
-
'.ck.ck-balloon-panel.ck-balloon-panel_visible': {
|
|
182
|
-
zIndex: 2000
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}));
|