@fastkit/vui 0.6.36 → 0.6.40
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/tool/index.js +3 -0
- package/dist/tool/vite-plugin.d.ts.map +1 -1
- package/dist/vui.cjs.js +214 -19
- package/dist/vui.cjs.prod.js +214 -19
- package/dist/vui.css +69 -17
- package/dist/vui.d.ts +3609 -17
- package/dist/vui.esm-bundler.js +214 -21
- package/dist/vui.min.css +1 -1
- package/dist/vui.min.css.map +1 -1
- package/package.json +8 -7
- package/src/.DS_Store +0 -0
- package/src/assets/.DS_Store +0 -0
- package/src/assets/builtins/color-scheme.ts +9 -0
- package/src/assets/builtins/media-match.ts +3 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/VAccordion/VAccordion.scss +2 -0
- package/src/components/VAccordion/VAccordion.tsx +5 -0
- package/src/components/VAccordion/index.ts +1 -0
- package/src/components/VApp/VApp.tsx +17 -0
- package/src/components/VApp/index.ts +1 -0
- package/src/components/VBreadcrumbs/VBreadcrumbs.scss +61 -0
- package/src/components/VBreadcrumbs/VBreadcrumbs.tsx +137 -0
- package/src/components/VBreadcrumbs/index.ts +1 -0
- package/src/components/VButton/.DS_Store +0 -0
- package/src/components/VButton/VButton.scss +137 -0
- package/src/components/VButton/VButton.tsx +148 -0
- package/src/components/VButton/VButtonGroup.scss +23 -0
- package/src/components/VButton/VButtonGroup.tsx +81 -0
- package/src/components/VButton/index.ts +2 -0
- package/src/components/VCard/VCard.scss +3 -0
- package/src/components/VCard/VCard.tsx +20 -0
- package/src/components/VCard/VCardActions.scss +10 -0
- package/src/components/VCard/VCardActions.tsx +16 -0
- package/src/components/VCard/VCardContent.scss +3 -0
- package/src/components/VCard/VCardContent.tsx +16 -0
- package/src/components/VCard/index.ts +3 -0
- package/src/components/VCheckable/VCheckable.scss +103 -0
- package/src/components/VCheckable/VCheckable.tsx +60 -0
- package/src/components/VCheckable/index.ts +1 -0
- package/src/components/VCheckbox/VCheckbox.scss +56 -0
- package/src/components/VCheckbox/VCheckbox.tsx +63 -0
- package/src/components/VCheckbox/index.ts +1 -0
- package/src/components/VCheckboxGroup/.DS_Store +0 -0
- package/src/components/VCheckboxGroup/VCheckboxGroup.tsx +11 -0
- package/src/components/VCheckboxGroup/index.ts +1 -0
- package/src/components/VContentSwitcher/VContentSwitcher.scss +73 -0
- package/src/components/VContentSwitcher/VContentSwitcher.tsx +156 -0
- package/src/components/VContentSwitcher/index.ts +1 -0
- package/src/components/VControlField/VControlField.scss +183 -0
- package/src/components/VControlField/VControlField.tsx +152 -0
- package/src/components/VControlField/index.ts +1 -0
- package/src/components/VDataTable/VDataTable.scss +230 -0
- package/src/components/VDataTable/VDataTable.tsx +761 -0
- package/src/components/VDataTable/index.ts +1 -0
- package/src/components/VDrawerLayout/VDrawerLayout.scss +26 -0
- package/src/components/VDrawerLayout/VDrawerLayout.tsx +35 -0
- package/src/components/VDrawerLayout/index.ts +1 -0
- package/src/components/VForm/VForm.tsx +77 -0
- package/src/components/VForm/index.ts +1 -0
- package/src/components/VFormControl/VFormControl.scss +59 -0
- package/src/components/VFormControl/VFormControl.tsx +85 -0
- package/src/components/VFormControl/index.ts +1 -0
- package/src/components/VGrid/VGridContainer.scss +4 -0
- package/src/components/VGrid/VGridContainer.tsx +191 -0
- package/src/components/VGrid/VGridItem.scss +3 -0
- package/src/components/VGrid/VGridItem.tsx +110 -0
- package/src/components/VGrid/index.ts +2 -0
- package/src/components/VGrid/schemes.ts +28 -0
- package/src/components/VHero/.DS_Store +0 -0
- package/src/components/VHero/VHero.scss +26 -0
- package/src/components/VHero/VHero.tsx +52 -0
- package/src/components/VHero/index.ts +1 -0
- package/src/components/VIcon/VIcon.scss +22 -0
- package/src/components/VIcon/VIcon.tsx +110 -0
- package/src/components/VIcon/index.ts +1 -0
- package/src/components/VListTile/VListTile.scss +71 -0
- package/src/components/VListTile/VListTile.tsx +121 -0
- package/src/components/VListTile/index.ts +1 -0
- package/src/components/VNavigation/VNavigation.scss +12 -0
- package/src/components/VNavigation/VNavigation.tsx +79 -0
- package/src/components/VNavigation/VNavigationItem.scss +14 -0
- package/src/components/VNavigation/VNavigationItem.tsx +252 -0
- package/src/components/VNavigation/index.ts +2 -0
- package/src/components/VOption/VOption.scss +61 -0
- package/src/components/VOption/VOption.tsx +52 -0
- package/src/components/VOption/index.ts +1 -0
- package/src/components/VOptionGroup/VOptionGroup.scss +3 -0
- package/src/components/VOptionGroup/VOptionGroup.tsx +55 -0
- package/src/components/VOptionGroup/index.ts +1 -0
- package/src/components/VPagination/VPagination.scss +100 -0
- package/src/components/VPagination/VPagination.tsx +346 -0
- package/src/components/VPagination/index.ts +1 -0
- package/src/components/VPaper/VPaper.scss +37 -0
- package/src/components/VPaper/VPaper.tsx +78 -0
- package/src/components/VPaper/index.ts +1 -0
- package/src/components/VRadio/.DS_Store +0 -0
- package/src/components/VRadio/VRadio.scss +66 -0
- package/src/components/VRadio/VRadio.tsx +56 -0
- package/src/components/VRadio/index.ts +1 -0
- package/src/components/VRadioGroup/.DS_Store +0 -0
- package/src/components/VRadioGroup/VRadioGroup.tsx +10 -0
- package/src/components/VRadioGroup/index.ts +1 -0
- package/src/components/VSelect/VSelect.scss +78 -0
- package/src/components/VSelect/VSelect.tsx +204 -0
- package/src/components/VSelect/index.ts +1 -0
- package/src/components/VSwitch/VSwitch.scss +125 -0
- package/src/components/VSwitch/VSwitch.tsx +66 -0
- package/src/components/VSwitch/index.ts +1 -0
- package/src/components/VSwitchGroup/.DS_Store +0 -0
- package/src/components/VSwitchGroup/VSwitchGroup.tsx +11 -0
- package/src/components/VSwitchGroup/index.ts +1 -0
- package/src/components/VTabs/.DS_Store +0 -0
- package/src/components/VTabs/VTab.scss +73 -0
- package/src/components/VTabs/VTab.tsx +88 -0
- package/src/components/VTabs/VTabs.scss +49 -0
- package/src/components/VTabs/VTabs.tsx +315 -0
- package/src/components/VTabs/index.ts +1 -0
- package/src/components/VTextCounter/VTextCounter.scss +3 -0
- package/src/components/VTextCounter/VTextCounter.tsx +21 -0
- package/src/components/VTextCounter/index.ts +1 -0
- package/src/components/VTextField/VTextField.scss +45 -0
- package/src/components/VTextField/VTextField.tsx +96 -0
- package/src/components/VTextField/index.ts +1 -0
- package/src/components/VTextarea/VTextarea.scss +41 -0
- package/src/components/VTextarea/VTextarea.tsx +93 -0
- package/src/components/VTextarea/index.ts +1 -0
- package/src/components/VToolbar/.DS_Store +0 -0
- package/src/components/VToolbar/VToolbar.scss +26 -0
- package/src/components/VToolbar/VToolbar.tsx +44 -0
- package/src/components/VToolbar/VToolbarEdge.scss +27 -0
- package/src/components/VToolbar/VToolbarEdge.tsx +35 -0
- package/src/components/VToolbar/VToolbarMenu.scss +7 -0
- package/src/components/VToolbar/VToolbarMenu.tsx +26 -0
- package/src/components/VToolbar/VToolbarTitle.scss +22 -0
- package/src/components/VToolbar/VToolbarTitle.tsx +25 -0
- package/src/components/VToolbar/index.ts +4 -0
- package/src/components/VWysiwygEditor/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/VWysiwygEditor.scss +60 -0
- package/src/components/VWysiwygEditor/VWysiwygEditor.tsx +293 -0
- package/src/components/VWysiwygEditor/index.ts +2 -0
- package/src/components/VWysiwygEditor/schemes.ts +65 -0
- package/src/components/VWysiwygEditor/tools/bullet-list.ts +18 -0
- package/src/components/VWysiwygEditor/tools/format-bold.ts +19 -0
- package/src/components/VWysiwygEditor/tools/format-italic.ts +18 -0
- package/src/components/VWysiwygEditor/tools/format-underline.ts +18 -0
- package/src/components/VWysiwygEditor/tools/history.ts +26 -0
- package/src/components/VWysiwygEditor/tools/index.ts +8 -0
- package/src/components/VWysiwygEditor/tools/link.ts +57 -0
- package/src/components/VWysiwygEditor/tools/ordered-list.ts +21 -0
- package/src/components/VWysiwygEditor/tools/text-color.ts +14 -0
- package/src/components/index.ts +32 -0
- package/src/components/kits.ts +1 -0
- package/src/components/loading.ts +1 -0
- package/src/composables/.DS_Store +0 -0
- package/src/composables/control.ts +118 -0
- package/src/composables/elevation.ts +34 -0
- package/src/composables/form-selector.scss +11 -0
- package/src/composables/form-selector.tsx +101 -0
- package/src/composables/index.ts +4 -0
- package/src/composables/vui.ts +9 -0
- package/src/index.ts +10 -0
- package/src/injections.ts +61 -0
- package/src/logger.ts +7 -0
- package/src/plugin.tsx +76 -0
- package/src/schemes/control.ts +7 -0
- package/src/schemes/elevation.ts +26 -0
- package/src/schemes/index.ts +2 -0
- package/src/service.tsx +242 -0
- package/src/styles/.DS_Store +0 -0
- package/src/styles/after-effects/display-flow.scss +346 -0
- package/src/styles/after-effects/spacing.scss +155 -0
- package/src/styles/after-effects/text.scss +90 -0
- package/src/styles/after-effects.scss +3 -0
- package/src/styles/base.scss +14 -0
- package/src/styles/control.scss +11 -0
- package/src/styles/core/functions.scss +62 -0
- package/src/styles/core/typo.scss +56 -0
- package/src/styles/core.scss +2 -0
- package/src/styles/elevation.scss +9 -0
- package/src/styles/group.scss +57 -0
- package/src/styles/index.scss +9 -0
- package/src/styles/transition.scss +11 -0
- package/src/styles/typo.scss +11 -0
- package/src/styles/variables.scss +320 -0
- package/src/styles/wysiwyg.scss +24 -0
- package/src/tool/.DS_Store +0 -0
- package/src/tool/index.ts +2 -0
- package/src/tool/vite-plugin.ts +281 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--root-em: 16px;
|
|
3
|
+
--root-spacing: 8px;
|
|
4
|
+
|
|
5
|
+
// =============================================
|
|
6
|
+
// transitions
|
|
7
|
+
// =============================================
|
|
8
|
+
--transition-fast-out-slow-in: cubic-bezier(0.4, 0, 0.2, 1);
|
|
9
|
+
--transition-linear-out-slow-in: cubic-bezier(0, 0, 0.2, 1);
|
|
10
|
+
--transition-fast-out-linear-in: cubic-bezier(0.4, 0, 1, 1);
|
|
11
|
+
--transition-ease-in-out: cubic-bezier(0.4, 0, 0.6, 1);
|
|
12
|
+
--transition-fast-in-fast-out: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
13
|
+
--transition-swing: cubic-bezier(0.25, 0.8, 0.5, 1);
|
|
14
|
+
--transition-primary: var(--transition-swing);
|
|
15
|
+
--transition-tab: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
|
|
16
|
+
--transition-fade: 0.2s;
|
|
17
|
+
|
|
18
|
+
// =============================================
|
|
19
|
+
// typographies
|
|
20
|
+
// =============================================
|
|
21
|
+
--typo-fallback-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
22
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
23
|
+
--type-emoji-font: 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
24
|
+
--typo-font: var(--typo-base-font), var(--typo-fallback-font),
|
|
25
|
+
var(--type-emoji-font);
|
|
26
|
+
|
|
27
|
+
// base
|
|
28
|
+
--typo-base-size: 1rem;
|
|
29
|
+
--typo-base-weight: 400;
|
|
30
|
+
--typo-base-height: 1.5;
|
|
31
|
+
--typo-base-spacing: 0em;
|
|
32
|
+
|
|
33
|
+
// h1
|
|
34
|
+
--typo-h1-size: 2.5rem;
|
|
35
|
+
--typo-h1-weight: 500;
|
|
36
|
+
--typo-h1-height: 1.2222222222222223;
|
|
37
|
+
--typo-h1-spacing: 0em;
|
|
38
|
+
--typo-h1-margin: 16px 0;
|
|
39
|
+
--typo-h1-color: var(--palette-heading);
|
|
40
|
+
|
|
41
|
+
// h2
|
|
42
|
+
--typo-h2-size: 1.875rem;
|
|
43
|
+
--typo-h2-weight: 500;
|
|
44
|
+
--typo-h2-height: 1.5;
|
|
45
|
+
--typo-h2-spacing: 0em;
|
|
46
|
+
--typo-h2-margin: 40px 0 10px;
|
|
47
|
+
--typo-h2-color: var(--palette-heading);
|
|
48
|
+
|
|
49
|
+
// h3
|
|
50
|
+
--typo-h3-size: 1.25rem;
|
|
51
|
+
--typo-h3-weight: 500;
|
|
52
|
+
--typo-h3-height: 1.5;
|
|
53
|
+
--typo-h3-spacing: 0em;
|
|
54
|
+
--typo-h3-margin: 20px 0 10px;
|
|
55
|
+
--typo-h3-color: var(--palette-heading);
|
|
56
|
+
|
|
57
|
+
// h4
|
|
58
|
+
--typo-h4-size: 1.25rem;
|
|
59
|
+
--typo-h4-weight: 400;
|
|
60
|
+
--typo-h4-height: 1.5;
|
|
61
|
+
--typo-h4-spacing: 0em;
|
|
62
|
+
--typo-h4-margin: 10px 0 16px;
|
|
63
|
+
--typo-h4-color: var(--palette-heading);
|
|
64
|
+
|
|
65
|
+
// h5
|
|
66
|
+
--typo-h5-size: 0.875rem;
|
|
67
|
+
--typo-h5-weight: 400;
|
|
68
|
+
--typo-h5-height: 1.57;
|
|
69
|
+
--typo-h5-spacing: 0em;
|
|
70
|
+
--typo-h5-margin: 10px 0 16px;
|
|
71
|
+
--typo-h5-color: var(--palette-heading);
|
|
72
|
+
|
|
73
|
+
// h6
|
|
74
|
+
--typo-h6-size: 0.67rem;
|
|
75
|
+
--typo-h6-weight: 400;
|
|
76
|
+
--typo-h6-height: 1.5;
|
|
77
|
+
--typo-h6-spacing: 0em;
|
|
78
|
+
--typo-h6-margin: 10px 0 16px;
|
|
79
|
+
--typo-h6-color: var(--palette-heading);
|
|
80
|
+
|
|
81
|
+
// subtitle1
|
|
82
|
+
--typo-subtitle1-size: 1rem;
|
|
83
|
+
--typo-subtitle1-weight: 400;
|
|
84
|
+
--typo-subtitle1-height: 1.75;
|
|
85
|
+
--typo-subtitle1-spacing: 0.00938em;
|
|
86
|
+
|
|
87
|
+
// subtitle2
|
|
88
|
+
--typo-subtitle2-size: 0.875rem;
|
|
89
|
+
--typo-subtitle2-weight: 500;
|
|
90
|
+
--typo-subtitle2-height: 1.57;
|
|
91
|
+
--typo-subtitle2-spacing: 0.00714em;
|
|
92
|
+
|
|
93
|
+
// small
|
|
94
|
+
--typo-sm-size: calc(var(--root-em) * 0.875);
|
|
95
|
+
|
|
96
|
+
// // body1
|
|
97
|
+
// --typo-body1-size: 1rem;
|
|
98
|
+
// --typo-body1-weight: 400;
|
|
99
|
+
// --typo-body1-height: 1.5;
|
|
100
|
+
// --typo-body1-spacing: 0.00938em;
|
|
101
|
+
|
|
102
|
+
// // body2
|
|
103
|
+
// --typo-body2-size: 0.875rem;
|
|
104
|
+
// --typo-body2-weight: 400;
|
|
105
|
+
// --typo-body2-height: 1.43;
|
|
106
|
+
// --typo-body2-spacing: 0.01071em;
|
|
107
|
+
|
|
108
|
+
// // button
|
|
109
|
+
// --typo-button-size: 0.875rem;
|
|
110
|
+
// --typo-button-weight: 500;
|
|
111
|
+
// --typo-button-height: 1.75;
|
|
112
|
+
// --typo-button-spacing: 0.02857em;
|
|
113
|
+
|
|
114
|
+
// // caption
|
|
115
|
+
// --typo-caption-size: 0.75rem;
|
|
116
|
+
// --typo-caption-weight: 400;
|
|
117
|
+
// --typo-caption-height: 1.66;
|
|
118
|
+
// --typo-caption-spacing: 0.03333em;
|
|
119
|
+
|
|
120
|
+
// // overline
|
|
121
|
+
// --typo-overline-size: 0.75rem;
|
|
122
|
+
// --typo-overline-weight: 400;
|
|
123
|
+
// --typo-overline-height: 2.66;
|
|
124
|
+
// --typo-overline-spacing: 0.08333em;
|
|
125
|
+
|
|
126
|
+
// =============================================
|
|
127
|
+
// controls
|
|
128
|
+
// =============================================
|
|
129
|
+
|
|
130
|
+
// control-field-height
|
|
131
|
+
--control-field-rem-sm: 0.875rem; // 14
|
|
132
|
+
--control-field-rem-md: 1rem; // 16
|
|
133
|
+
--control-field-rem-lg: 1.125rem; // 18
|
|
134
|
+
|
|
135
|
+
// control defaults
|
|
136
|
+
--control-disabled-color: rgba(0, 0, 0, 0.38);
|
|
137
|
+
--control-horizontal-margin: 0.5em; // 16
|
|
138
|
+
--control-field-radius: 2px;
|
|
139
|
+
--control-field-fill-color: rgba(0, 0, 0, 0.06);
|
|
140
|
+
--control-field-fill-hover-color: rgba(0, 0, 0, 0.09);
|
|
141
|
+
--control-field-outline-color: rgba(114, 106, 106, 0.23);
|
|
142
|
+
--control-field-outline-hover-color: rgba(0, 0, 0, 0.87);
|
|
143
|
+
--control-field-bottom-color: rgba(0, 0, 0, 0.42);
|
|
144
|
+
--control-field-bottom-hover-color: rgba(0, 0, 0, 0.87);
|
|
145
|
+
--control-field-height: 2.25em;
|
|
146
|
+
--control-field-line-height: 1.4375em;
|
|
147
|
+
--control-field-letter-spacing: 0.00938em;
|
|
148
|
+
--control-label-color: rgba(0, 0, 0, 0.6);
|
|
149
|
+
--control-label-font-weight: 500;
|
|
150
|
+
--control-label-font-size: 0.75em; // 12
|
|
151
|
+
--control-label-height: 1.4375em;
|
|
152
|
+
--control-message-color: rgba(0, 0, 0, 0.6);
|
|
153
|
+
--control-message-font-size: 0.75em; // 12
|
|
154
|
+
--control-message-horizontal-margin: calc(var(--root-spacing) * 0.5);
|
|
155
|
+
--control-checkable-outer-size: 2em; // 42
|
|
156
|
+
--control-checkable-icon-size: 1em; // 20
|
|
157
|
+
--control-checkable-faux-scale: 1.2;
|
|
158
|
+
--control-checkable-faux-margin: 0.2em;
|
|
159
|
+
--control-checkable-base-color: rgba(0, 0, 0, 0.6);
|
|
160
|
+
--control-switch-width: 3.625em; // 58
|
|
161
|
+
--control-switch-track-width: 2.125em; // 34
|
|
162
|
+
--control-switch-track-height: 0.875em; // 14
|
|
163
|
+
|
|
164
|
+
// =============================================
|
|
165
|
+
// wysiwygs
|
|
166
|
+
// =============================================
|
|
167
|
+
--wysiwyg-min-height-sm: 3em;
|
|
168
|
+
--wysiwyg-min-height-md: 6em;
|
|
169
|
+
--wysiwyg-min-height-lg: 9em;
|
|
170
|
+
--wysiwyg-max-height-sm: 9em;
|
|
171
|
+
--wysiwyg-max-height-md: 13em;
|
|
172
|
+
--wysiwyg-max-height-lg: 16em;
|
|
173
|
+
|
|
174
|
+
// shadows
|
|
175
|
+
--shadow-key-umbra-opacity: rgba(0, 0, 0, 0.2);
|
|
176
|
+
--shadow-key-penumbra-opacity: rgba(0, 0, 0, 0.14);
|
|
177
|
+
--shadow-key-ambient-opacity: rgba(0, 0, 0, 0.12);
|
|
178
|
+
|
|
179
|
+
// shadows(umbra)
|
|
180
|
+
--shadow-key-umbra-0: 0px 0px 0px 0px var(--shadow-key-umbra-opacity);
|
|
181
|
+
--shadow-key-umbra-1: 0px 2px 1px -1px var(--shadow-key-umbra-opacity);
|
|
182
|
+
--shadow-key-umbra-2: 0px 3px 1px -2px var(--shadow-key-umbra-opacity);
|
|
183
|
+
--shadow-key-umbra-3: 0px 3px 3px -2px var(--shadow-key-umbra-opacity);
|
|
184
|
+
--shadow-key-umbra-4: 0px 2px 4px -1px var(--shadow-key-umbra-opacity);
|
|
185
|
+
--shadow-key-umbra-5: 0px 3px 5px -1px var(--shadow-key-umbra-opacity);
|
|
186
|
+
--shadow-key-umbra-6: 0px 3px 5px -1px var(--shadow-key-umbra-opacity);
|
|
187
|
+
--shadow-key-umbra-7: 0px 4px 5px -2px var(--shadow-key-umbra-opacity);
|
|
188
|
+
--shadow-key-umbra-8: 0px 5px 5px -3px var(--shadow-key-umbra-opacity);
|
|
189
|
+
--shadow-key-umbra-9: 0px 5px 6px -3px var(--shadow-key-umbra-opacity);
|
|
190
|
+
--shadow-key-umbra-10: 0px 6px 6px -3px var(--shadow-key-umbra-opacity);
|
|
191
|
+
--shadow-key-umbra-11: 0px 6px 7px -4px var(--shadow-key-umbra-opacity);
|
|
192
|
+
--shadow-key-umbra-12: 0px 7px 8px -4px var(--shadow-key-umbra-opacity);
|
|
193
|
+
--shadow-key-umbra-13: 0px 7px 8px -4px var(--shadow-key-umbra-opacity);
|
|
194
|
+
--shadow-key-umbra-14: 0px 7px 9px -4px var(--shadow-key-umbra-opacity);
|
|
195
|
+
--shadow-key-umbra-15: 0px 8px 9px -5px var(--shadow-key-umbra-opacity);
|
|
196
|
+
--shadow-key-umbra-16: 0px 8px 10px -5px var(--shadow-key-umbra-opacity);
|
|
197
|
+
--shadow-key-umbra-17: 0px 8px 11px -5px var(--shadow-key-umbra-opacity);
|
|
198
|
+
--shadow-key-umbra-18: 0px 9px 11px -5px var(--shadow-key-umbra-opacity);
|
|
199
|
+
--shadow-key-umbra-19: 0px 9px 12px -6px var(--shadow-key-umbra-opacity);
|
|
200
|
+
--shadow-key-umbra-20: 0px 10px 13px -6px var(--shadow-key-umbra-opacity);
|
|
201
|
+
--shadow-key-umbra-21: 0px 10px 13px -6px var(--shadow-key-umbra-opacity);
|
|
202
|
+
--shadow-key-umbra-22: 0px 10px 14px -6px var(--shadow-key-umbra-opacity);
|
|
203
|
+
--shadow-key-umbra-23: 0px 11px 14px -7px var(--shadow-key-umbra-opacity);
|
|
204
|
+
--shadow-key-umbra-24: 0px 11px 15px -7px var(--shadow-key-umbra-opacity);
|
|
205
|
+
|
|
206
|
+
// shadows(penumbra)
|
|
207
|
+
--shadow-key-penumbra-0: 0px 0px 0px 0px var(--shadow-key-penumbra-opacity);
|
|
208
|
+
--shadow-key-penumbra-1: 0px 1px 1px 0px var(--shadow-key-penumbra-opacity);
|
|
209
|
+
--shadow-key-penumbra-2: 0px 2px 2px 0px var(--shadow-key-penumbra-opacity);
|
|
210
|
+
--shadow-key-penumbra-3: 0px 3px 4px 0px var(--shadow-key-penumbra-opacity);
|
|
211
|
+
--shadow-key-penumbra-4: 0px 4px 5px 0px var(--shadow-key-penumbra-opacity);
|
|
212
|
+
--shadow-key-penumbra-5: 0px 5px 8px 0px var(--shadow-key-penumbra-opacity);
|
|
213
|
+
--shadow-key-penumbra-6: 0px 6px 10px 0px var(--shadow-key-penumbra-opacity);
|
|
214
|
+
--shadow-key-penumbra-7: 0px 7px 10px 1px var(--shadow-key-penumbra-opacity);
|
|
215
|
+
--shadow-key-penumbra-8: 0px 8px 10px 1px var(--shadow-key-penumbra-opacity);
|
|
216
|
+
--shadow-key-penumbra-9: 0px 9px 12px 1px var(--shadow-key-penumbra-opacity);
|
|
217
|
+
--shadow-key-penumbra-10: 0px 10px 14px 1px var(--shadow-key-penumbra-opacity);
|
|
218
|
+
--shadow-key-penumbra-11: 0px 11px 15px 1px var(--shadow-key-penumbra-opacity);
|
|
219
|
+
--shadow-key-penumbra-12: 0px 12px 17px 2px var(--shadow-key-penumbra-opacity);
|
|
220
|
+
--shadow-key-penumbra-13: 0px 13px 19px 2px var(--shadow-key-penumbra-opacity);
|
|
221
|
+
--shadow-key-penumbra-14: 0px 14px 21px 2px var(--shadow-key-penumbra-opacity);
|
|
222
|
+
--shadow-key-penumbra-15: 0px 15px 22px 2px var(--shadow-key-penumbra-opacity);
|
|
223
|
+
--shadow-key-penumbra-16: 0px 16px 24px 2px var(--shadow-key-penumbra-opacity);
|
|
224
|
+
--shadow-key-penumbra-17: 0px 17px 26px 2px var(--shadow-key-penumbra-opacity);
|
|
225
|
+
--shadow-key-penumbra-18: 0px 18px 28px 2px var(--shadow-key-penumbra-opacity);
|
|
226
|
+
--shadow-key-penumbra-19: 0px 19px 29px 2px var(--shadow-key-penumbra-opacity);
|
|
227
|
+
--shadow-key-penumbra-20: 0px 20px 31px 3px var(--shadow-key-penumbra-opacity);
|
|
228
|
+
--shadow-key-penumbra-21: 0px 21px 33px 3px var(--shadow-key-penumbra-opacity);
|
|
229
|
+
--shadow-key-penumbra-22: 0px 22px 35px 3px var(--shadow-key-penumbra-opacity);
|
|
230
|
+
--shadow-key-penumbra-23: 0px 23px 36px 3px var(--shadow-key-penumbra-opacity);
|
|
231
|
+
--shadow-key-penumbra-24: 0px 24px 38px 3px var(--shadow-key-penumbra-opacity);
|
|
232
|
+
|
|
233
|
+
// shadows(ambient)
|
|
234
|
+
--shadow-key-ambient-0: 0px 0px 0px 0px var(--shadow-key-ambient-opacity);
|
|
235
|
+
--shadow-key-ambient-1: 0px 1px 3px 0px var(--shadow-key-ambient-opacity);
|
|
236
|
+
--shadow-key-ambient-2: 0px 1px 5px 0px var(--shadow-key-ambient-opacity);
|
|
237
|
+
--shadow-key-ambient-3: 0px 1px 8px 0px var(--shadow-key-ambient-opacity);
|
|
238
|
+
--shadow-key-ambient-4: 0px 1px 10px 0px var(--shadow-key-ambient-opacity);
|
|
239
|
+
--shadow-key-ambient-5: 0px 1px 14px 0px var(--shadow-key-ambient-opacity);
|
|
240
|
+
--shadow-key-ambient-6: 0px 1px 18px 0px var(--shadow-key-ambient-opacity);
|
|
241
|
+
--shadow-key-ambient-7: 0px 2px 16px 1px var(--shadow-key-ambient-opacity);
|
|
242
|
+
--shadow-key-ambient-8: 0px 3px 14px 2px var(--shadow-key-ambient-opacity);
|
|
243
|
+
--shadow-key-ambient-9: 0px 3px 16px 2px var(--shadow-key-ambient-opacity);
|
|
244
|
+
--shadow-key-ambient-10: 0px 4px 18px 3px var(--shadow-key-ambient-opacity);
|
|
245
|
+
--shadow-key-ambient-11: 0px 4px 20px 3px var(--shadow-key-ambient-opacity);
|
|
246
|
+
--shadow-key-ambient-12: 0px 5px 22px 4px var(--shadow-key-ambient-opacity);
|
|
247
|
+
--shadow-key-ambient-13: 0px 5px 24px 4px var(--shadow-key-ambient-opacity);
|
|
248
|
+
--shadow-key-ambient-14: 0px 5px 26px 4px var(--shadow-key-ambient-opacity);
|
|
249
|
+
--shadow-key-ambient-15: 0px 6px 28px 5px var(--shadow-key-ambient-opacity);
|
|
250
|
+
--shadow-key-ambient-16: 0px 6px 30px 5px var(--shadow-key-ambient-opacity);
|
|
251
|
+
--shadow-key-ambient-17: 0px 6px 32px 5px var(--shadow-key-ambient-opacity);
|
|
252
|
+
--shadow-key-ambient-18: 0px 7px 34px 6px var(--shadow-key-ambient-opacity);
|
|
253
|
+
--shadow-key-ambient-19: 0px 7px 36px 6px var(--shadow-key-ambient-opacity);
|
|
254
|
+
--shadow-key-ambient-20: 0px 8px 38px 7px var(--shadow-key-ambient-opacity);
|
|
255
|
+
--shadow-key-ambient-21: 0px 8px 40px 7px var(--shadow-key-ambient-opacity);
|
|
256
|
+
--shadow-key-ambient-22: 0px 8px 42px 7px var(--shadow-key-ambient-opacity);
|
|
257
|
+
--shadow-key-ambient-23: 0px 9px 44px 8px var(--shadow-key-ambient-opacity);
|
|
258
|
+
--shadow-key-ambient-24: 0px 9px 46px 8px var(--shadow-key-ambient-opacity);
|
|
259
|
+
|
|
260
|
+
// toolbar
|
|
261
|
+
--toolbar-height: var(--v-app-layout-vertial-fixed-height);
|
|
262
|
+
--toolbar-dense-height: calc(var(--toolbar-height) * 0.8);
|
|
263
|
+
|
|
264
|
+
// card
|
|
265
|
+
--card-content-padding: 1rem; // 16px
|
|
266
|
+
--card-actions-padding: 0.5rem; // 8px
|
|
267
|
+
|
|
268
|
+
// pagination
|
|
269
|
+
--pagination-item-radius: 2px;
|
|
270
|
+
--pagination-item-font-size: var(--root-em);
|
|
271
|
+
--pagination-item-size: calc(var(--root-em) * 2);
|
|
272
|
+
--pagination-item-margin: calc(var(--root-em) * 0.5);
|
|
273
|
+
--pagination-item-font-size-dense: calc(
|
|
274
|
+
var(--pagination-item-font-size) * 0.625
|
|
275
|
+
);
|
|
276
|
+
--pagination-item-size-dense: calc(var(--pagination-item-size) * 0.8125);
|
|
277
|
+
--pagination-item-margin-dense: calc(var(--pagination-item-margin) * 0.75);
|
|
278
|
+
|
|
279
|
+
// table
|
|
280
|
+
--table-vertical-margin: calc(var(--root-em) * 1.25);
|
|
281
|
+
--table-font-size: calc(var(--root-em) * 0.75);
|
|
282
|
+
--table-caption-font-size: calc(var(--root-em) * 1);
|
|
283
|
+
--table-caption-font-weight: regular;
|
|
284
|
+
--table-caption-vertical-margin: calc(var(--root-em) * 0.625);
|
|
285
|
+
--table-cell-height: calc(var(--root-em) * 3.125);
|
|
286
|
+
--table-cell-vertial-padding: calc(var(--root-em) * 0.3125);
|
|
287
|
+
--table-cell-horizontal-padding: calc(var(--root-em) * 1);
|
|
288
|
+
--table-header-color: var(--palette-primary);
|
|
289
|
+
--table-header-font-weight: 500;
|
|
290
|
+
|
|
291
|
+
// tabs
|
|
292
|
+
--tabs-height: calc(var(--root-em) * 3);
|
|
293
|
+
--tabs-bar-height: calc(var(--root-em) * 0.375);
|
|
294
|
+
// --tabs-color: var(--main-color);
|
|
295
|
+
--tabs-font-size: calc(var(--root-em) * 0.875);
|
|
296
|
+
|
|
297
|
+
// breadcrumbs
|
|
298
|
+
--breadcrumbs-font-size: var(--typo-sm-size);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
:root,
|
|
302
|
+
[lang='en'] {
|
|
303
|
+
--typo-base-font: Roboto, 'Noto Sans';
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
[lang='ja'] {
|
|
307
|
+
--typo-base-font: Roboto, 'Noto Sans JP';
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
[lang='ko'] {
|
|
311
|
+
--typo-base-font: Roboto, 'Noto Sans KR';
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
[lang='zh-cmn-Hant'] {
|
|
315
|
+
--typo-base-font: Roboto, 'Noto Sans TC';
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
[lang='zh-cmn-Hans'] {
|
|
319
|
+
--typo-base-font: Roboto, 'Noto Sans SC';
|
|
320
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { Plugin } from 'vite';
|
|
2
|
+
import { dynamicSrcVitePlugin } from '@fastkit/vite-kit';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import fs from 'fs-extra';
|
|
5
|
+
import { findPackageDirSync } from '@fastkit/node-util';
|
|
6
|
+
import { RawIconFontEntry, IconFontSettings } from '@fastkit/icon-font-gen';
|
|
7
|
+
import { VuiServiceOptions } from '../service';
|
|
8
|
+
import { render } from 'eta';
|
|
9
|
+
import { VuiError } from '../logger';
|
|
10
|
+
|
|
11
|
+
const VUI_PACKAGE_DIR = path.resolve(__dirname, '../..');
|
|
12
|
+
const STYLE_AFTER_EFFECTS_PATH = path.join(
|
|
13
|
+
VUI_PACKAGE_DIR,
|
|
14
|
+
'src/styles/after-effects.scss',
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
const COLOR_DUMP_STYLE = `@include dump-color-scheme(true);`;
|
|
18
|
+
|
|
19
|
+
const TEMPLATE = `
|
|
20
|
+
/* eslint-disable */
|
|
21
|
+
// @ts-nocheck
|
|
22
|
+
<% if (!it.__dev) { %>
|
|
23
|
+
import '@fastkit/vue-stack/dist/vue-stack.css';
|
|
24
|
+
import '@fastkit/vue-app-layout/dist/vue-app-layout.css';
|
|
25
|
+
import '@fastkit/vue-loading/dist/vue-loading.css';
|
|
26
|
+
import '@fastkit/vue-scroller/dist/vue-scroller.css';
|
|
27
|
+
import '@fastkit/vui/dist/vui.css';
|
|
28
|
+
<% } %>
|
|
29
|
+
import './setup.scss';
|
|
30
|
+
import type { App } from 'vue';
|
|
31
|
+
import type { Router } from 'vue-router';
|
|
32
|
+
import { VPageLink } from '@fastkit/vue-page';
|
|
33
|
+
import { installVuiPlugin as _installVuiPlugin, VuiPluginOptions } from '@fastkit/vui';
|
|
34
|
+
import { colorScheme } from '<%~ it.colorScheme %>';
|
|
35
|
+
import '<%~ it.mediaMatch %>';
|
|
36
|
+
import './icon-font';
|
|
37
|
+
import '${STYLE_AFTER_EFFECTS_PATH}';
|
|
38
|
+
|
|
39
|
+
export function installVui(settings: { app: App, router: Router }) {
|
|
40
|
+
_installVuiPlugin(settings.app, {
|
|
41
|
+
RouterLink: VPageLink,
|
|
42
|
+
colorScheme,
|
|
43
|
+
uiSettings: <%~ it.uiSettings %>,
|
|
44
|
+
icons: <%~ it.icons %>,
|
|
45
|
+
...settings,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export default installVui;
|
|
50
|
+
`.trim();
|
|
51
|
+
|
|
52
|
+
async function renderTemplate({
|
|
53
|
+
colorScheme,
|
|
54
|
+
mediaMatch,
|
|
55
|
+
uiSettings,
|
|
56
|
+
icons,
|
|
57
|
+
__dev,
|
|
58
|
+
}: ViteVuiPluginResultSettings) {
|
|
59
|
+
const result = await render(
|
|
60
|
+
TEMPLATE,
|
|
61
|
+
{
|
|
62
|
+
colorScheme,
|
|
63
|
+
mediaMatch,
|
|
64
|
+
uiSettings: JSON.stringify(uiSettings),
|
|
65
|
+
icons: JSON.stringify(icons),
|
|
66
|
+
__dev,
|
|
67
|
+
},
|
|
68
|
+
{ async: true },
|
|
69
|
+
);
|
|
70
|
+
if (!result) {
|
|
71
|
+
throw new VuiError('template render error.');
|
|
72
|
+
}
|
|
73
|
+
return result;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function defaultDynamicDest() {
|
|
77
|
+
// const pkgDir = findPackageDirSync();
|
|
78
|
+
// if (!pkgDir) {
|
|
79
|
+
// throw new Error(`missing package directory`);
|
|
80
|
+
// }
|
|
81
|
+
// return path.join(pkgDir, '.vui');
|
|
82
|
+
return path.resolve('.vui');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function getBuiltinsDir() {
|
|
86
|
+
// const cwd = process.cwd();
|
|
87
|
+
const pkgDir = findPackageDirSync(undefined, true);
|
|
88
|
+
if (!pkgDir) {
|
|
89
|
+
throw new Error(`missing package directory`);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// For development...
|
|
93
|
+
// console.log('■■■', cwd);
|
|
94
|
+
// if (cwd.endsWith('/docs')) {
|
|
95
|
+
// const result = path.resolve(cwd, '../packages/vui/src/assets/builtins');
|
|
96
|
+
// return result;
|
|
97
|
+
// }
|
|
98
|
+
|
|
99
|
+
return path.join(pkgDir, 'node_modules/@fastkit/vui/dist/assets/builtins');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface ViteVuiPluginOptions
|
|
103
|
+
extends Partial<Pick<VuiServiceOptions, 'uiSettings' | 'icons'>> {
|
|
104
|
+
dynamicDest?: string;
|
|
105
|
+
colorScheme?: string;
|
|
106
|
+
mediaMatch?: string;
|
|
107
|
+
iconFont?: RawIconFontEntry[];
|
|
108
|
+
iconFontDefaults?: IconFontSettings;
|
|
109
|
+
onBooted?: () => any;
|
|
110
|
+
onBootError?: (err: unknown) => any;
|
|
111
|
+
__dev?: boolean;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
115
|
+
export interface ViteVuiPluginResultSettings
|
|
116
|
+
extends Pick<VuiServiceOptions, 'uiSettings' | 'icons'> {
|
|
117
|
+
colorScheme: string;
|
|
118
|
+
mediaMatch: string;
|
|
119
|
+
__dev?: boolean;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface ViteVuiPluginResult {
|
|
123
|
+
settings: ViteVuiPluginResultSettings;
|
|
124
|
+
plugins: (Plugin | Plugin[])[];
|
|
125
|
+
dest: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function viteVuiPlugin(
|
|
129
|
+
options: ViteVuiPluginOptions = {},
|
|
130
|
+
): ViteVuiPluginResult {
|
|
131
|
+
const plugins: (Plugin | Plugin[])[] = [];
|
|
132
|
+
|
|
133
|
+
const builtinsDir = getBuiltinsDir();
|
|
134
|
+
const {
|
|
135
|
+
colorScheme = path.join(builtinsDir, 'color-scheme'),
|
|
136
|
+
mediaMatch = path.join(builtinsDir, 'media-match'),
|
|
137
|
+
iconFont,
|
|
138
|
+
iconFontDefaults,
|
|
139
|
+
onBooted,
|
|
140
|
+
onBootError,
|
|
141
|
+
uiSettings = {
|
|
142
|
+
primaryScope: 'primary' as any,
|
|
143
|
+
plainVariant: 'plain' as any,
|
|
144
|
+
containedVariant: 'contained' as any,
|
|
145
|
+
errorScope: 'error' as any,
|
|
146
|
+
buttonDefault: {
|
|
147
|
+
color: 'base' as any,
|
|
148
|
+
variant: 'contained' as any,
|
|
149
|
+
},
|
|
150
|
+
tabDefault: {
|
|
151
|
+
color: 'accent' as any,
|
|
152
|
+
},
|
|
153
|
+
dialogOk: {
|
|
154
|
+
color: 'primary' as any,
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
icons = {
|
|
158
|
+
menuDown: 'mdi-menu-down' as any,
|
|
159
|
+
navigationExpand: 'mdi-menu-down' as any,
|
|
160
|
+
prev: 'mdi-chevron-left' as any,
|
|
161
|
+
next: 'mdi-chevron-right' as any,
|
|
162
|
+
sort: 'mdi-chevron-down' as any,
|
|
163
|
+
editorTextColor: 'mdi-format-color-text' as any,
|
|
164
|
+
editorformatBold: 'mdi-format-bold' as any,
|
|
165
|
+
editorformatUnderline: 'mdi-format-underline' as any,
|
|
166
|
+
editorformatItalic: 'mdi-format-italic' as any,
|
|
167
|
+
editorformatListBulleted: 'mdi-format-list-bulleted' as any,
|
|
168
|
+
editorformatListNumbered: 'mdi-format-list-numbered' as any,
|
|
169
|
+
editorLink: 'mdi-link' as any,
|
|
170
|
+
editorLinkOff: 'mdi-link-off' as any,
|
|
171
|
+
editorUndo: 'mdi-undo-variant' as any,
|
|
172
|
+
editorRedo: 'mdi-redo-variant' as any,
|
|
173
|
+
// navigationExpand: (gen, active) => {
|
|
174
|
+
// return gen({
|
|
175
|
+
// name: 'mdi-menu-down' as any,
|
|
176
|
+
// rotate: active ? 180 : 0,
|
|
177
|
+
// });
|
|
178
|
+
// },
|
|
179
|
+
...options.icons,
|
|
180
|
+
} as VuiServiceOptions['icons'],
|
|
181
|
+
__dev,
|
|
182
|
+
} = options;
|
|
183
|
+
|
|
184
|
+
let dynamicDest: string;
|
|
185
|
+
|
|
186
|
+
const { dynamicDest: _dynamicDest } = options;
|
|
187
|
+
|
|
188
|
+
if (!_dynamicDest) {
|
|
189
|
+
// if (options.__dev) {
|
|
190
|
+
// dynamicDest = path.resolve(__dirname, '../../../../docs/.vui');
|
|
191
|
+
// } else {
|
|
192
|
+
// dynamicDest = defaultDynamicDest();
|
|
193
|
+
// }
|
|
194
|
+
dynamicDest = defaultDynamicDest();
|
|
195
|
+
} else {
|
|
196
|
+
dynamicDest = _dynamicDest;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const colorSchemeSrc = path.resolve(colorScheme);
|
|
200
|
+
const colorSchemeDest = path.join(dynamicDest, 'color-scheme');
|
|
201
|
+
const mediaMatchDest = path.join(dynamicDest, 'media-match');
|
|
202
|
+
const dts = `
|
|
203
|
+
/// <reference path="./color-scheme/color-scheme.info.ts" />
|
|
204
|
+
/// <reference path="./icon-font/index.ts" />
|
|
205
|
+
/// <reference path="./media-match/media-match.ts" />
|
|
206
|
+
export {};
|
|
207
|
+
`.trim();
|
|
208
|
+
|
|
209
|
+
fs.ensureDirSync(dynamicDest);
|
|
210
|
+
fs.writeFileSync(path.join(dynamicDest, 'setup.scss'), COLOR_DUMP_STYLE);
|
|
211
|
+
fs.writeFileSync(path.join(dynamicDest, 'vui.d.ts'), dts);
|
|
212
|
+
|
|
213
|
+
let iconFontEntries: RawIconFontEntry[] = iconFont || [
|
|
214
|
+
{
|
|
215
|
+
src: '@mdi',
|
|
216
|
+
},
|
|
217
|
+
];
|
|
218
|
+
|
|
219
|
+
if (iconFontDefaults) {
|
|
220
|
+
iconFontEntries = iconFontEntries.map((entry) => {
|
|
221
|
+
return {
|
|
222
|
+
...iconFontDefaults,
|
|
223
|
+
...entry,
|
|
224
|
+
};
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
plugins.push(
|
|
229
|
+
dynamicSrcVitePlugin({
|
|
230
|
+
colorScheme: {
|
|
231
|
+
src: colorSchemeSrc,
|
|
232
|
+
dest: colorSchemeDest,
|
|
233
|
+
},
|
|
234
|
+
mediaMatch: {
|
|
235
|
+
src: path.resolve(mediaMatch),
|
|
236
|
+
dest: mediaMatchDest,
|
|
237
|
+
},
|
|
238
|
+
iconFont: {
|
|
239
|
+
entries: iconFontEntries,
|
|
240
|
+
dest: path.join(dynamicDest, 'icon-font'),
|
|
241
|
+
},
|
|
242
|
+
onBooted,
|
|
243
|
+
onBootError,
|
|
244
|
+
}),
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
const plugin: Plugin = {
|
|
248
|
+
name: 'vite:vui',
|
|
249
|
+
enforce: 'pre',
|
|
250
|
+
async config(config) {
|
|
251
|
+
await fs.writeFile(
|
|
252
|
+
path.join(dynamicDest, 'installer.ts'),
|
|
253
|
+
await renderTemplate(settings),
|
|
254
|
+
);
|
|
255
|
+
|
|
256
|
+
const ssr = (config as any).ssr || {};
|
|
257
|
+
ssr.noExternal = ssr.noExternal || [];
|
|
258
|
+
ssr.noExternal.push(/\/vui\/dist\/assets\//);
|
|
259
|
+
// ssr.noExternal.push(/\/fastkit\//);
|
|
260
|
+
|
|
261
|
+
(config as any).ssr = ssr;
|
|
262
|
+
return config;
|
|
263
|
+
},
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
plugins.push(plugin);
|
|
267
|
+
|
|
268
|
+
const settings = {
|
|
269
|
+
colorScheme: path.join(colorSchemeDest, 'color-scheme.info'),
|
|
270
|
+
mediaMatch: path.join(mediaMatchDest, 'media-match'),
|
|
271
|
+
uiSettings,
|
|
272
|
+
icons,
|
|
273
|
+
__dev,
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
return {
|
|
277
|
+
plugins,
|
|
278
|
+
dest: dynamicDest,
|
|
279
|
+
settings,
|
|
280
|
+
};
|
|
281
|
+
}
|