@voicenter-team/voicenter-ui-plus 4.0.0-beta.7 → 4.0.0-beta.8
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/MIGRATION_v3.md +196 -196
- package/README.md +3 -1
- package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
- package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
- package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
- package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
- package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
- package/library/assets/components/VcLoading/VcLoading.css +1 -1
- package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
- package/library/assets/components/VcSegmented/VcSegmented.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
- package/library/assets/components/VcTimeInput/VcTimeInput.css +1 -1
- package/library/components/VcCheckbox/VcCheckbox.vue.mjs +1 -1
- package/library/components/VcCheckbox/VcCheckboxButton.vue.mjs +1 -1
- package/library/components/VcDatePicker/VcDatePicker.vue.mjs +1 -1
- package/library/components/VcDropdown/VcDropdownItem.vue.mjs +1 -1
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
- package/library/components/VcForm/VcForm.vue.mjs +1 -1
- package/library/components/VcForm/VcFormItem.vue.mjs +1 -1
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +1 -1
- package/library/components/VcInput/VcInput.vue.mjs +1 -1
- package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +2 -2
- package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +1 -1
- package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
- package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +1 -1
- package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +1 -1
- package/library/components/VcRadio/VcRadio.vue.mjs +1 -1
- package/library/components/VcSegmented/VcSegmented.vue.mjs +1 -1
- package/library/components/VcSelect/VcSelect.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
- package/library/components/VcSlider/VcSlider.vue.mjs +1 -1
- package/library/components/VcTimeInput/VcTimeInput.vue.mjs +117 -9
- package/library/index.mjs.gz +0 -0
- package/library/localization/index.mjs.gz +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +16 -16
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/theme/index.mjs.gz +0 -0
- package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +20 -6
- package/library/types/localization/locales/en.json.d.ts +415 -415
- package/library/types/theme/themes.json.d.ts +72 -72
- package/library/utils/jsonSchema/index.mjs.gz +0 -0
- package/package.json +311 -311
- package/src/theme/index.ts +101 -101
- package/src/theme/tailwindScheme.js +78 -78
- package/src/theme/theme.types.ts +31 -31
- package/src/theme/themeMerge.ts +63 -63
- package/src/theme/themes.json +72 -72
- package/tailwind.config.d.ts +5 -5
- package/tailwind.config.js +178 -178
- /package/library/assets/node_modules/element-plus/theme-chalk/src/{date-picker.css → tooltip.css} +0 -0
package/src/theme/themes.json
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
{
|
|
2
|
-
"voicenter": {
|
|
3
|
-
"vc-content-primary": "#161922",
|
|
4
|
-
"vc-content-secondary": "#525D70",
|
|
5
|
-
"vc-content-tertiary": "#567391",
|
|
6
|
-
"vc-content-brand": "#C20027",
|
|
7
|
-
"vc-content-disabled": "#A6B0C0",
|
|
8
|
-
"vc-bg-page": "#F8F9FB",
|
|
9
|
-
"vc-bg-surface": "#FFFFFF",
|
|
10
|
-
"vc-bg-inset": "#F8F9FB",
|
|
11
|
-
"vc-bg-inset-strong": "#EEF1F4",
|
|
12
|
-
"vc-bg-field": "#FFFFFF",
|
|
13
|
-
"vc-bg-muted": "#EEF1F4",
|
|
14
|
-
"vc-bg-overlay": "#16192280",
|
|
15
|
-
"vc-action-primary": "#E80130",
|
|
16
|
-
"vc-onfill": "#FFFFFF",
|
|
17
|
-
"vc-onfill-primary": "#FFFFFF",
|
|
18
|
-
"vc-action-info": "#2759DA",
|
|
19
|
-
"vc-action-success": "#007D47",
|
|
20
|
-
"vc-content-success": "#007D47",
|
|
21
|
-
"vc-content-warning": "#BF5001",
|
|
22
|
-
"vc-action-warning": "#FEC635",
|
|
23
|
-
"vc-onfill-warning": "#161922",
|
|
24
|
-
"vc-action-danger": "#750830",
|
|
25
|
-
"vc-action-secondary": "#4A607A",
|
|
26
|
-
"vc-border": "#E2E6EE",
|
|
27
|
-
"vc-border-strong": "#CDD4E0",
|
|
28
|
-
"vc-input": "#CDD4E0",
|
|
29
|
-
"vc-ring": "#4087FF",
|
|
30
|
-
"vc-mix-anchor": "#000000",
|
|
31
|
-
"vc-mix-anchor-primary": "#000000",
|
|
32
|
-
"vc-mix-anchor-warning": "#000000",
|
|
33
|
-
"vc-shadow-color": "#161922",
|
|
34
|
-
"vc-content-danger": "#750830",
|
|
35
|
-
"vc-content-info": "#2759DA"
|
|
36
|
-
},
|
|
37
|
-
"voicenterDark": {
|
|
38
|
-
"vc-content-primary": "#E2ECF7",
|
|
39
|
-
"vc-content-secondary": "#93A0B5",
|
|
40
|
-
"vc-content-tertiary": "#6D8AAA",
|
|
41
|
-
"vc-content-brand": "#FF6B6A",
|
|
42
|
-
"vc-content-disabled": "#48515F",
|
|
43
|
-
"vc-bg-page": "#0E1015",
|
|
44
|
-
"vc-bg-surface": "#161922",
|
|
45
|
-
"vc-bg-inset": "#0E1015",
|
|
46
|
-
"vc-bg-inset-strong": "#232427",
|
|
47
|
-
"vc-bg-field": "#161922",
|
|
48
|
-
"vc-bg-muted": "#232427",
|
|
49
|
-
"vc-bg-overlay": "#000000B3",
|
|
50
|
-
"vc-action-primary": "#E50A3B",
|
|
51
|
-
"vc-onfill": "#FFFFFF",
|
|
52
|
-
"vc-onfill-primary": "#FFFFFF",
|
|
53
|
-
"vc-action-info": "#2268DE",
|
|
54
|
-
"vc-action-success": "#007A45",
|
|
55
|
-
"vc-content-success": "#00B96B",
|
|
56
|
-
"vc-content-warning": "#D66527",
|
|
57
|
-
"vc-action-warning": "#A25600",
|
|
58
|
-
"vc-onfill-warning": "#FFFFFF",
|
|
59
|
-
"vc-action-danger": "#934A5A",
|
|
60
|
-
"vc-action-secondary": "#5A7189",
|
|
61
|
-
"vc-border": "#282C32",
|
|
62
|
-
"vc-border-strong": "#333841",
|
|
63
|
-
"vc-input": "#333841",
|
|
64
|
-
"vc-ring": "#2268DE",
|
|
65
|
-
"vc-mix-anchor": "#000000",
|
|
66
|
-
"vc-mix-anchor-primary": "#000000",
|
|
67
|
-
"vc-mix-anchor-warning": "#000000",
|
|
68
|
-
"vc-shadow-color": "#000000",
|
|
69
|
-
"vc-content-danger": "#FF9BAD",
|
|
70
|
-
"vc-content-info": "#6293FF"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"voicenter": {
|
|
3
|
+
"vc-content-primary": "#161922",
|
|
4
|
+
"vc-content-secondary": "#525D70",
|
|
5
|
+
"vc-content-tertiary": "#567391",
|
|
6
|
+
"vc-content-brand": "#C20027",
|
|
7
|
+
"vc-content-disabled": "#A6B0C0",
|
|
8
|
+
"vc-bg-page": "#F8F9FB",
|
|
9
|
+
"vc-bg-surface": "#FFFFFF",
|
|
10
|
+
"vc-bg-inset": "#F8F9FB",
|
|
11
|
+
"vc-bg-inset-strong": "#EEF1F4",
|
|
12
|
+
"vc-bg-field": "#FFFFFF",
|
|
13
|
+
"vc-bg-muted": "#EEF1F4",
|
|
14
|
+
"vc-bg-overlay": "#16192280",
|
|
15
|
+
"vc-action-primary": "#E80130",
|
|
16
|
+
"vc-onfill": "#FFFFFF",
|
|
17
|
+
"vc-onfill-primary": "#FFFFFF",
|
|
18
|
+
"vc-action-info": "#2759DA",
|
|
19
|
+
"vc-action-success": "#007D47",
|
|
20
|
+
"vc-content-success": "#007D47",
|
|
21
|
+
"vc-content-warning": "#BF5001",
|
|
22
|
+
"vc-action-warning": "#FEC635",
|
|
23
|
+
"vc-onfill-warning": "#161922",
|
|
24
|
+
"vc-action-danger": "#750830",
|
|
25
|
+
"vc-action-secondary": "#4A607A",
|
|
26
|
+
"vc-border": "#E2E6EE",
|
|
27
|
+
"vc-border-strong": "#CDD4E0",
|
|
28
|
+
"vc-input": "#CDD4E0",
|
|
29
|
+
"vc-ring": "#4087FF",
|
|
30
|
+
"vc-mix-anchor": "#000000",
|
|
31
|
+
"vc-mix-anchor-primary": "#000000",
|
|
32
|
+
"vc-mix-anchor-warning": "#000000",
|
|
33
|
+
"vc-shadow-color": "#161922",
|
|
34
|
+
"vc-content-danger": "#750830",
|
|
35
|
+
"vc-content-info": "#2759DA"
|
|
36
|
+
},
|
|
37
|
+
"voicenterDark": {
|
|
38
|
+
"vc-content-primary": "#E2ECF7",
|
|
39
|
+
"vc-content-secondary": "#93A0B5",
|
|
40
|
+
"vc-content-tertiary": "#6D8AAA",
|
|
41
|
+
"vc-content-brand": "#FF6B6A",
|
|
42
|
+
"vc-content-disabled": "#48515F",
|
|
43
|
+
"vc-bg-page": "#0E1015",
|
|
44
|
+
"vc-bg-surface": "#161922",
|
|
45
|
+
"vc-bg-inset": "#0E1015",
|
|
46
|
+
"vc-bg-inset-strong": "#232427",
|
|
47
|
+
"vc-bg-field": "#161922",
|
|
48
|
+
"vc-bg-muted": "#232427",
|
|
49
|
+
"vc-bg-overlay": "#000000B3",
|
|
50
|
+
"vc-action-primary": "#E50A3B",
|
|
51
|
+
"vc-onfill": "#FFFFFF",
|
|
52
|
+
"vc-onfill-primary": "#FFFFFF",
|
|
53
|
+
"vc-action-info": "#2268DE",
|
|
54
|
+
"vc-action-success": "#007A45",
|
|
55
|
+
"vc-content-success": "#00B96B",
|
|
56
|
+
"vc-content-warning": "#D66527",
|
|
57
|
+
"vc-action-warning": "#A25600",
|
|
58
|
+
"vc-onfill-warning": "#FFFFFF",
|
|
59
|
+
"vc-action-danger": "#934A5A",
|
|
60
|
+
"vc-action-secondary": "#5A7189",
|
|
61
|
+
"vc-border": "#282C32",
|
|
62
|
+
"vc-border-strong": "#333841",
|
|
63
|
+
"vc-input": "#333841",
|
|
64
|
+
"vc-ring": "#2268DE",
|
|
65
|
+
"vc-mix-anchor": "#000000",
|
|
66
|
+
"vc-mix-anchor-primary": "#000000",
|
|
67
|
+
"vc-mix-anchor-warning": "#000000",
|
|
68
|
+
"vc-shadow-color": "#000000",
|
|
69
|
+
"vc-content-danger": "#FF9BAD",
|
|
70
|
+
"vc-content-info": "#6293FF"
|
|
71
|
+
}
|
|
72
|
+
}
|
package/tailwind.config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Config } from 'tailwindcss'
|
|
2
|
-
|
|
3
|
-
declare const config: Config
|
|
4
|
-
|
|
5
|
-
export default config
|
|
1
|
+
import { Config } from 'tailwindcss'
|
|
2
|
+
|
|
3
|
+
declare const config: Config
|
|
4
|
+
|
|
5
|
+
export default config
|
package/tailwind.config.js
CHANGED
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
const schemeColors = require('./src/theme/tailwindScheme.js')
|
|
2
|
-
|
|
3
|
-
// The library build (vite build) takes the classes of the components only, so
|
|
4
|
-
// library/style.css has no class that only a documentation page uses; the
|
|
5
|
-
// documentation site (npm run dev, TARGET=doc vite build) takes its pages too.
|
|
6
|
-
const libraryBuild = process.env.NODE_ENV === 'production' && process.env.TARGET !== 'doc'
|
|
7
|
-
|
|
8
|
-
/** @type {import('tailwindcss').Config} */
|
|
9
|
-
module.exports = {
|
|
10
|
-
content: [ './src/**/*.{vue,js,ts,scss}', ...(libraryBuild ? [] : [ './documentation/**/*.{vue,scss}' ]) ],
|
|
11
|
-
plugins: [
|
|
12
|
-
require('tailwindcss/plugin')(({ addUtilities }) => {
|
|
13
|
-
addUtilities({
|
|
14
|
-
'.justify-normal': {
|
|
15
|
-
justifyContent: 'normal'
|
|
16
|
-
},
|
|
17
|
-
// The box of a one-line label ends at the top of its capitals
|
|
18
|
-
// and at its baseline, so a control that centres the box
|
|
19
|
-
// centres the capitals. Browsers without text-box keep the
|
|
20
|
-
// line box. The letters reach out of the box, so a label that
|
|
21
|
-
// truncates clips sideways only: overflow-x: clip, and min-w-0
|
|
22
|
-
// for a flex item, which overflow: hidden used to give it.
|
|
23
|
-
'.text-box-cap': {
|
|
24
|
-
textBox: 'trim-both cap alphabetic'
|
|
25
|
-
}
|
|
26
|
-
})
|
|
27
|
-
})
|
|
28
|
-
],
|
|
29
|
-
theme: {
|
|
30
|
-
fontFamily: {
|
|
31
|
-
main: [ 'Rubik', 'system-ui', 'sans-serif' ]
|
|
32
|
-
},
|
|
33
|
-
screens: {
|
|
34
|
-
sm: '680px',
|
|
35
|
-
md: '960px',
|
|
36
|
-
lg: '1264px',
|
|
37
|
-
xl: '1680px',
|
|
38
|
-
xxl: '1900px'
|
|
39
|
-
},
|
|
40
|
-
colors: schemeColors,
|
|
41
|
-
borderColor: schemeColors,
|
|
42
|
-
backgroundColor: schemeColors,
|
|
43
|
-
boxShadow: {
|
|
44
|
-
none: 'none',
|
|
45
|
-
// Elevation (_foundations.scss --vc-shadow-*)
|
|
46
|
-
raised: 'var(--vc-shadow-raised)',
|
|
47
|
-
overlay: 'var(--vc-shadow-overlay)',
|
|
48
|
-
card: '0px 0px 5px color-mix(in srgb, var(--vc-shadow-color) 12%, transparent)',
|
|
49
|
-
'card-no-active': '0px 0px 5px var(--vc-content-disabled)',
|
|
50
|
-
'table-header': '0 1px 0 0 color-mix(in srgb, var(--vc-shadow-color) 7%, transparent)',
|
|
51
|
-
// Focus: the one ring (_foundations.scss --vc-focus-ring); focus-inner draws it inside
|
|
52
|
-
focus: 'var(--vc-focus-ring)',
|
|
53
|
-
'focus-inner': 'inset 0 0 0 var(--vc-focus-ring-width) var(--vc-ring)',
|
|
54
|
-
'hover-inner': 'inset 0 0 3px var(--vc-action-primary--hover)',
|
|
55
|
-
'hover-outer': '0 0 3px var(--vc-action-primary--hover)',
|
|
56
|
-
'focus-outer-off': '0 0 3px var(--vc-content-secondary)',
|
|
57
|
-
'hover-outer-off': '0 0 3px var(--vc-content-tertiary)',
|
|
58
|
-
// The hover glow of each fill of the scheme, in its hover colour: hover-outer-primary, hover-outer-danger, …
|
|
59
|
-
...Object.fromEntries(Object.entries(schemeColors.action).map(([ fill, states ]) => [ `hover-outer-${fill}`, `0 0 3px ${states.hover}` ])),
|
|
60
|
-
'view-switcher': '0px 0px 4px var(--vc-bg-overlay)',
|
|
61
|
-
'vertical-tab-scroll': 'inset 0 0 8px var(--vc-bg-surface)',
|
|
62
|
-
'vertical-tab-item': '0 1px 6px color-mix(in srgb, var(--vc-shadow-color) 12%, transparent)',
|
|
63
|
-
'vertical-tab-item-hover': 'var(--vc-shadow-raised)',
|
|
64
|
-
table: '0px 0px 5px color-mix(in srgb, var(--vc-shadow-color) 12%, transparent)',
|
|
65
|
-
'table-row': '0 10px 10px -12px color-mix(in srgb, var(--vc-shadow-color) 7%, transparent)'
|
|
66
|
-
},
|
|
67
|
-
fontSize: {
|
|
68
|
-
xxs: '0.65rem',
|
|
69
|
-
xs: '0.75rem',
|
|
70
|
-
sm: '0.875rem',
|
|
71
|
-
base: '1rem',
|
|
72
|
-
lg: '1.125rem',
|
|
73
|
-
xl: '1.25rem',
|
|
74
|
-
'2xl': '1.5rem',
|
|
75
|
-
'3xl': '2rem',
|
|
76
|
-
'4xl': '2.25rem',
|
|
77
|
-
'5xl': '2.5rem',
|
|
78
|
-
'6xl': '3rem'
|
|
79
|
-
},
|
|
80
|
-
fill: schemeColors,
|
|
81
|
-
stroke: schemeColors,
|
|
82
|
-
borderRadius: {
|
|
83
|
-
none: '0',
|
|
84
|
-
full: '9999px',
|
|
85
|
-
// The radius roles (_foundations.scss --vc-radius-*)
|
|
86
|
-
control: 'var(--vc-radius-control)',
|
|
87
|
-
// A control at the small size (--vc-size-control-sm)
|
|
88
|
-
'control-sm': 'var(--vc-radius-control-sm)',
|
|
89
|
-
popup: 'var(--vc-radius-popup)',
|
|
90
|
-
card: 'var(--vc-radius-card)',
|
|
91
|
-
tag: 'var(--vc-radius-tag)',
|
|
92
|
-
inner: 'var(--vc-radius-inner)'
|
|
93
|
-
},
|
|
94
|
-
extend: {
|
|
95
|
-
// For text whose weight changes with its state (selected, active):
|
|
96
|
-
// the weight moves with the colour instead of jumping.
|
|
97
|
-
transitionProperty: {
|
|
98
|
-
weight: 'font-weight, color, background-color'
|
|
99
|
-
},
|
|
100
|
-
// The three weights of the components' text, from _foundations.scss
|
|
101
|
-
// (--vc-font-weight-*); the other weights are Tailwind's.
|
|
102
|
-
fontWeight: {
|
|
103
|
-
normal: 'var(--vc-font-weight-normal)',
|
|
104
|
-
medium: 'var(--vc-font-weight-medium)',
|
|
105
|
-
semibold: 'var(--vc-font-weight-semibold)'
|
|
106
|
-
},
|
|
107
|
-
inset: {
|
|
108
|
-
unset: 'unset'
|
|
109
|
-
},
|
|
110
|
-
minWidth: {
|
|
111
|
-
auto: 'auto',
|
|
112
|
-
xs: '20rem',
|
|
113
|
-
sm: '24rem',
|
|
114
|
-
md: '28rem',
|
|
115
|
-
lg: '32rem',
|
|
116
|
-
xl: '36rem',
|
|
117
|
-
'1/4': '25%',
|
|
118
|
-
'1/2': '50%',
|
|
119
|
-
'3/4': '75%',
|
|
120
|
-
screen: '100vw'
|
|
121
|
-
},
|
|
122
|
-
minHeight: {
|
|
123
|
-
2: '2rem',
|
|
124
|
-
5.5: '1.375rem',
|
|
125
|
-
6.5: '1.625rem',
|
|
126
|
-
8: '2rem',
|
|
127
|
-
screen: '100vh',
|
|
128
|
-
inherit: 'inherit'
|
|
129
|
-
},
|
|
130
|
-
maxWidth: {
|
|
131
|
-
'1/2': '50%',
|
|
132
|
-
screen: '100vw'
|
|
133
|
-
},
|
|
134
|
-
maxHeight: {
|
|
135
|
-
inherit: 'inherit'
|
|
136
|
-
},
|
|
137
|
-
height: {
|
|
138
|
-
0.5: '2px',
|
|
139
|
-
'fit-content': 'fit-content',
|
|
140
|
-
'modal-wizard': '680px'
|
|
141
|
-
},
|
|
142
|
-
spacing: {
|
|
143
|
-
15: '3.75rem',
|
|
144
|
-
unset: 'unset'
|
|
145
|
-
},
|
|
146
|
-
width: {},
|
|
147
|
-
lineHeight: {
|
|
148
|
-
'40px': '40px'
|
|
149
|
-
},
|
|
150
|
-
zIndex: {
|
|
151
|
-
1: 1,
|
|
152
|
-
5: 5
|
|
153
|
-
},
|
|
154
|
-
rotate: {
|
|
155
|
-
135: '135deg',
|
|
156
|
-
225: '225deg'
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
safelist: [
|
|
161
|
-
// Essential text sizes
|
|
162
|
-
{
|
|
163
|
-
pattern: /text-(xxs|xs|sm|base|lg|2xl|3xl|4xl|5xl|6xl)/,
|
|
164
|
-
variants: [ 'hover', 'focus' ]
|
|
165
|
-
},
|
|
166
|
-
// Essential fonts
|
|
167
|
-
'font-main',
|
|
168
|
-
// Essential colour classes for dynamic theming (the action colours)
|
|
169
|
-
{
|
|
170
|
-
pattern: /^(text|bg|border)-action-(primary|secondary|info|success|warning|danger)$/,
|
|
171
|
-
variants: [ 'hover', 'focus' ]
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
variants: {
|
|
175
|
-
backgroundColor: [ 'responsive', 'hover', 'focus', 'active' ]
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
1
|
+
const schemeColors = require('./src/theme/tailwindScheme.js')
|
|
2
|
+
|
|
3
|
+
// The library build (vite build) takes the classes of the components only, so
|
|
4
|
+
// library/style.css has no class that only a documentation page uses; the
|
|
5
|
+
// documentation site (npm run dev, TARGET=doc vite build) takes its pages too.
|
|
6
|
+
const libraryBuild = process.env.NODE_ENV === 'production' && process.env.TARGET !== 'doc'
|
|
7
|
+
|
|
8
|
+
/** @type {import('tailwindcss').Config} */
|
|
9
|
+
module.exports = {
|
|
10
|
+
content: [ './src/**/*.{vue,js,ts,scss}', ...(libraryBuild ? [] : [ './documentation/**/*.{vue,scss}' ]) ],
|
|
11
|
+
plugins: [
|
|
12
|
+
require('tailwindcss/plugin')(({ addUtilities }) => {
|
|
13
|
+
addUtilities({
|
|
14
|
+
'.justify-normal': {
|
|
15
|
+
justifyContent: 'normal'
|
|
16
|
+
},
|
|
17
|
+
// The box of a one-line label ends at the top of its capitals
|
|
18
|
+
// and at its baseline, so a control that centres the box
|
|
19
|
+
// centres the capitals. Browsers without text-box keep the
|
|
20
|
+
// line box. The letters reach out of the box, so a label that
|
|
21
|
+
// truncates clips sideways only: overflow-x: clip, and min-w-0
|
|
22
|
+
// for a flex item, which overflow: hidden used to give it.
|
|
23
|
+
'.text-box-cap': {
|
|
24
|
+
textBox: 'trim-both cap alphabetic'
|
|
25
|
+
}
|
|
26
|
+
})
|
|
27
|
+
})
|
|
28
|
+
],
|
|
29
|
+
theme: {
|
|
30
|
+
fontFamily: {
|
|
31
|
+
main: [ 'Rubik', 'system-ui', 'sans-serif' ]
|
|
32
|
+
},
|
|
33
|
+
screens: {
|
|
34
|
+
sm: '680px',
|
|
35
|
+
md: '960px',
|
|
36
|
+
lg: '1264px',
|
|
37
|
+
xl: '1680px',
|
|
38
|
+
xxl: '1900px'
|
|
39
|
+
},
|
|
40
|
+
colors: schemeColors,
|
|
41
|
+
borderColor: schemeColors,
|
|
42
|
+
backgroundColor: schemeColors,
|
|
43
|
+
boxShadow: {
|
|
44
|
+
none: 'none',
|
|
45
|
+
// Elevation (_foundations.scss --vc-shadow-*)
|
|
46
|
+
raised: 'var(--vc-shadow-raised)',
|
|
47
|
+
overlay: 'var(--vc-shadow-overlay)',
|
|
48
|
+
card: '0px 0px 5px color-mix(in srgb, var(--vc-shadow-color) 12%, transparent)',
|
|
49
|
+
'card-no-active': '0px 0px 5px var(--vc-content-disabled)',
|
|
50
|
+
'table-header': '0 1px 0 0 color-mix(in srgb, var(--vc-shadow-color) 7%, transparent)',
|
|
51
|
+
// Focus: the one ring (_foundations.scss --vc-focus-ring); focus-inner draws it inside
|
|
52
|
+
focus: 'var(--vc-focus-ring)',
|
|
53
|
+
'focus-inner': 'inset 0 0 0 var(--vc-focus-ring-width) var(--vc-ring)',
|
|
54
|
+
'hover-inner': 'inset 0 0 3px var(--vc-action-primary--hover)',
|
|
55
|
+
'hover-outer': '0 0 3px var(--vc-action-primary--hover)',
|
|
56
|
+
'focus-outer-off': '0 0 3px var(--vc-content-secondary)',
|
|
57
|
+
'hover-outer-off': '0 0 3px var(--vc-content-tertiary)',
|
|
58
|
+
// The hover glow of each fill of the scheme, in its hover colour: hover-outer-primary, hover-outer-danger, …
|
|
59
|
+
...Object.fromEntries(Object.entries(schemeColors.action).map(([ fill, states ]) => [ `hover-outer-${fill}`, `0 0 3px ${states.hover}` ])),
|
|
60
|
+
'view-switcher': '0px 0px 4px var(--vc-bg-overlay)',
|
|
61
|
+
'vertical-tab-scroll': 'inset 0 0 8px var(--vc-bg-surface)',
|
|
62
|
+
'vertical-tab-item': '0 1px 6px color-mix(in srgb, var(--vc-shadow-color) 12%, transparent)',
|
|
63
|
+
'vertical-tab-item-hover': 'var(--vc-shadow-raised)',
|
|
64
|
+
table: '0px 0px 5px color-mix(in srgb, var(--vc-shadow-color) 12%, transparent)',
|
|
65
|
+
'table-row': '0 10px 10px -12px color-mix(in srgb, var(--vc-shadow-color) 7%, transparent)'
|
|
66
|
+
},
|
|
67
|
+
fontSize: {
|
|
68
|
+
xxs: '0.65rem',
|
|
69
|
+
xs: '0.75rem',
|
|
70
|
+
sm: '0.875rem',
|
|
71
|
+
base: '1rem',
|
|
72
|
+
lg: '1.125rem',
|
|
73
|
+
xl: '1.25rem',
|
|
74
|
+
'2xl': '1.5rem',
|
|
75
|
+
'3xl': '2rem',
|
|
76
|
+
'4xl': '2.25rem',
|
|
77
|
+
'5xl': '2.5rem',
|
|
78
|
+
'6xl': '3rem'
|
|
79
|
+
},
|
|
80
|
+
fill: schemeColors,
|
|
81
|
+
stroke: schemeColors,
|
|
82
|
+
borderRadius: {
|
|
83
|
+
none: '0',
|
|
84
|
+
full: '9999px',
|
|
85
|
+
// The radius roles (_foundations.scss --vc-radius-*)
|
|
86
|
+
control: 'var(--vc-radius-control)',
|
|
87
|
+
// A control at the small size (--vc-size-control-sm)
|
|
88
|
+
'control-sm': 'var(--vc-radius-control-sm)',
|
|
89
|
+
popup: 'var(--vc-radius-popup)',
|
|
90
|
+
card: 'var(--vc-radius-card)',
|
|
91
|
+
tag: 'var(--vc-radius-tag)',
|
|
92
|
+
inner: 'var(--vc-radius-inner)'
|
|
93
|
+
},
|
|
94
|
+
extend: {
|
|
95
|
+
// For text whose weight changes with its state (selected, active):
|
|
96
|
+
// the weight moves with the colour instead of jumping.
|
|
97
|
+
transitionProperty: {
|
|
98
|
+
weight: 'font-weight, color, background-color'
|
|
99
|
+
},
|
|
100
|
+
// The three weights of the components' text, from _foundations.scss
|
|
101
|
+
// (--vc-font-weight-*); the other weights are Tailwind's.
|
|
102
|
+
fontWeight: {
|
|
103
|
+
normal: 'var(--vc-font-weight-normal)',
|
|
104
|
+
medium: 'var(--vc-font-weight-medium)',
|
|
105
|
+
semibold: 'var(--vc-font-weight-semibold)'
|
|
106
|
+
},
|
|
107
|
+
inset: {
|
|
108
|
+
unset: 'unset'
|
|
109
|
+
},
|
|
110
|
+
minWidth: {
|
|
111
|
+
auto: 'auto',
|
|
112
|
+
xs: '20rem',
|
|
113
|
+
sm: '24rem',
|
|
114
|
+
md: '28rem',
|
|
115
|
+
lg: '32rem',
|
|
116
|
+
xl: '36rem',
|
|
117
|
+
'1/4': '25%',
|
|
118
|
+
'1/2': '50%',
|
|
119
|
+
'3/4': '75%',
|
|
120
|
+
screen: '100vw'
|
|
121
|
+
},
|
|
122
|
+
minHeight: {
|
|
123
|
+
2: '2rem',
|
|
124
|
+
5.5: '1.375rem',
|
|
125
|
+
6.5: '1.625rem',
|
|
126
|
+
8: '2rem',
|
|
127
|
+
screen: '100vh',
|
|
128
|
+
inherit: 'inherit'
|
|
129
|
+
},
|
|
130
|
+
maxWidth: {
|
|
131
|
+
'1/2': '50%',
|
|
132
|
+
screen: '100vw'
|
|
133
|
+
},
|
|
134
|
+
maxHeight: {
|
|
135
|
+
inherit: 'inherit'
|
|
136
|
+
},
|
|
137
|
+
height: {
|
|
138
|
+
0.5: '2px',
|
|
139
|
+
'fit-content': 'fit-content',
|
|
140
|
+
'modal-wizard': '680px'
|
|
141
|
+
},
|
|
142
|
+
spacing: {
|
|
143
|
+
15: '3.75rem',
|
|
144
|
+
unset: 'unset'
|
|
145
|
+
},
|
|
146
|
+
width: {},
|
|
147
|
+
lineHeight: {
|
|
148
|
+
'40px': '40px'
|
|
149
|
+
},
|
|
150
|
+
zIndex: {
|
|
151
|
+
1: 1,
|
|
152
|
+
5: 5
|
|
153
|
+
},
|
|
154
|
+
rotate: {
|
|
155
|
+
135: '135deg',
|
|
156
|
+
225: '225deg'
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
safelist: [
|
|
161
|
+
// Essential text sizes
|
|
162
|
+
{
|
|
163
|
+
pattern: /text-(xxs|xs|sm|base|lg|2xl|3xl|4xl|5xl|6xl)/,
|
|
164
|
+
variants: [ 'hover', 'focus' ]
|
|
165
|
+
},
|
|
166
|
+
// Essential fonts
|
|
167
|
+
'font-main',
|
|
168
|
+
// Essential colour classes for dynamic theming (the action colours)
|
|
169
|
+
{
|
|
170
|
+
pattern: /^(text|bg|border)-action-(primary|secondary|info|success|warning|danger)$/,
|
|
171
|
+
variants: [ 'hover', 'focus' ]
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
variants: {
|
|
175
|
+
backgroundColor: [ 'responsive', 'hover', 'focus', 'active' ]
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
/package/library/assets/node_modules/element-plus/theme-chalk/src/{date-picker.css → tooltip.css}
RENAMED
|
File without changes
|