@antcde/component-library 0.1.18-rc.1 → 0.1.18-rc.3
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/build/uno.js +1 -9
- package/dist/index.js +20676 -20899
- package/dist/types/src/components/{BaseAppCard/index.vue.d.ts → BaseAppCard.vue.d.ts} +5 -19
- package/dist/types/src/components/RichTextEditor/index.vue.d.ts +6 -11
- package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +1 -1
- package/dist/types/src/index.d.ts +2 -2
- package/lib/build/uno.ts +1 -10
- package/package.json +6 -10
- package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +0 -47
- package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +0 -5
- package/dist/types/src/components/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +0 -18
- package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +0 -14
- package/dist/types/src/components/RichTextEditor/_MentionPanel.vue.d.ts +0 -18
- package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +0 -6
- package/dist/types/src/components/RichTextEditor/_useMentionPicker.d.ts +0 -47
package/dist/build/uno.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import presetRemToPx from '@unocss/preset-rem-to-px';
|
|
2
|
-
import presetTypography from '@unocss/preset-typography';
|
|
3
2
|
import presetWind4 from '@unocss/preset-wind4';
|
|
4
3
|
import { defineConfig, transformerDirectives, transformerVariantGroup } from 'unocss';
|
|
5
4
|
const antColors = {
|
|
6
5
|
primary: '#125CFF',
|
|
7
6
|
secondary: '#64748B',
|
|
8
|
-
error: '#B00020',
|
|
9
7
|
info: '#2196F3',
|
|
10
8
|
success: '#4CAF50',
|
|
11
9
|
warning: '#FB8C00',
|
|
@@ -33,12 +31,8 @@ const antDesignTokens = [
|
|
|
33
31
|
['text-body', { color: 'rgba(var(--v-theme-on-surface), 0.7)' }],
|
|
34
32
|
['text-muted', { color: 'rgba(var(--v-theme-on-surface), 0.5)' }],
|
|
35
33
|
['text-disabled', { color: 'rgba(var(--v-theme-on-surface), 0.38)' }],
|
|
36
|
-
['text-warning-emphasis', { color: 'var(--ant-warning-text-emphasis)' }],
|
|
37
34
|
['border-ant', { 'border-color': 'rgba(var(--v-border-color), var(--v-border-opacity))' }],
|
|
38
35
|
];
|
|
39
|
-
const antPreflights = [
|
|
40
|
-
{ getCSS: () => ':root { --ant-warning-text-emphasis: #9b5b00; }' },
|
|
41
|
-
];
|
|
42
36
|
/**
|
|
43
37
|
* Normalizes shortcuts from either array or object form to array form.
|
|
44
38
|
*
|
|
@@ -89,7 +83,7 @@ export function createAntUnoConfig(overrides = {}) {
|
|
|
89
83
|
outputToCssLayers: {
|
|
90
84
|
cssLayerName: (layer) => layer === 'properties' ? null : `uno-${layer}`,
|
|
91
85
|
},
|
|
92
|
-
preflights:
|
|
86
|
+
preflights: preflights ?? [],
|
|
93
87
|
rules: [
|
|
94
88
|
...antDesignTokens,
|
|
95
89
|
...overrideRules,
|
|
@@ -103,8 +97,6 @@ export function createAntUnoConfig(overrides = {}) {
|
|
|
103
97
|
presets: presets ?? [
|
|
104
98
|
presetRemToPx,
|
|
105
99
|
presetWind4({ dark: { dark: '.v-theme--dark' } }),
|
|
106
|
-
// Provides `prose` for markdown rendered via v-html (READMEs, release notes).
|
|
107
|
-
presetTypography(),
|
|
108
100
|
],
|
|
109
101
|
shortcuts: [
|
|
110
102
|
...normalizeShortcuts(shortcuts),
|