@voicenter-team/voicenter-ui-plus 4.0.0-beta.9 → 4.0.1

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.
Files changed (174) hide show
  1. package/MIGRATION_v3.md +196 -196
  2. package/README.md +1051 -1053
  3. package/library/assets/assets/sass/main.css +1 -1
  4. package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
  5. package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
  6. package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
  7. package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
  8. package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
  9. package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
  10. package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
  11. package/library/assets/components/VcLoading/VcLoading.css +1 -1
  12. package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
  13. package/library/assets/components/VcSegmented/VcSegmented.css +1 -1
  14. package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
  15. package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
  16. package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
  17. package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
  18. package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
  19. package/library/components/VcAgentRun/VcAgentRunCard.vue.mjs +1 -1
  20. package/library/components/VcAutocomplete/VcAutocomplete.vue.mjs +1 -1
  21. package/library/components/VcButton/VcButton.vue.mjs +2 -2
  22. package/library/components/VcButton/VcButtonIcon.vue.mjs +2 -2
  23. package/library/components/VcButton/VcToggleButton.vue.mjs +2 -2
  24. package/library/components/VcCheckbox/VcCheckbox.vue.mjs +1 -1
  25. package/library/components/VcCheckbox/VcCheckboxButton.vue.mjs +1 -1
  26. package/library/components/VcDatePicker/VcDatePicker.vue.mjs +2 -2
  27. package/library/components/VcDropdown/VcDropdownItem.vue.mjs +2 -2
  28. package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +1 -1
  29. package/library/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.mjs +1 -1
  30. package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.mjs +2 -2
  31. package/library/components/VcFileUploader/VcFileUploader.vue.mjs +2 -2
  32. package/library/components/VcFileUploader/VcFileUploaderArea.vue.mjs +2 -2
  33. package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
  34. package/library/components/VcFileUploader/VcFileUploaderSimple.vue2.mjs +2 -2
  35. package/library/components/VcFileUploader/VcSimpleUploaderAction.vue.mjs +1 -1
  36. package/library/components/VcFileUploader/VcSimpleUploaderFileList.vue.mjs +1 -1
  37. package/library/components/VcForm/UiComponents/VcInputLabel.vue.mjs +1 -1
  38. package/library/components/VcForm/VcForm.vue.mjs +1 -1
  39. package/library/components/VcForm/VcFormItem.vue.mjs +2 -2
  40. package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +1 -1
  41. package/library/components/VcHyperLink/VcHyperLink.vue.mjs +1 -1
  42. package/library/components/VcIcon/VcIcon.vue.mjs +1 -1
  43. package/library/components/VcImageUploader/VcImageUploader.vue.mjs +1 -1
  44. package/library/components/VcInput/VcInput.vue.mjs +2 -2
  45. package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -1
  46. package/library/components/VcJsonSchema/VcJsonSchema.vue.mjs +1 -1
  47. package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
  48. package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
  49. package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +2 -2
  50. package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
  51. package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
  52. package/library/components/VcLoading/Loaders/LoadIcon.vue2.mjs +1 -1
  53. package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
  54. package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +1 -1
  55. package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
  56. package/library/components/VcLoading/VcLoading.vue2.mjs +1 -1
  57. package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
  58. package/library/components/VcMdEditor/VcMdEditor.vue.mjs +1 -1
  59. package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +1 -1
  60. package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +1 -1
  61. package/library/components/VcPagination/VcPaginationButton.vue.mjs +1 -1
  62. package/library/components/VcPhoneInput/VcPhoneInput.vue.mjs +1 -1
  63. package/library/components/VcRadio/VcRadio.vue.mjs +1 -1
  64. package/library/components/VcSegmented/VcSegmented.vue.mjs +1 -1
  65. package/library/components/VcSelect/VcSelect.vue.mjs +3 -2
  66. package/library/components/VcSelect/VcSelectOption.vue.mjs +1 -1
  67. package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
  68. package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
  69. package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
  70. package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
  71. package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
  72. package/library/components/VcSlider/VcSlider.vue.mjs +1 -1
  73. package/library/components/VcSoundplayer/VcPlayerPlayStopButton.vue.mjs +3 -3
  74. package/library/components/VcSoundplayer/VcPlayerPlaybackRate.vue.mjs +1 -1
  75. package/library/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.mjs +1 -1
  76. package/library/components/VcSoundplayer/VcPlayerSkipButtons.vue.mjs +2 -2
  77. package/library/components/VcSoundplayer/VcSoundPlayer.vue.mjs +1 -1
  78. package/library/components/VcSoundplayer/VcSoundPlayerError.vue.mjs +1 -1
  79. package/library/components/VcSoundplayer/VcSoundPlayerMarker.vue.mjs +1 -1
  80. package/library/components/VcSoundplayer/VcSoundVolume.vue.mjs +2 -2
  81. package/library/components/VcSplitButton/VcSplitButton.vue.mjs +1 -1
  82. package/library/components/VcTable/VcTable.vue.mjs +4 -1
  83. package/library/components/VcTabs/VcTabPane.vue.mjs +1 -1
  84. package/library/components/VcTag/VcTag.vue.mjs +2 -2
  85. package/library/components/VcTagInput/VcTagInput.vue.mjs +1 -1
  86. package/library/components/VcToolCall/VcToolCall.vue.mjs +1 -1
  87. package/library/components/VcTree/VcTree.vue.mjs +1 -1
  88. package/library/components/VcWizard/VcSummaryProgress.vue.mjs +1 -1
  89. package/library/entity/components/Button/VcEntityDeleteIconButton.vue.mjs +1 -1
  90. package/library/entity/components/Button/VcEntityEditIconButton.vue.mjs +1 -1
  91. package/library/entity/components/Table/VcEntityListTable.vue.mjs +10 -5
  92. package/library/entity/components/Tabs/VcEntityEditableTabs.vue.mjs +3 -3
  93. package/library/index.mjs.gz +0 -0
  94. package/library/localization/index.mjs.gz +0 -0
  95. package/library/plugin.mjs.gz +0 -0
  96. package/library/style.css +16 -16
  97. package/library/style.css.br +0 -0
  98. package/library/style.css.gz +0 -0
  99. package/library/theme/index.mjs.gz +0 -0
  100. package/library/types/components/VcAutocomplete/VcAutocomplete.vue.d.ts +18 -18
  101. package/library/types/components/VcBadgeTag/VcBadgeTag.vue.d.ts +1 -1
  102. package/library/types/components/VcButton/VcButton.vue.d.ts +2 -2
  103. package/library/types/components/VcButton/VcButtonIcon.vue.d.ts +2 -2
  104. package/library/types/components/VcButton/VcToggleButton.vue.d.ts +2 -2
  105. package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +1 -1
  106. package/library/types/components/VcCheckbox/VcCheckbox.vue.d.ts +9 -9
  107. package/library/types/components/VcCheckbox/VcCheckboxButton.vue.d.ts +9 -9
  108. package/library/types/components/VcCheckbox/VcCheckboxButtonGroup.vue.d.ts +9 -9
  109. package/library/types/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +9 -9
  110. package/library/types/components/VcCollapse/VcCollapseItem.vue.d.ts +1 -1
  111. package/library/types/components/VcDatePicker/VcDatePicker.vue.d.ts +9 -9
  112. package/library/types/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +6 -6
  113. package/library/types/components/VcDropdown/VcDropdown.vue.d.ts +2 -2
  114. package/library/types/components/VcExcelUploader/VcExcelFileProcessLoader.vue.d.ts +3 -3
  115. package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +1 -1
  116. package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +1 -1
  117. package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +1 -1
  118. package/library/types/components/VcHyperLink/VcHyperLink.vue.d.ts +2 -2
  119. package/library/types/components/VcIcon/VcIcon.vue.d.ts +1 -1
  120. package/library/types/components/VcIconPicker/VcIconPicker.vue.d.ts +6 -6
  121. package/library/types/components/VcInput/VcInput.vue.d.ts +4 -4
  122. package/library/types/components/VcInputNumber/VcInputNumber.vue.d.ts +1 -1
  123. package/library/types/components/VcLoading/Loaders/LoadIcon.vue.d.ts +1 -1
  124. package/library/types/components/VcLoading/VcLoading.vue.d.ts +1 -1
  125. package/library/types/components/VcLoading/enum.d.ts +9 -9
  126. package/library/types/components/VcMeterGroup/VcMeterGroup.vue.d.ts +2 -2
  127. package/library/types/components/VcModal/VcModal.vue.d.ts +1 -1
  128. package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +3 -3
  129. package/library/types/components/VcPagination/VcPaginationButton.vue.d.ts +1 -1
  130. package/library/types/components/VcPhoneInput/VcPhoneInput.vue.d.ts +2 -2
  131. package/library/types/components/VcPopover/VcPopover.vue.d.ts +1 -1
  132. package/library/types/components/VcProgress/VcProgress.vue.d.ts +2 -2
  133. package/library/types/components/VcProgress/VcProgressCircular.vue.d.ts +2 -2
  134. package/library/types/components/VcRadio/VcRadio.vue.d.ts +6 -6
  135. package/library/types/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +6 -6
  136. package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +6 -6
  137. package/library/types/components/VcRadioTabs/VcRadioTabs.vue.d.ts +3 -3
  138. package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +9 -9
  139. package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +9 -9
  140. package/library/types/components/VcSelect/VcSelect.vue.d.ts +15 -15
  141. package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +15 -15
  142. package/library/types/components/VcSkeletonLoader/VcSkeletonLoader.vue.d.ts +2 -2
  143. package/library/types/components/VcSoundplayer/VcSoundPlayer.vue.d.ts +1 -1
  144. package/library/types/components/VcSoundplayer/VcSoundPlayerCompact.vue.d.ts +1 -1
  145. package/library/types/components/VcSoundplayer/VcSoundPlayerMarker.vue.d.ts +1 -1
  146. package/library/types/components/VcSoundplayer/VcSoundPlayerWrapper.vue.d.ts +1 -1
  147. package/library/types/components/VcSparkline/VcBarLine.vue.d.ts +3 -3
  148. package/library/types/components/VcSparkline/VcSparkline.vue.d.ts +3 -3
  149. package/library/types/components/VcSparkline/VcTrendLine.vue.d.ts +3 -3
  150. package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +1 -1
  151. package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +18 -18
  152. package/library/types/components/VcTabs/VcTabs.vue.d.ts +4 -4
  153. package/library/types/components/VcTag/VcTag.vue.d.ts +1 -1
  154. package/library/types/components/VcTagInput/VcTagInput.vue.d.ts +4 -4
  155. package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +3 -3
  156. package/library/types/components/VcTransfer/VcTransfer.vue.d.ts +3 -3
  157. package/library/types/components/VcTree/VcTree.vue.d.ts +3 -3
  158. package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +15 -15
  159. package/library/types/components/VcVerticalTabs/VcVerticalTabs.vue.d.ts +3 -3
  160. package/library/types/components/VcVerticalTabs/VerticalTabNav.vue.d.ts +3 -3
  161. package/library/types/components/VcWizard/VcWizard.vue.d.ts +1 -1
  162. package/library/types/localization/locales/en.json.d.ts +415 -415
  163. package/library/types/theme/themes.json.d.ts +72 -72
  164. package/library/types/types/icons.types.d.ts +2 -1
  165. package/library/utils/jsonSchema/index.mjs.gz +0 -0
  166. package/package.json +311 -311
  167. package/src/theme/index.ts +101 -101
  168. package/src/theme/tailwindScheme.js +78 -78
  169. package/src/theme/theme.types.ts +31 -31
  170. package/src/theme/themeMerge.ts +63 -63
  171. package/src/theme/themes.json +72 -72
  172. package/tailwind.config.d.ts +5 -5
  173. package/tailwind.config.js +178 -178
  174. /package/library/assets/node_modules/element-plus/theme-chalk/src/{tooltip.css → dropdown-item.css} +0 -0
@@ -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
+ }
@@ -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
@@ -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
+