@voicenter-team/voicenter-ui-plus 2.0.3 → 2.0.5

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 (113) hide show
  1. package/library/core/{entry-7MedY5a6.mjs → entry-CUnU_LTf.mjs} +1466 -422
  2. package/library/core/entry-CUnU_LTf.mjs.br +0 -0
  3. package/library/core/entry-CUnU_LTf.mjs.gz +0 -0
  4. package/library/core/{index-aRKANfxA.mjs → index-6fzTDgR0.mjs} +1 -1
  5. package/library/core/index-6fzTDgR0.mjs.br +0 -0
  6. package/library/core/index-6fzTDgR0.mjs.gz +0 -0
  7. package/library/core/{index-D4ALxe3L.mjs → index-BHgTKNj6.mjs} +1 -1
  8. package/library/core/index-BHgTKNj6.mjs.br +0 -0
  9. package/library/core/{index-D4ALxe3L.mjs.gz → index-BHgTKNj6.mjs.gz} +0 -0
  10. package/library/core/{index-F7WxIxZG.mjs → index-Bnbcgp45.mjs} +1 -1
  11. package/library/core/index-Bnbcgp45.mjs.br +0 -0
  12. package/library/core/index-Bnbcgp45.mjs.gz +0 -0
  13. package/library/core/{index-CX3WSSx2.mjs → index-BnrhesCl.mjs} +1 -1
  14. package/library/core/index-BnrhesCl.mjs.br +0 -0
  15. package/library/core/index-BnrhesCl.mjs.gz +0 -0
  16. package/library/core/{index-D3fgPDap.mjs → index-C1SGZ0VB.mjs} +1 -1
  17. package/library/core/index-C1SGZ0VB.mjs.br +0 -0
  18. package/library/core/index-C1SGZ0VB.mjs.gz +0 -0
  19. package/library/core/{index-B4-cxGdI.mjs → index-C5fzTJu8.mjs} +1 -1
  20. package/library/core/index-C5fzTJu8.mjs.br +0 -0
  21. package/library/core/index-C5fzTJu8.mjs.gz +0 -0
  22. package/library/core/{index-Brg39W8r.mjs → index-CToYp0ec.mjs} +1 -1
  23. package/library/core/index-CToYp0ec.mjs.br +0 -0
  24. package/library/core/index-CToYp0ec.mjs.gz +0 -0
  25. package/library/core/{index-Cu73PPC3.mjs → index-CYWz3-a9.mjs} +1 -1
  26. package/library/core/index-CYWz3-a9.mjs.br +0 -0
  27. package/library/core/index-CYWz3-a9.mjs.gz +0 -0
  28. package/library/core/{index-DwdnC-bV.mjs → index-C_0ohr-m.mjs} +1 -1
  29. package/library/core/index-C_0ohr-m.mjs.br +0 -0
  30. package/library/core/index-C_0ohr-m.mjs.gz +0 -0
  31. package/library/core/{index-C8_KX6c0.mjs → index-CanygYmA.mjs} +1 -1
  32. package/library/core/index-CanygYmA.mjs.br +0 -0
  33. package/library/core/index-CanygYmA.mjs.gz +0 -0
  34. package/library/core/{index-Bn40qumb.mjs → index-ClO3w-PT.mjs} +1 -1
  35. package/library/core/index-ClO3w-PT.mjs.br +0 -0
  36. package/library/core/index-ClO3w-PT.mjs.gz +0 -0
  37. package/library/core/{index-B5AARu62.mjs → index-DwlQlTDu.mjs} +1 -1
  38. package/library/core/index-DwlQlTDu.mjs.br +0 -0
  39. package/library/core/index-DwlQlTDu.mjs.gz +0 -0
  40. package/library/core/{index-D9pmi177.mjs → index-Dz1n0irY.mjs} +1 -1
  41. package/library/core/index-Dz1n0irY.mjs.br +0 -0
  42. package/library/core/index-Dz1n0irY.mjs.gz +0 -0
  43. package/library/core/{index-BqZbJSv5.mjs → index-KX4Bfsig.mjs} +1 -1
  44. package/library/core/index-KX4Bfsig.mjs.br +0 -0
  45. package/library/core/index-KX4Bfsig.mjs.gz +0 -0
  46. package/library/core/{index-Ck0hEoH5.mjs → index-o6T82tO9.mjs} +1 -1
  47. package/library/core/index-o6T82tO9.mjs.br +0 -0
  48. package/library/core/index-o6T82tO9.mjs.gz +0 -0
  49. package/library/core/index.mjs +32 -31
  50. package/library/core/index.mjs.br +0 -0
  51. package/library/core/index.mjs.gz +0 -0
  52. package/library/core/index.umd.js +5 -5
  53. package/library/core/index.umd.js.br +0 -0
  54. package/library/core/index.umd.js.gz +0 -0
  55. package/library/core/style.css +1 -1
  56. package/library/core/style.css.br +0 -0
  57. package/library/core/style.css.gz +0 -0
  58. package/library/core/types/components/VcButton/VcButton.vue.d.ts +1 -1
  59. package/library/core/types/components/VcButton/VcButtonIcon.vue.d.ts +1 -1
  60. package/library/core/types/components/VcButton/index.d.ts +1 -438
  61. package/library/core/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +1 -1
  62. package/library/core/types/components/VcForm/UiComponents/VcInputLabel.vue.d.ts +1 -1
  63. package/library/core/types/components/VcForm/VcFormItem.vue.d.ts +1 -1
  64. package/library/core/types/components/VcHyperLink/VcHyperLink.vue.d.ts +1 -1
  65. package/library/core/types/components/VcLoading/Loaders/Circles.vue.d.ts +3 -6
  66. package/library/core/types/components/VcLoading/Loaders/DotSpinner.vue.d.ts +3 -6
  67. package/library/core/types/components/VcLoading/Loaders/LdsSpinner.vue.d.ts +3 -6
  68. package/library/core/types/components/VcLoading/Loaders/LoadIcon.vue.d.ts +4 -9
  69. package/library/core/types/components/VcLoading/Loaders/Stretch.vue.d.ts +3 -6
  70. package/library/core/types/components/VcLoading/Loaders/types.d.ts +8 -0
  71. package/library/core/types/components/VcLoading/VcLoading.vue.d.ts +1 -1
  72. package/library/core/types/components/VcLoading/enum.d.ts +5 -5
  73. package/library/core/types/components/VcMdEditor/VcMdEditor.vue.d.ts +51 -4
  74. package/library/core/types/components/VcMdEditor/VcMdEditorToolbar.vue.d.ts +3 -3
  75. package/library/core/types/components/VcPagination/VcPaginationButton.vue.d.ts +1 -1
  76. package/library/core/types/components/VcSelect/VcSelectOption.vue.d.ts +3 -3
  77. package/library/core/types/components/VcTabs/VcTabPane.vue.d.ts +1 -1
  78. package/library/core/types/components/VcTag/VcTag.vue.d.ts +1 -1
  79. package/library/core/types/components/VcTagInput/VcTagInput.vue.d.ts +1 -1
  80. package/library/core/types/types/VcMdEditor.types.d.ts +6 -0
  81. package/package.json +1 -1
  82. package/tailwind.config.js +190 -190
  83. package/library/core/entry-7MedY5a6.mjs.br +0 -0
  84. package/library/core/entry-7MedY5a6.mjs.gz +0 -0
  85. package/library/core/index-B4-cxGdI.mjs.br +0 -0
  86. package/library/core/index-B4-cxGdI.mjs.gz +0 -0
  87. package/library/core/index-B5AARu62.mjs.br +0 -0
  88. package/library/core/index-B5AARu62.mjs.gz +0 -0
  89. package/library/core/index-Bn40qumb.mjs.br +0 -0
  90. package/library/core/index-Bn40qumb.mjs.gz +0 -0
  91. package/library/core/index-BqZbJSv5.mjs.br +0 -0
  92. package/library/core/index-BqZbJSv5.mjs.gz +0 -0
  93. package/library/core/index-Brg39W8r.mjs.br +0 -0
  94. package/library/core/index-Brg39W8r.mjs.gz +0 -0
  95. package/library/core/index-C8_KX6c0.mjs.br +0 -0
  96. package/library/core/index-C8_KX6c0.mjs.gz +0 -0
  97. package/library/core/index-CX3WSSx2.mjs.br +0 -0
  98. package/library/core/index-CX3WSSx2.mjs.gz +0 -0
  99. package/library/core/index-Ck0hEoH5.mjs.br +0 -0
  100. package/library/core/index-Ck0hEoH5.mjs.gz +0 -0
  101. package/library/core/index-Cu73PPC3.mjs.br +0 -0
  102. package/library/core/index-Cu73PPC3.mjs.gz +0 -0
  103. package/library/core/index-D3fgPDap.mjs.br +0 -0
  104. package/library/core/index-D3fgPDap.mjs.gz +0 -0
  105. package/library/core/index-D4ALxe3L.mjs.br +0 -0
  106. package/library/core/index-D9pmi177.mjs.br +0 -0
  107. package/library/core/index-D9pmi177.mjs.gz +0 -0
  108. package/library/core/index-DwdnC-bV.mjs.br +0 -0
  109. package/library/core/index-DwdnC-bV.mjs.gz +0 -0
  110. package/library/core/index-F7WxIxZG.mjs.br +0 -0
  111. package/library/core/index-F7WxIxZG.mjs.gz +0 -0
  112. package/library/core/index-aRKANfxA.mjs.br +0 -0
  113. package/library/core/index-aRKANfxA.mjs.gz +0 -0
@@ -1,10 +1,31 @@
1
- import { IProps } from './VcMdEditorContent.vue';
1
+ import type { TMDEditorParameterOption } from '../../types';
2
+ export interface IVcMdEditorProps {
3
+ modelValue?: string;
4
+ html?: string;
5
+ disabled?: boolean;
6
+ useParameters?: boolean;
7
+ minHeight?: number | string;
8
+ maxHeight?: number | string;
9
+ parameters?: Array<TMDEditorParameterOption>;
10
+ isTeleported?: boolean;
11
+ readonly?: boolean;
12
+ hideToolbar?: boolean;
13
+ }
2
14
  type BlockValidationIssue = {
3
15
  tag: string;
4
16
  line: number;
5
17
  type: 'unclosed' | 'unopened';
6
18
  };
7
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>, {
19
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IVcMdEditorProps>, {
20
+ modelValue: string;
21
+ html: string;
22
+ disabled: boolean;
23
+ minHeight: number;
24
+ maxHeight: undefined;
25
+ parameters: undefined;
26
+ useParameters: boolean;
27
+ isTeleported: undefined;
28
+ }>>, {
8
29
  validate: () => BlockValidationIssue[];
9
30
  /**
10
31
  * Get the HTML output from ProseMirror editor
@@ -14,10 +35,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
14
35
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
36
  "update:modelValue": (pl: string) => void;
16
37
  "update:html": (pl: string) => void;
17
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & Readonly<{
38
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IVcMdEditorProps>, {
39
+ modelValue: string;
40
+ html: string;
41
+ disabled: boolean;
42
+ minHeight: number;
43
+ maxHeight: undefined;
44
+ parameters: undefined;
45
+ useParameters: boolean;
46
+ isTeleported: undefined;
47
+ }>>> & Readonly<{
18
48
  "onUpdate:modelValue"?: ((pl: string) => any) | undefined;
19
49
  "onUpdate:html"?: ((pl: string) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
50
+ }>, {
51
+ html: string;
52
+ disabled: boolean;
53
+ modelValue: string;
54
+ maxHeight: string | number;
55
+ useParameters: boolean;
56
+ minHeight: string | number;
57
+ parameters: TMDEditorParameterOption[];
58
+ isTeleported: boolean;
59
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
60
  export default _default;
22
61
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
62
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -28,3 +67,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
28
67
  required: true;
29
68
  };
30
69
  };
70
+ type __VLS_WithDefaults<P, D> = {
71
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
72
+ default: D[K];
73
+ }> : P[K];
74
+ };
75
+ type __VLS_Prettify<T> = {
76
+ [K in keyof T]: T[K];
77
+ } & {};
@@ -1,16 +1,16 @@
1
1
  import { TSetBlockTypeEvent } from './mdEditor.config';
2
- import { TMDEditorParameterItem } from '../../types';
2
+ import type { TMDEditorParameterItem, TMDEditorParameterOption } from '../../types';
3
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  isTeleported?: boolean | undefined;
5
5
  disabled?: boolean | undefined;
6
- parameters?: TMDEditorParameterItem[] | undefined;
6
+ parameters?: TMDEditorParameterOption[] | undefined;
7
7
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "set-block-type": (pl: TSetBlockTypeEvent) => void;
9
9
  "insert-parameter": (pl: TMDEditorParameterItem, state?: "opening" | "closing" | undefined) => void;
10
10
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
11
  isTeleported?: boolean | undefined;
12
12
  disabled?: boolean | undefined;
13
- parameters?: TMDEditorParameterItem[] | undefined;
13
+ parameters?: TMDEditorParameterOption[] | undefined;
14
14
  }>>> & Readonly<{
15
15
  "onSet-block-type"?: ((pl: TSetBlockTypeEvent) => any) | undefined;
16
16
  "onInsert-parameter"?: ((pl: TMDEditorParameterItem, state?: "opening" | "closing" | undefined) => any) | undefined;
@@ -22,8 +22,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
22
22
  dataTestName: string;
23
23
  }>>> & Readonly<{}>, {
24
24
  type: ButtonIconType;
25
- color: ButtonColor;
26
25
  icon: TIconClass;
26
+ color: ButtonColor;
27
27
  dataTestName: string;
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
29
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { StyleValue } from 'vue';
2
2
  import { OptionValueType } from '../../types';
3
3
  declare const _default: <Model extends OptionValueType>(__VLS_props: {
4
- label?: string | number | undefined;
5
4
  icon?: string | undefined;
5
+ label?: string | number | undefined;
6
6
  value?: Model | undefined;
7
7
  disabled?: boolean | undefined;
8
8
  selected?: boolean | undefined;
@@ -15,8 +15,8 @@ declare const _default: <Model extends OptionValueType>(__VLS_props: {
15
15
  emit: any;
16
16
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
17
17
  props: {
18
- label?: string | number | undefined;
19
18
  icon?: string | undefined;
19
+ label?: string | number | undefined;
20
20
  value?: Model | undefined;
21
21
  disabled?: boolean | undefined;
22
22
  selected?: boolean | undefined;
@@ -33,8 +33,8 @@ declare const _default: <Model extends OptionValueType>(__VLS_props: {
33
33
  }> & {
34
34
  __ctx?: {
35
35
  props: {
36
- label?: string | number | undefined;
37
36
  icon?: string | undefined;
37
+ label?: string | number | undefined;
38
38
  value?: Model | undefined;
39
39
  disabled?: boolean | undefined;
40
40
  selected?: boolean | undefined;
@@ -29,9 +29,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
29
29
  index: number;
30
30
  navClass: string;
31
31
  }>>> & Readonly<{}>, {
32
+ icon: string;
32
33
  lazy: boolean;
33
34
  label: string;
34
- icon: string;
35
35
  disabled: boolean;
36
36
  index: number;
37
37
  tabData: any;
@@ -44,9 +44,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
44
44
  "onOn-close"?: ((evt: MouseEvent) => any) | undefined;
45
45
  }>, {
46
46
  borderless: boolean;
47
+ icon: string;
47
48
  color: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative";
48
49
  label: string;
49
- icon: string;
50
50
  square: boolean;
51
51
  disabled: boolean;
52
52
  prefixIcon: string;
@@ -15,7 +15,7 @@ interface ITagInputProps extends IVcBaseInputProps {
15
15
  style?: StyleValue;
16
16
  tagColor?: VcTagColorType;
17
17
  tagMaxContent?: string | number;
18
- valueType: 'string' | 'number';
18
+ valueType?: 'string' | 'number';
19
19
  }
20
20
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ITagInputProps>, {
21
21
  id: undefined;
@@ -5,8 +5,14 @@ export type TMDEditorParameterItem = {
5
5
  description?: string;
6
6
  schema?: ObjectAnyType;
7
7
  };
8
+ export type TMDEditorGroupParameterItems = {
9
+ label: string;
10
+ options: Array<TMDEditorParameterItem>;
11
+ };
12
+ export type TMDEditorParameterOption = TMDEditorParameterItem | TMDEditorGroupParameterItems;
8
13
  export type BlockValidationIssue = {
9
14
  tag: string;
10
15
  line: number;
11
16
  type: 'unclosed' | 'unopened';
12
17
  };
18
+ export declare function isGroupParameter(item: TMDEditorParameterOption): item is TMDEditorGroupParameterItems;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voicenter-team/voicenter-ui-plus",
3
- "version": "2.0.03",
3
+ "version": "2.0.05",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",
@@ -1,190 +1,190 @@
1
- const schemeColors = require('./src/core/theme/tailwindScheme.js')
2
-
3
- /** @type {import('tailwindcss').Config} */
4
- module.exports = {
5
- content: [ './src/**/*.{vue,js,ts,scss}', './documentation/**/*.{vue,scss}' ],
6
- plugins: [
7
- require('tailwindcss/plugin')(({ addUtilities }) => {
8
- addUtilities({
9
- '.justify-normal': {
10
- justifyContent: 'normal'
11
- }
12
- })
13
- })
14
- ],
15
- theme: {
16
- fontFamily: {
17
- main: [ 'Inter', 'system-ui', 'sans-serif' ],
18
- heebo: [ 'Heebo', 'sans-serif' ],
19
- inter: [
20
- 'Inter',
21
- 'sans-serif'
22
- ]
23
- },
24
- screens: {
25
- sm: '680px',
26
- md: '960px',
27
- lg: '1264px',
28
- xl: '1680px',
29
- xxl: '1900px'
30
- },
31
- colors: schemeColors,
32
- borderColor: schemeColors,
33
- backgroundColor: schemeColors,
34
- boxShadow: {
35
- none: 'none',
36
- card: '0px 0px 5px var(--card-shadow-color)',
37
- 'card-no-active': '0px 0px 5px var(--inactive-elements)',
38
- 'table-header': '0 1px 0 0 var(--table-shadow-color)',
39
- 'focus-outer': '0 0 3px var(--active-elements--pressed)',
40
- 'focus-outer-off': '0 0 3px var(--inactive-elements--pressed)',
41
- 'focus-outer-primary': '0 0 3px var(--primary-actions--pressed)',
42
- 'focus-outer-secondary': '0 0 3px var(--secondary-actions--pressed)',
43
- 'focus-outer-destructive': '0 0 3px var(--destructive-actions--pressed)',
44
- 'focus-outer-success': '0 0 3px var(--success-actions--pressed)',
45
- 'focus-outer-warning': '0 0 3px var(--warning-actions--pressed)',
46
- 'focus-inner': 'inset 0 0 3px var(--active-elements--pressed)',
47
- focus: '0 0 3px var(--active-elements--pressed), inset 0 0px 3px var(--active-elements--pressed)',
48
- hover: '0 0 3px var(--active-elements--focus), inset 0 0px 3px var(--active-elements--focus)',
49
- 'focus-primary': '0 0 3px var(--primary-actions--pressed), inset 0 0px 3px var(--primary-actions--pressed)',
50
- 'hover-primary': '0 0 3px var(--primary-actions--focus), inset 0 0px 3px var(--primary-actions--focus)',
51
- 'focus-secondary': '0 0 3px var(--secondary-actions--pressed), inset 0 0px 3px var(--secondary-actions--pressed)',
52
- 'hover-secondary': '0 0 3px var(--secondary-actions--focus), inset 0 0px 3px var(--secondary-actions--focus)',
53
- 'focus-destructive': '0 0 3px var(--destructive-actions--pressed), inset 0 0px 3px var(--destructive-actions--pressed)',
54
- 'hover-destructive': '0 0 3px var(--destructive-actions--focus), inset 0 0px 3px var(--destructive-actions--focus)',
55
- 'focus-success': '0 0 3px var(--success-actions--pressed), inset 0 0px 3px var(--success-actions--pressed)',
56
- 'hover-success': '0 0 3px var(--success-actions--focus), inset 0 0px 3px var(--success-actions--focus)',
57
- 'focus-warning': '0 0 3px var(--warning-actions--pressed), inset 0 0px 3px var(--warning-actions--pressed)',
58
- 'hover-warning': '0 0 3px var(--warning-actions--focus), inset 0 0px 3px var(--warning-actions--focus)',
59
- 'hover-inner': 'inset 0 0 3px var(--active-elements--focus)',
60
- 'hover-outer': '0 0 3px var(--active-elements--focus)',
61
- 'hover-outer-off': '0 0 3px var(--inactive-elements--focus)',
62
- 'hover-outer-active': '0 0 3px var(--active-elements--focus)',
63
- 'hover-outer-primary': '0 0 3px var(--primary-actions--focus)',
64
- 'hover-outer-primary-alternative': '0 0 3px var(--primary-alternative-actions--focus)',
65
- 'hover-outer-secondary': '0 0 3px var(--secondary-actions--focus)',
66
- 'hover-outer-destructive': '0 0 3px var(--destructive-actions--focus)',
67
- 'hover-outer-success': '0 0 3px var(--success-actions--focus)',
68
- 'hover-outer-warning': '0 0 3px var(--warning-actions--focus)',
69
- 'view-switcher': '0px 0px 4px var(--overlay-bg)',
70
- 'vertical-tab-scroll': 'inset 0 0 8px (--light-bg)',
71
- 'vertical-tab-item': '0 1px 6px var(--card-shadow-color)',
72
- 'vertical-tab-item-hover': '0 1px 6px var(--active-elements--focus)',
73
- table: '0px 0px 5px var(--card-shadow-color)',
74
- 'table-row': '0 10px 10px -12px var(--table-shadow-color)'
75
- },
76
- fontSize: {
77
- xxs: '0.65rem',
78
- xs: '0.75rem',
79
- sm: '0.875rem',
80
- base: '1rem',
81
- lg: '1.125rem',
82
- xl: '1.25rem',
83
- '2xl': '1.5rem',
84
- '3xl': '2rem',
85
- '4xl': '2.25rem',
86
- '5xl': '2.5rem',
87
- '6xl': '3rem'
88
- },
89
- fill: schemeColors,
90
- stroke: {
91
- 'active-elements': 'var(--active-elements)',
92
- current: 'currentColor'
93
- },
94
- borderRadius: {
95
- none: '0',
96
- xs: '0.125rem',
97
- sm: '0.25rem',
98
- md: '0.375rem',
99
- lg: '0.5rem',
100
- xl: '0.75rem',
101
- xxl: '0.875rem',
102
- full: '9999px',
103
- tag: '2rem',
104
- DEFAULT: '0.25rem',
105
- 'horizontal-tab-wrapper': '0px 6px 6px 6px',
106
- 'horizontal-tab-item': '6px 6px 0px 0px'
107
- },
108
- extend: {
109
- inset: {
110
- unset: 'unset'
111
- },
112
- minWidth: {
113
- auto: 'auto',
114
- xs: '20rem',
115
- sm: '24rem',
116
- md: '28rem',
117
- lg: '32rem',
118
- xl: '36rem',
119
- '1/4': '25%',
120
- '1/2': '50%',
121
- '3/4': '75%',
122
- screen: '100vw'
123
- },
124
- minHeight: {
125
- 2: '2rem',
126
- 5.5: '1.375rem',
127
- 6.5: '1.625rem',
128
- 8: '2rem',
129
- screen: '100vh',
130
- inherit: 'inherit'
131
- },
132
- maxWidth: {
133
- '1/2': '50%',
134
- screen: '100vw'
135
- },
136
- maxHeight: {
137
- inherit: 'inherit'
138
- },
139
- height: {
140
- 0.5: '2px',
141
- 'fit-content': 'fit-content',
142
- 'modal-wizard': '680px'
143
- },
144
- spacing: {
145
- 15: '3.75rem',
146
- unset: 'unset'
147
- },
148
- width: {},
149
- lineHeight: {
150
- '40px': '40px'
151
- },
152
- zIndex: {
153
- 1: 1,
154
- 5: 5
155
- },
156
- rotate: {
157
- 135: '135deg',
158
- 225: '225deg'
159
- }
160
- }
161
- },
162
- safelist: [
163
- // Essential text sizes
164
- {
165
- pattern: /text-(xxs|xs|sm|base|lg|2xl|3xl|4xl|5xl|6xl)/,
166
- variants: [ 'hover', 'focus' ]
167
- },
168
- // Essential fonts
169
- {
170
- pattern: /font-(main|heebo|inter)/,
171
- },
172
- // Essential color classes for dynamic theming
173
- {
174
- pattern: /text-(primary|primary-alternative|secondary|destructive|success|warning)-actions/,
175
- variants: [ 'hover', 'focus' ]
176
- },
177
- {
178
- pattern: /bg-(primary|primary-alternative|secondary|destructive|success|warning)-actions/,
179
- variants: [ 'hover', 'focus' ]
180
- },
181
- {
182
- pattern: /border-(primary|primary-alternative|secondary|destructive|success|warning)-actions/,
183
- variants: [ 'hover', 'focus' ]
184
- }
185
- ],
186
- variants: {
187
- backgroundColor: [ 'responsive', 'hover', 'focus', 'active' ]
188
- }
189
- }
190
-
1
+ const schemeColors = require('./src/core/theme/tailwindScheme.js')
2
+
3
+ /** @type {import('tailwindcss').Config} */
4
+ module.exports = {
5
+ content: [ './src/**/*.{vue,js,ts,scss}', './documentation/**/*.{vue,scss}' ],
6
+ plugins: [
7
+ require('tailwindcss/plugin')(({ addUtilities }) => {
8
+ addUtilities({
9
+ '.justify-normal': {
10
+ justifyContent: 'normal'
11
+ }
12
+ })
13
+ })
14
+ ],
15
+ theme: {
16
+ fontFamily: {
17
+ main: [ 'Inter', 'system-ui', 'sans-serif' ],
18
+ heebo: [ 'Heebo', 'sans-serif' ],
19
+ inter: [
20
+ 'Inter',
21
+ 'sans-serif'
22
+ ]
23
+ },
24
+ screens: {
25
+ sm: '680px',
26
+ md: '960px',
27
+ lg: '1264px',
28
+ xl: '1680px',
29
+ xxl: '1900px'
30
+ },
31
+ colors: schemeColors,
32
+ borderColor: schemeColors,
33
+ backgroundColor: schemeColors,
34
+ boxShadow: {
35
+ none: 'none',
36
+ card: '0px 0px 5px var(--card-shadow-color)',
37
+ 'card-no-active': '0px 0px 5px var(--inactive-elements)',
38
+ 'table-header': '0 1px 0 0 var(--table-shadow-color)',
39
+ 'focus-outer': '0 0 3px var(--active-elements--pressed)',
40
+ 'focus-outer-off': '0 0 3px var(--inactive-elements--pressed)',
41
+ 'focus-outer-primary': '0 0 3px var(--primary-actions--pressed)',
42
+ 'focus-outer-secondary': '0 0 3px var(--secondary-actions--pressed)',
43
+ 'focus-outer-destructive': '0 0 3px var(--destructive-actions--pressed)',
44
+ 'focus-outer-success': '0 0 3px var(--success-actions--pressed)',
45
+ 'focus-outer-warning': '0 0 3px var(--warning-actions--pressed)',
46
+ 'focus-inner': 'inset 0 0 3px var(--active-elements--pressed)',
47
+ focus: '0 0 3px var(--active-elements--pressed), inset 0 0px 3px var(--active-elements--pressed)',
48
+ hover: '0 0 3px var(--active-elements--focus), inset 0 0px 3px var(--active-elements--focus)',
49
+ 'focus-primary': '0 0 3px var(--primary-actions--pressed), inset 0 0px 3px var(--primary-actions--pressed)',
50
+ 'hover-primary': '0 0 3px var(--primary-actions--focus), inset 0 0px 3px var(--primary-actions--focus)',
51
+ 'focus-secondary': '0 0 3px var(--secondary-actions--pressed), inset 0 0px 3px var(--secondary-actions--pressed)',
52
+ 'hover-secondary': '0 0 3px var(--secondary-actions--focus), inset 0 0px 3px var(--secondary-actions--focus)',
53
+ 'focus-destructive': '0 0 3px var(--destructive-actions--pressed), inset 0 0px 3px var(--destructive-actions--pressed)',
54
+ 'hover-destructive': '0 0 3px var(--destructive-actions--focus), inset 0 0px 3px var(--destructive-actions--focus)',
55
+ 'focus-success': '0 0 3px var(--success-actions--pressed), inset 0 0px 3px var(--success-actions--pressed)',
56
+ 'hover-success': '0 0 3px var(--success-actions--focus), inset 0 0px 3px var(--success-actions--focus)',
57
+ 'focus-warning': '0 0 3px var(--warning-actions--pressed), inset 0 0px 3px var(--warning-actions--pressed)',
58
+ 'hover-warning': '0 0 3px var(--warning-actions--focus), inset 0 0px 3px var(--warning-actions--focus)',
59
+ 'hover-inner': 'inset 0 0 3px var(--active-elements--focus)',
60
+ 'hover-outer': '0 0 3px var(--active-elements--focus)',
61
+ 'hover-outer-off': '0 0 3px var(--inactive-elements--focus)',
62
+ 'hover-outer-active': '0 0 3px var(--active-elements--focus)',
63
+ 'hover-outer-primary': '0 0 3px var(--primary-actions--focus)',
64
+ 'hover-outer-primary-alternative': '0 0 3px var(--primary-alternative-actions--focus)',
65
+ 'hover-outer-secondary': '0 0 3px var(--secondary-actions--focus)',
66
+ 'hover-outer-destructive': '0 0 3px var(--destructive-actions--focus)',
67
+ 'hover-outer-success': '0 0 3px var(--success-actions--focus)',
68
+ 'hover-outer-warning': '0 0 3px var(--warning-actions--focus)',
69
+ 'view-switcher': '0px 0px 4px var(--overlay-bg)',
70
+ 'vertical-tab-scroll': 'inset 0 0 8px (--light-bg)',
71
+ 'vertical-tab-item': '0 1px 6px var(--card-shadow-color)',
72
+ 'vertical-tab-item-hover': '0 1px 6px var(--active-elements--focus)',
73
+ table: '0px 0px 5px var(--card-shadow-color)',
74
+ 'table-row': '0 10px 10px -12px var(--table-shadow-color)'
75
+ },
76
+ fontSize: {
77
+ xxs: '0.65rem',
78
+ xs: '0.75rem',
79
+ sm: '0.875rem',
80
+ base: '1rem',
81
+ lg: '1.125rem',
82
+ xl: '1.25rem',
83
+ '2xl': '1.5rem',
84
+ '3xl': '2rem',
85
+ '4xl': '2.25rem',
86
+ '5xl': '2.5rem',
87
+ '6xl': '3rem'
88
+ },
89
+ fill: schemeColors,
90
+ stroke: {
91
+ 'active-elements': 'var(--active-elements)',
92
+ current: 'currentColor'
93
+ },
94
+ borderRadius: {
95
+ none: '0',
96
+ xs: '0.125rem',
97
+ sm: '0.25rem',
98
+ md: '0.375rem',
99
+ lg: '0.5rem',
100
+ xl: '0.75rem',
101
+ xxl: '0.875rem',
102
+ full: '9999px',
103
+ tag: '2rem',
104
+ DEFAULT: '0.25rem',
105
+ 'horizontal-tab-wrapper': '0px 6px 6px 6px',
106
+ 'horizontal-tab-item': '6px 6px 0px 0px'
107
+ },
108
+ extend: {
109
+ inset: {
110
+ unset: 'unset'
111
+ },
112
+ minWidth: {
113
+ auto: 'auto',
114
+ xs: '20rem',
115
+ sm: '24rem',
116
+ md: '28rem',
117
+ lg: '32rem',
118
+ xl: '36rem',
119
+ '1/4': '25%',
120
+ '1/2': '50%',
121
+ '3/4': '75%',
122
+ screen: '100vw'
123
+ },
124
+ minHeight: {
125
+ 2: '2rem',
126
+ 5.5: '1.375rem',
127
+ 6.5: '1.625rem',
128
+ 8: '2rem',
129
+ screen: '100vh',
130
+ inherit: 'inherit'
131
+ },
132
+ maxWidth: {
133
+ '1/2': '50%',
134
+ screen: '100vw'
135
+ },
136
+ maxHeight: {
137
+ inherit: 'inherit'
138
+ },
139
+ height: {
140
+ 0.5: '2px',
141
+ 'fit-content': 'fit-content',
142
+ 'modal-wizard': '680px'
143
+ },
144
+ spacing: {
145
+ 15: '3.75rem',
146
+ unset: 'unset'
147
+ },
148
+ width: {},
149
+ lineHeight: {
150
+ '40px': '40px'
151
+ },
152
+ zIndex: {
153
+ 1: 1,
154
+ 5: 5
155
+ },
156
+ rotate: {
157
+ 135: '135deg',
158
+ 225: '225deg'
159
+ }
160
+ }
161
+ },
162
+ safelist: [
163
+ // Essential text sizes
164
+ {
165
+ pattern: /text-(xxs|xs|sm|base|lg|2xl|3xl|4xl|5xl|6xl)/,
166
+ variants: [ 'hover', 'focus' ]
167
+ },
168
+ // Essential fonts
169
+ {
170
+ pattern: /font-(main|heebo|inter)/,
171
+ },
172
+ // Essential color classes for dynamic theming
173
+ {
174
+ pattern: /text-(primary|primary-alternative|secondary|destructive|success|warning)-actions/,
175
+ variants: [ 'hover', 'focus' ]
176
+ },
177
+ {
178
+ pattern: /bg-(primary|primary-alternative|secondary|destructive|success|warning)-actions/,
179
+ variants: [ 'hover', 'focus' ]
180
+ },
181
+ {
182
+ pattern: /border-(primary|primary-alternative|secondary|destructive|success|warning)-actions/,
183
+ variants: [ 'hover', 'focus' ]
184
+ }
185
+ ],
186
+ variants: {
187
+ backgroundColor: [ 'responsive', 'hover', 'focus', 'active' ]
188
+ }
189
+ }
190
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file