@cgboiler/biz-basic 1.0.67 → 1.0.68
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/RichTextEditor.js +3 -0
- package/es/rich-text-editor/index.css +1 -1
- package/es/rich-text-editor/index.less +437 -436
- package/es/rich-text-editor/lib/utils.d.ts +123 -0
- package/es/rich-text-editor/lib/utils.js +244 -0
- package/es/rich-text-editor/menu-system/components/_atomic.css +2 -0
- package/es/rich-text-editor/menu-system/components/table-dropdown-menu.d.ts +25 -0
- package/es/rich-text-editor/menu-system/components/table-dropdown-menu.js +167 -0
- package/es/rich-text-editor/menu-system/icons/index.d.ts +13 -0
- package/es/rich-text-editor/menu-system/icons/index.js +26 -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/RichTextEditor.js +3 -0
- package/lib/rich-text-editor/index.css +1 -1
- package/lib/rich-text-editor/index.less +437 -436
- package/lib/rich-text-editor/lib/utils.d.ts +123 -0
- package/lib/rich-text-editor/lib/utils.js +263 -0
- package/lib/rich-text-editor/menu-system/components/_atomic.css +2 -0
- package/lib/rich-text-editor/menu-system/components/table-dropdown-menu.d.ts +25 -0
- package/lib/rich-text-editor/menu-system/components/table-dropdown-menu.js +186 -0
- package/lib/rich-text-editor/menu-system/icons/index.d.ts +13 -0
- package/lib/rich-text-editor/menu-system/icons/index.js +26 -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
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
@import './variables.less';
|
|
2
|
-
|
|
3
|
-
.tiptap-separator {
|
|
4
|
-
--tt-link-border-color: var(--tt-gray-light-a-200);
|
|
5
|
-
|
|
6
|
-
.dark & {
|
|
7
|
-
--tt-link-border-color: var(--tt-gray-dark-a-200);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.tiptap-separator {
|
|
12
|
-
flex-shrink: 0;
|
|
13
|
-
background-color: var(--tt-link-border-color);
|
|
14
|
-
|
|
15
|
-
&[data-orientation="horizontal"] {
|
|
16
|
-
height: 1px;
|
|
17
|
-
width: 100%;
|
|
18
|
-
margin: 0.5rem 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&[data-orientation="vertical"] {
|
|
22
|
-
height: 1.5rem;
|
|
23
|
-
width: 1px;
|
|
24
|
-
margin: 0 4px;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
@import './variables.less';
|
|
2
|
+
|
|
3
|
+
.tiptap-separator {
|
|
4
|
+
--tt-link-border-color: var(--tt-gray-light-a-200);
|
|
5
|
+
|
|
6
|
+
.dark & {
|
|
7
|
+
--tt-link-border-color: var(--tt-gray-dark-a-200);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.tiptap-separator {
|
|
12
|
+
flex-shrink: 0;
|
|
13
|
+
background-color: var(--tt-link-border-color);
|
|
14
|
+
|
|
15
|
+
&[data-orientation="horizontal"] {
|
|
16
|
+
height: 1px;
|
|
17
|
+
width: 100%;
|
|
18
|
+
margin: 0.5rem 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&[data-orientation="vertical"] {
|
|
22
|
+
height: 1.5rem;
|
|
23
|
+
width: 1px;
|
|
24
|
+
margin: 0 4px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
@import './variables.less';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
Fonts (Note: User should ensure these are loaded in their main app if they want them)
|
|
5
|
-
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
.tiptap.ProseMirror {
|
|
9
|
-
/* Using Inter/DM Sans feel if available, fallback to sans-serif */
|
|
10
|
-
font-family: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
11
|
-
|
|
12
|
-
&.simple-editor {
|
|
13
|
-
flex: 1;
|
|
14
|
-
padding: 24px; // Simplified for component use
|
|
15
|
-
|
|
16
|
-
@media screen and (max-width: 480px) {
|
|
17
|
-
padding: 16px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.tiptap-editor-container {
|
|
23
|
-
scrollbar-width: thin;
|
|
24
|
-
scrollbar-color: var(--tt-scrollbar-color) transparent;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
::-webkit-scrollbar {
|
|
28
|
-
width: 0.25rem;
|
|
29
|
-
height: 0.25rem;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
::-webkit-scrollbar-thumb {
|
|
33
|
-
background-color: var(--tt-scrollbar-color);
|
|
34
|
-
border-radius: 9999px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
::-webkit-scrollbar-track {
|
|
38
|
-
background: transparent;
|
|
39
|
-
}
|
|
1
|
+
@import './variables.less';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Fonts (Note: User should ensure these are loaded in their main app if they want them)
|
|
5
|
+
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.tiptap.ProseMirror {
|
|
9
|
+
/* Using Inter/DM Sans feel if available, fallback to sans-serif */
|
|
10
|
+
font-family: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
11
|
+
|
|
12
|
+
&.simple-editor {
|
|
13
|
+
flex: 1;
|
|
14
|
+
padding: 24px; // Simplified for component use
|
|
15
|
+
|
|
16
|
+
@media screen and (max-width: 480px) {
|
|
17
|
+
padding: 16px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tiptap-editor-container {
|
|
23
|
+
scrollbar-width: thin;
|
|
24
|
+
scrollbar-color: var(--tt-scrollbar-color) transparent;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
::-webkit-scrollbar {
|
|
28
|
+
width: 0.25rem;
|
|
29
|
+
height: 0.25rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
::-webkit-scrollbar-thumb {
|
|
33
|
+
background-color: var(--tt-scrollbar-color);
|
|
34
|
+
border-radius: 9999px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
::-webkit-scrollbar-track {
|
|
38
|
+
background: transparent;
|
|
39
|
+
}
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
@import './variables.less';
|
|
2
|
-
|
|
3
|
-
.tiptap-toolbar {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
// justify-content: center;
|
|
7
|
-
gap: 0.25rem;
|
|
8
|
-
&-group {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
gap: 0.125rem;
|
|
12
|
-
|
|
13
|
-
&:empty {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:empty + .tiptap-separator,
|
|
18
|
-
.tiptap-separator + &:empty {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&[data-variant='fixed'] {
|
|
24
|
-
position: sticky;
|
|
25
|
-
top: 0;
|
|
26
|
-
z-index: 10;
|
|
27
|
-
width: 100%;
|
|
28
|
-
min-height: 44px;
|
|
29
|
-
background: rgba(255, 255, 255, 1);
|
|
30
|
-
border-bottom: 1px solid #0f16240d;
|
|
31
|
-
padding: 0;
|
|
32
|
-
overflow-x: auto;
|
|
33
|
-
overscroll-behavior-x: contain;
|
|
34
|
-
-webkit-overflow-scrolling: touch;
|
|
35
|
-
scrollbar-width: none;
|
|
36
|
-
-ms-overflow-style: none;
|
|
37
|
-
|
|
38
|
-
&::-webkit-scrollbar {
|
|
39
|
-
display: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media (max-width: 480px) {
|
|
43
|
-
position: absolute;
|
|
44
|
-
top: auto;
|
|
45
|
-
height: calc(var(--tt-toolbar-height) + var(--tt-safe-area-bottom));
|
|
46
|
-
border-top: 1px solid var(--tt-toolbar-border-color);
|
|
47
|
-
border-bottom: none;
|
|
48
|
-
padding: 0 0.5rem var(--tt-safe-area-bottom);
|
|
49
|
-
flex-wrap: nowrap;
|
|
50
|
-
justify-content: flex-start;
|
|
51
|
-
|
|
52
|
-
.tiptap-toolbar-group {
|
|
53
|
-
flex: 0 0 auto;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&[data-variant='floating'] {
|
|
59
|
-
--tt-toolbar-padding: 0.125rem;
|
|
60
|
-
--tt-toolbar-border-width: 1px;
|
|
61
|
-
|
|
62
|
-
padding: 0.188rem;
|
|
63
|
-
border-radius: calc(
|
|
64
|
-
var(--tt-toolbar-padding) + var(--tt-radius-lg) + var(--tt-toolbar-border-width)
|
|
65
|
-
);
|
|
66
|
-
border: var(--tt-toolbar-border-width) solid var(--tt-toolbar-border-color);
|
|
67
|
-
background-color: var(--tt-toolbar-bg-color);
|
|
68
|
-
box-shadow: var(--tt-shadow-elevated-md);
|
|
69
|
-
outline: none;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
|
|
72
|
-
&[data-plain='true'] {
|
|
73
|
-
padding: 0;
|
|
74
|
-
border-radius: 0;
|
|
75
|
-
border: none;
|
|
76
|
-
box-shadow: none;
|
|
77
|
-
background-color: transparent;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@media screen and (max-width: 480px) {
|
|
81
|
-
width: 100%;
|
|
82
|
-
border-radius: 0;
|
|
83
|
-
border: none;
|
|
84
|
-
box-shadow: none;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
@import './variables.less';
|
|
2
|
+
|
|
3
|
+
.tiptap-toolbar {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
// justify-content: center;
|
|
7
|
+
gap: 0.25rem;
|
|
8
|
+
&-group {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 0.125rem;
|
|
12
|
+
|
|
13
|
+
&:empty {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:empty + .tiptap-separator,
|
|
18
|
+
.tiptap-separator + &:empty {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-variant='fixed'] {
|
|
24
|
+
position: sticky;
|
|
25
|
+
top: 0;
|
|
26
|
+
z-index: 10;
|
|
27
|
+
width: 100%;
|
|
28
|
+
min-height: 44px;
|
|
29
|
+
background: rgba(255, 255, 255, 1);
|
|
30
|
+
border-bottom: 1px solid #0f16240d;
|
|
31
|
+
padding: 0;
|
|
32
|
+
overflow-x: auto;
|
|
33
|
+
overscroll-behavior-x: contain;
|
|
34
|
+
-webkit-overflow-scrolling: touch;
|
|
35
|
+
scrollbar-width: none;
|
|
36
|
+
-ms-overflow-style: none;
|
|
37
|
+
|
|
38
|
+
&::-webkit-scrollbar {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (max-width: 480px) {
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: auto;
|
|
45
|
+
height: calc(var(--tt-toolbar-height) + var(--tt-safe-area-bottom));
|
|
46
|
+
border-top: 1px solid var(--tt-toolbar-border-color);
|
|
47
|
+
border-bottom: none;
|
|
48
|
+
padding: 0 0.5rem var(--tt-safe-area-bottom);
|
|
49
|
+
flex-wrap: nowrap;
|
|
50
|
+
justify-content: flex-start;
|
|
51
|
+
|
|
52
|
+
.tiptap-toolbar-group {
|
|
53
|
+
flex: 0 0 auto;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[data-variant='floating'] {
|
|
59
|
+
--tt-toolbar-padding: 0.125rem;
|
|
60
|
+
--tt-toolbar-border-width: 1px;
|
|
61
|
+
|
|
62
|
+
padding: 0.188rem;
|
|
63
|
+
border-radius: calc(
|
|
64
|
+
var(--tt-toolbar-padding) + var(--tt-radius-lg) + var(--tt-toolbar-border-width)
|
|
65
|
+
);
|
|
66
|
+
border: var(--tt-toolbar-border-width) solid var(--tt-toolbar-border-color);
|
|
67
|
+
background-color: var(--tt-toolbar-bg-color);
|
|
68
|
+
box-shadow: var(--tt-shadow-elevated-md);
|
|
69
|
+
outline: none;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
|
|
72
|
+
&[data-plain='true'] {
|
|
73
|
+
padding: 0;
|
|
74
|
+
border-radius: 0;
|
|
75
|
+
border: none;
|
|
76
|
+
box-shadow: none;
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media screen and (max-width: 480px) {
|
|
81
|
+
width: 100%;
|
|
82
|
+
border-radius: 0;
|
|
83
|
+
border: none;
|
|
84
|
+
box-shadow: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|