@cgboiler/biz-basic 1.0.65 → 1.0.66
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/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/rich-text-editor/extensions/HashTag.js +3 -0
- package/es/rich-text-editor/menu-system/styles/animations.less +91 -91
- package/es/rich-text-editor/menu-system/styles/button-colors.less +142 -142
- package/es/rich-text-editor/menu-system/styles/button-group.less +23 -23
- package/es/rich-text-editor/menu-system/styles/button.less +322 -322
- package/es/rich-text-editor/menu-system/styles/card.less +78 -78
- package/es/rich-text-editor/menu-system/styles/color-highlight-button.less +57 -57
- package/es/rich-text-editor/menu-system/styles/color-highlight-popover.less +51 -51
- package/es/rich-text-editor/menu-system/styles/dropdown-menu.less +40 -40
- package/es/rich-text-editor/menu-system/styles/image-upload-node.less +240 -240
- package/es/rich-text-editor/menu-system/styles/input.less +53 -53
- package/es/rich-text-editor/menu-system/styles/link-popover.less +32 -32
- package/es/rich-text-editor/menu-system/styles/separator.less +26 -26
- package/es/rich-text-editor/menu-system/styles/simple-editor.less +39 -39
- package/es/rich-text-editor/menu-system/styles/toolbar.less +87 -87
- package/es/rich-text-editor/menu-system/styles/variables.less +294 -294
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +24 -24
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/rich-text-editor/extensions/HashTag.js +3 -0
- package/lib/rich-text-editor/menu-system/styles/animations.less +91 -91
- package/lib/rich-text-editor/menu-system/styles/button-colors.less +142 -142
- package/lib/rich-text-editor/menu-system/styles/button-group.less +23 -23
- package/lib/rich-text-editor/menu-system/styles/button.less +322 -322
- package/lib/rich-text-editor/menu-system/styles/card.less +78 -78
- package/lib/rich-text-editor/menu-system/styles/color-highlight-button.less +57 -57
- package/lib/rich-text-editor/menu-system/styles/color-highlight-popover.less +51 -51
- package/lib/rich-text-editor/menu-system/styles/dropdown-menu.less +40 -40
- package/lib/rich-text-editor/menu-system/styles/image-upload-node.less +240 -240
- package/lib/rich-text-editor/menu-system/styles/input.less +53 -53
- package/lib/rich-text-editor/menu-system/styles/link-popover.less +32 -32
- package/lib/rich-text-editor/menu-system/styles/separator.less +26 -26
- package/lib/rich-text-editor/menu-system/styles/simple-editor.less +39 -39
- package/lib/rich-text-editor/menu-system/styles/toolbar.less +87 -87
- package/lib/rich-text-editor/menu-system/styles/variables.less +294 -294
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +24 -24
- package/package.json +1 -1
- package/es/rich-text-editor/lib/utils.d.ts +0 -123
- package/es/rich-text-editor/lib/utils.js +0 -244
- package/lib/rich-text-editor/lib/utils.d.ts +0 -123
- package/lib/rich-text-editor/lib/utils.js +0 -263
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -103,6 +103,9 @@ const createHashTagExtension = (options) => {
|
|
|
103
103
|
emit("hashTag-input", query != null ? query : "");
|
|
104
104
|
},
|
|
105
105
|
onKeyDown({ event }) {
|
|
106
|
+
if (event.isComposing || event.keyCode === 229) {
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
106
109
|
if (isSpaceKey(event)) {
|
|
107
110
|
exitCause = "space";
|
|
108
111
|
}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
@keyframes fadeIn {
|
|
2
|
-
from {
|
|
3
|
-
opacity: 0;
|
|
4
|
-
}
|
|
5
|
-
to {
|
|
6
|
-
opacity: 1;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@keyframes fadeOut {
|
|
11
|
-
from {
|
|
12
|
-
opacity: 1;
|
|
13
|
-
}
|
|
14
|
-
to {
|
|
15
|
-
opacity: 0;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@keyframes zoomIn {
|
|
20
|
-
from {
|
|
21
|
-
transform: scale(0.95);
|
|
22
|
-
}
|
|
23
|
-
to {
|
|
24
|
-
transform: scale(1);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@keyframes zoomOut {
|
|
29
|
-
from {
|
|
30
|
-
transform: scale(1);
|
|
31
|
-
}
|
|
32
|
-
to {
|
|
33
|
-
transform: scale(0.95);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@keyframes zoom {
|
|
38
|
-
0% {
|
|
39
|
-
opacity: 0;
|
|
40
|
-
transform: scale(0.95);
|
|
41
|
-
}
|
|
42
|
-
100% {
|
|
43
|
-
opacity: 1;
|
|
44
|
-
transform: scale(1);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@keyframes slideFromTop {
|
|
49
|
-
from {
|
|
50
|
-
transform: translateY(-0.5rem);
|
|
51
|
-
}
|
|
52
|
-
to {
|
|
53
|
-
transform: translateY(0);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@keyframes slideFromRight {
|
|
58
|
-
from {
|
|
59
|
-
transform: translateX(0.5rem);
|
|
60
|
-
}
|
|
61
|
-
to {
|
|
62
|
-
transform: translateX(0);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@keyframes slideFromLeft {
|
|
67
|
-
from {
|
|
68
|
-
transform: translateX(-0.5rem);
|
|
69
|
-
}
|
|
70
|
-
to {
|
|
71
|
-
transform: translateX(0);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@keyframes slideFromBottom {
|
|
76
|
-
from {
|
|
77
|
-
transform: translateY(0.5rem);
|
|
78
|
-
}
|
|
79
|
-
to {
|
|
80
|
-
transform: translateY(0);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@keyframes spin {
|
|
85
|
-
from {
|
|
86
|
-
transform: rotate(0deg);
|
|
87
|
-
}
|
|
88
|
-
to {
|
|
89
|
-
transform: rotate(360deg);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
@keyframes fadeIn {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@keyframes fadeOut {
|
|
11
|
+
from {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes zoomIn {
|
|
20
|
+
from {
|
|
21
|
+
transform: scale(0.95);
|
|
22
|
+
}
|
|
23
|
+
to {
|
|
24
|
+
transform: scale(1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@keyframes zoomOut {
|
|
29
|
+
from {
|
|
30
|
+
transform: scale(1);
|
|
31
|
+
}
|
|
32
|
+
to {
|
|
33
|
+
transform: scale(0.95);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@keyframes zoom {
|
|
38
|
+
0% {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transform: scale(0.95);
|
|
41
|
+
}
|
|
42
|
+
100% {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
transform: scale(1);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes slideFromTop {
|
|
49
|
+
from {
|
|
50
|
+
transform: translateY(-0.5rem);
|
|
51
|
+
}
|
|
52
|
+
to {
|
|
53
|
+
transform: translateY(0);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@keyframes slideFromRight {
|
|
58
|
+
from {
|
|
59
|
+
transform: translateX(0.5rem);
|
|
60
|
+
}
|
|
61
|
+
to {
|
|
62
|
+
transform: translateX(0);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes slideFromLeft {
|
|
67
|
+
from {
|
|
68
|
+
transform: translateX(-0.5rem);
|
|
69
|
+
}
|
|
70
|
+
to {
|
|
71
|
+
transform: translateX(0);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes slideFromBottom {
|
|
76
|
+
from {
|
|
77
|
+
transform: translateY(0.5rem);
|
|
78
|
+
}
|
|
79
|
+
to {
|
|
80
|
+
transform: translateY(0);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@keyframes spin {
|
|
85
|
+
from {
|
|
86
|
+
transform: rotate(0deg);
|
|
87
|
+
}
|
|
88
|
+
to {
|
|
89
|
+
transform: rotate(360deg);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
|
|
2
|
-
.tiptap-button {
|
|
3
|
-
/**************************************************
|
|
4
|
-
Default button background color
|
|
5
|
-
**************************************************/
|
|
6
|
-
|
|
7
|
-
/* Light mode */
|
|
8
|
-
--tt-button-default-bg-color: var(--tt-gray-light-a-100);
|
|
9
|
-
--tt-button-hover-bg-color: var(--tt-gray-light-200);
|
|
10
|
-
--tt-button-active-bg-color: var(--tt-brand-color-50);
|
|
11
|
-
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-100);
|
|
12
|
-
--tt-button-active-bg-color-subdued: var(--tt-brand-color-50);
|
|
13
|
-
--tt-button-active-hover-bg-color: var(--tt-brand-color-100);
|
|
14
|
-
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-200);
|
|
15
|
-
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-100);
|
|
16
|
-
--tt-button-disabled-bg-color: var(--tt-gray-light-a-50);
|
|
17
|
-
|
|
18
|
-
/* Dark mode */
|
|
19
|
-
.dark & {
|
|
20
|
-
--tt-button-default-bg-color: var(--tt-gray-dark-a-100);
|
|
21
|
-
--tt-button-hover-bg-color: var(--tt-gray-dark-200);
|
|
22
|
-
--tt-button-active-bg-color: var(--tt-brand-color-900);
|
|
23
|
-
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-800);
|
|
24
|
-
--tt-button-active-bg-color-subdued: var(--tt-brand-color-900);
|
|
25
|
-
--tt-button-active-hover-bg-color: var(--tt-brand-color-800);
|
|
26
|
-
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-700);
|
|
27
|
-
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-800);
|
|
28
|
-
--tt-button-disabled-bg-color: var(--tt-gray-dark-a-50);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**************************************************
|
|
32
|
-
Default button text color
|
|
33
|
-
**************************************************/
|
|
34
|
-
|
|
35
|
-
/* Light mode */
|
|
36
|
-
--tt-button-default-text-color: var(--tt-gray-light-a-600);
|
|
37
|
-
--tt-button-hover-text-color: var(--tt-gray-light-a-900);
|
|
38
|
-
--tt-button-active-text-color: var(--tt-gray-light-a-900);
|
|
39
|
-
--tt-button-active-text-color-emphasized: var(--tt-gray-light-a-900);
|
|
40
|
-
--tt-button-active-text-color-subdued: var(--tt-gray-light-a-900);
|
|
41
|
-
--tt-button-disabled-text-color: var(--tt-gray-light-a-400);
|
|
42
|
-
|
|
43
|
-
/* Dark mode */
|
|
44
|
-
.dark & {
|
|
45
|
-
--tt-button-default-text-color: var(--tt-gray-dark-a-600);
|
|
46
|
-
--tt-button-hover-text-color: var(--tt-gray-dark-a-900);
|
|
47
|
-
--tt-button-active-text-color: var(--tt-gray-dark-a-900);
|
|
48
|
-
--tt-button-active-text-color-emphasized: var(--tt-gray-dark-a-900);
|
|
49
|
-
--tt-button-active-text-color-subdued: var(--tt-gray-dark-a-900);
|
|
50
|
-
--tt-button-disabled-text-color: var(--tt-gray-dark-a-300);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**************************************************
|
|
54
|
-
Default button icon color
|
|
55
|
-
**************************************************/
|
|
56
|
-
|
|
57
|
-
/* Light mode */
|
|
58
|
-
--tt-button-default-icon-color: var(--tt-gray-light-a-600);
|
|
59
|
-
--tt-button-hover-icon-color: var(--tt-gray-light-a-900);
|
|
60
|
-
--tt-button-active-icon-color: var(--tt-brand-color-500);
|
|
61
|
-
--tt-button-active-icon-color-emphasized: var(--tt-brand-color-600);
|
|
62
|
-
--tt-button-active-icon-color-subdued: var(--tt-gray-light-a-900);
|
|
63
|
-
--tt-button-disabled-icon-color: var(--tt-gray-light-a-400);
|
|
64
|
-
|
|
65
|
-
/* Dark mode */
|
|
66
|
-
.dark & {
|
|
67
|
-
--tt-button-default-icon-color: var(--tt-gray-dark-a-600);
|
|
68
|
-
--tt-button-hover-icon-color: var(--tt-gray-dark-a-900);
|
|
69
|
-
--tt-button-active-icon-color: var(--tt-brand-color-400);
|
|
70
|
-
--tt-button-active-icon-color-emphasized: var(--tt-brand-color-400);
|
|
71
|
-
--tt-button-active-icon-color-subdued: var(--tt-gray-dark-a-900);
|
|
72
|
-
--tt-button-disabled-icon-color: var(--tt-gray-dark-a-400);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* ----------------------------------------------------------------
|
|
76
|
-
--------------------------- GHOST BUTTON --------------------------
|
|
77
|
-
---------------------------------------------------------------- */
|
|
78
|
-
|
|
79
|
-
&[data-style="ghost"] {
|
|
80
|
-
/* Light mode */
|
|
81
|
-
--tt-button-default-bg-color: var(--transparent);
|
|
82
|
-
--tt-button-hover-bg-color: var(--tt-gray-light-200);
|
|
83
|
-
--tt-button-active-bg-color: var(--tt-brand-color-50);
|
|
84
|
-
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-100);
|
|
85
|
-
--tt-button-active-bg-color-subdued: var(--tt-brand-color-50);
|
|
86
|
-
--tt-button-active-hover-bg-color: var(--tt-brand-color-100);
|
|
87
|
-
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-200);
|
|
88
|
-
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-100);
|
|
89
|
-
--tt-button-disabled-bg-color: var(--transparent);
|
|
90
|
-
|
|
91
|
-
/* Dark mode */
|
|
92
|
-
.dark & {
|
|
93
|
-
--tt-button-default-bg-color: var(--transparent);
|
|
94
|
-
--tt-button-hover-bg-color: var(--tt-gray-dark-200);
|
|
95
|
-
--tt-button-active-bg-color: var(--tt-brand-color-900);
|
|
96
|
-
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-800);
|
|
97
|
-
--tt-button-active-bg-color-subdued: var(--tt-brand-color-900);
|
|
98
|
-
--tt-button-active-hover-bg-color: var(--tt-brand-color-800);
|
|
99
|
-
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-700);
|
|
100
|
-
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-800);
|
|
101
|
-
--tt-button-disabled-bg-color: var(--transparent);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/* ----------------------------------------------------------------
|
|
106
|
-
-------------------------- PRIMARY BUTTON -------------------------
|
|
107
|
-
---------------------------------------------------------------- */
|
|
108
|
-
|
|
109
|
-
&[data-style="primary"] {
|
|
110
|
-
/* Light mode */
|
|
111
|
-
--tt-button-default-bg-color: var(--tt-brand-color-500);
|
|
112
|
-
--tt-button-hover-bg-color: var(--tt-brand-color-600);
|
|
113
|
-
--tt-button-active-bg-color: var(--tt-brand-color-100);
|
|
114
|
-
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-100);
|
|
115
|
-
--tt-button-active-bg-color-subdued: var(--tt-brand-color-100);
|
|
116
|
-
--tt-button-active-hover-bg-color: var(--tt-brand-color-200);
|
|
117
|
-
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-200);
|
|
118
|
-
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-200);
|
|
119
|
-
--tt-button-disabled-bg-color: var(--tt-gray-light-a-100);
|
|
120
|
-
|
|
121
|
-
/* Dark mode */
|
|
122
|
-
.dark & {
|
|
123
|
-
--tt-button-default-bg-color: var(--tt-brand-color-500);
|
|
124
|
-
--tt-button-hover-bg-color: var(--tt-brand-color-600);
|
|
125
|
-
--tt-button-active-bg-color: var(--tt-brand-color-900);
|
|
126
|
-
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-900);
|
|
127
|
-
--tt-button-active-bg-color-subdued: var(--tt-brand-color-900);
|
|
128
|
-
--tt-button-active-hover-bg-color: var(--tt-brand-color-800);
|
|
129
|
-
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-800);
|
|
130
|
-
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-800);
|
|
131
|
-
--tt-button-disabled-bg-color: var(--tt-gray-dark-a-100);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
--tt-button-default-text-color: var(--white);
|
|
135
|
-
--tt-button-hover-text-color: var(--white);
|
|
136
|
-
--tt-button-active-text-color: var(--tt-gray-light-a-900);
|
|
137
|
-
|
|
138
|
-
--tt-button-default-icon-color: var(--white);
|
|
139
|
-
--tt-button-hover-icon-color: var(--white);
|
|
140
|
-
--tt-button-active-icon-color: var(--tt-brand-color-600);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
1
|
+
|
|
2
|
+
.tiptap-button {
|
|
3
|
+
/**************************************************
|
|
4
|
+
Default button background color
|
|
5
|
+
**************************************************/
|
|
6
|
+
|
|
7
|
+
/* Light mode */
|
|
8
|
+
--tt-button-default-bg-color: var(--tt-gray-light-a-100);
|
|
9
|
+
--tt-button-hover-bg-color: var(--tt-gray-light-200);
|
|
10
|
+
--tt-button-active-bg-color: var(--tt-brand-color-50);
|
|
11
|
+
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-100);
|
|
12
|
+
--tt-button-active-bg-color-subdued: var(--tt-brand-color-50);
|
|
13
|
+
--tt-button-active-hover-bg-color: var(--tt-brand-color-100);
|
|
14
|
+
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-200);
|
|
15
|
+
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-100);
|
|
16
|
+
--tt-button-disabled-bg-color: var(--tt-gray-light-a-50);
|
|
17
|
+
|
|
18
|
+
/* Dark mode */
|
|
19
|
+
.dark & {
|
|
20
|
+
--tt-button-default-bg-color: var(--tt-gray-dark-a-100);
|
|
21
|
+
--tt-button-hover-bg-color: var(--tt-gray-dark-200);
|
|
22
|
+
--tt-button-active-bg-color: var(--tt-brand-color-900);
|
|
23
|
+
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-800);
|
|
24
|
+
--tt-button-active-bg-color-subdued: var(--tt-brand-color-900);
|
|
25
|
+
--tt-button-active-hover-bg-color: var(--tt-brand-color-800);
|
|
26
|
+
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-700);
|
|
27
|
+
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-800);
|
|
28
|
+
--tt-button-disabled-bg-color: var(--tt-gray-dark-a-50);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**************************************************
|
|
32
|
+
Default button text color
|
|
33
|
+
**************************************************/
|
|
34
|
+
|
|
35
|
+
/* Light mode */
|
|
36
|
+
--tt-button-default-text-color: var(--tt-gray-light-a-600);
|
|
37
|
+
--tt-button-hover-text-color: var(--tt-gray-light-a-900);
|
|
38
|
+
--tt-button-active-text-color: var(--tt-gray-light-a-900);
|
|
39
|
+
--tt-button-active-text-color-emphasized: var(--tt-gray-light-a-900);
|
|
40
|
+
--tt-button-active-text-color-subdued: var(--tt-gray-light-a-900);
|
|
41
|
+
--tt-button-disabled-text-color: var(--tt-gray-light-a-400);
|
|
42
|
+
|
|
43
|
+
/* Dark mode */
|
|
44
|
+
.dark & {
|
|
45
|
+
--tt-button-default-text-color: var(--tt-gray-dark-a-600);
|
|
46
|
+
--tt-button-hover-text-color: var(--tt-gray-dark-a-900);
|
|
47
|
+
--tt-button-active-text-color: var(--tt-gray-dark-a-900);
|
|
48
|
+
--tt-button-active-text-color-emphasized: var(--tt-gray-dark-a-900);
|
|
49
|
+
--tt-button-active-text-color-subdued: var(--tt-gray-dark-a-900);
|
|
50
|
+
--tt-button-disabled-text-color: var(--tt-gray-dark-a-300);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**************************************************
|
|
54
|
+
Default button icon color
|
|
55
|
+
**************************************************/
|
|
56
|
+
|
|
57
|
+
/* Light mode */
|
|
58
|
+
--tt-button-default-icon-color: var(--tt-gray-light-a-600);
|
|
59
|
+
--tt-button-hover-icon-color: var(--tt-gray-light-a-900);
|
|
60
|
+
--tt-button-active-icon-color: var(--tt-brand-color-500);
|
|
61
|
+
--tt-button-active-icon-color-emphasized: var(--tt-brand-color-600);
|
|
62
|
+
--tt-button-active-icon-color-subdued: var(--tt-gray-light-a-900);
|
|
63
|
+
--tt-button-disabled-icon-color: var(--tt-gray-light-a-400);
|
|
64
|
+
|
|
65
|
+
/* Dark mode */
|
|
66
|
+
.dark & {
|
|
67
|
+
--tt-button-default-icon-color: var(--tt-gray-dark-a-600);
|
|
68
|
+
--tt-button-hover-icon-color: var(--tt-gray-dark-a-900);
|
|
69
|
+
--tt-button-active-icon-color: var(--tt-brand-color-400);
|
|
70
|
+
--tt-button-active-icon-color-emphasized: var(--tt-brand-color-400);
|
|
71
|
+
--tt-button-active-icon-color-subdued: var(--tt-gray-dark-a-900);
|
|
72
|
+
--tt-button-disabled-icon-color: var(--tt-gray-dark-a-400);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* ----------------------------------------------------------------
|
|
76
|
+
--------------------------- GHOST BUTTON --------------------------
|
|
77
|
+
---------------------------------------------------------------- */
|
|
78
|
+
|
|
79
|
+
&[data-style="ghost"] {
|
|
80
|
+
/* Light mode */
|
|
81
|
+
--tt-button-default-bg-color: var(--transparent);
|
|
82
|
+
--tt-button-hover-bg-color: var(--tt-gray-light-200);
|
|
83
|
+
--tt-button-active-bg-color: var(--tt-brand-color-50);
|
|
84
|
+
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-100);
|
|
85
|
+
--tt-button-active-bg-color-subdued: var(--tt-brand-color-50);
|
|
86
|
+
--tt-button-active-hover-bg-color: var(--tt-brand-color-100);
|
|
87
|
+
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-200);
|
|
88
|
+
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-100);
|
|
89
|
+
--tt-button-disabled-bg-color: var(--transparent);
|
|
90
|
+
|
|
91
|
+
/* Dark mode */
|
|
92
|
+
.dark & {
|
|
93
|
+
--tt-button-default-bg-color: var(--transparent);
|
|
94
|
+
--tt-button-hover-bg-color: var(--tt-gray-dark-200);
|
|
95
|
+
--tt-button-active-bg-color: var(--tt-brand-color-900);
|
|
96
|
+
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-800);
|
|
97
|
+
--tt-button-active-bg-color-subdued: var(--tt-brand-color-900);
|
|
98
|
+
--tt-button-active-hover-bg-color: var(--tt-brand-color-800);
|
|
99
|
+
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-700);
|
|
100
|
+
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-800);
|
|
101
|
+
--tt-button-disabled-bg-color: var(--transparent);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ----------------------------------------------------------------
|
|
106
|
+
-------------------------- PRIMARY BUTTON -------------------------
|
|
107
|
+
---------------------------------------------------------------- */
|
|
108
|
+
|
|
109
|
+
&[data-style="primary"] {
|
|
110
|
+
/* Light mode */
|
|
111
|
+
--tt-button-default-bg-color: var(--tt-brand-color-500);
|
|
112
|
+
--tt-button-hover-bg-color: var(--tt-brand-color-600);
|
|
113
|
+
--tt-button-active-bg-color: var(--tt-brand-color-100);
|
|
114
|
+
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-100);
|
|
115
|
+
--tt-button-active-bg-color-subdued: var(--tt-brand-color-100);
|
|
116
|
+
--tt-button-active-hover-bg-color: var(--tt-brand-color-200);
|
|
117
|
+
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-200);
|
|
118
|
+
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-200);
|
|
119
|
+
--tt-button-disabled-bg-color: var(--tt-gray-light-a-100);
|
|
120
|
+
|
|
121
|
+
/* Dark mode */
|
|
122
|
+
.dark & {
|
|
123
|
+
--tt-button-default-bg-color: var(--tt-brand-color-500);
|
|
124
|
+
--tt-button-hover-bg-color: var(--tt-brand-color-600);
|
|
125
|
+
--tt-button-active-bg-color: var(--tt-brand-color-900);
|
|
126
|
+
--tt-button-active-bg-color-emphasized: var(--tt-brand-color-900);
|
|
127
|
+
--tt-button-active-bg-color-subdued: var(--tt-brand-color-900);
|
|
128
|
+
--tt-button-active-hover-bg-color: var(--tt-brand-color-800);
|
|
129
|
+
--tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-800);
|
|
130
|
+
--tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-800);
|
|
131
|
+
--tt-button-disabled-bg-color: var(--tt-gray-dark-a-100);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
--tt-button-default-text-color: var(--white);
|
|
135
|
+
--tt-button-hover-text-color: var(--white);
|
|
136
|
+
--tt-button-active-text-color: var(--tt-gray-light-a-900);
|
|
137
|
+
|
|
138
|
+
--tt-button-default-icon-color: var(--white);
|
|
139
|
+
--tt-button-hover-icon-color: var(--white);
|
|
140
|
+
--tt-button-active-icon-color: var(--tt-brand-color-600);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
@import './variables.less';
|
|
2
|
-
.tiptap-button-group {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: flex;
|
|
5
|
-
vertical-align: middle;
|
|
6
|
-
|
|
7
|
-
&[data-orientation="vertical"] {
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: flex-start;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
min-width: max-content;
|
|
12
|
-
|
|
13
|
-
> .tiptap-button {
|
|
14
|
-
width: 100%;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&[data-orientation="horizontal"] {
|
|
19
|
-
gap: 0.125rem;
|
|
20
|
-
flex-direction: row;
|
|
21
|
-
align-items: center;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
@import './variables.less';
|
|
2
|
+
.tiptap-button-group {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
|
|
7
|
+
&[data-orientation="vertical"] {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
min-width: max-content;
|
|
12
|
+
|
|
13
|
+
> .tiptap-button {
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[data-orientation="horizontal"] {
|
|
19
|
+
gap: 0.125rem;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
}
|