voiptime-components 0.0.26 → 0.0.28

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/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "voiptime-components",
3
3
  "private": false,
4
- "version": "0.0.26",
4
+ "version": "0.0.28",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "style": "dist/index.css",
9
9
  "types": "dist/index.d.ts",
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "src/assets"
12
13
  ],
13
14
  "exports": {
14
15
  ".": {
@@ -16,8 +17,10 @@
16
17
  "import": "./dist/index.es.js",
17
18
  "require": "./dist/index.cjs"
18
19
  },
19
- "./index.css": "./dist/index.css"
20
+ "./index.css": "./dist/index.css",
21
+ "./scss/mixins": "./src/assets/_mixins.scss"
20
22
  },
23
+ "sass": "src/assets/main.scss",
21
24
  "scripts": {
22
25
  "dev": "vite",
23
26
  "type-check": "vue-tsc -p tsconfig.build.json --noEmit false",
@@ -0,0 +1,61 @@
1
+ :root {
2
+ // === Primary ===
3
+ --color-primary-main: #00475A;
4
+ --color-primary-bg: #F2F6F6;
5
+ --color-primary-hover: #00546A;
6
+ --color-primary-pressed: #003D4D;
7
+ --color-primary-focus: #E6EDEF;
8
+ --color-primary-border: #CCDADE;
9
+ --color-primary-light: #E6EEF1;
10
+
11
+ // === Yellow ===
12
+ --color-yellow-main: #FFBD3E;
13
+ --color-yellow-bg: #FFF9EC;
14
+ --color-yellow-hover: #FFC24C;
15
+ --color-yellow-pressed: #F3AC24;
16
+ --color-yellow-focus: #FFF5E2;
17
+ --color-yellow-border: #FFECC6;
18
+
19
+ // === Success ===
20
+ --color-success-main: #21725E;
21
+ --color-success-bg: #E7FAF5;
22
+ --color-success-hover: #1B5F4E;
23
+ --color-success-pressed: #164C3F;
24
+ --color-success-focus: #C8EBE2;
25
+ --color-success-border: #B5D0C9;
26
+
27
+ // === Warning ===
28
+ --color-warning-main: #E0CE2C;
29
+ --color-warning-bg: #FEFADC;
30
+ --color-warning-hover: #BBAC25;
31
+ --color-warning-pressed: #95891D;
32
+ --color-warning-focus: #FDF8CF;
33
+ --color-warning-border: #F5EFB9;
34
+
35
+ // === Danger ===
36
+ --color-danger-main: #A82525;
37
+ --color-danger-bg: #FFE8E8;
38
+ --color-danger-hover: #8C1F1F;
39
+ --color-danger-pressed: #541212;
40
+ --color-danger-focus: #FFDFDF;
41
+ --color-danger-border: #E2B6B6;
42
+
43
+ // === Neutral / Gray Scale ===
44
+ --color-neutral: #F2F2F2;
45
+ --color-gray-7: #f8f9fa;
46
+ --color-gray-6: #F2F2F2;
47
+ --color-gray-5: #E0E0E0;
48
+ --color-gray-4: #BDBDBD;
49
+ --color-gray-3: #828282;
50
+ --color-gray-2: #4F4F4F;
51
+ --color-gray-1: #333333;
52
+ --color-gray-0: #252525;
53
+
54
+ // === ScrollBar ===
55
+ --color-scrollbar-track: #E6EEF1;
56
+ --color-scrollbar-thumb: #CFDFE4;
57
+ --color-scrollbar-track-hover: #CCDDE1;
58
+ --color-scrollbar-thumb-hover: #A3C2C9;
59
+ --color-scrollbar-track-active: #CCDDE1;
60
+ --color-scrollbar-thumb-active: #7EA8B4;
61
+ }
@@ -0,0 +1,100 @@
1
+ :root {
2
+ // Font families
3
+ --font-primary: 'Inter', sans-serif;
4
+ --font-secondary: 'Roboto', serif;
5
+
6
+ // Font sizes
7
+ --font-size-base: 16px;
8
+ --font-size-lg: 20px;
9
+ --font-size-sm: 14px;
10
+
11
+ // Font weights
12
+ --font-weight-regular: 400;
13
+ --font-weight-medium: 500;
14
+ --font-weight-semibold: 600;
15
+ --font-weight-bold: 700;
16
+
17
+ //Buttons
18
+ --vt-button-font-family: var(--font-primary);
19
+ --vt-button-font-size: var(--font-size-sm);
20
+ --vt-button-font-weight: var(--font-weight-medium);
21
+ --vt-button-line-height: 19.23px;
22
+ --vt-button-letter-spacing: 0;
23
+
24
+ //Pagination
25
+ --vt-pagination-font-family: var(--font-secondary);
26
+ --vt-pagination-font-size: var(--font-size-sm);
27
+ --vt-pagination-font-weight: var(--font-weight-regular);
28
+ --vt-pagination-line-height: 20px;
29
+ --vt-pagination-letter-spacing: 0;
30
+ --vt-pagination-vertical-align: middle;
31
+
32
+ // Table Header (th)
33
+ --vt-table-th-font-family: var(--font-secondary);
34
+ --vt-table-th-font-weight: var(--font-weight-medium);
35
+ --vt-table-th-font-size: var(--font-size-sm);
36
+ --vt-table-th-line-height: 110%;
37
+ --vt-table-th-letter-spacing: 0;
38
+ --vt-table-th-vertical-align: middle;
39
+
40
+ // Table Body (td)
41
+ --vt-table-td-font-family: var(--font-secondary);
42
+ --vt-table-td-font-weight: var(--font-weight-regular);
43
+ --vt-table-td-font-size: var(--font-size-sm);
44
+ --vt-table-td-line-height: 20px;
45
+ --vt-table-td-letter-spacing: 0%;
46
+
47
+ // Drop down
48
+ --vt-dropdown-font-family: var(--font-secondary);
49
+ --vt-dropdown-font-weight: var(--font-weight-regular);
50
+ --vt-dropdown-font-size: var(--font-size-sm);
51
+ --vt-dropdown-line-height: 20px;
52
+ --vt-dropdown-letter-spacing: 0%;
53
+
54
+ // Modal
55
+ --vt-modal-header-font-family: var(--font-secondary);
56
+ --vt-modal-header-font-weight: var(--font-weight-regular);
57
+ --vt-modal-header-font-size: var(--font-size-base);
58
+ --vt-modal-header-line-height: 100%;
59
+ --vt-modal-header-letter-spacing: 0%;
60
+
61
+ // Checkbox
62
+ --vt-checkbox-font-family: var(--font-secondary);
63
+ --vt-checkbox-font-weight: var(--font-weight-regular);
64
+ --vt-checkbox-font-size: var(--font-size-base);
65
+ --vt-checkbox-line-height: 100%;
66
+ --vt-checkbox-letter-spacing: 0%;
67
+ }
68
+
69
+ @font-face {
70
+ font-family: 'Roboto';
71
+ src: url('@/assets/fonts/Roboto-Regular.ttf') format('truetype');
72
+ font-weight: 400;
73
+ font-style: normal;
74
+ font-display: swap;
75
+ }
76
+
77
+ @font-face {
78
+ font-family: 'Roboto';
79
+ src: url('@/assets/fonts/Roboto-Medium.ttf') format('truetype');
80
+ font-weight: 500;
81
+ font-style: normal;
82
+ font-display: swap;
83
+ }
84
+
85
+ @font-face {
86
+ font-family: 'Roboto';
87
+ src: url('@/assets/fonts/Roboto-Bold.ttf') format('truetype');
88
+ font-weight: 700;
89
+ font-style: normal;
90
+ font-display: swap;
91
+ }
92
+
93
+ @mixin vt-typography($prefix) {
94
+ font-family: var(--#{$prefix}-font-family);
95
+ font-weight: var(--#{$prefix}-font-weight);
96
+ font-size: var(--#{$prefix}-font-size);
97
+ line-height: var(--#{$prefix}-line-height);
98
+ letter-spacing: var(--#{$prefix}-letter-spacing);
99
+ vertical-align: var(--#{$prefix}-vertical-align);
100
+ }
@@ -0,0 +1,5 @@
1
+ :root {
2
+ --vt-gap-base: 10px;
3
+ --vt-gap-lg: 20px;
4
+ --vt-gap-sm: 5px;
5
+ }
@@ -0,0 +1 @@
1
+ @import 'scrollbar';
@@ -0,0 +1,10 @@
1
+ :root {
2
+ --vt-padding-base: 10px;
3
+ --vt-padding-lg: 20px;
4
+ --vt-padding-sm: 5px;
5
+
6
+ --padding-button: 8px 16px;
7
+ --padding-pagination: 10px 0;
8
+ --padding-table-cell: 10px;
9
+ --padding-modal-header: 15px 20px;
10
+ }
@@ -0,0 +1,3 @@
1
+ :root {
2
+ --radius-main: 5px;
3
+ }
@@ -0,0 +1,32 @@
1
+ :root {
2
+ --scrollbar-width: 10px;
3
+ --scrollbar-height: 10px;
4
+ }
5
+
6
+ @mixin vt-scrollbar {
7
+ &::-webkit-scrollbar {
8
+ width: var(--scrollbar-width);
9
+ height: var(--scrollbar-height);
10
+ }
11
+
12
+ &::-webkit-scrollbar-track {
13
+ background: var(--color-scrollbar-track);
14
+ }
15
+
16
+ &::-webkit-scrollbar-thumb {
17
+ border-radius: 20px;
18
+ background: var(--color-scrollbar-thumb); // none
19
+ transition: background-color 0.2s;
20
+ }
21
+
22
+ &::-webkit-scrollbar-thumb:hover {
23
+ background: var(--color-scrollbar-thumb-hover);
24
+ }
25
+
26
+ &::-webkit-scrollbar-thumb:active {
27
+ background-color: var(--color-scrollbar-thumb-active);
28
+ }
29
+
30
+ scrollbar-width: thin;
31
+ scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
32
+ }
Binary file
Binary file
@@ -0,0 +1,32 @@
1
+ //(змінні через :root)
2
+
3
+ // 1. Палітра кольорів
4
+ @use './colors' as *;
5
+
6
+ // 2. Типографія
7
+ @use './fonts' as *;
8
+
9
+ // 3. Радіус
10
+ @use './radius' as *;
11
+
12
+ // 4. Padding
13
+ @use './padding' as *;
14
+
15
+ // 5. Padding
16
+ @use './gap' as *;
17
+
18
+ // 6. mixins
19
+ @use './mixins' as *;
20
+
21
+ @use '../components/button/button';
22
+ @use '../components/loader/loader';
23
+ @use '../components/pagination/pagination';
24
+ @use '../components/table/table';
25
+ @use '../components/table/column-selector';
26
+ @use '../components/modal/modal';
27
+ @use '../components/checkbox/checkbox';
28
+ @use '../directives/tooltip/tooltip';
29
+
30
+ body {
31
+ @include vt-scrollbar;
32
+ }