frappe-ui 0.1.85 → 0.1.87
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/package.json
CHANGED
|
@@ -184,7 +184,7 @@ export default {
|
|
|
184
184
|
return {
|
|
185
185
|
attributes: {
|
|
186
186
|
class: normalizeClass([
|
|
187
|
-
'prose
|
|
187
|
+
'prose prose-table:table-fixed prose-td:p-2 prose-th:p-2 prose-td:border prose-th:border prose-td:border-outline-gray-2 prose-th:border-outline-gray-2 prose-td:relative prose-th:relative prose-th:bg-surface-gray-2',
|
|
188
188
|
this.editorClass,
|
|
189
189
|
]),
|
|
190
190
|
},
|
package/src/tailwind/plugin.js
CHANGED
|
@@ -34,7 +34,7 @@ let globalStyles = (theme) => ({
|
|
|
34
34
|
|
|
35
35
|
let componentStyles = {
|
|
36
36
|
'.form-input, .form-textarea, .form-select': {
|
|
37
|
-
'@apply h-7 rounded border border-[--surface-gray-2] bg-surface-gray-2 py-1.5 pl-2 pr-2 text-base text-ink-gray-8 placeholder-gray-
|
|
37
|
+
'@apply h-7 rounded border border-[--surface-gray-2] bg-surface-gray-2 py-1.5 pl-2 pr-2 text-base text-ink-gray-8 placeholder-ink-gray-4 transition-colors hover:border-outline-gray-modals hover:bg-surface-gray-3 focus:border-outline-gray-4 focus:bg-surface-white focus:shadow-sm focus:ring-0 focus-visible:ring-2 focus-visible:ring-outline-gray-3':
|
|
38
38
|
{},
|
|
39
39
|
},
|
|
40
40
|
'.form-checkbox': {
|
|
@@ -44,6 +44,9 @@ let componentStyles = {
|
|
|
44
44
|
"[data-theme='dark'] [type='checkbox']:checked": {
|
|
45
45
|
'background-image': `url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%230F0F0F' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")`,
|
|
46
46
|
},
|
|
47
|
+
"[data-theme='dark'] img": {
|
|
48
|
+
filter: 'brightness(.8) contrast(1.2)',
|
|
49
|
+
},
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
module.exports = plugin(
|
|
@@ -278,7 +281,23 @@ module.exports = plugin(
|
|
|
278
281
|
typography: (theme) => ({
|
|
279
282
|
DEFAULT: {
|
|
280
283
|
css: {
|
|
281
|
-
'--tw-prose-body': 'var(--ink-gray-
|
|
284
|
+
'--tw-prose-body': 'var(--ink-gray-8)',
|
|
285
|
+
'--tw-prose-headings': 'var(--ink-gray-9)',
|
|
286
|
+
'--tw-prose-lead': 'var(--ink-gray-5)',
|
|
287
|
+
'--tw-prose-links': 'var(--ink-gray-9)',
|
|
288
|
+
'--tw-prose-bold': 'var(--ink-gray-9)',
|
|
289
|
+
'--tw-prose-counters': 'var(--ink-gray-4)',
|
|
290
|
+
'--tw-prose-bullets': 'var(--ink-gray-2)',
|
|
291
|
+
'--tw-prose-hr': 'var(--ink-gray-1)',
|
|
292
|
+
'--tw-prose-quotes': 'var(--ink-gray-9)',
|
|
293
|
+
'--tw-prose-quote-borders': 'var(--ink-gray-1)',
|
|
294
|
+
'--tw-prose-captions': 'var(--ink-gray-4)',
|
|
295
|
+
'--tw-prose-kbd': 'var(--ink-gray-9)',
|
|
296
|
+
'--tw-prose-code': 'var(--ink-gray-9)',
|
|
297
|
+
'--tw-prose-pre-code': 'var(--ink-gray-1)',
|
|
298
|
+
'--tw-prose-pre-bg': 'var(--ink-gray-8)',
|
|
299
|
+
'--tw-prose-th-borders': 'var(--ink-gray-2)',
|
|
300
|
+
'--tw-prose-td-borders': 'var(--ink-gray-1)',
|
|
282
301
|
},
|
|
283
302
|
},
|
|
284
303
|
sm: {
|
package/src/utils/markdown.js
CHANGED
package/vite.js
CHANGED
|
@@ -3,8 +3,8 @@ const fs = require('fs')
|
|
|
3
3
|
|
|
4
4
|
module.exports = function proxyOptions({
|
|
5
5
|
port = 8080,
|
|
6
|
-
source = '^/(app|login|api|assets|files)',
|
|
7
|
-
|
|
6
|
+
source = '^/(app|login|api|assets|files|private)',
|
|
7
|
+
} = {}) {
|
|
8
8
|
const config = getCommonSiteConfig()
|
|
9
9
|
const webserver_port = config ? config.webserver_port : 8000
|
|
10
10
|
if (!config) {
|
|
@@ -17,7 +17,7 @@ module.exports = function proxyOptions({
|
|
|
17
17
|
router: function (req) {
|
|
18
18
|
const site_name = req.headers.host.split(':')[0]
|
|
19
19
|
return `http://${site_name}:${webserver_port}`
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
23
|
name: 'frappeui-vite-plugin',
|